(function () {
  "use strict";
  class k7e {
    constructor() {
      ((this.listeners = []),
        (this.unexpectedErrorHandler = function (y) {
          setTimeout(() => {
            throw y.stack
              ? JL.isErrorNoTelemetry(y)
                ? new JL(
                    y.message +
                      `

` +
                      y.stack,
                  )
                : new Error(
                    y.message +
                      `

` +
                      y.stack,
                  )
              : y;
          }, 0);
        }));
    }
    emit(y) {
      this.listeners.forEach((x) => {
        x(y);
      });
    }
    onUnexpectedError(y) {
      (this.unexpectedErrorHandler(y), this.emit(y));
    }
    onUnexpectedExternalError(y) {
      this.unexpectedErrorHandler(y);
    }
  }
  const w7e = new k7e();
  function pB(b) {
    O7e(b) || w7e.onUnexpectedError(b);
  }
  function eQ(b) {
    if (b instanceof Error) {
      const { name: y, message: x, cause: F } = b,
        $ = b.stacktrace || b.stack;
      return {
        $isError: !0,
        name: y,
        message: x,
        stack: $,
        noTelemetry: JL.isErrorNoTelemetry(b),
        cause: F ? eQ(F) : void 0,
        code: b.code,
      };
    }
    return b;
  }
  const tQ = "Canceled";
  function O7e(b) {
    return b instanceof Xye
      ? !0
      : b instanceof Error && b.name === tQ && b.message === tQ;
  }
  class Xye extends Error {
    constructor() {
      (super(tQ), (this.name = this.message));
    }
  }
  class JL extends Error {
    constructor(y) {
      (super(y), (this.name = "CodeExpectedError"));
    }
    static fromError(y) {
      if (y instanceof JL) return y;
      const x = new JL();
      return ((x.message = y.message), (x.stack = y.stack), x);
    }
    static isErrorNoTelemetry(y) {
      return y.name === "CodeExpectedError";
    }
  }
  class A_ extends Error {
    constructor(y) {
      (super(y || "An unexpected bug occurred."),
        Object.setPrototypeOf(this, A_.prototype));
    }
  }
  function W7e(b, y = "Unreachable") {
    throw new Error(y);
  }
  function F7e(b, y = "unexpected state") {
    if (!b) throw typeof y == "string" ? new A_(`Assertion Failed: ${y}`) : y;
  }
  function fB(b) {
    if (!b()) {
      debugger;
      (b(), pB(new A_("Assertion Failed")));
    }
  }
  function Yye(b, y) {
    let x = 0;
    for (; x < b.length - 1; ) {
      const F = b[x],
        $ = b[x + 1];
      if (!y(F, $)) return !1;
      x++;
    }
    return !0;
  }
  function z7e(b) {
    return typeof b == "string";
  }
  function B7e(b) {
    return !!b && typeof b[Symbol.iterator] == "function";
  }
  var mB;
  (function (b) {
    function y(jn) {
      return (
        !!jn &&
        typeof jn == "object" &&
        typeof jn[Symbol.iterator] == "function"
      );
    }
    b.is = y;
    const x = Object.freeze([]);
    function F() {
      return x;
    }
    b.empty = F;
    function* $(jn) {
      yield jn;
    }
    b.single = $;
    function ge(jn) {
      return y(jn) ? jn : $(jn);
    }
    b.wrap = ge;
    function Le(jn) {
      return jn || x;
    }
    b.from = Le;
    function* Ke(jn) {
      for (let Bi = jn.length - 1; Bi >= 0; Bi--) yield jn[Bi];
    }
    b.reverse = Ke;
    function ae(jn) {
      return !jn || jn[Symbol.iterator]().next().done === !0;
    }
    b.isEmpty = ae;
    function bt(jn) {
      return jn[Symbol.iterator]().next().value;
    }
    b.first = bt;
    function et(jn, Bi) {
      let Io = 0;
      for (const Un of jn) if (Bi(Un, Io++)) return !0;
      return !1;
    }
    b.some = et;
    function Ye(jn, Bi) {
      let Io = 0;
      for (const Un of jn) if (!Bi(Un, Io++)) return !1;
      return !0;
    }
    b.every = Ye;
    function Pn(jn, Bi) {
      for (const Io of jn) if (Bi(Io)) return Io;
    }
    b.find = Pn;
    function* Hn(jn, Bi) {
      for (const Io of jn) Bi(Io) && (yield Io);
    }
    b.filter = Hn;
    function* cr(jn, Bi) {
      let Io = 0;
      for (const Un of jn) yield Bi(Un, Io++);
    }
    b.map = cr;
    function* Gn(jn, Bi) {
      let Io = 0;
      for (const Un of jn) yield* Bi(Un, Io++);
    }
    b.flatMap = Gn;
    function* ki(...jn) {
      for (const Bi of jn) B7e(Bi) ? yield* Bi : yield Bi;
    }
    b.concat = ki;
    function bo(jn, Bi, Io) {
      let Un = Io;
      for (const ul of jn) Un = Bi(Un, ul);
      return Un;
    }
    b.reduce = bo;
    function Vn(jn) {
      let Bi = 0;
      for (const Io of jn) Bi++;
      return Bi;
    }
    b.length = Vn;
    function* hn(jn, Bi, Io = jn.length) {
      for (
        Bi < -jn.length && (Bi = 0),
          Bi < 0 && (Bi += jn.length),
          Io < 0 ? (Io += jn.length) : Io > jn.length && (Io = jn.length);
        Bi < Io;
        Bi++
      )
        yield jn[Bi];
    }
    b.slice = hn;
    function ga(jn, Bi = Number.POSITIVE_INFINITY) {
      const Io = [];
      if (Bi === 0) return [Io, jn];
      const Un = jn[Symbol.iterator]();
      for (let ul = 0; ul < Bi; ul++) {
        const hi = Un.next();
        if (hi.done) return [Io, b.empty()];
        Io.push(hi.value);
      }
      return [
        Io,
        {
          [Symbol.iterator]() {
            return Un;
          },
        },
      ];
    }
    b.consume = ga;
    async function ho(jn) {
      const Bi = [];
      for await (const Io of jn) Bi.push(Io);
      return Bi;
    }
    b.asyncToArray = ho;
    async function gl(jn) {
      let Bi = [];
      for await (const Io of jn) Bi = Bi.concat(Io);
      return Bi;
    }
    b.asyncToArrayFlat = gl;
  })(mB || (mB = {}));
  function Wbt(b, y) {}
  function $ye(b) {
    if (mB.is(b)) {
      const y = [];
      for (const x of b)
        if (x)
          try {
            x.dispose();
          } catch (F) {
            y.push(F);
          }
      if (y.length === 1) throw y[0];
      if (y.length > 1)
        throw new AggregateError(
          y,
          "Encountered errors while disposing of store",
        );
      return Array.isArray(b) ? [] : b;
    } else if (b) return (b.dispose(), b);
  }
  function G7e(...b) {
    return hB(() => $ye(b));
  }
  class V7e {
    constructor(y) {
      ((this._isDisposed = !1), (this._fn = y));
    }
    dispose() {
      if (!this._isDisposed) {
        if (!this._fn)
          throw new Error(
            "Unbound disposable context: Need to use an arrow function to preserve the value of this",
          );
        ((this._isDisposed = !0), this._fn());
      }
    }
  }
  function hB(b) {
    return new V7e(b);
  }
  const NB = class NB {
    constructor() {
      ((this._toDispose = new Set()), (this._isDisposed = !1));
    }
    dispose() {
      this._isDisposed || ((this._isDisposed = !0), this.clear());
    }
    get isDisposed() {
      return this._isDisposed;
    }
    clear() {
      if (this._toDispose.size !== 0)
        try {
          $ye(this._toDispose);
        } finally {
          this._toDispose.clear();
        }
    }
    add(y) {
      if (!y || y === oN.None) return y;
      if (y === this)
        throw new Error("Cannot register a disposable on itself!");
      return (
        this._isDisposed
          ? NB.DISABLE_DISPOSED_WARNING ||
            console.warn(
              new Error(
                "Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!",
              ).stack,
            )
          : this._toDispose.add(y),
        y
      );
    }
    delete(y) {
      if (y) {
        if (y === this)
          throw new Error("Cannot dispose a disposable on itself!");
        (this._toDispose.delete(y), y.dispose());
      }
    }
  };
  NB.DISABLE_DISPOSED_WARNING = !1;
  let A8 = NB;
  const zQ = class zQ {
    constructor() {
      ((this._store = new A8()), this._store);
    }
    dispose() {
      this._store.dispose();
    }
    _register(y) {
      if (y === this)
        throw new Error("Cannot register a disposable on itself!");
      return this._store.add(y);
    }
  };
  zQ.None = Object.freeze({ dispose() {} });
  let oN = zQ;
  const l2 = class l2 {
    constructor(y) {
      ((this.element = y),
        (this.next = l2.Undefined),
        (this.prev = l2.Undefined));
    }
  };
  l2.Undefined = new l2(void 0);
  let Ip = l2;
  class j7e {
    constructor() {
      ((this._first = Ip.Undefined),
        (this._last = Ip.Undefined),
        (this._size = 0));
    }
    get size() {
      return this._size;
    }
    isEmpty() {
      return this._first === Ip.Undefined;
    }
    clear() {
      let y = this._first;
      for (; y !== Ip.Undefined; ) {
        const x = y.next;
        ((y.prev = Ip.Undefined), (y.next = Ip.Undefined), (y = x));
      }
      ((this._first = Ip.Undefined),
        (this._last = Ip.Undefined),
        (this._size = 0));
    }
    unshift(y) {
      return this._insert(y, !1);
    }
    push(y) {
      return this._insert(y, !0);
    }
    _insert(y, x) {
      const F = new Ip(y);
      if (this._first === Ip.Undefined) ((this._first = F), (this._last = F));
      else if (x) {
        const ge = this._last;
        ((this._last = F), (F.prev = ge), (ge.next = F));
      } else {
        const ge = this._first;
        ((this._first = F), (F.next = ge), (ge.prev = F));
      }
      this._size += 1;
      let $ = !1;
      return () => {
        $ || (($ = !0), this._remove(F));
      };
    }
    shift() {
      if (this._first !== Ip.Undefined) {
        const y = this._first.element;
        return (this._remove(this._first), y);
      }
    }
    pop() {
      if (this._last !== Ip.Undefined) {
        const y = this._last.element;
        return (this._remove(this._last), y);
      }
    }
    _remove(y) {
      if (y.prev !== Ip.Undefined && y.next !== Ip.Undefined) {
        const x = y.prev;
        ((x.next = y.next), (y.next.prev = x));
      } else
        y.prev === Ip.Undefined && y.next === Ip.Undefined
          ? ((this._first = Ip.Undefined), (this._last = Ip.Undefined))
          : y.next === Ip.Undefined
            ? ((this._last = this._last.prev), (this._last.next = Ip.Undefined))
            : y.prev === Ip.Undefined &&
              ((this._first = this._first.next),
              (this._first.prev = Ip.Undefined));
      this._size -= 1;
    }
    *[Symbol.iterator]() {
      let y = this._first;
      for (; y !== Ip.Undefined; ) (yield y.element, (y = y.next));
    }
  }
  const U7e = globalThis.performance.now.bind(globalThis.performance);
  class _B {
    static create(y) {
      return new _B(y);
    }
    constructor(y) {
      ((this._now = y === !1 ? Date.now : U7e),
        (this._startTime = this._now()),
        (this._stopTime = -1));
    }
    stop() {
      this._stopTime = this._now();
    }
    reset() {
      ((this._startTime = this._now()), (this._stopTime = -1));
    }
    elapsed() {
      return this._stopTime !== -1
        ? this._stopTime - this._startTime
        : this._now() - this._startTime;
    }
  }
  var nQ;
  (function (b) {
    b.None = () => oN.None;
    function y(hi, Vt) {
      return Pn(hi, () => {}, 0, void 0, !0, void 0, Vt);
    }
    b.defer = y;
    function x(hi) {
      return (Vt, za = null, Zi) => {
        let la = !1,
          Ki;
        return (
          (Ki = hi(
            (yc) => {
              if (!la) return (Ki ? Ki.dispose() : (la = !0), Vt.call(za, yc));
            },
            null,
            Zi,
          )),
          la && Ki.dispose(),
          Ki
        );
      };
    }
    b.once = x;
    function F(hi, Vt) {
      return b.once(b.filter(hi, Vt));
    }
    b.onceIf = F;
    function $(hi, Vt, za) {
      return et(
        (Zi, la = null, Ki) => hi((yc) => Zi.call(la, Vt(yc)), null, Ki),
        za,
      );
    }
    b.map = $;
    function ge(hi, Vt, za) {
      return et(
        (Zi, la = null, Ki) =>
          hi(
            (yc) => {
              (Vt(yc), Zi.call(la, yc));
            },
            null,
            Ki,
          ),
        za,
      );
    }
    b.forEach = ge;
    function Le(hi, Vt, za) {
      return et(
        (Zi, la = null, Ki) => hi((yc) => Vt(yc) && Zi.call(la, yc), null, Ki),
        za,
      );
    }
    b.filter = Le;
    function Ke(hi) {
      return hi;
    }
    b.signal = Ke;
    function ae(...hi) {
      return (Vt, za = null, Zi) => {
        const la = G7e(...hi.map((Ki) => Ki((yc) => Vt.call(za, yc))));
        return Ye(la, Zi);
      };
    }
    b.any = ae;
    function bt(hi, Vt, za, Zi) {
      let la = za;
      return $(hi, (Ki) => ((la = Vt(la, Ki)), la), Zi);
    }
    b.reduce = bt;
    function et(hi, Vt) {
      let za;
      const Zi = {
          onWillAddFirstListener() {
            za = hi(la.fire, la);
          },
          onDidRemoveLastListener() {
            za?.dispose();
          },
        },
        la = new WE(Zi);
      return (Vt?.add(la), la.event);
    }
    function Ye(hi, Vt) {
      return (Vt instanceof Array ? Vt.push(hi) : Vt && Vt.add(hi), hi);
    }
    function Pn(hi, Vt, za = 100, Zi = !1, la = !1, Ki, yc) {
      let lf,
        wm,
        DT,
        Ui = 0,
        nh;
      const KA = {
          leakWarningThreshold: Ki,
          onWillAddFirstListener() {
            lf = hi((F8) => {
              (Ui++,
                (wm = Vt(wm, F8)),
                Zi && !DT && (rh.fire(wm), (wm = void 0)),
                (nh = () => {
                  const f2 = wm;
                  ((wm = void 0),
                    (DT = void 0),
                    (!Zi || Ui > 1) && rh.fire(f2),
                    (Ui = 0));
                }),
                typeof za == "number"
                  ? (DT && clearTimeout(DT), (DT = setTimeout(nh, za)))
                  : DT === void 0 && ((DT = null), queueMicrotask(nh)));
            });
          },
          onWillRemoveListener() {
            la && Ui > 0 && nh?.();
          },
          onDidRemoveLastListener() {
            ((nh = void 0), lf.dispose());
          },
        },
        rh = new WE(KA);
      return (yc?.add(rh), rh.event);
    }
    b.debounce = Pn;
    function Hn(hi, Vt = 0, za) {
      return b.debounce(
        hi,
        (Zi, la) => (Zi ? (Zi.push(la), Zi) : [la]),
        Vt,
        void 0,
        !0,
        void 0,
        za,
      );
    }
    b.accumulate = Hn;
    function cr(hi, Vt = (Zi, la) => Zi === la, za) {
      let Zi = !0,
        la;
      return Le(
        hi,
        (Ki) => {
          const yc = Zi || !Vt(Ki, la);
          return ((Zi = !1), (la = Ki), yc);
        },
        za,
      );
    }
    b.latch = cr;
    function Gn(hi, Vt, za) {
      return [b.filter(hi, Vt, za), b.filter(hi, (Zi) => !Vt(Zi), za)];
    }
    b.split = Gn;
    function ki(hi, Vt = !1, za = [], Zi) {
      let la = za.slice(),
        Ki = hi((wm) => {
          la ? la.push(wm) : lf.fire(wm);
        });
      Zi && Zi.add(Ki);
      const yc = () => {
          (la?.forEach((wm) => lf.fire(wm)), (la = null));
        },
        lf = new WE({
          onWillAddFirstListener() {
            Ki || ((Ki = hi((wm) => lf.fire(wm))), Zi && Zi.add(Ki));
          },
          onDidAddFirstListener() {
            la && (Vt ? setTimeout(yc) : yc());
          },
          onDidRemoveLastListener() {
            (Ki && Ki.dispose(), (Ki = null));
          },
        });
      return (Zi && Zi.add(lf), lf.event);
    }
    b.buffer = ki;
    function bo(hi, Vt) {
      return (Zi, la, Ki) => {
        const yc = Vt(new hn());
        return hi(
          function (lf) {
            const wm = yc.evaluate(lf);
            wm !== Vn && Zi.call(la, wm);
          },
          void 0,
          Ki,
        );
      };
    }
    b.chain = bo;
    const Vn = Symbol("HaltChainable");
    class hn {
      constructor() {
        this.steps = [];
      }
      map(Vt) {
        return (this.steps.push(Vt), this);
      }
      forEach(Vt) {
        return (this.steps.push((za) => (Vt(za), za)), this);
      }
      filter(Vt) {
        return (this.steps.push((za) => (Vt(za) ? za : Vn)), this);
      }
      reduce(Vt, za) {
        let Zi = za;
        return (this.steps.push((la) => ((Zi = Vt(Zi, la)), Zi)), this);
      }
      latch(Vt = (za, Zi) => za === Zi) {
        let za = !0,
          Zi;
        return (
          this.steps.push((la) => {
            const Ki = za || !Vt(la, Zi);
            return ((za = !1), (Zi = la), Ki ? la : Vn);
          }),
          this
        );
      }
      evaluate(Vt) {
        for (const za of this.steps) if (((Vt = za(Vt)), Vt === Vn)) break;
        return Vt;
      }
    }
    function ga(hi, Vt, za = (Zi) => Zi) {
      const Zi = (...lf) => yc.fire(za(...lf)),
        la = () => hi.on(Vt, Zi),
        Ki = () => hi.removeListener(Vt, Zi),
        yc = new WE({
          onWillAddFirstListener: la,
          onDidRemoveLastListener: Ki,
        });
      return yc.event;
    }
    b.fromNodeEventEmitter = ga;
    function ho(hi, Vt, za = (Zi) => Zi) {
      const Zi = (...lf) => yc.fire(za(...lf)),
        la = () => hi.addEventListener(Vt, Zi),
        Ki = () => hi.removeEventListener(Vt, Zi),
        yc = new WE({
          onWillAddFirstListener: la,
          onDidRemoveLastListener: Ki,
        });
      return yc.event;
    }
    b.fromDOMEventEmitter = ho;
    function gl(hi, Vt) {
      let za;
      const Zi = new Promise((la, Ki) => {
        const yc = x(hi)(la, null, Vt);
        za = () => yc.dispose();
      });
      return ((Zi.cancel = za), Zi);
    }
    b.toPromise = gl;
    function jn(hi, Vt) {
      return hi((za) => Vt.fire(za));
    }
    b.forward = jn;
    function Bi(hi, Vt, za) {
      return (Vt(za), hi((Zi) => Vt(Zi)));
    }
    b.runAndSubscribe = Bi;
    class Io {
      constructor(Vt, za) {
        ((this._observable = Vt), (this._counter = 0), (this._hasChanged = !1));
        const Zi = {
          onWillAddFirstListener: () => {
            (Vt.addObserver(this), this._observable.reportChanges());
          },
          onDidRemoveLastListener: () => {
            Vt.removeObserver(this);
          },
        };
        ((this.emitter = new WE(Zi)), za && za.add(this.emitter));
      }
      beginUpdate(Vt) {
        this._counter++;
      }
      handlePossibleChange(Vt) {}
      handleChange(Vt, za) {
        this._hasChanged = !0;
      }
      endUpdate(Vt) {
        (this._counter--,
          this._counter === 0 &&
            (this._observable.reportChanges(),
            this._hasChanged &&
              ((this._hasChanged = !1),
              this.emitter.fire(this._observable.get()))));
      }
    }
    function Un(hi, Vt) {
      return new Io(hi, Vt).emitter.event;
    }
    b.fromObservable = Un;
    function ul(hi) {
      return (Vt, za, Zi) => {
        let la = 0,
          Ki = !1;
        const yc = {
          beginUpdate() {
            la++;
          },
          endUpdate() {
            (la--,
              la === 0 && (hi.reportChanges(), Ki && ((Ki = !1), Vt.call(za))));
          },
          handlePossibleChange() {},
          handleChange() {
            Ki = !0;
          },
        };
        (hi.addObserver(yc), hi.reportChanges());
        const lf = {
          dispose() {
            hi.removeObserver(yc);
          },
        };
        return (
          Zi instanceof A8 ? Zi.add(lf) : Array.isArray(Zi) && Zi.push(lf),
          lf
        );
      };
    }
    b.fromObservableLight = ul;
  })(nQ || (nQ = {}));
  const c2 = class c2 {
    constructor(y) {
      ((this.listenerCount = 0),
        (this.invocationCount = 0),
        (this.elapsedOverall = 0),
        (this.durations = []),
        (this.name = `${y}_${c2._idPool++}`),
        c2.all.add(this));
    }
    start(y) {
      ((this._stopWatch = new _B()), (this.listenerCount = y));
    }
    stop() {
      if (this._stopWatch) {
        const y = this._stopWatch.elapsed();
        (this.durations.push(y),
          (this.elapsedOverall += y),
          (this.invocationCount += 1),
          (this._stopWatch = void 0));
      }
    }
  };
  ((c2.all = new Set()), (c2._idPool = 0));
  let rQ = c2,
    H7e = -1;
  const MB = class MB {
    constructor(y, x, F = (MB._idPool++).toString(16).padStart(3, "0")) {
      ((this._errorHandler = y),
        (this.threshold = x),
        (this.name = F),
        (this._warnCountdown = 0));
    }
    dispose() {
      this._stacks?.clear();
    }
    check(y, x) {
      const F = this.threshold;
      if (F <= 0 || x < F) return;
      this._stacks || (this._stacks = new Map());
      const $ = this._stacks.get(y.value) || 0;
      if (
        (this._stacks.set(y.value, $ + 1),
        (this._warnCountdown -= 1),
        this._warnCountdown <= 0)
      ) {
        this._warnCountdown = F * 0.5;
        const [ge, Le] = this.getMostFrequentStack(),
          Ke = `[${this.name}] potential listener LEAK detected, having ${x} listeners already. MOST frequent listener (${Le}):`;
        (console.warn(Ke), console.warn(ge));
        const ae = new q7e(Ke, ge);
        this._errorHandler(ae);
      }
      return () => {
        const ge = this._stacks.get(y.value) || 0;
        this._stacks.set(y.value, ge - 1);
      };
    }
    getMostFrequentStack() {
      if (!this._stacks) return;
      let y,
        x = 0;
      for (const [F, $] of this._stacks)
        (!y || x < $) && ((y = [F, $]), (x = $));
      return y;
    }
  };
  MB._idPool = 1;
  let iQ = MB;
  class oQ {
    static create() {
      const y = new Error();
      return new oQ(y.stack ?? "");
    }
    constructor(y) {
      this.value = y;
    }
    print() {
      console.warn(
        this.value
          .split(
            `
`,
          )
          .slice(2).join(`
`),
      );
    }
  }
  class q7e extends Error {
    constructor(y, x) {
      (super(y), (this.name = "ListenerLeakError"), (this.stack = x));
    }
  }
  class J7e extends Error {
    constructor(y, x) {
      (super(y), (this.name = "ListenerRefusalError"), (this.stack = x));
    }
  }
  class aQ {
    constructor(y) {
      this.value = y;
    }
  }
  const K7e = 2;
  class WE {
    constructor(y) {
      ((this._size = 0),
        (this._options = y),
        (this._leakageMon = this._options?.leakWarningThreshold
          ? new iQ(
              y?.onListenerError ?? pB,
              this._options?.leakWarningThreshold ?? H7e,
            )
          : void 0),
        (this._perfMon = this._options?._profName
          ? new rQ(this._options._profName)
          : void 0),
        (this._deliveryQueue = this._options?.deliveryQueue));
    }
    dispose() {
      this._disposed ||
        ((this._disposed = !0),
        this._deliveryQueue?.current === this && this._deliveryQueue.reset(),
        this._listeners && ((this._listeners = void 0), (this._size = 0)),
        this._options?.onDidRemoveLastListener?.(),
        this._leakageMon?.dispose());
    }
    get event() {
      return (
        (this._event ??= (y, x, F) => {
          if (
            this._leakageMon &&
            this._size > this._leakageMon.threshold ** 2
          ) {
            const Ke = `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;
            console.warn(Ke);
            const ae = this._leakageMon.getMostFrequentStack() ?? [
                "UNKNOWN stack",
                -1,
              ],
              bt = new J7e(
                `${Ke}. HINT: Stack shows most frequent listener (${ae[1]}-times)`,
                ae[0],
              );
            return ((this._options?.onListenerError || pB)(bt), oN.None);
          }
          if (this._disposed) return oN.None;
          x && (y = y.bind(x));
          const $ = new aQ(y);
          let ge;
          (this._leakageMon &&
            this._size >= Math.ceil(this._leakageMon.threshold * 0.2) &&
            (($.stack = oQ.create()),
            (ge = this._leakageMon.check($.stack, this._size + 1))),
            this._listeners
              ? this._listeners instanceof aQ
                ? ((this._deliveryQueue ??= new X7e()),
                  (this._listeners = [this._listeners, $]))
                : this._listeners.push($)
              : (this._options?.onWillAddFirstListener?.(this),
                (this._listeners = $),
                this._options?.onDidAddFirstListener?.(this)),
            this._options?.onDidAddListener?.(this),
            this._size++);
          const Le = hB(() => {
            (ge?.(), this._removeListener($));
          });
          return (
            F instanceof A8 ? F.add(Le) : Array.isArray(F) && F.push(Le),
            Le
          );
        }),
        this._event
      );
    }
    _removeListener(y) {
      if ((this._options?.onWillRemoveListener?.(this), !this._listeners))
        return;
      if (this._size === 1) {
        ((this._listeners = void 0),
          this._options?.onDidRemoveLastListener?.(this),
          (this._size = 0));
        return;
      }
      const x = this._listeners,
        F = x.indexOf(y);
      if (F === -1)
        throw (
          console.log("disposed?", this._disposed),
          console.log("size?", this._size),
          console.log("arr?", JSON.stringify(this._listeners)),
          new Error("Attempted to dispose unknown listener")
        );
      (this._size--, (x[F] = void 0));
      const $ = this._deliveryQueue.current === this;
      if (this._size * K7e <= x.length) {
        let ge = 0;
        for (let Le = 0; Le < x.length; Le++)
          x[Le]
            ? (x[ge++] = x[Le])
            : $ &&
              ge < this._deliveryQueue.end &&
              (this._deliveryQueue.end--,
              ge < this._deliveryQueue.i && this._deliveryQueue.i--);
        x.length = ge;
      }
    }
    _deliver(y, x) {
      if (!y) return;
      const F = this._options?.onListenerError || pB;
      if (!F) {
        y.value(x);
        return;
      }
      try {
        y.value(x);
      } catch ($) {
        F($);
      }
    }
    _deliverQueue(y) {
      const x = y.current._listeners;
      for (; y.i < y.end; ) this._deliver(x[y.i++], y.value);
      y.reset();
    }
    fire(y) {
      if (
        (this._deliveryQueue?.current &&
          (this._deliverQueue(this._deliveryQueue), this._perfMon?.stop()),
        this._perfMon?.start(this._size),
        this._listeners)
      )
        if (this._listeners instanceof aQ) this._deliver(this._listeners, y);
        else {
          const x = this._deliveryQueue;
          (x.enqueue(this, y, this._listeners.length), this._deliverQueue(x));
        }
      this._perfMon?.stop();
    }
    hasListeners() {
      return this._size > 0;
    }
  }
  class X7e {
    constructor() {
      ((this.i = -1), (this.end = 0));
    }
    enqueue(y, x, F) {
      ((this.i = 0), (this.end = F), (this.current = y), (this.value = x));
    }
    reset() {
      ((this.i = this.end), (this.current = void 0), (this.value = void 0));
    }
  }
  function Y7e() {
    return globalThis._VSCODE_NLS_MESSAGES;
  }
  function Qye() {
    return globalThis._VSCODE_NLS_LANGUAGE;
  }
  const $7e =
    Qye() === "pseudo" ||
    (typeof document < "u" &&
      document.location &&
      typeof document.location.hash == "string" &&
      document.location.hash.indexOf("pseudo=true") >= 0);
  function Zye(b, y) {
    let x;
    return (
      y.length === 0
        ? (x = b)
        : (x = b.replace(/\{(\d+)\}/g, (F, $) => {
            const ge = $[0],
              Le = y[ge];
            let Ke = F;
            return (
              typeof Le == "string"
                ? (Ke = Le)
                : (typeof Le == "number" ||
                    typeof Le == "boolean" ||
                    Le === void 0 ||
                    Le === null) &&
                  (Ke = String(Le)),
              Ke
            );
          })),
      $7e && (x = "［" + x.replace(/[aouei]/g, "$&$&") + "］"),
      x
    );
  }
  function xs(b, y, ...x) {
    return Zye(typeof b == "number" ? Q7e(b, y) : y, x);
  }
  function Q7e(b, y) {
    const x = Y7e()?.[b];
    if (typeof x != "string") {
      if (typeof y == "string") return y;
      throw new Error(`!!! NLS MISSING: ${b} !!!`);
    }
    return x;
  }
  const KL = "en";
  let sQ = !1,
    lQ = !1,
    cQ = !1,
    gB,
    dQ = KL,
    eve = KL,
    Z7e,
    VA;
  const aN = globalThis;
  let qy;
  typeof aN.vscode < "u" && typeof aN.vscode.process < "u"
    ? (qy = aN.vscode.process)
    : typeof process < "u" &&
      typeof process?.versions?.node == "string" &&
      (qy = process);
  const eze =
    typeof qy?.versions?.electron == "string" && qy?.type === "renderer";
  if (typeof qy == "object") {
    ((sQ = qy.platform === "win32"),
      (lQ = qy.platform === "darwin"),
      (cQ = qy.platform === "linux"),
      cQ && qy.env.SNAP && qy.env.SNAP_REVISION,
      qy.env.CI ||
        qy.env.BUILD_ARTIFACTSTAGINGDIRECTORY ||
        qy.env.GITHUB_WORKSPACE,
      (gB = KL),
      (dQ = KL));
    const b = qy.env.VSCODE_NLS_CONFIG;
    if (b)
      try {
        const y = JSON.parse(b);
        ((gB = y.userLocale),
          (eve = y.osLocale),
          (dQ = y.resolvedLanguage || KL),
          (Z7e = y.languagePack?.translationsConfigFile));
      } catch {}
  } else
    typeof navigator == "object" && !eze
      ? ((VA = navigator.userAgent),
        (sQ = VA.indexOf("Windows") >= 0),
        (lQ = VA.indexOf("Macintosh") >= 0),
        (VA.indexOf("Macintosh") >= 0 ||
          VA.indexOf("iPad") >= 0 ||
          VA.indexOf("iPhone") >= 0) &&
          navigator.maxTouchPoints &&
          navigator.maxTouchPoints > 0,
        (cQ = VA.indexOf("Linux") >= 0),
        VA?.indexOf("Mobi") >= 0,
        (dQ = Qye() || KL),
        (gB = navigator.language.toLowerCase()),
        (eve = gB))
      : console.error("Unable to resolve platform.");
  const I8 = sQ,
    tze = lQ,
    FE = VA,
    nze = typeof aN.postMessage == "function" && !aN.importScripts;
  (() => {
    if (nze) {
      const b = [];
      aN.addEventListener("message", (x) => {
        if (x.data && x.data.vscodeScheduleAsyncWork)
          for (let F = 0, $ = b.length; F < $; F++) {
            const ge = b[F];
            if (ge.id === x.data.vscodeScheduleAsyncWork) {
              (b.splice(F, 1), ge.callback());
              return;
            }
          }
      });
      let y = 0;
      return (x) => {
        const F = ++y;
        (b.push({ id: F, callback: x }),
          aN.postMessage({ vscodeScheduleAsyncWork: F }, "*"));
      };
    }
    return (b) => setTimeout(b);
  })();
  const rze = !!(FE && FE.indexOf("Chrome") >= 0);
  (FE && FE.indexOf("Firefox") >= 0,
    !rze && FE && FE.indexOf("Safari") >= 0,
    FE && FE.indexOf("Edg/") >= 0,
    FE && FE.indexOf("Android") >= 0);
  function ize(b) {
    return b;
  }
  class oze {
    constructor(y, x) {
      ((this.lastCache = void 0),
        (this.lastArgKey = void 0),
        typeof y == "function"
          ? ((this._fn = y), (this._computeKey = ize))
          : ((this._fn = x), (this._computeKey = y.getCacheKey)));
    }
    get(y) {
      const x = this._computeKey(y);
      return (
        this.lastArgKey !== x &&
          ((this.lastArgKey = x), (this.lastCache = this._fn(y))),
        this.lastCache
      );
    }
  }
  var sN;
  (function (b) {
    ((b[(b.Uninitialized = 0)] = "Uninitialized"),
      (b[(b.Running = 1)] = "Running"),
      (b[(b.Completed = 2)] = "Completed"));
  })(sN || (sN = {}));
  class uQ {
    constructor(y) {
      ((this.executor = y), (this._state = sN.Uninitialized));
    }
    get value() {
      if (this._state === sN.Uninitialized) {
        this._state = sN.Running;
        try {
          this._value = this.executor();
        } catch (y) {
          this._error = y;
        } finally {
          this._state = sN.Completed;
        }
      } else if (this._state === sN.Running)
        throw new Error(
          "Cannot read the value of a lazy that is being initialized",
        );
      if (this._error) throw this._error;
      return this._value;
    }
    get rawValue() {
      return this._value;
    }
  }
  function aze(b) {
    return b.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g, "\\$&");
  }
  function sze(b) {
    return b.source === "^" ||
      b.source === "^$" ||
      b.source === "$" ||
      b.source === "^\\s*$"
      ? !1
      : !!(b.exec("") && b.lastIndex === 0);
  }
  function lze(b) {
    return b.split(/\r\n|\r|\n/);
  }
  function cze(b) {
    for (let y = 0, x = b.length; y < x; y++) {
      const F = b.charCodeAt(y);
      if (F !== 32 && F !== 9) return y;
    }
    return -1;
  }
  function dze(b, y = b.length - 1) {
    for (let x = y; x >= 0; x--) {
      const F = b.charCodeAt(x);
      if (F !== 32 && F !== 9) return x;
    }
    return -1;
  }
  function tve(b) {
    return b >= 65 && b <= 90;
  }
  function uze(b, y) {
    const x = Math.min(b.length, y.length);
    let F;
    for (F = 0; F < x; F++) if (b.charCodeAt(F) !== y.charCodeAt(F)) return F;
    return x;
  }
  function pze(b, y) {
    const x = Math.min(b.length, y.length);
    let F;
    const $ = b.length - 1,
      ge = y.length - 1;
    for (F = 0; F < x; F++)
      if (b.charCodeAt($ - F) !== y.charCodeAt(ge - F)) return F;
    return x;
  }
  function pQ(b) {
    return 55296 <= b && b <= 56319;
  }
  function fze(b) {
    return 56320 <= b && b <= 57343;
  }
  function mze(b, y) {
    return ((b - 55296) << 10) + (y - 56320) + 65536;
  }
  function hze(b, y, x) {
    const F = b.charCodeAt(x);
    if (pQ(F) && x + 1 < y) {
      const $ = b.charCodeAt(x + 1);
      if (fze($)) return mze(F, $);
    }
    return F;
  }
  const _ze = /^[\t\n\r\x20-\x7E]*$/;
  function gze(b) {
    return _ze.test(b);
  }
  const BE = class BE {
    static getInstance(y) {
      return BE.cache.get(Array.from(y));
    }
    static getLocales() {
      return BE._locales.value;
    }
    constructor(y) {
      this.confusableDictionary = y;
    }
    isAmbiguous(y) {
      return this.confusableDictionary.has(y);
    }
    getPrimaryConfusable(y) {
      return this.confusableDictionary.get(y);
    }
    getConfusableCodePoints() {
      return new Set(this.confusableDictionary.keys());
    }
  };
  ((BE.ambiguousCharacterData = new uQ(() =>
    JSON.parse(
      '{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}',
    ),
  )),
    (BE.cache = new oze({ getCacheKey: JSON.stringify }, (y) => {
      function x(et) {
        const Ye = new Map();
        for (let Pn = 0; Pn < et.length; Pn += 2) Ye.set(et[Pn], et[Pn + 1]);
        return Ye;
      }
      function F(et, Ye) {
        const Pn = new Map(et);
        for (const [Hn, cr] of Ye) Pn.set(Hn, cr);
        return Pn;
      }
      function $(et, Ye) {
        if (!et) return Ye;
        const Pn = new Map();
        for (const [Hn, cr] of et) Ye.has(Hn) && Pn.set(Hn, cr);
        return Pn;
      }
      const ge = BE.ambiguousCharacterData.value;
      let Le = y.filter((et) => !et.startsWith("_") && Object.hasOwn(ge, et));
      Le.length === 0 && (Le = ["_default"]);
      let Ke;
      for (const et of Le) {
        const Ye = x(ge[et]);
        Ke = $(Ke, Ye);
      }
      const ae = x(ge._common),
        bt = F(ae, Ke);
      return new BE(bt);
    })),
    (BE._locales = new uQ(() =>
      Object.keys(BE.ambiguousCharacterData.value).filter(
        (y) => !y.startsWith("_"),
      ),
    )));
  let x8 = BE;
  const d2 = class d2 {
    static getRawData() {
      return JSON.parse(
        '{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}',
      );
    }
    static getData() {
      return (
        this._data ||
          (this._data = new Set([...Object.values(d2.getRawData())].flat())),
        this._data
      );
    }
    static isInvisibleCharacter(y) {
      return d2.getData().has(y);
    }
    static get codePoints() {
      return d2.getData();
    }
  };
  d2._data = void 0;
  let R8 = d2;
  const fQ = "default",
    yze = "$initialize";
  class vze {
    constructor(y, x, F, $, ge) {
      ((this.vsWorker = y),
        (this.req = x),
        (this.channel = F),
        (this.method = $),
        (this.args = ge),
        (this.type = 0));
    }
  }
  class nve {
    constructor(y, x, F, $) {
      ((this.vsWorker = y),
        (this.seq = x),
        (this.res = F),
        (this.err = $),
        (this.type = 1));
    }
  }
  class bze {
    constructor(y, x, F, $, ge) {
      ((this.vsWorker = y),
        (this.req = x),
        (this.channel = F),
        (this.eventName = $),
        (this.arg = ge),
        (this.type = 2));
    }
  }
  class Tze {
    constructor(y, x, F) {
      ((this.vsWorker = y), (this.req = x), (this.event = F), (this.type = 3));
    }
  }
  class Sze {
    constructor(y, x) {
      ((this.vsWorker = y), (this.req = x), (this.type = 4));
    }
  }
  class Eze {
    constructor(y) {
      ((this._workerId = -1),
        (this._handler = y),
        (this._lastSentReq = 0),
        (this._pendingReplies = Object.create(null)),
        (this._pendingEmitters = new Map()),
        (this._pendingEvents = new Map()));
    }
    setWorkerId(y) {
      this._workerId = y;
    }
    async sendMessage(y, x, F) {
      const $ = String(++this._lastSentReq);
      return new Promise((ge, Le) => {
        ((this._pendingReplies[$] = { resolve: ge, reject: Le }),
          this._send(new vze(this._workerId, $, y, x, F)));
      });
    }
    listen(y, x, F) {
      let $ = null;
      const ge = new WE({
        onWillAddFirstListener: () => {
          (($ = String(++this._lastSentReq)),
            this._pendingEmitters.set($, ge),
            this._send(new bze(this._workerId, $, y, x, F)));
        },
        onDidRemoveLastListener: () => {
          (this._pendingEmitters.delete($),
            this._send(new Sze(this._workerId, $)),
            ($ = null));
        },
      });
      return ge.event;
    }
    handleMessage(y) {
      !y ||
        !y.vsWorker ||
        (this._workerId !== -1 && y.vsWorker !== this._workerId) ||
        this._handleMessage(y);
    }
    createProxyToRemoteChannel(y, x) {
      const F = {
        get: ($, ge) => (
          typeof ge == "string" &&
            !$[ge] &&
            (ive(ge)
              ? ($[ge] = (Le) => this.listen(y, ge, Le))
              : rve(ge)
                ? ($[ge] = this.listen(y, ge, void 0))
                : ge.charCodeAt(0) === 36 &&
                  ($[ge] = async (...Le) => (
                    await x?.(),
                    this.sendMessage(y, ge, Le)
                  ))),
          $[ge]
        ),
      };
      return new Proxy(Object.create(null), F);
    }
    _handleMessage(y) {
      switch (y.type) {
        case 1:
          return this._handleReplyMessage(y);
        case 0:
          return this._handleRequestMessage(y);
        case 2:
          return this._handleSubscribeEventMessage(y);
        case 3:
          return this._handleEventMessage(y);
        case 4:
          return this._handleUnsubscribeEventMessage(y);
      }
    }
    _handleReplyMessage(y) {
      if (!this._pendingReplies[y.seq]) {
        console.warn("Got reply to unknown seq");
        return;
      }
      const x = this._pendingReplies[y.seq];
      if ((delete this._pendingReplies[y.seq], y.err)) {
        let F = y.err;
        if (y.err.$isError) {
          const $ = new Error();
          (($.name = y.err.name),
            ($.message = y.err.message),
            ($.stack = y.err.stack),
            (F = $));
        }
        x.reject(F);
        return;
      }
      x.resolve(y.res);
    }
    _handleRequestMessage(y) {
      const x = y.req;
      this._handler.handleMessage(y.channel, y.method, y.args).then(
        ($) => {
          this._send(new nve(this._workerId, x, $, void 0));
        },
        ($) => {
          ($.detail instanceof Error && ($.detail = eQ($.detail)),
            this._send(new nve(this._workerId, x, void 0, eQ($))));
        },
      );
    }
    _handleSubscribeEventMessage(y) {
      const x = y.req,
        F = this._handler.handleEvent(
          y.channel,
          y.eventName,
          y.arg,
        )(($) => {
          this._send(new Tze(this._workerId, x, $));
        });
      this._pendingEvents.set(x, F);
    }
    _handleEventMessage(y) {
      if (!this._pendingEmitters.has(y.req)) {
        console.warn("Got event for unknown req");
        return;
      }
      this._pendingEmitters.get(y.req).fire(y.event);
    }
    _handleUnsubscribeEventMessage(y) {
      if (!this._pendingEvents.has(y.req)) {
        console.warn("Got unsubscribe for unknown req");
        return;
      }
      (this._pendingEvents.get(y.req).dispose(),
        this._pendingEvents.delete(y.req));
    }
    _send(y) {
      const x = [];
      if (y.type === 0)
        for (let F = 0; F < y.args.length; F++) {
          const $ = y.args[F];
          $ instanceof ArrayBuffer && x.push($);
        }
      else y.type === 1 && y.res instanceof ArrayBuffer && x.push(y.res);
      this._handler.sendMessage(y, x);
    }
  }
  function rve(b) {
    return b[0] === "o" && b[1] === "n" && tve(b.charCodeAt(2));
  }
  function ive(b) {
    return /^onDynamic/.test(b) && tve(b.charCodeAt(9));
  }
  class Aze {
    constructor(y, x) {
      ((this._localChannels = new Map()),
        (this._remoteChannels = new Map()),
        (this._protocol = new Eze({
          sendMessage: (F, $) => {
            y(F, $);
          },
          handleMessage: (F, $, ge) => this._handleMessage(F, $, ge),
          handleEvent: (F, $, ge) => this._handleEvent(F, $, ge),
        })),
        (this.requestHandler = x(this)));
    }
    onmessage(y) {
      this._protocol.handleMessage(y);
    }
    _handleMessage(y, x, F) {
      if (y === fQ && x === yze) return this.initialize(F[0]);
      const $ = y === fQ ? this.requestHandler : this._localChannels.get(y);
      if (!$)
        return Promise.reject(
          new Error(`Missing channel ${y} on worker thread`),
        );
      const ge = $[x];
      if (typeof ge != "function")
        return Promise.reject(
          new Error(`Missing method ${x} on worker thread channel ${y}`),
        );
      try {
        return Promise.resolve(ge.apply($, F));
      } catch (Le) {
        return Promise.reject(Le);
      }
    }
    _handleEvent(y, x, F) {
      const $ = y === fQ ? this.requestHandler : this._localChannels.get(y);
      if (!$) throw new Error(`Missing channel ${y} on worker thread`);
      if (ive(x)) {
        const ge = $[x];
        if (typeof ge != "function")
          throw new Error(`Missing dynamic event ${x} on request handler.`);
        const Le = ge.call($, F);
        if (typeof Le != "function")
          throw new Error(`Missing dynamic event ${x} on request handler.`);
        return Le;
      }
      if (rve(x)) {
        const ge = $[x];
        if (typeof ge != "function")
          throw new Error(`Missing event ${x} on request handler.`);
        return ge;
      }
      throw new Error(`Malformed event name ${x}`);
    }
    getChannel(y) {
      if (!this._remoteChannels.has(y)) {
        const x = this._protocol.createProxyToRemoteChannel(y);
        this._remoteChannels.set(y, x);
      }
      return this._remoteChannels.get(y);
    }
    async initialize(y) {
      this._protocol.setWorkerId(y);
    }
  }
  let ove = !1;
  function Ize(b) {
    if (ove) throw new Error("WebWorker already initialized!");
    ove = !0;
    const y = new Aze(
      (x) => globalThis.postMessage(x),
      (x) => b(x),
    );
    return (
      (globalThis.onmessage = (x) => {
        y.onmessage(x.data);
      }),
      y
    );
  }
  class yR {
    constructor(y, x, F, $) {
      ((this.originalStart = y),
        (this.originalLength = x),
        (this.modifiedStart = F),
        (this.modifiedLength = $));
    }
    getOriginalEnd() {
      return this.originalStart + this.originalLength;
    }
    getModifiedEnd() {
      return this.modifiedStart + this.modifiedLength;
    }
  }
  new uQ(() => new Uint8Array(256));
  function ave(b, y) {
    return ((y << 5) - y + b) | 0;
  }
  function xze(b, y) {
    y = ave(149417, y);
    for (let x = 0, F = b.length; x < F; x++) y = ave(b.charCodeAt(x), y);
    return y;
  }
  class sve {
    constructor(y) {
      this.source = y;
    }
    getElements() {
      const y = this.source,
        x = new Int32Array(y.length);
      for (let F = 0, $ = y.length; F < $; F++) x[F] = y.charCodeAt(F);
      return x;
    }
  }
  function Rze(b, y, x) {
    return new vR(new sve(b), new sve(y)).ComputeDiff(x).changes;
  }
  class XL {
    static Assert(y, x) {
      if (!y) throw new Error(x);
    }
  }
  class YL {
    static Copy(y, x, F, $, ge) {
      for (let Le = 0; Le < ge; Le++) F[$ + Le] = y[x + Le];
    }
    static Copy2(y, x, F, $, ge) {
      for (let Le = 0; Le < ge; Le++) F[$ + Le] = y[x + Le];
    }
  }
  class lve {
    constructor() {
      ((this.m_changes = []),
        (this.m_originalStart = 1073741824),
        (this.m_modifiedStart = 1073741824),
        (this.m_originalCount = 0),
        (this.m_modifiedCount = 0));
    }
    MarkNextChange() {
      ((this.m_originalCount > 0 || this.m_modifiedCount > 0) &&
        this.m_changes.push(
          new yR(
            this.m_originalStart,
            this.m_originalCount,
            this.m_modifiedStart,
            this.m_modifiedCount,
          ),
        ),
        (this.m_originalCount = 0),
        (this.m_modifiedCount = 0),
        (this.m_originalStart = 1073741824),
        (this.m_modifiedStart = 1073741824));
    }
    AddOriginalElement(y, x) {
      ((this.m_originalStart = Math.min(this.m_originalStart, y)),
        (this.m_modifiedStart = Math.min(this.m_modifiedStart, x)),
        this.m_originalCount++);
    }
    AddModifiedElement(y, x) {
      ((this.m_originalStart = Math.min(this.m_originalStart, y)),
        (this.m_modifiedStart = Math.min(this.m_modifiedStart, x)),
        this.m_modifiedCount++);
    }
    getChanges() {
      return (
        (this.m_originalCount > 0 || this.m_modifiedCount > 0) &&
          this.MarkNextChange(),
        this.m_changes
      );
    }
    getReverseChanges() {
      return (
        (this.m_originalCount > 0 || this.m_modifiedCount > 0) &&
          this.MarkNextChange(),
        this.m_changes.reverse(),
        this.m_changes
      );
    }
  }
  class vR {
    constructor(y, x, F = null) {
      ((this.ContinueProcessingPredicate = F),
        (this._originalSequence = y),
        (this._modifiedSequence = x));
      const [$, ge, Le] = vR._getElements(y),
        [Ke, ae, bt] = vR._getElements(x);
      ((this._hasStrings = Le && bt),
        (this._originalStringElements = $),
        (this._originalElementsOrHash = ge),
        (this._modifiedStringElements = Ke),
        (this._modifiedElementsOrHash = ae),
        (this.m_forwardHistory = []),
        (this.m_reverseHistory = []));
    }
    static _isStringArray(y) {
      return y.length > 0 && typeof y[0] == "string";
    }
    static _getElements(y) {
      const x = y.getElements();
      if (vR._isStringArray(x)) {
        const F = new Int32Array(x.length);
        for (let $ = 0, ge = x.length; $ < ge; $++) F[$] = xze(x[$], 0);
        return [x, F, !0];
      }
      return x instanceof Int32Array
        ? [[], x, !1]
        : [[], new Int32Array(x), !1];
    }
    ElementsAreEqual(y, x) {
      return this._originalElementsOrHash[y] !== this._modifiedElementsOrHash[x]
        ? !1
        : this._hasStrings
          ? this._originalStringElements[y] === this._modifiedStringElements[x]
          : !0;
    }
    ElementsAreStrictEqual(y, x) {
      if (!this.ElementsAreEqual(y, x)) return !1;
      const F = vR._getStrictElement(this._originalSequence, y),
        $ = vR._getStrictElement(this._modifiedSequence, x);
      return F === $;
    }
    static _getStrictElement(y, x) {
      return typeof y.getStrictElement == "function"
        ? y.getStrictElement(x)
        : null;
    }
    OriginalElementsAreEqual(y, x) {
      return this._originalElementsOrHash[y] !== this._originalElementsOrHash[x]
        ? !1
        : this._hasStrings
          ? this._originalStringElements[y] === this._originalStringElements[x]
          : !0;
    }
    ModifiedElementsAreEqual(y, x) {
      return this._modifiedElementsOrHash[y] !== this._modifiedElementsOrHash[x]
        ? !1
        : this._hasStrings
          ? this._modifiedStringElements[y] === this._modifiedStringElements[x]
          : !0;
    }
    ComputeDiff(y) {
      return this._ComputeDiff(
        0,
        this._originalElementsOrHash.length - 1,
        0,
        this._modifiedElementsOrHash.length - 1,
        y,
      );
    }
    _ComputeDiff(y, x, F, $, ge) {
      const Le = [!1];
      let Ke = this.ComputeDiffRecursive(y, x, F, $, Le);
      return (
        ge && (Ke = this.PrettifyChanges(Ke)),
        { quitEarly: Le[0], changes: Ke }
      );
    }
    ComputeDiffRecursive(y, x, F, $, ge) {
      for (ge[0] = !1; y <= x && F <= $ && this.ElementsAreEqual(y, F); )
        (y++, F++);
      for (; x >= y && $ >= F && this.ElementsAreEqual(x, $); ) (x--, $--);
      if (y > x || F > $) {
        let Ye;
        return (
          F <= $
            ? (XL.Assert(
                y === x + 1,
                "originalStart should only be one more than originalEnd",
              ),
              (Ye = [new yR(y, 0, F, $ - F + 1)]))
            : y <= x
              ? (XL.Assert(
                  F === $ + 1,
                  "modifiedStart should only be one more than modifiedEnd",
                ),
                (Ye = [new yR(y, x - y + 1, F, 0)]))
              : (XL.Assert(
                  y === x + 1,
                  "originalStart should only be one more than originalEnd",
                ),
                XL.Assert(
                  F === $ + 1,
                  "modifiedStart should only be one more than modifiedEnd",
                ),
                (Ye = [])),
          Ye
        );
      }
      const Le = [0],
        Ke = [0],
        ae = this.ComputeRecursionPoint(y, x, F, $, Le, Ke, ge),
        bt = Le[0],
        et = Ke[0];
      if (ae !== null) return ae;
      if (!ge[0]) {
        const Ye = this.ComputeDiffRecursive(y, bt, F, et, ge);
        let Pn = [];
        return (
          ge[0]
            ? (Pn = [
                new yR(bt + 1, x - (bt + 1) + 1, et + 1, $ - (et + 1) + 1),
              ])
            : (Pn = this.ComputeDiffRecursive(bt + 1, x, et + 1, $, ge)),
          this.ConcatenateChanges(Ye, Pn)
        );
      }
      return [new yR(y, x - y + 1, F, $ - F + 1)];
    }
    WALKTRACE(
      y,
      x,
      F,
      $,
      ge,
      Le,
      Ke,
      ae,
      bt,
      et,
      Ye,
      Pn,
      Hn,
      cr,
      Gn,
      ki,
      bo,
      Vn,
    ) {
      let hn = null,
        ga = null,
        ho = new lve(),
        gl = x,
        jn = F,
        Bi = Hn[0] - ki[0] - $,
        Io = -1073741824,
        Un = this.m_forwardHistory.length - 1;
      do {
        const ul = Bi + y;
        (ul === gl || (ul < jn && bt[ul - 1] < bt[ul + 1])
          ? ((Ye = bt[ul + 1]),
            (cr = Ye - Bi - $),
            Ye < Io && ho.MarkNextChange(),
            (Io = Ye),
            ho.AddModifiedElement(Ye + 1, cr),
            (Bi = ul + 1 - y))
          : ((Ye = bt[ul - 1] + 1),
            (cr = Ye - Bi - $),
            Ye < Io && ho.MarkNextChange(),
            (Io = Ye - 1),
            ho.AddOriginalElement(Ye, cr + 1),
            (Bi = ul - 1 - y)),
          Un >= 0 &&
            ((bt = this.m_forwardHistory[Un]),
            (y = bt[0]),
            (gl = 1),
            (jn = bt.length - 1)));
      } while (--Un >= -1);
      if (((hn = ho.getReverseChanges()), Vn[0])) {
        let ul = Hn[0] + 1,
          hi = ki[0] + 1;
        if (hn !== null && hn.length > 0) {
          const Vt = hn[hn.length - 1];
          ((ul = Math.max(ul, Vt.getOriginalEnd())),
            (hi = Math.max(hi, Vt.getModifiedEnd())));
        }
        ga = [new yR(ul, Pn - ul + 1, hi, Gn - hi + 1)];
      } else {
        ((ho = new lve()),
          (gl = Le),
          (jn = Ke),
          (Bi = Hn[0] - ki[0] - ae),
          (Io = 1073741824),
          (Un = bo
            ? this.m_reverseHistory.length - 1
            : this.m_reverseHistory.length - 2));
        do {
          const ul = Bi + ge;
          (ul === gl || (ul < jn && et[ul - 1] >= et[ul + 1])
            ? ((Ye = et[ul + 1] - 1),
              (cr = Ye - Bi - ae),
              Ye > Io && ho.MarkNextChange(),
              (Io = Ye + 1),
              ho.AddOriginalElement(Ye + 1, cr + 1),
              (Bi = ul + 1 - ge))
            : ((Ye = et[ul - 1]),
              (cr = Ye - Bi - ae),
              Ye > Io && ho.MarkNextChange(),
              (Io = Ye),
              ho.AddModifiedElement(Ye + 1, cr + 1),
              (Bi = ul - 1 - ge)),
            Un >= 0 &&
              ((et = this.m_reverseHistory[Un]),
              (ge = et[0]),
              (gl = 1),
              (jn = et.length - 1)));
        } while (--Un >= -1);
        ga = ho.getChanges();
      }
      return this.ConcatenateChanges(hn, ga);
    }
    ComputeRecursionPoint(y, x, F, $, ge, Le, Ke) {
      let ae = 0,
        bt = 0,
        et = 0,
        Ye = 0,
        Pn = 0,
        Hn = 0;
      (y--,
        F--,
        (ge[0] = 0),
        (Le[0] = 0),
        (this.m_forwardHistory = []),
        (this.m_reverseHistory = []));
      const cr = x - y + ($ - F),
        Gn = cr + 1,
        ki = new Int32Array(Gn),
        bo = new Int32Array(Gn),
        Vn = $ - F,
        hn = x - y,
        ga = y - F,
        ho = x - $,
        jn = (hn - Vn) % 2 === 0;
      ((ki[Vn] = y), (bo[hn] = x), (Ke[0] = !1));
      for (let Bi = 1; Bi <= cr / 2 + 1; Bi++) {
        let Io = 0,
          Un = 0;
        ((et = this.ClipDiagonalBound(Vn - Bi, Bi, Vn, Gn)),
          (Ye = this.ClipDiagonalBound(Vn + Bi, Bi, Vn, Gn)));
        for (let hi = et; hi <= Ye; hi += 2) {
          (hi === et || (hi < Ye && ki[hi - 1] < ki[hi + 1])
            ? (ae = ki[hi + 1])
            : (ae = ki[hi - 1] + 1),
            (bt = ae - (hi - Vn) - ga));
          const Vt = ae;
          for (; ae < x && bt < $ && this.ElementsAreEqual(ae + 1, bt + 1); )
            (ae++, bt++);
          if (
            ((ki[hi] = ae),
            ae + bt > Io + Un && ((Io = ae), (Un = bt)),
            !jn && Math.abs(hi - hn) <= Bi - 1 && ae >= bo[hi])
          )
            return (
              (ge[0] = ae),
              (Le[0] = bt),
              Vt <= bo[hi] && Bi <= 1448
                ? this.WALKTRACE(
                    Vn,
                    et,
                    Ye,
                    ga,
                    hn,
                    Pn,
                    Hn,
                    ho,
                    ki,
                    bo,
                    ae,
                    x,
                    ge,
                    bt,
                    $,
                    Le,
                    jn,
                    Ke,
                  )
                : null
            );
        }
        const ul = (Io - y + (Un - F) - Bi) / 2;
        if (
          this.ContinueProcessingPredicate !== null &&
          !this.ContinueProcessingPredicate(Io, ul)
        )
          return (
            (Ke[0] = !0),
            (ge[0] = Io),
            (Le[0] = Un),
            ul > 0 && Bi <= 1448
              ? this.WALKTRACE(
                  Vn,
                  et,
                  Ye,
                  ga,
                  hn,
                  Pn,
                  Hn,
                  ho,
                  ki,
                  bo,
                  ae,
                  x,
                  ge,
                  bt,
                  $,
                  Le,
                  jn,
                  Ke,
                )
              : (y++, F++, [new yR(y, x - y + 1, F, $ - F + 1)])
          );
        ((Pn = this.ClipDiagonalBound(hn - Bi, Bi, hn, Gn)),
          (Hn = this.ClipDiagonalBound(hn + Bi, Bi, hn, Gn)));
        for (let hi = Pn; hi <= Hn; hi += 2) {
          (hi === Pn || (hi < Hn && bo[hi - 1] >= bo[hi + 1])
            ? (ae = bo[hi + 1] - 1)
            : (ae = bo[hi - 1]),
            (bt = ae - (hi - hn) - ho));
          const Vt = ae;
          for (; ae > y && bt > F && this.ElementsAreEqual(ae, bt); )
            (ae--, bt--);
          if (((bo[hi] = ae), jn && Math.abs(hi - Vn) <= Bi && ae <= ki[hi]))
            return (
              (ge[0] = ae),
              (Le[0] = bt),
              Vt >= ki[hi] && Bi <= 1448
                ? this.WALKTRACE(
                    Vn,
                    et,
                    Ye,
                    ga,
                    hn,
                    Pn,
                    Hn,
                    ho,
                    ki,
                    bo,
                    ae,
                    x,
                    ge,
                    bt,
                    $,
                    Le,
                    jn,
                    Ke,
                  )
                : null
            );
        }
        if (Bi <= 1447) {
          let hi = new Int32Array(Ye - et + 2);
          ((hi[0] = Vn - et + 1),
            YL.Copy2(ki, et, hi, 1, Ye - et + 1),
            this.m_forwardHistory.push(hi),
            (hi = new Int32Array(Hn - Pn + 2)),
            (hi[0] = hn - Pn + 1),
            YL.Copy2(bo, Pn, hi, 1, Hn - Pn + 1),
            this.m_reverseHistory.push(hi));
        }
      }
      return this.WALKTRACE(
        Vn,
        et,
        Ye,
        ga,
        hn,
        Pn,
        Hn,
        ho,
        ki,
        bo,
        ae,
        x,
        ge,
        bt,
        $,
        Le,
        jn,
        Ke,
      );
    }
    PrettifyChanges(y) {
      for (let x = 0; x < y.length; x++) {
        const F = y[x],
          $ =
            x < y.length - 1
              ? y[x + 1].originalStart
              : this._originalElementsOrHash.length,
          ge =
            x < y.length - 1
              ? y[x + 1].modifiedStart
              : this._modifiedElementsOrHash.length,
          Le = F.originalLength > 0,
          Ke = F.modifiedLength > 0;
        for (
          ;
          F.originalStart + F.originalLength < $ &&
          F.modifiedStart + F.modifiedLength < ge &&
          (!Le ||
            this.OriginalElementsAreEqual(
              F.originalStart,
              F.originalStart + F.originalLength,
            )) &&
          (!Ke ||
            this.ModifiedElementsAreEqual(
              F.modifiedStart,
              F.modifiedStart + F.modifiedLength,
            ));
        ) {
          const bt = this.ElementsAreStrictEqual(
            F.originalStart,
            F.modifiedStart,
          );
          if (
            this.ElementsAreStrictEqual(
              F.originalStart + F.originalLength,
              F.modifiedStart + F.modifiedLength,
            ) &&
            !bt
          )
            break;
          (F.originalStart++, F.modifiedStart++);
        }
        const ae = [null];
        if (x < y.length - 1 && this.ChangesOverlap(y[x], y[x + 1], ae)) {
          ((y[x] = ae[0]), y.splice(x + 1, 1), x--);
          continue;
        }
      }
      for (let x = y.length - 1; x >= 0; x--) {
        const F = y[x];
        let $ = 0,
          ge = 0;
        if (x > 0) {
          const Ye = y[x - 1];
          (($ = Ye.originalStart + Ye.originalLength),
            (ge = Ye.modifiedStart + Ye.modifiedLength));
        }
        const Le = F.originalLength > 0,
          Ke = F.modifiedLength > 0;
        let ae = 0,
          bt = this._boundaryScore(
            F.originalStart,
            F.originalLength,
            F.modifiedStart,
            F.modifiedLength,
          );
        for (let Ye = 1; ; Ye++) {
          const Pn = F.originalStart - Ye,
            Hn = F.modifiedStart - Ye;
          if (
            Pn < $ ||
            Hn < ge ||
            (Le && !this.OriginalElementsAreEqual(Pn, Pn + F.originalLength)) ||
            (Ke && !this.ModifiedElementsAreEqual(Hn, Hn + F.modifiedLength))
          )
            break;
          const Gn =
            (Pn === $ && Hn === ge ? 5 : 0) +
            this._boundaryScore(Pn, F.originalLength, Hn, F.modifiedLength);
          Gn > bt && ((bt = Gn), (ae = Ye));
        }
        ((F.originalStart -= ae), (F.modifiedStart -= ae));
        const et = [null];
        if (x > 0 && this.ChangesOverlap(y[x - 1], y[x], et)) {
          ((y[x - 1] = et[0]), y.splice(x, 1), x++);
          continue;
        }
      }
      if (this._hasStrings)
        for (let x = 1, F = y.length; x < F; x++) {
          const $ = y[x - 1],
            ge = y[x],
            Le = ge.originalStart - $.originalStart - $.originalLength,
            Ke = $.originalStart,
            ae = ge.originalStart + ge.originalLength,
            bt = ae - Ke,
            et = $.modifiedStart,
            Ye = ge.modifiedStart + ge.modifiedLength,
            Pn = Ye - et;
          if (Le < 5 && bt < 20 && Pn < 20) {
            const Hn = this._findBetterContiguousSequence(Ke, bt, et, Pn, Le);
            if (Hn) {
              const [cr, Gn] = Hn;
              (cr !== $.originalStart + $.originalLength ||
                Gn !== $.modifiedStart + $.modifiedLength) &&
                (($.originalLength = cr - $.originalStart),
                ($.modifiedLength = Gn - $.modifiedStart),
                (ge.originalStart = cr + Le),
                (ge.modifiedStart = Gn + Le),
                (ge.originalLength = ae - ge.originalStart),
                (ge.modifiedLength = Ye - ge.modifiedStart));
            }
          }
        }
      return y;
    }
    _findBetterContiguousSequence(y, x, F, $, ge) {
      if (x < ge || $ < ge) return null;
      const Le = y + x - ge + 1,
        Ke = F + $ - ge + 1;
      let ae = 0,
        bt = 0,
        et = 0;
      for (let Ye = y; Ye < Le; Ye++)
        for (let Pn = F; Pn < Ke; Pn++) {
          const Hn = this._contiguousSequenceScore(Ye, Pn, ge);
          Hn > 0 && Hn > ae && ((ae = Hn), (bt = Ye), (et = Pn));
        }
      return ae > 0 ? [bt, et] : null;
    }
    _contiguousSequenceScore(y, x, F) {
      let $ = 0;
      for (let ge = 0; ge < F; ge++) {
        if (!this.ElementsAreEqual(y + ge, x + ge)) return 0;
        $ += this._originalStringElements[y + ge].length;
      }
      return $;
    }
    _OriginalIsBoundary(y) {
      return y <= 0 || y >= this._originalElementsOrHash.length - 1
        ? !0
        : this._hasStrings && /^\s*$/.test(this._originalStringElements[y]);
    }
    _OriginalRegionIsBoundary(y, x) {
      if (this._OriginalIsBoundary(y) || this._OriginalIsBoundary(y - 1))
        return !0;
      if (x > 0) {
        const F = y + x;
        if (this._OriginalIsBoundary(F - 1) || this._OriginalIsBoundary(F))
          return !0;
      }
      return !1;
    }
    _ModifiedIsBoundary(y) {
      return y <= 0 || y >= this._modifiedElementsOrHash.length - 1
        ? !0
        : this._hasStrings && /^\s*$/.test(this._modifiedStringElements[y]);
    }
    _ModifiedRegionIsBoundary(y, x) {
      if (this._ModifiedIsBoundary(y) || this._ModifiedIsBoundary(y - 1))
        return !0;
      if (x > 0) {
        const F = y + x;
        if (this._ModifiedIsBoundary(F - 1) || this._ModifiedIsBoundary(F))
          return !0;
      }
      return !1;
    }
    _boundaryScore(y, x, F, $) {
      const ge = this._OriginalRegionIsBoundary(y, x) ? 1 : 0,
        Le = this._ModifiedRegionIsBoundary(F, $) ? 1 : 0;
      return ge + Le;
    }
    ConcatenateChanges(y, x) {
      const F = [];
      if (y.length === 0 || x.length === 0) return x.length > 0 ? x : y;
      if (this.ChangesOverlap(y[y.length - 1], x[0], F)) {
        const $ = new Array(y.length + x.length - 1);
        return (
          YL.Copy(y, 0, $, 0, y.length - 1),
          ($[y.length - 1] = F[0]),
          YL.Copy(x, 1, $, y.length, x.length - 1),
          $
        );
      } else {
        const $ = new Array(y.length + x.length);
        return (
          YL.Copy(y, 0, $, 0, y.length),
          YL.Copy(x, 0, $, y.length, x.length),
          $
        );
      }
    }
    ChangesOverlap(y, x, F) {
      if (
        (XL.Assert(
          y.originalStart <= x.originalStart,
          "Left change is not less than or equal to right change",
        ),
        XL.Assert(
          y.modifiedStart <= x.modifiedStart,
          "Left change is not less than or equal to right change",
        ),
        y.originalStart + y.originalLength >= x.originalStart ||
          y.modifiedStart + y.modifiedLength >= x.modifiedStart)
      ) {
        const $ = y.originalStart;
        let ge = y.originalLength;
        const Le = y.modifiedStart;
        let Ke = y.modifiedLength;
        return (
          y.originalStart + y.originalLength >= x.originalStart &&
            (ge = x.originalStart + x.originalLength - y.originalStart),
          y.modifiedStart + y.modifiedLength >= x.modifiedStart &&
            (Ke = x.modifiedStart + x.modifiedLength - y.modifiedStart),
          (F[0] = new yR($, ge, Le, Ke)),
          !0
        );
      } else return ((F[0] = null), !1);
    }
    ClipDiagonalBound(y, x, F, $) {
      if (y >= 0 && y < $) return y;
      const ge = F,
        Le = $ - F - 1,
        Ke = x % 2 === 0;
      if (y < 0) {
        const ae = ge % 2 === 0;
        return Ke === ae ? 0 : 1;
      } else {
        const ae = Le % 2 === 0;
        return Ke === ae ? $ - 1 : $ - 2;
      }
    }
  }
  class Zc {
    constructor(y, x) {
      ((this.lineNumber = y), (this.column = x));
    }
    with(y = this.lineNumber, x = this.column) {
      return y === this.lineNumber && x === this.column ? this : new Zc(y, x);
    }
    delta(y = 0, x = 0) {
      return this.with(
        Math.max(1, this.lineNumber + y),
        Math.max(1, this.column + x),
      );
    }
    equals(y) {
      return Zc.equals(this, y);
    }
    static equals(y, x) {
      return !y && !x
        ? !0
        : !!y && !!x && y.lineNumber === x.lineNumber && y.column === x.column;
    }
    isBefore(y) {
      return Zc.isBefore(this, y);
    }
    static isBefore(y, x) {
      return y.lineNumber < x.lineNumber
        ? !0
        : x.lineNumber < y.lineNumber
          ? !1
          : y.column < x.column;
    }
    isBeforeOrEqual(y) {
      return Zc.isBeforeOrEqual(this, y);
    }
    static isBeforeOrEqual(y, x) {
      return y.lineNumber < x.lineNumber
        ? !0
        : x.lineNumber < y.lineNumber
          ? !1
          : y.column <= x.column;
    }
    static compare(y, x) {
      const F = y.lineNumber | 0,
        $ = x.lineNumber | 0;
      if (F === $) {
        const ge = y.column | 0,
          Le = x.column | 0;
        return ge - Le;
      }
      return F - $;
    }
    clone() {
      return new Zc(this.lineNumber, this.column);
    }
    toString() {
      return "(" + this.lineNumber + "," + this.column + ")";
    }
    static lift(y) {
      return new Zc(y.lineNumber, y.column);
    }
    static isIPosition(y) {
      return (
        !!y && typeof y.lineNumber == "number" && typeof y.column == "number"
      );
    }
    toJSON() {
      return { lineNumber: this.lineNumber, column: this.column };
    }
  }
  class ss {
    constructor(y, x, F, $) {
      y > F || (y === F && x > $)
        ? ((this.startLineNumber = F),
          (this.startColumn = $),
          (this.endLineNumber = y),
          (this.endColumn = x))
        : ((this.startLineNumber = y),
          (this.startColumn = x),
          (this.endLineNumber = F),
          (this.endColumn = $));
    }
    isEmpty() {
      return ss.isEmpty(this);
    }
    static isEmpty(y) {
      return (
        y.startLineNumber === y.endLineNumber && y.startColumn === y.endColumn
      );
    }
    containsPosition(y) {
      return ss.containsPosition(this, y);
    }
    static containsPosition(y, x) {
      return !(
        x.lineNumber < y.startLineNumber ||
        x.lineNumber > y.endLineNumber ||
        (x.lineNumber === y.startLineNumber && x.column < y.startColumn) ||
        (x.lineNumber === y.endLineNumber && x.column > y.endColumn)
      );
    }
    static strictContainsPosition(y, x) {
      return !(
        x.lineNumber < y.startLineNumber ||
        x.lineNumber > y.endLineNumber ||
        (x.lineNumber === y.startLineNumber && x.column <= y.startColumn) ||
        (x.lineNumber === y.endLineNumber && x.column >= y.endColumn)
      );
    }
    containsRange(y) {
      return ss.containsRange(this, y);
    }
    static containsRange(y, x) {
      return !(
        x.startLineNumber < y.startLineNumber ||
        x.endLineNumber < y.startLineNumber ||
        x.startLineNumber > y.endLineNumber ||
        x.endLineNumber > y.endLineNumber ||
        (x.startLineNumber === y.startLineNumber &&
          x.startColumn < y.startColumn) ||
        (x.endLineNumber === y.endLineNumber && x.endColumn > y.endColumn)
      );
    }
    strictContainsRange(y) {
      return ss.strictContainsRange(this, y);
    }
    static strictContainsRange(y, x) {
      return !(
        x.startLineNumber < y.startLineNumber ||
        x.endLineNumber < y.startLineNumber ||
        x.startLineNumber > y.endLineNumber ||
        x.endLineNumber > y.endLineNumber ||
        (x.startLineNumber === y.startLineNumber &&
          x.startColumn <= y.startColumn) ||
        (x.endLineNumber === y.endLineNumber && x.endColumn >= y.endColumn)
      );
    }
    plusRange(y) {
      return ss.plusRange(this, y);
    }
    static plusRange(y, x) {
      let F, $, ge, Le;
      return (
        x.startLineNumber < y.startLineNumber
          ? ((F = x.startLineNumber), ($ = x.startColumn))
          : x.startLineNumber === y.startLineNumber
            ? ((F = x.startLineNumber),
              ($ = Math.min(x.startColumn, y.startColumn)))
            : ((F = y.startLineNumber), ($ = y.startColumn)),
        x.endLineNumber > y.endLineNumber
          ? ((ge = x.endLineNumber), (Le = x.endColumn))
          : x.endLineNumber === y.endLineNumber
            ? ((ge = x.endLineNumber),
              (Le = Math.max(x.endColumn, y.endColumn)))
            : ((ge = y.endLineNumber), (Le = y.endColumn)),
        new ss(F, $, ge, Le)
      );
    }
    intersectRanges(y) {
      return ss.intersectRanges(this, y);
    }
    static intersectRanges(y, x) {
      let F = y.startLineNumber,
        $ = y.startColumn,
        ge = y.endLineNumber,
        Le = y.endColumn;
      const Ke = x.startLineNumber,
        ae = x.startColumn,
        bt = x.endLineNumber,
        et = x.endColumn;
      return (
        F < Ke ? ((F = Ke), ($ = ae)) : F === Ke && ($ = Math.max($, ae)),
        ge > bt ? ((ge = bt), (Le = et)) : ge === bt && (Le = Math.min(Le, et)),
        F > ge || (F === ge && $ > Le) ? null : new ss(F, $, ge, Le)
      );
    }
    equalsRange(y) {
      return ss.equalsRange(this, y);
    }
    static equalsRange(y, x) {
      return !y && !x
        ? !0
        : !!y &&
            !!x &&
            y.startLineNumber === x.startLineNumber &&
            y.startColumn === x.startColumn &&
            y.endLineNumber === x.endLineNumber &&
            y.endColumn === x.endColumn;
    }
    getEndPosition() {
      return ss.getEndPosition(this);
    }
    static getEndPosition(y) {
      return new Zc(y.endLineNumber, y.endColumn);
    }
    getStartPosition() {
      return ss.getStartPosition(this);
    }
    static getStartPosition(y) {
      return new Zc(y.startLineNumber, y.startColumn);
    }
    toString() {
      return (
        "[" +
        this.startLineNumber +
        "," +
        this.startColumn +
        " -> " +
        this.endLineNumber +
        "," +
        this.endColumn +
        "]"
      );
    }
    setEndPosition(y, x) {
      return new ss(this.startLineNumber, this.startColumn, y, x);
    }
    setStartPosition(y, x) {
      return new ss(y, x, this.endLineNumber, this.endColumn);
    }
    collapseToStart() {
      return ss.collapseToStart(this);
    }
    static collapseToStart(y) {
      return new ss(
        y.startLineNumber,
        y.startColumn,
        y.startLineNumber,
        y.startColumn,
      );
    }
    collapseToEnd() {
      return ss.collapseToEnd(this);
    }
    static collapseToEnd(y) {
      return new ss(y.endLineNumber, y.endColumn, y.endLineNumber, y.endColumn);
    }
    delta(y) {
      return new ss(
        this.startLineNumber + y,
        this.startColumn,
        this.endLineNumber + y,
        this.endColumn,
      );
    }
    isSingleLine() {
      return this.startLineNumber === this.endLineNumber;
    }
    static fromPositions(y, x = y) {
      return new ss(y.lineNumber, y.column, x.lineNumber, x.column);
    }
    static lift(y) {
      return y
        ? new ss(y.startLineNumber, y.startColumn, y.endLineNumber, y.endColumn)
        : null;
    }
    static isIRange(y) {
      return (
        !!y &&
        typeof y.startLineNumber == "number" &&
        typeof y.startColumn == "number" &&
        typeof y.endLineNumber == "number" &&
        typeof y.endColumn == "number"
      );
    }
    static areIntersectingOrTouching(y, x) {
      return !(
        y.endLineNumber < x.startLineNumber ||
        (y.endLineNumber === x.startLineNumber &&
          y.endColumn < x.startColumn) ||
        x.endLineNumber < y.startLineNumber ||
        (x.endLineNumber === y.startLineNumber && x.endColumn < y.startColumn)
      );
    }
    static areIntersecting(y, x) {
      return !(
        y.endLineNumber < x.startLineNumber ||
        (y.endLineNumber === x.startLineNumber &&
          y.endColumn <= x.startColumn) ||
        x.endLineNumber < y.startLineNumber ||
        (x.endLineNumber === y.startLineNumber && x.endColumn <= y.startColumn)
      );
    }
    static areOnlyIntersecting(y, x) {
      return !(
        y.endLineNumber < x.startLineNumber - 1 ||
        (y.endLineNumber === x.startLineNumber &&
          y.endColumn < x.startColumn - 1) ||
        x.endLineNumber < y.startLineNumber - 1 ||
        (x.endLineNumber === y.startLineNumber &&
          x.endColumn < y.startColumn - 1)
      );
    }
    static compareRangesUsingStarts(y, x) {
      if (y && x) {
        const ge = y.startLineNumber | 0,
          Le = x.startLineNumber | 0;
        if (ge === Le) {
          const Ke = y.startColumn | 0,
            ae = x.startColumn | 0;
          if (Ke === ae) {
            const bt = y.endLineNumber | 0,
              et = x.endLineNumber | 0;
            if (bt === et) {
              const Ye = y.endColumn | 0,
                Pn = x.endColumn | 0;
              return Ye - Pn;
            }
            return bt - et;
          }
          return Ke - ae;
        }
        return ge - Le;
      }
      return (y ? 1 : 0) - (x ? 1 : 0);
    }
    static compareRangesUsingEnds(y, x) {
      return y.endLineNumber === x.endLineNumber
        ? y.endColumn === x.endColumn
          ? y.startLineNumber === x.startLineNumber
            ? y.startColumn - x.startColumn
            : y.startLineNumber - x.startLineNumber
          : y.endColumn - x.endColumn
        : y.endLineNumber - x.endLineNumber;
    }
    static spansMultipleLines(y) {
      return y.endLineNumber > y.startLineNumber;
    }
    toJSON() {
      return this;
    }
  }
  function cve(b) {
    return b < 0 ? 0 : b > 255 ? 255 : b | 0;
  }
  function $L(b) {
    return b < 0 ? 0 : b > 4294967295 ? 4294967295 : b | 0;
  }
  class mQ {
    constructor(y) {
      const x = cve(y);
      ((this._defaultValue = x),
        (this._asciiMap = mQ._createAsciiMap(x)),
        (this._map = new Map()));
    }
    static _createAsciiMap(y) {
      const x = new Uint8Array(256);
      return (x.fill(y), x);
    }
    set(y, x) {
      const F = cve(x);
      y >= 0 && y < 256 ? (this._asciiMap[y] = F) : this._map.set(y, F);
    }
    get(y) {
      return y >= 0 && y < 256
        ? this._asciiMap[y]
        : this._map.get(y) || this._defaultValue;
    }
    clear() {
      (this._asciiMap.fill(this._defaultValue), this._map.clear());
    }
  }
  class Dze {
    constructor(y, x, F) {
      const $ = new Uint8Array(y * x);
      for (let ge = 0, Le = y * x; ge < Le; ge++) $[ge] = F;
      ((this._data = $), (this.rows = y), (this.cols = x));
    }
    get(y, x) {
      return this._data[y * this.cols + x];
    }
    set(y, x, F) {
      this._data[y * this.cols + x] = F;
    }
  }
  class Cze {
    constructor(y) {
      let x = 0,
        F = 0;
      for (let ge = 0, Le = y.length; ge < Le; ge++) {
        const [Ke, ae, bt] = y[ge];
        (ae > x && (x = ae), Ke > F && (F = Ke), bt > F && (F = bt));
      }
      (x++, F++);
      const $ = new Dze(F, x, 0);
      for (let ge = 0, Le = y.length; ge < Le; ge++) {
        const [Ke, ae, bt] = y[ge];
        $.set(Ke, ae, bt);
      }
      ((this._states = $), (this._maxCharCode = x));
    }
    nextState(y, x) {
      return x < 0 || x >= this._maxCharCode ? 0 : this._states.get(y, x);
    }
  }
  let hQ = null;
  function Nze() {
    return (
      hQ === null &&
        (hQ = new Cze([
          [1, 104, 2],
          [1, 72, 2],
          [1, 102, 6],
          [1, 70, 6],
          [2, 116, 3],
          [2, 84, 3],
          [3, 116, 4],
          [3, 84, 4],
          [4, 112, 5],
          [4, 80, 5],
          [5, 115, 9],
          [5, 83, 9],
          [5, 58, 10],
          [6, 105, 7],
          [6, 73, 7],
          [7, 108, 8],
          [7, 76, 8],
          [8, 101, 9],
          [8, 69, 9],
          [9, 58, 10],
          [10, 47, 11],
          [11, 47, 12],
        ])),
      hQ
    );
  }
  let D8 = null;
  function Mze() {
    if (D8 === null) {
      D8 = new mQ(0);
      const b = ` 	<>'"、。｡､，．: ；‘〈「『〔（［｛｢｣｝］）〕』」〉’｀～…|`;
      for (let x = 0; x < b.length; x++) D8.set(b.charCodeAt(x), 1);
      const y = ".,;:";
      for (let x = 0; x < y.length; x++) D8.set(y.charCodeAt(x), 2);
    }
    return D8;
  }
  class yB {
    static _createLink(y, x, F, $, ge) {
      let Le = ge - 1;
      do {
        const Ke = x.charCodeAt(Le);
        if (y.get(Ke) !== 2) break;
        Le--;
      } while (Le > $);
      if ($ > 0) {
        const Ke = x.charCodeAt($ - 1),
          ae = x.charCodeAt(Le);
        ((Ke === 40 && ae === 41) ||
          (Ke === 91 && ae === 93) ||
          (Ke === 123 && ae === 125)) &&
          Le--;
      }
      return {
        range: {
          startLineNumber: F,
          startColumn: $ + 1,
          endLineNumber: F,
          endColumn: Le + 2,
        },
        url: x.substring($, Le + 1),
      };
    }
    static computeLinks(y, x = Nze()) {
      const F = Mze(),
        $ = [];
      for (let ge = 1, Le = y.getLineCount(); ge <= Le; ge++) {
        const Ke = y.getLineContent(ge),
          ae = Ke.length;
        let bt = 0,
          et = 0,
          Ye = 0,
          Pn = 1,
          Hn = !1,
          cr = !1,
          Gn = !1,
          ki = !1;
        for (; bt < ae; ) {
          let bo = !1;
          const Vn = Ke.charCodeAt(bt);
          if (Pn === 13) {
            let hn;
            switch (Vn) {
              case 40:
                ((Hn = !0), (hn = 0));
                break;
              case 41:
                hn = Hn ? 0 : 1;
                break;
              case 91:
                ((Gn = !0), (cr = !0), (hn = 0));
                break;
              case 93:
                ((Gn = !1), (hn = cr ? 0 : 1));
                break;
              case 123:
                ((ki = !0), (hn = 0));
                break;
              case 125:
                hn = ki ? 0 : 1;
                break;
              case 39:
              case 34:
              case 96:
                Ye === Vn
                  ? (hn = 1)
                  : Ye === 39 || Ye === 34 || Ye === 96
                    ? (hn = 0)
                    : (hn = 1);
                break;
              case 42:
                hn = Ye === 42 ? 1 : 0;
                break;
              case 32:
                hn = Gn ? 0 : 1;
                break;
              default:
                hn = F.get(Vn);
            }
            hn === 1 && ($.push(yB._createLink(F, Ke, ge, et, bt)), (bo = !0));
          } else if (Pn === 12) {
            let hn;
            (Vn === 91 ? ((cr = !0), (hn = 0)) : (hn = F.get(Vn)),
              hn === 1 ? (bo = !0) : (Pn = 13));
          } else ((Pn = x.nextState(Pn, Vn)), Pn === 0 && (bo = !0));
          (bo &&
            ((Pn = 1),
            (Hn = !1),
            (cr = !1),
            (ki = !1),
            (et = bt + 1),
            (Ye = Vn)),
            bt++);
        }
        Pn === 13 && $.push(yB._createLink(F, Ke, ge, et, ae));
      }
      return $;
    }
  }
  function Pze(b) {
    return !b ||
      typeof b.getLineCount != "function" ||
      typeof b.getLineContent != "function"
      ? []
      : yB.computeLinks(b);
  }
  const PB = class PB {
    constructor() {
      this._defaultValueSet = [
        ["true", "false"],
        ["True", "False"],
        [
          "Private",
          "Public",
          "Friend",
          "ReadOnly",
          "Partial",
          "Protected",
          "WriteOnly",
        ],
        ["public", "protected", "private"],
      ];
    }
    navigateValueSet(y, x, F, $, ge) {
      if (y && x) {
        const Le = this.doNavigateValueSet(x, ge);
        if (Le) return { range: y, value: Le };
      }
      if (F && $) {
        const Le = this.doNavigateValueSet($, ge);
        if (Le) return { range: F, value: Le };
      }
      return null;
    }
    doNavigateValueSet(y, x) {
      const F = this.numberReplace(y, x);
      return F !== null ? F : this.textReplace(y, x);
    }
    numberReplace(y, x) {
      const F = Math.pow(10, y.length - (y.lastIndexOf(".") + 1));
      let $ = Number(y);
      const ge = parseFloat(y);
      return !isNaN($) && !isNaN(ge) && $ === ge
        ? $ === 0 && !x
          ? null
          : (($ = Math.floor($ * F)), ($ += x ? F : -F), String($ / F))
        : null;
    }
    textReplace(y, x) {
      return this.valueSetsReplace(this._defaultValueSet, y, x);
    }
    valueSetsReplace(y, x, F) {
      let $ = null;
      for (let ge = 0, Le = y.length; $ === null && ge < Le; ge++)
        $ = this.valueSetReplace(y[ge], x, F);
      return $;
    }
    valueSetReplace(y, x, F) {
      let $ = y.indexOf(x);
      return $ >= 0
        ? (($ += F ? 1 : -1),
          $ < 0 ? ($ = y.length - 1) : ($ %= y.length),
          y[$])
        : null;
    }
  };
  PB.INSTANCE = new PB();
  let _Q = PB;
  const dve = Object.freeze(function (b, y) {
    const x = setTimeout(b.bind(y), 0);
    return {
      dispose() {
        clearTimeout(x);
      },
    };
  });
  var vB;
  (function (b) {
    function y(x) {
      return x === b.None || x === b.Cancelled || x instanceof bB
        ? !0
        : !x || typeof x != "object"
          ? !1
          : typeof x.isCancellationRequested == "boolean" &&
            typeof x.onCancellationRequested == "function";
    }
    ((b.isCancellationToken = y),
      (b.None = Object.freeze({
        isCancellationRequested: !1,
        onCancellationRequested: nQ.None,
      })),
      (b.Cancelled = Object.freeze({
        isCancellationRequested: !0,
        onCancellationRequested: dve,
      })));
  })(vB || (vB = {}));
  class bB {
    constructor() {
      ((this._isCancelled = !1), (this._emitter = null));
    }
    cancel() {
      this._isCancelled ||
        ((this._isCancelled = !0),
        this._emitter && (this._emitter.fire(void 0), this.dispose()));
    }
    get isCancellationRequested() {
      return this._isCancelled;
    }
    get onCancellationRequested() {
      return this._isCancelled
        ? dve
        : (this._emitter || (this._emitter = new WE()), this._emitter.event);
    }
    dispose() {
      this._emitter && (this._emitter.dispose(), (this._emitter = null));
    }
  }
  class Lze {
    constructor(y) {
      ((this._token = void 0),
        (this._parentListener = void 0),
        (this._parentListener =
          y && y.onCancellationRequested(this.cancel, this)));
    }
    get token() {
      return (this._token || (this._token = new bB()), this._token);
    }
    cancel() {
      this._token
        ? this._token instanceof bB && this._token.cancel()
        : (this._token = vB.Cancelled);
    }
    dispose(y = !1) {
      (y && this.cancel(),
        this._parentListener?.dispose(),
        this._token
          ? this._token instanceof bB && this._token.dispose()
          : (this._token = vB.None));
    }
  }
  class gQ {
    constructor() {
      ((this._keyCodeToStr = []), (this._strToKeyCode = Object.create(null)));
    }
    define(y, x) {
      ((this._keyCodeToStr[y] = x), (this._strToKeyCode[x.toLowerCase()] = y));
    }
    keyCodeToStr(y) {
      return this._keyCodeToStr[y];
    }
    strToKeyCode(y) {
      return this._strToKeyCode[y.toLowerCase()] || 0;
    }
  }
  const TB = new gQ(),
    yQ = new gQ(),
    vQ = new gQ(),
    kze = new Array(230),
    wze = Object.create(null),
    Oze = Object.create(null);
  (function () {
    const y = [
        [1, 0, "None", 0, "unknown", 0, "VK_UNKNOWN", "", ""],
        [1, 1, "Hyper", 0, "", 0, "", "", ""],
        [1, 2, "Super", 0, "", 0, "", "", ""],
        [1, 3, "Fn", 0, "", 0, "", "", ""],
        [1, 4, "FnLock", 0, "", 0, "", "", ""],
        [1, 5, "Suspend", 0, "", 0, "", "", ""],
        [1, 6, "Resume", 0, "", 0, "", "", ""],
        [1, 7, "Turbo", 0, "", 0, "", "", ""],
        [1, 8, "Sleep", 0, "", 0, "VK_SLEEP", "", ""],
        [1, 9, "WakeUp", 0, "", 0, "", "", ""],
        [0, 10, "KeyA", 31, "A", 65, "VK_A", "", ""],
        [0, 11, "KeyB", 32, "B", 66, "VK_B", "", ""],
        [0, 12, "KeyC", 33, "C", 67, "VK_C", "", ""],
        [0, 13, "KeyD", 34, "D", 68, "VK_D", "", ""],
        [0, 14, "KeyE", 35, "E", 69, "VK_E", "", ""],
        [0, 15, "KeyF", 36, "F", 70, "VK_F", "", ""],
        [0, 16, "KeyG", 37, "G", 71, "VK_G", "", ""],
        [0, 17, "KeyH", 38, "H", 72, "VK_H", "", ""],
        [0, 18, "KeyI", 39, "I", 73, "VK_I", "", ""],
        [0, 19, "KeyJ", 40, "J", 74, "VK_J", "", ""],
        [0, 20, "KeyK", 41, "K", 75, "VK_K", "", ""],
        [0, 21, "KeyL", 42, "L", 76, "VK_L", "", ""],
        [0, 22, "KeyM", 43, "M", 77, "VK_M", "", ""],
        [0, 23, "KeyN", 44, "N", 78, "VK_N", "", ""],
        [0, 24, "KeyO", 45, "O", 79, "VK_O", "", ""],
        [0, 25, "KeyP", 46, "P", 80, "VK_P", "", ""],
        [0, 26, "KeyQ", 47, "Q", 81, "VK_Q", "", ""],
        [0, 27, "KeyR", 48, "R", 82, "VK_R", "", ""],
        [0, 28, "KeyS", 49, "S", 83, "VK_S", "", ""],
        [0, 29, "KeyT", 50, "T", 84, "VK_T", "", ""],
        [0, 30, "KeyU", 51, "U", 85, "VK_U", "", ""],
        [0, 31, "KeyV", 52, "V", 86, "VK_V", "", ""],
        [0, 32, "KeyW", 53, "W", 87, "VK_W", "", ""],
        [0, 33, "KeyX", 54, "X", 88, "VK_X", "", ""],
        [0, 34, "KeyY", 55, "Y", 89, "VK_Y", "", ""],
        [0, 35, "KeyZ", 56, "Z", 90, "VK_Z", "", ""],
        [0, 36, "Digit1", 22, "1", 49, "VK_1", "", ""],
        [0, 37, "Digit2", 23, "2", 50, "VK_2", "", ""],
        [0, 38, "Digit3", 24, "3", 51, "VK_3", "", ""],
        [0, 39, "Digit4", 25, "4", 52, "VK_4", "", ""],
        [0, 40, "Digit5", 26, "5", 53, "VK_5", "", ""],
        [0, 41, "Digit6", 27, "6", 54, "VK_6", "", ""],
        [0, 42, "Digit7", 28, "7", 55, "VK_7", "", ""],
        [0, 43, "Digit8", 29, "8", 56, "VK_8", "", ""],
        [0, 44, "Digit9", 30, "9", 57, "VK_9", "", ""],
        [0, 45, "Digit0", 21, "0", 48, "VK_0", "", ""],
        [1, 46, "Enter", 3, "Enter", 13, "VK_RETURN", "", ""],
        [1, 47, "Escape", 9, "Escape", 27, "VK_ESCAPE", "", ""],
        [1, 48, "Backspace", 1, "Backspace", 8, "VK_BACK", "", ""],
        [1, 49, "Tab", 2, "Tab", 9, "VK_TAB", "", ""],
        [1, 50, "Space", 10, "Space", 32, "VK_SPACE", "", ""],
        [0, 51, "Minus", 88, "-", 189, "VK_OEM_MINUS", "-", "OEM_MINUS"],
        [0, 52, "Equal", 86, "=", 187, "VK_OEM_PLUS", "=", "OEM_PLUS"],
        [0, 53, "BracketLeft", 92, "[", 219, "VK_OEM_4", "[", "OEM_4"],
        [0, 54, "BracketRight", 94, "]", 221, "VK_OEM_6", "]", "OEM_6"],
        [0, 55, "Backslash", 93, "\\", 220, "VK_OEM_5", "\\", "OEM_5"],
        [0, 56, "IntlHash", 0, "", 0, "", "", ""],
        [0, 57, "Semicolon", 85, ";", 186, "VK_OEM_1", ";", "OEM_1"],
        [0, 58, "Quote", 95, "'", 222, "VK_OEM_7", "'", "OEM_7"],
        [0, 59, "Backquote", 91, "`", 192, "VK_OEM_3", "`", "OEM_3"],
        [0, 60, "Comma", 87, ",", 188, "VK_OEM_COMMA", ",", "OEM_COMMA"],
        [0, 61, "Period", 89, ".", 190, "VK_OEM_PERIOD", ".", "OEM_PERIOD"],
        [0, 62, "Slash", 90, "/", 191, "VK_OEM_2", "/", "OEM_2"],
        [1, 63, "CapsLock", 8, "CapsLock", 20, "VK_CAPITAL", "", ""],
        [1, 64, "F1", 59, "F1", 112, "VK_F1", "", ""],
        [1, 65, "F2", 60, "F2", 113, "VK_F2", "", ""],
        [1, 66, "F3", 61, "F3", 114, "VK_F3", "", ""],
        [1, 67, "F4", 62, "F4", 115, "VK_F4", "", ""],
        [1, 68, "F5", 63, "F5", 116, "VK_F5", "", ""],
        [1, 69, "F6", 64, "F6", 117, "VK_F6", "", ""],
        [1, 70, "F7", 65, "F7", 118, "VK_F7", "", ""],
        [1, 71, "F8", 66, "F8", 119, "VK_F8", "", ""],
        [1, 72, "F9", 67, "F9", 120, "VK_F9", "", ""],
        [1, 73, "F10", 68, "F10", 121, "VK_F10", "", ""],
        [1, 74, "F11", 69, "F11", 122, "VK_F11", "", ""],
        [1, 75, "F12", 70, "F12", 123, "VK_F12", "", ""],
        [1, 76, "PrintScreen", 0, "", 0, "", "", ""],
        [1, 77, "ScrollLock", 84, "ScrollLock", 145, "VK_SCROLL", "", ""],
        [1, 78, "Pause", 7, "PauseBreak", 19, "VK_PAUSE", "", ""],
        [1, 79, "Insert", 19, "Insert", 45, "VK_INSERT", "", ""],
        [1, 80, "Home", 14, "Home", 36, "VK_HOME", "", ""],
        [1, 81, "PageUp", 11, "PageUp", 33, "VK_PRIOR", "", ""],
        [1, 82, "Delete", 20, "Delete", 46, "VK_DELETE", "", ""],
        [1, 83, "End", 13, "End", 35, "VK_END", "", ""],
        [1, 84, "PageDown", 12, "PageDown", 34, "VK_NEXT", "", ""],
        [1, 85, "ArrowRight", 17, "RightArrow", 39, "VK_RIGHT", "Right", ""],
        [1, 86, "ArrowLeft", 15, "LeftArrow", 37, "VK_LEFT", "Left", ""],
        [1, 87, "ArrowDown", 18, "DownArrow", 40, "VK_DOWN", "Down", ""],
        [1, 88, "ArrowUp", 16, "UpArrow", 38, "VK_UP", "Up", ""],
        [1, 89, "NumLock", 83, "NumLock", 144, "VK_NUMLOCK", "", ""],
        [1, 90, "NumpadDivide", 113, "NumPad_Divide", 111, "VK_DIVIDE", "", ""],
        [
          1,
          91,
          "NumpadMultiply",
          108,
          "NumPad_Multiply",
          106,
          "VK_MULTIPLY",
          "",
          "",
        ],
        [
          1,
          92,
          "NumpadSubtract",
          111,
          "NumPad_Subtract",
          109,
          "VK_SUBTRACT",
          "",
          "",
        ],
        [1, 93, "NumpadAdd", 109, "NumPad_Add", 107, "VK_ADD", "", ""],
        [1, 94, "NumpadEnter", 3, "", 0, "", "", ""],
        [1, 95, "Numpad1", 99, "NumPad1", 97, "VK_NUMPAD1", "", ""],
        [1, 96, "Numpad2", 100, "NumPad2", 98, "VK_NUMPAD2", "", ""],
        [1, 97, "Numpad3", 101, "NumPad3", 99, "VK_NUMPAD3", "", ""],
        [1, 98, "Numpad4", 102, "NumPad4", 100, "VK_NUMPAD4", "", ""],
        [1, 99, "Numpad5", 103, "NumPad5", 101, "VK_NUMPAD5", "", ""],
        [1, 100, "Numpad6", 104, "NumPad6", 102, "VK_NUMPAD6", "", ""],
        [1, 101, "Numpad7", 105, "NumPad7", 103, "VK_NUMPAD7", "", ""],
        [1, 102, "Numpad8", 106, "NumPad8", 104, "VK_NUMPAD8", "", ""],
        [1, 103, "Numpad9", 107, "NumPad9", 105, "VK_NUMPAD9", "", ""],
        [1, 104, "Numpad0", 98, "NumPad0", 96, "VK_NUMPAD0", "", ""],
        [
          1,
          105,
          "NumpadDecimal",
          112,
          "NumPad_Decimal",
          110,
          "VK_DECIMAL",
          "",
          "",
        ],
        [0, 106, "IntlBackslash", 97, "OEM_102", 226, "VK_OEM_102", "", ""],
        [1, 107, "ContextMenu", 58, "ContextMenu", 93, "", "", ""],
        [1, 108, "Power", 0, "", 0, "", "", ""],
        [1, 109, "NumpadEqual", 0, "", 0, "", "", ""],
        [1, 110, "F13", 71, "F13", 124, "VK_F13", "", ""],
        [1, 111, "F14", 72, "F14", 125, "VK_F14", "", ""],
        [1, 112, "F15", 73, "F15", 126, "VK_F15", "", ""],
        [1, 113, "F16", 74, "F16", 127, "VK_F16", "", ""],
        [1, 114, "F17", 75, "F17", 128, "VK_F17", "", ""],
        [1, 115, "F18", 76, "F18", 129, "VK_F18", "", ""],
        [1, 116, "F19", 77, "F19", 130, "VK_F19", "", ""],
        [1, 117, "F20", 78, "F20", 131, "VK_F20", "", ""],
        [1, 118, "F21", 79, "F21", 132, "VK_F21", "", ""],
        [1, 119, "F22", 80, "F22", 133, "VK_F22", "", ""],
        [1, 120, "F23", 81, "F23", 134, "VK_F23", "", ""],
        [1, 121, "F24", 82, "F24", 135, "VK_F24", "", ""],
        [1, 122, "Open", 0, "", 0, "", "", ""],
        [1, 123, "Help", 0, "", 0, "", "", ""],
        [1, 124, "Select", 0, "", 0, "", "", ""],
        [1, 125, "Again", 0, "", 0, "", "", ""],
        [1, 126, "Undo", 0, "", 0, "", "", ""],
        [1, 127, "Cut", 0, "", 0, "", "", ""],
        [1, 128, "Copy", 0, "", 0, "", "", ""],
        [1, 129, "Paste", 0, "", 0, "", "", ""],
        [1, 130, "Find", 0, "", 0, "", "", ""],
        [
          1,
          131,
          "AudioVolumeMute",
          117,
          "AudioVolumeMute",
          173,
          "VK_VOLUME_MUTE",
          "",
          "",
        ],
        [
          1,
          132,
          "AudioVolumeUp",
          118,
          "AudioVolumeUp",
          175,
          "VK_VOLUME_UP",
          "",
          "",
        ],
        [
          1,
          133,
          "AudioVolumeDown",
          119,
          "AudioVolumeDown",
          174,
          "VK_VOLUME_DOWN",
          "",
          "",
        ],
        [
          1,
          134,
          "NumpadComma",
          110,
          "NumPad_Separator",
          108,
          "VK_SEPARATOR",
          "",
          "",
        ],
        [0, 135, "IntlRo", 115, "ABNT_C1", 193, "VK_ABNT_C1", "", ""],
        [1, 136, "KanaMode", 0, "", 0, "", "", ""],
        [0, 137, "IntlYen", 0, "", 0, "", "", ""],
        [1, 138, "Convert", 0, "", 0, "", "", ""],
        [1, 139, "NonConvert", 0, "", 0, "", "", ""],
        [1, 140, "Lang1", 0, "", 0, "", "", ""],
        [1, 141, "Lang2", 0, "", 0, "", "", ""],
        [1, 142, "Lang3", 0, "", 0, "", "", ""],
        [1, 143, "Lang4", 0, "", 0, "", "", ""],
        [1, 144, "Lang5", 0, "", 0, "", "", ""],
        [1, 145, "Abort", 0, "", 0, "", "", ""],
        [1, 146, "Props", 0, "", 0, "", "", ""],
        [1, 147, "NumpadParenLeft", 0, "", 0, "", "", ""],
        [1, 148, "NumpadParenRight", 0, "", 0, "", "", ""],
        [1, 149, "NumpadBackspace", 0, "", 0, "", "", ""],
        [1, 150, "NumpadMemoryStore", 0, "", 0, "", "", ""],
        [1, 151, "NumpadMemoryRecall", 0, "", 0, "", "", ""],
        [1, 152, "NumpadMemoryClear", 0, "", 0, "", "", ""],
        [1, 153, "NumpadMemoryAdd", 0, "", 0, "", "", ""],
        [1, 154, "NumpadMemorySubtract", 0, "", 0, "", "", ""],
        [1, 155, "NumpadClear", 131, "Clear", 12, "VK_CLEAR", "", ""],
        [1, 156, "NumpadClearEntry", 0, "", 0, "", "", ""],
        [1, 0, "", 5, "Ctrl", 17, "VK_CONTROL", "", ""],
        [1, 0, "", 4, "Shift", 16, "VK_SHIFT", "", ""],
        [1, 0, "", 6, "Alt", 18, "VK_MENU", "", ""],
        [1, 0, "", 57, "Meta", 91, "VK_COMMAND", "", ""],
        [1, 157, "ControlLeft", 5, "", 0, "VK_LCONTROL", "", ""],
        [1, 158, "ShiftLeft", 4, "", 0, "VK_LSHIFT", "", ""],
        [1, 159, "AltLeft", 6, "", 0, "VK_LMENU", "", ""],
        [1, 160, "MetaLeft", 57, "", 0, "VK_LWIN", "", ""],
        [1, 161, "ControlRight", 5, "", 0, "VK_RCONTROL", "", ""],
        [1, 162, "ShiftRight", 4, "", 0, "VK_RSHIFT", "", ""],
        [1, 163, "AltRight", 6, "", 0, "VK_RMENU", "", ""],
        [1, 164, "MetaRight", 57, "", 0, "VK_RWIN", "", ""],
        [1, 165, "BrightnessUp", 0, "", 0, "", "", ""],
        [1, 166, "BrightnessDown", 0, "", 0, "", "", ""],
        [1, 167, "MediaPlay", 0, "", 0, "", "", ""],
        [1, 168, "MediaRecord", 0, "", 0, "", "", ""],
        [1, 169, "MediaFastForward", 0, "", 0, "", "", ""],
        [1, 170, "MediaRewind", 0, "", 0, "", "", ""],
        [
          1,
          171,
          "MediaTrackNext",
          124,
          "MediaTrackNext",
          176,
          "VK_MEDIA_NEXT_TRACK",
          "",
          "",
        ],
        [
          1,
          172,
          "MediaTrackPrevious",
          125,
          "MediaTrackPrevious",
          177,
          "VK_MEDIA_PREV_TRACK",
          "",
          "",
        ],
        [1, 173, "MediaStop", 126, "MediaStop", 178, "VK_MEDIA_STOP", "", ""],
        [1, 174, "Eject", 0, "", 0, "", "", ""],
        [
          1,
          175,
          "MediaPlayPause",
          127,
          "MediaPlayPause",
          179,
          "VK_MEDIA_PLAY_PAUSE",
          "",
          "",
        ],
        [
          1,
          176,
          "MediaSelect",
          128,
          "LaunchMediaPlayer",
          181,
          "VK_MEDIA_LAUNCH_MEDIA_SELECT",
          "",
          "",
        ],
        [
          1,
          177,
          "LaunchMail",
          129,
          "LaunchMail",
          180,
          "VK_MEDIA_LAUNCH_MAIL",
          "",
          "",
        ],
        [
          1,
          178,
          "LaunchApp2",
          130,
          "LaunchApp2",
          183,
          "VK_MEDIA_LAUNCH_APP2",
          "",
          "",
        ],
        [1, 179, "LaunchApp1", 0, "", 0, "VK_MEDIA_LAUNCH_APP1", "", ""],
        [1, 180, "SelectTask", 0, "", 0, "", "", ""],
        [1, 181, "LaunchScreenSaver", 0, "", 0, "", "", ""],
        [
          1,
          182,
          "BrowserSearch",
          120,
          "BrowserSearch",
          170,
          "VK_BROWSER_SEARCH",
          "",
          "",
        ],
        [
          1,
          183,
          "BrowserHome",
          121,
          "BrowserHome",
          172,
          "VK_BROWSER_HOME",
          "",
          "",
        ],
        [
          1,
          184,
          "BrowserBack",
          122,
          "BrowserBack",
          166,
          "VK_BROWSER_BACK",
          "",
          "",
        ],
        [
          1,
          185,
          "BrowserForward",
          123,
          "BrowserForward",
          167,
          "VK_BROWSER_FORWARD",
          "",
          "",
        ],
        [1, 186, "BrowserStop", 0, "", 0, "VK_BROWSER_STOP", "", ""],
        [1, 187, "BrowserRefresh", 0, "", 0, "VK_BROWSER_REFRESH", "", ""],
        [1, 188, "BrowserFavorites", 0, "", 0, "VK_BROWSER_FAVORITES", "", ""],
        [1, 189, "ZoomToggle", 0, "", 0, "", "", ""],
        [1, 190, "MailReply", 0, "", 0, "", "", ""],
        [1, 191, "MailForward", 0, "", 0, "", "", ""],
        [1, 192, "MailSend", 0, "", 0, "", "", ""],
        [1, 0, "", 114, "KeyInComposition", 229, "", "", ""],
        [1, 0, "", 116, "ABNT_C2", 194, "VK_ABNT_C2", "", ""],
        [1, 0, "", 96, "OEM_8", 223, "VK_OEM_8", "", ""],
        [1, 0, "", 0, "", 0, "VK_KANA", "", ""],
        [1, 0, "", 0, "", 0, "VK_HANGUL", "", ""],
        [1, 0, "", 0, "", 0, "VK_JUNJA", "", ""],
        [1, 0, "", 0, "", 0, "VK_FINAL", "", ""],
        [1, 0, "", 0, "", 0, "VK_HANJA", "", ""],
        [1, 0, "", 0, "", 0, "VK_KANJI", "", ""],
        [1, 0, "", 0, "", 0, "VK_CONVERT", "", ""],
        [1, 0, "", 0, "", 0, "VK_NONCONVERT", "", ""],
        [1, 0, "", 0, "", 0, "VK_ACCEPT", "", ""],
        [1, 0, "", 0, "", 0, "VK_MODECHANGE", "", ""],
        [1, 0, "", 0, "", 0, "VK_SELECT", "", ""],
        [1, 0, "", 0, "", 0, "VK_PRINT", "", ""],
        [1, 0, "", 0, "", 0, "VK_EXECUTE", "", ""],
        [1, 0, "", 0, "", 0, "VK_SNAPSHOT", "", ""],
        [1, 0, "", 0, "", 0, "VK_HELP", "", ""],
        [1, 0, "", 0, "", 0, "VK_APPS", "", ""],
        [1, 0, "", 0, "", 0, "VK_PROCESSKEY", "", ""],
        [1, 0, "", 0, "", 0, "VK_PACKET", "", ""],
        [1, 0, "", 0, "", 0, "VK_DBE_SBCSCHAR", "", ""],
        [1, 0, "", 0, "", 0, "VK_DBE_DBCSCHAR", "", ""],
        [1, 0, "", 0, "", 0, "VK_ATTN", "", ""],
        [1, 0, "", 0, "", 0, "VK_CRSEL", "", ""],
        [1, 0, "", 0, "", 0, "VK_EXSEL", "", ""],
        [1, 0, "", 0, "", 0, "VK_EREOF", "", ""],
        [1, 0, "", 0, "", 0, "VK_PLAY", "", ""],
        [1, 0, "", 0, "", 0, "VK_ZOOM", "", ""],
        [1, 0, "", 0, "", 0, "VK_NONAME", "", ""],
        [1, 0, "", 0, "", 0, "VK_PA1", "", ""],
        [1, 0, "", 0, "", 0, "VK_OEM_CLEAR", "", ""],
      ],
      x = [],
      F = [];
    for (const $ of y) {
      const [ge, Le, Ke, ae, bt, et, Ye, Pn, Hn] = $;
      if (
        (F[Le] || ((F[Le] = !0), (wze[Ke] = Le), (Oze[Ke.toLowerCase()] = Le)),
        !x[ae])
      ) {
        if (((x[ae] = !0), !bt))
          throw new Error(
            `String representation missing for key code ${ae} around scan code ${Ke}`,
          );
        (TB.define(ae, bt),
          yQ.define(ae, Pn || bt),
          vQ.define(ae, Hn || Pn || bt));
      }
      et && (kze[et] = ae);
    }
  })();
  var uve;
  (function (b) {
    function y(Ke) {
      return TB.keyCodeToStr(Ke);
    }
    b.toString = y;
    function x(Ke) {
      return TB.strToKeyCode(Ke);
    }
    b.fromString = x;
    function F(Ke) {
      return yQ.keyCodeToStr(Ke);
    }
    b.toUserSettingsUS = F;
    function $(Ke) {
      return vQ.keyCodeToStr(Ke);
    }
    b.toUserSettingsGeneral = $;
    function ge(Ke) {
      return yQ.strToKeyCode(Ke) || vQ.strToKeyCode(Ke);
    }
    b.fromUserSettings = ge;
    function Le(Ke) {
      if (Ke >= 98 && Ke <= 113) return null;
      switch (Ke) {
        case 16:
          return "Up";
        case 18:
          return "Down";
        case 15:
          return "Left";
        case 17:
          return "Right";
      }
      return TB.keyCodeToStr(Ke);
    }
    b.toElectronAccelerator = Le;
  })(uve || (uve = {}));
  function Wze(b, y) {
    const x = ((y & 65535) << 16) >>> 0;
    return (b | x) >>> 0;
  }
  let QL;
  const bQ = globalThis.vscode;
  if (typeof bQ < "u" && typeof bQ.process < "u") {
    const b = bQ.process;
    QL = {
      get platform() {
        return b.platform;
      },
      get arch() {
        return b.arch;
      },
      get env() {
        return b.env;
      },
      cwd() {
        return b.cwd();
      },
    };
  } else
    typeof process < "u" && typeof process?.versions?.node == "string"
      ? (QL = {
          get platform() {
            return process.platform;
          },
          get arch() {
            return process.arch;
          },
          get env() {
            return process.env;
          },
          cwd() {
            return process.env.VSCODE_CWD || process.cwd();
          },
        })
      : (QL = {
          get platform() {
            return I8 ? "win32" : tze ? "darwin" : "linux";
          },
          get arch() {},
          get env() {
            return {};
          },
          cwd() {
            return "/";
          },
        });
  const SB = QL.cwd,
    Fze = QL.env,
    zze = QL.platform,
    Bze = 65,
    Gze = 97,
    Vze = 90,
    jze = 122,
    lN = 46,
    Oh = 47,
    Jy = 92,
    jA = 58,
    Uze = 63;
  class pve extends Error {
    constructor(y, x, F) {
      let $;
      typeof x == "string" && x.indexOf("not ") === 0
        ? (($ = "must not be"), (x = x.replace(/^not /, "")))
        : ($ = "must be");
      const ge = y.indexOf(".") !== -1 ? "property" : "argument";
      let Le = `The "${y}" ${ge} ${$} of type ${x}`;
      ((Le += `. Received type ${typeof F}`),
        super(Le),
        (this.code = "ERR_INVALID_ARG_TYPE"));
    }
  }
  function Hze(b, y) {
    if (b === null || typeof b != "object") throw new pve(y, "Object", b);
  }
  function Lf(b, y) {
    if (typeof b != "string") throw new pve(y, "string", b);
  }
  const bR = zze === "win32";
  function Yl(b) {
    return b === Oh || b === Jy;
  }
  function TQ(b) {
    return b === Oh;
  }
  function UA(b) {
    return (b >= Bze && b <= Vze) || (b >= Gze && b <= jze);
  }
  function EB(b, y, x, F) {
    let $ = "",
      ge = 0,
      Le = -1,
      Ke = 0,
      ae = 0;
    for (let bt = 0; bt <= b.length; ++bt) {
      if (bt < b.length) ae = b.charCodeAt(bt);
      else {
        if (F(ae)) break;
        ae = Oh;
      }
      if (F(ae)) {
        if (!(Le === bt - 1 || Ke === 1))
          if (Ke === 2) {
            if (
              $.length < 2 ||
              ge !== 2 ||
              $.charCodeAt($.length - 1) !== lN ||
              $.charCodeAt($.length - 2) !== lN
            ) {
              if ($.length > 2) {
                const et = $.lastIndexOf(x);
                (et === -1
                  ? (($ = ""), (ge = 0))
                  : (($ = $.slice(0, et)),
                    (ge = $.length - 1 - $.lastIndexOf(x))),
                  (Le = bt),
                  (Ke = 0));
                continue;
              } else if ($.length !== 0) {
                (($ = ""), (ge = 0), (Le = bt), (Ke = 0));
                continue;
              }
            }
            y && (($ += $.length > 0 ? `${x}..` : ".."), (ge = 2));
          } else
            ($.length > 0
              ? ($ += `${x}${b.slice(Le + 1, bt)}`)
              : ($ = b.slice(Le + 1, bt)),
              (ge = bt - Le - 1));
        ((Le = bt), (Ke = 0));
      } else ae === lN && Ke !== -1 ? ++Ke : (Ke = -1);
    }
    return $;
  }
  function qze(b) {
    return b ? `${b[0] === "." ? "" : "."}${b}` : "";
  }
  function fve(b, y) {
    Hze(y, "pathObject");
    const x = y.dir || y.root,
      F = y.base || `${y.name || ""}${qze(y.ext)}`;
    return x ? (x === y.root ? `${x}${F}` : `${x}${b}${F}`) : F;
  }
  const Yg = {
      resolve(...b) {
        let y = "",
          x = "",
          F = !1;
        for (let $ = b.length - 1; $ >= -1; $--) {
          let ge;
          if ($ >= 0) {
            if (((ge = b[$]), Lf(ge, `paths[${$}]`), ge.length === 0)) continue;
          } else
            y.length === 0
              ? (ge = SB())
              : ((ge = Fze[`=${y}`] || SB()),
                (ge === void 0 ||
                  (ge.slice(0, 2).toLowerCase() !== y.toLowerCase() &&
                    ge.charCodeAt(2) === Jy)) &&
                  (ge = `${y}\\`));
          const Le = ge.length;
          let Ke = 0,
            ae = "",
            bt = !1;
          const et = ge.charCodeAt(0);
          if (Le === 1) Yl(et) && ((Ke = 1), (bt = !0));
          else if (Yl(et))
            if (((bt = !0), Yl(ge.charCodeAt(1)))) {
              let Ye = 2,
                Pn = Ye;
              for (; Ye < Le && !Yl(ge.charCodeAt(Ye)); ) Ye++;
              if (Ye < Le && Ye !== Pn) {
                const Hn = ge.slice(Pn, Ye);
                for (Pn = Ye; Ye < Le && Yl(ge.charCodeAt(Ye)); ) Ye++;
                if (Ye < Le && Ye !== Pn) {
                  for (Pn = Ye; Ye < Le && !Yl(ge.charCodeAt(Ye)); ) Ye++;
                  (Ye === Le || Ye !== Pn) &&
                    ((ae = `\\\\${Hn}\\${ge.slice(Pn, Ye)}`), (Ke = Ye));
                }
              }
            } else Ke = 1;
          else
            UA(et) &&
              ge.charCodeAt(1) === jA &&
              ((ae = ge.slice(0, 2)),
              (Ke = 2),
              Le > 2 && Yl(ge.charCodeAt(2)) && ((bt = !0), (Ke = 3)));
          if (ae.length > 0)
            if (y.length > 0) {
              if (ae.toLowerCase() !== y.toLowerCase()) continue;
            } else y = ae;
          if (F) {
            if (y.length > 0) break;
          } else if (
            ((x = `${ge.slice(Ke)}\\${x}`), (F = bt), bt && y.length > 0)
          )
            break;
        }
        return (
          (x = EB(x, !F, "\\", Yl)),
          F ? `${y}\\${x}` : `${y}${x}` || "."
        );
      },
      normalize(b) {
        Lf(b, "path");
        const y = b.length;
        if (y === 0) return ".";
        let x = 0,
          F,
          $ = !1;
        const ge = b.charCodeAt(0);
        if (y === 1) return TQ(ge) ? "\\" : b;
        if (Yl(ge))
          if ((($ = !0), Yl(b.charCodeAt(1)))) {
            let Ke = 2,
              ae = Ke;
            for (; Ke < y && !Yl(b.charCodeAt(Ke)); ) Ke++;
            if (Ke < y && Ke !== ae) {
              const bt = b.slice(ae, Ke);
              for (ae = Ke; Ke < y && Yl(b.charCodeAt(Ke)); ) Ke++;
              if (Ke < y && Ke !== ae) {
                for (ae = Ke; Ke < y && !Yl(b.charCodeAt(Ke)); ) Ke++;
                if (Ke === y) return `\\\\${bt}\\${b.slice(ae)}\\`;
                Ke !== ae && ((F = `\\\\${bt}\\${b.slice(ae, Ke)}`), (x = Ke));
              }
            }
          } else x = 1;
        else
          UA(ge) &&
            b.charCodeAt(1) === jA &&
            ((F = b.slice(0, 2)),
            (x = 2),
            y > 2 && Yl(b.charCodeAt(2)) && (($ = !0), (x = 3)));
        let Le = x < y ? EB(b.slice(x), !$, "\\", Yl) : "";
        if (
          (Le.length === 0 && !$ && (Le = "."),
          Le.length > 0 && Yl(b.charCodeAt(y - 1)) && (Le += "\\"),
          !$ && F === void 0 && b.includes(":"))
        ) {
          if (Le.length >= 2 && UA(Le.charCodeAt(0)) && Le.charCodeAt(1) === jA)
            return `.\\${Le}`;
          let Ke = b.indexOf(":");
          do if (Ke === y - 1 || Yl(b.charCodeAt(Ke + 1))) return `.\\${Le}`;
          while ((Ke = b.indexOf(":", Ke + 1)) !== -1);
        }
        return F === void 0
          ? $
            ? `\\${Le}`
            : Le
          : $
            ? `${F}\\${Le}`
            : `${F}${Le}`;
      },
      isAbsolute(b) {
        Lf(b, "path");
        const y = b.length;
        if (y === 0) return !1;
        const x = b.charCodeAt(0);
        return (
          Yl(x) ||
          (y > 2 && UA(x) && b.charCodeAt(1) === jA && Yl(b.charCodeAt(2)))
        );
      },
      join(...b) {
        if (b.length === 0) return ".";
        let y, x;
        for (let ge = 0; ge < b.length; ++ge) {
          const Le = b[ge];
          (Lf(Le, "path"),
            Le.length > 0 && (y === void 0 ? (y = x = Le) : (y += `\\${Le}`)));
        }
        if (y === void 0) return ".";
        let F = !0,
          $ = 0;
        if (typeof x == "string" && Yl(x.charCodeAt(0))) {
          ++$;
          const ge = x.length;
          ge > 1 &&
            Yl(x.charCodeAt(1)) &&
            (++$, ge > 2 && (Yl(x.charCodeAt(2)) ? ++$ : (F = !1)));
        }
        if (F) {
          for (; $ < y.length && Yl(y.charCodeAt($)); ) $++;
          $ >= 2 && (y = `\\${y.slice($)}`);
        }
        return Yg.normalize(y);
      },
      relative(b, y) {
        if ((Lf(b, "from"), Lf(y, "to"), b === y)) return "";
        const x = Yg.resolve(b),
          F = Yg.resolve(y);
        if (x === F || ((b = x.toLowerCase()), (y = F.toLowerCase()), b === y))
          return "";
        if (x.length !== b.length || F.length !== y.length) {
          const cr = x.split("\\"),
            Gn = F.split("\\");
          (cr[cr.length - 1] === "" && cr.pop(),
            Gn[Gn.length - 1] === "" && Gn.pop());
          const ki = cr.length,
            bo = Gn.length,
            Vn = ki < bo ? ki : bo;
          let hn;
          for (
            hn = 0;
            hn < Vn && cr[hn].toLowerCase() === Gn[hn].toLowerCase();
            hn++
          );
          return hn === 0
            ? F
            : hn === Vn
              ? bo > Vn
                ? Gn.slice(hn).join("\\")
                : ki > Vn
                  ? "..\\".repeat(ki - 1 - hn) + ".."
                  : ""
              : "..\\".repeat(ki - hn) + Gn.slice(hn).join("\\");
        }
        let $ = 0;
        for (; $ < b.length && b.charCodeAt($) === Jy; ) $++;
        let ge = b.length;
        for (; ge - 1 > $ && b.charCodeAt(ge - 1) === Jy; ) ge--;
        const Le = ge - $;
        let Ke = 0;
        for (; Ke < y.length && y.charCodeAt(Ke) === Jy; ) Ke++;
        let ae = y.length;
        for (; ae - 1 > Ke && y.charCodeAt(ae - 1) === Jy; ) ae--;
        const bt = ae - Ke,
          et = Le < bt ? Le : bt;
        let Ye = -1,
          Pn = 0;
        for (; Pn < et; Pn++) {
          const cr = b.charCodeAt($ + Pn);
          if (cr !== y.charCodeAt(Ke + Pn)) break;
          cr === Jy && (Ye = Pn);
        }
        if (Pn !== et) {
          if (Ye === -1) return F;
        } else {
          if (bt > et) {
            if (y.charCodeAt(Ke + Pn) === Jy) return F.slice(Ke + Pn + 1);
            if (Pn === 2) return F.slice(Ke + Pn);
          }
          (Le > et &&
            (b.charCodeAt($ + Pn) === Jy ? (Ye = Pn) : Pn === 2 && (Ye = 3)),
            Ye === -1 && (Ye = 0));
        }
        let Hn = "";
        for (Pn = $ + Ye + 1; Pn <= ge; ++Pn)
          (Pn === ge || b.charCodeAt(Pn) === Jy) &&
            (Hn += Hn.length === 0 ? ".." : "\\..");
        return (
          (Ke += Ye),
          Hn.length > 0
            ? `${Hn}${F.slice(Ke, ae)}`
            : (F.charCodeAt(Ke) === Jy && ++Ke, F.slice(Ke, ae))
        );
      },
      toNamespacedPath(b) {
        if (typeof b != "string" || b.length === 0) return b;
        const y = Yg.resolve(b);
        if (y.length <= 2) return b;
        if (y.charCodeAt(0) === Jy) {
          if (y.charCodeAt(1) === Jy) {
            const x = y.charCodeAt(2);
            if (x !== Uze && x !== lN) return `\\\\?\\UNC\\${y.slice(2)}`;
          }
        } else if (
          UA(y.charCodeAt(0)) &&
          y.charCodeAt(1) === jA &&
          y.charCodeAt(2) === Jy
        )
          return `\\\\?\\${y}`;
        return y;
      },
      dirname(b) {
        Lf(b, "path");
        const y = b.length;
        if (y === 0) return ".";
        let x = -1,
          F = 0;
        const $ = b.charCodeAt(0);
        if (y === 1) return Yl($) ? b : ".";
        if (Yl($)) {
          if (((x = F = 1), Yl(b.charCodeAt(1)))) {
            let Ke = 2,
              ae = Ke;
            for (; Ke < y && !Yl(b.charCodeAt(Ke)); ) Ke++;
            if (Ke < y && Ke !== ae) {
              for (ae = Ke; Ke < y && Yl(b.charCodeAt(Ke)); ) Ke++;
              if (Ke < y && Ke !== ae) {
                for (ae = Ke; Ke < y && !Yl(b.charCodeAt(Ke)); ) Ke++;
                if (Ke === y) return b;
                Ke !== ae && (x = F = Ke + 1);
              }
            }
          }
        } else
          UA($) &&
            b.charCodeAt(1) === jA &&
            ((x = y > 2 && Yl(b.charCodeAt(2)) ? 3 : 2), (F = x));
        let ge = -1,
          Le = !0;
        for (let Ke = y - 1; Ke >= F; --Ke)
          if (Yl(b.charCodeAt(Ke))) {
            if (!Le) {
              ge = Ke;
              break;
            }
          } else Le = !1;
        if (ge === -1) {
          if (x === -1) return ".";
          ge = x;
        }
        return b.slice(0, ge);
      },
      basename(b, y) {
        (y !== void 0 && Lf(y, "suffix"), Lf(b, "path"));
        let x = 0,
          F = -1,
          $ = !0,
          ge;
        if (
          (b.length >= 2 &&
            UA(b.charCodeAt(0)) &&
            b.charCodeAt(1) === jA &&
            (x = 2),
          y !== void 0 && y.length > 0 && y.length <= b.length)
        ) {
          if (y === b) return "";
          let Le = y.length - 1,
            Ke = -1;
          for (ge = b.length - 1; ge >= x; --ge) {
            const ae = b.charCodeAt(ge);
            if (Yl(ae)) {
              if (!$) {
                x = ge + 1;
                break;
              }
            } else
              (Ke === -1 && (($ = !1), (Ke = ge + 1)),
                Le >= 0 &&
                  (ae === y.charCodeAt(Le)
                    ? --Le === -1 && (F = ge)
                    : ((Le = -1), (F = Ke))));
          }
          return (
            x === F ? (F = Ke) : F === -1 && (F = b.length),
            b.slice(x, F)
          );
        }
        for (ge = b.length - 1; ge >= x; --ge)
          if (Yl(b.charCodeAt(ge))) {
            if (!$) {
              x = ge + 1;
              break;
            }
          } else F === -1 && (($ = !1), (F = ge + 1));
        return F === -1 ? "" : b.slice(x, F);
      },
      extname(b) {
        Lf(b, "path");
        let y = 0,
          x = -1,
          F = 0,
          $ = -1,
          ge = !0,
          Le = 0;
        b.length >= 2 &&
          b.charCodeAt(1) === jA &&
          UA(b.charCodeAt(0)) &&
          (y = F = 2);
        for (let Ke = b.length - 1; Ke >= y; --Ke) {
          const ae = b.charCodeAt(Ke);
          if (Yl(ae)) {
            if (!ge) {
              F = Ke + 1;
              break;
            }
            continue;
          }
          ($ === -1 && ((ge = !1), ($ = Ke + 1)),
            ae === lN
              ? x === -1
                ? (x = Ke)
                : Le !== 1 && (Le = 1)
              : x !== -1 && (Le = -1));
        }
        return x === -1 ||
          $ === -1 ||
          Le === 0 ||
          (Le === 1 && x === $ - 1 && x === F + 1)
          ? ""
          : b.slice(x, $);
      },
      format: fve.bind(null, "\\"),
      parse(b) {
        Lf(b, "path");
        const y = { root: "", dir: "", base: "", ext: "", name: "" };
        if (b.length === 0) return y;
        const x = b.length;
        let F = 0,
          $ = b.charCodeAt(0);
        if (x === 1)
          return Yl($) ? ((y.root = y.dir = b), y) : ((y.base = y.name = b), y);
        if (Yl($)) {
          if (((F = 1), Yl(b.charCodeAt(1)))) {
            let Ye = 2,
              Pn = Ye;
            for (; Ye < x && !Yl(b.charCodeAt(Ye)); ) Ye++;
            if (Ye < x && Ye !== Pn) {
              for (Pn = Ye; Ye < x && Yl(b.charCodeAt(Ye)); ) Ye++;
              if (Ye < x && Ye !== Pn) {
                for (Pn = Ye; Ye < x && !Yl(b.charCodeAt(Ye)); ) Ye++;
                Ye === x ? (F = Ye) : Ye !== Pn && (F = Ye + 1);
              }
            }
          }
        } else if (UA($) && b.charCodeAt(1) === jA) {
          if (x <= 2) return ((y.root = y.dir = b), y);
          if (((F = 2), Yl(b.charCodeAt(2)))) {
            if (x === 3) return ((y.root = y.dir = b), y);
            F = 3;
          }
        }
        F > 0 && (y.root = b.slice(0, F));
        let ge = -1,
          Le = F,
          Ke = -1,
          ae = !0,
          bt = b.length - 1,
          et = 0;
        for (; bt >= F; --bt) {
          if ((($ = b.charCodeAt(bt)), Yl($))) {
            if (!ae) {
              Le = bt + 1;
              break;
            }
            continue;
          }
          (Ke === -1 && ((ae = !1), (Ke = bt + 1)),
            $ === lN
              ? ge === -1
                ? (ge = bt)
                : et !== 1 && (et = 1)
              : ge !== -1 && (et = -1));
        }
        return (
          Ke !== -1 &&
            (ge === -1 ||
            et === 0 ||
            (et === 1 && ge === Ke - 1 && ge === Le + 1)
              ? (y.base = y.name = b.slice(Le, Ke))
              : ((y.name = b.slice(Le, ge)),
                (y.base = b.slice(Le, Ke)),
                (y.ext = b.slice(ge, Ke)))),
          Le > 0 && Le !== F ? (y.dir = b.slice(0, Le - 1)) : (y.dir = y.root),
          y
        );
      },
      sep: "\\",
      delimiter: ";",
      win32: null,
      posix: null,
    },
    Jze = (() => {
      if (bR) {
        const b = /\\/g;
        return () => {
          const y = SB().replace(b, "/");
          return y.slice(y.indexOf("/"));
        };
      }
      return () => SB();
    })(),
    Ky = {
      resolve(...b) {
        let y = "",
          x = !1;
        for (let F = b.length - 1; F >= 0 && !x; F--) {
          const $ = b[F];
          (Lf($, `paths[${F}]`),
            $.length !== 0 &&
              ((y = `${$}/${y}`), (x = $.charCodeAt(0) === Oh)));
        }
        if (!x) {
          const F = Jze();
          ((y = `${F}/${y}`), (x = F.charCodeAt(0) === Oh));
        }
        return ((y = EB(y, !x, "/", TQ)), x ? `/${y}` : y.length > 0 ? y : ".");
      },
      normalize(b) {
        if ((Lf(b, "path"), b.length === 0)) return ".";
        const y = b.charCodeAt(0) === Oh,
          x = b.charCodeAt(b.length - 1) === Oh;
        return (
          (b = EB(b, !y, "/", TQ)),
          b.length === 0
            ? y
              ? "/"
              : x
                ? "./"
                : "."
            : (x && (b += "/"), y ? `/${b}` : b)
        );
      },
      isAbsolute(b) {
        return (Lf(b, "path"), b.length > 0 && b.charCodeAt(0) === Oh);
      },
      join(...b) {
        if (b.length === 0) return ".";
        const y = [];
        for (let x = 0; x < b.length; ++x) {
          const F = b[x];
          (Lf(F, "path"), F.length > 0 && y.push(F));
        }
        return y.length === 0 ? "." : Ky.normalize(y.join("/"));
      },
      relative(b, y) {
        if (
          (Lf(b, "from"),
          Lf(y, "to"),
          b === y || ((b = Ky.resolve(b)), (y = Ky.resolve(y)), b === y))
        )
          return "";
        const x = 1,
          F = b.length,
          $ = F - x,
          ge = 1,
          Le = y.length - ge,
          Ke = $ < Le ? $ : Le;
        let ae = -1,
          bt = 0;
        for (; bt < Ke; bt++) {
          const Ye = b.charCodeAt(x + bt);
          if (Ye !== y.charCodeAt(ge + bt)) break;
          Ye === Oh && (ae = bt);
        }
        if (bt === Ke)
          if (Le > Ke) {
            if (y.charCodeAt(ge + bt) === Oh) return y.slice(ge + bt + 1);
            if (bt === 0) return y.slice(ge + bt);
          } else
            $ > Ke &&
              (b.charCodeAt(x + bt) === Oh ? (ae = bt) : bt === 0 && (ae = 0));
        let et = "";
        for (bt = x + ae + 1; bt <= F; ++bt)
          (bt === F || b.charCodeAt(bt) === Oh) &&
            (et += et.length === 0 ? ".." : "/..");
        return `${et}${y.slice(ge + ae)}`;
      },
      toNamespacedPath(b) {
        return b;
      },
      dirname(b) {
        if ((Lf(b, "path"), b.length === 0)) return ".";
        const y = b.charCodeAt(0) === Oh;
        let x = -1,
          F = !0;
        for (let $ = b.length - 1; $ >= 1; --$)
          if (b.charCodeAt($) === Oh) {
            if (!F) {
              x = $;
              break;
            }
          } else F = !1;
        return x === -1 ? (y ? "/" : ".") : y && x === 1 ? "//" : b.slice(0, x);
      },
      basename(b, y) {
        (y !== void 0 && Lf(y, "suffix"), Lf(b, "path"));
        let x = 0,
          F = -1,
          $ = !0,
          ge;
        if (y !== void 0 && y.length > 0 && y.length <= b.length) {
          if (y === b) return "";
          let Le = y.length - 1,
            Ke = -1;
          for (ge = b.length - 1; ge >= 0; --ge) {
            const ae = b.charCodeAt(ge);
            if (ae === Oh) {
              if (!$) {
                x = ge + 1;
                break;
              }
            } else
              (Ke === -1 && (($ = !1), (Ke = ge + 1)),
                Le >= 0 &&
                  (ae === y.charCodeAt(Le)
                    ? --Le === -1 && (F = ge)
                    : ((Le = -1), (F = Ke))));
          }
          return (
            x === F ? (F = Ke) : F === -1 && (F = b.length),
            b.slice(x, F)
          );
        }
        for (ge = b.length - 1; ge >= 0; --ge)
          if (b.charCodeAt(ge) === Oh) {
            if (!$) {
              x = ge + 1;
              break;
            }
          } else F === -1 && (($ = !1), (F = ge + 1));
        return F === -1 ? "" : b.slice(x, F);
      },
      extname(b) {
        Lf(b, "path");
        let y = -1,
          x = 0,
          F = -1,
          $ = !0,
          ge = 0;
        for (let Le = b.length - 1; Le >= 0; --Le) {
          const Ke = b[Le];
          if (Ke === "/") {
            if (!$) {
              x = Le + 1;
              break;
            }
            continue;
          }
          (F === -1 && (($ = !1), (F = Le + 1)),
            Ke === "."
              ? y === -1
                ? (y = Le)
                : ge !== 1 && (ge = 1)
              : y !== -1 && (ge = -1));
        }
        return y === -1 ||
          F === -1 ||
          ge === 0 ||
          (ge === 1 && y === F - 1 && y === x + 1)
          ? ""
          : b.slice(y, F);
      },
      format: fve.bind(null, "/"),
      parse(b) {
        Lf(b, "path");
        const y = { root: "", dir: "", base: "", ext: "", name: "" };
        if (b.length === 0) return y;
        const x = b.charCodeAt(0) === Oh;
        let F;
        x ? ((y.root = "/"), (F = 1)) : (F = 0);
        let $ = -1,
          ge = 0,
          Le = -1,
          Ke = !0,
          ae = b.length - 1,
          bt = 0;
        for (; ae >= F; --ae) {
          const et = b.charCodeAt(ae);
          if (et === Oh) {
            if (!Ke) {
              ge = ae + 1;
              break;
            }
            continue;
          }
          (Le === -1 && ((Ke = !1), (Le = ae + 1)),
            et === lN
              ? $ === -1
                ? ($ = ae)
                : bt !== 1 && (bt = 1)
              : $ !== -1 && (bt = -1));
        }
        if (Le !== -1) {
          const et = ge === 0 && x ? 1 : ge;
          $ === -1 || bt === 0 || (bt === 1 && $ === Le - 1 && $ === ge + 1)
            ? (y.base = y.name = b.slice(et, Le))
            : ((y.name = b.slice(et, $)),
              (y.base = b.slice(et, Le)),
              (y.ext = b.slice($, Le)));
        }
        return (ge > 0 ? (y.dir = b.slice(0, ge - 1)) : x && (y.dir = "/"), y);
      },
      sep: "/",
      delimiter: ":",
      win32: null,
      posix: null,
    };
  ((Ky.win32 = Yg.win32 = Yg),
    (Ky.posix = Yg.posix = Ky),
    bR ? Yg.normalize : Ky.normalize,
    bR ? Yg.resolve : Ky.resolve,
    bR ? Yg.relative : Ky.relative,
    bR ? Yg.dirname : Ky.dirname,
    bR ? Yg.basename : Ky.basename,
    bR ? Yg.extname : Ky.extname,
    bR ? Yg.sep : Ky.sep);
  const Kze = /^\w[\w\d+.-]*$/,
    Xze = /^\//,
    Yze = /^\/\//;
  function $ze(b, y) {
    if (!b.scheme && y)
      throw new Error(
        `[UriError]: Scheme is missing: {scheme: "", authority: "${b.authority}", path: "${b.path}", query: "${b.query}", fragment: "${b.fragment}"}`,
      );
    if (b.scheme && !Kze.test(b.scheme))
      throw new Error("[UriError]: Scheme contains illegal characters.");
    if (b.path) {
      if (b.authority) {
        if (!Xze.test(b.path))
          throw new Error(
            '[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character',
          );
      } else if (Yze.test(b.path))
        throw new Error(
          '[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")',
        );
    }
  }
  function Qze(b, y) {
    return !b && !y ? "file" : b;
  }
  function Zze(b, y) {
    switch (b) {
      case "https":
      case "http":
      case "file":
        y ? y[0] !== sS && (y = sS + y) : (y = sS);
        break;
    }
    return y;
  }
  const Ku = "",
    sS = "/",
    e5e = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
  class cN {
    static isUri(y) {
      return y instanceof cN
        ? !0
        : !y || typeof y != "object"
          ? !1
          : typeof y.authority == "string" &&
            typeof y.fragment == "string" &&
            typeof y.path == "string" &&
            typeof y.query == "string" &&
            typeof y.scheme == "string" &&
            typeof y.fsPath == "string" &&
            typeof y.with == "function" &&
            typeof y.toString == "function";
    }
    constructor(y, x, F, $, ge, Le = !1) {
      typeof y == "object"
        ? ((this.scheme = y.scheme || Ku),
          (this.authority = y.authority || Ku),
          (this.path = y.path || Ku),
          (this.query = y.query || Ku),
          (this.fragment = y.fragment || Ku))
        : ((this.scheme = Qze(y, Le)),
          (this.authority = x || Ku),
          (this.path = Zze(this.scheme, F || Ku)),
          (this.query = $ || Ku),
          (this.fragment = ge || Ku),
          $ze(this, Le));
    }
    get fsPath() {
      return SQ(this, !1);
    }
    with(y) {
      if (!y) return this;
      let { scheme: x, authority: F, path: $, query: ge, fragment: Le } = y;
      return (
        x === void 0 ? (x = this.scheme) : x === null && (x = Ku),
        F === void 0 ? (F = this.authority) : F === null && (F = Ku),
        $ === void 0 ? ($ = this.path) : $ === null && ($ = Ku),
        ge === void 0 ? (ge = this.query) : ge === null && (ge = Ku),
        Le === void 0 ? (Le = this.fragment) : Le === null && (Le = Ku),
        x === this.scheme &&
        F === this.authority &&
        $ === this.path &&
        ge === this.query &&
        Le === this.fragment
          ? this
          : new ZL(x, F, $, ge, Le)
      );
    }
    static parse(y, x = !1) {
      const F = e5e.exec(y);
      return F
        ? new ZL(
            F[2] || Ku,
            AB(F[4] || Ku),
            AB(F[5] || Ku),
            AB(F[7] || Ku),
            AB(F[9] || Ku),
            x,
          )
        : new ZL(Ku, Ku, Ku, Ku, Ku);
    }
    static file(y) {
      let x = Ku;
      if ((I8 && (y = y.replace(/\\/g, sS)), y[0] === sS && y[1] === sS)) {
        const F = y.indexOf(sS, 2);
        F === -1
          ? ((x = y.substring(2)), (y = sS))
          : ((x = y.substring(2, F)), (y = y.substring(F) || sS));
      }
      return new ZL("file", x, y, Ku, Ku);
    }
    static from(y, x) {
      return new ZL(y.scheme, y.authority, y.path, y.query, y.fragment, x);
    }
    static joinPath(y, ...x) {
      if (!y.path)
        throw new Error("[UriError]: cannot call joinPath on URI without path");
      let F;
      return (
        I8 && y.scheme === "file"
          ? (F = cN.file(Yg.join(SQ(y, !0), ...x)).path)
          : (F = Ky.join(y.path, ...x)),
        y.with({ path: F })
      );
    }
    toString(y = !1) {
      return EQ(this, y);
    }
    toJSON() {
      return this;
    }
    static revive(y) {
      if (y) {
        if (y instanceof cN) return y;
        {
          const x = new ZL(y);
          return (
            (x._formatted = y.external ?? null),
            (x._fsPath = y._sep === mve ? (y.fsPath ?? null) : null),
            x
          );
        }
      } else return y;
    }
  }
  const mve = I8 ? 1 : void 0;
  class ZL extends cN {
    constructor() {
      (super(...arguments), (this._formatted = null), (this._fsPath = null));
    }
    get fsPath() {
      return (this._fsPath || (this._fsPath = SQ(this, !1)), this._fsPath);
    }
    toString(y = !1) {
      return y
        ? EQ(this, !0)
        : (this._formatted || (this._formatted = EQ(this, !1)),
          this._formatted);
    }
    toJSON() {
      const y = { $mid: 1 };
      return (
        this._fsPath && ((y.fsPath = this._fsPath), (y._sep = mve)),
        this._formatted && (y.external = this._formatted),
        this.path && (y.path = this.path),
        this.scheme && (y.scheme = this.scheme),
        this.authority && (y.authority = this.authority),
        this.query && (y.query = this.query),
        this.fragment && (y.fragment = this.fragment),
        y
      );
    }
  }
  const hve = {
    58: "%3A",
    47: "%2F",
    63: "%3F",
    35: "%23",
    91: "%5B",
    93: "%5D",
    64: "%40",
    33: "%21",
    36: "%24",
    38: "%26",
    39: "%27",
    40: "%28",
    41: "%29",
    42: "%2A",
    43: "%2B",
    44: "%2C",
    59: "%3B",
    61: "%3D",
    32: "%20",
  };
  function _ve(b, y, x) {
    let F,
      $ = -1;
    for (let ge = 0; ge < b.length; ge++) {
      const Le = b.charCodeAt(ge);
      if (
        (Le >= 97 && Le <= 122) ||
        (Le >= 65 && Le <= 90) ||
        (Le >= 48 && Le <= 57) ||
        Le === 45 ||
        Le === 46 ||
        Le === 95 ||
        Le === 126 ||
        (y && Le === 47) ||
        (x && Le === 91) ||
        (x && Le === 93) ||
        (x && Le === 58)
      )
        ($ !== -1 && ((F += encodeURIComponent(b.substring($, ge))), ($ = -1)),
          F !== void 0 && (F += b.charAt(ge)));
      else {
        F === void 0 && (F = b.substr(0, ge));
        const Ke = hve[Le];
        Ke !== void 0
          ? ($ !== -1 &&
              ((F += encodeURIComponent(b.substring($, ge))), ($ = -1)),
            (F += Ke))
          : $ === -1 && ($ = ge);
      }
    }
    return (
      $ !== -1 && (F += encodeURIComponent(b.substring($))),
      F !== void 0 ? F : b
    );
  }
  function t5e(b) {
    let y;
    for (let x = 0; x < b.length; x++) {
      const F = b.charCodeAt(x);
      F === 35 || F === 63
        ? (y === void 0 && (y = b.substr(0, x)), (y += hve[F]))
        : y !== void 0 && (y += b[x]);
    }
    return y !== void 0 ? y : b;
  }
  function SQ(b, y) {
    let x;
    return (
      b.authority && b.path.length > 1 && b.scheme === "file"
        ? (x = `//${b.authority}${b.path}`)
        : b.path.charCodeAt(0) === 47 &&
            ((b.path.charCodeAt(1) >= 65 && b.path.charCodeAt(1) <= 90) ||
              (b.path.charCodeAt(1) >= 97 && b.path.charCodeAt(1) <= 122)) &&
            b.path.charCodeAt(2) === 58
          ? y
            ? (x = b.path.substr(1))
            : (x = b.path[1].toLowerCase() + b.path.substr(2))
          : (x = b.path),
      I8 && (x = x.replace(/\//g, "\\")),
      x
    );
  }
  function EQ(b, y) {
    const x = y ? t5e : _ve;
    let F = "",
      { scheme: $, authority: ge, path: Le, query: Ke, fragment: ae } = b;
    if (
      ($ && ((F += $), (F += ":")),
      (ge || $ === "file") && ((F += sS), (F += sS)),
      ge)
    ) {
      let bt = ge.indexOf("@");
      if (bt !== -1) {
        const et = ge.substr(0, bt);
        ((ge = ge.substr(bt + 1)),
          (bt = et.lastIndexOf(":")),
          bt === -1
            ? (F += x(et, !1, !1))
            : ((F += x(et.substr(0, bt), !1, !1)),
              (F += ":"),
              (F += x(et.substr(bt + 1), !1, !0))),
          (F += "@"));
      }
      ((ge = ge.toLowerCase()),
        (bt = ge.lastIndexOf(":")),
        bt === -1
          ? (F += x(ge, !1, !0))
          : ((F += x(ge.substr(0, bt), !1, !0)), (F += ge.substr(bt))));
    }
    if (Le) {
      if (
        Le.length >= 3 &&
        Le.charCodeAt(0) === 47 &&
        Le.charCodeAt(2) === 58
      ) {
        const bt = Le.charCodeAt(1);
        bt >= 65 &&
          bt <= 90 &&
          (Le = `/${String.fromCharCode(bt + 32)}:${Le.substr(3)}`);
      } else if (Le.length >= 2 && Le.charCodeAt(1) === 58) {
        const bt = Le.charCodeAt(0);
        bt >= 65 &&
          bt <= 90 &&
          (Le = `${String.fromCharCode(bt + 32)}:${Le.substr(2)}`);
      }
      F += x(Le, !0, !1);
    }
    return (
      Ke && ((F += "?"), (F += x(Ke, !1, !1))),
      ae && ((F += "#"), (F += y ? ae : _ve(ae, !1, !1))),
      F
    );
  }
  function gve(b) {
    try {
      return decodeURIComponent(b);
    } catch {
      return b.length > 3 ? b.substr(0, 3) + gve(b.substr(3)) : b;
    }
  }
  const yve = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
  function AB(b) {
    return b.match(yve) ? b.replace(yve, (y) => gve(y)) : b;
  }
  class Xv extends ss {
    constructor(y, x, F, $) {
      (super(y, x, F, $),
        (this.selectionStartLineNumber = y),
        (this.selectionStartColumn = x),
        (this.positionLineNumber = F),
        (this.positionColumn = $));
    }
    toString() {
      return (
        "[" +
        this.selectionStartLineNumber +
        "," +
        this.selectionStartColumn +
        " -> " +
        this.positionLineNumber +
        "," +
        this.positionColumn +
        "]"
      );
    }
    equalsSelection(y) {
      return Xv.selectionsEqual(this, y);
    }
    static selectionsEqual(y, x) {
      return (
        y.selectionStartLineNumber === x.selectionStartLineNumber &&
        y.selectionStartColumn === x.selectionStartColumn &&
        y.positionLineNumber === x.positionLineNumber &&
        y.positionColumn === x.positionColumn
      );
    }
    getDirection() {
      return this.selectionStartLineNumber === this.startLineNumber &&
        this.selectionStartColumn === this.startColumn
        ? 0
        : 1;
    }
    setEndPosition(y, x) {
      return this.getDirection() === 0
        ? new Xv(this.startLineNumber, this.startColumn, y, x)
        : new Xv(y, x, this.startLineNumber, this.startColumn);
    }
    getPosition() {
      return new Zc(this.positionLineNumber, this.positionColumn);
    }
    getSelectionStart() {
      return new Zc(this.selectionStartLineNumber, this.selectionStartColumn);
    }
    setStartPosition(y, x) {
      return this.getDirection() === 0
        ? new Xv(y, x, this.endLineNumber, this.endColumn)
        : new Xv(this.endLineNumber, this.endColumn, y, x);
    }
    static fromPositions(y, x = y) {
      return new Xv(y.lineNumber, y.column, x.lineNumber, x.column);
    }
    static fromRange(y, x) {
      return x === 0
        ? new Xv(y.startLineNumber, y.startColumn, y.endLineNumber, y.endColumn)
        : new Xv(
            y.endLineNumber,
            y.endColumn,
            y.startLineNumber,
            y.startColumn,
          );
    }
    static liftSelection(y) {
      return new Xv(
        y.selectionStartLineNumber,
        y.selectionStartColumn,
        y.positionLineNumber,
        y.positionColumn,
      );
    }
    static selectionsArrEqual(y, x) {
      if ((y && !x) || (!y && x)) return !1;
      if (!y && !x) return !0;
      if (y.length !== x.length) return !1;
      for (let F = 0, $ = y.length; F < $; F++)
        if (!this.selectionsEqual(y[F], x[F])) return !1;
      return !0;
    }
    static isISelection(y) {
      return (
        !!y &&
        typeof y.selectionStartLineNumber == "number" &&
        typeof y.selectionStartColumn == "number" &&
        typeof y.positionLineNumber == "number" &&
        typeof y.positionColumn == "number"
      );
    }
    static createWithDirection(y, x, F, $, ge) {
      return ge === 0 ? new Xv(y, x, F, $) : new Xv(F, $, y, x);
    }
  }
  const vve = Object.create(null);
  function De(b, y) {
    if (z7e(y)) {
      const x = vve[y];
      if (x === void 0)
        throw new Error(`${b} references an unknown codicon: ${y}`);
      y = x;
    }
    return ((vve[b] = y), { id: b });
  }
  const n5e = {
      add: De("add", 6e4),
      plus: De("plus", 6e4),
      gistNew: De("gist-new", 6e4),
      repoCreate: De("repo-create", 6e4),
      lightbulb: De("lightbulb", 60001),
      lightBulb: De("light-bulb", 60001),
      repo: De("repo", 60002),
      repoDelete: De("repo-delete", 60002),
      gistFork: De("gist-fork", 60003),
      repoForked: De("repo-forked", 60003),
      gitPullRequest: De("git-pull-request", 60004),
      gitPullRequestAbandoned: De("git-pull-request-abandoned", 60004),
      recordKeys: De("record-keys", 60005),
      keyboard: De("keyboard", 60005),
      tag: De("tag", 60006),
      gitPullRequestLabel: De("git-pull-request-label", 60006),
      tagAdd: De("tag-add", 60006),
      tagRemove: De("tag-remove", 60006),
      person: De("person", 60007),
      personFollow: De("person-follow", 60007),
      personOutline: De("person-outline", 60007),
      personFilled: De("person-filled", 60007),
      sourceControl: De("source-control", 60008),
      mirror: De("mirror", 60009),
      mirrorPublic: De("mirror-public", 60009),
      star: De("star", 60010),
      starAdd: De("star-add", 60010),
      starDelete: De("star-delete", 60010),
      starEmpty: De("star-empty", 60010),
      comment: De("comment", 60011),
      commentAdd: De("comment-add", 60011),
      alert: De("alert", 60012),
      warning: De("warning", 60012),
      search: De("search", 60013),
      searchSave: De("search-save", 60013),
      logOut: De("log-out", 60014),
      signOut: De("sign-out", 60014),
      logIn: De("log-in", 60015),
      signIn: De("sign-in", 60015),
      eye: De("eye", 60016),
      eyeUnwatch: De("eye-unwatch", 60016),
      eyeWatch: De("eye-watch", 60016),
      circleFilled: De("circle-filled", 60017),
      primitiveDot: De("primitive-dot", 60017),
      closeDirty: De("close-dirty", 60017),
      debugBreakpoint: De("debug-breakpoint", 60017),
      debugBreakpointDisabled: De("debug-breakpoint-disabled", 60017),
      debugHint: De("debug-hint", 60017),
      terminalDecorationSuccess: De("terminal-decoration-success", 60017),
      primitiveSquare: De("primitive-square", 60018),
      edit: De("edit", 60019),
      pencil: De("pencil", 60019),
      info: De("info", 60020),
      issueOpened: De("issue-opened", 60020),
      gistPrivate: De("gist-private", 60021),
      gitForkPrivate: De("git-fork-private", 60021),
      lock: De("lock", 60021),
      mirrorPrivate: De("mirror-private", 60021),
      close: De("close", 60022),
      removeClose: De("remove-close", 60022),
      x: De("x", 60022),
      repoSync: De("repo-sync", 60023),
      sync: De("sync", 60023),
      clone: De("clone", 60024),
      desktopDownload: De("desktop-download", 60024),
      beaker: De("beaker", 60025),
      microscope: De("microscope", 60025),
      vm: De("vm", 60026),
      deviceDesktop: De("device-desktop", 60026),
      file: De("file", 60027),
      more: De("more", 60028),
      ellipsis: De("ellipsis", 60028),
      kebabHorizontal: De("kebab-horizontal", 60028),
      mailReply: De("mail-reply", 60029),
      reply: De("reply", 60029),
      organization: De("organization", 60030),
      organizationFilled: De("organization-filled", 60030),
      organizationOutline: De("organization-outline", 60030),
      newFile: De("new-file", 60031),
      fileAdd: De("file-add", 60031),
      newFolder: De("new-folder", 60032),
      fileDirectoryCreate: De("file-directory-create", 60032),
      trash: De("trash", 60033),
      trashcan: De("trashcan", 60033),
      history: De("history", 60034),
      clock: De("clock", 60034),
      folder: De("folder", 60035),
      fileDirectory: De("file-directory", 60035),
      symbolFolder: De("symbol-folder", 60035),
      logoGithub: De("logo-github", 60036),
      markGithub: De("mark-github", 60036),
      github: De("github", 60036),
      terminal: De("terminal", 60037),
      console: De("console", 60037),
      repl: De("repl", 60037),
      zap: De("zap", 60038),
      symbolEvent: De("symbol-event", 60038),
      error: De("error", 60039),
      stop: De("stop", 60039),
      variable: De("variable", 60040),
      symbolVariable: De("symbol-variable", 60040),
      array: De("array", 60042),
      symbolArray: De("symbol-array", 60042),
      symbolModule: De("symbol-module", 60043),
      symbolPackage: De("symbol-package", 60043),
      symbolNamespace: De("symbol-namespace", 60043),
      symbolObject: De("symbol-object", 60043),
      symbolMethod: De("symbol-method", 60044),
      symbolFunction: De("symbol-function", 60044),
      symbolConstructor: De("symbol-constructor", 60044),
      symbolBoolean: De("symbol-boolean", 60047),
      symbolNull: De("symbol-null", 60047),
      symbolNumeric: De("symbol-numeric", 60048),
      symbolNumber: De("symbol-number", 60048),
      symbolStructure: De("symbol-structure", 60049),
      symbolStruct: De("symbol-struct", 60049),
      symbolParameter: De("symbol-parameter", 60050),
      symbolTypeParameter: De("symbol-type-parameter", 60050),
      symbolKey: De("symbol-key", 60051),
      symbolText: De("symbol-text", 60051),
      symbolReference: De("symbol-reference", 60052),
      goToFile: De("go-to-file", 60052),
      symbolEnum: De("symbol-enum", 60053),
      symbolValue: De("symbol-value", 60053),
      symbolRuler: De("symbol-ruler", 60054),
      symbolUnit: De("symbol-unit", 60054),
      activateBreakpoints: De("activate-breakpoints", 60055),
      archive: De("archive", 60056),
      arrowBoth: De("arrow-both", 60057),
      arrowDown: De("arrow-down", 60058),
      arrowLeft: De("arrow-left", 60059),
      arrowRight: De("arrow-right", 60060),
      arrowSmallDown: De("arrow-small-down", 60061),
      arrowSmallLeft: De("arrow-small-left", 60062),
      arrowSmallRight: De("arrow-small-right", 60063),
      arrowSmallUp: De("arrow-small-up", 60064),
      arrowUp: De("arrow-up", 60065),
      bell: De("bell", 60066),
      bold: De("bold", 60067),
      book: De("book", 60068),
      bookmark: De("bookmark", 60069),
      debugBreakpointConditionalUnverified: De(
        "debug-breakpoint-conditional-unverified",
        60070,
      ),
      debugBreakpointConditional: De("debug-breakpoint-conditional", 60071),
      debugBreakpointConditionalDisabled: De(
        "debug-breakpoint-conditional-disabled",
        60071,
      ),
      debugBreakpointDataUnverified: De(
        "debug-breakpoint-data-unverified",
        60072,
      ),
      debugBreakpointData: De("debug-breakpoint-data", 60073),
      debugBreakpointDataDisabled: De("debug-breakpoint-data-disabled", 60073),
      debugBreakpointLogUnverified: De(
        "debug-breakpoint-log-unverified",
        60074,
      ),
      debugBreakpointLog: De("debug-breakpoint-log", 60075),
      debugBreakpointLogDisabled: De("debug-breakpoint-log-disabled", 60075),
      briefcase: De("briefcase", 60076),
      broadcast: De("broadcast", 60077),
      browser: De("browser", 60078),
      bug: De("bug", 60079),
      calendar: De("calendar", 60080),
      caseSensitive: De("case-sensitive", 60081),
      check: De("check", 60082),
      checklist: De("checklist", 60083),
      chevronDown: De("chevron-down", 60084),
      chevronLeft: De("chevron-left", 60085),
      chevronRight: De("chevron-right", 60086),
      chevronUp: De("chevron-up", 60087),
      chromeClose: De("chrome-close", 60088),
      chromeMaximize: De("chrome-maximize", 60089),
      chromeMinimize: De("chrome-minimize", 60090),
      chromeRestore: De("chrome-restore", 60091),
      circleOutline: De("circle-outline", 60092),
      circle: De("circle", 60092),
      debugBreakpointUnverified: De("debug-breakpoint-unverified", 60092),
      terminalDecorationIncomplete: De("terminal-decoration-incomplete", 60092),
      circleSlash: De("circle-slash", 60093),
      circuitBoard: De("circuit-board", 60094),
      clearAll: De("clear-all", 60095),
      clippy: De("clippy", 60096),
      closeAll: De("close-all", 60097),
      cloudDownload: De("cloud-download", 60098),
      cloudUpload: De("cloud-upload", 60099),
      code: De("code", 60100),
      collapseAll: De("collapse-all", 60101),
      colorMode: De("color-mode", 60102),
      commentDiscussion: De("comment-discussion", 60103),
      creditCard: De("credit-card", 60105),
      dash: De("dash", 60108),
      dashboard: De("dashboard", 60109),
      database: De("database", 60110),
      debugContinue: De("debug-continue", 60111),
      debugDisconnect: De("debug-disconnect", 60112),
      debugPause: De("debug-pause", 60113),
      debugRestart: De("debug-restart", 60114),
      debugStart: De("debug-start", 60115),
      debugStepInto: De("debug-step-into", 60116),
      debugStepOut: De("debug-step-out", 60117),
      debugStepOver: De("debug-step-over", 60118),
      debugStop: De("debug-stop", 60119),
      debug: De("debug", 60120),
      deviceCameraVideo: De("device-camera-video", 60121),
      deviceCamera: De("device-camera", 60122),
      deviceMobile: De("device-mobile", 60123),
      diffAdded: De("diff-added", 60124),
      diffIgnored: De("diff-ignored", 60125),
      diffModified: De("diff-modified", 60126),
      diffRemoved: De("diff-removed", 60127),
      diffRenamed: De("diff-renamed", 60128),
      diff: De("diff", 60129),
      diffSidebyside: De("diff-sidebyside", 60129),
      discard: De("discard", 60130),
      editorLayout: De("editor-layout", 60131),
      emptyWindow: De("empty-window", 60132),
      exclude: De("exclude", 60133),
      extensions: De("extensions", 60134),
      eyeClosed: De("eye-closed", 60135),
      fileBinary: De("file-binary", 60136),
      fileCode: De("file-code", 60137),
      fileMedia: De("file-media", 60138),
      filePdf: De("file-pdf", 60139),
      fileSubmodule: De("file-submodule", 60140),
      fileSymlinkDirectory: De("file-symlink-directory", 60141),
      fileSymlinkFile: De("file-symlink-file", 60142),
      fileZip: De("file-zip", 60143),
      files: De("files", 60144),
      filter: De("filter", 60145),
      flame: De("flame", 60146),
      foldDown: De("fold-down", 60147),
      foldUp: De("fold-up", 60148),
      fold: De("fold", 60149),
      folderActive: De("folder-active", 60150),
      folderOpened: De("folder-opened", 60151),
      gear: De("gear", 60152),
      gift: De("gift", 60153),
      gistSecret: De("gist-secret", 60154),
      gist: De("gist", 60155),
      gitCommit: De("git-commit", 60156),
      gitCompare: De("git-compare", 60157),
      compareChanges: De("compare-changes", 60157),
      gitMerge: De("git-merge", 60158),
      githubAction: De("github-action", 60159),
      githubAlt: De("github-alt", 60160),
      globe: De("globe", 60161),
      grabber: De("grabber", 60162),
      graph: De("graph", 60163),
      gripper: De("gripper", 60164),
      heart: De("heart", 60165),
      home: De("home", 60166),
      horizontalRule: De("horizontal-rule", 60167),
      hubot: De("hubot", 60168),
      inbox: De("inbox", 60169),
      issueReopened: De("issue-reopened", 60171),
      issues: De("issues", 60172),
      italic: De("italic", 60173),
      jersey: De("jersey", 60174),
      json: De("json", 60175),
      kebabVertical: De("kebab-vertical", 60176),
      key: De("key", 60177),
      law: De("law", 60178),
      lightbulbAutofix: De("lightbulb-autofix", 60179),
      linkExternal: De("link-external", 60180),
      link: De("link", 60181),
      listOrdered: De("list-ordered", 60182),
      listUnordered: De("list-unordered", 60183),
      liveShare: De("live-share", 60184),
      loading: De("loading", 60185),
      location: De("location", 60186),
      mailRead: De("mail-read", 60187),
      mail: De("mail", 60188),
      markdown: De("markdown", 60189),
      megaphone: De("megaphone", 60190),
      mention: De("mention", 60191),
      milestone: De("milestone", 60192),
      gitPullRequestMilestone: De("git-pull-request-milestone", 60192),
      mortarBoard: De("mortar-board", 60193),
      move: De("move", 60194),
      multipleWindows: De("multiple-windows", 60195),
      mute: De("mute", 60196),
      noNewline: De("no-newline", 60197),
      note: De("note", 60198),
      octoface: De("octoface", 60199),
      openPreview: De("open-preview", 60200),
      package: De("package", 60201),
      paintcan: De("paintcan", 60202),
      pin: De("pin", 60203),
      play: De("play", 60204),
      run: De("run", 60204),
      plug: De("plug", 60205),
      preserveCase: De("preserve-case", 60206),
      preview: De("preview", 60207),
      project: De("project", 60208),
      pulse: De("pulse", 60209),
      question: De("question", 60210),
      quote: De("quote", 60211),
      radioTower: De("radio-tower", 60212),
      reactions: De("reactions", 60213),
      references: De("references", 60214),
      refresh: De("refresh", 60215),
      regex: De("regex", 60216),
      remoteExplorer: De("remote-explorer", 60217),
      remote: De("remote", 60218),
      remove: De("remove", 60219),
      replaceAll: De("replace-all", 60220),
      replace: De("replace", 60221),
      repoClone: De("repo-clone", 60222),
      repoForcePush: De("repo-force-push", 60223),
      repoPull: De("repo-pull", 60224),
      repoPush: De("repo-push", 60225),
      report: De("report", 60226),
      requestChanges: De("request-changes", 60227),
      rocket: De("rocket", 60228),
      rootFolderOpened: De("root-folder-opened", 60229),
      rootFolder: De("root-folder", 60230),
      rss: De("rss", 60231),
      ruby: De("ruby", 60232),
      saveAll: De("save-all", 60233),
      saveAs: De("save-as", 60234),
      save: De("save", 60235),
      screenFull: De("screen-full", 60236),
      screenNormal: De("screen-normal", 60237),
      searchStop: De("search-stop", 60238),
      server: De("server", 60240),
      settingsGear: De("settings-gear", 60241),
      settings: De("settings", 60242),
      shield: De("shield", 60243),
      smiley: De("smiley", 60244),
      sortPrecedence: De("sort-precedence", 60245),
      splitHorizontal: De("split-horizontal", 60246),
      splitVertical: De("split-vertical", 60247),
      squirrel: De("squirrel", 60248),
      starFull: De("star-full", 60249),
      starHalf: De("star-half", 60250),
      symbolClass: De("symbol-class", 60251),
      symbolColor: De("symbol-color", 60252),
      symbolConstant: De("symbol-constant", 60253),
      symbolEnumMember: De("symbol-enum-member", 60254),
      symbolField: De("symbol-field", 60255),
      symbolFile: De("symbol-file", 60256),
      symbolInterface: De("symbol-interface", 60257),
      symbolKeyword: De("symbol-keyword", 60258),
      symbolMisc: De("symbol-misc", 60259),
      symbolOperator: De("symbol-operator", 60260),
      symbolProperty: De("symbol-property", 60261),
      wrench: De("wrench", 60261),
      wrenchSubaction: De("wrench-subaction", 60261),
      symbolSnippet: De("symbol-snippet", 60262),
      tasklist: De("tasklist", 60263),
      telescope: De("telescope", 60264),
      textSize: De("text-size", 60265),
      threeBars: De("three-bars", 60266),
      thumbsdown: De("thumbsdown", 60267),
      thumbsup: De("thumbsup", 60268),
      tools: De("tools", 60269),
      triangleDown: De("triangle-down", 60270),
      triangleLeft: De("triangle-left", 60271),
      triangleRight: De("triangle-right", 60272),
      triangleUp: De("triangle-up", 60273),
      twitter: De("twitter", 60274),
      unfold: De("unfold", 60275),
      unlock: De("unlock", 60276),
      unmute: De("unmute", 60277),
      unverified: De("unverified", 60278),
      verified: De("verified", 60279),
      versions: De("versions", 60280),
      vmActive: De("vm-active", 60281),
      vmOutline: De("vm-outline", 60282),
      vmRunning: De("vm-running", 60283),
      watch: De("watch", 60284),
      whitespace: De("whitespace", 60285),
      wholeWord: De("whole-word", 60286),
      window: De("window", 60287),
      wordWrap: De("word-wrap", 60288),
      zoomIn: De("zoom-in", 60289),
      zoomOut: De("zoom-out", 60290),
      listFilter: De("list-filter", 60291),
      listFlat: De("list-flat", 60292),
      listSelection: De("list-selection", 60293),
      selection: De("selection", 60293),
      listTree: De("list-tree", 60294),
      debugBreakpointFunctionUnverified: De(
        "debug-breakpoint-function-unverified",
        60295,
      ),
      debugBreakpointFunction: De("debug-breakpoint-function", 60296),
      debugBreakpointFunctionDisabled: De(
        "debug-breakpoint-function-disabled",
        60296,
      ),
      debugStackframeActive: De("debug-stackframe-active", 60297),
      circleSmallFilled: De("circle-small-filled", 60298),
      debugStackframeDot: De("debug-stackframe-dot", 60298),
      terminalDecorationMark: De("terminal-decoration-mark", 60298),
      debugStackframe: De("debug-stackframe", 60299),
      debugStackframeFocused: De("debug-stackframe-focused", 60299),
      debugBreakpointUnsupported: De("debug-breakpoint-unsupported", 60300),
      symbolString: De("symbol-string", 60301),
      debugReverseContinue: De("debug-reverse-continue", 60302),
      debugStepBack: De("debug-step-back", 60303),
      debugRestartFrame: De("debug-restart-frame", 60304),
      debugAlt: De("debug-alt", 60305),
      callIncoming: De("call-incoming", 60306),
      callOutgoing: De("call-outgoing", 60307),
      menu: De("menu", 60308),
      expandAll: De("expand-all", 60309),
      feedback: De("feedback", 60310),
      gitPullRequestReviewer: De("git-pull-request-reviewer", 60310),
      groupByRefType: De("group-by-ref-type", 60311),
      ungroupByRefType: De("ungroup-by-ref-type", 60312),
      account: De("account", 60313),
      gitPullRequestAssignee: De("git-pull-request-assignee", 60313),
      bellDot: De("bell-dot", 60314),
      debugConsole: De("debug-console", 60315),
      library: De("library", 60316),
      output: De("output", 60317),
      runAll: De("run-all", 60318),
      syncIgnored: De("sync-ignored", 60319),
      pinned: De("pinned", 60320),
      githubInverted: De("github-inverted", 60321),
      serverProcess: De("server-process", 60322),
      serverEnvironment: De("server-environment", 60323),
      pass: De("pass", 60324),
      issueClosed: De("issue-closed", 60324),
      stopCircle: De("stop-circle", 60325),
      playCircle: De("play-circle", 60326),
      record: De("record", 60327),
      debugAltSmall: De("debug-alt-small", 60328),
      vmConnect: De("vm-connect", 60329),
      cloud: De("cloud", 60330),
      merge: De("merge", 60331),
      export: De("export", 60332),
      graphLeft: De("graph-left", 60333),
      magnet: De("magnet", 60334),
      notebook: De("notebook", 60335),
      redo: De("redo", 60336),
      checkAll: De("check-all", 60337),
      pinnedDirty: De("pinned-dirty", 60338),
      passFilled: De("pass-filled", 60339),
      circleLargeFilled: De("circle-large-filled", 60340),
      circleLarge: De("circle-large", 60341),
      circleLargeOutline: De("circle-large-outline", 60341),
      combine: De("combine", 60342),
      gather: De("gather", 60342),
      table: De("table", 60343),
      variableGroup: De("variable-group", 60344),
      typeHierarchy: De("type-hierarchy", 60345),
      typeHierarchySub: De("type-hierarchy-sub", 60346),
      typeHierarchySuper: De("type-hierarchy-super", 60347),
      gitPullRequestCreate: De("git-pull-request-create", 60348),
      runAbove: De("run-above", 60349),
      runBelow: De("run-below", 60350),
      notebookTemplate: De("notebook-template", 60351),
      debugRerun: De("debug-rerun", 60352),
      workspaceTrusted: De("workspace-trusted", 60353),
      workspaceUntrusted: De("workspace-untrusted", 60354),
      workspaceUnknown: De("workspace-unknown", 60355),
      terminalCmd: De("terminal-cmd", 60356),
      terminalDebian: De("terminal-debian", 60357),
      terminalLinux: De("terminal-linux", 60358),
      terminalPowershell: De("terminal-powershell", 60359),
      terminalTmux: De("terminal-tmux", 60360),
      terminalUbuntu: De("terminal-ubuntu", 60361),
      terminalBash: De("terminal-bash", 60362),
      arrowSwap: De("arrow-swap", 60363),
      copy: De("copy", 60364),
      personAdd: De("person-add", 60365),
      filterFilled: De("filter-filled", 60366),
      wand: De("wand", 60367),
      debugLineByLine: De("debug-line-by-line", 60368),
      inspect: De("inspect", 60369),
      layers: De("layers", 60370),
      layersDot: De("layers-dot", 60371),
      layersActive: De("layers-active", 60372),
      compass: De("compass", 60373),
      compassDot: De("compass-dot", 60374),
      compassActive: De("compass-active", 60375),
      azure: De("azure", 60376),
      issueDraft: De("issue-draft", 60377),
      gitPullRequestClosed: De("git-pull-request-closed", 60378),
      gitPullRequestDraft: De("git-pull-request-draft", 60379),
      debugAll: De("debug-all", 60380),
      debugCoverage: De("debug-coverage", 60381),
      runErrors: De("run-errors", 60382),
      folderLibrary: De("folder-library", 60383),
      debugContinueSmall: De("debug-continue-small", 60384),
      beakerStop: De("beaker-stop", 60385),
      graphLine: De("graph-line", 60386),
      graphScatter: De("graph-scatter", 60387),
      pieChart: De("pie-chart", 60388),
      bracket: De("bracket", 60175),
      bracketDot: De("bracket-dot", 60389),
      bracketError: De("bracket-error", 60390),
      lockSmall: De("lock-small", 60391),
      azureDevops: De("azure-devops", 60392),
      verifiedFilled: De("verified-filled", 60393),
      newline: De("newline", 60394),
      layout: De("layout", 60395),
      layoutActivitybarLeft: De("layout-activitybar-left", 60396),
      layoutActivitybarRight: De("layout-activitybar-right", 60397),
      layoutPanelLeft: De("layout-panel-left", 60398),
      layoutPanelCenter: De("layout-panel-center", 60399),
      layoutPanelJustify: De("layout-panel-justify", 60400),
      layoutPanelRight: De("layout-panel-right", 60401),
      layoutPanel: De("layout-panel", 60402),
      layoutSidebarLeft: De("layout-sidebar-left", 60403),
      layoutSidebarRight: De("layout-sidebar-right", 60404),
      layoutStatusbar: De("layout-statusbar", 60405),
      layoutMenubar: De("layout-menubar", 60406),
      layoutCentered: De("layout-centered", 60407),
      target: De("target", 60408),
      indent: De("indent", 60409),
      recordSmall: De("record-small", 60410),
      errorSmall: De("error-small", 60411),
      terminalDecorationError: De("terminal-decoration-error", 60411),
      arrowCircleDown: De("arrow-circle-down", 60412),
      arrowCircleLeft: De("arrow-circle-left", 60413),
      arrowCircleRight: De("arrow-circle-right", 60414),
      arrowCircleUp: De("arrow-circle-up", 60415),
      layoutSidebarRightOff: De("layout-sidebar-right-off", 60416),
      layoutPanelOff: De("layout-panel-off", 60417),
      layoutSidebarLeftOff: De("layout-sidebar-left-off", 60418),
      blank: De("blank", 60419),
      heartFilled: De("heart-filled", 60420),
      map: De("map", 60421),
      mapHorizontal: De("map-horizontal", 60421),
      foldHorizontal: De("fold-horizontal", 60421),
      mapFilled: De("map-filled", 60422),
      mapHorizontalFilled: De("map-horizontal-filled", 60422),
      foldHorizontalFilled: De("fold-horizontal-filled", 60422),
      circleSmall: De("circle-small", 60423),
      bellSlash: De("bell-slash", 60424),
      bellSlashDot: De("bell-slash-dot", 60425),
      commentUnresolved: De("comment-unresolved", 60426),
      gitPullRequestGoToChanges: De("git-pull-request-go-to-changes", 60427),
      gitPullRequestNewChanges: De("git-pull-request-new-changes", 60428),
      searchFuzzy: De("search-fuzzy", 60429),
      commentDraft: De("comment-draft", 60430),
      send: De("send", 60431),
      sparkle: De("sparkle", 60432),
      insert: De("insert", 60433),
      mic: De("mic", 60434),
      thumbsdownFilled: De("thumbsdown-filled", 60435),
      thumbsupFilled: De("thumbsup-filled", 60436),
      coffee: De("coffee", 60437),
      snake: De("snake", 60438),
      game: De("game", 60439),
      vr: De("vr", 60440),
      chip: De("chip", 60441),
      piano: De("piano", 60442),
      music: De("music", 60443),
      micFilled: De("mic-filled", 60444),
      repoFetch: De("repo-fetch", 60445),
      copilot: De("copilot", 60446),
      lightbulbSparkle: De("lightbulb-sparkle", 60447),
      robot: De("robot", 60448),
      sparkleFilled: De("sparkle-filled", 60449),
      diffSingle: De("diff-single", 60450),
      diffMultiple: De("diff-multiple", 60451),
      surroundWith: De("surround-with", 60452),
      share: De("share", 60453),
      gitStash: De("git-stash", 60454),
      gitStashApply: De("git-stash-apply", 60455),
      gitStashPop: De("git-stash-pop", 60456),
      vscode: De("vscode", 60457),
      vscodeInsiders: De("vscode-insiders", 60458),
      codeOss: De("code-oss", 60459),
      runCoverage: De("run-coverage", 60460),
      runAllCoverage: De("run-all-coverage", 60461),
      coverage: De("coverage", 60462),
      githubProject: De("github-project", 60463),
      mapVertical: De("map-vertical", 60464),
      foldVertical: De("fold-vertical", 60464),
      mapVerticalFilled: De("map-vertical-filled", 60465),
      foldVerticalFilled: De("fold-vertical-filled", 60465),
      goToSearch: De("go-to-search", 60466),
      percentage: De("percentage", 60467),
      sortPercentage: De("sort-percentage", 60467),
      attach: De("attach", 60468),
      goToEditingSession: De("go-to-editing-session", 60469),
      editSession: De("edit-session", 60470),
      codeReview: De("code-review", 60471),
      copilotWarning: De("copilot-warning", 60472),
      python: De("python", 60473),
      copilotLarge: De("copilot-large", 60474),
      copilotWarningLarge: De("copilot-warning-large", 60475),
      keyboardTab: De("keyboard-tab", 60476),
      copilotBlocked: De("copilot-blocked", 60477),
      copilotNotConnected: De("copilot-not-connected", 60478),
      flag: De("flag", 60479),
      lightbulbEmpty: De("lightbulb-empty", 60480),
      symbolMethodArrow: De("symbol-method-arrow", 60481),
      copilotUnavailable: De("copilot-unavailable", 60482),
      repoPinned: De("repo-pinned", 60483),
      keyboardTabAbove: De("keyboard-tab-above", 60484),
      keyboardTabBelow: De("keyboard-tab-below", 60485),
      gitPullRequestDone: De("git-pull-request-done", 60486),
      mcp: De("mcp", 60487),
      extensionsLarge: De("extensions-large", 60488),
      layoutPanelDock: De("layout-panel-dock", 60489),
      layoutSidebarLeftDock: De("layout-sidebar-left-dock", 60490),
      layoutSidebarRightDock: De("layout-sidebar-right-dock", 60491),
      copilotInProgress: De("copilot-in-progress", 60492),
      copilotError: De("copilot-error", 60493),
      copilotSuccess: De("copilot-success", 60494),
      chatSparkle: De("chat-sparkle", 60495),
      searchSparkle: De("search-sparkle", 60496),
      editSparkle: De("edit-sparkle", 60497),
      copilotSnooze: De("copilot-snooze", 60498),
      sendToRemoteAgent: De("send-to-remote-agent", 60499),
      commentDiscussionSparkle: De("comment-discussion-sparkle", 60500),
      chatSparkleWarning: De("chat-sparkle-warning", 60501),
      chatSparkleError: De("chat-sparkle-error", 60502),
      collection: De("collection", 60503),
      newCollection: De("new-collection", 60504),
      thinking: De("thinking", 60505),
      build: De("build", 60506),
      commentDiscussionQuote: De("comment-discussion-quote", 60507),
      cursor: De("cursor", 60508),
      eraser: De("eraser", 60509),
      fileText: De("file-text", 60510),
      gitLens: De("git-lens", 60511),
      quotes: De("quotes", 60512),
      rename: De("rename", 60513),
      runWithDeps: De("run-with-deps", 60514),
      debugConnected: De("debug-connected", 60515),
      strikethrough: De("strikethrough", 60516),
      openInProduct: De("open-in-product", 60517),
      indexZero: De("index-zero", 60518),
      agent: De("agent", 60519),
      editCode: De("edit-code", 60520),
      repoSelected: De("repo-selected", 60521),
      skip: De("skip", 60522),
      mergeInto: De("merge-into", 60523),
      gitBranchChanges: De("git-branch-changes", 60524),
      gitBranchStagedChanges: De("git-branch-staged-changes", 60525),
      gitBranchConflicts: De("git-branch-conflicts", 60526),
      gitBranch: De("git-branch", 60527),
      gitBranchCreate: De("git-branch-create", 60527),
      gitBranchDelete: De("git-branch-delete", 60527),
      searchLarge: De("search-large", 60528),
      terminalGitBash: De("terminal-git-bash", 60529),
    },
    r5e = {
      dialogError: De("dialog-error", "error"),
      dialogWarning: De("dialog-warning", "warning"),
      dialogInfo: De("dialog-info", "info"),
      dialogClose: De("dialog-close", "close"),
      treeItemExpanded: De("tree-item-expanded", "chevron-down"),
      treeFilterOnTypeOn: De("tree-filter-on-type-on", "list-filter"),
      treeFilterOnTypeOff: De("tree-filter-on-type-off", "list-selection"),
      treeFilterClear: De("tree-filter-clear", "close"),
      treeItemLoading: De("tree-item-loading", "loading"),
      menuSelection: De("menu-selection", "check"),
      menuSubmenu: De("menu-submenu", "chevron-right"),
      menuBarMore: De("menubar-more", "more"),
      scrollbarButtonLeft: De("scrollbar-button-left", "triangle-left"),
      scrollbarButtonRight: De("scrollbar-button-right", "triangle-right"),
      scrollbarButtonUp: De("scrollbar-button-up", "triangle-up"),
      scrollbarButtonDown: De("scrollbar-button-down", "triangle-down"),
      toolBarMore: De("toolbar-more", "more"),
      quickInputBack: De("quick-input-back", "arrow-left"),
      dropDownButton: De("drop-down-button", 60084),
      symbolCustomColor: De("symbol-customcolor", 60252),
      exportIcon: De("export", 60332),
      workspaceUnspecified: De("workspace-unspecified", 60355),
      newLine: De("newline", 60394),
      thumbsDownFilled: De("thumbsdown-filled", 60435),
      thumbsUpFilled: De("thumbsup-filled", 60436),
      gitFetch: De("git-fetch", 60445),
      lightbulbSparkleAutofix: De("lightbulb-sparkle-autofix", 60447),
      debugBreakpointPending: De("debug-breakpoint-pending", 60377),
    },
    vs = { ...n5e, ...r5e };
  class i5e {
    constructor() {
      ((this._tokenizationSupports = new Map()),
        (this._factories = new Map()),
        (this._onDidChange = new WE()),
        (this.onDidChange = this._onDidChange.event),
        (this._colorMap = null));
    }
    handleChange(y) {
      this._onDidChange.fire({ changedLanguages: y, changedColorMap: !1 });
    }
    register(y, x) {
      return (
        this._tokenizationSupports.set(y, x),
        this.handleChange([y]),
        hB(() => {
          this._tokenizationSupports.get(y) === x &&
            (this._tokenizationSupports.delete(y), this.handleChange([y]));
        })
      );
    }
    get(y) {
      return this._tokenizationSupports.get(y) || null;
    }
    registerFactory(y, x) {
      this._factories.get(y)?.dispose();
      const F = new o5e(this, y, x);
      return (
        this._factories.set(y, F),
        hB(() => {
          const $ = this._factories.get(y);
          !$ || $ !== F || (this._factories.delete(y), $.dispose());
        })
      );
    }
    async getOrCreate(y) {
      const x = this.get(y);
      if (x) return x;
      const F = this._factories.get(y);
      return !F || F.isResolved ? null : (await F.resolve(), this.get(y));
    }
    isResolved(y) {
      if (this.get(y)) return !0;
      const F = this._factories.get(y);
      return !!(!F || F.isResolved);
    }
    setColorMap(y) {
      ((this._colorMap = y),
        this._onDidChange.fire({
          changedLanguages: Array.from(this._tokenizationSupports.keys()),
          changedColorMap: !0,
        }));
    }
    getColorMap() {
      return this._colorMap;
    }
    getDefaultBackground() {
      return this._colorMap && this._colorMap.length > 2
        ? this._colorMap[2]
        : null;
    }
  }
  class o5e extends oN {
    get isResolved() {
      return this._isResolved;
    }
    constructor(y, x, F) {
      (super(),
        (this._registry = y),
        (this._languageId = x),
        (this._factory = F),
        (this._isDisposed = !1),
        (this._resolvePromise = null),
        (this._isResolved = !1));
    }
    dispose() {
      ((this._isDisposed = !0), super.dispose());
    }
    async resolve() {
      return (
        this._resolvePromise || (this._resolvePromise = this._create()),
        this._resolvePromise
      );
    }
    async _create() {
      const y = await this._factory.tokenizationSupport;
      ((this._isResolved = !0),
        y &&
          !this._isDisposed &&
          this._register(this._registry.register(this._languageId, y)));
    }
  }
  class a5e {
    constructor(y, x, F) {
      ((this.offset = y),
        (this.type = x),
        (this.language = F),
        (this._tokenBrand = void 0));
    }
    toString() {
      return "(" + this.offset + ", " + this.type + ")";
    }
  }
  var bve;
  (function (b) {
    ((b[(b.Increase = 0)] = "Increase"), (b[(b.Decrease = 1)] = "Decrease"));
  })(bve || (bve = {}));
  var Tve;
  (function (b) {
    const y = new Map();
    (y.set(0, vs.symbolMethod),
      y.set(1, vs.symbolFunction),
      y.set(2, vs.symbolConstructor),
      y.set(3, vs.symbolField),
      y.set(4, vs.symbolVariable),
      y.set(5, vs.symbolClass),
      y.set(6, vs.symbolStruct),
      y.set(7, vs.symbolInterface),
      y.set(8, vs.symbolModule),
      y.set(9, vs.symbolProperty),
      y.set(10, vs.symbolEvent),
      y.set(11, vs.symbolOperator),
      y.set(12, vs.symbolUnit),
      y.set(13, vs.symbolValue),
      y.set(15, vs.symbolEnum),
      y.set(14, vs.symbolConstant),
      y.set(15, vs.symbolEnum),
      y.set(16, vs.symbolEnumMember),
      y.set(17, vs.symbolKeyword),
      y.set(28, vs.symbolSnippet),
      y.set(18, vs.symbolText),
      y.set(19, vs.symbolColor),
      y.set(20, vs.symbolFile),
      y.set(21, vs.symbolReference),
      y.set(22, vs.symbolCustomColor),
      y.set(23, vs.symbolFolder),
      y.set(24, vs.symbolTypeParameter),
      y.set(25, vs.account),
      y.set(26, vs.issues),
      y.set(27, vs.tools));
    function x(Le) {
      let Ke = y.get(Le);
      return (
        Ke ||
          (console.info("No codicon found for CompletionItemKind " + Le),
          (Ke = vs.symbolProperty)),
        Ke
      );
    }
    b.toIcon = x;
    function F(Le) {
      switch (Le) {
        case 0:
          return xs(728, "Method");
        case 1:
          return xs(729, "Function");
        case 2:
          return xs(730, "Constructor");
        case 3:
          return xs(731, "Field");
        case 4:
          return xs(732, "Variable");
        case 5:
          return xs(733, "Class");
        case 6:
          return xs(734, "Struct");
        case 7:
          return xs(735, "Interface");
        case 8:
          return xs(736, "Module");
        case 9:
          return xs(737, "Property");
        case 10:
          return xs(738, "Event");
        case 11:
          return xs(739, "Operator");
        case 12:
          return xs(740, "Unit");
        case 13:
          return xs(741, "Value");
        case 14:
          return xs(742, "Constant");
        case 15:
          return xs(743, "Enum");
        case 16:
          return xs(744, "Enum Member");
        case 17:
          return xs(745, "Keyword");
        case 18:
          return xs(746, "Text");
        case 19:
          return xs(747, "Color");
        case 20:
          return xs(748, "File");
        case 21:
          return xs(749, "Reference");
        case 22:
          return xs(750, "Custom Color");
        case 23:
          return xs(751, "Folder");
        case 24:
          return xs(752, "Type Parameter");
        case 25:
          return xs(753, "User");
        case 26:
          return xs(754, "Issue");
        case 27:
          return xs(755, "Tool");
        case 28:
          return xs(756, "Snippet");
        default:
          return "";
      }
    }
    b.toLabel = F;
    const $ = new Map();
    ($.set("method", 0),
      $.set("function", 1),
      $.set("constructor", 2),
      $.set("field", 3),
      $.set("variable", 4),
      $.set("class", 5),
      $.set("struct", 6),
      $.set("interface", 7),
      $.set("module", 8),
      $.set("property", 9),
      $.set("event", 10),
      $.set("operator", 11),
      $.set("unit", 12),
      $.set("value", 13),
      $.set("constant", 14),
      $.set("enum", 15),
      $.set("enum-member", 16),
      $.set("enumMember", 16),
      $.set("keyword", 17),
      $.set("snippet", 28),
      $.set("text", 18),
      $.set("color", 19),
      $.set("file", 20),
      $.set("reference", 21),
      $.set("customcolor", 22),
      $.set("folder", 23),
      $.set("type-parameter", 24),
      $.set("typeParameter", 24),
      $.set("account", 25),
      $.set("issue", 26),
      $.set("tool", 27));
    function ge(Le, Ke) {
      let ae = $.get(Le);
      return (typeof ae > "u" && !Ke && (ae = 9), ae);
    }
    b.fromString = ge;
  })(Tve || (Tve = {}));
  var Sve;
  (function (b) {
    ((b[(b.Automatic = 0)] = "Automatic"), (b[(b.Explicit = 1)] = "Explicit"));
  })(Sve || (Sve = {}));
  var Eve;
  (function (b) {
    ((b[(b.Code = 1)] = "Code"), (b[(b.Label = 2)] = "Label"));
  })(Eve || (Eve = {}));
  var Ave;
  (function (b) {
    ((b[(b.Accepted = 0)] = "Accepted"),
      (b[(b.Rejected = 1)] = "Rejected"),
      (b[(b.Ignored = 2)] = "Ignored"));
  })(Ave || (Ave = {}));
  var Ive;
  (function (b) {
    ((b[(b.Automatic = 0)] = "Automatic"), (b[(b.PasteAs = 1)] = "PasteAs"));
  })(Ive || (Ive = {}));
  var xve;
  (function (b) {
    ((b[(b.Invoke = 1)] = "Invoke"),
      (b[(b.TriggerCharacter = 2)] = "TriggerCharacter"),
      (b[(b.ContentChange = 3)] = "ContentChange"));
  })(xve || (xve = {}));
  var Rve;
  ((function (b) {
    ((b[(b.Text = 0)] = "Text"),
      (b[(b.Read = 1)] = "Read"),
      (b[(b.Write = 2)] = "Write"));
  })(Rve || (Rve = {})),
    xs(757, "array"),
    xs(758, "boolean"),
    xs(759, "class"),
    xs(760, "constant"),
    xs(761, "constructor"),
    xs(762, "enumeration"),
    xs(763, "enumeration member"),
    xs(764, "event"),
    xs(765, "field"),
    xs(766, "file"),
    xs(767, "function"),
    xs(768, "interface"),
    xs(769, "key"),
    xs(770, "method"),
    xs(771, "module"),
    xs(772, "namespace"),
    xs(773, "null"),
    xs(774, "number"),
    xs(775, "object"),
    xs(776, "operator"),
    xs(777, "package"),
    xs(778, "property"),
    xs(779, "string"),
    xs(780, "struct"),
    xs(781, "type parameter"),
    xs(782, "variable"));
  var Dve;
  (function (b) {
    const y = new Map();
    (y.set(0, vs.symbolFile),
      y.set(1, vs.symbolModule),
      y.set(2, vs.symbolNamespace),
      y.set(3, vs.symbolPackage),
      y.set(4, vs.symbolClass),
      y.set(5, vs.symbolMethod),
      y.set(6, vs.symbolProperty),
      y.set(7, vs.symbolField),
      y.set(8, vs.symbolConstructor),
      y.set(9, vs.symbolEnum),
      y.set(10, vs.symbolInterface),
      y.set(11, vs.symbolFunction),
      y.set(12, vs.symbolVariable),
      y.set(13, vs.symbolConstant),
      y.set(14, vs.symbolString),
      y.set(15, vs.symbolNumber),
      y.set(16, vs.symbolBoolean),
      y.set(17, vs.symbolArray),
      y.set(18, vs.symbolObject),
      y.set(19, vs.symbolKey),
      y.set(20, vs.symbolNull),
      y.set(21, vs.symbolEnumMember),
      y.set(22, vs.symbolStruct),
      y.set(23, vs.symbolEvent),
      y.set(24, vs.symbolOperator),
      y.set(25, vs.symbolTypeParameter));
    function x(ge) {
      let Le = y.get(ge);
      return (
        Le ||
          (console.info("No codicon found for SymbolKind " + ge),
          (Le = vs.symbolProperty)),
        Le
      );
    }
    b.toIcon = x;
    const F = new Map();
    (F.set(0, 20),
      F.set(1, 8),
      F.set(2, 8),
      F.set(3, 8),
      F.set(4, 5),
      F.set(5, 0),
      F.set(6, 9),
      F.set(7, 3),
      F.set(8, 2),
      F.set(9, 15),
      F.set(10, 7),
      F.set(11, 1),
      F.set(12, 4),
      F.set(13, 14),
      F.set(14, 18),
      F.set(15, 13),
      F.set(16, 13),
      F.set(17, 13),
      F.set(18, 13),
      F.set(19, 17),
      F.set(20, 13),
      F.set(21, 16),
      F.set(22, 6),
      F.set(23, 10),
      F.set(24, 11),
      F.set(25, 24));
    function $(ge) {
      let Le = F.get(ge);
      return (
        Le === void 0 &&
          (console.info("No completion kind found for SymbolKind " + ge),
          (Le = 20)),
        Le
      );
    }
    b.toCompletionKind = $;
  })(Dve || (Dve = {}));
  const RT = class RT {
    static fromValue(y) {
      switch (y) {
        case "comment":
          return RT.Comment;
        case "imports":
          return RT.Imports;
        case "region":
          return RT.Region;
      }
      return new RT(y);
    }
    constructor(y) {
      this.value = y;
    }
  };
  ((RT.Comment = new RT("comment")),
    (RT.Imports = new RT("imports")),
    (RT.Region = new RT("region")));
  let Cve = RT;
  var Nve;
  (function (b) {
    b[(b.AIGenerated = 1)] = "AIGenerated";
  })(Nve || (Nve = {}));
  var Mve;
  (function (b) {
    ((b[(b.Invoke = 0)] = "Invoke"), (b[(b.Automatic = 1)] = "Automatic"));
  })(Mve || (Mve = {}));
  var Pve;
  (function (b) {
    function y(x) {
      return !x || typeof x != "object"
        ? !1
        : typeof x.id == "string" && typeof x.title == "string";
    }
    b.is = y;
  })(Pve || (Pve = {}));
  var Lve;
  ((function (b) {
    ((b[(b.Type = 1)] = "Type"), (b[(b.Parameter = 2)] = "Parameter"));
  })(Lve || (Lve = {})),
    new i5e());
  var kve;
  (function (b) {
    ((b[(b.Unknown = 0)] = "Unknown"),
      (b[(b.Disabled = 1)] = "Disabled"),
      (b[(b.Enabled = 2)] = "Enabled"));
  })(kve || (kve = {}));
  var wve;
  (function (b) {
    ((b[(b.Invoke = 1)] = "Invoke"), (b[(b.Auto = 2)] = "Auto"));
  })(wve || (wve = {}));
  var Ove;
  (function (b) {
    ((b[(b.None = 0)] = "None"),
      (b[(b.KeepWhitespace = 1)] = "KeepWhitespace"),
      (b[(b.InsertAsSnippet = 4)] = "InsertAsSnippet"));
  })(Ove || (Ove = {}));
  var Wve;
  (function (b) {
    ((b[(b.Method = 0)] = "Method"),
      (b[(b.Function = 1)] = "Function"),
      (b[(b.Constructor = 2)] = "Constructor"),
      (b[(b.Field = 3)] = "Field"),
      (b[(b.Variable = 4)] = "Variable"),
      (b[(b.Class = 5)] = "Class"),
      (b[(b.Struct = 6)] = "Struct"),
      (b[(b.Interface = 7)] = "Interface"),
      (b[(b.Module = 8)] = "Module"),
      (b[(b.Property = 9)] = "Property"),
      (b[(b.Event = 10)] = "Event"),
      (b[(b.Operator = 11)] = "Operator"),
      (b[(b.Unit = 12)] = "Unit"),
      (b[(b.Value = 13)] = "Value"),
      (b[(b.Constant = 14)] = "Constant"),
      (b[(b.Enum = 15)] = "Enum"),
      (b[(b.EnumMember = 16)] = "EnumMember"),
      (b[(b.Keyword = 17)] = "Keyword"),
      (b[(b.Text = 18)] = "Text"),
      (b[(b.Color = 19)] = "Color"),
      (b[(b.File = 20)] = "File"),
      (b[(b.Reference = 21)] = "Reference"),
      (b[(b.Customcolor = 22)] = "Customcolor"),
      (b[(b.Folder = 23)] = "Folder"),
      (b[(b.TypeParameter = 24)] = "TypeParameter"),
      (b[(b.User = 25)] = "User"),
      (b[(b.Issue = 26)] = "Issue"),
      (b[(b.Tool = 27)] = "Tool"),
      (b[(b.Snippet = 28)] = "Snippet"));
  })(Wve || (Wve = {}));
  var Fve;
  (function (b) {
    b[(b.Deprecated = 1)] = "Deprecated";
  })(Fve || (Fve = {}));
  var zve;
  (function (b) {
    ((b[(b.Invoke = 0)] = "Invoke"),
      (b[(b.TriggerCharacter = 1)] = "TriggerCharacter"),
      (b[(b.TriggerForIncompleteCompletions = 2)] =
        "TriggerForIncompleteCompletions"));
  })(zve || (zve = {}));
  var Bve;
  (function (b) {
    ((b[(b.EXACT = 0)] = "EXACT"),
      (b[(b.ABOVE = 1)] = "ABOVE"),
      (b[(b.BELOW = 2)] = "BELOW"));
  })(Bve || (Bve = {}));
  var Gve;
  (function (b) {
    ((b[(b.NotSet = 0)] = "NotSet"),
      (b[(b.ContentFlush = 1)] = "ContentFlush"),
      (b[(b.RecoverFromMarkers = 2)] = "RecoverFromMarkers"),
      (b[(b.Explicit = 3)] = "Explicit"),
      (b[(b.Paste = 4)] = "Paste"),
      (b[(b.Undo = 5)] = "Undo"),
      (b[(b.Redo = 6)] = "Redo"));
  })(Gve || (Gve = {}));
  var Vve;
  (function (b) {
    ((b[(b.LF = 1)] = "LF"), (b[(b.CRLF = 2)] = "CRLF"));
  })(Vve || (Vve = {}));
  var jve;
  (function (b) {
    ((b[(b.Text = 0)] = "Text"),
      (b[(b.Read = 1)] = "Read"),
      (b[(b.Write = 2)] = "Write"));
  })(jve || (jve = {}));
  var Uve;
  (function (b) {
    ((b[(b.None = 0)] = "None"),
      (b[(b.Keep = 1)] = "Keep"),
      (b[(b.Brackets = 2)] = "Brackets"),
      (b[(b.Advanced = 3)] = "Advanced"),
      (b[(b.Full = 4)] = "Full"));
  })(Uve || (Uve = {}));
  var Hve;
  (function (b) {
    ((b[(b.acceptSuggestionOnCommitCharacter = 0)] =
      "acceptSuggestionOnCommitCharacter"),
      (b[(b.acceptSuggestionOnEnter = 1)] = "acceptSuggestionOnEnter"),
      (b[(b.accessibilitySupport = 2)] = "accessibilitySupport"),
      (b[(b.accessibilityPageSize = 3)] = "accessibilityPageSize"),
      (b[(b.allowOverflow = 4)] = "allowOverflow"),
      (b[(b.allowVariableLineHeights = 5)] = "allowVariableLineHeights"),
      (b[(b.allowVariableFonts = 6)] = "allowVariableFonts"),
      (b[(b.allowVariableFontsInAccessibilityMode = 7)] =
        "allowVariableFontsInAccessibilityMode"),
      (b[(b.ariaLabel = 8)] = "ariaLabel"),
      (b[(b.ariaRequired = 9)] = "ariaRequired"),
      (b[(b.autoClosingBrackets = 10)] = "autoClosingBrackets"),
      (b[(b.autoClosingComments = 11)] = "autoClosingComments"),
      (b[(b.screenReaderAnnounceInlineSuggestion = 12)] =
        "screenReaderAnnounceInlineSuggestion"),
      (b[(b.autoClosingDelete = 13)] = "autoClosingDelete"),
      (b[(b.autoClosingOvertype = 14)] = "autoClosingOvertype"),
      (b[(b.autoClosingQuotes = 15)] = "autoClosingQuotes"),
      (b[(b.autoIndent = 16)] = "autoIndent"),
      (b[(b.autoIndentOnPaste = 17)] = "autoIndentOnPaste"),
      (b[(b.autoIndentOnPasteWithinString = 18)] =
        "autoIndentOnPasteWithinString"),
      (b[(b.automaticLayout = 19)] = "automaticLayout"),
      (b[(b.autoSurround = 20)] = "autoSurround"),
      (b[(b.bracketPairColorization = 21)] = "bracketPairColorization"),
      (b[(b.guides = 22)] = "guides"),
      (b[(b.codeLens = 23)] = "codeLens"),
      (b[(b.codeLensFontFamily = 24)] = "codeLensFontFamily"),
      (b[(b.codeLensFontSize = 25)] = "codeLensFontSize"),
      (b[(b.colorDecorators = 26)] = "colorDecorators"),
      (b[(b.colorDecoratorsLimit = 27)] = "colorDecoratorsLimit"),
      (b[(b.columnSelection = 28)] = "columnSelection"),
      (b[(b.comments = 29)] = "comments"),
      (b[(b.contextmenu = 30)] = "contextmenu"),
      (b[(b.copyWithSyntaxHighlighting = 31)] = "copyWithSyntaxHighlighting"),
      (b[(b.cursorBlinking = 32)] = "cursorBlinking"),
      (b[(b.cursorSmoothCaretAnimation = 33)] = "cursorSmoothCaretAnimation"),
      (b[(b.cursorStyle = 34)] = "cursorStyle"),
      (b[(b.cursorSurroundingLines = 35)] = "cursorSurroundingLines"),
      (b[(b.cursorSurroundingLinesStyle = 36)] = "cursorSurroundingLinesStyle"),
      (b[(b.cursorWidth = 37)] = "cursorWidth"),
      (b[(b.cursorHeight = 38)] = "cursorHeight"),
      (b[(b.disableLayerHinting = 39)] = "disableLayerHinting"),
      (b[(b.disableMonospaceOptimizations = 40)] =
        "disableMonospaceOptimizations"),
      (b[(b.domReadOnly = 41)] = "domReadOnly"),
      (b[(b.dragAndDrop = 42)] = "dragAndDrop"),
      (b[(b.dropIntoEditor = 43)] = "dropIntoEditor"),
      (b[(b.editContext = 44)] = "editContext"),
      (b[(b.emptySelectionClipboard = 45)] = "emptySelectionClipboard"),
      (b[(b.experimentalGpuAcceleration = 46)] = "experimentalGpuAcceleration"),
      (b[(b.experimentalWhitespaceRendering = 47)] =
        "experimentalWhitespaceRendering"),
      (b[(b.extraEditorClassName = 48)] = "extraEditorClassName"),
      (b[(b.fastScrollSensitivity = 49)] = "fastScrollSensitivity"),
      (b[(b.find = 50)] = "find"),
      (b[(b.fixedOverflowWidgets = 51)] = "fixedOverflowWidgets"),
      (b[(b.folding = 52)] = "folding"),
      (b[(b.foldingStrategy = 53)] = "foldingStrategy"),
      (b[(b.foldingHighlight = 54)] = "foldingHighlight"),
      (b[(b.foldingImportsByDefault = 55)] = "foldingImportsByDefault"),
      (b[(b.foldingMaximumRegions = 56)] = "foldingMaximumRegions"),
      (b[(b.unfoldOnClickAfterEndOfLine = 57)] = "unfoldOnClickAfterEndOfLine"),
      (b[(b.fontFamily = 58)] = "fontFamily"),
      (b[(b.fontInfo = 59)] = "fontInfo"),
      (b[(b.fontLigatures = 60)] = "fontLigatures"),
      (b[(b.fontSize = 61)] = "fontSize"),
      (b[(b.fontWeight = 62)] = "fontWeight"),
      (b[(b.fontVariations = 63)] = "fontVariations"),
      (b[(b.formatOnPaste = 64)] = "formatOnPaste"),
      (b[(b.formatOnType = 65)] = "formatOnType"),
      (b[(b.glyphMargin = 66)] = "glyphMargin"),
      (b[(b.gotoLocation = 67)] = "gotoLocation"),
      (b[(b.hideCursorInOverviewRuler = 68)] = "hideCursorInOverviewRuler"),
      (b[(b.hover = 69)] = "hover"),
      (b[(b.inDiffEditor = 70)] = "inDiffEditor"),
      (b[(b.inlineSuggest = 71)] = "inlineSuggest"),
      (b[(b.letterSpacing = 72)] = "letterSpacing"),
      (b[(b.lightbulb = 73)] = "lightbulb"),
      (b[(b.lineDecorationsWidth = 74)] = "lineDecorationsWidth"),
      (b[(b.lineHeight = 75)] = "lineHeight"),
      (b[(b.lineNumbers = 76)] = "lineNumbers"),
      (b[(b.lineNumbersMinChars = 77)] = "lineNumbersMinChars"),
      (b[(b.linkedEditing = 78)] = "linkedEditing"),
      (b[(b.links = 79)] = "links"),
      (b[(b.matchBrackets = 80)] = "matchBrackets"),
      (b[(b.minimap = 81)] = "minimap"),
      (b[(b.mouseStyle = 82)] = "mouseStyle"),
      (b[(b.mouseWheelScrollSensitivity = 83)] = "mouseWheelScrollSensitivity"),
      (b[(b.mouseWheelZoom = 84)] = "mouseWheelZoom"),
      (b[(b.multiCursorMergeOverlapping = 85)] = "multiCursorMergeOverlapping"),
      (b[(b.multiCursorModifier = 86)] = "multiCursorModifier"),
      (b[(b.mouseMiddleClickAction = 87)] = "mouseMiddleClickAction"),
      (b[(b.multiCursorPaste = 88)] = "multiCursorPaste"),
      (b[(b.multiCursorLimit = 89)] = "multiCursorLimit"),
      (b[(b.occurrencesHighlight = 90)] = "occurrencesHighlight"),
      (b[(b.occurrencesHighlightDelay = 91)] = "occurrencesHighlightDelay"),
      (b[(b.overtypeCursorStyle = 92)] = "overtypeCursorStyle"),
      (b[(b.overtypeOnPaste = 93)] = "overtypeOnPaste"),
      (b[(b.overviewRulerBorder = 94)] = "overviewRulerBorder"),
      (b[(b.overviewRulerLanes = 95)] = "overviewRulerLanes"),
      (b[(b.padding = 96)] = "padding"),
      (b[(b.pasteAs = 97)] = "pasteAs"),
      (b[(b.parameterHints = 98)] = "parameterHints"),
      (b[(b.peekWidgetDefaultFocus = 99)] = "peekWidgetDefaultFocus"),
      (b[(b.placeholder = 100)] = "placeholder"),
      (b[(b.definitionLinkOpensInPeek = 101)] = "definitionLinkOpensInPeek"),
      (b[(b.quickSuggestions = 102)] = "quickSuggestions"),
      (b[(b.quickSuggestionsDelay = 103)] = "quickSuggestionsDelay"),
      (b[(b.readOnly = 104)] = "readOnly"),
      (b[(b.readOnlyMessage = 105)] = "readOnlyMessage"),
      (b[(b.renameOnType = 106)] = "renameOnType"),
      (b[(b.renderRichScreenReaderContent = 107)] =
        "renderRichScreenReaderContent"),
      (b[(b.renderControlCharacters = 108)] = "renderControlCharacters"),
      (b[(b.renderFinalNewline = 109)] = "renderFinalNewline"),
      (b[(b.renderLineHighlight = 110)] = "renderLineHighlight"),
      (b[(b.renderLineHighlightOnlyWhenFocus = 111)] =
        "renderLineHighlightOnlyWhenFocus"),
      (b[(b.renderValidationDecorations = 112)] =
        "renderValidationDecorations"),
      (b[(b.renderWhitespace = 113)] = "renderWhitespace"),
      (b[(b.revealHorizontalRightPadding = 114)] =
        "revealHorizontalRightPadding"),
      (b[(b.roundedSelection = 115)] = "roundedSelection"),
      (b[(b.rulers = 116)] = "rulers"),
      (b[(b.scrollbar = 117)] = "scrollbar"),
      (b[(b.scrollBeyondLastColumn = 118)] = "scrollBeyondLastColumn"),
      (b[(b.scrollBeyondLastLine = 119)] = "scrollBeyondLastLine"),
      (b[(b.scrollPredominantAxis = 120)] = "scrollPredominantAxis"),
      (b[(b.selectionClipboard = 121)] = "selectionClipboard"),
      (b[(b.selectionHighlight = 122)] = "selectionHighlight"),
      (b[(b.selectionHighlightMaxLength = 123)] =
        "selectionHighlightMaxLength"),
      (b[(b.selectionHighlightMultiline = 124)] =
        "selectionHighlightMultiline"),
      (b[(b.selectOnLineNumbers = 125)] = "selectOnLineNumbers"),
      (b[(b.showFoldingControls = 126)] = "showFoldingControls"),
      (b[(b.showUnused = 127)] = "showUnused"),
      (b[(b.snippetSuggestions = 128)] = "snippetSuggestions"),
      (b[(b.smartSelect = 129)] = "smartSelect"),
      (b[(b.smoothScrolling = 130)] = "smoothScrolling"),
      (b[(b.stickyScroll = 131)] = "stickyScroll"),
      (b[(b.stickyTabStops = 132)] = "stickyTabStops"),
      (b[(b.stopRenderingLineAfter = 133)] = "stopRenderingLineAfter"),
      (b[(b.suggest = 134)] = "suggest"),
      (b[(b.suggestFontSize = 135)] = "suggestFontSize"),
      (b[(b.suggestLineHeight = 136)] = "suggestLineHeight"),
      (b[(b.suggestOnTriggerCharacters = 137)] = "suggestOnTriggerCharacters"),
      (b[(b.suggestSelection = 138)] = "suggestSelection"),
      (b[(b.tabCompletion = 139)] = "tabCompletion"),
      (b[(b.tabIndex = 140)] = "tabIndex"),
      (b[(b.trimWhitespaceOnDelete = 141)] = "trimWhitespaceOnDelete"),
      (b[(b.unicodeHighlighting = 142)] = "unicodeHighlighting"),
      (b[(b.unusualLineTerminators = 143)] = "unusualLineTerminators"),
      (b[(b.useShadowDOM = 144)] = "useShadowDOM"),
      (b[(b.useTabStops = 145)] = "useTabStops"),
      (b[(b.wordBreak = 146)] = "wordBreak"),
      (b[(b.wordSegmenterLocales = 147)] = "wordSegmenterLocales"),
      (b[(b.wordSeparators = 148)] = "wordSeparators"),
      (b[(b.wordWrap = 149)] = "wordWrap"),
      (b[(b.wordWrapBreakAfterCharacters = 150)] =
        "wordWrapBreakAfterCharacters"),
      (b[(b.wordWrapBreakBeforeCharacters = 151)] =
        "wordWrapBreakBeforeCharacters"),
      (b[(b.wordWrapColumn = 152)] = "wordWrapColumn"),
      (b[(b.wordWrapOverride1 = 153)] = "wordWrapOverride1"),
      (b[(b.wordWrapOverride2 = 154)] = "wordWrapOverride2"),
      (b[(b.wrappingIndent = 155)] = "wrappingIndent"),
      (b[(b.wrappingStrategy = 156)] = "wrappingStrategy"),
      (b[(b.showDeprecated = 157)] = "showDeprecated"),
      (b[(b.inertialScroll = 158)] = "inertialScroll"),
      (b[(b.inlayHints = 159)] = "inlayHints"),
      (b[(b.wrapOnEscapedLineFeeds = 160)] = "wrapOnEscapedLineFeeds"),
      (b[(b.effectiveCursorStyle = 161)] = "effectiveCursorStyle"),
      (b[(b.editorClassName = 162)] = "editorClassName"),
      (b[(b.pixelRatio = 163)] = "pixelRatio"),
      (b[(b.tabFocusMode = 164)] = "tabFocusMode"),
      (b[(b.layoutInfo = 165)] = "layoutInfo"),
      (b[(b.wrappingInfo = 166)] = "wrappingInfo"),
      (b[(b.defaultColorDecorators = 167)] = "defaultColorDecorators"),
      (b[(b.colorDecoratorsActivatedOn = 168)] = "colorDecoratorsActivatedOn"),
      (b[(b.inlineCompletionsAccessibilityVerbose = 169)] =
        "inlineCompletionsAccessibilityVerbose"),
      (b[(b.effectiveEditContext = 170)] = "effectiveEditContext"),
      (b[(b.scrollOnMiddleClick = 171)] = "scrollOnMiddleClick"),
      (b[(b.effectiveAllowVariableFonts = 172)] =
        "effectiveAllowVariableFonts"));
  })(Hve || (Hve = {}));
  var qve;
  (function (b) {
    ((b[(b.TextDefined = 0)] = "TextDefined"),
      (b[(b.LF = 1)] = "LF"),
      (b[(b.CRLF = 2)] = "CRLF"));
  })(qve || (qve = {}));
  var Jve;
  (function (b) {
    ((b[(b.LF = 0)] = "LF"), (b[(b.CRLF = 1)] = "CRLF"));
  })(Jve || (Jve = {}));
  var Kve;
  (function (b) {
    ((b[(b.Left = 1)] = "Left"),
      (b[(b.Center = 2)] = "Center"),
      (b[(b.Right = 3)] = "Right"));
  })(Kve || (Kve = {}));
  var Xve;
  (function (b) {
    ((b[(b.Increase = 0)] = "Increase"), (b[(b.Decrease = 1)] = "Decrease"));
  })(Xve || (Xve = {}));
  var Yve;
  (function (b) {
    ((b[(b.None = 0)] = "None"),
      (b[(b.Indent = 1)] = "Indent"),
      (b[(b.IndentOutdent = 2)] = "IndentOutdent"),
      (b[(b.Outdent = 3)] = "Outdent"));
  })(Yve || (Yve = {}));
  var $ve;
  (function (b) {
    ((b[(b.Both = 0)] = "Both"),
      (b[(b.Right = 1)] = "Right"),
      (b[(b.Left = 2)] = "Left"),
      (b[(b.None = 3)] = "None"));
  })($ve || ($ve = {}));
  var Qve;
  (function (b) {
    ((b[(b.Type = 1)] = "Type"), (b[(b.Parameter = 2)] = "Parameter"));
  })(Qve || (Qve = {}));
  var Zve;
  (function (b) {
    ((b[(b.Accepted = 0)] = "Accepted"),
      (b[(b.Rejected = 1)] = "Rejected"),
      (b[(b.Ignored = 2)] = "Ignored"));
  })(Zve || (Zve = {}));
  var ebe;
  (function (b) {
    ((b[(b.Code = 1)] = "Code"), (b[(b.Label = 2)] = "Label"));
  })(ebe || (ebe = {}));
  var tbe;
  (function (b) {
    ((b[(b.Automatic = 0)] = "Automatic"), (b[(b.Explicit = 1)] = "Explicit"));
  })(tbe || (tbe = {}));
  var AQ;
  (function (b) {
    ((b[(b.DependsOnKbLayout = -1)] = "DependsOnKbLayout"),
      (b[(b.Unknown = 0)] = "Unknown"),
      (b[(b.Backspace = 1)] = "Backspace"),
      (b[(b.Tab = 2)] = "Tab"),
      (b[(b.Enter = 3)] = "Enter"),
      (b[(b.Shift = 4)] = "Shift"),
      (b[(b.Ctrl = 5)] = "Ctrl"),
      (b[(b.Alt = 6)] = "Alt"),
      (b[(b.PauseBreak = 7)] = "PauseBreak"),
      (b[(b.CapsLock = 8)] = "CapsLock"),
      (b[(b.Escape = 9)] = "Escape"),
      (b[(b.Space = 10)] = "Space"),
      (b[(b.PageUp = 11)] = "PageUp"),
      (b[(b.PageDown = 12)] = "PageDown"),
      (b[(b.End = 13)] = "End"),
      (b[(b.Home = 14)] = "Home"),
      (b[(b.LeftArrow = 15)] = "LeftArrow"),
      (b[(b.UpArrow = 16)] = "UpArrow"),
      (b[(b.RightArrow = 17)] = "RightArrow"),
      (b[(b.DownArrow = 18)] = "DownArrow"),
      (b[(b.Insert = 19)] = "Insert"),
      (b[(b.Delete = 20)] = "Delete"),
      (b[(b.Digit0 = 21)] = "Digit0"),
      (b[(b.Digit1 = 22)] = "Digit1"),
      (b[(b.Digit2 = 23)] = "Digit2"),
      (b[(b.Digit3 = 24)] = "Digit3"),
      (b[(b.Digit4 = 25)] = "Digit4"),
      (b[(b.Digit5 = 26)] = "Digit5"),
      (b[(b.Digit6 = 27)] = "Digit6"),
      (b[(b.Digit7 = 28)] = "Digit7"),
      (b[(b.Digit8 = 29)] = "Digit8"),
      (b[(b.Digit9 = 30)] = "Digit9"),
      (b[(b.KeyA = 31)] = "KeyA"),
      (b[(b.KeyB = 32)] = "KeyB"),
      (b[(b.KeyC = 33)] = "KeyC"),
      (b[(b.KeyD = 34)] = "KeyD"),
      (b[(b.KeyE = 35)] = "KeyE"),
      (b[(b.KeyF = 36)] = "KeyF"),
      (b[(b.KeyG = 37)] = "KeyG"),
      (b[(b.KeyH = 38)] = "KeyH"),
      (b[(b.KeyI = 39)] = "KeyI"),
      (b[(b.KeyJ = 40)] = "KeyJ"),
      (b[(b.KeyK = 41)] = "KeyK"),
      (b[(b.KeyL = 42)] = "KeyL"),
      (b[(b.KeyM = 43)] = "KeyM"),
      (b[(b.KeyN = 44)] = "KeyN"),
      (b[(b.KeyO = 45)] = "KeyO"),
      (b[(b.KeyP = 46)] = "KeyP"),
      (b[(b.KeyQ = 47)] = "KeyQ"),
      (b[(b.KeyR = 48)] = "KeyR"),
      (b[(b.KeyS = 49)] = "KeyS"),
      (b[(b.KeyT = 50)] = "KeyT"),
      (b[(b.KeyU = 51)] = "KeyU"),
      (b[(b.KeyV = 52)] = "KeyV"),
      (b[(b.KeyW = 53)] = "KeyW"),
      (b[(b.KeyX = 54)] = "KeyX"),
      (b[(b.KeyY = 55)] = "KeyY"),
      (b[(b.KeyZ = 56)] = "KeyZ"),
      (b[(b.Meta = 57)] = "Meta"),
      (b[(b.ContextMenu = 58)] = "ContextMenu"),
      (b[(b.F1 = 59)] = "F1"),
      (b[(b.F2 = 60)] = "F2"),
      (b[(b.F3 = 61)] = "F3"),
      (b[(b.F4 = 62)] = "F4"),
      (b[(b.F5 = 63)] = "F5"),
      (b[(b.F6 = 64)] = "F6"),
      (b[(b.F7 = 65)] = "F7"),
      (b[(b.F8 = 66)] = "F8"),
      (b[(b.F9 = 67)] = "F9"),
      (b[(b.F10 = 68)] = "F10"),
      (b[(b.F11 = 69)] = "F11"),
      (b[(b.F12 = 70)] = "F12"),
      (b[(b.F13 = 71)] = "F13"),
      (b[(b.F14 = 72)] = "F14"),
      (b[(b.F15 = 73)] = "F15"),
      (b[(b.F16 = 74)] = "F16"),
      (b[(b.F17 = 75)] = "F17"),
      (b[(b.F18 = 76)] = "F18"),
      (b[(b.F19 = 77)] = "F19"),
      (b[(b.F20 = 78)] = "F20"),
      (b[(b.F21 = 79)] = "F21"),
      (b[(b.F22 = 80)] = "F22"),
      (b[(b.F23 = 81)] = "F23"),
      (b[(b.F24 = 82)] = "F24"),
      (b[(b.NumLock = 83)] = "NumLock"),
      (b[(b.ScrollLock = 84)] = "ScrollLock"),
      (b[(b.Semicolon = 85)] = "Semicolon"),
      (b[(b.Equal = 86)] = "Equal"),
      (b[(b.Comma = 87)] = "Comma"),
      (b[(b.Minus = 88)] = "Minus"),
      (b[(b.Period = 89)] = "Period"),
      (b[(b.Slash = 90)] = "Slash"),
      (b[(b.Backquote = 91)] = "Backquote"),
      (b[(b.BracketLeft = 92)] = "BracketLeft"),
      (b[(b.Backslash = 93)] = "Backslash"),
      (b[(b.BracketRight = 94)] = "BracketRight"),
      (b[(b.Quote = 95)] = "Quote"),
      (b[(b.OEM_8 = 96)] = "OEM_8"),
      (b[(b.IntlBackslash = 97)] = "IntlBackslash"),
      (b[(b.Numpad0 = 98)] = "Numpad0"),
      (b[(b.Numpad1 = 99)] = "Numpad1"),
      (b[(b.Numpad2 = 100)] = "Numpad2"),
      (b[(b.Numpad3 = 101)] = "Numpad3"),
      (b[(b.Numpad4 = 102)] = "Numpad4"),
      (b[(b.Numpad5 = 103)] = "Numpad5"),
      (b[(b.Numpad6 = 104)] = "Numpad6"),
      (b[(b.Numpad7 = 105)] = "Numpad7"),
      (b[(b.Numpad8 = 106)] = "Numpad8"),
      (b[(b.Numpad9 = 107)] = "Numpad9"),
      (b[(b.NumpadMultiply = 108)] = "NumpadMultiply"),
      (b[(b.NumpadAdd = 109)] = "NumpadAdd"),
      (b[(b.NUMPAD_SEPARATOR = 110)] = "NUMPAD_SEPARATOR"),
      (b[(b.NumpadSubtract = 111)] = "NumpadSubtract"),
      (b[(b.NumpadDecimal = 112)] = "NumpadDecimal"),
      (b[(b.NumpadDivide = 113)] = "NumpadDivide"),
      (b[(b.KEY_IN_COMPOSITION = 114)] = "KEY_IN_COMPOSITION"),
      (b[(b.ABNT_C1 = 115)] = "ABNT_C1"),
      (b[(b.ABNT_C2 = 116)] = "ABNT_C2"),
      (b[(b.AudioVolumeMute = 117)] = "AudioVolumeMute"),
      (b[(b.AudioVolumeUp = 118)] = "AudioVolumeUp"),
      (b[(b.AudioVolumeDown = 119)] = "AudioVolumeDown"),
      (b[(b.BrowserSearch = 120)] = "BrowserSearch"),
      (b[(b.BrowserHome = 121)] = "BrowserHome"),
      (b[(b.BrowserBack = 122)] = "BrowserBack"),
      (b[(b.BrowserForward = 123)] = "BrowserForward"),
      (b[(b.MediaTrackNext = 124)] = "MediaTrackNext"),
      (b[(b.MediaTrackPrevious = 125)] = "MediaTrackPrevious"),
      (b[(b.MediaStop = 126)] = "MediaStop"),
      (b[(b.MediaPlayPause = 127)] = "MediaPlayPause"),
      (b[(b.LaunchMediaPlayer = 128)] = "LaunchMediaPlayer"),
      (b[(b.LaunchMail = 129)] = "LaunchMail"),
      (b[(b.LaunchApp2 = 130)] = "LaunchApp2"),
      (b[(b.Clear = 131)] = "Clear"),
      (b[(b.MAX_VALUE = 132)] = "MAX_VALUE"));
  })(AQ || (AQ = {}));
  var IQ;
  (function (b) {
    ((b[(b.Hint = 1)] = "Hint"),
      (b[(b.Info = 2)] = "Info"),
      (b[(b.Warning = 4)] = "Warning"),
      (b[(b.Error = 8)] = "Error"));
  })(IQ || (IQ = {}));
  var xQ;
  (function (b) {
    ((b[(b.Unnecessary = 1)] = "Unnecessary"),
      (b[(b.Deprecated = 2)] = "Deprecated"));
  })(xQ || (xQ = {}));
  var nbe;
  (function (b) {
    ((b[(b.Inline = 1)] = "Inline"), (b[(b.Gutter = 2)] = "Gutter"));
  })(nbe || (nbe = {}));
  var rbe;
  (function (b) {
    ((b[(b.Normal = 1)] = "Normal"), (b[(b.Underlined = 2)] = "Underlined"));
  })(rbe || (rbe = {}));
  var ibe;
  (function (b) {
    ((b[(b.UNKNOWN = 0)] = "UNKNOWN"),
      (b[(b.TEXTAREA = 1)] = "TEXTAREA"),
      (b[(b.GUTTER_GLYPH_MARGIN = 2)] = "GUTTER_GLYPH_MARGIN"),
      (b[(b.GUTTER_LINE_NUMBERS = 3)] = "GUTTER_LINE_NUMBERS"),
      (b[(b.GUTTER_LINE_DECORATIONS = 4)] = "GUTTER_LINE_DECORATIONS"),
      (b[(b.GUTTER_VIEW_ZONE = 5)] = "GUTTER_VIEW_ZONE"),
      (b[(b.CONTENT_TEXT = 6)] = "CONTENT_TEXT"),
      (b[(b.CONTENT_EMPTY = 7)] = "CONTENT_EMPTY"),
      (b[(b.CONTENT_VIEW_ZONE = 8)] = "CONTENT_VIEW_ZONE"),
      (b[(b.CONTENT_WIDGET = 9)] = "CONTENT_WIDGET"),
      (b[(b.OVERVIEW_RULER = 10)] = "OVERVIEW_RULER"),
      (b[(b.SCROLLBAR = 11)] = "SCROLLBAR"),
      (b[(b.OVERLAY_WIDGET = 12)] = "OVERLAY_WIDGET"),
      (b[(b.OUTSIDE_EDITOR = 13)] = "OUTSIDE_EDITOR"));
  })(ibe || (ibe = {}));
  var obe;
  (function (b) {
    b[(b.AIGenerated = 1)] = "AIGenerated";
  })(obe || (obe = {}));
  var abe;
  (function (b) {
    ((b[(b.Invoke = 0)] = "Invoke"), (b[(b.Automatic = 1)] = "Automatic"));
  })(abe || (abe = {}));
  var sbe;
  (function (b) {
    ((b[(b.TOP_RIGHT_CORNER = 0)] = "TOP_RIGHT_CORNER"),
      (b[(b.BOTTOM_RIGHT_CORNER = 1)] = "BOTTOM_RIGHT_CORNER"),
      (b[(b.TOP_CENTER = 2)] = "TOP_CENTER"));
  })(sbe || (sbe = {}));
  var lbe;
  (function (b) {
    ((b[(b.Left = 1)] = "Left"),
      (b[(b.Center = 2)] = "Center"),
      (b[(b.Right = 4)] = "Right"),
      (b[(b.Full = 7)] = "Full"));
  })(lbe || (lbe = {}));
  var cbe;
  (function (b) {
    ((b[(b.Word = 0)] = "Word"),
      (b[(b.Line = 1)] = "Line"),
      (b[(b.Suggest = 2)] = "Suggest"));
  })(cbe || (cbe = {}));
  var dbe;
  (function (b) {
    ((b[(b.Left = 0)] = "Left"),
      (b[(b.Right = 1)] = "Right"),
      (b[(b.None = 2)] = "None"),
      (b[(b.LeftOfInjectedText = 3)] = "LeftOfInjectedText"),
      (b[(b.RightOfInjectedText = 4)] = "RightOfInjectedText"));
  })(dbe || (dbe = {}));
  var ube;
  (function (b) {
    ((b[(b.Off = 0)] = "Off"),
      (b[(b.On = 1)] = "On"),
      (b[(b.Relative = 2)] = "Relative"),
      (b[(b.Interval = 3)] = "Interval"),
      (b[(b.Custom = 4)] = "Custom"));
  })(ube || (ube = {}));
  var pbe;
  (function (b) {
    ((b[(b.None = 0)] = "None"),
      (b[(b.Text = 1)] = "Text"),
      (b[(b.Blocks = 2)] = "Blocks"));
  })(pbe || (pbe = {}));
  var fbe;
  (function (b) {
    ((b[(b.Smooth = 0)] = "Smooth"), (b[(b.Immediate = 1)] = "Immediate"));
  })(fbe || (fbe = {}));
  var mbe;
  (function (b) {
    ((b[(b.Auto = 1)] = "Auto"),
      (b[(b.Hidden = 2)] = "Hidden"),
      (b[(b.Visible = 3)] = "Visible"));
  })(mbe || (mbe = {}));
  var RQ;
  (function (b) {
    ((b[(b.LTR = 0)] = "LTR"), (b[(b.RTL = 1)] = "RTL"));
  })(RQ || (RQ = {}));
  var hbe;
  (function (b) {
    ((b.Off = "off"), (b.OnCode = "onCode"), (b.On = "on"));
  })(hbe || (hbe = {}));
  var _be;
  (function (b) {
    ((b[(b.Invoke = 1)] = "Invoke"),
      (b[(b.TriggerCharacter = 2)] = "TriggerCharacter"),
      (b[(b.ContentChange = 3)] = "ContentChange"));
  })(_be || (_be = {}));
  var gbe;
  (function (b) {
    ((b[(b.File = 0)] = "File"),
      (b[(b.Module = 1)] = "Module"),
      (b[(b.Namespace = 2)] = "Namespace"),
      (b[(b.Package = 3)] = "Package"),
      (b[(b.Class = 4)] = "Class"),
      (b[(b.Method = 5)] = "Method"),
      (b[(b.Property = 6)] = "Property"),
      (b[(b.Field = 7)] = "Field"),
      (b[(b.Constructor = 8)] = "Constructor"),
      (b[(b.Enum = 9)] = "Enum"),
      (b[(b.Interface = 10)] = "Interface"),
      (b[(b.Function = 11)] = "Function"),
      (b[(b.Variable = 12)] = "Variable"),
      (b[(b.Constant = 13)] = "Constant"),
      (b[(b.String = 14)] = "String"),
      (b[(b.Number = 15)] = "Number"),
      (b[(b.Boolean = 16)] = "Boolean"),
      (b[(b.Array = 17)] = "Array"),
      (b[(b.Object = 18)] = "Object"),
      (b[(b.Key = 19)] = "Key"),
      (b[(b.Null = 20)] = "Null"),
      (b[(b.EnumMember = 21)] = "EnumMember"),
      (b[(b.Struct = 22)] = "Struct"),
      (b[(b.Event = 23)] = "Event"),
      (b[(b.Operator = 24)] = "Operator"),
      (b[(b.TypeParameter = 25)] = "TypeParameter"));
  })(gbe || (gbe = {}));
  var ybe;
  (function (b) {
    b[(b.Deprecated = 1)] = "Deprecated";
  })(ybe || (ybe = {}));
  var vbe;
  (function (b) {
    ((b[(b.LTR = 0)] = "LTR"), (b[(b.RTL = 1)] = "RTL"));
  })(vbe || (vbe = {}));
  var bbe;
  (function (b) {
    ((b[(b.Hidden = 0)] = "Hidden"),
      (b[(b.Blink = 1)] = "Blink"),
      (b[(b.Smooth = 2)] = "Smooth"),
      (b[(b.Phase = 3)] = "Phase"),
      (b[(b.Expand = 4)] = "Expand"),
      (b[(b.Solid = 5)] = "Solid"));
  })(bbe || (bbe = {}));
  var Tbe;
  (function (b) {
    ((b[(b.Line = 1)] = "Line"),
      (b[(b.Block = 2)] = "Block"),
      (b[(b.Underline = 3)] = "Underline"),
      (b[(b.LineThin = 4)] = "LineThin"),
      (b[(b.BlockOutline = 5)] = "BlockOutline"),
      (b[(b.UnderlineThin = 6)] = "UnderlineThin"));
  })(Tbe || (Tbe = {}));
  var Sbe;
  (function (b) {
    ((b[(b.AlwaysGrowsWhenTypingAtEdges = 0)] = "AlwaysGrowsWhenTypingAtEdges"),
      (b[(b.NeverGrowsWhenTypingAtEdges = 1)] = "NeverGrowsWhenTypingAtEdges"),
      (b[(b.GrowsOnlyWhenTypingBefore = 2)] = "GrowsOnlyWhenTypingBefore"),
      (b[(b.GrowsOnlyWhenTypingAfter = 3)] = "GrowsOnlyWhenTypingAfter"));
  })(Sbe || (Sbe = {}));
  var Ebe;
  (function (b) {
    ((b[(b.None = 0)] = "None"),
      (b[(b.Same = 1)] = "Same"),
      (b[(b.Indent = 2)] = "Indent"),
      (b[(b.DeepIndent = 3)] = "DeepIndent"));
  })(Ebe || (Ebe = {}));
  const u2 = class u2 {
    static chord(y, x) {
      return Wze(y, x);
    }
  };
  ((u2.CtrlCmd = 2048), (u2.Shift = 1024), (u2.Alt = 512), (u2.WinCtrl = 256));
  let DQ = u2;
  function s5e() {
    return {
      editor: void 0,
      languages: void 0,
      CancellationTokenSource: Lze,
      Emitter: WE,
      KeyCode: AQ,
      KeyMod: DQ,
      Position: Zc,
      Range: ss,
      Selection: Xv,
      SelectionDirection: RQ,
      MarkerSeverity: IQ,
      MarkerTag: xQ,
      Uri: cN,
      Token: a5e,
    };
  }
  var Abe;
  class l5e {
    constructor() {
      ((this[Abe] = "LinkedMap"),
        (this._map = new Map()),
        (this._head = void 0),
        (this._tail = void 0),
        (this._size = 0),
        (this._state = 0));
    }
    clear() {
      (this._map.clear(),
        (this._head = void 0),
        (this._tail = void 0),
        (this._size = 0),
        this._state++);
    }
    isEmpty() {
      return !this._head && !this._tail;
    }
    get size() {
      return this._size;
    }
    get first() {
      return this._head?.value;
    }
    get last() {
      return this._tail?.value;
    }
    has(y) {
      return this._map.has(y);
    }
    get(y, x = 0) {
      const F = this._map.get(y);
      if (F) return (x !== 0 && this.touch(F, x), F.value);
    }
    set(y, x, F = 0) {
      let $ = this._map.get(y);
      if ($) (($.value = x), F !== 0 && this.touch($, F));
      else {
        switch (
          (($ = { key: y, value: x, next: void 0, previous: void 0 }), F)
        ) {
          case 0:
            this.addItemLast($);
            break;
          case 1:
            this.addItemFirst($);
            break;
          case 2:
            this.addItemLast($);
            break;
          default:
            this.addItemLast($);
            break;
        }
        (this._map.set(y, $), this._size++);
      }
      return this;
    }
    delete(y) {
      return !!this.remove(y);
    }
    remove(y) {
      const x = this._map.get(y);
      if (x)
        return (this._map.delete(y), this.removeItem(x), this._size--, x.value);
    }
    shift() {
      if (!this._head && !this._tail) return;
      if (!this._head || !this._tail) throw new Error("Invalid list");
      const y = this._head;
      return (
        this._map.delete(y.key),
        this.removeItem(y),
        this._size--,
        y.value
      );
    }
    forEach(y, x) {
      const F = this._state;
      let $ = this._head;
      for (; $; ) {
        if (
          (x ? y.bind(x)($.value, $.key, this) : y($.value, $.key, this),
          this._state !== F)
        )
          throw new Error("LinkedMap got modified during iteration.");
        $ = $.next;
      }
    }
    keys() {
      const y = this,
        x = this._state;
      let F = this._head;
      const $ = {
        [Symbol.iterator]() {
          return $;
        },
        next() {
          if (y._state !== x)
            throw new Error("LinkedMap got modified during iteration.");
          if (F) {
            const ge = { value: F.key, done: !1 };
            return ((F = F.next), ge);
          } else return { value: void 0, done: !0 };
        },
      };
      return $;
    }
    values() {
      const y = this,
        x = this._state;
      let F = this._head;
      const $ = {
        [Symbol.iterator]() {
          return $;
        },
        next() {
          if (y._state !== x)
            throw new Error("LinkedMap got modified during iteration.");
          if (F) {
            const ge = { value: F.value, done: !1 };
            return ((F = F.next), ge);
          } else return { value: void 0, done: !0 };
        },
      };
      return $;
    }
    entries() {
      const y = this,
        x = this._state;
      let F = this._head;
      const $ = {
        [Symbol.iterator]() {
          return $;
        },
        next() {
          if (y._state !== x)
            throw new Error("LinkedMap got modified during iteration.");
          if (F) {
            const ge = { value: [F.key, F.value], done: !1 };
            return ((F = F.next), ge);
          } else return { value: void 0, done: !0 };
        },
      };
      return $;
    }
    [((Abe = Symbol.toStringTag), Symbol.iterator)]() {
      return this.entries();
    }
    trimOld(y) {
      if (y >= this.size) return;
      if (y === 0) {
        this.clear();
        return;
      }
      let x = this._head,
        F = this.size;
      for (; x && F > y; ) (this._map.delete(x.key), (x = x.next), F--);
      ((this._head = x),
        (this._size = F),
        x && (x.previous = void 0),
        this._state++);
    }
    trimNew(y) {
      if (y >= this.size) return;
      if (y === 0) {
        this.clear();
        return;
      }
      let x = this._tail,
        F = this.size;
      for (; x && F > y; ) (this._map.delete(x.key), (x = x.previous), F--);
      ((this._tail = x),
        (this._size = F),
        x && (x.next = void 0),
        this._state++);
    }
    addItemFirst(y) {
      if (!this._head && !this._tail) this._tail = y;
      else if (this._head) ((y.next = this._head), (this._head.previous = y));
      else throw new Error("Invalid list");
      ((this._head = y), this._state++);
    }
    addItemLast(y) {
      if (!this._head && !this._tail) this._head = y;
      else if (this._tail) ((y.previous = this._tail), (this._tail.next = y));
      else throw new Error("Invalid list");
      ((this._tail = y), this._state++);
    }
    removeItem(y) {
      if (y === this._head && y === this._tail)
        ((this._head = void 0), (this._tail = void 0));
      else if (y === this._head) {
        if (!y.next) throw new Error("Invalid list");
        ((y.next.previous = void 0), (this._head = y.next));
      } else if (y === this._tail) {
        if (!y.previous) throw new Error("Invalid list");
        ((y.previous.next = void 0), (this._tail = y.previous));
      } else {
        const x = y.next,
          F = y.previous;
        if (!x || !F) throw new Error("Invalid list");
        ((x.previous = F), (F.next = x));
      }
      ((y.next = void 0), (y.previous = void 0), this._state++);
    }
    touch(y, x) {
      if (!this._head || !this._tail) throw new Error("Invalid list");
      if (!(x !== 1 && x !== 2)) {
        if (x === 1) {
          if (y === this._head) return;
          const F = y.next,
            $ = y.previous;
          (y === this._tail
            ? (($.next = void 0), (this._tail = $))
            : ((F.previous = $), ($.next = F)),
            (y.previous = void 0),
            (y.next = this._head),
            (this._head.previous = y),
            (this._head = y),
            this._state++);
        } else if (x === 2) {
          if (y === this._tail) return;
          const F = y.next,
            $ = y.previous;
          (y === this._head
            ? ((F.previous = void 0), (this._head = F))
            : ((F.previous = $), ($.next = F)),
            (y.next = void 0),
            (y.previous = this._tail),
            (this._tail.next = y),
            (this._tail = y),
            this._state++);
        }
      }
    }
    toJSON() {
      const y = [];
      return (
        this.forEach((x, F) => {
          y.push([F, x]);
        }),
        y
      );
    }
    fromJSON(y) {
      this.clear();
      for (const [x, F] of y) this.set(x, F);
    }
  }
  class c5e extends l5e {
    constructor(y, x = 1) {
      (super(), (this._limit = y), (this._ratio = Math.min(Math.max(0, x), 1)));
    }
    get limit() {
      return this._limit;
    }
    set limit(y) {
      ((this._limit = y), this.checkTrim());
    }
    get(y, x = 2) {
      return super.get(y, x);
    }
    peek(y) {
      return super.get(y, 0);
    }
    set(y, x) {
      return (super.set(y, x, 2), this);
    }
    checkTrim() {
      this.size > this._limit &&
        this.trim(Math.round(this._limit * this._ratio));
    }
  }
  class d5e extends c5e {
    constructor(y, x = 1) {
      super(y, x);
    }
    trim(y) {
      this.trimOld(y);
    }
    set(y, x) {
      return (super.set(y, x), this.checkTrim(), this);
    }
  }
  class u5e {
    constructor() {
      this.map = new Map();
    }
    add(y, x) {
      let F = this.map.get(y);
      (F || ((F = new Set()), this.map.set(y, F)), F.add(x));
    }
    delete(y, x) {
      const F = this.map.get(y);
      F && (F.delete(x), F.size === 0 && this.map.delete(y));
    }
    forEach(y, x) {
      const F = this.map.get(y);
      F && F.forEach(x);
    }
  }
  new d5e(10);
  var Ibe;
  (function (b) {
    ((b[(b.Left = 1)] = "Left"),
      (b[(b.Center = 2)] = "Center"),
      (b[(b.Right = 4)] = "Right"),
      (b[(b.Full = 7)] = "Full"));
  })(Ibe || (Ibe = {}));
  var xbe;
  (function (b) {
    ((b[(b.Left = 1)] = "Left"),
      (b[(b.Center = 2)] = "Center"),
      (b[(b.Right = 3)] = "Right"));
  })(xbe || (xbe = {}));
  var Rbe;
  (function (b) {
    ((b[(b.LTR = 0)] = "LTR"), (b[(b.RTL = 1)] = "RTL"));
  })(Rbe || (Rbe = {}));
  var Dbe;
  (function (b) {
    ((b[(b.Both = 0)] = "Both"),
      (b[(b.Right = 1)] = "Right"),
      (b[(b.Left = 2)] = "Left"),
      (b[(b.None = 3)] = "None"));
  })(Dbe || (Dbe = {}));
  function p5e(b) {
    if (!b || b.length === 0) return !1;
    for (let y = 0, x = b.length; y < x; y++) {
      const F = b.charCodeAt(y);
      if (F === 10) return !0;
      if (F === 92) {
        if ((y++, y >= x)) break;
        const $ = b.charCodeAt(y);
        if ($ === 110 || $ === 114 || $ === 87) return !0;
      }
    }
    return !1;
  }
  function f5e(b, y, x, F, $) {
    if (F === 0) return !0;
    const ge = y.charCodeAt(F - 1);
    if (b.get(ge) !== 0 || ge === 13 || ge === 10) return !0;
    if ($ > 0) {
      const Le = y.charCodeAt(F);
      if (b.get(Le) !== 0) return !0;
    }
    return !1;
  }
  function m5e(b, y, x, F, $) {
    if (F + $ === x) return !0;
    const ge = y.charCodeAt(F + $);
    if (b.get(ge) !== 0 || ge === 13 || ge === 10) return !0;
    if ($ > 0) {
      const Le = y.charCodeAt(F + $ - 1);
      if (b.get(Le) !== 0) return !0;
    }
    return !1;
  }
  function h5e(b, y, x, F, $) {
    return f5e(b, y, x, F, $) && m5e(b, y, x, F, $);
  }
  class _5e {
    constructor(y, x) {
      ((this._wordSeparators = y),
        (this._searchRegex = x),
        (this._prevMatchStartIndex = -1),
        (this._prevMatchLength = 0));
    }
    reset(y) {
      ((this._searchRegex.lastIndex = y),
        (this._prevMatchStartIndex = -1),
        (this._prevMatchLength = 0));
    }
    next(y) {
      const x = y.length;
      let F;
      do {
        if (
          this._prevMatchStartIndex + this._prevMatchLength === x ||
          ((F = this._searchRegex.exec(y)), !F)
        )
          return null;
        const $ = F.index,
          ge = F[0].length;
        if ($ === this._prevMatchStartIndex && ge === this._prevMatchLength) {
          if (ge === 0) {
            hze(y, x, this._searchRegex.lastIndex) > 65535
              ? (this._searchRegex.lastIndex += 2)
              : (this._searchRegex.lastIndex += 1);
            continue;
          }
          return null;
        }
        if (
          ((this._prevMatchStartIndex = $),
          (this._prevMatchLength = ge),
          !this._wordSeparators || h5e(this._wordSeparators, y, x, $, ge))
        )
          return F;
      } while (F);
      return null;
    }
  }
  const g5e = "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";
  function y5e(b = "") {
    let y = "(-?\\d*\\.\\d\\w*)|([^";
    for (const x of g5e) b.indexOf(x) >= 0 || (y += "\\" + x);
    return ((y += "\\s]+)"), new RegExp(y, "g"));
  }
  const Cbe = y5e();
  function Nbe(b) {
    let y = Cbe;
    if (b && b instanceof RegExp)
      if (b.global) y = b;
      else {
        let x = "g";
        (b.ignoreCase && (x += "i"),
          b.multiline && (x += "m"),
          b.unicode && (x += "u"),
          (y = new RegExp(b.source, x)));
      }
    return ((y.lastIndex = 0), y);
  }
  const Mbe = new j7e();
  Mbe.unshift({ maxLen: 1e3, windowSize: 15, timeBudget: 150 });
  function CQ(b, y, x, F, $) {
    if (((y = Nbe(y)), $ || ($ = mB.first(Mbe)), x.length > $.maxLen)) {
      let bt = b - $.maxLen / 2;
      return (
        bt < 0 ? (bt = 0) : (F += bt),
        (x = x.substring(bt, b + $.maxLen / 2)),
        CQ(b, y, x, F, $)
      );
    }
    const ge = Date.now(),
      Le = b - 1 - F;
    let Ke = -1,
      ae = null;
    for (let bt = 1; !(Date.now() - ge >= $.timeBudget); bt++) {
      const et = Le - $.windowSize * bt;
      y.lastIndex = Math.max(0, et);
      const Ye = v5e(y, x, Le, Ke);
      if ((!Ye && ae) || ((ae = Ye), et <= 0)) break;
      Ke = et;
    }
    if (ae) {
      const bt = {
        word: ae[0],
        startColumn: F + 1 + ae.index,
        endColumn: F + 1 + ae.index + ae[0].length,
      };
      return ((y.lastIndex = 0), bt);
    }
    return null;
  }
  function v5e(b, y, x, F) {
    let $;
    for (; ($ = b.exec(y)); ) {
      const ge = $.index || 0;
      if (ge <= x && b.lastIndex >= x) return $;
      if (F > 0 && ge > F) return null;
    }
    return null;
  }
  class b5e {
    static computeUnicodeHighlights(y, x, F) {
      const $ = F ? F.startLineNumber : 1,
        ge = F ? F.endLineNumber : y.getLineCount(),
        Le = new Pbe(x),
        Ke = Le.getCandidateCodePoints();
      let ae;
      Ke === "allNonBasicAscii"
        ? (ae = new RegExp("[^\\t\\n\\r\\x20-\\x7E]", "g"))
        : (ae = new RegExp(`${T5e(Array.from(Ke))}`, "g"));
      const bt = new _5e(null, ae),
        et = [];
      let Ye = !1,
        Pn,
        Hn = 0,
        cr = 0,
        Gn = 0;
      e: for (let ki = $, bo = ge; ki <= bo; ki++) {
        const Vn = y.getLineContent(ki),
          hn = Vn.length;
        bt.reset(0);
        do
          if (((Pn = bt.next(Vn)), Pn)) {
            let ga = Pn.index,
              ho = Pn.index + Pn[0].length;
            if (ga > 0) {
              const Io = Vn.charCodeAt(ga - 1);
              pQ(Io) && ga--;
            }
            if (ho + 1 < hn) {
              const Io = Vn.charCodeAt(ho - 1);
              pQ(Io) && ho++;
            }
            const gl = Vn.substring(ga, ho);
            let jn = CQ(ga + 1, Cbe, Vn, 0);
            jn && jn.endColumn <= ga + 1 && (jn = null);
            const Bi = Le.shouldHighlightNonBasicASCII(gl, jn ? jn.word : null);
            if (Bi !== 0) {
              if (
                (Bi === 3 ? Hn++ : Bi === 2 ? cr++ : Bi === 1 ? Gn++ : W7e(),
                et.length >= 1e3)
              ) {
                Ye = !0;
                break e;
              }
              et.push(new ss(ki, ga + 1, ki, ho + 1));
            }
          }
        while (Pn);
      }
      return {
        ranges: et,
        hasMore: Ye,
        ambiguousCharacterCount: Hn,
        invisibleCharacterCount: cr,
        nonBasicAsciiCharacterCount: Gn,
      };
    }
    static computeUnicodeHighlightReason(y, x) {
      const F = new Pbe(x);
      switch (F.shouldHighlightNonBasicASCII(y, null)) {
        case 0:
          return null;
        case 2:
          return { kind: 1 };
        case 3: {
          const ge = y.codePointAt(0),
            Le = F.ambiguousCharacters.getPrimaryConfusable(ge),
            Ke = x8
              .getLocales()
              .filter(
                (ae) =>
                  !x8
                    .getInstance(new Set([...x.allowedLocales, ae]))
                    .isAmbiguous(ge),
              );
          return {
            kind: 0,
            confusableWith: String.fromCodePoint(Le),
            notAmbiguousInLocales: Ke,
          };
        }
        case 1:
          return { kind: 2 };
      }
    }
  }
  function T5e(b, y) {
    return `[${aze(b.map((F) => String.fromCodePoint(F)).join(""))}]`;
  }
  class Pbe {
    constructor(y) {
      ((this.options = y),
        (this.allowedCodePoints = new Set(y.allowedCodePoints)),
        (this.ambiguousCharacters = x8.getInstance(new Set(y.allowedLocales))));
    }
    getCandidateCodePoints() {
      if (this.options.nonBasicASCII) return "allNonBasicAscii";
      const y = new Set();
      if (this.options.invisibleCharacters)
        for (const x of R8.codePoints) Lbe(String.fromCodePoint(x)) || y.add(x);
      if (this.options.ambiguousCharacters)
        for (const x of this.ambiguousCharacters.getConfusableCodePoints())
          y.add(x);
      for (const x of this.allowedCodePoints) y.delete(x);
      return y;
    }
    shouldHighlightNonBasicASCII(y, x) {
      const F = y.codePointAt(0);
      if (this.allowedCodePoints.has(F)) return 0;
      if (this.options.nonBasicASCII) return 1;
      let $ = !1,
        ge = !1;
      if (x)
        for (const Le of x) {
          const Ke = Le.codePointAt(0),
            ae = gze(Le);
          (($ = $ || ae),
            !ae &&
              !this.ambiguousCharacters.isAmbiguous(Ke) &&
              !R8.isInvisibleCharacter(Ke) &&
              (ge = !0));
        }
      return !$ && ge
        ? 0
        : this.options.invisibleCharacters &&
            !Lbe(y) &&
            R8.isInvisibleCharacter(F)
          ? 2
          : this.options.ambiguousCharacters &&
              this.ambiguousCharacters.isAmbiguous(F)
            ? 3
            : 0;
    }
  }
  function Lbe(b) {
    return (
      b === " " ||
      b ===
        `
` ||
      b === "	"
    );
  }
  class IB {
    constructor(y, x, F) {
      ((this.changes = y), (this.moves = x), (this.hitTimeout = F));
    }
  }
  class S5e {
    constructor(y, x) {
      ((this.lineRangeMapping = y), (this.changes = x));
    }
  }
  function E5e(b, y, x = (F, $) => F === $) {
    if (b === y) return !0;
    if (!b || !y || b.length !== y.length) return !1;
    for (let F = 0, $ = b.length; F < $; F++) if (!x(b[F], y[F])) return !1;
    return !0;
  }
  function* A5e(b, y) {
    let x, F;
    for (const $ of b)
      (F !== void 0 && y(F, $) ? x.push($) : (x && (yield x), (x = [$])),
        (F = $));
    x && (yield x);
  }
  function I5e(b, y) {
    for (let x = 0; x <= b.length; x++)
      y(x === 0 ? void 0 : b[x - 1], x === b.length ? void 0 : b[x]);
  }
  function x5e(b, y) {
    for (let x = 0; x < b.length; x++)
      y(
        x === 0 ? void 0 : b[x - 1],
        b[x],
        x + 1 === b.length ? void 0 : b[x + 1],
      );
  }
  function R5e(b, y) {
    for (const x of y) b.push(x);
  }
  var NQ;
  (function (b) {
    function y(ge) {
      return ge < 0;
    }
    b.isLessThan = y;
    function x(ge) {
      return ge <= 0;
    }
    b.isLessThanOrEqual = x;
    function F(ge) {
      return ge > 0;
    }
    b.isGreaterThan = F;
    function $(ge) {
      return ge === 0;
    }
    ((b.isNeitherLessOrGreaterThan = $),
      (b.greaterThan = 1),
      (b.lessThan = -1),
      (b.neitherLessOrGreaterThan = 0));
  })(NQ || (NQ = {}));
  function C8(b, y) {
    return (x, F) => y(b(x), b(F));
  }
  const N8 = (b, y) => b - y;
  function D5e(b) {
    return (y, x) => -b(y, x);
  }
  const p2 = class p2 {
    constructor(y) {
      this.iterate = y;
    }
    toArray() {
      const y = [];
      return (this.iterate((x) => (y.push(x), !0)), y);
    }
    filter(y) {
      return new p2((x) => this.iterate((F) => (y(F) ? x(F) : !0)));
    }
    map(y) {
      return new p2((x) => this.iterate((F) => x(y(F))));
    }
    findLast(y) {
      let x;
      return (this.iterate((F) => (y(F) && (x = F), !0)), x);
    }
    findLastMaxBy(y) {
      let x,
        F = !0;
      return (
        this.iterate(
          ($) => ((F || NQ.isGreaterThan(y($, x))) && ((F = !1), (x = $)), !0),
        ),
        x
      );
    }
  };
  p2.empty = new p2((y) => {});
  let kbe = p2;
  class rc {
    static fromTo(y, x) {
      return new rc(y, x);
    }
    static addRange(y, x) {
      let F = 0;
      for (; F < x.length && x[F].endExclusive < y.start; ) F++;
      let $ = F;
      for (; $ < x.length && x[$].start <= y.endExclusive; ) $++;
      if (F === $) x.splice(F, 0, y);
      else {
        const ge = Math.min(y.start, x[F].start),
          Le = Math.max(y.endExclusive, x[$ - 1].endExclusive);
        x.splice(F, $ - F, new rc(ge, Le));
      }
    }
    static tryCreate(y, x) {
      if (!(y > x)) return new rc(y, x);
    }
    static ofLength(y) {
      return new rc(0, y);
    }
    static ofStartAndLength(y, x) {
      return new rc(y, y + x);
    }
    static emptyAt(y) {
      return new rc(y, y);
    }
    constructor(y, x) {
      if (((this.start = y), (this.endExclusive = x), y > x))
        throw new A_(`Invalid range: ${this.toString()}`);
    }
    get isEmpty() {
      return this.start === this.endExclusive;
    }
    delta(y) {
      return new rc(this.start + y, this.endExclusive + y);
    }
    deltaStart(y) {
      return new rc(this.start + y, this.endExclusive);
    }
    deltaEnd(y) {
      return new rc(this.start, this.endExclusive + y);
    }
    get length() {
      return this.endExclusive - this.start;
    }
    toString() {
      return `[${this.start}, ${this.endExclusive})`;
    }
    equals(y) {
      return this.start === y.start && this.endExclusive === y.endExclusive;
    }
    contains(y) {
      return this.start <= y && y < this.endExclusive;
    }
    join(y) {
      return new rc(
        Math.min(this.start, y.start),
        Math.max(this.endExclusive, y.endExclusive),
      );
    }
    intersect(y) {
      const x = Math.max(this.start, y.start),
        F = Math.min(this.endExclusive, y.endExclusive);
      if (x <= F) return new rc(x, F);
    }
    intersectionLength(y) {
      const x = Math.max(this.start, y.start),
        F = Math.min(this.endExclusive, y.endExclusive);
      return Math.max(0, F - x);
    }
    intersects(y) {
      const x = Math.max(this.start, y.start),
        F = Math.min(this.endExclusive, y.endExclusive);
      return x < F;
    }
    intersectsOrTouches(y) {
      const x = Math.max(this.start, y.start),
        F = Math.min(this.endExclusive, y.endExclusive);
      return x <= F;
    }
    isBefore(y) {
      return this.endExclusive <= y.start;
    }
    isAfter(y) {
      return this.start >= y.endExclusive;
    }
    slice(y) {
      return y.slice(this.start, this.endExclusive);
    }
    substring(y) {
      return y.substring(this.start, this.endExclusive);
    }
    clip(y) {
      if (this.isEmpty)
        throw new A_(`Invalid clipping range: ${this.toString()}`);
      return Math.max(this.start, Math.min(this.endExclusive - 1, y));
    }
    clipCyclic(y) {
      if (this.isEmpty)
        throw new A_(`Invalid clipping range: ${this.toString()}`);
      return y < this.start
        ? this.endExclusive - ((this.start - y) % this.length)
        : y >= this.endExclusive
          ? this.start + ((y - this.start) % this.length)
          : y;
    }
    forEach(y) {
      for (let x = this.start; x < this.endExclusive; x++) y(x);
    }
    joinRightTouching(y) {
      if (this.endExclusive !== y.start)
        throw new A_(`Invalid join: ${this.toString()} and ${y.toString()}`);
      return new rc(this.start, y.endExclusive);
    }
  }
  function e2(b, y) {
    const x = t2(b, y);
    return x === -1 ? void 0 : b[x];
  }
  function t2(b, y, x = 0, F = b.length) {
    let $ = x,
      ge = F;
    for (; $ < ge; ) {
      const Le = Math.floor(($ + ge) / 2);
      y(b[Le]) ? ($ = Le + 1) : (ge = Le);
    }
    return $ - 1;
  }
  function C5e(b, y) {
    const x = MQ(b, y);
    return x === b.length ? void 0 : b[x];
  }
  function MQ(b, y, x = 0, F = b.length) {
    let $ = x,
      ge = F;
    for (; $ < ge; ) {
      const Le = Math.floor(($ + ge) / 2);
      y(b[Le]) ? (ge = Le) : ($ = Le + 1);
    }
    return $;
  }
  const LB = class LB {
    constructor(y) {
      ((this._array = y), (this._findLastMonotonousLastIdx = 0));
    }
    findLastMonotonous(y) {
      if (LB.assertInvariants) {
        if (this._prevFindLastPredicate) {
          for (const F of this._array)
            if (this._prevFindLastPredicate(F) && !y(F))
              throw new Error(
                "MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.",
              );
        }
        this._prevFindLastPredicate = y;
      }
      const x = t2(this._array, y, this._findLastMonotonousLastIdx);
      return (
        (this._findLastMonotonousLastIdx = x + 1),
        x === -1 ? void 0 : this._array[x]
      );
    }
  };
  LB.assertInvariants = !1;
  let xB = LB;
  const Yv = class Yv {
    static ofLength(y, x) {
      return new Yv(y, y + x);
    }
    static fromRange(y) {
      return new Yv(y.startLineNumber, y.endLineNumber);
    }
    static fromRangeInclusive(y) {
      return new Yv(y.startLineNumber, y.endLineNumber + 1);
    }
    static joinMany(y) {
      if (y.length === 0) return [];
      let x = new zE(y[0].slice());
      for (let F = 1; F < y.length; F++) x = x.getUnion(new zE(y[F].slice()));
      return x.ranges;
    }
    static join(y) {
      if (y.length === 0) throw new A_("lineRanges cannot be empty");
      let x = y[0].startLineNumber,
        F = y[0].endLineNumberExclusive;
      for (let $ = 1; $ < y.length; $++)
        ((x = Math.min(x, y[$].startLineNumber)),
          (F = Math.max(F, y[$].endLineNumberExclusive)));
      return new Yv(x, F);
    }
    static deserialize(y) {
      return new Yv(y[0], y[1]);
    }
    constructor(y, x) {
      if (y > x)
        throw new A_(
          `startLineNumber ${y} cannot be after endLineNumberExclusive ${x}`,
        );
      ((this.startLineNumber = y), (this.endLineNumberExclusive = x));
    }
    contains(y) {
      return this.startLineNumber <= y && y < this.endLineNumberExclusive;
    }
    get isEmpty() {
      return this.startLineNumber === this.endLineNumberExclusive;
    }
    delta(y) {
      return new Yv(this.startLineNumber + y, this.endLineNumberExclusive + y);
    }
    deltaLength(y) {
      return new Yv(this.startLineNumber, this.endLineNumberExclusive + y);
    }
    get length() {
      return this.endLineNumberExclusive - this.startLineNumber;
    }
    join(y) {
      return new Yv(
        Math.min(this.startLineNumber, y.startLineNumber),
        Math.max(this.endLineNumberExclusive, y.endLineNumberExclusive),
      );
    }
    toString() {
      return `[${this.startLineNumber},${this.endLineNumberExclusive})`;
    }
    intersect(y) {
      const x = Math.max(this.startLineNumber, y.startLineNumber),
        F = Math.min(this.endLineNumberExclusive, y.endLineNumberExclusive);
      if (x <= F) return new Yv(x, F);
    }
    intersectsStrict(y) {
      return (
        this.startLineNumber < y.endLineNumberExclusive &&
        y.startLineNumber < this.endLineNumberExclusive
      );
    }
    intersectsOrTouches(y) {
      return (
        this.startLineNumber <= y.endLineNumberExclusive &&
        y.startLineNumber <= this.endLineNumberExclusive
      );
    }
    equals(y) {
      return (
        this.startLineNumber === y.startLineNumber &&
        this.endLineNumberExclusive === y.endLineNumberExclusive
      );
    }
    toInclusiveRange() {
      return this.isEmpty
        ? null
        : new ss(
            this.startLineNumber,
            1,
            this.endLineNumberExclusive - 1,
            Number.MAX_SAFE_INTEGER,
          );
    }
    toExclusiveRange() {
      return new ss(this.startLineNumber, 1, this.endLineNumberExclusive, 1);
    }
    mapToLineArray(y) {
      const x = [];
      for (let F = this.startLineNumber; F < this.endLineNumberExclusive; F++)
        x.push(y(F));
      return x;
    }
    forEach(y) {
      for (let x = this.startLineNumber; x < this.endLineNumberExclusive; x++)
        y(x);
    }
    serialize() {
      return [this.startLineNumber, this.endLineNumberExclusive];
    }
    toOffsetRange() {
      return new rc(this.startLineNumber - 1, this.endLineNumberExclusive - 1);
    }
    addMargin(y, x) {
      return new Yv(this.startLineNumber - y, this.endLineNumberExclusive + x);
    }
  };
  Yv.compareByStart = C8((y) => y.startLineNumber, N8);
  let Vc = Yv;
  class zE {
    constructor(y = []) {
      this._normalizedRanges = y;
    }
    get ranges() {
      return this._normalizedRanges;
    }
    addRange(y) {
      if (y.length === 0) return;
      const x = MQ(
          this._normalizedRanges,
          ($) => $.endLineNumberExclusive >= y.startLineNumber,
        ),
        F =
          t2(
            this._normalizedRanges,
            ($) => $.startLineNumber <= y.endLineNumberExclusive,
          ) + 1;
      if (x === F) this._normalizedRanges.splice(x, 0, y);
      else if (x === F - 1) {
        const $ = this._normalizedRanges[x];
        this._normalizedRanges[x] = $.join(y);
      } else {
        const $ = this._normalizedRanges[x]
          .join(this._normalizedRanges[F - 1])
          .join(y);
        this._normalizedRanges.splice(x, F - x, $);
      }
    }
    contains(y) {
      const x = e2(this._normalizedRanges, (F) => F.startLineNumber <= y);
      return !!x && x.endLineNumberExclusive > y;
    }
    intersects(y) {
      const x = e2(
        this._normalizedRanges,
        (F) => F.startLineNumber < y.endLineNumberExclusive,
      );
      return !!x && x.endLineNumberExclusive > y.startLineNumber;
    }
    getUnion(y) {
      if (this._normalizedRanges.length === 0) return y;
      if (y._normalizedRanges.length === 0) return this;
      const x = [];
      let F = 0,
        $ = 0,
        ge = null;
      for (
        ;
        F < this._normalizedRanges.length || $ < y._normalizedRanges.length;
      ) {
        let Le = null;
        if (
          F < this._normalizedRanges.length &&
          $ < y._normalizedRanges.length
        ) {
          const Ke = this._normalizedRanges[F],
            ae = y._normalizedRanges[$];
          Ke.startLineNumber < ae.startLineNumber
            ? ((Le = Ke), F++)
            : ((Le = ae), $++);
        } else
          F < this._normalizedRanges.length
            ? ((Le = this._normalizedRanges[F]), F++)
            : ((Le = y._normalizedRanges[$]), $++);
        ge === null
          ? (ge = Le)
          : ge.endLineNumberExclusive >= Le.startLineNumber
            ? (ge = new Vc(
                ge.startLineNumber,
                Math.max(ge.endLineNumberExclusive, Le.endLineNumberExclusive),
              ))
            : (x.push(ge), (ge = Le));
      }
      return (ge !== null && x.push(ge), new zE(x));
    }
    subtractFrom(y) {
      const x = MQ(
          this._normalizedRanges,
          (Le) => Le.endLineNumberExclusive >= y.startLineNumber,
        ),
        F =
          t2(
            this._normalizedRanges,
            (Le) => Le.startLineNumber <= y.endLineNumberExclusive,
          ) + 1;
      if (x === F) return new zE([y]);
      const $ = [];
      let ge = y.startLineNumber;
      for (let Le = x; Le < F; Le++) {
        const Ke = this._normalizedRanges[Le];
        (Ke.startLineNumber > ge && $.push(new Vc(ge, Ke.startLineNumber)),
          (ge = Ke.endLineNumberExclusive));
      }
      return (
        ge < y.endLineNumberExclusive &&
          $.push(new Vc(ge, y.endLineNumberExclusive)),
        new zE($)
      );
    }
    toString() {
      return this._normalizedRanges.map((y) => y.toString()).join(", ");
    }
    getIntersection(y) {
      const x = [];
      let F = 0,
        $ = 0;
      for (
        ;
        F < this._normalizedRanges.length && $ < y._normalizedRanges.length;
      ) {
        const ge = this._normalizedRanges[F],
          Le = y._normalizedRanges[$],
          Ke = ge.intersect(Le);
        (Ke && !Ke.isEmpty && x.push(Ke),
          ge.endLineNumberExclusive < Le.endLineNumberExclusive ? F++ : $++);
      }
      return new zE(x);
    }
    getWithDelta(y) {
      return new zE(this._normalizedRanges.map((x) => x.delta(y)));
    }
  }
  const lS = class lS {
    static betweenPositions(y, x) {
      return y.lineNumber === x.lineNumber
        ? new lS(0, x.column - y.column)
        : new lS(x.lineNumber - y.lineNumber, x.column - 1);
    }
    static fromPosition(y) {
      return new lS(y.lineNumber - 1, y.column - 1);
    }
    static ofRange(y) {
      return lS.betweenPositions(y.getStartPosition(), y.getEndPosition());
    }
    static ofText(y) {
      let x = 0,
        F = 0;
      for (const $ of y)
        $ ===
        `
`
          ? (x++, (F = 0))
          : F++;
      return new lS(x, F);
    }
    constructor(y, x) {
      ((this.lineCount = y), (this.columnCount = x));
    }
    isGreaterThanOrEqualTo(y) {
      return this.lineCount !== y.lineCount
        ? this.lineCount > y.lineCount
        : this.columnCount >= y.columnCount;
    }
    add(y) {
      return y.lineCount === 0
        ? new lS(this.lineCount, this.columnCount + y.columnCount)
        : new lS(this.lineCount + y.lineCount, y.columnCount);
    }
    createRange(y) {
      return this.lineCount === 0
        ? new ss(
            y.lineNumber,
            y.column,
            y.lineNumber,
            y.column + this.columnCount,
          )
        : new ss(
            y.lineNumber,
            y.column,
            y.lineNumber + this.lineCount,
            this.columnCount + 1,
          );
    }
    toRange() {
      return new ss(1, 1, this.lineCount + 1, this.columnCount + 1);
    }
    toLineRange() {
      return Vc.ofLength(1, this.lineCount + 1);
    }
    addToPosition(y) {
      return this.lineCount === 0
        ? new Zc(y.lineNumber, y.column + this.columnCount)
        : new Zc(y.lineNumber + this.lineCount, this.columnCount + 1);
    }
    toString() {
      return `${this.lineCount},${this.columnCount}`;
    }
  };
  lS.zero = new lS(0, 0);
  let M8 = lS;
  class N5e {
    getOffsetRange(y) {
      return new rc(
        this.getOffset(y.getStartPosition()),
        this.getOffset(y.getEndPosition()),
      );
    }
    getRange(y) {
      return ss.fromPositions(
        this.getPosition(y.start),
        this.getPosition(y.endExclusive),
      );
    }
    getStringReplacement(y) {
      return new n2.deps.StringReplacement(
        this.getOffsetRange(y.range),
        y.text,
      );
    }
    getTextReplacement(y) {
      return new n2.deps.TextReplacement(
        this.getRange(y.replaceRange),
        y.newText,
      );
    }
    getTextEdit(y) {
      const x = y.replacements.map((F) => this.getTextReplacement(F));
      return new n2.deps.TextEdit(x);
    }
  }
  const BQ = class BQ {
    static get deps() {
      if (!this._deps)
        throw new Error("Dependencies not set. Call _setDependencies first.");
      return this._deps;
    }
  };
  BQ._deps = void 0;
  let n2 = BQ;
  class M5e extends N5e {
    constructor(y) {
      (super(),
        (this.text = y),
        (this.lineStartOffsetByLineIdx = []),
        (this.lineEndOffsetByLineIdx = []),
        this.lineStartOffsetByLineIdx.push(0));
      for (let x = 0; x < y.length; x++)
        y.charAt(x) ===
          `
` &&
          (this.lineStartOffsetByLineIdx.push(x + 1),
          x > 0 && y.charAt(x - 1) === "\r"
            ? this.lineEndOffsetByLineIdx.push(x - 1)
            : this.lineEndOffsetByLineIdx.push(x));
      this.lineEndOffsetByLineIdx.push(y.length);
    }
    getOffset(y) {
      const x = this._validatePosition(y);
      return this.lineStartOffsetByLineIdx[x.lineNumber - 1] + x.column - 1;
    }
    _validatePosition(y) {
      if (y.lineNumber < 1) return new Zc(1, 1);
      const x = this.textLength.lineCount + 1;
      if (y.lineNumber > x) {
        const $ = this.getLineLength(x);
        return new Zc(x, $ + 1);
      }
      if (y.column < 1) return new Zc(y.lineNumber, 1);
      const F = this.getLineLength(y.lineNumber);
      return y.column - 1 > F ? new Zc(y.lineNumber, F + 1) : y;
    }
    getPosition(y) {
      const x = t2(this.lineStartOffsetByLineIdx, (ge) => ge <= y),
        F = x + 1,
        $ = y - this.lineStartOffsetByLineIdx[x] + 1;
      return new Zc(F, $);
    }
    get textLength() {
      const y = this.lineStartOffsetByLineIdx.length - 1;
      return new n2.deps.TextLength(
        y,
        this.text.length - this.lineStartOffsetByLineIdx[y],
      );
    }
    getLineLength(y) {
      return (
        this.lineEndOffsetByLineIdx[y - 1] -
        this.lineStartOffsetByLineIdx[y - 1]
      );
    }
  }
  class P5e {
    constructor() {
      this._transformer = void 0;
    }
    get endPositionExclusive() {
      return this.length.addToPosition(new Zc(1, 1));
    }
    get lineRange() {
      return this.length.toLineRange();
    }
    getValue() {
      return this.getValueOfRange(this.length.toRange());
    }
    getValueOfOffsetRange(y) {
      return this.getValueOfRange(this.getTransformer().getRange(y));
    }
    getLineLength(y) {
      return this.getValueOfRange(new ss(y, 1, y, Number.MAX_SAFE_INTEGER))
        .length;
    }
    getTransformer() {
      return (
        this._transformer || (this._transformer = new M5e(this.getValue())),
        this._transformer
      );
    }
    getLineAt(y) {
      return this.getValueOfRange(new ss(y, 1, y, Number.MAX_SAFE_INTEGER));
    }
  }
  class L5e extends P5e {
    constructor(y, x) {
      (F7e(x >= 1), super(), (this._getLineContent = y), (this._lineCount = x));
    }
    getValueOfRange(y) {
      if (y.startLineNumber === y.endLineNumber)
        return this._getLineContent(y.startLineNumber).substring(
          y.startColumn - 1,
          y.endColumn - 1,
        );
      let x = this._getLineContent(y.startLineNumber).substring(
        y.startColumn - 1,
      );
      for (let F = y.startLineNumber + 1; F < y.endLineNumber; F++)
        x +=
          `
` + this._getLineContent(F);
      return (
        (x +=
          `
` + this._getLineContent(y.endLineNumber).substring(0, y.endColumn - 1)),
        x
      );
    }
    getLineLength(y) {
      return this._getLineContent(y).length;
    }
    get length() {
      const y = this._getLineContent(this._lineCount);
      return new M8(this._lineCount - 1, y.length);
    }
  }
  class RB extends L5e {
    constructor(y) {
      super((x) => y[x - 1], y.length);
    }
  }
  class TR {
    static joinReplacements(y, x) {
      if (y.length === 0) throw new A_();
      if (y.length === 1) return y[0];
      const F = y[0].range.getStartPosition(),
        $ = y[y.length - 1].range.getEndPosition();
      let ge = "";
      for (let Le = 0; Le < y.length; Le++) {
        const Ke = y[Le];
        if (((ge += Ke.text), Le < y.length - 1)) {
          const ae = y[Le + 1],
            bt = ss.fromPositions(
              Ke.range.getEndPosition(),
              ae.range.getStartPosition(),
            ),
            et = x.getValueOfRange(bt);
          ge += et;
        }
      }
      return new TR(ss.fromPositions(F, $), ge);
    }
    static fromStringReplacement(y, x) {
      return new TR(x.getTransformer().getRange(y.replaceRange), y.newText);
    }
    static delete(y) {
      return new TR(y, "");
    }
    constructor(y, x) {
      ((this.range = y), (this.text = x));
    }
    get isEmpty() {
      return this.range.isEmpty() && this.text.length === 0;
    }
    static equals(y, x) {
      return y.range.equalsRange(x.range) && y.text === x.text;
    }
    equals(y) {
      return TR.equals(this, y);
    }
    removeCommonPrefixAndSuffix(y) {
      return this.removeCommonPrefix(y).removeCommonSuffix(y);
    }
    removeCommonPrefix(y) {
      const x = y.getValueOfRange(this.range).replaceAll(
          `\r
`,
          `
`,
        ),
        F = this.text.replaceAll(
          `\r
`,
          `
`,
        ),
        $ = uze(x, F),
        ge = M8.ofText(x.substring(0, $)).addToPosition(
          this.range.getStartPosition(),
        ),
        Le = F.substring($),
        Ke = ss.fromPositions(ge, this.range.getEndPosition());
      return new TR(Ke, Le);
    }
    removeCommonSuffix(y) {
      const x = y.getValueOfRange(this.range).replaceAll(
          `\r
`,
          `
`,
        ),
        F = this.text.replaceAll(
          `\r
`,
          `
`,
        ),
        $ = pze(x, F),
        ge = M8.ofText(x.substring(0, x.length - $)).addToPosition(
          this.range.getStartPosition(),
        ),
        Le = F.substring(0, F.length - $),
        Ke = ss.fromPositions(this.range.getStartPosition(), ge);
      return new TR(Ke, Le);
    }
    toString() {
      const y = this.range.getStartPosition(),
        x = this.range.getEndPosition();
      return `(${y.lineNumber},${y.column} -> ${x.lineNumber},${x.column}): "${this.text}"`;
    }
  }
  class ET {
    static inverse(y, x, F) {
      const $ = [];
      let ge = 1,
        Le = 1;
      for (const ae of y) {
        const bt = new ET(
          new Vc(ge, ae.original.startLineNumber),
          new Vc(Le, ae.modified.startLineNumber),
        );
        (bt.modified.isEmpty || $.push(bt),
          (ge = ae.original.endLineNumberExclusive),
          (Le = ae.modified.endLineNumberExclusive));
      }
      const Ke = new ET(new Vc(ge, x + 1), new Vc(Le, F + 1));
      return (Ke.modified.isEmpty || $.push(Ke), $);
    }
    static clip(y, x, F) {
      const $ = [];
      for (const ge of y) {
        const Le = ge.original.intersect(x),
          Ke = ge.modified.intersect(F);
        Le && !Le.isEmpty && Ke && !Ke.isEmpty && $.push(new ET(Le, Ke));
      }
      return $;
    }
    constructor(y, x) {
      ((this.original = y), (this.modified = x));
    }
    toString() {
      return `{${this.original.toString()}->${this.modified.toString()}}`;
    }
    flip() {
      return new ET(this.modified, this.original);
    }
    join(y) {
      return new ET(
        this.original.join(y.original),
        this.modified.join(y.modified),
      );
    }
    toRangeMapping() {
      const y = this.original.toInclusiveRange(),
        x = this.modified.toInclusiveRange();
      if (y && x) return new AT(y, x);
      if (
        this.original.startLineNumber === 1 ||
        this.modified.startLineNumber === 1
      ) {
        if (
          !(
            this.modified.startLineNumber === 1 &&
            this.original.startLineNumber === 1
          )
        )
          throw new A_("not a valid diff");
        return new AT(
          new ss(
            this.original.startLineNumber,
            1,
            this.original.endLineNumberExclusive,
            1,
          ),
          new ss(
            this.modified.startLineNumber,
            1,
            this.modified.endLineNumberExclusive,
            1,
          ),
        );
      } else
        return new AT(
          new ss(
            this.original.startLineNumber - 1,
            Number.MAX_SAFE_INTEGER,
            this.original.endLineNumberExclusive - 1,
            Number.MAX_SAFE_INTEGER,
          ),
          new ss(
            this.modified.startLineNumber - 1,
            Number.MAX_SAFE_INTEGER,
            this.modified.endLineNumberExclusive - 1,
            Number.MAX_SAFE_INTEGER,
          ),
        );
    }
    toRangeMapping2(y, x) {
      if (
        wbe(this.original.endLineNumberExclusive, y) &&
        wbe(this.modified.endLineNumberExclusive, x)
      )
        return new AT(
          new ss(
            this.original.startLineNumber,
            1,
            this.original.endLineNumberExclusive,
            1,
          ),
          new ss(
            this.modified.startLineNumber,
            1,
            this.modified.endLineNumberExclusive,
            1,
          ),
        );
      if (!this.original.isEmpty && !this.modified.isEmpty)
        return new AT(
          ss.fromPositions(
            new Zc(this.original.startLineNumber, 1),
            r2(
              new Zc(
                this.original.endLineNumberExclusive - 1,
                Number.MAX_SAFE_INTEGER,
              ),
              y,
            ),
          ),
          ss.fromPositions(
            new Zc(this.modified.startLineNumber, 1),
            r2(
              new Zc(
                this.modified.endLineNumberExclusive - 1,
                Number.MAX_SAFE_INTEGER,
              ),
              x,
            ),
          ),
        );
      if (
        this.original.startLineNumber > 1 &&
        this.modified.startLineNumber > 1
      )
        return new AT(
          ss.fromPositions(
            r2(
              new Zc(
                this.original.startLineNumber - 1,
                Number.MAX_SAFE_INTEGER,
              ),
              y,
            ),
            r2(
              new Zc(
                this.original.endLineNumberExclusive - 1,
                Number.MAX_SAFE_INTEGER,
              ),
              y,
            ),
          ),
          ss.fromPositions(
            r2(
              new Zc(
                this.modified.startLineNumber - 1,
                Number.MAX_SAFE_INTEGER,
              ),
              x,
            ),
            r2(
              new Zc(
                this.modified.endLineNumberExclusive - 1,
                Number.MAX_SAFE_INTEGER,
              ),
              x,
            ),
          ),
        );
      throw new A_();
    }
  }
  function r2(b, y) {
    if (b.lineNumber < 1) return new Zc(1, 1);
    if (b.lineNumber > y.length)
      return new Zc(y.length, y[y.length - 1].length + 1);
    const x = y[b.lineNumber - 1];
    return b.column > x.length + 1 ? new Zc(b.lineNumber, x.length + 1) : b;
  }
  function wbe(b, y) {
    return b >= 1 && b <= y.length;
  }
  class HA extends ET {
    static fromRangeMappings(y) {
      const x = Vc.join(y.map(($) => Vc.fromRangeInclusive($.originalRange))),
        F = Vc.join(y.map(($) => Vc.fromRangeInclusive($.modifiedRange)));
      return new HA(x, F, y);
    }
    constructor(y, x, F) {
      (super(y, x), (this.innerChanges = F));
    }
    flip() {
      return new HA(
        this.modified,
        this.original,
        this.innerChanges?.map((y) => y.flip()),
      );
    }
    withInnerChangesFromLineRanges() {
      return new HA(this.original, this.modified, [this.toRangeMapping()]);
    }
  }
  class AT {
    static fromEdit(y) {
      const x = y.getNewRanges();
      return y.replacements.map(($, ge) => new AT($.range, x[ge]));
    }
    static assertSorted(y) {
      for (let x = 1; x < y.length; x++) {
        const F = y[x - 1],
          $ = y[x];
        if (
          !(
            F.originalRange
              .getEndPosition()
              .isBeforeOrEqual($.originalRange.getStartPosition()) &&
            F.modifiedRange
              .getEndPosition()
              .isBeforeOrEqual($.modifiedRange.getStartPosition())
          )
        )
          throw new A_("Range mappings must be sorted");
      }
    }
    constructor(y, x) {
      ((this.originalRange = y), (this.modifiedRange = x));
    }
    toString() {
      return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`;
    }
    flip() {
      return new AT(this.modifiedRange, this.originalRange);
    }
    toTextEdit(y) {
      const x = y.getValueOfRange(this.modifiedRange);
      return new TR(this.originalRange, x);
    }
  }
  function Obe(b, y, x, F = !1) {
    const $ = [];
    for (const ge of A5e(
      b.map((Le) => k5e(Le, y, x)),
      (Le, Ke) =>
        Le.original.intersectsOrTouches(Ke.original) ||
        Le.modified.intersectsOrTouches(Ke.modified),
    )) {
      const Le = ge[0],
        Ke = ge[ge.length - 1];
      $.push(
        new HA(
          Le.original.join(Ke.original),
          Le.modified.join(Ke.modified),
          ge.map((ae) => ae.innerChanges[0]),
        ),
      );
    }
    return (
      fB(() =>
        !F &&
        $.length > 0 &&
        ($[0].modified.startLineNumber !== $[0].original.startLineNumber ||
          x.length.lineCount -
            $[$.length - 1].modified.endLineNumberExclusive !==
            y.length.lineCount -
              $[$.length - 1].original.endLineNumberExclusive)
          ? !1
          : Yye(
              $,
              (ge, Le) =>
                Le.original.startLineNumber -
                  ge.original.endLineNumberExclusive ===
                  Le.modified.startLineNumber -
                    ge.modified.endLineNumberExclusive &&
                ge.original.endLineNumberExclusive <
                  Le.original.startLineNumber &&
                ge.modified.endLineNumberExclusive <
                  Le.modified.startLineNumber,
            ),
      ),
      $
    );
  }
  function k5e(b, y, x) {
    let F = 0,
      $ = 0;
    (b.modifiedRange.endColumn === 1 &&
      b.originalRange.endColumn === 1 &&
      b.originalRange.startLineNumber + F <= b.originalRange.endLineNumber &&
      b.modifiedRange.startLineNumber + F <= b.modifiedRange.endLineNumber &&
      ($ = -1),
      b.modifiedRange.startColumn - 1 >=
        x.getLineLength(b.modifiedRange.startLineNumber) &&
        b.originalRange.startColumn - 1 >=
          y.getLineLength(b.originalRange.startLineNumber) &&
        b.originalRange.startLineNumber <= b.originalRange.endLineNumber + $ &&
        b.modifiedRange.startLineNumber <= b.modifiedRange.endLineNumber + $ &&
        (F = 1));
    const ge = new Vc(
        b.originalRange.startLineNumber + F,
        b.originalRange.endLineNumber + 1 + $,
      ),
      Le = new Vc(
        b.modifiedRange.startLineNumber + F,
        b.modifiedRange.endLineNumber + 1 + $,
      );
    return new HA(ge, Le, [b]);
  }
  const w5e = 3;
  class O5e {
    computeDiff(y, x, F) {
      const ge = new z5e(y, x, {
          maxComputationTime: F.maxComputationTimeMs,
          shouldIgnoreTrimWhitespace: F.ignoreTrimWhitespace,
          shouldComputeCharChanges: !0,
          shouldMakePrettyDiff: !0,
          shouldPostProcessCharChanges: !0,
        }).computeDiff(),
        Le = [];
      let Ke = null;
      for (const ae of ge.changes) {
        let bt;
        ae.originalEndLineNumber === 0
          ? (bt = new Vc(
              ae.originalStartLineNumber + 1,
              ae.originalStartLineNumber + 1,
            ))
          : (bt = new Vc(
              ae.originalStartLineNumber,
              ae.originalEndLineNumber + 1,
            ));
        let et;
        ae.modifiedEndLineNumber === 0
          ? (et = new Vc(
              ae.modifiedStartLineNumber + 1,
              ae.modifiedStartLineNumber + 1,
            ))
          : (et = new Vc(
              ae.modifiedStartLineNumber,
              ae.modifiedEndLineNumber + 1,
            ));
        let Ye = new HA(
          bt,
          et,
          ae.charChanges?.map(
            (Pn) =>
              new AT(
                new ss(
                  Pn.originalStartLineNumber,
                  Pn.originalStartColumn,
                  Pn.originalEndLineNumber,
                  Pn.originalEndColumn,
                ),
                new ss(
                  Pn.modifiedStartLineNumber,
                  Pn.modifiedStartColumn,
                  Pn.modifiedEndLineNumber,
                  Pn.modifiedEndColumn,
                ),
              ),
          ),
        );
        (Ke &&
          (Ke.modified.endLineNumberExclusive === Ye.modified.startLineNumber ||
            Ke.original.endLineNumberExclusive ===
              Ye.original.startLineNumber) &&
          ((Ye = new HA(
            Ke.original.join(Ye.original),
            Ke.modified.join(Ye.modified),
            Ke.innerChanges && Ye.innerChanges
              ? Ke.innerChanges.concat(Ye.innerChanges)
              : void 0,
          )),
          Le.pop()),
          Le.push(Ye),
          (Ke = Ye));
      }
      return (
        fB(() =>
          Yye(
            Le,
            (ae, bt) =>
              bt.original.startLineNumber -
                ae.original.endLineNumberExclusive ===
                bt.modified.startLineNumber -
                  ae.modified.endLineNumberExclusive &&
              ae.original.endLineNumberExclusive <
                bt.original.startLineNumber &&
              ae.modified.endLineNumberExclusive < bt.modified.startLineNumber,
          ),
        ),
        new IB(Le, [], ge.quitEarly)
      );
    }
  }
  function Wbe(b, y, x, F) {
    return new vR(b, y, x).ComputeDiff(F);
  }
  let Fbe = class {
    constructor(y) {
      const x = [],
        F = [];
      for (let $ = 0, ge = y.length; $ < ge; $++)
        ((x[$] = PQ(y[$], 1)), (F[$] = LQ(y[$], 1)));
      ((this.lines = y), (this._startColumns = x), (this._endColumns = F));
    }
    getElements() {
      const y = [];
      for (let x = 0, F = this.lines.length; x < F; x++)
        y[x] = this.lines[x].substring(
          this._startColumns[x] - 1,
          this._endColumns[x] - 1,
        );
      return y;
    }
    getStrictElement(y) {
      return this.lines[y];
    }
    getStartLineNumber(y) {
      return y + 1;
    }
    getEndLineNumber(y) {
      return y + 1;
    }
    createCharSequence(y, x, F) {
      const $ = [],
        ge = [],
        Le = [];
      let Ke = 0;
      for (let ae = x; ae <= F; ae++) {
        const bt = this.lines[ae],
          et = y ? this._startColumns[ae] : 1,
          Ye = y ? this._endColumns[ae] : bt.length + 1;
        for (let Pn = et; Pn < Ye; Pn++)
          (($[Ke] = bt.charCodeAt(Pn - 1)),
            (ge[Ke] = ae + 1),
            (Le[Ke] = Pn),
            Ke++);
        !y &&
          ae < F &&
          (($[Ke] = 10), (ge[Ke] = ae + 1), (Le[Ke] = bt.length + 1), Ke++);
      }
      return new W5e($, ge, Le);
    }
  };
  class W5e {
    constructor(y, x, F) {
      ((this._charCodes = y), (this._lineNumbers = x), (this._columns = F));
    }
    toString() {
      return (
        "[" +
        this._charCodes
          .map(
            (y, x) =>
              (y === 10 ? "\\n" : String.fromCharCode(y)) +
              `-(${this._lineNumbers[x]},${this._columns[x]})`,
          )
          .join(", ") +
        "]"
      );
    }
    _assertIndex(y, x) {
      if (y < 0 || y >= x.length) throw new Error("Illegal index");
    }
    getElements() {
      return this._charCodes;
    }
    getStartLineNumber(y) {
      return y > 0 && y === this._lineNumbers.length
        ? this.getEndLineNumber(y - 1)
        : (this._assertIndex(y, this._lineNumbers), this._lineNumbers[y]);
    }
    getEndLineNumber(y) {
      return y === -1
        ? this.getStartLineNumber(y + 1)
        : (this._assertIndex(y, this._lineNumbers),
          this._charCodes[y] === 10
            ? this._lineNumbers[y] + 1
            : this._lineNumbers[y]);
    }
    getStartColumn(y) {
      return y > 0 && y === this._columns.length
        ? this.getEndColumn(y - 1)
        : (this._assertIndex(y, this._columns), this._columns[y]);
    }
    getEndColumn(y) {
      return y === -1
        ? this.getStartColumn(y + 1)
        : (this._assertIndex(y, this._columns),
          this._charCodes[y] === 10 ? 1 : this._columns[y] + 1);
    }
  }
  class i2 {
    constructor(y, x, F, $, ge, Le, Ke, ae) {
      ((this.originalStartLineNumber = y),
        (this.originalStartColumn = x),
        (this.originalEndLineNumber = F),
        (this.originalEndColumn = $),
        (this.modifiedStartLineNumber = ge),
        (this.modifiedStartColumn = Le),
        (this.modifiedEndLineNumber = Ke),
        (this.modifiedEndColumn = ae));
    }
    static createFromDiffChange(y, x, F) {
      const $ = x.getStartLineNumber(y.originalStart),
        ge = x.getStartColumn(y.originalStart),
        Le = x.getEndLineNumber(y.originalStart + y.originalLength - 1),
        Ke = x.getEndColumn(y.originalStart + y.originalLength - 1),
        ae = F.getStartLineNumber(y.modifiedStart),
        bt = F.getStartColumn(y.modifiedStart),
        et = F.getEndLineNumber(y.modifiedStart + y.modifiedLength - 1),
        Ye = F.getEndColumn(y.modifiedStart + y.modifiedLength - 1);
      return new i2($, ge, Le, Ke, ae, bt, et, Ye);
    }
  }
  function F5e(b) {
    if (b.length <= 1) return b;
    const y = [b[0]];
    let x = y[0];
    for (let F = 1, $ = b.length; F < $; F++) {
      const ge = b[F],
        Le = ge.originalStart - (x.originalStart + x.originalLength),
        Ke = ge.modifiedStart - (x.modifiedStart + x.modifiedLength);
      Math.min(Le, Ke) < w5e
        ? ((x.originalLength =
            ge.originalStart + ge.originalLength - x.originalStart),
          (x.modifiedLength =
            ge.modifiedStart + ge.modifiedLength - x.modifiedStart))
        : (y.push(ge), (x = ge));
    }
    return y;
  }
  class P8 {
    constructor(y, x, F, $, ge) {
      ((this.originalStartLineNumber = y),
        (this.originalEndLineNumber = x),
        (this.modifiedStartLineNumber = F),
        (this.modifiedEndLineNumber = $),
        (this.charChanges = ge));
    }
    static createFromDiffResult(y, x, F, $, ge, Le, Ke) {
      let ae, bt, et, Ye, Pn;
      if (
        (x.originalLength === 0
          ? ((ae = F.getStartLineNumber(x.originalStart) - 1), (bt = 0))
          : ((ae = F.getStartLineNumber(x.originalStart)),
            (bt = F.getEndLineNumber(x.originalStart + x.originalLength - 1))),
        x.modifiedLength === 0
          ? ((et = $.getStartLineNumber(x.modifiedStart) - 1), (Ye = 0))
          : ((et = $.getStartLineNumber(x.modifiedStart)),
            (Ye = $.getEndLineNumber(x.modifiedStart + x.modifiedLength - 1))),
        Le &&
          x.originalLength > 0 &&
          x.originalLength < 20 &&
          x.modifiedLength > 0 &&
          x.modifiedLength < 20 &&
          ge())
      ) {
        const Hn = F.createCharSequence(
            y,
            x.originalStart,
            x.originalStart + x.originalLength - 1,
          ),
          cr = $.createCharSequence(
            y,
            x.modifiedStart,
            x.modifiedStart + x.modifiedLength - 1,
          );
        if (Hn.getElements().length > 0 && cr.getElements().length > 0) {
          let Gn = Wbe(Hn, cr, ge, !0).changes;
          (Ke && (Gn = F5e(Gn)), (Pn = []));
          for (let ki = 0, bo = Gn.length; ki < bo; ki++)
            Pn.push(i2.createFromDiffChange(Gn[ki], Hn, cr));
        }
      }
      return new P8(ae, bt, et, Ye, Pn);
    }
  }
  class z5e {
    constructor(y, x, F) {
      ((this.shouldComputeCharChanges = F.shouldComputeCharChanges),
        (this.shouldPostProcessCharChanges = F.shouldPostProcessCharChanges),
        (this.shouldIgnoreTrimWhitespace = F.shouldIgnoreTrimWhitespace),
        (this.shouldMakePrettyDiff = F.shouldMakePrettyDiff),
        (this.originalLines = y),
        (this.modifiedLines = x),
        (this.original = new Fbe(y)),
        (this.modified = new Fbe(x)),
        (this.continueLineDiff = zbe(F.maxComputationTime)),
        (this.continueCharDiff = zbe(
          F.maxComputationTime === 0 ? 0 : Math.min(F.maxComputationTime, 5e3),
        )));
    }
    computeDiff() {
      if (
        this.original.lines.length === 1 &&
        this.original.lines[0].length === 0
      )
        return this.modified.lines.length === 1 &&
          this.modified.lines[0].length === 0
          ? { quitEarly: !1, changes: [] }
          : {
              quitEarly: !1,
              changes: [
                {
                  originalStartLineNumber: 1,
                  originalEndLineNumber: 1,
                  modifiedStartLineNumber: 1,
                  modifiedEndLineNumber: this.modified.lines.length,
                  charChanges: void 0,
                },
              ],
            };
      if (
        this.modified.lines.length === 1 &&
        this.modified.lines[0].length === 0
      )
        return {
          quitEarly: !1,
          changes: [
            {
              originalStartLineNumber: 1,
              originalEndLineNumber: this.original.lines.length,
              modifiedStartLineNumber: 1,
              modifiedEndLineNumber: 1,
              charChanges: void 0,
            },
          ],
        };
      const y = Wbe(
          this.original,
          this.modified,
          this.continueLineDiff,
          this.shouldMakePrettyDiff,
        ),
        x = y.changes,
        F = y.quitEarly;
      if (this.shouldIgnoreTrimWhitespace) {
        const Ke = [];
        for (let ae = 0, bt = x.length; ae < bt; ae++)
          Ke.push(
            P8.createFromDiffResult(
              this.shouldIgnoreTrimWhitespace,
              x[ae],
              this.original,
              this.modified,
              this.continueCharDiff,
              this.shouldComputeCharChanges,
              this.shouldPostProcessCharChanges,
            ),
          );
        return { quitEarly: F, changes: Ke };
      }
      const $ = [];
      let ge = 0,
        Le = 0;
      for (let Ke = -1, ae = x.length; Ke < ae; Ke++) {
        const bt = Ke + 1 < ae ? x[Ke + 1] : null,
          et = bt ? bt.originalStart : this.originalLines.length,
          Ye = bt ? bt.modifiedStart : this.modifiedLines.length;
        for (; ge < et && Le < Ye; ) {
          const Pn = this.originalLines[ge],
            Hn = this.modifiedLines[Le];
          if (Pn !== Hn) {
            {
              let cr = PQ(Pn, 1),
                Gn = PQ(Hn, 1);
              for (; cr > 1 && Gn > 1; ) {
                const ki = Pn.charCodeAt(cr - 2),
                  bo = Hn.charCodeAt(Gn - 2);
                if (ki !== bo) break;
                (cr--, Gn--);
              }
              (cr > 1 || Gn > 1) &&
                this._pushTrimWhitespaceCharChange(
                  $,
                  ge + 1,
                  1,
                  cr,
                  Le + 1,
                  1,
                  Gn,
                );
            }
            {
              let cr = LQ(Pn, 1),
                Gn = LQ(Hn, 1);
              const ki = Pn.length + 1,
                bo = Hn.length + 1;
              for (; cr < ki && Gn < bo; ) {
                const Vn = Pn.charCodeAt(cr - 1),
                  hn = Pn.charCodeAt(Gn - 1);
                if (Vn !== hn) break;
                (cr++, Gn++);
              }
              (cr < ki || Gn < bo) &&
                this._pushTrimWhitespaceCharChange(
                  $,
                  ge + 1,
                  cr,
                  ki,
                  Le + 1,
                  Gn,
                  bo,
                );
            }
          }
          (ge++, Le++);
        }
        bt &&
          ($.push(
            P8.createFromDiffResult(
              this.shouldIgnoreTrimWhitespace,
              bt,
              this.original,
              this.modified,
              this.continueCharDiff,
              this.shouldComputeCharChanges,
              this.shouldPostProcessCharChanges,
            ),
          ),
          (ge += bt.originalLength),
          (Le += bt.modifiedLength));
      }
      return { quitEarly: F, changes: $ };
    }
    _pushTrimWhitespaceCharChange(y, x, F, $, ge, Le, Ke) {
      if (this._mergeTrimWhitespaceCharChange(y, x, F, $, ge, Le, Ke)) return;
      let ae;
      (this.shouldComputeCharChanges &&
        (ae = [new i2(x, F, x, $, ge, Le, ge, Ke)]),
        y.push(new P8(x, x, ge, ge, ae)));
    }
    _mergeTrimWhitespaceCharChange(y, x, F, $, ge, Le, Ke) {
      const ae = y.length;
      if (ae === 0) return !1;
      const bt = y[ae - 1];
      return bt.originalEndLineNumber === 0 || bt.modifiedEndLineNumber === 0
        ? !1
        : bt.originalEndLineNumber === x && bt.modifiedEndLineNumber === ge
          ? (this.shouldComputeCharChanges &&
              bt.charChanges &&
              bt.charChanges.push(new i2(x, F, x, $, ge, Le, ge, Ke)),
            !0)
          : bt.originalEndLineNumber + 1 === x &&
              bt.modifiedEndLineNumber + 1 === ge
            ? ((bt.originalEndLineNumber = x),
              (bt.modifiedEndLineNumber = ge),
              this.shouldComputeCharChanges &&
                bt.charChanges &&
                bt.charChanges.push(new i2(x, F, x, $, ge, Le, ge, Ke)),
              !0)
            : !1;
    }
  }
  function PQ(b, y) {
    const x = cze(b);
    return x === -1 ? y : x + 1;
  }
  function LQ(b, y) {
    const x = dze(b);
    return x === -1 ? y : x + 2;
  }
  function zbe(b) {
    if (b === 0) return () => !0;
    const y = Date.now();
    return () => Date.now() - y < b;
  }
  class qA {
    static trivial(y, x) {
      return new qA([new sf(rc.ofLength(y.length), rc.ofLength(x.length))], !1);
    }
    static trivialTimedOut(y, x) {
      return new qA([new sf(rc.ofLength(y.length), rc.ofLength(x.length))], !0);
    }
    constructor(y, x) {
      ((this.diffs = y), (this.hitTimeout = x));
    }
  }
  class sf {
    static invert(y, x) {
      const F = [];
      return (
        I5e(y, ($, ge) => {
          F.push(
            sf.fromOffsetPairs(
              $ ? $.getEndExclusives() : JA.zero,
              ge
                ? ge.getStarts()
                : new JA(
                    x,
                    ($
                      ? $.seq2Range.endExclusive - $.seq1Range.endExclusive
                      : 0) + x,
                  ),
            ),
          );
        }),
        F
      );
    }
    static fromOffsetPairs(y, x) {
      return new sf(new rc(y.offset1, x.offset1), new rc(y.offset2, x.offset2));
    }
    static assertSorted(y) {
      let x;
      for (const F of y) {
        if (
          x &&
          !(
            x.seq1Range.endExclusive <= F.seq1Range.start &&
            x.seq2Range.endExclusive <= F.seq2Range.start
          )
        )
          throw new A_("Sequence diffs must be sorted");
        x = F;
      }
    }
    constructor(y, x) {
      ((this.seq1Range = y), (this.seq2Range = x));
    }
    swap() {
      return new sf(this.seq2Range, this.seq1Range);
    }
    toString() {
      return `${this.seq1Range} <-> ${this.seq2Range}`;
    }
    join(y) {
      return new sf(
        this.seq1Range.join(y.seq1Range),
        this.seq2Range.join(y.seq2Range),
      );
    }
    delta(y) {
      return y === 0
        ? this
        : new sf(this.seq1Range.delta(y), this.seq2Range.delta(y));
    }
    deltaStart(y) {
      return y === 0
        ? this
        : new sf(this.seq1Range.deltaStart(y), this.seq2Range.deltaStart(y));
    }
    deltaEnd(y) {
      return y === 0
        ? this
        : new sf(this.seq1Range.deltaEnd(y), this.seq2Range.deltaEnd(y));
    }
    intersect(y) {
      const x = this.seq1Range.intersect(y.seq1Range),
        F = this.seq2Range.intersect(y.seq2Range);
      if (!(!x || !F)) return new sf(x, F);
    }
    getStarts() {
      return new JA(this.seq1Range.start, this.seq2Range.start);
    }
    getEndExclusives() {
      return new JA(this.seq1Range.endExclusive, this.seq2Range.endExclusive);
    }
  }
  const uN = class uN {
    constructor(y, x) {
      ((this.offset1 = y), (this.offset2 = x));
    }
    toString() {
      return `${this.offset1} <-> ${this.offset2}`;
    }
    delta(y) {
      return y === 0 ? this : new uN(this.offset1 + y, this.offset2 + y);
    }
    equals(y) {
      return this.offset1 === y.offset1 && this.offset2 === y.offset2;
    }
  };
  ((uN.zero = new uN(0, 0)),
    (uN.max = new uN(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER)));
  let JA = uN;
  const kB = class kB {
    isValid() {
      return !0;
    }
  };
  kB.instance = new kB();
  let L8 = kB;
  class B5e {
    constructor(y) {
      if (
        ((this.timeout = y),
        (this.startTime = Date.now()),
        (this.valid = !0),
        y <= 0)
      )
        throw new A_("timeout must be positive");
    }
    isValid() {
      return (
        !(Date.now() - this.startTime < this.timeout) &&
          this.valid &&
          (this.valid = !1),
        this.valid
      );
    }
  }
  class kQ {
    constructor(y, x) {
      ((this.width = y),
        (this.height = x),
        (this.array = []),
        (this.array = new Array(y * x)));
    }
    get(y, x) {
      return this.array[y + x * this.width];
    }
    set(y, x, F) {
      this.array[y + x * this.width] = F;
    }
  }
  function wQ(b) {
    return b === 32 || b === 9;
  }
  const O8 = class O8 {
    static getKey(y) {
      let x = this.chrKeys.get(y);
      return (
        x === void 0 && ((x = this.chrKeys.size), this.chrKeys.set(y, x)),
        x
      );
    }
    constructor(y, x, F) {
      ((this.range = y),
        (this.lines = x),
        (this.source = F),
        (this.histogram = []));
      let $ = 0;
      for (
        let ge = y.startLineNumber - 1;
        ge < y.endLineNumberExclusive - 1;
        ge++
      ) {
        const Le = x[ge];
        for (let ae = 0; ae < Le.length; ae++) {
          $++;
          const bt = Le[ae],
            et = O8.getKey(bt);
          this.histogram[et] = (this.histogram[et] || 0) + 1;
        }
        $++;
        const Ke = O8.getKey(`
`);
        this.histogram[Ke] = (this.histogram[Ke] || 0) + 1;
      }
      this.totalCount = $;
    }
    computeSimilarity(y) {
      let x = 0;
      const F = Math.max(this.histogram.length, y.histogram.length);
      for (let $ = 0; $ < F; $++)
        x += Math.abs((this.histogram[$] ?? 0) - (y.histogram[$] ?? 0));
      return 1 - x / (this.totalCount + y.totalCount);
    }
  };
  O8.chrKeys = new Map();
  let DB = O8;
  class G5e {
    compute(y, x, F = L8.instance, $) {
      if (y.length === 0 || x.length === 0) return qA.trivial(y, x);
      const ge = new kQ(y.length, x.length),
        Le = new kQ(y.length, x.length),
        Ke = new kQ(y.length, x.length);
      for (let cr = 0; cr < y.length; cr++)
        for (let Gn = 0; Gn < x.length; Gn++) {
          if (!F.isValid()) return qA.trivialTimedOut(y, x);
          const ki = cr === 0 ? 0 : ge.get(cr - 1, Gn),
            bo = Gn === 0 ? 0 : ge.get(cr, Gn - 1);
          let Vn;
          y.getElement(cr) === x.getElement(Gn)
            ? (cr === 0 || Gn === 0 ? (Vn = 0) : (Vn = ge.get(cr - 1, Gn - 1)),
              cr > 0 &&
                Gn > 0 &&
                Le.get(cr - 1, Gn - 1) === 3 &&
                (Vn += Ke.get(cr - 1, Gn - 1)),
              (Vn += $ ? $(cr, Gn) : 1))
            : (Vn = -1);
          const hn = Math.max(ki, bo, Vn);
          if (hn === Vn) {
            const ga = cr > 0 && Gn > 0 ? Ke.get(cr - 1, Gn - 1) : 0;
            (Ke.set(cr, Gn, ga + 1), Le.set(cr, Gn, 3));
          } else
            hn === ki
              ? (Ke.set(cr, Gn, 0), Le.set(cr, Gn, 1))
              : hn === bo && (Ke.set(cr, Gn, 0), Le.set(cr, Gn, 2));
          ge.set(cr, Gn, hn);
        }
      const ae = [];
      let bt = y.length,
        et = x.length;
      function Ye(cr, Gn) {
        ((cr + 1 !== bt || Gn + 1 !== et) &&
          ae.push(new sf(new rc(cr + 1, bt), new rc(Gn + 1, et))),
          (bt = cr),
          (et = Gn));
      }
      let Pn = y.length - 1,
        Hn = x.length - 1;
      for (; Pn >= 0 && Hn >= 0; )
        Le.get(Pn, Hn) === 3
          ? (Ye(Pn, Hn), Pn--, Hn--)
          : Le.get(Pn, Hn) === 1
            ? Pn--
            : Hn--;
      return (Ye(-1, -1), ae.reverse(), new qA(ae, !1));
    }
  }
  class Bbe {
    compute(y, x, F = L8.instance) {
      if (y.length === 0 || x.length === 0) return qA.trivial(y, x);
      const $ = y,
        ge = x;
      function Le(Gn, ki) {
        for (
          ;
          Gn < $.length &&
          ki < ge.length &&
          $.getElement(Gn) === ge.getElement(ki);
        )
          (Gn++, ki++);
        return Gn;
      }
      let Ke = 0;
      const ae = new V5e();
      ae.set(0, Le(0, 0));
      const bt = new j5e();
      bt.set(0, ae.get(0) === 0 ? null : new Gbe(null, 0, 0, ae.get(0)));
      let et = 0;
      e: for (;;) {
        if ((Ke++, !F.isValid())) return qA.trivialTimedOut($, ge);
        const Gn = -Math.min(Ke, ge.length + (Ke % 2)),
          ki = Math.min(Ke, $.length + (Ke % 2));
        for (et = Gn; et <= ki; et += 2) {
          const bo = et === ki ? -1 : ae.get(et + 1),
            Vn = et === Gn ? -1 : ae.get(et - 1) + 1,
            hn = Math.min(Math.max(bo, Vn), $.length),
            ga = hn - et;
          if (hn > $.length || ga > ge.length) continue;
          const ho = Le(hn, ga);
          ae.set(et, ho);
          const gl = hn === bo ? bt.get(et + 1) : bt.get(et - 1);
          if (
            (bt.set(et, ho !== hn ? new Gbe(gl, hn, ga, ho - hn) : gl),
            ae.get(et) === $.length && ae.get(et) - et === ge.length)
          )
            break e;
        }
      }
      let Ye = bt.get(et);
      const Pn = [];
      let Hn = $.length,
        cr = ge.length;
      for (;;) {
        const Gn = Ye ? Ye.x + Ye.length : 0,
          ki = Ye ? Ye.y + Ye.length : 0;
        if (
          ((Gn !== Hn || ki !== cr) &&
            Pn.push(new sf(new rc(Gn, Hn), new rc(ki, cr))),
          !Ye)
        )
          break;
        ((Hn = Ye.x), (cr = Ye.y), (Ye = Ye.prev));
      }
      return (Pn.reverse(), new qA(Pn, !1));
    }
  }
  class Gbe {
    constructor(y, x, F, $) {
      ((this.prev = y), (this.x = x), (this.y = F), (this.length = $));
    }
  }
  class V5e {
    constructor() {
      ((this.positiveArr = new Int32Array(10)),
        (this.negativeArr = new Int32Array(10)));
    }
    get(y) {
      return y < 0 ? ((y = -y - 1), this.negativeArr[y]) : this.positiveArr[y];
    }
    set(y, x) {
      if (y < 0) {
        if (((y = -y - 1), y >= this.negativeArr.length)) {
          const F = this.negativeArr;
          ((this.negativeArr = new Int32Array(F.length * 2)),
            this.negativeArr.set(F));
        }
        this.negativeArr[y] = x;
      } else {
        if (y >= this.positiveArr.length) {
          const F = this.positiveArr;
          ((this.positiveArr = new Int32Array(F.length * 2)),
            this.positiveArr.set(F));
        }
        this.positiveArr[y] = x;
      }
    }
  }
  class j5e {
    constructor() {
      ((this.positiveArr = []), (this.negativeArr = []));
    }
    get(y) {
      return y < 0 ? ((y = -y - 1), this.negativeArr[y]) : this.positiveArr[y];
    }
    set(y, x) {
      y < 0
        ? ((y = -y - 1), (this.negativeArr[y] = x))
        : (this.positiveArr[y] = x);
    }
  }
  class CB {
    constructor(y, x, F) {
      ((this.lines = y),
        (this.range = x),
        (this.considerWhitespaceChanges = F),
        (this.elements = []),
        (this.firstElementOffsetByLineIdx = []),
        (this.lineStartOffsets = []),
        (this.trimmedWsLengthsByLineIdx = []),
        this.firstElementOffsetByLineIdx.push(0));
      for (
        let $ = this.range.startLineNumber;
        $ <= this.range.endLineNumber;
        $++
      ) {
        let ge = y[$ - 1],
          Le = 0;
        ($ === this.range.startLineNumber &&
          this.range.startColumn > 1 &&
          ((Le = this.range.startColumn - 1), (ge = ge.substring(Le))),
          this.lineStartOffsets.push(Le));
        let Ke = 0;
        if (!F) {
          const bt = ge.trimStart();
          ((Ke = ge.length - bt.length), (ge = bt.trimEnd()));
        }
        this.trimmedWsLengthsByLineIdx.push(Ke);
        const ae =
          $ === this.range.endLineNumber
            ? Math.min(this.range.endColumn - 1 - Le - Ke, ge.length)
            : ge.length;
        for (let bt = 0; bt < ae; bt++) this.elements.push(ge.charCodeAt(bt));
        $ < this.range.endLineNumber &&
          (this.elements.push(10),
          this.firstElementOffsetByLineIdx.push(this.elements.length));
      }
    }
    toString() {
      return `Slice: "${this.text}"`;
    }
    get text() {
      return this.getText(new rc(0, this.length));
    }
    getText(y) {
      return this.elements
        .slice(y.start, y.endExclusive)
        .map((x) => String.fromCharCode(x))
        .join("");
    }
    getElement(y) {
      return this.elements[y];
    }
    get length() {
      return this.elements.length;
    }
    getBoundaryScore(y) {
      const x = Ube(y > 0 ? this.elements[y - 1] : -1),
        F = Ube(y < this.elements.length ? this.elements[y] : -1);
      if (x === 7 && F === 8) return 0;
      if (x === 8) return 150;
      let $ = 0;
      return (
        x !== F && (($ += 10), x === 0 && F === 1 && ($ += 1)),
        ($ += jbe(x)),
        ($ += jbe(F)),
        $
      );
    }
    translateOffset(y, x = "right") {
      const F = t2(this.firstElementOffsetByLineIdx, (ge) => ge <= y),
        $ = y - this.firstElementOffsetByLineIdx[F];
      return new Zc(
        this.range.startLineNumber + F,
        1 +
          this.lineStartOffsets[F] +
          $ +
          ($ === 0 && x === "left" ? 0 : this.trimmedWsLengthsByLineIdx[F]),
      );
    }
    translateRange(y) {
      const x = this.translateOffset(y.start, "right"),
        F = this.translateOffset(y.endExclusive, "left");
      return F.isBefore(x) ? ss.fromPositions(F, F) : ss.fromPositions(x, F);
    }
    findWordContaining(y) {
      if (y < 0 || y >= this.elements.length || !o2(this.elements[y])) return;
      let x = y;
      for (; x > 0 && o2(this.elements[x - 1]); ) x--;
      let F = y;
      for (; F < this.elements.length && o2(this.elements[F]); ) F++;
      return new rc(x, F);
    }
    findSubWordContaining(y) {
      if (y < 0 || y >= this.elements.length || !o2(this.elements[y])) return;
      let x = y;
      for (; x > 0 && o2(this.elements[x - 1]) && !Vbe(this.elements[x]); ) x--;
      let F = y;
      for (
        ;
        F < this.elements.length &&
        o2(this.elements[F]) &&
        !Vbe(this.elements[F]);
      )
        F++;
      return new rc(x, F);
    }
    countLinesIn(y) {
      return (
        this.translateOffset(y.endExclusive).lineNumber -
        this.translateOffset(y.start).lineNumber
      );
    }
    isStronglyEqual(y, x) {
      return this.elements[y] === this.elements[x];
    }
    extendToFullLines(y) {
      const x = e2(this.firstElementOffsetByLineIdx, ($) => $ <= y.start) ?? 0,
        F =
          C5e(this.firstElementOffsetByLineIdx, ($) => y.endExclusive <= $) ??
          this.elements.length;
      return new rc(x, F);
    }
  }
  function o2(b) {
    return (
      (b >= 97 && b <= 122) || (b >= 65 && b <= 90) || (b >= 48 && b <= 57)
    );
  }
  function Vbe(b) {
    return b >= 65 && b <= 90;
  }
  const U5e = { 0: 0, 1: 0, 2: 0, 3: 10, 4: 2, 5: 30, 6: 3, 7: 10, 8: 10 };
  function jbe(b) {
    return U5e[b];
  }
  function Ube(b) {
    return b === 10
      ? 8
      : b === 13
        ? 7
        : wQ(b)
          ? 6
          : b >= 97 && b <= 122
            ? 0
            : b >= 65 && b <= 90
              ? 1
              : b >= 48 && b <= 57
                ? 2
                : b === -1
                  ? 3
                  : b === 44 || b === 59
                    ? 5
                    : 4;
  }
  function H5e(b, y, x, F, $, ge) {
    let { moves: Le, excludedChanges: Ke } = J5e(b, y, x, ge);
    if (!ge.isValid()) return [];
    const ae = b.filter((et) => !Ke.has(et)),
      bt = K5e(ae, F, $, y, x, ge);
    return (
      R5e(Le, bt),
      (Le = X5e(Le)),
      (Le = Le.filter((et) => {
        const Ye = et.original
          .toOffsetRange()
          .slice(y)
          .map((Hn) => Hn.trim());
        return (
          Ye.join(`
`).length >= 15 && q5e(Ye, (Hn) => Hn.length >= 2) >= 2
        );
      })),
      (Le = Y5e(b, Le)),
      Le
    );
  }
  function q5e(b, y) {
    let x = 0;
    for (const F of b) y(F) && x++;
    return x;
  }
  function J5e(b, y, x, F) {
    const $ = [],
      ge = b
        .filter((ae) => ae.modified.isEmpty && ae.original.length >= 3)
        .map((ae) => new DB(ae.original, y, ae)),
      Le = new Set(
        b
          .filter((ae) => ae.original.isEmpty && ae.modified.length >= 3)
          .map((ae) => new DB(ae.modified, x, ae)),
      ),
      Ke = new Set();
    for (const ae of ge) {
      let bt = -1,
        et;
      for (const Ye of Le) {
        const Pn = ae.computeSimilarity(Ye);
        Pn > bt && ((bt = Pn), (et = Ye));
      }
      if (
        (bt > 0.9 &&
          et &&
          (Le.delete(et),
          $.push(new ET(ae.range, et.range)),
          Ke.add(ae.source),
          Ke.add(et.source)),
        !F.isValid())
      )
        return { moves: $, excludedChanges: Ke };
    }
    return { moves: $, excludedChanges: Ke };
  }
  function K5e(b, y, x, F, $, ge) {
    const Le = [],
      Ke = new u5e();
    for (const Pn of b)
      for (
        let Hn = Pn.original.startLineNumber;
        Hn < Pn.original.endLineNumberExclusive - 2;
        Hn++
      ) {
        const cr = `${y[Hn - 1]}:${y[Hn + 1 - 1]}:${y[Hn + 2 - 1]}`;
        Ke.add(cr, { range: new Vc(Hn, Hn + 3) });
      }
    const ae = [];
    b.sort(C8((Pn) => Pn.modified.startLineNumber, N8));
    for (const Pn of b) {
      let Hn = [];
      for (
        let cr = Pn.modified.startLineNumber;
        cr < Pn.modified.endLineNumberExclusive - 2;
        cr++
      ) {
        const Gn = `${x[cr - 1]}:${x[cr + 1 - 1]}:${x[cr + 2 - 1]}`,
          ki = new Vc(cr, cr + 3),
          bo = [];
        (Ke.forEach(Gn, ({ range: Vn }) => {
          for (const ga of Hn)
            if (
              ga.originalLineRange.endLineNumberExclusive + 1 ===
                Vn.endLineNumberExclusive &&
              ga.modifiedLineRange.endLineNumberExclusive + 1 ===
                ki.endLineNumberExclusive
            ) {
              ((ga.originalLineRange = new Vc(
                ga.originalLineRange.startLineNumber,
                Vn.endLineNumberExclusive,
              )),
                (ga.modifiedLineRange = new Vc(
                  ga.modifiedLineRange.startLineNumber,
                  ki.endLineNumberExclusive,
                )),
                bo.push(ga));
              return;
            }
          const hn = { modifiedLineRange: ki, originalLineRange: Vn };
          (ae.push(hn), bo.push(hn));
        }),
          (Hn = bo));
      }
      if (!ge.isValid()) return [];
    }
    ae.sort(D5e(C8((Pn) => Pn.modifiedLineRange.length, N8)));
    const bt = new zE(),
      et = new zE();
    for (const Pn of ae) {
      const Hn =
          Pn.modifiedLineRange.startLineNumber -
          Pn.originalLineRange.startLineNumber,
        cr = bt.subtractFrom(Pn.modifiedLineRange),
        Gn = et.subtractFrom(Pn.originalLineRange).getWithDelta(Hn),
        ki = cr.getIntersection(Gn);
      for (const bo of ki.ranges) {
        if (bo.length < 3) continue;
        const Vn = bo,
          hn = bo.delta(-Hn);
        (Le.push(new ET(hn, Vn)), bt.addRange(Vn), et.addRange(hn));
      }
    }
    Le.sort(C8((Pn) => Pn.original.startLineNumber, N8));
    const Ye = new xB(b);
    for (let Pn = 0; Pn < Le.length; Pn++) {
      const Hn = Le[Pn],
        cr = Ye.findLastMonotonous(
          (gl) => gl.original.startLineNumber <= Hn.original.startLineNumber,
        ),
        Gn = e2(
          b,
          (gl) => gl.modified.startLineNumber <= Hn.modified.startLineNumber,
        ),
        ki = Math.max(
          Hn.original.startLineNumber - cr.original.startLineNumber,
          Hn.modified.startLineNumber - Gn.modified.startLineNumber,
        ),
        bo = Ye.findLastMonotonous(
          (gl) =>
            gl.original.startLineNumber < Hn.original.endLineNumberExclusive,
        ),
        Vn = e2(
          b,
          (gl) =>
            gl.modified.startLineNumber < Hn.modified.endLineNumberExclusive,
        ),
        hn = Math.max(
          bo.original.endLineNumberExclusive -
            Hn.original.endLineNumberExclusive,
          Vn.modified.endLineNumberExclusive -
            Hn.modified.endLineNumberExclusive,
        );
      let ga;
      for (ga = 0; ga < ki; ga++) {
        const gl = Hn.original.startLineNumber - ga - 1,
          jn = Hn.modified.startLineNumber - ga - 1;
        if (
          gl > F.length ||
          jn > $.length ||
          bt.contains(jn) ||
          et.contains(gl) ||
          !Hbe(F[gl - 1], $[jn - 1], ge)
        )
          break;
      }
      ga > 0 &&
        (et.addRange(
          new Vc(Hn.original.startLineNumber - ga, Hn.original.startLineNumber),
        ),
        bt.addRange(
          new Vc(Hn.modified.startLineNumber - ga, Hn.modified.startLineNumber),
        ));
      let ho;
      for (ho = 0; ho < hn; ho++) {
        const gl = Hn.original.endLineNumberExclusive + ho,
          jn = Hn.modified.endLineNumberExclusive + ho;
        if (
          gl > F.length ||
          jn > $.length ||
          bt.contains(jn) ||
          et.contains(gl) ||
          !Hbe(F[gl - 1], $[jn - 1], ge)
        )
          break;
      }
      (ho > 0 &&
        (et.addRange(
          new Vc(
            Hn.original.endLineNumberExclusive,
            Hn.original.endLineNumberExclusive + ho,
          ),
        ),
        bt.addRange(
          new Vc(
            Hn.modified.endLineNumberExclusive,
            Hn.modified.endLineNumberExclusive + ho,
          ),
        )),
        (ga > 0 || ho > 0) &&
          (Le[Pn] = new ET(
            new Vc(
              Hn.original.startLineNumber - ga,
              Hn.original.endLineNumberExclusive + ho,
            ),
            new Vc(
              Hn.modified.startLineNumber - ga,
              Hn.modified.endLineNumberExclusive + ho,
            ),
          )));
    }
    return Le;
  }
  function Hbe(b, y, x) {
    if (b.trim() === y.trim()) return !0;
    if (b.length > 300 && y.length > 300) return !1;
    const $ = new Bbe().compute(
      new CB([b], new ss(1, 1, 1, b.length), !1),
      new CB([y], new ss(1, 1, 1, y.length), !1),
      x,
    );
    let ge = 0;
    const Le = sf.invert($.diffs, b.length);
    for (const et of Le)
      et.seq1Range.forEach((Ye) => {
        wQ(b.charCodeAt(Ye)) || ge++;
      });
    function Ke(et) {
      let Ye = 0;
      for (let Pn = 0; Pn < b.length; Pn++) wQ(et.charCodeAt(Pn)) || Ye++;
      return Ye;
    }
    const ae = Ke(b.length > y.length ? b : y);
    return ge / ae > 0.6 && ae > 10;
  }
  function X5e(b) {
    if (b.length === 0) return b;
    b.sort(C8((x) => x.original.startLineNumber, N8));
    const y = [b[0]];
    for (let x = 1; x < b.length; x++) {
      const F = y[y.length - 1],
        $ = b[x],
        ge = $.original.startLineNumber - F.original.endLineNumberExclusive,
        Le = $.modified.startLineNumber - F.modified.endLineNumberExclusive;
      if (ge >= 0 && Le >= 0 && ge + Le <= 2) {
        y[y.length - 1] = F.join($);
        continue;
      }
      y.push($);
    }
    return y;
  }
  function Y5e(b, y) {
    const x = new xB(b);
    return (
      (y = y.filter((F) => {
        const $ =
            x.findLastMonotonous(
              (Ke) =>
                Ke.original.startLineNumber < F.original.endLineNumberExclusive,
            ) || new ET(new Vc(1, 1), new Vc(1, 1)),
          ge = e2(
            b,
            (Ke) =>
              Ke.modified.startLineNumber < F.modified.endLineNumberExclusive,
          );
        return $ !== ge;
      })),
      y
    );
  }
  function qbe(b, y, x) {
    let F = x;
    return ((F = Jbe(b, y, F)), (F = Jbe(b, y, F)), (F = $5e(b, y, F)), F);
  }
  function Jbe(b, y, x) {
    if (x.length === 0) return x;
    const F = [];
    F.push(x[0]);
    for (let ge = 1; ge < x.length; ge++) {
      const Le = F[F.length - 1];
      let Ke = x[ge];
      if (Ke.seq1Range.isEmpty || Ke.seq2Range.isEmpty) {
        const ae = Ke.seq1Range.start - Le.seq1Range.endExclusive;
        let bt;
        for (
          bt = 1;
          bt <= ae &&
          !(
            b.getElement(Ke.seq1Range.start - bt) !==
              b.getElement(Ke.seq1Range.endExclusive - bt) ||
            y.getElement(Ke.seq2Range.start - bt) !==
              y.getElement(Ke.seq2Range.endExclusive - bt)
          );
          bt++
        );
        if ((bt--, bt === ae)) {
          F[F.length - 1] = new sf(
            new rc(Le.seq1Range.start, Ke.seq1Range.endExclusive - ae),
            new rc(Le.seq2Range.start, Ke.seq2Range.endExclusive - ae),
          );
          continue;
        }
        Ke = Ke.delta(-bt);
      }
      F.push(Ke);
    }
    const $ = [];
    for (let ge = 0; ge < F.length - 1; ge++) {
      const Le = F[ge + 1];
      let Ke = F[ge];
      if (Ke.seq1Range.isEmpty || Ke.seq2Range.isEmpty) {
        const ae = Le.seq1Range.start - Ke.seq1Range.endExclusive;
        let bt;
        for (
          bt = 0;
          bt < ae &&
          !(
            !b.isStronglyEqual(
              Ke.seq1Range.start + bt,
              Ke.seq1Range.endExclusive + bt,
            ) ||
            !y.isStronglyEqual(
              Ke.seq2Range.start + bt,
              Ke.seq2Range.endExclusive + bt,
            )
          );
          bt++
        );
        if (bt === ae) {
          F[ge + 1] = new sf(
            new rc(Ke.seq1Range.start + ae, Le.seq1Range.endExclusive),
            new rc(Ke.seq2Range.start + ae, Le.seq2Range.endExclusive),
          );
          continue;
        }
        bt > 0 && (Ke = Ke.delta(bt));
      }
      $.push(Ke);
    }
    return (F.length > 0 && $.push(F[F.length - 1]), $);
  }
  function $5e(b, y, x) {
    if (!b.getBoundaryScore || !y.getBoundaryScore) return x;
    for (let F = 0; F < x.length; F++) {
      const $ = F > 0 ? x[F - 1] : void 0,
        ge = x[F],
        Le = F + 1 < x.length ? x[F + 1] : void 0,
        Ke = new rc(
          $ ? $.seq1Range.endExclusive + 1 : 0,
          Le ? Le.seq1Range.start - 1 : b.length,
        ),
        ae = new rc(
          $ ? $.seq2Range.endExclusive + 1 : 0,
          Le ? Le.seq2Range.start - 1 : y.length,
        );
      ge.seq1Range.isEmpty
        ? (x[F] = Kbe(ge, b, y, Ke, ae))
        : ge.seq2Range.isEmpty && (x[F] = Kbe(ge.swap(), y, b, ae, Ke).swap());
    }
    return x;
  }
  function Kbe(b, y, x, F, $) {
    let Le = 1;
    for (
      ;
      b.seq1Range.start - Le >= F.start &&
      b.seq2Range.start - Le >= $.start &&
      x.isStronglyEqual(
        b.seq2Range.start - Le,
        b.seq2Range.endExclusive - Le,
      ) &&
      Le < 100;
    )
      Le++;
    Le--;
    let Ke = 0;
    for (
      ;
      b.seq1Range.start + Ke < F.endExclusive &&
      b.seq2Range.endExclusive + Ke < $.endExclusive &&
      x.isStronglyEqual(
        b.seq2Range.start + Ke,
        b.seq2Range.endExclusive + Ke,
      ) &&
      Ke < 100;
    )
      Ke++;
    if (Le === 0 && Ke === 0) return b;
    let ae = 0,
      bt = -1;
    for (let et = -Le; et <= Ke; et++) {
      const Ye = b.seq2Range.start + et,
        Pn = b.seq2Range.endExclusive + et,
        Hn = b.seq1Range.start + et,
        cr =
          y.getBoundaryScore(Hn) +
          x.getBoundaryScore(Ye) +
          x.getBoundaryScore(Pn);
      cr > bt && ((bt = cr), (ae = et));
    }
    return b.delta(ae);
  }
  function Q5e(b, y, x) {
    const F = [];
    for (const $ of x) {
      const ge = F[F.length - 1];
      if (!ge) {
        F.push($);
        continue;
      }
      $.seq1Range.start - ge.seq1Range.endExclusive <= 2 ||
      $.seq2Range.start - ge.seq2Range.endExclusive <= 2
        ? (F[F.length - 1] = new sf(
            ge.seq1Range.join($.seq1Range),
            ge.seq2Range.join($.seq2Range),
          ))
        : F.push($);
    }
    return F;
  }
  function Xbe(b, y, x, F, $ = !1) {
    const ge = sf.invert(x, b.length),
      Le = [];
    let Ke = new JA(0, 0);
    function ae(et, Ye) {
      if (et.offset1 < Ke.offset1 || et.offset2 < Ke.offset2) return;
      const Pn = F(b, et.offset1),
        Hn = F(y, et.offset2);
      if (!Pn || !Hn) return;
      let cr = new sf(Pn, Hn);
      const Gn = cr.intersect(Ye);
      let ki = Gn.seq1Range.length,
        bo = Gn.seq2Range.length;
      for (; ge.length > 0; ) {
        const Vn = ge[0];
        if (
          !(
            Vn.seq1Range.intersects(cr.seq1Range) ||
            Vn.seq2Range.intersects(cr.seq2Range)
          )
        )
          break;
        const ga = F(b, Vn.seq1Range.start),
          ho = F(y, Vn.seq2Range.start),
          gl = new sf(ga, ho),
          jn = gl.intersect(Vn);
        if (
          ((ki += jn.seq1Range.length),
          (bo += jn.seq2Range.length),
          (cr = cr.join(gl)),
          cr.seq1Range.endExclusive >= Vn.seq1Range.endExclusive)
        )
          ge.shift();
        else break;
      }
      ((($ && ki + bo < cr.seq1Range.length + cr.seq2Range.length) ||
        ki + bo < ((cr.seq1Range.length + cr.seq2Range.length) * 2) / 3) &&
        Le.push(cr),
        (Ke = cr.getEndExclusives()));
    }
    for (; ge.length > 0; ) {
      const et = ge.shift();
      et.seq1Range.isEmpty ||
        (ae(et.getStarts(), et), ae(et.getEndExclusives().delta(-1), et));
    }
    return Z5e(x, Le);
  }
  function Z5e(b, y) {
    const x = [];
    for (; b.length > 0 || y.length > 0; ) {
      const F = b[0],
        $ = y[0];
      let ge;
      (F && (!$ || F.seq1Range.start < $.seq1Range.start)
        ? (ge = b.shift())
        : (ge = y.shift()),
        x.length > 0 &&
        x[x.length - 1].seq1Range.endExclusive >= ge.seq1Range.start
          ? (x[x.length - 1] = x[x.length - 1].join(ge))
          : x.push(ge));
    }
    return x;
  }
  function eBe(b, y, x) {
    let F = x;
    if (F.length === 0) return F;
    let $ = 0,
      ge;
    do {
      ge = !1;
      const Le = [F[0]];
      for (let Ke = 1; Ke < F.length; Ke++) {
        let et = function (Pn, Hn) {
          const cr = new rc(bt.seq1Range.endExclusive, ae.seq1Range.start);
          return (
            b.getText(cr).replace(/\s/g, "").length <= 4 &&
            (Pn.seq1Range.length + Pn.seq2Range.length > 5 ||
              Hn.seq1Range.length + Hn.seq2Range.length > 5)
          );
        };
        const ae = F[Ke],
          bt = Le[Le.length - 1];
        et(bt, ae)
          ? ((ge = !0), (Le[Le.length - 1] = Le[Le.length - 1].join(ae)))
          : Le.push(ae);
      }
      F = Le;
    } while ($++ < 10 && ge);
    return F;
  }
  function tBe(b, y, x) {
    let F = x;
    if (F.length === 0) return F;
    let $ = 0,
      ge;
    do {
      ge = !1;
      const Ke = [F[0]];
      for (let ae = 1; ae < F.length; ae++) {
        let Ye = function (Hn, cr) {
          const Gn = new rc(et.seq1Range.endExclusive, bt.seq1Range.start);
          if (b.countLinesIn(Gn) > 5 || Gn.length > 500) return !1;
          const bo = b.getText(Gn).trim();
          if (bo.length > 20 || bo.split(/\r\n|\r|\n/).length > 1) return !1;
          const Vn = b.countLinesIn(Hn.seq1Range),
            hn = Hn.seq1Range.length,
            ga = y.countLinesIn(Hn.seq2Range),
            ho = Hn.seq2Range.length,
            gl = b.countLinesIn(cr.seq1Range),
            jn = cr.seq1Range.length,
            Bi = y.countLinesIn(cr.seq2Range),
            Io = cr.seq2Range.length,
            Un = 130;
          function ul(hi) {
            return Math.min(hi, Un);
          }
          return (
            Math.pow(
              Math.pow(ul(Vn * 40 + hn), 1.5) + Math.pow(ul(ga * 40 + ho), 1.5),
              1.5,
            ) +
              Math.pow(
                Math.pow(ul(gl * 40 + jn), 1.5) +
                  Math.pow(ul(Bi * 40 + Io), 1.5),
                1.5,
              ) >
            (Un ** 1.5) ** 1.5 * 1.3
          );
        };
        const bt = F[ae],
          et = Ke[Ke.length - 1];
        Ye(et, bt)
          ? ((ge = !0), (Ke[Ke.length - 1] = Ke[Ke.length - 1].join(bt)))
          : Ke.push(bt);
      }
      F = Ke;
    } while ($++ < 10 && ge);
    const Le = [];
    return (
      x5e(F, (Ke, ae, bt) => {
        let et = ae;
        function Ye(bo) {
          return (
            bo.length > 0 &&
            bo.trim().length <= 3 &&
            ae.seq1Range.length + ae.seq2Range.length > 100
          );
        }
        const Pn = b.extendToFullLines(ae.seq1Range),
          Hn = b.getText(new rc(Pn.start, ae.seq1Range.start));
        Ye(Hn) && (et = et.deltaStart(-Hn.length));
        const cr = b.getText(
          new rc(ae.seq1Range.endExclusive, Pn.endExclusive),
        );
        Ye(cr) && (et = et.deltaEnd(cr.length));
        const Gn = sf.fromOffsetPairs(
            Ke ? Ke.getEndExclusives() : JA.zero,
            bt ? bt.getStarts() : JA.max,
          ),
          ki = et.intersect(Gn);
        Le.length > 0 &&
        ki.getStarts().equals(Le[Le.length - 1].getEndExclusives())
          ? (Le[Le.length - 1] = Le[Le.length - 1].join(ki))
          : Le.push(ki);
      }),
      Le
    );
  }
  class Ybe {
    constructor(y, x) {
      ((this.trimmedHash = y), (this.lines = x));
    }
    getElement(y) {
      return this.trimmedHash[y];
    }
    get length() {
      return this.trimmedHash.length;
    }
    getBoundaryScore(y) {
      const x = y === 0 ? 0 : $be(this.lines[y - 1]),
        F = y === this.lines.length ? 0 : $be(this.lines[y]);
      return 1e3 - (x + F);
    }
    getText(y) {
      return this.lines.slice(y.start, y.endExclusive).join(`
`);
    }
    isStronglyEqual(y, x) {
      return this.lines[y] === this.lines[x];
    }
  }
  function $be(b) {
    let y = 0;
    for (; y < b.length && (b.charCodeAt(y) === 32 || b.charCodeAt(y) === 9); )
      y++;
    return y;
  }
  class nBe {
    constructor() {
      ((this.dynamicProgrammingDiffing = new G5e()),
        (this.myersDiffingAlgorithm = new Bbe()));
    }
    computeDiff(y, x, F) {
      if (y.length <= 1 && E5e(y, x, (jn, Bi) => jn === Bi))
        return new IB([], [], !1);
      if (
        (y.length === 1 && y[0].length === 0) ||
        (x.length === 1 && x[0].length === 0)
      )
        return new IB(
          [
            new HA(new Vc(1, y.length + 1), new Vc(1, x.length + 1), [
              new AT(
                new ss(1, 1, y.length, y[y.length - 1].length + 1),
                new ss(1, 1, x.length, x[x.length - 1].length + 1),
              ),
            ]),
          ],
          [],
          !1,
        );
      const $ =
          F.maxComputationTimeMs === 0
            ? L8.instance
            : new B5e(F.maxComputationTimeMs),
        ge = !F.ignoreTrimWhitespace,
        Le = new Map();
      function Ke(jn) {
        let Bi = Le.get(jn);
        return (Bi === void 0 && ((Bi = Le.size), Le.set(jn, Bi)), Bi);
      }
      const ae = y.map((jn) => Ke(jn.trim())),
        bt = x.map((jn) => Ke(jn.trim())),
        et = new Ybe(ae, y),
        Ye = new Ybe(bt, x),
        Pn =
          et.length + Ye.length < 1700
            ? this.dynamicProgrammingDiffing.compute(et, Ye, $, (jn, Bi) =>
                y[jn] === x[Bi]
                  ? x[Bi].length === 0
                    ? 0.1
                    : 1 + Math.log(1 + x[Bi].length)
                  : 0.99,
              )
            : this.myersDiffingAlgorithm.compute(et, Ye, $);
      let Hn = Pn.diffs,
        cr = Pn.hitTimeout;
      ((Hn = qbe(et, Ye, Hn)), (Hn = eBe(et, Ye, Hn)));
      const Gn = [],
        ki = (jn) => {
          if (ge)
            for (let Bi = 0; Bi < jn; Bi++) {
              const Io = bo + Bi,
                Un = Vn + Bi;
              if (y[Io] !== x[Un]) {
                const ul = this.refineDiff(
                  y,
                  x,
                  new sf(new rc(Io, Io + 1), new rc(Un, Un + 1)),
                  $,
                  ge,
                  F,
                );
                for (const hi of ul.mappings) Gn.push(hi);
                ul.hitTimeout && (cr = !0);
              }
            }
        };
      let bo = 0,
        Vn = 0;
      for (const jn of Hn) {
        fB(() => jn.seq1Range.start - bo === jn.seq2Range.start - Vn);
        const Bi = jn.seq1Range.start - bo;
        (ki(Bi),
          (bo = jn.seq1Range.endExclusive),
          (Vn = jn.seq2Range.endExclusive));
        const Io = this.refineDiff(y, x, jn, $, ge, F);
        Io.hitTimeout && (cr = !0);
        for (const Un of Io.mappings) Gn.push(Un);
      }
      ki(y.length - bo);
      const hn = new RB(y),
        ga = new RB(x),
        ho = Obe(Gn, hn, ga);
      let gl = [];
      return (
        F.computeMoves && (gl = this.computeMoves(ho, y, x, ae, bt, $, ge, F)),
        fB(() => {
          function jn(Io, Un) {
            if (Io.lineNumber < 1 || Io.lineNumber > Un.length) return !1;
            const ul = Un[Io.lineNumber - 1];
            return !(Io.column < 1 || Io.column > ul.length + 1);
          }
          function Bi(Io, Un) {
            return !(
              Io.startLineNumber < 1 ||
              Io.startLineNumber > Un.length + 1 ||
              Io.endLineNumberExclusive < 1 ||
              Io.endLineNumberExclusive > Un.length + 1
            );
          }
          for (const Io of ho) {
            if (!Io.innerChanges) return !1;
            for (const Un of Io.innerChanges)
              if (
                !(
                  jn(Un.modifiedRange.getStartPosition(), x) &&
                  jn(Un.modifiedRange.getEndPosition(), x) &&
                  jn(Un.originalRange.getStartPosition(), y) &&
                  jn(Un.originalRange.getEndPosition(), y)
                )
              )
                return !1;
            if (!Bi(Io.modified, x) || !Bi(Io.original, y)) return !1;
          }
          return !0;
        }),
        new IB(ho, gl, cr)
      );
    }
    computeMoves(y, x, F, $, ge, Le, Ke, ae) {
      return H5e(y, x, F, $, ge, Le).map((Ye) => {
        const Pn = this.refineDiff(
            x,
            F,
            new sf(Ye.original.toOffsetRange(), Ye.modified.toOffsetRange()),
            Le,
            Ke,
            ae,
          ),
          Hn = Obe(Pn.mappings, new RB(x), new RB(F), !0);
        return new S5e(Ye, Hn);
      });
    }
    refineDiff(y, x, F, $, ge, Le) {
      const ae = rBe(F).toRangeMapping2(y, x),
        bt = new CB(y, ae.originalRange, ge),
        et = new CB(x, ae.modifiedRange, ge),
        Ye =
          bt.length + et.length < 500
            ? this.dynamicProgrammingDiffing.compute(bt, et, $)
            : this.myersDiffingAlgorithm.compute(bt, et, $);
      let Pn = Ye.diffs;
      return (
        (Pn = qbe(bt, et, Pn)),
        (Pn = Xbe(bt, et, Pn, (cr, Gn) => cr.findWordContaining(Gn))),
        Le.extendToSubwords &&
          (Pn = Xbe(bt, et, Pn, (cr, Gn) => cr.findSubWordContaining(Gn), !0)),
        (Pn = Q5e(bt, et, Pn)),
        (Pn = tBe(bt, et, Pn)),
        {
          mappings: Pn.map(
            (cr) =>
              new AT(
                bt.translateRange(cr.seq1Range),
                et.translateRange(cr.seq2Range),
              ),
          ),
          hitTimeout: Ye.hitTimeout,
        }
      );
    }
  }
  function rBe(b) {
    return new ET(
      new Vc(b.seq1Range.start + 1, b.seq1Range.endExclusive + 1),
      new Vc(b.seq2Range.start + 1, b.seq2Range.endExclusive + 1),
    );
  }
  const Qbe = { getLegacy: () => new O5e(), getDefault: () => new nBe() };
  function SR(b, y) {
    const x = Math.pow(10, y);
    return Math.round(b * x) / x;
  }
  class Er {
    constructor(y, x, F, $ = 1) {
      ((this._rgbaBrand = void 0),
        (this.r = Math.min(255, Math.max(0, y)) | 0),
        (this.g = Math.min(255, Math.max(0, x)) | 0),
        (this.b = Math.min(255, Math.max(0, F)) | 0),
        (this.a = SR(Math.max(Math.min(1, $), 0), 3)));
    }
    static equals(y, x) {
      return y.r === x.r && y.g === x.g && y.b === x.b && y.a === x.a;
    }
  }
  class IT {
    constructor(y, x, F, $) {
      ((this._hslaBrand = void 0),
        (this.h = Math.max(Math.min(360, y), 0) | 0),
        (this.s = SR(Math.max(Math.min(1, x), 0), 3)),
        (this.l = SR(Math.max(Math.min(1, F), 0), 3)),
        (this.a = SR(Math.max(Math.min(1, $), 0), 3)));
    }
    static equals(y, x) {
      return y.h === x.h && y.s === x.s && y.l === x.l && y.a === x.a;
    }
    static fromRGBA(y) {
      const x = y.r / 255,
        F = y.g / 255,
        $ = y.b / 255,
        ge = y.a,
        Le = Math.max(x, F, $),
        Ke = Math.min(x, F, $);
      let ae = 0,
        bt = 0;
      const et = (Ke + Le) / 2,
        Ye = Le - Ke;
      if (Ye > 0) {
        switch (
          ((bt = Math.min(et <= 0.5 ? Ye / (2 * et) : Ye / (2 - 2 * et), 1)),
          Le)
        ) {
          case x:
            ae = (F - $) / Ye + (F < $ ? 6 : 0);
            break;
          case F:
            ae = ($ - x) / Ye + 2;
            break;
          case $:
            ae = (x - F) / Ye + 4;
            break;
        }
        ((ae *= 60), (ae = Math.round(ae)));
      }
      return new IT(ae, bt, et, ge);
    }
    static _hue2rgb(y, x, F) {
      return (
        F < 0 && (F += 1),
        F > 1 && (F -= 1),
        F < 1 / 6
          ? y + (x - y) * 6 * F
          : F < 1 / 2
            ? x
            : F < 2 / 3
              ? y + (x - y) * (2 / 3 - F) * 6
              : y
      );
    }
    static toRGBA(y) {
      const x = y.h / 360,
        { s: F, l: $, a: ge } = y;
      let Le, Ke, ae;
      if (F === 0) Le = Ke = ae = $;
      else {
        const bt = $ < 0.5 ? $ * (1 + F) : $ + F - $ * F,
          et = 2 * $ - bt;
        ((Le = IT._hue2rgb(et, bt, x + 1 / 3)),
          (Ke = IT._hue2rgb(et, bt, x)),
          (ae = IT._hue2rgb(et, bt, x - 1 / 3)));
      }
      return new Er(
        Math.round(Le * 255),
        Math.round(Ke * 255),
        Math.round(ae * 255),
        ge,
      );
    }
  }
  class a2 {
    constructor(y, x, F, $) {
      ((this._hsvaBrand = void 0),
        (this.h = Math.max(Math.min(360, y), 0) | 0),
        (this.s = SR(Math.max(Math.min(1, x), 0), 3)),
        (this.v = SR(Math.max(Math.min(1, F), 0), 3)),
        (this.a = SR(Math.max(Math.min(1, $), 0), 3)));
    }
    static equals(y, x) {
      return y.h === x.h && y.s === x.s && y.v === x.v && y.a === x.a;
    }
    static fromRGBA(y) {
      const x = y.r / 255,
        F = y.g / 255,
        $ = y.b / 255,
        ge = Math.max(x, F, $),
        Le = Math.min(x, F, $),
        Ke = ge - Le,
        ae = ge === 0 ? 0 : Ke / ge;
      let bt;
      return (
        Ke === 0
          ? (bt = 0)
          : ge === x
            ? (bt = ((((F - $) / Ke) % 6) + 6) % 6)
            : ge === F
              ? (bt = ($ - x) / Ke + 2)
              : (bt = (x - F) / Ke + 4),
        new a2(Math.round(bt * 60), ae, ge, y.a)
      );
    }
    static toRGBA(y) {
      const { h: x, s: F, v: $, a: ge } = y,
        Le = $ * F,
        Ke = Le * (1 - Math.abs(((x / 60) % 2) - 1)),
        ae = $ - Le;
      let [bt, et, Ye] = [0, 0, 0];
      return (
        x < 60
          ? ((bt = Le), (et = Ke))
          : x < 120
            ? ((bt = Ke), (et = Le))
            : x < 180
              ? ((et = Le), (Ye = Ke))
              : x < 240
                ? ((et = Ke), (Ye = Le))
                : x < 300
                  ? ((bt = Ke), (Ye = Le))
                  : x <= 360 && ((bt = Le), (Ye = Ke)),
        (bt = Math.round((bt + ae) * 255)),
        (et = Math.round((et + ae) * 255)),
        (Ye = Math.round((Ye + ae) * 255)),
        new Er(bt, et, Ye, ge)
      );
    }
  }
  const Zd = class Zd {
    static fromHex(y) {
      return Zd.Format.CSS.parseHex(y) || Zd.red;
    }
    static equals(y, x) {
      return !y && !x ? !0 : !y || !x ? !1 : y.equals(x);
    }
    get hsla() {
      return this._hsla ? this._hsla : IT.fromRGBA(this.rgba);
    }
    get hsva() {
      return this._hsva ? this._hsva : a2.fromRGBA(this.rgba);
    }
    constructor(y) {
      if (y)
        if (y instanceof Er) this.rgba = y;
        else if (y instanceof IT)
          ((this._hsla = y), (this.rgba = IT.toRGBA(y)));
        else if (y instanceof a2)
          ((this._hsva = y), (this.rgba = a2.toRGBA(y)));
        else throw new Error("Invalid color ctor argument");
      else throw new Error("Color needs a value");
    }
    equals(y) {
      return (
        !!y &&
        Er.equals(this.rgba, y.rgba) &&
        IT.equals(this.hsla, y.hsla) &&
        a2.equals(this.hsva, y.hsva)
      );
    }
    getRelativeLuminance() {
      const y = Zd._relativeLuminanceForComponent(this.rgba.r),
        x = Zd._relativeLuminanceForComponent(this.rgba.g),
        F = Zd._relativeLuminanceForComponent(this.rgba.b),
        $ = 0.2126 * y + 0.7152 * x + 0.0722 * F;
      return SR($, 4);
    }
    static _relativeLuminanceForComponent(y) {
      const x = y / 255;
      return x <= 0.03928 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
    }
    isLighter() {
      return (
        (this.rgba.r * 299 + this.rgba.g * 587 + this.rgba.b * 114) / 1e3 >= 128
      );
    }
    isLighterThan(y) {
      const x = this.getRelativeLuminance(),
        F = y.getRelativeLuminance();
      return x > F;
    }
    isDarkerThan(y) {
      const x = this.getRelativeLuminance(),
        F = y.getRelativeLuminance();
      return x < F;
    }
    lighten(y) {
      return new Zd(
        new IT(
          this.hsla.h,
          this.hsla.s,
          this.hsla.l + this.hsla.l * y,
          this.hsla.a,
        ),
      );
    }
    darken(y) {
      return new Zd(
        new IT(
          this.hsla.h,
          this.hsla.s,
          this.hsla.l - this.hsla.l * y,
          this.hsla.a,
        ),
      );
    }
    transparent(y) {
      const { r: x, g: F, b: $, a: ge } = this.rgba;
      return new Zd(new Er(x, F, $, ge * y));
    }
    isTransparent() {
      return this.rgba.a === 0;
    }
    isOpaque() {
      return this.rgba.a === 1;
    }
    opposite() {
      return new Zd(
        new Er(
          255 - this.rgba.r,
          255 - this.rgba.g,
          255 - this.rgba.b,
          this.rgba.a,
        ),
      );
    }
    mix(y, x = 0.5) {
      const F = Math.min(Math.max(x, 0), 1),
        $ = this.rgba,
        ge = y.rgba,
        Le = $.r + (ge.r - $.r) * F,
        Ke = $.g + (ge.g - $.g) * F,
        ae = $.b + (ge.b - $.b) * F,
        bt = $.a + (ge.a - $.a) * F;
      return new Zd(new Er(Le, Ke, ae, bt));
    }
    makeOpaque(y) {
      if (this.isOpaque() || y.rgba.a !== 1) return this;
      const { r: x, g: F, b: $, a: ge } = this.rgba;
      return new Zd(
        new Er(
          y.rgba.r - ge * (y.rgba.r - x),
          y.rgba.g - ge * (y.rgba.g - F),
          y.rgba.b - ge * (y.rgba.b - $),
          1,
        ),
      );
    }
    toString() {
      return (
        this._toString || (this._toString = Zd.Format.CSS.format(this)),
        this._toString
      );
    }
    toNumber32Bit() {
      return (
        this._toNumber32Bit ||
          (this._toNumber32Bit =
            ((this.rgba.r << 24) |
              (this.rgba.g << 16) |
              (this.rgba.b << 8) |
              ((this.rgba.a * 255) << 0)) >>>
            0),
        this._toNumber32Bit
      );
    }
    static getLighterColor(y, x, F) {
      if (y.isLighterThan(x)) return y;
      F = F || 0.5;
      const $ = y.getRelativeLuminance(),
        ge = x.getRelativeLuminance();
      return ((F = (F * (ge - $)) / ge), y.lighten(F));
    }
    static getDarkerColor(y, x, F) {
      if (y.isDarkerThan(x)) return y;
      F = F || 0.5;
      const $ = y.getRelativeLuminance(),
        ge = x.getRelativeLuminance();
      return ((F = (F * ($ - ge)) / $), y.darken(F));
    }
  };
  ((Zd.white = new Zd(new Er(255, 255, 255, 1))),
    (Zd.black = new Zd(new Er(0, 0, 0, 1))),
    (Zd.red = new Zd(new Er(255, 0, 0, 1))),
    (Zd.blue = new Zd(new Er(0, 0, 255, 1))),
    (Zd.green = new Zd(new Er(0, 255, 0, 1))),
    (Zd.cyan = new Zd(new Er(0, 255, 255, 1))),
    (Zd.lightgrey = new Zd(new Er(211, 211, 211, 1))),
    (Zd.transparent = new Zd(new Er(0, 0, 0, 0))));
  let s2 = Zd;
  (function (b) {
    (function (y) {
      (function (x) {
        function F(Gn) {
          return Gn.rgba.a === 1
            ? `rgb(${Gn.rgba.r}, ${Gn.rgba.g}, ${Gn.rgba.b})`
            : b.Format.CSS.formatRGBA(Gn);
        }
        x.formatRGB = F;
        function $(Gn) {
          return `rgba(${Gn.rgba.r}, ${Gn.rgba.g}, ${Gn.rgba.b}, ${+Gn.rgba.a.toFixed(2)})`;
        }
        x.formatRGBA = $;
        function ge(Gn) {
          return Gn.hsla.a === 1
            ? `hsl(${Gn.hsla.h}, ${Math.round(Gn.hsla.s * 100)}%, ${Math.round(Gn.hsla.l * 100)}%)`
            : b.Format.CSS.formatHSLA(Gn);
        }
        x.formatHSL = ge;
        function Le(Gn) {
          return `hsla(${Gn.hsla.h}, ${Math.round(Gn.hsla.s * 100)}%, ${Math.round(Gn.hsla.l * 100)}%, ${Gn.hsla.a.toFixed(2)})`;
        }
        x.formatHSLA = Le;
        function Ke(Gn) {
          const ki = Gn.toString(16);
          return ki.length !== 2 ? "0" + ki : ki;
        }
        function ae(Gn) {
          return `#${Ke(Gn.rgba.r)}${Ke(Gn.rgba.g)}${Ke(Gn.rgba.b)}`;
        }
        x.formatHex = ae;
        function bt(Gn, ki = !1) {
          return ki && Gn.rgba.a === 1
            ? b.Format.CSS.formatHex(Gn)
            : `#${Ke(Gn.rgba.r)}${Ke(Gn.rgba.g)}${Ke(Gn.rgba.b)}${Ke(Math.round(Gn.rgba.a * 255))}`;
        }
        x.formatHexA = bt;
        function et(Gn) {
          return Gn.isOpaque()
            ? b.Format.CSS.formatHex(Gn)
            : b.Format.CSS.formatRGBA(Gn);
        }
        x.format = et;
        function Ye(Gn) {
          if (Gn === "transparent") return b.transparent;
          if (Gn.startsWith("#")) return Hn(Gn);
          if (Gn.startsWith("rgba(")) {
            const ki = Gn.match(
              /rgba\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+), *(?<a>(?:\+|-)?\d+(\.\d+)?)\)/,
            );
            if (!ki) throw new Error("Invalid color format " + Gn);
            const bo = parseInt(ki.groups?.r ?? "0"),
              Vn = parseInt(ki.groups?.g ?? "0"),
              hn = parseInt(ki.groups?.b ?? "0"),
              ga = parseFloat(ki.groups?.a ?? "0");
            return new b(new Er(bo, Vn, hn, ga));
          }
          if (Gn.startsWith("rgb(")) {
            const ki = Gn.match(
              /rgb\((?<r>(?:\+|-)?\d+), *(?<g>(?:\+|-)?\d+), *(?<b>(?:\+|-)?\d+)\)/,
            );
            if (!ki) throw new Error("Invalid color format " + Gn);
            const bo = parseInt(ki.groups?.r ?? "0"),
              Vn = parseInt(ki.groups?.g ?? "0"),
              hn = parseInt(ki.groups?.b ?? "0");
            return new b(new Er(bo, Vn, hn));
          }
          return Pn(Gn);
        }
        x.parse = Ye;
        function Pn(Gn) {
          switch (Gn) {
            case "aliceblue":
              return new b(new Er(240, 248, 255, 1));
            case "antiquewhite":
              return new b(new Er(250, 235, 215, 1));
            case "aqua":
              return new b(new Er(0, 255, 255, 1));
            case "aquamarine":
              return new b(new Er(127, 255, 212, 1));
            case "azure":
              return new b(new Er(240, 255, 255, 1));
            case "beige":
              return new b(new Er(245, 245, 220, 1));
            case "bisque":
              return new b(new Er(255, 228, 196, 1));
            case "black":
              return new b(new Er(0, 0, 0, 1));
            case "blanchedalmond":
              return new b(new Er(255, 235, 205, 1));
            case "blue":
              return new b(new Er(0, 0, 255, 1));
            case "blueviolet":
              return new b(new Er(138, 43, 226, 1));
            case "brown":
              return new b(new Er(165, 42, 42, 1));
            case "burlywood":
              return new b(new Er(222, 184, 135, 1));
            case "cadetblue":
              return new b(new Er(95, 158, 160, 1));
            case "chartreuse":
              return new b(new Er(127, 255, 0, 1));
            case "chocolate":
              return new b(new Er(210, 105, 30, 1));
            case "coral":
              return new b(new Er(255, 127, 80, 1));
            case "cornflowerblue":
              return new b(new Er(100, 149, 237, 1));
            case "cornsilk":
              return new b(new Er(255, 248, 220, 1));
            case "crimson":
              return new b(new Er(220, 20, 60, 1));
            case "cyan":
              return new b(new Er(0, 255, 255, 1));
            case "darkblue":
              return new b(new Er(0, 0, 139, 1));
            case "darkcyan":
              return new b(new Er(0, 139, 139, 1));
            case "darkgoldenrod":
              return new b(new Er(184, 134, 11, 1));
            case "darkgray":
              return new b(new Er(169, 169, 169, 1));
            case "darkgreen":
              return new b(new Er(0, 100, 0, 1));
            case "darkgrey":
              return new b(new Er(169, 169, 169, 1));
            case "darkkhaki":
              return new b(new Er(189, 183, 107, 1));
            case "darkmagenta":
              return new b(new Er(139, 0, 139, 1));
            case "darkolivegreen":
              return new b(new Er(85, 107, 47, 1));
            case "darkorange":
              return new b(new Er(255, 140, 0, 1));
            case "darkorchid":
              return new b(new Er(153, 50, 204, 1));
            case "darkred":
              return new b(new Er(139, 0, 0, 1));
            case "darksalmon":
              return new b(new Er(233, 150, 122, 1));
            case "darkseagreen":
              return new b(new Er(143, 188, 143, 1));
            case "darkslateblue":
              return new b(new Er(72, 61, 139, 1));
            case "darkslategray":
              return new b(new Er(47, 79, 79, 1));
            case "darkslategrey":
              return new b(new Er(47, 79, 79, 1));
            case "darkturquoise":
              return new b(new Er(0, 206, 209, 1));
            case "darkviolet":
              return new b(new Er(148, 0, 211, 1));
            case "deeppink":
              return new b(new Er(255, 20, 147, 1));
            case "deepskyblue":
              return new b(new Er(0, 191, 255, 1));
            case "dimgray":
              return new b(new Er(105, 105, 105, 1));
            case "dimgrey":
              return new b(new Er(105, 105, 105, 1));
            case "dodgerblue":
              return new b(new Er(30, 144, 255, 1));
            case "firebrick":
              return new b(new Er(178, 34, 34, 1));
            case "floralwhite":
              return new b(new Er(255, 250, 240, 1));
            case "forestgreen":
              return new b(new Er(34, 139, 34, 1));
            case "fuchsia":
              return new b(new Er(255, 0, 255, 1));
            case "gainsboro":
              return new b(new Er(220, 220, 220, 1));
            case "ghostwhite":
              return new b(new Er(248, 248, 255, 1));
            case "gold":
              return new b(new Er(255, 215, 0, 1));
            case "goldenrod":
              return new b(new Er(218, 165, 32, 1));
            case "gray":
              return new b(new Er(128, 128, 128, 1));
            case "green":
              return new b(new Er(0, 128, 0, 1));
            case "greenyellow":
              return new b(new Er(173, 255, 47, 1));
            case "grey":
              return new b(new Er(128, 128, 128, 1));
            case "honeydew":
              return new b(new Er(240, 255, 240, 1));
            case "hotpink":
              return new b(new Er(255, 105, 180, 1));
            case "indianred":
              return new b(new Er(205, 92, 92, 1));
            case "indigo":
              return new b(new Er(75, 0, 130, 1));
            case "ivory":
              return new b(new Er(255, 255, 240, 1));
            case "khaki":
              return new b(new Er(240, 230, 140, 1));
            case "lavender":
              return new b(new Er(230, 230, 250, 1));
            case "lavenderblush":
              return new b(new Er(255, 240, 245, 1));
            case "lawngreen":
              return new b(new Er(124, 252, 0, 1));
            case "lemonchiffon":
              return new b(new Er(255, 250, 205, 1));
            case "lightblue":
              return new b(new Er(173, 216, 230, 1));
            case "lightcoral":
              return new b(new Er(240, 128, 128, 1));
            case "lightcyan":
              return new b(new Er(224, 255, 255, 1));
            case "lightgoldenrodyellow":
              return new b(new Er(250, 250, 210, 1));
            case "lightgray":
              return new b(new Er(211, 211, 211, 1));
            case "lightgreen":
              return new b(new Er(144, 238, 144, 1));
            case "lightgrey":
              return new b(new Er(211, 211, 211, 1));
            case "lightpink":
              return new b(new Er(255, 182, 193, 1));
            case "lightsalmon":
              return new b(new Er(255, 160, 122, 1));
            case "lightseagreen":
              return new b(new Er(32, 178, 170, 1));
            case "lightskyblue":
              return new b(new Er(135, 206, 250, 1));
            case "lightslategray":
              return new b(new Er(119, 136, 153, 1));
            case "lightslategrey":
              return new b(new Er(119, 136, 153, 1));
            case "lightsteelblue":
              return new b(new Er(176, 196, 222, 1));
            case "lightyellow":
              return new b(new Er(255, 255, 224, 1));
            case "lime":
              return new b(new Er(0, 255, 0, 1));
            case "limegreen":
              return new b(new Er(50, 205, 50, 1));
            case "linen":
              return new b(new Er(250, 240, 230, 1));
            case "magenta":
              return new b(new Er(255, 0, 255, 1));
            case "maroon":
              return new b(new Er(128, 0, 0, 1));
            case "mediumaquamarine":
              return new b(new Er(102, 205, 170, 1));
            case "mediumblue":
              return new b(new Er(0, 0, 205, 1));
            case "mediumorchid":
              return new b(new Er(186, 85, 211, 1));
            case "mediumpurple":
              return new b(new Er(147, 112, 219, 1));
            case "mediumseagreen":
              return new b(new Er(60, 179, 113, 1));
            case "mediumslateblue":
              return new b(new Er(123, 104, 238, 1));
            case "mediumspringgreen":
              return new b(new Er(0, 250, 154, 1));
            case "mediumturquoise":
              return new b(new Er(72, 209, 204, 1));
            case "mediumvioletred":
              return new b(new Er(199, 21, 133, 1));
            case "midnightblue":
              return new b(new Er(25, 25, 112, 1));
            case "mintcream":
              return new b(new Er(245, 255, 250, 1));
            case "mistyrose":
              return new b(new Er(255, 228, 225, 1));
            case "moccasin":
              return new b(new Er(255, 228, 181, 1));
            case "navajowhite":
              return new b(new Er(255, 222, 173, 1));
            case "navy":
              return new b(new Er(0, 0, 128, 1));
            case "oldlace":
              return new b(new Er(253, 245, 230, 1));
            case "olive":
              return new b(new Er(128, 128, 0, 1));
            case "olivedrab":
              return new b(new Er(107, 142, 35, 1));
            case "orange":
              return new b(new Er(255, 165, 0, 1));
            case "orangered":
              return new b(new Er(255, 69, 0, 1));
            case "orchid":
              return new b(new Er(218, 112, 214, 1));
            case "palegoldenrod":
              return new b(new Er(238, 232, 170, 1));
            case "palegreen":
              return new b(new Er(152, 251, 152, 1));
            case "paleturquoise":
              return new b(new Er(175, 238, 238, 1));
            case "palevioletred":
              return new b(new Er(219, 112, 147, 1));
            case "papayawhip":
              return new b(new Er(255, 239, 213, 1));
            case "peachpuff":
              return new b(new Er(255, 218, 185, 1));
            case "peru":
              return new b(new Er(205, 133, 63, 1));
            case "pink":
              return new b(new Er(255, 192, 203, 1));
            case "plum":
              return new b(new Er(221, 160, 221, 1));
            case "powderblue":
              return new b(new Er(176, 224, 230, 1));
            case "purple":
              return new b(new Er(128, 0, 128, 1));
            case "rebeccapurple":
              return new b(new Er(102, 51, 153, 1));
            case "red":
              return new b(new Er(255, 0, 0, 1));
            case "rosybrown":
              return new b(new Er(188, 143, 143, 1));
            case "royalblue":
              return new b(new Er(65, 105, 225, 1));
            case "saddlebrown":
              return new b(new Er(139, 69, 19, 1));
            case "salmon":
              return new b(new Er(250, 128, 114, 1));
            case "sandybrown":
              return new b(new Er(244, 164, 96, 1));
            case "seagreen":
              return new b(new Er(46, 139, 87, 1));
            case "seashell":
              return new b(new Er(255, 245, 238, 1));
            case "sienna":
              return new b(new Er(160, 82, 45, 1));
            case "silver":
              return new b(new Er(192, 192, 192, 1));
            case "skyblue":
              return new b(new Er(135, 206, 235, 1));
            case "slateblue":
              return new b(new Er(106, 90, 205, 1));
            case "slategray":
              return new b(new Er(112, 128, 144, 1));
            case "slategrey":
              return new b(new Er(112, 128, 144, 1));
            case "snow":
              return new b(new Er(255, 250, 250, 1));
            case "springgreen":
              return new b(new Er(0, 255, 127, 1));
            case "steelblue":
              return new b(new Er(70, 130, 180, 1));
            case "tan":
              return new b(new Er(210, 180, 140, 1));
            case "teal":
              return new b(new Er(0, 128, 128, 1));
            case "thistle":
              return new b(new Er(216, 191, 216, 1));
            case "tomato":
              return new b(new Er(255, 99, 71, 1));
            case "turquoise":
              return new b(new Er(64, 224, 208, 1));
            case "violet":
              return new b(new Er(238, 130, 238, 1));
            case "wheat":
              return new b(new Er(245, 222, 179, 1));
            case "white":
              return new b(new Er(255, 255, 255, 1));
            case "whitesmoke":
              return new b(new Er(245, 245, 245, 1));
            case "yellow":
              return new b(new Er(255, 255, 0, 1));
            case "yellowgreen":
              return new b(new Er(154, 205, 50, 1));
            default:
              return null;
          }
        }
        function Hn(Gn) {
          const ki = Gn.length;
          if (ki === 0 || Gn.charCodeAt(0) !== 35) return null;
          if (ki === 7) {
            const bo = 16 * cr(Gn.charCodeAt(1)) + cr(Gn.charCodeAt(2)),
              Vn = 16 * cr(Gn.charCodeAt(3)) + cr(Gn.charCodeAt(4)),
              hn = 16 * cr(Gn.charCodeAt(5)) + cr(Gn.charCodeAt(6));
            return new b(new Er(bo, Vn, hn, 1));
          }
          if (ki === 9) {
            const bo = 16 * cr(Gn.charCodeAt(1)) + cr(Gn.charCodeAt(2)),
              Vn = 16 * cr(Gn.charCodeAt(3)) + cr(Gn.charCodeAt(4)),
              hn = 16 * cr(Gn.charCodeAt(5)) + cr(Gn.charCodeAt(6)),
              ga = 16 * cr(Gn.charCodeAt(7)) + cr(Gn.charCodeAt(8));
            return new b(new Er(bo, Vn, hn, ga / 255));
          }
          if (ki === 4) {
            const bo = cr(Gn.charCodeAt(1)),
              Vn = cr(Gn.charCodeAt(2)),
              hn = cr(Gn.charCodeAt(3));
            return new b(new Er(16 * bo + bo, 16 * Vn + Vn, 16 * hn + hn));
          }
          if (ki === 5) {
            const bo = cr(Gn.charCodeAt(1)),
              Vn = cr(Gn.charCodeAt(2)),
              hn = cr(Gn.charCodeAt(3)),
              ga = cr(Gn.charCodeAt(4));
            return new b(
              new Er(
                16 * bo + bo,
                16 * Vn + Vn,
                16 * hn + hn,
                (16 * ga + ga) / 255,
              ),
            );
          }
          return null;
        }
        x.parseHex = Hn;
        function cr(Gn) {
          switch (Gn) {
            case 48:
              return 0;
            case 49:
              return 1;
            case 50:
              return 2;
            case 51:
              return 3;
            case 52:
              return 4;
            case 53:
              return 5;
            case 54:
              return 6;
            case 55:
              return 7;
            case 56:
              return 8;
            case 57:
              return 9;
            case 97:
              return 10;
            case 65:
              return 10;
            case 98:
              return 11;
            case 66:
              return 11;
            case 99:
              return 12;
            case 67:
              return 12;
            case 100:
              return 13;
            case 68:
              return 13;
            case 101:
              return 14;
            case 69:
              return 14;
            case 102:
              return 15;
            case 70:
              return 15;
          }
          return 0;
        }
      })(y.CSS || (y.CSS = {}));
    })(b.Format || (b.Format = {}));
  })(s2 || (s2 = {}));
  function Zbe(b) {
    const y = [];
    for (const x of b) {
      const F = Number(x);
      (F || (F === 0 && x.replace(/\s/g, "") !== "")) && y.push(F);
    }
    return y;
  }
  function OQ(b, y, x, F) {
    return { red: b / 255, blue: x / 255, green: y / 255, alpha: F };
  }
  function k8(b, y) {
    const x = y.index,
      F = y[0].length;
    if (x === void 0) return;
    const $ = b.positionAt(x);
    return {
      startLineNumber: $.lineNumber,
      startColumn: $.column,
      endLineNumber: $.lineNumber,
      endColumn: $.column + F,
    };
  }
  function iBe(b, y) {
    if (!b) return;
    const x = s2.Format.CSS.parseHex(y);
    if (x)
      return { range: b, color: OQ(x.rgba.r, x.rgba.g, x.rgba.b, x.rgba.a) };
  }
  function eTe(b, y, x) {
    if (!b || y.length !== 1) return;
    const $ = y[0].values(),
      ge = Zbe($);
    return { range: b, color: OQ(ge[0], ge[1], ge[2], x ? ge[3] : 1) };
  }
  function tTe(b, y, x) {
    if (!b || y.length !== 1) return;
    const $ = y[0].values(),
      ge = Zbe($),
      Le = new s2(new IT(ge[0], ge[1] / 100, ge[2] / 100, x ? ge[3] : 1));
    return { range: b, color: OQ(Le.rgba.r, Le.rgba.g, Le.rgba.b, Le.rgba.a) };
  }
  function w8(b, y) {
    return typeof b == "string" ? [...b.matchAll(y)] : b.findMatches(y);
  }
  function oBe(b) {
    const y = [],
      x = new RegExp(
        `\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%]*\\))|^(#)([A-Fa-f0-9]{3})\\b|^(#)([A-Fa-f0-9]{4})\\b|^(#)([A-Fa-f0-9]{6})\\b|^(#)([A-Fa-f0-9]{8})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{3})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{4})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{6})\\b|(?<=['"\\s])(#)([A-Fa-f0-9]{8})\\b`,
        "gm",
      ),
      F = w8(b, x);
    if (F.length > 0)
      for (const $ of F) {
        const ge = $.filter((bt) => bt !== void 0),
          Le = ge[1],
          Ke = ge[2];
        if (!Ke) continue;
        let ae;
        if (Le === "rgb") {
          const bt =
            /^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;
          ae = eTe(k8(b, $), w8(Ke, bt), !1);
        } else if (Le === "rgba") {
          const bt =
            /^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;
          ae = eTe(k8(b, $), w8(Ke, bt), !0);
        } else if (Le === "hsl") {
          const bt =
            /^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;
          ae = tTe(k8(b, $), w8(Ke, bt), !1);
        } else if (Le === "hsla") {
          const bt =
            /^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm;
          ae = tTe(k8(b, $), w8(Ke, bt), !0);
        } else Le === "#" && (ae = iBe(k8(b, $), Le + Ke));
        ae && y.push(ae);
      }
    return y;
  }
  function aBe(b) {
    return !b ||
      typeof b.getValue != "function" ||
      typeof b.positionAt != "function"
      ? []
      : oBe(b);
  }
  const sBe = /^-+|-+$/g,
    nTe = 100,
    lBe = 5;
  function cBe(b, y) {
    let x = [];
    if (y.findRegionSectionHeaders && y.foldingRules?.markers) {
      const F = dBe(b, y);
      x = x.concat(F);
    }
    if (y.findMarkSectionHeaders) {
      const F = uBe(b, y);
      x = x.concat(F);
    }
    return x;
  }
  function dBe(b, y) {
    const x = [],
      F = b.getLineCount();
    for (let $ = 1; $ <= F; $++) {
      const ge = b.getLineContent($),
        Le = ge.match(y.foldingRules.markers.start);
      if (Le) {
        const Ke = {
          startLineNumber: $,
          startColumn: Le[0].length + 1,
          endLineNumber: $,
          endColumn: ge.length + 1,
        };
        if (Ke.endColumn > Ke.startColumn) {
          const ae = {
            range: Ke,
            ...pBe(ge.substring(Le[0].length)),
            shouldBeInComments: !1,
          };
          (ae.text || ae.hasSeparatorLine) && x.push(ae);
        }
      }
    }
    return x;
  }
  function uBe(b, y) {
    const x = [],
      F = b.getLineCount();
    if (!y.markSectionHeaderRegex || y.markSectionHeaderRegex.trim() === "")
      return x;
    const $ = p5e(y.markSectionHeaderRegex),
      ge = new RegExp(y.markSectionHeaderRegex, `gdm${$ ? "s" : ""}`);
    if (sze(ge)) return x;
    for (let Le = 1; Le <= F; Le += nTe - lBe) {
      const Ke = Math.min(Le + nTe - 1, F),
        ae = [];
      for (let Ye = Le; Ye <= Ke; Ye++) ae.push(b.getLineContent(Ye));
      const bt = ae.join(`
`);
      ge.lastIndex = 0;
      let et;
      for (; (et = ge.exec(bt)) !== null; ) {
        const Ye = bt.substring(0, et.index),
          Pn = (Ye.match(/\n/g) || []).length,
          Hn = Le + Pn,
          cr = et[0].split(`
`),
          Gn = cr.length,
          ki = Hn + Gn - 1,
          bo =
            Ye.lastIndexOf(`
`) + 1,
          Vn = et.index - bo + 1,
          hn = cr[cr.length - 1],
          ga = Gn === 1 ? Vn + et[0].length : hn.length + 1,
          ho = {
            startLineNumber: Hn,
            startColumn: Vn,
            endLineNumber: ki,
            endColumn: ga,
          },
          gl = (et.groups ?? {}).label ?? "",
          jn = ((et.groups ?? {}).separator ?? "") !== "",
          Bi = {
            range: ho,
            text: gl,
            hasSeparatorLine: jn,
            shouldBeInComments: !0,
          };
        ((Bi.text || Bi.hasSeparatorLine) &&
          (x.length === 0 ||
            x[x.length - 1].range.endLineNumber < Bi.range.startLineNumber) &&
          x.push(Bi),
          (ge.lastIndex = et.index + et[0].length));
      }
    }
    return x;
  }
  function pBe(b) {
    b = b.trim();
    const y = b.startsWith("-");
    return ((b = b.replace(sBe, "")), { text: b, hasSeparatorLine: y });
  }
  class fBe {
    get isRejected() {
      return this.outcome?.outcome === 1;
    }
    get isSettled() {
      return !!this.outcome;
    }
    constructor() {
      this.p = new Promise((y, x) => {
        ((this.completeCallback = y), (this.errorCallback = x));
      });
    }
    complete(y) {
      return this.isSettled
        ? Promise.resolve()
        : new Promise((x) => {
            (this.completeCallback(y),
              (this.outcome = { outcome: 0, value: y }),
              x());
          });
    }
    error(y) {
      return this.isSettled
        ? Promise.resolve()
        : new Promise((x) => {
            (this.errorCallback(y),
              (this.outcome = { outcome: 1, value: y }),
              x());
          });
    }
    cancel() {
      return this.error(new Xye());
    }
  }
  var rTe;
  (function (b) {
    async function y(F) {
      let $;
      const ge = await Promise.all(
        F.map((Le) =>
          Le.then(
            (Ke) => Ke,
            (Ke) => {
              $ || ($ = Ke);
            },
          ),
        ),
      );
      if (typeof $ < "u") throw $;
      return ge;
    }
    b.settled = y;
    function x(F) {
      return new Promise(async ($, ge) => {
        try {
          await F($, ge);
        } catch (Le) {
          ge(Le);
        }
      });
    }
    b.withAsyncBody = x;
  })(rTe || (rTe = {}));
  class mBe {
    constructor() {
      ((this._unsatisfiedConsumers = []), (this._unconsumedValues = []));
    }
    get hasFinalValue() {
      return !!this._finalValue;
    }
    produce(y) {
      if ((this._ensureNoFinalValue(), this._unsatisfiedConsumers.length > 0)) {
        const x = this._unsatisfiedConsumers.shift();
        this._resolveOrRejectDeferred(x, y);
      } else this._unconsumedValues.push(y);
    }
    produceFinal(y) {
      (this._ensureNoFinalValue(), (this._finalValue = y));
      for (const x of this._unsatisfiedConsumers)
        this._resolveOrRejectDeferred(x, y);
      this._unsatisfiedConsumers.length = 0;
    }
    _ensureNoFinalValue() {
      if (this._finalValue)
        throw new A_(
          "ProducerConsumer: cannot produce after final value has been set",
        );
    }
    _resolveOrRejectDeferred(y, x) {
      x.ok ? y.complete(x.value) : y.error(x.error);
    }
    consume() {
      if (this._unconsumedValues.length > 0 || this._finalValue) {
        const y =
          this._unconsumedValues.length > 0
            ? this._unconsumedValues.shift()
            : this._finalValue;
        return y.ok ? Promise.resolve(y.value) : Promise.reject(y.error);
      } else {
        const y = new fBe();
        return (this._unsatisfiedConsumers.push(y), y.p);
      }
    }
  }
  const Xy = class Xy {
    constructor(y, x) {
      ((this._onReturn = x),
        (this._producerConsumer = new mBe()),
        (this._iterator = {
          next: () => this._producerConsumer.consume(),
          return: () => (
            this._onReturn?.(),
            Promise.resolve({ done: !0, value: void 0 })
          ),
          throw: async (F) => (
            this._finishError(F),
            { done: !0, value: void 0 }
          ),
        }),
        queueMicrotask(async () => {
          const F = y({
            emitOne: ($) =>
              this._producerConsumer.produce({
                ok: !0,
                value: { done: !1, value: $ },
              }),
            emitMany: ($) => {
              for (const ge of $)
                this._producerConsumer.produce({
                  ok: !0,
                  value: { done: !1, value: ge },
                });
            },
            reject: ($) => this._finishError($),
          });
          if (!this._producerConsumer.hasFinalValue)
            try {
              (await F, this._finishOk());
            } catch ($) {
              this._finishError($);
            }
        }));
    }
    static fromArray(y) {
      return new Xy((x) => {
        x.emitMany(y);
      });
    }
    static fromPromise(y) {
      return new Xy(async (x) => {
        x.emitMany(await y);
      });
    }
    static fromPromisesResolveOrder(y) {
      return new Xy(async (x) => {
        await Promise.all(y.map(async (F) => x.emitOne(await F)));
      });
    }
    static merge(y) {
      return new Xy(async (x) => {
        await Promise.all(
          y.map(async (F) => {
            for await (const $ of F) x.emitOne($);
          }),
        );
      });
    }
    static map(y, x) {
      return new Xy(async (F) => {
        for await (const $ of y) F.emitOne(x($));
      });
    }
    map(y) {
      return Xy.map(this, y);
    }
    static coalesce(y) {
      return Xy.filter(y, (x) => !!x);
    }
    coalesce() {
      return Xy.coalesce(this);
    }
    static filter(y, x) {
      return new Xy(async (F) => {
        for await (const $ of y) x($) && F.emitOne($);
      });
    }
    filter(y) {
      return Xy.filter(this, y);
    }
    _finishOk() {
      this._producerConsumer.hasFinalValue ||
        this._producerConsumer.produceFinal({
          ok: !0,
          value: { done: !0, value: void 0 },
        });
    }
    _finishError(y) {
      this._producerConsumer.hasFinalValue ||
        this._producerConsumer.produceFinal({ ok: !1, error: y });
    }
    [Symbol.asyncIterator]() {
      return this._iterator;
    }
  };
  Xy.EMPTY = Xy.fromArray([]);
  let iTe = Xy;
  class hBe {
    constructor(y) {
      ((this.values = y),
        (this.prefixSum = new Uint32Array(y.length)),
        (this.prefixSumValidIndex = new Int32Array(1)),
        (this.prefixSumValidIndex[0] = -1));
    }
    insertValues(y, x) {
      y = $L(y);
      const F = this.values,
        $ = this.prefixSum,
        ge = x.length;
      return ge === 0
        ? !1
        : ((this.values = new Uint32Array(F.length + ge)),
          this.values.set(F.subarray(0, y), 0),
          this.values.set(F.subarray(y), y + ge),
          this.values.set(x, y),
          y - 1 < this.prefixSumValidIndex[0] &&
            (this.prefixSumValidIndex[0] = y - 1),
          (this.prefixSum = new Uint32Array(this.values.length)),
          this.prefixSumValidIndex[0] >= 0 &&
            this.prefixSum.set($.subarray(0, this.prefixSumValidIndex[0] + 1)),
          !0);
    }
    setValue(y, x) {
      return (
        (y = $L(y)),
        (x = $L(x)),
        this.values[y] === x
          ? !1
          : ((this.values[y] = x),
            y - 1 < this.prefixSumValidIndex[0] &&
              (this.prefixSumValidIndex[0] = y - 1),
            !0)
      );
    }
    removeValues(y, x) {
      ((y = $L(y)), (x = $L(x)));
      const F = this.values,
        $ = this.prefixSum;
      if (y >= F.length) return !1;
      const ge = F.length - y;
      return (
        x >= ge && (x = ge),
        x === 0
          ? !1
          : ((this.values = new Uint32Array(F.length - x)),
            this.values.set(F.subarray(0, y), 0),
            this.values.set(F.subarray(y + x), y),
            (this.prefixSum = new Uint32Array(this.values.length)),
            y - 1 < this.prefixSumValidIndex[0] &&
              (this.prefixSumValidIndex[0] = y - 1),
            this.prefixSumValidIndex[0] >= 0 &&
              this.prefixSum.set(
                $.subarray(0, this.prefixSumValidIndex[0] + 1),
              ),
            !0)
      );
    }
    getTotalSum() {
      return this.values.length === 0
        ? 0
        : this._getPrefixSum(this.values.length - 1);
    }
    getPrefixSum(y) {
      return y < 0 ? 0 : ((y = $L(y)), this._getPrefixSum(y));
    }
    _getPrefixSum(y) {
      if (y <= this.prefixSumValidIndex[0]) return this.prefixSum[y];
      let x = this.prefixSumValidIndex[0] + 1;
      (x === 0 && ((this.prefixSum[0] = this.values[0]), x++),
        y >= this.values.length && (y = this.values.length - 1));
      for (let F = x; F <= y; F++)
        this.prefixSum[F] = this.prefixSum[F - 1] + this.values[F];
      return (
        (this.prefixSumValidIndex[0] = Math.max(
          this.prefixSumValidIndex[0],
          y,
        )),
        this.prefixSum[y]
      );
    }
    getIndexOf(y) {
      ((y = Math.floor(y)), this.getTotalSum());
      let x = 0,
        F = this.values.length - 1,
        $ = 0,
        ge = 0,
        Le = 0;
      for (; x <= F; )
        if (
          (($ = (x + (F - x) / 2) | 0),
          (ge = this.prefixSum[$]),
          (Le = ge - this.values[$]),
          y < Le)
        )
          F = $ - 1;
        else if (y >= ge) x = $ + 1;
        else break;
      return new _Be($, y - Le);
    }
  }
  class _Be {
    constructor(y, x) {
      ((this.index = y),
        (this.remainder = x),
        (this._prefixSumIndexOfResultBrand = void 0),
        (this.index = y),
        (this.remainder = x));
    }
  }
  class gBe {
    constructor(y, x, F, $) {
      ((this._uri = y),
        (this._lines = x),
        (this._eol = F),
        (this._versionId = $),
        (this._lineStarts = null),
        (this._cachedTextValue = null));
    }
    dispose() {
      this._lines.length = 0;
    }
    get version() {
      return this._versionId;
    }
    getText() {
      return (
        this._cachedTextValue === null &&
          (this._cachedTextValue = this._lines.join(this._eol)),
        this._cachedTextValue
      );
    }
    onEvents(y) {
      y.eol &&
        y.eol !== this._eol &&
        ((this._eol = y.eol), (this._lineStarts = null));
      const x = y.changes;
      for (const F of x)
        (this._acceptDeleteRange(F.range),
          this._acceptInsertText(
            new Zc(F.range.startLineNumber, F.range.startColumn),
            F.text,
          ));
      ((this._versionId = y.versionId), (this._cachedTextValue = null));
    }
    _ensureLineStarts() {
      if (!this._lineStarts) {
        const y = this._eol.length,
          x = this._lines.length,
          F = new Uint32Array(x);
        for (let $ = 0; $ < x; $++) F[$] = this._lines[$].length + y;
        this._lineStarts = new hBe(F);
      }
    }
    _setLineText(y, x) {
      ((this._lines[y] = x),
        this._lineStarts &&
          this._lineStarts.setValue(
            y,
            this._lines[y].length + this._eol.length,
          ));
    }
    _acceptDeleteRange(y) {
      if (y.startLineNumber === y.endLineNumber) {
        if (y.startColumn === y.endColumn) return;
        this._setLineText(
          y.startLineNumber - 1,
          this._lines[y.startLineNumber - 1].substring(0, y.startColumn - 1) +
            this._lines[y.startLineNumber - 1].substring(y.endColumn - 1),
        );
        return;
      }
      (this._setLineText(
        y.startLineNumber - 1,
        this._lines[y.startLineNumber - 1].substring(0, y.startColumn - 1) +
          this._lines[y.endLineNumber - 1].substring(y.endColumn - 1),
      ),
        this._lines.splice(
          y.startLineNumber,
          y.endLineNumber - y.startLineNumber,
        ),
        this._lineStarts &&
          this._lineStarts.removeValues(
            y.startLineNumber,
            y.endLineNumber - y.startLineNumber,
          ));
    }
    _acceptInsertText(y, x) {
      if (x.length === 0) return;
      const F = lze(x);
      if (F.length === 1) {
        this._setLineText(
          y.lineNumber - 1,
          this._lines[y.lineNumber - 1].substring(0, y.column - 1) +
            F[0] +
            this._lines[y.lineNumber - 1].substring(y.column - 1),
        );
        return;
      }
      ((F[F.length - 1] += this._lines[y.lineNumber - 1].substring(
        y.column - 1,
      )),
        this._setLineText(
          y.lineNumber - 1,
          this._lines[y.lineNumber - 1].substring(0, y.column - 1) + F[0],
        ));
      const $ = new Uint32Array(F.length - 1);
      for (let ge = 1; ge < F.length; ge++)
        (this._lines.splice(y.lineNumber + ge - 1, 0, F[ge]),
          ($[ge - 1] = F[ge].length + this._eol.length));
      this._lineStarts && this._lineStarts.insertValues(y.lineNumber, $);
    }
  }
  class yBe {
    constructor() {
      this._models = Object.create(null);
    }
    getModel(y) {
      return this._models[y];
    }
    getModels() {
      const y = [];
      return (
        Object.keys(this._models).forEach((x) => y.push(this._models[x])),
        y
      );
    }
    $acceptNewModel(y) {
      this._models[y.url] = new vBe(
        cN.parse(y.url),
        y.lines,
        y.EOL,
        y.versionId,
      );
    }
    $acceptModelChanged(y, x) {
      if (!this._models[y]) return;
      this._models[y].onEvents(x);
    }
    $acceptRemovedModel(y) {
      this._models[y] && delete this._models[y];
    }
  }
  class vBe extends gBe {
    get uri() {
      return this._uri;
    }
    get eol() {
      return this._eol;
    }
    getValue() {
      return this.getText();
    }
    findMatches(y) {
      const x = [];
      for (let F = 0; F < this._lines.length; F++) {
        const $ = this._lines[F],
          ge = this.offsetAt(new Zc(F + 1, 1)),
          Le = $.matchAll(y);
        for (const Ke of Le)
          ((Ke.index || Ke.index === 0) && (Ke.index = Ke.index + ge),
            x.push(Ke));
      }
      return x;
    }
    getLinesContent() {
      return this._lines.slice(0);
    }
    getLineCount() {
      return this._lines.length;
    }
    getLineContent(y) {
      return this._lines[y - 1];
    }
    getWordAtPosition(y, x) {
      const F = CQ(y.column, Nbe(x), this._lines[y.lineNumber - 1], 0);
      return F
        ? new ss(y.lineNumber, F.startColumn, y.lineNumber, F.endColumn)
        : null;
    }
    words(y) {
      const x = this._lines,
        F = this._wordenize.bind(this);
      let $ = 0,
        ge = "",
        Le = 0,
        Ke = [];
      return {
        *[Symbol.iterator]() {
          for (;;)
            if (Le < Ke.length) {
              const ae = ge.substring(Ke[Le].start, Ke[Le].end);
              ((Le += 1), yield ae);
            } else if ($ < x.length)
              ((ge = x[$]), (Ke = F(ge, y)), (Le = 0), ($ += 1));
            else break;
        },
      };
    }
    getLineWords(y, x) {
      const F = this._lines[y - 1],
        $ = this._wordenize(F, x),
        ge = [];
      for (const Le of $)
        ge.push({
          word: F.substring(Le.start, Le.end),
          startColumn: Le.start + 1,
          endColumn: Le.end + 1,
        });
      return ge;
    }
    _wordenize(y, x) {
      const F = [];
      let $;
      for (x.lastIndex = 0; ($ = x.exec(y)) && $[0].length !== 0; )
        F.push({ start: $.index, end: $.index + $[0].length });
      return F;
    }
    getValueInRange(y) {
      if (((y = this._validateRange(y)), y.startLineNumber === y.endLineNumber))
        return this._lines[y.startLineNumber - 1].substring(
          y.startColumn - 1,
          y.endColumn - 1,
        );
      const x = this._eol,
        F = y.startLineNumber - 1,
        $ = y.endLineNumber - 1,
        ge = [];
      ge.push(this._lines[F].substring(y.startColumn - 1));
      for (let Le = F + 1; Le < $; Le++) ge.push(this._lines[Le]);
      return (
        ge.push(this._lines[$].substring(0, y.endColumn - 1)),
        ge.join(x)
      );
    }
    offsetAt(y) {
      return (
        (y = this._validatePosition(y)),
        this._ensureLineStarts(),
        this._lineStarts.getPrefixSum(y.lineNumber - 2) + (y.column - 1)
      );
    }
    positionAt(y) {
      ((y = Math.floor(y)), (y = Math.max(0, y)), this._ensureLineStarts());
      const x = this._lineStarts.getIndexOf(y),
        F = this._lines[x.index].length;
      return { lineNumber: 1 + x.index, column: 1 + Math.min(x.remainder, F) };
    }
    _validateRange(y) {
      const x = this._validatePosition({
          lineNumber: y.startLineNumber,
          column: y.startColumn,
        }),
        F = this._validatePosition({
          lineNumber: y.endLineNumber,
          column: y.endColumn,
        });
      return x.lineNumber !== y.startLineNumber ||
        x.column !== y.startColumn ||
        F.lineNumber !== y.endLineNumber ||
        F.column !== y.endColumn
        ? {
            startLineNumber: x.lineNumber,
            startColumn: x.column,
            endLineNumber: F.lineNumber,
            endColumn: F.column,
          }
        : y;
    }
    _validatePosition(y) {
      if (!Zc.isIPosition(y)) throw new Error("bad position");
      let { lineNumber: x, column: F } = y,
        $ = !1;
      if (x < 1) ((x = 1), (F = 1), ($ = !0));
      else if (x > this._lines.length)
        ((x = this._lines.length),
          (F = this._lines[x - 1].length + 1),
          ($ = !0));
      else {
        const ge = this._lines[x - 1].length + 1;
        F < 1 ? ((F = 1), ($ = !0)) : F > ge && ((F = ge), ($ = !0));
      }
      return $ ? { lineNumber: x, column: F } : y;
    }
  }
  const pN = class pN {
    constructor(y = null) {
      ((this._foreignModule = y),
        (this._requestHandlerBrand = void 0),
        (this._workerTextModelSyncServer = new yBe()));
    }
    dispose() {}
    async $ping() {
      return "pong";
    }
    _getModel(y) {
      return this._workerTextModelSyncServer.getModel(y);
    }
    getModels() {
      return this._workerTextModelSyncServer.getModels();
    }
    $acceptNewModel(y) {
      this._workerTextModelSyncServer.$acceptNewModel(y);
    }
    $acceptModelChanged(y, x) {
      this._workerTextModelSyncServer.$acceptModelChanged(y, x);
    }
    $acceptRemovedModel(y) {
      this._workerTextModelSyncServer.$acceptRemovedModel(y);
    }
    async $computeUnicodeHighlights(y, x, F) {
      const $ = this._getModel(y);
      return $
        ? b5e.computeUnicodeHighlights($, x, F)
        : {
            ranges: [],
            hasMore: !1,
            ambiguousCharacterCount: 0,
            invisibleCharacterCount: 0,
            nonBasicAsciiCharacterCount: 0,
          };
    }
    async $findSectionHeaders(y, x) {
      const F = this._getModel(y);
      return F ? cBe(F, x) : [];
    }
    async $computeDiff(y, x, F, $) {
      const ge = this._getModel(y),
        Le = this._getModel(x);
      return !ge || !Le ? null : pN.computeDiff(ge, Le, F, $);
    }
    static computeDiff(y, x, F, $) {
      const ge = $ === "advanced" ? Qbe.getDefault() : Qbe.getLegacy(),
        Le = y.getLinesContent(),
        Ke = x.getLinesContent(),
        ae = ge.computeDiff(Le, Ke, F),
        bt = ae.changes.length > 0 ? !1 : this._modelsAreIdentical(y, x);
      function et(Ye) {
        return Ye.map((Pn) => [
          Pn.original.startLineNumber,
          Pn.original.endLineNumberExclusive,
          Pn.modified.startLineNumber,
          Pn.modified.endLineNumberExclusive,
          Pn.innerChanges?.map((Hn) => [
            Hn.originalRange.startLineNumber,
            Hn.originalRange.startColumn,
            Hn.originalRange.endLineNumber,
            Hn.originalRange.endColumn,
            Hn.modifiedRange.startLineNumber,
            Hn.modifiedRange.startColumn,
            Hn.modifiedRange.endLineNumber,
            Hn.modifiedRange.endColumn,
          ]),
        ]);
      }
      return {
        identical: bt,
        quitEarly: ae.hitTimeout,
        changes: et(ae.changes),
        moves: ae.moves.map((Ye) => [
          Ye.lineRangeMapping.original.startLineNumber,
          Ye.lineRangeMapping.original.endLineNumberExclusive,
          Ye.lineRangeMapping.modified.startLineNumber,
          Ye.lineRangeMapping.modified.endLineNumberExclusive,
          et(Ye.changes),
        ]),
      };
    }
    static _modelsAreIdentical(y, x) {
      const F = y.getLineCount(),
        $ = x.getLineCount();
      if (F !== $) return !1;
      for (let ge = 1; ge <= F; ge++) {
        const Le = y.getLineContent(ge),
          Ke = x.getLineContent(ge);
        if (Le !== Ke) return !1;
      }
      return !0;
    }
    async $computeMoreMinimalEdits(y, x, F) {
      const $ = this._getModel(y);
      if (!$) return x;
      const ge = [];
      let Le;
      x = x.slice(0).sort((ae, bt) => {
        if (ae.range && bt.range)
          return ss.compareRangesUsingStarts(ae.range, bt.range);
        const et = ae.range ? 0 : 1,
          Ye = bt.range ? 0 : 1;
        return et - Ye;
      });
      let Ke = 0;
      for (let ae = 1; ae < x.length; ae++)
        ss.getEndPosition(x[Ke].range).equals(ss.getStartPosition(x[ae].range))
          ? ((x[Ke].range = ss.fromPositions(
              ss.getStartPosition(x[Ke].range),
              ss.getEndPosition(x[ae].range),
            )),
            (x[Ke].text += x[ae].text))
          : (Ke++, (x[Ke] = x[ae]));
      x.length = Ke + 1;
      for (let { range: ae, text: bt, eol: et } of x) {
        if ((typeof et == "number" && (Le = et), ss.isEmpty(ae) && !bt))
          continue;
        const Ye = $.getValueInRange(ae);
        if (((bt = bt.replace(/\r\n|\n|\r/g, $.eol)), Ye === bt)) continue;
        if (Math.max(bt.length, Ye.length) > pN._diffLimit) {
          ge.push({ range: ae, text: bt });
          continue;
        }
        const Pn = Rze(Ye, bt, F),
          Hn = $.offsetAt(ss.lift(ae).getStartPosition());
        for (const cr of Pn) {
          const Gn = $.positionAt(Hn + cr.originalStart),
            ki = $.positionAt(Hn + cr.originalStart + cr.originalLength),
            bo = {
              text: bt.substr(cr.modifiedStart, cr.modifiedLength),
              range: {
                startLineNumber: Gn.lineNumber,
                startColumn: Gn.column,
                endLineNumber: ki.lineNumber,
                endColumn: ki.column,
              },
            };
          $.getValueInRange(bo.range) !== bo.text && ge.push(bo);
        }
      }
      return (
        typeof Le == "number" &&
          ge.push({
            eol: Le,
            text: "",
            range: {
              startLineNumber: 0,
              startColumn: 0,
              endLineNumber: 0,
              endColumn: 0,
            },
          }),
        ge
      );
    }
    async $computeLinks(y) {
      const x = this._getModel(y);
      return x ? Pze(x) : null;
    }
    async $computeDefaultDocumentColors(y) {
      const x = this._getModel(y);
      return x ? aBe(x) : null;
    }
    async $textualSuggest(y, x, F, $) {
      const ge = new _B(),
        Le = new RegExp(F, $),
        Ke = new Set();
      e: for (const ae of y) {
        const bt = this._getModel(ae);
        if (bt) {
          for (const et of bt.words(Le))
            if (
              !(et === x || !isNaN(Number(et))) &&
              (Ke.add(et), Ke.size > pN._suggestionsLimit)
            )
              break e;
        }
      }
      return { words: Array.from(Ke), duration: ge.elapsed() };
    }
    async $computeWordRanges(y, x, F, $) {
      const ge = this._getModel(y);
      if (!ge) return Object.create(null);
      const Le = new RegExp(F, $),
        Ke = Object.create(null);
      for (let ae = x.startLineNumber; ae < x.endLineNumber; ae++) {
        const bt = ge.getLineWords(ae, Le);
        for (const et of bt) {
          if (!isNaN(Number(et.word))) continue;
          let Ye = Ke[et.word];
          (Ye || ((Ye = []), (Ke[et.word] = Ye)),
            Ye.push({
              startLineNumber: ae,
              startColumn: et.startColumn,
              endLineNumber: ae,
              endColumn: et.endColumn,
            }));
        }
      }
      return Ke;
    }
    async $navigateValueSet(y, x, F, $, ge) {
      const Le = this._getModel(y);
      if (!Le) return null;
      const Ke = new RegExp($, ge);
      x.startColumn === x.endColumn &&
        (x = {
          startLineNumber: x.startLineNumber,
          startColumn: x.startColumn,
          endLineNumber: x.endLineNumber,
          endColumn: x.endColumn + 1,
        });
      const ae = Le.getValueInRange(x),
        bt = Le.getWordAtPosition(
          { lineNumber: x.startLineNumber, column: x.startColumn },
          Ke,
        );
      if (!bt) return null;
      const et = Le.getValueInRange(bt);
      return _Q.INSTANCE.navigateValueSet(x, ae, bt, et, F);
    }
    $fmr(y, x) {
      if (!this._foreignModule || typeof this._foreignModule[y] != "function")
        return Promise.reject(
          new Error("Missing requestHandler or method: " + y),
        );
      try {
        return Promise.resolve(
          this._foreignModule[y].apply(this._foreignModule, x),
        );
      } catch (F) {
        return Promise.reject(F);
      }
    }
  };
  ((pN._diffLimit = 1e5), (pN._suggestionsLimit = 1e4));
  let WQ = pN;
  typeof importScripts == "function" && (globalThis.monaco = s5e());
  const W8 = class W8 {
    static getChannel(y) {
      return y.getChannel(W8.CHANNEL_NAME);
    }
    static setChannel(y, x) {
      y.setChannel(W8.CHANNEL_NAME, x);
    }
  };
  W8.CHANNEL_NAME = "editorWorkerHost";
  let FQ = W8;
  function bBe(b) {
    let y;
    const x = Ize((F) => {
      const $ = FQ.getChannel(F),
        Le = {
          host: new Proxy(
            {},
            {
              get(Ke, ae, bt) {
                if (ae !== "then") {
                  if (typeof ae != "string") throw new Error("Not supported");
                  return (...et) => $.$fhr(ae, et);
                }
              },
            },
          ),
          getMirrorModels: () => x.requestHandler.getModels(),
        };
      return ((y = b(Le)), new WQ(y));
    });
    return y;
  }
  function TBe(b) {
    self.onmessage = (y) => {
      bBe((x) => b(x, y.data));
    };
  }
  var oTe = void 0;
  /*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */ var xT =
    {};
  ((b) => {
    var y = Object.defineProperty,
      x = (e, t) => {
        for (var r in t) y(e, r, { get: t[r], enumerable: !0 });
      },
      F = (e) => e,
      $ = {};
    (x($, {
      ANONYMOUS: () => uJ,
      AccessFlags: () => FZ,
      AssertionLevel: () => KQ,
      AssignmentDeclarationKind: () => JZ,
      AssignmentKind: () => gne,
      Associativity: () => Ine,
      BreakpointResolver: () => cK,
      BuilderFileEmit: () => Tse,
      BuilderProgramKind: () => Cse,
      BuilderState: () => _h,
      CallHierarchy: () => yx,
      CharacterCodes: () => iee,
      CheckFlags: () => kZ,
      CheckMode: () => kU,
      ClassificationType: () => Sq,
      ClassificationTypeNames: () => Mle,
      CommentDirectiveType: () => vZ,
      Comparison: () => Ke,
      CompletionInfoFlags: () => Ale,
      CompletionTriggerKind: () => bq,
      Completions: () => Ex,
      ContainerFlags: () => tae,
      ContextFlags: () => xZ,
      Debug: () => C,
      DiagnosticCategory: () => K8,
      Diagnostics: () => f,
      DocumentHighlights: () => U7,
      ElementFlags: () => WZ,
      EmitFlags: () => v9,
      EmitHint: () => lee,
      EmitOnly: () => TZ,
      EndOfLineState: () => Rle,
      ExitStatus: () => SZ,
      ExportKind: () => Tce,
      Extension: () => oee,
      ExternalEmitHelpers: () => see,
      FileIncludeKind: () => c9,
      FilePreprocessingDiagnosticsKind: () => bZ,
      FileSystemEntryKind: () => gee,
      FileWatcherEventKind: () => mee,
      FindAllReferences: () => Ys,
      FlattenLevel: () => Eae,
      FlowFlags: () => J8,
      ForegroundColorEscapeSequences: () => use,
      FunctionFlags: () => Ene,
      GeneratedIdentifierFlags: () => l9,
      GetLiteralTextFlags: () => kte,
      GoToDefinition: () => fC,
      HighlightSpanKind: () => Sle,
      IdentifierNameMap: () => jD,
      ImportKind: () => bce,
      ImportsNotUsedAsValues: () => ZZ,
      IndentStyle: () => Ele,
      IndexFlags: () => zZ,
      IndexKind: () => VZ,
      InferenceFlags: () => HZ,
      InferencePriority: () => UZ,
      InlayHintKind: () => Tle,
      InlayHints: () => eX,
      InternalEmitFlags: () => aee,
      InternalNodeBuilderFlags: () => DZ,
      InternalSymbolName: () => wZ,
      IntersectionFlags: () => IZ,
      InvalidatedProjectKind: () => Qse,
      JSDocParsingMode: () => fee,
      JsDoc: () => y0,
      JsTyping: () => Gb,
      JsxEmit: () => QZ,
      JsxFlags: () => hZ,
      JsxReferenceKind: () => BZ,
      LanguageFeatureMinimumTarget: () => ed,
      LanguageServiceMode: () => vle,
      LanguageVariant: () => nee,
      LexicalEnvironmentFlags: () => dee,
      ListFormat: () => uee,
      LogLevel: () => iZ,
      MapCode: () => tX,
      MemberOverrideStatus: () => EZ,
      ModifierFlags: () => a9,
      ModuleDetectionKind: () => KZ,
      ModuleInstanceState: () => Zoe,
      ModuleKind: () => CR,
      ModuleResolutionKind: () => DR,
      ModuleSpecifierEnding: () => Sre,
      NavigateTo: () => Hce,
      NavigationBar: () => Jce,
      NewLineKind: () => eee,
      NodeBuilderFlags: () => RZ,
      NodeCheckFlags: () => p9,
      NodeFactoryFlags: () => eie,
      NodeFlags: () => o9,
      NodeResolutionFeatures: () => joe,
      ObjectFlags: () => m9,
      OperationCanceledException: () => TN,
      OperatorPrecedence: () => xne,
      OrganizeImports: () => v0,
      OrganizeImportsMode: () => vq,
      OuterExpressionKinds: () => cee,
      OutliningElementsCollector: () => rX,
      OutliningSpanKind: () => Ile,
      OutputFileType: () => xle,
      PackageJsonAutoImportPreference: () => yle,
      PackageJsonDependencyGroup: () => gle,
      PatternMatchKind: () => NJ,
      PollingInterval: () => b9,
      PollingWatchKind: () => $Z,
      PragmaKindFlags: () => pee,
      PredicateSemantics: () => _Z,
      PreparePasteEdits: () => yX,
      PrivateIdentifierKind: () => die,
      ProcessLevel: () => Rae,
      ProgramUpdateLevel: () => ase,
      QuotePreference: () => Zle,
      RegularExpressionFlags: () => gZ,
      RelationComparisonResult: () => s9,
      Rename: () => Rz,
      ScriptElementKind: () => Cle,
      ScriptElementKindModifier: () => Nle,
      ScriptKind: () => _9,
      ScriptSnapshot: () => n7,
      ScriptTarget: () => tee,
      SemanticClassificationFormat: () => ble,
      SemanticMeaning: () => Ple,
      SemicolonPreference: () => Tq,
      SignatureCheckMode: () => wU,
      SignatureFlags: () => h9,
      SignatureHelp: () => iW,
      SignatureInfo: () => bse,
      SignatureKind: () => GZ,
      SmartSelectionRange: () => aX,
      SnippetKind: () => y9,
      StatisticType: () => sle,
      StructureIsReused: () => d9,
      SymbolAccessibility: () => MZ,
      SymbolDisplay: () => vv,
      SymbolDisplayPartKind: () => i7,
      SymbolFlags: () => u9,
      SymbolFormatFlags: () => NZ,
      SyntaxKind: () => i9,
      Ternary: () => qZ,
      ThrottledCancellationToken: () => tue,
      TokenClass: () => Dle,
      TokenFlags: () => yZ,
      TransformFlags: () => g9,
      TypeFacts: () => LU,
      TypeFlags: () => f9,
      TypeFormatFlags: () => CZ,
      TypeMapKind: () => jZ,
      TypePredicateKind: () => PZ,
      TypeReferenceSerializationKind: () => LZ,
      UnionReduction: () => AZ,
      UpToDateStatusType: () => Hse,
      VarianceFlags: () => OZ,
      Version: () => ih,
      VersionRange: () => q8,
      WatchDirectoryFlags: () => ree,
      WatchDirectoryKind: () => YZ,
      WatchFileKind: () => XZ,
      WatchLogLevel: () => lse,
      WatchType: () => sd,
      accessPrivateIdentifier: () => Sae,
      addEmitFlags: () => Qh,
      addEmitHelper: () => zI,
      addEmitHelpers: () => Ag,
      addInternalEmitFlags: () => h1,
      addNodeFactoryPatcher: () => eSe,
      addObjectAllocatorPatcher: () => F0e,
      addRange: () => Xr,
      addRelatedInfo: () => pa,
      addSyntheticLeadingComment: () => Cb,
      addSyntheticTrailingComment: () => OM,
      addToSeen: () => gm,
      advancedAsyncSuperHelper: () => p4,
      affectsDeclarationPathOptionDeclarations: () => hoe,
      affectsEmitOptionDeclarations: () => moe,
      allKeysStartWithDot: () => a3,
      altDirectorySeparator: () => Z8,
      and: () => j8,
      append: () => Bn,
      appendIfUnique: () => $g,
      arrayFrom: () => Co,
      arrayIsEqualTo: () => Qp,
      arrayIsHomogeneous: () => Mre,
      arrayOf: () => UQ,
      arrayReverseIterator: () => WB,
      arrayToMap: () => AR,
      arrayToMultiMap: () => _2,
      arrayToNumericMap: () => qQ,
      assertType: () => pTe,
      assign: () => GE,
      asyncSuperHelper: () => u4,
      attachFileToDiagnostics: () => NI,
      base64decode: () => Jne,
      base64encode: () => qne,
      binarySearch: () => Zv,
      binarySearchKey: () => YA,
      bindSourceFile: () => nae,
      breakIntoCharacterSpans: () => Wce,
      breakIntoWordSpans: () => Fce,
      buildLinkParts: () => sce,
      buildOpts: () => Pw,
      buildOverload: () => Gwe,
      bundlerModuleNameResolver: () => Uoe,
      canBeConvertedToAsync: () => OJ,
      canHaveDecorators: () => qS,
      canHaveExportModifier: () => nw,
      canHaveFlowNode: () => eD,
      canHaveIllegalDecorators: () => jj,
      canHaveIllegalModifiers: () => Xie,
      canHaveIllegalType: () => xSe,
      canHaveIllegalTypeParameters: () => Kie,
      canHaveJSDoc: () => Ek,
      canHaveLocals: () => D_,
      canHaveModifiers: () => Tm,
      canHaveModuleSpecifier: () => mne,
      canHaveSymbol: () => ah,
      canIncludeBindAndCheckDiagnostics: () => xM,
      canJsonReportNoInputFiles: () => Fw,
      canProduceDiagnostics: () => Jw,
      canUsePropertyAccess: () => JV,
      canWatchAffectingLocation: () => Wse,
      canWatchAtTypes: () => Ose,
      canWatchDirectoryOrFile: () => OH,
      canWatchDirectoryOrFilePath: () => lO,
      cartesianProduct: () => nZ,
      cast: () => ma,
      chainBundle: () => hh,
      chainDiagnosticMessages: () => qo,
      changeAnyExtension: () => E2,
      changeCompilerHostLikeToUseCache: () => yP,
      changeExtension: () => av,
      changeFullExtension: () => nF,
      changesAffectModuleResolution: () => CF,
      changesAffectingProgramStructure: () => xte,
      characterCodeToRegularExpressionFlag: () => M9,
      childIsDecorated: () => KN,
      classElementOrClassElementParameterIsDecorated: () => NG,
      classHasClassThisAssignment: () => YU,
      classHasDeclaredOrExplicitlyAssignedName: () => $U,
      classHasExplicitlyAssignedName: () => b3,
      classOrConstructorParameterIsDecorated: () => tv,
      classicNameResolver: () => $oe,
      classifier: () => oue,
      cleanExtendedConfigCache: () => x3,
      clear: () => hi,
      clearMap: () => hp,
      clearSharedExtendedConfigFileWatcher: () => uH,
      climbPastPropertyAccess: () => s7,
      clone: () => JQ,
      cloneCompilerOptions: () => Gq,
      closeFileWatcher: () => Bm,
      closeFileWatcherOf: () => Kf,
      codefix: () => cu,
      collapseTextChangeRangesAcrossMultipleVersions: () => Fee,
      collectExternalModuleInfo: () => qU,
      combine: () => XA,
      combinePaths: () => Qr,
      commandLineOptionOfCustomType: () => yoe,
      commentPragmas: () => X8,
      commonOptionsWithBuild: () => z4,
      compact: () => m2,
      compareBooleans: () => NT,
      compareDataObjects: () => EV,
      compareDiagnostics: () => vM,
      compareEmitHelpers: () => pie,
      compareNumberOfDirectorySeparators: () => Qk,
      comparePaths: () => Zg,
      comparePathsCaseInsensitive: () => FTe,
      comparePathsCaseSensitive: () => WTe,
      comparePatternKeys: () => xU,
      compareProperties: () => QQ,
      compareStringsCaseInsensitive: () => y2,
      compareStringsCaseInsensitiveEslintCompatible: () => XQ,
      compareStringsCaseSensitive: () => Wd,
      compareStringsCaseSensitiveUI: () => v2,
      compareTextSpans: () => G8,
      compareValues: () => js,
      compilerOptionsAffectDeclarationPath: () => hre,
      compilerOptionsAffectEmit: () => mre,
      compilerOptionsAffectSemanticDiagnostics: () => fre,
      compilerOptionsDidYouMeanDiagnostics: () => j4,
      compilerOptionsIndicateEsModules: () => Jq,
      computeCommonSourceDirectoryOfFilenames: () => cse,
      computeLineAndCharacterOfPosition: () => LR,
      computeLineOfPosition: () => IN,
      computeLineStarts: () => iI,
      computePositionOfLineAndCharacter: () => aF,
      computeSignatureWithDiagnostics: () => NH,
      computeSuggestionDiagnostics: () => LJ,
      computedOptions: () => bM,
      concatenate: () => so,
      concatenateDiagnosticMessageChains: () => are,
      consumesNodeCoreModules: () => w7,
      contains: () => jn,
      containsIgnoredPath: () => CM,
      containsObjectRestOrSpread: () => Dw,
      containsParseError: () => fI,
      containsPath: () => um,
      convertCompilerOptionsForTelemetry: () => Loe,
      convertCompilerOptionsFromJson: () => wEe,
      convertJsonOption: () => N1,
      convertToBase64: () => Hne,
      convertToJson: () => ww,
      convertToObject: () => Roe,
      convertToOptionsWithAbsolutePaths: () => J4,
      convertToRelativePath: () => EN,
      convertToTSConfig: () => cU,
      convertTypeAcquisitionFromJson: () => OEe,
      copyComments: () => z1,
      copyEntries: () => NF,
      copyLeadingComments: () => oC,
      copyProperties: () => UB,
      copyTrailingAsLeadingComments: () => CO,
      copyTrailingComments: () => kP,
      couldStartTrivia: () => Aee,
      countWhere: () => Io,
      createAbstractBuilder: () => jAe,
      createAccessorPropertyBackingField: () => qj,
      createAccessorPropertyGetRedirector: () => roe,
      createAccessorPropertySetRedirector: () => ioe,
      createBaseNodeFactory: () => Xre,
      createBinaryExpressionTrampoline: () => k4,
      createBuilderProgram: () => MH,
      createBuilderProgramUsingIncrementalBuildInfo: () => Lse,
      createBuilderStatusReporter: () => K3,
      createCacheableExportInfoMap: () => SJ,
      createCachedDirectoryStructureHost: () => A3,
      createClassifier: () => vxe,
      createCommentDirectivesMap: () => Pte,
      createCompilerDiagnostic: () => Il,
      createCompilerDiagnosticForInvalidCustomType: () => voe,
      createCompilerDiagnosticFromMessageChain: () => L6,
      createCompilerHost: () => dse,
      createCompilerHostFromProgramHost: () => $H,
      createCompilerHostWorker: () => R3,
      createDetachedDiagnostic: () => CI,
      createDiagnosticCollection: () => cM,
      createDiagnosticForFileFromMessageChain: () => IG,
      createDiagnosticForNode: () => Ar,
      createDiagnosticForNodeArray: () => qR,
      createDiagnosticForNodeArrayFromMessageChain: () => tk,
      createDiagnosticForNodeFromMessageChain: () => hg,
      createDiagnosticForNodeInSourceFile: () => Wf,
      createDiagnosticForRange: () => qte,
      createDiagnosticMessageChainFromDiagnostic: () => Hte,
      createDiagnosticReporter: () => dx,
      createDocumentPositionMapper: () => gae,
      createDocumentRegistry: () => xce,
      createDocumentRegistryInternal: () => RJ,
      createEmitAndSemanticDiagnosticsBuilderProgram: () => wH,
      createEmitHelperFactory: () => uie,
      createEmptyExports: () => bw,
      createEvaluator: () => Gre,
      createExpressionForJsxElement: () => Vie,
      createExpressionForJsxFragment: () => jie,
      createExpressionForObjectLiteralElementLike: () => Uie,
      createExpressionForPropertyName: () => Wj,
      createExpressionFromEntityName: () => Tw,
      createExternalHelpersImportDeclarationIfNeeded: () => Bj,
      createFileDiagnostic: () => Oc,
      createFileDiagnosticFromMessageChain: () => BF,
      createFlowNode: () => F_,
      createForOfBindingStatement: () => Oj,
      createFutureSourceFile: () => G7,
      createGetCanonicalFileName: () => Fd,
      createGetIsolatedDeclarationErrors: () => Yae,
      createGetSourceFile: () => _H,
      createGetSymbolAccessibilityDiagnosticForNode: () => l0,
      createGetSymbolAccessibilityDiagnosticForNodeName: () => Xae,
      createGetSymbolWalker: () => rae,
      createIncrementalCompilerHost: () => J3,
      createIncrementalProgram: () => Use,
      createJsxFactoryExpression: () => wj,
      createLanguageService: () => nue,
      createLanguageServiceSourceFile: () => az,
      createMemberAccessForPropertyName: () => D1,
      createModeAwareCache: () => FD,
      createModeAwareCacheKey: () => rP,
      createModeMismatchDetails: () => cG,
      createModuleNotFoundChain: () => PF,
      createModuleResolutionCache: () => zD,
      createModuleResolutionLoader: () => SH,
      createModuleResolutionLoaderUsingGlobalCache: () => Gse,
      createModuleSpecifierResolutionHost: () => p0,
      createMultiMap: () => cm,
      createNameResolver: () => QV,
      createNodeConverters: () => Qre,
      createNodeFactory: () => sw,
      createOptionNameMap: () => G4,
      createOverload: () => bX,
      createPackageJsonImportFilter: () => aC,
      createPackageJsonInfo: () => mJ,
      createParenthesizerRules: () => Yre,
      createPatternMatcher: () => Mce,
      createPrinter: () => zb,
      createPrinterWithDefaults: () => ise,
      createPrinterWithRemoveComments: () => YS,
      createPrinterWithRemoveCommentsNeverAsciiEscape: () => ose,
      createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => dH,
      createProgram: () => oO,
      createProgramDiagnostics: () => yse,
      createProgramHost: () => QH,
      createPropertyNameNodeForIdentifierOrLiteral: () => tw,
      createQueue: () => g2,
      createRange: () => Bf,
      createRedirectedBuilderProgram: () => kH,
      createResolutionCache: () => FH,
      createRuntimeTypeSerializer: () => Pae,
      createScanner: () => cg,
      createSemanticDiagnosticsBuilderProgram: () => VAe,
      createSet: () => HB,
      createSolutionBuilder: () => Xse,
      createSolutionBuilderHost: () => Jse,
      createSolutionBuilderWithWatch: () => Yse,
      createSolutionBuilderWithWatchHost: () => Kse,
      createSortedArray: () => OB,
      createSourceFile: () => tx,
      createSourceMapGenerator: () => pae,
      createSourceMapSource: () => iSe,
      createSuperAccessVariableStatement: () => S3,
      createSymbolTable: () => da,
      createSymlinkCache: () => LV,
      createSyntacticTypeNodeBuilder: () => mle,
      createSystemWatchFunctions: () => NTe,
      createTextChange: () => SO,
      createTextChangeFromStartLength: () => b7,
      createTextChangeRange: () => L2,
      createTextRangeFromNode: () => Uq,
      createTextRangeFromSpan: () => v7,
      createTextSpan: () => Id,
      createTextSpanFromBounds: () => ic,
      createTextSpanFromNode: () => zu,
      createTextSpanFromRange: () => _v,
      createTextSpanFromStringLiteralLikeContent: () => jq,
      createTextWriter: () => kk,
      createTokenRange: () => yV,
      createTypeChecker: () => dae,
      createTypeReferenceDirectiveResolutionCache: () => r3,
      createTypeReferenceResolutionLoader: () => N3,
      createWatchCompilerHost: () => ZAe,
      createWatchCompilerHostOfConfigFile: () => ZH,
      createWatchCompilerHostOfFilesAndCompilerOptions: () => eq,
      createWatchFactory: () => YH,
      createWatchHost: () => XH,
      createWatchProgram: () => tq,
      createWatchStatusReporter: () => zH,
      createWriteFileMeasuringIO: () => gH,
      declarationNameToString: () => ws,
      decodeMappings: () => jU,
      decodedTextSpanIntersectsWith: () => P2,
      deduplicate: () => cS,
      defaultHoverMaximumTruncationLength: () => Ate,
      defaultInitCompilerOptions: () => tEe,
      defaultMaximumTruncationLength: () => GN,
      diagnosticCategoryName: () => jE,
      diagnosticToString: () => tE,
      diagnosticsEqualityComparer: () => k6,
      directoryProbablyExists: () => ch,
      directorySeparator: () => Js,
      displayPart: () => yp,
      displayPartsToString: () => VO,
      disposeEmitNodes: () => cj,
      documentSpansEqual: () => eJ,
      dumpTracingLegend: () => mZ,
      elementAt: () => Qv,
      elideNodes: () => noe,
      emitDetachedComments: () => wne,
      emitFiles: () => lH,
      emitFilesAndReportErrors: () => j3,
      emitFilesAndReportErrorsAndGetExitStatus: () => KH,
      emitModuleKindIsNonNodeESM: () => Kk,
      emitNewLineBeforeLeadingCommentOfPosition: () => kne,
      emitResolverSkipsTypeChecking: () => sH,
      emitSkippedWithNoDiagnostics: () => IH,
      emptyArray: () => ae,
      emptyFileSystemEntries: () => xre,
      emptyMap: () => bt,
      emptyOptions: () => Sm,
      endsWith: () => el,
      ensurePathIsNonModuleName: () => UE,
      ensureScriptKind: () => U6,
      ensureTrailingDirectorySeparator: () => Uc,
      entityNameToString: () => Mp,
      enumerateInsertsAndDeletes: () => H8,
      equalOwnProperties: () => HQ,
      equateStringsCaseInsensitive: () => rb,
      equateStringsCaseSensitive: () => pS,
      equateValues: () => nb,
      escapeJsxAttributeString: () => eV,
      escapeLeadingUnderscores: () => Cl,
      escapeNonAsciiString: () => f6,
      escapeSnippetText: () => OS,
      escapeString: () => k_,
      escapeTemplateSubstitution: () => QG,
      evaluatorResult: () => qc,
      every: () => Vn,
      exclusivelyPrefixedNodeCoreModules: () => o4,
      executeCommandLine: () => PIe,
      expandPreOrPostfixIncrementOrDecrementExpression: () => C4,
      explainFiles: () => jH,
      explainIfFileIsRedirectAndImpliedFormat: () => UH,
      exportAssignmentIsAlias: () => Rk,
      expressionResultIsUnused: () => Lre,
      extend: () => jB,
      extensionFromPath: () => AM,
      extensionIsTS: () => X6,
      extensionsNotSupportingExtensionlessResolution: () => K6,
      externalHelpersModuleNameText: () => hb,
      factory: () => L,
      fileExtensionIs: () => El,
      fileExtensionIsOneOf: () => $l,
      fileIncludeReasonToDiagnostics: () => JH,
      fileShouldUseJavaScriptRequire: () => TJ,
      filter: () => Un,
      filterMutate: () => ul,
      filterSemanticDiagnostics: () => k3,
      find: () => hn,
      findAncestor: () => Dn,
      findBestPatternMatch: () => $B,
      findChildOfKind: () => Es,
      findComputedPropertyNameCacheAssignment: () => w4,
      findConfigFile: () => mH,
      findConstructorDeclaration: () => ow,
      findContainingList: () => p7,
      findDiagnosticForNode: () => gce,
      findFirstNonJsxWhitespaceToken: () => Ble,
      findIndex: () => ho,
      findLast: () => ga,
      findLastIndex: () => gl,
      findListItemInfo: () => zle,
      findModifier: () => nC,
      findNextToken: () => eE,
      findPackageJson: () => _ce,
      findPackageJsons: () => fJ,
      findPrecedingMatchingToken: () => g7,
      findPrecedingToken: () => Bc,
      findSuperStatementIndexPath: () => _3,
      findTokenOnLeftOfPosition: () => RP,
      findUseStrictPrologue: () => zj,
      first: () => $a,
      firstDefined: () => Hn,
      firstDefinedIterator: () => cr,
      firstIterator: () => zB,
      firstOrOnly: () => gJ,
      firstOrUndefined: () => Ac,
      firstOrUndefinedIterator: () => B8,
      fixupCompilerOptions: () => WJ,
      flatMap: () => Ki,
      flatMapIterator: () => lf,
      flatMapToMutable: () => yc,
      flatten: () => la,
      flattenCommaList: () => ooe,
      flattenDestructuringAssignment: () => k1,
      flattenDestructuringBinding: () => XS,
      flattenDiagnosticMessageText: () => a_,
      forEach: () => Ye,
      forEachAncestor: () => Rte,
      forEachAncestorDirectory: () => AN,
      forEachAncestorDirectoryStoppingAtGlobalCache: () => W_,
      forEachChild: () => Jo,
      forEachChildRecursively: () => ex,
      forEachDynamicImportOrRequireCall: () => a4,
      forEachEmittedFile: () => rH,
      forEachEnclosingBlockScopeContainer: () => Vte,
      forEachEntry: () => Hc,
      forEachExternalModuleToImportFrom: () => AJ,
      forEachImportClauseDeclaration: () => hne,
      forEachKey: () => fg,
      forEachLeadingCommentRange: () => x2,
      forEachNameInAccessChainWalkingLeft: () => tre,
      forEachNameOfDefaultExport: () => j7,
      forEachOptionsSyntaxByName: () => ij,
      forEachProjectReference: () => kM,
      forEachPropertyAssignment: () => XR,
      forEachResolvedProjectReference: () => nj,
      forEachReturnStatement: () => vb,
      forEachRight: () => Pn,
      forEachTrailingCommentRange: () => R2,
      forEachTsConfigPropArray: () => ak,
      forEachUnique: () => nJ,
      forEachYieldExpression: () => Yte,
      formatColorAndReset: () => $S,
      formatDiagnostic: () => yH,
      formatDiagnostics: () => _Ae,
      formatDiagnosticsWithColorAndContext: () => mse,
      formatGeneratedName: () => r0,
      formatGeneratedNamePart: () => kD,
      formatLocation: () => vH,
      formatMessage: () => MI,
      formatStringFromArgs: () => bg,
      formatting: () => Nc,
      generateDjb2Hash: () => S2,
      generateTSConfig: () => Doe,
      getAdjustedReferenceLocation: () => wq,
      getAdjustedRenameLocation: () => m7,
      getAliasDeclarationFromName: () => VG,
      getAllAccessorDeclarations: () => MS,
      getAllDecoratorsOfClass: () => KU,
      getAllDecoratorsOfClassElement: () => y3,
      getAllJSDocTags: () => fF,
      getAllJSDocTagsOfKind: () => s0e,
      getAllKeys: () => lTe,
      getAllProjectOutputs: () => E3,
      getAllSuperTypeNodes: () => rM,
      getAllowImportingTsExtensions: () => lre,
      getAllowJSCompilerOption: () => xb,
      getAllowSyntheticDefaultImports: () => PI,
      getAncestor: () => VT,
      getAnyExtensionFromPath: () => nI,
      getAreDeclarationMapsEnabled: () => w6,
      getAssignedExpandoInitializer: () => _I,
      getAssignedName: () => dF,
      getAssignmentDeclarationKind: () => oc,
      getAssignmentDeclarationPropertyAccessKind: () => yk,
      getAssignmentTargetKind: () => bb,
      getAutomaticTypeDirectiveNames: () => t3,
      getBaseFileName: () => Ic,
      getBinaryOperatorPrecedence: () => Mk,
      getBuildInfo: () => cH,
      getBuildInfoFileVersionMap: () => LH,
      getBuildInfoText: () => nse,
      getBuildOrderFromAnyBuildOrder: () => dO,
      getBuilderCreationParameters: () => F3,
      getBuilderFileEmit: () => Bb,
      getCanonicalDiagnostic: () => Jte,
      getCheckFlags: () => Wl,
      getClassExtendsHeritageElement: () => RS,
      getClassLikeDeclarationOfSymbol: () => cy,
      getCombinedLocalAndExportSymbolFlags: () => cD,
      getCombinedModifierFlags: () => PT,
      getCombinedNodeFlags: () => ty,
      getCombinedNodeFlagsAlwaysIncludeJSDoc: () => W9,
      getCommentRange: () => Zh,
      getCommonSourceDirectory: () => gP,
      getCommonSourceDirectoryOfConfig: () => w1,
      getCompilerOptionValue: () => F6,
      getConditions: () => Ob,
      getConfigFileParsingDiagnostics: () => QS,
      getConstantValue: () => rie,
      getContainerFlags: () => DU,
      getContainerNode: () => F1,
      getContainingClass: () => hd,
      getContainingClassExcludingClassDecorators: () => KF,
      getContainingClassStaticBlock: () => ine,
      getContainingFunction: () => df,
      getContainingFunctionDeclaration: () => rne,
      getContainingFunctionOrClassStaticBlock: () => JF,
      getContainingNodeArray: () => kre,
      getContainingObjectLiteralElement: () => jO,
      getContextualTypeFromParent: () => C7,
      getContextualTypeFromParentOrAncestorTypeNode: () => f7,
      getDeclarationDiagnostics: () => $ae,
      getDeclarationEmitExtensionForPath: () => _6,
      getDeclarationEmitOutputFilePath: () => Nne,
      getDeclarationEmitOutputFilePathWorker: () => h6,
      getDeclarationFileExtension: () => W4,
      getDeclarationFromName: () => nM,
      getDeclarationModifierFlagsFromSymbol: () => Vf,
      getDeclarationOfKind: () => al,
      getDeclarationsOfKind: () => Ite,
      getDeclaredExpandoInitializer: () => QN,
      getDecorators: () => lb,
      getDefaultCompilerOptions: () => oz,
      getDefaultFormatCodeSettings: () => r7,
      getDefaultLibFileName: () => C2,
      getDefaultLibFilePath: () => rue,
      getDefaultLikeExportInfo: () => V7,
      getDefaultLikeExportNameFromDeclaration: () => yJ,
      getDefaultResolutionModeForFileWorker: () => L3,
      getDiagnosticText: () => rp,
      getDiagnosticsWithinSpan: () => yce,
      getDirectoryPath: () => ci,
      getDirectoryToWatchFailedLookupLocation: () => WH,
      getDirectoryToWatchFailedLookupLocationFromTypeRoot: () => zse,
      getDocumentPositionMapper: () => PJ,
      getDocumentSpansEqualityComparer: () => tJ,
      getESModuleInterop: () => $h,
      getEditsForFileRename: () => Dce,
      getEffectiveBaseTypeNode: () => lh,
      getEffectiveConstraintOfTypeParameter: () => WR,
      getEffectiveContainerForJSDocTemplateTag: () => a6,
      getEffectiveImplementsTypeNodes: () => nD,
      getEffectiveInitializer: () => hk,
      getEffectiveJSDocHost: () => GT,
      getEffectiveModifierFlags: () => Gd,
      getEffectiveModifierFlagsAlwaysIncludeJSDoc: () => zne,
      getEffectiveModifierFlagsNoCache: () => Bne,
      getEffectiveReturnTypeNode: () => kp,
      getEffectiveSetAccessorTypeAnnotationNode: () => lV,
      getEffectiveTypeAnnotationNode: () => xc,
      getEffectiveTypeParameterDeclarations: () => cb,
      getEffectiveTypeRoots: () => nP,
      getElementOrPropertyAccessArgumentExpressionOrName: () => o6,
      getElementOrPropertyAccessName: () => iy,
      getElementsOfBindingOrAssignmentPattern: () => LD,
      getEmitDeclarations: () => _p,
      getEmitFlags: () => Qa,
      getEmitHelpers: () => dj,
      getEmitModuleDetectionKind: () => cre,
      getEmitModuleFormatOfFileWorker: () => TP,
      getEmitModuleKind: () => bu,
      getEmitModuleResolutionKind: () => iu,
      getEmitScriptTarget: () => Ga,
      getEmitStandardClassFields: () => MV,
      getEnclosingBlockScopeContainer: () => sh,
      getEnclosingContainer: () => zF,
      getEncodedSemanticClassifications: () => IJ,
      getEncodedSyntacticClassifications: () => xJ,
      getEndLinePosition: () => Y2,
      getEntityNameFromTypeNode: () => ck,
      getEntrypointsFromPackageJsonInfo: () => EU,
      getErrorCountForSummary: () => G3,
      getErrorSpanForNode: () => t1,
      getErrorSummaryText: () => GH,
      getEscapedTextOfIdentifierOrLiteral: () => aM,
      getEscapedTextOfJsxAttributeName: () => PM,
      getEscapedTextOfJsxNamespacedName: () => OI,
      getExpandoInitializer: () => zT,
      getExportAssignmentExpression: () => jG,
      getExportInfoMap: () => wO,
      getExportNeedsImportStarHelper: () => yae,
      getExpressionAssociativity: () => YG,
      getExpressionPrecedence: () => lM,
      getExternalHelpersModuleName: () => Ew,
      getExternalModuleImportEqualsDeclarationExpression: () => XN,
      getExternalModuleName: () => yI,
      getExternalModuleNameFromDeclaration: () => Dne,
      getExternalModuleNameFromPath: () => rV,
      getExternalModuleNameLiteral: () => ZI,
      getExternalModuleRequireArgument: () => PG,
      getFallbackOptions: () => nO,
      getFileEmitOutput: () => vse,
      getFileMatcherPatterns: () => j6,
      getFileNamesFromConfigSpecs: () => eP,
      getFileWatcherEventKind: () => E9,
      getFilesInErrorForSummary: () => V3,
      getFirstConstructorWithBody: () => yg,
      getFirstIdentifier: () => Lu,
      getFirstNonSpaceCharacterPosition: () => dce,
      getFirstProjectOutput: () => aH,
      getFixableErrorSpanExpression: () => hJ,
      getFormatCodeSettingsForWriting: () => z7,
      getFullWidth: () => K2,
      getFunctionFlags: () => cc,
      getHeritageClause: () => Dk,
      getHostSignatureFromJSDoc: () => BT,
      getIdentifierAutoGenerate: () => sSe,
      getIdentifierGeneratedImportReference: () => cie,
      getIdentifierTypeArguments: () => _1,
      getImmediatelyInvokedFunctionExpression: () => WT,
      getImpliedNodeFormatForEmitWorker: () => O1,
      getImpliedNodeFormatForFile: () => iO,
      getImpliedNodeFormatForFileWorker: () => P3,
      getImportNeedsImportDefaultHelper: () => HU,
      getImportNeedsImportStarHelper: () => m3,
      getIndentString: () => m6,
      getInferredLibraryNameResolveFrom: () => M3,
      getInitializedVariables: () => _M,
      getInitializerOfBinaryExpression: () => OG,
      getInitializerOfBindingOrAssignmentElement: () => Iw,
      getInterfaceBaseTypeNodes: () => iM,
      getInternalEmitFlags: () => Fm,
      getInvokedExpression: () => $F,
      getIsFileExcluded: () => Ece,
      getIsolatedModules: () => ym,
      getJSDocAugmentsTag: () => Kee,
      getJSDocClassTag: () => B9,
      getJSDocCommentRanges: () => RG,
      getJSDocCommentsAndTags: () => WG,
      getJSDocDeprecatedTag: () => G9,
      getJSDocDeprecatedTagNoCache: () => tte,
      getJSDocEnumTag: () => V9,
      getJSDocHost: () => IS,
      getJSDocImplementsTags: () => Xee,
      getJSDocOverloadTags: () => zG,
      getJSDocOverrideTagNoCache: () => ete,
      getJSDocParameterTags: () => OR,
      getJSDocParameterTagsNoCache: () => Uee,
      getJSDocPrivateTag: () => r0e,
      getJSDocPrivateTagNoCache: () => $ee,
      getJSDocProtectedTag: () => i0e,
      getJSDocProtectedTagNoCache: () => Qee,
      getJSDocPublicTag: () => n0e,
      getJSDocPublicTagNoCache: () => Yee,
      getJSDocReadonlyTag: () => o0e,
      getJSDocReadonlyTagNoCache: () => Zee,
      getJSDocReturnTag: () => nte,
      getJSDocReturnType: () => w2,
      getJSDocRoot: () => tD,
      getJSDocSatisfiesExpressionType: () => XV,
      getJSDocSatisfiesTag: () => j9,
      getJSDocTags: () => kT,
      getJSDocTemplateTag: () => a0e,
      getJSDocThisTag: () => uF,
      getJSDocType: () => $y,
      getJSDocTypeAliasName: () => Vj,
      getJSDocTypeAssertionType: () => MD,
      getJSDocTypeParameterDeclarations: () => T6,
      getJSDocTypeParameterTags: () => Hee,
      getJSDocTypeParameterTagsNoCache: () => qee,
      getJSDocTypeTag: () => LT,
      getJSXImplicitImportBase: () => Xk,
      getJSXRuntimeImport: () => B6,
      getJSXTransformEnabled: () => z6,
      getKeyForCompilerOptions: () => yU,
      getLanguageVariant: () => jk,
      getLastChild: () => AV,
      getLeadingCommentRanges: () => lg,
      getLeadingCommentRangesOfNode: () => xG,
      getLeftmostAccessExpression: () => dD,
      getLeftmostExpression: () => uD,
      getLibFileNameFromLibReference: () => tj,
      getLibNameFromLibReference: () => ej,
      getLibraryNameFromLibFileName: () => EH,
      getLineAndCharacterOfPosition: () => ca,
      getLineInfo: () => VU,
      getLineOfLocalPosition: () => dM,
      getLineStartPositionForPosition: () => Em,
      getLineStarts: () => ag,
      getLinesBetweenPositionAndNextNonWhitespaceCharacter: () => Qne,
      getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter: () => $ne,
      getLinesBetweenPositions: () => xN,
      getLinesBetweenRangeEndAndRangeStart: () => vV,
      getLinesBetweenRangeEndPositions: () => O0e,
      getLiteralText: () => wte,
      getLocalNameForExternalImport: () => PD,
      getLocalSymbolForExportDefault: () => mM,
      getLocaleSpecificMessage: () => Ho,
      getLocaleTimeString: () => cO,
      getMappedContextSpan: () => rJ,
      getMappedDocumentSpan: () => x7,
      getMappedLocation: () => MP,
      getMatchedFileSpec: () => HH,
      getMatchedIncludeSpec: () => qH,
      getMeaningFromDeclaration: () => o7,
      getMeaningFromLocation: () => W1,
      getMembersOfDeclaration: () => $te,
      getModeForFileReference: () => hse,
      getModeForResolutionAtIndex: () => SAe,
      getModeForUsageLocation: () => TH,
      getModifiedTime: () => tI,
      getModifiers: () => mS,
      getModuleInstanceState: () => my,
      getModuleNameStringLiteralAt: () => aO,
      getModuleSpecifierEndingPreference: () => Ere,
      getModuleSpecifierResolverHost: () => Kq,
      getNameForExportedSymbol: () => O7,
      getNameFromImportAttribute: () => n4,
      getNameFromIndexInfo: () => jte,
      getNameFromPropertyName: () => AO,
      getNameOfAccessExpression: () => xV,
      getNameOfCompilerOptionValue: () => q4,
      getNameOfDeclaration: () => Oo,
      getNameOfExpando: () => LG,
      getNameOfJSDocTypedef: () => jee,
      getNameOfScriptTarget: () => W6,
      getNameOrArgument: () => gk,
      getNameTable: () => lK,
      getNamespaceDeclarationNode: () => ZR,
      getNewLineCharacter: () => iv,
      getNewLineKind: () => kO,
      getNewLineOrDefaultFromHost: () => _y,
      getNewTargetContainer: () => ane,
      getNextJSDocCommentLocation: () => FG,
      getNodeChildren: () => Lj,
      getNodeForGeneratedName: () => Rw,
      getNodeId: () => ls,
      getNodeKind: () => ZS,
      getNodeModifiers: () => DP,
      getNodeModulePathParts: () => Z6,
      getNonAssignedNameOfDeclaration: () => cF,
      getNonAssignmentOperatorForCompoundAssignment: () => dP,
      getNonAugmentationDeclaration: () => vG,
      getNonDecoratorTokenPosOfNode: () => fG,
      getNonIncrementalBuildInfoRoots: () => kse,
      getNonModifierTokenPosOfNode: () => Lte,
      getNormalizedAbsolutePath: () => To,
      getNormalizedAbsolutePathWithoutRoot: () => R9,
      getNormalizedPathComponents: () => tF,
      getObjectFlags: () => Hr,
      getOperatorAssociativity: () => $G,
      getOperatorPrecedence: () => Nk,
      getOptionFromName: () => iU,
      getOptionsForLibraryResolution: () => vU,
      getOptionsNameMap: () => OD,
      getOptionsSyntaxByArrayElementValue: () => rj,
      getOptionsSyntaxByValue: () => qre,
      getOrCreateEmitNode: () => jd,
      getOrUpdate: () => KA,
      getOriginalNode: () => yl,
      getOriginalNodeId: () => Fu,
      getOutputDeclarationFileName: () => _P,
      getOutputDeclarationFileNameWorker: () => iH,
      getOutputExtension: () => Zw,
      getOutputFileNames: () => mAe,
      getOutputJSFileNameWorker: () => oH,
      getOutputPathsFor: () => hP,
      getOwnEmitOutputFilePath: () => Cne,
      getOwnKeys: () => Wh,
      getOwnValues: () => $A,
      getPackageJsonTypesVersionsPaths: () => e3,
      getPackageNameFromTypesPackageName: () => aP,
      getPackageScopeForPath: () => oP,
      getParameterSymbolFromJSDoc: () => Ak,
      getParentNodeInSpan: () => xO,
      getParseTreeNode: () => jo,
      getParsedCommandLineOfConfigFile: () => Lw,
      getPathComponents: () => zd,
      getPathFromPathComponents: () => MT,
      getPathUpdater: () => CJ,
      getPathsBasePath: () => g6,
      getPatternFromSpec: () => OV,
      getPendingEmitKindWithSeen: () => W3,
      getPositionOfLineAndCharacter: () => A2,
      getPossibleGenericSignatures: () => Wq,
      getPossibleOriginalInputExtensionForExtension: () => iV,
      getPossibleOriginalInputPathWithoutChangingExt: () => oV,
      getPossibleTypeArgumentsInfo: () => Fq,
      getPreEmitDiagnostics: () => hAe,
      getPrecedingNonSpaceCharacterPosition: () => R7,
      getPrivateIdentifier: () => XU,
      getProperties: () => JU,
      getProperty: () => h2,
      getPropertyAssignmentAliasLikeExpression: () => Sne,
      getPropertyNameForPropertyNameNode: () => c1,
      getPropertyNameFromType: () => Uf,
      getPropertyNameOfBindingOrAssignmentElement: () => Gj,
      getPropertySymbolFromBindingElement: () => I7,
      getPropertySymbolsFromContextualType: () => sz,
      getQuoteFromPreference: () => Yq,
      getQuotePreference: () => Gp,
      getRangesWhere: () => wB,
      getRefactorContextSpan: () => mx,
      getReferencedFileLocation: () => bP,
      getRegexFromPattern: () => ov,
      getRegularExpressionForWildcard: () => TM,
      getRegularExpressionsForWildcards: () => G6,
      getRelativePathFromDirectory: () => cf,
      getRelativePathFromFile: () => MR,
      getRelativePathToDirectoryOrUrl: () => PR,
      getRenameLocation: () => DO,
      getReplacementSpanForContextToken: () => Vq,
      getResolutionDiagnostic: () => RH,
      getResolutionModeOverride: () => HD,
      getResolveJsonModule: () => LS,
      getResolvePackageJsonExports: () => Hk,
      getResolvePackageJsonImports: () => qk,
      getResolvedExternalModuleName: () => nV,
      getResolvedModuleFromResolution: () => pI,
      getResolvedTypeReferenceDirectiveFromResolution: () => MF,
      getRestIndicatorOfBindingOrAssignmentElement: () => P4,
      getRestParameterElementType: () => DG,
      getRightMostAssignedExpression: () => _k,
      getRootDeclaration: () => Jh,
      getRootDirectoryOfResolutionCache: () => Bse,
      getRootLength: () => zh,
      getScriptKind: () => sJ,
      getScriptKindFromFileName: () => H6,
      getScriptTargetFeatures: () => mG,
      getSelectedEffectiveModifierFlags: () => AI,
      getSelectedSyntacticModifierFlags: () => Wne,
      getSemanticClassifications: () => Ace,
      getSemanticJsxChildren: () => iD,
      getSetAccessorTypeAnnotationNode: () => Pne,
      getSetAccessorValueParameter: () => uM,
      getSetExternalModuleIndicator: () => Uk,
      getShebang: () => sF,
      getSingleVariableOfVariableStatement: () => TI,
      getSnapshotText: () => fx,
      getSnippetElement: () => uj,
      getSourceFileOfModule: () => X2,
      getSourceFileOfNode: () => Wn,
      getSourceFilePathInNewDir: () => v6,
      getSourceFileVersionAsHashFromText: () => U3,
      getSourceFilesToEmit: () => y6,
      getSourceMapRange: () => lv,
      getSourceMapper: () => Bce,
      getSourceTextOfNodeFromSourceFile: () => vS,
      getSpanOfTokenAtPosition: () => jh,
      getSpellingSuggestion: () => fS,
      getStartPositionOfLine: () => _b,
      getStartPositionOfRange: () => hM,
      getStartsOnNewLine: () => wM,
      getStaticPropertiesAndClassStaticBlock: () => g3,
      getStrictOptionValue: () => Vd,
      getStringComparer: () => xR,
      getSubPatternFromSpec: () => V6,
      getSuperCallFromStatement: () => h3,
      getSuperContainer: () => sk,
      getSupportedCodeFixes: () => aK,
      getSupportedExtensions: () => SM,
      getSupportedExtensionsWithJsonIfResolveJsonModule: () => $k,
      getSwitchedType: () => dJ,
      getSymbolId: () => Ta,
      getSymbolNameForPrivateIdentifier: () => Ck,
      getSymbolTarget: () => lJ,
      getSyntacticClassifications: () => Ice,
      getSyntacticModifierFlags: () => nv,
      getSyntacticModifierFlagsNoCache: () => uV,
      getSynthesizedDeepClone: () => _s,
      getSynthesizedDeepCloneWithReplacements: () => aw,
      getSynthesizedDeepClones: () => WS,
      getSynthesizedDeepClonesWithReplacements: () => oj,
      getSyntheticLeadingComments: () => gD,
      getSyntheticTrailingComments: () => uw,
      getTargetLabel: () => l7,
      getTargetOfBindingOrAssignmentElement: () => kb,
      getTemporaryModuleResolutionState: () => iP,
      getTextOfConstantValue: () => Ote,
      getTextOfIdentifierOrLiteral: () => zf,
      getTextOfJSDocComment: () => O2,
      getTextOfJsxAttributeName: () => iw,
      getTextOfJsxNamespacedName: () => LM,
      getTextOfNode: () => Al,
      getTextOfNodeFromSourceText: () => jN,
      getTextOfPropertyName: () => hI,
      getThisContainer: () => vu,
      getThisParameter: () => CS,
      getTokenAtPosition: () => Fi,
      getTokenPosOfNode: () => gb,
      getTokenSourceMapRange: () => oSe,
      getTouchingPropertyName: () => ip,
      getTouchingToken: () => eC,
      getTrailingCommentRanges: () => sb,
      getTrailingSemicolonDeferringWriter: () => tV,
      getTransformers: () => Zae,
      getTsBuildInfoEmitOutputFilePath: () => c0,
      getTsConfigObjectLiteralExpression: () => JN,
      getTsConfigPropArrayElementValue: () => qF,
      getTypeAnnotationNode: () => Lne,
      getTypeArgumentOrTypeParameterList: () => Jle,
      getTypeKeywordOfTypeOnlyImport: () => Zq,
      getTypeNode: () => sie,
      getTypeNodeIfAccessible: () => OP,
      getTypeParameterFromJsDoc: () => _ne,
      getTypeParameterOwner: () => QTe,
      getTypesPackageName: () => s3,
      getUILocale: () => YQ,
      getUniqueName: () => B1,
      getUniqueSymbolId: () => cce,
      getUseDefineForClassFields: () => Jk,
      getWatchErrorSummaryDiagnosticMessage: () => BH,
      getWatchFactory: () => fH,
      group: () => IR,
      groupBy: () => VB,
      guessIndentation: () => Ste,
      handleNoEmitOptions: () => xH,
      handleWatchOptionsConfigDirTemplateSubstitution: () => K4,
      hasAbstractModifier: () => PS,
      hasAccessorModifier: () => Kh,
      hasAmbientModifier: () => dV,
      hasChangesInResolutions: () => dG,
      hasContextSensitiveParameters: () => Q6,
      hasDecorators: () => pf,
      hasDocComment: () => Hle,
      hasDynamicName: () => oy,
      hasEffectiveModifier: () => wp,
      hasEffectiveModifiers: () => cV,
      hasEffectiveReadonlyModifier: () => u1,
      hasExtension: () => NR,
      hasImplementationTSFileExtension: () => Tre,
      hasIndexSignature: () => cJ,
      hasInferredType: () => i4,
      hasInitializer: () => Zy,
      hasInvalidEscape: () => ZG,
      hasJSDocNodes: () => ef,
      hasJSDocParameterTags: () => Jee,
      hasJSFileExtension: () => Tg,
      hasJsonModuleEmitEnabled: () => O6,
      hasOnlyExpressionInitializer: () => ZE,
      hasOverrideModifier: () => S6,
      hasPossibleExternalModuleReference: () => Gte,
      hasProperty: () => Rs,
      hasPropertyAccessExpressionWithName: () => _O,
      hasQuestionToken: () => vI,
      hasRecordedExternalHelpers: () => Jie,
      hasResolutionModeOverride: () => zre,
      hasRestParameter: () => oG,
      hasScopeMarker: () => fte,
      hasStaticModifier: () => wc,
      hasSyntacticModifier: () => di,
      hasSyntacticModifiers: () => One,
      hasTSFileExtension: () => f1,
      hasTabstop: () => Ore,
      hasTrailingDirectorySeparator: () => ob,
      hasType: () => xF,
      hasTypeArguments: () => x0e,
      hasZeroOrOneAsteriskCharacter: () => PV,
      hostGetCanonicalFileName: () => ay,
      hostUsesCaseSensitiveFileNames: () => d1,
      idText: () => Kr,
      identifierIsThisKeyword: () => sV,
      identifierToKeywordKind: () => JE,
      identity: () => Vs,
      identitySourceMapConsumer: () => UU,
      ignoreSourceNewlines: () => fj,
      ignoredPaths: () => $8,
      importFromModuleSpecifier: () => eM,
      importSyntaxAffectsModuleResolution: () => NV,
      indexOfAnyCharCode: () => Bi,
      indexOfNode: () => UR,
      indicesOf: () => z8,
      inferredTypesContainingFile: () => vP,
      injectClassNamedEvaluationHelperBlockIfMissing: () => T3,
      injectClassThisAssignmentIfMissing: () => xae,
      insertImports: () => Qq,
      insertSorted: () => $v,
      insertStatementAfterCustomPrologue: () => e1,
      insertStatementAfterStandardPrologue: () => v0e,
      insertStatementsAfterCustomPrologue: () => uG,
      insertStatementsAfterStandardPrologue: () => mg,
      intersperse: () => bo,
      intrinsicTagNameToString: () => YV,
      introducesArgumentsExoticObject: () => ene,
      inverseJsxOptionMap: () => Mw,
      isAbstractConstructorSymbol: () => Zne,
      isAbstractModifier: () => vie,
      isAccessExpression: () => Ks,
      isAccessibilityModifier: () => Bq,
      isAccessor: () => fb,
      isAccessorModifier: () => vj,
      isAliasableExpression: () => s6,
      isAmbientModule: () => yu,
      isAmbientPropertyDeclaration: () => TG,
      isAnyDirectorySeparator: () => A9,
      isAnyImportOrBareOrAccessedRequire: () => zte,
      isAnyImportOrReExport: () => Z2,
      isAnyImportOrRequireStatement: () => Bte,
      isAnyImportSyntax: () => mI,
      isAnySupportedFileExtension: () => Y0e,
      isApplicableVersionedTypesKey: () => Gw,
      isArgumentExpressionOfElementAccess: () => Cq,
      isArray: () => Mo,
      isArrayBindingElement: () => bF,
      isArrayBindingOrAssignmentElement: () => V2,
      isArrayBindingOrAssignmentPattern: () => Z9,
      isArrayBindingPattern: () => pv,
      isArrayLiteralExpression: () => Cd,
      isArrayLiteralOrObjectLiteralDestructuringPattern: () => hv,
      isArrayTypeNode: () => hw,
      isArrowFunction: () => Xs,
      isAsExpression: () => SD,
      isAssertClause: () => Rie,
      isAssertEntry: () => _Se,
      isAssertionExpression: () => yS,
      isAssertsKeyword: () => gie,
      isAssignmentDeclaration: () => $N,
      isAssignmentExpression: () => id,
      isAssignmentOperator: () => sy,
      isAssignmentPattern: () => zN,
      isAssignmentTarget: () => Tb,
      isAsteriskToken: () => fw,
      isAsyncFunction: () => oM,
      isAsyncModifier: () => FM,
      isAutoAccessorPropertyDeclaration: () => Yu,
      isAwaitExpression: () => Pb,
      isAwaitKeyword: () => yj,
      isBigIntLiteral: () => yD,
      isBinaryExpression: () => Nr,
      isBinaryLogicalOperator: () => wk,
      isBinaryOperatorToken: () => toe,
      isBindableObjectDefinePropertyCall: () => o1,
      isBindableStaticAccessExpression: () => AS,
      isBindableStaticElementAccessExpression: () => i6,
      isBindableStaticNameExpression: () => a1,
      isBindingElement: () => Ha,
      isBindingElementOfBareOrAccessedRequire: () => cne,
      isBindingName: () => $E,
      isBindingOrAssignmentElement: () => cte,
      isBindingOrAssignmentPattern: () => B2,
      isBindingPattern: () => Qo,
      isBlock: () => ea,
      isBlockLike: () => hx,
      isBlockOrCatchScoped: () => hG,
      isBlockScope: () => SG,
      isBlockScopedContainerTopLevel: () => Fte,
      isBooleanLiteral: () => FN,
      isBreakOrContinueStatement: () => kN,
      isBreakStatement: () => fSe,
      isBuildCommand: () => lle,
      isBuildInfoFile: () => ese,
      isBuilderProgram: () => VH,
      isBundle: () => Mie,
      isCallChain: () => KE,
      isCallExpression: () => Zo,
      isCallExpressionTarget: () => Eq,
      isCallLikeExpression: () => gS,
      isCallLikeOrFunctionLikeExpression: () => eG,
      isCallOrNewExpression: () => Gh,
      isCallOrNewExpressionTarget: () => Aq,
      isCallSignatureDeclaration: () => UI,
      isCallToHelper: () => WM,
      isCaseBlock: () => HM,
      isCaseClause: () => xD,
      isCaseKeyword: () => Tie,
      isCaseOrDefaultClause: () => AF,
      isCatchClause: () => US,
      isCatchClauseVariableDeclaration: () => wre,
      isCatchClauseVariableDeclarationOrBindingElement: () => _G,
      isCheckJsEnabledForFile: () => IM,
      isCircularBuildOrder: () => ux,
      isClassDeclaration: () => Dc,
      isClassElement: () => bc,
      isClassExpression: () => dc,
      isClassInstanceProperty: () => ste,
      isClassLike: () => ui,
      isClassMemberModifier: () => Y9,
      isClassNamedEvaluationHelperBlock: () => lx,
      isClassOrTypeElement: () => vF,
      isClassStaticBlockDeclaration: () => Ql,
      isClassThisAssignmentBlock: () => pP,
      isColonToken: () => hie,
      isCommaExpression: () => Sw,
      isCommaListExpression: () => jM,
      isCommaSequence: () => YM,
      isCommaToken: () => mie,
      isComment: () => y7,
      isCommonJsExportPropertyAssignment: () => UF,
      isCommonJsExportedExpression: () => Qte,
      isCompoundAssignment: () => cP,
      isComputedNonLiteralName: () => ek,
      isComputedPropertyName: () => va,
      isConciseBody: () => SF,
      isConditionalExpression: () => T1,
      isConditionalTypeNode: () => zS,
      isConstAssertion: () => $V,
      isConstTypeReference: () => Om,
      isConstructSignatureDeclaration: () => GM,
      isConstructorDeclaration: () => Ml,
      isConstructorTypeNode: () => vD,
      isContextualKeyword: () => c6,
      isContinueStatement: () => pSe,
      isCustomPrologue: () => ok,
      isDebuggerStatement: () => mSe,
      isDeclaration: () => rd,
      isDeclarationBindingElement: () => z2,
      isDeclarationFileName: () => ad,
      isDeclarationName: () => L_,
      isDeclarationNameOfEnumOrNamespace: () => TV,
      isDeclarationReadonly: () => nk,
      isDeclarationStatement: () => gte,
      isDeclarationWithTypeParameterChildren: () => AG,
      isDeclarationWithTypeParameters: () => EG,
      isDecorator: () => Wc,
      isDecoratorTarget: () => kle,
      isDefaultClause: () => qM,
      isDefaultImport: () => s1,
      isDefaultModifier: () => _4,
      isDefaultedExpandoInitializer: () => dne,
      isDeleteExpression: () => Eie,
      isDeleteTarget: () => GG,
      isDeprecatedDeclaration: () => W7,
      isDestructuringAssignment: () => rv,
      isDiskPathRoot: () => I9,
      isDoStatement: () => uSe,
      isDocumentRegistryEntry: () => OO,
      isDotDotDotToken: () => m4,
      isDottedName: () => Wk,
      isDynamicName: () => u6,
      isEffectiveExternalModule: () => HR,
      isEffectiveStrictModeSourceFile: () => bG,
      isElementAccessChain: () => U9,
      isElementAccessExpression: () => Ws,
      isEmittedFileOfProgram: () => sse,
      isEmptyArrayLiteral: () => Une,
      isEmptyBindingElement: () => Bee,
      isEmptyBindingPattern: () => zee,
      isEmptyObjectLiteral: () => _V,
      isEmptyStatement: () => Sj,
      isEmptyStringLiteral: () => MG,
      isEntityName: () => Mu,
      isEntityNameExpression: () => Ds,
      isEnumConst: () => OT,
      isEnumDeclaration: () => ZT,
      isEnumMember: () => py,
      isEqualityOperatorKind: () => N7,
      isEqualsGreaterThanToken: () => _ie,
      isExclamationToken: () => mw,
      isExcludedFile: () => Noe,
      isExclusivelyTypeOnlyImportOrExport: () => bH,
      isExpandoPropertyDeclaration: () => WI,
      isExportAssignment: () => ll,
      isExportDeclaration: () => pc,
      isExportModifier: () => VI,
      isExportName: () => N4,
      isExportNamespaceAsDefaultDeclaration: () => OF,
      isExportOrDefaultModifier: () => xw,
      isExportSpecifier: () => ou,
      isExportsIdentifier: () => i1,
      isExportsOrModuleExportsOrAlias: () => JS,
      isExpression: () => St,
      isExpressionNode: () => P_,
      isExpressionOfExternalModuleImportEqualsDeclaration: () => Wle,
      isExpressionOfOptionalChainRoot: () => hF,
      isExpressionStatement: () => od,
      isExpressionWithTypeArguments: () => dy,
      isExpressionWithTypeArgumentsInClassExtendsClause: () => A6,
      isExternalModule: () => zc,
      isExternalModuleAugmentation: () => TS,
      isExternalModuleImportEqualsDeclaration: () => FT,
      isExternalModuleIndicator: () => U2,
      isExternalModuleNameRelative: () => td,
      isExternalModuleReference: () => uy,
      isExternalModuleSymbol: () => dI,
      isExternalOrCommonJsModule: () => Pp,
      isFileLevelReservedGeneratedIdentifier: () => F2,
      isFileLevelUniqueName: () => kF,
      isFileProbablyExternalModule: () => Cw,
      isFirstDeclarationOfSymbolParameter: () => iJ,
      isFixablePromiseHandler: () => wJ,
      isForInOrOfStatement: () => QE,
      isForInStatement: () => T4,
      isForInitializer: () => Of,
      isForOfStatement: () => gw,
      isForStatement: () => QT,
      isFullSourceFile: () => _g,
      isFunctionBlock: () => SS,
      isFunctionBody: () => nG,
      isFunctionDeclaration: () => Zl,
      isFunctionExpression: () => Us,
      isFunctionExpressionOrArrowFunction: () => Rb,
      isFunctionLike: () => Yo,
      isFunctionLikeDeclaration: () => Ms,
      isFunctionLikeKind: () => aI,
      isFunctionLikeOrClassStaticBlockDeclaration: () => BR,
      isFunctionOrConstructorTypeNode: () => lte,
      isFunctionOrModuleBlock: () => $9,
      isFunctionSymbol: () => fne,
      isFunctionTypeNode: () => w_,
      isGeneratedIdentifier: () => pl,
      isGeneratedPrivateIdentifier: () => YE,
      isGetAccessor: () => ug,
      isGetAccessorDeclaration: () => Hf,
      isGetOrSetAccessorDeclaration: () => W2,
      isGlobalScopeAugmentation: () => M_,
      isGlobalSourceFile: () => ev,
      isGrammarError: () => Mte,
      isHeritageClause: () => Fp,
      isHoistedFunction: () => VF,
      isHoistedVariableStatement: () => jF,
      isIdentifier: () => He,
      isIdentifierANonContextualKeyword: () => qG,
      isIdentifierName: () => Tne,
      isIdentifierOrThisTypeNode: () => $ie,
      isIdentifierPart: () => ey,
      isIdentifierStart: () => R_,
      isIdentifierText: () => fp,
      isIdentifierTypePredicate: () => tne,
      isIdentifierTypeReference: () => Nre,
      isIfStatement: () => $T,
      isIgnoredFileFromWildCardWatching: () => tO,
      isImplicitGlob: () => wV,
      isImportAttribute: () => Die,
      isImportAttributeName: () => ate,
      isImportAttributes: () => A1,
      isImportCall: () => Qu,
      isImportClause: () => Vm,
      isImportDeclaration: () => vl,
      isImportEqualsDeclaration: () => Fc,
      isImportKeyword: () => BM,
      isImportMeta: () => KR,
      isImportOrExportSpecifier: () => ub,
      isImportOrExportSpecifierName: () => lce,
      isImportSpecifier: () => Eu,
      isImportTypeAssertionContainer: () => hSe,
      isImportTypeNode: () => e_,
      isImportable: () => EJ,
      isInComment: () => mv,
      isInCompoundLikeAssignment: () => BG,
      isInExpressionContext: () => QF,
      isInJSDoc: () => YN,
      isInJSFile: () => Ir,
      isInJSXText: () => Ule,
      isInJsonFile: () => e6,
      isInNonReferenceComment: () => Yle,
      isInReferenceComment: () => Xle,
      isInRightSideOfInternalImportEqualsDeclaration: () => a7,
      isInString: () => px,
      isInTemplateString: () => Oq,
      isInTopLevelContext: () => XF,
      isInTypeQuery: () => EI,
      isIncrementalBuildInfo: () => sO,
      isIncrementalBundleEmitBuildInfo: () => Dse,
      isIncrementalCompilation: () => kS,
      isIndexSignatureDeclaration: () => Mb,
      isIndexedAccessTypeNode: () => BS,
      isInferTypeNode: () => y1,
      isInfinityOrNaNString: () => NM,
      isInitializedProperty: () => Hw,
      isInitializedVariable: () => Vk,
      isInsideJsxElement: () => _7,
      isInsideJsxElementOrAttribute: () => jle,
      isInsideNodeModules: () => MO,
      isInsideTemplateLiteral: () => TO,
      isInstanceOfExpression: () => I6,
      isInstantiatedModule: () => WU,
      isInterfaceDeclaration: () => gd,
      isInternalDeclaration: () => Ete,
      isInternalModuleImportEqualsDeclaration: () => r1,
      isInternalName: () => Fj,
      isIntersectionTypeNode: () => JI,
      isIntrinsicJsxName: () => oD,
      isIterationStatement: () => mb,
      isJSDoc: () => mh,
      isJSDocAllType: () => kie,
      isJSDocAugmentsTag: () => QI,
      isJSDocAuthorTag: () => bSe,
      isJSDocCallbackTag: () => xj,
      isJSDocClassTag: () => Oie,
      isJSDocCommentContainingNode: () => IF,
      isJSDocConstructSignature: () => bI,
      isJSDocDeprecatedTag: () => Mj,
      isJSDocEnumTag: () => vw,
      isJSDocFunctionType: () => DD,
      isJSDocImplementsTag: () => R4,
      isJSDocImportTag: () => o_,
      isJSDocIndexSignature: () => n6,
      isJSDocLikeText: () => Jj,
      isJSDocLink: () => Pie,
      isJSDocLinkCode: () => Lie,
      isJSDocLinkLike: () => cI,
      isJSDocLinkPlain: () => ySe,
      isJSDocMemberName: () => n0,
      isJSDocNameReference: () => JM,
      isJSDocNamepathType: () => vSe,
      isJSDocNamespaceBody: () => p0e,
      isJSDocNode: () => GR,
      isJSDocNonNullableType: () => E4,
      isJSDocNullableType: () => RD,
      isJSDocOptionalParameter: () => e4,
      isJSDocOptionalType: () => Ij,
      isJSDocOverloadTag: () => CD,
      isJSDocOverrideTag: () => I4,
      isJSDocParameterTag: () => mf,
      isJSDocPrivateTag: () => Dj,
      isJSDocPropertyLikeTag: () => wN,
      isJSDocPropertyTag: () => Wie,
      isJSDocProtectedTag: () => Cj,
      isJSDocPublicTag: () => Rj,
      isJSDocReadonlyTag: () => Nj,
      isJSDocReturnTag: () => x4,
      isJSDocSatisfiesExpression: () => KV,
      isJSDocSatisfiesTag: () => D4,
      isJSDocSeeTag: () => TSe,
      isJSDocSignature: () => fv,
      isJSDocTag: () => VR,
      isJSDocTemplateTag: () => bm,
      isJSDocThisTag: () => Pj,
      isJSDocThrowsTag: () => ESe,
      isJSDocTypeAlias: () => hm,
      isJSDocTypeAssertion: () => HS,
      isJSDocTypeExpression: () => t0,
      isJSDocTypeLiteral: () => x1,
      isJSDocTypeTag: () => KM,
      isJSDocTypedefTag: () => R1,
      isJSDocUnknownTag: () => SSe,
      isJSDocUnknownType: () => wie,
      isJSDocVariadicType: () => A4,
      isJSXTagName: () => $R,
      isJsonEqual: () => Y6,
      isJsonSourceFile: () => Ff,
      isJsxAttribute: () => i_,
      isJsxAttributeLike: () => EF,
      isJsxAttributeName: () => Fre,
      isJsxAttributes: () => jS,
      isJsxCallLike: () => Tte,
      isJsxChild: () => J2,
      isJsxClosingElement: () => VS,
      isJsxClosingFragment: () => Nie,
      isJsxElement: () => r_,
      isJsxExpression: () => ID,
      isJsxFragment: () => e0,
      isJsxNamespacedName: () => fh,
      isJsxOpeningElement: () => ph,
      isJsxOpeningFragment: () => jm,
      isJsxOpeningLikeElement: () => ru,
      isJsxOpeningLikeElementTagName: () => wle,
      isJsxSelfClosingElement: () => I1,
      isJsxSpreadAttribute: () => $I,
      isJsxTagNameExpression: () => BN,
      isJsxText: () => BI,
      isJumpStatementTarget: () => gO,
      isKeyword: () => ep,
      isKeywordOrPunctuation: () => l6,
      isKnownSymbol: () => sM,
      isLabelName: () => Rq,
      isLabelOfLabeledStatement: () => xq,
      isLabeledStatement: () => Lb,
      isLateVisibilityPaintedStatement: () => FF,
      isLeftHandSideExpression: () => $u,
      isLet: () => GF,
      isLineBreak: () => eu,
      isLiteralComputedPropertyDeclarationName: () => xk,
      isLiteralExpression: () => XE,
      isLiteralExpressionOfObject: () => K9,
      isLiteralImportTypeNode: () => ry,
      isLiteralKind: () => ON,
      isLiteralNameOfPropertyDeclarationOrIndexAccess: () => c7,
      isLiteralTypeLiteral: () => pte,
      isLiteralTypeNode: () => uv,
      isLocalName: () => fy,
      isLogicalOperator: () => Gne,
      isLogicalOrCoalescingAssignmentExpression: () => pV,
      isLogicalOrCoalescingAssignmentOperator: () => pM,
      isLogicalOrCoalescingBinaryExpression: () => Ok,
      isLogicalOrCoalescingBinaryOperator: () => E6,
      isMappedTypeNode: () => b1,
      isMemberName: () => dg,
      isMetaProperty: () => S1,
      isMethodDeclaration: () => Nl,
      isMethodOrAccessor: () => sI,
      isMethodSignature: () => Gm,
      isMinusToken: () => gj,
      isMissingDeclaration: () => gSe,
      isMissingPackageJsonInfo: () => Goe,
      isModifier: () => Aa,
      isModifierKind: () => pb,
      isModifierLike: () => fl,
      isModuleAugmentationExternal: () => yG,
      isModuleBlock: () => t_,
      isModuleBody: () => mte,
      isModuleDeclaration: () => uc,
      isModuleExportName: () => S4,
      isModuleExportsAccessExpression: () => gg,
      isModuleIdentifier: () => kG,
      isModuleName: () => eoe,
      isModuleOrEnumDeclaration: () => H2,
      isModuleReference: () => vte,
      isModuleSpecifierLike: () => A7,
      isModuleWithStringLiteralName: () => WF,
      isNameOfFunctionDeclaration: () => Mq,
      isNameOfModuleDeclaration: () => Nq,
      isNamedDeclaration: () => nd,
      isNamedEvaluation: () => Lp,
      isNamedEvaluationSource: () => JG,
      isNamedExportBindings: () => q9,
      isNamedExports: () => Jf,
      isNamedImportBindings: () => rG,
      isNamedImports: () => n_,
      isNamedImportsOrExports: () => M6,
      isNamedTupleMember: () => bD,
      isNamespaceBody: () => u0e,
      isNamespaceExport: () => O_,
      isNamespaceExportDeclaration: () => yw,
      isNamespaceImport: () => Ig,
      isNamespaceReexportDeclaration: () => lne,
      isNewExpression: () => GS,
      isNewExpressionTarget: () => IP,
      isNewScopeNode: () => Hre,
      isNoSubstitutionTemplateLiteral: () => g1,
      isNodeArray: () => hS,
      isNodeArrayMultiLine: () => Yne,
      isNodeDescendantOf: () => xS,
      isNodeKind: () => gF,
      isNodeLikeSystem: () => e9,
      isNodeModulesDirectory: () => rF,
      isNodeWithPossibleHoistedDeclaration: () => vne,
      isNonContextualKeyword: () => HG,
      isNonGlobalAmbientModule: () => gG,
      isNonNullAccess: () => Wre,
      isNonNullChain: () => _F,
      isNonNullExpression: () => XI,
      isNonStaticMethodOrAccessorWithPrivateName: () => vae,
      isNotEmittedStatement: () => Cie,
      isNullishCoalesce: () => H9,
      isNumber: () => eb,
      isNumericLiteral: () => np,
      isNumericLiteralName: () => Eg,
      isObjectBindingElementWithoutPropertyName: () => IO,
      isObjectBindingOrAssignmentElement: () => G2,
      isObjectBindingOrAssignmentPattern: () => Q9,
      isObjectBindingPattern: () => ff,
      isObjectLiteralElement: () => iG,
      isObjectLiteralElementLike: () => ny,
      isObjectLiteralExpression: () => Wa,
      isObjectLiteralMethod: () => mm,
      isObjectLiteralOrClassExpressionMethodOrAccessor: () => HF,
      isObjectTypeDeclaration: () => DI,
      isOmittedExpression: () => Jc,
      isOptionalChain: () => tu,
      isOptionalChainRoot: () => PN,
      isOptionalDeclaration: () => wI,
      isOptionalJSDocPropertyLikeTag: () => rw,
      isOptionalTypeNode: () => g4,
      isOuterExpression: () => M4,
      isOutermostOptionalChain: () => LN,
      isOverrideModifier: () => bie,
      isPackageJsonInfo: () => n3,
      isPackedArrayLiteral: () => qV,
      isParameter: () => to,
      isParameterPropertyDeclaration: () => Np,
      isParameterPropertyModifier: () => WN,
      isParenthesizedExpression: () => Ou,
      isParenthesizedTypeNode: () => v1,
      isParseTreeNode: () => MN,
      isPartOfParameterDeclaration: () => jT,
      isPartOfTypeNode: () => Hh,
      isPartOfTypeOnlyImportOrExportDeclaration: () => ote,
      isPartOfTypeQuery: () => ZF,
      isPartiallyEmittedExpression: () => Aie,
      isPatternMatch: () => V8,
      isPinnedComment: () => wF,
      isPlainJsFile: () => VN,
      isPlusToken: () => _j,
      isPossiblyTypeArgumentPosition: () => bO,
      isPostfixUnaryExpression: () => Tj,
      isPrefixUnaryExpression: () => YT,
      isPrimitiveLiteralValue: () => r4,
      isPrivateIdentifier: () => eo,
      isPrivateIdentifierClassElementDeclaration: () => nu,
      isPrivateIdentifierPropertyAccessExpression: () => zR,
      isPrivateIdentifierSymbol: () => Ane,
      isProgramUptoDate: () => AH,
      isPrologueDirective: () => Uh,
      isPropertyAccessChain: () => mF,
      isPropertyAccessEntityNameExpression: () => Fk,
      isPropertyAccessExpression: () => qr,
      isPropertyAccessOrQualifiedName: () => j2,
      isPropertyAccessOrQualifiedNameOrImportTypeNode: () => dte,
      isPropertyAssignment: () => Cc,
      isPropertyDeclaration: () => Po,
      isPropertyName: () => vc,
      isPropertyNameLiteral: () => qh,
      isPropertySignature: () => Su,
      isPrototypeAccess: () => Ab,
      isPrototypePropertyAssignment: () => vk,
      isPunctuation: () => UG,
      isPushOrUnshiftIdentifier: () => KG,
      isQualifiedName: () => ku,
      isQuestionDotToken: () => h4,
      isQuestionOrExclamationToken: () => Yie,
      isQuestionOrPlusOrMinusToken: () => Zie,
      isQuestionToken: () => Nb,
      isReadonlyKeyword: () => yie,
      isReadonlyKeywordOrPlusOrMinusToken: () => Qie,
      isRecognizedTripleSlashComment: () => pG,
      isReferenceFileLocation: () => qD,
      isReferencedFile: () => d0,
      isRegularExpressionLiteral: () => mj,
      isRequireCall: () => Zu,
      isRequireVariableStatement: () => fk,
      isRestParameter: () => C_,
      isRestTypeNode: () => y4,
      isReturnStatement: () => tf,
      isReturnStatementWithFixablePromiseHandler: () => H7,
      isRightSideOfAccessExpression: () => hV,
      isRightSideOfInstanceofExpression: () => jne,
      isRightSideOfPropertyAccess: () => $D,
      isRightSideOfQualifiedName: () => Ole,
      isRightSideOfQualifiedNameOrPropertyAccess: () => fM,
      isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName: () => Vne,
      isRootedDiskPath: () => Cp,
      isSameEntityName: () => QR,
      isSatisfiesExpression: () => ED,
      isSemicolonClassElement: () => Iie,
      isSetAccessor: () => Vh,
      isSetAccessorDeclaration: () => gp,
      isShiftOperatorOrHigher: () => Uj,
      isShorthandAmbientModuleSymbol: () => Q2,
      isShorthandPropertyAssignment: () => Ud,
      isSideEffectImport: () => ZV,
      isSignedNumericLiteral: () => d6,
      isSimpleCopiableExpression: () => KS,
      isSimpleInlineableExpression: () => z_,
      isSimpleParameterList: () => qw,
      isSingleOrDoubleQuote: () => mk,
      isSolutionConfig: () => fU,
      isSourceElement: () => Bre,
      isSourceFile: () => Yi,
      isSourceFileFromLibrary: () => sC,
      isSourceFileJS: () => Pu,
      isSourceFileNotJson: () => t6,
      isSourceMapping: () => _ae,
      isSpecialPropertyDeclaration: () => pne,
      isSpreadAssignment: () => xg,
      isSpreadElement: () => qf,
      isStatement: () => Vi,
      isStatementButNotDeclaration: () => q2,
      isStatementOrBlock: () => yte,
      isStatementWithLocals: () => Nte,
      isStatic: () => ua,
      isStaticModifier: () => jI,
      isString: () => Bo,
      isStringANonContextualKeyword: () => SI,
      isStringAndEmptyAnonymousObjectIntersection: () => Kle,
      isStringDoubleQuoted: () => r6,
      isStringLiteral: () => ka,
      isStringLiteralLike: () => ds,
      isStringLiteralOrJsxExpression: () => bte,
      isStringLiteralOrTemplate: () => pce,
      isStringOrNumericLiteralLike: () => uf,
      isStringOrRegularExpressionOrTemplateLiteral: () => zq,
      isStringTextContainingNode: () => X9,
      isSuperCall: () => n1,
      isSuperKeyword: () => zM,
      isSuperProperty: () => mp,
      isSupportedSourceFileName: () => zV,
      isSwitchStatement: () => UM,
      isSyntaxList: () => ND,
      isSyntheticExpression: () => dSe,
      isSyntheticReference: () => YI,
      isTagName: () => Dq,
      isTaggedTemplateExpression: () => XT,
      isTaggedTemplateTag: () => Lle,
      isTemplateExpression: () => b4,
      isTemplateHead: () => GI,
      isTemplateLiteral: () => lI,
      isTemplateLiteralKind: () => db,
      isTemplateLiteralToken: () => rte,
      isTemplateLiteralTypeNode: () => Sie,
      isTemplateLiteralTypeSpan: () => bj,
      isTemplateMiddle: () => hj,
      isTemplateMiddleOrTemplateTail: () => yF,
      isTemplateSpan: () => AD,
      isTemplateTail: () => f4,
      isTextWhiteSpaceLike: () => ece,
      isThis: () => QD,
      isThisContainerOrFunctionBlock: () => one,
      isThisIdentifier: () => Eb,
      isThisInTypeQuery: () => NS,
      isThisInitializedDeclaration: () => YF,
      isThisInitializedObjectBindingExpression: () => sne,
      isThisProperty: () => lk,
      isThisTypeNode: () => VM,
      isThisTypeParameter: () => MM,
      isThisTypePredicate: () => nne,
      isThrowStatement: () => Aj,
      isToken: () => oI,
      isTokenKind: () => J9,
      isTraceEnabled: () => wb,
      isTransientSymbol: () => pg,
      isTrivia: () => rD,
      isTryStatement: () => E1,
      isTupleTypeNode: () => qI,
      isTypeAlias: () => Sk,
      isTypeAliasDeclaration: () => vm,
      isTypeAssertionExpression: () => v4,
      isTypeDeclaration: () => kI,
      isTypeElement: () => _S,
      isTypeKeyword: () => CP,
      isTypeKeywordTokenOrIdentifier: () => T7,
      isTypeLiteralNode: () => wu,
      isTypeNode: () => Ri,
      isTypeNodeKind: () => IV,
      isTypeOfExpression: () => TD,
      isTypeOnlyExportDeclaration: () => ite,
      isTypeOnlyImportDeclaration: () => FR,
      isTypeOnlyImportOrExportDeclaration: () => Qy,
      isTypeOperatorNode: () => KT,
      isTypeParameterDeclaration: () => sl,
      isTypePredicateNode: () => HI,
      isTypeQueryNode: () => FS,
      isTypeReferenceNode: () => Wp,
      isTypeReferenceType: () => RF,
      isTypeUsableAsPropertyName: () => jf,
      isUMDExportSymbol: () => N6,
      isUnaryExpression: () => tG,
      isUnaryExpressionWithWrite: () => ute,
      isUnicodeIdentifierStart: () => oF,
      isUnionTypeNode: () => dv,
      isUrl: () => yee,
      isValidBigIntString: () => $6,
      isValidESSymbolDeclaration: () => Zte,
      isValidTypeOnlyAliasUseSite: () => HT,
      isValueSignatureDeclaration: () => l1,
      isVarAwaitUsing: () => rk,
      isVarConst: () => JR,
      isVarConstLike: () => Xte,
      isVarUsing: () => ik,
      isVariableDeclaration: () => yi,
      isVariableDeclarationInVariableStatement: () => qN,
      isVariableDeclarationInitializedToBareOrAccessedRequire: () => ES,
      isVariableDeclarationInitializedToRequire: () => pk,
      isVariableDeclarationList: () => _d,
      isVariableLike: () => HN,
      isVariableStatement: () => ac,
      isVoidExpression: () => KI,
      isWatchSet: () => SV,
      isWhileStatement: () => Ej,
      isWhiteSpaceLike: () => sg,
      isWhiteSpaceSingleLine: () => Bh,
      isWithStatement: () => xie,
      isWriteAccess: () => RI,
      isWriteOnlyAccess: () => C6,
      isYieldExpression: () => _w,
      jsxModeNeedsExplicitImport: () => bJ,
      keywordPart: () => Vp,
      last: () => Ba,
      lastOrUndefined: () => Zs,
      length: () => et,
      libMap: () => Qj,
      libs: () => F4,
      lineBreakPart: () => iC,
      loadModuleFromGlobalCache: () => Qoe,
      loadWithModeAwareCache: () => rO,
      makeIdentifierFromModuleName: () => Wte,
      makeImport: () => Vb,
      makeStringLiteral: () => NP,
      mangleScopedPackageName: () => GD,
      map: () => Vt,
      mapAllOrFail: () => DT,
      mapDefined: () => Ui,
      mapDefinedIterator: () => nh,
      mapEntries: () => GQ,
      mapIterator: () => za,
      mapOneOrMany: () => _J,
      mapToDisplayParts: () => jb,
      matchFiles: () => bre,
      matchPatternOrExact: () => BV,
      matchedText: () => tZ,
      matchesExclude: () => $4,
      matchesExcludeWorker: () => Q4,
      maxBy: () => qB,
      maybeBind: () => ia,
      maybeSetLocalizedDiagnosticMessages: () => ore,
      memoize: () => Nu,
      memoizeOne: () => Fh,
      min: () => JB,
      minAndMax: () => Rre,
      missingFileModifiedTime: () => Dp,
      modifierToFlag: () => II,
      modifiersToFlags: () => Xh,
      moduleExportNameIsDefault: () => N_,
      moduleExportNameTextEscaped: () => bS,
      moduleExportNameTextUnescaped: () => yb,
      moduleOptionDeclaration: () => poe,
      moduleResolutionIsEqualTo: () => Dte,
      moduleResolutionNameAndModeGetter: () => C3,
      moduleResolutionOptionDeclarations: () => eU,
      moduleResolutionSupportsPackageJsonExportsAndImports: () => pD,
      moduleResolutionUsesNodeModules: () => S7,
      moduleSpecifierToValidIdentifier: () => LO,
      moduleSpecifiers: () => hy,
      moduleSupportsImportAttributes: () => pre,
      moduleSymbolToValidIdentifier: () => PO,
      moveEmitHelpers: () => oie,
      moveRangeEnd: () => R6,
      moveRangePastDecorators: () => ly,
      moveRangePastModifiers: () => Yh,
      moveRangePos: () => UT,
      moveSyntheticComments: () => nie,
      mutateMap: () => yM,
      mutateMapSkippingNewValues: () => vg,
      needsParentheses: () => D7,
      needsScopeMarker: () => TF,
      newCaseClauseTracker: () => B7,
      newPrivateEnvironment: () => Tae,
      noEmitNotification: () => Yw,
      noEmitSubstitution: () => mP,
      noTransformers: () => Qae,
      noTruncationMaximumTruncationLength: () => sG,
      nodeCanBeDecorated: () => dk,
      nodeCoreModules: () => _D,
      nodeHasName: () => k2,
      nodeIsDecorated: () => YR,
      nodeIsMissing: () => Ol,
      nodeIsPresent: () => fm,
      nodeIsSynthesized: () => Os,
      nodeModuleNameResolver: () => Hoe,
      nodeModulesPathPart: () => Rg,
      nodeNextJsonConfigResolver: () => qoe,
      nodeOrChildIsDecorated: () => uk,
      nodeOverlapsWithStartEnd: () => d7,
      nodePosToString: () => h0e,
      nodeSeenTracker: () => tC,
      nodeStartsNewLexicalEnvironment: () => XG,
      noop: () => gs,
      noopFileWatcher: () => XD,
      normalizePath: () => ya,
      normalizeSlashes: () => Bd,
      normalizeSpans: () => O9,
      not: () => U8,
      notImplemented: () => ha,
      notImplementedResolver: () => rse,
      nullNodeConverters: () => Zre,
      nullParenthesizerRules: () => $re,
      nullTransformationContext: () => Qw,
      objectAllocator: () => Rd,
      operatorPart: () => PP,
      optionDeclarations: () => Um,
      optionMapToObject: () => H4,
      optionsAffectingProgramStructure: () => _oe,
      optionsForBuild: () => nU,
      optionsForWatch: () => rx,
      optionsHaveChanges: () => uI,
      or: () => Rp,
      orderedRemoveItem: () => mN,
      orderedRemoveItemAt: () => ib,
      packageIdToPackageName: () => LF,
      packageIdToString: () => wT,
      parameterIsThisKeyword: () => Sb,
      parameterNamePart: () => nce,
      parseBaseNodeFactory: () => aoe,
      parseBigInt: () => Cre,
      parseBuildCommand: () => Aoe,
      parseCommandLine: () => Soe,
      parseCommandLineWorker: () => rU,
      parseConfigFileTextToJson: () => oU,
      parseConfigFileWithSystem: () => Vse,
      parseConfigHostFromCompilerHostLike: () => w3,
      parseCustomTypeOption: () => V4,
      parseIsolatedEntityName: () => nx,
      parseIsolatedJSDocComment: () => loe,
      parseJSDocTypeExpressionForTests: () => JSe,
      parseJsonConfigFileContent: () => EEe,
      parseJsonSourceFileConfigFileContent: () => Ow,
      parseJsonText: () => Nw,
      parseListTypeOption: () => boe,
      parseNodeFactory: () => i0,
      parseNodeModuleFromPath: () => Bw,
      parsePackageName: () => o3,
      parsePseudoBigInt: () => RM,
      parseValidBigInt: () => UV,
      pasteEdits: () => vX,
      patchWriteFileEnsuringDirectory: () => MTe,
      pathContainsNodeModules: () => Wb,
      pathIsAbsolute: () => SN,
      pathIsBareSpecifier: () => x9,
      pathIsRelative: () => Zp,
      patternText: () => eZ,
      performIncrementalCompilation: () => jse,
      performance: () => cZ,
      positionBelongsToNode: () => Pq,
      positionIsASICandidate: () => M7,
      positionIsSynthesized: () => dh,
      positionsAreOnSameLine: () => Gf,
      preProcessFile: () => Lxe,
      probablyUsesSemicolons: () => NO,
      processCommentPragmas: () => Yj,
      processPragmasIntoFields: () => $j,
      processTaggedTemplateExpression: () => QU,
      programContainsEsModules: () => Qle,
      programContainsModules: () => $le,
      projectReferenceIsEqualTo: () => lG,
      propertyNamePart: () => rce,
      pseudoBigIntToString: () => wS,
      punctuationPart: () => lu,
      pushIfUnique: () => kf,
      quote: () => wP,
      quotePreferenceFromString: () => Xq,
      rangeContainsPosition: () => ZD,
      rangeContainsPositionExclusive: () => yO,
      rangeContainsRange: () => tp,
      rangeContainsRangeExclusive: () => Fle,
      rangeContainsStartEnd: () => vO,
      rangeEndIsOnSameLineAsRangeStart: () => Gk,
      rangeEndPositionsAreOnSameLine: () => Kne,
      rangeEquals: () => FB,
      rangeIsOnSingleLine: () => p1,
      rangeOfNode: () => VV,
      rangeOfTypeParameters: () => jV,
      rangeOverlapsWithStartEnd: () => xP,
      rangeStartIsOnSameLineAsRangeEnd: () => Xne,
      rangeStartPositionsAreOnSameLine: () => D6,
      readBuilderProgram: () => q3,
      readConfigFile: () => kw,
      readJson: () => lD,
      readJsonConfigFile: () => Ioe,
      readJsonOrUndefined: () => gV,
      reduceEachLeadingCommentRange: () => xee,
      reduceEachTrailingCommentRange: () => Ree,
      reduceLeft: () => gu,
      reduceLeftIterator: () => Gn,
      reducePathComponents: () => rI,
      refactor: () => gx,
      regExpEscape: () => U0e,
      regularExpressionFlagToCharacterCode: () => jTe,
      relativeComplement: () => VQ,
      removeAllComments: () => cw,
      removeEmitHelper: () => aSe,
      removeExtension: () => Zk,
      removeFileExtension: () => Tu,
      removeIgnoredPath: () => z3,
      removeMinAndVersionNumbers: () => YB,
      removePrefix: () => hN,
      removeSuffix: () => RR,
      removeTrailingDirectorySeparator: () => Yy,
      repeatString: () => EO,
      replaceElement: () => GB,
      replaceFirstStar: () => m1,
      resolutionExtensionIsTSOrJson: () => EM,
      resolveConfigFileProjectName: () => nq,
      resolveJSModule: () => t1e,
      resolveLibrary: () => i3,
      resolveModuleName: () => M1,
      resolveModuleNameFromCache: () => ZEe,
      resolvePackageNameToPackageJson: () => gU,
      resolvePath: () => ab,
      resolveProjectReferencePath: () => cx,
      resolveTripleslashReference: () => hH,
      resolveTypeReferenceDirective: () => zoe,
      resolvingEmptyArray: () => aG,
      returnFalse: () => Qg,
      returnNoopFileWatcher: () => SP,
      returnTrue: () => dS,
      returnUndefined: () => uS,
      returnsPromise: () => kJ,
      rewriteModuleSpecifier: () => ax,
      sameFlatMap: () => wm,
      sameMap: () => Zi,
      sameMapping: () => U1e,
      scanTokenAtPosition: () => Kte,
      scanner: () => yd,
      semanticDiagnosticsOptionDeclarations: () => foe,
      serializeCompilerOptions: () => dU,
      server: () => wOe,
      servicesVersion: () => SDe,
      setCommentRange: () => Rc,
      setConfigFileInOptions: () => uU,
      setConstantValue: () => iie,
      setEmitFlags: () => Cr,
      setGetSourceFileAsHashVersioned: () => H3,
      setIdentifierAutoGenerate: () => pw,
      setIdentifierGeneratedImportReference: () => lie,
      setIdentifierTypeArguments: () => cv,
      setInternalEmitFlags: () => dw,
      setLocalizedDiagnosticMessages: () => ire,
      setNodeChildren: () => Fie,
      setNodeFlags: () => Pre,
      setObjectAllocator: () => rre,
      setOriginalNode: () => jr,
      setParent: () => ps,
      setParentRecursive: () => qT,
      setPrivateIdentifier: () => L1,
      setSnippetElement: () => pj,
      setSourceMapRange: () => Ua,
      setStackTraceLimit: () => ATe,
      setStartsOnNewLine: () => c4,
      setSyntheticLeadingComments: () => JT,
      setSyntheticTrailingComments: () => FI,
      setSys: () => PTe,
      setSysLog: () => _ee,
      setTextRange: () => vt,
      setTextRangeEnd: () => hD,
      setTextRangePos: () => DM,
      setTextRangePosEnd: () => uh,
      setTextRangePosWidth: () => HV,
      setTokenSourceMapRange: () => tie,
      setTypeNode: () => aie,
      setUILocale: () => $Q,
      setValueDeclaration: () => ZN,
      shouldAllowImportingTsExtension: () => VD,
      shouldPreserveConstEnums: () => Ib,
      shouldRewriteModuleSpecifier: () => Tk,
      shouldUseUriStyleNodeCoreModules: () => F7,
      showModuleSpecifier: () => ere,
      signatureHasRestParameter: () => su,
      signatureToDisplayParts: () => aJ,
      single: () => BB,
      singleElementArray: () => eI,
      singleIterator: () => F8,
      singleOrMany: () => I_,
      singleOrUndefined: () => og,
      skipAlias: () => xd,
      skipConstraint: () => qq,
      skipOuterExpressions: () => Ul,
      skipParentheses: () => us,
      skipPartiallyEmittedExpressions: () => Wm,
      skipTrivia: () => La,
      skipTypeChecking: () => mD,
      skipTypeCheckingIgnoringNoCheck: () => Dre,
      skipTypeParentheses: () => tM,
      skipWhile: () => rZ,
      sliceAfter: () => GV,
      some: () => yt,
      sortAndDeduplicate: () => fN,
      sortAndDeduplicateDiagnostics: () => wR,
      sourceFileAffectingCompilerOptions: () => tU,
      sourceFileMayBeEmitted: () => DS,
      sourceMapCommentRegExp: () => BU,
      sourceMapCommentRegExpDontCareLineStart: () => fae,
      spacePart: () => zl,
      spanMap: () => f2,
      startEndContainsRange: () => bV,
      startEndOverlapsWithStartEnd: () => u7,
      startOnNewLine: () => au,
      startTracing: () => fZ,
      startsWith: () => po,
      startsWithDirectory: () => C9,
      startsWithUnderscore: () => vJ,
      startsWithUseStrict: () => Hie,
      stringContainsAt: () => vce,
      stringToToken: () => HE,
      stripQuotes: () => _m,
      supportedDeclarationExtensions: () => J6,
      supportedJSExtensionsFlat: () => fD,
      supportedLocaleDirectories: () => Vee,
      supportedTSExtensionsFlat: () => WV,
      supportedTSImplementationExtensions: () => Yk,
      suppressLeadingAndTrailingTrivia: () => Op,
      suppressLeadingTrivia: () => aj,
      suppressTrailingTrivia: () => Jre,
      symbolEscapedNameNoDefault: () => E7,
      symbolName: () => wl,
      symbolNameNoDefault: () => $q,
      symbolToDisplayParts: () => LP,
      sys: () => jc,
      sysLog: () => Q8,
      tagNamesAreEquivalent: () => a0,
      takeWhile: () => ZB,
      targetOptionDeclaration: () => Zj,
      targetToLibMap: () => Dee,
      testFormatSettings: () => txe,
      textChangeRangeIsUnchanged: () => Wee,
      textChangeRangeNewSpan: () => NN,
      textChanges: () => Rr,
      textOrKeywordPart: () => oJ,
      textPart: () => yf,
      textRangeContainsPositionInclusive: () => N2,
      textRangeContainsTextSpan: () => Mee,
      textRangeIntersectsWithTextSpan: () => wee,
      textSpanContainsPosition: () => k9,
      textSpanContainsTextRange: () => w9,
      textSpanContainsTextSpan: () => Nee,
      textSpanEnd: () => Dl,
      textSpanIntersection: () => Oee,
      textSpanIntersectsWith: () => M2,
      textSpanIntersectsWithPosition: () => kee,
      textSpanIntersectsWithTextSpan: () => Lee,
      textSpanIsEmpty: () => Cee,
      textSpanOverlap: () => Pee,
      textSpanOverlapsWith: () => $Te,
      textSpansEqual: () => rC,
      textToKeywordObj: () => iF,
      timestamp: () => Ls,
      toArray: () => QA,
      toBuilderFileEmit: () => Mse,
      toBuilderStateFileInfoForMultiEmit: () => Nse,
      toEditorSettings: () => GO,
      toFileNameLowerCase: () => tb,
      toPath: () => ks,
      toProgramEmitPending: () => Pse,
      toSorted: () => xp,
      tokenIsIdentifierOrKeyword: () => Xu,
      tokenIsIdentifierOrKeywordOrGreaterThan: () => bee,
      tokenToString: () => _a,
      trace: () => xo,
      tracing: () => xr,
      tracingEnabled: () => T2,
      transferSourceFileChildren: () => zie,
      transform: () => PDe,
      transformClassFields: () => Mae,
      transformDeclarations: () => nH,
      transformECMAScriptModule: () => tH,
      transformES2015: () => Hae,
      transformES2016: () => Uae,
      transformES2017: () => wae,
      transformES2018: () => Oae,
      transformES2019: () => Wae,
      transformES2020: () => Fae,
      transformES2021: () => zae,
      transformESDecorators: () => kae,
      transformESNext: () => Bae,
      transformGenerators: () => qae,
      transformImpliedNodeFormatDependentModule: () => Kae,
      transformJsx: () => jae,
      transformLegacyDecorators: () => Lae,
      transformModule: () => eH,
      transformNamedEvaluation: () => zp,
      transformNodes: () => $w,
      transformSystemModule: () => Jae,
      transformTypeScript: () => Nae,
      transpile: () => Vxe,
      transpileDeclaration: () => Bxe,
      transpileModule: () => Vce,
      transpileOptionValueCompilerOptions: () => goe,
      tryAddToSet: () => rh,
      tryAndIgnoreErrors: () => k7,
      tryCast: () => ni,
      tryDirectoryExists: () => L7,
      tryExtractTSExtension: () => x6,
      tryFileExists: () => WP,
      tryGetClassExtendingExpressionWithTypeArguments: () => fV,
      tryGetClassImplementingOrExtendingExpressionWithTypeArguments: () => mV,
      tryGetDirectories: () => P7,
      tryGetExtensionFromPath: () => Sg,
      tryGetImportFromModuleSpecifier: () => bk,
      tryGetJSDocSatisfiesTypeNode: () => t4,
      tryGetModuleNameFromFile: () => Aw,
      tryGetModuleSpecifierFromDeclaration: () => gI,
      tryGetNativePerformanceHooks: () => lZ,
      tryGetPropertyAccessOrIdentifierToString: () => zk,
      tryGetPropertyNameOfBindingOrAssignmentElement: () => L4,
      tryGetSourceMappingURL: () => mae,
      tryGetTextOfPropertyName: () => UN,
      tryParseJson: () => Bk,
      tryParsePattern: () => LI,
      tryParsePatterns: () => ew,
      tryParseRawSourceMap: () => hae,
      tryReadDirectory: () => pJ,
      tryReadFile: () => ZM,
      tryRemoveDirectoryPrefix: () => kV,
      tryRemoveExtension: () => Ire,
      tryRemovePrefix: () => QB,
      tryRemoveSuffix: () => ZQ,
      tscBuildOption: () => C1,
      typeAcquisitionDeclarations: () => B4,
      typeAliasNamePart: () => ice,
      typeDirectiveIsEqualTo: () => Cte,
      typeKeywords: () => Hq,
      typeParameterNamePart: () => oce,
      typeToDisplayParts: () => RO,
      unchangedPollThresholds: () => Y8,
      unchangedTextChangeRange: () => lF,
      unescapeLeadingUnderscores: () => Gi,
      unmangleScopedPackageName: () => Vw,
      unorderedRemoveItem: () => ZA,
      unprefixedNodeCoreModules: () => Ure,
      unreachableCodeIsError: () => dre,
      unsetNodeChildren: () => kj,
      unusedLabelIsError: () => ure,
      unwrapInnermostStatementOfLabel: () => CG,
      unwrapParenthesizedExpression: () => Vre,
      updateErrorForNoInputFiles: () => Y4,
      updateLanguageServiceSourceFile: () => sK,
      updateMissingFilePathsWatch: () => pH,
      updateResolutionField: () => WD,
      updateSharedExtendedConfigFileWatcher: () => I3,
      updateSourceFile: () => Kj,
      updateWatchingWildcardDirectories: () => eO,
      usingSingleLineStringWriter: () => jR,
      utf16EncodeAsString: () => CN,
      validateLocaleAndSetLanguage: () => F9,
      version: () => Le,
      versionMajorMinor: () => ge,
      visitArray: () => sP,
      visitCommaListElements: () => f3,
      visitEachChild: () => kn,
      visitFunctionBody: () => gf,
      visitIterationBody: () => Wu,
      visitLexicalEnvironment: () => zU,
      visitNode: () => st,
      visitNodes: () => Xn,
      visitParameterList: () => Fl,
      walkUpBindingElementsAndPatterns: () => qE,
      walkUpOuterExpressions: () => qie,
      walkUpParenthesizedExpressions: () => zm,
      walkUpParenthesizedTypes: () => Ik,
      walkUpParenthesizedTypesAndGetParentAndChild: () => bne,
      whitespaceOrMapCommentRegExp: () => GU,
      writeCommentRange: () => sD,
      writeFile: () => b6,
      writeFileEnsuringDirectories: () => aV,
      zipWith: () => ki,
    }),
      (b.exports = F($)));
    var ge = "5.9",
      Le = "5.9.3",
      Ke = ((e) => (
        (e[(e.LessThan = -1)] = "LessThan"),
        (e[(e.EqualTo = 0)] = "EqualTo"),
        (e[(e.GreaterThan = 1)] = "GreaterThan"),
        e
      ))(Ke || {}),
      ae = [],
      bt = new Map();
    function et(e) {
      return e !== void 0 ? e.length : 0;
    }
    function Ye(e, t) {
      if (e !== void 0)
        for (let r = 0; r < e.length; r++) {
          const i = t(e[r], r);
          if (i) return i;
        }
    }
    function Pn(e, t) {
      if (e !== void 0)
        for (let r = e.length - 1; r >= 0; r--) {
          const i = t(e[r], r);
          if (i) return i;
        }
    }
    function Hn(e, t) {
      if (e !== void 0)
        for (let r = 0; r < e.length; r++) {
          const i = t(e[r], r);
          if (i !== void 0) return i;
        }
    }
    function cr(e, t) {
      for (const r of e) {
        const i = t(r);
        if (i !== void 0) return i;
      }
    }
    function Gn(e, t, r) {
      let i = r;
      if (e) {
        let o = 0;
        for (const s of e) ((i = t(i, s, o)), o++);
      }
      return i;
    }
    function ki(e, t, r) {
      const i = [];
      C.assertEqual(e.length, t.length);
      for (let o = 0; o < e.length; o++) i.push(r(e[o], t[o], o));
      return i;
    }
    function bo(e, t) {
      if (e.length <= 1) return e;
      const r = [];
      for (let i = 0, o = e.length; i < o; i++)
        (i !== 0 && r.push(t), r.push(e[i]));
      return r;
    }
    function Vn(e, t) {
      if (e !== void 0) {
        for (let r = 0; r < e.length; r++) if (!t(e[r], r)) return !1;
      }
      return !0;
    }
    function hn(e, t, r) {
      if (e !== void 0)
        for (let i = r ?? 0; i < e.length; i++) {
          const o = e[i];
          if (t(o, i)) return o;
        }
    }
    function ga(e, t, r) {
      if (e !== void 0)
        for (let i = r ?? e.length - 1; i >= 0; i--) {
          const o = e[i];
          if (t(o, i)) return o;
        }
    }
    function ho(e, t, r) {
      if (e === void 0) return -1;
      for (let i = r ?? 0; i < e.length; i++) if (t(e[i], i)) return i;
      return -1;
    }
    function gl(e, t, r) {
      if (e === void 0) return -1;
      for (let i = r ?? e.length - 1; i >= 0; i--) if (t(e[i], i)) return i;
      return -1;
    }
    function jn(e, t, r = nb) {
      if (e !== void 0) {
        for (let i = 0; i < e.length; i++) if (r(e[i], t)) return !0;
      }
      return !1;
    }
    function Bi(e, t, r) {
      for (let i = r ?? 0; i < e.length; i++)
        if (jn(t, e.charCodeAt(i))) return i;
      return -1;
    }
    function Io(e, t) {
      let r = 0;
      if (e !== void 0)
        for (let i = 0; i < e.length; i++) {
          const o = e[i];
          t(o, i) && r++;
        }
      return r;
    }
    function Un(e, t) {
      if (e !== void 0) {
        const r = e.length;
        let i = 0;
        for (; i < r && t(e[i]); ) i++;
        if (i < r) {
          const o = e.slice(0, i);
          for (i++; i < r; ) {
            const s = e[i];
            (t(s) && o.push(s), i++);
          }
          return o;
        }
      }
      return e;
    }
    function ul(e, t) {
      let r = 0;
      for (let i = 0; i < e.length; i++) t(e[i], i, e) && ((e[r] = e[i]), r++);
      e.length = r;
    }
    function hi(e) {
      e.length = 0;
    }
    function Vt(e, t) {
      let r;
      if (e !== void 0) {
        r = [];
        for (let i = 0; i < e.length; i++) r.push(t(e[i], i));
      }
      return r;
    }
    function* za(e, t) {
      for (const r of e) yield t(r);
    }
    function Zi(e, t) {
      if (e !== void 0)
        for (let r = 0; r < e.length; r++) {
          const i = e[r],
            o = t(i, r);
          if (i !== o) {
            const s = e.slice(0, r);
            for (s.push(o), r++; r < e.length; r++) s.push(t(e[r], r));
            return s;
          }
        }
      return e;
    }
    function la(e) {
      const t = [];
      for (let r = 0; r < e.length; r++) {
        const i = e[r];
        i && (Mo(i) ? Xr(t, i) : t.push(i));
      }
      return t;
    }
    function Ki(e, t) {
      let r;
      if (e !== void 0)
        for (let i = 0; i < e.length; i++) {
          const o = t(e[i], i);
          o && (Mo(o) ? (r = Xr(r, o)) : (r = Bn(r, o)));
        }
      return r ?? ae;
    }
    function yc(e, t) {
      const r = [];
      if (e !== void 0)
        for (let i = 0; i < e.length; i++) {
          const o = t(e[i], i);
          o && (Mo(o) ? Xr(r, o) : r.push(o));
        }
      return r;
    }
    function* lf(e, t) {
      for (const r of e) {
        const i = t(r);
        i && (yield* i);
      }
    }
    function wm(e, t) {
      let r;
      if (e !== void 0)
        for (let i = 0; i < e.length; i++) {
          const o = e[i],
            s = t(o, i);
          (r || o !== s || Mo(s)) &&
            (r || (r = e.slice(0, i)), Mo(s) ? Xr(r, s) : r.push(s));
        }
      return r ?? e;
    }
    function DT(e, t) {
      const r = [];
      for (let i = 0; i < e.length; i++) {
        const o = t(e[i], i);
        if (o === void 0) return;
        r.push(o);
      }
      return r;
    }
    function Ui(e, t) {
      const r = [];
      if (e !== void 0)
        for (let i = 0; i < e.length; i++) {
          const o = t(e[i], i);
          o !== void 0 && r.push(o);
        }
      return r;
    }
    function* nh(e, t) {
      for (const r of e) {
        const i = t(r);
        i !== void 0 && (yield i);
      }
    }
    function KA(e, t, r) {
      if (e.has(t)) return e.get(t);
      const i = r();
      return (e.set(t, i), i);
    }
    function rh(e, t) {
      return e.has(t) ? !1 : (e.add(t), !0);
    }
    function* F8(e) {
      yield e;
    }
    function f2(e, t, r) {
      let i;
      if (e !== void 0) {
        i = [];
        const o = e.length;
        let s,
          l,
          u = 0,
          d = 0;
        for (; u < o; ) {
          for (; d < o; ) {
            const _ = e[d];
            if (((l = t(_, d)), d === 0)) s = l;
            else if (l !== s) break;
            d++;
          }
          if (u < d) {
            const _ = r(e.slice(u, d), s, u, d);
            (_ && i.push(_), (u = d));
          }
          ((s = l), d++);
        }
      }
      return i;
    }
    function GQ(e, t) {
      if (e === void 0) return;
      const r = new Map();
      return (
        e.forEach((i, o) => {
          const [s, l] = t(o, i);
          r.set(s, l);
        }),
        r
      );
    }
    function yt(e, t) {
      if (e !== void 0)
        if (t !== void 0) {
          for (let r = 0; r < e.length; r++) if (t(e[r])) return !0;
        } else return e.length > 0;
      return !1;
    }
    function wB(e, t, r) {
      let i;
      for (let o = 0; o < e.length; o++)
        t(e[o])
          ? (i = i === void 0 ? o : i)
          : i !== void 0 && (r(i, o), (i = void 0));
      i !== void 0 && r(i, e.length);
    }
    function so(e, t) {
      return t === void 0 || t.length === 0
        ? e
        : e === void 0 || e.length === 0
          ? t
          : [...e, ...t];
    }
    function MBe(e, t) {
      return t;
    }
    function z8(e) {
      return e.map(MBe);
    }
    function PBe(e, t, r) {
      const i = z8(e);
      wBe(e, i, r);
      let o = e[i[0]];
      const s = [i[0]];
      for (let l = 1; l < i.length; l++) {
        const u = i[l],
          d = e[u];
        t(o, d) || (s.push(u), (o = d));
      }
      return (s.sort(), s.map((l) => e[l]));
    }
    function LBe(e, t) {
      const r = [];
      for (let i = 0; i < e.length; i++) kf(r, e[i], t);
      return r;
    }
    function cS(e, t, r) {
      return e.length === 0
        ? []
        : e.length === 1
          ? e.slice()
          : r
            ? PBe(e, t, r)
            : LBe(e, t);
    }
    function kBe(e, t) {
      if (e.length === 0) return ae;
      let r = e[0];
      const i = [r];
      for (let o = 1; o < e.length; o++) {
        const s = e[o];
        switch (t(s, r)) {
          case !0:
          case 0:
            continue;
          case -1:
            return C.fail("Array is unsorted.");
        }
        i.push((r = s));
      }
      return i;
    }
    function OB() {
      return [];
    }
    function $v(e, t, r, i, o) {
      if (e.length === 0) return (e.push(t), !0);
      const s = Zv(e, t, Vs, r);
      if (s < 0) {
        if (i && !o) {
          const l = ~s;
          if (l > 0 && i(t, e[l - 1])) return !1;
          if (l < e.length && i(t, e[l])) return (e.splice(l, 1, t), !0);
        }
        return (e.splice(~s, 0, t), !0);
      }
      return o ? (e.splice(s, 0, t), !0) : !1;
    }
    function fN(e, t, r) {
      return kBe(xp(e, t), r ?? t ?? Wd);
    }
    function Qp(e, t, r = nb) {
      if (e === void 0 || t === void 0) return e === t;
      if (e.length !== t.length) return !1;
      for (let i = 0; i < e.length; i++) if (!r(e[i], t[i], i)) return !1;
      return !0;
    }
    function m2(e) {
      let t;
      if (e !== void 0)
        for (let r = 0; r < e.length; r++) {
          const i = e[r];
          (t ?? !i) && (t ?? (t = e.slice(0, r)), i && t.push(i));
        }
      return t ?? e;
    }
    function VQ(e, t, r) {
      if (!t || !e || t.length === 0 || e.length === 0) return t;
      const i = [];
      e: for (let o = 0, s = 0; s < t.length; s++) {
        s > 0 && C.assertGreaterThanOrEqual(r(t[s], t[s - 1]), 0);
        t: for (const l = o; o < e.length; o++)
          switch (
            (o > l && C.assertGreaterThanOrEqual(r(e[o], e[o - 1]), 0),
            r(t[s], e[o]))
          ) {
            case -1:
              i.push(t[s]);
              continue e;
            case 0:
              continue e;
            case 1:
              continue t;
          }
      }
      return i;
    }
    function Bn(e, t) {
      return t === void 0 ? e : e === void 0 ? [t] : (e.push(t), e);
    }
    function XA(e, t) {
      return e === void 0
        ? t
        : t === void 0
          ? e
          : Mo(e)
            ? Mo(t)
              ? so(e, t)
              : Bn(e, t)
            : Mo(t)
              ? Bn(t, e)
              : [e, t];
    }
    function jQ(e, t) {
      return t < 0 ? e.length + t : t;
    }
    function Xr(e, t, r, i) {
      if (t === void 0 || t.length === 0) return e;
      if (e === void 0) return t.slice(r, i);
      ((r = r === void 0 ? 0 : jQ(t, r)),
        (i = i === void 0 ? t.length : jQ(t, i)));
      for (let o = r; o < i && o < t.length; o++)
        t[o] !== void 0 && e.push(t[o]);
      return e;
    }
    function kf(e, t, r) {
      return jn(e, t, r) ? !1 : (e.push(t), !0);
    }
    function $g(e, t, r) {
      return e !== void 0 ? (kf(e, t, r), e) : [t];
    }
    function wBe(e, t, r) {
      t.sort((i, o) => r(e[i], e[o]) || js(i, o));
    }
    function xp(e, t) {
      return e.length === 0 ? ae : e.slice().sort(t);
    }
    function* WB(e) {
      for (let t = e.length - 1; t >= 0; t--) yield e[t];
    }
    function FB(e, t, r, i) {
      for (; r < i; ) {
        if (e[r] !== t[r]) return !1;
        r++;
      }
      return !0;
    }
    var Qv = Array.prototype.at
      ? (e, t) => e?.at(t)
      : (e, t) => {
          if (e !== void 0 && ((t = jQ(e, t)), t < e.length)) return e[t];
        };
    function Ac(e) {
      return e === void 0 || e.length === 0 ? void 0 : e[0];
    }
    function B8(e) {
      if (e !== void 0) for (const t of e) return t;
    }
    function $a(e) {
      return (C.assert(e.length !== 0), e[0]);
    }
    function zB(e) {
      for (const t of e) return t;
      C.fail("iterator is empty");
    }
    function Zs(e) {
      return e === void 0 || e.length === 0 ? void 0 : e[e.length - 1];
    }
    function Ba(e) {
      return (C.assert(e.length !== 0), e[e.length - 1]);
    }
    function og(e) {
      return e !== void 0 && e.length === 1 ? e[0] : void 0;
    }
    function BB(e) {
      return C.checkDefined(og(e));
    }
    function I_(e) {
      return e !== void 0 && e.length === 1 ? e[0] : e;
    }
    function GB(e, t, r) {
      const i = e.slice(0);
      return ((i[t] = r), i);
    }
    function Zv(e, t, r, i, o) {
      return YA(e, r(t), r, i, o);
    }
    function YA(e, t, r, i, o) {
      if (!yt(e)) return -1;
      let s = o ?? 0,
        l = e.length - 1;
      for (; s <= l; ) {
        const u = s + ((l - s) >> 1),
          d = r(e[u], u);
        switch (i(d, t)) {
          case -1:
            s = u + 1;
            break;
          case 0:
            return u;
          case 1:
            l = u - 1;
            break;
        }
      }
      return ~s;
    }
    function gu(e, t, r, i, o) {
      if (e && e.length > 0) {
        const s = e.length;
        if (s > 0) {
          let l = i === void 0 || i < 0 ? 0 : i;
          const u = o === void 0 || l + o > s - 1 ? s - 1 : l + o;
          let d;
          for (arguments.length <= 2 ? ((d = e[l]), l++) : (d = r); l <= u; )
            ((d = t(d, e[l], l)), l++);
          return d;
        }
      }
      return r;
    }
    var CT = Object.prototype.hasOwnProperty;
    function Rs(e, t) {
      return CT.call(e, t);
    }
    function h2(e, t) {
      return CT.call(e, t) ? e[t] : void 0;
    }
    function Wh(e) {
      const t = [];
      for (const r in e) CT.call(e, r) && t.push(r);
      return t;
    }
    function lTe(e) {
      const t = [];
      do {
        const r = Object.getOwnPropertyNames(e);
        for (const i of r) kf(t, i);
      } while ((e = Object.getPrototypeOf(e)));
      return t;
    }
    function $A(e) {
      const t = [];
      for (const r in e) CT.call(e, r) && t.push(e[r]);
      return t;
    }
    function UQ(e, t) {
      const r = new Array(e);
      for (let i = 0; i < e; i++) r[i] = t(i);
      return r;
    }
    function Co(e, t) {
      const r = [];
      for (const i of e) r.push(t ? t(i) : i);
      return r;
    }
    function GE(e, ...t) {
      for (const r of t)
        if (r !== void 0) for (const i in r) Rs(r, i) && (e[i] = r[i]);
      return e;
    }
    function HQ(e, t, r = nb) {
      if (e === t) return !0;
      if (!e || !t) return !1;
      for (const i in e)
        if (CT.call(e, i) && (!CT.call(t, i) || !r(e[i], t[i]))) return !1;
      for (const i in t) if (CT.call(t, i) && !CT.call(e, i)) return !1;
      return !0;
    }
    function AR(e, t, r = Vs) {
      const i = new Map();
      for (let o = 0; o < e.length; o++) {
        const s = e[o],
          l = t(s);
        l !== void 0 && i.set(l, r(s));
      }
      return i;
    }
    function qQ(e, t, r = Vs) {
      const i = [];
      for (let o = 0; o < e.length; o++) {
        const s = e[o];
        i[t(s)] = r(s);
      }
      return i;
    }
    function _2(e, t, r = Vs) {
      const i = cm();
      for (let o = 0; o < e.length; o++) {
        const s = e[o];
        i.add(t(s), r(s));
      }
      return i;
    }
    function IR(e, t, r = Vs) {
      return Co(_2(e, t).values(), r);
    }
    function VB(e, t) {
      const r = {};
      if (e !== void 0)
        for (let i = 0; i < e.length; i++) {
          const o = e[i],
            s = `${t(o)}`;
          (r[s] ?? (r[s] = [])).push(o);
        }
      return r;
    }
    function JQ(e) {
      const t = {};
      for (const r in e) CT.call(e, r) && (t[r] = e[r]);
      return t;
    }
    function jB(e, t) {
      const r = {};
      for (const i in t) CT.call(t, i) && (r[i] = t[i]);
      for (const i in e) CT.call(e, i) && (r[i] = e[i]);
      return r;
    }
    function UB(e, t) {
      for (const r in t) CT.call(t, r) && (e[r] = t[r]);
    }
    function ia(e, t) {
      return t?.bind(e);
    }
    function cm() {
      const e = new Map();
      return ((e.add = OBe), (e.remove = WBe), e);
    }
    function OBe(e, t) {
      let r = this.get(e);
      return (r !== void 0 ? r.push(t) : this.set(e, (r = [t])), r);
    }
    function WBe(e, t) {
      const r = this.get(e);
      r !== void 0 && (ZA(r, t), r.length || this.delete(e));
    }
    function g2(e) {
      const t = e?.slice() ?? [];
      let r = 0;
      function i() {
        return r === t.length;
      }
      function o(...l) {
        t.push(...l);
      }
      function s() {
        if (i()) throw new Error("Queue is empty");
        const l = t[r];
        if (((t[r] = void 0), r++, r > 100 && r > t.length >> 1)) {
          const u = t.length - r;
          (t.copyWithin(0, r), (t.length = u), (r = 0));
        }
        return l;
      }
      return { enqueue: o, dequeue: s, isEmpty: i };
    }
    function HB(e, t) {
      const r = new Map();
      let i = 0;
      function* o() {
        for (const l of r.values()) Mo(l) ? yield* l : yield l;
      }
      const s = {
        has(l) {
          const u = e(l);
          if (!r.has(u)) return !1;
          const d = r.get(u);
          return Mo(d) ? jn(d, l, t) : t(d, l);
        },
        add(l) {
          const u = e(l);
          if (r.has(u)) {
            const d = r.get(u);
            if (Mo(d)) jn(d, l, t) || (d.push(l), i++);
            else {
              const _ = d;
              t(_, l) || (r.set(u, [_, l]), i++);
            }
          } else (r.set(u, l), i++);
          return this;
        },
        delete(l) {
          const u = e(l);
          if (!r.has(u)) return !1;
          const d = r.get(u);
          if (Mo(d)) {
            for (let _ = 0; _ < d.length; _++)
              if (t(d[_], l))
                return (
                  d.length === 1
                    ? r.delete(u)
                    : d.length === 2
                      ? r.set(u, d[1 - _])
                      : uTe(d, _),
                  i--,
                  !0
                );
          } else if (t(d, l)) return (r.delete(u), i--, !0);
          return !1;
        },
        clear() {
          (r.clear(), (i = 0));
        },
        get size() {
          return i;
        },
        forEach(l) {
          for (const u of Co(r.values()))
            if (Mo(u)) for (const d of u) l(d, d, s);
            else {
              const d = u;
              l(d, d, s);
            }
        },
        keys() {
          return o();
        },
        values() {
          return o();
        },
        *entries() {
          for (const l of o()) yield [l, l];
        },
        [Symbol.iterator]: () => o(),
        [Symbol.toStringTag]: r[Symbol.toStringTag],
      };
      return s;
    }
    function Mo(e) {
      return Array.isArray(e);
    }
    function QA(e) {
      return Mo(e) ? e : [e];
    }
    function Bo(e) {
      return typeof e == "string";
    }
    function eb(e) {
      return typeof e == "number";
    }
    function ni(e, t) {
      return e !== void 0 && t(e) ? e : void 0;
    }
    function ma(e, t) {
      return e !== void 0 && t(e)
        ? e
        : C.fail(
            `Invalid cast. The supplied value ${e} did not pass the test '${C.getFunctionName(t)}'.`,
          );
    }
    function gs(e) {}
    function Qg() {
      return !1;
    }
    function dS() {
      return !0;
    }
    function uS() {}
    function Vs(e) {
      return e;
    }
    function FBe(e) {
      return e.toLowerCase();
    }
    var cTe = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;
    function tb(e) {
      return cTe.test(e) ? e.replace(cTe, FBe) : e;
    }
    function ha() {
      throw new Error("Not implemented");
    }
    function Nu(e) {
      let t;
      return () => (e && ((t = e()), (e = void 0)), t);
    }
    function Fh(e) {
      const t = new Map();
      return (r) => {
        const i = `${typeof r}:${r}`;
        let o = t.get(i);
        return (o === void 0 && !t.has(i) && ((o = e(r)), t.set(i, o)), o);
      };
    }
    var KQ = ((e) => (
      (e[(e.None = 0)] = "None"),
      (e[(e.Normal = 1)] = "Normal"),
      (e[(e.Aggressive = 2)] = "Aggressive"),
      (e[(e.VeryAggressive = 3)] = "VeryAggressive"),
      e
    ))(KQ || {});
    function nb(e, t) {
      return e === t;
    }
    function rb(e, t) {
      return (
        e === t ||
        (e !== void 0 && t !== void 0 && e.toUpperCase() === t.toUpperCase())
      );
    }
    function pS(e, t) {
      return nb(e, t);
    }
    function dTe(e, t) {
      return e === t
        ? 0
        : e === void 0
          ? -1
          : t === void 0
            ? 1
            : e < t
              ? -1
              : 1;
    }
    function js(e, t) {
      return dTe(e, t);
    }
    function G8(e, t) {
      return js(e?.start, t?.start) || js(e?.length, t?.length);
    }
    function qB(e, t, r) {
      for (let i = 0; i < e.length; i++) t = Math.max(t, r(e[i]));
      return t;
    }
    function JB(e, t) {
      return gu(e, (r, i) => (t(r, i) === -1 ? r : i));
    }
    function y2(e, t) {
      return e === t
        ? 0
        : e === void 0
          ? -1
          : t === void 0
            ? 1
            : ((e = e.toUpperCase()),
              (t = t.toUpperCase()),
              e < t ? -1 : e > t ? 1 : 0);
    }
    function XQ(e, t) {
      return e === t
        ? 0
        : e === void 0
          ? -1
          : t === void 0
            ? 1
            : ((e = e.toLowerCase()),
              (t = t.toLowerCase()),
              e < t ? -1 : e > t ? 1 : 0);
    }
    function Wd(e, t) {
      return dTe(e, t);
    }
    function xR(e) {
      return e ? y2 : Wd;
    }
    var zBe = (() => {
        return t;
        function e(r, i, o) {
          if (r === i) return 0;
          if (r === void 0) return -1;
          if (i === void 0) return 1;
          const s = o(r, i);
          return s < 0 ? -1 : s > 0 ? 1 : 0;
        }
        function t(r) {
          const i = new Intl.Collator(r, {
            usage: "sort",
            sensitivity: "variant",
            numeric: !0,
          }).compare;
          return (o, s) => e(o, s, i);
        }
      })(),
      KB,
      XB;
    function YQ() {
      return XB;
    }
    function $Q(e) {
      XB !== e && ((XB = e), (KB = void 0));
    }
    function v2(e, t) {
      return (KB ?? (KB = zBe(XB)), KB(e, t));
    }
    function QQ(e, t, r, i) {
      return e === t ? 0 : e === void 0 ? -1 : t === void 0 ? 1 : i(e[r], t[r]);
    }
    function NT(e, t) {
      return js(e ? 1 : 0, t ? 1 : 0);
    }
    function fS(e, t, r) {
      const i = Math.max(2, Math.floor(e.length * 0.34));
      let o = Math.floor(e.length * 0.4) + 1,
        s;
      for (const l of t) {
        const u = r(l);
        if (u !== void 0 && Math.abs(u.length - e.length) <= i) {
          if (u === e || (u.length < 3 && u.toLowerCase() !== e.toLowerCase()))
            continue;
          const d = BBe(e, u, o - 0.1);
          if (d === void 0) continue;
          (C.assert(d < o), (o = d), (s = l));
        }
      }
      return s;
    }
    function BBe(e, t, r) {
      let i = new Array(t.length + 1),
        o = new Array(t.length + 1);
      const s = r + 0.01;
      for (let u = 0; u <= t.length; u++) i[u] = u;
      for (let u = 1; u <= e.length; u++) {
        const d = e.charCodeAt(u - 1),
          _ = Math.ceil(u > r ? u - r : 1),
          h = Math.floor(t.length > r + u ? r + u : t.length);
        o[0] = u;
        let g = u;
        for (let A = 1; A < _; A++) o[A] = s;
        for (let A = _; A <= h; A++) {
          const R =
              e[u - 1].toLowerCase() === t[A - 1].toLowerCase()
                ? i[A - 1] + 0.1
                : i[A - 1] + 2,
            N =
              d === t.charCodeAt(A - 1)
                ? i[A - 1]
                : Math.min(i[A] + 1, o[A - 1] + 1, R);
          ((o[A] = N), (g = Math.min(g, N)));
        }
        for (let A = h + 1; A <= t.length; A++) o[A] = s;
        if (g > r) return;
        const E = i;
        ((i = o), (o = E));
      }
      const l = i[t.length];
      return l > r ? void 0 : l;
    }
    function el(e, t, r) {
      const i = e.length - t.length;
      return i >= 0 && (r ? rb(e.slice(i), t) : e.indexOf(t, i) === i);
    }
    function RR(e, t) {
      return el(e, t) ? e.slice(0, e.length - t.length) : e;
    }
    function ZQ(e, t) {
      return el(e, t) ? e.slice(0, e.length - t.length) : void 0;
    }
    function YB(e) {
      let t = e.length;
      for (let r = t - 1; r > 0; r--) {
        let i = e.charCodeAt(r);
        if (i >= 48 && i <= 57)
          do (--r, (i = e.charCodeAt(r)));
          while (r > 0 && i >= 48 && i <= 57);
        else if (r > 4 && (i === 110 || i === 78)) {
          if (
            (--r,
            (i = e.charCodeAt(r)),
            (i !== 105 && i !== 73) ||
              (--r, (i = e.charCodeAt(r)), i !== 109 && i !== 77))
          )
            break;
          (--r, (i = e.charCodeAt(r)));
        } else break;
        if (i !== 45 && i !== 46) break;
        t = r;
      }
      return t === e.length ? e : e.slice(0, t);
    }
    function mN(e, t) {
      for (let r = 0; r < e.length; r++) if (e[r] === t) return (ib(e, r), !0);
      return !1;
    }
    function ib(e, t) {
      for (let r = t; r < e.length - 1; r++) e[r] = e[r + 1];
      e.pop();
    }
    function uTe(e, t) {
      ((e[t] = e[e.length - 1]), e.pop());
    }
    function ZA(e, t) {
      return GBe(e, (r) => r === t);
    }
    function GBe(e, t) {
      for (let r = 0; r < e.length; r++) if (t(e[r])) return (uTe(e, r), !0);
      return !1;
    }
    function Fd(e) {
      return e ? Vs : tb;
    }
    function eZ({ prefix: e, suffix: t }) {
      return `${e}*${t}`;
    }
    function tZ(e, t) {
      return (
        C.assert(V8(e, t)),
        t.substring(e.prefix.length, t.length - e.suffix.length)
      );
    }
    function $B(e, t, r) {
      let i,
        o = -1;
      for (let s = 0; s < e.length; s++) {
        const l = e[s],
          u = t(l);
        u.prefix.length > o && V8(u, r) && ((o = u.prefix.length), (i = l));
      }
      return i;
    }
    function po(e, t, r) {
      return r ? rb(e.slice(0, t.length), t) : e.lastIndexOf(t, 0) === 0;
    }
    function hN(e, t) {
      return po(e, t) ? e.substr(t.length) : e;
    }
    function QB(e, t, r = Vs) {
      return po(r(e), r(t)) ? e.substring(t.length) : void 0;
    }
    function V8({ prefix: e, suffix: t }, r) {
      return r.length >= e.length + t.length && po(r, e) && el(r, t);
    }
    function j8(e, t) {
      return (r) => e(r) && t(r);
    }
    function Rp(...e) {
      return (...t) => {
        let r;
        for (const i of e) if (((r = i(...t)), r)) return r;
        return r;
      };
    }
    function U8(e) {
      return (...t) => !e(...t);
    }
    function pTe(e) {}
    function eI(e) {
      return e === void 0 ? void 0 : [e];
    }
    function H8(e, t, r, i, o, s) {
      s ?? (s = gs);
      let l = 0,
        u = 0;
      const d = e.length,
        _ = t.length;
      let h = !1;
      for (; l < d && u < _; ) {
        const g = e[l],
          E = t[u],
          A = r(g, E);
        A === -1
          ? (i(g), l++, (h = !0))
          : A === 1
            ? (o(E), u++, (h = !0))
            : (s(E, g), l++, u++);
      }
      for (; l < d; ) (i(e[l++]), (h = !0));
      for (; u < _; ) (o(t[u++]), (h = !0));
      return h;
    }
    function nZ(e) {
      const t = [];
      return (fTe(e, t, void 0, 0), t);
    }
    function fTe(e, t, r, i) {
      for (const o of e[i]) {
        let s;
        (r ? ((s = r.slice()), s.push(o)) : (s = [o]),
          i === e.length - 1 ? t.push(s) : fTe(e, t, s, i + 1));
      }
    }
    function ZB(e, t) {
      if (e !== void 0) {
        const r = e.length;
        let i = 0;
        for (; i < r && t(e[i]); ) i++;
        return e.slice(0, i);
      }
    }
    function rZ(e, t) {
      if (e !== void 0) {
        const r = e.length;
        let i = 0;
        for (; i < r && t(e[i]); ) i++;
        return e.slice(i);
      }
    }
    function e9() {
      return (
        typeof process < "u" &&
        !!process.nextTick &&
        !process.browser &&
        typeof oTe < "u"
      );
    }
    var iZ = ((e) => (
        (e[(e.Off = 0)] = "Off"),
        (e[(e.Error = 1)] = "Error"),
        (e[(e.Warning = 2)] = "Warning"),
        (e[(e.Info = 3)] = "Info"),
        (e[(e.Verbose = 4)] = "Verbose"),
        e
      ))(iZ || {}),
      C;
    ((e) => {
      let t = 0;
      ((e.currentLogLevel = 2), (e.isDebugging = !1));
      function r($e) {
        return e.currentLogLevel <= $e;
      }
      e.shouldLog = r;
      function i($e, At) {
        e.loggingHost && r($e) && e.loggingHost.log($e, At);
      }
      function o($e) {
        i(3, $e);
      }
      ((e.log = o),
        (($e) => {
          function At(ai) {
            i(1, ai);
          }
          $e.error = At;
          function mn(ai) {
            i(2, ai);
          }
          $e.warn = mn;
          function dr(ai) {
            i(3, ai);
          }
          $e.log = dr;
          function ri(ai) {
            i(4, ai);
          }
          $e.trace = ri;
        })((o = e.log || (e.log = {}))));
      const s = {};
      function l() {
        return t;
      }
      e.getAssertionLevel = l;
      function u($e) {
        const At = t;
        if (((t = $e), $e > At))
          for (const mn of Wh(s)) {
            const dr = s[mn];
            dr !== void 0 &&
              e[mn] !== dr.assertion &&
              $e >= dr.level &&
              ((e[mn] = dr), (s[mn] = void 0));
          }
      }
      e.setAssertionLevel = u;
      function d($e) {
        return t >= $e;
      }
      e.shouldAssert = d;
      function _($e, At) {
        return d($e)
          ? !0
          : ((s[At] = { level: $e, assertion: e[At] }), (e[At] = gs), !1);
      }
      function h($e, At) {
        debugger;
        const mn = new Error($e ? `Debug Failure. ${$e}` : "Debug Failure.");
        throw (
          Error.captureStackTrace && Error.captureStackTrace(mn, At || h),
          mn
        );
      }
      e.fail = h;
      function g($e, At, mn) {
        return h(
          `${At || "Unexpected node."}\r
Node ${Ce($e.kind)} was unexpected.`,
          mn || g,
        );
      }
      e.failBadSyntaxKind = g;
      function E($e, At, mn, dr) {
        $e ||
          ((At = At ? `False expression: ${At}` : "False expression."),
          mn &&
            (At +=
              `\r
Verbose Debug Information: ` + (typeof mn == "string" ? mn : mn())),
          h(At, dr || E));
      }
      e.assert = E;
      function A($e, At, mn, dr, ri) {
        if ($e !== At) {
          const ai = mn ? (dr ? `${mn} ${dr}` : mn) : "";
          h(`Expected ${$e} === ${At}. ${ai}`, ri || A);
        }
      }
      e.assertEqual = A;
      function R($e, At, mn, dr) {
        $e >= At && h(`Expected ${$e} < ${At}. ${mn || ""}`, dr || R);
      }
      e.assertLessThan = R;
      function N($e, At, mn) {
        $e > At && h(`Expected ${$e} <= ${At}`, mn || N);
      }
      e.assertLessThanOrEqual = N;
      function P($e, At, mn) {
        $e < At && h(`Expected ${$e} >= ${At}`, mn || P);
      }
      e.assertGreaterThanOrEqual = P;
      function k($e, At, mn) {
        $e == null && h(At, mn || k);
      }
      e.assertIsDefined = k;
      function W($e, At, mn) {
        return (k($e, At, mn || W), $e);
      }
      e.checkDefined = W;
      function O($e, At, mn) {
        for (const dr of $e) k(dr, At, mn || O);
      }
      e.assertEachIsDefined = O;
      function G($e, At, mn) {
        return (O($e, At, mn || G), $e);
      }
      e.checkEachDefined = G;
      function j($e, At = "Illegal value:", mn) {
        const dr =
          typeof $e == "object" && Rs($e, "kind") && Rs($e, "pos")
            ? "SyntaxKind: " + Ce($e.kind)
            : JSON.stringify($e);
        return h(`${At} ${dr}`, mn || j);
      }
      e.assertNever = j;
      function J($e, At, mn, dr) {
        _(1, "assertEachNode") &&
          E(
            At === void 0 || Vn($e, At),
            mn || "Unexpected node.",
            () => `Node array did not pass test '${de(At)}'.`,
            dr || J,
          );
      }
      e.assertEachNode = J;
      function Z($e, At, mn, dr) {
        _(1, "assertNode") &&
          E(
            $e !== void 0 && (At === void 0 || At($e)),
            mn || "Unexpected node.",
            () => `Node ${Ce($e?.kind)} did not pass test '${de(At)}'.`,
            dr || Z,
          );
      }
      e.assertNode = Z;
      function q($e, At, mn, dr) {
        _(1, "assertNotNode") &&
          E(
            $e === void 0 || At === void 0 || !At($e),
            mn || "Unexpected node.",
            () =>
              `Node ${Ce($e.kind)} should not have passed test '${de(At)}'.`,
            dr || q,
          );
      }
      e.assertNotNode = q;
      function ye($e, At, mn, dr) {
        _(1, "assertOptionalNode") &&
          E(
            At === void 0 || $e === void 0 || At($e),
            mn || "Unexpected node.",
            () => `Node ${Ce($e?.kind)} did not pass test '${de(At)}'.`,
            dr || ye,
          );
      }
      e.assertOptionalNode = ye;
      function ie($e, At, mn, dr) {
        _(1, "assertOptionalToken") &&
          E(
            At === void 0 || $e === void 0 || $e.kind === At,
            mn || "Unexpected node.",
            () => `Node ${Ce($e?.kind)} was not a '${Ce(At)}' token.`,
            dr || ie,
          );
      }
      e.assertOptionalToken = ie;
      function K($e, At, mn) {
        _(1, "assertMissingNode") &&
          E(
            $e === void 0,
            At || "Unexpected node.",
            () => `Node ${Ce($e.kind)} was unexpected'.`,
            mn || K,
          );
      }
      e.assertMissingNode = K;
      function pe($e) {}
      e.type = pe;
      function de($e) {
        if (typeof $e != "function") return "";
        if (Rs($e, "name")) return $e.name;
        {
          const At = Function.prototype.toString.call($e),
            mn = /^function\s+([\w$]+)\s*\(/.exec(At);
          return mn ? mn[1] : "";
        }
      }
      e.getFunctionName = de;
      function fe($e) {
        return `{ name: ${Gi($e.escapedName)}; flags: ${ce($e.flags)}; declarations: ${Vt($e.declarations, (At) => Ce(At.kind))} }`;
      }
      e.formatSymbol = fe;
      function ve($e = 0, At, mn) {
        const dr = X(At);
        if ($e === 0) return dr.length > 0 && dr[0][0] === 0 ? dr[0][1] : "0";
        if (mn) {
          const ri = [];
          let ai = $e;
          for (const [qi, $o] of dr) {
            if (qi > $e) break;
            qi !== 0 && qi & $e && (ri.push($o), (ai &= ~qi));
          }
          if (ai === 0) return ri.join("|");
        } else for (const [ri, ai] of dr) if (ri === $e) return ai;
        return $e.toString();
      }
      e.formatEnum = ve;
      const xe = new Map();
      function X($e) {
        const At = xe.get($e);
        if (At) return At;
        const mn = [];
        for (const ri in $e) {
          const ai = $e[ri];
          typeof ai == "number" && mn.push([ai, ri]);
        }
        const dr = xp(mn, (ri, ai) => js(ri[0], ai[0]));
        return (xe.set($e, dr), dr);
      }
      function Ce($e) {
        return ve($e, i9, !1);
      }
      e.formatSyntaxKind = Ce;
      function Je($e) {
        return ve($e, y9, !1);
      }
      e.formatSnippetKind = Je;
      function Se($e) {
        return ve($e, _9, !1);
      }
      e.formatScriptKind = Se;
      function re($e) {
        return ve($e, o9, !0);
      }
      e.formatNodeFlags = re;
      function be($e) {
        return ve($e, p9, !0);
      }
      e.formatNodeCheckFlags = be;
      function Ne($e) {
        return ve($e, a9, !0);
      }
      e.formatModifierFlags = Ne;
      function Be($e) {
        return ve($e, g9, !0);
      }
      e.formatTransformFlags = Be;
      function lt($e) {
        return ve($e, v9, !0);
      }
      e.formatEmitFlags = lt;
      function ce($e) {
        return ve($e, u9, !0);
      }
      e.formatSymbolFlags = ce;
      function Re($e) {
        return ve($e, f9, !0);
      }
      e.formatTypeFlags = Re;
      function _e($e) {
        return ve($e, h9, !0);
      }
      e.formatSignatureFlags = _e;
      function je($e) {
        return ve($e, m9, !0);
      }
      e.formatObjectFlags = je;
      function Ge($e) {
        return ve($e, J8, !0);
      }
      e.formatFlowFlags = Ge;
      function We($e) {
        return ve($e, s9, !0);
      }
      e.formatRelationComparisonResult = We;
      function at($e) {
        return ve($e, kU, !0);
      }
      e.formatCheckMode = at;
      function Wt($e) {
        return ve($e, wU, !0);
      }
      e.formatSignatureCheckMode = Wt;
      function cn($e) {
        return ve($e, LU, !0);
      }
      e.formatTypeFacts = cn;
      let gn = !1,
        Kn;
      function _t($e) {
        "__debugFlowFlags" in $e ||
          Object.defineProperties($e, {
            __tsDebuggerDisplay: {
              value() {
                const At =
                    this.flags & 2
                      ? "FlowStart"
                      : this.flags & 4
                        ? "FlowBranchLabel"
                        : this.flags & 8
                          ? "FlowLoopLabel"
                          : this.flags & 16
                            ? "FlowAssignment"
                            : this.flags & 32
                              ? "FlowTrueCondition"
                              : this.flags & 64
                                ? "FlowFalseCondition"
                                : this.flags & 128
                                  ? "FlowSwitchClause"
                                  : this.flags & 256
                                    ? "FlowArrayMutation"
                                    : this.flags & 512
                                      ? "FlowCall"
                                      : this.flags & 1024
                                        ? "FlowReduceLabel"
                                        : this.flags & 1
                                          ? "FlowUnreachable"
                                          : "UnknownFlow",
                  mn = this.flags & -2048;
                return `${At}${mn ? ` (${Ge(mn)})` : ""}`;
              },
            },
            __debugFlowFlags: {
              get() {
                return ve(this.flags, J8, !0);
              },
            },
            __debugToString: {
              value() {
                return Ci(this);
              },
            },
          });
      }
      function en($e) {
        return (
          gn &&
            (typeof Object.setPrototypeOf == "function"
              ? (Kn || ((Kn = Object.create(Object.prototype)), _t(Kn)),
                Object.setPrototypeOf($e, Kn))
              : _t($e)),
          $e
        );
      }
      e.attachFlowNodeDebugInfo = en;
      let ir;
      function Di($e) {
        "__tsDebuggerDisplay" in $e ||
          Object.defineProperties($e, {
            __tsDebuggerDisplay: {
              value(At) {
                return (
                  (At = String(At).replace(/(?:,[\s\w]+:[^,]+)+\]$/, "]")),
                  `NodeArray ${At}`
                );
              },
            },
          });
      }
      function lo($e) {
        gn &&
          (typeof Object.setPrototypeOf == "function"
            ? (ir || ((ir = Object.create(Array.prototype)), Di(ir)),
              Object.setPrototypeOf($e, ir))
            : Di($e));
      }
      e.attachNodeArrayDebugInfo = lo;
      function zt() {
        if (gn) return;
        const $e = new WeakMap(),
          At = new WeakMap();
        (Object.defineProperties(Rd.getSymbolConstructor().prototype, {
          __tsDebuggerDisplay: {
            value() {
              const dr = this.flags & 33554432 ? "TransientSymbol" : "Symbol",
                ri = this.flags & -33554433;
              return `${dr} '${wl(this)}'${ri ? ` (${ce(ri)})` : ""}`;
            },
          },
          __debugFlags: {
            get() {
              return ce(this.flags);
            },
          },
        }),
          Object.defineProperties(Rd.getTypeConstructor().prototype, {
            __tsDebuggerDisplay: {
              value() {
                const dr =
                    this.flags & 67359327
                      ? `IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName ? ` (${this.debugIntrinsicName})` : ""}`
                      : this.flags & 98304
                        ? "NullableType"
                        : this.flags & 384
                          ? `LiteralType ${JSON.stringify(this.value)}`
                          : this.flags & 2048
                            ? `LiteralType ${this.value.negative ? "-" : ""}${this.value.base10Value}n`
                            : this.flags & 8192
                              ? "UniqueESSymbolType"
                              : this.flags & 32
                                ? "EnumType"
                                : this.flags & 1048576
                                  ? "UnionType"
                                  : this.flags & 2097152
                                    ? "IntersectionType"
                                    : this.flags & 4194304
                                      ? "IndexType"
                                      : this.flags & 8388608
                                        ? "IndexedAccessType"
                                        : this.flags & 16777216
                                          ? "ConditionalType"
                                          : this.flags & 33554432
                                            ? "SubstitutionType"
                                            : this.flags & 262144
                                              ? "TypeParameter"
                                              : this.flags & 524288
                                                ? this.objectFlags & 3
                                                  ? "InterfaceType"
                                                  : this.objectFlags & 4
                                                    ? "TypeReference"
                                                    : this.objectFlags & 8
                                                      ? "TupleType"
                                                      : this.objectFlags & 16
                                                        ? "AnonymousType"
                                                        : this.objectFlags & 32
                                                          ? "MappedType"
                                                          : this.objectFlags &
                                                              1024
                                                            ? "ReverseMappedType"
                                                            : this.objectFlags &
                                                                256
                                                              ? "EvolvingArrayType"
                                                              : "ObjectType"
                                                : "Type",
                  ri = this.flags & 524288 ? this.objectFlags & -1344 : 0;
                return `${dr}${this.symbol ? ` '${wl(this.symbol)}'` : ""}${ri ? ` (${je(ri)})` : ""}`;
              },
            },
            __debugFlags: {
              get() {
                return Re(this.flags);
              },
            },
            __debugObjectFlags: {
              get() {
                return this.flags & 524288 ? je(this.objectFlags) : "";
              },
            },
            __debugTypeToString: {
              value() {
                let dr = $e.get(this);
                return (
                  dr === void 0 &&
                    ((dr = this.checker.typeToString(this)), $e.set(this, dr)),
                  dr
                );
              },
            },
          }),
          Object.defineProperties(Rd.getSignatureConstructor().prototype, {
            __debugFlags: {
              get() {
                return _e(this.flags);
              },
            },
            __debugSignatureToString: {
              value() {
                var dr;
                return (dr = this.checker) == null
                  ? void 0
                  : dr.signatureToString(this);
              },
            },
          }));
        const mn = [
          Rd.getNodeConstructor(),
          Rd.getIdentifierConstructor(),
          Rd.getTokenConstructor(),
          Rd.getSourceFileConstructor(),
        ];
        for (const dr of mn)
          Rs(dr.prototype, "__debugKind") ||
            Object.defineProperties(dr.prototype, {
              __tsDebuggerDisplay: {
                value() {
                  return `${pl(this) ? "GeneratedIdentifier" : He(this) ? `Identifier '${Kr(this)}'` : eo(this) ? `PrivateIdentifier '${Kr(this)}'` : ka(this) ? `StringLiteral ${JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + "...")}` : np(this) ? `NumericLiteral ${this.text}` : yD(this) ? `BigIntLiteral ${this.text}n` : sl(this) ? "TypeParameterDeclaration" : to(this) ? "ParameterDeclaration" : Ml(this) ? "ConstructorDeclaration" : Hf(this) ? "GetAccessorDeclaration" : gp(this) ? "SetAccessorDeclaration" : UI(this) ? "CallSignatureDeclaration" : GM(this) ? "ConstructSignatureDeclaration" : Mb(this) ? "IndexSignatureDeclaration" : HI(this) ? "TypePredicateNode" : Wp(this) ? "TypeReferenceNode" : w_(this) ? "FunctionTypeNode" : vD(this) ? "ConstructorTypeNode" : FS(this) ? "TypeQueryNode" : wu(this) ? "TypeLiteralNode" : hw(this) ? "ArrayTypeNode" : qI(this) ? "TupleTypeNode" : g4(this) ? "OptionalTypeNode" : y4(this) ? "RestTypeNode" : dv(this) ? "UnionTypeNode" : JI(this) ? "IntersectionTypeNode" : zS(this) ? "ConditionalTypeNode" : y1(this) ? "InferTypeNode" : v1(this) ? "ParenthesizedTypeNode" : VM(this) ? "ThisTypeNode" : KT(this) ? "TypeOperatorNode" : BS(this) ? "IndexedAccessTypeNode" : b1(this) ? "MappedTypeNode" : uv(this) ? "LiteralTypeNode" : bD(this) ? "NamedTupleMember" : e_(this) ? "ImportTypeNode" : Ce(this.kind)}${this.flags ? ` (${re(this.flags)})` : ""}`;
                },
              },
              __debugKind: {
                get() {
                  return Ce(this.kind);
                },
              },
              __debugNodeFlags: {
                get() {
                  return re(this.flags);
                },
              },
              __debugModifierFlags: {
                get() {
                  return Ne(Bne(this));
                },
              },
              __debugTransformFlags: {
                get() {
                  return Be(this.transformFlags);
                },
              },
              __debugIsParseTreeNode: {
                get() {
                  return MN(this);
                },
              },
              __debugEmitFlags: {
                get() {
                  return lt(Qa(this));
                },
              },
              __debugGetText: {
                value(ri) {
                  if (Os(this)) return "";
                  let ai = At.get(this);
                  if (ai === void 0) {
                    const qi = jo(this),
                      $o = qi && Wn(qi);
                    ((ai = $o ? vS($o, qi, ri) : ""), At.set(this, ai));
                  }
                  return ai;
                },
              },
            });
        gn = !0;
      }
      e.enableDebugInfo = zt;
      function Zr($e) {
        const At = $e & 7;
        let mn =
          At === 0
            ? "in out"
            : At === 3
              ? "[bivariant]"
              : At === 2
                ? "in"
                : At === 1
                  ? "out"
                  : At === 4
                    ? "[independent]"
                    : "";
        return (
          $e & 8
            ? (mn += " (unmeasurable)")
            : $e & 16 && (mn += " (unreliable)"),
          mn
        );
      }
      e.formatVariance = Zr;
      class Ai {
        __debugToString() {
          var At;
          switch (this.kind) {
            case 3:
              return (
                ((At = this.debugInfo) == null ? void 0 : At.call(this)) ||
                "(function mapper)"
              );
            case 0:
              return `${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;
            case 1:
              return ki(
                this.sources,
                this.targets || Vt(this.sources, () => "any"),
                (mn, dr) =>
                  `${mn.__debugTypeToString()} -> ${typeof dr == "string" ? dr : dr.__debugTypeToString()}`,
              ).join(", ");
            case 2:
              return ki(
                this.sources,
                this.targets,
                (mn, dr) =>
                  `${mn.__debugTypeToString()} -> ${dr().__debugTypeToString()}`,
              ).join(", ");
            case 5:
            case 4:
              return `m1: ${this.mapper1.__debugToString().split(`
`).join(`
    `)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
    `)}`;
            default:
              return j(this);
          }
        }
      }
      e.DebugTypeMapper = Ai;
      function Ni($e) {
        return e.isDebugging ? Object.setPrototypeOf($e, Ai.prototype) : $e;
      }
      e.attachDebugPrototypeIfDebug = Ni;
      function Pr($e) {
        return console.log(Ci($e));
      }
      e.printControlFlowGraph = Pr;
      function Ci($e) {
        let At = -1;
        function mn(Ae) {
          return (Ae.id || ((Ae.id = At), At--), Ae.id);
        }
        let dr;
        ((Ae) => {
          ((Ae.lr = "─"),
            (Ae.ud = "│"),
            (Ae.dr = "╭"),
            (Ae.dl = "╮"),
            (Ae.ul = "╯"),
            (Ae.ur = "╰"),
            (Ae.udr = "├"),
            (Ae.udl = "┤"),
            (Ae.dlr = "┬"),
            (Ae.ulr = "┴"),
            (Ae.udlr = "╫"));
        })(dr || (dr = {}));
        let ri;
        ((Ae) => {
          ((Ae[(Ae.None = 0)] = "None"),
            (Ae[(Ae.Up = 1)] = "Up"),
            (Ae[(Ae.Down = 2)] = "Down"),
            (Ae[(Ae.Left = 4)] = "Left"),
            (Ae[(Ae.Right = 8)] = "Right"),
            (Ae[(Ae.UpDown = 3)] = "UpDown"),
            (Ae[(Ae.LeftRight = 12)] = "LeftRight"),
            (Ae[(Ae.UpLeft = 5)] = "UpLeft"),
            (Ae[(Ae.UpRight = 9)] = "UpRight"),
            (Ae[(Ae.DownLeft = 6)] = "DownLeft"),
            (Ae[(Ae.DownRight = 10)] = "DownRight"),
            (Ae[(Ae.UpDownLeft = 7)] = "UpDownLeft"),
            (Ae[(Ae.UpDownRight = 11)] = "UpDownRight"),
            (Ae[(Ae.UpLeftRight = 13)] = "UpLeftRight"),
            (Ae[(Ae.DownLeftRight = 14)] = "DownLeftRight"),
            (Ae[(Ae.UpDownLeftRight = 15)] = "UpDownLeftRight"),
            (Ae[(Ae.NoChildren = 16)] = "NoChildren"));
        })(ri || (ri = {}));
        const ai = 2032,
          qi = 882,
          $o = Object.create(null),
          Ia = [],
          Mn = dt($e, new Set());
        for (const Ae of Ia) ((Ae.text = Tr(Ae.flowNode, Ae.circular)), Ue(Ae));
        const Uo = Rt(Mn),
          ot = It(Uo);
        return (Ot(Mn, 0), Oe());
        function Ft(Ae) {
          return !!(Ae.flags & 128);
        }
        function le(Ae) {
          return !!(Ae.flags & 12) && !!Ae.antecedent;
        }
        function ht(Ae) {
          return !!(Ae.flags & ai);
        }
        function ne(Ae) {
          return !!(Ae.flags & qi);
        }
        function Fe(Ae) {
          const te = [];
          for (const xt of Ae.edges) xt.source === Ae && te.push(xt.target);
          return te;
        }
        function it(Ae) {
          const te = [];
          for (const xt of Ae.edges) xt.target === Ae && te.push(xt.source);
          return te;
        }
        function dt(Ae, te) {
          const xt = mn(Ae);
          let Xt = $o[xt];
          if (Xt && te.has(Ae))
            return (
              (Xt.circular = !0),
              (Xt = {
                id: -1,
                flowNode: Ae,
                edges: [],
                text: "",
                lane: -1,
                endLane: -1,
                level: -1,
                circular: "circularity",
              }),
              Ia.push(Xt),
              Xt
            );
          if ((te.add(Ae), !Xt))
            if (
              (($o[xt] = Xt =
                {
                  id: xt,
                  flowNode: Ae,
                  edges: [],
                  text: "",
                  lane: -1,
                  endLane: -1,
                  level: -1,
                  circular: !1,
                }),
              Ia.push(Xt),
              le(Ae))
            )
              for (const Pe of Ae.antecedent) Lt(Xt, Pe, te);
            else ht(Ae) && Lt(Xt, Ae.antecedent, te);
          return (te.delete(Ae), Xt);
        }
        function Lt(Ae, te, xt) {
          const Xt = dt(te, xt),
            Pe = { source: Ae, target: Xt };
          (Ae.edges.push(Pe), Xt.edges.push(Pe));
        }
        function Ue(Ae) {
          if (Ae.level !== -1) return Ae.level;
          let te = 0;
          for (const xt of it(Ae)) te = Math.max(te, Ue(xt) + 1);
          return (Ae.level = te);
        }
        function Rt(Ae) {
          let te = 0;
          for (const xt of Fe(Ae)) te = Math.max(te, Rt(xt));
          return te + 1;
        }
        function It(Ae) {
          const te = he(Array(Ae), 0);
          for (const xt of Ia)
            te[xt.level] = Math.max(te[xt.level], xt.text.length);
          return te;
        }
        function Ot(Ae, te) {
          if (Ae.lane === -1) {
            ((Ae.lane = te), (Ae.endLane = te));
            const xt = Fe(Ae);
            for (let Xt = 0; Xt < xt.length; Xt++) {
              Xt > 0 && te++;
              const Pe = xt[Xt];
              (Ot(Pe, te), Pe.endLane > Ae.endLane && (te = Pe.endLane));
            }
            Ae.endLane = te;
          }
        }
        function nt(Ae) {
          if (Ae & 2) return "Start";
          if (Ae & 4) return "Branch";
          if (Ae & 8) return "Loop";
          if (Ae & 16) return "Assignment";
          if (Ae & 32) return "True";
          if (Ae & 64) return "False";
          if (Ae & 128) return "SwitchClause";
          if (Ae & 256) return "ArrayMutation";
          if (Ae & 512) return "Call";
          if (Ae & 1024) return "ReduceLabel";
          if (Ae & 1) return "Unreachable";
          throw new Error();
        }
        function Kt(Ae) {
          const te = Wn(Ae);
          return vS(te, Ae, !1);
        }
        function Tr(Ae, te) {
          let xt = nt(Ae.flags);
          if ((te && (xt = `${xt}#${mn(Ae)}`), Ft(Ae))) {
            const Xt = [],
              { switchStatement: Pe, clauseStart: gt, clauseEnd: Bt } = Ae.node;
            for (let gr = gt; gr < Bt; gr++) {
              const tr = Pe.caseBlock.clauses[gr];
              qM(tr) ? Xt.push("default") : Xt.push(Kt(tr.expression));
            }
            xt += ` (${Xt.join(", ")})`;
          } else ne(Ae) && Ae.node && (xt += ` (${Kt(Ae.node)})`);
          return te === "circularity" ? `Circular(${xt})` : xt;
        }
        function Oe() {
          const Ae = ot.length,
            te = qB(Ia, 0, (Bt) => Bt.lane) + 1,
            xt = he(Array(te), ""),
            Xt = ot.map(() => Array(te)),
            Pe = ot.map(() => he(Array(te), 0));
          for (const Bt of Ia) {
            Xt[Bt.level][Bt.lane] = Bt;
            const gr = Fe(Bt);
            for (let Jn = 0; Jn < gr.length; Jn++) {
              const ft = gr[Jn];
              let Mt = 8;
              (ft.lane === Bt.lane && (Mt |= 4),
                Jn > 0 && (Mt |= 1),
                Jn < gr.length - 1 && (Mt |= 2),
                (Pe[Bt.level][ft.lane] |= Mt));
            }
            gr.length === 0 && (Pe[Bt.level][Bt.lane] |= 16);
            const tr = it(Bt);
            for (let Jn = 0; Jn < tr.length; Jn++) {
              const ft = tr[Jn];
              let Mt = 4;
              (Jn > 0 && (Mt |= 1),
                Jn < tr.length - 1 && (Mt |= 2),
                (Pe[Bt.level - 1][ft.lane] |= Mt));
            }
          }
          for (let Bt = 0; Bt < Ae; Bt++)
            for (let gr = 0; gr < te; gr++) {
              const tr = Bt > 0 ? Pe[Bt - 1][gr] : 0,
                Jn = gr > 0 ? Pe[Bt][gr - 1] : 0;
              let ft = Pe[Bt][gr];
              ft ||
                (tr & 8 && (ft |= 12), Jn & 2 && (ft |= 3), (Pe[Bt][gr] = ft));
            }
          for (let Bt = 0; Bt < Ae; Bt++)
            for (let gr = 0; gr < xt.length; gr++) {
              const tr = Pe[Bt][gr],
                Jn = tr & 4 ? "─" : " ",
                ft = Xt[Bt][gr];
              (ft
                ? (gt(gr, ft.text),
                  Bt < Ae - 1 &&
                    (gt(gr, " "), gt(gr, B(Jn, ot[Bt] - ft.text.length))))
                : Bt < Ae - 1 && gt(gr, B(Jn, ot[Bt] + 1)),
                gt(gr, Nt(tr)),
                gt(gr, tr & 8 && Bt < Ae - 1 && !Xt[Bt + 1][gr] ? "─" : " "));
            }
          return `
${xt.join(`
`)}
`;
          function gt(Bt, gr) {
            xt[Bt] += gr;
          }
        }
        function Nt(Ae) {
          switch (Ae) {
            case 3:
              return "│";
            case 12:
              return "─";
            case 5:
              return "╯";
            case 9:
              return "╰";
            case 6:
              return "╮";
            case 10:
              return "╭";
            case 7:
              return "┤";
            case 11:
              return "├";
            case 13:
              return "┴";
            case 14:
              return "┬";
            case 15:
              return "╫";
          }
          return " ";
        }
        function he(Ae, te) {
          if (Ae.fill) Ae.fill(te);
          else for (let xt = 0; xt < Ae.length; xt++) Ae[xt] = te;
          return Ae;
        }
        function B(Ae, te) {
          if (Ae.repeat) return te > 0 ? Ae.repeat(te) : "";
          let xt = "";
          for (; xt.length < te; ) xt += Ae;
          return xt;
        }
      }
      e.formatControlFlowGraph = Ci;
    })(C || (C = {}));
    var VBe =
        /^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,
      jBe =
        /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,
      UBe = /^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,
      HBe = /^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,
      qBe = /^[a-z0-9-]+$/i,
      mTe = /^(?:0|[1-9]\d*)$/,
      oZ = class E8 {
        constructor(t, r = 0, i = 0, o = "", s = "") {
          (typeof t == "string" &&
            ({
              major: t,
              minor: r,
              patch: i,
              prerelease: o,
              build: s,
            } = C.checkDefined(hTe(t), "Invalid version")),
            C.assert(t >= 0, "Invalid argument: major"),
            C.assert(r >= 0, "Invalid argument: minor"),
            C.assert(i >= 0, "Invalid argument: patch"));
          const l = o ? (Mo(o) ? o : o.split(".")) : ae,
            u = s ? (Mo(s) ? s : s.split(".")) : ae;
          (C.assert(
            Vn(l, (d) => UBe.test(d)),
            "Invalid argument: prerelease",
          ),
            C.assert(
              Vn(u, (d) => qBe.test(d)),
              "Invalid argument: build",
            ),
            (this.major = t),
            (this.minor = r),
            (this.patch = i),
            (this.prerelease = l),
            (this.build = u));
        }
        static tryParse(t) {
          const r = hTe(t);
          if (!r) return;
          const { major: i, minor: o, patch: s, prerelease: l, build: u } = r;
          return new E8(i, o, s, l, u);
        }
        compareTo(t) {
          return this === t
            ? 0
            : t === void 0
              ? 1
              : js(this.major, t.major) ||
                js(this.minor, t.minor) ||
                js(this.patch, t.patch) ||
                JBe(this.prerelease, t.prerelease);
        }
        increment(t) {
          switch (t) {
            case "major":
              return new E8(this.major + 1, 0, 0);
            case "minor":
              return new E8(this.major, this.minor + 1, 0);
            case "patch":
              return new E8(this.major, this.minor, this.patch + 1);
            default:
              return C.assertNever(t);
          }
        }
        with(t) {
          const {
            major: r = this.major,
            minor: i = this.minor,
            patch: o = this.patch,
            prerelease: s = this.prerelease,
            build: l = this.build,
          } = t;
          return new E8(r, i, o, s, l);
        }
        toString() {
          let t = `${this.major}.${this.minor}.${this.patch}`;
          return (
            yt(this.prerelease) && (t += `-${this.prerelease.join(".")}`),
            yt(this.build) && (t += `+${this.build.join(".")}`),
            t
          );
        }
      };
    oZ.zero = new oZ(0, 0, 0, ["0"]);
    var ih = oZ;
    function hTe(e) {
      const t = VBe.exec(e);
      if (!t) return;
      const [, r, i = "0", o = "0", s = "", l = ""] = t;
      if (!(s && !jBe.test(s)) && !(l && !HBe.test(l)))
        return {
          major: parseInt(r, 10),
          minor: parseInt(i, 10),
          patch: parseInt(o, 10),
          prerelease: s,
          build: l,
        };
    }
    function JBe(e, t) {
      if (e === t) return 0;
      if (e.length === 0) return t.length === 0 ? 0 : 1;
      if (t.length === 0) return -1;
      const r = Math.min(e.length, t.length);
      for (let i = 0; i < r; i++) {
        const o = e[i],
          s = t[i];
        if (o === s) continue;
        const l = mTe.test(o),
          u = mTe.test(s);
        if (l || u) {
          if (l !== u) return l ? -1 : 1;
          const d = js(+o, +s);
          if (d) return d;
        } else {
          const d = Wd(o, s);
          if (d) return d;
        }
      }
      return js(e.length, t.length);
    }
    var q8 = class R7e {
        constructor(t) {
          this._alternatives = t
            ? C.checkDefined(_Te(t), "Invalid range spec.")
            : ae;
        }
        static tryParse(t) {
          const r = _Te(t);
          if (r) {
            const i = new R7e("");
            return ((i._alternatives = r), i);
          }
        }
        test(t) {
          return (
            typeof t == "string" && (t = new ih(t)),
            t9e(t, this._alternatives)
          );
        }
        toString() {
          return i9e(this._alternatives);
        }
      },
      KBe = /\|\|/,
      XBe = /\s+/,
      YBe =
        /^([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,
      $Be = /^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,
      QBe = /^([~^<>=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;
    function _Te(e) {
      const t = [];
      for (let r of e.trim().split(KBe)) {
        if (!r) continue;
        const i = [];
        r = r.trim();
        const o = $Be.exec(r);
        if (o) {
          if (!ZBe(o[1], o[2], i)) return;
        } else
          for (const s of r.split(XBe)) {
            const l = QBe.exec(s.trim());
            if (!l || !e9e(l[1], l[2], i)) return;
          }
        t.push(i);
      }
      return t;
    }
    function aZ(e) {
      const t = YBe.exec(e);
      if (!t) return;
      const [, r, i = "*", o = "*", s, l] = t;
      return {
        version: new ih(
          dm(r) ? 0 : parseInt(r, 10),
          dm(r) || dm(i) ? 0 : parseInt(i, 10),
          dm(r) || dm(i) || dm(o) ? 0 : parseInt(o, 10),
          s,
          l,
        ),
        major: r,
        minor: i,
        patch: o,
      };
    }
    function ZBe(e, t, r) {
      const i = aZ(e);
      if (!i) return !1;
      const o = aZ(t);
      return o
        ? (dm(i.major) || r.push(x_(">=", i.version)),
          dm(o.major) ||
            r.push(
              dm(o.minor)
                ? x_("<", o.version.increment("major"))
                : dm(o.patch)
                  ? x_("<", o.version.increment("minor"))
                  : x_("<=", o.version),
            ),
          !0)
        : !1;
    }
    function e9e(e, t, r) {
      const i = aZ(t);
      if (!i) return !1;
      const { version: o, major: s, minor: l, patch: u } = i;
      if (dm(s)) (e === "<" || e === ">") && r.push(x_("<", ih.zero));
      else
        switch (e) {
          case "~":
            (r.push(x_(">=", o)),
              r.push(x_("<", o.increment(dm(l) ? "major" : "minor"))));
            break;
          case "^":
            (r.push(x_(">=", o)),
              r.push(
                x_(
                  "<",
                  o.increment(
                    o.major > 0 || dm(l)
                      ? "major"
                      : o.minor > 0 || dm(u)
                        ? "minor"
                        : "patch",
                  ),
                ),
              ));
            break;
          case "<":
          case ">=":
            r.push(
              dm(l) || dm(u) ? x_(e, o.with({ prerelease: "0" })) : x_(e, o),
            );
            break;
          case "<=":
          case ">":
            r.push(
              dm(l)
                ? x_(
                    e === "<=" ? "<" : ">=",
                    o.increment("major").with({ prerelease: "0" }),
                  )
                : dm(u)
                  ? x_(
                      e === "<=" ? "<" : ">=",
                      o.increment("minor").with({ prerelease: "0" }),
                    )
                  : x_(e, o),
            );
            break;
          case "=":
          case void 0:
            dm(l) || dm(u)
              ? (r.push(x_(">=", o.with({ prerelease: "0" }))),
                r.push(
                  x_(
                    "<",
                    o
                      .increment(dm(l) ? "major" : "minor")
                      .with({ prerelease: "0" }),
                  ),
                ))
              : r.push(x_("=", o));
            break;
          default:
            return !1;
        }
      return !0;
    }
    function dm(e) {
      return e === "*" || e === "x" || e === "X";
    }
    function x_(e, t) {
      return { operator: e, operand: t };
    }
    function t9e(e, t) {
      if (t.length === 0) return !0;
      for (const r of t) if (n9e(e, r)) return !0;
      return !1;
    }
    function n9e(e, t) {
      for (const r of t) if (!r9e(e, r.operator, r.operand)) return !1;
      return !0;
    }
    function r9e(e, t, r) {
      const i = e.compareTo(r);
      switch (t) {
        case "<":
          return i < 0;
        case "<=":
          return i <= 0;
        case ">":
          return i > 0;
        case ">=":
          return i >= 0;
        case "=":
          return i === 0;
        default:
          return C.assertNever(t);
      }
    }
    function i9e(e) {
      return Vt(e, o9e).join(" || ") || "*";
    }
    function o9e(e) {
      return Vt(e, a9e).join(" ");
    }
    function a9e(e) {
      return `${e.operator}${e.operand}`;
    }
    function s9e() {
      if ((e9(), typeof performance == "object"))
        return { shouldWriteNativeEvents: !0, performance };
    }
    function l9e() {
      const e = s9e();
      if (!e) return;
      const { shouldWriteNativeEvents: t, performance: r } = e,
        i = {
          shouldWriteNativeEvents: t,
          performance: void 0,
          performanceTime: void 0,
        };
      return (
        typeof r.timeOrigin == "number" &&
          typeof r.now == "function" &&
          (i.performanceTime = r),
        i.performanceTime &&
          typeof r.mark == "function" &&
          typeof r.measure == "function" &&
          typeof r.clearMarks == "function" &&
          typeof r.clearMeasures == "function" &&
          (i.performance = r),
        i
      );
    }
    var sZ = l9e(),
      gTe = sZ?.performanceTime;
    function lZ() {
      return sZ;
    }
    var Ls = gTe ? () => gTe.now() : Date.now,
      cZ = {};
    x(cZ, {
      clearMarks: () => ETe,
      clearMeasures: () => STe,
      createTimer: () => t9,
      createTimerIf: () => yTe,
      disable: () => pZ,
      enable: () => r9,
      forEachMark: () => TTe,
      forEachMeasure: () => n9,
      getCount: () => bTe,
      getDuration: () => bN,
      isEnabled: () => uZ,
      mark: () => Rl,
      measure: () => wf,
      nullTimer: () => dZ,
    });
    var _N, VE;
    function yTe(e, t, r, i) {
      return e ? t9(t, r, i) : dZ;
    }
    function t9(e, t, r) {
      let i = 0;
      return { enter: o, exit: s };
      function o() {
        ++i === 1 && Rl(t);
      }
      function s() {
        --i === 0
          ? (Rl(r), wf(e, t, r))
          : i < 0 && C.fail("enter/exit count does not match.");
      }
    }
    var dZ = { enter: gs, exit: gs },
      gN = !1,
      vTe = Ls(),
      yN = new Map(),
      b2 = new Map(),
      vN = new Map();
    function Rl(e) {
      if (gN) {
        const t = b2.get(e) ?? 0;
        (b2.set(e, t + 1),
          yN.set(e, Ls()),
          VE?.mark(e),
          typeof onProfilerEvent == "function" && onProfilerEvent(e));
      }
    }
    function wf(e, t, r) {
      if (gN) {
        const i = (r !== void 0 ? yN.get(r) : void 0) ?? Ls(),
          o = (t !== void 0 ? yN.get(t) : void 0) ?? vTe,
          s = vN.get(e) || 0;
        (vN.set(e, s + (i - o)), VE?.measure(e, t, r));
      }
    }
    function bTe(e) {
      return b2.get(e) || 0;
    }
    function bN(e) {
      return vN.get(e) || 0;
    }
    function n9(e) {
      vN.forEach((t, r) => e(r, t));
    }
    function TTe(e) {
      yN.forEach((t, r) => e(r));
    }
    function STe(e) {
      (e !== void 0 ? vN.delete(e) : vN.clear(), VE?.clearMeasures(e));
    }
    function ETe(e) {
      (e !== void 0 ? (b2.delete(e), yN.delete(e)) : (b2.clear(), yN.clear()),
        VE?.clearMarks(e));
    }
    function uZ() {
      return gN;
    }
    function r9(e = jc) {
      var t;
      return (
        gN ||
          ((gN = !0),
          _N || (_N = lZ()),
          _N?.performance &&
            ((vTe = _N.performance.timeOrigin),
            (_N.shouldWriteNativeEvents ||
              ((t = e?.cpuProfilingEnabled) != null && t.call(e)) ||
              e?.debugMode) &&
              (VE = _N.performance))),
        !0
      );
    }
    function pZ() {
      gN && (yN.clear(), b2.clear(), vN.clear(), (VE = void 0), (gN = !1));
    }
    var xr, T2;
    ((e) => {
      let t,
        r = 0,
        i = 0,
        o;
      const s = [];
      let l;
      const u = [];
      function d(J, Z, q) {
        if ((C.assert(!xr, "Tracing already started"), t === void 0))
          try {
            t = oTe("fs");
          } catch (de) {
            throw new Error(`tracing requires having fs
(original error: ${de.message || de})`);
          }
        ((o = J),
          (s.length = 0),
          l === void 0 && (l = Qr(Z, "legend.json")),
          t.existsSync(Z) || t.mkdirSync(Z, { recursive: !0 }));
        const ye =
            o === "build"
              ? `.${process.pid}-${++r}`
              : o === "server"
                ? `.${process.pid}`
                : "",
          ie = Qr(Z, `trace${ye}.json`),
          K = Qr(Z, `types${ye}.json`);
        (u.push({ configFilePath: q, tracePath: ie, typesPath: K }),
          (i = t.openSync(ie, "w")),
          (xr = e));
        const pe = {
          cat: "__metadata",
          ph: "M",
          ts: 1e3 * Ls(),
          pid: 1,
          tid: 1,
        };
        t.writeSync(
          i,
          `[
` +
            [
              { name: "process_name", args: { name: "tsc" }, ...pe },
              { name: "thread_name", args: { name: "Main" }, ...pe },
              {
                name: "TracingStartedInBrowser",
                ...pe,
                cat: "disabled-by-default-devtools.timeline",
              },
            ].map((de) => JSON.stringify(de)).join(`,
`),
        );
      }
      e.startTracing = d;
      function _() {
        (C.assert(xr, "Tracing is not in progress"),
          C.assert(!!s.length == (o !== "server")),
          t.writeSync(
            i,
            `
]
`,
          ),
          t.closeSync(i),
          (xr = void 0),
          s.length ? G(s) : (u[u.length - 1].typesPath = void 0));
      }
      e.stopTracing = _;
      function h(J) {
        o !== "server" && s.push(J);
      }
      ((e.recordType = h),
        ((J) => {
          ((J.Parse = "parse"),
            (J.Program = "program"),
            (J.Bind = "bind"),
            (J.Check = "check"),
            (J.CheckTypes = "checkTypes"),
            (J.Emit = "emit"),
            (J.Session = "session"));
        })(e.Phase || (e.Phase = {})));
      function g(J, Z, q) {
        W("I", J, Z, q, '"s":"g"');
      }
      e.instant = g;
      const E = [];
      function A(J, Z, q, ye = !1) {
        (ye && W("B", J, Z, q),
          E.push({
            phase: J,
            name: Z,
            args: q,
            time: 1e3 * Ls(),
            separateBeginAndEnd: ye,
          }));
      }
      e.push = A;
      function R(J) {
        (C.assert(E.length > 0), k(E.length - 1, 1e3 * Ls(), J), E.length--);
      }
      e.pop = R;
      function N() {
        const J = 1e3 * Ls();
        for (let Z = E.length - 1; Z >= 0; Z--) k(Z, J);
        E.length = 0;
      }
      e.popAll = N;
      const P = 1e3 * 10;
      function k(J, Z, q) {
        const {
          phase: ye,
          name: ie,
          args: K,
          time: pe,
          separateBeginAndEnd: de,
        } = E[J];
        de
          ? (C.assert(
              !q,
              "`results` are not supported for events with `separateBeginAndEnd`",
            ),
            W("E", ye, ie, K, void 0, Z))
          : P - (pe % P) <= Z - pe &&
            W("X", ye, ie, { ...K, results: q }, `"dur":${Z - pe}`, pe);
      }
      function W(J, Z, q, ye, ie, K = 1e3 * Ls()) {
        (o === "server" && Z === "checkTypes") ||
          (Rl("beginTracing"),
          t.writeSync(
            i,
            `,
{"pid":1,"tid":1,"ph":"${J}","cat":"${Z}","ts":${K},"name":"${q}"`,
          ),
          ie && t.writeSync(i, `,${ie}`),
          ye && t.writeSync(i, `,"args":${JSON.stringify(ye)}`),
          t.writeSync(i, "}"),
          Rl("endTracing"),
          wf("Tracing", "beginTracing", "endTracing"));
      }
      function O(J) {
        const Z = Wn(J);
        return Z
          ? { path: Z.path, start: q(ca(Z, J.pos)), end: q(ca(Z, J.end)) }
          : void 0;
        function q(ye) {
          return { line: ye.line + 1, character: ye.character + 1 };
        }
      }
      function G(J) {
        var Z,
          q,
          ye,
          ie,
          K,
          pe,
          de,
          fe,
          ve,
          xe,
          X,
          Ce,
          Je,
          Se,
          re,
          be,
          Ne,
          Be,
          lt;
        Rl("beginDumpTypes");
        const ce = u[u.length - 1].typesPath,
          Re = t.openSync(ce, "w"),
          _e = new Map();
        t.writeSync(Re, "[");
        const je = J.length;
        for (let Ge = 0; Ge < je; Ge++) {
          const We = J[Ge],
            at = We.objectFlags,
            Wt = We.aliasSymbol ?? We.symbol;
          let cn;
          if ((at & 16) | (We.flags & 2944))
            try {
              cn = (Z = We.checker) == null ? void 0 : Z.typeToString(We);
            } catch {
              cn = void 0;
            }
          let gn = {};
          if (We.flags & 8388608) {
            const Ai = We;
            gn = {
              indexedAccessObjectType:
                (q = Ai.objectType) == null ? void 0 : q.id,
              indexedAccessIndexType:
                (ye = Ai.indexType) == null ? void 0 : ye.id,
            };
          }
          let Kn = {};
          if (at & 4) {
            const Ai = We;
            Kn = {
              instantiatedType: (ie = Ai.target) == null ? void 0 : ie.id,
              typeArguments:
                (K = Ai.resolvedTypeArguments) == null
                  ? void 0
                  : K.map((Ni) => Ni.id),
              referenceLocation: O(Ai.node),
            };
          }
          let _t = {};
          if (We.flags & 16777216) {
            const Ai = We;
            _t = {
              conditionalCheckType:
                (pe = Ai.checkType) == null ? void 0 : pe.id,
              conditionalExtendsType:
                (de = Ai.extendsType) == null ? void 0 : de.id,
              conditionalTrueType:
                ((fe = Ai.resolvedTrueType) == null ? void 0 : fe.id) ?? -1,
              conditionalFalseType:
                ((ve = Ai.resolvedFalseType) == null ? void 0 : ve.id) ?? -1,
            };
          }
          let en = {};
          if (We.flags & 33554432) {
            const Ai = We;
            en = {
              substitutionBaseType: (xe = Ai.baseType) == null ? void 0 : xe.id,
              constraintType: (X = Ai.constraint) == null ? void 0 : X.id,
            };
          }
          let ir = {};
          if (at & 1024) {
            const Ai = We;
            ir = {
              reverseMappedSourceType:
                (Ce = Ai.source) == null ? void 0 : Ce.id,
              reverseMappedMappedType:
                (Je = Ai.mappedType) == null ? void 0 : Je.id,
              reverseMappedConstraintType:
                (Se = Ai.constraintType) == null ? void 0 : Se.id,
            };
          }
          let Di = {};
          if (at & 256) {
            const Ai = We;
            Di = {
              evolvingArrayElementType: Ai.elementType.id,
              evolvingArrayFinalType:
                (re = Ai.finalArrayType) == null ? void 0 : re.id,
            };
          }
          let lo;
          const zt = We.checker.getRecursionIdentity(We);
          zt && ((lo = _e.get(zt)), lo || ((lo = _e.size), _e.set(zt, lo)));
          const Zr = {
            id: We.id,
            intrinsicName: We.intrinsicName,
            symbolName: Wt?.escapedName && Gi(Wt.escapedName),
            recursionId: lo,
            isTuple: at & 8 ? !0 : void 0,
            unionTypes:
              We.flags & 1048576
                ? (be = We.types) == null
                  ? void 0
                  : be.map((Ai) => Ai.id)
                : void 0,
            intersectionTypes:
              We.flags & 2097152 ? We.types.map((Ai) => Ai.id) : void 0,
            aliasTypeArguments:
              (Ne = We.aliasTypeArguments) == null
                ? void 0
                : Ne.map((Ai) => Ai.id),
            keyofType:
              We.flags & 4194304
                ? (Be = We.type) == null
                  ? void 0
                  : Be.id
                : void 0,
            ...gn,
            ...Kn,
            ..._t,
            ...en,
            ...ir,
            ...Di,
            destructuringPattern: O(We.pattern),
            firstDeclaration: O(
              (lt = Wt?.declarations) == null ? void 0 : lt[0],
            ),
            flags: C.formatTypeFlags(We.flags).split("|"),
            display: cn,
          };
          (t.writeSync(Re, JSON.stringify(Zr)),
            Ge < je - 1 &&
              t.writeSync(
                Re,
                `,
`,
              ));
        }
        (t.writeSync(
          Re,
          `]
`,
        ),
          t.closeSync(Re),
          Rl("endDumpTypes"),
          wf("Dump types", "beginDumpTypes", "endDumpTypes"));
      }
      function j() {
        l && t.writeFileSync(l, JSON.stringify(u));
      }
      e.dumpLegend = j;
    })(T2 || (T2 = {}));
    var fZ = T2.startTracing,
      mZ = T2.dumpLegend,
      i9 = ((e) => (
        (e[(e.Unknown = 0)] = "Unknown"),
        (e[(e.EndOfFileToken = 1)] = "EndOfFileToken"),
        (e[(e.SingleLineCommentTrivia = 2)] = "SingleLineCommentTrivia"),
        (e[(e.MultiLineCommentTrivia = 3)] = "MultiLineCommentTrivia"),
        (e[(e.NewLineTrivia = 4)] = "NewLineTrivia"),
        (e[(e.WhitespaceTrivia = 5)] = "WhitespaceTrivia"),
        (e[(e.ShebangTrivia = 6)] = "ShebangTrivia"),
        (e[(e.ConflictMarkerTrivia = 7)] = "ConflictMarkerTrivia"),
        (e[(e.NonTextFileMarkerTrivia = 8)] = "NonTextFileMarkerTrivia"),
        (e[(e.NumericLiteral = 9)] = "NumericLiteral"),
        (e[(e.BigIntLiteral = 10)] = "BigIntLiteral"),
        (e[(e.StringLiteral = 11)] = "StringLiteral"),
        (e[(e.JsxText = 12)] = "JsxText"),
        (e[(e.JsxTextAllWhiteSpaces = 13)] = "JsxTextAllWhiteSpaces"),
        (e[(e.RegularExpressionLiteral = 14)] = "RegularExpressionLiteral"),
        (e[(e.NoSubstitutionTemplateLiteral = 15)] =
          "NoSubstitutionTemplateLiteral"),
        (e[(e.TemplateHead = 16)] = "TemplateHead"),
        (e[(e.TemplateMiddle = 17)] = "TemplateMiddle"),
        (e[(e.TemplateTail = 18)] = "TemplateTail"),
        (e[(e.OpenBraceToken = 19)] = "OpenBraceToken"),
        (e[(e.CloseBraceToken = 20)] = "CloseBraceToken"),
        (e[(e.OpenParenToken = 21)] = "OpenParenToken"),
        (e[(e.CloseParenToken = 22)] = "CloseParenToken"),
        (e[(e.OpenBracketToken = 23)] = "OpenBracketToken"),
        (e[(e.CloseBracketToken = 24)] = "CloseBracketToken"),
        (e[(e.DotToken = 25)] = "DotToken"),
        (e[(e.DotDotDotToken = 26)] = "DotDotDotToken"),
        (e[(e.SemicolonToken = 27)] = "SemicolonToken"),
        (e[(e.CommaToken = 28)] = "CommaToken"),
        (e[(e.QuestionDotToken = 29)] = "QuestionDotToken"),
        (e[(e.LessThanToken = 30)] = "LessThanToken"),
        (e[(e.LessThanSlashToken = 31)] = "LessThanSlashToken"),
        (e[(e.GreaterThanToken = 32)] = "GreaterThanToken"),
        (e[(e.LessThanEqualsToken = 33)] = "LessThanEqualsToken"),
        (e[(e.GreaterThanEqualsToken = 34)] = "GreaterThanEqualsToken"),
        (e[(e.EqualsEqualsToken = 35)] = "EqualsEqualsToken"),
        (e[(e.ExclamationEqualsToken = 36)] = "ExclamationEqualsToken"),
        (e[(e.EqualsEqualsEqualsToken = 37)] = "EqualsEqualsEqualsToken"),
        (e[(e.ExclamationEqualsEqualsToken = 38)] =
          "ExclamationEqualsEqualsToken"),
        (e[(e.EqualsGreaterThanToken = 39)] = "EqualsGreaterThanToken"),
        (e[(e.PlusToken = 40)] = "PlusToken"),
        (e[(e.MinusToken = 41)] = "MinusToken"),
        (e[(e.AsteriskToken = 42)] = "AsteriskToken"),
        (e[(e.AsteriskAsteriskToken = 43)] = "AsteriskAsteriskToken"),
        (e[(e.SlashToken = 44)] = "SlashToken"),
        (e[(e.PercentToken = 45)] = "PercentToken"),
        (e[(e.PlusPlusToken = 46)] = "PlusPlusToken"),
        (e[(e.MinusMinusToken = 47)] = "MinusMinusToken"),
        (e[(e.LessThanLessThanToken = 48)] = "LessThanLessThanToken"),
        (e[(e.GreaterThanGreaterThanToken = 49)] =
          "GreaterThanGreaterThanToken"),
        (e[(e.GreaterThanGreaterThanGreaterThanToken = 50)] =
          "GreaterThanGreaterThanGreaterThanToken"),
        (e[(e.AmpersandToken = 51)] = "AmpersandToken"),
        (e[(e.BarToken = 52)] = "BarToken"),
        (e[(e.CaretToken = 53)] = "CaretToken"),
        (e[(e.ExclamationToken = 54)] = "ExclamationToken"),
        (e[(e.TildeToken = 55)] = "TildeToken"),
        (e[(e.AmpersandAmpersandToken = 56)] = "AmpersandAmpersandToken"),
        (e[(e.BarBarToken = 57)] = "BarBarToken"),
        (e[(e.QuestionToken = 58)] = "QuestionToken"),
        (e[(e.ColonToken = 59)] = "ColonToken"),
        (e[(e.AtToken = 60)] = "AtToken"),
        (e[(e.QuestionQuestionToken = 61)] = "QuestionQuestionToken"),
        (e[(e.BacktickToken = 62)] = "BacktickToken"),
        (e[(e.HashToken = 63)] = "HashToken"),
        (e[(e.EqualsToken = 64)] = "EqualsToken"),
        (e[(e.PlusEqualsToken = 65)] = "PlusEqualsToken"),
        (e[(e.MinusEqualsToken = 66)] = "MinusEqualsToken"),
        (e[(e.AsteriskEqualsToken = 67)] = "AsteriskEqualsToken"),
        (e[(e.AsteriskAsteriskEqualsToken = 68)] =
          "AsteriskAsteriskEqualsToken"),
        (e[(e.SlashEqualsToken = 69)] = "SlashEqualsToken"),
        (e[(e.PercentEqualsToken = 70)] = "PercentEqualsToken"),
        (e[(e.LessThanLessThanEqualsToken = 71)] =
          "LessThanLessThanEqualsToken"),
        (e[(e.GreaterThanGreaterThanEqualsToken = 72)] =
          "GreaterThanGreaterThanEqualsToken"),
        (e[(e.GreaterThanGreaterThanGreaterThanEqualsToken = 73)] =
          "GreaterThanGreaterThanGreaterThanEqualsToken"),
        (e[(e.AmpersandEqualsToken = 74)] = "AmpersandEqualsToken"),
        (e[(e.BarEqualsToken = 75)] = "BarEqualsToken"),
        (e[(e.BarBarEqualsToken = 76)] = "BarBarEqualsToken"),
        (e[(e.AmpersandAmpersandEqualsToken = 77)] =
          "AmpersandAmpersandEqualsToken"),
        (e[(e.QuestionQuestionEqualsToken = 78)] =
          "QuestionQuestionEqualsToken"),
        (e[(e.CaretEqualsToken = 79)] = "CaretEqualsToken"),
        (e[(e.Identifier = 80)] = "Identifier"),
        (e[(e.PrivateIdentifier = 81)] = "PrivateIdentifier"),
        (e[(e.JSDocCommentTextToken = 82)] = "JSDocCommentTextToken"),
        (e[(e.BreakKeyword = 83)] = "BreakKeyword"),
        (e[(e.CaseKeyword = 84)] = "CaseKeyword"),
        (e[(e.CatchKeyword = 85)] = "CatchKeyword"),
        (e[(e.ClassKeyword = 86)] = "ClassKeyword"),
        (e[(e.ConstKeyword = 87)] = "ConstKeyword"),
        (e[(e.ContinueKeyword = 88)] = "ContinueKeyword"),
        (e[(e.DebuggerKeyword = 89)] = "DebuggerKeyword"),
        (e[(e.DefaultKeyword = 90)] = "DefaultKeyword"),
        (e[(e.DeleteKeyword = 91)] = "DeleteKeyword"),
        (e[(e.DoKeyword = 92)] = "DoKeyword"),
        (e[(e.ElseKeyword = 93)] = "ElseKeyword"),
        (e[(e.EnumKeyword = 94)] = "EnumKeyword"),
        (e[(e.ExportKeyword = 95)] = "ExportKeyword"),
        (e[(e.ExtendsKeyword = 96)] = "ExtendsKeyword"),
        (e[(e.FalseKeyword = 97)] = "FalseKeyword"),
        (e[(e.FinallyKeyword = 98)] = "FinallyKeyword"),
        (e[(e.ForKeyword = 99)] = "ForKeyword"),
        (e[(e.FunctionKeyword = 100)] = "FunctionKeyword"),
        (e[(e.IfKeyword = 101)] = "IfKeyword"),
        (e[(e.ImportKeyword = 102)] = "ImportKeyword"),
        (e[(e.InKeyword = 103)] = "InKeyword"),
        (e[(e.InstanceOfKeyword = 104)] = "InstanceOfKeyword"),
        (e[(e.NewKeyword = 105)] = "NewKeyword"),
        (e[(e.NullKeyword = 106)] = "NullKeyword"),
        (e[(e.ReturnKeyword = 107)] = "ReturnKeyword"),
        (e[(e.SuperKeyword = 108)] = "SuperKeyword"),
        (e[(e.SwitchKeyword = 109)] = "SwitchKeyword"),
        (e[(e.ThisKeyword = 110)] = "ThisKeyword"),
        (e[(e.ThrowKeyword = 111)] = "ThrowKeyword"),
        (e[(e.TrueKeyword = 112)] = "TrueKeyword"),
        (e[(e.TryKeyword = 113)] = "TryKeyword"),
        (e[(e.TypeOfKeyword = 114)] = "TypeOfKeyword"),
        (e[(e.VarKeyword = 115)] = "VarKeyword"),
        (e[(e.VoidKeyword = 116)] = "VoidKeyword"),
        (e[(e.WhileKeyword = 117)] = "WhileKeyword"),
        (e[(e.WithKeyword = 118)] = "WithKeyword"),
        (e[(e.ImplementsKeyword = 119)] = "ImplementsKeyword"),
        (e[(e.InterfaceKeyword = 120)] = "InterfaceKeyword"),
        (e[(e.LetKeyword = 121)] = "LetKeyword"),
        (e[(e.PackageKeyword = 122)] = "PackageKeyword"),
        (e[(e.PrivateKeyword = 123)] = "PrivateKeyword"),
        (e[(e.ProtectedKeyword = 124)] = "ProtectedKeyword"),
        (e[(e.PublicKeyword = 125)] = "PublicKeyword"),
        (e[(e.StaticKeyword = 126)] = "StaticKeyword"),
        (e[(e.YieldKeyword = 127)] = "YieldKeyword"),
        (e[(e.AbstractKeyword = 128)] = "AbstractKeyword"),
        (e[(e.AccessorKeyword = 129)] = "AccessorKeyword"),
        (e[(e.AsKeyword = 130)] = "AsKeyword"),
        (e[(e.AssertsKeyword = 131)] = "AssertsKeyword"),
        (e[(e.AssertKeyword = 132)] = "AssertKeyword"),
        (e[(e.AnyKeyword = 133)] = "AnyKeyword"),
        (e[(e.AsyncKeyword = 134)] = "AsyncKeyword"),
        (e[(e.AwaitKeyword = 135)] = "AwaitKeyword"),
        (e[(e.BooleanKeyword = 136)] = "BooleanKeyword"),
        (e[(e.ConstructorKeyword = 137)] = "ConstructorKeyword"),
        (e[(e.DeclareKeyword = 138)] = "DeclareKeyword"),
        (e[(e.GetKeyword = 139)] = "GetKeyword"),
        (e[(e.InferKeyword = 140)] = "InferKeyword"),
        (e[(e.IntrinsicKeyword = 141)] = "IntrinsicKeyword"),
        (e[(e.IsKeyword = 142)] = "IsKeyword"),
        (e[(e.KeyOfKeyword = 143)] = "KeyOfKeyword"),
        (e[(e.ModuleKeyword = 144)] = "ModuleKeyword"),
        (e[(e.NamespaceKeyword = 145)] = "NamespaceKeyword"),
        (e[(e.NeverKeyword = 146)] = "NeverKeyword"),
        (e[(e.OutKeyword = 147)] = "OutKeyword"),
        (e[(e.ReadonlyKeyword = 148)] = "ReadonlyKeyword"),
        (e[(e.RequireKeyword = 149)] = "RequireKeyword"),
        (e[(e.NumberKeyword = 150)] = "NumberKeyword"),
        (e[(e.ObjectKeyword = 151)] = "ObjectKeyword"),
        (e[(e.SatisfiesKeyword = 152)] = "SatisfiesKeyword"),
        (e[(e.SetKeyword = 153)] = "SetKeyword"),
        (e[(e.StringKeyword = 154)] = "StringKeyword"),
        (e[(e.SymbolKeyword = 155)] = "SymbolKeyword"),
        (e[(e.TypeKeyword = 156)] = "TypeKeyword"),
        (e[(e.UndefinedKeyword = 157)] = "UndefinedKeyword"),
        (e[(e.UniqueKeyword = 158)] = "UniqueKeyword"),
        (e[(e.UnknownKeyword = 159)] = "UnknownKeyword"),
        (e[(e.UsingKeyword = 160)] = "UsingKeyword"),
        (e[(e.FromKeyword = 161)] = "FromKeyword"),
        (e[(e.GlobalKeyword = 162)] = "GlobalKeyword"),
        (e[(e.BigIntKeyword = 163)] = "BigIntKeyword"),
        (e[(e.OverrideKeyword = 164)] = "OverrideKeyword"),
        (e[(e.OfKeyword = 165)] = "OfKeyword"),
        (e[(e.DeferKeyword = 166)] = "DeferKeyword"),
        (e[(e.QualifiedName = 167)] = "QualifiedName"),
        (e[(e.ComputedPropertyName = 168)] = "ComputedPropertyName"),
        (e[(e.TypeParameter = 169)] = "TypeParameter"),
        (e[(e.Parameter = 170)] = "Parameter"),
        (e[(e.Decorator = 171)] = "Decorator"),
        (e[(e.PropertySignature = 172)] = "PropertySignature"),
        (e[(e.PropertyDeclaration = 173)] = "PropertyDeclaration"),
        (e[(e.MethodSignature = 174)] = "MethodSignature"),
        (e[(e.MethodDeclaration = 175)] = "MethodDeclaration"),
        (e[(e.ClassStaticBlockDeclaration = 176)] =
          "ClassStaticBlockDeclaration"),
        (e[(e.Constructor = 177)] = "Constructor"),
        (e[(e.GetAccessor = 178)] = "GetAccessor"),
        (e[(e.SetAccessor = 179)] = "SetAccessor"),
        (e[(e.CallSignature = 180)] = "CallSignature"),
        (e[(e.ConstructSignature = 181)] = "ConstructSignature"),
        (e[(e.IndexSignature = 182)] = "IndexSignature"),
        (e[(e.TypePredicate = 183)] = "TypePredicate"),
        (e[(e.TypeReference = 184)] = "TypeReference"),
        (e[(e.FunctionType = 185)] = "FunctionType"),
        (e[(e.ConstructorType = 186)] = "ConstructorType"),
        (e[(e.TypeQuery = 187)] = "TypeQuery"),
        (e[(e.TypeLiteral = 188)] = "TypeLiteral"),
        (e[(e.ArrayType = 189)] = "ArrayType"),
        (e[(e.TupleType = 190)] = "TupleType"),
        (e[(e.OptionalType = 191)] = "OptionalType"),
        (e[(e.RestType = 192)] = "RestType"),
        (e[(e.UnionType = 193)] = "UnionType"),
        (e[(e.IntersectionType = 194)] = "IntersectionType"),
        (e[(e.ConditionalType = 195)] = "ConditionalType"),
        (e[(e.InferType = 196)] = "InferType"),
        (e[(e.ParenthesizedType = 197)] = "ParenthesizedType"),
        (e[(e.ThisType = 198)] = "ThisType"),
        (e[(e.TypeOperator = 199)] = "TypeOperator"),
        (e[(e.IndexedAccessType = 200)] = "IndexedAccessType"),
        (e[(e.MappedType = 201)] = "MappedType"),
        (e[(e.LiteralType = 202)] = "LiteralType"),
        (e[(e.NamedTupleMember = 203)] = "NamedTupleMember"),
        (e[(e.TemplateLiteralType = 204)] = "TemplateLiteralType"),
        (e[(e.TemplateLiteralTypeSpan = 205)] = "TemplateLiteralTypeSpan"),
        (e[(e.ImportType = 206)] = "ImportType"),
        (e[(e.ObjectBindingPattern = 207)] = "ObjectBindingPattern"),
        (e[(e.ArrayBindingPattern = 208)] = "ArrayBindingPattern"),
        (e[(e.BindingElement = 209)] = "BindingElement"),
        (e[(e.ArrayLiteralExpression = 210)] = "ArrayLiteralExpression"),
        (e[(e.ObjectLiteralExpression = 211)] = "ObjectLiteralExpression"),
        (e[(e.PropertyAccessExpression = 212)] = "PropertyAccessExpression"),
        (e[(e.ElementAccessExpression = 213)] = "ElementAccessExpression"),
        (e[(e.CallExpression = 214)] = "CallExpression"),
        (e[(e.NewExpression = 215)] = "NewExpression"),
        (e[(e.TaggedTemplateExpression = 216)] = "TaggedTemplateExpression"),
        (e[(e.TypeAssertionExpression = 217)] = "TypeAssertionExpression"),
        (e[(e.ParenthesizedExpression = 218)] = "ParenthesizedExpression"),
        (e[(e.FunctionExpression = 219)] = "FunctionExpression"),
        (e[(e.ArrowFunction = 220)] = "ArrowFunction"),
        (e[(e.DeleteExpression = 221)] = "DeleteExpression"),
        (e[(e.TypeOfExpression = 222)] = "TypeOfExpression"),
        (e[(e.VoidExpression = 223)] = "VoidExpression"),
        (e[(e.AwaitExpression = 224)] = "AwaitExpression"),
        (e[(e.PrefixUnaryExpression = 225)] = "PrefixUnaryExpression"),
        (e[(e.PostfixUnaryExpression = 226)] = "PostfixUnaryExpression"),
        (e[(e.BinaryExpression = 227)] = "BinaryExpression"),
        (e[(e.ConditionalExpression = 228)] = "ConditionalExpression"),
        (e[(e.TemplateExpression = 229)] = "TemplateExpression"),
        (e[(e.YieldExpression = 230)] = "YieldExpression"),
        (e[(e.SpreadElement = 231)] = "SpreadElement"),
        (e[(e.ClassExpression = 232)] = "ClassExpression"),
        (e[(e.OmittedExpression = 233)] = "OmittedExpression"),
        (e[(e.ExpressionWithTypeArguments = 234)] =
          "ExpressionWithTypeArguments"),
        (e[(e.AsExpression = 235)] = "AsExpression"),
        (e[(e.NonNullExpression = 236)] = "NonNullExpression"),
        (e[(e.MetaProperty = 237)] = "MetaProperty"),
        (e[(e.SyntheticExpression = 238)] = "SyntheticExpression"),
        (e[(e.SatisfiesExpression = 239)] = "SatisfiesExpression"),
        (e[(e.TemplateSpan = 240)] = "TemplateSpan"),
        (e[(e.SemicolonClassElement = 241)] = "SemicolonClassElement"),
        (e[(e.Block = 242)] = "Block"),
        (e[(e.EmptyStatement = 243)] = "EmptyStatement"),
        (e[(e.VariableStatement = 244)] = "VariableStatement"),
        (e[(e.ExpressionStatement = 245)] = "ExpressionStatement"),
        (e[(e.IfStatement = 246)] = "IfStatement"),
        (e[(e.DoStatement = 247)] = "DoStatement"),
        (e[(e.WhileStatement = 248)] = "WhileStatement"),
        (e[(e.ForStatement = 249)] = "ForStatement"),
        (e[(e.ForInStatement = 250)] = "ForInStatement"),
        (e[(e.ForOfStatement = 251)] = "ForOfStatement"),
        (e[(e.ContinueStatement = 252)] = "ContinueStatement"),
        (e[(e.BreakStatement = 253)] = "BreakStatement"),
        (e[(e.ReturnStatement = 254)] = "ReturnStatement"),
        (e[(e.WithStatement = 255)] = "WithStatement"),
        (e[(e.SwitchStatement = 256)] = "SwitchStatement"),
        (e[(e.LabeledStatement = 257)] = "LabeledStatement"),
        (e[(e.ThrowStatement = 258)] = "ThrowStatement"),
        (e[(e.TryStatement = 259)] = "TryStatement"),
        (e[(e.DebuggerStatement = 260)] = "DebuggerStatement"),
        (e[(e.VariableDeclaration = 261)] = "VariableDeclaration"),
        (e[(e.VariableDeclarationList = 262)] = "VariableDeclarationList"),
        (e[(e.FunctionDeclaration = 263)] = "FunctionDeclaration"),
        (e[(e.ClassDeclaration = 264)] = "ClassDeclaration"),
        (e[(e.InterfaceDeclaration = 265)] = "InterfaceDeclaration"),
        (e[(e.TypeAliasDeclaration = 266)] = "TypeAliasDeclaration"),
        (e[(e.EnumDeclaration = 267)] = "EnumDeclaration"),
        (e[(e.ModuleDeclaration = 268)] = "ModuleDeclaration"),
        (e[(e.ModuleBlock = 269)] = "ModuleBlock"),
        (e[(e.CaseBlock = 270)] = "CaseBlock"),
        (e[(e.NamespaceExportDeclaration = 271)] =
          "NamespaceExportDeclaration"),
        (e[(e.ImportEqualsDeclaration = 272)] = "ImportEqualsDeclaration"),
        (e[(e.ImportDeclaration = 273)] = "ImportDeclaration"),
        (e[(e.ImportClause = 274)] = "ImportClause"),
        (e[(e.NamespaceImport = 275)] = "NamespaceImport"),
        (e[(e.NamedImports = 276)] = "NamedImports"),
        (e[(e.ImportSpecifier = 277)] = "ImportSpecifier"),
        (e[(e.ExportAssignment = 278)] = "ExportAssignment"),
        (e[(e.ExportDeclaration = 279)] = "ExportDeclaration"),
        (e[(e.NamedExports = 280)] = "NamedExports"),
        (e[(e.NamespaceExport = 281)] = "NamespaceExport"),
        (e[(e.ExportSpecifier = 282)] = "ExportSpecifier"),
        (e[(e.MissingDeclaration = 283)] = "MissingDeclaration"),
        (e[(e.ExternalModuleReference = 284)] = "ExternalModuleReference"),
        (e[(e.JsxElement = 285)] = "JsxElement"),
        (e[(e.JsxSelfClosingElement = 286)] = "JsxSelfClosingElement"),
        (e[(e.JsxOpeningElement = 287)] = "JsxOpeningElement"),
        (e[(e.JsxClosingElement = 288)] = "JsxClosingElement"),
        (e[(e.JsxFragment = 289)] = "JsxFragment"),
        (e[(e.JsxOpeningFragment = 290)] = "JsxOpeningFragment"),
        (e[(e.JsxClosingFragment = 291)] = "JsxClosingFragment"),
        (e[(e.JsxAttribute = 292)] = "JsxAttribute"),
        (e[(e.JsxAttributes = 293)] = "JsxAttributes"),
        (e[(e.JsxSpreadAttribute = 294)] = "JsxSpreadAttribute"),
        (e[(e.JsxExpression = 295)] = "JsxExpression"),
        (e[(e.JsxNamespacedName = 296)] = "JsxNamespacedName"),
        (e[(e.CaseClause = 297)] = "CaseClause"),
        (e[(e.DefaultClause = 298)] = "DefaultClause"),
        (e[(e.HeritageClause = 299)] = "HeritageClause"),
        (e[(e.CatchClause = 300)] = "CatchClause"),
        (e[(e.ImportAttributes = 301)] = "ImportAttributes"),
        (e[(e.ImportAttribute = 302)] = "ImportAttribute"),
        (e[(e.AssertClause = 301)] = "AssertClause"),
        (e[(e.AssertEntry = 302)] = "AssertEntry"),
        (e[(e.ImportTypeAssertionContainer = 303)] =
          "ImportTypeAssertionContainer"),
        (e[(e.PropertyAssignment = 304)] = "PropertyAssignment"),
        (e[(e.ShorthandPropertyAssignment = 305)] =
          "ShorthandPropertyAssignment"),
        (e[(e.SpreadAssignment = 306)] = "SpreadAssignment"),
        (e[(e.EnumMember = 307)] = "EnumMember"),
        (e[(e.SourceFile = 308)] = "SourceFile"),
        (e[(e.Bundle = 309)] = "Bundle"),
        (e[(e.JSDocTypeExpression = 310)] = "JSDocTypeExpression"),
        (e[(e.JSDocNameReference = 311)] = "JSDocNameReference"),
        (e[(e.JSDocMemberName = 312)] = "JSDocMemberName"),
        (e[(e.JSDocAllType = 313)] = "JSDocAllType"),
        (e[(e.JSDocUnknownType = 314)] = "JSDocUnknownType"),
        (e[(e.JSDocNullableType = 315)] = "JSDocNullableType"),
        (e[(e.JSDocNonNullableType = 316)] = "JSDocNonNullableType"),
        (e[(e.JSDocOptionalType = 317)] = "JSDocOptionalType"),
        (e[(e.JSDocFunctionType = 318)] = "JSDocFunctionType"),
        (e[(e.JSDocVariadicType = 319)] = "JSDocVariadicType"),
        (e[(e.JSDocNamepathType = 320)] = "JSDocNamepathType"),
        (e[(e.JSDoc = 321)] = "JSDoc"),
        (e[(e.JSDocComment = 321)] = "JSDocComment"),
        (e[(e.JSDocText = 322)] = "JSDocText"),
        (e[(e.JSDocTypeLiteral = 323)] = "JSDocTypeLiteral"),
        (e[(e.JSDocSignature = 324)] = "JSDocSignature"),
        (e[(e.JSDocLink = 325)] = "JSDocLink"),
        (e[(e.JSDocLinkCode = 326)] = "JSDocLinkCode"),
        (e[(e.JSDocLinkPlain = 327)] = "JSDocLinkPlain"),
        (e[(e.JSDocTag = 328)] = "JSDocTag"),
        (e[(e.JSDocAugmentsTag = 329)] = "JSDocAugmentsTag"),
        (e[(e.JSDocImplementsTag = 330)] = "JSDocImplementsTag"),
        (e[(e.JSDocAuthorTag = 331)] = "JSDocAuthorTag"),
        (e[(e.JSDocDeprecatedTag = 332)] = "JSDocDeprecatedTag"),
        (e[(e.JSDocClassTag = 333)] = "JSDocClassTag"),
        (e[(e.JSDocPublicTag = 334)] = "JSDocPublicTag"),
        (e[(e.JSDocPrivateTag = 335)] = "JSDocPrivateTag"),
        (e[(e.JSDocProtectedTag = 336)] = "JSDocProtectedTag"),
        (e[(e.JSDocReadonlyTag = 337)] = "JSDocReadonlyTag"),
        (e[(e.JSDocOverrideTag = 338)] = "JSDocOverrideTag"),
        (e[(e.JSDocCallbackTag = 339)] = "JSDocCallbackTag"),
        (e[(e.JSDocOverloadTag = 340)] = "JSDocOverloadTag"),
        (e[(e.JSDocEnumTag = 341)] = "JSDocEnumTag"),
        (e[(e.JSDocParameterTag = 342)] = "JSDocParameterTag"),
        (e[(e.JSDocReturnTag = 343)] = "JSDocReturnTag"),
        (e[(e.JSDocThisTag = 344)] = "JSDocThisTag"),
        (e[(e.JSDocTypeTag = 345)] = "JSDocTypeTag"),
        (e[(e.JSDocTemplateTag = 346)] = "JSDocTemplateTag"),
        (e[(e.JSDocTypedefTag = 347)] = "JSDocTypedefTag"),
        (e[(e.JSDocSeeTag = 348)] = "JSDocSeeTag"),
        (e[(e.JSDocPropertyTag = 349)] = "JSDocPropertyTag"),
        (e[(e.JSDocThrowsTag = 350)] = "JSDocThrowsTag"),
        (e[(e.JSDocSatisfiesTag = 351)] = "JSDocSatisfiesTag"),
        (e[(e.JSDocImportTag = 352)] = "JSDocImportTag"),
        (e[(e.SyntaxList = 353)] = "SyntaxList"),
        (e[(e.NotEmittedStatement = 354)] = "NotEmittedStatement"),
        (e[(e.NotEmittedTypeElement = 355)] = "NotEmittedTypeElement"),
        (e[(e.PartiallyEmittedExpression = 356)] =
          "PartiallyEmittedExpression"),
        (e[(e.CommaListExpression = 357)] = "CommaListExpression"),
        (e[(e.SyntheticReferenceExpression = 358)] =
          "SyntheticReferenceExpression"),
        (e[(e.Count = 359)] = "Count"),
        (e[(e.FirstAssignment = 64)] = "FirstAssignment"),
        (e[(e.LastAssignment = 79)] = "LastAssignment"),
        (e[(e.FirstCompoundAssignment = 65)] = "FirstCompoundAssignment"),
        (e[(e.LastCompoundAssignment = 79)] = "LastCompoundAssignment"),
        (e[(e.FirstReservedWord = 83)] = "FirstReservedWord"),
        (e[(e.LastReservedWord = 118)] = "LastReservedWord"),
        (e[(e.FirstKeyword = 83)] = "FirstKeyword"),
        (e[(e.LastKeyword = 166)] = "LastKeyword"),
        (e[(e.FirstFutureReservedWord = 119)] = "FirstFutureReservedWord"),
        (e[(e.LastFutureReservedWord = 127)] = "LastFutureReservedWord"),
        (e[(e.FirstTypeNode = 183)] = "FirstTypeNode"),
        (e[(e.LastTypeNode = 206)] = "LastTypeNode"),
        (e[(e.FirstPunctuation = 19)] = "FirstPunctuation"),
        (e[(e.LastPunctuation = 79)] = "LastPunctuation"),
        (e[(e.FirstToken = 0)] = "FirstToken"),
        (e[(e.LastToken = 166)] = "LastToken"),
        (e[(e.FirstTriviaToken = 2)] = "FirstTriviaToken"),
        (e[(e.LastTriviaToken = 7)] = "LastTriviaToken"),
        (e[(e.FirstLiteralToken = 9)] = "FirstLiteralToken"),
        (e[(e.LastLiteralToken = 15)] = "LastLiteralToken"),
        (e[(e.FirstTemplateToken = 15)] = "FirstTemplateToken"),
        (e[(e.LastTemplateToken = 18)] = "LastTemplateToken"),
        (e[(e.FirstBinaryOperator = 30)] = "FirstBinaryOperator"),
        (e[(e.LastBinaryOperator = 79)] = "LastBinaryOperator"),
        (e[(e.FirstStatement = 244)] = "FirstStatement"),
        (e[(e.LastStatement = 260)] = "LastStatement"),
        (e[(e.FirstNode = 167)] = "FirstNode"),
        (e[(e.FirstJSDocNode = 310)] = "FirstJSDocNode"),
        (e[(e.LastJSDocNode = 352)] = "LastJSDocNode"),
        (e[(e.FirstJSDocTagNode = 328)] = "FirstJSDocTagNode"),
        (e[(e.LastJSDocTagNode = 352)] = "LastJSDocTagNode"),
        (e[(e.FirstContextualKeyword = 128)] = "FirstContextualKeyword"),
        (e[(e.LastContextualKeyword = 166)] = "LastContextualKeyword"),
        e
      ))(i9 || {}),
      o9 = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Let = 1)] = "Let"),
        (e[(e.Const = 2)] = "Const"),
        (e[(e.Using = 4)] = "Using"),
        (e[(e.AwaitUsing = 6)] = "AwaitUsing"),
        (e[(e.NestedNamespace = 8)] = "NestedNamespace"),
        (e[(e.Synthesized = 16)] = "Synthesized"),
        (e[(e.Namespace = 32)] = "Namespace"),
        (e[(e.OptionalChain = 64)] = "OptionalChain"),
        (e[(e.ExportContext = 128)] = "ExportContext"),
        (e[(e.ContainsThis = 256)] = "ContainsThis"),
        (e[(e.HasImplicitReturn = 512)] = "HasImplicitReturn"),
        (e[(e.HasExplicitReturn = 1024)] = "HasExplicitReturn"),
        (e[(e.GlobalAugmentation = 2048)] = "GlobalAugmentation"),
        (e[(e.HasAsyncFunctions = 4096)] = "HasAsyncFunctions"),
        (e[(e.DisallowInContext = 8192)] = "DisallowInContext"),
        (e[(e.YieldContext = 16384)] = "YieldContext"),
        (e[(e.DecoratorContext = 32768)] = "DecoratorContext"),
        (e[(e.AwaitContext = 65536)] = "AwaitContext"),
        (e[(e.DisallowConditionalTypesContext = 131072)] =
          "DisallowConditionalTypesContext"),
        (e[(e.ThisNodeHasError = 262144)] = "ThisNodeHasError"),
        (e[(e.JavaScriptFile = 524288)] = "JavaScriptFile"),
        (e[(e.ThisNodeOrAnySubNodesHasError = 1048576)] =
          "ThisNodeOrAnySubNodesHasError"),
        (e[(e.HasAggregatedChildData = 2097152)] = "HasAggregatedChildData"),
        (e[(e.PossiblyContainsDynamicImport = 4194304)] =
          "PossiblyContainsDynamicImport"),
        (e[(e.PossiblyContainsImportMeta = 8388608)] =
          "PossiblyContainsImportMeta"),
        (e[(e.JSDoc = 16777216)] = "JSDoc"),
        (e[(e.Ambient = 33554432)] = "Ambient"),
        (e[(e.InWithStatement = 67108864)] = "InWithStatement"),
        (e[(e.JsonFile = 134217728)] = "JsonFile"),
        (e[(e.TypeCached = 268435456)] = "TypeCached"),
        (e[(e.Deprecated = 536870912)] = "Deprecated"),
        (e[(e.BlockScoped = 7)] = "BlockScoped"),
        (e[(e.Constant = 6)] = "Constant"),
        (e[(e.ReachabilityCheckFlags = 1536)] = "ReachabilityCheckFlags"),
        (e[(e.ReachabilityAndEmitFlags = 5632)] = "ReachabilityAndEmitFlags"),
        (e[(e.ContextFlags = 101441536)] = "ContextFlags"),
        (e[(e.TypeExcludesFlags = 81920)] = "TypeExcludesFlags"),
        (e[(e.PermanentlySetIncrementalFlags = 12582912)] =
          "PermanentlySetIncrementalFlags"),
        (e[(e.IdentifierHasExtendedUnicodeEscape = 256)] =
          "IdentifierHasExtendedUnicodeEscape"),
        (e[(e.IdentifierIsInJSDocNamespace = 4096)] =
          "IdentifierIsInJSDocNamespace"),
        e
      ))(o9 || {}),
      a9 = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Public = 1)] = "Public"),
        (e[(e.Private = 2)] = "Private"),
        (e[(e.Protected = 4)] = "Protected"),
        (e[(e.Readonly = 8)] = "Readonly"),
        (e[(e.Override = 16)] = "Override"),
        (e[(e.Export = 32)] = "Export"),
        (e[(e.Abstract = 64)] = "Abstract"),
        (e[(e.Ambient = 128)] = "Ambient"),
        (e[(e.Static = 256)] = "Static"),
        (e[(e.Accessor = 512)] = "Accessor"),
        (e[(e.Async = 1024)] = "Async"),
        (e[(e.Default = 2048)] = "Default"),
        (e[(e.Const = 4096)] = "Const"),
        (e[(e.In = 8192)] = "In"),
        (e[(e.Out = 16384)] = "Out"),
        (e[(e.Decorator = 32768)] = "Decorator"),
        (e[(e.Deprecated = 65536)] = "Deprecated"),
        (e[(e.JSDocPublic = 8388608)] = "JSDocPublic"),
        (e[(e.JSDocPrivate = 16777216)] = "JSDocPrivate"),
        (e[(e.JSDocProtected = 33554432)] = "JSDocProtected"),
        (e[(e.JSDocReadonly = 67108864)] = "JSDocReadonly"),
        (e[(e.JSDocOverride = 134217728)] = "JSDocOverride"),
        (e[(e.SyntacticOrJSDocModifiers = 31)] = "SyntacticOrJSDocModifiers"),
        (e[(e.SyntacticOnlyModifiers = 65504)] = "SyntacticOnlyModifiers"),
        (e[(e.SyntacticModifiers = 65535)] = "SyntacticModifiers"),
        (e[(e.JSDocCacheOnlyModifiers = 260046848)] =
          "JSDocCacheOnlyModifiers"),
        (e[(e.JSDocOnlyModifiers = 65536)] = "JSDocOnlyModifiers"),
        (e[(e.NonCacheOnlyModifiers = 131071)] = "NonCacheOnlyModifiers"),
        (e[(e.HasComputedJSDocModifiers = 268435456)] =
          "HasComputedJSDocModifiers"),
        (e[(e.HasComputedFlags = 536870912)] = "HasComputedFlags"),
        (e[(e.AccessibilityModifier = 7)] = "AccessibilityModifier"),
        (e[(e.ParameterPropertyModifier = 31)] = "ParameterPropertyModifier"),
        (e[(e.NonPublicAccessibilityModifier = 6)] =
          "NonPublicAccessibilityModifier"),
        (e[(e.TypeScriptModifier = 28895)] = "TypeScriptModifier"),
        (e[(e.ExportDefault = 2080)] = "ExportDefault"),
        (e[(e.All = 131071)] = "All"),
        (e[(e.Modifier = 98303)] = "Modifier"),
        e
      ))(a9 || {}),
      hZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.IntrinsicNamedElement = 1)] = "IntrinsicNamedElement"),
        (e[(e.IntrinsicIndexedElement = 2)] = "IntrinsicIndexedElement"),
        (e[(e.IntrinsicElement = 3)] = "IntrinsicElement"),
        e
      ))(hZ || {}),
      s9 = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Succeeded = 1)] = "Succeeded"),
        (e[(e.Failed = 2)] = "Failed"),
        (e[(e.ReportsUnmeasurable = 8)] = "ReportsUnmeasurable"),
        (e[(e.ReportsUnreliable = 16)] = "ReportsUnreliable"),
        (e[(e.ReportsMask = 24)] = "ReportsMask"),
        (e[(e.ComplexityOverflow = 32)] = "ComplexityOverflow"),
        (e[(e.StackDepthOverflow = 64)] = "StackDepthOverflow"),
        (e[(e.Overflow = 96)] = "Overflow"),
        e
      ))(s9 || {}),
      _Z = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Always = 1)] = "Always"),
        (e[(e.Never = 2)] = "Never"),
        (e[(e.Sometimes = 3)] = "Sometimes"),
        e
      ))(_Z || {}),
      l9 = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Auto = 1)] = "Auto"),
        (e[(e.Loop = 2)] = "Loop"),
        (e[(e.Unique = 3)] = "Unique"),
        (e[(e.Node = 4)] = "Node"),
        (e[(e.KindMask = 7)] = "KindMask"),
        (e[(e.ReservedInNestedScopes = 8)] = "ReservedInNestedScopes"),
        (e[(e.Optimistic = 16)] = "Optimistic"),
        (e[(e.FileLevel = 32)] = "FileLevel"),
        (e[(e.AllowNameSubstitution = 64)] = "AllowNameSubstitution"),
        e
      ))(l9 || {}),
      gZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.HasIndices = 1)] = "HasIndices"),
        (e[(e.Global = 2)] = "Global"),
        (e[(e.IgnoreCase = 4)] = "IgnoreCase"),
        (e[(e.Multiline = 8)] = "Multiline"),
        (e[(e.DotAll = 16)] = "DotAll"),
        (e[(e.Unicode = 32)] = "Unicode"),
        (e[(e.UnicodeSets = 64)] = "UnicodeSets"),
        (e[(e.Sticky = 128)] = "Sticky"),
        (e[(e.AnyUnicodeMode = 96)] = "AnyUnicodeMode"),
        (e[(e.Modifiers = 28)] = "Modifiers"),
        e
      ))(gZ || {}),
      yZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.PrecedingLineBreak = 1)] = "PrecedingLineBreak"),
        (e[(e.PrecedingJSDocComment = 2)] = "PrecedingJSDocComment"),
        (e[(e.Unterminated = 4)] = "Unterminated"),
        (e[(e.ExtendedUnicodeEscape = 8)] = "ExtendedUnicodeEscape"),
        (e[(e.Scientific = 16)] = "Scientific"),
        (e[(e.Octal = 32)] = "Octal"),
        (e[(e.HexSpecifier = 64)] = "HexSpecifier"),
        (e[(e.BinarySpecifier = 128)] = "BinarySpecifier"),
        (e[(e.OctalSpecifier = 256)] = "OctalSpecifier"),
        (e[(e.ContainsSeparator = 512)] = "ContainsSeparator"),
        (e[(e.UnicodeEscape = 1024)] = "UnicodeEscape"),
        (e[(e.ContainsInvalidEscape = 2048)] = "ContainsInvalidEscape"),
        (e[(e.HexEscape = 4096)] = "HexEscape"),
        (e[(e.ContainsLeadingZero = 8192)] = "ContainsLeadingZero"),
        (e[(e.ContainsInvalidSeparator = 16384)] = "ContainsInvalidSeparator"),
        (e[(e.PrecedingJSDocLeadingAsterisks = 32768)] =
          "PrecedingJSDocLeadingAsterisks"),
        (e[(e.BinaryOrOctalSpecifier = 384)] = "BinaryOrOctalSpecifier"),
        (e[(e.WithSpecifier = 448)] = "WithSpecifier"),
        (e[(e.StringLiteralFlags = 7176)] = "StringLiteralFlags"),
        (e[(e.NumericLiteralFlags = 25584)] = "NumericLiteralFlags"),
        (e[(e.TemplateLiteralLikeFlags = 7176)] = "TemplateLiteralLikeFlags"),
        (e[(e.IsInvalid = 26656)] = "IsInvalid"),
        e
      ))(yZ || {}),
      J8 = ((e) => (
        (e[(e.Unreachable = 1)] = "Unreachable"),
        (e[(e.Start = 2)] = "Start"),
        (e[(e.BranchLabel = 4)] = "BranchLabel"),
        (e[(e.LoopLabel = 8)] = "LoopLabel"),
        (e[(e.Assignment = 16)] = "Assignment"),
        (e[(e.TrueCondition = 32)] = "TrueCondition"),
        (e[(e.FalseCondition = 64)] = "FalseCondition"),
        (e[(e.SwitchClause = 128)] = "SwitchClause"),
        (e[(e.ArrayMutation = 256)] = "ArrayMutation"),
        (e[(e.Call = 512)] = "Call"),
        (e[(e.ReduceLabel = 1024)] = "ReduceLabel"),
        (e[(e.Referenced = 2048)] = "Referenced"),
        (e[(e.Shared = 4096)] = "Shared"),
        (e[(e.Label = 12)] = "Label"),
        (e[(e.Condition = 96)] = "Condition"),
        e
      ))(J8 || {}),
      vZ = ((e) => (
        (e[(e.ExpectError = 0)] = "ExpectError"),
        (e[(e.Ignore = 1)] = "Ignore"),
        e
      ))(vZ || {}),
      TN = class {},
      c9 = ((e) => (
        (e[(e.RootFile = 0)] = "RootFile"),
        (e[(e.SourceFromProjectReference = 1)] = "SourceFromProjectReference"),
        (e[(e.OutputFromProjectReference = 2)] = "OutputFromProjectReference"),
        (e[(e.Import = 3)] = "Import"),
        (e[(e.ReferenceFile = 4)] = "ReferenceFile"),
        (e[(e.TypeReferenceDirective = 5)] = "TypeReferenceDirective"),
        (e[(e.LibFile = 6)] = "LibFile"),
        (e[(e.LibReferenceDirective = 7)] = "LibReferenceDirective"),
        (e[(e.AutomaticTypeDirectiveFile = 8)] = "AutomaticTypeDirectiveFile"),
        e
      ))(c9 || {}),
      bZ = ((e) => (
        (e[(e.FilePreprocessingLibReferenceDiagnostic = 0)] =
          "FilePreprocessingLibReferenceDiagnostic"),
        (e[(e.FilePreprocessingFileExplainingDiagnostic = 1)] =
          "FilePreprocessingFileExplainingDiagnostic"),
        (e[(e.ResolutionDiagnostics = 2)] = "ResolutionDiagnostics"),
        e
      ))(bZ || {}),
      TZ = ((e) => (
        (e[(e.Js = 0)] = "Js"),
        (e[(e.Dts = 1)] = "Dts"),
        (e[(e.BuilderSignature = 2)] = "BuilderSignature"),
        e
      ))(TZ || {}),
      d9 = ((e) => (
        (e[(e.Not = 0)] = "Not"),
        (e[(e.SafeModules = 1)] = "SafeModules"),
        (e[(e.Completely = 2)] = "Completely"),
        e
      ))(d9 || {}),
      SZ = ((e) => (
        (e[(e.Success = 0)] = "Success"),
        (e[(e.DiagnosticsPresent_OutputsSkipped = 1)] =
          "DiagnosticsPresent_OutputsSkipped"),
        (e[(e.DiagnosticsPresent_OutputsGenerated = 2)] =
          "DiagnosticsPresent_OutputsGenerated"),
        (e[(e.InvalidProject_OutputsSkipped = 3)] =
          "InvalidProject_OutputsSkipped"),
        (e[(e.ProjectReferenceCycle_OutputsSkipped = 4)] =
          "ProjectReferenceCycle_OutputsSkipped"),
        e
      ))(SZ || {}),
      EZ = ((e) => (
        (e[(e.Ok = 0)] = "Ok"),
        (e[(e.NeedsOverride = 1)] = "NeedsOverride"),
        (e[(e.HasInvalidOverride = 2)] = "HasInvalidOverride"),
        e
      ))(EZ || {}),
      AZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Literal = 1)] = "Literal"),
        (e[(e.Subtype = 2)] = "Subtype"),
        e
      ))(AZ || {}),
      IZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.NoSupertypeReduction = 1)] = "NoSupertypeReduction"),
        (e[(e.NoConstraintReduction = 2)] = "NoConstraintReduction"),
        e
      ))(IZ || {}),
      xZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Signature = 1)] = "Signature"),
        (e[(e.NoConstraints = 2)] = "NoConstraints"),
        (e[(e.Completions = 4)] = "Completions"),
        (e[(e.SkipBindingPatterns = 8)] = "SkipBindingPatterns"),
        e
      ))(xZ || {}),
      RZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.NoTruncation = 1)] = "NoTruncation"),
        (e[(e.WriteArrayAsGenericType = 2)] = "WriteArrayAsGenericType"),
        (e[(e.GenerateNamesForShadowedTypeParams = 4)] =
          "GenerateNamesForShadowedTypeParams"),
        (e[(e.UseStructuralFallback = 8)] = "UseStructuralFallback"),
        (e[(e.ForbidIndexedAccessSymbolReferences = 16)] =
          "ForbidIndexedAccessSymbolReferences"),
        (e[(e.WriteTypeArgumentsOfSignature = 32)] =
          "WriteTypeArgumentsOfSignature"),
        (e[(e.UseFullyQualifiedType = 64)] = "UseFullyQualifiedType"),
        (e[(e.UseOnlyExternalAliasing = 128)] = "UseOnlyExternalAliasing"),
        (e[(e.SuppressAnyReturnType = 256)] = "SuppressAnyReturnType"),
        (e[(e.WriteTypeParametersInQualifiedName = 512)] =
          "WriteTypeParametersInQualifiedName"),
        (e[(e.MultilineObjectLiterals = 1024)] = "MultilineObjectLiterals"),
        (e[(e.WriteClassExpressionAsTypeLiteral = 2048)] =
          "WriteClassExpressionAsTypeLiteral"),
        (e[(e.UseTypeOfFunction = 4096)] = "UseTypeOfFunction"),
        (e[(e.OmitParameterModifiers = 8192)] = "OmitParameterModifiers"),
        (e[(e.UseAliasDefinedOutsideCurrentScope = 16384)] =
          "UseAliasDefinedOutsideCurrentScope"),
        (e[(e.UseSingleQuotesForStringLiteralType = 268435456)] =
          "UseSingleQuotesForStringLiteralType"),
        (e[(e.NoTypeReduction = 536870912)] = "NoTypeReduction"),
        (e[(e.OmitThisParameter = 33554432)] = "OmitThisParameter"),
        (e[(e.AllowThisInObjectLiteral = 32768)] = "AllowThisInObjectLiteral"),
        (e[(e.AllowQualifiedNameInPlaceOfIdentifier = 65536)] =
          "AllowQualifiedNameInPlaceOfIdentifier"),
        (e[(e.AllowAnonymousIdentifier = 131072)] = "AllowAnonymousIdentifier"),
        (e[(e.AllowEmptyUnionOrIntersection = 262144)] =
          "AllowEmptyUnionOrIntersection"),
        (e[(e.AllowEmptyTuple = 524288)] = "AllowEmptyTuple"),
        (e[(e.AllowUniqueESSymbolType = 1048576)] = "AllowUniqueESSymbolType"),
        (e[(e.AllowEmptyIndexInfoType = 2097152)] = "AllowEmptyIndexInfoType"),
        (e[(e.AllowNodeModulesRelativePaths = 67108864)] =
          "AllowNodeModulesRelativePaths"),
        (e[(e.IgnoreErrors = 70221824)] = "IgnoreErrors"),
        (e[(e.InObjectTypeLiteral = 4194304)] = "InObjectTypeLiteral"),
        (e[(e.InTypeAlias = 8388608)] = "InTypeAlias"),
        (e[(e.InInitialEntityName = 16777216)] = "InInitialEntityName"),
        e
      ))(RZ || {}),
      DZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.WriteComputedProps = 1)] = "WriteComputedProps"),
        (e[(e.NoSyntacticPrinter = 2)] = "NoSyntacticPrinter"),
        (e[(e.DoNotIncludeSymbolChain = 4)] = "DoNotIncludeSymbolChain"),
        (e[(e.AllowUnresolvedNames = 8)] = "AllowUnresolvedNames"),
        e
      ))(DZ || {}),
      CZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.NoTruncation = 1)] = "NoTruncation"),
        (e[(e.WriteArrayAsGenericType = 2)] = "WriteArrayAsGenericType"),
        (e[(e.GenerateNamesForShadowedTypeParams = 4)] =
          "GenerateNamesForShadowedTypeParams"),
        (e[(e.UseStructuralFallback = 8)] = "UseStructuralFallback"),
        (e[(e.WriteTypeArgumentsOfSignature = 32)] =
          "WriteTypeArgumentsOfSignature"),
        (e[(e.UseFullyQualifiedType = 64)] = "UseFullyQualifiedType"),
        (e[(e.SuppressAnyReturnType = 256)] = "SuppressAnyReturnType"),
        (e[(e.MultilineObjectLiterals = 1024)] = "MultilineObjectLiterals"),
        (e[(e.WriteClassExpressionAsTypeLiteral = 2048)] =
          "WriteClassExpressionAsTypeLiteral"),
        (e[(e.UseTypeOfFunction = 4096)] = "UseTypeOfFunction"),
        (e[(e.OmitParameterModifiers = 8192)] = "OmitParameterModifiers"),
        (e[(e.UseAliasDefinedOutsideCurrentScope = 16384)] =
          "UseAliasDefinedOutsideCurrentScope"),
        (e[(e.UseSingleQuotesForStringLiteralType = 268435456)] =
          "UseSingleQuotesForStringLiteralType"),
        (e[(e.NoTypeReduction = 536870912)] = "NoTypeReduction"),
        (e[(e.OmitThisParameter = 33554432)] = "OmitThisParameter"),
        (e[(e.AllowUniqueESSymbolType = 1048576)] = "AllowUniqueESSymbolType"),
        (e[(e.AddUndefined = 131072)] = "AddUndefined"),
        (e[(e.WriteArrowStyleSignature = 262144)] = "WriteArrowStyleSignature"),
        (e[(e.InArrayType = 524288)] = "InArrayType"),
        (e[(e.InElementType = 2097152)] = "InElementType"),
        (e[(e.InFirstTypeArgument = 4194304)] = "InFirstTypeArgument"),
        (e[(e.InTypeAlias = 8388608)] = "InTypeAlias"),
        (e[(e.NodeBuilderFlagsMask = 848330095)] = "NodeBuilderFlagsMask"),
        e
      ))(CZ || {}),
      NZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.WriteTypeParametersOrArguments = 1)] =
          "WriteTypeParametersOrArguments"),
        (e[(e.UseOnlyExternalAliasing = 2)] = "UseOnlyExternalAliasing"),
        (e[(e.AllowAnyNodeKind = 4)] = "AllowAnyNodeKind"),
        (e[(e.UseAliasDefinedOutsideCurrentScope = 8)] =
          "UseAliasDefinedOutsideCurrentScope"),
        (e[(e.WriteComputedProps = 16)] = "WriteComputedProps"),
        (e[(e.DoNotIncludeSymbolChain = 32)] = "DoNotIncludeSymbolChain"),
        e
      ))(NZ || {}),
      MZ = ((e) => (
        (e[(e.Accessible = 0)] = "Accessible"),
        (e[(e.NotAccessible = 1)] = "NotAccessible"),
        (e[(e.CannotBeNamed = 2)] = "CannotBeNamed"),
        (e[(e.NotResolved = 3)] = "NotResolved"),
        e
      ))(MZ || {}),
      PZ = ((e) => (
        (e[(e.This = 0)] = "This"),
        (e[(e.Identifier = 1)] = "Identifier"),
        (e[(e.AssertsThis = 2)] = "AssertsThis"),
        (e[(e.AssertsIdentifier = 3)] = "AssertsIdentifier"),
        e
      ))(PZ || {}),
      LZ = ((e) => (
        (e[(e.Unknown = 0)] = "Unknown"),
        (e[(e.TypeWithConstructSignatureAndValue = 1)] =
          "TypeWithConstructSignatureAndValue"),
        (e[(e.VoidNullableOrNeverType = 2)] = "VoidNullableOrNeverType"),
        (e[(e.NumberLikeType = 3)] = "NumberLikeType"),
        (e[(e.BigIntLikeType = 4)] = "BigIntLikeType"),
        (e[(e.StringLikeType = 5)] = "StringLikeType"),
        (e[(e.BooleanType = 6)] = "BooleanType"),
        (e[(e.ArrayLikeType = 7)] = "ArrayLikeType"),
        (e[(e.ESSymbolType = 8)] = "ESSymbolType"),
        (e[(e.Promise = 9)] = "Promise"),
        (e[(e.TypeWithCallSignature = 10)] = "TypeWithCallSignature"),
        (e[(e.ObjectType = 11)] = "ObjectType"),
        e
      ))(LZ || {}),
      u9 = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.FunctionScopedVariable = 1)] = "FunctionScopedVariable"),
        (e[(e.BlockScopedVariable = 2)] = "BlockScopedVariable"),
        (e[(e.Property = 4)] = "Property"),
        (e[(e.EnumMember = 8)] = "EnumMember"),
        (e[(e.Function = 16)] = "Function"),
        (e[(e.Class = 32)] = "Class"),
        (e[(e.Interface = 64)] = "Interface"),
        (e[(e.ConstEnum = 128)] = "ConstEnum"),
        (e[(e.RegularEnum = 256)] = "RegularEnum"),
        (e[(e.ValueModule = 512)] = "ValueModule"),
        (e[(e.NamespaceModule = 1024)] = "NamespaceModule"),
        (e[(e.TypeLiteral = 2048)] = "TypeLiteral"),
        (e[(e.ObjectLiteral = 4096)] = "ObjectLiteral"),
        (e[(e.Method = 8192)] = "Method"),
        (e[(e.Constructor = 16384)] = "Constructor"),
        (e[(e.GetAccessor = 32768)] = "GetAccessor"),
        (e[(e.SetAccessor = 65536)] = "SetAccessor"),
        (e[(e.Signature = 131072)] = "Signature"),
        (e[(e.TypeParameter = 262144)] = "TypeParameter"),
        (e[(e.TypeAlias = 524288)] = "TypeAlias"),
        (e[(e.ExportValue = 1048576)] = "ExportValue"),
        (e[(e.Alias = 2097152)] = "Alias"),
        (e[(e.Prototype = 4194304)] = "Prototype"),
        (e[(e.ExportStar = 8388608)] = "ExportStar"),
        (e[(e.Optional = 16777216)] = "Optional"),
        (e[(e.Transient = 33554432)] = "Transient"),
        (e[(e.Assignment = 67108864)] = "Assignment"),
        (e[(e.ModuleExports = 134217728)] = "ModuleExports"),
        (e[(e.All = -1)] = "All"),
        (e[(e.Enum = 384)] = "Enum"),
        (e[(e.Variable = 3)] = "Variable"),
        (e[(e.Value = 111551)] = "Value"),
        (e[(e.Type = 788968)] = "Type"),
        (e[(e.Namespace = 1920)] = "Namespace"),
        (e[(e.Module = 1536)] = "Module"),
        (e[(e.Accessor = 98304)] = "Accessor"),
        (e[(e.FunctionScopedVariableExcludes = 111550)] =
          "FunctionScopedVariableExcludes"),
        (e[(e.BlockScopedVariableExcludes = 111551)] =
          "BlockScopedVariableExcludes"),
        (e[(e.ParameterExcludes = 111551)] = "ParameterExcludes"),
        (e[(e.PropertyExcludes = 0)] = "PropertyExcludes"),
        (e[(e.EnumMemberExcludes = 900095)] = "EnumMemberExcludes"),
        (e[(e.FunctionExcludes = 110991)] = "FunctionExcludes"),
        (e[(e.ClassExcludes = 899503)] = "ClassExcludes"),
        (e[(e.InterfaceExcludes = 788872)] = "InterfaceExcludes"),
        (e[(e.RegularEnumExcludes = 899327)] = "RegularEnumExcludes"),
        (e[(e.ConstEnumExcludes = 899967)] = "ConstEnumExcludes"),
        (e[(e.ValueModuleExcludes = 110735)] = "ValueModuleExcludes"),
        (e[(e.NamespaceModuleExcludes = 0)] = "NamespaceModuleExcludes"),
        (e[(e.MethodExcludes = 103359)] = "MethodExcludes"),
        (e[(e.GetAccessorExcludes = 46015)] = "GetAccessorExcludes"),
        (e[(e.SetAccessorExcludes = 78783)] = "SetAccessorExcludes"),
        (e[(e.AccessorExcludes = 13247)] = "AccessorExcludes"),
        (e[(e.TypeParameterExcludes = 526824)] = "TypeParameterExcludes"),
        (e[(e.TypeAliasExcludes = 788968)] = "TypeAliasExcludes"),
        (e[(e.AliasExcludes = 2097152)] = "AliasExcludes"),
        (e[(e.ModuleMember = 2623475)] = "ModuleMember"),
        (e[(e.ExportHasLocal = 944)] = "ExportHasLocal"),
        (e[(e.BlockScoped = 418)] = "BlockScoped"),
        (e[(e.PropertyOrAccessor = 98308)] = "PropertyOrAccessor"),
        (e[(e.ClassMember = 106500)] = "ClassMember"),
        (e[(e.ExportSupportsDefaultModifier = 112)] =
          "ExportSupportsDefaultModifier"),
        (e[(e.ExportDoesNotSupportDefaultModifier = -113)] =
          "ExportDoesNotSupportDefaultModifier"),
        (e[(e.Classifiable = 2885600)] = "Classifiable"),
        (e[(e.LateBindingContainer = 6256)] = "LateBindingContainer"),
        e
      ))(u9 || {}),
      kZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Instantiated = 1)] = "Instantiated"),
        (e[(e.SyntheticProperty = 2)] = "SyntheticProperty"),
        (e[(e.SyntheticMethod = 4)] = "SyntheticMethod"),
        (e[(e.Readonly = 8)] = "Readonly"),
        (e[(e.ReadPartial = 16)] = "ReadPartial"),
        (e[(e.WritePartial = 32)] = "WritePartial"),
        (e[(e.HasNonUniformType = 64)] = "HasNonUniformType"),
        (e[(e.HasLiteralType = 128)] = "HasLiteralType"),
        (e[(e.ContainsPublic = 256)] = "ContainsPublic"),
        (e[(e.ContainsProtected = 512)] = "ContainsProtected"),
        (e[(e.ContainsPrivate = 1024)] = "ContainsPrivate"),
        (e[(e.ContainsStatic = 2048)] = "ContainsStatic"),
        (e[(e.Late = 4096)] = "Late"),
        (e[(e.ReverseMapped = 8192)] = "ReverseMapped"),
        (e[(e.OptionalParameter = 16384)] = "OptionalParameter"),
        (e[(e.RestParameter = 32768)] = "RestParameter"),
        (e[(e.DeferredType = 65536)] = "DeferredType"),
        (e[(e.HasNeverType = 131072)] = "HasNeverType"),
        (e[(e.Mapped = 262144)] = "Mapped"),
        (e[(e.StripOptional = 524288)] = "StripOptional"),
        (e[(e.Unresolved = 1048576)] = "Unresolved"),
        (e[(e.Synthetic = 6)] = "Synthetic"),
        (e[(e.Discriminant = 192)] = "Discriminant"),
        (e[(e.Partial = 48)] = "Partial"),
        e
      ))(kZ || {}),
      wZ = ((e) => (
        (e.Call = "__call"),
        (e.Constructor = "__constructor"),
        (e.New = "__new"),
        (e.Index = "__index"),
        (e.ExportStar = "__export"),
        (e.Global = "__global"),
        (e.Missing = "__missing"),
        (e.Type = "__type"),
        (e.Object = "__object"),
        (e.JSXAttributes = "__jsxAttributes"),
        (e.Class = "__class"),
        (e.Function = "__function"),
        (e.Computed = "__computed"),
        (e.Resolving = "__resolving__"),
        (e.ExportEquals = "export="),
        (e.Default = "default"),
        (e.This = "this"),
        (e.InstantiationExpression = "__instantiationExpression"),
        (e.ImportAttributes = "__importAttributes"),
        e
      ))(wZ || {}),
      p9 = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.TypeChecked = 1)] = "TypeChecked"),
        (e[(e.LexicalThis = 2)] = "LexicalThis"),
        (e[(e.CaptureThis = 4)] = "CaptureThis"),
        (e[(e.CaptureNewTarget = 8)] = "CaptureNewTarget"),
        (e[(e.SuperInstance = 16)] = "SuperInstance"),
        (e[(e.SuperStatic = 32)] = "SuperStatic"),
        (e[(e.ContextChecked = 64)] = "ContextChecked"),
        (e[(e.MethodWithSuperPropertyAccessInAsync = 128)] =
          "MethodWithSuperPropertyAccessInAsync"),
        (e[(e.MethodWithSuperPropertyAssignmentInAsync = 256)] =
          "MethodWithSuperPropertyAssignmentInAsync"),
        (e[(e.CaptureArguments = 512)] = "CaptureArguments"),
        (e[(e.EnumValuesComputed = 1024)] = "EnumValuesComputed"),
        (e[(e.LexicalModuleMergesWithClass = 2048)] =
          "LexicalModuleMergesWithClass"),
        (e[(e.LoopWithCapturedBlockScopedBinding = 4096)] =
          "LoopWithCapturedBlockScopedBinding"),
        (e[(e.ContainsCapturedBlockScopeBinding = 8192)] =
          "ContainsCapturedBlockScopeBinding"),
        (e[(e.CapturedBlockScopedBinding = 16384)] =
          "CapturedBlockScopedBinding"),
        (e[(e.BlockScopedBindingInLoop = 32768)] = "BlockScopedBindingInLoop"),
        (e[(e.NeedsLoopOutParameter = 65536)] = "NeedsLoopOutParameter"),
        (e[(e.AssignmentsMarked = 131072)] = "AssignmentsMarked"),
        (e[(e.ContainsConstructorReference = 262144)] =
          "ContainsConstructorReference"),
        (e[(e.ConstructorReference = 536870912)] = "ConstructorReference"),
        (e[(e.ContainsClassWithPrivateIdentifiers = 1048576)] =
          "ContainsClassWithPrivateIdentifiers"),
        (e[(e.ContainsSuperPropertyInStaticInitializer = 2097152)] =
          "ContainsSuperPropertyInStaticInitializer"),
        (e[(e.InCheckIdentifier = 4194304)] = "InCheckIdentifier"),
        (e[(e.PartiallyTypeChecked = 8388608)] = "PartiallyTypeChecked"),
        (e[(e.LazyFlags = 539358128)] = "LazyFlags"),
        e
      ))(p9 || {}),
      f9 = ((e) => (
        (e[(e.Any = 1)] = "Any"),
        (e[(e.Unknown = 2)] = "Unknown"),
        (e[(e.String = 4)] = "String"),
        (e[(e.Number = 8)] = "Number"),
        (e[(e.Boolean = 16)] = "Boolean"),
        (e[(e.Enum = 32)] = "Enum"),
        (e[(e.BigInt = 64)] = "BigInt"),
        (e[(e.StringLiteral = 128)] = "StringLiteral"),
        (e[(e.NumberLiteral = 256)] = "NumberLiteral"),
        (e[(e.BooleanLiteral = 512)] = "BooleanLiteral"),
        (e[(e.EnumLiteral = 1024)] = "EnumLiteral"),
        (e[(e.BigIntLiteral = 2048)] = "BigIntLiteral"),
        (e[(e.ESSymbol = 4096)] = "ESSymbol"),
        (e[(e.UniqueESSymbol = 8192)] = "UniqueESSymbol"),
        (e[(e.Void = 16384)] = "Void"),
        (e[(e.Undefined = 32768)] = "Undefined"),
        (e[(e.Null = 65536)] = "Null"),
        (e[(e.Never = 131072)] = "Never"),
        (e[(e.TypeParameter = 262144)] = "TypeParameter"),
        (e[(e.Object = 524288)] = "Object"),
        (e[(e.Union = 1048576)] = "Union"),
        (e[(e.Intersection = 2097152)] = "Intersection"),
        (e[(e.Index = 4194304)] = "Index"),
        (e[(e.IndexedAccess = 8388608)] = "IndexedAccess"),
        (e[(e.Conditional = 16777216)] = "Conditional"),
        (e[(e.Substitution = 33554432)] = "Substitution"),
        (e[(e.NonPrimitive = 67108864)] = "NonPrimitive"),
        (e[(e.TemplateLiteral = 134217728)] = "TemplateLiteral"),
        (e[(e.StringMapping = 268435456)] = "StringMapping"),
        (e[(e.Reserved1 = 536870912)] = "Reserved1"),
        (e[(e.Reserved2 = 1073741824)] = "Reserved2"),
        (e[(e.AnyOrUnknown = 3)] = "AnyOrUnknown"),
        (e[(e.Nullable = 98304)] = "Nullable"),
        (e[(e.Literal = 2944)] = "Literal"),
        (e[(e.Unit = 109472)] = "Unit"),
        (e[(e.Freshable = 2976)] = "Freshable"),
        (e[(e.StringOrNumberLiteral = 384)] = "StringOrNumberLiteral"),
        (e[(e.StringOrNumberLiteralOrUnique = 8576)] =
          "StringOrNumberLiteralOrUnique"),
        (e[(e.DefinitelyFalsy = 117632)] = "DefinitelyFalsy"),
        (e[(e.PossiblyFalsy = 117724)] = "PossiblyFalsy"),
        (e[(e.Intrinsic = 67359327)] = "Intrinsic"),
        (e[(e.StringLike = 402653316)] = "StringLike"),
        (e[(e.NumberLike = 296)] = "NumberLike"),
        (e[(e.BigIntLike = 2112)] = "BigIntLike"),
        (e[(e.BooleanLike = 528)] = "BooleanLike"),
        (e[(e.EnumLike = 1056)] = "EnumLike"),
        (e[(e.ESSymbolLike = 12288)] = "ESSymbolLike"),
        (e[(e.VoidLike = 49152)] = "VoidLike"),
        (e[(e.Primitive = 402784252)] = "Primitive"),
        (e[(e.DefinitelyNonNullable = 470302716)] = "DefinitelyNonNullable"),
        (e[(e.DisjointDomains = 469892092)] = "DisjointDomains"),
        (e[(e.UnionOrIntersection = 3145728)] = "UnionOrIntersection"),
        (e[(e.StructuredType = 3670016)] = "StructuredType"),
        (e[(e.TypeVariable = 8650752)] = "TypeVariable"),
        (e[(e.InstantiableNonPrimitive = 58982400)] =
          "InstantiableNonPrimitive"),
        (e[(e.InstantiablePrimitive = 406847488)] = "InstantiablePrimitive"),
        (e[(e.Instantiable = 465829888)] = "Instantiable"),
        (e[(e.StructuredOrInstantiable = 469499904)] =
          "StructuredOrInstantiable"),
        (e[(e.ObjectFlagsType = 3899393)] = "ObjectFlagsType"),
        (e[(e.Simplifiable = 25165824)] = "Simplifiable"),
        (e[(e.Singleton = 67358815)] = "Singleton"),
        (e[(e.Narrowable = 536624127)] = "Narrowable"),
        (e[(e.IncludesMask = 473694207)] = "IncludesMask"),
        (e[(e.IncludesMissingType = 262144)] = "IncludesMissingType"),
        (e[(e.IncludesNonWideningType = 4194304)] = "IncludesNonWideningType"),
        (e[(e.IncludesWildcard = 8388608)] = "IncludesWildcard"),
        (e[(e.IncludesEmptyObject = 16777216)] = "IncludesEmptyObject"),
        (e[(e.IncludesInstantiable = 33554432)] = "IncludesInstantiable"),
        (e[(e.IncludesConstrainedTypeVariable = 536870912)] =
          "IncludesConstrainedTypeVariable"),
        (e[(e.IncludesError = 1073741824)] = "IncludesError"),
        (e[(e.NotPrimitiveUnion = 36323331)] = "NotPrimitiveUnion"),
        e
      ))(f9 || {}),
      m9 = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Class = 1)] = "Class"),
        (e[(e.Interface = 2)] = "Interface"),
        (e[(e.Reference = 4)] = "Reference"),
        (e[(e.Tuple = 8)] = "Tuple"),
        (e[(e.Anonymous = 16)] = "Anonymous"),
        (e[(e.Mapped = 32)] = "Mapped"),
        (e[(e.Instantiated = 64)] = "Instantiated"),
        (e[(e.ObjectLiteral = 128)] = "ObjectLiteral"),
        (e[(e.EvolvingArray = 256)] = "EvolvingArray"),
        (e[(e.ObjectLiteralPatternWithComputedProperties = 512)] =
          "ObjectLiteralPatternWithComputedProperties"),
        (e[(e.ReverseMapped = 1024)] = "ReverseMapped"),
        (e[(e.JsxAttributes = 2048)] = "JsxAttributes"),
        (e[(e.JSLiteral = 4096)] = "JSLiteral"),
        (e[(e.FreshLiteral = 8192)] = "FreshLiteral"),
        (e[(e.ArrayLiteral = 16384)] = "ArrayLiteral"),
        (e[(e.PrimitiveUnion = 32768)] = "PrimitiveUnion"),
        (e[(e.ContainsWideningType = 65536)] = "ContainsWideningType"),
        (e[(e.ContainsObjectOrArrayLiteral = 131072)] =
          "ContainsObjectOrArrayLiteral"),
        (e[(e.NonInferrableType = 262144)] = "NonInferrableType"),
        (e[(e.CouldContainTypeVariablesComputed = 524288)] =
          "CouldContainTypeVariablesComputed"),
        (e[(e.CouldContainTypeVariables = 1048576)] =
          "CouldContainTypeVariables"),
        (e[(e.SingleSignatureType = 134217728)] = "SingleSignatureType"),
        (e[(e.ClassOrInterface = 3)] = "ClassOrInterface"),
        (e[(e.RequiresWidening = 196608)] = "RequiresWidening"),
        (e[(e.PropagatingFlags = 458752)] = "PropagatingFlags"),
        (e[(e.InstantiatedMapped = 96)] = "InstantiatedMapped"),
        (e[(e.ObjectTypeKindMask = 1343)] = "ObjectTypeKindMask"),
        (e[(e.ContainsSpread = 2097152)] = "ContainsSpread"),
        (e[(e.ObjectRestType = 4194304)] = "ObjectRestType"),
        (e[(e.InstantiationExpressionType = 8388608)] =
          "InstantiationExpressionType"),
        (e[(e.IsClassInstanceClone = 16777216)] = "IsClassInstanceClone"),
        (e[(e.IdenticalBaseTypeCalculated = 33554432)] =
          "IdenticalBaseTypeCalculated"),
        (e[(e.IdenticalBaseTypeExists = 67108864)] = "IdenticalBaseTypeExists"),
        (e[(e.IsGenericTypeComputed = 2097152)] = "IsGenericTypeComputed"),
        (e[(e.IsGenericObjectType = 4194304)] = "IsGenericObjectType"),
        (e[(e.IsGenericIndexType = 8388608)] = "IsGenericIndexType"),
        (e[(e.IsGenericType = 12582912)] = "IsGenericType"),
        (e[(e.ContainsIntersections = 16777216)] = "ContainsIntersections"),
        (e[(e.IsUnknownLikeUnionComputed = 33554432)] =
          "IsUnknownLikeUnionComputed"),
        (e[(e.IsUnknownLikeUnion = 67108864)] = "IsUnknownLikeUnion"),
        (e[(e.IsNeverIntersectionComputed = 16777216)] =
          "IsNeverIntersectionComputed"),
        (e[(e.IsNeverIntersection = 33554432)] = "IsNeverIntersection"),
        (e[(e.IsConstrainedTypeVariable = 67108864)] =
          "IsConstrainedTypeVariable"),
        e
      ))(m9 || {}),
      OZ = ((e) => (
        (e[(e.Invariant = 0)] = "Invariant"),
        (e[(e.Covariant = 1)] = "Covariant"),
        (e[(e.Contravariant = 2)] = "Contravariant"),
        (e[(e.Bivariant = 3)] = "Bivariant"),
        (e[(e.Independent = 4)] = "Independent"),
        (e[(e.VarianceMask = 7)] = "VarianceMask"),
        (e[(e.Unmeasurable = 8)] = "Unmeasurable"),
        (e[(e.Unreliable = 16)] = "Unreliable"),
        (e[(e.AllowsStructuralFallback = 24)] = "AllowsStructuralFallback"),
        e
      ))(OZ || {}),
      WZ = ((e) => (
        (e[(e.Required = 1)] = "Required"),
        (e[(e.Optional = 2)] = "Optional"),
        (e[(e.Rest = 4)] = "Rest"),
        (e[(e.Variadic = 8)] = "Variadic"),
        (e[(e.Fixed = 3)] = "Fixed"),
        (e[(e.Variable = 12)] = "Variable"),
        (e[(e.NonRequired = 14)] = "NonRequired"),
        (e[(e.NonRest = 11)] = "NonRest"),
        e
      ))(WZ || {}),
      FZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.IncludeUndefined = 1)] = "IncludeUndefined"),
        (e[(e.NoIndexSignatures = 2)] = "NoIndexSignatures"),
        (e[(e.Writing = 4)] = "Writing"),
        (e[(e.CacheSymbol = 8)] = "CacheSymbol"),
        (e[(e.AllowMissing = 16)] = "AllowMissing"),
        (e[(e.ExpressionPosition = 32)] = "ExpressionPosition"),
        (e[(e.ReportDeprecated = 64)] = "ReportDeprecated"),
        (e[(e.SuppressNoImplicitAnyError = 128)] =
          "SuppressNoImplicitAnyError"),
        (e[(e.Contextual = 256)] = "Contextual"),
        (e[(e.Persistent = 1)] = "Persistent"),
        e
      ))(FZ || {}),
      zZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.StringsOnly = 1)] = "StringsOnly"),
        (e[(e.NoIndexSignatures = 2)] = "NoIndexSignatures"),
        (e[(e.NoReducibleCheck = 4)] = "NoReducibleCheck"),
        e
      ))(zZ || {}),
      BZ = ((e) => (
        (e[(e.Component = 0)] = "Component"),
        (e[(e.Function = 1)] = "Function"),
        (e[(e.Mixed = 2)] = "Mixed"),
        e
      ))(BZ || {}),
      GZ = ((e) => (
        (e[(e.Call = 0)] = "Call"),
        (e[(e.Construct = 1)] = "Construct"),
        e
      ))(GZ || {}),
      h9 = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.HasRestParameter = 1)] = "HasRestParameter"),
        (e[(e.HasLiteralTypes = 2)] = "HasLiteralTypes"),
        (e[(e.Abstract = 4)] = "Abstract"),
        (e[(e.IsInnerCallChain = 8)] = "IsInnerCallChain"),
        (e[(e.IsOuterCallChain = 16)] = "IsOuterCallChain"),
        (e[(e.IsUntypedSignatureInJSFile = 32)] = "IsUntypedSignatureInJSFile"),
        (e[(e.IsNonInferrable = 64)] = "IsNonInferrable"),
        (e[(e.IsSignatureCandidateForOverloadFailure = 128)] =
          "IsSignatureCandidateForOverloadFailure"),
        (e[(e.PropagatingFlags = 167)] = "PropagatingFlags"),
        (e[(e.CallChainFlags = 24)] = "CallChainFlags"),
        e
      ))(h9 || {}),
      VZ = ((e) => (
        (e[(e.String = 0)] = "String"),
        (e[(e.Number = 1)] = "Number"),
        e
      ))(VZ || {}),
      jZ = ((e) => (
        (e[(e.Simple = 0)] = "Simple"),
        (e[(e.Array = 1)] = "Array"),
        (e[(e.Deferred = 2)] = "Deferred"),
        (e[(e.Function = 3)] = "Function"),
        (e[(e.Composite = 4)] = "Composite"),
        (e[(e.Merged = 5)] = "Merged"),
        e
      ))(jZ || {}),
      UZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.NakedTypeVariable = 1)] = "NakedTypeVariable"),
        (e[(e.SpeculativeTuple = 2)] = "SpeculativeTuple"),
        (e[(e.SubstituteSource = 4)] = "SubstituteSource"),
        (e[(e.HomomorphicMappedType = 8)] = "HomomorphicMappedType"),
        (e[(e.PartialHomomorphicMappedType = 16)] =
          "PartialHomomorphicMappedType"),
        (e[(e.MappedTypeConstraint = 32)] = "MappedTypeConstraint"),
        (e[(e.ContravariantConditional = 64)] = "ContravariantConditional"),
        (e[(e.ReturnType = 128)] = "ReturnType"),
        (e[(e.LiteralKeyof = 256)] = "LiteralKeyof"),
        (e[(e.NoConstraints = 512)] = "NoConstraints"),
        (e[(e.AlwaysStrict = 1024)] = "AlwaysStrict"),
        (e[(e.MaxValue = 2048)] = "MaxValue"),
        (e[(e.PriorityImpliesCombination = 416)] =
          "PriorityImpliesCombination"),
        (e[(e.Circularity = -1)] = "Circularity"),
        e
      ))(UZ || {}),
      HZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.NoDefault = 1)] = "NoDefault"),
        (e[(e.AnyDefault = 2)] = "AnyDefault"),
        (e[(e.SkippedGenericFunction = 4)] = "SkippedGenericFunction"),
        e
      ))(HZ || {}),
      qZ = ((e) => (
        (e[(e.False = 0)] = "False"),
        (e[(e.Unknown = 1)] = "Unknown"),
        (e[(e.Maybe = 3)] = "Maybe"),
        (e[(e.True = -1)] = "True"),
        e
      ))(qZ || {}),
      JZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.ExportsProperty = 1)] = "ExportsProperty"),
        (e[(e.ModuleExports = 2)] = "ModuleExports"),
        (e[(e.PrototypeProperty = 3)] = "PrototypeProperty"),
        (e[(e.ThisProperty = 4)] = "ThisProperty"),
        (e[(e.Property = 5)] = "Property"),
        (e[(e.Prototype = 6)] = "Prototype"),
        (e[(e.ObjectDefinePropertyValue = 7)] = "ObjectDefinePropertyValue"),
        (e[(e.ObjectDefinePropertyExports = 8)] =
          "ObjectDefinePropertyExports"),
        (e[(e.ObjectDefinePrototypeProperty = 9)] =
          "ObjectDefinePrototypeProperty"),
        e
      ))(JZ || {}),
      K8 = ((e) => (
        (e[(e.Warning = 0)] = "Warning"),
        (e[(e.Error = 1)] = "Error"),
        (e[(e.Suggestion = 2)] = "Suggestion"),
        (e[(e.Message = 3)] = "Message"),
        e
      ))(K8 || {});
    function jE(e, t = !0) {
      const r = K8[e.category];
      return t ? r.toLowerCase() : r;
    }
    var DR = ((e) => (
        (e[(e.Classic = 1)] = "Classic"),
        (e[(e.NodeJs = 2)] = "NodeJs"),
        (e[(e.Node10 = 2)] = "Node10"),
        (e[(e.Node16 = 3)] = "Node16"),
        (e[(e.NodeNext = 99)] = "NodeNext"),
        (e[(e.Bundler = 100)] = "Bundler"),
        e
      ))(DR || {}),
      KZ = ((e) => (
        (e[(e.Legacy = 1)] = "Legacy"),
        (e[(e.Auto = 2)] = "Auto"),
        (e[(e.Force = 3)] = "Force"),
        e
      ))(KZ || {}),
      XZ = ((e) => (
        (e[(e.FixedPollingInterval = 0)] = "FixedPollingInterval"),
        (e[(e.PriorityPollingInterval = 1)] = "PriorityPollingInterval"),
        (e[(e.DynamicPriorityPolling = 2)] = "DynamicPriorityPolling"),
        (e[(e.FixedChunkSizePolling = 3)] = "FixedChunkSizePolling"),
        (e[(e.UseFsEvents = 4)] = "UseFsEvents"),
        (e[(e.UseFsEventsOnParentDirectory = 5)] =
          "UseFsEventsOnParentDirectory"),
        e
      ))(XZ || {}),
      YZ = ((e) => (
        (e[(e.UseFsEvents = 0)] = "UseFsEvents"),
        (e[(e.FixedPollingInterval = 1)] = "FixedPollingInterval"),
        (e[(e.DynamicPriorityPolling = 2)] = "DynamicPriorityPolling"),
        (e[(e.FixedChunkSizePolling = 3)] = "FixedChunkSizePolling"),
        e
      ))(YZ || {}),
      $Z = ((e) => (
        (e[(e.FixedInterval = 0)] = "FixedInterval"),
        (e[(e.PriorityInterval = 1)] = "PriorityInterval"),
        (e[(e.DynamicPriority = 2)] = "DynamicPriority"),
        (e[(e.FixedChunkSize = 3)] = "FixedChunkSize"),
        e
      ))($Z || {}),
      CR = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.CommonJS = 1)] = "CommonJS"),
        (e[(e.AMD = 2)] = "AMD"),
        (e[(e.UMD = 3)] = "UMD"),
        (e[(e.System = 4)] = "System"),
        (e[(e.ES2015 = 5)] = "ES2015"),
        (e[(e.ES2020 = 6)] = "ES2020"),
        (e[(e.ES2022 = 7)] = "ES2022"),
        (e[(e.ESNext = 99)] = "ESNext"),
        (e[(e.Node16 = 100)] = "Node16"),
        (e[(e.Node18 = 101)] = "Node18"),
        (e[(e.Node20 = 102)] = "Node20"),
        (e[(e.NodeNext = 199)] = "NodeNext"),
        (e[(e.Preserve = 200)] = "Preserve"),
        e
      ))(CR || {}),
      QZ = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Preserve = 1)] = "Preserve"),
        (e[(e.React = 2)] = "React"),
        (e[(e.ReactNative = 3)] = "ReactNative"),
        (e[(e.ReactJSX = 4)] = "ReactJSX"),
        (e[(e.ReactJSXDev = 5)] = "ReactJSXDev"),
        e
      ))(QZ || {}),
      ZZ = ((e) => (
        (e[(e.Remove = 0)] = "Remove"),
        (e[(e.Preserve = 1)] = "Preserve"),
        (e[(e.Error = 2)] = "Error"),
        e
      ))(ZZ || {}),
      eee = ((e) => (
        (e[(e.CarriageReturnLineFeed = 0)] = "CarriageReturnLineFeed"),
        (e[(e.LineFeed = 1)] = "LineFeed"),
        e
      ))(eee || {}),
      _9 = ((e) => (
        (e[(e.Unknown = 0)] = "Unknown"),
        (e[(e.JS = 1)] = "JS"),
        (e[(e.JSX = 2)] = "JSX"),
        (e[(e.TS = 3)] = "TS"),
        (e[(e.TSX = 4)] = "TSX"),
        (e[(e.External = 5)] = "External"),
        (e[(e.JSON = 6)] = "JSON"),
        (e[(e.Deferred = 7)] = "Deferred"),
        e
      ))(_9 || {}),
      tee = ((e) => (
        (e[(e.ES3 = 0)] = "ES3"),
        (e[(e.ES5 = 1)] = "ES5"),
        (e[(e.ES2015 = 2)] = "ES2015"),
        (e[(e.ES2016 = 3)] = "ES2016"),
        (e[(e.ES2017 = 4)] = "ES2017"),
        (e[(e.ES2018 = 5)] = "ES2018"),
        (e[(e.ES2019 = 6)] = "ES2019"),
        (e[(e.ES2020 = 7)] = "ES2020"),
        (e[(e.ES2021 = 8)] = "ES2021"),
        (e[(e.ES2022 = 9)] = "ES2022"),
        (e[(e.ES2023 = 10)] = "ES2023"),
        (e[(e.ES2024 = 11)] = "ES2024"),
        (e[(e.ESNext = 99)] = "ESNext"),
        (e[(e.JSON = 100)] = "JSON"),
        (e[(e.Latest = 99)] = "Latest"),
        e
      ))(tee || {}),
      nee = ((e) => (
        (e[(e.Standard = 0)] = "Standard"),
        (e[(e.JSX = 1)] = "JSX"),
        e
      ))(nee || {}),
      ree = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Recursive = 1)] = "Recursive"),
        e
      ))(ree || {}),
      iee = ((e) => (
        (e[(e.EOF = -1)] = "EOF"),
        (e[(e.nullCharacter = 0)] = "nullCharacter"),
        (e[(e.maxAsciiCharacter = 127)] = "maxAsciiCharacter"),
        (e[(e.lineFeed = 10)] = "lineFeed"),
        (e[(e.carriageReturn = 13)] = "carriageReturn"),
        (e[(e.lineSeparator = 8232)] = "lineSeparator"),
        (e[(e.paragraphSeparator = 8233)] = "paragraphSeparator"),
        (e[(e.nextLine = 133)] = "nextLine"),
        (e[(e.space = 32)] = "space"),
        (e[(e.nonBreakingSpace = 160)] = "nonBreakingSpace"),
        (e[(e.enQuad = 8192)] = "enQuad"),
        (e[(e.emQuad = 8193)] = "emQuad"),
        (e[(e.enSpace = 8194)] = "enSpace"),
        (e[(e.emSpace = 8195)] = "emSpace"),
        (e[(e.threePerEmSpace = 8196)] = "threePerEmSpace"),
        (e[(e.fourPerEmSpace = 8197)] = "fourPerEmSpace"),
        (e[(e.sixPerEmSpace = 8198)] = "sixPerEmSpace"),
        (e[(e.figureSpace = 8199)] = "figureSpace"),
        (e[(e.punctuationSpace = 8200)] = "punctuationSpace"),
        (e[(e.thinSpace = 8201)] = "thinSpace"),
        (e[(e.hairSpace = 8202)] = "hairSpace"),
        (e[(e.zeroWidthSpace = 8203)] = "zeroWidthSpace"),
        (e[(e.narrowNoBreakSpace = 8239)] = "narrowNoBreakSpace"),
        (e[(e.ideographicSpace = 12288)] = "ideographicSpace"),
        (e[(e.mathematicalSpace = 8287)] = "mathematicalSpace"),
        (e[(e.ogham = 5760)] = "ogham"),
        (e[(e.replacementCharacter = 65533)] = "replacementCharacter"),
        (e[(e._ = 95)] = "_"),
        (e[(e.$ = 36)] = "$"),
        (e[(e._0 = 48)] = "_0"),
        (e[(e._1 = 49)] = "_1"),
        (e[(e._2 = 50)] = "_2"),
        (e[(e._3 = 51)] = "_3"),
        (e[(e._4 = 52)] = "_4"),
        (e[(e._5 = 53)] = "_5"),
        (e[(e._6 = 54)] = "_6"),
        (e[(e._7 = 55)] = "_7"),
        (e[(e._8 = 56)] = "_8"),
        (e[(e._9 = 57)] = "_9"),
        (e[(e.a = 97)] = "a"),
        (e[(e.b = 98)] = "b"),
        (e[(e.c = 99)] = "c"),
        (e[(e.d = 100)] = "d"),
        (e[(e.e = 101)] = "e"),
        (e[(e.f = 102)] = "f"),
        (e[(e.g = 103)] = "g"),
        (e[(e.h = 104)] = "h"),
        (e[(e.i = 105)] = "i"),
        (e[(e.j = 106)] = "j"),
        (e[(e.k = 107)] = "k"),
        (e[(e.l = 108)] = "l"),
        (e[(e.m = 109)] = "m"),
        (e[(e.n = 110)] = "n"),
        (e[(e.o = 111)] = "o"),
        (e[(e.p = 112)] = "p"),
        (e[(e.q = 113)] = "q"),
        (e[(e.r = 114)] = "r"),
        (e[(e.s = 115)] = "s"),
        (e[(e.t = 116)] = "t"),
        (e[(e.u = 117)] = "u"),
        (e[(e.v = 118)] = "v"),
        (e[(e.w = 119)] = "w"),
        (e[(e.x = 120)] = "x"),
        (e[(e.y = 121)] = "y"),
        (e[(e.z = 122)] = "z"),
        (e[(e.A = 65)] = "A"),
        (e[(e.B = 66)] = "B"),
        (e[(e.C = 67)] = "C"),
        (e[(e.D = 68)] = "D"),
        (e[(e.E = 69)] = "E"),
        (e[(e.F = 70)] = "F"),
        (e[(e.G = 71)] = "G"),
        (e[(e.H = 72)] = "H"),
        (e[(e.I = 73)] = "I"),
        (e[(e.J = 74)] = "J"),
        (e[(e.K = 75)] = "K"),
        (e[(e.L = 76)] = "L"),
        (e[(e.M = 77)] = "M"),
        (e[(e.N = 78)] = "N"),
        (e[(e.O = 79)] = "O"),
        (e[(e.P = 80)] = "P"),
        (e[(e.Q = 81)] = "Q"),
        (e[(e.R = 82)] = "R"),
        (e[(e.S = 83)] = "S"),
        (e[(e.T = 84)] = "T"),
        (e[(e.U = 85)] = "U"),
        (e[(e.V = 86)] = "V"),
        (e[(e.W = 87)] = "W"),
        (e[(e.X = 88)] = "X"),
        (e[(e.Y = 89)] = "Y"),
        (e[(e.Z = 90)] = "Z"),
        (e[(e.ampersand = 38)] = "ampersand"),
        (e[(e.asterisk = 42)] = "asterisk"),
        (e[(e.at = 64)] = "at"),
        (e[(e.backslash = 92)] = "backslash"),
        (e[(e.backtick = 96)] = "backtick"),
        (e[(e.bar = 124)] = "bar"),
        (e[(e.caret = 94)] = "caret"),
        (e[(e.closeBrace = 125)] = "closeBrace"),
        (e[(e.closeBracket = 93)] = "closeBracket"),
        (e[(e.closeParen = 41)] = "closeParen"),
        (e[(e.colon = 58)] = "colon"),
        (e[(e.comma = 44)] = "comma"),
        (e[(e.dot = 46)] = "dot"),
        (e[(e.doubleQuote = 34)] = "doubleQuote"),
        (e[(e.equals = 61)] = "equals"),
        (e[(e.exclamation = 33)] = "exclamation"),
        (e[(e.greaterThan = 62)] = "greaterThan"),
        (e[(e.hash = 35)] = "hash"),
        (e[(e.lessThan = 60)] = "lessThan"),
        (e[(e.minus = 45)] = "minus"),
        (e[(e.openBrace = 123)] = "openBrace"),
        (e[(e.openBracket = 91)] = "openBracket"),
        (e[(e.openParen = 40)] = "openParen"),
        (e[(e.percent = 37)] = "percent"),
        (e[(e.plus = 43)] = "plus"),
        (e[(e.question = 63)] = "question"),
        (e[(e.semicolon = 59)] = "semicolon"),
        (e[(e.singleQuote = 39)] = "singleQuote"),
        (e[(e.slash = 47)] = "slash"),
        (e[(e.tilde = 126)] = "tilde"),
        (e[(e.backspace = 8)] = "backspace"),
        (e[(e.formFeed = 12)] = "formFeed"),
        (e[(e.byteOrderMark = 65279)] = "byteOrderMark"),
        (e[(e.tab = 9)] = "tab"),
        (e[(e.verticalTab = 11)] = "verticalTab"),
        e
      ))(iee || {}),
      oee = ((e) => (
        (e.Ts = ".ts"),
        (e.Tsx = ".tsx"),
        (e.Dts = ".d.ts"),
        (e.Js = ".js"),
        (e.Jsx = ".jsx"),
        (e.Json = ".json"),
        (e.TsBuildInfo = ".tsbuildinfo"),
        (e.Mjs = ".mjs"),
        (e.Mts = ".mts"),
        (e.Dmts = ".d.mts"),
        (e.Cjs = ".cjs"),
        (e.Cts = ".cts"),
        (e.Dcts = ".d.cts"),
        e
      ))(oee || {}),
      g9 = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.ContainsTypeScript = 1)] = "ContainsTypeScript"),
        (e[(e.ContainsJsx = 2)] = "ContainsJsx"),
        (e[(e.ContainsESNext = 4)] = "ContainsESNext"),
        (e[(e.ContainsES2022 = 8)] = "ContainsES2022"),
        (e[(e.ContainsES2021 = 16)] = "ContainsES2021"),
        (e[(e.ContainsES2020 = 32)] = "ContainsES2020"),
        (e[(e.ContainsES2019 = 64)] = "ContainsES2019"),
        (e[(e.ContainsES2018 = 128)] = "ContainsES2018"),
        (e[(e.ContainsES2017 = 256)] = "ContainsES2017"),
        (e[(e.ContainsES2016 = 512)] = "ContainsES2016"),
        (e[(e.ContainsES2015 = 1024)] = "ContainsES2015"),
        (e[(e.ContainsGenerator = 2048)] = "ContainsGenerator"),
        (e[(e.ContainsDestructuringAssignment = 4096)] =
          "ContainsDestructuringAssignment"),
        (e[(e.ContainsTypeScriptClassSyntax = 8192)] =
          "ContainsTypeScriptClassSyntax"),
        (e[(e.ContainsLexicalThis = 16384)] = "ContainsLexicalThis"),
        (e[(e.ContainsRestOrSpread = 32768)] = "ContainsRestOrSpread"),
        (e[(e.ContainsObjectRestOrSpread = 65536)] =
          "ContainsObjectRestOrSpread"),
        (e[(e.ContainsComputedPropertyName = 131072)] =
          "ContainsComputedPropertyName"),
        (e[(e.ContainsBlockScopedBinding = 262144)] =
          "ContainsBlockScopedBinding"),
        (e[(e.ContainsBindingPattern = 524288)] = "ContainsBindingPattern"),
        (e[(e.ContainsYield = 1048576)] = "ContainsYield"),
        (e[(e.ContainsAwait = 2097152)] = "ContainsAwait"),
        (e[(e.ContainsHoistedDeclarationOrCompletion = 4194304)] =
          "ContainsHoistedDeclarationOrCompletion"),
        (e[(e.ContainsDynamicImport = 8388608)] = "ContainsDynamicImport"),
        (e[(e.ContainsClassFields = 16777216)] = "ContainsClassFields"),
        (e[(e.ContainsDecorators = 33554432)] = "ContainsDecorators"),
        (e[(e.ContainsPossibleTopLevelAwait = 67108864)] =
          "ContainsPossibleTopLevelAwait"),
        (e[(e.ContainsLexicalSuper = 134217728)] = "ContainsLexicalSuper"),
        (e[(e.ContainsUpdateExpressionForIdentifier = 268435456)] =
          "ContainsUpdateExpressionForIdentifier"),
        (e[(e.ContainsPrivateIdentifierInExpression = 536870912)] =
          "ContainsPrivateIdentifierInExpression"),
        (e[(e.HasComputedFlags = -2147483648)] = "HasComputedFlags"),
        (e[(e.AssertTypeScript = 1)] = "AssertTypeScript"),
        (e[(e.AssertJsx = 2)] = "AssertJsx"),
        (e[(e.AssertESNext = 4)] = "AssertESNext"),
        (e[(e.AssertES2022 = 8)] = "AssertES2022"),
        (e[(e.AssertES2021 = 16)] = "AssertES2021"),
        (e[(e.AssertES2020 = 32)] = "AssertES2020"),
        (e[(e.AssertES2019 = 64)] = "AssertES2019"),
        (e[(e.AssertES2018 = 128)] = "AssertES2018"),
        (e[(e.AssertES2017 = 256)] = "AssertES2017"),
        (e[(e.AssertES2016 = 512)] = "AssertES2016"),
        (e[(e.AssertES2015 = 1024)] = "AssertES2015"),
        (e[(e.AssertGenerator = 2048)] = "AssertGenerator"),
        (e[(e.AssertDestructuringAssignment = 4096)] =
          "AssertDestructuringAssignment"),
        (e[(e.OuterExpressionExcludes = -2147483648)] =
          "OuterExpressionExcludes"),
        (e[(e.PropertyAccessExcludes = -2147483648)] =
          "PropertyAccessExcludes"),
        (e[(e.NodeExcludes = -2147483648)] = "NodeExcludes"),
        (e[(e.ArrowFunctionExcludes = -2072174592)] = "ArrowFunctionExcludes"),
        (e[(e.FunctionExcludes = -1937940480)] = "FunctionExcludes"),
        (e[(e.ConstructorExcludes = -1937948672)] = "ConstructorExcludes"),
        (e[(e.MethodOrAccessorExcludes = -2005057536)] =
          "MethodOrAccessorExcludes"),
        (e[(e.PropertyExcludes = -2013249536)] = "PropertyExcludes"),
        (e[(e.ClassExcludes = -2147344384)] = "ClassExcludes"),
        (e[(e.ModuleExcludes = -1941676032)] = "ModuleExcludes"),
        (e[(e.TypeExcludes = -2)] = "TypeExcludes"),
        (e[(e.ObjectLiteralExcludes = -2147278848)] = "ObjectLiteralExcludes"),
        (e[(e.ArrayLiteralOrCallOrNewExcludes = -2147450880)] =
          "ArrayLiteralOrCallOrNewExcludes"),
        (e[(e.VariableDeclarationListExcludes = -2146893824)] =
          "VariableDeclarationListExcludes"),
        (e[(e.ParameterExcludes = -2147483648)] = "ParameterExcludes"),
        (e[(e.CatchClauseExcludes = -2147418112)] = "CatchClauseExcludes"),
        (e[(e.BindingPatternExcludes = -2147450880)] =
          "BindingPatternExcludes"),
        (e[(e.ContainsLexicalThisOrSuper = 134234112)] =
          "ContainsLexicalThisOrSuper"),
        (e[(e.PropertyNamePropagatingFlags = 134234112)] =
          "PropertyNamePropagatingFlags"),
        e
      ))(g9 || {}),
      y9 = ((e) => (
        (e[(e.TabStop = 0)] = "TabStop"),
        (e[(e.Placeholder = 1)] = "Placeholder"),
        (e[(e.Choice = 2)] = "Choice"),
        (e[(e.Variable = 3)] = "Variable"),
        e
      ))(y9 || {}),
      v9 = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.SingleLine = 1)] = "SingleLine"),
        (e[(e.MultiLine = 2)] = "MultiLine"),
        (e[(e.AdviseOnEmitNode = 4)] = "AdviseOnEmitNode"),
        (e[(e.NoSubstitution = 8)] = "NoSubstitution"),
        (e[(e.CapturesThis = 16)] = "CapturesThis"),
        (e[(e.NoLeadingSourceMap = 32)] = "NoLeadingSourceMap"),
        (e[(e.NoTrailingSourceMap = 64)] = "NoTrailingSourceMap"),
        (e[(e.NoSourceMap = 96)] = "NoSourceMap"),
        (e[(e.NoNestedSourceMaps = 128)] = "NoNestedSourceMaps"),
        (e[(e.NoTokenLeadingSourceMaps = 256)] = "NoTokenLeadingSourceMaps"),
        (e[(e.NoTokenTrailingSourceMaps = 512)] = "NoTokenTrailingSourceMaps"),
        (e[(e.NoTokenSourceMaps = 768)] = "NoTokenSourceMaps"),
        (e[(e.NoLeadingComments = 1024)] = "NoLeadingComments"),
        (e[(e.NoTrailingComments = 2048)] = "NoTrailingComments"),
        (e[(e.NoComments = 3072)] = "NoComments"),
        (e[(e.NoNestedComments = 4096)] = "NoNestedComments"),
        (e[(e.HelperName = 8192)] = "HelperName"),
        (e[(e.ExportName = 16384)] = "ExportName"),
        (e[(e.LocalName = 32768)] = "LocalName"),
        (e[(e.InternalName = 65536)] = "InternalName"),
        (e[(e.Indented = 131072)] = "Indented"),
        (e[(e.NoIndentation = 262144)] = "NoIndentation"),
        (e[(e.AsyncFunctionBody = 524288)] = "AsyncFunctionBody"),
        (e[(e.ReuseTempVariableScope = 1048576)] = "ReuseTempVariableScope"),
        (e[(e.CustomPrologue = 2097152)] = "CustomPrologue"),
        (e[(e.NoHoisting = 4194304)] = "NoHoisting"),
        (e[(e.Iterator = 8388608)] = "Iterator"),
        (e[(e.NoAsciiEscaping = 16777216)] = "NoAsciiEscaping"),
        e
      ))(v9 || {}),
      aee = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.TypeScriptClassWrapper = 1)] = "TypeScriptClassWrapper"),
        (e[(e.NeverApplyImportHelper = 2)] = "NeverApplyImportHelper"),
        (e[(e.IgnoreSourceNewlines = 4)] = "IgnoreSourceNewlines"),
        (e[(e.Immutable = 8)] = "Immutable"),
        (e[(e.IndirectCall = 16)] = "IndirectCall"),
        (e[(e.TransformPrivateStaticElements = 32)] =
          "TransformPrivateStaticElements"),
        e
      ))(aee || {}),
      ed = {
        Classes: 2,
        ForOf: 2,
        Generators: 2,
        Iteration: 2,
        SpreadElements: 2,
        RestElements: 2,
        TaggedTemplates: 2,
        DestructuringAssignment: 2,
        BindingPatterns: 2,
        ArrowFunctions: 2,
        BlockScopedVariables: 2,
        ObjectAssign: 2,
        RegularExpressionFlagsUnicode: 2,
        RegularExpressionFlagsSticky: 2,
        Exponentiation: 3,
        AsyncFunctions: 4,
        ForAwaitOf: 5,
        AsyncGenerators: 5,
        AsyncIteration: 5,
        ObjectSpreadRest: 5,
        RegularExpressionFlagsDotAll: 5,
        BindinglessCatch: 6,
        BigInt: 7,
        NullishCoalesce: 7,
        OptionalChaining: 7,
        LogicalAssignment: 8,
        TopLevelAwait: 9,
        ClassFields: 9,
        PrivateNamesAndClassStaticBlocks: 9,
        RegularExpressionFlagsHasIndices: 9,
        ShebangComments: 10,
        RegularExpressionFlagsUnicodeSets: 11,
        UsingAndAwaitUsing: 99,
        ClassAndClassElementDecorators: 99,
      },
      see = ((e) => (
        (e[(e.Extends = 1)] = "Extends"),
        (e[(e.Assign = 2)] = "Assign"),
        (e[(e.Rest = 4)] = "Rest"),
        (e[(e.Decorate = 8)] = "Decorate"),
        (e[(e.ESDecorateAndRunInitializers = 8)] =
          "ESDecorateAndRunInitializers"),
        (e[(e.Metadata = 16)] = "Metadata"),
        (e[(e.Param = 32)] = "Param"),
        (e[(e.Awaiter = 64)] = "Awaiter"),
        (e[(e.Generator = 128)] = "Generator"),
        (e[(e.Values = 256)] = "Values"),
        (e[(e.Read = 512)] = "Read"),
        (e[(e.SpreadArray = 1024)] = "SpreadArray"),
        (e[(e.Await = 2048)] = "Await"),
        (e[(e.AsyncGenerator = 4096)] = "AsyncGenerator"),
        (e[(e.AsyncDelegator = 8192)] = "AsyncDelegator"),
        (e[(e.AsyncValues = 16384)] = "AsyncValues"),
        (e[(e.ExportStar = 32768)] = "ExportStar"),
        (e[(e.ImportStar = 65536)] = "ImportStar"),
        (e[(e.ImportDefault = 131072)] = "ImportDefault"),
        (e[(e.MakeTemplateObject = 262144)] = "MakeTemplateObject"),
        (e[(e.ClassPrivateFieldGet = 524288)] = "ClassPrivateFieldGet"),
        (e[(e.ClassPrivateFieldSet = 1048576)] = "ClassPrivateFieldSet"),
        (e[(e.ClassPrivateFieldIn = 2097152)] = "ClassPrivateFieldIn"),
        (e[(e.SetFunctionName = 4194304)] = "SetFunctionName"),
        (e[(e.PropKey = 8388608)] = "PropKey"),
        (e[(e.AddDisposableResourceAndDisposeResources = 16777216)] =
          "AddDisposableResourceAndDisposeResources"),
        (e[(e.RewriteRelativeImportExtension = 33554432)] =
          "RewriteRelativeImportExtension"),
        (e[(e.FirstEmitHelper = 1)] = "FirstEmitHelper"),
        (e[(e.LastEmitHelper = 16777216)] = "LastEmitHelper"),
        (e[(e.ForOfIncludes = 256)] = "ForOfIncludes"),
        (e[(e.ForAwaitOfIncludes = 16384)] = "ForAwaitOfIncludes"),
        (e[(e.AsyncGeneratorIncludes = 6144)] = "AsyncGeneratorIncludes"),
        (e[(e.AsyncDelegatorIncludes = 26624)] = "AsyncDelegatorIncludes"),
        (e[(e.SpreadIncludes = 1536)] = "SpreadIncludes"),
        e
      ))(see || {}),
      lee = ((e) => (
        (e[(e.SourceFile = 0)] = "SourceFile"),
        (e[(e.Expression = 1)] = "Expression"),
        (e[(e.IdentifierName = 2)] = "IdentifierName"),
        (e[(e.MappedTypeParameter = 3)] = "MappedTypeParameter"),
        (e[(e.Unspecified = 4)] = "Unspecified"),
        (e[(e.EmbeddedStatement = 5)] = "EmbeddedStatement"),
        (e[(e.JsxAttributeValue = 6)] = "JsxAttributeValue"),
        (e[(e.ImportTypeNodeAttributes = 7)] = "ImportTypeNodeAttributes"),
        e
      ))(lee || {}),
      cee = ((e) => (
        (e[(e.Parentheses = 1)] = "Parentheses"),
        (e[(e.TypeAssertions = 2)] = "TypeAssertions"),
        (e[(e.NonNullAssertions = 4)] = "NonNullAssertions"),
        (e[(e.PartiallyEmittedExpressions = 8)] =
          "PartiallyEmittedExpressions"),
        (e[(e.ExpressionsWithTypeArguments = 16)] =
          "ExpressionsWithTypeArguments"),
        (e[(e.Satisfies = 32)] = "Satisfies"),
        (e[(e.Assertions = 38)] = "Assertions"),
        (e[(e.All = 63)] = "All"),
        (e[(e.ExcludeJSDocTypeAssertion = -2147483648)] =
          "ExcludeJSDocTypeAssertion"),
        e
      ))(cee || {}),
      dee = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.InParameters = 1)] = "InParameters"),
        (e[(e.VariablesHoistedInParameters = 2)] =
          "VariablesHoistedInParameters"),
        e
      ))(dee || {}),
      uee = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.SingleLine = 0)] = "SingleLine"),
        (e[(e.MultiLine = 1)] = "MultiLine"),
        (e[(e.PreserveLines = 2)] = "PreserveLines"),
        (e[(e.LinesMask = 3)] = "LinesMask"),
        (e[(e.NotDelimited = 0)] = "NotDelimited"),
        (e[(e.BarDelimited = 4)] = "BarDelimited"),
        (e[(e.AmpersandDelimited = 8)] = "AmpersandDelimited"),
        (e[(e.CommaDelimited = 16)] = "CommaDelimited"),
        (e[(e.AsteriskDelimited = 32)] = "AsteriskDelimited"),
        (e[(e.DelimitersMask = 60)] = "DelimitersMask"),
        (e[(e.AllowTrailingComma = 64)] = "AllowTrailingComma"),
        (e[(e.Indented = 128)] = "Indented"),
        (e[(e.SpaceBetweenBraces = 256)] = "SpaceBetweenBraces"),
        (e[(e.SpaceBetweenSiblings = 512)] = "SpaceBetweenSiblings"),
        (e[(e.Braces = 1024)] = "Braces"),
        (e[(e.Parenthesis = 2048)] = "Parenthesis"),
        (e[(e.AngleBrackets = 4096)] = "AngleBrackets"),
        (e[(e.SquareBrackets = 8192)] = "SquareBrackets"),
        (e[(e.BracketsMask = 15360)] = "BracketsMask"),
        (e[(e.OptionalIfUndefined = 16384)] = "OptionalIfUndefined"),
        (e[(e.OptionalIfEmpty = 32768)] = "OptionalIfEmpty"),
        (e[(e.Optional = 49152)] = "Optional"),
        (e[(e.PreferNewLine = 65536)] = "PreferNewLine"),
        (e[(e.NoTrailingNewLine = 131072)] = "NoTrailingNewLine"),
        (e[(e.NoInterveningComments = 262144)] = "NoInterveningComments"),
        (e[(e.NoSpaceIfEmpty = 524288)] = "NoSpaceIfEmpty"),
        (e[(e.SingleElement = 1048576)] = "SingleElement"),
        (e[(e.SpaceAfterList = 2097152)] = "SpaceAfterList"),
        (e[(e.Modifiers = 2359808)] = "Modifiers"),
        (e[(e.HeritageClauses = 512)] = "HeritageClauses"),
        (e[(e.SingleLineTypeLiteralMembers = 768)] =
          "SingleLineTypeLiteralMembers"),
        (e[(e.MultiLineTypeLiteralMembers = 32897)] =
          "MultiLineTypeLiteralMembers"),
        (e[(e.SingleLineTupleTypeElements = 528)] =
          "SingleLineTupleTypeElements"),
        (e[(e.MultiLineTupleTypeElements = 657)] =
          "MultiLineTupleTypeElements"),
        (e[(e.UnionTypeConstituents = 516)] = "UnionTypeConstituents"),
        (e[(e.IntersectionTypeConstituents = 520)] =
          "IntersectionTypeConstituents"),
        (e[(e.ObjectBindingPatternElements = 525136)] =
          "ObjectBindingPatternElements"),
        (e[(e.ArrayBindingPatternElements = 524880)] =
          "ArrayBindingPatternElements"),
        (e[(e.ObjectLiteralExpressionProperties = 526226)] =
          "ObjectLiteralExpressionProperties"),
        (e[(e.ImportAttributes = 526226)] = "ImportAttributes"),
        (e[(e.ImportClauseEntries = 526226)] = "ImportClauseEntries"),
        (e[(e.ArrayLiteralExpressionElements = 8914)] =
          "ArrayLiteralExpressionElements"),
        (e[(e.CommaListElements = 528)] = "CommaListElements"),
        (e[(e.CallExpressionArguments = 2576)] = "CallExpressionArguments"),
        (e[(e.NewExpressionArguments = 18960)] = "NewExpressionArguments"),
        (e[(e.TemplateExpressionSpans = 262144)] = "TemplateExpressionSpans"),
        (e[(e.SingleLineBlockStatements = 768)] = "SingleLineBlockStatements"),
        (e[(e.MultiLineBlockStatements = 129)] = "MultiLineBlockStatements"),
        (e[(e.VariableDeclarationList = 528)] = "VariableDeclarationList"),
        (e[(e.SingleLineFunctionBodyStatements = 768)] =
          "SingleLineFunctionBodyStatements"),
        (e[(e.MultiLineFunctionBodyStatements = 1)] =
          "MultiLineFunctionBodyStatements"),
        (e[(e.ClassHeritageClauses = 0)] = "ClassHeritageClauses"),
        (e[(e.ClassMembers = 129)] = "ClassMembers"),
        (e[(e.InterfaceMembers = 129)] = "InterfaceMembers"),
        (e[(e.EnumMembers = 145)] = "EnumMembers"),
        (e[(e.CaseBlockClauses = 129)] = "CaseBlockClauses"),
        (e[(e.NamedImportsOrExportsElements = 525136)] =
          "NamedImportsOrExportsElements"),
        (e[(e.JsxElementOrFragmentChildren = 262144)] =
          "JsxElementOrFragmentChildren"),
        (e[(e.JsxElementAttributes = 262656)] = "JsxElementAttributes"),
        (e[(e.CaseOrDefaultClauseStatements = 163969)] =
          "CaseOrDefaultClauseStatements"),
        (e[(e.HeritageClauseTypes = 528)] = "HeritageClauseTypes"),
        (e[(e.SourceFileStatements = 131073)] = "SourceFileStatements"),
        (e[(e.Decorators = 2146305)] = "Decorators"),
        (e[(e.TypeArguments = 53776)] = "TypeArguments"),
        (e[(e.TypeParameters = 53776)] = "TypeParameters"),
        (e[(e.Parameters = 2576)] = "Parameters"),
        (e[(e.IndexSignatureParameters = 8848)] = "IndexSignatureParameters"),
        (e[(e.JSDocComment = 33)] = "JSDocComment"),
        e
      ))(uee || {}),
      pee = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.TripleSlashXML = 1)] = "TripleSlashXML"),
        (e[(e.SingleLine = 2)] = "SingleLine"),
        (e[(e.MultiLine = 4)] = "MultiLine"),
        (e[(e.All = 7)] = "All"),
        (e[(e.Default = 7)] = "Default"),
        e
      ))(pee || {}),
      X8 = {
        reference: {
          args: [
            { name: "types", optional: !0, captureSpan: !0 },
            { name: "lib", optional: !0, captureSpan: !0 },
            { name: "path", optional: !0, captureSpan: !0 },
            { name: "no-default-lib", optional: !0 },
            { name: "resolution-mode", optional: !0 },
            { name: "preserve", optional: !0 },
          ],
          kind: 1,
        },
        "amd-dependency": {
          args: [{ name: "path" }, { name: "name", optional: !0 }],
          kind: 1,
        },
        "amd-module": { args: [{ name: "name" }], kind: 1 },
        "ts-check": { kind: 2 },
        "ts-nocheck": { kind: 2 },
        jsx: { args: [{ name: "factory" }], kind: 4 },
        jsxfrag: { args: [{ name: "factory" }], kind: 4 },
        jsximportsource: { args: [{ name: "factory" }], kind: 4 },
        jsxruntime: { args: [{ name: "factory" }], kind: 4 },
      },
      fee = ((e) => (
        (e[(e.ParseAll = 0)] = "ParseAll"),
        (e[(e.ParseNone = 1)] = "ParseNone"),
        (e[(e.ParseForTypeErrors = 2)] = "ParseForTypeErrors"),
        (e[(e.ParseForTypeInfo = 3)] = "ParseForTypeInfo"),
        e
      ))(fee || {});
    function S2(e) {
      let t = 5381;
      for (let r = 0; r < e.length; r++) t = (t << 5) + t + e.charCodeAt(r);
      return t.toString();
    }
    function ATe() {
      Error.stackTraceLimit < 100 && (Error.stackTraceLimit = 100);
    }
    var mee = ((e) => (
        (e[(e.Created = 0)] = "Created"),
        (e[(e.Changed = 1)] = "Changed"),
        (e[(e.Deleted = 2)] = "Deleted"),
        e
      ))(mee || {}),
      b9 = ((e) => (
        (e[(e.High = 2e3)] = "High"),
        (e[(e.Medium = 500)] = "Medium"),
        (e[(e.Low = 250)] = "Low"),
        e
      ))(b9 || {}),
      Dp = new Date(0);
    function tI(e, t) {
      return e.getModifiedTime(t) || Dp;
    }
    function hee(e) {
      return { 250: e.Low, 500: e.Medium, 2e3: e.High };
    }
    var T9 = { Low: 32, Medium: 64, High: 256 },
      S9 = hee(T9),
      Y8 = hee(T9);
    function c9e(e) {
      if (!e.getEnvironmentVariable) return;
      const t = o("TSC_WATCH_POLLINGINTERVAL", b9);
      ((S9 = s("TSC_WATCH_POLLINGCHUNKSIZE", T9) || S9),
        (Y8 = s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS", T9) || Y8));
      function r(l, u) {
        return e.getEnvironmentVariable(`${l}_${u.toUpperCase()}`);
      }
      function i(l) {
        let u;
        return (d("Low"), d("Medium"), d("High"), u);
        function d(_) {
          const h = r(l, _);
          h && ((u || (u = {}))[_] = Number(h));
        }
      }
      function o(l, u) {
        const d = i(l);
        if (d) return (_("Low"), _("Medium"), _("High"), !0);
        return !1;
        function _(h) {
          u[h] = d[h] || u[h];
        }
      }
      function s(l, u) {
        const d = i(l);
        return (t || d) && hee(d ? { ...u, ...d } : u);
      }
    }
    function ITe(e, t, r, i, o) {
      let s = r;
      for (let u = t.length; i && u; l(), u--) {
        const d = t[r];
        if (d) {
          if (d.isClosed) {
            t[r] = void 0;
            continue;
          }
        } else continue;
        i--;
        const _ = f9e(d, tI(e, d.fileName));
        if (d.isClosed) {
          t[r] = void 0;
          continue;
        }
        (o?.(d, r, _), t[r] && (s < r && ((t[s] = d), (t[r] = void 0)), s++));
      }
      return r;
      function l() {
        (r++, r === t.length && (s < r && (t.length = s), (r = 0), (s = 0)));
      }
    }
    function d9e(e) {
      const t = [],
        r = [],
        i = u(250),
        o = u(500),
        s = u(2e3);
      return l;
      function l(P, k, W) {
        const O = {
          fileName: P,
          callback: k,
          unchangedPolls: 0,
          mtime: tI(e, P),
        };
        return (
          t.push(O),
          E(O, W),
          {
            close: () => {
              ((O.isClosed = !0), ZA(t, O));
            },
          }
        );
      }
      function u(P) {
        const k = [];
        return (
          (k.pollingInterval = P),
          (k.pollIndex = 0),
          (k.pollScheduled = !1),
          k
        );
      }
      function d(P, k) {
        ((k.pollIndex = h(
          k,
          k.pollingInterval,
          k.pollIndex,
          S9[k.pollingInterval],
        )),
          k.length
            ? N(k.pollingInterval)
            : (C.assert(k.pollIndex === 0), (k.pollScheduled = !1)));
      }
      function _(P, k) {
        (h(r, 250, 0, r.length),
          d(P, k),
          !k.pollScheduled && r.length && N(250));
      }
      function h(P, k, W, O) {
        return ITe(e, P, W, O, G);
        function G(j, J, Z) {
          Z
            ? ((j.unchangedPolls = 0), P !== r && ((P[J] = void 0), A(j)))
            : j.unchangedPolls !== Y8[k]
              ? j.unchangedPolls++
              : P === r
                ? ((j.unchangedPolls = 1), (P[J] = void 0), E(j, 250))
                : k !== 2e3 &&
                  (j.unchangedPolls++,
                  (P[J] = void 0),
                  E(j, k === 250 ? 500 : 2e3));
        }
      }
      function g(P) {
        switch (P) {
          case 250:
            return i;
          case 500:
            return o;
          case 2e3:
            return s;
        }
      }
      function E(P, k) {
        (g(k).push(P), R(k));
      }
      function A(P) {
        (r.push(P), R(250));
      }
      function R(P) {
        g(P).pollScheduled || N(P);
      }
      function N(P) {
        g(P).pollScheduled = e.setTimeout(
          P === 250 ? _ : d,
          P,
          P === 250
            ? "pollLowPollingIntervalQueue"
            : "pollPollingIntervalQueue",
          g(P),
        );
      }
    }
    function u9e(e, t, r, i) {
      const o = cm(),
        s = i ? new Map() : void 0,
        l = new Map(),
        u = Fd(t);
      return d;
      function d(h, g, E, A) {
        const R = u(h);
        o.add(R, g).length === 1 && s && s.set(R, r(h) || Dp);
        const N = ci(R) || ".",
          P = l.get(N) || _(ci(h) || ".", N, A);
        return (
          P.referenceCount++,
          {
            close: () => {
              (P.referenceCount === 1
                ? (P.close(), l.delete(N))
                : P.referenceCount--,
                o.remove(R, g));
            },
          }
        );
      }
      function _(h, g, E) {
        const A = e(
          h,
          1,
          (R, N) => {
            if (!Bo(N)) return;
            const P = To(N, h),
              k = u(P),
              W = P && o.get(k);
            if (W) {
              let O,
                G = 1;
              if (s) {
                const j = s.get(k);
                if (
                  R === "change" &&
                  ((O = r(P) || Dp), O.getTime() === j.getTime())
                )
                  return;
                (O || (O = r(P) || Dp),
                  s.set(k, O),
                  j === Dp ? (G = 0) : O === Dp && (G = 2));
              }
              for (const j of W) j(P, G, O);
            }
          },
          !1,
          500,
          E,
        );
        return ((A.referenceCount = 0), l.set(g, A), A);
      }
    }
    function p9e(e) {
      const t = [];
      let r = 0,
        i;
      return o;
      function o(u, d) {
        const _ = { fileName: u, callback: d, mtime: tI(e, u) };
        return (
          t.push(_),
          l(),
          {
            close: () => {
              ((_.isClosed = !0), ZA(t, _));
            },
          }
        );
      }
      function s() {
        ((i = void 0), (r = ITe(e, t, r, S9[250])), l());
      }
      function l() {
        !t.length || i || (i = e.setTimeout(s, 2e3, "pollQueue"));
      }
    }
    function xTe(e, t, r, i, o) {
      const l = Fd(t)(r),
        u = e.get(l);
      return (
        u
          ? u.callbacks.push(i)
          : e.set(l, {
              watcher: o((d, _, h) => {
                var g;
                return (g = e.get(l)) == null
                  ? void 0
                  : g.callbacks.slice().forEach((E) => E(d, _, h));
              }),
              callbacks: [i],
            }),
        {
          close: () => {
            const d = e.get(l);
            d &&
              (!mN(d.callbacks, i) ||
                d.callbacks.length ||
                (e.delete(l), Kf(d)));
          },
        }
      );
    }
    function f9e(e, t) {
      const r = e.mtime.getTime(),
        i = t.getTime();
      return r !== i
        ? ((e.mtime = t), e.callback(e.fileName, E9(r, i), t), !0)
        : !1;
    }
    function E9(e, t) {
      return e === 0 ? 0 : t === 0 ? 2 : 1;
    }
    var $8 = ["/node_modules/.", "/.git", "/.#"],
      RTe = gs;
    function Q8(e) {
      return RTe(e);
    }
    function _ee(e) {
      RTe = e;
    }
    function m9e({
      watchDirectory: e,
      useCaseSensitiveFileNames: t,
      getCurrentDirectory: r,
      getAccessibleSortedChildDirectories: i,
      fileSystemEntryExists: o,
      realpath: s,
      setTimeout: l,
      clearTimeout: u,
    }) {
      const d = new Map(),
        _ = cm(),
        h = new Map();
      let g;
      const E = xR(!t),
        A = Fd(t);
      return (q, ye, ie, K) => (ie ? R(q, K, ye) : e(q, ye, ie, K));
      function R(q, ye, ie, K) {
        const pe = A(q);
        let de = d.get(pe);
        (de
          ? de.refCount++
          : ((de = {
              watcher: e(
                q,
                (ve) => {
                  var xe;
                  J(ve, ye) ||
                    (ye?.synchronousWatchDirectory
                      ? (((xe = d.get(pe)) != null && xe.targetWatcher) ||
                          N(q, pe, ve),
                        j(q, pe, ye))
                      : P(q, pe, ve, ye));
                },
                !1,
                ye,
              ),
              refCount: 1,
              childWatches: ae,
              targetWatcher: void 0,
              links: void 0,
            }),
            d.set(pe, de),
            j(q, pe, ye)),
          K && (de.links ?? (de.links = new Set())).add(K));
        const fe = ie && { dirName: q, callback: ie };
        return (
          fe && _.add(pe, fe),
          {
            dirName: q,
            close: () => {
              var ve;
              const xe = C.checkDefined(d.get(pe));
              (fe && _.remove(pe, fe),
                K && ((ve = xe.links) == null || ve.delete(K)),
                xe.refCount--,
                !xe.refCount &&
                  (d.delete(pe),
                  (xe.links = void 0),
                  Kf(xe),
                  G(xe),
                  xe.childWatches.forEach(Bm)));
            },
          }
        );
      }
      function N(q, ye, ie, K) {
        var pe, de;
        let fe, ve;
        (Bo(ie) ? (fe = ie) : (ve = ie),
          _.forEach((xe, X) => {
            if (
              !(ve && ve.get(X) === !0) &&
              (X === ye || (po(ye, X) && ye[X.length] === Js))
            )
              if (ve)
                if (K) {
                  const Ce = ve.get(X);
                  Ce ? Ce.push(...K) : ve.set(X, K.slice());
                } else ve.set(X, !0);
              else xe.forEach(({ callback: Ce }) => Ce(fe));
          }),
          (de = (pe = d.get(ye)) == null ? void 0 : pe.links) == null ||
            de.forEach((xe) => {
              const X = (Ce) => Qr(xe, cf(q, Ce, A));
              ve ? N(xe, A(xe), ve, K?.map(X)) : N(xe, A(xe), X(fe));
            }));
      }
      function P(q, ye, ie, K) {
        const pe = d.get(ye);
        if (pe && o(q, 1)) {
          k(q, ye, ie, K);
          return;
        }
        (N(q, ye, ie), G(pe), O(pe));
      }
      function k(q, ye, ie, K) {
        const pe = h.get(ye);
        (pe
          ? pe.fileNames.push(ie)
          : h.set(ye, { dirName: q, options: K, fileNames: [ie] }),
          g && (u(g), (g = void 0)),
          (g = l(W, 1e3, "timerToUpdateChildWatches")));
      }
      function W() {
        var q;
        ((g = void 0), Q8(`sysLog:: onTimerToUpdateChildWatches:: ${h.size}`));
        const ye = Ls(),
          ie = new Map();
        for (; !g && h.size; ) {
          const pe = h.entries().next();
          C.assert(!pe.done);
          const {
            value: [de, { dirName: fe, options: ve, fileNames: xe }],
          } = pe;
          h.delete(de);
          const X = j(fe, de, ve);
          ((q = d.get(de)) != null && q.targetWatcher) ||
            N(fe, de, ie, X ? void 0 : xe);
        }
        (Q8(`sysLog:: invokingWatchers:: Elapsed:: ${Ls() - ye}ms:: ${h.size}`),
          _.forEach((pe, de) => {
            const fe = ie.get(de);
            fe &&
              pe.forEach(({ callback: ve, dirName: xe }) => {
                Mo(fe) ? fe.forEach(ve) : ve(xe);
              });
          }));
        const K = Ls() - ye;
        Q8(
          `sysLog:: Elapsed:: ${K}ms:: onTimerToUpdateChildWatches:: ${h.size} ${g}`,
        );
      }
      function O(q) {
        if (!q) return;
        const ye = q.childWatches;
        q.childWatches = ae;
        for (const ie of ye) (ie.close(), O(d.get(A(ie.dirName))));
      }
      function G(q) {
        q?.targetWatcher &&
          (q.targetWatcher.close(), (q.targetWatcher = void 0));
      }
      function j(q, ye, ie) {
        const K = d.get(ye);
        if (!K) return !1;
        const pe = ya(s(q));
        let de, fe;
        return (
          E(pe, q) === 0
            ? (de = H8(
                o(q, 1)
                  ? Ui(i(q), (X) => {
                      const Ce = To(X, q);
                      return !J(Ce, ie) && E(Ce, ya(s(Ce))) === 0 ? Ce : void 0;
                    })
                  : ae,
                K.childWatches,
                (X, Ce) => E(X, Ce.dirName),
                ve,
                Bm,
                xe,
              ))
            : K.targetWatcher && E(pe, K.targetWatcher.dirName) === 0
              ? ((de = !1), C.assert(K.childWatches === ae))
              : (G(K),
                (K.targetWatcher = R(pe, ie, void 0, q)),
                K.childWatches.forEach(Bm),
                (de = !0)),
          (K.childWatches = fe || ae),
          de
        );
        function ve(X) {
          const Ce = R(X, ie);
          xe(Ce);
        }
        function xe(X) {
          (fe || (fe = [])).push(X);
        }
      }
      function J(q, ye) {
        return yt($8, (ie) => Z(q, ie)) || DTe(q, ye, t, r);
      }
      function Z(q, ye) {
        return q.includes(ye) ? !0 : t ? !1 : A(q).includes(ye);
      }
    }
    var gee = ((e) => (
      (e[(e.File = 0)] = "File"),
      (e[(e.Directory = 1)] = "Directory"),
      e
    ))(gee || {});
    function h9e(e) {
      return (t, r, i) => e(r === 1 ? "change" : "rename", "", i);
    }
    function _9e(e, t, r) {
      return (i, o, s) => {
        i === "rename"
          ? (s || (s = r(e) || Dp), t(e, s !== Dp ? 0 : 2, s))
          : t(e, 1, s);
      };
    }
    function DTe(e, t, r, i) {
      return (
        (t?.excludeDirectories || t?.excludeFiles) &&
        ($4(e, t?.excludeFiles, r, i()) || $4(e, t?.excludeDirectories, r, i()))
      );
    }
    function CTe(e, t, r, i, o) {
      return (s, l) => {
        if (s === "rename") {
          const u = l ? ya(Qr(e, l)) : e;
          (!l || !DTe(u, r, i, o)) && t(u);
        }
      };
    }
    function NTe({
      pollingWatchFileWorker: e,
      getModifiedTime: t,
      setTimeout: r,
      clearTimeout: i,
      fsWatchWorker: o,
      fileSystemEntryExists: s,
      useCaseSensitiveFileNames: l,
      getCurrentDirectory: u,
      fsSupportsRecursiveFsWatch: d,
      getAccessibleSortedChildDirectories: _,
      realpath: h,
      tscWatchFile: g,
      useNonPollingWatchers: E,
      tscWatchDirectory: A,
      inodeWatching: R,
      fsWatchWithTimestamp: N,
      sysLog: P,
    }) {
      const k = new Map(),
        W = new Map(),
        O = new Map();
      let G,
        j,
        J,
        Z,
        q = !1;
      return { watchFile: ye, watchDirectory: fe };
      function ye(re, be, Ne, Be) {
        Be = pe(Be, E);
        const lt = C.checkDefined(Be.watchFile);
        switch (lt) {
          case 0:
            return X(re, be, 250, void 0);
          case 1:
            return X(re, be, Ne, void 0);
          case 2:
            return ie()(re, be, Ne, void 0);
          case 3:
            return K()(re, be, void 0, void 0);
          case 4:
            return Ce(re, 0, _9e(re, be, t), !1, Ne, nO(Be));
          case 5:
            return (J || (J = u9e(Ce, l, t, N)), J(re, be, Ne, nO(Be)));
          default:
            C.assertNever(lt);
        }
      }
      function ie() {
        return G || (G = d9e({ getModifiedTime: t, setTimeout: r }));
      }
      function K() {
        return j || (j = p9e({ getModifiedTime: t, setTimeout: r }));
      }
      function pe(re, be) {
        if (re && re.watchFile !== void 0) return re;
        switch (g) {
          case "PriorityPollingInterval":
            return { watchFile: 1 };
          case "DynamicPriorityPolling":
            return { watchFile: 2 };
          case "UseFsEvents":
            return de(4, 1, re);
          case "UseFsEventsWithFallbackDynamicPolling":
            return de(4, 2, re);
          case "UseFsEventsOnParentDirectory":
            be = !0;
          default:
            return be ? de(5, 1, re) : { watchFile: 4 };
        }
      }
      function de(re, be, Ne) {
        const Be = Ne?.fallbackPolling;
        return { watchFile: re, fallbackPolling: Be === void 0 ? be : Be };
      }
      function fe(re, be, Ne, Be) {
        return d
          ? Ce(re, 1, CTe(re, be, Be, l, u), Ne, 500, nO(Be))
          : (Z ||
              (Z = m9e({
                useCaseSensitiveFileNames: l,
                getCurrentDirectory: u,
                fileSystemEntryExists: s,
                getAccessibleSortedChildDirectories: _,
                watchDirectory: ve,
                realpath: h,
                setTimeout: r,
                clearTimeout: i,
              })),
            Z(re, be, Ne, Be));
      }
      function ve(re, be, Ne, Be) {
        C.assert(!Ne);
        const lt = xe(Be),
          ce = C.checkDefined(lt.watchDirectory);
        switch (ce) {
          case 1:
            return X(re, () => be(re), 500, void 0);
          case 2:
            return ie()(re, () => be(re), 500, void 0);
          case 3:
            return K()(re, () => be(re), void 0, void 0);
          case 0:
            return Ce(re, 1, CTe(re, be, Be, l, u), Ne, 500, nO(lt));
          default:
            C.assertNever(ce);
        }
      }
      function xe(re) {
        if (re && re.watchDirectory !== void 0) return re;
        switch (A) {
          case "RecursiveDirectoryUsingFsWatchFile":
            return { watchDirectory: 1 };
          case "RecursiveDirectoryUsingDynamicPriorityPolling":
            return { watchDirectory: 2 };
          default:
            const be = re?.fallbackPolling;
            return {
              watchDirectory: 0,
              fallbackPolling: be !== void 0 ? be : void 0,
            };
        }
      }
      function X(re, be, Ne, Be) {
        return xTe(k, l, re, be, (lt) => e(re, lt, Ne, Be));
      }
      function Ce(re, be, Ne, Be, lt, ce) {
        return xTe(Be ? O : W, l, re, Ne, (Re) => Je(re, be, Re, Be, lt, ce));
      }
      function Je(re, be, Ne, Be, lt, ce) {
        let Re, _e;
        R &&
          ((Re = re.substring(re.lastIndexOf(Js))), (_e = Re.slice(Js.length)));
        let je = s(re, be) ? We() : cn();
        return {
          close: () => {
            je && (je.close(), (je = void 0));
          },
        };
        function Ge(gn) {
          je &&
            (P(
              `sysLog:: ${re}:: Changing watcher to ${gn === We ? "Present" : "Missing"}FileSystemEntryWatcher`,
            ),
            je.close(),
            (je = gn()));
        }
        function We() {
          if (q) return (P(`sysLog:: ${re}:: Defaulting to watchFile`), Wt());
          try {
            const gn = (be === 1 || !N ? o : Se)(re, Be, R ? at : Ne);
            return (
              gn.on("error", () => {
                (Ne("rename", ""), Ge(cn));
              }),
              gn
            );
          } catch (gn) {
            return (
              q || (q = gn.code === "ENOSPC"),
              P(`sysLog:: ${re}:: Changing to watchFile`),
              Wt()
            );
          }
        }
        function at(gn, Kn) {
          let _t;
          if (
            (Kn &&
              el(Kn, "~") &&
              ((_t = Kn), (Kn = Kn.slice(0, Kn.length - 1))),
            gn === "rename" && (!Kn || Kn === _e || el(Kn, Re)))
          ) {
            const en = t(re) || Dp;
            (_t && Ne(gn, _t, en),
              Ne(gn, Kn, en),
              R ? Ge(en === Dp ? cn : We) : en === Dp && Ge(cn));
          } else (_t && Ne(gn, _t), Ne(gn, Kn));
        }
        function Wt() {
          return ye(re, h9e(Ne), lt, ce);
        }
        function cn() {
          return ye(
            re,
            (gn, Kn, _t) => {
              Kn === 0 &&
                (_t || (_t = t(re) || Dp),
                _t !== Dp && (Ne("rename", "", _t), Ge(We)));
            },
            lt,
            ce,
          );
        }
      }
      function Se(re, be, Ne) {
        let Be = t(re) || Dp;
        return o(re, be, (lt, ce, Re) => {
          (lt === "change" &&
            (Re || (Re = t(re) || Dp), Re.getTime() === Be.getTime())) ||
            ((Be = Re || t(re) || Dp), Ne(lt, ce, Be));
        });
      }
    }
    function MTe(e) {
      const t = e.writeFile;
      e.writeFile = (r, i, o) =>
        aV(
          r,
          i,
          !!o,
          (s, l, u) => t.call(e, s, l, u),
          (s) => e.createDirectory(s),
          (s) => e.directoryExists(s),
        );
    }
    var jc = (() => {
      let e;
      return (e9(), e);
    })();
    function PTe(e) {
      jc = e;
    }
    (jc &&
      jc.getEnvironmentVariable &&
      (c9e(jc),
      C.setAssertionLevel(
        /^development$/i.test(jc.getEnvironmentVariable("NODE_ENV")) ? 1 : 0,
      )),
      jc && jc.debugMode && (C.isDebugging = !0));
    var Js = "/",
      Z8 = "\\",
      LTe = "://",
      g9e = /\\/g;
    function A9(e) {
      return e === 47 || e === 92;
    }
    function yee(e) {
      return eF(e) < 0;
    }
    function Cp(e) {
      return eF(e) > 0;
    }
    function I9(e) {
      const t = eF(e);
      return t > 0 && t === e.length;
    }
    function SN(e) {
      return eF(e) !== 0;
    }
    function Zp(e) {
      return /^\.\.?(?:$|[\\/])/.test(e);
    }
    function x9(e) {
      return !SN(e) && !Zp(e);
    }
    function NR(e) {
      return Ic(e).includes(".");
    }
    function El(e, t) {
      return e.length > t.length && el(e, t);
    }
    function $l(e, t) {
      for (const r of t) if (El(e, r)) return !0;
      return !1;
    }
    function ob(e) {
      return e.length > 0 && A9(e.charCodeAt(e.length - 1));
    }
    function kTe(e) {
      return (e >= 97 && e <= 122) || (e >= 65 && e <= 90);
    }
    function y9e(e, t) {
      const r = e.charCodeAt(t);
      if (r === 58) return t + 1;
      if (r === 37 && e.charCodeAt(t + 1) === 51) {
        const i = e.charCodeAt(t + 2);
        if (i === 97 || i === 65) return t + 3;
      }
      return -1;
    }
    function eF(e) {
      if (!e) return 0;
      const t = e.charCodeAt(0);
      if (t === 47 || t === 92) {
        if (e.charCodeAt(1) !== t) return 1;
        const i = e.indexOf(t === 47 ? Js : Z8, 2);
        return i < 0 ? e.length : i + 1;
      }
      if (kTe(t) && e.charCodeAt(1) === 58) {
        const i = e.charCodeAt(2);
        if (i === 47 || i === 92) return 3;
        if (e.length === 2) return 2;
      }
      const r = e.indexOf(LTe);
      if (r !== -1) {
        const i = r + LTe.length,
          o = e.indexOf(Js, i);
        if (o !== -1) {
          const s = e.slice(0, r),
            l = e.slice(i, o);
          if (
            s === "file" &&
            (l === "" || l === "localhost") &&
            kTe(e.charCodeAt(o + 1))
          ) {
            const u = y9e(e, o + 2);
            if (u !== -1) {
              if (e.charCodeAt(u) === 47) return ~(u + 1);
              if (u === e.length) return ~u;
            }
          }
          return ~(o + 1);
        }
        return ~e.length;
      }
      return 0;
    }
    function zh(e) {
      const t = eF(e);
      return t < 0 ? ~t : t;
    }
    function ci(e) {
      e = Bd(e);
      const t = zh(e);
      return t === e.length
        ? e
        : ((e = Yy(e)), e.slice(0, Math.max(t, e.lastIndexOf(Js))));
    }
    function Ic(e, t, r) {
      if (((e = Bd(e)), zh(e) === e.length)) return "";
      e = Yy(e);
      const o = e.slice(Math.max(zh(e), e.lastIndexOf(Js) + 1)),
        s = t !== void 0 && r !== void 0 ? nI(o, t, r) : void 0;
      return s ? o.slice(0, o.length - s.length) : o;
    }
    function wTe(e, t, r) {
      if (
        (po(t, ".") || (t = "." + t),
        e.length >= t.length && e.charCodeAt(e.length - t.length) === 46)
      ) {
        const i = e.slice(e.length - t.length);
        if (r(i, t)) return i;
      }
    }
    function v9e(e, t, r) {
      if (typeof t == "string") return wTe(e, t, r) || "";
      for (const i of t) {
        const o = wTe(e, i, r);
        if (o) return o;
      }
      return "";
    }
    function nI(e, t, r) {
      if (t) return v9e(Yy(e), t, r ? rb : pS);
      const i = Ic(e),
        o = i.lastIndexOf(".");
      return o >= 0 ? i.substring(o) : "";
    }
    function b9e(e, t) {
      const r = e.substring(0, t),
        i = e.substring(t).split(Js);
      return (i.length && !Zs(i) && i.pop(), [r, ...i]);
    }
    function zd(e, t = "") {
      return ((e = Qr(t, e)), b9e(e, zh(e)));
    }
    function MT(e, t) {
      return e.length === 0 ? "" : (e[0] && Uc(e[0])) + e.slice(1, t).join(Js);
    }
    function Bd(e) {
      return e.includes("\\") ? e.replace(g9e, Js) : e;
    }
    function rI(e) {
      if (!yt(e)) return [];
      const t = [e[0]];
      for (let r = 1; r < e.length; r++) {
        const i = e[r];
        if (i && i !== ".") {
          if (i === "..") {
            if (t.length > 1) {
              if (t[t.length - 1] !== "..") {
                t.pop();
                continue;
              }
            } else if (t[0]) continue;
          }
          t.push(i);
        }
      }
      return t;
    }
    function Qr(e, ...t) {
      e && (e = Bd(e));
      for (let r of t)
        r && ((r = Bd(r)), !e || zh(r) !== 0 ? (e = r) : (e = Uc(e) + r));
      return e;
    }
    function ab(e, ...t) {
      return ya(yt(t) ? Qr(e, ...t) : Bd(e));
    }
    function tF(e, t) {
      return rI(zd(e, t));
    }
    function To(e, t) {
      let r = zh(e);
      r === 0 && t ? ((e = Qr(t, e)), (r = zh(e))) : (e = Bd(e));
      const i = OTe(e);
      if (i !== void 0) return i.length > r ? Yy(i) : i;
      const o = e.length,
        s = e.substring(0, r);
      let l,
        u = r,
        d = u,
        _ = u,
        h = r !== 0;
      for (; u < o; ) {
        d = u;
        let g = e.charCodeAt(u);
        for (; g === 47 && u + 1 < o; ) (u++, (g = e.charCodeAt(u)));
        u > d && (l ?? (l = e.substring(0, d - 1)), (d = u));
        let E = e.indexOf(Js, u + 1);
        E === -1 && (E = o);
        const A = E - d;
        if (A === 1 && e.charCodeAt(u) === 46) l ?? (l = e.substring(0, _));
        else if (
          A === 2 &&
          e.charCodeAt(u) === 46 &&
          e.charCodeAt(u + 1) === 46
        )
          if (!h)
            l !== void 0 ? (l += l.length === r ? ".." : "/..") : (_ = u + 2);
          else if (l === void 0)
            _ - 2 >= 0
              ? (l = e.substring(0, Math.max(r, e.lastIndexOf(Js, _ - 2))))
              : (l = e.substring(0, _));
          else {
            const R = l.lastIndexOf(Js);
            (R !== -1 ? (l = l.substring(0, Math.max(r, R))) : (l = s),
              l.length === r && (h = r !== 0));
          }
        else
          l !== void 0
            ? (l.length !== r && (l += Js), (h = !0), (l += e.substring(d, E)))
            : ((h = !0), (_ = E));
        u = E + 1;
      }
      return l ?? (o > r ? Yy(e) : e);
    }
    function ya(e) {
      e = Bd(e);
      let t = OTe(e);
      return t !== void 0 ? t : ((t = To(e, "")), t && ob(e) ? Uc(t) : t);
    }
    function OTe(e) {
      if (!D9.test(e)) return e;
      let t = e.replace(/\/\.\//g, "/");
      if (
        (t.startsWith("./") && (t = t.slice(2)),
        t !== e && ((e = t), !D9.test(e)))
      )
        return e;
    }
    function T9e(e) {
      return e.length === 0 ? "" : e.slice(1).join(Js);
    }
    function R9(e, t) {
      return T9e(tF(e, t));
    }
    function ks(e, t, r) {
      const i = Cp(e) ? ya(e) : To(e, t);
      return r(i);
    }
    function Yy(e) {
      return ob(e) ? e.substr(0, e.length - 1) : e;
    }
    function Uc(e) {
      return ob(e) ? e : e + Js;
    }
    function UE(e) {
      return !SN(e) && !Zp(e) ? "./" + e : e;
    }
    function E2(e, t, r, i) {
      const o = r !== void 0 && i !== void 0 ? nI(e, r, i) : nI(e);
      return o
        ? e.slice(0, e.length - o.length) + (po(t, ".") ? t : "." + t)
        : e;
    }
    function nF(e, t) {
      const r = W4(e);
      return r
        ? e.slice(0, e.length - r.length) + (po(t, ".") ? t : "." + t)
        : E2(e, t);
    }
    var D9 = /\/\/|(?:^|\/)\.\.?(?:$|\/)/;
    function vee(e, t, r) {
      if (e === t) return 0;
      if (e === void 0) return -1;
      if (t === void 0) return 1;
      const i = e.substring(0, zh(e)),
        o = t.substring(0, zh(t)),
        s = y2(i, o);
      if (s !== 0) return s;
      const l = e.substring(i.length),
        u = t.substring(o.length);
      if (!D9.test(l) && !D9.test(u)) return r(l, u);
      const d = rI(zd(e)),
        _ = rI(zd(t)),
        h = Math.min(d.length, _.length);
      for (let g = 1; g < h; g++) {
        const E = r(d[g], _[g]);
        if (E !== 0) return E;
      }
      return js(d.length, _.length);
    }
    function WTe(e, t) {
      return vee(e, t, Wd);
    }
    function FTe(e, t) {
      return vee(e, t, y2);
    }
    function Zg(e, t, r, i) {
      return (
        typeof r == "string"
          ? ((e = Qr(r, e)), (t = Qr(r, t)))
          : typeof r == "boolean" && (i = r),
        vee(e, t, xR(i))
      );
    }
    function um(e, t, r, i) {
      if (
        (typeof r == "string"
          ? ((e = Qr(r, e)), (t = Qr(r, t)))
          : typeof r == "boolean" && (i = r),
        e === void 0 || t === void 0)
      )
        return !1;
      if (e === t) return !0;
      const o = rI(zd(e)),
        s = rI(zd(t));
      if (s.length < o.length) return !1;
      const l = i ? rb : pS;
      for (let u = 0; u < o.length; u++)
        if (!(u === 0 ? rb : l)(o[u], s[u])) return !1;
      return !0;
    }
    function C9(e, t, r) {
      const i = r(e),
        o = r(t);
      return po(i, o + "/") || po(i, o + "\\");
    }
    function zTe(e, t, r, i) {
      const o = rI(zd(e)),
        s = rI(zd(t));
      let l;
      for (l = 0; l < o.length && l < s.length; l++) {
        const _ = i(o[l]),
          h = i(s[l]);
        if (!(l === 0 ? rb : r)(_, h)) break;
      }
      if (l === 0) return s;
      const u = s.slice(l),
        d = [];
      for (; l < o.length; l++) d.push("..");
      return ["", ...d, ...u];
    }
    function cf(e, t, r) {
      C.assert(
        zh(e) > 0 == zh(t) > 0,
        "Paths must either both be absolute or both be relative",
      );
      const s = zTe(
        e,
        t,
        (typeof r == "boolean" ? r : !1) ? rb : pS,
        typeof r == "function" ? r : Vs,
      );
      return MT(s);
    }
    function EN(e, t, r) {
      return Cp(e) ? PR(t, e, t, r, !1) : e;
    }
    function MR(e, t, r) {
      return UE(cf(ci(e), t, r));
    }
    function PR(e, t, r, i, o) {
      const s = zTe(ab(r, e), ab(r, t), pS, i),
        l = s[0];
      if (o && Cp(l)) {
        const u = l.charAt(0) === Js ? "file://" : "file:///";
        s[0] = u + l;
      }
      return MT(s);
    }
    function AN(e, t) {
      for (;;) {
        const r = t(e);
        if (r !== void 0) return r;
        const i = ci(e);
        if (i === e) return;
        e = i;
      }
    }
    function rF(e) {
      return el(e, "/node_modules");
    }
    function S(e, t, r, i, o, s, l) {
      return {
        code: e,
        category: t,
        key: r,
        message: i,
        reportsUnnecessary: o,
        elidedInCompatabilityPyramid: s,
        reportsDeprecated: l,
      };
    }
    var f = {
      Unterminated_string_literal: S(
        1002,
        1,
        "Unterminated_string_literal_1002",
        "Unterminated string literal.",
      ),
      Identifier_expected: S(
        1003,
        1,
        "Identifier_expected_1003",
        "Identifier expected.",
      ),
      _0_expected: S(1005, 1, "_0_expected_1005", "'{0}' expected."),
      A_file_cannot_have_a_reference_to_itself: S(
        1006,
        1,
        "A_file_cannot_have_a_reference_to_itself_1006",
        "A file cannot have a reference to itself.",
      ),
      The_parser_expected_to_find_a_1_to_match_the_0_token_here: S(
        1007,
        1,
        "The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007",
        "The parser expected to find a '{1}' to match the '{0}' token here.",
      ),
      Trailing_comma_not_allowed: S(
        1009,
        1,
        "Trailing_comma_not_allowed_1009",
        "Trailing comma not allowed.",
      ),
      Asterisk_Slash_expected: S(
        1010,
        1,
        "Asterisk_Slash_expected_1010",
        "'*/' expected.",
      ),
      An_element_access_expression_should_take_an_argument: S(
        1011,
        1,
        "An_element_access_expression_should_take_an_argument_1011",
        "An element access expression should take an argument.",
      ),
      Unexpected_token: S(
        1012,
        1,
        "Unexpected_token_1012",
        "Unexpected token.",
      ),
      A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma: S(
        1013,
        1,
        "A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013",
        "A rest parameter or binding pattern may not have a trailing comma.",
      ),
      A_rest_parameter_must_be_last_in_a_parameter_list: S(
        1014,
        1,
        "A_rest_parameter_must_be_last_in_a_parameter_list_1014",
        "A rest parameter must be last in a parameter list.",
      ),
      Parameter_cannot_have_question_mark_and_initializer: S(
        1015,
        1,
        "Parameter_cannot_have_question_mark_and_initializer_1015",
        "Parameter cannot have question mark and initializer.",
      ),
      A_required_parameter_cannot_follow_an_optional_parameter: S(
        1016,
        1,
        "A_required_parameter_cannot_follow_an_optional_parameter_1016",
        "A required parameter cannot follow an optional parameter.",
      ),
      An_index_signature_cannot_have_a_rest_parameter: S(
        1017,
        1,
        "An_index_signature_cannot_have_a_rest_parameter_1017",
        "An index signature cannot have a rest parameter.",
      ),
      An_index_signature_parameter_cannot_have_an_accessibility_modifier: S(
        1018,
        1,
        "An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018",
        "An index signature parameter cannot have an accessibility modifier.",
      ),
      An_index_signature_parameter_cannot_have_a_question_mark: S(
        1019,
        1,
        "An_index_signature_parameter_cannot_have_a_question_mark_1019",
        "An index signature parameter cannot have a question mark.",
      ),
      An_index_signature_parameter_cannot_have_an_initializer: S(
        1020,
        1,
        "An_index_signature_parameter_cannot_have_an_initializer_1020",
        "An index signature parameter cannot have an initializer.",
      ),
      An_index_signature_must_have_a_type_annotation: S(
        1021,
        1,
        "An_index_signature_must_have_a_type_annotation_1021",
        "An index signature must have a type annotation.",
      ),
      An_index_signature_parameter_must_have_a_type_annotation: S(
        1022,
        1,
        "An_index_signature_parameter_must_have_a_type_annotation_1022",
        "An index signature parameter must have a type annotation.",
      ),
      readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:
        S(
          1024,
          1,
          "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024",
          "'readonly' modifier can only appear on a property declaration or index signature.",
        ),
      An_index_signature_cannot_have_a_trailing_comma: S(
        1025,
        1,
        "An_index_signature_cannot_have_a_trailing_comma_1025",
        "An index signature cannot have a trailing comma.",
      ),
      Accessibility_modifier_already_seen: S(
        1028,
        1,
        "Accessibility_modifier_already_seen_1028",
        "Accessibility modifier already seen.",
      ),
      _0_modifier_must_precede_1_modifier: S(
        1029,
        1,
        "_0_modifier_must_precede_1_modifier_1029",
        "'{0}' modifier must precede '{1}' modifier.",
      ),
      _0_modifier_already_seen: S(
        1030,
        1,
        "_0_modifier_already_seen_1030",
        "'{0}' modifier already seen.",
      ),
      _0_modifier_cannot_appear_on_class_elements_of_this_kind: S(
        1031,
        1,
        "_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031",
        "'{0}' modifier cannot appear on class elements of this kind.",
      ),
      super_must_be_followed_by_an_argument_list_or_member_access: S(
        1034,
        1,
        "super_must_be_followed_by_an_argument_list_or_member_access_1034",
        "'super' must be followed by an argument list or member access.",
      ),
      Only_ambient_modules_can_use_quoted_names: S(
        1035,
        1,
        "Only_ambient_modules_can_use_quoted_names_1035",
        "Only ambient modules can use quoted names.",
      ),
      Statements_are_not_allowed_in_ambient_contexts: S(
        1036,
        1,
        "Statements_are_not_allowed_in_ambient_contexts_1036",
        "Statements are not allowed in ambient contexts.",
      ),
      A_declare_modifier_cannot_be_used_in_an_already_ambient_context: S(
        1038,
        1,
        "A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038",
        "A 'declare' modifier cannot be used in an already ambient context.",
      ),
      Initializers_are_not_allowed_in_ambient_contexts: S(
        1039,
        1,
        "Initializers_are_not_allowed_in_ambient_contexts_1039",
        "Initializers are not allowed in ambient contexts.",
      ),
      _0_modifier_cannot_be_used_in_an_ambient_context: S(
        1040,
        1,
        "_0_modifier_cannot_be_used_in_an_ambient_context_1040",
        "'{0}' modifier cannot be used in an ambient context.",
      ),
      _0_modifier_cannot_be_used_here: S(
        1042,
        1,
        "_0_modifier_cannot_be_used_here_1042",
        "'{0}' modifier cannot be used here.",
      ),
      _0_modifier_cannot_appear_on_a_module_or_namespace_element: S(
        1044,
        1,
        "_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044",
        "'{0}' modifier cannot appear on a module or namespace element.",
      ),
      Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:
        S(
          1046,
          1,
          "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046",
          "Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.",
        ),
      A_rest_parameter_cannot_be_optional: S(
        1047,
        1,
        "A_rest_parameter_cannot_be_optional_1047",
        "A rest parameter cannot be optional.",
      ),
      A_rest_parameter_cannot_have_an_initializer: S(
        1048,
        1,
        "A_rest_parameter_cannot_have_an_initializer_1048",
        "A rest parameter cannot have an initializer.",
      ),
      A_set_accessor_must_have_exactly_one_parameter: S(
        1049,
        1,
        "A_set_accessor_must_have_exactly_one_parameter_1049",
        "A 'set' accessor must have exactly one parameter.",
      ),
      A_set_accessor_cannot_have_an_optional_parameter: S(
        1051,
        1,
        "A_set_accessor_cannot_have_an_optional_parameter_1051",
        "A 'set' accessor cannot have an optional parameter.",
      ),
      A_set_accessor_parameter_cannot_have_an_initializer: S(
        1052,
        1,
        "A_set_accessor_parameter_cannot_have_an_initializer_1052",
        "A 'set' accessor parameter cannot have an initializer.",
      ),
      A_set_accessor_cannot_have_rest_parameter: S(
        1053,
        1,
        "A_set_accessor_cannot_have_rest_parameter_1053",
        "A 'set' accessor cannot have rest parameter.",
      ),
      A_get_accessor_cannot_have_parameters: S(
        1054,
        1,
        "A_get_accessor_cannot_have_parameters_1054",
        "A 'get' accessor cannot have parameters.",
      ),
      Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:
        S(
          1055,
          1,
          "Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055",
          "Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.",
        ),
      Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: S(
        1056,
        1,
        "Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056",
        "Accessors are only available when targeting ECMAScript 5 and higher.",
      ),
      The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:
        S(
          1058,
          1,
          "The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058",
          "The return type of an async function must either be a valid promise or must not contain a callable 'then' member.",
        ),
      A_promise_must_have_a_then_method: S(
        1059,
        1,
        "A_promise_must_have_a_then_method_1059",
        "A promise must have a 'then' method.",
      ),
      The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback: S(
        1060,
        1,
        "The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060",
        "The first parameter of the 'then' method of a promise must be a callback.",
      ),
      Enum_member_must_have_initializer: S(
        1061,
        1,
        "Enum_member_must_have_initializer_1061",
        "Enum member must have initializer.",
      ),
      Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:
        S(
          1062,
          1,
          "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062",
          "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method.",
        ),
      An_export_assignment_cannot_be_used_in_a_namespace: S(
        1063,
        1,
        "An_export_assignment_cannot_be_used_in_a_namespace_1063",
        "An export assignment cannot be used in a namespace.",
      ),
      The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:
        S(
          1064,
          1,
          "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064",
          "The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?",
        ),
      The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:
        S(
          1065,
          1,
          "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065",
          "The return type of an async function or method must be the global Promise<T> type.",
        ),
      In_ambient_enum_declarations_member_initializer_must_be_constant_expression:
        S(
          1066,
          1,
          "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066",
          "In ambient enum declarations member initializer must be constant expression.",
        ),
      Unexpected_token_A_constructor_method_accessor_or_property_was_expected:
        S(
          1068,
          1,
          "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068",
          "Unexpected token. A constructor, method, accessor, or property was expected.",
        ),
      Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:
        S(
          1069,
          1,
          "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069",
          "Unexpected token. A type parameter name was expected without curly braces.",
        ),
      _0_modifier_cannot_appear_on_a_type_member: S(
        1070,
        1,
        "_0_modifier_cannot_appear_on_a_type_member_1070",
        "'{0}' modifier cannot appear on a type member.",
      ),
      _0_modifier_cannot_appear_on_an_index_signature: S(
        1071,
        1,
        "_0_modifier_cannot_appear_on_an_index_signature_1071",
        "'{0}' modifier cannot appear on an index signature.",
      ),
      A_0_modifier_cannot_be_used_with_an_import_declaration: S(
        1079,
        1,
        "A_0_modifier_cannot_be_used_with_an_import_declaration_1079",
        "A '{0}' modifier cannot be used with an import declaration.",
      ),
      Invalid_reference_directive_syntax: S(
        1084,
        1,
        "Invalid_reference_directive_syntax_1084",
        "Invalid 'reference' directive syntax.",
      ),
      _0_modifier_cannot_appear_on_a_constructor_declaration: S(
        1089,
        1,
        "_0_modifier_cannot_appear_on_a_constructor_declaration_1089",
        "'{0}' modifier cannot appear on a constructor declaration.",
      ),
      _0_modifier_cannot_appear_on_a_parameter: S(
        1090,
        1,
        "_0_modifier_cannot_appear_on_a_parameter_1090",
        "'{0}' modifier cannot appear on a parameter.",
      ),
      Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: S(
        1091,
        1,
        "Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091",
        "Only a single variable declaration is allowed in a 'for...in' statement.",
      ),
      Type_parameters_cannot_appear_on_a_constructor_declaration: S(
        1092,
        1,
        "Type_parameters_cannot_appear_on_a_constructor_declaration_1092",
        "Type parameters cannot appear on a constructor declaration.",
      ),
      Type_annotation_cannot_appear_on_a_constructor_declaration: S(
        1093,
        1,
        "Type_annotation_cannot_appear_on_a_constructor_declaration_1093",
        "Type annotation cannot appear on a constructor declaration.",
      ),
      An_accessor_cannot_have_type_parameters: S(
        1094,
        1,
        "An_accessor_cannot_have_type_parameters_1094",
        "An accessor cannot have type parameters.",
      ),
      A_set_accessor_cannot_have_a_return_type_annotation: S(
        1095,
        1,
        "A_set_accessor_cannot_have_a_return_type_annotation_1095",
        "A 'set' accessor cannot have a return type annotation.",
      ),
      An_index_signature_must_have_exactly_one_parameter: S(
        1096,
        1,
        "An_index_signature_must_have_exactly_one_parameter_1096",
        "An index signature must have exactly one parameter.",
      ),
      _0_list_cannot_be_empty: S(
        1097,
        1,
        "_0_list_cannot_be_empty_1097",
        "'{0}' list cannot be empty.",
      ),
      Type_parameter_list_cannot_be_empty: S(
        1098,
        1,
        "Type_parameter_list_cannot_be_empty_1098",
        "Type parameter list cannot be empty.",
      ),
      Type_argument_list_cannot_be_empty: S(
        1099,
        1,
        "Type_argument_list_cannot_be_empty_1099",
        "Type argument list cannot be empty.",
      ),
      Invalid_use_of_0_in_strict_mode: S(
        1100,
        1,
        "Invalid_use_of_0_in_strict_mode_1100",
        "Invalid use of '{0}' in strict mode.",
      ),
      with_statements_are_not_allowed_in_strict_mode: S(
        1101,
        1,
        "with_statements_are_not_allowed_in_strict_mode_1101",
        "'with' statements are not allowed in strict mode.",
      ),
      delete_cannot_be_called_on_an_identifier_in_strict_mode: S(
        1102,
        1,
        "delete_cannot_be_called_on_an_identifier_in_strict_mode_1102",
        "'delete' cannot be called on an identifier in strict mode.",
      ),
      for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:
        S(
          1103,
          1,
          "for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103",
          "'for await' loops are only allowed within async functions and at the top levels of modules.",
        ),
      A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:
        S(
          1104,
          1,
          "A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104",
          "A 'continue' statement can only be used within an enclosing iteration statement.",
        ),
      A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:
        S(
          1105,
          1,
          "A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105",
          "A 'break' statement can only be used within an enclosing iteration or switch statement.",
        ),
      The_left_hand_side_of_a_for_of_statement_may_not_be_async: S(
        1106,
        1,
        "The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106",
        "The left-hand side of a 'for...of' statement may not be 'async'.",
      ),
      Jump_target_cannot_cross_function_boundary: S(
        1107,
        1,
        "Jump_target_cannot_cross_function_boundary_1107",
        "Jump target cannot cross function boundary.",
      ),
      A_return_statement_can_only_be_used_within_a_function_body: S(
        1108,
        1,
        "A_return_statement_can_only_be_used_within_a_function_body_1108",
        "A 'return' statement can only be used within a function body.",
      ),
      Expression_expected: S(
        1109,
        1,
        "Expression_expected_1109",
        "Expression expected.",
      ),
      Type_expected: S(1110, 1, "Type_expected_1110", "Type expected."),
      Private_field_0_must_be_declared_in_an_enclosing_class: S(
        1111,
        1,
        "Private_field_0_must_be_declared_in_an_enclosing_class_1111",
        "Private field '{0}' must be declared in an enclosing class.",
      ),
      A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: S(
        1113,
        1,
        "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113",
        "A 'default' clause cannot appear more than once in a 'switch' statement.",
      ),
      Duplicate_label_0: S(
        1114,
        1,
        "Duplicate_label_0_1114",
        "Duplicate label '{0}'.",
      ),
      A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:
        S(
          1115,
          1,
          "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115",
          "A 'continue' statement can only jump to a label of an enclosing iteration statement.",
        ),
      A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement: S(
        1116,
        1,
        "A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116",
        "A 'break' statement can only jump to a label of an enclosing statement.",
      ),
      An_object_literal_cannot_have_multiple_properties_with_the_same_name: S(
        1117,
        1,
        "An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117",
        "An object literal cannot have multiple properties with the same name.",
      ),
      An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:
        S(
          1118,
          1,
          "An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118",
          "An object literal cannot have multiple get/set accessors with the same name.",
        ),
      An_object_literal_cannot_have_property_and_accessor_with_the_same_name: S(
        1119,
        1,
        "An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119",
        "An object literal cannot have property and accessor with the same name.",
      ),
      An_export_assignment_cannot_have_modifiers: S(
        1120,
        1,
        "An_export_assignment_cannot_have_modifiers_1120",
        "An export assignment cannot have modifiers.",
      ),
      Octal_literals_are_not_allowed_Use_the_syntax_0: S(
        1121,
        1,
        "Octal_literals_are_not_allowed_Use_the_syntax_0_1121",
        "Octal literals are not allowed. Use the syntax '{0}'.",
      ),
      Variable_declaration_list_cannot_be_empty: S(
        1123,
        1,
        "Variable_declaration_list_cannot_be_empty_1123",
        "Variable declaration list cannot be empty.",
      ),
      Digit_expected: S(1124, 1, "Digit_expected_1124", "Digit expected."),
      Hexadecimal_digit_expected: S(
        1125,
        1,
        "Hexadecimal_digit_expected_1125",
        "Hexadecimal digit expected.",
      ),
      Unexpected_end_of_text: S(
        1126,
        1,
        "Unexpected_end_of_text_1126",
        "Unexpected end of text.",
      ),
      Invalid_character: S(
        1127,
        1,
        "Invalid_character_1127",
        "Invalid character.",
      ),
      Declaration_or_statement_expected: S(
        1128,
        1,
        "Declaration_or_statement_expected_1128",
        "Declaration or statement expected.",
      ),
      Statement_expected: S(
        1129,
        1,
        "Statement_expected_1129",
        "Statement expected.",
      ),
      case_or_default_expected: S(
        1130,
        1,
        "case_or_default_expected_1130",
        "'case' or 'default' expected.",
      ),
      Property_or_signature_expected: S(
        1131,
        1,
        "Property_or_signature_expected_1131",
        "Property or signature expected.",
      ),
      Enum_member_expected: S(
        1132,
        1,
        "Enum_member_expected_1132",
        "Enum member expected.",
      ),
      Variable_declaration_expected: S(
        1134,
        1,
        "Variable_declaration_expected_1134",
        "Variable declaration expected.",
      ),
      Argument_expression_expected: S(
        1135,
        1,
        "Argument_expression_expected_1135",
        "Argument expression expected.",
      ),
      Property_assignment_expected: S(
        1136,
        1,
        "Property_assignment_expected_1136",
        "Property assignment expected.",
      ),
      Expression_or_comma_expected: S(
        1137,
        1,
        "Expression_or_comma_expected_1137",
        "Expression or comma expected.",
      ),
      Parameter_declaration_expected: S(
        1138,
        1,
        "Parameter_declaration_expected_1138",
        "Parameter declaration expected.",
      ),
      Type_parameter_declaration_expected: S(
        1139,
        1,
        "Type_parameter_declaration_expected_1139",
        "Type parameter declaration expected.",
      ),
      Type_argument_expected: S(
        1140,
        1,
        "Type_argument_expected_1140",
        "Type argument expected.",
      ),
      String_literal_expected: S(
        1141,
        1,
        "String_literal_expected_1141",
        "String literal expected.",
      ),
      Line_break_not_permitted_here: S(
        1142,
        1,
        "Line_break_not_permitted_here_1142",
        "Line break not permitted here.",
      ),
      or_expected: S(1144, 1, "or_expected_1144", "'{' or ';' expected."),
      or_JSX_element_expected: S(
        1145,
        1,
        "or_JSX_element_expected_1145",
        "'{' or JSX element expected.",
      ),
      Declaration_expected: S(
        1146,
        1,
        "Declaration_expected_1146",
        "Declaration expected.",
      ),
      Import_declarations_in_a_namespace_cannot_reference_a_module: S(
        1147,
        1,
        "Import_declarations_in_a_namespace_cannot_reference_a_module_1147",
        "Import declarations in a namespace cannot reference a module.",
      ),
      Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: S(
        1148,
        1,
        "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148",
        "Cannot use imports, exports, or module augmentations when '--module' is 'none'.",
      ),
      File_name_0_differs_from_already_included_file_name_1_only_in_casing: S(
        1149,
        1,
        "File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149",
        "File name '{0}' differs from already included file name '{1}' only in casing.",
      ),
      _0_declarations_must_be_initialized: S(
        1155,
        1,
        "_0_declarations_must_be_initialized_1155",
        "'{0}' declarations must be initialized.",
      ),
      _0_declarations_can_only_be_declared_inside_a_block: S(
        1156,
        1,
        "_0_declarations_can_only_be_declared_inside_a_block_1156",
        "'{0}' declarations can only be declared inside a block.",
      ),
      Unterminated_template_literal: S(
        1160,
        1,
        "Unterminated_template_literal_1160",
        "Unterminated template literal.",
      ),
      Unterminated_regular_expression_literal: S(
        1161,
        1,
        "Unterminated_regular_expression_literal_1161",
        "Unterminated regular expression literal.",
      ),
      An_object_member_cannot_be_declared_optional: S(
        1162,
        1,
        "An_object_member_cannot_be_declared_optional_1162",
        "An object member cannot be declared optional.",
      ),
      A_yield_expression_is_only_allowed_in_a_generator_body: S(
        1163,
        1,
        "A_yield_expression_is_only_allowed_in_a_generator_body_1163",
        "A 'yield' expression is only allowed in a generator body.",
      ),
      Computed_property_names_are_not_allowed_in_enums: S(
        1164,
        1,
        "Computed_property_names_are_not_allowed_in_enums_1164",
        "Computed property names are not allowed in enums.",
      ),
      A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:
        S(
          1165,
          1,
          "A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165",
          "A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type.",
        ),
      A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:
        S(
          1166,
          1,
          "A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166",
          "A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type.",
        ),
      A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:
        S(
          1168,
          1,
          "A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168",
          "A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type.",
        ),
      A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:
        S(
          1169,
          1,
          "A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169",
          "A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.",
        ),
      A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:
        S(
          1170,
          1,
          "A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170",
          "A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.",
        ),
      A_comma_expression_is_not_allowed_in_a_computed_property_name: S(
        1171,
        1,
        "A_comma_expression_is_not_allowed_in_a_computed_property_name_1171",
        "A comma expression is not allowed in a computed property name.",
      ),
      extends_clause_already_seen: S(
        1172,
        1,
        "extends_clause_already_seen_1172",
        "'extends' clause already seen.",
      ),
      extends_clause_must_precede_implements_clause: S(
        1173,
        1,
        "extends_clause_must_precede_implements_clause_1173",
        "'extends' clause must precede 'implements' clause.",
      ),
      Classes_can_only_extend_a_single_class: S(
        1174,
        1,
        "Classes_can_only_extend_a_single_class_1174",
        "Classes can only extend a single class.",
      ),
      implements_clause_already_seen: S(
        1175,
        1,
        "implements_clause_already_seen_1175",
        "'implements' clause already seen.",
      ),
      Interface_declaration_cannot_have_implements_clause: S(
        1176,
        1,
        "Interface_declaration_cannot_have_implements_clause_1176",
        "Interface declaration cannot have 'implements' clause.",
      ),
      Binary_digit_expected: S(
        1177,
        1,
        "Binary_digit_expected_1177",
        "Binary digit expected.",
      ),
      Octal_digit_expected: S(
        1178,
        1,
        "Octal_digit_expected_1178",
        "Octal digit expected.",
      ),
      Unexpected_token_expected: S(
        1179,
        1,
        "Unexpected_token_expected_1179",
        "Unexpected token. '{' expected.",
      ),
      Property_destructuring_pattern_expected: S(
        1180,
        1,
        "Property_destructuring_pattern_expected_1180",
        "Property destructuring pattern expected.",
      ),
      Array_element_destructuring_pattern_expected: S(
        1181,
        1,
        "Array_element_destructuring_pattern_expected_1181",
        "Array element destructuring pattern expected.",
      ),
      A_destructuring_declaration_must_have_an_initializer: S(
        1182,
        1,
        "A_destructuring_declaration_must_have_an_initializer_1182",
        "A destructuring declaration must have an initializer.",
      ),
      An_implementation_cannot_be_declared_in_ambient_contexts: S(
        1183,
        1,
        "An_implementation_cannot_be_declared_in_ambient_contexts_1183",
        "An implementation cannot be declared in ambient contexts.",
      ),
      Modifiers_cannot_appear_here: S(
        1184,
        1,
        "Modifiers_cannot_appear_here_1184",
        "Modifiers cannot appear here.",
      ),
      Merge_conflict_marker_encountered: S(
        1185,
        1,
        "Merge_conflict_marker_encountered_1185",
        "Merge conflict marker encountered.",
      ),
      A_rest_element_cannot_have_an_initializer: S(
        1186,
        1,
        "A_rest_element_cannot_have_an_initializer_1186",
        "A rest element cannot have an initializer.",
      ),
      A_parameter_property_may_not_be_declared_using_a_binding_pattern: S(
        1187,
        1,
        "A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187",
        "A parameter property may not be declared using a binding pattern.",
      ),
      Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement: S(
        1188,
        1,
        "Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188",
        "Only a single variable declaration is allowed in a 'for...of' statement.",
      ),
      The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:
        S(
          1189,
          1,
          "The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189",
          "The variable declaration of a 'for...in' statement cannot have an initializer.",
        ),
      The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:
        S(
          1190,
          1,
          "The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190",
          "The variable declaration of a 'for...of' statement cannot have an initializer.",
        ),
      An_import_declaration_cannot_have_modifiers: S(
        1191,
        1,
        "An_import_declaration_cannot_have_modifiers_1191",
        "An import declaration cannot have modifiers.",
      ),
      Module_0_has_no_default_export: S(
        1192,
        1,
        "Module_0_has_no_default_export_1192",
        "Module '{0}' has no default export.",
      ),
      An_export_declaration_cannot_have_modifiers: S(
        1193,
        1,
        "An_export_declaration_cannot_have_modifiers_1193",
        "An export declaration cannot have modifiers.",
      ),
      Export_declarations_are_not_permitted_in_a_namespace: S(
        1194,
        1,
        "Export_declarations_are_not_permitted_in_a_namespace_1194",
        "Export declarations are not permitted in a namespace.",
      ),
      export_Asterisk_does_not_re_export_a_default: S(
        1195,
        1,
        "export_Asterisk_does_not_re_export_a_default_1195",
        "'export *' does not re-export a default.",
      ),
      Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:
        S(
          1196,
          1,
          "Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196",
          "Catch clause variable type annotation must be 'any' or 'unknown' if specified.",
        ),
      Catch_clause_variable_cannot_have_an_initializer: S(
        1197,
        1,
        "Catch_clause_variable_cannot_have_an_initializer_1197",
        "Catch clause variable cannot have an initializer.",
      ),
      An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:
        S(
          1198,
          1,
          "An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198",
          "An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive.",
        ),
      Unterminated_Unicode_escape_sequence: S(
        1199,
        1,
        "Unterminated_Unicode_escape_sequence_1199",
        "Unterminated Unicode escape sequence.",
      ),
      Line_terminator_not_permitted_before_arrow: S(
        1200,
        1,
        "Line_terminator_not_permitted_before_arrow_1200",
        "Line terminator not permitted before arrow.",
      ),
      Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:
        S(
          1202,
          1,
          "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",
          `Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`,
        ),
      Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:
        S(
          1203,
          1,
          "Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203",
          "Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.",
        ),
      Re_exporting_a_type_when_0_is_enabled_requires_using_export_type: S(
        1205,
        1,
        "Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205",
        "Re-exporting a type when '{0}' is enabled requires using 'export type'.",
      ),
      Decorators_are_not_valid_here: S(
        1206,
        1,
        "Decorators_are_not_valid_here_1206",
        "Decorators are not valid here.",
      ),
      Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:
        S(
          1207,
          1,
          "Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207",
          "Decorators cannot be applied to multiple get/set accessors of the same name.",
        ),
      Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0: S(
        1209,
        1,
        "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209",
        "Invalid optional chain from new expression. Did you mean to call '{0}()'?",
      ),
      Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:
        S(
          1210,
          1,
          "Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210",
          "Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode.",
        ),
      A_class_declaration_without_the_default_modifier_must_have_a_name: S(
        1211,
        1,
        "A_class_declaration_without_the_default_modifier_must_have_a_name_1211",
        "A class declaration without the 'default' modifier must have a name.",
      ),
      Identifier_expected_0_is_a_reserved_word_in_strict_mode: S(
        1212,
        1,
        "Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212",
        "Identifier expected. '{0}' is a reserved word in strict mode.",
      ),
      Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:
        S(
          1213,
          1,
          "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213",
          "Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode.",
        ),
      Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:
        S(
          1214,
          1,
          "Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214",
          "Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode.",
        ),
      Invalid_use_of_0_Modules_are_automatically_in_strict_mode: S(
        1215,
        1,
        "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215",
        "Invalid use of '{0}'. Modules are automatically in strict mode.",
      ),
      Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:
        S(
          1216,
          1,
          "Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216",
          "Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules.",
        ),
      Export_assignment_is_not_supported_when_module_flag_is_system: S(
        1218,
        1,
        "Export_assignment_is_not_supported_when_module_flag_is_system_1218",
        "Export assignment is not supported when '--module' flag is 'system'.",
      ),
      Generators_are_not_allowed_in_an_ambient_context: S(
        1221,
        1,
        "Generators_are_not_allowed_in_an_ambient_context_1221",
        "Generators are not allowed in an ambient context.",
      ),
      An_overload_signature_cannot_be_declared_as_a_generator: S(
        1222,
        1,
        "An_overload_signature_cannot_be_declared_as_a_generator_1222",
        "An overload signature cannot be declared as a generator.",
      ),
      _0_tag_already_specified: S(
        1223,
        1,
        "_0_tag_already_specified_1223",
        "'{0}' tag already specified.",
      ),
      Signature_0_must_be_a_type_predicate: S(
        1224,
        1,
        "Signature_0_must_be_a_type_predicate_1224",
        "Signature '{0}' must be a type predicate.",
      ),
      Cannot_find_parameter_0: S(
        1225,
        1,
        "Cannot_find_parameter_0_1225",
        "Cannot find parameter '{0}'.",
      ),
      Type_predicate_0_is_not_assignable_to_1: S(
        1226,
        1,
        "Type_predicate_0_is_not_assignable_to_1_1226",
        "Type predicate '{0}' is not assignable to '{1}'.",
      ),
      Parameter_0_is_not_in_the_same_position_as_parameter_1: S(
        1227,
        1,
        "Parameter_0_is_not_in_the_same_position_as_parameter_1_1227",
        "Parameter '{0}' is not in the same position as parameter '{1}'.",
      ),
      A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:
        S(
          1228,
          1,
          "A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228",
          "A type predicate is only allowed in return type position for functions and methods.",
        ),
      A_type_predicate_cannot_reference_a_rest_parameter: S(
        1229,
        1,
        "A_type_predicate_cannot_reference_a_rest_parameter_1229",
        "A type predicate cannot reference a rest parameter.",
      ),
      A_type_predicate_cannot_reference_element_0_in_a_binding_pattern: S(
        1230,
        1,
        "A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230",
        "A type predicate cannot reference element '{0}' in a binding pattern.",
      ),
      An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:
        S(
          1231,
          1,
          "An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231",
          "An export assignment must be at the top level of a file or module declaration.",
        ),
      An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:
        S(
          1232,
          1,
          "An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232",
          "An import declaration can only be used at the top level of a namespace or module.",
        ),
      An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:
        S(
          1233,
          1,
          "An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233",
          "An export declaration can only be used at the top level of a namespace or module.",
        ),
      An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:
        S(
          1234,
          1,
          "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234",
          "An ambient module declaration is only allowed at the top level in a file.",
        ),
      A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:
        S(
          1235,
          1,
          "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235",
          "A namespace declaration is only allowed at the top level of a namespace or module.",
        ),
      The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:
        S(
          1236,
          1,
          "The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236",
          "The return type of a property decorator function must be either 'void' or 'any'.",
        ),
      The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:
        S(
          1237,
          1,
          "The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237",
          "The return type of a parameter decorator function must be either 'void' or 'any'.",
        ),
      Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:
        S(
          1238,
          1,
          "Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238",
          "Unable to resolve signature of class decorator when called as an expression.",
        ),
      Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:
        S(
          1239,
          1,
          "Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239",
          "Unable to resolve signature of parameter decorator when called as an expression.",
        ),
      Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:
        S(
          1240,
          1,
          "Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240",
          "Unable to resolve signature of property decorator when called as an expression.",
        ),
      Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:
        S(
          1241,
          1,
          "Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241",
          "Unable to resolve signature of method decorator when called as an expression.",
        ),
      abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:
        S(
          1242,
          1,
          "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242",
          "'abstract' modifier can only appear on a class, method, or property declaration.",
        ),
      _0_modifier_cannot_be_used_with_1_modifier: S(
        1243,
        1,
        "_0_modifier_cannot_be_used_with_1_modifier_1243",
        "'{0}' modifier cannot be used with '{1}' modifier.",
      ),
      Abstract_methods_can_only_appear_within_an_abstract_class: S(
        1244,
        1,
        "Abstract_methods_can_only_appear_within_an_abstract_class_1244",
        "Abstract methods can only appear within an abstract class.",
      ),
      Method_0_cannot_have_an_implementation_because_it_is_marked_abstract: S(
        1245,
        1,
        "Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245",
        "Method '{0}' cannot have an implementation because it is marked abstract.",
      ),
      An_interface_property_cannot_have_an_initializer: S(
        1246,
        1,
        "An_interface_property_cannot_have_an_initializer_1246",
        "An interface property cannot have an initializer.",
      ),
      A_type_literal_property_cannot_have_an_initializer: S(
        1247,
        1,
        "A_type_literal_property_cannot_have_an_initializer_1247",
        "A type literal property cannot have an initializer.",
      ),
      A_class_member_cannot_have_the_0_keyword: S(
        1248,
        1,
        "A_class_member_cannot_have_the_0_keyword_1248",
        "A class member cannot have the '{0}' keyword.",
      ),
      A_decorator_can_only_decorate_a_method_implementation_not_an_overload: S(
        1249,
        1,
        "A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249",
        "A decorator can only decorate a method implementation, not an overload.",
      ),
      Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:
        S(
          1250,
          1,
          "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250",
          "Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'.",
        ),
      Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:
        S(
          1251,
          1,
          "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251",
          "Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode.",
        ),
      Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:
        S(
          1252,
          1,
          "Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252",
          "Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode.",
        ),
      Abstract_properties_can_only_appear_within_an_abstract_class: S(
        1253,
        1,
        "Abstract_properties_can_only_appear_within_an_abstract_class_1253",
        "Abstract properties can only appear within an abstract class.",
      ),
      A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:
        S(
          1254,
          1,
          "A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254",
          "A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",
        ),
      A_definite_assignment_assertion_is_not_permitted_in_this_context: S(
        1255,
        1,
        "A_definite_assignment_assertion_is_not_permitted_in_this_context_1255",
        "A definite assignment assertion '!' is not permitted in this context.",
      ),
      A_required_element_cannot_follow_an_optional_element: S(
        1257,
        1,
        "A_required_element_cannot_follow_an_optional_element_1257",
        "A required element cannot follow an optional element.",
      ),
      A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:
        S(
          1258,
          1,
          "A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258",
          "A default export must be at the top level of a file or module declaration.",
        ),
      Module_0_can_only_be_default_imported_using_the_1_flag: S(
        1259,
        1,
        "Module_0_can_only_be_default_imported_using_the_1_flag_1259",
        "Module '{0}' can only be default-imported using the '{1}' flag",
      ),
      Keywords_cannot_contain_escape_characters: S(
        1260,
        1,
        "Keywords_cannot_contain_escape_characters_1260",
        "Keywords cannot contain escape characters.",
      ),
      Already_included_file_name_0_differs_from_file_name_1_only_in_casing: S(
        1261,
        1,
        "Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261",
        "Already included file name '{0}' differs from file name '{1}' only in casing.",
      ),
      Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module: S(
        1262,
        1,
        "Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262",
        "Identifier expected. '{0}' is a reserved word at the top-level of a module.",
      ),
      Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:
        S(
          1263,
          1,
          "Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263",
          "Declarations with initializers cannot also have definite assignment assertions.",
        ),
      Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:
        S(
          1264,
          1,
          "Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264",
          "Declarations with definite assignment assertions must also have type annotations.",
        ),
      A_rest_element_cannot_follow_another_rest_element: S(
        1265,
        1,
        "A_rest_element_cannot_follow_another_rest_element_1265",
        "A rest element cannot follow another rest element.",
      ),
      An_optional_element_cannot_follow_a_rest_element: S(
        1266,
        1,
        "An_optional_element_cannot_follow_a_rest_element_1266",
        "An optional element cannot follow a rest element.",
      ),
      Property_0_cannot_have_an_initializer_because_it_is_marked_abstract: S(
        1267,
        1,
        "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267",
        "Property '{0}' cannot have an initializer because it is marked abstract.",
      ),
      An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:
        S(
          1268,
          1,
          "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268",
          "An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type.",
        ),
      Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:
        S(
          1269,
          1,
          "Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269",
          "Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled.",
        ),
      Decorator_function_return_type_0_is_not_assignable_to_type_1: S(
        1270,
        1,
        "Decorator_function_return_type_0_is_not_assignable_to_type_1_1270",
        "Decorator function return type '{0}' is not assignable to type '{1}'.",
      ),
      Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any: S(
        1271,
        1,
        "Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271",
        "Decorator function return type is '{0}' but is expected to be 'void' or 'any'.",
      ),
      A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:
        S(
          1272,
          1,
          "A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272",
          "A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled.",
        ),
      _0_modifier_cannot_appear_on_a_type_parameter: S(
        1273,
        1,
        "_0_modifier_cannot_appear_on_a_type_parameter_1273",
        "'{0}' modifier cannot appear on a type parameter",
      ),
      _0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:
        S(
          1274,
          1,
          "_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274",
          "'{0}' modifier can only appear on a type parameter of a class, interface or type alias",
        ),
      accessor_modifier_can_only_appear_on_a_property_declaration: S(
        1275,
        1,
        "accessor_modifier_can_only_appear_on_a_property_declaration_1275",
        "'accessor' modifier can only appear on a property declaration.",
      ),
      An_accessor_property_cannot_be_declared_optional: S(
        1276,
        1,
        "An_accessor_property_cannot_be_declared_optional_1276",
        "An 'accessor' property cannot be declared optional.",
      ),
      _0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:
        S(
          1277,
          1,
          "_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277",
          "'{0}' modifier can only appear on a type parameter of a function, method or class",
        ),
      The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:
        S(
          1278,
          1,
          "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278",
          "The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}.",
        ),
      The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:
        S(
          1279,
          1,
          "The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279",
          "The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}.",
        ),
      Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:
        S(
          1280,
          1,
          "Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280",
          "Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement.",
        ),
      Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:
        S(
          1281,
          1,
          "Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281",
          "Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead.",
        ),
      An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:
        S(
          1282,
          1,
          "An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282",
          "An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type.",
        ),
      An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:
        S(
          1283,
          1,
          "An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283",
          "An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration.",
        ),
      An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:
        S(
          1284,
          1,
          "An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284",
          "An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type.",
        ),
      An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:
        S(
          1285,
          1,
          "An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285",
          "An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration.",
        ),
      ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:
        S(
          1286,
          1,
          "ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286",
          "ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'.",
        ),
      A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:
        S(
          1287,
          1,
          "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287",
          "A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled.",
        ),
      An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:
        S(
          1288,
          1,
          "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288",
          "An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled.",
        ),
      _0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:
        S(
          1289,
          1,
          "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289",
          "'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported.",
        ),
      _0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:
        S(
          1290,
          1,
          "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290",
          "'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'.",
        ),
      _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:
        S(
          1291,
          1,
          "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291",
          "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported.",
        ),
      _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:
        S(
          1292,
          1,
          "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292",
          "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'.",
        ),
      ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:
        S(
          1293,
          1,
          "ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293",
          "ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.",
        ),
      This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled: S(
        1294,
        1,
        "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294",
        "This syntax is not allowed when 'erasableSyntaxOnly' is enabled.",
      ),
      ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:
        S(
          1295,
          1,
          "ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295",
          "ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript.",
        ),
      with_statements_are_not_allowed_in_an_async_function_block: S(
        1300,
        1,
        "with_statements_are_not_allowed_in_an_async_function_block_1300",
        "'with' statements are not allowed in an async function block.",
      ),
      await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:
        S(
          1308,
          1,
          "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308",
          "'await' expressions are only allowed within async functions and at the top levels of modules.",
        ),
      The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:
        S(
          1309,
          1,
          "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309",
          "The current file is a CommonJS module and cannot use 'await' at the top level.",
        ),
      Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:
        S(
          1312,
          1,
          "Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312",
          "Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern.",
        ),
      The_body_of_an_if_statement_cannot_be_the_empty_statement: S(
        1313,
        1,
        "The_body_of_an_if_statement_cannot_be_the_empty_statement_1313",
        "The body of an 'if' statement cannot be the empty statement.",
      ),
      Global_module_exports_may_only_appear_in_module_files: S(
        1314,
        1,
        "Global_module_exports_may_only_appear_in_module_files_1314",
        "Global module exports may only appear in module files.",
      ),
      Global_module_exports_may_only_appear_in_declaration_files: S(
        1315,
        1,
        "Global_module_exports_may_only_appear_in_declaration_files_1315",
        "Global module exports may only appear in declaration files.",
      ),
      Global_module_exports_may_only_appear_at_top_level: S(
        1316,
        1,
        "Global_module_exports_may_only_appear_at_top_level_1316",
        "Global module exports may only appear at top level.",
      ),
      A_parameter_property_cannot_be_declared_using_a_rest_parameter: S(
        1317,
        1,
        "A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317",
        "A parameter property cannot be declared using a rest parameter.",
      ),
      An_abstract_accessor_cannot_have_an_implementation: S(
        1318,
        1,
        "An_abstract_accessor_cannot_have_an_implementation_1318",
        "An abstract accessor cannot have an implementation.",
      ),
      A_default_export_can_only_be_used_in_an_ECMAScript_style_module: S(
        1319,
        1,
        "A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319",
        "A default export can only be used in an ECMAScript-style module.",
      ),
      Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:
        S(
          1320,
          1,
          "Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320",
          "Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member.",
        ),
      Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:
        S(
          1321,
          1,
          "Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321",
          "Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member.",
        ),
      Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:
        S(
          1322,
          1,
          "Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322",
          "Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member.",
        ),
      Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext:
        S(
          1323,
          1,
          "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323",
          "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', 'node18', 'node20', or 'nodenext'.",
        ),
      Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:
        S(
          1324,
          1,
          "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324",
          "Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'.",
        ),
      Argument_of_dynamic_import_cannot_be_spread_element: S(
        1325,
        1,
        "Argument_of_dynamic_import_cannot_be_spread_element_1325",
        "Argument of dynamic import cannot be spread element.",
      ),
      This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:
        S(
          1326,
          1,
          "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326",
          "This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments.",
        ),
      String_literal_with_double_quotes_expected: S(
        1327,
        1,
        "String_literal_with_double_quotes_expected_1327",
        "String literal with double quotes expected.",
      ),
      Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:
        S(
          1328,
          1,
          "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328",
          "Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal.",
        ),
      _0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:
        S(
          1329,
          1,
          "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329",
          "'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?",
        ),
      A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:
        S(
          1330,
          1,
          "A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330",
          "A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'.",
        ),
      A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:
        S(
          1331,
          1,
          "A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331",
          "A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'.",
        ),
      A_variable_whose_type_is_a_unique_symbol_type_must_be_const: S(
        1332,
        1,
        "A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332",
        "A variable whose type is a 'unique symbol' type must be 'const'.",
      ),
      unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:
        S(
          1333,
          1,
          "unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333",
          "'unique symbol' types may not be used on a variable declaration with a binding name.",
        ),
      unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:
        S(
          1334,
          1,
          "unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334",
          "'unique symbol' types are only allowed on variables in a variable statement.",
        ),
      unique_symbol_types_are_not_allowed_here: S(
        1335,
        1,
        "unique_symbol_types_are_not_allowed_here_1335",
        "'unique symbol' types are not allowed here.",
      ),
      An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:
        S(
          1337,
          1,
          "An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337",
          "An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead.",
        ),
      infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:
        S(
          1338,
          1,
          "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338",
          "'infer' declarations are only permitted in the 'extends' clause of a conditional type.",
        ),
      Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: S(
        1339,
        1,
        "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339",
        "Module '{0}' does not refer to a value, but is used as a value here.",
      ),
      Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:
        S(
          1340,
          1,
          "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340",
          "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?",
        ),
      Class_constructor_may_not_be_an_accessor: S(
        1341,
        1,
        "Class_constructor_may_not_be_an_accessor_1341",
        "Class constructor may not be an accessor.",
      ),
      The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext:
        S(
          1343,
          1,
          "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343",
          "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', or 'nodenext'.",
        ),
      A_label_is_not_allowed_here: S(
        1344,
        1,
        "A_label_is_not_allowed_here_1344",
        "'A label is not allowed here.",
      ),
      An_expression_of_type_void_cannot_be_tested_for_truthiness: S(
        1345,
        1,
        "An_expression_of_type_void_cannot_be_tested_for_truthiness_1345",
        "An expression of type 'void' cannot be tested for truthiness.",
      ),
      This_parameter_is_not_allowed_with_use_strict_directive: S(
        1346,
        1,
        "This_parameter_is_not_allowed_with_use_strict_directive_1346",
        "This parameter is not allowed with 'use strict' directive.",
      ),
      use_strict_directive_cannot_be_used_with_non_simple_parameter_list: S(
        1347,
        1,
        "use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347",
        "'use strict' directive cannot be used with non-simple parameter list.",
      ),
      Non_simple_parameter_declared_here: S(
        1348,
        1,
        "Non_simple_parameter_declared_here_1348",
        "Non-simple parameter declared here.",
      ),
      use_strict_directive_used_here: S(
        1349,
        1,
        "use_strict_directive_used_here_1349",
        "'use strict' directive used here.",
      ),
      Print_the_final_configuration_instead_of_building: S(
        1350,
        3,
        "Print_the_final_configuration_instead_of_building_1350",
        "Print the final configuration instead of building.",
      ),
      An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal: S(
        1351,
        1,
        "An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351",
        "An identifier or keyword cannot immediately follow a numeric literal.",
      ),
      A_bigint_literal_cannot_use_exponential_notation: S(
        1352,
        1,
        "A_bigint_literal_cannot_use_exponential_notation_1352",
        "A bigint literal cannot use exponential notation.",
      ),
      A_bigint_literal_must_be_an_integer: S(
        1353,
        1,
        "A_bigint_literal_must_be_an_integer_1353",
        "A bigint literal must be an integer.",
      ),
      readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:
        S(
          1354,
          1,
          "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354",
          "'readonly' type modifier is only permitted on array and tuple literal types.",
        ),
      A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:
        S(
          1355,
          1,
          "A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355",
          "A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals.",
        ),
      Did_you_mean_to_mark_this_function_as_async: S(
        1356,
        1,
        "Did_you_mean_to_mark_this_function_as_async_1356",
        "Did you mean to mark this function as 'async'?",
      ),
      An_enum_member_name_must_be_followed_by_a_or: S(
        1357,
        1,
        "An_enum_member_name_must_be_followed_by_a_or_1357",
        "An enum member name must be followed by a ',', '=', or '}'.",
      ),
      Tagged_template_expressions_are_not_permitted_in_an_optional_chain: S(
        1358,
        1,
        "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358",
        "Tagged template expressions are not permitted in an optional chain.",
      ),
      Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: S(
        1359,
        1,
        "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359",
        "Identifier expected. '{0}' is a reserved word that cannot be used here.",
      ),
      Type_0_does_not_satisfy_the_expected_type_1: S(
        1360,
        1,
        "Type_0_does_not_satisfy_the_expected_type_1_1360",
        "Type '{0}' does not satisfy the expected type '{1}'.",
      ),
      _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: S(
        1361,
        1,
        "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361",
        "'{0}' cannot be used as a value because it was imported using 'import type'.",
      ),
      _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: S(
        1362,
        1,
        "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362",
        "'{0}' cannot be used as a value because it was exported using 'export type'.",
      ),
      A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:
        S(
          1363,
          1,
          "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363",
          "A type-only import can specify a default import or named bindings, but not both.",
        ),
      Convert_to_type_only_export: S(
        1364,
        3,
        "Convert_to_type_only_export_1364",
        "Convert to type-only export",
      ),
      Convert_all_re_exported_types_to_type_only_exports: S(
        1365,
        3,
        "Convert_all_re_exported_types_to_type_only_exports_1365",
        "Convert all re-exported types to type-only exports",
      ),
      Split_into_two_separate_import_declarations: S(
        1366,
        3,
        "Split_into_two_separate_import_declarations_1366",
        "Split into two separate import declarations",
      ),
      Split_all_invalid_type_only_imports: S(
        1367,
        3,
        "Split_all_invalid_type_only_imports_1367",
        "Split all invalid type-only imports",
      ),
      Class_constructor_may_not_be_a_generator: S(
        1368,
        1,
        "Class_constructor_may_not_be_a_generator_1368",
        "Class constructor may not be a generator.",
      ),
      Did_you_mean_0: S(1369, 3, "Did_you_mean_0_1369", "Did you mean '{0}'?"),
      await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:
        S(
          1375,
          1,
          "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375",
          "'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.",
        ),
      _0_was_imported_here: S(
        1376,
        3,
        "_0_was_imported_here_1376",
        "'{0}' was imported here.",
      ),
      _0_was_exported_here: S(
        1377,
        3,
        "_0_was_exported_here_1377",
        "'{0}' was exported here.",
      ),
      Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:
        S(
          1378,
          1,
          "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378",
          "Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.",
        ),
      An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:
        S(
          1379,
          1,
          "An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379",
          "An import alias cannot reference a declaration that was exported using 'export type'.",
        ),
      An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:
        S(
          1380,
          1,
          "An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380",
          "An import alias cannot reference a declaration that was imported using 'import type'.",
        ),
      Unexpected_token_Did_you_mean_or_rbrace: S(
        1381,
        1,
        "Unexpected_token_Did_you_mean_or_rbrace_1381",
        "Unexpected token. Did you mean `{'}'}` or `&rbrace;`?",
      ),
      Unexpected_token_Did_you_mean_or_gt: S(
        1382,
        1,
        "Unexpected_token_Did_you_mean_or_gt_1382",
        "Unexpected token. Did you mean `{'>'}` or `&gt;`?",
      ),
      Function_type_notation_must_be_parenthesized_when_used_in_a_union_type: S(
        1385,
        1,
        "Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385",
        "Function type notation must be parenthesized when used in a union type.",
      ),
      Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:
        S(
          1386,
          1,
          "Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386",
          "Constructor type notation must be parenthesized when used in a union type.",
        ),
      Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:
        S(
          1387,
          1,
          "Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387",
          "Function type notation must be parenthesized when used in an intersection type.",
        ),
      Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:
        S(
          1388,
          1,
          "Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388",
          "Constructor type notation must be parenthesized when used in an intersection type.",
        ),
      _0_is_not_allowed_as_a_variable_declaration_name: S(
        1389,
        1,
        "_0_is_not_allowed_as_a_variable_declaration_name_1389",
        "'{0}' is not allowed as a variable declaration name.",
      ),
      _0_is_not_allowed_as_a_parameter_name: S(
        1390,
        1,
        "_0_is_not_allowed_as_a_parameter_name_1390",
        "'{0}' is not allowed as a parameter name.",
      ),
      An_import_alias_cannot_use_import_type: S(
        1392,
        1,
        "An_import_alias_cannot_use_import_type_1392",
        "An import alias cannot use 'import type'",
      ),
      Imported_via_0_from_file_1: S(
        1393,
        3,
        "Imported_via_0_from_file_1_1393",
        "Imported via {0} from file '{1}'",
      ),
      Imported_via_0_from_file_1_with_packageId_2: S(
        1394,
        3,
        "Imported_via_0_from_file_1_with_packageId_2_1394",
        "Imported via {0} from file '{1}' with packageId '{2}'",
      ),
      Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:
        S(
          1395,
          3,
          "Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395",
          "Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions",
        ),
      Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:
        S(
          1396,
          3,
          "Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396",
          "Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions",
        ),
      Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions: S(
        1397,
        3,
        "Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397",
        "Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions",
      ),
      Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:
        S(
          1398,
          3,
          "Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398",
          "Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions",
        ),
      File_is_included_via_import_here: S(
        1399,
        3,
        "File_is_included_via_import_here_1399",
        "File is included via import here.",
      ),
      Referenced_via_0_from_file_1: S(
        1400,
        3,
        "Referenced_via_0_from_file_1_1400",
        "Referenced via '{0}' from file '{1}'",
      ),
      File_is_included_via_reference_here: S(
        1401,
        3,
        "File_is_included_via_reference_here_1401",
        "File is included via reference here.",
      ),
      Type_library_referenced_via_0_from_file_1: S(
        1402,
        3,
        "Type_library_referenced_via_0_from_file_1_1402",
        "Type library referenced via '{0}' from file '{1}'",
      ),
      Type_library_referenced_via_0_from_file_1_with_packageId_2: S(
        1403,
        3,
        "Type_library_referenced_via_0_from_file_1_with_packageId_2_1403",
        "Type library referenced via '{0}' from file '{1}' with packageId '{2}'",
      ),
      File_is_included_via_type_library_reference_here: S(
        1404,
        3,
        "File_is_included_via_type_library_reference_here_1404",
        "File is included via type library reference here.",
      ),
      Library_referenced_via_0_from_file_1: S(
        1405,
        3,
        "Library_referenced_via_0_from_file_1_1405",
        "Library referenced via '{0}' from file '{1}'",
      ),
      File_is_included_via_library_reference_here: S(
        1406,
        3,
        "File_is_included_via_library_reference_here_1406",
        "File is included via library reference here.",
      ),
      Matched_by_include_pattern_0_in_1: S(
        1407,
        3,
        "Matched_by_include_pattern_0_in_1_1407",
        "Matched by include pattern '{0}' in '{1}'",
      ),
      File_is_matched_by_include_pattern_specified_here: S(
        1408,
        3,
        "File_is_matched_by_include_pattern_specified_here_1408",
        "File is matched by include pattern specified here.",
      ),
      Part_of_files_list_in_tsconfig_json: S(
        1409,
        3,
        "Part_of_files_list_in_tsconfig_json_1409",
        "Part of 'files' list in tsconfig.json",
      ),
      File_is_matched_by_files_list_specified_here: S(
        1410,
        3,
        "File_is_matched_by_files_list_specified_here_1410",
        "File is matched by 'files' list specified here.",
      ),
      Output_from_referenced_project_0_included_because_1_specified: S(
        1411,
        3,
        "Output_from_referenced_project_0_included_because_1_specified_1411",
        "Output from referenced project '{0}' included because '{1}' specified",
      ),
      Output_from_referenced_project_0_included_because_module_is_specified_as_none:
        S(
          1412,
          3,
          "Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412",
          "Output from referenced project '{0}' included because '--module' is specified as 'none'",
        ),
      File_is_output_from_referenced_project_specified_here: S(
        1413,
        3,
        "File_is_output_from_referenced_project_specified_here_1413",
        "File is output from referenced project specified here.",
      ),
      Source_from_referenced_project_0_included_because_1_specified: S(
        1414,
        3,
        "Source_from_referenced_project_0_included_because_1_specified_1414",
        "Source from referenced project '{0}' included because '{1}' specified",
      ),
      Source_from_referenced_project_0_included_because_module_is_specified_as_none:
        S(
          1415,
          3,
          "Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415",
          "Source from referenced project '{0}' included because '--module' is specified as 'none'",
        ),
      File_is_source_from_referenced_project_specified_here: S(
        1416,
        3,
        "File_is_source_from_referenced_project_specified_here_1416",
        "File is source from referenced project specified here.",
      ),
      Entry_point_of_type_library_0_specified_in_compilerOptions: S(
        1417,
        3,
        "Entry_point_of_type_library_0_specified_in_compilerOptions_1417",
        "Entry point of type library '{0}' specified in compilerOptions",
      ),
      Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:
        S(
          1418,
          3,
          "Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418",
          "Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'",
        ),
      File_is_entry_point_of_type_library_specified_here: S(
        1419,
        3,
        "File_is_entry_point_of_type_library_specified_here_1419",
        "File is entry point of type library specified here.",
      ),
      Entry_point_for_implicit_type_library_0: S(
        1420,
        3,
        "Entry_point_for_implicit_type_library_0_1420",
        "Entry point for implicit type library '{0}'",
      ),
      Entry_point_for_implicit_type_library_0_with_packageId_1: S(
        1421,
        3,
        "Entry_point_for_implicit_type_library_0_with_packageId_1_1421",
        "Entry point for implicit type library '{0}' with packageId '{1}'",
      ),
      Library_0_specified_in_compilerOptions: S(
        1422,
        3,
        "Library_0_specified_in_compilerOptions_1422",
        "Library '{0}' specified in compilerOptions",
      ),
      File_is_library_specified_here: S(
        1423,
        3,
        "File_is_library_specified_here_1423",
        "File is library specified here.",
      ),
      Default_library: S(1424, 3, "Default_library_1424", "Default library"),
      Default_library_for_target_0: S(
        1425,
        3,
        "Default_library_for_target_0_1425",
        "Default library for target '{0}'",
      ),
      File_is_default_library_for_target_specified_here: S(
        1426,
        3,
        "File_is_default_library_for_target_specified_here_1426",
        "File is default library for target specified here.",
      ),
      Root_file_specified_for_compilation: S(
        1427,
        3,
        "Root_file_specified_for_compilation_1427",
        "Root file specified for compilation",
      ),
      File_is_output_of_project_reference_source_0: S(
        1428,
        3,
        "File_is_output_of_project_reference_source_0_1428",
        "File is output of project reference source '{0}'",
      ),
      File_redirects_to_file_0: S(
        1429,
        3,
        "File_redirects_to_file_0_1429",
        "File redirects to file '{0}'",
      ),
      The_file_is_in_the_program_because_Colon: S(
        1430,
        3,
        "The_file_is_in_the_program_because_Colon_1430",
        "The file is in the program because:",
      ),
      for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:
        S(
          1431,
          1,
          "for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431",
          "'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.",
        ),
      Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:
        S(
          1432,
          1,
          "Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432",
          "Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.",
        ),
      Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters: S(
        1433,
        1,
        "Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433",
        "Neither decorators nor modifiers may be applied to 'this' parameters.",
      ),
      Unexpected_keyword_or_identifier: S(
        1434,
        1,
        "Unexpected_keyword_or_identifier_1434",
        "Unexpected keyword or identifier.",
      ),
      Unknown_keyword_or_identifier_Did_you_mean_0: S(
        1435,
        1,
        "Unknown_keyword_or_identifier_Did_you_mean_0_1435",
        "Unknown keyword or identifier. Did you mean '{0}'?",
      ),
      Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:
        S(
          1436,
          1,
          "Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436",
          "Decorators must precede the name and all keywords of property declarations.",
        ),
      Namespace_must_be_given_a_name: S(
        1437,
        1,
        "Namespace_must_be_given_a_name_1437",
        "Namespace must be given a name.",
      ),
      Interface_must_be_given_a_name: S(
        1438,
        1,
        "Interface_must_be_given_a_name_1438",
        "Interface must be given a name.",
      ),
      Type_alias_must_be_given_a_name: S(
        1439,
        1,
        "Type_alias_must_be_given_a_name_1439",
        "Type alias must be given a name.",
      ),
      Variable_declaration_not_allowed_at_this_location: S(
        1440,
        1,
        "Variable_declaration_not_allowed_at_this_location_1440",
        "Variable declaration not allowed at this location.",
      ),
      Cannot_start_a_function_call_in_a_type_annotation: S(
        1441,
        1,
        "Cannot_start_a_function_call_in_a_type_annotation_1441",
        "Cannot start a function call in a type annotation.",
      ),
      Expected_for_property_initializer: S(
        1442,
        1,
        "Expected_for_property_initializer_1442",
        "Expected '=' for property initializer.",
      ),
      Module_declaration_names_may_only_use_or_quoted_strings: S(
        1443,
        1,
        "Module_declaration_names_may_only_use_or_quoted_strings_1443",
        `Module declaration names may only use ' or " quoted strings.`,
      ),
      _0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:
        S(
          1448,
          1,
          "_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448",
          "'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled.",
        ),
      Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:
        S(
          1449,
          3,
          "Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449",
          "Preserve unused imported values in the JavaScript output that would otherwise be removed.",
        ),
      Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:
        S(
          1450,
          3,
          "Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450",
          "Dynamic imports can only accept a module specifier and an optional set of attributes as arguments",
        ),
      Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:
        S(
          1451,
          1,
          "Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451",
          "Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression",
        ),
      resolution_mode_should_be_either_require_or_import: S(
        1453,
        1,
        "resolution_mode_should_be_either_require_or_import_1453",
        "`resolution-mode` should be either `require` or `import`.",
      ),
      resolution_mode_can_only_be_set_for_type_only_imports: S(
        1454,
        1,
        "resolution_mode_can_only_be_set_for_type_only_imports_1454",
        "`resolution-mode` can only be set for type-only imports.",
      ),
      resolution_mode_is_the_only_valid_key_for_type_import_assertions: S(
        1455,
        1,
        "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455",
        "`resolution-mode` is the only valid key for type import assertions.",
      ),
      Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:
        S(
          1456,
          1,
          "Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456",
          "Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`.",
        ),
      Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk: S(
        1457,
        3,
        "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457",
        "Matched by default include pattern '**/*'",
      ),
      File_is_ECMAScript_module_because_0_has_field_type_with_value_module: S(
        1458,
        3,
        "File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",
        `File is ECMAScript module because '{0}' has field "type" with value "module"`,
      ),
      File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:
        S(
          1459,
          3,
          "File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",
          `File is CommonJS module because '{0}' has field "type" whose value is not "module"`,
        ),
      File_is_CommonJS_module_because_0_does_not_have_field_type: S(
        1460,
        3,
        "File_is_CommonJS_module_because_0_does_not_have_field_type_1460",
        `File is CommonJS module because '{0}' does not have field "type"`,
      ),
      File_is_CommonJS_module_because_package_json_was_not_found: S(
        1461,
        3,
        "File_is_CommonJS_module_because_package_json_was_not_found_1461",
        "File is CommonJS module because 'package.json' was not found",
      ),
      resolution_mode_is_the_only_valid_key_for_type_import_attributes: S(
        1463,
        1,
        "resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463",
        "'resolution-mode' is the only valid key for type import attributes.",
      ),
      Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:
        S(
          1464,
          1,
          "Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464",
          "Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'.",
        ),
      The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:
        S(
          1470,
          1,
          "The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470",
          "The 'import.meta' meta-property is not allowed in files which will build into CommonJS output.",
        ),
      Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:
        S(
          1471,
          1,
          "Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471",
          "Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead.",
        ),
      catch_or_finally_expected: S(
        1472,
        1,
        "catch_or_finally_expected_1472",
        "'catch' or 'finally' expected.",
      ),
      An_import_declaration_can_only_be_used_at_the_top_level_of_a_module: S(
        1473,
        1,
        "An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473",
        "An import declaration can only be used at the top level of a module.",
      ),
      An_export_declaration_can_only_be_used_at_the_top_level_of_a_module: S(
        1474,
        1,
        "An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474",
        "An export declaration can only be used at the top level of a module.",
      ),
      Control_what_method_is_used_to_detect_module_format_JS_files: S(
        1475,
        3,
        "Control_what_method_is_used_to_detect_module_format_JS_files_1475",
        "Control what method is used to detect module-format JS files.",
      ),
      auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:
        S(
          1476,
          3,
          "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",
          '"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.',
        ),
      An_instantiation_expression_cannot_be_followed_by_a_property_access: S(
        1477,
        1,
        "An_instantiation_expression_cannot_be_followed_by_a_property_access_1477",
        "An instantiation expression cannot be followed by a property access.",
      ),
      Identifier_or_string_literal_expected: S(
        1478,
        1,
        "Identifier_or_string_literal_expected_1478",
        "Identifier or string literal expected.",
      ),
      The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:
        S(
          1479,
          1,
          "The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",
          `The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`,
        ),
      To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:
        S(
          1480,
          3,
          "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",
          'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.',
        ),
      To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:
        S(
          1481,
          3,
          "To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",
          `To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`,
        ),
      To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:
        S(
          1482,
          3,
          "To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",
          'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.',
        ),
      To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:
        S(
          1483,
          3,
          "To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",
          'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.',
        ),
      _0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:
        S(
          1484,
          1,
          "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484",
          "'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.",
        ),
      _0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:
        S(
          1485,
          1,
          "_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485",
          "'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.",
        ),
      Decorator_used_before_export_here: S(
        1486,
        1,
        "Decorator_used_before_export_here_1486",
        "Decorator used before 'export' here.",
      ),
      Octal_escape_sequences_are_not_allowed_Use_the_syntax_0: S(
        1487,
        1,
        "Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487",
        "Octal escape sequences are not allowed. Use the syntax '{0}'.",
      ),
      Escape_sequence_0_is_not_allowed: S(
        1488,
        1,
        "Escape_sequence_0_is_not_allowed_1488",
        "Escape sequence '{0}' is not allowed.",
      ),
      Decimals_with_leading_zeros_are_not_allowed: S(
        1489,
        1,
        "Decimals_with_leading_zeros_are_not_allowed_1489",
        "Decimals with leading zeros are not allowed.",
      ),
      File_appears_to_be_binary: S(
        1490,
        1,
        "File_appears_to_be_binary_1490",
        "File appears to be binary.",
      ),
      _0_modifier_cannot_appear_on_a_using_declaration: S(
        1491,
        1,
        "_0_modifier_cannot_appear_on_a_using_declaration_1491",
        "'{0}' modifier cannot appear on a 'using' declaration.",
      ),
      _0_declarations_may_not_have_binding_patterns: S(
        1492,
        1,
        "_0_declarations_may_not_have_binding_patterns_1492",
        "'{0}' declarations may not have binding patterns.",
      ),
      The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: S(
        1493,
        1,
        "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493",
        "The left-hand side of a 'for...in' statement cannot be a 'using' declaration.",
      ),
      The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:
        S(
          1494,
          1,
          "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494",
          "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration.",
        ),
      _0_modifier_cannot_appear_on_an_await_using_declaration: S(
        1495,
        1,
        "_0_modifier_cannot_appear_on_an_await_using_declaration_1495",
        "'{0}' modifier cannot appear on an 'await using' declaration.",
      ),
      Identifier_string_literal_or_number_literal_expected: S(
        1496,
        1,
        "Identifier_string_literal_or_number_literal_expected_1496",
        "Identifier, string literal, or number literal expected.",
      ),
      Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator: S(
        1497,
        1,
        "Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497",
        "Expression must be enclosed in parentheses to be used as a decorator.",
      ),
      Invalid_syntax_in_decorator: S(
        1498,
        1,
        "Invalid_syntax_in_decorator_1498",
        "Invalid syntax in decorator.",
      ),
      Unknown_regular_expression_flag: S(
        1499,
        1,
        "Unknown_regular_expression_flag_1499",
        "Unknown regular expression flag.",
      ),
      Duplicate_regular_expression_flag: S(
        1500,
        1,
        "Duplicate_regular_expression_flag_1500",
        "Duplicate regular expression flag.",
      ),
      This_regular_expression_flag_is_only_available_when_targeting_0_or_later:
        S(
          1501,
          1,
          "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501",
          "This regular expression flag is only available when targeting '{0}' or later.",
        ),
      The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:
        S(
          1502,
          1,
          "The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502",
          "The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously.",
        ),
      Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:
        S(
          1503,
          1,
          "Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503",
          "Named capturing groups are only available when targeting 'ES2018' or later.",
        ),
      Subpattern_flags_must_be_present_when_there_is_a_minus_sign: S(
        1504,
        1,
        "Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504",
        "Subpattern flags must be present when there is a minus sign.",
      ),
      Incomplete_quantifier_Digit_expected: S(
        1505,
        1,
        "Incomplete_quantifier_Digit_expected_1505",
        "Incomplete quantifier. Digit expected.",
      ),
      Numbers_out_of_order_in_quantifier: S(
        1506,
        1,
        "Numbers_out_of_order_in_quantifier_1506",
        "Numbers out of order in quantifier.",
      ),
      There_is_nothing_available_for_repetition: S(
        1507,
        1,
        "There_is_nothing_available_for_repetition_1507",
        "There is nothing available for repetition.",
      ),
      Unexpected_0_Did_you_mean_to_escape_it_with_backslash: S(
        1508,
        1,
        "Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508",
        "Unexpected '{0}'. Did you mean to escape it with backslash?",
      ),
      This_regular_expression_flag_cannot_be_toggled_within_a_subpattern: S(
        1509,
        1,
        "This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509",
        "This regular expression flag cannot be toggled within a subpattern.",
      ),
      k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:
        S(
          1510,
          1,
          "k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510",
          "'\\k' must be followed by a capturing group name enclosed in angle brackets.",
        ),
      q_is_only_available_inside_character_class: S(
        1511,
        1,
        "q_is_only_available_inside_character_class_1511",
        "'\\q' is only available inside character class.",
      ),
      c_must_be_followed_by_an_ASCII_letter: S(
        1512,
        1,
        "c_must_be_followed_by_an_ASCII_letter_1512",
        "'\\c' must be followed by an ASCII letter.",
      ),
      Undetermined_character_escape: S(
        1513,
        1,
        "Undetermined_character_escape_1513",
        "Undetermined character escape.",
      ),
      Expected_a_capturing_group_name: S(
        1514,
        1,
        "Expected_a_capturing_group_name_1514",
        "Expected a capturing group name.",
      ),
      Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:
        S(
          1515,
          1,
          "Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515",
          "Named capturing groups with the same name must be mutually exclusive to each other.",
        ),
      A_character_class_range_must_not_be_bounded_by_another_character_class: S(
        1516,
        1,
        "A_character_class_range_must_not_be_bounded_by_another_character_class_1516",
        "A character class range must not be bounded by another character class.",
      ),
      Range_out_of_order_in_character_class: S(
        1517,
        1,
        "Range_out_of_order_in_character_class_1517",
        "Range out of order in character class.",
      ),
      Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:
        S(
          1518,
          1,
          "Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518",
          "Anything that would possibly match more than a single character is invalid inside a negated character class.",
        ),
      Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:
        S(
          1519,
          1,
          "Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519",
          "Operators must not be mixed within a character class. Wrap it in a nested class instead.",
        ),
      Expected_a_class_set_operand: S(
        1520,
        1,
        "Expected_a_class_set_operand_1520",
        "Expected a class set operand.",
      ),
      q_must_be_followed_by_string_alternatives_enclosed_in_braces: S(
        1521,
        1,
        "q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521",
        "'\\q' must be followed by string alternatives enclosed in braces.",
      ),
      A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:
        S(
          1522,
          1,
          "A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522",
          "A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?",
        ),
      Expected_a_Unicode_property_name: S(
        1523,
        1,
        "Expected_a_Unicode_property_name_1523",
        "Expected a Unicode property name.",
      ),
      Unknown_Unicode_property_name: S(
        1524,
        1,
        "Unknown_Unicode_property_name_1524",
        "Unknown Unicode property name.",
      ),
      Expected_a_Unicode_property_value: S(
        1525,
        1,
        "Expected_a_Unicode_property_value_1525",
        "Expected a Unicode property value.",
      ),
      Unknown_Unicode_property_value: S(
        1526,
        1,
        "Unknown_Unicode_property_value_1526",
        "Unknown Unicode property value.",
      ),
      Expected_a_Unicode_property_name_or_value: S(
        1527,
        1,
        "Expected_a_Unicode_property_name_or_value_1527",
        "Expected a Unicode property name or value.",
      ),
      Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:
        S(
          1528,
          1,
          "Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528",
          "Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set.",
        ),
      Unknown_Unicode_property_name_or_value: S(
        1529,
        1,
        "Unknown_Unicode_property_name_or_value_1529",
        "Unknown Unicode property name or value.",
      ),
      Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:
        S(
          1530,
          1,
          "Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530",
          "Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set.",
        ),
      _0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:
        S(
          1531,
          1,
          "_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531",
          "'\\{0}' must be followed by a Unicode property value expression enclosed in braces.",
        ),
      There_is_no_capturing_group_named_0_in_this_regular_expression: S(
        1532,
        1,
        "There_is_no_capturing_group_named_0_in_this_regular_expression_1532",
        "There is no capturing group named '{0}' in this regular expression.",
      ),
      This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:
        S(
          1533,
          1,
          "This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533",
          "This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression.",
        ),
      This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:
        S(
          1534,
          1,
          "This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534",
          "This backreference refers to a group that does not exist. There are no capturing groups in this regular expression.",
        ),
      This_character_cannot_be_escaped_in_a_regular_expression: S(
        1535,
        1,
        "This_character_cannot_be_escaped_in_a_regular_expression_1535",
        "This character cannot be escaped in a regular expression.",
      ),
      Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:
        S(
          1536,
          1,
          "Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536",
          "Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead.",
        ),
      Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:
        S(
          1537,
          1,
          "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537",
          "Decimal escape sequences and backreferences are not allowed in a character class.",
        ),
      Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:
        S(
          1538,
          1,
          "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538",
          "Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set.",
        ),
      A_bigint_literal_cannot_be_used_as_a_property_name: S(
        1539,
        1,
        "A_bigint_literal_cannot_be_used_as_a_property_name_1539",
        "A 'bigint' literal cannot be used as a property name.",
      ),
      A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:
        S(
          1540,
          2,
          "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540",
          "A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",
          void 0,
          void 0,
          !0,
        ),
      Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:
        S(
          1541,
          1,
          "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541",
          "Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute.",
        ),
      Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:
        S(
          1542,
          1,
          "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542",
          "Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute.",
        ),
      Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:
        S(
          1543,
          1,
          "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543",
          `Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`,
        ),
      Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:
        S(
          1544,
          1,
          "Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544",
          "Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'.",
        ),
      using_declarations_are_not_allowed_in_ambient_contexts: S(
        1545,
        1,
        "using_declarations_are_not_allowed_in_ambient_contexts_1545",
        "'using' declarations are not allowed in ambient contexts.",
      ),
      await_using_declarations_are_not_allowed_in_ambient_contexts: S(
        1546,
        1,
        "await_using_declarations_are_not_allowed_in_ambient_contexts_1546",
        "'await using' declarations are not allowed in ambient contexts.",
      ),
      The_types_of_0_are_incompatible_between_these_types: S(
        2200,
        1,
        "The_types_of_0_are_incompatible_between_these_types_2200",
        "The types of '{0}' are incompatible between these types.",
      ),
      The_types_returned_by_0_are_incompatible_between_these_types: S(
        2201,
        1,
        "The_types_returned_by_0_are_incompatible_between_these_types_2201",
        "The types returned by '{0}' are incompatible between these types.",
      ),
      Call_signature_return_types_0_and_1_are_incompatible: S(
        2202,
        1,
        "Call_signature_return_types_0_and_1_are_incompatible_2202",
        "Call signature return types '{0}' and '{1}' are incompatible.",
        void 0,
        !0,
      ),
      Construct_signature_return_types_0_and_1_are_incompatible: S(
        2203,
        1,
        "Construct_signature_return_types_0_and_1_are_incompatible_2203",
        "Construct signature return types '{0}' and '{1}' are incompatible.",
        void 0,
        !0,
      ),
      Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:
        S(
          2204,
          1,
          "Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204",
          "Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",
          void 0,
          !0,
        ),
      Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:
        S(
          2205,
          1,
          "Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205",
          "Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",
          void 0,
          !0,
        ),
      The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:
        S(
          2206,
          1,
          "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206",
          "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",
        ),
      The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:
        S(
          2207,
          1,
          "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207",
          "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",
        ),
      This_type_parameter_might_need_an_extends_0_constraint: S(
        2208,
        1,
        "This_type_parameter_might_need_an_extends_0_constraint_2208",
        "This type parameter might need an `extends {0}` constraint.",
      ),
      The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:
        S(
          2209,
          1,
          "The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209",
          "The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate.",
        ),
      The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:
        S(
          2210,
          1,
          "The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210",
          "The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate.",
        ),
      Add_extends_constraint: S(
        2211,
        3,
        "Add_extends_constraint_2211",
        "Add `extends` constraint.",
      ),
      Add_extends_constraint_to_all_type_parameters: S(
        2212,
        3,
        "Add_extends_constraint_to_all_type_parameters_2212",
        "Add `extends` constraint to all type parameters",
      ),
      Duplicate_identifier_0: S(
        2300,
        1,
        "Duplicate_identifier_0_2300",
        "Duplicate identifier '{0}'.",
      ),
      Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:
        S(
          2301,
          1,
          "Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",
          "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor.",
        ),
      Static_members_cannot_reference_class_type_parameters: S(
        2302,
        1,
        "Static_members_cannot_reference_class_type_parameters_2302",
        "Static members cannot reference class type parameters.",
      ),
      Circular_definition_of_import_alias_0: S(
        2303,
        1,
        "Circular_definition_of_import_alias_0_2303",
        "Circular definition of import alias '{0}'.",
      ),
      Cannot_find_name_0: S(
        2304,
        1,
        "Cannot_find_name_0_2304",
        "Cannot find name '{0}'.",
      ),
      Module_0_has_no_exported_member_1: S(
        2305,
        1,
        "Module_0_has_no_exported_member_1_2305",
        "Module '{0}' has no exported member '{1}'.",
      ),
      File_0_is_not_a_module: S(
        2306,
        1,
        "File_0_is_not_a_module_2306",
        "File '{0}' is not a module.",
      ),
      Cannot_find_module_0_or_its_corresponding_type_declarations: S(
        2307,
        1,
        "Cannot_find_module_0_or_its_corresponding_type_declarations_2307",
        "Cannot find module '{0}' or its corresponding type declarations.",
      ),
      Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:
        S(
          2308,
          1,
          "Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308",
          "Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity.",
        ),
      An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:
        S(
          2309,
          1,
          "An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309",
          "An export assignment cannot be used in a module with other exported elements.",
        ),
      Type_0_recursively_references_itself_as_a_base_type: S(
        2310,
        1,
        "Type_0_recursively_references_itself_as_a_base_type_2310",
        "Type '{0}' recursively references itself as a base type.",
      ),
      Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function: S(
        2311,
        1,
        "Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311",
        "Cannot find name '{0}'. Did you mean to write this in an async function?",
      ),
      An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:
        S(
          2312,
          1,
          "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312",
          "An interface can only extend an object type or intersection of object types with statically known members.",
        ),
      Type_parameter_0_has_a_circular_constraint: S(
        2313,
        1,
        "Type_parameter_0_has_a_circular_constraint_2313",
        "Type parameter '{0}' has a circular constraint.",
      ),
      Generic_type_0_requires_1_type_argument_s: S(
        2314,
        1,
        "Generic_type_0_requires_1_type_argument_s_2314",
        "Generic type '{0}' requires {1} type argument(s).",
      ),
      Type_0_is_not_generic: S(
        2315,
        1,
        "Type_0_is_not_generic_2315",
        "Type '{0}' is not generic.",
      ),
      Global_type_0_must_be_a_class_or_interface_type: S(
        2316,
        1,
        "Global_type_0_must_be_a_class_or_interface_type_2316",
        "Global type '{0}' must be a class or interface type.",
      ),
      Global_type_0_must_have_1_type_parameter_s: S(
        2317,
        1,
        "Global_type_0_must_have_1_type_parameter_s_2317",
        "Global type '{0}' must have {1} type parameter(s).",
      ),
      Cannot_find_global_type_0: S(
        2318,
        1,
        "Cannot_find_global_type_0_2318",
        "Cannot find global type '{0}'.",
      ),
      Named_property_0_of_types_1_and_2_are_not_identical: S(
        2319,
        1,
        "Named_property_0_of_types_1_and_2_are_not_identical_2319",
        "Named property '{0}' of types '{1}' and '{2}' are not identical.",
      ),
      Interface_0_cannot_simultaneously_extend_types_1_and_2: S(
        2320,
        1,
        "Interface_0_cannot_simultaneously_extend_types_1_and_2_2320",
        "Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'.",
      ),
      Excessive_stack_depth_comparing_types_0_and_1: S(
        2321,
        1,
        "Excessive_stack_depth_comparing_types_0_and_1_2321",
        "Excessive stack depth comparing types '{0}' and '{1}'.",
      ),
      Type_0_is_not_assignable_to_type_1: S(
        2322,
        1,
        "Type_0_is_not_assignable_to_type_1_2322",
        "Type '{0}' is not assignable to type '{1}'.",
      ),
      Cannot_redeclare_exported_variable_0: S(
        2323,
        1,
        "Cannot_redeclare_exported_variable_0_2323",
        "Cannot redeclare exported variable '{0}'.",
      ),
      Property_0_is_missing_in_type_1: S(
        2324,
        1,
        "Property_0_is_missing_in_type_1_2324",
        "Property '{0}' is missing in type '{1}'.",
      ),
      Property_0_is_private_in_type_1_but_not_in_type_2: S(
        2325,
        1,
        "Property_0_is_private_in_type_1_but_not_in_type_2_2325",
        "Property '{0}' is private in type '{1}' but not in type '{2}'.",
      ),
      Types_of_property_0_are_incompatible: S(
        2326,
        1,
        "Types_of_property_0_are_incompatible_2326",
        "Types of property '{0}' are incompatible.",
      ),
      Property_0_is_optional_in_type_1_but_required_in_type_2: S(
        2327,
        1,
        "Property_0_is_optional_in_type_1_but_required_in_type_2_2327",
        "Property '{0}' is optional in type '{1}' but required in type '{2}'.",
      ),
      Types_of_parameters_0_and_1_are_incompatible: S(
        2328,
        1,
        "Types_of_parameters_0_and_1_are_incompatible_2328",
        "Types of parameters '{0}' and '{1}' are incompatible.",
      ),
      Index_signature_for_type_0_is_missing_in_type_1: S(
        2329,
        1,
        "Index_signature_for_type_0_is_missing_in_type_1_2329",
        "Index signature for type '{0}' is missing in type '{1}'.",
      ),
      _0_and_1_index_signatures_are_incompatible: S(
        2330,
        1,
        "_0_and_1_index_signatures_are_incompatible_2330",
        "'{0}' and '{1}' index signatures are incompatible.",
      ),
      this_cannot_be_referenced_in_a_module_or_namespace_body: S(
        2331,
        1,
        "this_cannot_be_referenced_in_a_module_or_namespace_body_2331",
        "'this' cannot be referenced in a module or namespace body.",
      ),
      this_cannot_be_referenced_in_current_location: S(
        2332,
        1,
        "this_cannot_be_referenced_in_current_location_2332",
        "'this' cannot be referenced in current location.",
      ),
      this_cannot_be_referenced_in_a_static_property_initializer: S(
        2334,
        1,
        "this_cannot_be_referenced_in_a_static_property_initializer_2334",
        "'this' cannot be referenced in a static property initializer.",
      ),
      super_can_only_be_referenced_in_a_derived_class: S(
        2335,
        1,
        "super_can_only_be_referenced_in_a_derived_class_2335",
        "'super' can only be referenced in a derived class.",
      ),
      super_cannot_be_referenced_in_constructor_arguments: S(
        2336,
        1,
        "super_cannot_be_referenced_in_constructor_arguments_2336",
        "'super' cannot be referenced in constructor arguments.",
      ),
      Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:
        S(
          2337,
          1,
          "Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337",
          "Super calls are not permitted outside constructors or in nested functions inside constructors.",
        ),
      super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:
        S(
          2338,
          1,
          "super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338",
          "'super' property access is permitted only in a constructor, member function, or member accessor of a derived class.",
        ),
      Property_0_does_not_exist_on_type_1: S(
        2339,
        1,
        "Property_0_does_not_exist_on_type_1_2339",
        "Property '{0}' does not exist on type '{1}'.",
      ),
      Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:
        S(
          2340,
          1,
          "Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",
          "Only public and protected methods of the base class are accessible via the 'super' keyword.",
        ),
      Property_0_is_private_and_only_accessible_within_class_1: S(
        2341,
        1,
        "Property_0_is_private_and_only_accessible_within_class_1_2341",
        "Property '{0}' is private and only accessible within class '{1}'.",
      ),
      This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:
        S(
          2343,
          1,
          "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343",
          "This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'.",
        ),
      Type_0_does_not_satisfy_the_constraint_1: S(
        2344,
        1,
        "Type_0_does_not_satisfy_the_constraint_1_2344",
        "Type '{0}' does not satisfy the constraint '{1}'.",
      ),
      Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: S(
        2345,
        1,
        "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345",
        "Argument of type '{0}' is not assignable to parameter of type '{1}'.",
      ),
      Call_target_does_not_contain_any_signatures: S(
        2346,
        1,
        "Call_target_does_not_contain_any_signatures_2346",
        "Call target does not contain any signatures.",
      ),
      Untyped_function_calls_may_not_accept_type_arguments: S(
        2347,
        1,
        "Untyped_function_calls_may_not_accept_type_arguments_2347",
        "Untyped function calls may not accept type arguments.",
      ),
      Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: S(
        2348,
        1,
        "Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348",
        "Value of type '{0}' is not callable. Did you mean to include 'new'?",
      ),
      This_expression_is_not_callable: S(
        2349,
        1,
        "This_expression_is_not_callable_2349",
        "This expression is not callable.",
      ),
      Only_a_void_function_can_be_called_with_the_new_keyword: S(
        2350,
        1,
        "Only_a_void_function_can_be_called_with_the_new_keyword_2350",
        "Only a void function can be called with the 'new' keyword.",
      ),
      This_expression_is_not_constructable: S(
        2351,
        1,
        "This_expression_is_not_constructable_2351",
        "This expression is not constructable.",
      ),
      Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:
        S(
          2352,
          1,
          "Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352",
          "Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.",
        ),
      Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:
        S(
          2353,
          1,
          "Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",
          "Object literal may only specify known properties, and '{0}' does not exist in type '{1}'.",
        ),
      This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found: S(
        2354,
        1,
        "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354",
        "This syntax requires an imported helper but module '{0}' cannot be found.",
      ),
      A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:
        S(
          2355,
          1,
          "A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355",
          "A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.",
        ),
      An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:
        S(
          2356,
          1,
          "An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356",
          "An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type.",
        ),
      The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:
        S(
          2357,
          1,
          "The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",
          "The operand of an increment or decrement operator must be a variable or a property access.",
        ),
      The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:
        S(
          2358,
          1,
          "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358",
          "The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter.",
        ),
      The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:
        S(
          2359,
          1,
          "The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359",
          "The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method.",
        ),
      The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:
        S(
          2362,
          1,
          "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362",
          "The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.",
        ),
      The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:
        S(
          2363,
          1,
          "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363",
          "The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.",
        ),
      The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:
        S(
          2364,
          1,
          "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364",
          "The left-hand side of an assignment expression must be a variable or a property access.",
        ),
      Operator_0_cannot_be_applied_to_types_1_and_2: S(
        2365,
        1,
        "Operator_0_cannot_be_applied_to_types_1_and_2_2365",
        "Operator '{0}' cannot be applied to types '{1}' and '{2}'.",
      ),
      Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:
        S(
          2366,
          1,
          "Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366",
          "Function lacks ending return statement and return type does not include 'undefined'.",
        ),
      This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:
        S(
          2367,
          1,
          "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367",
          "This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap.",
        ),
      Type_parameter_name_cannot_be_0: S(
        2368,
        1,
        "Type_parameter_name_cannot_be_0_2368",
        "Type parameter name cannot be '{0}'.",
      ),
      A_parameter_property_is_only_allowed_in_a_constructor_implementation: S(
        2369,
        1,
        "A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369",
        "A parameter property is only allowed in a constructor implementation.",
      ),
      A_rest_parameter_must_be_of_an_array_type: S(
        2370,
        1,
        "A_rest_parameter_must_be_of_an_array_type_2370",
        "A rest parameter must be of an array type.",
      ),
      A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:
        S(
          2371,
          1,
          "A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371",
          "A parameter initializer is only allowed in a function or constructor implementation.",
        ),
      Parameter_0_cannot_reference_itself: S(
        2372,
        1,
        "Parameter_0_cannot_reference_itself_2372",
        "Parameter '{0}' cannot reference itself.",
      ),
      Parameter_0_cannot_reference_identifier_1_declared_after_it: S(
        2373,
        1,
        "Parameter_0_cannot_reference_identifier_1_declared_after_it_2373",
        "Parameter '{0}' cannot reference identifier '{1}' declared after it.",
      ),
      Duplicate_index_signature_for_type_0: S(
        2374,
        1,
        "Duplicate_index_signature_for_type_0_2374",
        "Duplicate index signature for type '{0}'.",
      ),
      Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:
        S(
          2375,
          1,
          "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375",
          "Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.",
        ),
      A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:
        S(
          2376,
          1,
          "A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376",
          "A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers.",
        ),
      Constructors_for_derived_classes_must_contain_a_super_call: S(
        2377,
        1,
        "Constructors_for_derived_classes_must_contain_a_super_call_2377",
        "Constructors for derived classes must contain a 'super' call.",
      ),
      A_get_accessor_must_return_a_value: S(
        2378,
        1,
        "A_get_accessor_must_return_a_value_2378",
        "A 'get' accessor must return a value.",
      ),
      Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:
        S(
          2379,
          1,
          "Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379",
          "Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.",
        ),
      Overload_signatures_must_all_be_exported_or_non_exported: S(
        2383,
        1,
        "Overload_signatures_must_all_be_exported_or_non_exported_2383",
        "Overload signatures must all be exported or non-exported.",
      ),
      Overload_signatures_must_all_be_ambient_or_non_ambient: S(
        2384,
        1,
        "Overload_signatures_must_all_be_ambient_or_non_ambient_2384",
        "Overload signatures must all be ambient or non-ambient.",
      ),
      Overload_signatures_must_all_be_public_private_or_protected: S(
        2385,
        1,
        "Overload_signatures_must_all_be_public_private_or_protected_2385",
        "Overload signatures must all be public, private or protected.",
      ),
      Overload_signatures_must_all_be_optional_or_required: S(
        2386,
        1,
        "Overload_signatures_must_all_be_optional_or_required_2386",
        "Overload signatures must all be optional or required.",
      ),
      Function_overload_must_be_static: S(
        2387,
        1,
        "Function_overload_must_be_static_2387",
        "Function overload must be static.",
      ),
      Function_overload_must_not_be_static: S(
        2388,
        1,
        "Function_overload_must_not_be_static_2388",
        "Function overload must not be static.",
      ),
      Function_implementation_name_must_be_0: S(
        2389,
        1,
        "Function_implementation_name_must_be_0_2389",
        "Function implementation name must be '{0}'.",
      ),
      Constructor_implementation_is_missing: S(
        2390,
        1,
        "Constructor_implementation_is_missing_2390",
        "Constructor implementation is missing.",
      ),
      Function_implementation_is_missing_or_not_immediately_following_the_declaration:
        S(
          2391,
          1,
          "Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391",
          "Function implementation is missing or not immediately following the declaration.",
        ),
      Multiple_constructor_implementations_are_not_allowed: S(
        2392,
        1,
        "Multiple_constructor_implementations_are_not_allowed_2392",
        "Multiple constructor implementations are not allowed.",
      ),
      Duplicate_function_implementation: S(
        2393,
        1,
        "Duplicate_function_implementation_2393",
        "Duplicate function implementation.",
      ),
      This_overload_signature_is_not_compatible_with_its_implementation_signature:
        S(
          2394,
          1,
          "This_overload_signature_is_not_compatible_with_its_implementation_signature_2394",
          "This overload signature is not compatible with its implementation signature.",
        ),
      Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:
        S(
          2395,
          1,
          "Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395",
          "Individual declarations in merged declaration '{0}' must be all exported or all local.",
        ),
      Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:
        S(
          2396,
          1,
          "Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396",
          "Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.",
        ),
      Declaration_name_conflicts_with_built_in_global_identifier_0: S(
        2397,
        1,
        "Declaration_name_conflicts_with_built_in_global_identifier_0_2397",
        "Declaration name conflicts with built-in global identifier '{0}'.",
      ),
      constructor_cannot_be_used_as_a_parameter_property_name: S(
        2398,
        1,
        "constructor_cannot_be_used_as_a_parameter_property_name_2398",
        "'constructor' cannot be used as a parameter property name.",
      ),
      Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:
        S(
          2399,
          1,
          "Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399",
          "Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.",
        ),
      Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:
        S(
          2400,
          1,
          "Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400",
          "Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference.",
        ),
      A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:
        S(
          2401,
          1,
          "A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401",
          "A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers.",
        ),
      Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:
        S(
          2402,
          1,
          "Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402",
          "Expression resolves to '_super' that compiler uses to capture base class reference.",
        ),
      Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:
        S(
          2403,
          1,
          "Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403",
          "Subsequent variable declarations must have the same type.  Variable '{0}' must be of type '{1}', but here has type '{2}'.",
        ),
      The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation: S(
        2404,
        1,
        "The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404",
        "The left-hand side of a 'for...in' statement cannot use a type annotation.",
      ),
      The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any: S(
        2405,
        1,
        "The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405",
        "The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.",
      ),
      The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:
        S(
          2406,
          1,
          "The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406",
          "The left-hand side of a 'for...in' statement must be a variable or a property access.",
        ),
      The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:
        S(
          2407,
          1,
          "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407",
          "The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'.",
        ),
      Setters_cannot_return_a_value: S(
        2408,
        1,
        "Setters_cannot_return_a_value_2408",
        "Setters cannot return a value.",
      ),
      Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:
        S(
          2409,
          1,
          "Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409",
          "Return type of constructor signature must be assignable to the instance type of the class.",
        ),
      The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:
        S(
          2410,
          1,
          "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410",
          "The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.",
        ),
      Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:
        S(
          2412,
          1,
          "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412",
          "Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target.",
        ),
      Property_0_of_type_1_is_not_assignable_to_2_index_type_3: S(
        2411,
        1,
        "Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411",
        "Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'.",
      ),
      _0_index_type_1_is_not_assignable_to_2_index_type_3: S(
        2413,
        1,
        "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413",
        "'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'.",
      ),
      Class_name_cannot_be_0: S(
        2414,
        1,
        "Class_name_cannot_be_0_2414",
        "Class name cannot be '{0}'.",
      ),
      Class_0_incorrectly_extends_base_class_1: S(
        2415,
        1,
        "Class_0_incorrectly_extends_base_class_1_2415",
        "Class '{0}' incorrectly extends base class '{1}'.",
      ),
      Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:
        S(
          2416,
          1,
          "Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416",
          "Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'.",
        ),
      Class_static_side_0_incorrectly_extends_base_class_static_side_1: S(
        2417,
        1,
        "Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417",
        "Class static side '{0}' incorrectly extends base class static side '{1}'.",
      ),
      Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:
        S(
          2418,
          1,
          "Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418",
          "Type of computed property's value is '{0}', which is not assignable to type '{1}'.",
        ),
      Types_of_construct_signatures_are_incompatible: S(
        2419,
        1,
        "Types_of_construct_signatures_are_incompatible_2419",
        "Types of construct signatures are incompatible.",
      ),
      Class_0_incorrectly_implements_interface_1: S(
        2420,
        1,
        "Class_0_incorrectly_implements_interface_1_2420",
        "Class '{0}' incorrectly implements interface '{1}'.",
      ),
      A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:
        S(
          2422,
          1,
          "A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422",
          "A class can only implement an object type or intersection of object types with statically known members.",
        ),
      Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:
        S(
          2423,
          1,
          "Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423",
          "Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor.",
        ),
      Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:
        S(
          2425,
          1,
          "Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425",
          "Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function.",
        ),
      Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:
        S(
          2426,
          1,
          "Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426",
          "Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function.",
        ),
      Interface_name_cannot_be_0: S(
        2427,
        1,
        "Interface_name_cannot_be_0_2427",
        "Interface name cannot be '{0}'.",
      ),
      All_declarations_of_0_must_have_identical_type_parameters: S(
        2428,
        1,
        "All_declarations_of_0_must_have_identical_type_parameters_2428",
        "All declarations of '{0}' must have identical type parameters.",
      ),
      Interface_0_incorrectly_extends_interface_1: S(
        2430,
        1,
        "Interface_0_incorrectly_extends_interface_1_2430",
        "Interface '{0}' incorrectly extends interface '{1}'.",
      ),
      Enum_name_cannot_be_0: S(
        2431,
        1,
        "Enum_name_cannot_be_0_2431",
        "Enum name cannot be '{0}'.",
      ),
      In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:
        S(
          2432,
          1,
          "In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432",
          "In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.",
        ),
      A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:
        S(
          2433,
          1,
          "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433",
          "A namespace declaration cannot be in a different file from a class or function with which it is merged.",
        ),
      A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:
        S(
          2434,
          1,
          "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434",
          "A namespace declaration cannot be located prior to a class or function with which it is merged.",
        ),
      Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces: S(
        2435,
        1,
        "Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435",
        "Ambient modules cannot be nested in other modules or namespaces.",
      ),
      Ambient_module_declaration_cannot_specify_relative_module_name: S(
        2436,
        1,
        "Ambient_module_declaration_cannot_specify_relative_module_name_2436",
        "Ambient module declaration cannot specify relative module name.",
      ),
      Module_0_is_hidden_by_a_local_declaration_with_the_same_name: S(
        2437,
        1,
        "Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437",
        "Module '{0}' is hidden by a local declaration with the same name.",
      ),
      Import_name_cannot_be_0: S(
        2438,
        1,
        "Import_name_cannot_be_0_2438",
        "Import name cannot be '{0}'.",
      ),
      Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:
        S(
          2439,
          1,
          "Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439",
          "Import or export declaration in an ambient module declaration cannot reference module through relative module name.",
        ),
      Import_declaration_conflicts_with_local_declaration_of_0: S(
        2440,
        1,
        "Import_declaration_conflicts_with_local_declaration_of_0_2440",
        "Import declaration conflicts with local declaration of '{0}'.",
      ),
      Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:
        S(
          2441,
          1,
          "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441",
          "Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module.",
        ),
      Types_have_separate_declarations_of_a_private_property_0: S(
        2442,
        1,
        "Types_have_separate_declarations_of_a_private_property_0_2442",
        "Types have separate declarations of a private property '{0}'.",
      ),
      Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2: S(
        2443,
        1,
        "Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443",
        "Property '{0}' is protected but type '{1}' is not a class derived from '{2}'.",
      ),
      Property_0_is_protected_in_type_1_but_public_in_type_2: S(
        2444,
        1,
        "Property_0_is_protected_in_type_1_but_public_in_type_2_2444",
        "Property '{0}' is protected in type '{1}' but public in type '{2}'.",
      ),
      Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:
        S(
          2445,
          1,
          "Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445",
          "Property '{0}' is protected and only accessible within class '{1}' and its subclasses.",
        ),
      Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:
        S(
          2446,
          1,
          "Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446",
          "Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'.",
        ),
      The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:
        S(
          2447,
          1,
          "The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447",
          "The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead.",
        ),
      Block_scoped_variable_0_used_before_its_declaration: S(
        2448,
        1,
        "Block_scoped_variable_0_used_before_its_declaration_2448",
        "Block-scoped variable '{0}' used before its declaration.",
      ),
      Class_0_used_before_its_declaration: S(
        2449,
        1,
        "Class_0_used_before_its_declaration_2449",
        "Class '{0}' used before its declaration.",
      ),
      Enum_0_used_before_its_declaration: S(
        2450,
        1,
        "Enum_0_used_before_its_declaration_2450",
        "Enum '{0}' used before its declaration.",
      ),
      Cannot_redeclare_block_scoped_variable_0: S(
        2451,
        1,
        "Cannot_redeclare_block_scoped_variable_0_2451",
        "Cannot redeclare block-scoped variable '{0}'.",
      ),
      An_enum_member_cannot_have_a_numeric_name: S(
        2452,
        1,
        "An_enum_member_cannot_have_a_numeric_name_2452",
        "An enum member cannot have a numeric name.",
      ),
      Variable_0_is_used_before_being_assigned: S(
        2454,
        1,
        "Variable_0_is_used_before_being_assigned_2454",
        "Variable '{0}' is used before being assigned.",
      ),
      Type_alias_0_circularly_references_itself: S(
        2456,
        1,
        "Type_alias_0_circularly_references_itself_2456",
        "Type alias '{0}' circularly references itself.",
      ),
      Type_alias_name_cannot_be_0: S(
        2457,
        1,
        "Type_alias_name_cannot_be_0_2457",
        "Type alias name cannot be '{0}'.",
      ),
      An_AMD_module_cannot_have_multiple_name_assignments: S(
        2458,
        1,
        "An_AMD_module_cannot_have_multiple_name_assignments_2458",
        "An AMD module cannot have multiple name assignments.",
      ),
      Module_0_declares_1_locally_but_it_is_not_exported: S(
        2459,
        1,
        "Module_0_declares_1_locally_but_it_is_not_exported_2459",
        "Module '{0}' declares '{1}' locally, but it is not exported.",
      ),
      Module_0_declares_1_locally_but_it_is_exported_as_2: S(
        2460,
        1,
        "Module_0_declares_1_locally_but_it_is_exported_as_2_2460",
        "Module '{0}' declares '{1}' locally, but it is exported as '{2}'.",
      ),
      Type_0_is_not_an_array_type: S(
        2461,
        1,
        "Type_0_is_not_an_array_type_2461",
        "Type '{0}' is not an array type.",
      ),
      A_rest_element_must_be_last_in_a_destructuring_pattern: S(
        2462,
        1,
        "A_rest_element_must_be_last_in_a_destructuring_pattern_2462",
        "A rest element must be last in a destructuring pattern.",
      ),
      A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:
        S(
          2463,
          1,
          "A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463",
          "A binding pattern parameter cannot be optional in an implementation signature.",
        ),
      A_computed_property_name_must_be_of_type_string_number_symbol_or_any: S(
        2464,
        1,
        "A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464",
        "A computed property name must be of type 'string', 'number', 'symbol', or 'any'.",
      ),
      this_cannot_be_referenced_in_a_computed_property_name: S(
        2465,
        1,
        "this_cannot_be_referenced_in_a_computed_property_name_2465",
        "'this' cannot be referenced in a computed property name.",
      ),
      super_cannot_be_referenced_in_a_computed_property_name: S(
        2466,
        1,
        "super_cannot_be_referenced_in_a_computed_property_name_2466",
        "'super' cannot be referenced in a computed property name.",
      ),
      A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:
        S(
          2467,
          1,
          "A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467",
          "A computed property name cannot reference a type parameter from its containing type.",
        ),
      Cannot_find_global_value_0: S(
        2468,
        1,
        "Cannot_find_global_value_0_2468",
        "Cannot find global value '{0}'.",
      ),
      The_0_operator_cannot_be_applied_to_type_symbol: S(
        2469,
        1,
        "The_0_operator_cannot_be_applied_to_type_symbol_2469",
        "The '{0}' operator cannot be applied to type 'symbol'.",
      ),
      Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:
        S(
          2472,
          1,
          "Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472",
          "Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher.",
        ),
      Enum_declarations_must_all_be_const_or_non_const: S(
        2473,
        1,
        "Enum_declarations_must_all_be_const_or_non_const_2473",
        "Enum declarations must all be const or non-const.",
      ),
      const_enum_member_initializers_must_be_constant_expressions: S(
        2474,
        1,
        "const_enum_member_initializers_must_be_constant_expressions_2474",
        "const enum member initializers must be constant expressions.",
      ),
      const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:
        S(
          2475,
          1,
          "const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475",
          "'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query.",
        ),
      A_const_enum_member_can_only_be_accessed_using_a_string_literal: S(
        2476,
        1,
        "A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476",
        "A const enum member can only be accessed using a string literal.",
      ),
      const_enum_member_initializer_was_evaluated_to_a_non_finite_value: S(
        2477,
        1,
        "const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477",
        "'const' enum member initializer was evaluated to a non-finite value.",
      ),
      const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN: S(
        2478,
        1,
        "const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478",
        "'const' enum member initializer was evaluated to disallowed value 'NaN'.",
      ),
      let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations: S(
        2480,
        1,
        "let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480",
        "'let' is not allowed to be used as a name in 'let' or 'const' declarations.",
      ),
      Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:
        S(
          2481,
          1,
          "Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481",
          "Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'.",
        ),
      The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation: S(
        2483,
        1,
        "The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483",
        "The left-hand side of a 'for...of' statement cannot use a type annotation.",
      ),
      Export_declaration_conflicts_with_exported_declaration_of_0: S(
        2484,
        1,
        "Export_declaration_conflicts_with_exported_declaration_of_0_2484",
        "Export declaration conflicts with exported declaration of '{0}'.",
      ),
      The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:
        S(
          2487,
          1,
          "The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487",
          "The left-hand side of a 'for...of' statement must be a variable or a property access.",
        ),
      Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator: S(
        2488,
        1,
        "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488",
        "Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator.",
      ),
      An_iterator_must_have_a_next_method: S(
        2489,
        1,
        "An_iterator_must_have_a_next_method_2489",
        "An iterator must have a 'next()' method.",
      ),
      The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:
        S(
          2490,
          1,
          "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490",
          "The type returned by the '{0}()' method of an iterator must have a 'value' property.",
        ),
      The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:
        S(
          2491,
          1,
          "The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491",
          "The left-hand side of a 'for...in' statement cannot be a destructuring pattern.",
        ),
      Cannot_redeclare_identifier_0_in_catch_clause: S(
        2492,
        1,
        "Cannot_redeclare_identifier_0_in_catch_clause_2492",
        "Cannot redeclare identifier '{0}' in catch clause.",
      ),
      Tuple_type_0_of_length_1_has_no_element_at_index_2: S(
        2493,
        1,
        "Tuple_type_0_of_length_1_has_no_element_at_index_2_2493",
        "Tuple type '{0}' of length '{1}' has no element at index '{2}'.",
      ),
      Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:
        S(
          2494,
          1,
          "Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494",
          "Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.",
        ),
      Type_0_is_not_an_array_type_or_a_string_type: S(
        2495,
        1,
        "Type_0_is_not_an_array_type_or_a_string_type_2495",
        "Type '{0}' is not an array type or a string type.",
      ),
      The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:
        S(
          2496,
          1,
          "The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496",
          "The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.",
        ),
      This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:
        S(
          2497,
          1,
          "This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497",
          "This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export.",
        ),
      Module_0_uses_export_and_cannot_be_used_with_export_Asterisk: S(
        2498,
        1,
        "Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498",
        "Module '{0}' uses 'export =' and cannot be used with 'export *'.",
      ),
      An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:
        S(
          2499,
          1,
          "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499",
          "An interface can only extend an identifier/qualified-name with optional type arguments.",
        ),
      A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:
        S(
          2500,
          1,
          "A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500",
          "A class can only implement an identifier/qualified-name with optional type arguments.",
        ),
      A_rest_element_cannot_contain_a_binding_pattern: S(
        2501,
        1,
        "A_rest_element_cannot_contain_a_binding_pattern_2501",
        "A rest element cannot contain a binding pattern.",
      ),
      _0_is_referenced_directly_or_indirectly_in_its_own_type_annotation: S(
        2502,
        1,
        "_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502",
        "'{0}' is referenced directly or indirectly in its own type annotation.",
      ),
      Cannot_find_namespace_0: S(
        2503,
        1,
        "Cannot_find_namespace_0_2503",
        "Cannot find namespace '{0}'.",
      ),
      Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:
        S(
          2504,
          1,
          "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504",
          "Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.",
        ),
      A_generator_cannot_have_a_void_type_annotation: S(
        2505,
        1,
        "A_generator_cannot_have_a_void_type_annotation_2505",
        "A generator cannot have a 'void' type annotation.",
      ),
      _0_is_referenced_directly_or_indirectly_in_its_own_base_expression: S(
        2506,
        1,
        "_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506",
        "'{0}' is referenced directly or indirectly in its own base expression.",
      ),
      Type_0_is_not_a_constructor_function_type: S(
        2507,
        1,
        "Type_0_is_not_a_constructor_function_type_2507",
        "Type '{0}' is not a constructor function type.",
      ),
      No_base_constructor_has_the_specified_number_of_type_arguments: S(
        2508,
        1,
        "No_base_constructor_has_the_specified_number_of_type_arguments_2508",
        "No base constructor has the specified number of type arguments.",
      ),
      Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:
        S(
          2509,
          1,
          "Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509",
          "Base constructor return type '{0}' is not an object type or intersection of object types with statically known members.",
        ),
      Base_constructors_must_all_have_the_same_return_type: S(
        2510,
        1,
        "Base_constructors_must_all_have_the_same_return_type_2510",
        "Base constructors must all have the same return type.",
      ),
      Cannot_create_an_instance_of_an_abstract_class: S(
        2511,
        1,
        "Cannot_create_an_instance_of_an_abstract_class_2511",
        "Cannot create an instance of an abstract class.",
      ),
      Overload_signatures_must_all_be_abstract_or_non_abstract: S(
        2512,
        1,
        "Overload_signatures_must_all_be_abstract_or_non_abstract_2512",
        "Overload signatures must all be abstract or non-abstract.",
      ),
      Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: S(
        2513,
        1,
        "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513",
        "Abstract method '{0}' in class '{1}' cannot be accessed via super expression.",
      ),
      A_tuple_type_cannot_be_indexed_with_a_negative_value: S(
        2514,
        1,
        "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514",
        "A tuple type cannot be indexed with a negative value.",
      ),
      Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:
        S(
          2515,
          1,
          "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515",
          "Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'.",
        ),
      All_declarations_of_an_abstract_method_must_be_consecutive: S(
        2516,
        1,
        "All_declarations_of_an_abstract_method_must_be_consecutive_2516",
        "All declarations of an abstract method must be consecutive.",
      ),
      Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:
        S(
          2517,
          1,
          "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517",
          "Cannot assign an abstract constructor type to a non-abstract constructor type.",
        ),
      A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:
        S(
          2518,
          1,
          "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518",
          "A 'this'-based type guard is not compatible with a parameter-based type guard.",
        ),
      An_async_iterator_must_have_a_next_method: S(
        2519,
        1,
        "An_async_iterator_must_have_a_next_method_2519",
        "An async iterator must have a 'next()' method.",
      ),
      Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:
        S(
          2520,
          1,
          "Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520",
          "Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions.",
        ),
      The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:
        S(
          2522,
          1,
          "The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522",
          "The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method.",
        ),
      yield_expressions_cannot_be_used_in_a_parameter_initializer: S(
        2523,
        1,
        "yield_expressions_cannot_be_used_in_a_parameter_initializer_2523",
        "'yield' expressions cannot be used in a parameter initializer.",
      ),
      await_expressions_cannot_be_used_in_a_parameter_initializer: S(
        2524,
        1,
        "await_expressions_cannot_be_used_in_a_parameter_initializer_2524",
        "'await' expressions cannot be used in a parameter initializer.",
      ),
      A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:
        S(
          2526,
          1,
          "A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526",
          "A 'this' type is available only in a non-static member of a class or interface.",
        ),
      The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:
        S(
          2527,
          1,
          "The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527",
          "The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary.",
        ),
      A_module_cannot_have_multiple_default_exports: S(
        2528,
        1,
        "A_module_cannot_have_multiple_default_exports_2528",
        "A module cannot have multiple default exports.",
      ),
      Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:
        S(
          2529,
          1,
          "Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529",
          "Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions.",
        ),
      Property_0_is_incompatible_with_index_signature: S(
        2530,
        1,
        "Property_0_is_incompatible_with_index_signature_2530",
        "Property '{0}' is incompatible with index signature.",
      ),
      Object_is_possibly_null: S(
        2531,
        1,
        "Object_is_possibly_null_2531",
        "Object is possibly 'null'.",
      ),
      Object_is_possibly_undefined: S(
        2532,
        1,
        "Object_is_possibly_undefined_2532",
        "Object is possibly 'undefined'.",
      ),
      Object_is_possibly_null_or_undefined: S(
        2533,
        1,
        "Object_is_possibly_null_or_undefined_2533",
        "Object is possibly 'null' or 'undefined'.",
      ),
      A_function_returning_never_cannot_have_a_reachable_end_point: S(
        2534,
        1,
        "A_function_returning_never_cannot_have_a_reachable_end_point_2534",
        "A function returning 'never' cannot have a reachable end point.",
      ),
      Type_0_cannot_be_used_to_index_type_1: S(
        2536,
        1,
        "Type_0_cannot_be_used_to_index_type_1_2536",
        "Type '{0}' cannot be used to index type '{1}'.",
      ),
      Type_0_has_no_matching_index_signature_for_type_1: S(
        2537,
        1,
        "Type_0_has_no_matching_index_signature_for_type_1_2537",
        "Type '{0}' has no matching index signature for type '{1}'.",
      ),
      Type_0_cannot_be_used_as_an_index_type: S(
        2538,
        1,
        "Type_0_cannot_be_used_as_an_index_type_2538",
        "Type '{0}' cannot be used as an index type.",
      ),
      Cannot_assign_to_0_because_it_is_not_a_variable: S(
        2539,
        1,
        "Cannot_assign_to_0_because_it_is_not_a_variable_2539",
        "Cannot assign to '{0}' because it is not a variable.",
      ),
      Cannot_assign_to_0_because_it_is_a_read_only_property: S(
        2540,
        1,
        "Cannot_assign_to_0_because_it_is_a_read_only_property_2540",
        "Cannot assign to '{0}' because it is a read-only property.",
      ),
      Index_signature_in_type_0_only_permits_reading: S(
        2542,
        1,
        "Index_signature_in_type_0_only_permits_reading_2542",
        "Index signature in type '{0}' only permits reading.",
      ),
      Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:
        S(
          2543,
          1,
          "Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543",
          "Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference.",
        ),
      Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:
        S(
          2544,
          1,
          "Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544",
          "Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference.",
        ),
      A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:
        S(
          2545,
          1,
          "A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545",
          "A mixin class must have a constructor with a single rest parameter of type 'any[]'.",
        ),
      The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:
        S(
          2547,
          1,
          "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547",
          "The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property.",
        ),
      Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:
        S(
          2548,
          1,
          "Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548",
          "Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator.",
        ),
      Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:
        S(
          2549,
          1,
          "Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549",
          "Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator.",
        ),
      Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:
        S(
          2550,
          1,
          "Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550",
          "Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later.",
        ),
      Property_0_does_not_exist_on_type_1_Did_you_mean_2: S(
        2551,
        1,
        "Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551",
        "Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?",
      ),
      Cannot_find_name_0_Did_you_mean_1: S(
        2552,
        1,
        "Cannot_find_name_0_Did_you_mean_1_2552",
        "Cannot find name '{0}'. Did you mean '{1}'?",
      ),
      Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:
        S(
          2553,
          1,
          "Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553",
          "Computed values are not permitted in an enum with string valued members.",
        ),
      Expected_0_arguments_but_got_1: S(
        2554,
        1,
        "Expected_0_arguments_but_got_1_2554",
        "Expected {0} arguments, but got {1}.",
      ),
      Expected_at_least_0_arguments_but_got_1: S(
        2555,
        1,
        "Expected_at_least_0_arguments_but_got_1_2555",
        "Expected at least {0} arguments, but got {1}.",
      ),
      A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:
        S(
          2556,
          1,
          "A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556",
          "A spread argument must either have a tuple type or be passed to a rest parameter.",
        ),
      Expected_0_type_arguments_but_got_1: S(
        2558,
        1,
        "Expected_0_type_arguments_but_got_1_2558",
        "Expected {0} type arguments, but got {1}.",
      ),
      Type_0_has_no_properties_in_common_with_type_1: S(
        2559,
        1,
        "Type_0_has_no_properties_in_common_with_type_1_2559",
        "Type '{0}' has no properties in common with type '{1}'.",
      ),
      Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:
        S(
          2560,
          1,
          "Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560",
          "Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?",
        ),
      Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:
        S(
          2561,
          1,
          "Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561",
          "Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?",
        ),
      Base_class_expressions_cannot_reference_class_type_parameters: S(
        2562,
        1,
        "Base_class_expressions_cannot_reference_class_type_parameters_2562",
        "Base class expressions cannot reference class type parameters.",
      ),
      The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:
        S(
          2563,
          1,
          "The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563",
          "The containing function or module body is too large for control flow analysis.",
        ),
      Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:
        S(
          2564,
          1,
          "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564",
          "Property '{0}' has no initializer and is not definitely assigned in the constructor.",
        ),
      Property_0_is_used_before_being_assigned: S(
        2565,
        1,
        "Property_0_is_used_before_being_assigned_2565",
        "Property '{0}' is used before being assigned.",
      ),
      A_rest_element_cannot_have_a_property_name: S(
        2566,
        1,
        "A_rest_element_cannot_have_a_property_name_2566",
        "A rest element cannot have a property name.",
      ),
      Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:
        S(
          2567,
          1,
          "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567",
          "Enum declarations can only merge with namespace or other enum declarations.",
        ),
      Property_0_may_not_exist_on_type_1_Did_you_mean_2: S(
        2568,
        1,
        "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568",
        "Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?",
      ),
      Could_not_find_name_0_Did_you_mean_1: S(
        2570,
        1,
        "Could_not_find_name_0_Did_you_mean_1_2570",
        "Could not find name '{0}'. Did you mean '{1}'?",
      ),
      Object_is_of_type_unknown: S(
        2571,
        1,
        "Object_is_of_type_unknown_2571",
        "Object is of type 'unknown'.",
      ),
      A_rest_element_type_must_be_an_array_type: S(
        2574,
        1,
        "A_rest_element_type_must_be_an_array_type_2574",
        "A rest element type must be an array type.",
      ),
      No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:
        S(
          2575,
          1,
          "No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575",
          "No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments.",
        ),
      Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:
        S(
          2576,
          1,
          "Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576",
          "Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?",
        ),
      Return_type_annotation_circularly_references_itself: S(
        2577,
        1,
        "Return_type_annotation_circularly_references_itself_2577",
        "Return type annotation circularly references itself.",
      ),
      Unused_ts_expect_error_directive: S(
        2578,
        1,
        "Unused_ts_expect_error_directive_2578",
        "Unused '@ts-expect-error' directive.",
      ),
      Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:
        S(
          2580,
          1,
          "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580",
          "Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.",
        ),
      Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:
        S(
          2581,
          1,
          "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581",
          "Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`.",
        ),
      Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:
        S(
          2582,
          1,
          "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582",
          "Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.",
        ),
      Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:
        S(
          2583,
          1,
          "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583",
          "Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later.",
        ),
      Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:
        S(
          2584,
          1,
          "Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584",
          "Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.",
        ),
      _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:
        S(
          2585,
          1,
          "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585",
          "'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later.",
        ),
      Cannot_assign_to_0_because_it_is_a_constant: S(
        2588,
        1,
        "Cannot_assign_to_0_because_it_is_a_constant_2588",
        "Cannot assign to '{0}' because it is a constant.",
      ),
      Type_instantiation_is_excessively_deep_and_possibly_infinite: S(
        2589,
        1,
        "Type_instantiation_is_excessively_deep_and_possibly_infinite_2589",
        "Type instantiation is excessively deep and possibly infinite.",
      ),
      Expression_produces_a_union_type_that_is_too_complex_to_represent: S(
        2590,
        1,
        "Expression_produces_a_union_type_that_is_too_complex_to_represent_2590",
        "Expression produces a union type that is too complex to represent.",
      ),
      Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:
        S(
          2591,
          1,
          "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591",
          "Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.",
        ),
      Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:
        S(
          2592,
          1,
          "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592",
          "Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig.",
        ),
      Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:
        S(
          2593,
          1,
          "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593",
          "Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig.",
        ),
      This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:
        S(
          2594,
          1,
          "This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594",
          "This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag.",
        ),
      _0_can_only_be_imported_by_using_a_default_import: S(
        2595,
        1,
        "_0_can_only_be_imported_by_using_a_default_import_2595",
        "'{0}' can only be imported by using a default import.",
      ),
      _0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:
        S(
          2596,
          1,
          "_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596",
          "'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import.",
        ),
      _0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:
        S(
          2597,
          1,
          "_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597",
          "'{0}' can only be imported by using a 'require' call or by using a default import.",
        ),
      _0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:
        S(
          2598,
          1,
          "_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598",
          "'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import.",
        ),
      JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:
        S(
          2602,
          1,
          "JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602",
          "JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist.",
        ),
      Property_0_in_type_1_is_not_assignable_to_type_2: S(
        2603,
        1,
        "Property_0_in_type_1_is_not_assignable_to_type_2_2603",
        "Property '{0}' in type '{1}' is not assignable to type '{2}'.",
      ),
      JSX_element_type_0_does_not_have_any_construct_or_call_signatures: S(
        2604,
        1,
        "JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604",
        "JSX element type '{0}' does not have any construct or call signatures.",
      ),
      Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:
        S(
          2606,
          1,
          "Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606",
          "Property '{0}' of JSX spread attribute is not assignable to target property.",
        ),
      JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:
        S(
          2607,
          1,
          "JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607",
          "JSX element class does not support attributes because it does not have a '{0}' property.",
        ),
      The_global_type_JSX_0_may_not_have_more_than_one_property: S(
        2608,
        1,
        "The_global_type_JSX_0_may_not_have_more_than_one_property_2608",
        "The global type 'JSX.{0}' may not have more than one property.",
      ),
      JSX_spread_child_must_be_an_array_type: S(
        2609,
        1,
        "JSX_spread_child_must_be_an_array_type_2609",
        "JSX spread child must be an array type.",
      ),
      _0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:
        S(
          2610,
          1,
          "_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610",
          "'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property.",
        ),
      _0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:
        S(
          2611,
          1,
          "_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611",
          "'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor.",
        ),
      Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:
        S(
          2612,
          1,
          "Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612",
          "Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.",
        ),
      Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:
        S(
          2613,
          1,
          "Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613",
          "Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?",
        ),
      Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:
        S(
          2614,
          1,
          "Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614",
          "Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?",
        ),
      Type_of_property_0_circularly_references_itself_in_mapped_type_1: S(
        2615,
        1,
        "Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615",
        "Type of property '{0}' circularly references itself in mapped type '{1}'.",
      ),
      _0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:
        S(
          2616,
          1,
          "_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616",
          "'{0}' can only be imported by using 'import {1} = require({2})' or a default import.",
        ),
      _0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:
        S(
          2617,
          1,
          "_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617",
          "'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import.",
        ),
      Source_has_0_element_s_but_target_requires_1: S(
        2618,
        1,
        "Source_has_0_element_s_but_target_requires_1_2618",
        "Source has {0} element(s) but target requires {1}.",
      ),
      Source_has_0_element_s_but_target_allows_only_1: S(
        2619,
        1,
        "Source_has_0_element_s_but_target_allows_only_1_2619",
        "Source has {0} element(s) but target allows only {1}.",
      ),
      Target_requires_0_element_s_but_source_may_have_fewer: S(
        2620,
        1,
        "Target_requires_0_element_s_but_source_may_have_fewer_2620",
        "Target requires {0} element(s) but source may have fewer.",
      ),
      Target_allows_only_0_element_s_but_source_may_have_more: S(
        2621,
        1,
        "Target_allows_only_0_element_s_but_source_may_have_more_2621",
        "Target allows only {0} element(s) but source may have more.",
      ),
      Source_provides_no_match_for_required_element_at_position_0_in_target: S(
        2623,
        1,
        "Source_provides_no_match_for_required_element_at_position_0_in_target_2623",
        "Source provides no match for required element at position {0} in target.",
      ),
      Source_provides_no_match_for_variadic_element_at_position_0_in_target: S(
        2624,
        1,
        "Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624",
        "Source provides no match for variadic element at position {0} in target.",
      ),
      Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:
        S(
          2625,
          1,
          "Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625",
          "Variadic element at position {0} in source does not match element at position {1} in target.",
        ),
      Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:
        S(
          2626,
          1,
          "Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626",
          "Type at position {0} in source is not compatible with type at position {1} in target.",
        ),
      Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:
        S(
          2627,
          1,
          "Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627",
          "Type at positions {0} through {1} in source is not compatible with type at position {2} in target.",
        ),
      Cannot_assign_to_0_because_it_is_an_enum: S(
        2628,
        1,
        "Cannot_assign_to_0_because_it_is_an_enum_2628",
        "Cannot assign to '{0}' because it is an enum.",
      ),
      Cannot_assign_to_0_because_it_is_a_class: S(
        2629,
        1,
        "Cannot_assign_to_0_because_it_is_a_class_2629",
        "Cannot assign to '{0}' because it is a class.",
      ),
      Cannot_assign_to_0_because_it_is_a_function: S(
        2630,
        1,
        "Cannot_assign_to_0_because_it_is_a_function_2630",
        "Cannot assign to '{0}' because it is a function.",
      ),
      Cannot_assign_to_0_because_it_is_a_namespace: S(
        2631,
        1,
        "Cannot_assign_to_0_because_it_is_a_namespace_2631",
        "Cannot assign to '{0}' because it is a namespace.",
      ),
      Cannot_assign_to_0_because_it_is_an_import: S(
        2632,
        1,
        "Cannot_assign_to_0_because_it_is_an_import_2632",
        "Cannot assign to '{0}' because it is an import.",
      ),
      JSX_property_access_expressions_cannot_include_JSX_namespace_names: S(
        2633,
        1,
        "JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633",
        "JSX property access expressions cannot include JSX namespace names",
      ),
      _0_index_signatures_are_incompatible: S(
        2634,
        1,
        "_0_index_signatures_are_incompatible_2634",
        "'{0}' index signatures are incompatible.",
      ),
      Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:
        S(
          2635,
          1,
          "Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635",
          "Type '{0}' has no signatures for which the type argument list is applicable.",
        ),
      Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation: S(
        2636,
        1,
        "Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636",
        "Type '{0}' is not assignable to type '{1}' as implied by variance annotation.",
      ),
      Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:
        S(
          2637,
          1,
          "Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637",
          "Variance annotations are only supported in type aliases for object, function, constructor, and mapped types.",
        ),
      Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:
        S(
          2638,
          1,
          "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638",
          "Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator.",
        ),
      React_components_cannot_include_JSX_namespace_names: S(
        2639,
        1,
        "React_components_cannot_include_JSX_namespace_names_2639",
        "React components cannot include JSX namespace names",
      ),
      Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:
        S(
          2649,
          1,
          "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649",
          "Cannot augment module '{0}' with value exports because it resolves to a non-module entity.",
        ),
      Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:
        S(
          2650,
          1,
          "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650",
          "Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more.",
        ),
      A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:
        S(
          2651,
          1,
          "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651",
          "A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums.",
        ),
      Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:
        S(
          2652,
          1,
          "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652",
          "Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead.",
        ),
      Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:
        S(
          2653,
          1,
          "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653",
          "Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'.",
        ),
      Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:
        S(
          2654,
          1,
          "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654",
          "Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}.",
        ),
      Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:
        S(
          2655,
          1,
          "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655",
          "Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more.",
        ),
      Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:
        S(
          2656,
          1,
          "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656",
          "Non-abstract class expression is missing implementations for the following members of '{0}': {1}.",
        ),
      JSX_expressions_must_have_one_parent_element: S(
        2657,
        1,
        "JSX_expressions_must_have_one_parent_element_2657",
        "JSX expressions must have one parent element.",
      ),
      Type_0_provides_no_match_for_the_signature_1: S(
        2658,
        1,
        "Type_0_provides_no_match_for_the_signature_1_2658",
        "Type '{0}' provides no match for the signature '{1}'.",
      ),
      super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:
        S(
          2659,
          1,
          "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659",
          "'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher.",
        ),
      super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:
        S(
          2660,
          1,
          "super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660",
          "'super' can only be referenced in members of derived classes or object literal expressions.",
        ),
      Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module: S(
        2661,
        1,
        "Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661",
        "Cannot export '{0}'. Only local declarations can be exported from a module.",
      ),
      Cannot_find_name_0_Did_you_mean_the_static_member_1_0: S(
        2662,
        1,
        "Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662",
        "Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?",
      ),
      Cannot_find_name_0_Did_you_mean_the_instance_member_this_0: S(
        2663,
        1,
        "Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663",
        "Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?",
      ),
      Invalid_module_name_in_augmentation_module_0_cannot_be_found: S(
        2664,
        1,
        "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664",
        "Invalid module name in augmentation, module '{0}' cannot be found.",
      ),
      Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:
        S(
          2665,
          1,
          "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665",
          "Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented.",
        ),
      Exports_and_export_assignments_are_not_permitted_in_module_augmentations:
        S(
          2666,
          1,
          "Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666",
          "Exports and export assignments are not permitted in module augmentations.",
        ),
      Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:
        S(
          2667,
          1,
          "Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667",
          "Imports are not permitted in module augmentations. Consider moving them to the enclosing external module.",
        ),
      export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:
        S(
          2668,
          1,
          "export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668",
          "'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible.",
        ),
      Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:
        S(
          2669,
          1,
          "Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669",
          "Augmentations for the global scope can only be directly nested in external modules or ambient module declarations.",
        ),
      Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:
        S(
          2670,
          1,
          "Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670",
          "Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context.",
        ),
      Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity: S(
        2671,
        1,
        "Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671",
        "Cannot augment module '{0}' because it resolves to a non-module entity.",
      ),
      Cannot_assign_a_0_constructor_type_to_a_1_constructor_type: S(
        2672,
        1,
        "Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672",
        "Cannot assign a '{0}' constructor type to a '{1}' constructor type.",
      ),
      Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:
        S(
          2673,
          1,
          "Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673",
          "Constructor of class '{0}' is private and only accessible within the class declaration.",
        ),
      Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:
        S(
          2674,
          1,
          "Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674",
          "Constructor of class '{0}' is protected and only accessible within the class declaration.",
        ),
      Cannot_extend_a_class_0_Class_constructor_is_marked_as_private: S(
        2675,
        1,
        "Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675",
        "Cannot extend a class '{0}'. Class constructor is marked as private.",
      ),
      Accessors_must_both_be_abstract_or_non_abstract: S(
        2676,
        1,
        "Accessors_must_both_be_abstract_or_non_abstract_2676",
        "Accessors must both be abstract or non-abstract.",
      ),
      A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type: S(
        2677,
        1,
        "A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677",
        "A type predicate's type must be assignable to its parameter's type.",
      ),
      Type_0_is_not_comparable_to_type_1: S(
        2678,
        1,
        "Type_0_is_not_comparable_to_type_1_2678",
        "Type '{0}' is not comparable to type '{1}'.",
      ),
      A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:
        S(
          2679,
          1,
          "A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679",
          "A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'.",
        ),
      A_0_parameter_must_be_the_first_parameter: S(
        2680,
        1,
        "A_0_parameter_must_be_the_first_parameter_2680",
        "A '{0}' parameter must be the first parameter.",
      ),
      A_constructor_cannot_have_a_this_parameter: S(
        2681,
        1,
        "A_constructor_cannot_have_a_this_parameter_2681",
        "A constructor cannot have a 'this' parameter.",
      ),
      this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:
        S(
          2683,
          1,
          "this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683",
          "'this' implicitly has type 'any' because it does not have a type annotation.",
        ),
      The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:
        S(
          2684,
          1,
          "The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684",
          "The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'.",
        ),
      The_this_types_of_each_signature_are_incompatible: S(
        2685,
        1,
        "The_this_types_of_each_signature_are_incompatible_2685",
        "The 'this' types of each signature are incompatible.",
      ),
      _0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:
        S(
          2686,
          1,
          "_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686",
          "'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead.",
        ),
      All_declarations_of_0_must_have_identical_modifiers: S(
        2687,
        1,
        "All_declarations_of_0_must_have_identical_modifiers_2687",
        "All declarations of '{0}' must have identical modifiers.",
      ),
      Cannot_find_type_definition_file_for_0: S(
        2688,
        1,
        "Cannot_find_type_definition_file_for_0_2688",
        "Cannot find type definition file for '{0}'.",
      ),
      Cannot_extend_an_interface_0_Did_you_mean_implements: S(
        2689,
        1,
        "Cannot_extend_an_interface_0_Did_you_mean_implements_2689",
        "Cannot extend an interface '{0}'. Did you mean 'implements'?",
      ),
      _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:
        S(
          2690,
          1,
          "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690",
          "'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?",
        ),
      _0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:
        S(
          2692,
          1,
          "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692",
          "'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible.",
        ),
      _0_only_refers_to_a_type_but_is_being_used_as_a_value_here: S(
        2693,
        1,
        "_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693",
        "'{0}' only refers to a type, but is being used as a value here.",
      ),
      Namespace_0_has_no_exported_member_1: S(
        2694,
        1,
        "Namespace_0_has_no_exported_member_1_2694",
        "Namespace '{0}' has no exported member '{1}'.",
      ),
      Left_side_of_comma_operator_is_unused_and_has_no_side_effects: S(
        2695,
        1,
        "Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695",
        "Left side of comma operator is unused and has no side effects.",
        !0,
      ),
      The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:
        S(
          2696,
          1,
          "The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696",
          "The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?",
        ),
      An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:
        S(
          2697,
          1,
          "An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697",
          "An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.",
        ),
      Spread_types_may_only_be_created_from_object_types: S(
        2698,
        1,
        "Spread_types_may_only_be_created_from_object_types_2698",
        "Spread types may only be created from object types.",
      ),
      Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:
        S(
          2699,
          1,
          "Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699",
          "Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'.",
        ),
      Rest_types_may_only_be_created_from_object_types: S(
        2700,
        1,
        "Rest_types_may_only_be_created_from_object_types_2700",
        "Rest types may only be created from object types.",
      ),
      The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:
        S(
          2701,
          1,
          "The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701",
          "The target of an object rest assignment must be a variable or a property access.",
        ),
      _0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here: S(
        2702,
        1,
        "_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702",
        "'{0}' only refers to a type, but is being used as a namespace here.",
      ),
      The_operand_of_a_delete_operator_must_be_a_property_reference: S(
        2703,
        1,
        "The_operand_of_a_delete_operator_must_be_a_property_reference_2703",
        "The operand of a 'delete' operator must be a property reference.",
      ),
      The_operand_of_a_delete_operator_cannot_be_a_read_only_property: S(
        2704,
        1,
        "The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704",
        "The operand of a 'delete' operator cannot be a read-only property.",
      ),
      An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:
        S(
          2705,
          1,
          "An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705",
          "An async function or method in ES5 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.",
        ),
      Required_type_parameters_may_not_follow_optional_type_parameters: S(
        2706,
        1,
        "Required_type_parameters_may_not_follow_optional_type_parameters_2706",
        "Required type parameters may not follow optional type parameters.",
      ),
      Generic_type_0_requires_between_1_and_2_type_arguments: S(
        2707,
        1,
        "Generic_type_0_requires_between_1_and_2_type_arguments_2707",
        "Generic type '{0}' requires between {1} and {2} type arguments.",
      ),
      Cannot_use_namespace_0_as_a_value: S(
        2708,
        1,
        "Cannot_use_namespace_0_as_a_value_2708",
        "Cannot use namespace '{0}' as a value.",
      ),
      Cannot_use_namespace_0_as_a_type: S(
        2709,
        1,
        "Cannot_use_namespace_0_as_a_type_2709",
        "Cannot use namespace '{0}' as a type.",
      ),
      _0_are_specified_twice_The_attribute_named_0_will_be_overwritten: S(
        2710,
        1,
        "_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710",
        "'{0}' are specified twice. The attribute named '{0}' will be overwritten.",
      ),
      A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:
        S(
          2711,
          1,
          "A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711",
          "A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.",
        ),
      A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:
        S(
          2712,
          1,
          "A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712",
          "A dynamic import call in ES5 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.",
        ),
      Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:
        S(
          2713,
          1,
          "Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",
          `Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`,
        ),
      The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:
        S(
          2714,
          1,
          "The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714",
          "The expression of an export assignment must be an identifier or qualified name in an ambient context.",
        ),
      Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor: S(
        2715,
        1,
        "Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715",
        "Abstract property '{0}' in class '{1}' cannot be accessed in the constructor.",
      ),
      Type_parameter_0_has_a_circular_default: S(
        2716,
        1,
        "Type_parameter_0_has_a_circular_default_2716",
        "Type parameter '{0}' has a circular default.",
      ),
      Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:
        S(
          2717,
          1,
          "Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717",
          "Subsequent property declarations must have the same type.  Property '{0}' must be of type '{1}', but here has type '{2}'.",
        ),
      Duplicate_property_0: S(
        2718,
        1,
        "Duplicate_property_0_2718",
        "Duplicate property '{0}'.",
      ),
      Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:
        S(
          2719,
          1,
          "Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719",
          "Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated.",
        ),
      Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:
        S(
          2720,
          1,
          "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720",
          "Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?",
        ),
      Cannot_invoke_an_object_which_is_possibly_null: S(
        2721,
        1,
        "Cannot_invoke_an_object_which_is_possibly_null_2721",
        "Cannot invoke an object which is possibly 'null'.",
      ),
      Cannot_invoke_an_object_which_is_possibly_undefined: S(
        2722,
        1,
        "Cannot_invoke_an_object_which_is_possibly_undefined_2722",
        "Cannot invoke an object which is possibly 'undefined'.",
      ),
      Cannot_invoke_an_object_which_is_possibly_null_or_undefined: S(
        2723,
        1,
        "Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723",
        "Cannot invoke an object which is possibly 'null' or 'undefined'.",
      ),
      _0_has_no_exported_member_named_1_Did_you_mean_2: S(
        2724,
        1,
        "_0_has_no_exported_member_named_1_Did_you_mean_2_2724",
        "'{0}' has no exported member named '{1}'. Did you mean '{2}'?",
      ),
      Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0: S(
        2725,
        1,
        "Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725",
        "Class name cannot be 'Object' when targeting ES5 and above with module {0}.",
      ),
      Cannot_find_lib_definition_for_0: S(
        2726,
        1,
        "Cannot_find_lib_definition_for_0_2726",
        "Cannot find lib definition for '{0}'.",
      ),
      Cannot_find_lib_definition_for_0_Did_you_mean_1: S(
        2727,
        1,
        "Cannot_find_lib_definition_for_0_Did_you_mean_1_2727",
        "Cannot find lib definition for '{0}'. Did you mean '{1}'?",
      ),
      _0_is_declared_here: S(
        2728,
        3,
        "_0_is_declared_here_2728",
        "'{0}' is declared here.",
      ),
      Property_0_is_used_before_its_initialization: S(
        2729,
        1,
        "Property_0_is_used_before_its_initialization_2729",
        "Property '{0}' is used before its initialization.",
      ),
      An_arrow_function_cannot_have_a_this_parameter: S(
        2730,
        1,
        "An_arrow_function_cannot_have_a_this_parameter_2730",
        "An arrow function cannot have a 'this' parameter.",
      ),
      Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:
        S(
          2731,
          1,
          "Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731",
          "Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'.",
        ),
      Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:
        S(
          2732,
          1,
          "Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732",
          "Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension.",
        ),
      Property_0_was_also_declared_here: S(
        2733,
        1,
        "Property_0_was_also_declared_here_2733",
        "Property '{0}' was also declared here.",
      ),
      Are_you_missing_a_semicolon: S(
        2734,
        1,
        "Are_you_missing_a_semicolon_2734",
        "Are you missing a semicolon?",
      ),
      Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1: S(
        2735,
        1,
        "Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735",
        "Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?",
      ),
      Operator_0_cannot_be_applied_to_type_1: S(
        2736,
        1,
        "Operator_0_cannot_be_applied_to_type_1_2736",
        "Operator '{0}' cannot be applied to type '{1}'.",
      ),
      BigInt_literals_are_not_available_when_targeting_lower_than_ES2020: S(
        2737,
        1,
        "BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737",
        "BigInt literals are not available when targeting lower than ES2020.",
      ),
      An_outer_value_of_this_is_shadowed_by_this_container: S(
        2738,
        3,
        "An_outer_value_of_this_is_shadowed_by_this_container_2738",
        "An outer value of 'this' is shadowed by this container.",
      ),
      Type_0_is_missing_the_following_properties_from_type_1_Colon_2: S(
        2739,
        1,
        "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739",
        "Type '{0}' is missing the following properties from type '{1}': {2}",
      ),
      Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:
        S(
          2740,
          1,
          "Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740",
          "Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more.",
        ),
      Property_0_is_missing_in_type_1_but_required_in_type_2: S(
        2741,
        1,
        "Property_0_is_missing_in_type_1_but_required_in_type_2_2741",
        "Property '{0}' is missing in type '{1}' but required in type '{2}'.",
      ),
      The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:
        S(
          2742,
          1,
          "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742",
          "The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary.",
        ),
      No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:
        S(
          2743,
          1,
          "No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743",
          "No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments.",
        ),
      Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:
        S(
          2744,
          1,
          "Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744",
          "Type parameter defaults can only reference previously declared type parameters.",
        ),
      This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:
        S(
          2745,
          1,
          "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745",
          "This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided.",
        ),
      This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:
        S(
          2746,
          1,
          "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746",
          "This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided.",
        ),
      _0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:
        S(
          2747,
          1,
          "_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747",
          "'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'.",
        ),
      Cannot_access_ambient_const_enums_when_0_is_enabled: S(
        2748,
        1,
        "Cannot_access_ambient_const_enums_when_0_is_enabled_2748",
        "Cannot access ambient const enums when '{0}' is enabled.",
      ),
      _0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:
        S(
          2749,
          1,
          "_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749",
          "'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?",
        ),
      The_implementation_signature_is_declared_here: S(
        2750,
        1,
        "The_implementation_signature_is_declared_here_2750",
        "The implementation signature is declared here.",
      ),
      Circularity_originates_in_type_at_this_location: S(
        2751,
        1,
        "Circularity_originates_in_type_at_this_location_2751",
        "Circularity originates in type at this location.",
      ),
      The_first_export_default_is_here: S(
        2752,
        1,
        "The_first_export_default_is_here_2752",
        "The first export default is here.",
      ),
      Another_export_default_is_here: S(
        2753,
        1,
        "Another_export_default_is_here_2753",
        "Another export default is here.",
      ),
      super_may_not_use_type_arguments: S(
        2754,
        1,
        "super_may_not_use_type_arguments_2754",
        "'super' may not use type arguments.",
      ),
      No_constituent_of_type_0_is_callable: S(
        2755,
        1,
        "No_constituent_of_type_0_is_callable_2755",
        "No constituent of type '{0}' is callable.",
      ),
      Not_all_constituents_of_type_0_are_callable: S(
        2756,
        1,
        "Not_all_constituents_of_type_0_are_callable_2756",
        "Not all constituents of type '{0}' are callable.",
      ),
      Type_0_has_no_call_signatures: S(
        2757,
        1,
        "Type_0_has_no_call_signatures_2757",
        "Type '{0}' has no call signatures.",
      ),
      Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:
        S(
          2758,
          1,
          "Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758",
          "Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other.",
        ),
      No_constituent_of_type_0_is_constructable: S(
        2759,
        1,
        "No_constituent_of_type_0_is_constructable_2759",
        "No constituent of type '{0}' is constructable.",
      ),
      Not_all_constituents_of_type_0_are_constructable: S(
        2760,
        1,
        "Not_all_constituents_of_type_0_are_constructable_2760",
        "Not all constituents of type '{0}' are constructable.",
      ),
      Type_0_has_no_construct_signatures: S(
        2761,
        1,
        "Type_0_has_no_construct_signatures_2761",
        "Type '{0}' has no construct signatures.",
      ),
      Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:
        S(
          2762,
          1,
          "Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762",
          "Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other.",
        ),
      Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:
        S(
          2763,
          1,
          "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763",
          "Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'.",
        ),
      Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:
        S(
          2764,
          1,
          "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764",
          "Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'.",
        ),
      Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:
        S(
          2765,
          1,
          "Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765",
          "Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'.",
        ),
      Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:
        S(
          2766,
          1,
          "Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766",
          "Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'.",
        ),
      The_0_property_of_an_iterator_must_be_a_method: S(
        2767,
        1,
        "The_0_property_of_an_iterator_must_be_a_method_2767",
        "The '{0}' property of an iterator must be a method.",
      ),
      The_0_property_of_an_async_iterator_must_be_a_method: S(
        2768,
        1,
        "The_0_property_of_an_async_iterator_must_be_a_method_2768",
        "The '{0}' property of an async iterator must be a method.",
      ),
      No_overload_matches_this_call: S(
        2769,
        1,
        "No_overload_matches_this_call_2769",
        "No overload matches this call.",
      ),
      The_last_overload_gave_the_following_error: S(
        2770,
        1,
        "The_last_overload_gave_the_following_error_2770",
        "The last overload gave the following error.",
      ),
      The_last_overload_is_declared_here: S(
        2771,
        1,
        "The_last_overload_is_declared_here_2771",
        "The last overload is declared here.",
      ),
      Overload_0_of_1_2_gave_the_following_error: S(
        2772,
        1,
        "Overload_0_of_1_2_gave_the_following_error_2772",
        "Overload {0} of {1}, '{2}', gave the following error.",
      ),
      Did_you_forget_to_use_await: S(
        2773,
        1,
        "Did_you_forget_to_use_await_2773",
        "Did you forget to use 'await'?",
      ),
      This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:
        S(
          2774,
          1,
          "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774",
          "This condition will always return true since this function is always defined. Did you mean to call it instead?",
        ),
      Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:
        S(
          2775,
          1,
          "Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775",
          "Assertions require every name in the call target to be declared with an explicit type annotation.",
        ),
      Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:
        S(
          2776,
          1,
          "Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776",
          "Assertions require the call target to be an identifier or qualified name.",
        ),
      The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:
        S(
          2777,
          1,
          "The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777",
          "The operand of an increment or decrement operator may not be an optional property access.",
        ),
      The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:
        S(
          2778,
          1,
          "The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778",
          "The target of an object rest assignment may not be an optional property access.",
        ),
      The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:
        S(
          2779,
          1,
          "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779",
          "The left-hand side of an assignment expression may not be an optional property access.",
        ),
      The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:
        S(
          2780,
          1,
          "The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780",
          "The left-hand side of a 'for...in' statement may not be an optional property access.",
        ),
      The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:
        S(
          2781,
          1,
          "The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781",
          "The left-hand side of a 'for...of' statement may not be an optional property access.",
        ),
      _0_needs_an_explicit_type_annotation: S(
        2782,
        3,
        "_0_needs_an_explicit_type_annotation_2782",
        "'{0}' needs an explicit type annotation.",
      ),
      _0_is_specified_more_than_once_so_this_usage_will_be_overwritten: S(
        2783,
        1,
        "_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783",
        "'{0}' is specified more than once, so this usage will be overwritten.",
      ),
      get_and_set_accessors_cannot_declare_this_parameters: S(
        2784,
        1,
        "get_and_set_accessors_cannot_declare_this_parameters_2784",
        "'get' and 'set' accessors cannot declare 'this' parameters.",
      ),
      This_spread_always_overwrites_this_property: S(
        2785,
        1,
        "This_spread_always_overwrites_this_property_2785",
        "This spread always overwrites this property.",
      ),
      _0_cannot_be_used_as_a_JSX_component: S(
        2786,
        1,
        "_0_cannot_be_used_as_a_JSX_component_2786",
        "'{0}' cannot be used as a JSX component.",
      ),
      Its_return_type_0_is_not_a_valid_JSX_element: S(
        2787,
        1,
        "Its_return_type_0_is_not_a_valid_JSX_element_2787",
        "Its return type '{0}' is not a valid JSX element.",
      ),
      Its_instance_type_0_is_not_a_valid_JSX_element: S(
        2788,
        1,
        "Its_instance_type_0_is_not_a_valid_JSX_element_2788",
        "Its instance type '{0}' is not a valid JSX element.",
      ),
      Its_element_type_0_is_not_a_valid_JSX_element: S(
        2789,
        1,
        "Its_element_type_0_is_not_a_valid_JSX_element_2789",
        "Its element type '{0}' is not a valid JSX element.",
      ),
      The_operand_of_a_delete_operator_must_be_optional: S(
        2790,
        1,
        "The_operand_of_a_delete_operator_must_be_optional_2790",
        "The operand of a 'delete' operator must be optional.",
      ),
      Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:
        S(
          2791,
          1,
          "Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791",
          "Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.",
        ),
      Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:
        S(
          2792,
          1,
          "Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792",
          "Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?",
        ),
      The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:
        S(
          2793,
          1,
          "The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793",
          "The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.",
        ),
      Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:
        S(
          2794,
          1,
          "Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794",
          "Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?",
        ),
      The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:
        S(
          2795,
          1,
          "The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795",
          "The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types.",
        ),
      It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:
        S(
          2796,
          1,
          "It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796",
          "It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked.",
        ),
      A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:
        S(
          2797,
          1,
          "A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797",
          "A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'.",
        ),
      The_declaration_was_marked_as_deprecated_here: S(
        2798,
        1,
        "The_declaration_was_marked_as_deprecated_here_2798",
        "The declaration was marked as deprecated here.",
      ),
      Type_produces_a_tuple_type_that_is_too_large_to_represent: S(
        2799,
        1,
        "Type_produces_a_tuple_type_that_is_too_large_to_represent_2799",
        "Type produces a tuple type that is too large to represent.",
      ),
      Expression_produces_a_tuple_type_that_is_too_large_to_represent: S(
        2800,
        1,
        "Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800",
        "Expression produces a tuple type that is too large to represent.",
      ),
      This_condition_will_always_return_true_since_this_0_is_always_defined: S(
        2801,
        1,
        "This_condition_will_always_return_true_since_this_0_is_always_defined_2801",
        "This condition will always return true since this '{0}' is always defined.",
      ),
      Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:
        S(
          2802,
          1,
          "Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802",
          "Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.",
        ),
      Cannot_assign_to_private_method_0_Private_methods_are_not_writable: S(
        2803,
        1,
        "Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803",
        "Cannot assign to private method '{0}'. Private methods are not writable.",
      ),
      Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:
        S(
          2804,
          1,
          "Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804",
          "Duplicate identifier '{0}'. Static and instance elements cannot share the same private name.",
        ),
      Private_accessor_was_defined_without_a_getter: S(
        2806,
        1,
        "Private_accessor_was_defined_without_a_getter_2806",
        "Private accessor was defined without a getter.",
      ),
      This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:
        S(
          2807,
          1,
          "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807",
          "This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'.",
        ),
      A_get_accessor_must_be_at_least_as_accessible_as_the_setter: S(
        2808,
        1,
        "A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808",
        "A get accessor must be at least as accessible as the setter",
      ),
      Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:
        S(
          2809,
          1,
          "Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809",
          "Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses.",
        ),
      Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:
        S(
          2810,
          1,
          "Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810",
          "Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments.",
        ),
      Initializer_for_property_0: S(
        2811,
        1,
        "Initializer_for_property_0_2811",
        "Initializer for property '{0}'",
      ),
      Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:
        S(
          2812,
          1,
          "Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812",
          "Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'.",
        ),
      Class_declaration_cannot_implement_overload_list_for_0: S(
        2813,
        1,
        "Class_declaration_cannot_implement_overload_list_for_0_2813",
        "Class declaration cannot implement overload list for '{0}'.",
      ),
      Function_with_bodies_can_only_merge_with_classes_that_are_ambient: S(
        2814,
        1,
        "Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814",
        "Function with bodies can only merge with classes that are ambient.",
      ),
      arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks:
        S(
          2815,
          1,
          "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815",
          "'arguments' cannot be referenced in property initializers or class static initialization blocks.",
        ),
      Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class: S(
        2816,
        1,
        "Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816",
        "Cannot use 'this' in a static property initializer of a decorated class.",
      ),
      Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:
        S(
          2817,
          1,
          "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817",
          "Property '{0}' has no initializer and is not definitely assigned in a class static block.",
        ),
      Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:
        S(
          2818,
          1,
          "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818",
          "Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers.",
        ),
      Namespace_name_cannot_be_0: S(
        2819,
        1,
        "Namespace_name_cannot_be_0_2819",
        "Namespace name cannot be '{0}'.",
      ),
      Type_0_is_not_assignable_to_type_1_Did_you_mean_2: S(
        2820,
        1,
        "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820",
        "Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?",
      ),
      Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:
        S(
          2821,
          1,
          "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821",
          "Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'.",
        ),
      Import_assertions_cannot_be_used_with_type_only_imports_or_exports: S(
        2822,
        1,
        "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822",
        "Import assertions cannot be used with type-only imports or exports.",
      ),
      Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:
        S(
          2823,
          1,
          "Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823",
          "Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'.",
        ),
      Cannot_find_namespace_0_Did_you_mean_1: S(
        2833,
        1,
        "Cannot_find_namespace_0_Did_you_mean_1_2833",
        "Cannot find namespace '{0}'. Did you mean '{1}'?",
      ),
      Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:
        S(
          2834,
          1,
          "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834",
          "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.",
        ),
      Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:
        S(
          2835,
          1,
          "Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835",
          "Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?",
        ),
      Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:
        S(
          2836,
          1,
          "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836",
          "Import assertions are not allowed on statements that compile to CommonJS 'require' calls.",
        ),
      Import_assertion_values_must_be_string_literal_expressions: S(
        2837,
        1,
        "Import_assertion_values_must_be_string_literal_expressions_2837",
        "Import assertion values must be string literal expressions.",
      ),
      All_declarations_of_0_must_have_identical_constraints: S(
        2838,
        1,
        "All_declarations_of_0_must_have_identical_constraints_2838",
        "All declarations of '{0}' must have identical constraints.",
      ),
      This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:
        S(
          2839,
          1,
          "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839",
          "This condition will always return '{0}' since JavaScript compares objects by reference, not value.",
        ),
      An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:
        S(
          2840,
          1,
          "An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840",
          "An interface cannot extend a primitive type like '{0}'. It can only extend other named object types.",
        ),
      _0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:
        S(
          2842,
          1,
          "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842",
          "'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?",
        ),
      We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:
        S(
          2843,
          1,
          "We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843",
          "We can only write a type for '{0}' by adding a type for the entire parameter here.",
        ),
      Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:
        S(
          2844,
          1,
          "Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844",
          "Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor.",
        ),
      This_condition_will_always_return_0: S(
        2845,
        1,
        "This_condition_will_always_return_0_2845",
        "This condition will always return '{0}'.",
      ),
      A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:
        S(
          2846,
          1,
          "A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846",
          "A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?",
        ),
      The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:
        S(
          2848,
          1,
          "The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848",
          "The right-hand side of an 'instanceof' expression must not be an instantiation expression.",
        ),
      Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:
        S(
          2849,
          1,
          "Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849",
          "Target signature provides too few arguments. Expected {0} or more, but got {1}.",
        ),
      The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:
        S(
          2850,
          1,
          "The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850",
          "The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'.",
        ),
      The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:
        S(
          2851,
          1,
          "The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851",
          "The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'.",
        ),
      await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:
        S(
          2852,
          1,
          "await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852",
          "'await using' statements are only allowed within async functions and at the top levels of modules.",
        ),
      await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:
        S(
          2853,
          1,
          "await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853",
          "'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.",
        ),
      Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:
        S(
          2854,
          1,
          "Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854",
          "Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.",
        ),
      Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:
        S(
          2855,
          1,
          "Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855",
          "Class field '{0}' defined by the parent class is not accessible in the child class via super.",
        ),
      Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:
        S(
          2856,
          1,
          "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856",
          "Import attributes are not allowed on statements that compile to CommonJS 'require' calls.",
        ),
      Import_attributes_cannot_be_used_with_type_only_imports_or_exports: S(
        2857,
        1,
        "Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857",
        "Import attributes cannot be used with type-only imports or exports.",
      ),
      Import_attribute_values_must_be_string_literal_expressions: S(
        2858,
        1,
        "Import_attribute_values_must_be_string_literal_expressions_2858",
        "Import attribute values must be string literal expressions.",
      ),
      Excessive_complexity_comparing_types_0_and_1: S(
        2859,
        1,
        "Excessive_complexity_comparing_types_0_and_1_2859",
        "Excessive complexity comparing types '{0}' and '{1}'.",
      ),
      The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:
        S(
          2860,
          1,
          "The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860",
          "The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method.",
        ),
      An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:
        S(
          2861,
          1,
          "An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861",
          "An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression.",
        ),
      Type_0_is_generic_and_can_only_be_indexed_for_reading: S(
        2862,
        1,
        "Type_0_is_generic_and_can_only_be_indexed_for_reading_2862",
        "Type '{0}' is generic and can only be indexed for reading.",
      ),
      A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:
        S(
          2863,
          1,
          "A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863",
          "A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values.",
        ),
      A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:
        S(
          2864,
          1,
          "A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864",
          "A class cannot implement a primitive type like '{0}'. It can only implement other named object types.",
        ),
      Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:
        S(
          2865,
          1,
          "Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865",
          "Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.",
        ),
      Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:
        S(
          2866,
          1,
          "Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866",
          "Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled.",
        ),
      Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:
        S(
          2867,
          1,
          "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867",
          "Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`.",
        ),
      Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:
        S(
          2868,
          1,
          "Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868",
          "Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig.",
        ),
      Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:
        S(
          2869,
          1,
          "Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869",
          "Right operand of ?? is unreachable because the left operand is never nullish.",
        ),
      This_binary_expression_is_never_nullish_Are_you_missing_parentheses: S(
        2870,
        1,
        "This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870",
        "This binary expression is never nullish. Are you missing parentheses?",
      ),
      This_expression_is_always_nullish: S(
        2871,
        1,
        "This_expression_is_always_nullish_2871",
        "This expression is always nullish.",
      ),
      This_kind_of_expression_is_always_truthy: S(
        2872,
        1,
        "This_kind_of_expression_is_always_truthy_2872",
        "This kind of expression is always truthy.",
      ),
      This_kind_of_expression_is_always_falsy: S(
        2873,
        1,
        "This_kind_of_expression_is_always_falsy_2873",
        "This kind of expression is always falsy.",
      ),
      This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found: S(
        2874,
        1,
        "This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874",
        "This JSX tag requires '{0}' to be in scope, but it could not be found.",
      ),
      This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:
        S(
          2875,
          1,
          "This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875",
          "This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed.",
        ),
      This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:
        S(
          2876,
          1,
          "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876",
          'This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".',
        ),
      This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:
        S(
          2877,
          1,
          "This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877",
          "This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path.",
        ),
      This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:
        S(
          2878,
          1,
          "This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878",
          "This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files.",
        ),
      Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:
        S(
          2879,
          1,
          "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879",
          "Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found.",
        ),
      Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:
        S(
          2880,
          1,
          "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880",
          "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.",
        ),
      This_expression_is_never_nullish: S(
        2881,
        1,
        "This_expression_is_never_nullish_2881",
        "This expression is never nullish.",
      ),
      Import_declaration_0_is_using_private_name_1: S(
        4e3,
        1,
        "Import_declaration_0_is_using_private_name_1_4000",
        "Import declaration '{0}' is using private name '{1}'.",
      ),
      Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: S(
        4002,
        1,
        "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002",
        "Type parameter '{0}' of exported class has or is using private name '{1}'.",
      ),
      Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: S(
        4004,
        1,
        "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004",
        "Type parameter '{0}' of exported interface has or is using private name '{1}'.",
      ),
      Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:
        S(
          4006,
          1,
          "Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006",
          "Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'.",
        ),
      Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:
        S(
          4008,
          1,
          "Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008",
          "Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'.",
        ),
      Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:
        S(
          4010,
          1,
          "Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010",
          "Type parameter '{0}' of public static method from exported class has or is using private name '{1}'.",
        ),
      Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:
        S(
          4012,
          1,
          "Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012",
          "Type parameter '{0}' of public method from exported class has or is using private name '{1}'.",
        ),
      Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:
        S(
          4014,
          1,
          "Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014",
          "Type parameter '{0}' of method from exported interface has or is using private name '{1}'.",
        ),
      Type_parameter_0_of_exported_function_has_or_is_using_private_name_1: S(
        4016,
        1,
        "Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016",
        "Type parameter '{0}' of exported function has or is using private name '{1}'.",
      ),
      Implements_clause_of_exported_class_0_has_or_is_using_private_name_1: S(
        4019,
        1,
        "Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019",
        "Implements clause of exported class '{0}' has or is using private name '{1}'.",
      ),
      extends_clause_of_exported_class_0_has_or_is_using_private_name_1: S(
        4020,
        1,
        "extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020",
        "'extends' clause of exported class '{0}' has or is using private name '{1}'.",
      ),
      extends_clause_of_exported_class_has_or_is_using_private_name_0: S(
        4021,
        1,
        "extends_clause_of_exported_class_has_or_is_using_private_name_0_4021",
        "'extends' clause of exported class has or is using private name '{0}'.",
      ),
      extends_clause_of_exported_interface_0_has_or_is_using_private_name_1: S(
        4022,
        1,
        "extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022",
        "'extends' clause of exported interface '{0}' has or is using private name '{1}'.",
      ),
      Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4023,
          1,
          "Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023",
          "Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Exported_variable_0_has_or_is_using_name_1_from_private_module_2: S(
        4024,
        1,
        "Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024",
        "Exported variable '{0}' has or is using name '{1}' from private module '{2}'.",
      ),
      Exported_variable_0_has_or_is_using_private_name_1: S(
        4025,
        1,
        "Exported_variable_0_has_or_is_using_private_name_1_4025",
        "Exported variable '{0}' has or is using private name '{1}'.",
      ),
      Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4026,
          1,
          "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026",
          "Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4027,
          1,
          "Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027",
          "Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:
        S(
          4028,
          1,
          "Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028",
          "Public static property '{0}' of exported class has or is using private name '{1}'.",
        ),
      Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4029,
          1,
          "Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029",
          "Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4030,
          1,
          "Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030",
          "Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Public_property_0_of_exported_class_has_or_is_using_private_name_1: S(
        4031,
        1,
        "Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031",
        "Public property '{0}' of exported class has or is using private name '{1}'.",
      ),
      Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:
        S(
          4032,
          1,
          "Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032",
          "Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'.",
        ),
      Property_0_of_exported_interface_has_or_is_using_private_name_1: S(
        4033,
        1,
        "Property_0_of_exported_interface_has_or_is_using_private_name_1_4033",
        "Property '{0}' of exported interface has or is using private name '{1}'.",
      ),
      Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4034,
          1,
          "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034",
          "Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:
        S(
          4035,
          1,
          "Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035",
          "Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'.",
        ),
      Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4036,
          1,
          "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036",
          "Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:
        S(
          4037,
          1,
          "Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037",
          "Parameter type of public setter '{0}' from exported class has or is using private name '{1}'.",
        ),
      Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4038,
          1,
          "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038",
          "Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4039,
          1,
          "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039",
          "Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:
        S(
          4040,
          1,
          "Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040",
          "Return type of public static getter '{0}' from exported class has or is using private name '{1}'.",
        ),
      Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4041,
          1,
          "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041",
          "Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4042,
          1,
          "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042",
          "Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:
        S(
          4043,
          1,
          "Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043",
          "Return type of public getter '{0}' from exported class has or is using private name '{1}'.",
        ),
      Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:
        S(
          4044,
          1,
          "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044",
          "Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'.",
        ),
      Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:
        S(
          4045,
          1,
          "Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045",
          "Return type of constructor signature from exported interface has or is using private name '{0}'.",
        ),
      Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:
        S(
          4046,
          1,
          "Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046",
          "Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'.",
        ),
      Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:
        S(
          4047,
          1,
          "Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047",
          "Return type of call signature from exported interface has or is using private name '{0}'.",
        ),
      Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:
        S(
          4048,
          1,
          "Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048",
          "Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'.",
        ),
      Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:
        S(
          4049,
          1,
          "Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049",
          "Return type of index signature from exported interface has or is using private name '{0}'.",
        ),
      Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:
        S(
          4050,
          1,
          "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050",
          "Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named.",
        ),
      Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:
        S(
          4051,
          1,
          "Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051",
          "Return type of public static method from exported class has or is using name '{0}' from private module '{1}'.",
        ),
      Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:
        S(
          4052,
          1,
          "Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052",
          "Return type of public static method from exported class has or is using private name '{0}'.",
        ),
      Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:
        S(
          4053,
          1,
          "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053",
          "Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named.",
        ),
      Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:
        S(
          4054,
          1,
          "Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054",
          "Return type of public method from exported class has or is using name '{0}' from private module '{1}'.",
        ),
      Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:
        S(
          4055,
          1,
          "Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055",
          "Return type of public method from exported class has or is using private name '{0}'.",
        ),
      Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:
        S(
          4056,
          1,
          "Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056",
          "Return type of method from exported interface has or is using name '{0}' from private module '{1}'.",
        ),
      Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:
        S(
          4057,
          1,
          "Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057",
          "Return type of method from exported interface has or is using private name '{0}'.",
        ),
      Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:
        S(
          4058,
          1,
          "Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058",
          "Return type of exported function has or is using name '{0}' from external module {1} but cannot be named.",
        ),
      Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:
        S(
          4059,
          1,
          "Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059",
          "Return type of exported function has or is using name '{0}' from private module '{1}'.",
        ),
      Return_type_of_exported_function_has_or_is_using_private_name_0: S(
        4060,
        1,
        "Return_type_of_exported_function_has_or_is_using_private_name_0_4060",
        "Return type of exported function has or is using private name '{0}'.",
      ),
      Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4061,
          1,
          "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061",
          "Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4062,
          1,
          "Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062",
          "Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:
        S(
          4063,
          1,
          "Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063",
          "Parameter '{0}' of constructor from exported class has or is using private name '{1}'.",
        ),
      Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
        S(
          4064,
          1,
          "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064",
          "Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'.",
        ),
      Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:
        S(
          4065,
          1,
          "Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065",
          "Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'.",
        ),
      Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
        S(
          4066,
          1,
          "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066",
          "Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'.",
        ),
      Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:
        S(
          4067,
          1,
          "Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067",
          "Parameter '{0}' of call signature from exported interface has or is using private name '{1}'.",
        ),
      Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4068,
          1,
          "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068",
          "Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4069,
          1,
          "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069",
          "Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:
        S(
          4070,
          1,
          "Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070",
          "Parameter '{0}' of public static method from exported class has or is using private name '{1}'.",
        ),
      Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4071,
          1,
          "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071",
          "Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4072,
          1,
          "Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072",
          "Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:
        S(
          4073,
          1,
          "Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073",
          "Parameter '{0}' of public method from exported class has or is using private name '{1}'.",
        ),
      Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
        S(
          4074,
          1,
          "Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074",
          "Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'.",
        ),
      Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:
        S(
          4075,
          1,
          "Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075",
          "Parameter '{0}' of method from exported interface has or is using private name '{1}'.",
        ),
      Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4076,
          1,
          "Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076",
          "Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:
        S(
          4077,
          1,
          "Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077",
          "Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'.",
        ),
      Parameter_0_of_exported_function_has_or_is_using_private_name_1: S(
        4078,
        1,
        "Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078",
        "Parameter '{0}' of exported function has or is using private name '{1}'.",
      ),
      Exported_type_alias_0_has_or_is_using_private_name_1: S(
        4081,
        1,
        "Exported_type_alias_0_has_or_is_using_private_name_1_4081",
        "Exported type alias '{0}' has or is using private name '{1}'.",
      ),
      Default_export_of_the_module_has_or_is_using_private_name_0: S(
        4082,
        1,
        "Default_export_of_the_module_has_or_is_using_private_name_0_4082",
        "Default export of the module has or is using private name '{0}'.",
      ),
      Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1: S(
        4083,
        1,
        "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083",
        "Type parameter '{0}' of exported type alias has or is using private name '{1}'.",
      ),
      Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2: S(
        4084,
        1,
        "Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084",
        "Exported type alias '{0}' has or is using private name '{1}' from module {2}.",
      ),
      Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1: S(
        4085,
        1,
        "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085",
        "Extends clause for inferred type '{0}' has or is using private name '{1}'.",
      ),
      Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:
        S(
          4091,
          1,
          "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",
          "Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'.",
        ),
      Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:
        S(
          4092,
          1,
          "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",
          "Parameter '{0}' of index signature from exported interface has or is using private name '{1}'.",
        ),
      Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected:
        S(
          4094,
          1,
          "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094",
          "Property '{0}' of exported anonymous class type may not be private or protected.",
        ),
      Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4095,
          1,
          "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095",
          "Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4096,
          1,
          "Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096",
          "Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:
        S(
          4097,
          1,
          "Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097",
          "Public static method '{0}' of exported class has or is using private name '{1}'.",
        ),
      Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4098,
          1,
          "Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098",
          "Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.",
        ),
      Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:
        S(
          4099,
          1,
          "Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099",
          "Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'.",
        ),
      Public_method_0_of_exported_class_has_or_is_using_private_name_1: S(
        4100,
        1,
        "Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100",
        "Public method '{0}' of exported class has or is using private name '{1}'.",
      ),
      Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:
        S(
          4101,
          1,
          "Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101",
          "Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'.",
        ),
      Method_0_of_exported_interface_has_or_is_using_private_name_1: S(
        4102,
        1,
        "Method_0_of_exported_interface_has_or_is_using_private_name_1_4102",
        "Method '{0}' of exported interface has or is using private name '{1}'.",
      ),
      Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:
        S(
          4103,
          1,
          "Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103",
          "Type parameter '{0}' of exported mapped object type is using private name '{1}'.",
        ),
      The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1: S(
        4104,
        1,
        "The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104",
        "The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'.",
      ),
      Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter: S(
        4105,
        1,
        "Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105",
        "Private or protected member '{0}' cannot be accessed on a type parameter.",
      ),
      Parameter_0_of_accessor_has_or_is_using_private_name_1: S(
        4106,
        1,
        "Parameter_0_of_accessor_has_or_is_using_private_name_1_4106",
        "Parameter '{0}' of accessor has or is using private name '{1}'.",
      ),
      Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2: S(
        4107,
        1,
        "Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107",
        "Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'.",
      ),
      Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:
        S(
          4108,
          1,
          "Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108",
          "Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named.",
        ),
      Type_arguments_for_0_circularly_reference_themselves: S(
        4109,
        1,
        "Type_arguments_for_0_circularly_reference_themselves_4109",
        "Type arguments for '{0}' circularly reference themselves.",
      ),
      Tuple_type_arguments_circularly_reference_themselves: S(
        4110,
        1,
        "Tuple_type_arguments_circularly_reference_themselves_4110",
        "Tuple type arguments circularly reference themselves.",
      ),
      Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0: S(
        4111,
        1,
        "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111",
        "Property '{0}' comes from an index signature, so it must be accessed with ['{0}'].",
      ),
      This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:
        S(
          4112,
          1,
          "This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112",
          "This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class.",
        ),
      This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:
        S(
          4113,
          1,
          "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113",
          "This member cannot have an 'override' modifier because it is not declared in the base class '{0}'.",
        ),
      This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:
        S(
          4114,
          1,
          "This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114",
          "This member must have an 'override' modifier because it overrides a member in the base class '{0}'.",
        ),
      This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:
        S(
          4115,
          1,
          "This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115",
          "This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'.",
        ),
      This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:
        S(
          4116,
          1,
          "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116",
          "This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'.",
        ),
      This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:
        S(
          4117,
          1,
          "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117",
          "This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?",
        ),
      The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:
        S(
          4118,
          1,
          "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118",
          "The type of this node cannot be serialized because its property '{0}' cannot be serialized.",
        ),
      This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:
        S(
          4119,
          1,
          "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119",
          "This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'.",
        ),
      This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:
        S(
          4120,
          1,
          "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120",
          "This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'.",
        ),
      This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:
        S(
          4121,
          1,
          "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121",
          "This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class.",
        ),
      This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:
        S(
          4122,
          1,
          "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122",
          "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'.",
        ),
      This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:
        S(
          4123,
          1,
          "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123",
          "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?",
        ),
      Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:
        S(
          4124,
          1,
          "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124",
          "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.",
        ),
      Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:
        S(
          4125,
          1,
          "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125",
          "Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given.",
        ),
      One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:
        S(
          4126,
          1,
          "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126",
          "One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value.",
        ),
      This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:
        S(
          4127,
          1,
          "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127",
          "This member cannot have an 'override' modifier because its name is dynamic.",
        ),
      This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:
        S(
          4128,
          1,
          "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128",
          "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic.",
        ),
      The_current_host_does_not_support_the_0_option: S(
        5001,
        1,
        "The_current_host_does_not_support_the_0_option_5001",
        "The current host does not support the '{0}' option.",
      ),
      Cannot_find_the_common_subdirectory_path_for_the_input_files: S(
        5009,
        1,
        "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009",
        "Cannot find the common subdirectory path for the input files.",
      ),
      File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:
        S(
          5010,
          1,
          "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",
          "File specification cannot end in a recursive directory wildcard ('**'): '{0}'.",
        ),
      Cannot_read_file_0_Colon_1: S(
        5012,
        1,
        "Cannot_read_file_0_Colon_1_5012",
        "Cannot read file '{0}': {1}.",
      ),
      Unknown_compiler_option_0: S(
        5023,
        1,
        "Unknown_compiler_option_0_5023",
        "Unknown compiler option '{0}'.",
      ),
      Compiler_option_0_requires_a_value_of_type_1: S(
        5024,
        1,
        "Compiler_option_0_requires_a_value_of_type_1_5024",
        "Compiler option '{0}' requires a value of type {1}.",
      ),
      Unknown_compiler_option_0_Did_you_mean_1: S(
        5025,
        1,
        "Unknown_compiler_option_0_Did_you_mean_1_5025",
        "Unknown compiler option '{0}'. Did you mean '{1}'?",
      ),
      Could_not_write_file_0_Colon_1: S(
        5033,
        1,
        "Could_not_write_file_0_Colon_1_5033",
        "Could not write file '{0}': {1}.",
      ),
      Option_project_cannot_be_mixed_with_source_files_on_a_command_line: S(
        5042,
        1,
        "Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042",
        "Option 'project' cannot be mixed with source files on a command line.",
      ),
      Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:
        S(
          5047,
          1,
          "Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047",
          "Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher.",
        ),
      Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:
        S(
          5051,
          1,
          "Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051",
          "Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.",
        ),
      Option_0_cannot_be_specified_without_specifying_option_1: S(
        5052,
        1,
        "Option_0_cannot_be_specified_without_specifying_option_1_5052",
        "Option '{0}' cannot be specified without specifying option '{1}'.",
      ),
      Option_0_cannot_be_specified_with_option_1: S(
        5053,
        1,
        "Option_0_cannot_be_specified_with_option_1_5053",
        "Option '{0}' cannot be specified with option '{1}'.",
      ),
      A_tsconfig_json_file_is_already_defined_at_Colon_0: S(
        5054,
        1,
        "A_tsconfig_json_file_is_already_defined_at_Colon_0_5054",
        "A 'tsconfig.json' file is already defined at: '{0}'.",
      ),
      Cannot_write_file_0_because_it_would_overwrite_input_file: S(
        5055,
        1,
        "Cannot_write_file_0_because_it_would_overwrite_input_file_5055",
        "Cannot write file '{0}' because it would overwrite input file.",
      ),
      Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:
        S(
          5056,
          1,
          "Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056",
          "Cannot write file '{0}' because it would be overwritten by multiple input files.",
        ),
      Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0: S(
        5057,
        1,
        "Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057",
        "Cannot find a tsconfig.json file at the specified directory: '{0}'.",
      ),
      The_specified_path_does_not_exist_Colon_0: S(
        5058,
        1,
        "The_specified_path_does_not_exist_Colon_0_5058",
        "The specified path does not exist: '{0}'.",
      ),
      Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier: S(
        5059,
        1,
        "Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059",
        "Invalid value for '--reactNamespace'. '{0}' is not a valid identifier.",
      ),
      Pattern_0_can_have_at_most_one_Asterisk_character: S(
        5061,
        1,
        "Pattern_0_can_have_at_most_one_Asterisk_character_5061",
        "Pattern '{0}' can have at most one '*' character.",
      ),
      Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character: S(
        5062,
        1,
        "Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062",
        "Substitution '{0}' in pattern '{1}' can have at most one '*' character.",
      ),
      Substitutions_for_pattern_0_should_be_an_array: S(
        5063,
        1,
        "Substitutions_for_pattern_0_should_be_an_array_5063",
        "Substitutions for pattern '{0}' should be an array.",
      ),
      Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2: S(
        5064,
        1,
        "Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064",
        "Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'.",
      ),
      File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:
        S(
          5065,
          1,
          "File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065",
          "File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'.",
        ),
      Substitutions_for_pattern_0_shouldn_t_be_an_empty_array: S(
        5066,
        1,
        "Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066",
        "Substitutions for pattern '{0}' shouldn't be an empty array.",
      ),
      Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:
        S(
          5067,
          1,
          "Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067",
          "Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name.",
        ),
      Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:
        S(
          5068,
          1,
          "Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068",
          "Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.",
        ),
      Option_0_cannot_be_specified_without_specifying_option_1_or_option_2: S(
        5069,
        1,
        "Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069",
        "Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'.",
      ),
      Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:
        S(
          5070,
          1,
          "Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070",
          "Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'.",
        ),
      Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:
        S(
          5071,
          1,
          "Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071",
          "Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.",
        ),
      Unknown_build_option_0: S(
        5072,
        1,
        "Unknown_build_option_0_5072",
        "Unknown build option '{0}'.",
      ),
      Build_option_0_requires_a_value_of_type_1: S(
        5073,
        1,
        "Build_option_0_requires_a_value_of_type_1_5073",
        "Build option '{0}' requires a value of type {1}.",
      ),
      Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:
        S(
          5074,
          1,
          "Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074",
          "Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified.",
        ),
      _0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:
        S(
          5075,
          1,
          "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075",
          "'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'.",
        ),
      _0_and_1_operations_cannot_be_mixed_without_parentheses: S(
        5076,
        1,
        "_0_and_1_operations_cannot_be_mixed_without_parentheses_5076",
        "'{0}' and '{1}' operations cannot be mixed without parentheses.",
      ),
      Unknown_build_option_0_Did_you_mean_1: S(
        5077,
        1,
        "Unknown_build_option_0_Did_you_mean_1_5077",
        "Unknown build option '{0}'. Did you mean '{1}'?",
      ),
      Unknown_watch_option_0: S(
        5078,
        1,
        "Unknown_watch_option_0_5078",
        "Unknown watch option '{0}'.",
      ),
      Unknown_watch_option_0_Did_you_mean_1: S(
        5079,
        1,
        "Unknown_watch_option_0_Did_you_mean_1_5079",
        "Unknown watch option '{0}'. Did you mean '{1}'?",
      ),
      Watch_option_0_requires_a_value_of_type_1: S(
        5080,
        1,
        "Watch_option_0_requires_a_value_of_type_1_5080",
        "Watch option '{0}' requires a value of type {1}.",
      ),
      Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0: S(
        5081,
        1,
        "Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081",
        "Cannot find a tsconfig.json file at the current directory: {0}.",
      ),
      _0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:
        S(
          5082,
          1,
          "_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082",
          "'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'.",
        ),
      Cannot_read_file_0: S(
        5083,
        1,
        "Cannot_read_file_0_5083",
        "Cannot read file '{0}'.",
      ),
      A_tuple_member_cannot_be_both_optional_and_rest: S(
        5085,
        1,
        "A_tuple_member_cannot_be_both_optional_and_rest_5085",
        "A tuple member cannot be both optional and rest.",
      ),
      A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:
        S(
          5086,
          1,
          "A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086",
          "A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type.",
        ),
      A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:
        S(
          5087,
          1,
          "A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087",
          "A labeled tuple element is declared as rest with a '...' before the name, rather than before the type.",
        ),
      The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:
        S(
          5088,
          1,
          "The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088",
          "The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary.",
        ),
      Option_0_cannot_be_specified_when_option_jsx_is_1: S(
        5089,
        1,
        "Option_0_cannot_be_specified_when_option_jsx_is_1_5089",
        "Option '{0}' cannot be specified when option 'jsx' is '{1}'.",
      ),
      Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:
        S(
          5090,
          1,
          "Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090",
          "Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?",
        ),
      Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled: S(
        5091,
        1,
        "Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091",
        "Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled.",
      ),
      The_root_value_of_a_0_file_must_be_an_object: S(
        5092,
        1,
        "The_root_value_of_a_0_file_must_be_an_object_5092",
        "The root value of a '{0}' file must be an object.",
      ),
      Compiler_option_0_may_only_be_used_with_build: S(
        5093,
        1,
        "Compiler_option_0_may_only_be_used_with_build_5093",
        "Compiler option '--{0}' may only be used with '--build'.",
      ),
      Compiler_option_0_may_not_be_used_with_build: S(
        5094,
        1,
        "Compiler_option_0_may_not_be_used_with_build_5094",
        "Compiler option '--{0}' may not be used with '--build'.",
      ),
      Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:
        S(
          5095,
          1,
          "Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095",
          "Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later.",
        ),
      Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:
        S(
          5096,
          1,
          "Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096",
          "Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set.",
        ),
      An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:
        S(
          5097,
          1,
          "An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097",
          "An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled.",
        ),
      Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:
        S(
          5098,
          1,
          "Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098",
          "Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.",
        ),
      Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:
        S(
          5101,
          1,
          "Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",
          `Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`,
        ),
      Option_0_has_been_removed_Please_remove_it_from_your_configuration: S(
        5102,
        1,
        "Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102",
        "Option '{0}' has been removed. Please remove it from your configuration.",
      ),
      Invalid_value_for_ignoreDeprecations: S(
        5103,
        1,
        "Invalid_value_for_ignoreDeprecations_5103",
        "Invalid value for '--ignoreDeprecations'.",
      ),
      Option_0_is_redundant_and_cannot_be_specified_with_option_1: S(
        5104,
        1,
        "Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104",
        "Option '{0}' is redundant and cannot be specified with option '{1}'.",
      ),
      Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:
        S(
          5105,
          1,
          "Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105",
          "Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'.",
        ),
      Use_0_instead: S(5106, 3, "Use_0_instead_5106", "Use '{0}' instead."),
      Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:
        S(
          5107,
          1,
          "Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",
          `Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`,
        ),
      Option_0_1_has_been_removed_Please_remove_it_from_your_configuration: S(
        5108,
        1,
        "Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108",
        "Option '{0}={1}' has been removed. Please remove it from your configuration.",
      ),
      Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:
        S(
          5109,
          1,
          "Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109",
          "Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'.",
        ),
      Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:
        S(
          5110,
          1,
          "Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110",
          "Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'.",
        ),
      Generates_a_sourcemap_for_each_corresponding_d_ts_file: S(
        6e3,
        3,
        "Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000",
        "Generates a sourcemap for each corresponding '.d.ts' file.",
      ),
      Concatenate_and_emit_output_to_single_file: S(
        6001,
        3,
        "Concatenate_and_emit_output_to_single_file_6001",
        "Concatenate and emit output to single file.",
      ),
      Generates_corresponding_d_ts_file: S(
        6002,
        3,
        "Generates_corresponding_d_ts_file_6002",
        "Generates corresponding '.d.ts' file.",
      ),
      Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:
        S(
          6004,
          3,
          "Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004",
          "Specify the location where debugger should locate TypeScript files instead of source locations.",
        ),
      Watch_input_files: S(
        6005,
        3,
        "Watch_input_files_6005",
        "Watch input files.",
      ),
      Redirect_output_structure_to_the_directory: S(
        6006,
        3,
        "Redirect_output_structure_to_the_directory_6006",
        "Redirect output structure to the directory.",
      ),
      Do_not_erase_const_enum_declarations_in_generated_code: S(
        6007,
        3,
        "Do_not_erase_const_enum_declarations_in_generated_code_6007",
        "Do not erase const enum declarations in generated code.",
      ),
      Do_not_emit_outputs_if_any_errors_were_reported: S(
        6008,
        3,
        "Do_not_emit_outputs_if_any_errors_were_reported_6008",
        "Do not emit outputs if any errors were reported.",
      ),
      Do_not_emit_comments_to_output: S(
        6009,
        3,
        "Do_not_emit_comments_to_output_6009",
        "Do not emit comments to output.",
      ),
      Do_not_emit_outputs: S(
        6010,
        3,
        "Do_not_emit_outputs_6010",
        "Do not emit outputs.",
      ),
      Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:
        S(
          6011,
          3,
          "Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",
          "Allow default imports from modules with no default export. This does not affect code emit, just typechecking.",
        ),
      Skip_type_checking_of_declaration_files: S(
        6012,
        3,
        "Skip_type_checking_of_declaration_files_6012",
        "Skip type checking of declaration files.",
      ),
      Do_not_resolve_the_real_path_of_symlinks: S(
        6013,
        3,
        "Do_not_resolve_the_real_path_of_symlinks_6013",
        "Do not resolve the real path of symlinks.",
      ),
      Only_emit_d_ts_declaration_files: S(
        6014,
        3,
        "Only_emit_d_ts_declaration_files_6014",
        "Only emit '.d.ts' declaration files.",
      ),
      Specify_ECMAScript_target_version: S(
        6015,
        3,
        "Specify_ECMAScript_target_version_6015",
        "Specify ECMAScript target version.",
      ),
      Specify_module_code_generation: S(
        6016,
        3,
        "Specify_module_code_generation_6016",
        "Specify module code generation.",
      ),
      Print_this_message: S(
        6017,
        3,
        "Print_this_message_6017",
        "Print this message.",
      ),
      Print_the_compiler_s_version: S(
        6019,
        3,
        "Print_the_compiler_s_version_6019",
        "Print the compiler's version.",
      ),
      Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:
        S(
          6020,
          3,
          "Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020",
          "Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.",
        ),
      Syntax_Colon_0: S(6023, 3, "Syntax_Colon_0_6023", "Syntax: {0}"),
      options: S(6024, 3, "options_6024", "options"),
      file: S(6025, 3, "file_6025", "file"),
      Examples_Colon_0: S(6026, 3, "Examples_Colon_0_6026", "Examples: {0}"),
      Options_Colon: S(6027, 3, "Options_Colon_6027", "Options:"),
      Version_0: S(6029, 3, "Version_0_6029", "Version {0}"),
      Insert_command_line_options_and_files_from_a_file: S(
        6030,
        3,
        "Insert_command_line_options_and_files_from_a_file_6030",
        "Insert command line options and files from a file.",
      ),
      Starting_compilation_in_watch_mode: S(
        6031,
        3,
        "Starting_compilation_in_watch_mode_6031",
        "Starting compilation in watch mode...",
      ),
      File_change_detected_Starting_incremental_compilation: S(
        6032,
        3,
        "File_change_detected_Starting_incremental_compilation_6032",
        "File change detected. Starting incremental compilation...",
      ),
      KIND: S(6034, 3, "KIND_6034", "KIND"),
      FILE: S(6035, 3, "FILE_6035", "FILE"),
      VERSION: S(6036, 3, "VERSION_6036", "VERSION"),
      LOCATION: S(6037, 3, "LOCATION_6037", "LOCATION"),
      DIRECTORY: S(6038, 3, "DIRECTORY_6038", "DIRECTORY"),
      STRATEGY: S(6039, 3, "STRATEGY_6039", "STRATEGY"),
      FILE_OR_DIRECTORY: S(
        6040,
        3,
        "FILE_OR_DIRECTORY_6040",
        "FILE OR DIRECTORY",
      ),
      Errors_Files: S(6041, 3, "Errors_Files_6041", "Errors  Files"),
      Generates_corresponding_map_file: S(
        6043,
        3,
        "Generates_corresponding_map_file_6043",
        "Generates corresponding '.map' file.",
      ),
      Compiler_option_0_expects_an_argument: S(
        6044,
        1,
        "Compiler_option_0_expects_an_argument_6044",
        "Compiler option '{0}' expects an argument.",
      ),
      Unterminated_quoted_string_in_response_file_0: S(
        6045,
        1,
        "Unterminated_quoted_string_in_response_file_0_6045",
        "Unterminated quoted string in response file '{0}'.",
      ),
      Argument_for_0_option_must_be_Colon_1: S(
        6046,
        1,
        "Argument_for_0_option_must_be_Colon_1_6046",
        "Argument for '{0}' option must be: {1}.",
      ),
      Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:
        S(
          6048,
          1,
          "Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048",
          "Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'.",
        ),
      Unable_to_open_file_0: S(
        6050,
        1,
        "Unable_to_open_file_0_6050",
        "Unable to open file '{0}'.",
      ),
      Corrupted_locale_file_0: S(
        6051,
        1,
        "Corrupted_locale_file_0_6051",
        "Corrupted locale file {0}.",
      ),
      Raise_error_on_expressions_and_declarations_with_an_implied_any_type: S(
        6052,
        3,
        "Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052",
        "Raise error on expressions and declarations with an implied 'any' type.",
      ),
      File_0_not_found: S(
        6053,
        1,
        "File_0_not_found_6053",
        "File '{0}' not found.",
      ),
      File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:
        S(
          6054,
          1,
          "File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054",
          "File '{0}' has an unsupported extension. The only supported extensions are {1}.",
        ),
      Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:
        S(
          6055,
          3,
          "Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055",
          "Suppress noImplicitAny errors for indexing objects lacking index signatures.",
        ),
      Do_not_emit_declarations_for_code_that_has_an_internal_annotation: S(
        6056,
        3,
        "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056",
        "Do not emit declarations for code that has an '@internal' annotation.",
      ),
      Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:
        S(
          6058,
          3,
          "Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058",
          "Specify the root directory of input files. Use to control the output directory structure with --outDir.",
        ),
      File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:
        S(
          6059,
          1,
          "File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059",
          "File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files.",
        ),
      Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:
        S(
          6060,
          3,
          "Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060",
          "Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix).",
        ),
      NEWLINE: S(6061, 3, "NEWLINE_6061", "NEWLINE"),
      Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:
        S(
          6064,
          1,
          "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064",
          "Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line.",
        ),
      Enables_experimental_support_for_ES7_decorators: S(
        6065,
        3,
        "Enables_experimental_support_for_ES7_decorators_6065",
        "Enables experimental support for ES7 decorators.",
      ),
      Enables_experimental_support_for_emitting_type_metadata_for_decorators: S(
        6066,
        3,
        "Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066",
        "Enables experimental support for emitting type metadata for decorators.",
      ),
      Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file: S(
        6070,
        3,
        "Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070",
        "Initializes a TypeScript project and creates a tsconfig.json file.",
      ),
      Successfully_created_a_tsconfig_json_file: S(
        6071,
        3,
        "Successfully_created_a_tsconfig_json_file_6071",
        "Successfully created a tsconfig.json file.",
      ),
      Suppress_excess_property_checks_for_object_literals: S(
        6072,
        3,
        "Suppress_excess_property_checks_for_object_literals_6072",
        "Suppress excess property checks for object literals.",
      ),
      Stylize_errors_and_messages_using_color_and_context_experimental: S(
        6073,
        3,
        "Stylize_errors_and_messages_using_color_and_context_experimental_6073",
        "Stylize errors and messages using color and context (experimental).",
      ),
      Do_not_report_errors_on_unused_labels: S(
        6074,
        3,
        "Do_not_report_errors_on_unused_labels_6074",
        "Do not report errors on unused labels.",
      ),
      Report_error_when_not_all_code_paths_in_function_return_a_value: S(
        6075,
        3,
        "Report_error_when_not_all_code_paths_in_function_return_a_value_6075",
        "Report error when not all code paths in function return a value.",
      ),
      Report_errors_for_fallthrough_cases_in_switch_statement: S(
        6076,
        3,
        "Report_errors_for_fallthrough_cases_in_switch_statement_6076",
        "Report errors for fallthrough cases in switch statement.",
      ),
      Do_not_report_errors_on_unreachable_code: S(
        6077,
        3,
        "Do_not_report_errors_on_unreachable_code_6077",
        "Do not report errors on unreachable code.",
      ),
      Disallow_inconsistently_cased_references_to_the_same_file: S(
        6078,
        3,
        "Disallow_inconsistently_cased_references_to_the_same_file_6078",
        "Disallow inconsistently-cased references to the same file.",
      ),
      Specify_library_files_to_be_included_in_the_compilation: S(
        6079,
        3,
        "Specify_library_files_to_be_included_in_the_compilation_6079",
        "Specify library files to be included in the compilation.",
      ),
      Specify_JSX_code_generation: S(
        6080,
        3,
        "Specify_JSX_code_generation_6080",
        "Specify JSX code generation.",
      ),
      Only_amd_and_system_modules_are_supported_alongside_0: S(
        6082,
        1,
        "Only_amd_and_system_modules_are_supported_alongside_0_6082",
        "Only 'amd' and 'system' modules are supported alongside --{0}.",
      ),
      Base_directory_to_resolve_non_absolute_module_names: S(
        6083,
        3,
        "Base_directory_to_resolve_non_absolute_module_names_6083",
        "Base directory to resolve non-absolute module names.",
      ),
      Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:
        S(
          6084,
          3,
          "Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084",
          "[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit",
        ),
      Enable_tracing_of_the_name_resolution_process: S(
        6085,
        3,
        "Enable_tracing_of_the_name_resolution_process_6085",
        "Enable tracing of the name resolution process.",
      ),
      Resolving_module_0_from_1: S(
        6086,
        3,
        "Resolving_module_0_from_1_6086",
        "======== Resolving module '{0}' from '{1}'. ========",
      ),
      Explicitly_specified_module_resolution_kind_Colon_0: S(
        6087,
        3,
        "Explicitly_specified_module_resolution_kind_Colon_0_6087",
        "Explicitly specified module resolution kind: '{0}'.",
      ),
      Module_resolution_kind_is_not_specified_using_0: S(
        6088,
        3,
        "Module_resolution_kind_is_not_specified_using_0_6088",
        "Module resolution kind is not specified, using '{0}'.",
      ),
      Module_name_0_was_successfully_resolved_to_1: S(
        6089,
        3,
        "Module_name_0_was_successfully_resolved_to_1_6089",
        "======== Module name '{0}' was successfully resolved to '{1}'. ========",
      ),
      Module_name_0_was_not_resolved: S(
        6090,
        3,
        "Module_name_0_was_not_resolved_6090",
        "======== Module name '{0}' was not resolved. ========",
      ),
      paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0: S(
        6091,
        3,
        "paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091",
        "'paths' option is specified, looking for a pattern to match module name '{0}'.",
      ),
      Module_name_0_matched_pattern_1: S(
        6092,
        3,
        "Module_name_0_matched_pattern_1_6092",
        "Module name '{0}', matched pattern '{1}'.",
      ),
      Trying_substitution_0_candidate_module_location_Colon_1: S(
        6093,
        3,
        "Trying_substitution_0_candidate_module_location_Colon_1_6093",
        "Trying substitution '{0}', candidate module location: '{1}'.",
      ),
      Resolving_module_name_0_relative_to_base_url_1_2: S(
        6094,
        3,
        "Resolving_module_name_0_relative_to_base_url_1_2_6094",
        "Resolving module name '{0}' relative to base url '{1}' - '{2}'.",
      ),
      Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:
        S(
          6095,
          3,
          "Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095",
          "Loading module as file / folder, candidate module location '{0}', target file types: {1}.",
        ),
      File_0_does_not_exist: S(
        6096,
        3,
        "File_0_does_not_exist_6096",
        "File '{0}' does not exist.",
      ),
      File_0_exists_use_it_as_a_name_resolution_result: S(
        6097,
        3,
        "File_0_exists_use_it_as_a_name_resolution_result_6097",
        "File '{0}' exists - use it as a name resolution result.",
      ),
      Loading_module_0_from_node_modules_folder_target_file_types_Colon_1: S(
        6098,
        3,
        "Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098",
        "Loading module '{0}' from 'node_modules' folder, target file types: {1}.",
      ),
      Found_package_json_at_0: S(
        6099,
        3,
        "Found_package_json_at_0_6099",
        "Found 'package.json' at '{0}'.",
      ),
      package_json_does_not_have_a_0_field: S(
        6100,
        3,
        "package_json_does_not_have_a_0_field_6100",
        "'package.json' does not have a '{0}' field.",
      ),
      package_json_has_0_field_1_that_references_2: S(
        6101,
        3,
        "package_json_has_0_field_1_that_references_2_6101",
        "'package.json' has '{0}' field '{1}' that references '{2}'.",
      ),
      Allow_javascript_files_to_be_compiled: S(
        6102,
        3,
        "Allow_javascript_files_to_be_compiled_6102",
        "Allow javascript files to be compiled.",
      ),
      Checking_if_0_is_the_longest_matching_prefix_for_1_2: S(
        6104,
        3,
        "Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104",
        "Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'.",
      ),
      Expected_type_of_0_field_in_package_json_to_be_1_got_2: S(
        6105,
        3,
        "Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105",
        "Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'.",
      ),
      baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:
        S(
          6106,
          3,
          "baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106",
          "'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'.",
        ),
      rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0: S(
        6107,
        3,
        "rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107",
        "'rootDirs' option is set, using it to resolve relative module name '{0}'.",
      ),
      Longest_matching_prefix_for_0_is_1: S(
        6108,
        3,
        "Longest_matching_prefix_for_0_is_1_6108",
        "Longest matching prefix for '{0}' is '{1}'.",
      ),
      Loading_0_from_the_root_dir_1_candidate_location_2: S(
        6109,
        3,
        "Loading_0_from_the_root_dir_1_candidate_location_2_6109",
        "Loading '{0}' from the root dir '{1}', candidate location '{2}'.",
      ),
      Trying_other_entries_in_rootDirs: S(
        6110,
        3,
        "Trying_other_entries_in_rootDirs_6110",
        "Trying other entries in 'rootDirs'.",
      ),
      Module_resolution_using_rootDirs_has_failed: S(
        6111,
        3,
        "Module_resolution_using_rootDirs_has_failed_6111",
        "Module resolution using 'rootDirs' has failed.",
      ),
      Do_not_emit_use_strict_directives_in_module_output: S(
        6112,
        3,
        "Do_not_emit_use_strict_directives_in_module_output_6112",
        "Do not emit 'use strict' directives in module output.",
      ),
      Enable_strict_null_checks: S(
        6113,
        3,
        "Enable_strict_null_checks_6113",
        "Enable strict null checks.",
      ),
      Unknown_option_excludes_Did_you_mean_exclude: S(
        6114,
        1,
        "Unknown_option_excludes_Did_you_mean_exclude_6114",
        "Unknown option 'excludes'. Did you mean 'exclude'?",
      ),
      Raise_error_on_this_expressions_with_an_implied_any_type: S(
        6115,
        3,
        "Raise_error_on_this_expressions_with_an_implied_any_type_6115",
        "Raise error on 'this' expressions with an implied 'any' type.",
      ),
      Resolving_type_reference_directive_0_containing_file_1_root_directory_2:
        S(
          6116,
          3,
          "Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116",
          "======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========",
        ),
      Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:
        S(
          6119,
          3,
          "Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119",
          "======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========",
        ),
      Type_reference_directive_0_was_not_resolved: S(
        6120,
        3,
        "Type_reference_directive_0_was_not_resolved_6120",
        "======== Type reference directive '{0}' was not resolved. ========",
      ),
      Resolving_with_primary_search_path_0: S(
        6121,
        3,
        "Resolving_with_primary_search_path_0_6121",
        "Resolving with primary search path '{0}'.",
      ),
      Root_directory_cannot_be_determined_skipping_primary_search_paths: S(
        6122,
        3,
        "Root_directory_cannot_be_determined_skipping_primary_search_paths_6122",
        "Root directory cannot be determined, skipping primary search paths.",
      ),
      Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:
        S(
          6123,
          3,
          "Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123",
          "======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========",
        ),
      Type_declaration_files_to_be_included_in_compilation: S(
        6124,
        3,
        "Type_declaration_files_to_be_included_in_compilation_6124",
        "Type declaration files to be included in compilation.",
      ),
      Looking_up_in_node_modules_folder_initial_location_0: S(
        6125,
        3,
        "Looking_up_in_node_modules_folder_initial_location_0_6125",
        "Looking up in 'node_modules' folder, initial location '{0}'.",
      ),
      Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:
        S(
          6126,
          3,
          "Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126",
          "Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder.",
        ),
      Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:
        S(
          6127,
          3,
          "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127",
          "======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========",
        ),
      Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:
        S(
          6128,
          3,
          "Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128",
          "======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========",
        ),
      Resolving_real_path_for_0_result_1: S(
        6130,
        3,
        "Resolving_real_path_for_0_result_1_6130",
        "Resolving real path for '{0}', result '{1}'.",
      ),
      Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:
        S(
          6131,
          1,
          "Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131",
          "Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'.",
        ),
      File_name_0_has_a_1_extension_stripping_it: S(
        6132,
        3,
        "File_name_0_has_a_1_extension_stripping_it_6132",
        "File name '{0}' has a '{1}' extension - stripping it.",
      ),
      _0_is_declared_but_its_value_is_never_read: S(
        6133,
        1,
        "_0_is_declared_but_its_value_is_never_read_6133",
        "'{0}' is declared but its value is never read.",
        !0,
      ),
      Report_errors_on_unused_locals: S(
        6134,
        3,
        "Report_errors_on_unused_locals_6134",
        "Report errors on unused locals.",
      ),
      Report_errors_on_unused_parameters: S(
        6135,
        3,
        "Report_errors_on_unused_parameters_6135",
        "Report errors on unused parameters.",
      ),
      The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:
        S(
          6136,
          3,
          "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136",
          "The maximum dependency depth to search under node_modules and load JavaScript files.",
        ),
      Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1: S(
        6137,
        1,
        "Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137",
        "Cannot import type declaration files. Consider importing '{0}' instead of '{1}'.",
      ),
      Property_0_is_declared_but_its_value_is_never_read: S(
        6138,
        1,
        "Property_0_is_declared_but_its_value_is_never_read_6138",
        "Property '{0}' is declared but its value is never read.",
        !0,
      ),
      Import_emit_helpers_from_tslib: S(
        6139,
        3,
        "Import_emit_helpers_from_tslib_6139",
        "Import emit helpers from 'tslib'.",
      ),
      Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:
        S(
          6140,
          1,
          "Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140",
          "Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'.",
        ),
      Parse_in_strict_mode_and_emit_use_strict_for_each_source_file: S(
        6141,
        3,
        "Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",
        'Parse in strict mode and emit "use strict" for each source file.',
      ),
      Module_0_was_resolved_to_1_but_jsx_is_not_set: S(
        6142,
        1,
        "Module_0_was_resolved_to_1_but_jsx_is_not_set_6142",
        "Module '{0}' was resolved to '{1}', but '--jsx' is not set.",
      ),
      Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: S(
        6144,
        3,
        "Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144",
        "Module '{0}' was resolved as locally declared ambient module in file '{1}'.",
      ),
      Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:
        S(
          6146,
          3,
          "Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",
          "Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'.",
        ),
      Resolution_for_module_0_was_found_in_cache_from_location_1: S(
        6147,
        3,
        "Resolution_for_module_0_was_found_in_cache_from_location_1_6147",
        "Resolution for module '{0}' was found in cache from location '{1}'.",
      ),
      Directory_0_does_not_exist_skipping_all_lookups_in_it: S(
        6148,
        3,
        "Directory_0_does_not_exist_skipping_all_lookups_in_it_6148",
        "Directory '{0}' does not exist, skipping all lookups in it.",
      ),
      Show_diagnostic_information: S(
        6149,
        3,
        "Show_diagnostic_information_6149",
        "Show diagnostic information.",
      ),
      Show_verbose_diagnostic_information: S(
        6150,
        3,
        "Show_verbose_diagnostic_information_6150",
        "Show verbose diagnostic information.",
      ),
      Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file: S(
        6151,
        3,
        "Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151",
        "Emit a single file with source maps instead of having a separate file.",
      ),
      Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:
        S(
          6152,
          3,
          "Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152",
          "Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.",
        ),
      Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule: S(
        6153,
        3,
        "Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153",
        "Transpile each file as a separate module (similar to 'ts.transpileModule').",
      ),
      Print_names_of_generated_files_part_of_the_compilation: S(
        6154,
        3,
        "Print_names_of_generated_files_part_of_the_compilation_6154",
        "Print names of generated files part of the compilation.",
      ),
      Print_names_of_files_part_of_the_compilation: S(
        6155,
        3,
        "Print_names_of_files_part_of_the_compilation_6155",
        "Print names of files part of the compilation.",
      ),
      The_locale_used_when_displaying_messages_to_the_user_e_g_en_us: S(
        6156,
        3,
        "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156",
        "The locale used when displaying messages to the user (e.g. 'en-us')",
      ),
      Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:
        S(
          6157,
          3,
          "Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157",
          "Do not generate custom helper functions like '__extends' in compiled output.",
        ),
      Do_not_include_the_default_library_file_lib_d_ts: S(
        6158,
        3,
        "Do_not_include_the_default_library_file_lib_d_ts_6158",
        "Do not include the default library file (lib.d.ts).",
      ),
      Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:
        S(
          6159,
          3,
          "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159",
          "Do not add triple-slash references or imported modules to the list of compiled files.",
        ),
      Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:
        S(
          6160,
          3,
          "Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160",
          "[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files.",
        ),
      List_of_folders_to_include_type_definitions_from: S(
        6161,
        3,
        "List_of_folders_to_include_type_definitions_from_6161",
        "List of folders to include type definitions from.",
      ),
      Disable_size_limitations_on_JavaScript_projects: S(
        6162,
        3,
        "Disable_size_limitations_on_JavaScript_projects_6162",
        "Disable size limitations on JavaScript projects.",
      ),
      The_character_set_of_the_input_files: S(
        6163,
        3,
        "The_character_set_of_the_input_files_6163",
        "The character set of the input files.",
      ),
      Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:
        S(
          6164,
          3,
          "Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164",
          "Skipping module '{0}' that looks like an absolute URI, target file types: {1}.",
        ),
      Do_not_truncate_error_messages: S(
        6165,
        3,
        "Do_not_truncate_error_messages_6165",
        "Do not truncate error messages.",
      ),
      Output_directory_for_generated_declaration_files: S(
        6166,
        3,
        "Output_directory_for_generated_declaration_files_6166",
        "Output directory for generated declaration files.",
      ),
      A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:
        S(
          6167,
          3,
          "A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167",
          "A series of entries which re-map imports to lookup locations relative to the 'baseUrl'.",
        ),
      List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:
        S(
          6168,
          3,
          "List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168",
          "List of root folders whose combined content represents the structure of the project at runtime.",
        ),
      Show_all_compiler_options: S(
        6169,
        3,
        "Show_all_compiler_options_6169",
        "Show all compiler options.",
      ),
      Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:
        S(
          6170,
          3,
          "Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170",
          "[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file",
        ),
      Command_line_Options: S(
        6171,
        3,
        "Command_line_Options_6171",
        "Command-line Options",
      ),
      Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:
        S(
          6179,
          3,
          "Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179",
          "Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'.",
        ),
      Enable_all_strict_type_checking_options: S(
        6180,
        3,
        "Enable_all_strict_type_checking_options_6180",
        "Enable all strict type-checking options.",
      ),
      Scoped_package_detected_looking_in_0: S(
        6182,
        3,
        "Scoped_package_detected_looking_in_0_6182",
        "Scoped package detected, looking in '{0}'",
      ),
      Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:
        S(
          6183,
          3,
          "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183",
          "Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'.",
        ),
      Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:
        S(
          6184,
          3,
          "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184",
          "Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'.",
        ),
      Enable_strict_checking_of_function_types: S(
        6186,
        3,
        "Enable_strict_checking_of_function_types_6186",
        "Enable strict checking of function types.",
      ),
      Enable_strict_checking_of_property_initialization_in_classes: S(
        6187,
        3,
        "Enable_strict_checking_of_property_initialization_in_classes_6187",
        "Enable strict checking of property initialization in classes.",
      ),
      Numeric_separators_are_not_allowed_here: S(
        6188,
        1,
        "Numeric_separators_are_not_allowed_here_6188",
        "Numeric separators are not allowed here.",
      ),
      Multiple_consecutive_numeric_separators_are_not_permitted: S(
        6189,
        1,
        "Multiple_consecutive_numeric_separators_are_not_permitted_6189",
        "Multiple consecutive numeric separators are not permitted.",
      ),
      Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:
        S(
          6191,
          3,
          "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191",
          "Whether to keep outdated console output in watch mode instead of clearing the screen.",
        ),
      All_imports_in_import_declaration_are_unused: S(
        6192,
        1,
        "All_imports_in_import_declaration_are_unused_6192",
        "All imports in import declaration are unused.",
        !0,
      ),
      Found_1_error_Watching_for_file_changes: S(
        6193,
        3,
        "Found_1_error_Watching_for_file_changes_6193",
        "Found 1 error. Watching for file changes.",
      ),
      Found_0_errors_Watching_for_file_changes: S(
        6194,
        3,
        "Found_0_errors_Watching_for_file_changes_6194",
        "Found {0} errors. Watching for file changes.",
      ),
      Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:
        S(
          6195,
          3,
          "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195",
          "Resolve 'keyof' to string valued property names only (no numbers or symbols).",
        ),
      _0_is_declared_but_never_used: S(
        6196,
        1,
        "_0_is_declared_but_never_used_6196",
        "'{0}' is declared but never used.",
        !0,
      ),
      Include_modules_imported_with_json_extension: S(
        6197,
        3,
        "Include_modules_imported_with_json_extension_6197",
        "Include modules imported with '.json' extension",
      ),
      All_destructured_elements_are_unused: S(
        6198,
        1,
        "All_destructured_elements_are_unused_6198",
        "All destructured elements are unused.",
        !0,
      ),
      All_variables_are_unused: S(
        6199,
        1,
        "All_variables_are_unused_6199",
        "All variables are unused.",
        !0,
      ),
      Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:
        S(
          6200,
          1,
          "Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200",
          "Definitions of the following identifiers conflict with those in another file: {0}",
        ),
      Conflicts_are_in_this_file: S(
        6201,
        3,
        "Conflicts_are_in_this_file_6201",
        "Conflicts are in this file.",
      ),
      Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:
        S(
          6202,
          1,
          "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202",
          "Project references may not form a circular graph. Cycle detected: {0}",
        ),
      _0_was_also_declared_here: S(
        6203,
        3,
        "_0_was_also_declared_here_6203",
        "'{0}' was also declared here.",
      ),
      and_here: S(6204, 3, "and_here_6204", "and here."),
      All_type_parameters_are_unused: S(
        6205,
        1,
        "All_type_parameters_are_unused_6205",
        "All type parameters are unused.",
      ),
      package_json_has_a_typesVersions_field_with_version_specific_path_mappings:
        S(
          6206,
          3,
          "package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206",
          "'package.json' has a 'typesVersions' field with version-specific path mappings.",
        ),
      package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:
        S(
          6207,
          3,
          "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207",
          "'package.json' does not have a 'typesVersions' entry that matches version '{0}'.",
        ),
      package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:
        S(
          6208,
          3,
          "package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208",
          "'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'.",
        ),
      package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:
        S(
          6209,
          3,
          "package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209",
          "'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range.",
        ),
      An_argument_for_0_was_not_provided: S(
        6210,
        3,
        "An_argument_for_0_was_not_provided_6210",
        "An argument for '{0}' was not provided.",
      ),
      An_argument_matching_this_binding_pattern_was_not_provided: S(
        6211,
        3,
        "An_argument_matching_this_binding_pattern_was_not_provided_6211",
        "An argument matching this binding pattern was not provided.",
      ),
      Did_you_mean_to_call_this_expression: S(
        6212,
        3,
        "Did_you_mean_to_call_this_expression_6212",
        "Did you mean to call this expression?",
      ),
      Did_you_mean_to_use_new_with_this_expression: S(
        6213,
        3,
        "Did_you_mean_to_use_new_with_this_expression_6213",
        "Did you mean to use 'new' with this expression?",
      ),
      Enable_strict_bind_call_and_apply_methods_on_functions: S(
        6214,
        3,
        "Enable_strict_bind_call_and_apply_methods_on_functions_6214",
        "Enable strict 'bind', 'call', and 'apply' methods on functions.",
      ),
      Using_compiler_options_of_project_reference_redirect_0: S(
        6215,
        3,
        "Using_compiler_options_of_project_reference_redirect_0_6215",
        "Using compiler options of project reference redirect '{0}'.",
      ),
      Found_1_error: S(6216, 3, "Found_1_error_6216", "Found 1 error."),
      Found_0_errors: S(6217, 3, "Found_0_errors_6217", "Found {0} errors."),
      Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2: S(
        6218,
        3,
        "Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218",
        "======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========",
      ),
      Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:
        S(
          6219,
          3,
          "Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219",
          "======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========",
        ),
      package_json_had_a_falsy_0_field: S(
        6220,
        3,
        "package_json_had_a_falsy_0_field_6220",
        "'package.json' had a falsy '{0}' field.",
      ),
      Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:
        S(
          6221,
          3,
          "Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221",
          "Disable use of source files instead of declaration files from referenced projects.",
        ),
      Emit_class_fields_with_Define_instead_of_Set: S(
        6222,
        3,
        "Emit_class_fields_with_Define_instead_of_Set_6222",
        "Emit class fields with Define instead of Set.",
      ),
      Generates_a_CPU_profile: S(
        6223,
        3,
        "Generates_a_CPU_profile_6223",
        "Generates a CPU profile.",
      ),
      Disable_solution_searching_for_this_project: S(
        6224,
        3,
        "Disable_solution_searching_for_this_project_6224",
        "Disable solution searching for this project.",
      ),
      Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:
        S(
          6225,
          3,
          "Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225",
          "Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'.",
        ),
      Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:
        S(
          6226,
          3,
          "Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226",
          "Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'.",
        ),
      Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:
        S(
          6227,
          3,
          "Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227",
          "Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'.",
        ),
      Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:
        S(
          6229,
          1,
          "Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229",
          "Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'.",
        ),
      Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:
        S(
          6230,
          1,
          "Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230",
          "Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line.",
        ),
      Could_not_resolve_the_path_0_with_the_extensions_Colon_1: S(
        6231,
        1,
        "Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231",
        "Could not resolve the path '{0}' with the extensions: {1}.",
      ),
      Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:
        S(
          6232,
          1,
          "Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232",
          "Declaration augments declaration in another file. This cannot be serialized.",
        ),
      This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:
        S(
          6233,
          1,
          "This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233",
          "This is the declaration being augmented. Consider moving the augmenting declaration into the same file.",
        ),
      This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:
        S(
          6234,
          1,
          "This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234",
          "This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?",
        ),
      Disable_loading_referenced_projects: S(
        6235,
        3,
        "Disable_loading_referenced_projects_6235",
        "Disable loading referenced projects.",
      ),
      Arguments_for_the_rest_parameter_0_were_not_provided: S(
        6236,
        1,
        "Arguments_for_the_rest_parameter_0_were_not_provided_6236",
        "Arguments for the rest parameter '{0}' were not provided.",
      ),
      Generates_an_event_trace_and_a_list_of_types: S(
        6237,
        3,
        "Generates_an_event_trace_and_a_list_of_types_6237",
        "Generates an event trace and a list of types.",
      ),
      Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:
        S(
          6238,
          1,
          "Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238",
          "Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react",
        ),
      File_0_exists_according_to_earlier_cached_lookups: S(
        6239,
        3,
        "File_0_exists_according_to_earlier_cached_lookups_6239",
        "File '{0}' exists according to earlier cached lookups.",
      ),
      File_0_does_not_exist_according_to_earlier_cached_lookups: S(
        6240,
        3,
        "File_0_does_not_exist_according_to_earlier_cached_lookups_6240",
        "File '{0}' does not exist according to earlier cached lookups.",
      ),
      Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:
        S(
          6241,
          3,
          "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241",
          "Resolution for type reference directive '{0}' was found in cache from location '{1}'.",
        ),
      Resolving_type_reference_directive_0_containing_file_1: S(
        6242,
        3,
        "Resolving_type_reference_directive_0_containing_file_1_6242",
        "======== Resolving type reference directive '{0}', containing file '{1}'. ========",
      ),
      Interpret_optional_property_types_as_written_rather_than_adding_undefined:
        S(
          6243,
          3,
          "Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243",
          "Interpret optional property types as written, rather than adding 'undefined'.",
        ),
      Modules: S(6244, 3, "Modules_6244", "Modules"),
      File_Management: S(6245, 3, "File_Management_6245", "File Management"),
      Emit: S(6246, 3, "Emit_6246", "Emit"),
      JavaScript_Support: S(
        6247,
        3,
        "JavaScript_Support_6247",
        "JavaScript Support",
      ),
      Type_Checking: S(6248, 3, "Type_Checking_6248", "Type Checking"),
      Editor_Support: S(6249, 3, "Editor_Support_6249", "Editor Support"),
      Watch_and_Build_Modes: S(
        6250,
        3,
        "Watch_and_Build_Modes_6250",
        "Watch and Build Modes",
      ),
      Compiler_Diagnostics: S(
        6251,
        3,
        "Compiler_Diagnostics_6251",
        "Compiler Diagnostics",
      ),
      Interop_Constraints: S(
        6252,
        3,
        "Interop_Constraints_6252",
        "Interop Constraints",
      ),
      Backwards_Compatibility: S(
        6253,
        3,
        "Backwards_Compatibility_6253",
        "Backwards Compatibility",
      ),
      Language_and_Environment: S(
        6254,
        3,
        "Language_and_Environment_6254",
        "Language and Environment",
      ),
      Projects: S(6255, 3, "Projects_6255", "Projects"),
      Output_Formatting: S(
        6256,
        3,
        "Output_Formatting_6256",
        "Output Formatting",
      ),
      Completeness: S(6257, 3, "Completeness_6257", "Completeness"),
      _0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:
        S(
          6258,
          1,
          "_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258",
          "'{0}' should be set inside the 'compilerOptions' object of the config json file",
        ),
      Found_1_error_in_0: S(
        6259,
        3,
        "Found_1_error_in_0_6259",
        "Found 1 error in {0}",
      ),
      Found_0_errors_in_the_same_file_starting_at_Colon_1: S(
        6260,
        3,
        "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260",
        "Found {0} errors in the same file, starting at: {1}",
      ),
      Found_0_errors_in_1_files: S(
        6261,
        3,
        "Found_0_errors_in_1_files_6261",
        "Found {0} errors in {1} files.",
      ),
      File_name_0_has_a_1_extension_looking_up_2_instead: S(
        6262,
        3,
        "File_name_0_has_a_1_extension_looking_up_2_instead_6262",
        "File name '{0}' has a '{1}' extension - looking up '{2}' instead.",
      ),
      Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set: S(
        6263,
        1,
        "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263",
        "Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set.",
      ),
      Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:
        S(
          6264,
          3,
          "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264",
          "Enable importing files with any extension, provided a declaration file is present.",
        ),
      Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:
        S(
          6265,
          3,
          "Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265",
          "Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder.",
        ),
      Option_0_can_only_be_specified_on_command_line: S(
        6266,
        1,
        "Option_0_can_only_be_specified_on_command_line_6266",
        "Option '{0}' can only be specified on command line.",
      ),
      Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:
        S(
          6270,
          3,
          "Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270",
          "Directory '{0}' has no containing package.json scope. Imports will not resolve.",
        ),
      Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1: S(
        6271,
        3,
        "Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271",
        "Import specifier '{0}' does not exist in package.json scope at path '{1}'.",
      ),
      Invalid_import_specifier_0_has_no_possible_resolutions: S(
        6272,
        3,
        "Invalid_import_specifier_0_has_no_possible_resolutions_6272",
        "Invalid import specifier '{0}' has no possible resolutions.",
      ),
      package_json_scope_0_has_no_imports_defined: S(
        6273,
        3,
        "package_json_scope_0_has_no_imports_defined_6273",
        "package.json scope '{0}' has no imports defined.",
      ),
      package_json_scope_0_explicitly_maps_specifier_1_to_null: S(
        6274,
        3,
        "package_json_scope_0_explicitly_maps_specifier_1_to_null_6274",
        "package.json scope '{0}' explicitly maps specifier '{1}' to null.",
      ),
      package_json_scope_0_has_invalid_type_for_target_of_specifier_1: S(
        6275,
        3,
        "package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275",
        "package.json scope '{0}' has invalid type for target of specifier '{1}'",
      ),
      Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1: S(
        6276,
        3,
        "Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276",
        "Export specifier '{0}' does not exist in package.json scope at path '{1}'.",
      ),
      Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:
        S(
          6277,
          3,
          "Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277",
          "Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update.",
        ),
      There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:
        S(
          6278,
          3,
          "There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",
          `There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`,
        ),
      Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:
        S(
          6279,
          3,
          "Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279",
          "Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update.",
        ),
      There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:
        S(
          6280,
          3,
          "There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280",
          "There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.",
        ),
      package_json_has_a_peerDependencies_field: S(
        6281,
        3,
        "package_json_has_a_peerDependencies_field_6281",
        "'package.json' has a 'peerDependencies' field.",
      ),
      Found_peerDependency_0_with_1_version: S(
        6282,
        3,
        "Found_peerDependency_0_with_1_version_6282",
        "Found peerDependency '{0}' with '{1}' version.",
      ),
      Failed_to_find_peerDependency_0: S(
        6283,
        3,
        "Failed_to_find_peerDependency_0_6283",
        "Failed to find peerDependency '{0}'.",
      ),
      File_Layout: S(6284, 3, "File_Layout_6284", "File Layout"),
      Environment_Settings: S(
        6285,
        3,
        "Environment_Settings_6285",
        "Environment Settings",
      ),
      See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule: S(
        6286,
        3,
        "See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286",
        "See also https://aka.ms/tsconfig/module",
      ),
      For_nodejs_Colon: S(6287, 3, "For_nodejs_Colon_6287", "For nodejs:"),
      and_npm_install_D_types_Slashnode: S(
        6290,
        3,
        "and_npm_install_D_types_Slashnode_6290",
        "and npm install -D @types/node",
      ),
      Other_Outputs: S(6291, 3, "Other_Outputs_6291", "Other Outputs"),
      Stricter_Typechecking_Options: S(
        6292,
        3,
        "Stricter_Typechecking_Options_6292",
        "Stricter Typechecking Options",
      ),
      Style_Options: S(6293, 3, "Style_Options_6293", "Style Options"),
      Recommended_Options: S(
        6294,
        3,
        "Recommended_Options_6294",
        "Recommended Options",
      ),
      Enable_project_compilation: S(
        6302,
        3,
        "Enable_project_compilation_6302",
        "Enable project compilation",
      ),
      Composite_projects_may_not_disable_declaration_emit: S(
        6304,
        1,
        "Composite_projects_may_not_disable_declaration_emit_6304",
        "Composite projects may not disable declaration emit.",
      ),
      Output_file_0_has_not_been_built_from_source_file_1: S(
        6305,
        1,
        "Output_file_0_has_not_been_built_from_source_file_1_6305",
        "Output file '{0}' has not been built from source file '{1}'.",
      ),
      Referenced_project_0_must_have_setting_composite_Colon_true: S(
        6306,
        1,
        "Referenced_project_0_must_have_setting_composite_Colon_true_6306",
        `Referenced project '{0}' must have setting "composite": true.`,
      ),
      File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:
        S(
          6307,
          1,
          "File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307",
          "File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern.",
        ),
      Referenced_project_0_may_not_disable_emit: S(
        6310,
        1,
        "Referenced_project_0_may_not_disable_emit_6310",
        "Referenced project '{0}' may not disable emit.",
      ),
      Project_0_is_out_of_date_because_output_1_is_older_than_input_2: S(
        6350,
        3,
        "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350",
        "Project '{0}' is out of date because output '{1}' is older than input '{2}'",
      ),
      Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2: S(
        6351,
        3,
        "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351",
        "Project '{0}' is up to date because newest input '{1}' is older than output '{2}'",
      ),
      Project_0_is_out_of_date_because_output_file_1_does_not_exist: S(
        6352,
        3,
        "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352",
        "Project '{0}' is out of date because output file '{1}' does not exist",
      ),
      Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date: S(
        6353,
        3,
        "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353",
        "Project '{0}' is out of date because its dependency '{1}' is out of date",
      ),
      Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies: S(
        6354,
        3,
        "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354",
        "Project '{0}' is up to date with .d.ts files from its dependencies",
      ),
      Projects_in_this_build_Colon_0: S(
        6355,
        3,
        "Projects_in_this_build_Colon_0_6355",
        "Projects in this build: {0}",
      ),
      A_non_dry_build_would_delete_the_following_files_Colon_0: S(
        6356,
        3,
        "A_non_dry_build_would_delete_the_following_files_Colon_0_6356",
        "A non-dry build would delete the following files: {0}",
      ),
      A_non_dry_build_would_build_project_0: S(
        6357,
        3,
        "A_non_dry_build_would_build_project_0_6357",
        "A non-dry build would build project '{0}'",
      ),
      Building_project_0: S(
        6358,
        3,
        "Building_project_0_6358",
        "Building project '{0}'...",
      ),
      Updating_output_timestamps_of_project_0: S(
        6359,
        3,
        "Updating_output_timestamps_of_project_0_6359",
        "Updating output timestamps of project '{0}'...",
      ),
      Project_0_is_up_to_date: S(
        6361,
        3,
        "Project_0_is_up_to_date_6361",
        "Project '{0}' is up to date",
      ),
      Skipping_build_of_project_0_because_its_dependency_1_has_errors: S(
        6362,
        3,
        "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362",
        "Skipping build of project '{0}' because its dependency '{1}' has errors",
      ),
      Project_0_can_t_be_built_because_its_dependency_1_has_errors: S(
        6363,
        3,
        "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363",
        "Project '{0}' can't be built because its dependency '{1}' has errors",
      ),
      Build_one_or_more_projects_and_their_dependencies_if_out_of_date: S(
        6364,
        3,
        "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364",
        "Build one or more projects and their dependencies, if out of date",
      ),
      Delete_the_outputs_of_all_projects: S(
        6365,
        3,
        "Delete_the_outputs_of_all_projects_6365",
        "Delete the outputs of all projects.",
      ),
      Show_what_would_be_built_or_deleted_if_specified_with_clean: S(
        6367,
        3,
        "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367",
        "Show what would be built (or deleted, if specified with '--clean')",
      ),
      Option_build_must_be_the_first_command_line_argument: S(
        6369,
        1,
        "Option_build_must_be_the_first_command_line_argument_6369",
        "Option '--build' must be the first command line argument.",
      ),
      Options_0_and_1_cannot_be_combined: S(
        6370,
        1,
        "Options_0_and_1_cannot_be_combined_6370",
        "Options '{0}' and '{1}' cannot be combined.",
      ),
      Updating_unchanged_output_timestamps_of_project_0: S(
        6371,
        3,
        "Updating_unchanged_output_timestamps_of_project_0_6371",
        "Updating unchanged output timestamps of project '{0}'...",
      ),
      A_non_dry_build_would_update_timestamps_for_output_of_project_0: S(
        6374,
        3,
        "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374",
        "A non-dry build would update timestamps for output of project '{0}'",
      ),
      Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:
        S(
          6377,
          1,
          "Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377",
          "Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'",
        ),
      Composite_projects_may_not_disable_incremental_compilation: S(
        6379,
        1,
        "Composite_projects_may_not_disable_incremental_compilation_6379",
        "Composite projects may not disable incremental compilation.",
      ),
      Specify_file_to_store_incremental_compilation_information: S(
        6380,
        3,
        "Specify_file_to_store_incremental_compilation_information_6380",
        "Specify file to store incremental compilation information",
      ),
      Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:
        S(
          6381,
          3,
          "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381",
          "Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'",
        ),
      Skipping_build_of_project_0_because_its_dependency_1_was_not_built: S(
        6382,
        3,
        "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382",
        "Skipping build of project '{0}' because its dependency '{1}' was not built",
      ),
      Project_0_can_t_be_built_because_its_dependency_1_was_not_built: S(
        6383,
        3,
        "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383",
        "Project '{0}' can't be built because its dependency '{1}' was not built",
      ),
      Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:
        S(
          6384,
          3,
          "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384",
          "Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it.",
        ),
      _0_is_deprecated: S(
        6385,
        2,
        "_0_is_deprecated_6385",
        "'{0}' is deprecated.",
        void 0,
        void 0,
        !0,
      ),
      Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:
        S(
          6386,
          3,
          "Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386",
          "Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found.",
        ),
      The_signature_0_of_1_is_deprecated: S(
        6387,
        2,
        "The_signature_0_of_1_is_deprecated_6387",
        "The signature '{0}' of '{1}' is deprecated.",
        void 0,
        void 0,
        !0,
      ),
      Project_0_is_being_forcibly_rebuilt: S(
        6388,
        3,
        "Project_0_is_being_forcibly_rebuilt_6388",
        "Project '{0}' is being forcibly rebuilt",
      ),
      Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:
        S(
          6389,
          3,
          "Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389",
          "Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved.",
        ),
      Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:
        S(
          6390,
          3,
          "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390",
          "Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'.",
        ),
      Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:
        S(
          6391,
          3,
          "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391",
          "Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'.",
        ),
      Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:
        S(
          6392,
          3,
          "Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392",
          "Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved.",
        ),
      Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:
        S(
          6393,
          3,
          "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393",
          "Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'.",
        ),
      Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:
        S(
          6394,
          3,
          "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394",
          "Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'.",
        ),
      Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:
        S(
          6395,
          3,
          "Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395",
          "Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved.",
        ),
      Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:
        S(
          6396,
          3,
          "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396",
          "Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'.",
        ),
      Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:
        S(
          6397,
          3,
          "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397",
          "Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'.",
        ),
      Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:
        S(
          6398,
          3,
          "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398",
          "Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved.",
        ),
      Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:
        S(
          6399,
          3,
          "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399",
          "Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted",
        ),
      Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:
        S(
          6400,
          3,
          "Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400",
          "Project '{0}' is up to date but needs to update timestamps of output files that are older than input files",
        ),
      Project_0_is_out_of_date_because_there_was_error_reading_file_1: S(
        6401,
        3,
        "Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401",
        "Project '{0}' is out of date because there was error reading file '{1}'",
      ),
      Resolving_in_0_mode_with_conditions_1: S(
        6402,
        3,
        "Resolving_in_0_mode_with_conditions_1_6402",
        "Resolving in {0} mode with conditions {1}.",
      ),
      Matched_0_condition_1: S(
        6403,
        3,
        "Matched_0_condition_1_6403",
        "Matched '{0}' condition '{1}'.",
      ),
      Using_0_subpath_1_with_target_2: S(
        6404,
        3,
        "Using_0_subpath_1_with_target_2_6404",
        "Using '{0}' subpath '{1}' with target '{2}'.",
      ),
      Saw_non_matching_condition_0: S(
        6405,
        3,
        "Saw_non_matching_condition_0_6405",
        "Saw non-matching condition '{0}'.",
      ),
      Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:
        S(
          6406,
          3,
          "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406",
          "Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions",
        ),
      Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:
        S(
          6407,
          3,
          "Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407",
          "Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set.",
        ),
      Use_the_package_json_exports_field_when_resolving_package_imports: S(
        6408,
        3,
        "Use_the_package_json_exports_field_when_resolving_package_imports_6408",
        "Use the package.json 'exports' field when resolving package imports.",
      ),
      Use_the_package_json_imports_field_when_resolving_imports: S(
        6409,
        3,
        "Use_the_package_json_imports_field_when_resolving_imports_6409",
        "Use the package.json 'imports' field when resolving imports.",
      ),
      Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:
        S(
          6410,
          3,
          "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410",
          "Conditions to set in addition to the resolver-specific defaults when resolving imports.",
        ),
      true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:
        S(
          6411,
          3,
          "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411",
          "`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`.",
        ),
      Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:
        S(
          6412,
          3,
          "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412",
          "Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more.",
        ),
      Entering_conditional_exports: S(
        6413,
        3,
        "Entering_conditional_exports_6413",
        "Entering conditional exports.",
      ),
      Resolved_under_condition_0: S(
        6414,
        3,
        "Resolved_under_condition_0_6414",
        "Resolved under condition '{0}'.",
      ),
      Failed_to_resolve_under_condition_0: S(
        6415,
        3,
        "Failed_to_resolve_under_condition_0_6415",
        "Failed to resolve under condition '{0}'.",
      ),
      Exiting_conditional_exports: S(
        6416,
        3,
        "Exiting_conditional_exports_6416",
        "Exiting conditional exports.",
      ),
      Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:
        S(
          6417,
          3,
          "Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417",
          "Searching all ancestor node_modules directories for preferred extensions: {0}.",
        ),
      Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:
        S(
          6418,
          3,
          "Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418",
          "Searching all ancestor node_modules directories for fallback extensions: {0}.",
        ),
      Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:
        S(
          6419,
          3,
          "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419",
          "Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors.",
        ),
      Project_0_is_out_of_date_because_1: S(
        6420,
        3,
        "Project_0_is_out_of_date_because_1_6420",
        "Project '{0}' is out of date because {1}.",
      ),
      Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:
        S(
          6421,
          3,
          "Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421",
          "Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files.",
        ),
      The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:
        S(
          6500,
          3,
          "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500",
          "The expected type comes from property '{0}' which is declared here on type '{1}'",
        ),
      The_expected_type_comes_from_this_index_signature: S(
        6501,
        3,
        "The_expected_type_comes_from_this_index_signature_6501",
        "The expected type comes from this index signature.",
      ),
      The_expected_type_comes_from_the_return_type_of_this_signature: S(
        6502,
        3,
        "The_expected_type_comes_from_the_return_type_of_this_signature_6502",
        "The expected type comes from the return type of this signature.",
      ),
      Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:
        S(
          6503,
          3,
          "Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503",
          "Print names of files that are part of the compilation and then stop processing.",
        ),
      File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option: S(
        6504,
        1,
        "File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504",
        "File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?",
      ),
      Print_names_of_files_and_the_reason_they_are_part_of_the_compilation: S(
        6505,
        3,
        "Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505",
        "Print names of files and the reason they are part of the compilation.",
      ),
      Consider_adding_a_declare_modifier_to_this_class: S(
        6506,
        3,
        "Consider_adding_a_declare_modifier_to_this_class_6506",
        "Consider adding a 'declare' modifier to this class.",
      ),
      Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files:
        S(
          6600,
          3,
          "Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these__6600",
          "Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.",
        ),
      Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export: S(
        6601,
        3,
        "Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601",
        "Allow 'import x from y' when a module doesn't have a default export.",
      ),
      Allow_accessing_UMD_globals_from_modules: S(
        6602,
        3,
        "Allow_accessing_UMD_globals_from_modules_6602",
        "Allow accessing UMD globals from modules.",
      ),
      Disable_error_reporting_for_unreachable_code: S(
        6603,
        3,
        "Disable_error_reporting_for_unreachable_code_6603",
        "Disable error reporting for unreachable code.",
      ),
      Disable_error_reporting_for_unused_labels: S(
        6604,
        3,
        "Disable_error_reporting_for_unused_labels_6604",
        "Disable error reporting for unused labels.",
      ),
      Ensure_use_strict_is_always_emitted: S(
        6605,
        3,
        "Ensure_use_strict_is_always_emitted_6605",
        "Ensure 'use strict' is always emitted.",
      ),
      Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:
        S(
          6606,
          3,
          "Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606",
          "Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it.",
        ),
      Specify_the_base_directory_to_resolve_non_relative_module_names: S(
        6607,
        3,
        "Specify_the_base_directory_to_resolve_non_relative_module_names_6607",
        "Specify the base directory to resolve non-relative module names.",
      ),
      No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:
        S(
          6608,
          3,
          "No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608",
          "No longer supported. In early versions, manually set the text encoding for reading files.",
        ),
      Enable_error_reporting_in_type_checked_JavaScript_files: S(
        6609,
        3,
        "Enable_error_reporting_in_type_checked_JavaScript_files_6609",
        "Enable error reporting in type-checked JavaScript files.",
      ),
      Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:
        S(
          6611,
          3,
          "Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611",
          "Enable constraints that allow a TypeScript project to be used with project references.",
        ),
      Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:
        S(
          6612,
          3,
          "Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612",
          "Generate .d.ts files from TypeScript and JavaScript files in your project.",
        ),
      Specify_the_output_directory_for_generated_declaration_files: S(
        6613,
        3,
        "Specify_the_output_directory_for_generated_declaration_files_6613",
        "Specify the output directory for generated declaration files.",
      ),
      Create_sourcemaps_for_d_ts_files: S(
        6614,
        3,
        "Create_sourcemaps_for_d_ts_files_6614",
        "Create sourcemaps for d.ts files.",
      ),
      Output_compiler_performance_information_after_building: S(
        6615,
        3,
        "Output_compiler_performance_information_after_building_6615",
        "Output compiler performance information after building.",
      ),
      Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:
        S(
          6616,
          3,
          "Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616",
          "Disables inference for type acquisition by looking at filenames in a project.",
        ),
      Reduce_the_number_of_projects_loaded_automatically_by_TypeScript: S(
        6617,
        3,
        "Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617",
        "Reduce the number of projects loaded automatically by TypeScript.",
      ),
      Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:
        S(
          6618,
          3,
          "Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618",
          "Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server.",
        ),
      Opt_a_project_out_of_multi_project_reference_checking_when_editing: S(
        6619,
        3,
        "Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619",
        "Opt a project out of multi-project reference checking when editing.",
      ),
      Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:
        S(
          6620,
          3,
          "Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620",
          "Disable preferring source files instead of declaration files when referencing composite projects.",
        ),
      Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:
        S(
          6621,
          3,
          "Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621",
          "Emit more compliant, but verbose and less performant JavaScript for iteration.",
        ),
      Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files: S(
        6622,
        3,
        "Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622",
        "Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.",
      ),
      Only_output_d_ts_files_and_not_JavaScript_files: S(
        6623,
        3,
        "Only_output_d_ts_files_and_not_JavaScript_files_6623",
        "Only output d.ts files and not JavaScript files.",
      ),
      Emit_design_type_metadata_for_decorated_declarations_in_source_files: S(
        6624,
        3,
        "Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624",
        "Emit design-type metadata for decorated declarations in source files.",
      ),
      Disable_the_type_acquisition_for_JavaScript_projects: S(
        6625,
        3,
        "Disable_the_type_acquisition_for_JavaScript_projects_6625",
        "Disable the type acquisition for JavaScript projects",
      ),
      Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:
        S(
          6626,
          3,
          "Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626",
          "Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility.",
        ),
      Filters_results_from_the_include_option: S(
        6627,
        3,
        "Filters_results_from_the_include_option_6627",
        "Filters results from the `include` option.",
      ),
      Remove_a_list_of_directories_from_the_watch_process: S(
        6628,
        3,
        "Remove_a_list_of_directories_from_the_watch_process_6628",
        "Remove a list of directories from the watch process.",
      ),
      Remove_a_list_of_files_from_the_watch_mode_s_processing: S(
        6629,
        3,
        "Remove_a_list_of_files_from_the_watch_mode_s_processing_6629",
        "Remove a list of files from the watch mode's processing.",
      ),
      Enable_experimental_support_for_legacy_experimental_decorators: S(
        6630,
        3,
        "Enable_experimental_support_for_legacy_experimental_decorators_6630",
        "Enable experimental support for legacy experimental decorators.",
      ),
      Print_files_read_during_the_compilation_including_why_it_was_included: S(
        6631,
        3,
        "Print_files_read_during_the_compilation_including_why_it_was_included_6631",
        "Print files read during the compilation including why it was included.",
      ),
      Output_more_detailed_compiler_performance_information_after_building: S(
        6632,
        3,
        "Output_more_detailed_compiler_performance_information_after_building_6632",
        "Output more detailed compiler performance information after building.",
      ),
      Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:
        S(
          6633,
          3,
          "Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633",
          "Specify one or more path or node module references to base configuration files from which settings are inherited.",
        ),
      Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:
        S(
          6634,
          3,
          "Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634",
          "Specify what approach the watcher should use if the system runs out of native file watchers.",
        ),
      Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:
        S(
          6635,
          3,
          "Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635",
          "Include a list of files. This does not support glob patterns, as opposed to `include`.",
        ),
      Build_all_projects_including_those_that_appear_to_be_up_to_date: S(
        6636,
        3,
        "Build_all_projects_including_those_that_appear_to_be_up_to_date_6636",
        "Build all projects, including those that appear to be up to date.",
      ),
      Ensure_that_casing_is_correct_in_imports: S(
        6637,
        3,
        "Ensure_that_casing_is_correct_in_imports_6637",
        "Ensure that casing is correct in imports.",
      ),
      Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging: S(
        6638,
        3,
        "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638",
        "Emit a v8 CPU profile of the compiler run for debugging.",
      ),
      Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:
        S(
          6639,
          3,
          "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639",
          "Allow importing helper functions from tslib once per project, instead of including them per-file.",
        ),
      Skip_building_downstream_projects_on_error_in_upstream_project: S(
        6640,
        3,
        "Skip_building_downstream_projects_on_error_in_upstream_project_6640",
        "Skip building downstream projects on error in upstream project.",
      ),
      Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:
        S(
          6641,
          3,
          "Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641",
          "Specify a list of glob patterns that match files to be included in compilation.",
        ),
      Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:
        S(
          6642,
          3,
          "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642",
          "Save .tsbuildinfo files to allow for incremental compilation of projects.",
        ),
      Include_sourcemap_files_inside_the_emitted_JavaScript: S(
        6643,
        3,
        "Include_sourcemap_files_inside_the_emitted_JavaScript_6643",
        "Include sourcemap files inside the emitted JavaScript.",
      ),
      Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript: S(
        6644,
        3,
        "Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644",
        "Include source code in the sourcemaps inside the emitted JavaScript.",
      ),
      Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:
        S(
          6645,
          3,
          "Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645",
          "Ensure that each file can be safely transpiled without relying on other imports.",
        ),
      Specify_what_JSX_code_is_generated: S(
        6646,
        3,
        "Specify_what_JSX_code_is_generated_6646",
        "Specify what JSX code is generated.",
      ),
      Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:
        S(
          6647,
          3,
          "Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647",
          "Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'.",
        ),
      Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:
        S(
          6648,
          3,
          "Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648",
          "Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.",
        ),
      Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:
        S(
          6649,
          3,
          "Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649",
          "Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'.",
        ),
      Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:
        S(
          6650,
          3,
          "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650",
          "Make keyof only return strings instead of string, numbers or symbols. Legacy option.",
        ),
      Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:
        S(
          6651,
          3,
          "Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651",
          "Specify a set of bundled library declaration files that describe the target runtime environment.",
        ),
      Print_the_names_of_emitted_files_after_a_compilation: S(
        6652,
        3,
        "Print_the_names_of_emitted_files_after_a_compilation_6652",
        "Print the names of emitted files after a compilation.",
      ),
      Print_all_of_the_files_read_during_the_compilation: S(
        6653,
        3,
        "Print_all_of_the_files_read_during_the_compilation_6653",
        "Print all of the files read during the compilation.",
      ),
      Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:
        S(
          6654,
          3,
          "Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654",
          "Set the language of the messaging from TypeScript. This does not affect emit.",
        ),
      Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:
        S(
          6655,
          3,
          "Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655",
          "Specify the location where debugger should locate map files instead of generated locations.",
        ),
      Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:
        S(
          6656,
          3,
          "Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656",
          "Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'.",
        ),
      Specify_what_module_code_is_generated: S(
        6657,
        3,
        "Specify_what_module_code_is_generated_6657",
        "Specify what module code is generated.",
      ),
      Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier: S(
        6658,
        3,
        "Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658",
        "Specify how TypeScript looks up a file from a given module specifier.",
      ),
      Set_the_newline_character_for_emitting_files: S(
        6659,
        3,
        "Set_the_newline_character_for_emitting_files_6659",
        "Set the newline character for emitting files.",
      ),
      Disable_emitting_files_from_a_compilation: S(
        6660,
        3,
        "Disable_emitting_files_from_a_compilation_6660",
        "Disable emitting files from a compilation.",
      ),
      Disable_generating_custom_helper_functions_like_extends_in_compiled_output:
        S(
          6661,
          3,
          "Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661",
          "Disable generating custom helper functions like '__extends' in compiled output.",
        ),
      Disable_emitting_files_if_any_type_checking_errors_are_reported: S(
        6662,
        3,
        "Disable_emitting_files_if_any_type_checking_errors_are_reported_6662",
        "Disable emitting files if any type checking errors are reported.",
      ),
      Disable_truncating_types_in_error_messages: S(
        6663,
        3,
        "Disable_truncating_types_in_error_messages_6663",
        "Disable truncating types in error messages.",
      ),
      Enable_error_reporting_for_fallthrough_cases_in_switch_statements: S(
        6664,
        3,
        "Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664",
        "Enable error reporting for fallthrough cases in switch statements.",
      ),
      Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:
        S(
          6665,
          3,
          "Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665",
          "Enable error reporting for expressions and declarations with an implied 'any' type.",
        ),
      Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:
        S(
          6666,
          3,
          "Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666",
          "Ensure overriding members in derived classes are marked with an override modifier.",
        ),
      Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:
        S(
          6667,
          3,
          "Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667",
          "Enable error reporting for codepaths that do not explicitly return in a function.",
        ),
      Enable_error_reporting_when_this_is_given_the_type_any: S(
        6668,
        3,
        "Enable_error_reporting_when_this_is_given_the_type_any_6668",
        "Enable error reporting when 'this' is given the type 'any'.",
      ),
      Disable_adding_use_strict_directives_in_emitted_JavaScript_files: S(
        6669,
        3,
        "Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669",
        "Disable adding 'use strict' directives in emitted JavaScript files.",
      ),
      Disable_including_any_library_files_including_the_default_lib_d_ts: S(
        6670,
        3,
        "Disable_including_any_library_files_including_the_default_lib_d_ts_6670",
        "Disable including any library files, including the default lib.d.ts.",
      ),
      Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:
        S(
          6671,
          3,
          "Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671",
          "Enforces using indexed accessors for keys declared using an indexed type.",
        ),
      Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:
        S(
          6672,
          3,
          "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672",
          "Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project.",
        ),
      Disable_strict_checking_of_generic_signatures_in_function_types: S(
        6673,
        3,
        "Disable_strict_checking_of_generic_signatures_in_function_types_6673",
        "Disable strict checking of generic signatures in function types.",
      ),
      Add_undefined_to_a_type_when_accessed_using_an_index: S(
        6674,
        3,
        "Add_undefined_to_a_type_when_accessed_using_an_index_6674",
        "Add 'undefined' to a type when accessed using an index.",
      ),
      Enable_error_reporting_when_local_variables_aren_t_read: S(
        6675,
        3,
        "Enable_error_reporting_when_local_variables_aren_t_read_6675",
        "Enable error reporting when local variables aren't read.",
      ),
      Raise_an_error_when_a_function_parameter_isn_t_read: S(
        6676,
        3,
        "Raise_an_error_when_a_function_parameter_isn_t_read_6676",
        "Raise an error when a function parameter isn't read.",
      ),
      Deprecated_setting_Use_outFile_instead: S(
        6677,
        3,
        "Deprecated_setting_Use_outFile_instead_6677",
        "Deprecated setting. Use 'outFile' instead.",
      ),
      Specify_an_output_folder_for_all_emitted_files: S(
        6678,
        3,
        "Specify_an_output_folder_for_all_emitted_files_6678",
        "Specify an output folder for all emitted files.",
      ),
      Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:
        S(
          6679,
          3,
          "Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679",
          "Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output.",
        ),
      Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:
        S(
          6680,
          3,
          "Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680",
          "Specify a set of entries that re-map imports to additional lookup locations.",
        ),
      Specify_a_list_of_language_service_plugins_to_include: S(
        6681,
        3,
        "Specify_a_list_of_language_service_plugins_to_include_6681",
        "Specify a list of language service plugins to include.",
      ),
      Disable_erasing_const_enum_declarations_in_generated_code: S(
        6682,
        3,
        "Disable_erasing_const_enum_declarations_in_generated_code_6682",
        "Disable erasing 'const enum' declarations in generated code.",
      ),
      Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:
        S(
          6683,
          3,
          "Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683",
          "Disable resolving symlinks to their realpath. This correlates to the same flag in node.",
        ),
      Disable_wiping_the_console_in_watch_mode: S(
        6684,
        3,
        "Disable_wiping_the_console_in_watch_mode_6684",
        "Disable wiping the console in watch mode.",
      ),
      Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:
        S(
          6685,
          3,
          "Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685",
          "Enable color and formatting in TypeScript's output to make compiler errors easier to read.",
        ),
      Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:
        S(
          6686,
          3,
          "Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686",
          "Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit.",
        ),
      Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:
        S(
          6687,
          3,
          "Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687",
          "Specify an array of objects that specify paths for projects. Used in project references.",
        ),
      Disable_emitting_comments: S(
        6688,
        3,
        "Disable_emitting_comments_6688",
        "Disable emitting comments.",
      ),
      Enable_importing_json_files: S(
        6689,
        3,
        "Enable_importing_json_files_6689",
        "Enable importing .json files.",
      ),
      Specify_the_root_folder_within_your_source_files: S(
        6690,
        3,
        "Specify_the_root_folder_within_your_source_files_6690",
        "Specify the root folder within your source files.",
      ),
      Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules: S(
        6691,
        3,
        "Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691",
        "Allow multiple folders to be treated as one when resolving modules.",
      ),
      Skip_type_checking_d_ts_files_that_are_included_with_TypeScript: S(
        6692,
        3,
        "Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692",
        "Skip type checking .d.ts files that are included with TypeScript.",
      ),
      Skip_type_checking_all_d_ts_files: S(
        6693,
        3,
        "Skip_type_checking_all_d_ts_files_6693",
        "Skip type checking all .d.ts files.",
      ),
      Create_source_map_files_for_emitted_JavaScript_files: S(
        6694,
        3,
        "Create_source_map_files_for_emitted_JavaScript_files_6694",
        "Create source map files for emitted JavaScript files.",
      ),
      Specify_the_root_path_for_debuggers_to_find_the_reference_source_code: S(
        6695,
        3,
        "Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695",
        "Specify the root path for debuggers to find the reference source code.",
      ),
      Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:
        S(
          6697,
          3,
          "Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697",
          "Check that the arguments for 'bind', 'call', and 'apply' methods match the original function.",
        ),
      When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:
        S(
          6698,
          3,
          "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698",
          "When assigning functions, check to ensure parameters and the return values are subtype-compatible.",
        ),
      When_type_checking_take_into_account_null_and_undefined: S(
        6699,
        3,
        "When_type_checking_take_into_account_null_and_undefined_6699",
        "When type checking, take into account 'null' and 'undefined'.",
      ),
      Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:
        S(
          6700,
          3,
          "Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700",
          "Check for class properties that are declared but not set in the constructor.",
        ),
      Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:
        S(
          6701,
          3,
          "Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701",
          "Disable emitting declarations that have '@internal' in their JSDoc comments.",
        ),
      Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:
        S(
          6702,
          3,
          "Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702",
          "Disable reporting of excess property errors during the creation of object literals.",
        ),
      Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:
        S(
          6703,
          3,
          "Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703",
          "Suppress 'noImplicitAny' errors when indexing objects that lack index signatures.",
        ),
      Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:
        S(
          6704,
          3,
          "Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704",
          "Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively.",
        ),
      Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:
        S(
          6705,
          3,
          "Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705",
          "Set the JavaScript language version for emitted JavaScript and include compatible library declarations.",
        ),
      Log_paths_used_during_the_moduleResolution_process: S(
        6706,
        3,
        "Log_paths_used_during_the_moduleResolution_process_6706",
        "Log paths used during the 'moduleResolution' process.",
      ),
      Specify_the_path_to_tsbuildinfo_incremental_compilation_file: S(
        6707,
        3,
        "Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707",
        "Specify the path to .tsbuildinfo incremental compilation file.",
      ),
      Specify_options_for_automatic_acquisition_of_declaration_files: S(
        6709,
        3,
        "Specify_options_for_automatic_acquisition_of_declaration_files_6709",
        "Specify options for automatic acquisition of declaration files.",
      ),
      Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types: S(
        6710,
        3,
        "Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710",
        "Specify multiple folders that act like './node_modules/@types'.",
      ),
      Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:
        S(
          6711,
          3,
          "Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711",
          "Specify type package names to be included without being referenced in a source file.",
        ),
      Emit_ECMAScript_standard_compliant_class_fields: S(
        6712,
        3,
        "Emit_ECMAScript_standard_compliant_class_fields_6712",
        "Emit ECMAScript-standard-compliant class fields.",
      ),
      Enable_verbose_logging: S(
        6713,
        3,
        "Enable_verbose_logging_6713",
        "Enable verbose logging.",
      ),
      Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:
        S(
          6714,
          3,
          "Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714",
          "Specify how directories are watched on systems that lack recursive file-watching functionality.",
        ),
      Specify_how_the_TypeScript_watch_mode_works: S(
        6715,
        3,
        "Specify_how_the_TypeScript_watch_mode_works_6715",
        "Specify how the TypeScript watch mode works.",
      ),
      Require_undeclared_properties_from_index_signatures_to_use_element_accesses:
        S(
          6717,
          3,
          "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717",
          "Require undeclared properties from index signatures to use element accesses.",
        ),
      Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:
        S(
          6718,
          3,
          "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718",
          "Specify emit/checking behavior for imports that are only used for types.",
        ),
      Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:
        S(
          6719,
          3,
          "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719",
          "Require sufficient annotation on exports so other tools can trivially generate declaration files.",
        ),
      Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:
        S(
          6720,
          3,
          "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720",
          "Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'.",
        ),
      Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript: S(
        6721,
        3,
        "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721",
        "Do not allow runtime constructs that are not part of ECMAScript.",
      ),
      Default_catch_clause_variables_as_unknown_instead_of_any: S(
        6803,
        3,
        "Default_catch_clause_variables_as_unknown_instead_of_any_6803",
        "Default catch clause variables as 'unknown' instead of 'any'.",
      ),
      Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:
        S(
          6804,
          3,
          "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804",
          "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting.",
        ),
      Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:
        S(
          6805,
          3,
          "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805",
          "Disable full type checking (only critical parse and emit errors will be reported).",
        ),
      Check_side_effect_imports: S(
        6806,
        3,
        "Check_side_effect_imports_6806",
        "Check side effect imports.",
      ),
      This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2: S(
        6807,
        1,
        "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807",
        "This operation can be simplified. This shift is identical to `{0} {1} {2}`.",
      ),
      Enable_lib_replacement: S(
        6808,
        3,
        "Enable_lib_replacement_6808",
        "Enable lib replacement.",
      ),
      one_of_Colon: S(6900, 3, "one_of_Colon_6900", "one of:"),
      one_or_more_Colon: S(6901, 3, "one_or_more_Colon_6901", "one or more:"),
      type_Colon: S(6902, 3, "type_Colon_6902", "type:"),
      default_Colon: S(6903, 3, "default_Colon_6903", "default:"),
      module_system_or_esModuleInterop: S(
        6904,
        3,
        "module_system_or_esModuleInterop_6904",
        'module === "system" or esModuleInterop',
      ),
      false_unless_strict_is_set: S(
        6905,
        3,
        "false_unless_strict_is_set_6905",
        "`false`, unless `strict` is set",
      ),
      false_unless_composite_is_set: S(
        6906,
        3,
        "false_unless_composite_is_set_6906",
        "`false`, unless `composite` is set",
      ),
      node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:
        S(
          6907,
          3,
          "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",
          '`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.',
        ),
      if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk: S(
        6908,
        3,
        "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",
        '`[]` if `files` is specified, otherwise `["**/*"]`',
      ),
      true_if_composite_false_otherwise: S(
        6909,
        3,
        "true_if_composite_false_otherwise_6909",
        "`true` if `composite`, `false` otherwise",
      ),
      module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node: S(
        69010,
        3,
        "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010",
        "module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`",
      ),
      Computed_from_the_list_of_input_files: S(
        6911,
        3,
        "Computed_from_the_list_of_input_files_6911",
        "Computed from the list of input files",
      ),
      Platform_specific: S(
        6912,
        3,
        "Platform_specific_6912",
        "Platform specific",
      ),
      You_can_learn_about_all_of_the_compiler_options_at_0: S(
        6913,
        3,
        "You_can_learn_about_all_of_the_compiler_options_at_0_6913",
        "You can learn about all of the compiler options at {0}",
      ),
      Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:
        S(
          6914,
          3,
          "Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914",
          "Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:",
        ),
      Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:
        S(
          6915,
          3,
          "Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915",
          "Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}",
        ),
      COMMON_COMMANDS: S(6916, 3, "COMMON_COMMANDS_6916", "COMMON COMMANDS"),
      ALL_COMPILER_OPTIONS: S(
        6917,
        3,
        "ALL_COMPILER_OPTIONS_6917",
        "ALL COMPILER OPTIONS",
      ),
      WATCH_OPTIONS: S(6918, 3, "WATCH_OPTIONS_6918", "WATCH OPTIONS"),
      BUILD_OPTIONS: S(6919, 3, "BUILD_OPTIONS_6919", "BUILD OPTIONS"),
      COMMON_COMPILER_OPTIONS: S(
        6920,
        3,
        "COMMON_COMPILER_OPTIONS_6920",
        "COMMON COMPILER OPTIONS",
      ),
      COMMAND_LINE_FLAGS: S(
        6921,
        3,
        "COMMAND_LINE_FLAGS_6921",
        "COMMAND LINE FLAGS",
      ),
      tsc_Colon_The_TypeScript_Compiler: S(
        6922,
        3,
        "tsc_Colon_The_TypeScript_Compiler_6922",
        "tsc: The TypeScript Compiler",
      ),
      Compiles_the_current_project_tsconfig_json_in_the_working_directory: S(
        6923,
        3,
        "Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923",
        "Compiles the current project (tsconfig.json in the working directory.)",
      ),
      Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:
        S(
          6924,
          3,
          "Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924",
          "Ignoring tsconfig.json, compiles the specified files with default compiler options.",
        ),
      Build_a_composite_project_in_the_working_directory: S(
        6925,
        3,
        "Build_a_composite_project_in_the_working_directory_6925",
        "Build a composite project in the working directory.",
      ),
      Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:
        S(
          6926,
          3,
          "Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926",
          "Creates a tsconfig.json with the recommended settings in the working directory.",
        ),
      Compiles_the_TypeScript_project_located_at_the_specified_path: S(
        6927,
        3,
        "Compiles_the_TypeScript_project_located_at_the_specified_path_6927",
        "Compiles the TypeScript project located at the specified path.",
      ),
      An_expanded_version_of_this_information_showing_all_possible_compiler_options:
        S(
          6928,
          3,
          "An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928",
          "An expanded version of this information, showing all possible compiler options",
        ),
      Compiles_the_current_project_with_additional_settings: S(
        6929,
        3,
        "Compiles_the_current_project_with_additional_settings_6929",
        "Compiles the current project, with additional settings.",
      ),
      true_for_ES2022_and_above_including_ESNext: S(
        6930,
        3,
        "true_for_ES2022_and_above_including_ESNext_6930",
        "`true` for ES2022 and above, including ESNext.",
      ),
      List_of_file_name_suffixes_to_search_when_resolving_a_module: S(
        6931,
        1,
        "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931",
        "List of file name suffixes to search when resolving a module.",
      ),
      Variable_0_implicitly_has_an_1_type: S(
        7005,
        1,
        "Variable_0_implicitly_has_an_1_type_7005",
        "Variable '{0}' implicitly has an '{1}' type.",
      ),
      Parameter_0_implicitly_has_an_1_type: S(
        7006,
        1,
        "Parameter_0_implicitly_has_an_1_type_7006",
        "Parameter '{0}' implicitly has an '{1}' type.",
      ),
      Member_0_implicitly_has_an_1_type: S(
        7008,
        1,
        "Member_0_implicitly_has_an_1_type_7008",
        "Member '{0}' implicitly has an '{1}' type.",
      ),
      new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:
        S(
          7009,
          1,
          "new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009",
          "'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.",
        ),
      _0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type: S(
        7010,
        1,
        "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010",
        "'{0}', which lacks return-type annotation, implicitly has an '{1}' return type.",
      ),
      Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:
        S(
          7011,
          1,
          "Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011",
          "Function expression, which lacks return-type annotation, implicitly has an '{0}' return type.",
        ),
      This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:
        S(
          7012,
          1,
          "This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012",
          "This overload implicitly returns the type '{0}' because it lacks a return type annotation.",
        ),
      Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:
        S(
          7013,
          1,
          "Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013",
          "Construct signature, which lacks return-type annotation, implicitly has an 'any' return type.",
        ),
      Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:
        S(
          7014,
          1,
          "Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014",
          "Function type, which lacks return-type annotation, implicitly has an '{0}' return type.",
        ),
      Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:
        S(
          7015,
          1,
          "Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015",
          "Element implicitly has an 'any' type because index expression is not of type 'number'.",
        ),
      Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:
        S(
          7016,
          1,
          "Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016",
          "Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type.",
        ),
      Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:
        S(
          7017,
          1,
          "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017",
          "Element implicitly has an 'any' type because type '{0}' has no index signature.",
        ),
      Object_literal_s_property_0_implicitly_has_an_1_type: S(
        7018,
        1,
        "Object_literal_s_property_0_implicitly_has_an_1_type_7018",
        "Object literal's property '{0}' implicitly has an '{1}' type.",
      ),
      Rest_parameter_0_implicitly_has_an_any_type: S(
        7019,
        1,
        "Rest_parameter_0_implicitly_has_an_any_type_7019",
        "Rest parameter '{0}' implicitly has an 'any[]' type.",
      ),
      Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:
        S(
          7020,
          1,
          "Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020",
          "Call signature, which lacks return-type annotation, implicitly has an 'any' return type.",
        ),
      _0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:
        S(
          7022,
          1,
          "_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022",
          "'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.",
        ),
      _0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:
        S(
          7023,
          1,
          "_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023",
          "'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.",
        ),
      Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:
        S(
          7024,
          1,
          "Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024",
          "Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.",
        ),
      Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:
        S(
          7025,
          1,
          "Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025",
          "Generator implicitly has yield type '{0}'. Consider supplying a return type annotation.",
        ),
      JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists: S(
        7026,
        1,
        "JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026",
        "JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists.",
      ),
      Unreachable_code_detected: S(
        7027,
        1,
        "Unreachable_code_detected_7027",
        "Unreachable code detected.",
        !0,
      ),
      Unused_label: S(7028, 1, "Unused_label_7028", "Unused label.", !0),
      Fallthrough_case_in_switch: S(
        7029,
        1,
        "Fallthrough_case_in_switch_7029",
        "Fallthrough case in switch.",
      ),
      Not_all_code_paths_return_a_value: S(
        7030,
        1,
        "Not_all_code_paths_return_a_value_7030",
        "Not all code paths return a value.",
      ),
      Binding_element_0_implicitly_has_an_1_type: S(
        7031,
        1,
        "Binding_element_0_implicitly_has_an_1_type_7031",
        "Binding element '{0}' implicitly has an '{1}' type.",
      ),
      Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:
        S(
          7032,
          1,
          "Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032",
          "Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation.",
        ),
      Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:
        S(
          7033,
          1,
          "Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033",
          "Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation.",
        ),
      Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:
        S(
          7034,
          1,
          "Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034",
          "Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined.",
        ),
      Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:
        S(
          7035,
          1,
          "Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035",
          "Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`",
        ),
      Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0: S(
        7036,
        1,
        "Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036",
        "Dynamic import's specifier must be of type 'string', but here has type '{0}'.",
      ),
      Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:
        S(
          7037,
          3,
          "Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037",
          "Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.",
        ),
      Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:
        S(
          7038,
          3,
          "Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038",
          "Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead.",
        ),
      Mapped_object_type_implicitly_has_an_any_template_type: S(
        7039,
        1,
        "Mapped_object_type_implicitly_has_an_any_template_type_7039",
        "Mapped object type implicitly has an 'any' template type.",
      ),
      If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:
        S(
          7040,
          1,
          "If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040",
          "If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'",
        ),
      The_containing_arrow_function_captures_the_global_value_of_this: S(
        7041,
        1,
        "The_containing_arrow_function_captures_the_global_value_of_this_7041",
        "The containing arrow function captures the global value of 'this'.",
      ),
      Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used: S(
        7042,
        1,
        "Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042",
        "Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used.",
      ),
      Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:
        S(
          7043,
          2,
          "Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043",
          "Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.",
        ),
      Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:
        S(
          7044,
          2,
          "Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044",
          "Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.",
        ),
      Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:
        S(
          7045,
          2,
          "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045",
          "Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.",
        ),
      Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:
        S(
          7046,
          2,
          "Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046",
          "Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage.",
        ),
      Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:
        S(
          7047,
          2,
          "Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047",
          "Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage.",
        ),
      Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:
        S(
          7048,
          2,
          "Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048",
          "Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage.",
        ),
      Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:
        S(
          7049,
          2,
          "Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049",
          "Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage.",
        ),
      _0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:
        S(
          7050,
          2,
          "_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050",
          "'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage.",
        ),
      Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1: S(
        7051,
        1,
        "Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051",
        "Parameter has a name but no type. Did you mean '{0}: {1}'?",
      ),
      Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:
        S(
          7052,
          1,
          "Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052",
          "Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?",
        ),
      Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:
        S(
          7053,
          1,
          "Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053",
          "Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'.",
        ),
      No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1: S(
        7054,
        1,
        "No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054",
        "No index signature with a parameter of type '{0}' was found on type '{1}'.",
      ),
      _0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type: S(
        7055,
        1,
        "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055",
        "'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type.",
      ),
      The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:
        S(
          7056,
          1,
          "The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056",
          "The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.",
        ),
      yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:
        S(
          7057,
          1,
          "yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057",
          "'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation.",
        ),
      If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:
        S(
          7058,
          1,
          "If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058",
          "If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`",
        ),
      This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:
        S(
          7059,
          1,
          "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059",
          "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",
        ),
      This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:
        S(
          7060,
          1,
          "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060",
          "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint.",
        ),
      A_mapped_type_may_not_declare_properties_or_methods: S(
        7061,
        1,
        "A_mapped_type_may_not_declare_properties_or_methods_7061",
        "A mapped type may not declare properties or methods.",
      ),
      You_cannot_rename_this_element: S(
        8e3,
        1,
        "You_cannot_rename_this_element_8000",
        "You cannot rename this element.",
      ),
      You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:
        S(
          8001,
          1,
          "You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001",
          "You cannot rename elements that are defined in the standard TypeScript library.",
        ),
      import_can_only_be_used_in_TypeScript_files: S(
        8002,
        1,
        "import_can_only_be_used_in_TypeScript_files_8002",
        "'import ... =' can only be used in TypeScript files.",
      ),
      export_can_only_be_used_in_TypeScript_files: S(
        8003,
        1,
        "export_can_only_be_used_in_TypeScript_files_8003",
        "'export =' can only be used in TypeScript files.",
      ),
      Type_parameter_declarations_can_only_be_used_in_TypeScript_files: S(
        8004,
        1,
        "Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004",
        "Type parameter declarations can only be used in TypeScript files.",
      ),
      implements_clauses_can_only_be_used_in_TypeScript_files: S(
        8005,
        1,
        "implements_clauses_can_only_be_used_in_TypeScript_files_8005",
        "'implements' clauses can only be used in TypeScript files.",
      ),
      _0_declarations_can_only_be_used_in_TypeScript_files: S(
        8006,
        1,
        "_0_declarations_can_only_be_used_in_TypeScript_files_8006",
        "'{0}' declarations can only be used in TypeScript files.",
      ),
      Type_aliases_can_only_be_used_in_TypeScript_files: S(
        8008,
        1,
        "Type_aliases_can_only_be_used_in_TypeScript_files_8008",
        "Type aliases can only be used in TypeScript files.",
      ),
      The_0_modifier_can_only_be_used_in_TypeScript_files: S(
        8009,
        1,
        "The_0_modifier_can_only_be_used_in_TypeScript_files_8009",
        "The '{0}' modifier can only be used in TypeScript files.",
      ),
      Type_annotations_can_only_be_used_in_TypeScript_files: S(
        8010,
        1,
        "Type_annotations_can_only_be_used_in_TypeScript_files_8010",
        "Type annotations can only be used in TypeScript files.",
      ),
      Type_arguments_can_only_be_used_in_TypeScript_files: S(
        8011,
        1,
        "Type_arguments_can_only_be_used_in_TypeScript_files_8011",
        "Type arguments can only be used in TypeScript files.",
      ),
      Parameter_modifiers_can_only_be_used_in_TypeScript_files: S(
        8012,
        1,
        "Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012",
        "Parameter modifiers can only be used in TypeScript files.",
      ),
      Non_null_assertions_can_only_be_used_in_TypeScript_files: S(
        8013,
        1,
        "Non_null_assertions_can_only_be_used_in_TypeScript_files_8013",
        "Non-null assertions can only be used in TypeScript files.",
      ),
      Type_assertion_expressions_can_only_be_used_in_TypeScript_files: S(
        8016,
        1,
        "Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016",
        "Type assertion expressions can only be used in TypeScript files.",
      ),
      Signature_declarations_can_only_be_used_in_TypeScript_files: S(
        8017,
        1,
        "Signature_declarations_can_only_be_used_in_TypeScript_files_8017",
        "Signature declarations can only be used in TypeScript files.",
      ),
      Report_errors_in_js_files: S(
        8019,
        3,
        "Report_errors_in_js_files_8019",
        "Report errors in .js files.",
      ),
      JSDoc_types_can_only_be_used_inside_documentation_comments: S(
        8020,
        1,
        "JSDoc_types_can_only_be_used_inside_documentation_comments_8020",
        "JSDoc types can only be used inside documentation comments.",
      ),
      JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:
        S(
          8021,
          1,
          "JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021",
          "JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags.",
        ),
      JSDoc_0_is_not_attached_to_a_class: S(
        8022,
        1,
        "JSDoc_0_is_not_attached_to_a_class_8022",
        "JSDoc '@{0}' is not attached to a class.",
      ),
      JSDoc_0_1_does_not_match_the_extends_2_clause: S(
        8023,
        1,
        "JSDoc_0_1_does_not_match_the_extends_2_clause_8023",
        "JSDoc '@{0} {1}' does not match the 'extends {2}' clause.",
      ),
      JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name: S(
        8024,
        1,
        "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024",
        "JSDoc '@param' tag has name '{0}', but there is no parameter with that name.",
      ),
      Class_declarations_cannot_have_more_than_one_augments_or_extends_tag: S(
        8025,
        1,
        "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025",
        "Class declarations cannot have more than one '@augments' or '@extends' tag.",
      ),
      Expected_0_type_arguments_provide_these_with_an_extends_tag: S(
        8026,
        1,
        "Expected_0_type_arguments_provide_these_with_an_extends_tag_8026",
        "Expected {0} type arguments; provide these with an '@extends' tag.",
      ),
      Expected_0_1_type_arguments_provide_these_with_an_extends_tag: S(
        8027,
        1,
        "Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027",
        "Expected {0}-{1} type arguments; provide these with an '@extends' tag.",
      ),
      JSDoc_may_only_appear_in_the_last_parameter_of_a_signature: S(
        8028,
        1,
        "JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028",
        "JSDoc '...' may only appear in the last parameter of a signature.",
      ),
      JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:
        S(
          8029,
          1,
          "JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029",
          "JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type.",
        ),
      The_type_of_a_function_declaration_must_match_the_function_s_signature: S(
        8030,
        1,
        "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030",
        "The type of a function declaration must match the function's signature.",
      ),
      You_cannot_rename_a_module_via_a_global_import: S(
        8031,
        1,
        "You_cannot_rename_a_module_via_a_global_import_8031",
        "You cannot rename a module via a global import.",
      ),
      Qualified_name_0_is_not_allowed_without_a_leading_param_object_1: S(
        8032,
        1,
        "Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032",
        "Qualified name '{0}' is not allowed without a leading '@param {object} {1}'.",
      ),
      A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags: S(
        8033,
        1,
        "A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033",
        "A JSDoc '@typedef' comment may not contain multiple '@type' tags.",
      ),
      The_tag_was_first_specified_here: S(
        8034,
        1,
        "The_tag_was_first_specified_here_8034",
        "The tag was first specified here.",
      ),
      You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder: S(
        8035,
        1,
        "You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035",
        "You cannot rename elements that are defined in a 'node_modules' folder.",
      ),
      You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:
        S(
          8036,
          1,
          "You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036",
          "You cannot rename elements that are defined in another 'node_modules' folder.",
        ),
      Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files: S(
        8037,
        1,
        "Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037",
        "Type satisfaction expressions can only be used in TypeScript files.",
      ),
      Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:
        S(
          8038,
          1,
          "Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038",
          "Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.",
        ),
      A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag: S(
        8039,
        1,
        "A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039",
        "A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag",
      ),
      Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:
        S(
          9005,
          1,
          "Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005",
          "Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit.",
        ),
      Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:
        S(
          9006,
          1,
          "Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006",
          "Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit.",
        ),
      Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:
        S(
          9007,
          1,
          "Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007",
          "Function must have an explicit return type annotation with --isolatedDeclarations.",
        ),
      Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:
        S(
          9008,
          1,
          "Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008",
          "Method must have an explicit return type annotation with --isolatedDeclarations.",
        ),
      At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:
        S(
          9009,
          1,
          "At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009",
          "At least one accessor must have an explicit type annotation with --isolatedDeclarations.",
        ),
      Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:
        S(
          9010,
          1,
          "Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010",
          "Variable must have an explicit type annotation with --isolatedDeclarations.",
        ),
      Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:
        S(
          9011,
          1,
          "Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011",
          "Parameter must have an explicit type annotation with --isolatedDeclarations.",
        ),
      Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:
        S(
          9012,
          1,
          "Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012",
          "Property must have an explicit type annotation with --isolatedDeclarations.",
        ),
      Expression_type_can_t_be_inferred_with_isolatedDeclarations: S(
        9013,
        1,
        "Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013",
        "Expression type can't be inferred with --isolatedDeclarations.",
      ),
      Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:
        S(
          9014,
          1,
          "Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014",
          "Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.",
        ),
      Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:
        S(
          9015,
          1,
          "Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015",
          "Objects that contain spread assignments can't be inferred with --isolatedDeclarations.",
        ),
      Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:
        S(
          9016,
          1,
          "Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016",
          "Objects that contain shorthand properties can't be inferred with --isolatedDeclarations.",
        ),
      Only_const_arrays_can_be_inferred_with_isolatedDeclarations: S(
        9017,
        1,
        "Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017",
        "Only const arrays can be inferred with --isolatedDeclarations.",
      ),
      Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations: S(
        9018,
        1,
        "Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018",
        "Arrays with spread elements can't inferred with --isolatedDeclarations.",
      ),
      Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations: S(
        9019,
        1,
        "Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019",
        "Binding elements can't be exported directly with --isolatedDeclarations.",
      ),
      Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:
        S(
          9020,
          1,
          "Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020",
          "Enum member initializers must be computable without references to external symbols with --isolatedDeclarations.",
        ),
      Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations: S(
        9021,
        1,
        "Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021",
        "Extends clause can't contain an expression with --isolatedDeclarations.",
      ),
      Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:
        S(
          9022,
          1,
          "Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022",
          "Inference from class expressions is not supported with --isolatedDeclarations.",
        ),
      Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:
        S(
          9023,
          1,
          "Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023",
          "Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function.",
        ),
      Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:
        S(
          9025,
          1,
          "Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025",
          "Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations.",
        ),
      Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:
        S(
          9026,
          1,
          "Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026",
          "Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.",
        ),
      Add_a_type_annotation_to_the_variable_0: S(
        9027,
        1,
        "Add_a_type_annotation_to_the_variable_0_9027",
        "Add a type annotation to the variable {0}.",
      ),
      Add_a_type_annotation_to_the_parameter_0: S(
        9028,
        1,
        "Add_a_type_annotation_to_the_parameter_0_9028",
        "Add a type annotation to the parameter {0}.",
      ),
      Add_a_type_annotation_to_the_property_0: S(
        9029,
        1,
        "Add_a_type_annotation_to_the_property_0_9029",
        "Add a type annotation to the property {0}.",
      ),
      Add_a_return_type_to_the_function_expression: S(
        9030,
        1,
        "Add_a_return_type_to_the_function_expression_9030",
        "Add a return type to the function expression.",
      ),
      Add_a_return_type_to_the_function_declaration: S(
        9031,
        1,
        "Add_a_return_type_to_the_function_declaration_9031",
        "Add a return type to the function declaration.",
      ),
      Add_a_return_type_to_the_get_accessor_declaration: S(
        9032,
        1,
        "Add_a_return_type_to_the_get_accessor_declaration_9032",
        "Add a return type to the get accessor declaration.",
      ),
      Add_a_type_to_parameter_of_the_set_accessor_declaration: S(
        9033,
        1,
        "Add_a_type_to_parameter_of_the_set_accessor_declaration_9033",
        "Add a type to parameter of the set accessor declaration.",
      ),
      Add_a_return_type_to_the_method: S(
        9034,
        1,
        "Add_a_return_type_to_the_method_9034",
        "Add a return type to the method",
      ),
      Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:
        S(
          9035,
          1,
          "Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035",
          "Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit.",
        ),
      Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:
        S(
          9036,
          1,
          "Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036",
          "Move the expression in default export to a variable and add a type annotation to it.",
        ),
      Default_exports_can_t_be_inferred_with_isolatedDeclarations: S(
        9037,
        1,
        "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037",
        "Default exports can't be inferred with --isolatedDeclarations.",
      ),
      Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:
        S(
          9038,
          1,
          "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038",
          "Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.",
        ),
      Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations: S(
        9039,
        1,
        "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039",
        "Type containing private name '{0}' can't be used with --isolatedDeclarations.",
      ),
      JSX_attributes_must_only_be_assigned_a_non_empty_expression: S(
        17e3,
        1,
        "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000",
        "JSX attributes must only be assigned a non-empty 'expression'.",
      ),
      JSX_elements_cannot_have_multiple_attributes_with_the_same_name: S(
        17001,
        1,
        "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001",
        "JSX elements cannot have multiple attributes with the same name.",
      ),
      Expected_corresponding_JSX_closing_tag_for_0: S(
        17002,
        1,
        "Expected_corresponding_JSX_closing_tag_for_0_17002",
        "Expected corresponding JSX closing tag for '{0}'.",
      ),
      Cannot_use_JSX_unless_the_jsx_flag_is_provided: S(
        17004,
        1,
        "Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004",
        "Cannot use JSX unless the '--jsx' flag is provided.",
      ),
      A_constructor_cannot_contain_a_super_call_when_its_class_extends_null: S(
        17005,
        1,
        "A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005",
        "A constructor cannot contain a 'super' call when its class extends 'null'.",
      ),
      An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:
        S(
          17006,
          1,
          "An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006",
          "An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.",
        ),
      A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:
        S(
          17007,
          1,
          "A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007",
          "A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.",
        ),
      JSX_element_0_has_no_corresponding_closing_tag: S(
        17008,
        1,
        "JSX_element_0_has_no_corresponding_closing_tag_17008",
        "JSX element '{0}' has no corresponding closing tag.",
      ),
      super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:
        S(
          17009,
          1,
          "super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",
          "'super' must be called before accessing 'this' in the constructor of a derived class.",
        ),
      Unknown_type_acquisition_option_0: S(
        17010,
        1,
        "Unknown_type_acquisition_option_0_17010",
        "Unknown type acquisition option '{0}'.",
      ),
      super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:
        S(
          17011,
          1,
          "super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",
          "'super' must be called before accessing a property of 'super' in the constructor of a derived class.",
        ),
      _0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2: S(
        17012,
        1,
        "_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012",
        "'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?",
      ),
      Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:
        S(
          17013,
          1,
          "Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013",
          "Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor.",
        ),
      JSX_fragment_has_no_corresponding_closing_tag: S(
        17014,
        1,
        "JSX_fragment_has_no_corresponding_closing_tag_17014",
        "JSX fragment has no corresponding closing tag.",
      ),
      Expected_corresponding_closing_tag_for_JSX_fragment: S(
        17015,
        1,
        "Expected_corresponding_closing_tag_for_JSX_fragment_17015",
        "Expected corresponding closing tag for JSX fragment.",
      ),
      The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:
        S(
          17016,
          1,
          "The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016",
          "The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option.",
        ),
      An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:
        S(
          17017,
          1,
          "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017",
          "An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments.",
        ),
      Unknown_type_acquisition_option_0_Did_you_mean_1: S(
        17018,
        1,
        "Unknown_type_acquisition_option_0_Did_you_mean_1_17018",
        "Unknown type acquisition option '{0}'. Did you mean '{1}'?",
      ),
      _0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:
        S(
          17019,
          1,
          "_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019",
          "'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?",
        ),
      _0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:
        S(
          17020,
          1,
          "_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020",
          "'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?",
        ),
      Unicode_escape_sequence_cannot_appear_here: S(
        17021,
        1,
        "Unicode_escape_sequence_cannot_appear_here_17021",
        "Unicode escape sequence cannot appear here.",
      ),
      Circularity_detected_while_resolving_configuration_Colon_0: S(
        18e3,
        1,
        "Circularity_detected_while_resolving_configuration_Colon_0_18000",
        "Circularity detected while resolving configuration: {0}",
      ),
      The_files_list_in_config_file_0_is_empty: S(
        18002,
        1,
        "The_files_list_in_config_file_0_is_empty_18002",
        "The 'files' list in config file '{0}' is empty.",
      ),
      No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:
        S(
          18003,
          1,
          "No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003",
          "No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'.",
        ),
      File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module: S(
        80001,
        2,
        "File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001",
        "File is a CommonJS module; it may be converted to an ES module.",
      ),
      This_constructor_function_may_be_converted_to_a_class_declaration: S(
        80002,
        2,
        "This_constructor_function_may_be_converted_to_a_class_declaration_80002",
        "This constructor function may be converted to a class declaration.",
      ),
      Import_may_be_converted_to_a_default_import: S(
        80003,
        2,
        "Import_may_be_converted_to_a_default_import_80003",
        "Import may be converted to a default import.",
      ),
      JSDoc_types_may_be_moved_to_TypeScript_types: S(
        80004,
        2,
        "JSDoc_types_may_be_moved_to_TypeScript_types_80004",
        "JSDoc types may be moved to TypeScript types.",
      ),
      require_call_may_be_converted_to_an_import: S(
        80005,
        2,
        "require_call_may_be_converted_to_an_import_80005",
        "'require' call may be converted to an import.",
      ),
      This_may_be_converted_to_an_async_function: S(
        80006,
        2,
        "This_may_be_converted_to_an_async_function_80006",
        "This may be converted to an async function.",
      ),
      await_has_no_effect_on_the_type_of_this_expression: S(
        80007,
        2,
        "await_has_no_effect_on_the_type_of_this_expression_80007",
        "'await' has no effect on the type of this expression.",
      ),
      Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:
        S(
          80008,
          2,
          "Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008",
          "Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers.",
        ),
      JSDoc_typedef_may_be_converted_to_TypeScript_type: S(
        80009,
        2,
        "JSDoc_typedef_may_be_converted_to_TypeScript_type_80009",
        "JSDoc typedef may be converted to TypeScript type.",
      ),
      JSDoc_typedefs_may_be_converted_to_TypeScript_types: S(
        80010,
        2,
        "JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010",
        "JSDoc typedefs may be converted to TypeScript types.",
      ),
      Add_missing_super_call: S(
        90001,
        3,
        "Add_missing_super_call_90001",
        "Add missing 'super()' call",
      ),
      Make_super_call_the_first_statement_in_the_constructor: S(
        90002,
        3,
        "Make_super_call_the_first_statement_in_the_constructor_90002",
        "Make 'super()' call the first statement in the constructor",
      ),
      Change_extends_to_implements: S(
        90003,
        3,
        "Change_extends_to_implements_90003",
        "Change 'extends' to 'implements'",
      ),
      Remove_unused_declaration_for_Colon_0: S(
        90004,
        3,
        "Remove_unused_declaration_for_Colon_0_90004",
        "Remove unused declaration for: '{0}'",
      ),
      Remove_import_from_0: S(
        90005,
        3,
        "Remove_import_from_0_90005",
        "Remove import from '{0}'",
      ),
      Implement_interface_0: S(
        90006,
        3,
        "Implement_interface_0_90006",
        "Implement interface '{0}'",
      ),
      Implement_inherited_abstract_class: S(
        90007,
        3,
        "Implement_inherited_abstract_class_90007",
        "Implement inherited abstract class",
      ),
      Add_0_to_unresolved_variable: S(
        90008,
        3,
        "Add_0_to_unresolved_variable_90008",
        "Add '{0}.' to unresolved variable",
      ),
      Remove_variable_statement: S(
        90010,
        3,
        "Remove_variable_statement_90010",
        "Remove variable statement",
      ),
      Remove_template_tag: S(
        90011,
        3,
        "Remove_template_tag_90011",
        "Remove template tag",
      ),
      Remove_type_parameters: S(
        90012,
        3,
        "Remove_type_parameters_90012",
        "Remove type parameters",
      ),
      Import_0_from_1: S(
        90013,
        3,
        "Import_0_from_1_90013",
        `Import '{0}' from "{1}"`,
      ),
      Change_0_to_1: S(
        90014,
        3,
        "Change_0_to_1_90014",
        "Change '{0}' to '{1}'",
      ),
      Declare_property_0: S(
        90016,
        3,
        "Declare_property_0_90016",
        "Declare property '{0}'",
      ),
      Add_index_signature_for_property_0: S(
        90017,
        3,
        "Add_index_signature_for_property_0_90017",
        "Add index signature for property '{0}'",
      ),
      Disable_checking_for_this_file: S(
        90018,
        3,
        "Disable_checking_for_this_file_90018",
        "Disable checking for this file",
      ),
      Ignore_this_error_message: S(
        90019,
        3,
        "Ignore_this_error_message_90019",
        "Ignore this error message",
      ),
      Initialize_property_0_in_the_constructor: S(
        90020,
        3,
        "Initialize_property_0_in_the_constructor_90020",
        "Initialize property '{0}' in the constructor",
      ),
      Initialize_static_property_0: S(
        90021,
        3,
        "Initialize_static_property_0_90021",
        "Initialize static property '{0}'",
      ),
      Change_spelling_to_0: S(
        90022,
        3,
        "Change_spelling_to_0_90022",
        "Change spelling to '{0}'",
      ),
      Declare_method_0: S(
        90023,
        3,
        "Declare_method_0_90023",
        "Declare method '{0}'",
      ),
      Declare_static_method_0: S(
        90024,
        3,
        "Declare_static_method_0_90024",
        "Declare static method '{0}'",
      ),
      Prefix_0_with_an_underscore: S(
        90025,
        3,
        "Prefix_0_with_an_underscore_90025",
        "Prefix '{0}' with an underscore",
      ),
      Rewrite_as_the_indexed_access_type_0: S(
        90026,
        3,
        "Rewrite_as_the_indexed_access_type_0_90026",
        "Rewrite as the indexed access type '{0}'",
      ),
      Declare_static_property_0: S(
        90027,
        3,
        "Declare_static_property_0_90027",
        "Declare static property '{0}'",
      ),
      Call_decorator_expression: S(
        90028,
        3,
        "Call_decorator_expression_90028",
        "Call decorator expression",
      ),
      Add_async_modifier_to_containing_function: S(
        90029,
        3,
        "Add_async_modifier_to_containing_function_90029",
        "Add async modifier to containing function",
      ),
      Replace_infer_0_with_unknown: S(
        90030,
        3,
        "Replace_infer_0_with_unknown_90030",
        "Replace 'infer {0}' with 'unknown'",
      ),
      Replace_all_unused_infer_with_unknown: S(
        90031,
        3,
        "Replace_all_unused_infer_with_unknown_90031",
        "Replace all unused 'infer' with 'unknown'",
      ),
      Add_parameter_name: S(
        90034,
        3,
        "Add_parameter_name_90034",
        "Add parameter name",
      ),
      Declare_private_property_0: S(
        90035,
        3,
        "Declare_private_property_0_90035",
        "Declare private property '{0}'",
      ),
      Replace_0_with_Promise_1: S(
        90036,
        3,
        "Replace_0_with_Promise_1_90036",
        "Replace '{0}' with 'Promise<{1}>'",
      ),
      Fix_all_incorrect_return_type_of_an_async_functions: S(
        90037,
        3,
        "Fix_all_incorrect_return_type_of_an_async_functions_90037",
        "Fix all incorrect return type of an async functions",
      ),
      Declare_private_method_0: S(
        90038,
        3,
        "Declare_private_method_0_90038",
        "Declare private method '{0}'",
      ),
      Remove_unused_destructuring_declaration: S(
        90039,
        3,
        "Remove_unused_destructuring_declaration_90039",
        "Remove unused destructuring declaration",
      ),
      Remove_unused_declarations_for_Colon_0: S(
        90041,
        3,
        "Remove_unused_declarations_for_Colon_0_90041",
        "Remove unused declarations for: '{0}'",
      ),
      Declare_a_private_field_named_0: S(
        90053,
        3,
        "Declare_a_private_field_named_0_90053",
        "Declare a private field named '{0}'.",
      ),
      Includes_imports_of_types_referenced_by_0: S(
        90054,
        3,
        "Includes_imports_of_types_referenced_by_0_90054",
        "Includes imports of types referenced by '{0}'",
      ),
      Remove_type_from_import_declaration_from_0: S(
        90055,
        3,
        "Remove_type_from_import_declaration_from_0_90055",
        `Remove 'type' from import declaration from "{0}"`,
      ),
      Remove_type_from_import_of_0_from_1: S(
        90056,
        3,
        "Remove_type_from_import_of_0_from_1_90056",
        `Remove 'type' from import of '{0}' from "{1}"`,
      ),
      Add_import_from_0: S(
        90057,
        3,
        "Add_import_from_0_90057",
        'Add import from "{0}"',
      ),
      Update_import_from_0: S(
        90058,
        3,
        "Update_import_from_0_90058",
        'Update import from "{0}"',
      ),
      Export_0_from_module_1: S(
        90059,
        3,
        "Export_0_from_module_1_90059",
        "Export '{0}' from module '{1}'",
      ),
      Export_all_referenced_locals: S(
        90060,
        3,
        "Export_all_referenced_locals_90060",
        "Export all referenced locals",
      ),
      Update_modifiers_of_0: S(
        90061,
        3,
        "Update_modifiers_of_0_90061",
        "Update modifiers of '{0}'",
      ),
      Add_annotation_of_type_0: S(
        90062,
        3,
        "Add_annotation_of_type_0_90062",
        "Add annotation of type '{0}'",
      ),
      Add_return_type_0: S(
        90063,
        3,
        "Add_return_type_0_90063",
        "Add return type '{0}'",
      ),
      Extract_base_class_to_variable: S(
        90064,
        3,
        "Extract_base_class_to_variable_90064",
        "Extract base class to variable",
      ),
      Extract_default_export_to_variable: S(
        90065,
        3,
        "Extract_default_export_to_variable_90065",
        "Extract default export to variable",
      ),
      Extract_binding_expressions_to_variable: S(
        90066,
        3,
        "Extract_binding_expressions_to_variable_90066",
        "Extract binding expressions to variable",
      ),
      Add_all_missing_type_annotations: S(
        90067,
        3,
        "Add_all_missing_type_annotations_90067",
        "Add all missing type annotations",
      ),
      Add_satisfies_and_an_inline_type_assertion_with_0: S(
        90068,
        3,
        "Add_satisfies_and_an_inline_type_assertion_with_0_90068",
        "Add satisfies and an inline type assertion with '{0}'",
      ),
      Extract_to_variable_and_replace_with_0_as_typeof_0: S(
        90069,
        3,
        "Extract_to_variable_and_replace_with_0_as_typeof_0_90069",
        "Extract to variable and replace with '{0} as typeof {0}'",
      ),
      Mark_array_literal_as_const: S(
        90070,
        3,
        "Mark_array_literal_as_const_90070",
        "Mark array literal as const",
      ),
      Annotate_types_of_properties_expando_function_in_a_namespace: S(
        90071,
        3,
        "Annotate_types_of_properties_expando_function_in_a_namespace_90071",
        "Annotate types of properties expando function in a namespace",
      ),
      Convert_function_to_an_ES2015_class: S(
        95001,
        3,
        "Convert_function_to_an_ES2015_class_95001",
        "Convert function to an ES2015 class",
      ),
      Convert_0_to_1_in_0: S(
        95003,
        3,
        "Convert_0_to_1_in_0_95003",
        "Convert '{0}' to '{1} in {0}'",
      ),
      Extract_to_0_in_1: S(
        95004,
        3,
        "Extract_to_0_in_1_95004",
        "Extract to {0} in {1}",
      ),
      Extract_function: S(
        95005,
        3,
        "Extract_function_95005",
        "Extract function",
      ),
      Extract_constant: S(
        95006,
        3,
        "Extract_constant_95006",
        "Extract constant",
      ),
      Extract_to_0_in_enclosing_scope: S(
        95007,
        3,
        "Extract_to_0_in_enclosing_scope_95007",
        "Extract to {0} in enclosing scope",
      ),
      Extract_to_0_in_1_scope: S(
        95008,
        3,
        "Extract_to_0_in_1_scope_95008",
        "Extract to {0} in {1} scope",
      ),
      Annotate_with_type_from_JSDoc: S(
        95009,
        3,
        "Annotate_with_type_from_JSDoc_95009",
        "Annotate with type from JSDoc",
      ),
      Infer_type_of_0_from_usage: S(
        95011,
        3,
        "Infer_type_of_0_from_usage_95011",
        "Infer type of '{0}' from usage",
      ),
      Infer_parameter_types_from_usage: S(
        95012,
        3,
        "Infer_parameter_types_from_usage_95012",
        "Infer parameter types from usage",
      ),
      Convert_to_default_import: S(
        95013,
        3,
        "Convert_to_default_import_95013",
        "Convert to default import",
      ),
      Install_0: S(95014, 3, "Install_0_95014", "Install '{0}'"),
      Replace_import_with_0: S(
        95015,
        3,
        "Replace_import_with_0_95015",
        "Replace import with '{0}'.",
      ),
      Use_synthetic_default_member: S(
        95016,
        3,
        "Use_synthetic_default_member_95016",
        "Use synthetic 'default' member.",
      ),
      Convert_to_ES_module: S(
        95017,
        3,
        "Convert_to_ES_module_95017",
        "Convert to ES module",
      ),
      Add_undefined_type_to_property_0: S(
        95018,
        3,
        "Add_undefined_type_to_property_0_95018",
        "Add 'undefined' type to property '{0}'",
      ),
      Add_initializer_to_property_0: S(
        95019,
        3,
        "Add_initializer_to_property_0_95019",
        "Add initializer to property '{0}'",
      ),
      Add_definite_assignment_assertion_to_property_0: S(
        95020,
        3,
        "Add_definite_assignment_assertion_to_property_0_95020",
        "Add definite assignment assertion to property '{0}'",
      ),
      Convert_all_type_literals_to_mapped_type: S(
        95021,
        3,
        "Convert_all_type_literals_to_mapped_type_95021",
        "Convert all type literals to mapped type",
      ),
      Add_all_missing_members: S(
        95022,
        3,
        "Add_all_missing_members_95022",
        "Add all missing members",
      ),
      Infer_all_types_from_usage: S(
        95023,
        3,
        "Infer_all_types_from_usage_95023",
        "Infer all types from usage",
      ),
      Delete_all_unused_declarations: S(
        95024,
        3,
        "Delete_all_unused_declarations_95024",
        "Delete all unused declarations",
      ),
      Prefix_all_unused_declarations_with_where_possible: S(
        95025,
        3,
        "Prefix_all_unused_declarations_with_where_possible_95025",
        "Prefix all unused declarations with '_' where possible",
      ),
      Fix_all_detected_spelling_errors: S(
        95026,
        3,
        "Fix_all_detected_spelling_errors_95026",
        "Fix all detected spelling errors",
      ),
      Add_initializers_to_all_uninitialized_properties: S(
        95027,
        3,
        "Add_initializers_to_all_uninitialized_properties_95027",
        "Add initializers to all uninitialized properties",
      ),
      Add_definite_assignment_assertions_to_all_uninitialized_properties: S(
        95028,
        3,
        "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028",
        "Add definite assignment assertions to all uninitialized properties",
      ),
      Add_undefined_type_to_all_uninitialized_properties: S(
        95029,
        3,
        "Add_undefined_type_to_all_uninitialized_properties_95029",
        "Add undefined type to all uninitialized properties",
      ),
      Change_all_jsdoc_style_types_to_TypeScript: S(
        95030,
        3,
        "Change_all_jsdoc_style_types_to_TypeScript_95030",
        "Change all jsdoc-style types to TypeScript",
      ),
      Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:
        S(
          95031,
          3,
          "Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031",
          "Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)",
        ),
      Implement_all_unimplemented_interfaces: S(
        95032,
        3,
        "Implement_all_unimplemented_interfaces_95032",
        "Implement all unimplemented interfaces",
      ),
      Install_all_missing_types_packages: S(
        95033,
        3,
        "Install_all_missing_types_packages_95033",
        "Install all missing types packages",
      ),
      Rewrite_all_as_indexed_access_types: S(
        95034,
        3,
        "Rewrite_all_as_indexed_access_types_95034",
        "Rewrite all as indexed access types",
      ),
      Convert_all_to_default_imports: S(
        95035,
        3,
        "Convert_all_to_default_imports_95035",
        "Convert all to default imports",
      ),
      Make_all_super_calls_the_first_statement_in_their_constructor: S(
        95036,
        3,
        "Make_all_super_calls_the_first_statement_in_their_constructor_95036",
        "Make all 'super()' calls the first statement in their constructor",
      ),
      Add_qualifier_to_all_unresolved_variables_matching_a_member_name: S(
        95037,
        3,
        "Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037",
        "Add qualifier to all unresolved variables matching a member name",
      ),
      Change_all_extended_interfaces_to_implements: S(
        95038,
        3,
        "Change_all_extended_interfaces_to_implements_95038",
        "Change all extended interfaces to 'implements'",
      ),
      Add_all_missing_super_calls: S(
        95039,
        3,
        "Add_all_missing_super_calls_95039",
        "Add all missing super calls",
      ),
      Implement_all_inherited_abstract_classes: S(
        95040,
        3,
        "Implement_all_inherited_abstract_classes_95040",
        "Implement all inherited abstract classes",
      ),
      Add_all_missing_async_modifiers: S(
        95041,
        3,
        "Add_all_missing_async_modifiers_95041",
        "Add all missing 'async' modifiers",
      ),
      Add_ts_ignore_to_all_error_messages: S(
        95042,
        3,
        "Add_ts_ignore_to_all_error_messages_95042",
        "Add '@ts-ignore' to all error messages",
      ),
      Annotate_everything_with_types_from_JSDoc: S(
        95043,
        3,
        "Annotate_everything_with_types_from_JSDoc_95043",
        "Annotate everything with types from JSDoc",
      ),
      Add_to_all_uncalled_decorators: S(
        95044,
        3,
        "Add_to_all_uncalled_decorators_95044",
        "Add '()' to all uncalled decorators",
      ),
      Convert_all_constructor_functions_to_classes: S(
        95045,
        3,
        "Convert_all_constructor_functions_to_classes_95045",
        "Convert all constructor functions to classes",
      ),
      Generate_get_and_set_accessors: S(
        95046,
        3,
        "Generate_get_and_set_accessors_95046",
        "Generate 'get' and 'set' accessors",
      ),
      Convert_require_to_import: S(
        95047,
        3,
        "Convert_require_to_import_95047",
        "Convert 'require' to 'import'",
      ),
      Convert_all_require_to_import: S(
        95048,
        3,
        "Convert_all_require_to_import_95048",
        "Convert all 'require' to 'import'",
      ),
      Move_to_a_new_file: S(
        95049,
        3,
        "Move_to_a_new_file_95049",
        "Move to a new file",
      ),
      Remove_unreachable_code: S(
        95050,
        3,
        "Remove_unreachable_code_95050",
        "Remove unreachable code",
      ),
      Remove_all_unreachable_code: S(
        95051,
        3,
        "Remove_all_unreachable_code_95051",
        "Remove all unreachable code",
      ),
      Add_missing_typeof: S(
        95052,
        3,
        "Add_missing_typeof_95052",
        "Add missing 'typeof'",
      ),
      Remove_unused_label: S(
        95053,
        3,
        "Remove_unused_label_95053",
        "Remove unused label",
      ),
      Remove_all_unused_labels: S(
        95054,
        3,
        "Remove_all_unused_labels_95054",
        "Remove all unused labels",
      ),
      Convert_0_to_mapped_object_type: S(
        95055,
        3,
        "Convert_0_to_mapped_object_type_95055",
        "Convert '{0}' to mapped object type",
      ),
      Convert_namespace_import_to_named_imports: S(
        95056,
        3,
        "Convert_namespace_import_to_named_imports_95056",
        "Convert namespace import to named imports",
      ),
      Convert_named_imports_to_namespace_import: S(
        95057,
        3,
        "Convert_named_imports_to_namespace_import_95057",
        "Convert named imports to namespace import",
      ),
      Add_or_remove_braces_in_an_arrow_function: S(
        95058,
        3,
        "Add_or_remove_braces_in_an_arrow_function_95058",
        "Add or remove braces in an arrow function",
      ),
      Add_braces_to_arrow_function: S(
        95059,
        3,
        "Add_braces_to_arrow_function_95059",
        "Add braces to arrow function",
      ),
      Remove_braces_from_arrow_function: S(
        95060,
        3,
        "Remove_braces_from_arrow_function_95060",
        "Remove braces from arrow function",
      ),
      Convert_default_export_to_named_export: S(
        95061,
        3,
        "Convert_default_export_to_named_export_95061",
        "Convert default export to named export",
      ),
      Convert_named_export_to_default_export: S(
        95062,
        3,
        "Convert_named_export_to_default_export_95062",
        "Convert named export to default export",
      ),
      Add_missing_enum_member_0: S(
        95063,
        3,
        "Add_missing_enum_member_0_95063",
        "Add missing enum member '{0}'",
      ),
      Add_all_missing_imports: S(
        95064,
        3,
        "Add_all_missing_imports_95064",
        "Add all missing imports",
      ),
      Convert_to_async_function: S(
        95065,
        3,
        "Convert_to_async_function_95065",
        "Convert to async function",
      ),
      Convert_all_to_async_functions: S(
        95066,
        3,
        "Convert_all_to_async_functions_95066",
        "Convert all to async functions",
      ),
      Add_missing_call_parentheses: S(
        95067,
        3,
        "Add_missing_call_parentheses_95067",
        "Add missing call parentheses",
      ),
      Add_all_missing_call_parentheses: S(
        95068,
        3,
        "Add_all_missing_call_parentheses_95068",
        "Add all missing call parentheses",
      ),
      Add_unknown_conversion_for_non_overlapping_types: S(
        95069,
        3,
        "Add_unknown_conversion_for_non_overlapping_types_95069",
        "Add 'unknown' conversion for non-overlapping types",
      ),
      Add_unknown_to_all_conversions_of_non_overlapping_types: S(
        95070,
        3,
        "Add_unknown_to_all_conversions_of_non_overlapping_types_95070",
        "Add 'unknown' to all conversions of non-overlapping types",
      ),
      Add_missing_new_operator_to_call: S(
        95071,
        3,
        "Add_missing_new_operator_to_call_95071",
        "Add missing 'new' operator to call",
      ),
      Add_missing_new_operator_to_all_calls: S(
        95072,
        3,
        "Add_missing_new_operator_to_all_calls_95072",
        "Add missing 'new' operator to all calls",
      ),
      Add_names_to_all_parameters_without_names: S(
        95073,
        3,
        "Add_names_to_all_parameters_without_names_95073",
        "Add names to all parameters without names",
      ),
      Enable_the_experimentalDecorators_option_in_your_configuration_file: S(
        95074,
        3,
        "Enable_the_experimentalDecorators_option_in_your_configuration_file_95074",
        "Enable the 'experimentalDecorators' option in your configuration file",
      ),
      Convert_parameters_to_destructured_object: S(
        95075,
        3,
        "Convert_parameters_to_destructured_object_95075",
        "Convert parameters to destructured object",
      ),
      Extract_type: S(95077, 3, "Extract_type_95077", "Extract type"),
      Extract_to_type_alias: S(
        95078,
        3,
        "Extract_to_type_alias_95078",
        "Extract to type alias",
      ),
      Extract_to_typedef: S(
        95079,
        3,
        "Extract_to_typedef_95079",
        "Extract to typedef",
      ),
      Infer_this_type_of_0_from_usage: S(
        95080,
        3,
        "Infer_this_type_of_0_from_usage_95080",
        "Infer 'this' type of '{0}' from usage",
      ),
      Add_const_to_unresolved_variable: S(
        95081,
        3,
        "Add_const_to_unresolved_variable_95081",
        "Add 'const' to unresolved variable",
      ),
      Add_const_to_all_unresolved_variables: S(
        95082,
        3,
        "Add_const_to_all_unresolved_variables_95082",
        "Add 'const' to all unresolved variables",
      ),
      Add_await: S(95083, 3, "Add_await_95083", "Add 'await'"),
      Add_await_to_initializer_for_0: S(
        95084,
        3,
        "Add_await_to_initializer_for_0_95084",
        "Add 'await' to initializer for '{0}'",
      ),
      Fix_all_expressions_possibly_missing_await: S(
        95085,
        3,
        "Fix_all_expressions_possibly_missing_await_95085",
        "Fix all expressions possibly missing 'await'",
      ),
      Remove_unnecessary_await: S(
        95086,
        3,
        "Remove_unnecessary_await_95086",
        "Remove unnecessary 'await'",
      ),
      Remove_all_unnecessary_uses_of_await: S(
        95087,
        3,
        "Remove_all_unnecessary_uses_of_await_95087",
        "Remove all unnecessary uses of 'await'",
      ),
      Enable_the_jsx_flag_in_your_configuration_file: S(
        95088,
        3,
        "Enable_the_jsx_flag_in_your_configuration_file_95088",
        "Enable the '--jsx' flag in your configuration file",
      ),
      Add_await_to_initializers: S(
        95089,
        3,
        "Add_await_to_initializers_95089",
        "Add 'await' to initializers",
      ),
      Extract_to_interface: S(
        95090,
        3,
        "Extract_to_interface_95090",
        "Extract to interface",
      ),
      Convert_to_a_bigint_numeric_literal: S(
        95091,
        3,
        "Convert_to_a_bigint_numeric_literal_95091",
        "Convert to a bigint numeric literal",
      ),
      Convert_all_to_bigint_numeric_literals: S(
        95092,
        3,
        "Convert_all_to_bigint_numeric_literals_95092",
        "Convert all to bigint numeric literals",
      ),
      Convert_const_to_let: S(
        95093,
        3,
        "Convert_const_to_let_95093",
        "Convert 'const' to 'let'",
      ),
      Prefix_with_declare: S(
        95094,
        3,
        "Prefix_with_declare_95094",
        "Prefix with 'declare'",
      ),
      Prefix_all_incorrect_property_declarations_with_declare: S(
        95095,
        3,
        "Prefix_all_incorrect_property_declarations_with_declare_95095",
        "Prefix all incorrect property declarations with 'declare'",
      ),
      Convert_to_template_string: S(
        95096,
        3,
        "Convert_to_template_string_95096",
        "Convert to template string",
      ),
      Add_export_to_make_this_file_into_a_module: S(
        95097,
        3,
        "Add_export_to_make_this_file_into_a_module_95097",
        "Add 'export {}' to make this file into a module",
      ),
      Set_the_target_option_in_your_configuration_file_to_0: S(
        95098,
        3,
        "Set_the_target_option_in_your_configuration_file_to_0_95098",
        "Set the 'target' option in your configuration file to '{0}'",
      ),
      Set_the_module_option_in_your_configuration_file_to_0: S(
        95099,
        3,
        "Set_the_module_option_in_your_configuration_file_to_0_95099",
        "Set the 'module' option in your configuration file to '{0}'",
      ),
      Convert_invalid_character_to_its_html_entity_code: S(
        95100,
        3,
        "Convert_invalid_character_to_its_html_entity_code_95100",
        "Convert invalid character to its html entity code",
      ),
      Convert_all_invalid_characters_to_HTML_entity_code: S(
        95101,
        3,
        "Convert_all_invalid_characters_to_HTML_entity_code_95101",
        "Convert all invalid characters to HTML entity code",
      ),
      Convert_all_const_to_let: S(
        95102,
        3,
        "Convert_all_const_to_let_95102",
        "Convert all 'const' to 'let'",
      ),
      Convert_function_expression_0_to_arrow_function: S(
        95105,
        3,
        "Convert_function_expression_0_to_arrow_function_95105",
        "Convert function expression '{0}' to arrow function",
      ),
      Convert_function_declaration_0_to_arrow_function: S(
        95106,
        3,
        "Convert_function_declaration_0_to_arrow_function_95106",
        "Convert function declaration '{0}' to arrow function",
      ),
      Fix_all_implicit_this_errors: S(
        95107,
        3,
        "Fix_all_implicit_this_errors_95107",
        "Fix all implicit-'this' errors",
      ),
      Wrap_invalid_character_in_an_expression_container: S(
        95108,
        3,
        "Wrap_invalid_character_in_an_expression_container_95108",
        "Wrap invalid character in an expression container",
      ),
      Wrap_all_invalid_characters_in_an_expression_container: S(
        95109,
        3,
        "Wrap_all_invalid_characters_in_an_expression_container_95109",
        "Wrap all invalid characters in an expression container",
      ),
      Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:
        S(
          95110,
          3,
          "Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110",
          "Visit https://aka.ms/tsconfig to read more about this file",
        ),
      Add_a_return_statement: S(
        95111,
        3,
        "Add_a_return_statement_95111",
        "Add a return statement",
      ),
      Remove_braces_from_arrow_function_body: S(
        95112,
        3,
        "Remove_braces_from_arrow_function_body_95112",
        "Remove braces from arrow function body",
      ),
      Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:
        S(
          95113,
          3,
          "Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113",
          "Wrap the following body with parentheses which should be an object literal",
        ),
      Add_all_missing_return_statement: S(
        95114,
        3,
        "Add_all_missing_return_statement_95114",
        "Add all missing return statement",
      ),
      Remove_braces_from_all_arrow_function_bodies_with_relevant_issues: S(
        95115,
        3,
        "Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115",
        "Remove braces from all arrow function bodies with relevant issues",
      ),
      Wrap_all_object_literal_with_parentheses: S(
        95116,
        3,
        "Wrap_all_object_literal_with_parentheses_95116",
        "Wrap all object literal with parentheses",
      ),
      Move_labeled_tuple_element_modifiers_to_labels: S(
        95117,
        3,
        "Move_labeled_tuple_element_modifiers_to_labels_95117",
        "Move labeled tuple element modifiers to labels",
      ),
      Convert_overload_list_to_single_signature: S(
        95118,
        3,
        "Convert_overload_list_to_single_signature_95118",
        "Convert overload list to single signature",
      ),
      Generate_get_and_set_accessors_for_all_overriding_properties: S(
        95119,
        3,
        "Generate_get_and_set_accessors_for_all_overriding_properties_95119",
        "Generate 'get' and 'set' accessors for all overriding properties",
      ),
      Wrap_in_JSX_fragment: S(
        95120,
        3,
        "Wrap_in_JSX_fragment_95120",
        "Wrap in JSX fragment",
      ),
      Wrap_all_unparented_JSX_in_JSX_fragment: S(
        95121,
        3,
        "Wrap_all_unparented_JSX_in_JSX_fragment_95121",
        "Wrap all unparented JSX in JSX fragment",
      ),
      Convert_arrow_function_or_function_expression: S(
        95122,
        3,
        "Convert_arrow_function_or_function_expression_95122",
        "Convert arrow function or function expression",
      ),
      Convert_to_anonymous_function: S(
        95123,
        3,
        "Convert_to_anonymous_function_95123",
        "Convert to anonymous function",
      ),
      Convert_to_named_function: S(
        95124,
        3,
        "Convert_to_named_function_95124",
        "Convert to named function",
      ),
      Convert_to_arrow_function: S(
        95125,
        3,
        "Convert_to_arrow_function_95125",
        "Convert to arrow function",
      ),
      Remove_parentheses: S(
        95126,
        3,
        "Remove_parentheses_95126",
        "Remove parentheses",
      ),
      Could_not_find_a_containing_arrow_function: S(
        95127,
        3,
        "Could_not_find_a_containing_arrow_function_95127",
        "Could not find a containing arrow function",
      ),
      Containing_function_is_not_an_arrow_function: S(
        95128,
        3,
        "Containing_function_is_not_an_arrow_function_95128",
        "Containing function is not an arrow function",
      ),
      Could_not_find_export_statement: S(
        95129,
        3,
        "Could_not_find_export_statement_95129",
        "Could not find export statement",
      ),
      This_file_already_has_a_default_export: S(
        95130,
        3,
        "This_file_already_has_a_default_export_95130",
        "This file already has a default export",
      ),
      Could_not_find_import_clause: S(
        95131,
        3,
        "Could_not_find_import_clause_95131",
        "Could not find import clause",
      ),
      Could_not_find_namespace_import_or_named_imports: S(
        95132,
        3,
        "Could_not_find_namespace_import_or_named_imports_95132",
        "Could not find namespace import or named imports",
      ),
      Selection_is_not_a_valid_type_node: S(
        95133,
        3,
        "Selection_is_not_a_valid_type_node_95133",
        "Selection is not a valid type node",
      ),
      No_type_could_be_extracted_from_this_type_node: S(
        95134,
        3,
        "No_type_could_be_extracted_from_this_type_node_95134",
        "No type could be extracted from this type node",
      ),
      Could_not_find_property_for_which_to_generate_accessor: S(
        95135,
        3,
        "Could_not_find_property_for_which_to_generate_accessor_95135",
        "Could not find property for which to generate accessor",
      ),
      Name_is_not_valid: S(
        95136,
        3,
        "Name_is_not_valid_95136",
        "Name is not valid",
      ),
      Can_only_convert_property_with_modifier: S(
        95137,
        3,
        "Can_only_convert_property_with_modifier_95137",
        "Can only convert property with modifier",
      ),
      Switch_each_misused_0_to_1: S(
        95138,
        3,
        "Switch_each_misused_0_to_1_95138",
        "Switch each misused '{0}' to '{1}'",
      ),
      Convert_to_optional_chain_expression: S(
        95139,
        3,
        "Convert_to_optional_chain_expression_95139",
        "Convert to optional chain expression",
      ),
      Could_not_find_convertible_access_expression: S(
        95140,
        3,
        "Could_not_find_convertible_access_expression_95140",
        "Could not find convertible access expression",
      ),
      Could_not_find_matching_access_expressions: S(
        95141,
        3,
        "Could_not_find_matching_access_expressions_95141",
        "Could not find matching access expressions",
      ),
      Can_only_convert_logical_AND_access_chains: S(
        95142,
        3,
        "Can_only_convert_logical_AND_access_chains_95142",
        "Can only convert logical AND access chains",
      ),
      Add_void_to_Promise_resolved_without_a_value: S(
        95143,
        3,
        "Add_void_to_Promise_resolved_without_a_value_95143",
        "Add 'void' to Promise resolved without a value",
      ),
      Add_void_to_all_Promises_resolved_without_a_value: S(
        95144,
        3,
        "Add_void_to_all_Promises_resolved_without_a_value_95144",
        "Add 'void' to all Promises resolved without a value",
      ),
      Use_element_access_for_0: S(
        95145,
        3,
        "Use_element_access_for_0_95145",
        "Use element access for '{0}'",
      ),
      Use_element_access_for_all_undeclared_properties: S(
        95146,
        3,
        "Use_element_access_for_all_undeclared_properties_95146",
        "Use element access for all undeclared properties.",
      ),
      Delete_all_unused_imports: S(
        95147,
        3,
        "Delete_all_unused_imports_95147",
        "Delete all unused imports",
      ),
      Infer_function_return_type: S(
        95148,
        3,
        "Infer_function_return_type_95148",
        "Infer function return type",
      ),
      Return_type_must_be_inferred_from_a_function: S(
        95149,
        3,
        "Return_type_must_be_inferred_from_a_function_95149",
        "Return type must be inferred from a function",
      ),
      Could_not_determine_function_return_type: S(
        95150,
        3,
        "Could_not_determine_function_return_type_95150",
        "Could not determine function return type",
      ),
      Could_not_convert_to_arrow_function: S(
        95151,
        3,
        "Could_not_convert_to_arrow_function_95151",
        "Could not convert to arrow function",
      ),
      Could_not_convert_to_named_function: S(
        95152,
        3,
        "Could_not_convert_to_named_function_95152",
        "Could not convert to named function",
      ),
      Could_not_convert_to_anonymous_function: S(
        95153,
        3,
        "Could_not_convert_to_anonymous_function_95153",
        "Could not convert to anonymous function",
      ),
      Can_only_convert_string_concatenations_and_string_literals: S(
        95154,
        3,
        "Can_only_convert_string_concatenations_and_string_literals_95154",
        "Can only convert string concatenations and string literals",
      ),
      Selection_is_not_a_valid_statement_or_statements: S(
        95155,
        3,
        "Selection_is_not_a_valid_statement_or_statements_95155",
        "Selection is not a valid statement or statements",
      ),
      Add_missing_function_declaration_0: S(
        95156,
        3,
        "Add_missing_function_declaration_0_95156",
        "Add missing function declaration '{0}'",
      ),
      Add_all_missing_function_declarations: S(
        95157,
        3,
        "Add_all_missing_function_declarations_95157",
        "Add all missing function declarations",
      ),
      Method_not_implemented: S(
        95158,
        3,
        "Method_not_implemented_95158",
        "Method not implemented.",
      ),
      Function_not_implemented: S(
        95159,
        3,
        "Function_not_implemented_95159",
        "Function not implemented.",
      ),
      Add_override_modifier: S(
        95160,
        3,
        "Add_override_modifier_95160",
        "Add 'override' modifier",
      ),
      Remove_override_modifier: S(
        95161,
        3,
        "Remove_override_modifier_95161",
        "Remove 'override' modifier",
      ),
      Add_all_missing_override_modifiers: S(
        95162,
        3,
        "Add_all_missing_override_modifiers_95162",
        "Add all missing 'override' modifiers",
      ),
      Remove_all_unnecessary_override_modifiers: S(
        95163,
        3,
        "Remove_all_unnecessary_override_modifiers_95163",
        "Remove all unnecessary 'override' modifiers",
      ),
      Can_only_convert_named_export: S(
        95164,
        3,
        "Can_only_convert_named_export_95164",
        "Can only convert named export",
      ),
      Add_missing_properties: S(
        95165,
        3,
        "Add_missing_properties_95165",
        "Add missing properties",
      ),
      Add_all_missing_properties: S(
        95166,
        3,
        "Add_all_missing_properties_95166",
        "Add all missing properties",
      ),
      Add_missing_attributes: S(
        95167,
        3,
        "Add_missing_attributes_95167",
        "Add missing attributes",
      ),
      Add_all_missing_attributes: S(
        95168,
        3,
        "Add_all_missing_attributes_95168",
        "Add all missing attributes",
      ),
      Add_undefined_to_optional_property_type: S(
        95169,
        3,
        "Add_undefined_to_optional_property_type_95169",
        "Add 'undefined' to optional property type",
      ),
      Convert_named_imports_to_default_import: S(
        95170,
        3,
        "Convert_named_imports_to_default_import_95170",
        "Convert named imports to default import",
      ),
      Delete_unused_param_tag_0: S(
        95171,
        3,
        "Delete_unused_param_tag_0_95171",
        "Delete unused '@param' tag '{0}'",
      ),
      Delete_all_unused_param_tags: S(
        95172,
        3,
        "Delete_all_unused_param_tags_95172",
        "Delete all unused '@param' tags",
      ),
      Rename_param_tag_name_0_to_1: S(
        95173,
        3,
        "Rename_param_tag_name_0_to_1_95173",
        "Rename '@param' tag name '{0}' to '{1}'",
      ),
      Use_0: S(95174, 3, "Use_0_95174", "Use `{0}`."),
      Use_Number_isNaN_in_all_conditions: S(
        95175,
        3,
        "Use_Number_isNaN_in_all_conditions_95175",
        "Use `Number.isNaN` in all conditions.",
      ),
      Convert_typedef_to_TypeScript_type: S(
        95176,
        3,
        "Convert_typedef_to_TypeScript_type_95176",
        "Convert typedef to TypeScript type.",
      ),
      Convert_all_typedef_to_TypeScript_types: S(
        95177,
        3,
        "Convert_all_typedef_to_TypeScript_types_95177",
        "Convert all typedef to TypeScript types.",
      ),
      Move_to_file: S(95178, 3, "Move_to_file_95178", "Move to file"),
      Cannot_move_to_file_selected_file_is_invalid: S(
        95179,
        3,
        "Cannot_move_to_file_selected_file_is_invalid_95179",
        "Cannot move to file, selected file is invalid",
      ),
      Use_import_type: S(
        95180,
        3,
        "Use_import_type_95180",
        "Use 'import type'",
      ),
      Use_type_0: S(95181, 3, "Use_type_0_95181", "Use 'type {0}'"),
      Fix_all_with_type_only_imports: S(
        95182,
        3,
        "Fix_all_with_type_only_imports_95182",
        "Fix all with type-only imports",
      ),
      Cannot_move_statements_to_the_selected_file: S(
        95183,
        3,
        "Cannot_move_statements_to_the_selected_file_95183",
        "Cannot move statements to the selected file",
      ),
      Inline_variable: S(95184, 3, "Inline_variable_95184", "Inline variable"),
      Could_not_find_variable_to_inline: S(
        95185,
        3,
        "Could_not_find_variable_to_inline_95185",
        "Could not find variable to inline.",
      ),
      Variables_with_multiple_declarations_cannot_be_inlined: S(
        95186,
        3,
        "Variables_with_multiple_declarations_cannot_be_inlined_95186",
        "Variables with multiple declarations cannot be inlined.",
      ),
      Add_missing_comma_for_object_member_completion_0: S(
        95187,
        3,
        "Add_missing_comma_for_object_member_completion_0_95187",
        "Add missing comma for object member completion '{0}'.",
      ),
      Add_missing_parameter_to_0: S(
        95188,
        3,
        "Add_missing_parameter_to_0_95188",
        "Add missing parameter to '{0}'",
      ),
      Add_missing_parameters_to_0: S(
        95189,
        3,
        "Add_missing_parameters_to_0_95189",
        "Add missing parameters to '{0}'",
      ),
      Add_all_missing_parameters: S(
        95190,
        3,
        "Add_all_missing_parameters_95190",
        "Add all missing parameters",
      ),
      Add_optional_parameter_to_0: S(
        95191,
        3,
        "Add_optional_parameter_to_0_95191",
        "Add optional parameter to '{0}'",
      ),
      Add_optional_parameters_to_0: S(
        95192,
        3,
        "Add_optional_parameters_to_0_95192",
        "Add optional parameters to '{0}'",
      ),
      Add_all_optional_parameters: S(
        95193,
        3,
        "Add_all_optional_parameters_95193",
        "Add all optional parameters",
      ),
      Wrap_in_parentheses: S(
        95194,
        3,
        "Wrap_in_parentheses_95194",
        "Wrap in parentheses",
      ),
      Wrap_all_invalid_decorator_expressions_in_parentheses: S(
        95195,
        3,
        "Wrap_all_invalid_decorator_expressions_in_parentheses_95195",
        "Wrap all invalid decorator expressions in parentheses",
      ),
      Add_resolution_mode_import_attribute: S(
        95196,
        3,
        "Add_resolution_mode_import_attribute_95196",
        "Add 'resolution-mode' import attribute",
      ),
      Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:
        S(
          95197,
          3,
          "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197",
          "Add 'resolution-mode' import attribute to all type-only imports that need it",
        ),
      No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:
        S(
          18004,
          1,
          "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004",
          "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer.",
        ),
      Classes_may_not_have_a_field_named_constructor: S(
        18006,
        1,
        "Classes_may_not_have_a_field_named_constructor_18006",
        "Classes may not have a field named 'constructor'.",
      ),
      JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:
        S(
          18007,
          1,
          "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007",
          "JSX expressions may not use the comma operator. Did you mean to write an array?",
        ),
      Private_identifiers_cannot_be_used_as_parameters: S(
        18009,
        1,
        "Private_identifiers_cannot_be_used_as_parameters_18009",
        "Private identifiers cannot be used as parameters.",
      ),
      An_accessibility_modifier_cannot_be_used_with_a_private_identifier: S(
        18010,
        1,
        "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010",
        "An accessibility modifier cannot be used with a private identifier.",
      ),
      The_operand_of_a_delete_operator_cannot_be_a_private_identifier: S(
        18011,
        1,
        "The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011",
        "The operand of a 'delete' operator cannot be a private identifier.",
      ),
      constructor_is_a_reserved_word: S(
        18012,
        1,
        "constructor_is_a_reserved_word_18012",
        "'#constructor' is a reserved word.",
      ),
      Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:
        S(
          18013,
          1,
          "Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013",
          "Property '{0}' is not accessible outside class '{1}' because it has a private identifier.",
        ),
      The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:
        S(
          18014,
          1,
          "The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014",
          "The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling.",
        ),
      Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:
        S(
          18015,
          1,
          "Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015",
          "Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'.",
        ),
      Private_identifiers_are_not_allowed_outside_class_bodies: S(
        18016,
        1,
        "Private_identifiers_are_not_allowed_outside_class_bodies_18016",
        "Private identifiers are not allowed outside class bodies.",
      ),
      The_shadowing_declaration_of_0_is_defined_here: S(
        18017,
        1,
        "The_shadowing_declaration_of_0_is_defined_here_18017",
        "The shadowing declaration of '{0}' is defined here",
      ),
      The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here: S(
        18018,
        1,
        "The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018",
        "The declaration of '{0}' that you probably intended to use is defined here",
      ),
      _0_modifier_cannot_be_used_with_a_private_identifier: S(
        18019,
        1,
        "_0_modifier_cannot_be_used_with_a_private_identifier_18019",
        "'{0}' modifier cannot be used with a private identifier.",
      ),
      An_enum_member_cannot_be_named_with_a_private_identifier: S(
        18024,
        1,
        "An_enum_member_cannot_be_named_with_a_private_identifier_18024",
        "An enum member cannot be named with a private identifier.",
      ),
      can_only_be_used_at_the_start_of_a_file: S(
        18026,
        1,
        "can_only_be_used_at_the_start_of_a_file_18026",
        "'#!' can only be used at the start of a file.",
      ),
      Compiler_reserves_name_0_when_emitting_private_identifier_downlevel: S(
        18027,
        1,
        "Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027",
        "Compiler reserves name '{0}' when emitting private identifier downlevel.",
      ),
      Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:
        S(
          18028,
          1,
          "Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028",
          "Private identifiers are only available when targeting ECMAScript 2015 and higher.",
        ),
      Private_identifiers_are_not_allowed_in_variable_declarations: S(
        18029,
        1,
        "Private_identifiers_are_not_allowed_in_variable_declarations_18029",
        "Private identifiers are not allowed in variable declarations.",
      ),
      An_optional_chain_cannot_contain_private_identifiers: S(
        18030,
        1,
        "An_optional_chain_cannot_contain_private_identifiers_18030",
        "An optional chain cannot contain private identifiers.",
      ),
      The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:
        S(
          18031,
          1,
          "The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031",
          "The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents.",
        ),
      The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:
        S(
          18032,
          1,
          "The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032",
          "The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some.",
        ),
      Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:
        S(
          18033,
          1,
          "Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033",
          "Type '{0}' is not assignable to type '{1}' as required for computed enum member values.",
        ),
      Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:
        S(
          18034,
          3,
          "Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034",
          "Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'.",
        ),
      Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:
        S(
          18035,
          1,
          "Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035",
          "Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name.",
        ),
      Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:
        S(
          18036,
          1,
          "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036",
          "Class decorators can't be used with static private identifier. Consider removing the experimental decorator.",
        ),
      await_expression_cannot_be_used_inside_a_class_static_block: S(
        18037,
        1,
        "await_expression_cannot_be_used_inside_a_class_static_block_18037",
        "'await' expression cannot be used inside a class static block.",
      ),
      for_await_loops_cannot_be_used_inside_a_class_static_block: S(
        18038,
        1,
        "for_await_loops_cannot_be_used_inside_a_class_static_block_18038",
        "'for await' loops cannot be used inside a class static block.",
      ),
      Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block: S(
        18039,
        1,
        "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039",
        "Invalid use of '{0}'. It cannot be used inside a class static block.",
      ),
      A_return_statement_cannot_be_used_inside_a_class_static_block: S(
        18041,
        1,
        "A_return_statement_cannot_be_used_inside_a_class_static_block_18041",
        "A 'return' statement cannot be used inside a class static block.",
      ),
      _0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:
        S(
          18042,
          1,
          "_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042",
          "'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation.",
        ),
      Types_cannot_appear_in_export_declarations_in_JavaScript_files: S(
        18043,
        1,
        "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043",
        "Types cannot appear in export declarations in JavaScript files.",
      ),
      _0_is_automatically_exported_here: S(
        18044,
        3,
        "_0_is_automatically_exported_here_18044",
        "'{0}' is automatically exported here.",
      ),
      Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:
        S(
          18045,
          1,
          "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045",
          "Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.",
        ),
      _0_is_of_type_unknown: S(
        18046,
        1,
        "_0_is_of_type_unknown_18046",
        "'{0}' is of type 'unknown'.",
      ),
      _0_is_possibly_null: S(
        18047,
        1,
        "_0_is_possibly_null_18047",
        "'{0}' is possibly 'null'.",
      ),
      _0_is_possibly_undefined: S(
        18048,
        1,
        "_0_is_possibly_undefined_18048",
        "'{0}' is possibly 'undefined'.",
      ),
      _0_is_possibly_null_or_undefined: S(
        18049,
        1,
        "_0_is_possibly_null_or_undefined_18049",
        "'{0}' is possibly 'null' or 'undefined'.",
      ),
      The_value_0_cannot_be_used_here: S(
        18050,
        1,
        "The_value_0_cannot_be_used_here_18050",
        "The value '{0}' cannot be used here.",
      ),
      Compiler_option_0_cannot_be_given_an_empty_string: S(
        18051,
        1,
        "Compiler_option_0_cannot_be_given_an_empty_string_18051",
        "Compiler option '{0}' cannot be given an empty string.",
      ),
      Its_type_0_is_not_a_valid_JSX_element_type: S(
        18053,
        1,
        "Its_type_0_is_not_a_valid_JSX_element_type_18053",
        "Its type '{0}' is not a valid JSX element type.",
      ),
      await_using_statements_cannot_be_used_inside_a_class_static_block: S(
        18054,
        1,
        "await_using_statements_cannot_be_used_inside_a_class_static_block_18054",
        "'await using' statements cannot be used inside a class static block.",
      ),
      _0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:
        S(
          18055,
          1,
          "_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055",
          "'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled.",
        ),
      Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:
        S(
          18056,
          1,
          "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056",
          "Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.",
        ),
      String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:
        S(
          18057,
          1,
          "String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057",
          "String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.",
        ),
      Default_imports_are_not_allowed_in_a_deferred_import: S(
        18058,
        1,
        "Default_imports_are_not_allowed_in_a_deferred_import_18058",
        "Default imports are not allowed in a deferred import.",
      ),
      Named_imports_are_not_allowed_in_a_deferred_import: S(
        18059,
        1,
        "Named_imports_are_not_allowed_in_a_deferred_import_18059",
        "Named imports are not allowed in a deferred import.",
      ),
      Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:
        S(
          18060,
          1,
          "Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060",
          "Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'.",
        ),
      _0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:
        S(
          18061,
          1,
          "_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061",
          "'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?",
        ),
    };
    function Xu(e) {
      return e >= 80;
    }
    function bee(e) {
      return e === 32 || Xu(e);
    }
    var iF = {
        abstract: 128,
        accessor: 129,
        any: 133,
        as: 130,
        asserts: 131,
        assert: 132,
        bigint: 163,
        boolean: 136,
        break: 83,
        case: 84,
        catch: 85,
        class: 86,
        continue: 88,
        const: 87,
        constructor: 137,
        debugger: 89,
        declare: 138,
        default: 90,
        defer: 166,
        delete: 91,
        do: 92,
        else: 93,
        enum: 94,
        export: 95,
        extends: 96,
        false: 97,
        finally: 98,
        for: 99,
        from: 161,
        function: 100,
        get: 139,
        if: 101,
        implements: 119,
        import: 102,
        in: 103,
        infer: 140,
        instanceof: 104,
        interface: 120,
        intrinsic: 141,
        is: 142,
        keyof: 143,
        let: 121,
        module: 144,
        namespace: 145,
        never: 146,
        new: 105,
        null: 106,
        number: 150,
        object: 151,
        package: 122,
        private: 123,
        protected: 124,
        public: 125,
        override: 164,
        out: 147,
        readonly: 148,
        require: 149,
        global: 162,
        return: 107,
        satisfies: 152,
        set: 153,
        static: 126,
        string: 154,
        super: 108,
        switch: 109,
        symbol: 155,
        this: 110,
        throw: 111,
        true: 112,
        try: 113,
        type: 156,
        typeof: 114,
        undefined: 157,
        unique: 158,
        unknown: 159,
        using: 160,
        var: 115,
        void: 116,
        while: 117,
        with: 118,
        yield: 127,
        async: 134,
        await: 135,
        of: 165,
      },
      S9e = new Map(Object.entries(iF)),
      BTe = new Map(
        Object.entries({
          ...iF,
          "{": 19,
          "}": 20,
          "(": 21,
          ")": 22,
          "[": 23,
          "]": 24,
          ".": 25,
          "...": 26,
          ";": 27,
          ",": 28,
          "<": 30,
          ">": 32,
          "<=": 33,
          ">=": 34,
          "==": 35,
          "!=": 36,
          "===": 37,
          "!==": 38,
          "=>": 39,
          "+": 40,
          "-": 41,
          "**": 43,
          "*": 42,
          "/": 44,
          "%": 45,
          "++": 46,
          "--": 47,
          "<<": 48,
          "</": 31,
          ">>": 49,
          ">>>": 50,
          "&": 51,
          "|": 52,
          "^": 53,
          "!": 54,
          "~": 55,
          "&&": 56,
          "||": 57,
          "?": 58,
          "??": 61,
          "?.": 29,
          ":": 59,
          "=": 64,
          "+=": 65,
          "-=": 66,
          "*=": 67,
          "**=": 68,
          "/=": 69,
          "%=": 70,
          "<<=": 71,
          ">>=": 72,
          ">>>=": 73,
          "&=": 74,
          "|=": 75,
          "^=": 79,
          "||=": 76,
          "&&=": 77,
          "??=": 78,
          "@": 60,
          "#": 63,
          "`": 62,
        }),
      ),
      GTe = new Map([
        [100, 1],
        [103, 2],
        [105, 4],
        [109, 8],
        [115, 16],
        [117, 32],
        [118, 64],
        [121, 128],
      ]),
      E9e = new Map([
        [1, ed.RegularExpressionFlagsHasIndices],
        [16, ed.RegularExpressionFlagsDotAll],
        [32, ed.RegularExpressionFlagsUnicode],
        [64, ed.RegularExpressionFlagsUnicodeSets],
        [128, ed.RegularExpressionFlagsSticky],
      ]),
      A9e = [
        170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721,
        736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902,
        904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329,
        1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646,
        1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791,
        1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036,
        2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112,
        2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392,
        2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474,
        2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527,
        2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610,
        2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693,
        2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749,
        2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858,
        2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929,
        2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972,
        2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077,
        3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160,
        3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253,
        3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342,
        3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461,
        3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634,
        3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725,
        3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754,
        3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804,
        3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159,
        4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213,
        4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348,
        4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746,
        4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808,
        4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121,
        5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902,
        5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103,
        6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400,
        6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688,
        6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098,
        7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413,
        7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016,
        8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118,
        8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160,
        8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450,
        8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486,
        8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526,
        8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499,
        11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568,
        11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696,
        11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736,
        11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344,
        12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549,
        12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968,
        40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538,
        42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786,
        42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43009, 43011,
        43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250,
        43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396,
        43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616,
        43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705,
        43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762,
        43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816,
        43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744,
        64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287,
        64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323,
        64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008,
        65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382,
        65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,
      ],
      I9e = [
        170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721,
        736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902,
        904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162,
        1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473,
        1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568,
        1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808,
        1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208,
        2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425,
        2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482,
        2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524,
        2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579,
        2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622,
        2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662,
        2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738,
        2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784,
        2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858,
        2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902,
        2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949,
        2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979,
        2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024,
        3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090,
        3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157,
        3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214,
        3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274,
        3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330,
        3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402,
        3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461,
        3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535,
        3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664,
        3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732,
        3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757,
        3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804,
        3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897,
        3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038,
        4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304,
        4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704,
        4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802,
        4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992,
        5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870,
        5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998,
        6e3, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155,
        6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432,
        6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608,
        6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823,
        6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232,
        7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960,
        7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029,
        8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134,
        8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204,
        8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400,
        8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469,
        8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495,
        8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310,
        11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559,
        11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686,
        11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726,
        11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295,
        12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442,
        12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686,
        12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124,
        42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621,
        42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894,
        42896, 42899, 42912, 42922, 43e3, 43047, 43072, 43123, 43136, 43204,
        43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347,
        43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597,
        43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741,
        43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798,
        43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025,
        44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217,
        64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316,
        64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829,
        64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062,
        65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305,
        65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479,
        65482, 65487, 65490, 65495, 65498, 65500,
      ],
      x9e = [
        65, 90, 97, 122, 170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248,
        705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890,
        893, 895, 895, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015,
        1153, 1162, 1327, 1329, 1366, 1369, 1369, 1376, 1416, 1488, 1514, 1519,
        1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774,
        1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969,
        1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084,
        2084, 2088, 2088, 2112, 2136, 2144, 2154, 2160, 2183, 2185, 2190, 2208,
        2249, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2432, 2437,
        2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493,
        2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2556, 2556, 2565,
        2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616,
        2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707,
        2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784,
        2785, 2809, 2809, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866,
        2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947,
        2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974,
        2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086,
        3088, 3090, 3112, 3114, 3129, 3133, 3133, 3160, 3162, 3165, 3165, 3168,
        3169, 3200, 3200, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253,
        3257, 3261, 3261, 3293, 3294, 3296, 3297, 3313, 3314, 3332, 3340, 3342,
        3344, 3346, 3386, 3389, 3389, 3406, 3406, 3412, 3414, 3423, 3425, 3450,
        3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585,
        3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3718, 3722, 3724,
        3747, 3749, 3749, 3751, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782,
        3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096,
        4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206,
        4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304,
        4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704,
        4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802,
        4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024,
        5109, 5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870,
        5880, 5888, 5905, 5919, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016,
        6067, 6103, 6103, 6108, 6108, 6176, 6264, 6272, 6312, 6314, 6314, 6320,
        6389, 6400, 6430, 6480, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6656,
        6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6988, 7043, 7072, 7086,
        7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7296, 7304, 7312,
        7354, 7357, 7359, 7401, 7404, 7406, 7411, 7413, 7414, 7418, 7418, 7424,
        7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025,
        8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126,
        8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178,
        8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455,
        8455, 8458, 8467, 8469, 8469, 8472, 8477, 8484, 8484, 8486, 8486, 8488,
        8488, 8490, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264,
        11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565,
        11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688,
        11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728,
        11734, 11736, 11742, 12293, 12295, 12321, 12329, 12337, 12341, 12344,
        12348, 12353, 12438, 12443, 12447, 12449, 12538, 12540, 12543, 12549,
        12591, 12593, 12686, 12704, 12735, 12784, 12799, 13312, 19903, 19968,
        42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560,
        42606, 42623, 42653, 42656, 42735, 42775, 42783, 42786, 42888, 42891,
        42954, 42960, 42961, 42963, 42963, 42965, 42969, 42994, 43009, 43011,
        43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250,
        43255, 43259, 43259, 43261, 43262, 43274, 43301, 43312, 43334, 43360,
        43388, 43396, 43442, 43471, 43471, 43488, 43492, 43494, 43503, 43514,
        43518, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642,
        43642, 43646, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712,
        43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777,
        43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43824,
        43866, 43868, 43881, 43888, 44002, 44032, 55203, 55216, 55238, 55243,
        55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285,
        64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320,
        64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914,
        64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345,
        65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498,
        65500, 65536, 65547, 65549, 65574, 65576, 65594, 65596, 65597, 65599,
        65613, 65616, 65629, 65664, 65786, 65856, 65908, 66176, 66204, 66208,
        66256, 66304, 66335, 66349, 66378, 66384, 66421, 66432, 66461, 66464,
        66499, 66504, 66511, 66513, 66517, 66560, 66717, 66736, 66771, 66776,
        66811, 66816, 66855, 66864, 66915, 66928, 66938, 66940, 66954, 66956,
        66962, 66964, 66965, 66967, 66977, 66979, 66993, 66995, 67001, 67003,
        67004, 67072, 67382, 67392, 67413, 67424, 67431, 67456, 67461, 67463,
        67504, 67506, 67514, 67584, 67589, 67592, 67592, 67594, 67637, 67639,
        67640, 67644, 67644, 67647, 67669, 67680, 67702, 67712, 67742, 67808,
        67826, 67828, 67829, 67840, 67861, 67872, 67897, 67968, 68023, 68030,
        68031, 68096, 68096, 68112, 68115, 68117, 68119, 68121, 68149, 68192,
        68220, 68224, 68252, 68288, 68295, 68297, 68324, 68352, 68405, 68416,
        68437, 68448, 68466, 68480, 68497, 68608, 68680, 68736, 68786, 68800,
        68850, 68864, 68899, 69248, 69289, 69296, 69297, 69376, 69404, 69415,
        69415, 69424, 69445, 69488, 69505, 69552, 69572, 69600, 69622, 69635,
        69687, 69745, 69746, 69749, 69749, 69763, 69807, 69840, 69864, 69891,
        69926, 69956, 69956, 69959, 69959, 69968, 70002, 70006, 70006, 70019,
        70066, 70081, 70084, 70106, 70106, 70108, 70108, 70144, 70161, 70163,
        70187, 70207, 70208, 70272, 70278, 70280, 70280, 70282, 70285, 70287,
        70301, 70303, 70312, 70320, 70366, 70405, 70412, 70415, 70416, 70419,
        70440, 70442, 70448, 70450, 70451, 70453, 70457, 70461, 70461, 70480,
        70480, 70493, 70497, 70656, 70708, 70727, 70730, 70751, 70753, 70784,
        70831, 70852, 70853, 70855, 70855, 71040, 71086, 71128, 71131, 71168,
        71215, 71236, 71236, 71296, 71338, 71352, 71352, 71424, 71450, 71488,
        71494, 71680, 71723, 71840, 71903, 71935, 71942, 71945, 71945, 71948,
        71955, 71957, 71958, 71960, 71983, 71999, 71999, 72001, 72001, 72096,
        72103, 72106, 72144, 72161, 72161, 72163, 72163, 72192, 72192, 72203,
        72242, 72250, 72250, 72272, 72272, 72284, 72329, 72349, 72349, 72368,
        72440, 72704, 72712, 72714, 72750, 72768, 72768, 72818, 72847, 72960,
        72966, 72968, 72969, 72971, 73008, 73030, 73030, 73056, 73061, 73063,
        73064, 73066, 73097, 73112, 73112, 73440, 73458, 73474, 73474, 73476,
        73488, 73490, 73523, 73648, 73648, 73728, 74649, 74752, 74862, 74880,
        75075, 77712, 77808, 77824, 78895, 78913, 78918, 82944, 83526, 92160,
        92728, 92736, 92766, 92784, 92862, 92880, 92909, 92928, 92975, 92992,
        92995, 93027, 93047, 93053, 93071, 93760, 93823, 93952, 94026, 94032,
        94032, 94099, 94111, 94176, 94177, 94179, 94179, 94208, 100343, 100352,
        101589, 101632, 101640, 110576, 110579, 110581, 110587, 110589, 110590,
        110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948,
        110951, 110960, 111355, 113664, 113770, 113776, 113788, 113792, 113800,
        113808, 113817, 119808, 119892, 119894, 119964, 119966, 119967, 119970,
        119970, 119973, 119974, 119977, 119980, 119982, 119993, 119995, 119995,
        119997, 120003, 120005, 120069, 120071, 120074, 120077, 120084, 120086,
        120092, 120094, 120121, 120123, 120126, 120128, 120132, 120134, 120134,
        120138, 120144, 120146, 120485, 120488, 120512, 120514, 120538, 120540,
        120570, 120572, 120596, 120598, 120628, 120630, 120654, 120656, 120686,
        120688, 120712, 120714, 120744, 120746, 120770, 120772, 120779, 122624,
        122654, 122661, 122666, 122928, 122989, 123136, 123180, 123191, 123197,
        123214, 123214, 123536, 123565, 123584, 123627, 124112, 124139, 124896,
        124902, 124904, 124907, 124909, 124910, 124912, 124926, 124928, 125124,
        125184, 125251, 125259, 125259, 126464, 126467, 126469, 126495, 126497,
        126498, 126500, 126500, 126503, 126503, 126505, 126514, 126516, 126519,
        126521, 126521, 126523, 126523, 126530, 126530, 126535, 126535, 126537,
        126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548, 126548,
        126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557, 126559,
        126559, 126561, 126562, 126564, 126564, 126567, 126570, 126572, 126578,
        126580, 126583, 126585, 126588, 126590, 126590, 126592, 126601, 126603,
        126619, 126625, 126627, 126629, 126633, 126635, 126651, 131072, 173791,
        173824, 177977, 177984, 178205, 178208, 183969, 183984, 191456, 191472,
        192093, 194560, 195101, 196608, 201546, 201552, 205743,
      ],
      R9e = [
        48, 57, 65, 90, 95, 95, 97, 122, 170, 170, 181, 181, 183, 183, 186, 186,
        192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750,
        768, 884, 886, 887, 890, 893, 895, 895, 902, 906, 908, 908, 910, 929,
        931, 1013, 1015, 1153, 1155, 1159, 1162, 1327, 1329, 1366, 1369, 1369,
        1376, 1416, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479,
        1488, 1514, 1519, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756,
        1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037,
        2042, 2042, 2045, 2045, 2048, 2093, 2112, 2139, 2144, 2154, 2160, 2183,
        2185, 2190, 2200, 2273, 2275, 2403, 2406, 2415, 2417, 2435, 2437, 2444,
        2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500,
        2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545,
        2556, 2556, 2558, 2558, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600,
        2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626,
        2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677,
        2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739,
        2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787,
        2790, 2799, 2809, 2815, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856,
        2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893,
        2901, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947,
        2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975,
        2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021,
        3024, 3024, 3031, 3031, 3046, 3055, 3072, 3084, 3086, 3088, 3090, 3112,
        3114, 3129, 3132, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3162,
        3165, 3165, 3168, 3171, 3174, 3183, 3200, 3203, 3205, 3212, 3214, 3216,
        3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277,
        3285, 3286, 3293, 3294, 3296, 3299, 3302, 3311, 3313, 3315, 3328, 3340,
        3342, 3344, 3346, 3396, 3398, 3400, 3402, 3406, 3412, 3415, 3423, 3427,
        3430, 3439, 3450, 3455, 3457, 3459, 3461, 3478, 3482, 3505, 3507, 3515,
        3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551,
        3558, 3567, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714,
        3716, 3716, 3718, 3722, 3724, 3747, 3749, 3749, 3751, 3773, 3776, 3780,
        3782, 3782, 3784, 3790, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865,
        3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948,
        3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253,
        4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685,
        4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784,
        4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880,
        4882, 4885, 4888, 4954, 4957, 4959, 4969, 4977, 4992, 5007, 5024, 5109,
        5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5880,
        5888, 5909, 5919, 5940, 5952, 5971, 5984, 5996, 5998, 6e3, 6002, 6003,
        6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6159, 6169,
        6176, 6264, 6272, 6314, 6320, 6389, 6400, 6430, 6432, 6443, 6448, 6459,
        6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6618, 6656, 6683,
        6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6832, 6845,
        6847, 6862, 6912, 6988, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223,
        7232, 7241, 7245, 7293, 7296, 7304, 7312, 7354, 7357, 7359, 7376, 7378,
        7380, 7418, 7424, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023,
        8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124,
        8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172,
        8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305,
        8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450,
        8455, 8455, 8458, 8467, 8469, 8469, 8472, 8477, 8484, 8484, 8486, 8486,
        8488, 8488, 8490, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584,
        11264, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565,
        11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694,
        11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734,
        11736, 11742, 11744, 11775, 12293, 12295, 12321, 12335, 12337, 12341,
        12344, 12348, 12353, 12438, 12441, 12447, 12449, 12543, 12549, 12591,
        12593, 12686, 12704, 12735, 12784, 12799, 13312, 19903, 19968, 42124,
        42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621,
        42623, 42737, 42775, 42783, 42786, 42888, 42891, 42954, 42960, 42961,
        42963, 42963, 42965, 42969, 42994, 43047, 43052, 43052, 43072, 43123,
        43136, 43205, 43216, 43225, 43232, 43255, 43259, 43259, 43261, 43309,
        43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43488, 43518,
        43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43714,
        43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790,
        43793, 43798, 43808, 43814, 43816, 43822, 43824, 43866, 43868, 43881,
        43888, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238,
        55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279,
        64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321,
        64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967,
        65008, 65019, 65024, 65039, 65056, 65071, 65075, 65076, 65101, 65103,
        65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343,
        65345, 65370, 65381, 65470, 65474, 65479, 65482, 65487, 65490, 65495,
        65498, 65500, 65536, 65547, 65549, 65574, 65576, 65594, 65596, 65597,
        65599, 65613, 65616, 65629, 65664, 65786, 65856, 65908, 66045, 66045,
        66176, 66204, 66208, 66256, 66272, 66272, 66304, 66335, 66349, 66378,
        66384, 66426, 66432, 66461, 66464, 66499, 66504, 66511, 66513, 66517,
        66560, 66717, 66720, 66729, 66736, 66771, 66776, 66811, 66816, 66855,
        66864, 66915, 66928, 66938, 66940, 66954, 66956, 66962, 66964, 66965,
        66967, 66977, 66979, 66993, 66995, 67001, 67003, 67004, 67072, 67382,
        67392, 67413, 67424, 67431, 67456, 67461, 67463, 67504, 67506, 67514,
        67584, 67589, 67592, 67592, 67594, 67637, 67639, 67640, 67644, 67644,
        67647, 67669, 67680, 67702, 67712, 67742, 67808, 67826, 67828, 67829,
        67840, 67861, 67872, 67897, 67968, 68023, 68030, 68031, 68096, 68099,
        68101, 68102, 68108, 68115, 68117, 68119, 68121, 68149, 68152, 68154,
        68159, 68159, 68192, 68220, 68224, 68252, 68288, 68295, 68297, 68326,
        68352, 68405, 68416, 68437, 68448, 68466, 68480, 68497, 68608, 68680,
        68736, 68786, 68800, 68850, 68864, 68903, 68912, 68921, 69248, 69289,
        69291, 69292, 69296, 69297, 69373, 69404, 69415, 69415, 69424, 69456,
        69488, 69509, 69552, 69572, 69600, 69622, 69632, 69702, 69734, 69749,
        69759, 69818, 69826, 69826, 69840, 69864, 69872, 69881, 69888, 69940,
        69942, 69951, 69956, 69959, 69968, 70003, 70006, 70006, 70016, 70084,
        70089, 70092, 70094, 70106, 70108, 70108, 70144, 70161, 70163, 70199,
        70206, 70209, 70272, 70278, 70280, 70280, 70282, 70285, 70287, 70301,
        70303, 70312, 70320, 70378, 70384, 70393, 70400, 70403, 70405, 70412,
        70415, 70416, 70419, 70440, 70442, 70448, 70450, 70451, 70453, 70457,
        70459, 70468, 70471, 70472, 70475, 70477, 70480, 70480, 70487, 70487,
        70493, 70499, 70502, 70508, 70512, 70516, 70656, 70730, 70736, 70745,
        70750, 70753, 70784, 70853, 70855, 70855, 70864, 70873, 71040, 71093,
        71096, 71104, 71128, 71133, 71168, 71232, 71236, 71236, 71248, 71257,
        71296, 71352, 71360, 71369, 71424, 71450, 71453, 71467, 71472, 71481,
        71488, 71494, 71680, 71738, 71840, 71913, 71935, 71942, 71945, 71945,
        71948, 71955, 71957, 71958, 71960, 71989, 71991, 71992, 71995, 72003,
        72016, 72025, 72096, 72103, 72106, 72151, 72154, 72161, 72163, 72164,
        72192, 72254, 72263, 72263, 72272, 72345, 72349, 72349, 72368, 72440,
        72704, 72712, 72714, 72758, 72760, 72768, 72784, 72793, 72818, 72847,
        72850, 72871, 72873, 72886, 72960, 72966, 72968, 72969, 72971, 73014,
        73018, 73018, 73020, 73021, 73023, 73031, 73040, 73049, 73056, 73061,
        73063, 73064, 73066, 73102, 73104, 73105, 73107, 73112, 73120, 73129,
        73440, 73462, 73472, 73488, 73490, 73530, 73534, 73538, 73552, 73561,
        73648, 73648, 73728, 74649, 74752, 74862, 74880, 75075, 77712, 77808,
        77824, 78895, 78912, 78933, 82944, 83526, 92160, 92728, 92736, 92766,
        92768, 92777, 92784, 92862, 92864, 92873, 92880, 92909, 92912, 92916,
        92928, 92982, 92992, 92995, 93008, 93017, 93027, 93047, 93053, 93071,
        93760, 93823, 93952, 94026, 94031, 94087, 94095, 94111, 94176, 94177,
        94179, 94180, 94192, 94193, 94208, 100343, 100352, 101589, 101632,
        101640, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882,
        110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960,
        111355, 113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817,
        113821, 113822, 118528, 118573, 118576, 118598, 119141, 119145, 119149,
        119154, 119163, 119170, 119173, 119179, 119210, 119213, 119362, 119364,
        119808, 119892, 119894, 119964, 119966, 119967, 119970, 119970, 119973,
        119974, 119977, 119980, 119982, 119993, 119995, 119995, 119997, 120003,
        120005, 120069, 120071, 120074, 120077, 120084, 120086, 120092, 120094,
        120121, 120123, 120126, 120128, 120132, 120134, 120134, 120138, 120144,
        120146, 120485, 120488, 120512, 120514, 120538, 120540, 120570, 120572,
        120596, 120598, 120628, 120630, 120654, 120656, 120686, 120688, 120712,
        120714, 120744, 120746, 120770, 120772, 120779, 120782, 120831, 121344,
        121398, 121403, 121452, 121461, 121461, 121476, 121476, 121499, 121503,
        121505, 121519, 122624, 122654, 122661, 122666, 122880, 122886, 122888,
        122904, 122907, 122913, 122915, 122916, 122918, 122922, 122928, 122989,
        123023, 123023, 123136, 123180, 123184, 123197, 123200, 123209, 123214,
        123214, 123536, 123566, 123584, 123641, 124112, 124153, 124896, 124902,
        124904, 124907, 124909, 124910, 124912, 124926, 124928, 125124, 125136,
        125142, 125184, 125259, 125264, 125273, 126464, 126467, 126469, 126495,
        126497, 126498, 126500, 126500, 126503, 126503, 126505, 126514, 126516,
        126519, 126521, 126521, 126523, 126523, 126530, 126530, 126535, 126535,
        126537, 126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548,
        126548, 126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557,
        126559, 126559, 126561, 126562, 126564, 126564, 126567, 126570, 126572,
        126578, 126580, 126583, 126585, 126588, 126590, 126590, 126592, 126601,
        126603, 126619, 126625, 126627, 126629, 126633, 126635, 126651, 130032,
        130041, 131072, 173791, 173824, 177977, 177984, 178205, 178208, 183969,
        183984, 191456, 191472, 192093, 194560, 195101, 196608, 201546, 201552,
        205743, 917760, 917999,
      ],
      D9e = /^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,
      C9e = /^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,
      N9e = /@(?:see|link)/i;
    function N9(e, t) {
      if (e < t[0]) return !1;
      let r = 0,
        i = t.length,
        o;
      for (; r + 1 < i; ) {
        if (((o = r + (i - r) / 2), (o -= o % 2), t[o] <= e && e <= t[o + 1]))
          return !0;
        e < t[o] ? (i = o) : (r = o + 2);
      }
      return !1;
    }
    function oF(e, t) {
      return t >= 2 ? N9(e, x9e) : N9(e, A9e);
    }
    function M9e(e, t) {
      return t >= 2 ? N9(e, R9e) : N9(e, I9e);
    }
    function VTe(e) {
      const t = [];
      return (
        e.forEach((r, i) => {
          t[r] = i;
        }),
        t
      );
    }
    var P9e = VTe(BTe);
    function _a(e) {
      return P9e[e];
    }
    function HE(e) {
      return BTe.get(e);
    }
    var L9e = VTe(GTe);
    function jTe(e) {
      return L9e[e];
    }
    function M9(e) {
      return GTe.get(e);
    }
    function iI(e) {
      const t = [];
      let r = 0,
        i = 0;
      for (; r < e.length; ) {
        const o = e.charCodeAt(r);
        switch ((r++, o)) {
          case 13:
            e.charCodeAt(r) === 10 && r++;
          case 10:
            (t.push(i), (i = r));
            break;
          default:
            o > 127 && eu(o) && (t.push(i), (i = r));
            break;
        }
      }
      return (t.push(i), t);
    }
    function A2(e, t, r, i) {
      return e.getPositionOfLineAndCharacter
        ? e.getPositionOfLineAndCharacter(t, r, i)
        : aF(ag(e), t, r, e.text, i);
    }
    function aF(e, t, r, i, o) {
      (t < 0 || t >= e.length) &&
        (o
          ? (t = t < 0 ? 0 : t >= e.length ? e.length - 1 : t)
          : C.fail(
              `Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i !== void 0 ? Qp(e, iI(i)) : "unknown"}`,
            ));
      const s = e[t] + r;
      return o
        ? s > e[t + 1]
          ? e[t + 1]
          : typeof i == "string" && s > i.length
            ? i.length
            : s
        : (t < e.length - 1
            ? C.assert(s < e[t + 1])
            : i !== void 0 && C.assert(s <= i.length),
          s);
    }
    function ag(e) {
      return e.lineMap || (e.lineMap = iI(e.text));
    }
    function LR(e, t) {
      const r = IN(e, t);
      return { line: r, character: t - e[r] };
    }
    function IN(e, t, r) {
      let i = Zv(e, t, Vs, js, r);
      return (
        i < 0 &&
          ((i = ~i - 1),
          C.assert(
            i !== -1,
            "position cannot precede the beginning of the file",
          )),
        i
      );
    }
    function xN(e, t, r) {
      if (t === r) return 0;
      const i = ag(e),
        o = Math.min(t, r),
        s = o === r,
        l = s ? t : r,
        u = IN(i, o),
        d = IN(i, l, u);
      return s ? u - d : d - u;
    }
    function ca(e, t) {
      return LR(ag(e), t);
    }
    function sg(e) {
      return Bh(e) || eu(e);
    }
    function Bh(e) {
      return (
        e === 32 ||
        e === 9 ||
        e === 11 ||
        e === 12 ||
        e === 160 ||
        e === 133 ||
        e === 5760 ||
        (e >= 8192 && e <= 8203) ||
        e === 8239 ||
        e === 8287 ||
        e === 12288 ||
        e === 65279
      );
    }
    function eu(e) {
      return e === 10 || e === 13 || e === 8232 || e === 8233;
    }
    function kR(e) {
      return e >= 48 && e <= 57;
    }
    function Tee(e) {
      return kR(e) || (e >= 65 && e <= 70) || (e >= 97 && e <= 102);
    }
    function See(e) {
      return (e >= 65 && e <= 90) || (e >= 97 && e <= 122);
    }
    function UTe(e) {
      return See(e) || kR(e) || e === 95;
    }
    function Eee(e) {
      return e >= 48 && e <= 55;
    }
    function Aee(e, t) {
      const r = e.charCodeAt(t);
      switch (r) {
        case 13:
        case 10:
        case 9:
        case 11:
        case 12:
        case 32:
        case 47:
        case 60:
        case 124:
        case 61:
        case 62:
          return !0;
        case 35:
          return t === 0;
        default:
          return r > 127;
      }
    }
    function La(e, t, r, i, o) {
      if (dh(t)) return t;
      let s = !1;
      for (;;) {
        const l = e.charCodeAt(t);
        switch (l) {
          case 13:
            e.charCodeAt(t + 1) === 10 && t++;
          case 10:
            if ((t++, r)) return t;
            s = !!o;
            continue;
          case 9:
          case 11:
          case 12:
          case 32:
            t++;
            continue;
          case 47:
            if (i) break;
            if (e.charCodeAt(t + 1) === 47) {
              for (t += 2; t < e.length && !eu(e.charCodeAt(t)); ) t++;
              s = !1;
              continue;
            }
            if (e.charCodeAt(t + 1) === 42) {
              for (t += 2; t < e.length; ) {
                if (e.charCodeAt(t) === 42 && e.charCodeAt(t + 1) === 47) {
                  t += 2;
                  break;
                }
                t++;
              }
              s = !1;
              continue;
            }
            break;
          case 60:
          case 124:
          case 61:
          case 62:
            if (RN(e, t)) {
              ((t = I2(e, t)), (s = !1));
              continue;
            }
            break;
          case 35:
            if (t === 0 && HTe(e, t)) {
              ((t = qTe(e, t)), (s = !1));
              continue;
            }
            break;
          case 42:
            if (s) {
              (t++, (s = !1));
              continue;
            }
            break;
          default:
            if (l > 127 && sg(l)) {
              t++;
              continue;
            }
            break;
        }
        return t;
      }
    }
    var P9 = 7;
    function RN(e, t) {
      if ((C.assert(t >= 0), t === 0 || eu(e.charCodeAt(t - 1)))) {
        const r = e.charCodeAt(t);
        if (t + P9 < e.length) {
          for (let i = 0; i < P9; i++) if (e.charCodeAt(t + i) !== r) return !1;
          return r === 61 || e.charCodeAt(t + P9) === 32;
        }
      }
      return !1;
    }
    function I2(e, t, r) {
      r && r(f.Merge_conflict_marker_encountered, t, P9);
      const i = e.charCodeAt(t),
        o = e.length;
      if (i === 60 || i === 62) for (; t < o && !eu(e.charCodeAt(t)); ) t++;
      else
        for (C.assert(i === 124 || i === 61); t < o; ) {
          const s = e.charCodeAt(t);
          if ((s === 61 || s === 62) && s !== i && RN(e, t)) break;
          t++;
        }
      return t;
    }
    var Iee = /^#!.*/;
    function HTe(e, t) {
      return (C.assert(t === 0), Iee.test(e));
    }
    function qTe(e, t) {
      const r = Iee.exec(e)[0];
      return ((t = t + r.length), t);
    }
    function L9(e, t, r, i, o, s, l) {
      let u,
        d,
        _,
        h,
        g = !1,
        E = i,
        A = l;
      if (r === 0) {
        E = !0;
        const R = sF(t);
        R && (r = R.length);
      }
      e: for (; r >= 0 && r < t.length; ) {
        const R = t.charCodeAt(r);
        switch (R) {
          case 13:
            t.charCodeAt(r + 1) === 10 && r++;
          case 10:
            if ((r++, i)) break e;
            ((E = !0), g && (h = !0));
            continue;
          case 9:
          case 11:
          case 12:
          case 32:
            r++;
            continue;
          case 47:
            const N = t.charCodeAt(r + 1);
            let P = !1;
            if (N === 47 || N === 42) {
              const k = N === 47 ? 2 : 3,
                W = r;
              if (((r += 2), N === 47))
                for (; r < t.length; ) {
                  if (eu(t.charCodeAt(r))) {
                    P = !0;
                    break;
                  }
                  r++;
                }
              else
                for (; r < t.length; ) {
                  if (t.charCodeAt(r) === 42 && t.charCodeAt(r + 1) === 47) {
                    r += 2;
                    break;
                  }
                  r++;
                }
              if (E) {
                if (g && ((A = o(u, d, _, h, s, A)), !e && A)) return A;
                ((u = W), (d = r), (_ = k), (h = P), (g = !0));
              }
              continue;
            }
            break e;
          default:
            if (R > 127 && sg(R)) {
              (g && eu(R) && (h = !0), r++);
              continue;
            }
            break e;
        }
      }
      return (g && (A = o(u, d, _, h, s, A)), A);
    }
    function x2(e, t, r, i) {
      return L9(!1, e, t, !1, r, i);
    }
    function R2(e, t, r, i) {
      return L9(!1, e, t, !0, r, i);
    }
    function xee(e, t, r, i, o) {
      return L9(!0, e, t, !1, r, i, o);
    }
    function Ree(e, t, r, i, o) {
      return L9(!0, e, t, !0, r, i, o);
    }
    function JTe(e, t, r, i, o, s = []) {
      return (s.push({ kind: r, pos: e, end: t, hasTrailingNewLine: i }), s);
    }
    function lg(e, t) {
      return xee(e, t, JTe, void 0, void 0);
    }
    function sb(e, t) {
      return Ree(e, t, JTe, void 0, void 0);
    }
    function sF(e) {
      const t = Iee.exec(e);
      if (t) return t[0];
    }
    function R_(e, t) {
      return See(e) || e === 36 || e === 95 || (e > 127 && oF(e, t));
    }
    function ey(e, t, r) {
      return (
        UTe(e) ||
        e === 36 ||
        (r === 1 ? e === 45 || e === 58 : !1) ||
        (e > 127 && M9e(e, t))
      );
    }
    function fp(e, t, r) {
      let i = DN(e, 0);
      if (!R_(i, t)) return !1;
      for (let o = oh(i); o < e.length; o += oh(i))
        if (!ey((i = DN(e, o)), t, r)) return !1;
      return !0;
    }
    function cg(e, t, r = 0, i, o, s, l) {
      var u = i,
        d,
        _,
        h,
        g,
        E,
        A,
        R,
        N,
        P = 0,
        k = 0,
        W = 0;
      $o(u, s, l);
      var O = {
        getTokenFullStart: () => h,
        getStartPos: () => h,
        getTokenEnd: () => d,
        getTextPos: () => d,
        getToken: () => E,
        getTokenStart: () => g,
        getTokenPos: () => g,
        getTokenText: () => u.substring(g, d),
        getTokenValue: () => A,
        hasUnicodeEscape: () => (R & 1024) !== 0,
        hasExtendedUnicodeEscape: () => (R & 8) !== 0,
        hasPrecedingLineBreak: () => (R & 1) !== 0,
        hasPrecedingJSDocComment: () => (R & 2) !== 0,
        hasPrecedingJSDocLeadingAsterisks: () => (R & 32768) !== 0,
        isIdentifier: () => E === 80 || E > 118,
        isReservedWord: () => E >= 83 && E <= 118,
        isUnterminated: () => (R & 4) !== 0,
        getCommentDirectives: () => N,
        getNumericLiteralFlags: () => R & 25584,
        getTokenFlags: () => R,
        reScanGreaterToken: Ge,
        reScanAsteriskEqualsToken: We,
        reScanSlashToken: at,
        reScanTemplateToken: _t,
        reScanTemplateHeadOrNoSubstitutionTemplate: en,
        scanJsxIdentifier: Ai,
        scanJsxAttributeValue: Ni,
        reScanJsxAttributeValue: Pr,
        reScanJsxToken: ir,
        reScanLessThanToken: Di,
        reScanHashToken: lo,
        reScanQuestionToken: zt,
        reScanInvalidIdentifier: _e,
        scanJsxToken: Zr,
        scanJsDocToken: $e,
        scanJSDocCommentTextToken: Ci,
        scan: ce,
        getText: ai,
        clearCommentDirectives: qi,
        setText: $o,
        setScriptTarget: Mn,
        setLanguageVariant: Uo,
        setScriptKind: ot,
        setJSDocParsingMode: Ft,
        setOnError: Ia,
        resetTokenState: le,
        setTextPos: le,
        setSkipJsDocLeadingAsterisks: ht,
        tryScan: ri,
        lookAhead: dr,
        scanRange: mn,
      };
      return (
        C.isDebugging &&
          Object.defineProperty(O, "__debugShowCurrentPositionInText", {
            get: () => {
              const ne = O.getText();
              return (
                ne.slice(0, O.getTokenFullStart()) +
                "║" +
                ne.slice(O.getTokenFullStart())
              );
            },
          }),
        O
      );
      function G(ne) {
        return DN(u, ne);
      }
      function j(ne) {
        return ne >= 0 && ne < _ ? G(ne) : -1;
      }
      function J(ne) {
        return u.charCodeAt(ne);
      }
      function Z(ne) {
        return ne >= 0 && ne < _ ? J(ne) : -1;
      }
      function q(ne, Fe = d, it, dt) {
        if (o) {
          const Lt = d;
          ((d = Fe), o(ne, it || 0, dt), (d = Lt));
        }
      }
      function ye() {
        let ne = d,
          Fe = !1,
          it = !1,
          dt = "";
        for (;;) {
          const Lt = J(d);
          if (Lt === 95) {
            ((R |= 512),
              Fe
                ? ((Fe = !1), (it = !0), (dt += u.substring(ne, d)))
                : ((R |= 16384),
                  q(
                    it
                      ? f.Multiple_consecutive_numeric_separators_are_not_permitted
                      : f.Numeric_separators_are_not_allowed_here,
                    d,
                    1,
                  )),
              d++,
              (ne = d));
            continue;
          }
          if (kR(Lt)) {
            ((Fe = !0), (it = !1), d++);
            continue;
          }
          break;
        }
        return (
          J(d - 1) === 95 &&
            ((R |= 16384),
            q(f.Numeric_separators_are_not_allowed_here, d - 1, 1)),
          dt + u.substring(ne, d)
        );
      }
      function ie() {
        let ne = d,
          Fe;
        if (J(d) === 48)
          if ((d++, J(d) === 95))
            ((R |= 16896),
              q(f.Numeric_separators_are_not_allowed_here, d, 1),
              d--,
              (Fe = ye()));
          else if (!pe()) ((R |= 8192), (Fe = "" + +A));
          else if (!A) Fe = "0";
          else {
            ((A = "" + parseInt(A, 8)), (R |= 32));
            const Rt = E === 41,
              It = (Rt ? "-" : "") + "0o" + (+A).toString(8);
            return (
              Rt && ne--,
              q(
                f.Octal_literals_are_not_allowed_Use_the_syntax_0,
                ne,
                d - ne,
                It,
              ),
              9
            );
          }
        else Fe = ye();
        let it, dt;
        J(d) === 46 && (d++, (it = ye()));
        let Lt = d;
        if (J(d) === 69 || J(d) === 101) {
          (d++, (R |= 16), (J(d) === 43 || J(d) === 45) && d++);
          const Rt = d,
            It = ye();
          It
            ? ((dt = u.substring(Lt, Rt) + It), (Lt = d))
            : q(f.Digit_expected);
        }
        let Ue;
        if (
          (R & 512
            ? ((Ue = Fe), it && (Ue += "." + it), dt && (Ue += dt))
            : (Ue = u.substring(ne, Lt)),
          R & 8192)
        )
          return (
            q(f.Decimals_with_leading_zeros_are_not_allowed, ne, Lt - ne),
            (A = "" + +Ue),
            9
          );
        if (it !== void 0 || R & 16)
          return (K(ne, it === void 0 && !!(R & 16)), (A = "" + +Ue), 9);
        {
          A = Ue;
          const Rt = lt();
          return (K(ne), Rt);
        }
      }
      function K(ne, Fe) {
        if (!R_(G(d), e)) return;
        const it = d,
          { length: dt } = be();
        dt === 1 && u[it] === "n"
          ? q(
              Fe
                ? f.A_bigint_literal_cannot_use_exponential_notation
                : f.A_bigint_literal_must_be_an_integer,
              ne,
              it - ne + 1,
            )
          : (q(
              f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,
              it,
              dt,
            ),
            (d = it));
      }
      function pe() {
        const ne = d;
        let Fe = !0;
        for (; kR(Z(d)); ) (Eee(J(d)) || (Fe = !1), d++);
        return ((A = u.substring(ne, d)), Fe);
      }
      function de(ne, Fe) {
        const it = ve(ne, !1, Fe);
        return it ? parseInt(it, 16) : -1;
      }
      function fe(ne, Fe) {
        return ve(ne, !0, Fe);
      }
      function ve(ne, Fe, it) {
        let dt = [],
          Lt = !1,
          Ue = !1;
        for (; dt.length < ne || Fe; ) {
          let Rt = J(d);
          if (it && Rt === 95) {
            ((R |= 512),
              Lt
                ? ((Lt = !1), (Ue = !0))
                : q(
                    Ue
                      ? f.Multiple_consecutive_numeric_separators_are_not_permitted
                      : f.Numeric_separators_are_not_allowed_here,
                    d,
                    1,
                  ),
              d++);
            continue;
          }
          if (((Lt = it), Rt >= 65 && Rt <= 70)) Rt += 32;
          else if (!((Rt >= 48 && Rt <= 57) || (Rt >= 97 && Rt <= 102))) break;
          (dt.push(Rt), d++, (Ue = !1));
        }
        return (
          dt.length < ne && (dt = []),
          J(d - 1) === 95 &&
            q(f.Numeric_separators_are_not_allowed_here, d - 1, 1),
          String.fromCharCode(...dt)
        );
      }
      function xe(ne = !1) {
        const Fe = J(d);
        d++;
        let it = "",
          dt = d;
        for (;;) {
          if (d >= _) {
            ((it += u.substring(dt, d)),
              (R |= 4),
              q(f.Unterminated_string_literal));
            break;
          }
          const Lt = J(d);
          if (Lt === Fe) {
            ((it += u.substring(dt, d)), d++);
            break;
          }
          if (Lt === 92 && !ne) {
            ((it += u.substring(dt, d)), (it += Ce(3)), (dt = d));
            continue;
          }
          if ((Lt === 10 || Lt === 13) && !ne) {
            ((it += u.substring(dt, d)),
              (R |= 4),
              q(f.Unterminated_string_literal));
            break;
          }
          d++;
        }
        return it;
      }
      function X(ne) {
        const Fe = J(d) === 96;
        d++;
        let it = d,
          dt = "",
          Lt;
        for (;;) {
          if (d >= _) {
            ((dt += u.substring(it, d)),
              (R |= 4),
              q(f.Unterminated_template_literal),
              (Lt = Fe ? 15 : 18));
            break;
          }
          const Ue = J(d);
          if (Ue === 96) {
            ((dt += u.substring(it, d)), d++, (Lt = Fe ? 15 : 18));
            break;
          }
          if (Ue === 36 && d + 1 < _ && J(d + 1) === 123) {
            ((dt += u.substring(it, d)), (d += 2), (Lt = Fe ? 16 : 17));
            break;
          }
          if (Ue === 92) {
            ((dt += u.substring(it, d)),
              (dt += Ce(1 | (ne ? 2 : 0))),
              (it = d));
            continue;
          }
          if (Ue === 13) {
            ((dt += u.substring(it, d)),
              d++,
              d < _ && J(d) === 10 && d++,
              (dt += `
`),
              (it = d));
            continue;
          }
          d++;
        }
        return (C.assert(Lt !== void 0), (A = dt), Lt);
      }
      function Ce(ne) {
        const Fe = d;
        if ((d++, d >= _)) return (q(f.Unexpected_end_of_text), "");
        const it = J(d);
        switch ((d++, it)) {
          case 48:
            if (d >= _ || !kR(J(d))) return "\0";
          case 49:
          case 50:
          case 51:
            d < _ && Eee(J(d)) && d++;
          case 52:
          case 53:
          case 54:
          case 55:
            if ((d < _ && Eee(J(d)) && d++, (R |= 2048), ne & 6)) {
              const Ue = parseInt(u.substring(Fe + 1, d), 8);
              return (
                ne & 4 && !(ne & 32) && it !== 48
                  ? q(
                      f.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,
                      Fe,
                      d - Fe,
                      "\\x" + Ue.toString(16).padStart(2, "0"),
                    )
                  : q(
                      f.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,
                      Fe,
                      d - Fe,
                      "\\x" + Ue.toString(16).padStart(2, "0"),
                    ),
                String.fromCharCode(Ue)
              );
            }
            return u.substring(Fe, d);
          case 56:
          case 57:
            return (
              (R |= 2048),
              ne & 6
                ? (ne & 4 && !(ne & 32)
                    ? q(
                        f.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,
                        Fe,
                        d - Fe,
                      )
                    : q(
                        f.Escape_sequence_0_is_not_allowed,
                        Fe,
                        d - Fe,
                        u.substring(Fe, d),
                      ),
                  String.fromCharCode(it))
                : u.substring(Fe, d)
            );
          case 98:
            return "\b";
          case 116:
            return "	";
          case 110:
            return `
`;
          case 118:
            return "\v";
          case 102:
            return "\f";
          case 114:
            return "\r";
          case 39:
            return "'";
          case 34:
            return '"';
          case 117:
            if (d < _ && J(d) === 123) {
              d -= 2;
              const Ue = Je(!!(ne & 6));
              return (
                ne & 17 ||
                  ((R |= 2048),
                  ne & 6 &&
                    q(
                      f.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,
                      Fe,
                      d - Fe,
                    )),
                Ue
              );
            }
            for (; d < Fe + 6; d++)
              if (!(d < _ && Tee(J(d))))
                return (
                  (R |= 2048),
                  ne & 6 && q(f.Hexadecimal_digit_expected),
                  u.substring(Fe, d)
                );
            R |= 1024;
            const dt = parseInt(u.substring(Fe + 2, d), 16),
              Lt = String.fromCharCode(dt);
            if (
              ne & 16 &&
              dt >= 55296 &&
              dt <= 56319 &&
              d + 6 < _ &&
              u.substring(d, d + 2) === "\\u" &&
              J(d + 2) !== 123
            ) {
              const Ue = d;
              let Rt = d + 2;
              for (; Rt < Ue + 6; Rt++) if (!Tee(J(Rt))) return Lt;
              const It = parseInt(u.substring(Ue + 2, Rt), 16);
              if (It >= 56320 && It <= 57343)
                return ((d = Rt), Lt + String.fromCharCode(It));
            }
            return Lt;
          case 120:
            for (; d < Fe + 4; d++)
              if (!(d < _ && Tee(J(d))))
                return (
                  (R |= 2048),
                  ne & 6 && q(f.Hexadecimal_digit_expected),
                  u.substring(Fe, d)
                );
            return (
              (R |= 4096),
              String.fromCharCode(parseInt(u.substring(Fe + 2, d), 16))
            );
          case 13:
            d < _ && J(d) === 10 && d++;
          case 10:
          case 8232:
          case 8233:
            return "";
          default:
            return (
              (ne & 16 || (ne & 4 && !(ne & 8) && ey(it, e))) &&
                q(
                  f.This_character_cannot_be_escaped_in_a_regular_expression,
                  d - 2,
                  2,
                ),
              String.fromCharCode(it)
            );
        }
      }
      function Je(ne) {
        const Fe = d;
        d += 3;
        const it = d,
          dt = fe(1, !1),
          Lt = dt ? parseInt(dt, 16) : -1;
        let Ue = !1;
        return (
          Lt < 0
            ? (ne && q(f.Hexadecimal_digit_expected), (Ue = !0))
            : Lt > 1114111 &&
              (ne &&
                q(
                  f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,
                  it,
                  d - it,
                ),
              (Ue = !0)),
          d >= _
            ? (ne && q(f.Unexpected_end_of_text), (Ue = !0))
            : J(d) === 125
              ? d++
              : (ne && q(f.Unterminated_Unicode_escape_sequence), (Ue = !0)),
          Ue ? ((R |= 2048), u.substring(Fe, d)) : ((R |= 8), CN(Lt))
        );
      }
      function Se() {
        if (d + 5 < _ && J(d + 1) === 117) {
          const ne = d;
          d += 2;
          const Fe = de(4, !1);
          return ((d = ne), Fe);
        }
        return -1;
      }
      function re() {
        if (G(d + 1) === 117 && G(d + 2) === 123) {
          const ne = d;
          d += 3;
          const Fe = fe(1, !1),
            it = Fe ? parseInt(Fe, 16) : -1;
          return ((d = ne), it);
        }
        return -1;
      }
      function be() {
        let ne = "",
          Fe = d;
        for (; d < _; ) {
          let it = G(d);
          if (ey(it, e)) d += oh(it);
          else if (it === 92) {
            if (((it = re()), it >= 0 && ey(it, e))) {
              ((ne += Je(!0)), (Fe = d));
              continue;
            }
            if (((it = Se()), !(it >= 0 && ey(it, e)))) break;
            ((R |= 1024),
              (ne += u.substring(Fe, d)),
              (ne += CN(it)),
              (d += 6),
              (Fe = d));
          } else break;
        }
        return ((ne += u.substring(Fe, d)), ne);
      }
      function Ne() {
        const ne = A.length;
        if (ne >= 2 && ne <= 12) {
          const Fe = A.charCodeAt(0);
          if (Fe >= 97 && Fe <= 122) {
            const it = S9e.get(A);
            if (it !== void 0) return (E = it);
          }
        }
        return (E = 80);
      }
      function Be(ne) {
        let Fe = "",
          it = !1,
          dt = !1;
        for (;;) {
          const Lt = J(d);
          if (Lt === 95) {
            ((R |= 512),
              it
                ? ((it = !1), (dt = !0))
                : q(
                    dt
                      ? f.Multiple_consecutive_numeric_separators_are_not_permitted
                      : f.Numeric_separators_are_not_allowed_here,
                    d,
                    1,
                  ),
              d++);
            continue;
          }
          if (((it = !0), !kR(Lt) || Lt - 48 >= ne)) break;
          ((Fe += u[d]), d++, (dt = !1));
        }
        return (
          J(d - 1) === 95 &&
            q(f.Numeric_separators_are_not_allowed_here, d - 1, 1),
          Fe
        );
      }
      function lt() {
        return J(d) === 110
          ? ((A += "n"), R & 384 && (A = RM(A) + "n"), d++, 10)
          : ((A =
              "" +
              (R & 128
                ? parseInt(A.slice(2), 2)
                : R & 256
                  ? parseInt(A.slice(2), 8)
                  : +A)),
            9);
      }
      function ce() {
        for (h = d, R = 0; ; ) {
          if (((g = d), d >= _)) return (E = 1);
          const ne = G(d);
          if (d === 0 && ne === 35 && HTe(u, d)) {
            if (((d = qTe(u, d)), t)) continue;
            return (E = 6);
          }
          switch (ne) {
            case 10:
            case 13:
              if (((R |= 1), t)) {
                d++;
                continue;
              } else
                return (
                  ne === 13 && d + 1 < _ && J(d + 1) === 10 ? (d += 2) : d++,
                  (E = 4)
                );
            case 9:
            case 11:
            case 12:
            case 32:
            case 160:
            case 5760:
            case 8192:
            case 8193:
            case 8194:
            case 8195:
            case 8196:
            case 8197:
            case 8198:
            case 8199:
            case 8200:
            case 8201:
            case 8202:
            case 8203:
            case 8239:
            case 8287:
            case 12288:
            case 65279:
              if (t) {
                d++;
                continue;
              } else {
                for (; d < _ && Bh(J(d)); ) d++;
                return (E = 5);
              }
            case 33:
              return J(d + 1) === 61
                ? J(d + 2) === 61
                  ? ((d += 3), (E = 38))
                  : ((d += 2), (E = 36))
                : (d++, (E = 54));
            case 34:
            case 39:
              return ((A = xe()), (E = 11));
            case 96:
              return (E = X(!1));
            case 37:
              return J(d + 1) === 61 ? ((d += 2), (E = 70)) : (d++, (E = 45));
            case 38:
              return J(d + 1) === 38
                ? J(d + 2) === 61
                  ? ((d += 3), (E = 77))
                  : ((d += 2), (E = 56))
                : J(d + 1) === 61
                  ? ((d += 2), (E = 74))
                  : (d++, (E = 51));
            case 40:
              return (d++, (E = 21));
            case 41:
              return (d++, (E = 22));
            case 42:
              if (J(d + 1) === 61) return ((d += 2), (E = 67));
              if (J(d + 1) === 42)
                return J(d + 2) === 61
                  ? ((d += 3), (E = 68))
                  : ((d += 2), (E = 43));
              if ((d++, P && (R & 32768) === 0 && R & 1)) {
                R |= 32768;
                continue;
              }
              return (E = 42);
            case 43:
              return J(d + 1) === 43
                ? ((d += 2), (E = 46))
                : J(d + 1) === 61
                  ? ((d += 2), (E = 65))
                  : (d++, (E = 40));
            case 44:
              return (d++, (E = 28));
            case 45:
              return J(d + 1) === 45
                ? ((d += 2), (E = 47))
                : J(d + 1) === 61
                  ? ((d += 2), (E = 66))
                  : (d++, (E = 41));
            case 46:
              return kR(J(d + 1))
                ? (ie(), (E = 9))
                : J(d + 1) === 46 && J(d + 2) === 46
                  ? ((d += 3), (E = 26))
                  : (d++, (E = 25));
            case 47:
              if (J(d + 1) === 47) {
                for (d += 2; d < _ && !eu(J(d)); ) d++;
                if (((N = gn(N, u.slice(g, d), D9e, g)), t)) continue;
                return (E = 2);
              }
              if (J(d + 1) === 42) {
                d += 2;
                const Rt = J(d) === 42 && J(d + 1) !== 47;
                let It = !1,
                  Ot = g;
                for (; d < _; ) {
                  const nt = J(d);
                  if (nt === 42 && J(d + 1) === 47) {
                    ((d += 2), (It = !0));
                    break;
                  }
                  (d++, eu(nt) && ((Ot = d), (R |= 1)));
                }
                if (
                  (Rt && Re() && (R |= 2),
                  (N = gn(N, u.slice(Ot, d), C9e, Ot)),
                  It || q(f.Asterisk_Slash_expected),
                  t)
                )
                  continue;
                return (It || (R |= 4), (E = 3));
              }
              return J(d + 1) === 61 ? ((d += 2), (E = 69)) : (d++, (E = 44));
            case 48:
              if (d + 2 < _ && (J(d + 1) === 88 || J(d + 1) === 120))
                return (
                  (d += 2),
                  (A = fe(1, !0)),
                  A || (q(f.Hexadecimal_digit_expected), (A = "0")),
                  (A = "0x" + A),
                  (R |= 64),
                  (E = lt())
                );
              if (d + 2 < _ && (J(d + 1) === 66 || J(d + 1) === 98))
                return (
                  (d += 2),
                  (A = Be(2)),
                  A || (q(f.Binary_digit_expected), (A = "0")),
                  (A = "0b" + A),
                  (R |= 128),
                  (E = lt())
                );
              if (d + 2 < _ && (J(d + 1) === 79 || J(d + 1) === 111))
                return (
                  (d += 2),
                  (A = Be(8)),
                  A || (q(f.Octal_digit_expected), (A = "0")),
                  (A = "0o" + A),
                  (R |= 256),
                  (E = lt())
                );
            case 49:
            case 50:
            case 51:
            case 52:
            case 53:
            case 54:
            case 55:
            case 56:
            case 57:
              return (E = ie());
            case 58:
              return (d++, (E = 59));
            case 59:
              return (d++, (E = 27));
            case 60:
              if (RN(u, d)) {
                if (((d = I2(u, d, q)), t)) continue;
                return (E = 7);
              }
              return J(d + 1) === 60
                ? J(d + 2) === 61
                  ? ((d += 3), (E = 71))
                  : ((d += 2), (E = 48))
                : J(d + 1) === 61
                  ? ((d += 2), (E = 33))
                  : r === 1 && J(d + 1) === 47 && J(d + 2) !== 42
                    ? ((d += 2), (E = 31))
                    : (d++, (E = 30));
            case 61:
              if (RN(u, d)) {
                if (((d = I2(u, d, q)), t)) continue;
                return (E = 7);
              }
              return J(d + 1) === 61
                ? J(d + 2) === 61
                  ? ((d += 3), (E = 37))
                  : ((d += 2), (E = 35))
                : J(d + 1) === 62
                  ? ((d += 2), (E = 39))
                  : (d++, (E = 64));
            case 62:
              if (RN(u, d)) {
                if (((d = I2(u, d, q)), t)) continue;
                return (E = 7);
              }
              return (d++, (E = 32));
            case 63:
              return J(d + 1) === 46 && !kR(J(d + 2))
                ? ((d += 2), (E = 29))
                : J(d + 1) === 63
                  ? J(d + 2) === 61
                    ? ((d += 3), (E = 78))
                    : ((d += 2), (E = 61))
                  : (d++, (E = 58));
            case 91:
              return (d++, (E = 23));
            case 93:
              return (d++, (E = 24));
            case 94:
              return J(d + 1) === 61 ? ((d += 2), (E = 79)) : (d++, (E = 53));
            case 123:
              return (d++, (E = 19));
            case 124:
              if (RN(u, d)) {
                if (((d = I2(u, d, q)), t)) continue;
                return (E = 7);
              }
              return J(d + 1) === 124
                ? J(d + 2) === 61
                  ? ((d += 3), (E = 76))
                  : ((d += 2), (E = 57))
                : J(d + 1) === 61
                  ? ((d += 2), (E = 75))
                  : (d++, (E = 52));
            case 125:
              return (d++, (E = 20));
            case 126:
              return (d++, (E = 55));
            case 64:
              return (d++, (E = 60));
            case 92:
              const Fe = re();
              if (Fe >= 0 && R_(Fe, e))
                return ((A = Je(!0) + be()), (E = Ne()));
              const it = Se();
              return it >= 0 && R_(it, e)
                ? ((d += 6),
                  (R |= 1024),
                  (A = String.fromCharCode(it) + be()),
                  (E = Ne()))
                : (q(f.Invalid_character), d++, (E = 0));
            case 35:
              if (d !== 0 && u[d + 1] === "!")
                return (
                  q(f.can_only_be_used_at_the_start_of_a_file, d, 2),
                  d++,
                  (E = 0)
                );
              const dt = G(d + 1);
              if (dt === 92) {
                d++;
                const Rt = re();
                if (Rt >= 0 && R_(Rt, e))
                  return ((A = "#" + Je(!0) + be()), (E = 81));
                const It = Se();
                if (It >= 0 && R_(It, e))
                  return (
                    (d += 6),
                    (R |= 1024),
                    (A = "#" + String.fromCharCode(It) + be()),
                    (E = 81)
                  );
                d--;
              }
              return (
                R_(dt, e)
                  ? (d++, je(dt, e))
                  : ((A = "#"), q(f.Invalid_character, d++, oh(ne))),
                (E = 81)
              );
            case 65533:
              return (q(f.File_appears_to_be_binary, 0, 0), (d = _), (E = 8));
            default:
              const Lt = je(ne, e);
              if (Lt) return (E = Lt);
              if (Bh(ne)) {
                d += oh(ne);
                continue;
              } else if (eu(ne)) {
                ((R |= 1), (d += oh(ne)));
                continue;
              }
              const Ue = oh(ne);
              return (q(f.Invalid_character, d, Ue), (d += Ue), (E = 0));
          }
        }
      }
      function Re() {
        switch (W) {
          case 0:
            return !0;
          case 1:
            return !1;
        }
        return k !== 3 && k !== 4 ? !0 : W === 3 ? !1 : N9e.test(u.slice(h, d));
      }
      function _e() {
        (C.assert(
          E === 0,
          "'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'.",
        ),
          (d = g = h),
          (R = 0));
        const ne = G(d),
          Fe = je(ne, 99);
        return Fe ? (E = Fe) : ((d += oh(ne)), E);
      }
      function je(ne, Fe) {
        let it = ne;
        if (R_(it, Fe)) {
          for (d += oh(it); d < _ && ey((it = G(d)), Fe); ) d += oh(it);
          return ((A = u.substring(g, d)), it === 92 && (A += be()), Ne());
        }
      }
      function Ge() {
        if (E === 32) {
          if (J(d) === 62)
            return J(d + 1) === 62
              ? J(d + 2) === 61
                ? ((d += 3), (E = 73))
                : ((d += 2), (E = 50))
              : J(d + 1) === 61
                ? ((d += 2), (E = 72))
                : (d++, (E = 49));
          if (J(d) === 61) return (d++, (E = 34));
        }
        return E;
      }
      function We() {
        return (
          C.assert(
            E === 67,
            "'reScanAsteriskEqualsToken' should only be called on a '*='",
          ),
          (d = g + 1),
          (E = 64)
        );
      }
      function at(ne) {
        if (E === 44 || E === 69) {
          const Fe = g + 1;
          d = Fe;
          let it = !1,
            dt = !1,
            Lt = !1;
          for (;;) {
            const Rt = Z(d);
            if (Rt === -1 || eu(Rt)) {
              R |= 4;
              break;
            }
            if (it) it = !1;
            else {
              if (Rt === 47 && !Lt) break;
              Rt === 91
                ? (Lt = !0)
                : Rt === 92
                  ? (it = !0)
                  : Rt === 93
                    ? (Lt = !1)
                    : !Lt &&
                      Rt === 40 &&
                      Z(d + 1) === 63 &&
                      Z(d + 2) === 60 &&
                      Z(d + 3) !== 61 &&
                      Z(d + 3) !== 33 &&
                      (dt = !0);
            }
            d++;
          }
          const Ue = d;
          if (R & 4) {
            ((d = Fe), (it = !1));
            let Rt = 0,
              It = !1,
              Ot = 0;
            for (; d < Ue; ) {
              const nt = J(d);
              if (it) it = !1;
              else if (nt === 92) it = !0;
              else if (nt === 91) Rt++;
              else if (nt === 93 && Rt) Rt--;
              else if (!Rt) {
                if (nt === 123) It = !0;
                else if (nt === 125 && It) It = !1;
                else if (!It) {
                  if (nt === 40) Ot++;
                  else if (nt === 41 && Ot) Ot--;
                  else if (nt === 41 || nt === 93 || nt === 125) break;
                }
              }
              d++;
            }
            for (; sg(Z(d - 1)) || Z(d - 1) === 59; ) d--;
            q(f.Unterminated_regular_expression_literal, g, d - g);
          } else {
            d++;
            let Rt = 0;
            for (;;) {
              const It = j(d);
              if (It === -1 || !ey(It, e)) break;
              const Ot = oh(It);
              if (ne) {
                const nt = M9(It);
                nt === void 0
                  ? q(f.Unknown_regular_expression_flag, d, Ot)
                  : Rt & nt
                    ? q(f.Duplicate_regular_expression_flag, d, Ot)
                    : ((Rt | nt) & 96) === 96
                      ? q(
                          f.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,
                          d,
                          Ot,
                        )
                      : ((Rt |= nt), cn(nt, Ot));
              }
              d += Ot;
            }
            ne &&
              mn(Fe, Ue - Fe, () => {
                Wt(Rt, !0, dt);
              });
          }
          ((A = u.substring(g, d)), (E = 14));
        }
        return E;
      }
      function Wt(ne, Fe, it) {
        var dt = !!(ne & 64),
          Lt = !!(ne & 96),
          Ue = Lt || !1,
          Rt = !1,
          It = 0,
          Ot,
          nt,
          Kt,
          Tr = [],
          Oe;
        function Nt(wt) {
          for (;;) {
            if (
              (Tr.push(Oe),
              (Oe = void 0),
              he(wt),
              (Oe = Tr.pop()),
              Z(d) !== 124)
            )
              return;
            d++;
          }
        }
        function he(wt) {
          let En = !1;
          for (;;) {
            const xn = d,
              Ln = Z(d);
            switch (Ln) {
              case -1:
                return;
              case 94:
              case 36:
                (d++, (En = !1));
                break;
              case 92:
                switch ((d++, Z(d))) {
                  case 98:
                  case 66:
                    (d++, (En = !1));
                    break;
                  default:
                    (Ae(), (En = !0));
                    break;
                }
                break;
              case 40:
                if ((d++, Z(d) === 63))
                  switch ((d++, Z(d))) {
                    case 61:
                    case 33:
                      (d++, (En = !Ue));
                      break;
                    case 60:
                      const ra = d;
                      switch ((d++, Z(d))) {
                        case 61:
                        case 33:
                          (d++, (En = !1));
                          break;
                        default:
                          (Xt(!1),
                            yn(62),
                            e < 5 &&
                              q(
                                f.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,
                                ra,
                                d - ra,
                              ),
                            It++,
                            (En = !0));
                          break;
                      }
                      break;
                    default:
                      const sa = d,
                        zo = B(0);
                      (Z(d) === 45 &&
                        (d++,
                        B(zo),
                        d === sa + 1 &&
                          q(
                            f.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,
                            sa,
                            d - sa,
                          )),
                        yn(58),
                        (En = !0));
                      break;
                  }
                else (It++, (En = !0));
                (Nt(!0), yn(41));
                break;
              case 123:
                d++;
                const ln = d;
                pe();
                const Ii = A;
                if (!Ue && !Ii) {
                  En = !0;
                  break;
                }
                if (Z(d) === 44) {
                  (d++, pe());
                  const ra = A;
                  if (Ii)
                    ra &&
                      Number.parseInt(Ii) > Number.parseInt(ra) &&
                      (Ue || Z(d) === 125) &&
                      q(f.Numbers_out_of_order_in_quantifier, ln, d - ln);
                  else if (ra || Z(d) === 125)
                    q(f.Incomplete_quantifier_Digit_expected, ln, 0);
                  else {
                    (q(
                      f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,
                      xn,
                      1,
                      String.fromCharCode(Ln),
                    ),
                      (En = !0));
                    break;
                  }
                } else if (!Ii) {
                  (Ue &&
                    q(
                      f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,
                      xn,
                      1,
                      String.fromCharCode(Ln),
                    ),
                    (En = !0));
                  break;
                }
                if (Z(d) !== 125)
                  if (Ue) (q(f._0_expected, d, 0, "}"), d--);
                  else {
                    En = !0;
                    break;
                  }
              case 42:
              case 43:
              case 63:
                (d++,
                  Z(d) === 63 && d++,
                  En ||
                    q(f.There_is_nothing_available_for_repetition, xn, d - xn),
                  (En = !1));
                break;
              case 46:
                (d++, (En = !0));
                break;
              case 91:
                (d++, dt ? Bt() : gt(), yn(93), (En = !0));
                break;
              case 41:
                if (wt) return;
              case 93:
              case 125:
                ((Ue || Ln === 41) &&
                  q(
                    f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,
                    d,
                    1,
                    String.fromCharCode(Ln),
                  ),
                  d++,
                  (En = !0));
                break;
              case 47:
              case 124:
                return;
              default:
                (In(), (En = !0));
                break;
            }
          }
        }
        function B(wt) {
          for (;;) {
            const En = j(d);
            if (En === -1 || !ey(En, e)) break;
            const xn = oh(En),
              Ln = M9(En);
            (Ln === void 0
              ? q(f.Unknown_regular_expression_flag, d, xn)
              : wt & Ln
                ? q(f.Duplicate_regular_expression_flag, d, xn)
                : Ln & 28
                  ? ((wt |= Ln), cn(Ln, xn))
                  : q(
                      f.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,
                      d,
                      xn,
                    ),
              (d += xn));
          }
          return wt;
        }
        function Ae() {
          switch ((C.assertEqual(J(d - 1), 92), Z(d))) {
            case 107:
              (d++,
                Z(d) === 60
                  ? (d++, Xt(!0), yn(62))
                  : (Ue || it) &&
                    q(
                      f.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,
                      d - 2,
                      2,
                    ));
              break;
            case 113:
              if (dt) {
                (d++,
                  q(f.q_is_only_available_inside_character_class, d - 2, 2));
                break;
              }
            default:
              C.assert(jt() || te() || xt(!0));
              break;
          }
        }
        function te() {
          C.assertEqual(J(d - 1), 92);
          const wt = Z(d);
          if (wt >= 49 && wt <= 57) {
            const En = d;
            return (pe(), (Kt = Bn(Kt, { pos: En, end: d, value: +A })), !0);
          }
          return !1;
        }
        function xt(wt) {
          C.assertEqual(J(d - 1), 92);
          let En = Z(d);
          switch (En) {
            case -1:
              return (q(f.Undetermined_character_escape, d - 1, 1), "\\");
            case 99:
              if ((d++, (En = Z(d)), See(En)))
                return (d++, String.fromCharCode(En & 31));
              if (Ue) q(f.c_must_be_followed_by_an_ASCII_letter, d - 2, 2);
              else if (wt) return (d--, "\\");
              return String.fromCharCode(En);
            case 94:
            case 36:
            case 47:
            case 92:
            case 46:
            case 42:
            case 43:
            case 63:
            case 40:
            case 41:
            case 91:
            case 93:
            case 123:
            case 125:
            case 124:
              return (d++, String.fromCharCode(En));
            default:
              return (d--, Ce(12 | (Lt ? 16 : 0) | (wt ? 32 : 0)));
          }
        }
        function Xt(wt) {
          (C.assertEqual(J(d - 1), 60),
            (g = d),
            je(j(d), e),
            d === g
              ? q(f.Expected_a_capturing_group_name)
              : wt
                ? (nt = Bn(nt, { pos: g, end: d, name: A }))
                : Oe?.has(A) || Tr.some((En) => En?.has(A))
                  ? q(
                      f.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,
                      g,
                      d - g,
                    )
                  : (Oe ?? (Oe = new Set()),
                    Oe.add(A),
                    Ot ?? (Ot = new Set()),
                    Ot.add(A)));
        }
        function Pe(wt) {
          return wt === 93 || wt === -1 || d >= _;
        }
        function gt() {
          for (C.assertEqual(J(d - 1), 91), Z(d) === 94 && d++; ; ) {
            const wt = Z(d);
            if (Pe(wt)) return;
            const En = d,
              xn = Mt();
            if (Z(d) === 45) {
              d++;
              const Ln = Z(d);
              if (Pe(Ln)) return;
              !xn &&
                Ue &&
                q(
                  f.A_character_class_range_must_not_be_bounded_by_another_character_class,
                  En,
                  d - 1 - En,
                );
              const ln = d,
                Ii = Mt();
              if (!Ii && Ue) {
                q(
                  f.A_character_class_range_must_not_be_bounded_by_another_character_class,
                  ln,
                  d - ln,
                );
                continue;
              }
              if (!xn) continue;
              const ra = DN(xn, 0),
                sa = DN(Ii, 0);
              xn.length === oh(ra) &&
                Ii.length === oh(sa) &&
                ra > sa &&
                q(f.Range_out_of_order_in_character_class, En, d - En);
            }
          }
        }
        function Bt() {
          C.assertEqual(J(d - 1), 91);
          let wt = !1;
          Z(d) === 94 && (d++, (wt = !0));
          let En = !1,
            xn = Z(d);
          if (Pe(xn)) return;
          let Ln = d,
            ln;
          switch (u.slice(d, d + 2)) {
            case "--":
            case "&&":
              (q(f.Expected_a_class_set_operand), (Rt = !1));
              break;
            default:
              ln = tr();
              break;
          }
          switch (Z(d)) {
            case 45:
              if (Z(d + 1) === 45) {
                (wt &&
                  Rt &&
                  q(
                    f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,
                    Ln,
                    d - Ln,
                  ),
                  (En = Rt),
                  gr(3),
                  (Rt = !wt && En));
                return;
              }
              break;
            case 38:
              if (Z(d + 1) === 38) {
                (gr(2),
                  wt &&
                    Rt &&
                    q(
                      f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,
                      Ln,
                      d - Ln,
                    ),
                  (En = Rt),
                  (Rt = !wt && En));
                return;
              } else
                q(
                  f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,
                  d,
                  1,
                  String.fromCharCode(xn),
                );
              break;
            default:
              (wt &&
                Rt &&
                q(
                  f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,
                  Ln,
                  d - Ln,
                ),
                (En = Rt));
              break;
          }
          for (; (xn = Z(d)), xn !== -1; ) {
            switch (xn) {
              case 45:
                if ((d++, (xn = Z(d)), Pe(xn))) {
                  Rt = !wt && En;
                  return;
                }
                if (xn === 45) {
                  (d++,
                    q(
                      f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,
                      d - 2,
                      2,
                    ),
                    (Ln = d - 2),
                    (ln = u.slice(Ln, d)));
                  continue;
                } else {
                  ln ||
                    q(
                      f.A_character_class_range_must_not_be_bounded_by_another_character_class,
                      Ln,
                      d - 1 - Ln,
                    );
                  const Ii = d,
                    ra = tr();
                  if (
                    (wt &&
                      Rt &&
                      q(
                        f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,
                        Ii,
                        d - Ii,
                      ),
                    En || (En = Rt),
                    !ra)
                  ) {
                    q(
                      f.A_character_class_range_must_not_be_bounded_by_another_character_class,
                      Ii,
                      d - Ii,
                    );
                    break;
                  }
                  if (!ln) break;
                  const sa = DN(ln, 0),
                    zo = DN(ra, 0);
                  ln.length === oh(sa) &&
                    ra.length === oh(zo) &&
                    sa > zo &&
                    q(f.Range_out_of_order_in_character_class, Ln, d - Ln);
                }
                break;
              case 38:
                ((Ln = d),
                  d++,
                  Z(d) === 38
                    ? (d++,
                      q(
                        f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,
                        d - 2,
                        2,
                      ),
                      Z(d) === 38 &&
                        (q(
                          f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,
                          d,
                          1,
                          String.fromCharCode(xn),
                        ),
                        d++))
                    : q(
                        f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,
                        d - 1,
                        1,
                        String.fromCharCode(xn),
                      ),
                  (ln = u.slice(Ln, d)));
                continue;
            }
            if (Pe(Z(d))) break;
            switch (((Ln = d), u.slice(d, d + 2))) {
              case "--":
              case "&&":
                (q(
                  f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,
                  d,
                  2,
                ),
                  (d += 2),
                  (ln = u.slice(Ln, d)));
                break;
              default:
                ln = tr();
                break;
            }
          }
          Rt = !wt && En;
        }
        function gr(wt) {
          let En = Rt;
          for (;;) {
            let xn = Z(d);
            if (Pe(xn)) break;
            switch (xn) {
              case 45:
                (d++,
                  Z(d) === 45
                    ? (d++,
                      wt !== 3 &&
                        q(
                          f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,
                          d - 2,
                          2,
                        ))
                    : q(
                        f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,
                        d - 1,
                        1,
                      ));
                break;
              case 38:
                (d++,
                  Z(d) === 38
                    ? (d++,
                      wt !== 2 &&
                        q(
                          f.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,
                          d - 2,
                          2,
                        ),
                      Z(d) === 38 &&
                        (q(
                          f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,
                          d,
                          1,
                          String.fromCharCode(xn),
                        ),
                        d++))
                    : q(
                        f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,
                        d - 1,
                        1,
                        String.fromCharCode(xn),
                      ));
                break;
              default:
                switch (wt) {
                  case 3:
                    q(f._0_expected, d, 0, "--");
                    break;
                  case 2:
                    q(f._0_expected, d, 0, "&&");
                    break;
                }
                break;
            }
            if (((xn = Z(d)), Pe(xn))) {
              q(f.Expected_a_class_set_operand);
              break;
            }
            (tr(), En && (En = Rt));
          }
          Rt = En;
        }
        function tr() {
          switch (((Rt = !1), Z(d))) {
            case -1:
              return "";
            case 91:
              return (d++, Bt(), yn(93), "");
            case 92:
              if ((d++, jt())) return "";
              if (Z(d) === 113)
                return (
                  d++,
                  Z(d) === 123
                    ? (d++, Jn(), yn(125), "")
                    : (q(
                        f.q_must_be_followed_by_string_alternatives_enclosed_in_braces,
                        d - 2,
                        2,
                      ),
                      "q")
                );
              d--;
            default:
              return ft();
          }
        }
        function Jn() {
          C.assertEqual(J(d - 1), 123);
          let wt = 0;
          for (;;)
            switch (Z(d)) {
              case -1:
                return;
              case 125:
                wt !== 1 && (Rt = !0);
                return;
              case 124:
                (wt !== 1 && (Rt = !0), d++, (s = d), (wt = 0));
                break;
              default:
                (ft(), wt++);
                break;
            }
        }
        function ft() {
          const wt = Z(d);
          if (wt === -1) return "";
          if (wt === 92) {
            d++;
            const En = Z(d);
            switch (En) {
              case 98:
                return (d++, "\b");
              case 38:
              case 45:
              case 33:
              case 35:
              case 37:
              case 44:
              case 58:
              case 59:
              case 60:
              case 61:
              case 62:
              case 64:
              case 96:
              case 126:
                return (d++, String.fromCharCode(En));
              default:
                return xt(!1);
            }
          } else if (wt === Z(d + 1))
            switch (wt) {
              case 38:
              case 33:
              case 35:
              case 37:
              case 42:
              case 43:
              case 44:
              case 46:
              case 58:
              case 59:
              case 60:
              case 61:
              case 62:
              case 63:
              case 64:
              case 96:
              case 126:
                return (
                  q(
                    f.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,
                    d,
                    2,
                  ),
                  (d += 2),
                  u.substring(d - 2, d)
                );
            }
          switch (wt) {
            case 47:
            case 40:
            case 41:
            case 91:
            case 93:
            case 123:
            case 125:
            case 45:
            case 124:
              return (
                q(
                  f.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,
                  d,
                  1,
                  String.fromCharCode(wt),
                ),
                d++,
                String.fromCharCode(wt)
              );
          }
          return In();
        }
        function Mt() {
          if (Z(d) === 92) {
            d++;
            const wt = Z(d);
            switch (wt) {
              case 98:
                return (d++, "\b");
              case 45:
                return (d++, String.fromCharCode(wt));
              default:
                return jt() ? "" : xt(!1);
            }
          } else return In();
        }
        function jt() {
          C.assertEqual(J(d - 1), 92);
          let wt = !1;
          const En = d - 1,
            xn = Z(d);
          switch (xn) {
            case 100:
            case 68:
            case 115:
            case 83:
            case 119:
            case 87:
              return (d++, !0);
            case 80:
              wt = !0;
            case 112:
              if ((d++, Z(d) === 123)) {
                d++;
                const Ln = d,
                  ln = Qt();
                if (Z(d) === 61) {
                  const Ii = KTe.get(ln);
                  if (d === Ln) q(f.Expected_a_Unicode_property_name);
                  else if (Ii === void 0) {
                    q(f.Unknown_Unicode_property_name, Ln, d - Ln);
                    const zo = fS(ln, KTe.keys(), Vs);
                    zo && q(f.Did_you_mean_0, Ln, d - Ln, zo);
                  }
                  d++;
                  const ra = d,
                    sa = Qt();
                  if (d === ra) q(f.Expected_a_Unicode_property_value);
                  else if (Ii !== void 0 && !D2[Ii].has(sa)) {
                    q(f.Unknown_Unicode_property_value, ra, d - ra);
                    const zo = fS(sa, D2[Ii], Vs);
                    zo && q(f.Did_you_mean_0, ra, d - ra, zo);
                  }
                } else if (d === Ln)
                  q(f.Expected_a_Unicode_property_name_or_value);
                else if (YTe.has(ln))
                  dt
                    ? wt
                      ? q(
                          f.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,
                          Ln,
                          d - Ln,
                        )
                      : (Rt = !0)
                    : q(
                        f.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,
                        Ln,
                        d - Ln,
                      );
                else if (!D2.General_Category.has(ln) && !XTe.has(ln)) {
                  q(f.Unknown_Unicode_property_name_or_value, Ln, d - Ln);
                  const Ii = fS(
                    ln,
                    [...D2.General_Category, ...XTe, ...YTe],
                    Vs,
                  );
                  Ii && q(f.Did_you_mean_0, Ln, d - Ln, Ii);
                }
                (yn(125),
                  Lt ||
                    q(
                      f.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,
                      En,
                      d - En,
                    ));
              } else if (Ue)
                q(
                  f._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,
                  d - 2,
                  2,
                  String.fromCharCode(xn),
                );
              else return (d--, !1);
              return !0;
          }
          return !1;
        }
        function Qt() {
          let wt = "";
          for (;;) {
            const En = Z(d);
            if (En === -1 || !UTe(En)) break;
            ((wt += String.fromCharCode(En)), d++);
          }
          return wt;
        }
        function In() {
          const wt = Lt ? oh(j(d)) : 1;
          return ((d += wt), wt > 0 ? u.substring(d - wt, d) : "");
        }
        function yn(wt) {
          Z(d) === wt ? d++ : q(f._0_expected, d, 0, String.fromCharCode(wt));
        }
        (Nt(!1),
          Ye(nt, (wt) => {
            if (
              !Ot?.has(wt.name) &&
              (q(
                f.There_is_no_capturing_group_named_0_in_this_regular_expression,
                wt.pos,
                wt.end - wt.pos,
                wt.name,
              ),
              Ot)
            ) {
              const En = fS(wt.name, Ot, Vs);
              En && q(f.Did_you_mean_0, wt.pos, wt.end - wt.pos, En);
            }
          }),
          Ye(Kt, (wt) => {
            wt.value > It &&
              (It
                ? q(
                    f.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,
                    wt.pos,
                    wt.end - wt.pos,
                    It,
                  )
                : q(
                    f.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,
                    wt.pos,
                    wt.end - wt.pos,
                  ));
          }));
      }
      function cn(ne, Fe) {
        const it = E9e.get(ne);
        it &&
          e < it &&
          q(
            f.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,
            d,
            Fe,
            W6(it),
          );
      }
      function gn(ne, Fe, it, dt) {
        const Lt = Kn(Fe.trimStart(), it);
        return Lt === void 0
          ? ne
          : Bn(ne, { range: { pos: dt, end: d }, type: Lt });
      }
      function Kn(ne, Fe) {
        const it = Fe.exec(ne);
        if (it)
          switch (it[1]) {
            case "ts-expect-error":
              return 0;
            case "ts-ignore":
              return 1;
          }
      }
      function _t(ne) {
        return ((d = g), (E = X(!ne)));
      }
      function en() {
        return ((d = g), (E = X(!0)));
      }
      function ir(ne = !0) {
        return ((d = g = h), (E = Zr(ne)));
      }
      function Di() {
        return E === 48 ? ((d = g + 1), (E = 30)) : E;
      }
      function lo() {
        return E === 81 ? ((d = g + 1), (E = 63)) : E;
      }
      function zt() {
        return (
          C.assert(
            E === 61,
            "'reScanQuestionToken' should only be called on a '??'",
          ),
          (d = g + 1),
          (E = 58)
        );
      }
      function Zr(ne = !0) {
        if (((h = g = d), d >= _)) return (E = 1);
        let Fe = J(d);
        if (Fe === 60)
          return J(d + 1) === 47 ? ((d += 2), (E = 31)) : (d++, (E = 30));
        if (Fe === 123) return (d++, (E = 19));
        let it = 0;
        for (; d < _ && ((Fe = J(d)), Fe !== 123); ) {
          if (Fe === 60) {
            if (RN(u, d)) return ((d = I2(u, d, q)), (E = 7));
            break;
          }
          if (
            (Fe === 62 && q(f.Unexpected_token_Did_you_mean_or_gt, d, 1),
            Fe === 125 && q(f.Unexpected_token_Did_you_mean_or_rbrace, d, 1),
            eu(Fe) && it === 0)
          )
            it = -1;
          else {
            if (!ne && eu(Fe) && it > 0) break;
            sg(Fe) || (it = d);
          }
          d++;
        }
        return ((A = u.substring(h, d)), it === -1 ? 13 : 12);
      }
      function Ai() {
        if (Xu(E)) {
          for (; d < _; ) {
            if (J(d) === 45) {
              ((A += "-"), d++);
              continue;
            }
            const Fe = d;
            if (((A += be()), d === Fe)) break;
          }
          return Ne();
        }
        return E;
      }
      function Ni() {
        switch (((h = d), J(d))) {
          case 34:
          case 39:
            return ((A = xe(!0)), (E = 11));
          default:
            return ce();
        }
      }
      function Pr() {
        return ((d = g = h), Ni());
      }
      function Ci(ne) {
        if (((h = g = d), (R = 0), d >= _)) return (E = 1);
        for (let Fe = J(d); d < _ && !eu(Fe) && Fe !== 96; Fe = G(++d))
          if (!ne) {
            if (Fe === 123) break;
            if (
              Fe === 64 &&
              d - 1 >= 0 &&
              Bh(J(d - 1)) &&
              !(d + 1 < _ && sg(J(d + 1)))
            )
              break;
          }
        return d === g ? $e() : ((A = u.substring(g, d)), (E = 82));
      }
      function $e() {
        if (((h = g = d), (R = 0), d >= _)) return (E = 1);
        const ne = G(d);
        switch (((d += oh(ne)), ne)) {
          case 9:
          case 11:
          case 12:
          case 32:
            for (; d < _ && Bh(J(d)); ) d++;
            return (E = 5);
          case 64:
            return (E = 60);
          case 13:
            J(d) === 10 && d++;
          case 10:
            return ((R |= 1), (E = 4));
          case 42:
            return (E = 42);
          case 123:
            return (E = 19);
          case 125:
            return (E = 20);
          case 91:
            return (E = 23);
          case 93:
            return (E = 24);
          case 40:
            return (E = 21);
          case 41:
            return (E = 22);
          case 60:
            return (E = 30);
          case 62:
            return (E = 32);
          case 61:
            return (E = 64);
          case 44:
            return (E = 28);
          case 46:
            return (E = 25);
          case 96:
            return (E = 62);
          case 35:
            return (E = 63);
          case 92:
            d--;
            const Fe = re();
            if (Fe >= 0 && R_(Fe, e)) return ((A = Je(!0) + be()), (E = Ne()));
            const it = Se();
            return it >= 0 && R_(it, e)
              ? ((d += 6),
                (R |= 1024),
                (A = String.fromCharCode(it) + be()),
                (E = Ne()))
              : (d++, (E = 0));
        }
        if (R_(ne, e)) {
          let Fe = ne;
          for (; (d < _ && ey((Fe = G(d)), e)) || Fe === 45; ) d += oh(Fe);
          return (
            (A = u.substring(g, d)),
            Fe === 92 && (A += be()),
            (E = Ne())
          );
        } else return (E = 0);
      }
      function At(ne, Fe) {
        const it = d,
          dt = h,
          Lt = g,
          Ue = E,
          Rt = A,
          It = R,
          Ot = ne();
        return (
          (!Ot || Fe) &&
            ((d = it), (h = dt), (g = Lt), (E = Ue), (A = Rt), (R = It)),
          Ot
        );
      }
      function mn(ne, Fe, it) {
        const dt = _,
          Lt = d,
          Ue = h,
          Rt = g,
          It = E,
          Ot = A,
          nt = R,
          Kt = N;
        $o(u, ne, Fe);
        const Tr = it();
        return (
          (_ = dt),
          (d = Lt),
          (h = Ue),
          (g = Rt),
          (E = It),
          (A = Ot),
          (R = nt),
          (N = Kt),
          Tr
        );
      }
      function dr(ne) {
        return At(ne, !0);
      }
      function ri(ne) {
        return At(ne, !1);
      }
      function ai() {
        return u;
      }
      function qi() {
        N = void 0;
      }
      function $o(ne, Fe, it) {
        ((u = ne || ""), (_ = it === void 0 ? u.length : Fe + it), le(Fe || 0));
      }
      function Ia(ne) {
        o = ne;
      }
      function Mn(ne) {
        e = ne;
      }
      function Uo(ne) {
        r = ne;
      }
      function ot(ne) {
        k = ne;
      }
      function Ft(ne) {
        W = ne;
      }
      function le(ne) {
        (C.assert(ne >= 0),
          (d = ne),
          (h = ne),
          (g = ne),
          (E = 0),
          (A = void 0),
          (R = 0));
      }
      function ht(ne) {
        P += ne ? 1 : -1;
      }
    }
    function DN(e, t) {
      return e.codePointAt(t);
    }
    function oh(e) {
      return e >= 65536 ? 2 : e === -1 ? 0 : 1;
    }
    function k9e(e) {
      if ((C.assert(0 <= e && e <= 1114111), e <= 65535))
        return String.fromCharCode(e);
      const t = Math.floor((e - 65536) / 1024) + 55296,
        r = ((e - 65536) % 1024) + 56320;
      return String.fromCharCode(t, r);
    }
    var w9e = String.fromCodePoint ? (e) => String.fromCodePoint(e) : k9e;
    function CN(e) {
      return w9e(e);
    }
    var KTe = new Map(
        Object.entries({
          General_Category: "General_Category",
          gc: "General_Category",
          Script: "Script",
          sc: "Script",
          Script_Extensions: "Script_Extensions",
          scx: "Script_Extensions",
        }),
      ),
      XTe = new Set([
        "ASCII",
        "ASCII_Hex_Digit",
        "AHex",
        "Alphabetic",
        "Alpha",
        "Any",
        "Assigned",
        "Bidi_Control",
        "Bidi_C",
        "Bidi_Mirrored",
        "Bidi_M",
        "Case_Ignorable",
        "CI",
        "Cased",
        "Changes_When_Casefolded",
        "CWCF",
        "Changes_When_Casemapped",
        "CWCM",
        "Changes_When_Lowercased",
        "CWL",
        "Changes_When_NFKC_Casefolded",
        "CWKCF",
        "Changes_When_Titlecased",
        "CWT",
        "Changes_When_Uppercased",
        "CWU",
        "Dash",
        "Default_Ignorable_Code_Point",
        "DI",
        "Deprecated",
        "Dep",
        "Diacritic",
        "Dia",
        "Emoji",
        "Emoji_Component",
        "EComp",
        "Emoji_Modifier",
        "EMod",
        "Emoji_Modifier_Base",
        "EBase",
        "Emoji_Presentation",
        "EPres",
        "Extended_Pictographic",
        "ExtPict",
        "Extender",
        "Ext",
        "Grapheme_Base",
        "Gr_Base",
        "Grapheme_Extend",
        "Gr_Ext",
        "Hex_Digit",
        "Hex",
        "IDS_Binary_Operator",
        "IDSB",
        "IDS_Trinary_Operator",
        "IDST",
        "ID_Continue",
        "IDC",
        "ID_Start",
        "IDS",
        "Ideographic",
        "Ideo",
        "Join_Control",
        "Join_C",
        "Logical_Order_Exception",
        "LOE",
        "Lowercase",
        "Lower",
        "Math",
        "Noncharacter_Code_Point",
        "NChar",
        "Pattern_Syntax",
        "Pat_Syn",
        "Pattern_White_Space",
        "Pat_WS",
        "Quotation_Mark",
        "QMark",
        "Radical",
        "Regional_Indicator",
        "RI",
        "Sentence_Terminal",
        "STerm",
        "Soft_Dotted",
        "SD",
        "Terminal_Punctuation",
        "Term",
        "Unified_Ideograph",
        "UIdeo",
        "Uppercase",
        "Upper",
        "Variation_Selector",
        "VS",
        "White_Space",
        "space",
        "XID_Continue",
        "XIDC",
        "XID_Start",
        "XIDS",
      ]),
      YTe = new Set([
        "Basic_Emoji",
        "Emoji_Keycap_Sequence",
        "RGI_Emoji_Modifier_Sequence",
        "RGI_Emoji_Flag_Sequence",
        "RGI_Emoji_Tag_Sequence",
        "RGI_Emoji_ZWJ_Sequence",
        "RGI_Emoji",
      ]),
      D2 = {
        General_Category: new Set([
          "C",
          "Other",
          "Cc",
          "Control",
          "cntrl",
          "Cf",
          "Format",
          "Cn",
          "Unassigned",
          "Co",
          "Private_Use",
          "Cs",
          "Surrogate",
          "L",
          "Letter",
          "LC",
          "Cased_Letter",
          "Ll",
          "Lowercase_Letter",
          "Lm",
          "Modifier_Letter",
          "Lo",
          "Other_Letter",
          "Lt",
          "Titlecase_Letter",
          "Lu",
          "Uppercase_Letter",
          "M",
          "Mark",
          "Combining_Mark",
          "Mc",
          "Spacing_Mark",
          "Me",
          "Enclosing_Mark",
          "Mn",
          "Nonspacing_Mark",
          "N",
          "Number",
          "Nd",
          "Decimal_Number",
          "digit",
          "Nl",
          "Letter_Number",
          "No",
          "Other_Number",
          "P",
          "Punctuation",
          "punct",
          "Pc",
          "Connector_Punctuation",
          "Pd",
          "Dash_Punctuation",
          "Pe",
          "Close_Punctuation",
          "Pf",
          "Final_Punctuation",
          "Pi",
          "Initial_Punctuation",
          "Po",
          "Other_Punctuation",
          "Ps",
          "Open_Punctuation",
          "S",
          "Symbol",
          "Sc",
          "Currency_Symbol",
          "Sk",
          "Modifier_Symbol",
          "Sm",
          "Math_Symbol",
          "So",
          "Other_Symbol",
          "Z",
          "Separator",
          "Zl",
          "Line_Separator",
          "Zp",
          "Paragraph_Separator",
          "Zs",
          "Space_Separator",
        ]),
        Script: new Set([
          "Adlm",
          "Adlam",
          "Aghb",
          "Caucasian_Albanian",
          "Ahom",
          "Arab",
          "Arabic",
          "Armi",
          "Imperial_Aramaic",
          "Armn",
          "Armenian",
          "Avst",
          "Avestan",
          "Bali",
          "Balinese",
          "Bamu",
          "Bamum",
          "Bass",
          "Bassa_Vah",
          "Batk",
          "Batak",
          "Beng",
          "Bengali",
          "Bhks",
          "Bhaiksuki",
          "Bopo",
          "Bopomofo",
          "Brah",
          "Brahmi",
          "Brai",
          "Braille",
          "Bugi",
          "Buginese",
          "Buhd",
          "Buhid",
          "Cakm",
          "Chakma",
          "Cans",
          "Canadian_Aboriginal",
          "Cari",
          "Carian",
          "Cham",
          "Cher",
          "Cherokee",
          "Chrs",
          "Chorasmian",
          "Copt",
          "Coptic",
          "Qaac",
          "Cpmn",
          "Cypro_Minoan",
          "Cprt",
          "Cypriot",
          "Cyrl",
          "Cyrillic",
          "Deva",
          "Devanagari",
          "Diak",
          "Dives_Akuru",
          "Dogr",
          "Dogra",
          "Dsrt",
          "Deseret",
          "Dupl",
          "Duployan",
          "Egyp",
          "Egyptian_Hieroglyphs",
          "Elba",
          "Elbasan",
          "Elym",
          "Elymaic",
          "Ethi",
          "Ethiopic",
          "Geor",
          "Georgian",
          "Glag",
          "Glagolitic",
          "Gong",
          "Gunjala_Gondi",
          "Gonm",
          "Masaram_Gondi",
          "Goth",
          "Gothic",
          "Gran",
          "Grantha",
          "Grek",
          "Greek",
          "Gujr",
          "Gujarati",
          "Guru",
          "Gurmukhi",
          "Hang",
          "Hangul",
          "Hani",
          "Han",
          "Hano",
          "Hanunoo",
          "Hatr",
          "Hatran",
          "Hebr",
          "Hebrew",
          "Hira",
          "Hiragana",
          "Hluw",
          "Anatolian_Hieroglyphs",
          "Hmng",
          "Pahawh_Hmong",
          "Hmnp",
          "Nyiakeng_Puachue_Hmong",
          "Hrkt",
          "Katakana_Or_Hiragana",
          "Hung",
          "Old_Hungarian",
          "Ital",
          "Old_Italic",
          "Java",
          "Javanese",
          "Kali",
          "Kayah_Li",
          "Kana",
          "Katakana",
          "Kawi",
          "Khar",
          "Kharoshthi",
          "Khmr",
          "Khmer",
          "Khoj",
          "Khojki",
          "Kits",
          "Khitan_Small_Script",
          "Knda",
          "Kannada",
          "Kthi",
          "Kaithi",
          "Lana",
          "Tai_Tham",
          "Laoo",
          "Lao",
          "Latn",
          "Latin",
          "Lepc",
          "Lepcha",
          "Limb",
          "Limbu",
          "Lina",
          "Linear_A",
          "Linb",
          "Linear_B",
          "Lisu",
          "Lyci",
          "Lycian",
          "Lydi",
          "Lydian",
          "Mahj",
          "Mahajani",
          "Maka",
          "Makasar",
          "Mand",
          "Mandaic",
          "Mani",
          "Manichaean",
          "Marc",
          "Marchen",
          "Medf",
          "Medefaidrin",
          "Mend",
          "Mende_Kikakui",
          "Merc",
          "Meroitic_Cursive",
          "Mero",
          "Meroitic_Hieroglyphs",
          "Mlym",
          "Malayalam",
          "Modi",
          "Mong",
          "Mongolian",
          "Mroo",
          "Mro",
          "Mtei",
          "Meetei_Mayek",
          "Mult",
          "Multani",
          "Mymr",
          "Myanmar",
          "Nagm",
          "Nag_Mundari",
          "Nand",
          "Nandinagari",
          "Narb",
          "Old_North_Arabian",
          "Nbat",
          "Nabataean",
          "Newa",
          "Nkoo",
          "Nko",
          "Nshu",
          "Nushu",
          "Ogam",
          "Ogham",
          "Olck",
          "Ol_Chiki",
          "Orkh",
          "Old_Turkic",
          "Orya",
          "Oriya",
          "Osge",
          "Osage",
          "Osma",
          "Osmanya",
          "Ougr",
          "Old_Uyghur",
          "Palm",
          "Palmyrene",
          "Pauc",
          "Pau_Cin_Hau",
          "Perm",
          "Old_Permic",
          "Phag",
          "Phags_Pa",
          "Phli",
          "Inscriptional_Pahlavi",
          "Phlp",
          "Psalter_Pahlavi",
          "Phnx",
          "Phoenician",
          "Plrd",
          "Miao",
          "Prti",
          "Inscriptional_Parthian",
          "Rjng",
          "Rejang",
          "Rohg",
          "Hanifi_Rohingya",
          "Runr",
          "Runic",
          "Samr",
          "Samaritan",
          "Sarb",
          "Old_South_Arabian",
          "Saur",
          "Saurashtra",
          "Sgnw",
          "SignWriting",
          "Shaw",
          "Shavian",
          "Shrd",
          "Sharada",
          "Sidd",
          "Siddham",
          "Sind",
          "Khudawadi",
          "Sinh",
          "Sinhala",
          "Sogd",
          "Sogdian",
          "Sogo",
          "Old_Sogdian",
          "Sora",
          "Sora_Sompeng",
          "Soyo",
          "Soyombo",
          "Sund",
          "Sundanese",
          "Sylo",
          "Syloti_Nagri",
          "Syrc",
          "Syriac",
          "Tagb",
          "Tagbanwa",
          "Takr",
          "Takri",
          "Tale",
          "Tai_Le",
          "Talu",
          "New_Tai_Lue",
          "Taml",
          "Tamil",
          "Tang",
          "Tangut",
          "Tavt",
          "Tai_Viet",
          "Telu",
          "Telugu",
          "Tfng",
          "Tifinagh",
          "Tglg",
          "Tagalog",
          "Thaa",
          "Thaana",
          "Thai",
          "Tibt",
          "Tibetan",
          "Tirh",
          "Tirhuta",
          "Tnsa",
          "Tangsa",
          "Toto",
          "Ugar",
          "Ugaritic",
          "Vaii",
          "Vai",
          "Vith",
          "Vithkuqi",
          "Wara",
          "Warang_Citi",
          "Wcho",
          "Wancho",
          "Xpeo",
          "Old_Persian",
          "Xsux",
          "Cuneiform",
          "Yezi",
          "Yezidi",
          "Yiii",
          "Yi",
          "Zanb",
          "Zanabazar_Square",
          "Zinh",
          "Inherited",
          "Qaai",
          "Zyyy",
          "Common",
          "Zzzz",
          "Unknown",
        ]),
        Script_Extensions: void 0,
      };
    D2.Script_Extensions = D2.Script;
    function td(e) {
      return Zp(e) || Cp(e);
    }
    function wR(e) {
      return fN(e, vM, k6);
    }
    var Dee = new Map([
      [99, "lib.esnext.full.d.ts"],
      [11, "lib.es2024.full.d.ts"],
      [10, "lib.es2023.full.d.ts"],
      [9, "lib.es2022.full.d.ts"],
      [8, "lib.es2021.full.d.ts"],
      [7, "lib.es2020.full.d.ts"],
      [6, "lib.es2019.full.d.ts"],
      [5, "lib.es2018.full.d.ts"],
      [4, "lib.es2017.full.d.ts"],
      [3, "lib.es2016.full.d.ts"],
      [2, "lib.es6.d.ts"],
    ]);
    function C2(e) {
      const t = Ga(e);
      switch (t) {
        case 99:
        case 11:
        case 10:
        case 9:
        case 8:
        case 7:
        case 6:
        case 5:
        case 4:
        case 3:
        case 2:
          return Dee.get(t);
        default:
          return "lib.d.ts";
      }
    }
    function Dl(e) {
      return e.start + e.length;
    }
    function Cee(e) {
      return e.length === 0;
    }
    function k9(e, t) {
      return t >= e.start && t < Dl(e);
    }
    function N2(e, t) {
      return t >= e.pos && t <= e.end;
    }
    function Nee(e, t) {
      return t.start >= e.start && Dl(t) <= Dl(e);
    }
    function w9(e, t) {
      return t.pos >= e.start && t.end <= Dl(e);
    }
    function Mee(e, t) {
      return t.start >= e.pos && Dl(t) <= e.end;
    }
    function $Te(e, t) {
      return Pee(e, t) !== void 0;
    }
    function Pee(e, t) {
      const r = Oee(e, t);
      return r && r.length === 0 ? void 0 : r;
    }
    function Lee(e, t) {
      return P2(e.start, e.length, t.start, t.length);
    }
    function M2(e, t, r) {
      return P2(e.start, e.length, t, r);
    }
    function P2(e, t, r, i) {
      const o = e + t,
        s = r + i;
      return r <= o && s >= e;
    }
    function kee(e, t) {
      return t <= Dl(e) && t >= e.start;
    }
    function wee(e, t) {
      return M2(t, e.pos, e.end - e.pos);
    }
    function Oee(e, t) {
      const r = Math.max(e.start, t.start),
        i = Math.min(Dl(e), Dl(t));
      return r <= i ? ic(r, i) : void 0;
    }
    function O9(e) {
      e = e
        .filter((i) => i.length > 0)
        .sort((i, o) =>
          i.start !== o.start ? i.start - o.start : i.length - o.length,
        );
      const t = [];
      let r = 0;
      for (; r < e.length; ) {
        let i = e[r],
          o = r + 1;
        for (; o < e.length && Lee(i, e[o]); ) {
          const s = Math.min(i.start, e[o].start),
            l = Math.max(Dl(i), Dl(e[o]));
          ((i = ic(s, l)), o++);
        }
        ((r = o), t.push(i));
      }
      return t;
    }
    function Id(e, t) {
      if (e < 0) throw new Error("start < 0");
      if (t < 0) throw new Error("length < 0");
      return { start: e, length: t };
    }
    function ic(e, t) {
      return Id(e, t - e);
    }
    function NN(e) {
      return Id(e.span.start, e.newLength);
    }
    function Wee(e) {
      return Cee(e.span) && e.newLength === 0;
    }
    function L2(e, t) {
      if (t < 0) throw new Error("newLength < 0");
      return { span: e, newLength: t };
    }
    var lF = L2(Id(0, 0), 0);
    function Fee(e) {
      if (e.length === 0) return lF;
      if (e.length === 1) return e[0];
      const t = e[0];
      let r = t.span.start,
        i = Dl(t.span),
        o = r + t.newLength;
      for (let s = 1; s < e.length; s++) {
        const l = e[s],
          u = r,
          d = i,
          _ = o,
          h = l.span.start,
          g = Dl(l.span),
          E = h + l.newLength;
        ((r = Math.min(u, h)),
          (i = Math.max(d, d + (g - _))),
          (o = Math.max(E, E + (_ - g))));
      }
      return L2(ic(r, i), o - r);
    }
    function QTe(e) {
      if (e && e.kind === 169) {
        for (let t = e; t; t = t.parent)
          if (Yo(t) || ui(t) || t.kind === 265) return t;
      }
    }
    function Np(e, t) {
      return to(e) && di(e, 31) && t.kind === 177;
    }
    function zee(e) {
      return Qo(e) ? Vn(e.elements, Bee) : !1;
    }
    function Bee(e) {
      return Jc(e) ? !0 : zee(e.name);
    }
    function qE(e) {
      let t = e.parent;
      for (; Ha(t.parent); ) t = t.parent.parent;
      return t.parent;
    }
    function Gee(e, t) {
      Ha(e) && (e = qE(e));
      let r = t(e);
      return (
        e.kind === 261 && (e = e.parent),
        e && e.kind === 262 && ((r |= t(e)), (e = e.parent)),
        e && e.kind === 244 && (r |= t(e)),
        r
      );
    }
    function PT(e) {
      return Gee(e, Gd);
    }
    function W9(e) {
      return Gee(e, zne);
    }
    function ty(e) {
      return Gee(e, O9e);
    }
    function O9e(e) {
      return e.flags;
    }
    var Vee = [
      "cs",
      "de",
      "es",
      "fr",
      "it",
      "ja",
      "ko",
      "pl",
      "pt-br",
      "ru",
      "tr",
      "zh-cn",
      "zh-tw",
    ];
    function F9(e, t, r) {
      const i = e.toLowerCase(),
        o = /^([a-z]+)(?:[_-]([a-z]+))?$/.exec(i);
      if (!o) {
        r &&
          r.push(
            Il(
              f.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,
              "en",
              "ja-jp",
            ),
          );
        return;
      }
      const s = o[1],
        l = o[2];
      (jn(Vee, i) && !u(s, l, r) && u(s, void 0, r), $Q(e));
      function u(d, _, h) {
        const g = ya(t.getExecutingFilePath()),
          E = ci(g);
        let A = Qr(E, d);
        if (
          (_ && (A = A + "-" + _),
          (A = t.resolvePath(Qr(A, "diagnosticMessages.generated.json"))),
          !t.fileExists(A))
        )
          return !1;
        let R = "";
        try {
          R = t.readFile(A);
        } catch {
          return (h && h.push(Il(f.Unable_to_open_file_0, A)), !1);
        }
        try {
          ire(JSON.parse(R));
        } catch {
          return (h && h.push(Il(f.Corrupted_locale_file_0, A)), !1);
        }
        return !0;
      }
    }
    function yl(e, t) {
      if (e) for (; e.original !== void 0; ) e = e.original;
      return !e || !t || t(e) ? e : void 0;
    }
    function Dn(e, t) {
      for (; e; ) {
        const r = t(e);
        if (r === "quit") return;
        if (r) return e;
        e = e.parent;
      }
    }
    function MN(e) {
      return (e.flags & 16) === 0;
    }
    function jo(e, t) {
      if (e === void 0 || MN(e)) return e;
      for (e = e.original; e; ) {
        if (MN(e)) return !t || t(e) ? e : void 0;
        e = e.original;
      }
    }
    function Cl(e) {
      return e.length >= 2 && e.charCodeAt(0) === 95 && e.charCodeAt(1) === 95
        ? "_" + e
        : e;
    }
    function Gi(e) {
      const t = e;
      return t.length >= 3 &&
        t.charCodeAt(0) === 95 &&
        t.charCodeAt(1) === 95 &&
        t.charCodeAt(2) === 95
        ? t.substr(1)
        : t;
    }
    function Kr(e) {
      return Gi(e.escapedText);
    }
    function JE(e) {
      const t = HE(e.escapedText);
      return t ? ni(t, ep) : void 0;
    }
    function wl(e) {
      return e.valueDeclaration && nu(e.valueDeclaration)
        ? Kr(e.valueDeclaration.name)
        : Gi(e.escapedName);
    }
    function ZTe(e) {
      const t = e.parent.parent;
      if (t) {
        if (rd(t)) return z9(t);
        switch (t.kind) {
          case 244:
            if (t.declarationList && t.declarationList.declarations[0])
              return z9(t.declarationList.declarations[0]);
            break;
          case 245:
            let r = t.expression;
            switch (
              (r.kind === 227 && r.operatorToken.kind === 64 && (r = r.left),
              r.kind)
            ) {
              case 212:
                return r.name;
              case 213:
                const i = r.argumentExpression;
                if (He(i)) return i;
            }
            break;
          case 218:
            return z9(t.expression);
          case 257: {
            if (rd(t.statement) || St(t.statement)) return z9(t.statement);
            break;
          }
        }
      }
    }
    function z9(e) {
      const t = Oo(e);
      return t && He(t) ? t : void 0;
    }
    function k2(e, t) {
      return !!(
        (nd(e) && He(e.name) && Kr(e.name) === Kr(t)) ||
        (ac(e) && yt(e.declarationList.declarations, (r) => k2(r, t)))
      );
    }
    function jee(e) {
      return e.name || ZTe(e);
    }
    function nd(e) {
      return !!e.name;
    }
    function cF(e) {
      switch (e.kind) {
        case 80:
          return e;
        case 349:
        case 342: {
          const { name: r } = e;
          if (r.kind === 167) return r.right;
          break;
        }
        case 214:
        case 227: {
          const r = e;
          switch (oc(r)) {
            case 1:
            case 4:
            case 5:
            case 3:
              return o6(r.left);
            case 7:
            case 8:
            case 9:
              return r.arguments[1];
            default:
              return;
          }
        }
        case 347:
          return jee(e);
        case 341:
          return ZTe(e);
        case 278: {
          const { expression: r } = e;
          return He(r) ? r : void 0;
        }
        case 213:
          const t = e;
          if (i6(t)) return t.argumentExpression;
      }
      return e.name;
    }
    function Oo(e) {
      if (e !== void 0)
        return cF(e) || (Us(e) || Xs(e) || dc(e) ? dF(e) : void 0);
    }
    function dF(e) {
      if (e.parent) {
        if (Cc(e.parent) || Ha(e.parent)) return e.parent.name;
        if (Nr(e.parent) && e === e.parent.right) {
          if (He(e.parent.left)) return e.parent.left;
          if (Ks(e.parent.left)) return o6(e.parent.left);
        } else if (yi(e.parent) && He(e.parent.name)) return e.parent.name;
      } else return;
    }
    function lb(e) {
      if (pf(e)) return Un(e.modifiers, Wc);
    }
    function mS(e) {
      if (di(e, 98303)) return Un(e.modifiers, Aa);
    }
    function e0e(e, t) {
      if (e.name)
        if (He(e.name)) {
          const r = e.name.escapedText;
          return pF(e.parent, t).filter(
            (i) => mf(i) && He(i.name) && i.name.escapedText === r,
          );
        } else {
          const r = e.parent.parameters.indexOf(e);
          C.assert(
            r > -1,
            "Parameters should always be in their parents' parameter list",
          );
          const i = pF(e.parent, t).filter(mf);
          if (r < i.length) return [i[r]];
        }
      return ae;
    }
    function OR(e) {
      return e0e(e, !1);
    }
    function Uee(e) {
      return e0e(e, !0);
    }
    function t0e(e, t) {
      const r = e.name.escapedText;
      return pF(e.parent, t).filter(
        (i) => bm(i) && i.typeParameters.some((o) => o.name.escapedText === r),
      );
    }
    function Hee(e) {
      return t0e(e, !1);
    }
    function qee(e) {
      return t0e(e, !0);
    }
    function Jee(e) {
      return !!pm(e, mf);
    }
    function Kee(e) {
      return pm(e, QI);
    }
    function Xee(e) {
      return fF(e, R4);
    }
    function B9(e) {
      return pm(e, Oie);
    }
    function n0e(e) {
      return pm(e, Rj);
    }
    function Yee(e) {
      return pm(e, Rj, !0);
    }
    function r0e(e) {
      return pm(e, Dj);
    }
    function $ee(e) {
      return pm(e, Dj, !0);
    }
    function i0e(e) {
      return pm(e, Cj);
    }
    function Qee(e) {
      return pm(e, Cj, !0);
    }
    function o0e(e) {
      return pm(e, Nj);
    }
    function Zee(e) {
      return pm(e, Nj, !0);
    }
    function ete(e) {
      return pm(e, I4, !0);
    }
    function G9(e) {
      return pm(e, Mj);
    }
    function tte(e) {
      return pm(e, Mj, !0);
    }
    function V9(e) {
      return pm(e, vw);
    }
    function uF(e) {
      return pm(e, Pj);
    }
    function nte(e) {
      return pm(e, x4);
    }
    function a0e(e) {
      return pm(e, bm);
    }
    function j9(e) {
      return pm(e, D4);
    }
    function LT(e) {
      const t = pm(e, KM);
      if (t && t.typeExpression && t.typeExpression.type) return t;
    }
    function $y(e) {
      let t = pm(e, KM);
      return (
        !t && to(e) && (t = hn(OR(e), (r) => !!r.typeExpression)),
        t && t.typeExpression && t.typeExpression.type
      );
    }
    function w2(e) {
      const t = nte(e);
      if (t && t.typeExpression) return t.typeExpression.type;
      const r = LT(e);
      if (r && r.typeExpression) {
        const i = r.typeExpression.type;
        if (wu(i)) {
          const o = hn(i.members, UI);
          return o && o.type;
        }
        if (w_(i) || DD(i)) return i.type;
      }
    }
    function pF(e, t) {
      var r;
      if (!Ek(e)) return ae;
      let i = (r = e.jsDoc) == null ? void 0 : r.jsDocCache;
      if (i === void 0 || t) {
        const o = WG(e, t);
        (C.assert(o.length < 2 || o[0] !== o[1]),
          (i = Ki(o, (s) => (mh(s) ? s.tags : s))),
          t || (e.jsDoc ?? (e.jsDoc = []), (e.jsDoc.jsDocCache = i)));
      }
      return i;
    }
    function kT(e) {
      return pF(e, !1);
    }
    function pm(e, t, r) {
      return hn(pF(e, r), t);
    }
    function fF(e, t) {
      return kT(e).filter(t);
    }
    function s0e(e, t) {
      return kT(e).filter((r) => r.kind === t);
    }
    function O2(e) {
      return typeof e == "string"
        ? e
        : e?.map((t) => (t.kind === 322 ? t.text : W9e(t))).join("");
    }
    function W9e(e) {
      const t =
          e.kind === 325 ? "link" : e.kind === 326 ? "linkcode" : "linkplain",
        r = e.name ? Mp(e.name) : "",
        i = e.name && (e.text === "" || e.text.startsWith("://")) ? "" : " ";
      return `{@${t} ${r}${i}${e.text}}`;
    }
    function cb(e) {
      if (fv(e)) {
        if (CD(e.parent)) {
          const t = tD(e.parent);
          if (t && et(t.tags))
            return Ki(t.tags, (r) => (bm(r) ? r.typeParameters : void 0));
        }
        return ae;
      }
      if (hm(e))
        return (
          C.assert(e.parent.kind === 321),
          Ki(e.parent.tags, (t) => (bm(t) ? t.typeParameters : void 0))
        );
      if (e.typeParameters || (Kie(e) && e.typeParameters))
        return e.typeParameters;
      if (Ir(e)) {
        const t = T6(e);
        if (t.length) return t;
        const r = $y(e);
        if (r && w_(r) && r.typeParameters) return r.typeParameters;
      }
      return ae;
    }
    function WR(e) {
      return e.constraint
        ? e.constraint
        : bm(e.parent) && e === e.parent.typeParameters[0]
          ? e.parent.constraint
          : void 0;
    }
    function dg(e) {
      return e.kind === 80 || e.kind === 81;
    }
    function W2(e) {
      return e.kind === 179 || e.kind === 178;
    }
    function mF(e) {
      return qr(e) && !!(e.flags & 64);
    }
    function U9(e) {
      return Ws(e) && !!(e.flags & 64);
    }
    function KE(e) {
      return Zo(e) && !!(e.flags & 64);
    }
    function tu(e) {
      const t = e.kind;
      return (
        !!(e.flags & 64) && (t === 212 || t === 213 || t === 214 || t === 236)
      );
    }
    function PN(e) {
      return tu(e) && !XI(e) && !!e.questionDotToken;
    }
    function hF(e) {
      return PN(e.parent) && e.parent.expression === e;
    }
    function LN(e) {
      return !tu(e.parent) || PN(e.parent) || e !== e.parent.expression;
    }
    function H9(e) {
      return e.kind === 227 && e.operatorToken.kind === 61;
    }
    function Om(e) {
      return (
        Wp(e) &&
        He(e.typeName) &&
        e.typeName.escapedText === "const" &&
        !e.typeArguments
      );
    }
    function Wm(e) {
      return Ul(e, 8);
    }
    function _F(e) {
      return XI(e) && !!(e.flags & 64);
    }
    function kN(e) {
      return e.kind === 253 || e.kind === 252;
    }
    function q9(e) {
      return e.kind === 281 || e.kind === 280;
    }
    function wN(e) {
      return e.kind === 349 || e.kind === 342;
    }
    function gF(e) {
      return e >= 167;
    }
    function J9(e) {
      return e >= 0 && e <= 166;
    }
    function oI(e) {
      return J9(e.kind);
    }
    function hS(e) {
      return Rs(e, "pos") && Rs(e, "end");
    }
    function ON(e) {
      return 9 <= e && e <= 15;
    }
    function XE(e) {
      return ON(e.kind);
    }
    function K9(e) {
      switch (e.kind) {
        case 211:
        case 210:
        case 14:
        case 219:
        case 232:
          return !0;
      }
      return !1;
    }
    function db(e) {
      return 15 <= e && e <= 18;
    }
    function rte(e) {
      return db(e.kind);
    }
    function yF(e) {
      const t = e.kind;
      return t === 17 || t === 18;
    }
    function ub(e) {
      return Eu(e) || ou(e);
    }
    function FR(e) {
      switch (e.kind) {
        case 277:
          return e.isTypeOnly || e.parent.parent.phaseModifier === 156;
        case 275:
          return e.parent.phaseModifier === 156;
        case 274:
          return e.phaseModifier === 156;
        case 272:
          return e.isTypeOnly;
      }
      return !1;
    }
    function ite(e) {
      switch (e.kind) {
        case 282:
          return e.isTypeOnly || e.parent.parent.isTypeOnly;
        case 279:
          return e.isTypeOnly && !!e.moduleSpecifier && !e.exportClause;
        case 281:
          return e.parent.isTypeOnly;
      }
      return !1;
    }
    function Qy(e) {
      return FR(e) || ite(e);
    }
    function ote(e) {
      return Dn(e, Qy) !== void 0;
    }
    function X9(e) {
      return e.kind === 11 || db(e.kind);
    }
    function ate(e) {
      return ka(e) || He(e);
    }
    function pl(e) {
      var t;
      return (
        He(e) && ((t = e.emitNode) == null ? void 0 : t.autoGenerate) !== void 0
      );
    }
    function YE(e) {
      var t;
      return (
        eo(e) && ((t = e.emitNode) == null ? void 0 : t.autoGenerate) !== void 0
      );
    }
    function F2(e) {
      const t = e.emitNode.autoGenerate.flags;
      return !!(t & 32) && !!(t & 16) && !!(t & 8);
    }
    function nu(e) {
      return (Po(e) || sI(e)) && eo(e.name);
    }
    function zR(e) {
      return qr(e) && eo(e.name);
    }
    function pb(e) {
      switch (e) {
        case 128:
        case 129:
        case 134:
        case 87:
        case 138:
        case 90:
        case 95:
        case 103:
        case 125:
        case 123:
        case 124:
        case 148:
        case 126:
        case 147:
        case 164:
          return !0;
      }
      return !1;
    }
    function WN(e) {
      return !!(II(e) & 31);
    }
    function Y9(e) {
      return WN(e) || e === 126 || e === 164 || e === 129;
    }
    function Aa(e) {
      return pb(e.kind);
    }
    function Mu(e) {
      const t = e.kind;
      return t === 167 || t === 80;
    }
    function vc(e) {
      const t = e.kind;
      return t === 80 || t === 81 || t === 11 || t === 9 || t === 168;
    }
    function $E(e) {
      const t = e.kind;
      return t === 80 || t === 207 || t === 208;
    }
    function Yo(e) {
      return !!e && aI(e.kind);
    }
    function BR(e) {
      return !!e && (aI(e.kind) || Ql(e));
    }
    function Ms(e) {
      return e && l0e(e.kind);
    }
    function FN(e) {
      return e.kind === 112 || e.kind === 97;
    }
    function l0e(e) {
      switch (e) {
        case 263:
        case 175:
        case 177:
        case 178:
        case 179:
        case 219:
        case 220:
          return !0;
        default:
          return !1;
      }
    }
    function aI(e) {
      switch (e) {
        case 174:
        case 180:
        case 324:
        case 181:
        case 182:
        case 185:
        case 318:
        case 186:
          return !0;
        default:
          return l0e(e);
      }
    }
    function $9(e) {
      return Yi(e) || t_(e) || (ea(e) && Yo(e.parent));
    }
    function bc(e) {
      const t = e.kind;
      return (
        t === 177 ||
        t === 173 ||
        t === 175 ||
        t === 178 ||
        t === 179 ||
        t === 182 ||
        t === 176 ||
        t === 241
      );
    }
    function ui(e) {
      return e && (e.kind === 264 || e.kind === 232);
    }
    function fb(e) {
      return e && (e.kind === 178 || e.kind === 179);
    }
    function Yu(e) {
      return Po(e) && Kh(e);
    }
    function ste(e) {
      return Ir(e) && WI(e)
        ? (!AS(e) || !Ab(e.expression)) && !a1(e, !0)
        : e.parent && ui(e.parent) && Po(e) && !Kh(e);
    }
    function sI(e) {
      switch (e.kind) {
        case 175:
        case 178:
        case 179:
          return !0;
        default:
          return !1;
      }
    }
    function fl(e) {
      return Aa(e) || Wc(e);
    }
    function _S(e) {
      const t = e.kind;
      return (
        t === 181 ||
        t === 180 ||
        t === 172 ||
        t === 174 ||
        t === 182 ||
        t === 178 ||
        t === 179 ||
        t === 355
      );
    }
    function vF(e) {
      return _S(e) || bc(e);
    }
    function ny(e) {
      const t = e.kind;
      return (
        t === 304 ||
        t === 305 ||
        t === 306 ||
        t === 175 ||
        t === 178 ||
        t === 179
      );
    }
    function Ri(e) {
      return IV(e.kind);
    }
    function lte(e) {
      switch (e.kind) {
        case 185:
        case 186:
          return !0;
      }
      return !1;
    }
    function Qo(e) {
      if (e) {
        const t = e.kind;
        return t === 208 || t === 207;
      }
      return !1;
    }
    function zN(e) {
      const t = e.kind;
      return t === 210 || t === 211;
    }
    function bF(e) {
      const t = e.kind;
      return t === 209 || t === 233;
    }
    function z2(e) {
      switch (e.kind) {
        case 261:
        case 170:
        case 209:
          return !0;
      }
      return !1;
    }
    function cte(e) {
      return yi(e) || to(e) || G2(e) || V2(e);
    }
    function B2(e) {
      return Q9(e) || Z9(e);
    }
    function Q9(e) {
      switch (e.kind) {
        case 207:
        case 211:
          return !0;
      }
      return !1;
    }
    function G2(e) {
      switch (e.kind) {
        case 209:
        case 304:
        case 305:
        case 306:
          return !0;
      }
      return !1;
    }
    function Z9(e) {
      switch (e.kind) {
        case 208:
        case 210:
          return !0;
      }
      return !1;
    }
    function V2(e) {
      switch (e.kind) {
        case 209:
        case 233:
        case 231:
        case 210:
        case 211:
        case 80:
        case 212:
        case 213:
          return !0;
      }
      return id(e, !0);
    }
    function dte(e) {
      const t = e.kind;
      return t === 212 || t === 167 || t === 206;
    }
    function j2(e) {
      const t = e.kind;
      return t === 212 || t === 167;
    }
    function eG(e) {
      return gS(e) || Rb(e);
    }
    function gS(e) {
      switch (e.kind) {
        case 214:
        case 215:
        case 216:
        case 171:
        case 287:
        case 286:
        case 290:
          return !0;
        case 227:
          return e.operatorToken.kind === 104;
        default:
          return !1;
      }
    }
    function Gh(e) {
      return e.kind === 214 || e.kind === 215;
    }
    function lI(e) {
      const t = e.kind;
      return t === 229 || t === 15;
    }
    function $u(e) {
      return c0e(Wm(e).kind);
    }
    function c0e(e) {
      switch (e) {
        case 212:
        case 213:
        case 215:
        case 214:
        case 285:
        case 286:
        case 289:
        case 216:
        case 210:
        case 218:
        case 211:
        case 232:
        case 219:
        case 80:
        case 81:
        case 14:
        case 9:
        case 10:
        case 11:
        case 15:
        case 229:
        case 97:
        case 106:
        case 110:
        case 112:
        case 108:
        case 236:
        case 234:
        case 237:
        case 102:
        case 283:
          return !0;
        default:
          return !1;
      }
    }
    function tG(e) {
      return d0e(Wm(e).kind);
    }
    function d0e(e) {
      switch (e) {
        case 225:
        case 226:
        case 221:
        case 222:
        case 223:
        case 224:
        case 217:
          return !0;
        default:
          return c0e(e);
      }
    }
    function ute(e) {
      switch (e.kind) {
        case 226:
          return !0;
        case 225:
          return e.operator === 46 || e.operator === 47;
        default:
          return !1;
      }
    }
    function pte(e) {
      switch (e.kind) {
        case 106:
        case 112:
        case 97:
        case 225:
          return !0;
        default:
          return XE(e);
      }
    }
    function St(e) {
      return F9e(Wm(e).kind);
    }
    function F9e(e) {
      switch (e) {
        case 228:
        case 230:
        case 220:
        case 227:
        case 231:
        case 235:
        case 233:
        case 357:
        case 356:
        case 239:
          return !0;
        default:
          return d0e(e);
      }
    }
    function yS(e) {
      const t = e.kind;
      return t === 217 || t === 235;
    }
    function mb(e, t) {
      switch (e.kind) {
        case 249:
        case 250:
        case 251:
        case 247:
        case 248:
          return !0;
        case 257:
          return t && mb(e.statement, t);
      }
      return !1;
    }
    function z9e(e) {
      return ll(e) || pc(e);
    }
    function fte(e) {
      return yt(e, z9e);
    }
    function TF(e) {
      return !Z2(e) && !ll(e) && !di(e, 32) && !yu(e);
    }
    function U2(e) {
      return Z2(e) || ll(e) || di(e, 32);
    }
    function QE(e) {
      return e.kind === 250 || e.kind === 251;
    }
    function SF(e) {
      return ea(e) || St(e);
    }
    function nG(e) {
      return ea(e);
    }
    function Of(e) {
      return _d(e) || St(e);
    }
    function mte(e) {
      const t = e.kind;
      return t === 269 || t === 268 || t === 80;
    }
    function u0e(e) {
      const t = e.kind;
      return t === 269 || t === 268;
    }
    function p0e(e) {
      const t = e.kind;
      return t === 80 || t === 268;
    }
    function rG(e) {
      const t = e.kind;
      return t === 276 || t === 275;
    }
    function H2(e) {
      return e.kind === 268 || e.kind === 267;
    }
    function ah(e) {
      switch (e.kind) {
        case 220:
        case 227:
        case 209:
        case 214:
        case 180:
        case 264:
        case 232:
        case 176:
        case 177:
        case 186:
        case 181:
        case 213:
        case 267:
        case 307:
        case 278:
        case 279:
        case 282:
        case 263:
        case 219:
        case 185:
        case 178:
        case 80:
        case 274:
        case 272:
        case 277:
        case 182:
        case 265:
        case 339:
        case 341:
        case 318:
        case 342:
        case 349:
        case 324:
        case 347:
        case 323:
        case 292:
        case 293:
        case 294:
        case 201:
        case 175:
        case 174:
        case 268:
        case 203:
        case 281:
        case 271:
        case 275:
        case 215:
        case 15:
        case 9:
        case 211:
        case 170:
        case 212:
        case 304:
        case 173:
        case 172:
        case 179:
        case 305:
        case 308:
        case 306:
        case 11:
        case 266:
        case 188:
        case 169:
        case 261:
          return !0;
        default:
          return !1;
      }
    }
    function D_(e) {
      switch (e.kind) {
        case 220:
        case 242:
        case 180:
        case 270:
        case 300:
        case 176:
        case 195:
        case 177:
        case 186:
        case 181:
        case 249:
        case 250:
        case 251:
        case 263:
        case 219:
        case 185:
        case 178:
        case 182:
        case 339:
        case 341:
        case 318:
        case 324:
        case 347:
        case 201:
        case 175:
        case 174:
        case 268:
        case 179:
        case 308:
        case 266:
          return !0;
        default:
          return !1;
      }
    }
    function B9e(e) {
      return (
        e === 220 ||
        e === 209 ||
        e === 264 ||
        e === 232 ||
        e === 176 ||
        e === 177 ||
        e === 267 ||
        e === 307 ||
        e === 282 ||
        e === 263 ||
        e === 219 ||
        e === 178 ||
        e === 274 ||
        e === 272 ||
        e === 277 ||
        e === 265 ||
        e === 292 ||
        e === 175 ||
        e === 174 ||
        e === 268 ||
        e === 271 ||
        e === 275 ||
        e === 281 ||
        e === 170 ||
        e === 304 ||
        e === 173 ||
        e === 172 ||
        e === 179 ||
        e === 305 ||
        e === 266 ||
        e === 169 ||
        e === 261 ||
        e === 347 ||
        e === 339 ||
        e === 349 ||
        e === 203
      );
    }
    function hte(e) {
      return (
        e === 263 ||
        e === 283 ||
        e === 264 ||
        e === 265 ||
        e === 266 ||
        e === 267 ||
        e === 268 ||
        e === 273 ||
        e === 272 ||
        e === 279 ||
        e === 278 ||
        e === 271
      );
    }
    function _te(e) {
      return (
        e === 253 ||
        e === 252 ||
        e === 260 ||
        e === 247 ||
        e === 245 ||
        e === 243 ||
        e === 250 ||
        e === 251 ||
        e === 249 ||
        e === 246 ||
        e === 257 ||
        e === 254 ||
        e === 256 ||
        e === 258 ||
        e === 259 ||
        e === 244 ||
        e === 248 ||
        e === 255 ||
        e === 354
      );
    }
    function rd(e) {
      return e.kind === 169
        ? (e.parent && e.parent.kind !== 346) || Ir(e)
        : B9e(e.kind);
    }
    function gte(e) {
      return hte(e.kind);
    }
    function q2(e) {
      return _te(e.kind);
    }
    function Vi(e) {
      const t = e.kind;
      return _te(t) || hte(t) || G9e(e);
    }
    function G9e(e) {
      return e.kind !== 242 ||
        (e.parent !== void 0 &&
          (e.parent.kind === 259 || e.parent.kind === 300))
        ? !1
        : !SS(e);
    }
    function yte(e) {
      const t = e.kind;
      return _te(t) || hte(t) || t === 242;
    }
    function vte(e) {
      const t = e.kind;
      return t === 284 || t === 167 || t === 80;
    }
    function BN(e) {
      const t = e.kind;
      return t === 110 || t === 80 || t === 212 || t === 296;
    }
    function J2(e) {
      const t = e.kind;
      return t === 285 || t === 295 || t === 286 || t === 12 || t === 289;
    }
    function EF(e) {
      const t = e.kind;
      return t === 292 || t === 294;
    }
    function bte(e) {
      const t = e.kind;
      return t === 11 || t === 295;
    }
    function ru(e) {
      const t = e.kind;
      return t === 287 || t === 286;
    }
    function Tte(e) {
      const t = e.kind;
      return t === 287 || t === 286 || t === 290;
    }
    function AF(e) {
      const t = e.kind;
      return t === 297 || t === 298;
    }
    function GR(e) {
      return e.kind >= 310 && e.kind <= 352;
    }
    function IF(e) {
      return (
        e.kind === 321 ||
        e.kind === 320 ||
        e.kind === 322 ||
        cI(e) ||
        VR(e) ||
        x1(e) ||
        fv(e)
      );
    }
    function VR(e) {
      return e.kind >= 328 && e.kind <= 352;
    }
    function Vh(e) {
      return e.kind === 179;
    }
    function ug(e) {
      return e.kind === 178;
    }
    function ef(e) {
      if (!Ek(e)) return !1;
      const { jsDoc: t } = e;
      return !!t && t.length > 0;
    }
    function xF(e) {
      return !!e.type;
    }
    function Zy(e) {
      return !!e.initializer;
    }
    function ZE(e) {
      switch (e.kind) {
        case 261:
        case 170:
        case 209:
        case 173:
        case 304:
        case 307:
          return !0;
        default:
          return !1;
      }
    }
    function iG(e) {
      return e.kind === 292 || e.kind === 294 || ny(e);
    }
    function RF(e) {
      return e.kind === 184 || e.kind === 234;
    }
    var f0e = 1073741823;
    function Ste(e) {
      let t = f0e;
      for (const r of e) {
        if (!r.length) continue;
        let i = 0;
        for (; i < r.length && i < t && sg(r.charCodeAt(i)); i++);
        if ((i < t && (t = i), t === 0)) return 0;
      }
      return t === f0e ? void 0 : t;
    }
    function ds(e) {
      return e.kind === 11 || e.kind === 15;
    }
    function cI(e) {
      return e.kind === 325 || e.kind === 326 || e.kind === 327;
    }
    function oG(e) {
      const t = Zs(e.parameters);
      return !!t && C_(t);
    }
    function C_(e) {
      const t = mf(e) ? e.typeExpression && e.typeExpression.type : e.type;
      return e.dotDotDotToken !== void 0 || (!!t && t.kind === 319);
    }
    function m0e(e, t) {
      return t.text.substring(e.pos, e.end).includes("@internal");
    }
    function Ete(e, t) {
      t ?? (t = Wn(e));
      const r = jo(e);
      if (r && r.kind === 170) {
        const o = r.parent.parameters.indexOf(r),
          s = o > 0 ? r.parent.parameters[o - 1] : void 0,
          l = t.text,
          u = s
            ? so(sb(l, La(l, s.end + 1, !1, !0)), lg(l, e.pos))
            : sb(l, La(l, e.pos, !1, !0));
        return yt(u) && m0e(Ba(u), t);
      }
      const i = r && xG(r, t);
      return !!Ye(i, (o) => m0e(o, t));
    }
    var aG = [],
      hb = "tslib",
      GN = 160,
      sG = 1e6,
      Ate = 500;
    function al(e, t) {
      const r = e.declarations;
      if (r) {
        for (const i of r) if (i.kind === t) return i;
      }
    }
    function Ite(e, t) {
      return Un(e.declarations || ae, (r) => r.kind === t);
    }
    function da(e) {
      const t = new Map();
      if (e) for (const r of e) t.set(r.escapedName, r);
      return t;
    }
    function pg(e) {
      return (e.flags & 33554432) !== 0;
    }
    function dI(e) {
      return !!(e.flags & 1536) && e.escapedName.charCodeAt(0) === 34;
    }
    var DF = V9e();
    function V9e() {
      var e = "";
      const t = (r) => (e += r);
      return {
        getText: () => e,
        write: t,
        rawWrite: t,
        writeKeyword: t,
        writeOperator: t,
        writePunctuation: t,
        writeSpace: t,
        writeStringLiteral: t,
        writeLiteral: t,
        writeParameter: t,
        writeProperty: t,
        writeSymbol: (r, i) => t(r),
        writeTrailingSemicolon: t,
        writeComment: t,
        getTextPos: () => e.length,
        getLine: () => 0,
        getColumn: () => 0,
        getIndent: () => 0,
        isAtStartOfLine: () => !1,
        hasTrailingComment: () => !1,
        hasTrailingWhitespace: () =>
          !!e.length && sg(e.charCodeAt(e.length - 1)),
        writeLine: () => (e += " "),
        increaseIndent: gs,
        decreaseIndent: gs,
        clear: () => (e = ""),
      };
    }
    function CF(e, t) {
      return e.configFilePath !== t.configFilePath || j9e(e, t);
    }
    function j9e(e, t) {
      return uI(e, t, eU);
    }
    function xte(e, t) {
      return uI(e, t, _oe);
    }
    function uI(e, t, r) {
      return e !== t && r.some((i) => !Y6(F6(e, i), F6(t, i)));
    }
    function Rte(e, t) {
      for (;;) {
        const r = t(e);
        if (r === "quit") return;
        if (r !== void 0) return r;
        if (Yi(e)) return;
        e = e.parent;
      }
    }
    function Hc(e, t) {
      const r = e.entries();
      for (const [i, o] of r) {
        const s = t(o, i);
        if (s) return s;
      }
    }
    function fg(e, t) {
      const r = e.keys();
      for (const i of r) {
        const o = t(i);
        if (o) return o;
      }
    }
    function NF(e, t) {
      e.forEach((r, i) => {
        t.set(i, r);
      });
    }
    function jR(e) {
      const t = DF.getText();
      try {
        return (e(DF), DF.getText());
      } finally {
        (DF.clear(), DF.writeKeyword(t));
      }
    }
    function K2(e) {
      return e.end - e.pos;
    }
    function lG(e, t) {
      return (
        e.path === t.path &&
        !e.prepend == !t.prepend &&
        !e.circular == !t.circular
      );
    }
    function Dte(e, t) {
      return (
        e === t ||
        e.resolvedModule === t.resolvedModule ||
        (!!e.resolvedModule &&
          !!t.resolvedModule &&
          e.resolvedModule.isExternalLibraryImport ===
            t.resolvedModule.isExternalLibraryImport &&
          e.resolvedModule.extension === t.resolvedModule.extension &&
          e.resolvedModule.resolvedFileName ===
            t.resolvedModule.resolvedFileName &&
          e.resolvedModule.originalPath === t.resolvedModule.originalPath &&
          U9e(e.resolvedModule.packageId, t.resolvedModule.packageId) &&
          e.alternateResult === t.alternateResult)
      );
    }
    function pI(e) {
      return e.resolvedModule;
    }
    function MF(e) {
      return e.resolvedTypeReferenceDirective;
    }
    function PF(e, t, r, i, o) {
      var s;
      const l =
          (s = t.getResolvedModule(e, r, i)) == null
            ? void 0
            : s.alternateResult,
        u =
          l &&
          (iu(t.getCompilerOptions()) === 2
            ? [
                f.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,
                [l],
              ]
            : [
                f.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,
                [l, l.includes(Rg + "@types/") ? `@types/${GD(o)}` : o],
              ]),
        d = u
          ? qo(void 0, u[0], ...u[1])
          : t.typesPackageExists(o)
            ? qo(
                void 0,
                f.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,
                o,
                GD(o),
              )
            : t.packageBundlesTypes(o)
              ? qo(
                  void 0,
                  f.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,
                  o,
                  r,
                )
              : qo(
                  void 0,
                  f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,
                  r,
                  GD(o),
                );
      return (
        d &&
          (d.repopulateInfo = () => ({
            moduleReference: r,
            mode: i,
            packageName: o === r ? void 0 : o,
          })),
        d
      );
    }
    function cG(e) {
      const t = Sg(e.fileName),
        r = e.packageJsonScope,
        i = t === ".ts" ? ".mts" : t === ".js" ? ".mjs" : void 0,
        o =
          r && !r.contents.packageJsonContent.type
            ? i
              ? qo(
                  void 0,
                  f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,
                  i,
                  Qr(r.packageDirectory, "package.json"),
                )
              : qo(
                  void 0,
                  f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,
                  Qr(r.packageDirectory, "package.json"),
                )
            : i
              ? qo(
                  void 0,
                  f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,
                  i,
                )
              : qo(
                  void 0,
                  f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module,
                );
      return ((o.repopulateInfo = () => !0), o);
    }
    function U9e(e, t) {
      return (
        e === t ||
        (!!e &&
          !!t &&
          e.name === t.name &&
          e.subModuleName === t.subModuleName &&
          e.version === t.version &&
          e.peerDependencies === t.peerDependencies)
      );
    }
    function LF({ name: e, subModuleName: t }) {
      return t ? `${e}/${t}` : e;
    }
    function wT(e) {
      return `${LF(e)}@${e.version}${e.peerDependencies ?? ""}`;
    }
    function Cte(e, t) {
      return (
        e === t ||
        e.resolvedTypeReferenceDirective === t.resolvedTypeReferenceDirective ||
        (!!e.resolvedTypeReferenceDirective &&
          !!t.resolvedTypeReferenceDirective &&
          e.resolvedTypeReferenceDirective.resolvedFileName ===
            t.resolvedTypeReferenceDirective.resolvedFileName &&
          !!e.resolvedTypeReferenceDirective.primary ==
            !!t.resolvedTypeReferenceDirective.primary &&
          e.resolvedTypeReferenceDirective.originalPath ===
            t.resolvedTypeReferenceDirective.originalPath)
      );
    }
    function dG(e, t, r, i) {
      C.assert(e.length === t.length);
      for (let o = 0; o < e.length; o++) {
        const s = t[o],
          l = e[o],
          u = r(l);
        if (u ? !s || !i(u, s) : s) return !0;
      }
      return !1;
    }
    function fI(e) {
      return (H9e(e), (e.flags & 1048576) !== 0);
    }
    function H9e(e) {
      e.flags & 2097152 ||
        (((e.flags & 262144) !== 0 || Jo(e, fI)) && (e.flags |= 1048576),
        (e.flags |= 2097152));
    }
    function Wn(e) {
      for (; e && e.kind !== 308; ) e = e.parent;
      return e;
    }
    function X2(e) {
      return Wn(e.valueDeclaration || vG(e));
    }
    function VN(e, t) {
      return (
        !!e &&
        (e.scriptKind === 1 || e.scriptKind === 2) &&
        !e.checkJsDirective &&
        t === void 0
      );
    }
    function Nte(e) {
      switch (e.kind) {
        case 242:
        case 270:
        case 249:
        case 250:
        case 251:
          return !0;
      }
      return !1;
    }
    function _b(e, t) {
      return (C.assert(e >= 0), ag(t)[e]);
    }
    function h0e(e) {
      const t = Wn(e),
        r = ca(t, e.pos);
      return `${t.fileName}(${r.line + 1},${r.character + 1})`;
    }
    function Y2(e, t) {
      C.assert(e >= 0);
      const r = ag(t),
        i = e,
        o = t.text;
      if (i + 1 === r.length) return o.length - 1;
      {
        const s = r[i];
        let l = r[i + 1] - 1;
        for (C.assert(eu(o.charCodeAt(l))); s <= l && eu(o.charCodeAt(l)); )
          l--;
        return l;
      }
    }
    function kF(e, t, r) {
      return !(r && r(t)) && !e.identifiers.has(t);
    }
    function Ol(e) {
      return e === void 0 ? !0 : e.pos === e.end && e.pos >= 0 && e.kind !== 1;
    }
    function fm(e) {
      return !Ol(e);
    }
    function Mte(e, t) {
      return sl(e)
        ? t === e.expression
        : Ql(e)
          ? t === e.modifiers
          : Su(e)
            ? t === e.initializer
            : Po(e)
              ? t === e.questionToken && Yu(e)
              : Cc(e)
                ? t === e.modifiers ||
                  t === e.questionToken ||
                  t === e.exclamationToken ||
                  $2(e.modifiers, t, fl)
                : Ud(e)
                  ? t === e.equalsToken ||
                    t === e.modifiers ||
                    t === e.questionToken ||
                    t === e.exclamationToken ||
                    $2(e.modifiers, t, fl)
                  : Nl(e)
                    ? t === e.exclamationToken
                    : Ml(e)
                      ? t === e.typeParameters ||
                        t === e.type ||
                        $2(e.typeParameters, t, sl)
                      : Hf(e)
                        ? t === e.typeParameters || $2(e.typeParameters, t, sl)
                        : gp(e)
                          ? t === e.typeParameters ||
                            t === e.type ||
                            $2(e.typeParameters, t, sl)
                          : yw(e)
                            ? t === e.modifiers || $2(e.modifiers, t, fl)
                            : !1;
    }
    function $2(e, t, r) {
      return !e || Mo(t) || !r(t) ? !1 : jn(e, t);
    }
    function _0e(e, t, r) {
      if (t === void 0 || t.length === 0) return e;
      let i = 0;
      for (; i < e.length && r(e[i]); ++i);
      return (e.splice(i, 0, ...t), e);
    }
    function g0e(e, t, r) {
      if (t === void 0) return e;
      let i = 0;
      for (; i < e.length && r(e[i]); ++i);
      return (e.splice(i, 0, t), e);
    }
    function y0e(e) {
      return Uh(e) || !!(Qa(e) & 2097152);
    }
    function mg(e, t) {
      return _0e(e, t, Uh);
    }
    function uG(e, t) {
      return _0e(e, t, y0e);
    }
    function v0e(e, t) {
      return g0e(e, t, Uh);
    }
    function e1(e, t) {
      return g0e(e, t, y0e);
    }
    function pG(e, t, r) {
      if (
        e.charCodeAt(t + 1) === 47 &&
        t + 2 < r &&
        e.charCodeAt(t + 2) === 47
      ) {
        const i = e.substring(t, r);
        return !!(
          eGe.test(i) ||
          rGe.test(i) ||
          iGe.test(i) ||
          tGe.test(i) ||
          nGe.test(i) ||
          oGe.test(i)
        );
      }
      return !1;
    }
    function wF(e, t) {
      return e.charCodeAt(t + 1) === 42 && e.charCodeAt(t + 2) === 33;
    }
    function Pte(e, t) {
      const r = new Map(t.map((l) => [`${ca(e, l.range.end).line}`, l])),
        i = new Map();
      return { getUnusedExpectations: o, markUsed: s };
      function o() {
        return Co(r.entries())
          .filter(([l, u]) => u.type === 0 && !i.get(l))
          .map(([l, u]) => u);
      }
      function s(l) {
        return r.has(`${l}`) ? (i.set(`${l}`, !0), !0) : !1;
      }
    }
    function gb(e, t, r) {
      if (Ol(e)) return e.pos;
      if (GR(e) || e.kind === 12) return La((t ?? Wn(e)).text, e.pos, !1, !0);
      if (r && ef(e)) return gb(e.jsDoc[0], t);
      if (e.kind === 353) {
        t ?? (t = Wn(e));
        const i = Ac(Lj(e, t));
        if (i) return gb(i, t, r);
      }
      return La((t ?? Wn(e)).text, e.pos, !1, !1, YN(e));
    }
    function fG(e, t) {
      const r = !Ol(e) && Tm(e) ? ga(e.modifiers, Wc) : void 0;
      return r ? La((t || Wn(e)).text, r.end) : gb(e, t);
    }
    function Lte(e, t) {
      const r = !Ol(e) && Tm(e) && e.modifiers ? Ba(e.modifiers) : void 0;
      return r ? La((t || Wn(e)).text, r.end) : gb(e, t);
    }
    function vS(e, t, r = !1) {
      return jN(e.text, t, r);
    }
    function q9e(e) {
      return !!Dn(e, t0);
    }
    function OF(e) {
      return !!(
        pc(e) &&
        e.exportClause &&
        O_(e.exportClause) &&
        N_(e.exportClause.name)
      );
    }
    function yb(e) {
      return e.kind === 11 ? e.text : Gi(e.escapedText);
    }
    function bS(e) {
      return e.kind === 11 ? Cl(e.text) : e.escapedText;
    }
    function N_(e) {
      return (e.kind === 11 ? e.text : e.escapedText) === "default";
    }
    function jN(e, t, r = !1) {
      if (Ol(t)) return "";
      let i = e.substring(r ? t.pos : La(e, t.pos), t.end);
      return (
        q9e(t) &&
          (i = i
            .split(/\r\n|\n|\r/)
            .map((o) => o.replace(/^\s*\*/, "").trimStart()).join(`
`)),
        i
      );
    }
    function Al(e, t = !1) {
      return vS(Wn(e), e, t);
    }
    function J9e(e) {
      return e.pos;
    }
    function UR(e, t) {
      return Zv(e, t, J9e, js);
    }
    function Qa(e) {
      const t = e.emitNode;
      return (t && t.flags) || 0;
    }
    function Fm(e) {
      const t = e.emitNode;
      return (t && t.internalFlags) || 0;
    }
    var mG = Nu(
        () =>
          new Map(
            Object.entries({
              Array: new Map(
                Object.entries({
                  es2015: [
                    "find",
                    "findIndex",
                    "fill",
                    "copyWithin",
                    "entries",
                    "keys",
                    "values",
                  ],
                  es2016: ["includes"],
                  es2019: ["flat", "flatMap"],
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              Iterator: new Map(Object.entries({ es2015: ae })),
              AsyncIterator: new Map(Object.entries({ es2015: ae })),
              ArrayBuffer: new Map(
                Object.entries({
                  es2024: [
                    "maxByteLength",
                    "resizable",
                    "resize",
                    "detached",
                    "transfer",
                    "transferToFixedLength",
                  ],
                }),
              ),
              Atomics: new Map(
                Object.entries({
                  es2017: [
                    "add",
                    "and",
                    "compareExchange",
                    "exchange",
                    "isLockFree",
                    "load",
                    "or",
                    "store",
                    "sub",
                    "wait",
                    "notify",
                    "xor",
                  ],
                  es2024: ["waitAsync"],
                  esnext: ["pause"],
                }),
              ),
              SharedArrayBuffer: new Map(
                Object.entries({
                  es2017: ["byteLength", "slice"],
                  es2024: ["growable", "maxByteLength", "grow"],
                }),
              ),
              AsyncIterable: new Map(Object.entries({ es2018: ae })),
              AsyncIterableIterator: new Map(Object.entries({ es2018: ae })),
              AsyncGenerator: new Map(Object.entries({ es2018: ae })),
              AsyncGeneratorFunction: new Map(Object.entries({ es2018: ae })),
              RegExp: new Map(
                Object.entries({
                  es2015: ["flags", "sticky", "unicode"],
                  es2018: ["dotAll"],
                  es2024: ["unicodeSets"],
                }),
              ),
              Reflect: new Map(
                Object.entries({
                  es2015: [
                    "apply",
                    "construct",
                    "defineProperty",
                    "deleteProperty",
                    "get",
                    "getOwnPropertyDescriptor",
                    "getPrototypeOf",
                    "has",
                    "isExtensible",
                    "ownKeys",
                    "preventExtensions",
                    "set",
                    "setPrototypeOf",
                  ],
                }),
              ),
              ArrayConstructor: new Map(
                Object.entries({
                  es2015: ["from", "of"],
                  esnext: ["fromAsync"],
                }),
              ),
              ObjectConstructor: new Map(
                Object.entries({
                  es2015: [
                    "assign",
                    "getOwnPropertySymbols",
                    "keys",
                    "is",
                    "setPrototypeOf",
                  ],
                  es2017: ["values", "entries", "getOwnPropertyDescriptors"],
                  es2019: ["fromEntries"],
                  es2022: ["hasOwn"],
                  es2024: ["groupBy"],
                }),
              ),
              NumberConstructor: new Map(
                Object.entries({
                  es2015: [
                    "isFinite",
                    "isInteger",
                    "isNaN",
                    "isSafeInteger",
                    "parseFloat",
                    "parseInt",
                  ],
                }),
              ),
              Math: new Map(
                Object.entries({
                  es2015: [
                    "clz32",
                    "imul",
                    "sign",
                    "log10",
                    "log2",
                    "log1p",
                    "expm1",
                    "cosh",
                    "sinh",
                    "tanh",
                    "acosh",
                    "asinh",
                    "atanh",
                    "hypot",
                    "trunc",
                    "fround",
                    "cbrt",
                  ],
                  esnext: ["f16round"],
                }),
              ),
              Map: new Map(
                Object.entries({ es2015: ["entries", "keys", "values"] }),
              ),
              MapConstructor: new Map(Object.entries({ es2024: ["groupBy"] })),
              Set: new Map(
                Object.entries({
                  es2015: ["entries", "keys", "values"],
                  esnext: [
                    "union",
                    "intersection",
                    "difference",
                    "symmetricDifference",
                    "isSubsetOf",
                    "isSupersetOf",
                    "isDisjointFrom",
                  ],
                }),
              ),
              PromiseConstructor: new Map(
                Object.entries({
                  es2015: ["all", "race", "reject", "resolve"],
                  es2020: ["allSettled"],
                  es2021: ["any"],
                  es2024: ["withResolvers"],
                }),
              ),
              Symbol: new Map(
                Object.entries({
                  es2015: ["for", "keyFor"],
                  es2019: ["description"],
                }),
              ),
              WeakMap: new Map(
                Object.entries({ es2015: ["entries", "keys", "values"] }),
              ),
              WeakSet: new Map(
                Object.entries({ es2015: ["entries", "keys", "values"] }),
              ),
              String: new Map(
                Object.entries({
                  es2015: [
                    "codePointAt",
                    "includes",
                    "endsWith",
                    "normalize",
                    "repeat",
                    "startsWith",
                    "anchor",
                    "big",
                    "blink",
                    "bold",
                    "fixed",
                    "fontcolor",
                    "fontsize",
                    "italics",
                    "link",
                    "small",
                    "strike",
                    "sub",
                    "sup",
                  ],
                  es2017: ["padStart", "padEnd"],
                  es2019: ["trimStart", "trimEnd", "trimLeft", "trimRight"],
                  es2020: ["matchAll"],
                  es2021: ["replaceAll"],
                  es2022: ["at"],
                  es2024: ["isWellFormed", "toWellFormed"],
                }),
              ),
              StringConstructor: new Map(
                Object.entries({ es2015: ["fromCodePoint", "raw"] }),
              ),
              DateTimeFormat: new Map(
                Object.entries({ es2017: ["formatToParts"] }),
              ),
              Promise: new Map(
                Object.entries({ es2015: ae, es2018: ["finally"] }),
              ),
              RegExpMatchArray: new Map(Object.entries({ es2018: ["groups"] })),
              RegExpExecArray: new Map(Object.entries({ es2018: ["groups"] })),
              Intl: new Map(Object.entries({ es2018: ["PluralRules"] })),
              NumberFormat: new Map(
                Object.entries({ es2018: ["formatToParts"] }),
              ),
              SymbolConstructor: new Map(
                Object.entries({
                  es2020: ["matchAll"],
                  esnext: ["metadata", "dispose", "asyncDispose"],
                }),
              ),
              DataView: new Map(
                Object.entries({
                  es2020: [
                    "setBigInt64",
                    "setBigUint64",
                    "getBigInt64",
                    "getBigUint64",
                  ],
                  esnext: ["setFloat16", "getFloat16"],
                }),
              ),
              BigInt: new Map(Object.entries({ es2020: ae })),
              RelativeTimeFormat: new Map(
                Object.entries({
                  es2020: ["format", "formatToParts", "resolvedOptions"],
                }),
              ),
              Int8Array: new Map(
                Object.entries({
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              Uint8Array: new Map(
                Object.entries({
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              Uint8ClampedArray: new Map(
                Object.entries({
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              Int16Array: new Map(
                Object.entries({
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              Uint16Array: new Map(
                Object.entries({
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              Int32Array: new Map(
                Object.entries({
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              Uint32Array: new Map(
                Object.entries({
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              Float16Array: new Map(Object.entries({ esnext: ae })),
              Float32Array: new Map(
                Object.entries({
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              Float64Array: new Map(
                Object.entries({
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              BigInt64Array: new Map(
                Object.entries({
                  es2020: ae,
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              BigUint64Array: new Map(
                Object.entries({
                  es2020: ae,
                  es2022: ["at"],
                  es2023: [
                    "findLastIndex",
                    "findLast",
                    "toReversed",
                    "toSorted",
                    "toSpliced",
                    "with",
                  ],
                }),
              ),
              Error: new Map(Object.entries({ es2022: ["cause"] })),
            }),
          ),
      ),
      kte = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.NeverAsciiEscape = 1)] = "NeverAsciiEscape"),
        (e[(e.JsxAttributeEscape = 2)] = "JsxAttributeEscape"),
        (e[(e.TerminateUnterminatedLiterals = 4)] =
          "TerminateUnterminatedLiterals"),
        (e[(e.AllowNumericSeparator = 8)] = "AllowNumericSeparator"),
        e
      ))(kte || {});
    function wte(e, t, r) {
      if (t && K9e(e, r)) return vS(t, e);
      switch (e.kind) {
        case 11: {
          const i = r & 2 ? eV : r & 1 || Qa(e) & 16777216 ? k_ : f6;
          return e.singleQuote
            ? "'" + i(e.text, 39) + "'"
            : '"' + i(e.text, 34) + '"';
        }
        case 15:
        case 16:
        case 17:
        case 18: {
          const i = r & 1 || Qa(e) & 16777216 ? k_ : f6,
            o = e.rawText ?? QG(i(e.text, 96));
          switch (e.kind) {
            case 15:
              return "`" + o + "`";
            case 16:
              return "`" + o + "${";
            case 17:
              return "}" + o + "${";
            case 18:
              return "}" + o + "`";
          }
          break;
        }
        case 9:
        case 10:
          return e.text;
        case 14:
          return r & 4 && e.isUnterminated
            ? e.text +
                (e.text.charCodeAt(e.text.length - 1) === 92 ? " /" : "/")
            : e.text;
      }
      return C.fail(`Literal kind '${e.kind}' not accounted for.`);
    }
    function K9e(e, t) {
      if (Os(e) || !e.parent || (t & 4 && e.isUnterminated)) return !1;
      if (np(e)) {
        if (e.numericLiteralFlags & 26656) return !1;
        if (e.numericLiteralFlags & 512) return !!(t & 8);
      }
      return !yD(e);
    }
    function Ote(e) {
      return Bo(e) ? `"${k_(e)}"` : "" + e;
    }
    function Wte(e) {
      return Ic(e).replace(/^(\d)/, "_$1").replace(/\W/g, "_");
    }
    function hG(e) {
      return (ty(e) & 7) !== 0 || _G(e);
    }
    function _G(e) {
      const t = Jh(e);
      return t.kind === 261 && t.parent.kind === 300;
    }
    function yu(e) {
      return uc(e) && (e.name.kind === 11 || M_(e));
    }
    function WF(e) {
      return uc(e) && e.name.kind === 11;
    }
    function gG(e) {
      return uc(e) && ka(e.name);
    }
    function X9e(e) {
      return uc(e) || He(e);
    }
    function Q2(e) {
      return Y9e(e.valueDeclaration);
    }
    function Y9e(e) {
      return !!e && e.kind === 268 && !e.body;
    }
    function Fte(e) {
      return e.kind === 308 || e.kind === 268 || BR(e);
    }
    function M_(e) {
      return !!(e.flags & 2048);
    }
    function TS(e) {
      return yu(e) && yG(e);
    }
    function yG(e) {
      switch (e.parent.kind) {
        case 308:
          return zc(e.parent);
        case 269:
          return (
            yu(e.parent.parent) &&
            Yi(e.parent.parent.parent) &&
            !zc(e.parent.parent.parent)
          );
      }
      return !1;
    }
    function vG(e) {
      var t;
      return (t = e.declarations) == null
        ? void 0
        : t.find((r) => !TS(r) && !(uc(r) && M_(r)));
    }
    function $9e(e) {
      return e === 1 || (100 <= e && e <= 199);
    }
    function HR(e, t) {
      return zc(e) || ($9e(bu(t)) && !!e.commonJsModuleIndicator);
    }
    function bG(e, t) {
      switch (e.scriptKind) {
        case 1:
        case 3:
        case 2:
        case 4:
          break;
        default:
          return !1;
      }
      return e.isDeclarationFile
        ? !1
        : !!(Vd(t, "alwaysStrict") || Hie(e.statements) || zc(e) || ym(t));
    }
    function TG(e) {
      return !!(e.flags & 33554432) || di(e, 128);
    }
    function SG(e, t) {
      switch (e.kind) {
        case 308:
        case 270:
        case 300:
        case 268:
        case 249:
        case 250:
        case 251:
        case 177:
        case 175:
        case 178:
        case 179:
        case 263:
        case 219:
        case 220:
        case 173:
        case 176:
          return !0;
        case 242:
          return !BR(t);
      }
      return !1;
    }
    function EG(e) {
      switch ((C.type(e), e.kind)) {
        case 339:
        case 347:
        case 324:
          return !0;
        default:
          return AG(e);
      }
    }
    function AG(e) {
      switch ((C.type(e), e.kind)) {
        case 180:
        case 181:
        case 174:
        case 182:
        case 185:
        case 186:
        case 318:
        case 264:
        case 232:
        case 265:
        case 266:
        case 346:
        case 263:
        case 175:
        case 177:
        case 178:
        case 179:
        case 219:
        case 220:
          return !0;
        default:
          return !1;
      }
    }
    function mI(e) {
      switch (e.kind) {
        case 273:
        case 272:
          return !0;
        default:
          return !1;
      }
    }
    function zte(e) {
      return mI(e) || ES(e);
    }
    function Bte(e) {
      return mI(e) || fk(e);
    }
    function FF(e) {
      switch (e.kind) {
        case 273:
        case 272:
        case 244:
        case 264:
        case 263:
        case 268:
        case 266:
        case 265:
        case 267:
          return !0;
        default:
          return !1;
      }
    }
    function Gte(e) {
      return Z2(e) || uc(e) || e_(e) || Qu(e);
    }
    function Z2(e) {
      return mI(e) || pc(e);
    }
    function zF(e) {
      return Dn(e.parent, (t) => !!(DU(t) & 1));
    }
    function sh(e) {
      return Dn(e.parent, (t) => SG(t, t.parent));
    }
    function Vte(e, t) {
      let r = sh(e);
      for (; r; ) (t(r), (r = sh(r)));
    }
    function ws(e) {
      return !e || K2(e) === 0 ? "(Missing)" : Al(e);
    }
    function jte(e) {
      return e.declaration ? ws(e.declaration.parameters[0].name) : void 0;
    }
    function ek(e) {
      return e.kind === 168 && !uf(e.expression);
    }
    function UN(e) {
      var t;
      switch (e.kind) {
        case 80:
        case 81:
          return (t = e.emitNode) != null && t.autoGenerate
            ? void 0
            : e.escapedText;
        case 11:
        case 9:
        case 10:
        case 15:
          return Cl(e.text);
        case 168:
          return uf(e.expression) ? Cl(e.expression.text) : void 0;
        case 296:
          return OI(e);
        default:
          return C.assertNever(e);
      }
    }
    function hI(e) {
      return C.checkDefined(UN(e));
    }
    function Mp(e) {
      switch (e.kind) {
        case 110:
          return "this";
        case 81:
        case 80:
          return K2(e) === 0 ? Kr(e) : Al(e);
        case 167:
          return Mp(e.left) + "." + Mp(e.right);
        case 212:
          return He(e.name) || eo(e.name)
            ? Mp(e.expression) + "." + Mp(e.name)
            : C.assertNever(e.name);
        case 312:
          return Mp(e.left) + "#" + Mp(e.right);
        case 296:
          return Mp(e.namespace) + ":" + Mp(e.name);
        default:
          return C.assertNever(e);
      }
    }
    function Ar(e, t, ...r) {
      const i = Wn(e);
      return Wf(i, e, t, ...r);
    }
    function qR(e, t, r, ...i) {
      const o = La(e.text, t.pos);
      return Oc(e, o, t.end - o, r, ...i);
    }
    function Wf(e, t, r, ...i) {
      const o = t1(e, t);
      return Oc(e, o.start, o.length, r, ...i);
    }
    function hg(e, t, r, i) {
      const o = t1(e, t);
      return BF(e, o.start, o.length, r, i);
    }
    function tk(e, t, r, i) {
      const o = La(e.text, t.pos);
      return BF(e, o, t.end - o, r, i);
    }
    function Ute(e, t, r) {
      (C.assertGreaterThanOrEqual(t, 0),
        C.assertGreaterThanOrEqual(r, 0),
        C.assertLessThanOrEqual(t, e.length),
        C.assertLessThanOrEqual(t + r, e.length));
    }
    function BF(e, t, r, i, o) {
      return (
        Ute(e.text, t, r),
        {
          file: e,
          start: t,
          length: r,
          code: i.code,
          category: i.category,
          messageText: i.next ? i : i.messageText,
          relatedInformation: o,
          canonicalHead: i.canonicalHead,
        }
      );
    }
    function IG(e, t, r) {
      return {
        file: e,
        start: 0,
        length: 0,
        code: t.code,
        category: t.category,
        messageText: t.next ? t : t.messageText,
        relatedInformation: r,
      };
    }
    function Hte(e) {
      return typeof e.messageText == "string"
        ? {
            code: e.code,
            category: e.category,
            messageText: e.messageText,
            next: e.next,
          }
        : e.messageText;
    }
    function qte(e, t, r) {
      return {
        file: e,
        start: t.pos,
        length: t.end - t.pos,
        code: r.code,
        category: r.category,
        messageText: r.message,
      };
    }
    function Jte(e, ...t) {
      return { code: e.code, messageText: MI(e, ...t) };
    }
    function jh(e, t) {
      const r = cg(e.languageVersion, !0, e.languageVariant, e.text, void 0, t);
      r.scan();
      const i = r.getTokenStart();
      return ic(i, r.getTokenEnd());
    }
    function Kte(e, t) {
      const r = cg(e.languageVersion, !0, e.languageVariant, e.text, void 0, t);
      return (r.scan(), r.getToken());
    }
    function Q9e(e, t) {
      const r = La(e.text, t.pos);
      if (t.body && t.body.kind === 242) {
        const { line: i } = ca(e, t.body.pos),
          { line: o } = ca(e, t.body.end);
        if (i < o) return Id(r, Y2(i, e) - r + 1);
      }
      return ic(r, t.end);
    }
    function t1(e, t) {
      let r = t;
      switch (t.kind) {
        case 308: {
          const s = La(e.text, 0, !1);
          return s === e.text.length ? Id(0, 0) : jh(e, s);
        }
        case 261:
        case 209:
        case 264:
        case 232:
        case 265:
        case 268:
        case 267:
        case 307:
        case 263:
        case 219:
        case 175:
        case 178:
        case 179:
        case 266:
        case 173:
        case 172:
        case 275:
          r = t.name;
          break;
        case 220:
          return Q9e(e, t);
        case 297:
        case 298: {
          const s = La(e.text, t.pos),
            l = t.statements.length > 0 ? t.statements[0].pos : t.end;
          return ic(s, l);
        }
        case 254:
        case 230: {
          const s = La(e.text, t.pos);
          return jh(e, s);
        }
        case 239: {
          const s = La(e.text, t.expression.end);
          return jh(e, s);
        }
        case 351: {
          const s = La(e.text, t.tagName.pos);
          return jh(e, s);
        }
        case 177: {
          const s = t,
            l = La(e.text, s.pos),
            u = cg(e.languageVersion, !0, e.languageVariant, e.text, void 0, l);
          let d = u.scan();
          for (; d !== 137 && d !== 1; ) d = u.scan();
          const _ = u.getTokenEnd();
          return ic(l, _);
        }
      }
      if (r === void 0) return jh(e, t.pos);
      C.assert(!mh(r));
      const i = Ol(r),
        o = i || BI(t) ? r.pos : La(e.text, r.pos);
      return (
        i
          ? (C.assert(
              o === r.pos,
              "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809",
            ),
            C.assert(
              o === r.end,
              "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809",
            ))
          : (C.assert(
              o >= r.pos,
              "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809",
            ),
            C.assert(
              o <= r.end,
              "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809",
            )),
        ic(o, r.end)
      );
    }
    function ev(e) {
      return e.kind === 308 && !Pp(e);
    }
    function Pp(e) {
      return (
        (e.externalModuleIndicator || e.commonJsModuleIndicator) !== void 0
      );
    }
    function Ff(e) {
      return e.scriptKind === 6;
    }
    function OT(e) {
      return !!(PT(e) & 4096);
    }
    function nk(e) {
      return !!(PT(e) & 8 && !Np(e, e.parent));
    }
    function rk(e) {
      return (ty(e) & 7) === 6;
    }
    function ik(e) {
      return (ty(e) & 7) === 4;
    }
    function JR(e) {
      return (ty(e) & 7) === 2;
    }
    function Xte(e) {
      const t = ty(e) & 7;
      return t === 2 || t === 4 || t === 6;
    }
    function GF(e) {
      return (ty(e) & 7) === 1;
    }
    function n1(e) {
      return e.kind === 214 && e.expression.kind === 108;
    }
    function Qu(e) {
      if (e.kind !== 214) return !1;
      const t = e.expression;
      return (
        t.kind === 102 ||
        (S1(t) && t.keywordToken === 102 && t.name.escapedText === "defer")
      );
    }
    function KR(e) {
      return S1(e) && e.keywordToken === 102 && e.name.escapedText === "meta";
    }
    function ry(e) {
      return e_(e) && uv(e.argument) && ka(e.argument.literal);
    }
    function Uh(e) {
      return e.kind === 245 && e.expression.kind === 11;
    }
    function ok(e) {
      return !!(Qa(e) & 2097152);
    }
    function VF(e) {
      return ok(e) && Zl(e);
    }
    function Z9e(e) {
      return He(e.name) && !e.initializer;
    }
    function jF(e) {
      return ok(e) && ac(e) && Vn(e.declarationList.declarations, Z9e);
    }
    function xG(e, t) {
      return e.kind !== 12 ? lg(t.text, e.pos) : void 0;
    }
    function RG(e, t) {
      const r =
        e.kind === 170 ||
        e.kind === 169 ||
        e.kind === 219 ||
        e.kind === 220 ||
        e.kind === 218 ||
        e.kind === 261 ||
        e.kind === 282
          ? so(sb(t, e.pos), lg(t, e.pos))
          : lg(t, e.pos);
      return Un(
        r,
        (i) =>
          i.end <= e.end &&
          t.charCodeAt(i.pos + 1) === 42 &&
          t.charCodeAt(i.pos + 2) === 42 &&
          t.charCodeAt(i.pos + 3) !== 47,
      );
    }
    var eGe = /^\/\/\/\s*<reference\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,
      tGe = /^\/\/\/\s*<reference\s+types\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,
      nGe = /^\/\/\/\s*<reference\s+lib\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,
      rGe = /^\/\/\/\s*<amd-dependency\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,
      iGe = /^\/\/\/\s*<amd-module\s+(?:\S.*?)??\/>/,
      oGe =
        /^\/\/\/\s*<reference\s+no-default-lib\s*=\s*(?:'[^']*'|"[^"]*")\s*\/>/;
    function Hh(e) {
      if (183 <= e.kind && e.kind <= 206) return !0;
      switch (e.kind) {
        case 133:
        case 159:
        case 150:
        case 163:
        case 154:
        case 136:
        case 155:
        case 151:
        case 157:
        case 106:
        case 146:
          return !0;
        case 116:
          return e.parent.kind !== 223;
        case 234:
          return b0e(e);
        case 169:
          return e.parent.kind === 201 || e.parent.kind === 196;
        case 80:
          (((e.parent.kind === 167 && e.parent.right === e) ||
            (e.parent.kind === 212 && e.parent.name === e)) &&
            (e = e.parent),
            C.assert(
              e.kind === 80 || e.kind === 167 || e.kind === 212,
              "'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.",
            ));
        case 167:
        case 212:
        case 110: {
          const { parent: t } = e;
          if (t.kind === 187) return !1;
          if (t.kind === 206) return !t.isTypeOf;
          if (183 <= t.kind && t.kind <= 206) return !0;
          switch (t.kind) {
            case 234:
              return b0e(t);
            case 169:
              return e === t.constraint;
            case 346:
              return e === t.constraint;
            case 173:
            case 172:
            case 170:
            case 261:
              return e === t.type;
            case 263:
            case 219:
            case 220:
            case 177:
            case 175:
            case 174:
            case 178:
            case 179:
              return e === t.type;
            case 180:
            case 181:
            case 182:
              return e === t.type;
            case 217:
              return e === t.type;
            case 214:
            case 215:
            case 216:
              return jn(t.typeArguments, e);
          }
        }
      }
      return !1;
    }
    function b0e(e) {
      return R4(e.parent) || QI(e.parent) || (Fp(e.parent) && !A6(e));
    }
    function vb(e, t) {
      return r(e);
      function r(i) {
        switch (i.kind) {
          case 254:
            return t(i);
          case 270:
          case 242:
          case 246:
          case 247:
          case 248:
          case 249:
          case 250:
          case 251:
          case 255:
          case 256:
          case 297:
          case 298:
          case 257:
          case 259:
          case 300:
            return Jo(i, r);
        }
      }
    }
    function Yte(e, t) {
      return r(e);
      function r(i) {
        switch (i.kind) {
          case 230:
            t(i);
            const o = i.expression;
            o && r(o);
            return;
          case 267:
          case 265:
          case 268:
          case 266:
            return;
          default:
            if (Yo(i)) {
              if (i.name && i.name.kind === 168) {
                r(i.name.expression);
                return;
              }
            } else Hh(i) || Jo(i, r);
        }
      }
    }
    function DG(e) {
      return e && e.kind === 189
        ? e.elementType
        : e && e.kind === 184
          ? og(e.typeArguments)
          : void 0;
    }
    function $te(e) {
      switch (e.kind) {
        case 265:
        case 264:
        case 232:
        case 188:
          return e.members;
        case 211:
          return e.properties;
      }
    }
    function HN(e) {
      if (e)
        switch (e.kind) {
          case 209:
          case 307:
          case 170:
          case 304:
          case 173:
          case 172:
          case 305:
          case 261:
            return !0;
        }
      return !1;
    }
    function qN(e) {
      return e.parent.kind === 262 && e.parent.parent.kind === 244;
    }
    function Qte(e) {
      return Ir(e)
        ? (Wa(e.parent) && Nr(e.parent.parent) && oc(e.parent.parent) === 2) ||
            UF(e.parent)
        : !1;
    }
    function UF(e) {
      return Ir(e) ? Nr(e) && oc(e) === 1 : !1;
    }
    function Zte(e) {
      return (
        (yi(e)
          ? JR(e) && He(e.name) && qN(e)
          : Po(e)
            ? u1(e) && wc(e)
            : Su(e) && u1(e)) || UF(e)
      );
    }
    function ene(e) {
      switch (e.kind) {
        case 175:
        case 174:
        case 177:
        case 178:
        case 179:
        case 263:
        case 219:
          return !0;
      }
      return !1;
    }
    function CG(e, t) {
      for (;;) {
        if ((t && t(e), e.statement.kind !== 257)) return e.statement;
        e = e.statement;
      }
    }
    function SS(e) {
      return e && e.kind === 242 && Yo(e.parent);
    }
    function mm(e) {
      return e && e.kind === 175 && e.parent.kind === 211;
    }
    function HF(e) {
      return (
        (e.kind === 175 || e.kind === 178 || e.kind === 179) &&
        (e.parent.kind === 211 || e.parent.kind === 232)
      );
    }
    function tne(e) {
      return e && e.kind === 1;
    }
    function nne(e) {
      return e && e.kind === 0;
    }
    function XR(e, t, r, i) {
      return Ye(e?.properties, (o) => {
        if (!Cc(o)) return;
        const s = UN(o.name);
        return t === s || (i && i === s) ? r(o) : void 0;
      });
    }
    function JN(e) {
      if (e && e.statements.length) {
        const t = e.statements[0].expression;
        return ni(t, Wa);
      }
    }
    function qF(e, t, r) {
      return ak(e, t, (i) =>
        Cd(i.initializer)
          ? hn(i.initializer.elements, (o) => ka(o) && o.text === r)
          : void 0,
      );
    }
    function ak(e, t, r) {
      return XR(JN(e), t, r);
    }
    function df(e) {
      return Dn(e.parent, Yo);
    }
    function rne(e) {
      return Dn(e.parent, Ms);
    }
    function hd(e) {
      return Dn(e.parent, ui);
    }
    function ine(e) {
      return Dn(e.parent, (t) => (ui(t) || Yo(t) ? "quit" : Ql(t)));
    }
    function JF(e) {
      return Dn(e.parent, BR);
    }
    function KF(e) {
      const t = Dn(e.parent, (r) => (ui(r) ? "quit" : Wc(r)));
      return t && ui(t.parent) ? hd(t.parent) : hd(t ?? e);
    }
    function vu(e, t, r) {
      for (C.assert(e.kind !== 308); ; ) {
        if (((e = e.parent), !e)) return C.fail();
        switch (e.kind) {
          case 168:
            if (r && ui(e.parent.parent)) return e;
            e = e.parent.parent;
            break;
          case 171:
            e.parent.kind === 170 && bc(e.parent.parent)
              ? (e = e.parent.parent)
              : bc(e.parent) && (e = e.parent);
            break;
          case 220:
            if (!t) continue;
          case 263:
          case 219:
          case 268:
          case 176:
          case 173:
          case 172:
          case 175:
          case 174:
          case 177:
          case 178:
          case 179:
          case 180:
          case 181:
          case 182:
          case 267:
          case 308:
            return e;
        }
      }
    }
    function one(e) {
      switch (e.kind) {
        case 220:
        case 263:
        case 219:
        case 173:
          return !0;
        case 242:
          switch (e.parent.kind) {
            case 177:
            case 175:
            case 178:
            case 179:
              return !0;
            default:
              return !1;
          }
        default:
          return !1;
      }
    }
    function XF(e) {
      He(e) &&
        (Dc(e.parent) || Zl(e.parent)) &&
        e.parent.name === e &&
        (e = e.parent);
      const t = vu(e, !0, !1);
      return Yi(t);
    }
    function ane(e) {
      const t = vu(e, !1, !1);
      if (t)
        switch (t.kind) {
          case 177:
          case 263:
          case 219:
            return t;
        }
    }
    function sk(e, t) {
      for (;;) {
        if (((e = e.parent), !e)) return;
        switch (e.kind) {
          case 168:
            e = e.parent;
            break;
          case 263:
          case 219:
          case 220:
            if (!t) continue;
          case 173:
          case 172:
          case 175:
          case 174:
          case 177:
          case 178:
          case 179:
          case 176:
            return e;
          case 171:
            e.parent.kind === 170 && bc(e.parent.parent)
              ? (e = e.parent.parent)
              : bc(e.parent) && (e = e.parent);
            break;
        }
      }
    }
    function WT(e) {
      if (e.kind === 219 || e.kind === 220) {
        let t = e,
          r = e.parent;
        for (; r.kind === 218; ) ((t = r), (r = r.parent));
        if (r.kind === 214 && r.expression === t) return r;
      }
    }
    function mp(e) {
      const t = e.kind;
      return (t === 212 || t === 213) && e.expression.kind === 108;
    }
    function lk(e) {
      const t = e.kind;
      return (t === 212 || t === 213) && e.expression.kind === 110;
    }
    function YF(e) {
      var t;
      return (
        !!e && yi(e) && ((t = e.initializer) == null ? void 0 : t.kind) === 110
      );
    }
    function sne(e) {
      return (
        !!e &&
        (Ud(e) || Cc(e)) &&
        Nr(e.parent.parent) &&
        e.parent.parent.operatorToken.kind === 64 &&
        e.parent.parent.right.kind === 110
      );
    }
    function ck(e) {
      switch (e.kind) {
        case 184:
          return e.typeName;
        case 234:
          return Ds(e.expression) ? e.expression : void 0;
        case 80:
        case 167:
          return e;
      }
    }
    function $F(e) {
      switch (e.kind) {
        case 216:
          return e.tag;
        case 287:
        case 286:
          return e.tagName;
        case 227:
          return e.right;
        case 290:
          return e;
        default:
          return e.expression;
      }
    }
    function dk(e, t, r, i) {
      if (e && nd(t) && eo(t.name)) return !1;
      switch (t.kind) {
        case 264:
          return !0;
        case 232:
          return !e;
        case 173:
          return r !== void 0 && (e ? Dc(r) : ui(r) && !PS(t) && !dV(t));
        case 178:
        case 179:
        case 175:
          return t.body !== void 0 && r !== void 0 && (e ? Dc(r) : ui(r));
        case 170:
          return e
            ? r !== void 0 &&
                r.body !== void 0 &&
                (r.kind === 177 || r.kind === 175 || r.kind === 179) &&
                CS(r) !== t &&
                i !== void 0 &&
                i.kind === 264
            : !1;
      }
      return !1;
    }
    function YR(e, t, r, i) {
      return pf(t) && dk(e, t, r, i);
    }
    function uk(e, t, r, i) {
      return YR(e, t, r, i) || KN(e, t, r);
    }
    function KN(e, t, r) {
      switch (t.kind) {
        case 264:
          return yt(t.members, (i) => uk(e, i, t, r));
        case 232:
          return !e && yt(t.members, (i) => uk(e, i, t, r));
        case 175:
        case 179:
        case 177:
          return yt(t.parameters, (i) => YR(e, i, t, r));
        default:
          return !1;
      }
    }
    function tv(e, t) {
      if (YR(e, t)) return !0;
      const r = yg(t);
      return !!r && KN(e, r, t);
    }
    function NG(e, t, r) {
      let i;
      if (fb(t)) {
        const {
            firstAccessor: o,
            secondAccessor: s,
            setAccessor: l,
          } = MS(r.members, t),
          u = pf(o) ? o : s && pf(s) ? s : void 0;
        if (!u || t !== u) return !1;
        i = l?.parameters;
      } else Nl(t) && (i = t.parameters);
      if (YR(e, t, r)) return !0;
      if (i) {
        for (const o of i) if (!Sb(o) && YR(e, o, t, r)) return !0;
      }
      return !1;
    }
    function MG(e) {
      if (e.textSourceNode) {
        switch (e.textSourceNode.kind) {
          case 11:
            return MG(e.textSourceNode);
          case 15:
            return e.text === "";
        }
        return !1;
      }
      return e.text === "";
    }
    function $R(e) {
      const { parent: t } = e;
      return t.kind === 287 || t.kind === 286 || t.kind === 288
        ? t.tagName === e
        : !1;
    }
    function P_(e) {
      switch (e.kind) {
        case 108:
        case 106:
        case 112:
        case 97:
        case 14:
        case 210:
        case 211:
        case 212:
        case 213:
        case 214:
        case 215:
        case 216:
        case 235:
        case 217:
        case 239:
        case 236:
        case 218:
        case 219:
        case 232:
        case 220:
        case 223:
        case 221:
        case 222:
        case 225:
        case 226:
        case 227:
        case 228:
        case 231:
        case 229:
        case 233:
        case 285:
        case 286:
        case 289:
        case 230:
        case 224:
          return !0;
        case 237:
          return !Qu(e.parent) || e.parent.expression !== e;
        case 234:
          return !Fp(e.parent) && !QI(e.parent);
        case 167:
          for (; e.parent.kind === 167; ) e = e.parent;
          return (
            e.parent.kind === 187 ||
            cI(e.parent) ||
            JM(e.parent) ||
            n0(e.parent) ||
            $R(e)
          );
        case 312:
          for (; n0(e.parent); ) e = e.parent;
          return (
            e.parent.kind === 187 ||
            cI(e.parent) ||
            JM(e.parent) ||
            n0(e.parent) ||
            $R(e)
          );
        case 81:
          return (
            Nr(e.parent) &&
            e.parent.left === e &&
            e.parent.operatorToken.kind === 103
          );
        case 80:
          if (
            e.parent.kind === 187 ||
            cI(e.parent) ||
            JM(e.parent) ||
            n0(e.parent) ||
            $R(e)
          )
            return !0;
        case 9:
        case 10:
        case 11:
        case 15:
        case 110:
          return QF(e);
        default:
          return !1;
      }
    }
    function QF(e) {
      const { parent: t } = e;
      switch (t.kind) {
        case 261:
        case 170:
        case 173:
        case 172:
        case 307:
        case 304:
        case 209:
          return t.initializer === e;
        case 245:
        case 246:
        case 247:
        case 248:
        case 254:
        case 255:
        case 256:
        case 297:
        case 258:
          return t.expression === e;
        case 249:
          const r = t;
          return (
            (r.initializer === e && r.initializer.kind !== 262) ||
            r.condition === e ||
            r.incrementor === e
          );
        case 250:
        case 251:
          const i = t;
          return (
            (i.initializer === e && i.initializer.kind !== 262) ||
            i.expression === e
          );
        case 217:
        case 235:
          return e === t.expression;
        case 240:
          return e === t.expression;
        case 168:
          return e === t.expression;
        case 171:
        case 295:
        case 294:
        case 306:
          return !0;
        case 234:
          return t.expression === e && !Hh(t);
        case 305:
          return t.objectAssignmentInitializer === e;
        case 239:
          return e === t.expression;
        default:
          return P_(t);
      }
    }
    function ZF(e) {
      for (; e.kind === 167 || e.kind === 80; ) e = e.parent;
      return e.kind === 187;
    }
    function lne(e) {
      return O_(e) && !!e.parent.moduleSpecifier;
    }
    function FT(e) {
      return e.kind === 272 && e.moduleReference.kind === 284;
    }
    function XN(e) {
      return (C.assert(FT(e)), e.moduleReference.expression);
    }
    function PG(e) {
      return ES(e) && dD(e.initializer).arguments[0];
    }
    function r1(e) {
      return e.kind === 272 && e.moduleReference.kind !== 284;
    }
    function _g(e) {
      return e?.kind === 308;
    }
    function Pu(e) {
      return Ir(e);
    }
    function Ir(e) {
      return !!e && !!(e.flags & 524288);
    }
    function e6(e) {
      return !!e && !!(e.flags & 134217728);
    }
    function t6(e) {
      return !Ff(e);
    }
    function YN(e) {
      return !!e && !!(e.flags & 16777216);
    }
    function n6(e) {
      return (
        Wp(e) &&
        He(e.typeName) &&
        e.typeName.escapedText === "Object" &&
        e.typeArguments &&
        e.typeArguments.length === 2 &&
        (e.typeArguments[0].kind === 154 || e.typeArguments[0].kind === 150)
      );
    }
    function Zu(e, t) {
      if (e.kind !== 214) return !1;
      const { expression: r, arguments: i } = e;
      if (r.kind !== 80 || r.escapedText !== "require" || i.length !== 1)
        return !1;
      const o = i[0];
      return !t || ds(o);
    }
    function pk(e) {
      return T0e(e, !1);
    }
    function ES(e) {
      return T0e(e, !0);
    }
    function cne(e) {
      return Ha(e) && ES(e.parent.parent);
    }
    function T0e(e, t) {
      return (
        yi(e) &&
        !!e.initializer &&
        Zu(t ? dD(e.initializer) : e.initializer, !0)
      );
    }
    function fk(e) {
      return (
        ac(e) &&
        e.declarationList.declarations.length > 0 &&
        Vn(e.declarationList.declarations, (t) => pk(t))
      );
    }
    function mk(e) {
      return e === 39 || e === 34;
    }
    function r6(e, t) {
      return vS(t, e).charCodeAt(0) === 34;
    }
    function $N(e) {
      return Nr(e) || Ks(e) || He(e) || Zo(e);
    }
    function hk(e) {
      return Ir(e) &&
        e.initializer &&
        Nr(e.initializer) &&
        (e.initializer.operatorToken.kind === 57 ||
          e.initializer.operatorToken.kind === 61) &&
        e.name &&
        Ds(e.name) &&
        QR(e.name, e.initializer.left)
        ? e.initializer.right
        : e.initializer;
    }
    function QN(e) {
      const t = hk(e);
      return t && zT(t, Ab(e.name));
    }
    function aGe(e, t) {
      return Ye(
        e.properties,
        (r) =>
          Cc(r) &&
          He(r.name) &&
          r.name.escapedText === "value" &&
          r.initializer &&
          zT(r.initializer, t),
      );
    }
    function _I(e) {
      if (e && e.parent && Nr(e.parent) && e.parent.operatorToken.kind === 64) {
        const t = Ab(e.parent.left);
        return zT(e.parent.right, t) || sGe(e.parent.left, e.parent.right, t);
      }
      if (e && Zo(e) && o1(e)) {
        const t = aGe(e.arguments[2], e.arguments[1].text === "prototype");
        if (t) return t;
      }
    }
    function zT(e, t) {
      if (Zo(e)) {
        const r = us(e.expression);
        return r.kind === 219 || r.kind === 220 ? e : void 0;
      }
      if (
        e.kind === 219 ||
        e.kind === 232 ||
        e.kind === 220 ||
        (Wa(e) && (e.properties.length === 0 || t))
      )
        return e;
    }
    function sGe(e, t, r) {
      const i =
        Nr(t) &&
        (t.operatorToken.kind === 57 || t.operatorToken.kind === 61) &&
        zT(t.right, r);
      if (i && QR(e, t.left)) return i;
    }
    function dne(e) {
      const t = yi(e.parent)
        ? e.parent.name
        : Nr(e.parent) && e.parent.operatorToken.kind === 64
          ? e.parent.left
          : void 0;
      return t && zT(e.right, Ab(t)) && Ds(t) && QR(t, e.left);
    }
    function LG(e) {
      if (Nr(e.parent)) {
        const t =
          (e.parent.operatorToken.kind === 57 ||
            e.parent.operatorToken.kind === 61) &&
          Nr(e.parent.parent)
            ? e.parent.parent
            : e.parent;
        if (t.operatorToken.kind === 64 && He(t.left)) return t.left;
      } else if (yi(e.parent)) return e.parent.name;
    }
    function QR(e, t) {
      return qh(e) && qh(t)
        ? zf(e) === zf(t)
        : dg(e) &&
            une(t) &&
            (t.expression.kind === 110 ||
              (He(t.expression) &&
                (t.expression.escapedText === "window" ||
                  t.expression.escapedText === "self" ||
                  t.expression.escapedText === "global")))
          ? QR(e, gk(t))
          : une(e) && une(t)
            ? iy(e) === iy(t) && QR(e.expression, t.expression)
            : !1;
    }
    function _k(e) {
      for (; id(e, !0); ) e = e.right;
      return e;
    }
    function i1(e) {
      return He(e) && e.escapedText === "exports";
    }
    function kG(e) {
      return He(e) && e.escapedText === "module";
    }
    function gg(e) {
      return (qr(e) || wG(e)) && kG(e.expression) && iy(e) === "exports";
    }
    function oc(e) {
      const t = lGe(e);
      return t === 5 || Ir(e) ? t : 0;
    }
    function o1(e) {
      return (
        et(e.arguments) === 3 &&
        qr(e.expression) &&
        He(e.expression.expression) &&
        Kr(e.expression.expression) === "Object" &&
        Kr(e.expression.name) === "defineProperty" &&
        uf(e.arguments[1]) &&
        a1(e.arguments[0], !0)
      );
    }
    function une(e) {
      return qr(e) || wG(e);
    }
    function wG(e) {
      return Ws(e) && uf(e.argumentExpression);
    }
    function AS(e, t) {
      return (
        (qr(e) &&
          ((!t && e.expression.kind === 110) ||
            (He(e.name) && a1(e.expression, !0)))) ||
        i6(e, t)
      );
    }
    function i6(e, t) {
      return (
        wG(e) &&
        ((!t && e.expression.kind === 110) ||
          Ds(e.expression) ||
          AS(e.expression, !0))
      );
    }
    function a1(e, t) {
      return Ds(e) || AS(e, t);
    }
    function gk(e) {
      return qr(e) ? e.name : e.argumentExpression;
    }
    function lGe(e) {
      if (Zo(e)) {
        if (!o1(e)) return 0;
        const t = e.arguments[0];
        return i1(t) || gg(t) ? 8 : AS(t) && iy(t) === "prototype" ? 9 : 7;
      }
      return e.operatorToken.kind !== 64 || !Ks(e.left) || cGe(_k(e))
        ? 0
        : a1(e.left.expression, !0) && iy(e.left) === "prototype" && Wa(OG(e))
          ? 6
          : yk(e.left);
    }
    function cGe(e) {
      return KI(e) && np(e.expression) && e.expression.text === "0";
    }
    function o6(e) {
      if (qr(e)) return e.name;
      const t = us(e.argumentExpression);
      return np(t) || ds(t) ? t : e;
    }
    function iy(e) {
      const t = o6(e);
      if (t) {
        if (He(t)) return t.escapedText;
        if (ds(t) || np(t)) return Cl(t.text);
      }
    }
    function yk(e) {
      if (e.expression.kind === 110) return 4;
      if (gg(e)) return 2;
      if (a1(e.expression, !0)) {
        if (Ab(e.expression)) return 3;
        let t = e;
        for (; !He(t.expression); ) t = t.expression;
        const r = t.expression;
        if (
          (r.escapedText === "exports" ||
            (r.escapedText === "module" && iy(t) === "exports")) &&
          AS(e)
        )
          return 1;
        if (a1(e, !0) || (Ws(e) && u6(e))) return 5;
      }
      return 0;
    }
    function OG(e) {
      for (; Nr(e.right); ) e = e.right;
      return e.right;
    }
    function vk(e) {
      return Nr(e) && oc(e) === 3;
    }
    function pne(e) {
      return (
        Ir(e) &&
        e.parent &&
        e.parent.kind === 245 &&
        (!Ws(e) || wG(e)) &&
        !!LT(e.parent)
      );
    }
    function ZN(e, t) {
      const { valueDeclaration: r } = e;
      (!r ||
        (!(t.flags & 33554432 && !Ir(t) && !(r.flags & 33554432)) &&
          $N(r) &&
          !$N(t)) ||
        (r.kind !== t.kind && X9e(r))) &&
        (e.valueDeclaration = t);
    }
    function fne(e) {
      if (!e || !e.valueDeclaration) return !1;
      const t = e.valueDeclaration;
      return t.kind === 263 || (yi(t) && t.initializer && Yo(t.initializer));
    }
    function mne(e) {
      switch (e?.kind) {
        case 261:
        case 209:
        case 273:
        case 279:
        case 272:
        case 274:
        case 281:
        case 275:
        case 282:
        case 277:
        case 206:
          return !0;
      }
      return !1;
    }
    function gI(e) {
      var t, r;
      switch (e.kind) {
        case 261:
        case 209:
          return (t = Dn(e.initializer, (i) => Zu(i, !0))) == null
            ? void 0
            : t.arguments[0];
        case 273:
        case 279:
        case 352:
          return ni(e.moduleSpecifier, ds);
        case 272:
          return ni(
            (r = ni(e.moduleReference, uy)) == null ? void 0 : r.expression,
            ds,
          );
        case 274:
        case 281:
          return ni(e.parent.moduleSpecifier, ds);
        case 275:
        case 282:
          return ni(e.parent.parent.moduleSpecifier, ds);
        case 277:
          return ni(e.parent.parent.parent.moduleSpecifier, ds);
        case 206:
          return ry(e) ? e.argument.literal : void 0;
        default:
          C.assertNever(e);
      }
    }
    function eM(e) {
      return bk(e) || C.failBadSyntaxKind(e.parent);
    }
    function bk(e) {
      switch (e.parent.kind) {
        case 273:
        case 279:
        case 352:
          return e.parent;
        case 284:
          return e.parent.parent;
        case 214:
          return Qu(e.parent) || Zu(e.parent, !1) ? e.parent : void 0;
        case 202:
          if (!ka(e)) break;
          return ni(e.parent.parent, e_);
        default:
          return;
      }
    }
    function Tk(e, t) {
      return !!t.rewriteRelativeImportExtensions && Zp(e) && !ad(e) && f1(e);
    }
    function yI(e) {
      switch (e.kind) {
        case 273:
        case 279:
        case 352:
          return e.moduleSpecifier;
        case 272:
          return e.moduleReference.kind === 284
            ? e.moduleReference.expression
            : void 0;
        case 206:
          return ry(e) ? e.argument.literal : void 0;
        case 214:
          return e.arguments[0];
        case 268:
          return e.name.kind === 11 ? e.name : void 0;
        default:
          return C.assertNever(e);
      }
    }
    function ZR(e) {
      switch (e.kind) {
        case 273:
          return e.importClause && ni(e.importClause.namedBindings, Ig);
        case 272:
          return e;
        case 279:
          return e.exportClause && ni(e.exportClause, O_);
        default:
          return C.assertNever(e);
      }
    }
    function s1(e) {
      return (
        (e.kind === 273 || e.kind === 352) &&
        !!e.importClause &&
        !!e.importClause.name
      );
    }
    function hne(e, t) {
      if (e.name) {
        const r = t(e);
        if (r) return r;
      }
      if (e.namedBindings) {
        const r = Ig(e.namedBindings)
          ? t(e.namedBindings)
          : Ye(e.namedBindings.elements, t);
        if (r) return r;
      }
    }
    function vI(e) {
      switch (e.kind) {
        case 170:
        case 175:
        case 174:
        case 305:
        case 304:
        case 173:
        case 172:
          return e.questionToken !== void 0;
      }
      return !1;
    }
    function bI(e) {
      const t = DD(e) ? Ac(e.parameters) : void 0,
        r = ni(t && t.name, He);
      return !!r && r.escapedText === "new";
    }
    function hm(e) {
      return e.kind === 347 || e.kind === 339 || e.kind === 341;
    }
    function Sk(e) {
      return hm(e) || vm(e);
    }
    function dGe(e) {
      return od(e) && Nr(e.expression) && e.expression.operatorToken.kind === 64
        ? _k(e.expression)
        : void 0;
    }
    function S0e(e) {
      return od(e) &&
        Nr(e.expression) &&
        oc(e.expression) !== 0 &&
        Nr(e.expression.right) &&
        (e.expression.right.operatorToken.kind === 57 ||
          e.expression.right.operatorToken.kind === 61)
        ? e.expression.right.right
        : void 0;
    }
    function E0e(e) {
      switch (e.kind) {
        case 244:
          const t = TI(e);
          return t && t.initializer;
        case 173:
          return e.initializer;
        case 304:
          return e.initializer;
      }
    }
    function TI(e) {
      return ac(e) ? Ac(e.declarationList.declarations) : void 0;
    }
    function A0e(e) {
      return uc(e) && e.body && e.body.kind === 268 ? e.body : void 0;
    }
    function eD(e) {
      if (e.kind >= 244 && e.kind <= 260) return !0;
      switch (e.kind) {
        case 80:
        case 110:
        case 108:
        case 167:
        case 237:
        case 213:
        case 212:
        case 209:
        case 219:
        case 220:
        case 175:
        case 178:
        case 179:
          return !0;
        default:
          return !1;
      }
    }
    function Ek(e) {
      switch (e.kind) {
        case 220:
        case 227:
        case 242:
        case 253:
        case 180:
        case 297:
        case 264:
        case 232:
        case 176:
        case 177:
        case 186:
        case 181:
        case 252:
        case 260:
        case 247:
        case 213:
        case 243:
        case 1:
        case 267:
        case 307:
        case 278:
        case 279:
        case 282:
        case 245:
        case 250:
        case 251:
        case 249:
        case 263:
        case 219:
        case 185:
        case 178:
        case 80:
        case 246:
        case 273:
        case 272:
        case 182:
        case 265:
        case 318:
        case 324:
        case 257:
        case 175:
        case 174:
        case 268:
        case 203:
        case 271:
        case 211:
        case 170:
        case 218:
        case 212:
        case 304:
        case 173:
        case 172:
        case 254:
        case 241:
        case 179:
        case 305:
        case 306:
        case 256:
        case 258:
        case 259:
        case 266:
        case 169:
        case 261:
        case 244:
        case 248:
        case 255:
          return !0;
        default:
          return !1;
      }
    }
    function WG(e, t) {
      let r;
      HN(e) &&
        Zy(e) &&
        ef(e.initializer) &&
        (r = Xr(r, I0e(e, e.initializer.jsDoc)));
      let i = e;
      for (; i && i.parent; ) {
        if ((ef(i) && (r = Xr(r, I0e(e, i.jsDoc))), i.kind === 170)) {
          r = Xr(r, (t ? Uee : OR)(i));
          break;
        }
        if (i.kind === 169) {
          r = Xr(r, (t ? qee : Hee)(i));
          break;
        }
        i = FG(i);
      }
      return r || ae;
    }
    function I0e(e, t) {
      const r = Ba(t);
      return Ki(t, (i) => {
        if (i === r) {
          const o = Un(i.tags, (s) => uGe(e, s));
          return i.tags === o ? [i] : o;
        } else return Un(i.tags, CD);
      });
    }
    function uGe(e, t) {
      return (
        !(KM(t) || D4(t)) ||
        !t.parent ||
        !mh(t.parent) ||
        !Ou(t.parent.parent) ||
        t.parent.parent === e
      );
    }
    function FG(e) {
      const t = e.parent;
      if (
        t.kind === 304 ||
        t.kind === 278 ||
        t.kind === 173 ||
        (t.kind === 245 && e.kind === 212) ||
        t.kind === 254 ||
        A0e(t) ||
        id(e)
      )
        return t;
      if (t.parent && (TI(t.parent) === e || id(t))) return t.parent;
      if (
        t.parent &&
        t.parent.parent &&
        (TI(t.parent.parent) ||
          E0e(t.parent.parent) === e ||
          S0e(t.parent.parent))
      )
        return t.parent.parent;
    }
    function Ak(e) {
      if (e.symbol) return e.symbol;
      if (!He(e.name)) return;
      const t = e.name.escapedText,
        r = BT(e);
      if (!r) return;
      const i = hn(
        r.parameters,
        (o) => o.name.kind === 80 && o.name.escapedText === t,
      );
      return i && i.symbol;
    }
    function a6(e) {
      if (mh(e.parent) && e.parent.tags) {
        const t = hn(e.parent.tags, hm);
        if (t) return t;
      }
      return BT(e);
    }
    function zG(e) {
      return fF(e, CD);
    }
    function BT(e) {
      const t = GT(e);
      if (t) return Su(t) && t.type && Yo(t.type) ? t.type : Yo(t) ? t : void 0;
    }
    function GT(e) {
      const t = IS(e);
      if (t) return S0e(t) || dGe(t) || E0e(t) || TI(t) || A0e(t) || t;
    }
    function IS(e) {
      const t = tD(e);
      if (!t) return;
      const r = t.parent;
      if (r && r.jsDoc && t === Zs(r.jsDoc)) return r;
    }
    function tD(e) {
      return Dn(e.parent, mh);
    }
    function _ne(e) {
      const t = e.name.escapedText,
        { typeParameters: r } = e.parent.parent.parent;
      return r && hn(r, (i) => i.name.escapedText === t);
    }
    function x0e(e) {
      return !!e.typeArguments;
    }
    var gne = ((e) => (
      (e[(e.None = 0)] = "None"),
      (e[(e.Definite = 1)] = "Definite"),
      (e[(e.Compound = 2)] = "Compound"),
      e
    ))(gne || {});
    function yne(e) {
      let t = e.parent;
      for (;;) {
        switch (t.kind) {
          case 227:
            const r = t,
              i = r.operatorToken.kind;
            return sy(i) && r.left === e ? r : void 0;
          case 225:
          case 226:
            const o = t,
              s = o.operator;
            return s === 46 || s === 47 ? o : void 0;
          case 250:
          case 251:
            const l = t;
            return l.initializer === e ? l : void 0;
          case 218:
          case 210:
          case 231:
          case 236:
            e = t;
            break;
          case 306:
            e = t.parent;
            break;
          case 305:
            if (t.name !== e) return;
            e = t.parent;
            break;
          case 304:
            if (t.name === e) return;
            e = t.parent;
            break;
          default:
            return;
        }
        t = e.parent;
      }
    }
    function bb(e) {
      const t = yne(e);
      if (!t) return 0;
      switch (t.kind) {
        case 227:
          const r = t.operatorToken.kind;
          return r === 64 || pM(r) ? 1 : 2;
        case 225:
        case 226:
          return 2;
        case 250:
        case 251:
          return 1;
      }
    }
    function Tb(e) {
      return !!yne(e);
    }
    function pGe(e) {
      const t = us(e.right);
      return t.kind === 227 && Uj(t.operatorToken.kind);
    }
    function BG(e) {
      const t = yne(e);
      return !!t && id(t, !0) && pGe(t);
    }
    function vne(e) {
      switch (e.kind) {
        case 242:
        case 244:
        case 255:
        case 246:
        case 256:
        case 270:
        case 297:
        case 298:
        case 257:
        case 249:
        case 250:
        case 251:
        case 247:
        case 248:
        case 259:
        case 300:
          return !0;
      }
      return !1;
    }
    function l1(e) {
      return Us(e) || Xs(e) || sI(e) || Zl(e) || Ml(e);
    }
    function R0e(e, t) {
      for (; e && e.kind === t; ) e = e.parent;
      return e;
    }
    function Ik(e) {
      return R0e(e, 197);
    }
    function zm(e) {
      return R0e(e, 218);
    }
    function bne(e) {
      let t;
      for (; e && e.kind === 197; ) ((t = e), (e = e.parent));
      return [t, e];
    }
    function tM(e) {
      for (; v1(e); ) e = e.type;
      return e;
    }
    function us(e, t) {
      return Ul(e, t ? -2147483647 : 1);
    }
    function GG(e) {
      return e.kind !== 212 && e.kind !== 213
        ? !1
        : ((e = zm(e.parent)), e && e.kind === 221);
    }
    function xS(e, t) {
      for (; e; ) {
        if (e === t) return !0;
        e = e.parent;
      }
      return !1;
    }
    function L_(e) {
      return !Yi(e) && !Qo(e) && rd(e.parent) && e.parent.name === e;
    }
    function nM(e) {
      const t = e.parent;
      switch (e.kind) {
        case 11:
        case 15:
        case 9:
          if (va(t)) return t.parent;
        case 80:
          if (rd(t)) return t.name === e ? t : void 0;
          if (ku(t)) {
            const r = t.parent;
            return mf(r) && r.name === t ? r : void 0;
          } else {
            const r = t.parent;
            return Nr(r) &&
              oc(r) !== 0 &&
              (r.left.symbol || r.symbol) &&
              Oo(r) === e
              ? r
              : void 0;
          }
        case 81:
          return rd(t) && t.name === e ? t : void 0;
        default:
          return;
      }
    }
    function xk(e) {
      return uf(e) && e.parent.kind === 168 && rd(e.parent.parent);
    }
    function Tne(e) {
      const t = e.parent;
      switch (t.kind) {
        case 173:
        case 172:
        case 175:
        case 174:
        case 178:
        case 179:
        case 307:
        case 304:
        case 212:
          return t.name === e;
        case 167:
          return t.right === e;
        case 209:
        case 277:
          return t.propertyName === e;
        case 282:
        case 292:
        case 286:
        case 287:
        case 288:
          return !0;
      }
      return !1;
    }
    function VG(e) {
      switch (e.parent.kind) {
        case 274:
        case 277:
        case 275:
        case 282:
        case 278:
        case 272:
        case 281:
          return e.parent;
        case 167:
          do e = e.parent;
          while (e.parent.kind === 167);
          return VG(e);
      }
    }
    function s6(e) {
      return Ds(e) || dc(e);
    }
    function Rk(e) {
      const t = jG(e);
      return s6(t);
    }
    function jG(e) {
      return ll(e) ? e.expression : e.right;
    }
    function Sne(e) {
      return e.kind === 305
        ? e.name
        : e.kind === 304
          ? e.initializer
          : e.parent.right;
    }
    function lh(e) {
      const t = RS(e);
      if (t && Ir(e)) {
        const r = Kee(e);
        if (r) return r.class;
      }
      return t;
    }
    function RS(e) {
      const t = Dk(e.heritageClauses, 96);
      return t && t.types.length > 0 ? t.types[0] : void 0;
    }
    function nD(e) {
      if (Ir(e)) return Xee(e).map((t) => t.class);
      {
        const t = Dk(e.heritageClauses, 119);
        return t?.types;
      }
    }
    function rM(e) {
      return gd(e) ? iM(e) || ae : (ui(e) && so(eI(lh(e)), nD(e))) || ae;
    }
    function iM(e) {
      const t = Dk(e.heritageClauses, 96);
      return t ? t.types : void 0;
    }
    function Dk(e, t) {
      if (e) {
        for (const r of e) if (r.token === t) return r;
      }
    }
    function VT(e, t) {
      for (; e; ) {
        if (e.kind === t) return e;
        e = e.parent;
      }
    }
    function ep(e) {
      return 83 <= e && e <= 166;
    }
    function UG(e) {
      return 19 <= e && e <= 79;
    }
    function l6(e) {
      return ep(e) || UG(e);
    }
    function c6(e) {
      return 128 <= e && e <= 166;
    }
    function HG(e) {
      return ep(e) && !c6(e);
    }
    function SI(e) {
      const t = HE(e);
      return t !== void 0 && HG(t);
    }
    function qG(e) {
      const t = JE(e);
      return !!t && !c6(t);
    }
    function rD(e) {
      return 2 <= e && e <= 7;
    }
    var Ene = ((e) => (
      (e[(e.Normal = 0)] = "Normal"),
      (e[(e.Generator = 1)] = "Generator"),
      (e[(e.Async = 2)] = "Async"),
      (e[(e.Invalid = 4)] = "Invalid"),
      (e[(e.AsyncGenerator = 3)] = "AsyncGenerator"),
      e
    ))(Ene || {});
    function cc(e) {
      if (!e) return 4;
      let t = 0;
      switch (e.kind) {
        case 263:
        case 219:
        case 175:
          e.asteriskToken && (t |= 1);
        case 220:
          di(e, 1024) && (t |= 2);
          break;
      }
      return (e.body || (t |= 4), t);
    }
    function oM(e) {
      switch (e.kind) {
        case 263:
        case 219:
        case 220:
        case 175:
          return e.body !== void 0 && e.asteriskToken === void 0 && di(e, 1024);
      }
      return !1;
    }
    function uf(e) {
      return ds(e) || np(e);
    }
    function d6(e) {
      return YT(e) && (e.operator === 40 || e.operator === 41) && np(e.operand);
    }
    function oy(e) {
      const t = Oo(e);
      return !!t && u6(t);
    }
    function u6(e) {
      if (!(e.kind === 168 || e.kind === 213)) return !1;
      const t = Ws(e) ? us(e.argumentExpression) : e.expression;
      return !uf(t) && !d6(t);
    }
    function c1(e) {
      switch (e.kind) {
        case 80:
        case 81:
          return e.escapedText;
        case 11:
        case 15:
        case 9:
        case 10:
          return Cl(e.text);
        case 168:
          const t = e.expression;
          return uf(t)
            ? Cl(t.text)
            : d6(t)
              ? t.operator === 41
                ? _a(t.operator) + t.operand.text
                : t.operand.text
              : void 0;
        case 296:
          return OI(e);
        default:
          return C.assertNever(e);
      }
    }
    function qh(e) {
      switch (e.kind) {
        case 80:
        case 11:
        case 15:
        case 9:
          return !0;
        default:
          return !1;
      }
    }
    function zf(e) {
      return dg(e) ? Kr(e) : fh(e) ? LM(e) : e.text;
    }
    function aM(e) {
      return dg(e) ? e.escapedText : fh(e) ? OI(e) : Cl(e.text);
    }
    function Ck(e, t) {
      return `__#${Ta(e)}@${t}`;
    }
    function sM(e) {
      return po(e.escapedName, "__@");
    }
    function Ane(e) {
      return po(e.escapedName, "__#");
    }
    function fGe(e) {
      return He(e) ? Kr(e) === "__proto__" : ka(e) && e.text === "__proto__";
    }
    function p6(e, t) {
      switch (((e = Ul(e)), e.kind)) {
        case 232:
          if ($U(e)) return !1;
          break;
        case 219:
          if (e.name) return !1;
          break;
        case 220:
          break;
        default:
          return !1;
      }
      return typeof t == "function" ? t(e) : !0;
    }
    function JG(e) {
      switch (e.kind) {
        case 304:
          return !fGe(e.name);
        case 305:
          return !!e.objectAssignmentInitializer;
        case 261:
          return He(e.name) && !!e.initializer;
        case 170:
          return He(e.name) && !!e.initializer && !e.dotDotDotToken;
        case 209:
          return He(e.name) && !!e.initializer && !e.dotDotDotToken;
        case 173:
          return !!e.initializer;
        case 227:
          switch (e.operatorToken.kind) {
            case 64:
            case 77:
            case 76:
            case 78:
              return He(e.left);
          }
          break;
        case 278:
          return !0;
      }
      return !1;
    }
    function Lp(e, t) {
      if (!JG(e)) return !1;
      switch (e.kind) {
        case 304:
          return p6(e.initializer, t);
        case 305:
          return p6(e.objectAssignmentInitializer, t);
        case 261:
        case 170:
        case 209:
        case 173:
          return p6(e.initializer, t);
        case 227:
          return p6(e.right, t);
        case 278:
          return p6(e.expression, t);
      }
    }
    function KG(e) {
      return e.escapedText === "push" || e.escapedText === "unshift";
    }
    function jT(e) {
      return Jh(e).kind === 170;
    }
    function Jh(e) {
      for (; e.kind === 209; ) e = e.parent.parent;
      return e;
    }
    function XG(e) {
      const t = e.kind;
      return (
        t === 177 ||
        t === 219 ||
        t === 263 ||
        t === 220 ||
        t === 175 ||
        t === 178 ||
        t === 179 ||
        t === 268 ||
        t === 308
      );
    }
    function Os(e) {
      return dh(e.pos) || dh(e.end);
    }
    var Ine = ((e) => (
      (e[(e.Left = 0)] = "Left"),
      (e[(e.Right = 1)] = "Right"),
      e
    ))(Ine || {});
    function YG(e) {
      const t = D0e(e),
        r = e.kind === 215 && e.arguments !== void 0;
      return $G(e.kind, t, r);
    }
    function $G(e, t, r) {
      switch (e) {
        case 215:
          return r ? 0 : 1;
        case 225:
        case 222:
        case 223:
        case 221:
        case 224:
        case 228:
        case 230:
          return 1;
        case 227:
          switch (t) {
            case 43:
            case 64:
            case 65:
            case 66:
            case 68:
            case 67:
            case 69:
            case 70:
            case 71:
            case 72:
            case 73:
            case 74:
            case 79:
            case 75:
            case 76:
            case 77:
            case 78:
              return 1;
          }
      }
      return 0;
    }
    function lM(e) {
      const t = D0e(e),
        r = e.kind === 215 && e.arguments !== void 0;
      return Nk(e.kind, t, r);
    }
    function D0e(e) {
      return e.kind === 227
        ? e.operatorToken.kind
        : e.kind === 225 || e.kind === 226
          ? e.operator
          : e.kind;
    }
    var xne = ((e) => (
      (e[(e.Comma = 0)] = "Comma"),
      (e[(e.Spread = 1)] = "Spread"),
      (e[(e.Yield = 2)] = "Yield"),
      (e[(e.Assignment = 3)] = "Assignment"),
      (e[(e.Conditional = 4)] = "Conditional"),
      (e[(e.LogicalOR = 5)] = "LogicalOR"),
      (e[(e.Coalesce = 5)] = "Coalesce"),
      (e[(e.LogicalAND = 6)] = "LogicalAND"),
      (e[(e.BitwiseOR = 7)] = "BitwiseOR"),
      (e[(e.BitwiseXOR = 8)] = "BitwiseXOR"),
      (e[(e.BitwiseAND = 9)] = "BitwiseAND"),
      (e[(e.Equality = 10)] = "Equality"),
      (e[(e.Relational = 11)] = "Relational"),
      (e[(e.Shift = 12)] = "Shift"),
      (e[(e.Additive = 13)] = "Additive"),
      (e[(e.Multiplicative = 14)] = "Multiplicative"),
      (e[(e.Exponentiation = 15)] = "Exponentiation"),
      (e[(e.Unary = 16)] = "Unary"),
      (e[(e.Update = 17)] = "Update"),
      (e[(e.LeftHandSide = 18)] = "LeftHandSide"),
      (e[(e.Member = 19)] = "Member"),
      (e[(e.Primary = 20)] = "Primary"),
      (e[(e.Highest = 20)] = "Highest"),
      (e[(e.Lowest = 0)] = "Lowest"),
      (e[(e.Invalid = -1)] = "Invalid"),
      e
    ))(xne || {});
    function Nk(e, t, r) {
      switch (e) {
        case 357:
          return 0;
        case 231:
          return 1;
        case 230:
          return 2;
        case 228:
          return 4;
        case 227:
          switch (t) {
            case 28:
              return 0;
            case 64:
            case 65:
            case 66:
            case 68:
            case 67:
            case 69:
            case 70:
            case 71:
            case 72:
            case 73:
            case 74:
            case 79:
            case 75:
            case 76:
            case 77:
            case 78:
              return 3;
            default:
              return Mk(t);
          }
        case 217:
        case 236:
        case 225:
        case 222:
        case 223:
        case 221:
        case 224:
          return 16;
        case 226:
          return 17;
        case 214:
          return 18;
        case 215:
          return r ? 19 : 18;
        case 216:
        case 212:
        case 213:
        case 237:
          return 19;
        case 235:
        case 239:
          return 11;
        case 110:
        case 108:
        case 80:
        case 81:
        case 106:
        case 112:
        case 97:
        case 9:
        case 10:
        case 11:
        case 210:
        case 211:
        case 219:
        case 220:
        case 232:
        case 14:
        case 15:
        case 229:
        case 218:
        case 233:
        case 285:
        case 286:
        case 289:
          return 20;
        default:
          return -1;
      }
    }
    function Mk(e) {
      switch (e) {
        case 61:
          return 5;
        case 57:
          return 5;
        case 56:
          return 6;
        case 52:
          return 7;
        case 53:
          return 8;
        case 51:
          return 9;
        case 35:
        case 36:
        case 37:
        case 38:
          return 10;
        case 30:
        case 32:
        case 33:
        case 34:
        case 104:
        case 103:
        case 130:
        case 152:
          return 11;
        case 48:
        case 49:
        case 50:
          return 12;
        case 40:
        case 41:
          return 13;
        case 42:
        case 44:
        case 45:
          return 14;
        case 43:
          return 15;
      }
      return -1;
    }
    function iD(e) {
      return Un(e, (t) => {
        switch (t.kind) {
          case 295:
            return !!t.expression;
          case 12:
            return !t.containsOnlyTriviaWhiteSpaces;
          default:
            return !0;
        }
      });
    }
    function cM() {
      let e = [];
      const t = [],
        r = new Map();
      let i = !1;
      return { add: s, lookup: o, getGlobalDiagnostics: l, getDiagnostics: u };
      function o(d) {
        let _;
        if ((d.file ? (_ = r.get(d.file.fileName)) : (_ = e), !_)) return;
        const h = Zv(_, d, Vs, sre);
        if (h >= 0) return _[h];
        if (~h > 0 && k6(d, _[~h - 1])) return _[~h - 1];
      }
      function s(d) {
        let _;
        (d.file
          ? ((_ = r.get(d.file.fileName)),
            _ ||
              ((_ = []), r.set(d.file.fileName, _), $v(t, d.file.fileName, Wd)))
          : (i && ((i = !1), (e = e.slice())), (_ = e)),
          $v(_, d, sre, k6));
      }
      function l() {
        return ((i = !0), e);
      }
      function u(d) {
        if (d) return r.get(d) || [];
        const _ = yc(t, (h) => r.get(h));
        return (e.length && _.unshift(...e), _);
      }
    }
    var mGe = /\$\{/g;
    function QG(e) {
      return e.replace(mGe, "\\${");
    }
    function Rne(e) {
      return !!((e.templateFlags || 0) & 2048);
    }
    function ZG(e) {
      return (
        e &&
        !!(g1(e)
          ? Rne(e)
          : Rne(e.head) || yt(e.templateSpans, (t) => Rne(t.literal)))
      );
    }
    var hGe = /[\\"\u0000-\u001f\u2028\u2029\u0085]/g,
      _Ge = /[\\'\u0000-\u001f\u2028\u2029\u0085]/g,
      gGe = /\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,
      yGe = new Map(
        Object.entries({
          "	": "\\t",
          "\v": "\\v",
          "\f": "\\f",
          "\b": "\\b",
          "\r": "\\r",
          "\n": "\\n",
          "\\": "\\\\",
          '"': '\\"',
          "'": "\\'",
          "`": "\\`",
          "\u2028": "\\u2028",
          "\u2029": "\\u2029",
          "": "\\u0085",
          "\r\n": "\\r\\n",
        }),
      );
    function C0e(e) {
      return "\\u" + ("0000" + e.toString(16).toUpperCase()).slice(-4);
    }
    function vGe(e, t, r) {
      if (e.charCodeAt(0) === 0) {
        const i = r.charCodeAt(t + e.length);
        return i >= 48 && i <= 57 ? "\\x00" : "\\0";
      }
      return yGe.get(e) || C0e(e.charCodeAt(0));
    }
    function k_(e, t) {
      const r = t === 96 ? gGe : t === 39 ? _Ge : hGe;
      return e.replace(r, vGe);
    }
    var N0e = /[^\u0000-\u007F]/g;
    function f6(e, t) {
      return (
        (e = k_(e, t)),
        N0e.test(e) ? e.replace(N0e, (r) => C0e(r.charCodeAt(0))) : e
      );
    }
    var bGe = /["\u0000-\u001f\u2028\u2029\u0085]/g,
      TGe = /['\u0000-\u001f\u2028\u2029\u0085]/g,
      SGe = new Map(Object.entries({ '"': "&quot;", "'": "&apos;" }));
    function EGe(e) {
      return "&#x" + e.toString(16).toUpperCase() + ";";
    }
    function AGe(e) {
      return e.charCodeAt(0) === 0
        ? "&#0;"
        : SGe.get(e) || EGe(e.charCodeAt(0));
    }
    function eV(e, t) {
      const r = t === 39 ? TGe : bGe;
      return e.replace(r, AGe);
    }
    function _m(e) {
      const t = e.length;
      return t >= 2 &&
        e.charCodeAt(0) === e.charCodeAt(t - 1) &&
        IGe(e.charCodeAt(0))
        ? e.substring(1, t - 1)
        : e;
    }
    function IGe(e) {
      return e === 39 || e === 34 || e === 96;
    }
    function oD(e) {
      const t = e.charCodeAt(0);
      return (t >= 97 && t <= 122) || e.includes("-");
    }
    var Pk = ["", "    "];
    function m6(e) {
      const t = Pk[1];
      for (let r = Pk.length; r <= e; r++) Pk.push(Pk[r - 1] + t);
      return Pk[e];
    }
    function Lk() {
      return Pk[1].length;
    }
    function kk(e) {
      var t,
        r,
        i,
        o,
        s,
        l = !1;
      function u(N) {
        const P = iI(N);
        P.length > 1
          ? ((o = o + P.length - 1),
            (s = t.length - N.length + Ba(P)),
            (i = s - t.length === 0))
          : (i = !1);
      }
      function d(N) {
        N && N.length && (i && ((N = m6(r) + N), (i = !1)), (t += N), u(N));
      }
      function _(N) {
        (N && (l = !1), d(N));
      }
      function h(N) {
        (N && (l = !0), d(N));
      }
      function g() {
        ((t = ""), (r = 0), (i = !0), (o = 0), (s = 0), (l = !1));
      }
      function E(N) {
        N !== void 0 && ((t += N), u(N), (l = !1));
      }
      function A(N) {
        N && N.length && _(N);
      }
      function R(N) {
        (!i || N) && ((t += e), o++, (s = t.length), (i = !0), (l = !1));
      }
      return (
        g(),
        {
          write: _,
          rawWrite: E,
          writeLiteral: A,
          writeLine: R,
          increaseIndent: () => {
            r++;
          },
          decreaseIndent: () => {
            r--;
          },
          getIndent: () => r,
          getTextPos: () => t.length,
          getLine: () => o,
          getColumn: () => (i ? r * Lk() : t.length - s),
          getText: () => t,
          isAtStartOfLine: () => i,
          hasTrailingComment: () => l,
          hasTrailingWhitespace: () =>
            !!t.length && sg(t.charCodeAt(t.length - 1)),
          clear: g,
          writeKeyword: _,
          writeOperator: _,
          writeParameter: _,
          writeProperty: _,
          writePunctuation: _,
          writeSpace: _,
          writeStringLiteral: _,
          writeSymbol: (N, P) => _(N),
          writeTrailingSemicolon: _,
          writeComment: h,
        }
      );
    }
    function tV(e) {
      let t = !1;
      function r() {
        t && (e.writeTrailingSemicolon(";"), (t = !1));
      }
      return {
        ...e,
        writeTrailingSemicolon() {
          t = !0;
        },
        writeLiteral(i) {
          (r(), e.writeLiteral(i));
        },
        writeStringLiteral(i) {
          (r(), e.writeStringLiteral(i));
        },
        writeSymbol(i, o) {
          (r(), e.writeSymbol(i, o));
        },
        writePunctuation(i) {
          (r(), e.writePunctuation(i));
        },
        writeKeyword(i) {
          (r(), e.writeKeyword(i));
        },
        writeOperator(i) {
          (r(), e.writeOperator(i));
        },
        writeParameter(i) {
          (r(), e.writeParameter(i));
        },
        writeSpace(i) {
          (r(), e.writeSpace(i));
        },
        writeProperty(i) {
          (r(), e.writeProperty(i));
        },
        writeComment(i) {
          (r(), e.writeComment(i));
        },
        writeLine() {
          (r(), e.writeLine());
        },
        increaseIndent() {
          (r(), e.increaseIndent());
        },
        decreaseIndent() {
          (r(), e.decreaseIndent());
        },
      };
    }
    function d1(e) {
      return e.useCaseSensitiveFileNames ? e.useCaseSensitiveFileNames() : !1;
    }
    function ay(e) {
      return Fd(d1(e));
    }
    function nV(e, t, r) {
      return t.moduleName || rV(e, t.fileName, r && r.fileName);
    }
    function M0e(e, t) {
      return e.getCanonicalFileName(To(t, e.getCurrentDirectory()));
    }
    function Dne(e, t, r) {
      const i = t.getExternalModuleFileFromDeclaration(r);
      if (!i || i.isDeclarationFile) return;
      const o = yI(r);
      if (
        !(
          o &&
          ds(o) &&
          !Zp(o.text) &&
          !M0e(e, i.path).includes(M0e(e, Uc(e.getCommonSourceDirectory())))
        )
      )
        return nV(e, i);
    }
    function rV(e, t, r) {
      const i = (d) => e.getCanonicalFileName(d),
        o = ks(
          r ? ci(r) : e.getCommonSourceDirectory(),
          e.getCurrentDirectory(),
          i,
        ),
        s = To(t, e.getCurrentDirectory()),
        l = PR(o, s, o, i, !1),
        u = Tu(l);
      return r ? UE(u) : u;
    }
    function Cne(e, t, r) {
      const i = t.getCompilerOptions();
      let o;
      return (i.outDir ? (o = Tu(v6(e, t, i.outDir))) : (o = Tu(e)), o + r);
    }
    function Nne(e, t) {
      return h6(e, t.getCompilerOptions(), t);
    }
    function h6(e, t, r) {
      const i = t.declarationDir || t.outDir,
        o = i
          ? Mne(
              e,
              i,
              r.getCurrentDirectory(),
              r.getCommonSourceDirectory(),
              (l) => r.getCanonicalFileName(l),
            )
          : e,
        s = _6(o);
      return Tu(o) + s;
    }
    function _6(e) {
      return $l(e, [".mjs", ".mts"])
        ? ".d.mts"
        : $l(e, [".cjs", ".cts"])
          ? ".d.cts"
          : $l(e, [".json"])
            ? ".d.json.ts"
            : ".d.ts";
    }
    function iV(e) {
      return $l(e, [".d.mts", ".mjs", ".mts"])
        ? [".mts", ".mjs"]
        : $l(e, [".d.cts", ".cjs", ".cts"])
          ? [".cts", ".cjs"]
          : $l(e, [".d.json.ts"])
            ? [".json"]
            : [".tsx", ".ts", ".jsx", ".js"];
    }
    function oV(e, t, r, i) {
      return r ? ab(i(), cf(r, e, t)) : e;
    }
    function g6(e, t) {
      var r;
      if (e.paths)
        return (
          e.baseUrl ??
          C.checkDefined(
            e.pathsBasePath ||
              ((r = t.getCurrentDirectory) == null ? void 0 : r.call(t)),
            "Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.",
          )
        );
    }
    function y6(e, t, r) {
      const i = e.getCompilerOptions();
      if (i.outFile) {
        const o = bu(i),
          s = i.emitDeclarationOnly || o === 2 || o === 4;
        return Un(e.getSourceFiles(), (l) => (s || !zc(l)) && DS(l, e, r));
      } else {
        const o = t === void 0 ? e.getSourceFiles() : [t];
        return Un(o, (s) => DS(s, e, r));
      }
    }
    function DS(e, t, r) {
      const i = t.getCompilerOptions();
      if (
        (i.noEmitForJsFiles && Pu(e)) ||
        e.isDeclarationFile ||
        t.isSourceFileFromExternalLibrary(e)
      )
        return !1;
      if (r) return !0;
      if (t.isSourceOfProjectReferenceRedirect(e.fileName)) return !1;
      if (!Ff(e)) return !0;
      if (t.getRedirectFromSourceFile(e.fileName)) return !1;
      if (i.outFile) return !0;
      if (!i.outDir) return !1;
      if (i.rootDir || (i.composite && i.configFilePath)) {
        const o = To(
            gP(i, () => [], t.getCurrentDirectory(), t.getCanonicalFileName),
            t.getCurrentDirectory(),
          ),
          s = Mne(
            e.fileName,
            i.outDir,
            t.getCurrentDirectory(),
            o,
            t.getCanonicalFileName,
          );
        if (
          Zg(
            e.fileName,
            s,
            t.getCurrentDirectory(),
            !t.useCaseSensitiveFileNames(),
          ) === 0
        )
          return !1;
      }
      return !0;
    }
    function v6(e, t, r) {
      return Mne(
        e,
        r,
        t.getCurrentDirectory(),
        t.getCommonSourceDirectory(),
        (i) => t.getCanonicalFileName(i),
      );
    }
    function Mne(e, t, r, i, o) {
      let s = To(e, r);
      return (
        (s = o(s).indexOf(o(i)) === 0 ? s.substring(i.length) : s),
        Qr(t, s)
      );
    }
    function b6(e, t, r, i, o, s, l) {
      e.writeFile(
        r,
        i,
        o,
        (u) => {
          t.add(Il(f.Could_not_write_file_0_Colon_1, r, u));
        },
        s,
        l,
      );
    }
    function P0e(e, t, r) {
      if (e.length > zh(e) && !r(e)) {
        const i = ci(e);
        (P0e(i, t, r), t(e));
      }
    }
    function aV(e, t, r, i, o, s) {
      try {
        i(e, t, r);
      } catch {
        (P0e(ci(ya(e)), o, s), i(e, t, r));
      }
    }
    function dM(e, t) {
      const r = ag(e);
      return IN(r, t);
    }
    function aD(e, t) {
      return IN(e, t);
    }
    function yg(e) {
      return hn(e.members, (t) => Ml(t) && fm(t.body));
    }
    function uM(e) {
      if (e && e.parameters.length > 0) {
        const t = e.parameters.length === 2 && Sb(e.parameters[0]);
        return e.parameters[t ? 1 : 0];
      }
    }
    function Pne(e) {
      const t = uM(e);
      return t && t.type;
    }
    function CS(e) {
      if (e.parameters.length && !fv(e)) {
        const t = e.parameters[0];
        if (Sb(t)) return t;
      }
    }
    function Sb(e) {
      return Eb(e.name);
    }
    function Eb(e) {
      return !!e && e.kind === 80 && sV(e);
    }
    function EI(e) {
      return !!Dn(e, (t) =>
        t.kind === 187 ? !0 : t.kind === 80 || t.kind === 167 ? !1 : "quit",
      );
    }
    function NS(e) {
      if (!Eb(e)) return !1;
      for (; ku(e.parent) && e.parent.left === e; ) e = e.parent;
      return e.parent.kind === 187;
    }
    function sV(e) {
      return e.escapedText === "this";
    }
    function MS(e, t) {
      let r, i, o, s;
      return (
        oy(t)
          ? ((r = t),
            t.kind === 178
              ? (o = t)
              : t.kind === 179
                ? (s = t)
                : C.fail("Accessor has wrong kind"))
          : Ye(e, (l) => {
              if (fb(l) && ua(l) === ua(t)) {
                const u = c1(l.name),
                  d = c1(t.name);
                u === d &&
                  (r ? i || (i = l) : (r = l),
                  l.kind === 178 && !o && (o = l),
                  l.kind === 179 && !s && (s = l));
              }
            }),
        { firstAccessor: r, secondAccessor: i, getAccessor: o, setAccessor: s }
      );
    }
    function xc(e) {
      if ((!Ir(e) && Zl(e)) || vm(e)) return;
      const t = e.type;
      return t || !Ir(e)
        ? t
        : wN(e)
          ? e.typeExpression && e.typeExpression.type
          : $y(e);
    }
    function Lne(e) {
      return e.type;
    }
    function kp(e) {
      return fv(e)
        ? e.type && e.type.typeExpression && e.type.typeExpression.type
        : e.type || (Ir(e) ? w2(e) : void 0);
    }
    function T6(e) {
      return Ki(kT(e), (t) => (xGe(t) ? t.typeParameters : void 0));
    }
    function xGe(e) {
      return (
        bm(e) &&
        !(
          e.parent.kind === 321 &&
          (e.parent.tags.some(hm) || e.parent.tags.some(CD))
        )
      );
    }
    function lV(e) {
      const t = uM(e);
      return t && xc(t);
    }
    function RGe(e, t, r, i) {
      DGe(e, t, r.pos, i);
    }
    function DGe(e, t, r, i) {
      i &&
        i.length &&
        r !== i[0].pos &&
        aD(e, r) !== aD(e, i[0].pos) &&
        t.writeLine();
    }
    function kne(e, t, r, i) {
      r !== i && aD(e, r) !== aD(e, i) && t.writeLine();
    }
    function CGe(e, t, r, i, o, s, l, u) {
      if (i && i.length > 0) {
        let d = !1;
        for (const _ of i)
          (d && (r.writeSpace(" "), (d = !1)),
            u(e, t, r, _.pos, _.end, l),
            _.hasTrailingNewLine ? r.writeLine() : (d = !0));
        d && s && r.writeSpace(" ");
      }
    }
    function wne(e, t, r, i, o, s, l) {
      let u, d;
      if (
        (l ? o.pos === 0 && (u = Un(lg(e, o.pos), _)) : (u = lg(e, o.pos)), u)
      ) {
        const h = [];
        let g;
        for (const E of u) {
          if (g) {
            const A = aD(t, g.end);
            if (aD(t, E.pos) >= A + 2) break;
          }
          (h.push(E), (g = E));
        }
        if (h.length) {
          const E = aD(t, Ba(h).end);
          aD(t, La(e, o.pos)) >= E + 2 &&
            (RGe(t, r, o, u),
            CGe(e, t, r, h, !1, !0, s, i),
            (d = { nodePos: o.pos, detachedCommentEndPos: Ba(h).end }));
        }
      }
      return d;
      function _(h) {
        return wF(e, h.pos);
      }
    }
    function sD(e, t, r, i, o, s) {
      if (e.charCodeAt(i + 1) === 42) {
        const l = LR(t, i),
          u = t.length;
        let d;
        for (let _ = i, h = l.line; _ < o; h++) {
          const g = h + 1 === u ? e.length + 1 : t[h + 1];
          if (_ !== i) {
            d === void 0 && (d = L0e(e, t[l.line], i));
            const A = r.getIndent() * Lk() - d + L0e(e, _, g);
            if (A > 0) {
              let R = A % Lk();
              const N = m6((A - R) / Lk());
              for (r.rawWrite(N); R; ) (r.rawWrite(" "), R--);
            } else r.rawWrite("");
          }
          (NGe(e, o, r, s, _, g), (_ = g));
        }
      } else r.writeComment(e.substring(i, o));
    }
    function NGe(e, t, r, i, o, s) {
      const l = Math.min(t, s - 1),
        u = e.substring(o, l).trim();
      u ? (r.writeComment(u), l !== t && r.writeLine()) : r.rawWrite(i);
    }
    function L0e(e, t, r) {
      let i = 0;
      for (; t < r && Bh(e.charCodeAt(t)); t++)
        e.charCodeAt(t) === 9 ? (i += Lk() - (i % Lk())) : i++;
      return i;
    }
    function cV(e) {
      return Gd(e) !== 0;
    }
    function One(e) {
      return nv(e) !== 0;
    }
    function wp(e, t) {
      return !!AI(e, t);
    }
    function di(e, t) {
      return !!Wne(e, t);
    }
    function ua(e) {
      return (bc(e) && wc(e)) || Ql(e);
    }
    function wc(e) {
      return di(e, 256);
    }
    function S6(e) {
      return wp(e, 16);
    }
    function PS(e) {
      return di(e, 64);
    }
    function dV(e) {
      return di(e, 128);
    }
    function Kh(e) {
      return di(e, 512);
    }
    function u1(e) {
      return wp(e, 8);
    }
    function pf(e) {
      return di(e, 32768);
    }
    function AI(e, t) {
      return Gd(e) & t;
    }
    function Wne(e, t) {
      return nv(e) & t;
    }
    function Fne(e, t, r) {
      return e.kind >= 0 && e.kind <= 166
        ? 0
        : (e.modifierFlagsCache & 536870912 ||
            (e.modifierFlagsCache = uV(e) | 536870912),
          r || (t && Ir(e))
            ? (!(e.modifierFlagsCache & 268435456) &&
                e.parent &&
                (e.modifierFlagsCache |= k0e(e) | 268435456),
              w0e(e.modifierFlagsCache))
            : MGe(e.modifierFlagsCache));
    }
    function Gd(e) {
      return Fne(e, !0);
    }
    function zne(e) {
      return Fne(e, !0, !0);
    }
    function nv(e) {
      return Fne(e, !1);
    }
    function k0e(e) {
      let t = 0;
      return (
        e.parent &&
          !to(e) &&
          (Ir(e) &&
            (Yee(e) && (t |= 8388608),
            $ee(e) && (t |= 16777216),
            Qee(e) && (t |= 33554432),
            Zee(e) && (t |= 67108864),
            ete(e) && (t |= 134217728)),
          tte(e) && (t |= 65536)),
        t
      );
    }
    function MGe(e) {
      return e & 65535;
    }
    function w0e(e) {
      return (e & 131071) | ((e & 260046848) >>> 23);
    }
    function PGe(e) {
      return w0e(k0e(e));
    }
    function Bne(e) {
      return uV(e) | PGe(e);
    }
    function uV(e) {
      let t = Tm(e) ? Xh(e.modifiers) : 0;
      return (
        (e.flags & 8 || (e.kind === 80 && e.flags & 4096)) && (t |= 32),
        t
      );
    }
    function Xh(e) {
      let t = 0;
      if (e) for (const r of e) t |= II(r.kind);
      return t;
    }
    function II(e) {
      switch (e) {
        case 126:
          return 256;
        case 125:
          return 1;
        case 124:
          return 4;
        case 123:
          return 2;
        case 128:
          return 64;
        case 129:
          return 512;
        case 95:
          return 32;
        case 138:
          return 128;
        case 87:
          return 4096;
        case 90:
          return 2048;
        case 134:
          return 1024;
        case 148:
          return 8;
        case 164:
          return 16;
        case 103:
          return 8192;
        case 147:
          return 16384;
        case 171:
          return 32768;
      }
      return 0;
    }
    function wk(e) {
      return e === 57 || e === 56;
    }
    function Gne(e) {
      return wk(e) || e === 54;
    }
    function pM(e) {
      return e === 76 || e === 77 || e === 78;
    }
    function pV(e) {
      return Nr(e) && pM(e.operatorToken.kind);
    }
    function E6(e) {
      return wk(e) || e === 61;
    }
    function Ok(e) {
      return Nr(e) && E6(e.operatorToken.kind);
    }
    function sy(e) {
      return e >= 64 && e <= 79;
    }
    function fV(e) {
      const t = mV(e);
      return t && !t.isImplements ? t.class : void 0;
    }
    function mV(e) {
      if (dy(e)) {
        if (Fp(e.parent) && ui(e.parent.parent))
          return {
            class: e.parent.parent,
            isImplements: e.parent.token === 119,
          };
        if (QI(e.parent)) {
          const t = GT(e.parent);
          if (t && ui(t)) return { class: t, isImplements: !1 };
        }
      }
    }
    function id(e, t) {
      return (
        Nr(e) &&
        (t ? e.operatorToken.kind === 64 : sy(e.operatorToken.kind)) &&
        $u(e.left)
      );
    }
    function rv(e) {
      if (id(e, !0)) {
        const t = e.left.kind;
        return t === 211 || t === 210;
      }
      return !1;
    }
    function A6(e) {
      return fV(e) !== void 0;
    }
    function Ds(e) {
      return e.kind === 80 || Fk(e);
    }
    function Lu(e) {
      switch (e.kind) {
        case 80:
          return e;
        case 167:
          do e = e.left;
          while (e.kind !== 80);
          return e;
        case 212:
          do e = e.expression;
          while (e.kind !== 80);
          return e;
      }
    }
    function Wk(e) {
      return (
        e.kind === 80 ||
        e.kind === 110 ||
        e.kind === 108 ||
        e.kind === 237 ||
        (e.kind === 212 && Wk(e.expression)) ||
        (e.kind === 218 && Wk(e.expression))
      );
    }
    function Fk(e) {
      return qr(e) && He(e.name) && Ds(e.expression);
    }
    function zk(e) {
      if (qr(e)) {
        const t = zk(e.expression);
        if (t !== void 0) return t + "." + Mp(e.name);
      } else if (Ws(e)) {
        const t = zk(e.expression);
        if (t !== void 0 && vc(e.argumentExpression))
          return t + "." + c1(e.argumentExpression);
      } else {
        if (He(e)) return Gi(e.escapedText);
        if (fh(e)) return LM(e);
      }
    }
    function Ab(e) {
      return AS(e) && iy(e) === "prototype";
    }
    function fM(e) {
      return (
        (e.parent.kind === 167 && e.parent.right === e) ||
        (e.parent.kind === 212 && e.parent.name === e) ||
        (e.parent.kind === 237 && e.parent.name === e)
      );
    }
    function hV(e) {
      return (
        !!e.parent &&
        ((qr(e.parent) && e.parent.name === e) ||
          (Ws(e.parent) && e.parent.argumentExpression === e))
      );
    }
    function Vne(e) {
      return (
        (ku(e.parent) && e.parent.right === e) ||
        (qr(e.parent) && e.parent.name === e) ||
        (n0(e.parent) && e.parent.right === e)
      );
    }
    function I6(e) {
      return Nr(e) && e.operatorToken.kind === 104;
    }
    function jne(e) {
      return I6(e.parent) && e === e.parent.right;
    }
    function _V(e) {
      return e.kind === 211 && e.properties.length === 0;
    }
    function Une(e) {
      return e.kind === 210 && e.elements.length === 0;
    }
    function mM(e) {
      if (!(!LGe(e) || !e.declarations)) {
        for (const t of e.declarations) if (t.localSymbol) return t.localSymbol;
      }
    }
    function LGe(e) {
      return e && et(e.declarations) > 0 && di(e.declarations[0], 2048);
    }
    function x6(e) {
      return hn(sVe, (t) => El(e, t));
    }
    function kGe(e) {
      const t = [],
        r = e.length;
      for (let i = 0; i < r; i++) {
        const o = e.charCodeAt(i);
        o < 128
          ? t.push(o)
          : o < 2048
            ? (t.push((o >> 6) | 192), t.push((o & 63) | 128))
            : o < 65536
              ? (t.push((o >> 12) | 224),
                t.push(((o >> 6) & 63) | 128),
                t.push((o & 63) | 128))
              : o < 131072
                ? (t.push((o >> 18) | 240),
                  t.push(((o >> 12) & 63) | 128),
                  t.push(((o >> 6) & 63) | 128),
                  t.push((o & 63) | 128))
                : C.assert(!1, "Unexpected code point");
      }
      return t;
    }
    var xI =
      "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
    function Hne(e) {
      let t = "";
      const r = kGe(e);
      let i = 0;
      const o = r.length;
      let s, l, u, d;
      for (; i < o; )
        ((s = r[i] >> 2),
          (l = ((r[i] & 3) << 4) | (r[i + 1] >> 4)),
          (u = ((r[i + 1] & 15) << 2) | (r[i + 2] >> 6)),
          (d = r[i + 2] & 63),
          i + 1 >= o ? (u = d = 64) : i + 2 >= o && (d = 64),
          (t += xI.charAt(s) + xI.charAt(l) + xI.charAt(u) + xI.charAt(d)),
          (i += 3));
      return t;
    }
    function wGe(e) {
      let t = "",
        r = 0;
      const i = e.length;
      for (; r < i; ) {
        const o = e[r];
        if (o < 128) ((t += String.fromCharCode(o)), r++);
        else if ((o & 192) === 192) {
          let s = o & 63;
          r++;
          let l = e[r];
          for (; (l & 192) === 128; )
            ((s = (s << 6) | (l & 63)), r++, (l = e[r]));
          t += String.fromCharCode(s);
        } else ((t += String.fromCharCode(o)), r++);
      }
      return t;
    }
    function qne(e, t) {
      return e && e.base64encode ? e.base64encode(t) : Hne(t);
    }
    function Jne(e, t) {
      if (e && e.base64decode) return e.base64decode(t);
      const r = t.length,
        i = [];
      let o = 0;
      for (; o < r && t.charCodeAt(o) !== xI.charCodeAt(64); ) {
        const s = xI.indexOf(t[o]),
          l = xI.indexOf(t[o + 1]),
          u = xI.indexOf(t[o + 2]),
          d = xI.indexOf(t[o + 3]),
          _ = ((s & 63) << 2) | ((l >> 4) & 3),
          h = ((l & 15) << 4) | ((u >> 2) & 15),
          g = ((u & 3) << 6) | (d & 63);
        (h === 0 && u !== 0
          ? i.push(_)
          : g === 0 && d !== 0
            ? i.push(_, h)
            : i.push(_, h, g),
          (o += 4));
      }
      return wGe(i);
    }
    function gV(e, t) {
      const r = Bo(t) ? t : t.readFile(e);
      if (!r) return;
      let i = Bk(r);
      if (i === void 0) {
        const o = oU(e, r);
        o.error || (i = o.config);
      }
      return i;
    }
    function lD(e, t) {
      return gV(e, t) || {};
    }
    function Bk(e) {
      try {
        return JSON.parse(e);
      } catch {
        return;
      }
    }
    function ch(e, t) {
      return !t.directoryExists || t.directoryExists(e);
    }
    var OGe = `\r
`,
      WGe = `
`;
    function iv(e) {
      switch (e.newLine) {
        case 0:
          return OGe;
        case 1:
        case void 0:
          return WGe;
      }
    }
    function Bf(e, t = e) {
      return (C.assert(t >= e || t === -1), { pos: e, end: t });
    }
    function R6(e, t) {
      return Bf(e.pos, t);
    }
    function UT(e, t) {
      return Bf(t, e.end);
    }
    function ly(e) {
      const t = Tm(e) ? ga(e.modifiers, Wc) : void 0;
      return t && !dh(t.end) ? UT(e, t.end) : e;
    }
    function Yh(e) {
      if (Po(e) || Nl(e)) return UT(e, e.name.pos);
      const t = Tm(e) ? Zs(e.modifiers) : void 0;
      return t && !dh(t.end) ? UT(e, t.end) : ly(e);
    }
    function yV(e, t) {
      return Bf(e, e + _a(t).length);
    }
    function p1(e, t) {
      return Xne(e, e, t);
    }
    function D6(e, t, r) {
      return Gf(hM(e, r, !1), hM(t, r, !1), r);
    }
    function Kne(e, t, r) {
      return Gf(e.end, t.end, r);
    }
    function Xne(e, t, r) {
      return Gf(hM(e, r, !1), t.end, r);
    }
    function Gk(e, t, r) {
      return Gf(e.end, hM(t, r, !1), r);
    }
    function vV(e, t, r, i) {
      const o = hM(t, r, i);
      return xN(r, e.end, o);
    }
    function O0e(e, t, r) {
      return xN(r, e.end, t.end);
    }
    function Yne(e, t) {
      return !Gf(e.pos, e.end, t);
    }
    function Gf(e, t, r) {
      return xN(r, e, t) === 0;
    }
    function hM(e, t, r) {
      return dh(e.pos) ? -1 : La(t.text, e.pos, !1, r);
    }
    function $ne(e, t, r, i) {
      const o = La(r.text, e, !1, i),
        s = FGe(o, t, r);
      return xN(r, s ?? t, o);
    }
    function Qne(e, t, r, i) {
      const o = La(r.text, e, !1, i);
      return xN(r, e, Math.min(t, o));
    }
    function tp(e, t) {
      return bV(e.pos, e.end, t);
    }
    function bV(e, t, r) {
      return e <= r.pos && t >= r.end;
    }
    function FGe(e, t = 0, r) {
      for (; e-- > t; ) if (!sg(r.text.charCodeAt(e))) return e;
    }
    function TV(e) {
      const t = jo(e);
      if (t)
        switch (t.parent.kind) {
          case 267:
          case 268:
            return t === t.parent.name;
        }
      return !1;
    }
    function _M(e) {
      return Un(e.declarations, Vk);
    }
    function Vk(e) {
      return yi(e) && e.initializer !== void 0;
    }
    function SV(e) {
      return e.watch && Rs(e, "watch");
    }
    function Bm(e) {
      e.close();
    }
    function Wl(e) {
      return e.flags & 33554432 ? e.links.checkFlags : 0;
    }
    function Vf(e, t = !1) {
      if (e.valueDeclaration) {
        const r =
            (t && e.declarations && hn(e.declarations, gp)) ||
            (e.flags & 32768 && hn(e.declarations, Hf)) ||
            e.valueDeclaration,
          i = PT(r);
        return e.parent && e.parent.flags & 32 ? i : i & -8;
      }
      if (Wl(e) & 6) {
        const r = e.links.checkFlags,
          i = r & 1024 ? 2 : r & 256 ? 1 : 4,
          o = r & 2048 ? 256 : 0;
        return i | o;
      }
      return e.flags & 4194304 ? 257 : 0;
    }
    function xd(e, t) {
      return e.flags & 2097152 ? t.getAliasedSymbol(e) : e;
    }
    function cD(e) {
      return e.exportSymbol ? e.exportSymbol.flags | e.flags : e.flags;
    }
    function C6(e) {
      return gM(e) === 1;
    }
    function RI(e) {
      return gM(e) !== 0;
    }
    function gM(e) {
      const { parent: t } = e;
      switch (t?.kind) {
        case 218:
          return gM(t);
        case 226:
        case 225:
          const { operator: r } = t;
          return r === 46 || r === 47 ? 2 : 0;
        case 227:
          const { left: i, operatorToken: o } = t;
          return i === e && sy(o.kind) ? (o.kind === 64 ? 1 : 2) : 0;
        case 212:
          return t.name !== e ? 0 : gM(t);
        case 304: {
          const s = gM(t.parent);
          return e === t.name ? zGe(s) : s;
        }
        case 305:
          return e === t.objectAssignmentInitializer ? 0 : gM(t.parent);
        case 210:
          return gM(t);
        case 250:
        case 251:
          return e === t.initializer ? 1 : 0;
        default:
          return 0;
      }
    }
    function zGe(e) {
      switch (e) {
        case 0:
          return 1;
        case 1:
          return 0;
        case 2:
          return 2;
        default:
          return C.assertNever(e);
      }
    }
    function EV(e, t) {
      if (!e || !t || Object.keys(e).length !== Object.keys(t).length)
        return !1;
      for (const r in e)
        if (typeof e[r] == "object") {
          if (!EV(e[r], t[r])) return !1;
        } else if (typeof e[r] != "function" && e[r] !== t[r]) return !1;
      return !0;
    }
    function hp(e, t) {
      (e.forEach(t), e.clear());
    }
    function vg(e, t, r) {
      const { onDeleteValue: i, onExistingValue: o } = r;
      e.forEach((s, l) => {
        var u;
        t?.has(l)
          ? o && o(s, (u = t.get) == null ? void 0 : u.call(t, l), l)
          : (e.delete(l), i(s, l));
      });
    }
    function yM(e, t, r) {
      vg(e, t, r);
      const { createNewValue: i } = r;
      t?.forEach((o, s) => {
        e.has(s) || e.set(s, i(s, o));
      });
    }
    function Zne(e) {
      if (e.flags & 32) {
        const t = cy(e);
        return !!t && di(t, 64);
      }
      return !1;
    }
    function cy(e) {
      var t;
      return (t = e.declarations) == null ? void 0 : t.find(ui);
    }
    function Hr(e) {
      return e.flags & 3899393 ? e.objectFlags : 0;
    }
    function N6(e) {
      return (
        !!e && !!e.declarations && !!e.declarations[0] && yw(e.declarations[0])
      );
    }
    function ere({ moduleSpecifier: e }) {
      return ka(e) ? e.text : Al(e);
    }
    function AV(e) {
      let t;
      return (
        Jo(
          e,
          (r) => {
            fm(r) && (t = r);
          },
          (r) => {
            for (let i = r.length - 1; i >= 0; i--)
              if (fm(r[i])) {
                t = r[i];
                break;
              }
          },
        ),
        t
      );
    }
    function gm(e, t) {
      return e.has(t) ? !1 : (e.add(t), !0);
    }
    function DI(e) {
      return ui(e) || gd(e) || wu(e);
    }
    function IV(e) {
      return (
        (e >= 183 && e <= 206) ||
        e === 133 ||
        e === 159 ||
        e === 150 ||
        e === 163 ||
        e === 151 ||
        e === 136 ||
        e === 154 ||
        e === 155 ||
        e === 116 ||
        e === 157 ||
        e === 146 ||
        e === 141 ||
        e === 234 ||
        e === 313 ||
        e === 314 ||
        e === 315 ||
        e === 316 ||
        e === 317 ||
        e === 318 ||
        e === 319
      );
    }
    function Ks(e) {
      return e.kind === 212 || e.kind === 213;
    }
    function xV(e) {
      return e.kind === 212
        ? e.name
        : (C.assert(e.kind === 213), e.argumentExpression);
    }
    function M6(e) {
      return e.kind === 276 || e.kind === 280;
    }
    function dD(e) {
      for (; Ks(e); ) e = e.expression;
      return e;
    }
    function tre(e, t) {
      if (Ks(e.parent) && hV(e)) return r(e.parent);
      function r(i) {
        if (i.kind === 212) {
          const o = t(i.name);
          if (o !== void 0) return o;
        } else if (i.kind === 213)
          if (He(i.argumentExpression) || ds(i.argumentExpression)) {
            const o = t(i.argumentExpression);
            if (o !== void 0) return o;
          } else return;
        if (Ks(i.expression)) return r(i.expression);
        if (He(i.expression)) return t(i.expression);
      }
    }
    function uD(e, t) {
      for (;;) {
        switch (e.kind) {
          case 226:
            e = e.operand;
            continue;
          case 227:
            e = e.left;
            continue;
          case 228:
            e = e.condition;
            continue;
          case 216:
            e = e.tag;
            continue;
          case 214:
            if (t) return e;
          case 235:
          case 213:
          case 212:
          case 236:
          case 356:
          case 239:
            e = e.expression;
            continue;
        }
        return e;
      }
    }
    function BGe(e, t) {
      ((this.flags = e),
        (this.escapedName = t),
        (this.declarations = void 0),
        (this.valueDeclaration = void 0),
        (this.id = 0),
        (this.mergeId = 0),
        (this.parent = void 0),
        (this.members = void 0),
        (this.exports = void 0),
        (this.exportSymbol = void 0),
        (this.constEnumOnlyModule = void 0),
        (this.isReferenced = void 0),
        (this.lastAssignmentPos = void 0),
        (this.links = void 0));
    }
    function GGe(e, t) {
      ((this.flags = t), (C.isDebugging || xr) && (this.checker = e));
    }
    function VGe(e, t) {
      ((this.flags = t), C.isDebugging && (this.checker = e));
    }
    function nre(e, t, r) {
      ((this.pos = t),
        (this.end = r),
        (this.kind = e),
        (this.id = 0),
        (this.flags = 0),
        (this.modifierFlagsCache = 0),
        (this.transformFlags = 0),
        (this.parent = void 0),
        (this.original = void 0),
        (this.emitNode = void 0));
    }
    function jGe(e, t, r) {
      ((this.pos = t),
        (this.end = r),
        (this.kind = e),
        (this.id = 0),
        (this.flags = 0),
        (this.transformFlags = 0),
        (this.parent = void 0),
        (this.emitNode = void 0));
    }
    function UGe(e, t, r) {
      ((this.pos = t),
        (this.end = r),
        (this.kind = e),
        (this.id = 0),
        (this.flags = 0),
        (this.transformFlags = 0),
        (this.parent = void 0),
        (this.original = void 0),
        (this.emitNode = void 0));
    }
    function HGe(e, t, r) {
      ((this.fileName = e),
        (this.text = t),
        (this.skipTrivia = r || ((i) => i)));
    }
    var Rd = {
        getNodeConstructor: () => nre,
        getTokenConstructor: () => jGe,
        getIdentifierConstructor: () => UGe,
        getPrivateIdentifierConstructor: () => nre,
        getSourceFileConstructor: () => nre,
        getSymbolConstructor: () => BGe,
        getTypeConstructor: () => GGe,
        getSignatureConstructor: () => VGe,
        getSourceMapSourceConstructor: () => HGe,
      },
      W0e = [];
    function F0e(e) {
      (W0e.push(e), e(Rd));
    }
    function rre(e) {
      (Object.assign(Rd, e), Ye(W0e, (t) => t(Rd)));
    }
    function bg(e, t) {
      return e.replace(/\{(\d+)\}/g, (r, i) => "" + C.checkDefined(t[+i]));
    }
    var P6;
    function ire(e) {
      P6 = e;
    }
    function ore(e) {
      !P6 && e && (P6 = e());
    }
    function Ho(e) {
      return (P6 && P6[e.key]) || e.message;
    }
    function CI(e, t, r, i, o, ...s) {
      (r + i > t.length && (i = t.length - r), Ute(t, r, i));
      let l = Ho(o);
      return (
        yt(s) && (l = bg(l, s)),
        {
          file: void 0,
          start: r,
          length: i,
          messageText: l,
          category: o.category,
          code: o.code,
          reportsUnnecessary: o.reportsUnnecessary,
          fileName: e,
        }
      );
    }
    function qGe(e) {
      return (
        e.file === void 0 &&
        e.start !== void 0 &&
        e.length !== void 0 &&
        typeof e.fileName == "string"
      );
    }
    function z0e(e, t) {
      const r = t.fileName || "",
        i = t.text.length;
      (C.assertEqual(e.fileName, r),
        C.assertLessThanOrEqual(e.start, i),
        C.assertLessThanOrEqual(e.start + e.length, i));
      const o = {
        file: t,
        start: e.start,
        length: e.length,
        messageText: e.messageText,
        category: e.category,
        code: e.code,
        reportsUnnecessary: e.reportsUnnecessary,
      };
      if (e.relatedInformation) {
        o.relatedInformation = [];
        for (const s of e.relatedInformation)
          qGe(s) && s.fileName === r
            ? (C.assertLessThanOrEqual(s.start, i),
              C.assertLessThanOrEqual(s.start + s.length, i),
              o.relatedInformation.push(z0e(s, t)))
            : o.relatedInformation.push(s);
      }
      return o;
    }
    function NI(e, t) {
      const r = [];
      for (const i of e) r.push(z0e(i, t));
      return r;
    }
    function Oc(e, t, r, i, ...o) {
      Ute(e.text, t, r);
      let s = Ho(i);
      return (
        yt(o) && (s = bg(s, o)),
        {
          file: e,
          start: t,
          length: r,
          messageText: s,
          category: i.category,
          code: i.code,
          reportsUnnecessary: i.reportsUnnecessary,
          reportsDeprecated: i.reportsDeprecated,
        }
      );
    }
    function MI(e, ...t) {
      let r = Ho(e);
      return (yt(t) && (r = bg(r, t)), r);
    }
    function Il(e, ...t) {
      let r = Ho(e);
      return (
        yt(t) && (r = bg(r, t)),
        {
          file: void 0,
          start: void 0,
          length: void 0,
          messageText: r,
          category: e.category,
          code: e.code,
          reportsUnnecessary: e.reportsUnnecessary,
          reportsDeprecated: e.reportsDeprecated,
        }
      );
    }
    function L6(e, t) {
      return {
        file: void 0,
        start: void 0,
        length: void 0,
        code: e.code,
        category: e.category,
        messageText: e.next ? e : e.messageText,
        relatedInformation: t,
      };
    }
    function qo(e, t, ...r) {
      let i = Ho(t);
      return (
        yt(r) && (i = bg(i, r)),
        {
          messageText: i,
          category: t.category,
          code: t.code,
          next: e === void 0 || Array.isArray(e) ? e : [e],
        }
      );
    }
    function are(e, t) {
      let r = e;
      for (; r.next; ) r = r.next[0];
      r.next = [t];
    }
    function RV(e) {
      return e.file ? e.file.path : void 0;
    }
    function vM(e, t) {
      return sre(e, t) || JGe(e, t) || 0;
    }
    function sre(e, t) {
      const r = DV(e),
        i = DV(t);
      return (
        Wd(RV(e), RV(t)) ||
        js(e.start, t.start) ||
        js(e.length, t.length) ||
        js(r, i) ||
        KGe(e, t) ||
        0
      );
    }
    function JGe(e, t) {
      return !e.relatedInformation && !t.relatedInformation
        ? 0
        : e.relatedInformation && t.relatedInformation
          ? js(t.relatedInformation.length, e.relatedInformation.length) ||
            Ye(e.relatedInformation, (r, i) => {
              const o = t.relatedInformation[i];
              return vM(r, o);
            }) ||
            0
          : e.relatedInformation
            ? -1
            : 1;
    }
    function KGe(e, t) {
      let r = CV(e),
        i = CV(t);
      (typeof r != "string" && (r = r.messageText),
        typeof i != "string" && (i = i.messageText));
      const o = typeof e.messageText != "string" ? e.messageText.next : void 0,
        s = typeof t.messageText != "string" ? t.messageText.next : void 0;
      let l = Wd(r, i);
      return l || ((l = XGe(o, s)), l)
        ? l
        : e.canonicalHead && !t.canonicalHead
          ? -1
          : t.canonicalHead && !e.canonicalHead
            ? 1
            : 0;
    }
    function XGe(e, t) {
      return e === void 0 && t === void 0
        ? 0
        : e === void 0
          ? 1
          : t === void 0
            ? -1
            : B0e(e, t) || G0e(e, t);
    }
    function B0e(e, t) {
      if (e === void 0 && t === void 0) return 0;
      if (e === void 0) return 1;
      if (t === void 0) return -1;
      let r = js(t.length, e.length);
      if (r) return r;
      for (let i = 0; i < t.length; i++)
        if (((r = B0e(e[i].next, t[i].next)), r)) return r;
      return 0;
    }
    function G0e(e, t) {
      let r;
      for (let i = 0; i < t.length; i++) {
        if (((r = Wd(e[i].messageText, t[i].messageText)), r)) return r;
        if (e[i].next !== void 0 && ((r = G0e(e[i].next, t[i].next)), r))
          return r;
      }
      return 0;
    }
    function k6(e, t) {
      const r = DV(e),
        i = DV(t),
        o = CV(e),
        s = CV(t);
      return (
        Wd(RV(e), RV(t)) === 0 &&
        js(e.start, t.start) === 0 &&
        js(e.length, t.length) === 0 &&
        js(r, i) === 0 &&
        YGe(o, s)
      );
    }
    function DV(e) {
      var t;
      return ((t = e.canonicalHead) == null ? void 0 : t.code) || e.code;
    }
    function CV(e) {
      var t;
      return (
        ((t = e.canonicalHead) == null ? void 0 : t.messageText) ||
        e.messageText
      );
    }
    function YGe(e, t) {
      const r = typeof e == "string" ? e : e.messageText,
        i = typeof t == "string" ? t : t.messageText;
      return Wd(r, i) === 0;
    }
    function jk(e) {
      return e === 4 || e === 2 || e === 1 || e === 6 ? 1 : 0;
    }
    function V0e(e) {
      if (e.transformFlags & 2) return ru(e) || e0(e) ? e : Jo(e, V0e);
    }
    function $Ge(e) {
      return e.isDeclarationFile ? void 0 : V0e(e);
    }
    function QGe(e, t) {
      return (O1(e, t) === 99 ||
        $l(e.fileName, [".cjs", ".cts", ".mjs", ".mts"])) &&
        !e.isDeclarationFile
        ? !0
        : void 0;
    }
    function Uk(e) {
      switch (cre(e)) {
        case 3:
          return (o) => {
            o.externalModuleIndicator = Cw(o) || !o.isDeclarationFile || void 0;
          };
        case 1:
          return (o) => {
            o.externalModuleIndicator = Cw(o);
          };
        case 2:
          const t = [Cw];
          ((e.jsx === 4 || e.jsx === 5) && t.push($Ge), t.push(QGe));
          const r = Rp(...t);
          return (o) => void (o.externalModuleIndicator = r(o, e));
      }
    }
    function NV(e) {
      const t = iu(e);
      return (3 <= t && t <= 99) || Hk(e) || qk(e);
    }
    function zbt(e) {
      return e;
    }
    var Dd = {
        allowImportingTsExtensions: {
          dependencies: ["rewriteRelativeImportExtensions"],
          computeValue: (e) =>
            !!(
              e.allowImportingTsExtensions || e.rewriteRelativeImportExtensions
            ),
        },
        target: {
          dependencies: ["module"],
          computeValue: (e) =>
            (e.target === 0 ? void 0 : e.target) ??
            ((e.module === 100 && 9) ||
              (e.module === 101 && 9) ||
              (e.module === 102 && 10) ||
              (e.module === 199 && 99) ||
              1),
        },
        module: {
          dependencies: ["target"],
          computeValue: (e) =>
            typeof e.module == "number"
              ? e.module
              : Dd.target.computeValue(e) >= 2
                ? 5
                : 1,
        },
        moduleResolution: {
          dependencies: ["module", "target"],
          computeValue: (e) => {
            let t = e.moduleResolution;
            if (t === void 0)
              switch (Dd.module.computeValue(e)) {
                case 1:
                  t = 2;
                  break;
                case 100:
                case 101:
                case 102:
                  t = 3;
                  break;
                case 199:
                  t = 99;
                  break;
                case 200:
                  t = 100;
                  break;
                default:
                  t = 1;
                  break;
              }
            return t;
          },
        },
        moduleDetection: {
          dependencies: ["module", "target"],
          computeValue: (e) => {
            if (e.moduleDetection !== void 0) return e.moduleDetection;
            const t = Dd.module.computeValue(e);
            return 100 <= t && t <= 199 ? 3 : 2;
          },
        },
        isolatedModules: {
          dependencies: ["verbatimModuleSyntax"],
          computeValue: (e) => !!(e.isolatedModules || e.verbatimModuleSyntax),
        },
        esModuleInterop: {
          dependencies: ["module", "target"],
          computeValue: (e) => {
            if (e.esModuleInterop !== void 0) return e.esModuleInterop;
            switch (Dd.module.computeValue(e)) {
              case 100:
              case 101:
              case 102:
              case 199:
              case 200:
                return !0;
            }
            return !1;
          },
        },
        allowSyntheticDefaultImports: {
          dependencies: ["module", "target", "moduleResolution"],
          computeValue: (e) =>
            e.allowSyntheticDefaultImports !== void 0
              ? e.allowSyntheticDefaultImports
              : Dd.esModuleInterop.computeValue(e) ||
                Dd.module.computeValue(e) === 4 ||
                Dd.moduleResolution.computeValue(e) === 100,
        },
        resolvePackageJsonExports: {
          dependencies: ["moduleResolution"],
          computeValue: (e) => {
            const t = Dd.moduleResolution.computeValue(e);
            if (!pD(t)) return !1;
            if (e.resolvePackageJsonExports !== void 0)
              return e.resolvePackageJsonExports;
            switch (t) {
              case 3:
              case 99:
              case 100:
                return !0;
            }
            return !1;
          },
        },
        resolvePackageJsonImports: {
          dependencies: ["moduleResolution", "resolvePackageJsonExports"],
          computeValue: (e) => {
            const t = Dd.moduleResolution.computeValue(e);
            if (!pD(t)) return !1;
            if (e.resolvePackageJsonImports !== void 0)
              return e.resolvePackageJsonImports;
            switch (t) {
              case 3:
              case 99:
              case 100:
                return !0;
            }
            return !1;
          },
        },
        resolveJsonModule: {
          dependencies: ["moduleResolution", "module", "target"],
          computeValue: (e) => {
            if (e.resolveJsonModule !== void 0) return e.resolveJsonModule;
            switch (Dd.module.computeValue(e)) {
              case 102:
              case 199:
                return !0;
            }
            return Dd.moduleResolution.computeValue(e) === 100;
          },
        },
        declaration: {
          dependencies: ["composite"],
          computeValue: (e) => !!(e.declaration || e.composite),
        },
        preserveConstEnums: {
          dependencies: ["isolatedModules", "verbatimModuleSyntax"],
          computeValue: (e) =>
            !!(e.preserveConstEnums || Dd.isolatedModules.computeValue(e)),
        },
        incremental: {
          dependencies: ["composite"],
          computeValue: (e) => !!(e.incremental || e.composite),
        },
        declarationMap: {
          dependencies: ["declaration", "composite"],
          computeValue: (e) =>
            !!(e.declarationMap && Dd.declaration.computeValue(e)),
        },
        allowJs: {
          dependencies: ["checkJs"],
          computeValue: (e) => (e.allowJs === void 0 ? !!e.checkJs : e.allowJs),
        },
        useDefineForClassFields: {
          dependencies: ["target", "module"],
          computeValue: (e) =>
            e.useDefineForClassFields === void 0
              ? Dd.target.computeValue(e) >= 9
              : e.useDefineForClassFields,
        },
        noImplicitAny: {
          dependencies: ["strict"],
          computeValue: (e) => Vd(e, "noImplicitAny"),
        },
        noImplicitThis: {
          dependencies: ["strict"],
          computeValue: (e) => Vd(e, "noImplicitThis"),
        },
        strictNullChecks: {
          dependencies: ["strict"],
          computeValue: (e) => Vd(e, "strictNullChecks"),
        },
        strictFunctionTypes: {
          dependencies: ["strict"],
          computeValue: (e) => Vd(e, "strictFunctionTypes"),
        },
        strictBindCallApply: {
          dependencies: ["strict"],
          computeValue: (e) => Vd(e, "strictBindCallApply"),
        },
        strictPropertyInitialization: {
          dependencies: ["strict"],
          computeValue: (e) => Vd(e, "strictPropertyInitialization"),
        },
        strictBuiltinIteratorReturn: {
          dependencies: ["strict"],
          computeValue: (e) => Vd(e, "strictBuiltinIteratorReturn"),
        },
        alwaysStrict: {
          dependencies: ["strict"],
          computeValue: (e) => Vd(e, "alwaysStrict"),
        },
        useUnknownInCatchVariables: {
          dependencies: ["strict"],
          computeValue: (e) => Vd(e, "useUnknownInCatchVariables"),
        },
      },
      bM = Dd,
      lre = Dd.allowImportingTsExtensions.computeValue,
      Ga = Dd.target.computeValue,
      bu = Dd.module.computeValue,
      iu = Dd.moduleResolution.computeValue,
      cre = Dd.moduleDetection.computeValue,
      ym = Dd.isolatedModules.computeValue,
      $h = Dd.esModuleInterop.computeValue,
      PI = Dd.allowSyntheticDefaultImports.computeValue,
      Hk = Dd.resolvePackageJsonExports.computeValue,
      qk = Dd.resolvePackageJsonImports.computeValue,
      LS = Dd.resolveJsonModule.computeValue,
      _p = Dd.declaration.computeValue,
      Ib = Dd.preserveConstEnums.computeValue,
      kS = Dd.incremental.computeValue,
      w6 = Dd.declarationMap.computeValue,
      xb = Dd.allowJs.computeValue,
      Jk = Dd.useDefineForClassFields.computeValue;
    function Kk(e) {
      return e >= 5 && e <= 99;
    }
    function O6(e) {
      switch (bu(e)) {
        case 0:
        case 4:
        case 3:
          return !1;
      }
      return !0;
    }
    function dre(e) {
      return e.allowUnreachableCode === !1;
    }
    function ure(e) {
      return e.allowUnusedLabels === !1;
    }
    function pD(e) {
      return (e >= 3 && e <= 99) || e === 100;
    }
    function pre(e) {
      return (101 <= e && e <= 199) || e === 200 || e === 99;
    }
    function Vd(e, t) {
      return e[t] === void 0 ? !!e.strict : !!e[t];
    }
    function W6(e) {
      return Hc(Zj.type, (t, r) => (t === e ? r : void 0));
    }
    function MV(e) {
      return e.useDefineForClassFields !== !1 && Ga(e) >= 9;
    }
    function fre(e, t) {
      return uI(t, e, foe);
    }
    function mre(e, t) {
      return uI(t, e, moe);
    }
    function hre(e, t) {
      return uI(t, e, hoe);
    }
    function F6(e, t) {
      return t.strictFlag ? Vd(e, t.name) : t.allowJsFlag ? xb(e) : e[t.name];
    }
    function z6(e) {
      const t = e.jsx;
      return t === 2 || t === 4 || t === 5;
    }
    function Xk(e, t) {
      const r = t?.pragmas.get("jsximportsource"),
        i = Mo(r) ? r[r.length - 1] : r,
        o = t?.pragmas.get("jsxruntime"),
        s = Mo(o) ? o[o.length - 1] : o;
      if (s?.arguments.factory !== "classic")
        return e.jsx === 4 ||
          e.jsx === 5 ||
          e.jsxImportSource ||
          i ||
          s?.arguments.factory === "automatic"
          ? i?.arguments.factory || e.jsxImportSource || "react"
          : void 0;
    }
    function B6(e, t) {
      return e
        ? `${e}/${t.jsx === 5 ? "jsx-dev-runtime" : "jsx-runtime"}`
        : void 0;
    }
    function PV(e) {
      let t = !1;
      for (let r = 0; r < e.length; r++)
        if (e.charCodeAt(r) === 42)
          if (!t) t = !0;
          else return !1;
      return !0;
    }
    function LV(e, t) {
      let r,
        i,
        o,
        s = !1;
      return {
        getSymlinkedFiles: () => o,
        getSymlinkedDirectories: () => r,
        getSymlinkedDirectoriesByRealpath: () => i,
        setSymlinkedFile: (d, _) => (o || (o = new Map())).set(d, _),
        setSymlinkedDirectory: (d, _) => {
          let h = ks(d, e, t);
          CM(h) ||
            ((h = Uc(h)),
            _ !== !1 && !r?.has(h) && (i || (i = cm())).add(_.realPath, d),
            (r || (r = new Map())).set(h, _));
        },
        setSymlinksFromResolutions(d, _, h) {
          (C.assert(!s),
            (s = !0),
            d((g) => u(this, g.resolvedModule)),
            _((g) => u(this, g.resolvedTypeReferenceDirective)),
            h.forEach((g) => u(this, g.resolvedTypeReferenceDirective)));
        },
        hasProcessedResolutions: () => s,
        setSymlinksFromResolution(d) {
          u(this, d);
        },
        hasAnySymlinks: l,
      };
      function l() {
        return !!o?.size || (!!r && !!Hc(r, (d) => !!d));
      }
      function u(d, _) {
        if (!_ || !_.originalPath || !_.resolvedFileName) return;
        const { resolvedFileName: h, originalPath: g } = _;
        d.setSymlinkedFile(ks(g, e, t), h);
        const [E, A] = ZGe(h, g, e, t) || ae;
        E &&
          A &&
          d.setSymlinkedDirectory(A, {
            real: Uc(E),
            realPath: Uc(ks(E, e, t)),
          });
      }
    }
    function ZGe(e, t, r, i) {
      const o = zd(To(e, r)),
        s = zd(To(t, r));
      let l = !1;
      for (
        ;
        o.length >= 2 &&
        s.length >= 2 &&
        !j0e(o[o.length - 2], i) &&
        !j0e(s[s.length - 2], i) &&
        i(o[o.length - 1]) === i(s[s.length - 1]);
      )
        (o.pop(), s.pop(), (l = !0));
      return l ? [MT(o), MT(s)] : void 0;
    }
    function j0e(e, t) {
      return e !== void 0 && (t(e) === "node_modules" || po(e, "@"));
    }
    function eVe(e) {
      return A9(e.charCodeAt(0)) ? e.slice(1) : void 0;
    }
    function kV(e, t, r) {
      const i = QB(e, t, r);
      return i === void 0 ? void 0 : eVe(i);
    }
    var _re = /[^\w\s/]/g;
    function U0e(e) {
      return e.replace(_re, tVe);
    }
    function tVe(e) {
      return "\\" + e;
    }
    var nVe = [42, 63],
      rVe = ["node_modules", "bower_components", "jspm_packages"],
      gre = `(?!(?:${rVe.join("|")})(?:/|$))`,
      H0e = {
        singleAsteriskRegexFragment: "(?:[^./]|(?:\\.(?!min\\.js$))?)*",
        doubleAsteriskRegexFragment: `(?:/${gre}[^/.][^/]*)*?`,
        replaceWildcardCharacter: (e) =>
          vre(e, H0e.singleAsteriskRegexFragment),
      },
      q0e = {
        singleAsteriskRegexFragment: "[^/]*",
        doubleAsteriskRegexFragment: `(?:/${gre}[^/.][^/]*)*?`,
        replaceWildcardCharacter: (e) =>
          vre(e, q0e.singleAsteriskRegexFragment),
      },
      J0e = {
        singleAsteriskRegexFragment: "[^/]*",
        doubleAsteriskRegexFragment: "(?:/.+?)?",
        replaceWildcardCharacter: (e) =>
          vre(e, J0e.singleAsteriskRegexFragment),
      },
      yre = { files: H0e, directories: q0e, exclude: J0e };
    function TM(e, t, r) {
      const i = G6(e, t, r);
      return !i || !i.length
        ? void 0
        : `^(?:${i.map((l) => `(?:${l})`).join("|")})${r === "exclude" ? "(?:$|/)" : "$"}`;
    }
    function G6(e, t, r) {
      if (!(e === void 0 || e.length === 0))
        return Ki(e, (i) => i && V6(i, t, r, yre[r]));
    }
    function wV(e) {
      return !/[.*?]/.test(e);
    }
    function OV(e, t, r) {
      const i = e && V6(e, t, r, yre[r]);
      return i && `^(?:${i})${r === "exclude" ? "(?:$|/)" : "$"}`;
    }
    function V6(
      e,
      t,
      r,
      {
        singleAsteriskRegexFragment: i,
        doubleAsteriskRegexFragment: o,
        replaceWildcardCharacter: s,
      } = yre[r],
    ) {
      let l = "",
        u = !1;
      const d = tF(e, t),
        _ = Ba(d);
      if (r !== "exclude" && _ === "**") return;
      ((d[0] = Yy(d[0])), wV(_) && d.push("**", "*"));
      let h = 0;
      for (let g of d) {
        if (g === "**") l += o;
        else if (
          (r === "directories" && ((l += "(?:"), h++),
          u && (l += Js),
          r !== "exclude")
        ) {
          let E = "";
          (g.charCodeAt(0) === 42
            ? ((E += "(?:[^./]" + i + ")?"), (g = g.substr(1)))
            : g.charCodeAt(0) === 63 && ((E += "[^./]"), (g = g.substr(1))),
            (E += g.replace(_re, s)),
            E !== g && (l += gre),
            (l += E));
        } else l += g.replace(_re, s);
        u = !0;
      }
      for (; h > 0; ) ((l += ")?"), h--);
      return l;
    }
    function vre(e, t) {
      return e === "*" ? t : e === "?" ? "[^/]" : "\\" + e;
    }
    function j6(e, t, r, i, o) {
      ((e = ya(e)), (o = ya(o)));
      const s = Qr(o, e);
      return {
        includeFilePatterns: Vt(G6(r, s, "files"), (l) => `^${l}$`),
        includeFilePattern: TM(r, s, "files"),
        includeDirectoryPattern: TM(r, s, "directories"),
        excludePattern: TM(t, s, "exclude"),
        basePaths: iVe(e, r, i),
      };
    }
    function ov(e, t) {
      return new RegExp(e, t ? "" : "i");
    }
    function bre(e, t, r, i, o, s, l, u, d) {
      ((e = ya(e)), (s = ya(s)));
      const _ = j6(e, r, i, o, s),
        h = _.includeFilePatterns && _.includeFilePatterns.map((k) => ov(k, o)),
        g = _.includeDirectoryPattern && ov(_.includeDirectoryPattern, o),
        E = _.excludePattern && ov(_.excludePattern, o),
        A = h ? h.map(() => []) : [[]],
        R = new Map(),
        N = Fd(o);
      for (const k of _.basePaths) P(k, Qr(s, k), l);
      return la(A);
      function P(k, W, O) {
        const G = N(d(W));
        if (R.has(G)) return;
        R.set(G, !0);
        const { files: j, directories: J } = u(k);
        for (const Z of xp(j, Wd)) {
          const q = Qr(k, Z),
            ye = Qr(W, Z);
          if (!(t && !$l(q, t)) && !(E && E.test(ye)))
            if (!h) A[0].push(q);
            else {
              const ie = ho(h, (K) => K.test(ye));
              ie !== -1 && A[ie].push(q);
            }
        }
        if (!(O !== void 0 && (O--, O === 0)))
          for (const Z of xp(J, Wd)) {
            const q = Qr(k, Z),
              ye = Qr(W, Z);
            (!g || g.test(ye)) && (!E || !E.test(ye)) && P(q, ye, O);
          }
      }
    }
    function iVe(e, t, r) {
      const i = [e];
      if (t) {
        const o = [];
        for (const s of t) {
          const l = Cp(s) ? s : ya(Qr(e, s));
          o.push(oVe(l));
        }
        o.sort(xR(!r));
        for (const s of o) Vn(i, (l) => !um(l, s, e, !r)) && i.push(s);
      }
      return i;
    }
    function oVe(e) {
      const t = Bi(e, nVe);
      return t < 0
        ? NR(e)
          ? Yy(ci(e))
          : e
        : e.substring(0, e.lastIndexOf(Js, t));
    }
    function U6(e, t) {
      return t || H6(e) || 3;
    }
    function H6(e) {
      switch (e.substr(e.lastIndexOf(".")).toLowerCase()) {
        case ".js":
        case ".cjs":
        case ".mjs":
          return 1;
        case ".jsx":
          return 2;
        case ".ts":
        case ".cts":
        case ".mts":
          return 3;
        case ".tsx":
          return 4;
        case ".json":
          return 6;
        default:
          return 0;
      }
    }
    var q6 = [
        [".ts", ".tsx", ".d.ts"],
        [".cts", ".d.cts"],
        [".mts", ".d.mts"],
      ],
      WV = la(q6),
      aVe = [...q6, [".json"]],
      sVe = [".d.ts", ".d.cts", ".d.mts", ".cts", ".mts", ".ts", ".tsx"],
      lVe = [[".js", ".jsx"], [".mjs"], [".cjs"]],
      fD = la(lVe),
      FV = [
        [".ts", ".tsx", ".d.ts", ".js", ".jsx"],
        [".cts", ".d.cts", ".cjs"],
        [".mts", ".d.mts", ".mjs"],
      ],
      cVe = [...FV, [".json"]],
      J6 = [".d.ts", ".d.cts", ".d.mts"],
      Yk = [".ts", ".cts", ".mts", ".tsx"],
      K6 = [".mts", ".d.mts", ".mjs", ".cts", ".d.cts", ".cjs"];
    function SM(e, t) {
      const r = e && xb(e);
      if (!t || t.length === 0) return r ? FV : q6;
      const i = r ? FV : q6,
        o = la(i);
      return [
        ...i,
        ...Ui(t, (l) =>
          l.scriptKind === 7 ||
          (r && dVe(l.scriptKind) && !o.includes(l.extension))
            ? [l.extension]
            : void 0,
        ),
      ];
    }
    function $k(e, t) {
      return !e || !LS(e)
        ? t
        : t === FV
          ? cVe
          : t === q6
            ? aVe
            : [...t, [".json"]];
    }
    function dVe(e) {
      return e === 1 || e === 2;
    }
    function Tg(e) {
      return yt(fD, (t) => El(e, t));
    }
    function f1(e) {
      return yt(WV, (t) => El(e, t));
    }
    function Tre(e) {
      return yt(Yk, (t) => El(e, t)) && !ad(e);
    }
    var Sre = ((e) => (
      (e[(e.Minimal = 0)] = "Minimal"),
      (e[(e.Index = 1)] = "Index"),
      (e[(e.JsExtension = 2)] = "JsExtension"),
      (e[(e.TsExtension = 3)] = "TsExtension"),
      e
    ))(Sre || {});
    function uVe({ imports: e }, t = Rp(Tg, f1)) {
      return (
        Hn(e, ({ text: r }) => (Zp(r) && !$l(r, K6) ? t(r) : void 0)) || !1
      );
    }
    function Ere(e, t, r, i) {
      const o = iu(r),
        s = 3 <= o && o <= 99;
      if (e === "js" || (t === 99 && s)) return VD(r) && l() !== 2 ? 3 : 2;
      if (e === "minimal") return 0;
      if (e === "index") return 1;
      if (!VD(r)) return i && uVe(i) ? 2 : 0;
      return l();
      function l() {
        let u = !1;
        const d = i?.imports.length
          ? i.imports
          : i && Pu(i)
            ? pVe(i).map((_) => _.arguments[0])
            : ae;
        for (const _ of d)
          if (Zp(_.text)) {
            if ((s && t === 1 && TH(i, _, r) === 99) || $l(_.text, K6))
              continue;
            if (f1(_.text)) return 3;
            Tg(_.text) && (u = !0);
          }
        return u ? 2 : 0;
      }
    }
    function pVe(e) {
      let t = 0,
        r;
      for (const i of e.statements) {
        if (t > 3) break;
        fk(i)
          ? (r = so(
              r,
              i.declarationList.declarations.map((o) => o.initializer),
            ))
          : od(i) && Zu(i.expression, !0)
            ? (r = Bn(r, i.expression))
            : t++;
      }
      return r || ae;
    }
    function zV(e, t, r) {
      if (!e) return !1;
      const i = SM(t, r);
      for (const o of la($k(t, i))) if (El(e, o)) return !0;
      return !1;
    }
    function K0e(e) {
      const t = e.match(/\//g);
      return t ? t.length : 0;
    }
    function Qk(e, t) {
      return js(K0e(e), K0e(t));
    }
    var Are = [
      ".d.ts",
      ".d.mts",
      ".d.cts",
      ".mjs",
      ".mts",
      ".cjs",
      ".cts",
      ".ts",
      ".js",
      ".tsx",
      ".jsx",
      ".json",
    ];
    function Tu(e) {
      for (const t of Are) {
        const r = Ire(e, t);
        if (r !== void 0) return r;
      }
      return e;
    }
    function Ire(e, t) {
      return El(e, t) ? Zk(e, t) : void 0;
    }
    function Zk(e, t) {
      return e.substring(0, e.length - t.length);
    }
    function av(e, t) {
      return E2(e, t, Are, !1);
    }
    function LI(e) {
      const t = e.indexOf("*");
      return t === -1
        ? e
        : e.indexOf("*", t + 1) !== -1
          ? void 0
          : { prefix: e.substr(0, t), suffix: e.substr(t + 1) };
    }
    var X0e = new WeakMap();
    function ew(e) {
      let t = X0e.get(e);
      if (t !== void 0) return t;
      let r, i;
      const o = Wh(e);
      for (const s of o) {
        const l = LI(s);
        l !== void 0 &&
          (typeof l == "string"
            ? (r ?? (r = new Set())).add(l)
            : (i ?? (i = [])).push(l));
      }
      return (X0e.set(e, (t = { matchableStringSet: r, patterns: i })), t);
    }
    function dh(e) {
      return !(e >= 0);
    }
    function X6(e) {
      return (
        e === ".ts" ||
        e === ".tsx" ||
        e === ".d.ts" ||
        e === ".cts" ||
        e === ".mts" ||
        e === ".d.mts" ||
        e === ".d.cts" ||
        (po(e, ".d.") && el(e, ".ts"))
      );
    }
    function EM(e) {
      return X6(e) || e === ".json";
    }
    function AM(e) {
      const t = Sg(e);
      return t !== void 0 ? t : C.fail(`File ${e} has unknown extension.`);
    }
    function Y0e(e) {
      return Sg(e) !== void 0;
    }
    function Sg(e) {
      return hn(Are, (t) => El(e, t));
    }
    function IM(e, t) {
      return e.checkJsDirective ? e.checkJsDirective.enabled : t.checkJs;
    }
    var xre = { files: ae, directories: ae };
    function BV(e, t) {
      const { matchableStringSet: r, patterns: i } = e;
      if (r?.has(t)) return t;
      if (!(i === void 0 || i.length === 0)) return $B(i, (o) => o, t);
    }
    function GV(e, t) {
      const r = e.indexOf(t);
      return (C.assert(r !== -1), e.slice(r));
    }
    function pa(e, ...t) {
      return (
        t.length &&
          (e.relatedInformation || (e.relatedInformation = []),
          C.assert(
            e.relatedInformation !== ae,
            "Diagnostic had empty array singleton for related info, but is still being constructed!",
          ),
          e.relatedInformation.push(...t)),
        e
      );
    }
    function Rre(e, t) {
      C.assert(e.length !== 0);
      let r = t(e[0]),
        i = r;
      for (let o = 1; o < e.length; o++) {
        const s = t(e[o]);
        s < r ? (r = s) : s > i && (i = s);
      }
      return { min: r, max: i };
    }
    function VV(e) {
      return { pos: gb(e), end: e.end };
    }
    function jV(e, t) {
      const r = t.pos - 1,
        i = Math.min(e.text.length, La(e.text, t.end) + 1);
      return { pos: r, end: i };
    }
    function mD(e, t, r) {
      return $0e(e, t, r, !1);
    }
    function Dre(e, t, r) {
      return $0e(e, t, r, !0);
    }
    function $0e(e, t, r, i) {
      return (
        (t.skipLibCheck && e.isDeclarationFile) ||
        (t.skipDefaultLibCheck && e.hasNoDefaultLib) ||
        (!i && t.noCheck) ||
        r.isSourceOfProjectReferenceRedirect(e.fileName) ||
        !xM(e, t)
      );
    }
    function xM(e, t) {
      if (e.checkJsDirective && e.checkJsDirective.enabled === !1) return !1;
      if (e.scriptKind === 3 || e.scriptKind === 4 || e.scriptKind === 5)
        return !0;
      const i = (e.scriptKind === 1 || e.scriptKind === 2) && IM(e, t);
      return VN(e, t.checkJs) || i || e.scriptKind === 7;
    }
    function Y6(e, t) {
      return (
        e === t ||
        (typeof e == "object" &&
          e !== null &&
          typeof t == "object" &&
          t !== null &&
          HQ(e, t, Y6))
      );
    }
    function RM(e) {
      let t;
      switch (e.charCodeAt(1)) {
        case 98:
        case 66:
          t = 1;
          break;
        case 111:
        case 79:
          t = 3;
          break;
        case 120:
        case 88:
          t = 4;
          break;
        default:
          const _ = e.length - 1;
          let h = 0;
          for (; e.charCodeAt(h) === 48; ) h++;
          return e.slice(h, _) || "0";
      }
      const r = 2,
        i = e.length - 1,
        o = (i - r) * t,
        s = new Uint16Array((o >>> 4) + (o & 15 ? 1 : 0));
      for (let _ = i - 1, h = 0; _ >= r; _--, h += t) {
        const g = h >>> 4,
          E = e.charCodeAt(_),
          R = (E <= 57 ? E - 48 : 10 + E - (E <= 70 ? 65 : 97)) << (h & 15);
        s[g] |= R;
        const N = R >>> 16;
        N && (s[g + 1] |= N);
      }
      let l = "",
        u = s.length - 1,
        d = !0;
      for (; d; ) {
        let _ = 0;
        d = !1;
        for (let h = u; h >= 0; h--) {
          const g = (_ << 16) | s[h],
            E = (g / 10) | 0;
          ((s[h] = E), (_ = g - E * 10), E && !d && ((u = h), (d = !0)));
        }
        l = _ + l;
      }
      return l;
    }
    function wS({ negative: e, base10Value: t }) {
      return (e && t !== "0" ? "-" : "") + t;
    }
    function Cre(e) {
      if ($6(e, !1)) return UV(e);
    }
    function UV(e) {
      const t = e.startsWith("-"),
        r = RM(`${t ? e.slice(1) : e}n`);
      return { negative: t, base10Value: r };
    }
    function $6(e, t) {
      if (e === "") return !1;
      const r = cg(99, !1);
      let i = !0;
      (r.setOnError(() => (i = !1)), r.setText(e + "n"));
      let o = r.scan();
      const s = o === 41;
      s && (o = r.scan());
      const l = r.getTokenFlags();
      return (
        i &&
        o === 10 &&
        r.getTokenEnd() === e.length + 1 &&
        !(l & 512) &&
        (!t || e === wS({ negative: s, base10Value: RM(r.getTokenValue()) }))
      );
    }
    function HT(e) {
      return (
        !!(e.flags & 33554432) ||
        YN(e) ||
        ZF(e) ||
        hVe(e) ||
        mVe(e) ||
        !(P_(e) || fVe(e))
      );
    }
    function fVe(e) {
      return He(e) && Ud(e.parent) && e.parent.name === e;
    }
    function mVe(e) {
      for (; e.kind === 80 || e.kind === 212; ) e = e.parent;
      if (e.kind !== 168) return !1;
      if (di(e.parent, 64)) return !0;
      const t = e.parent.parent.kind;
      return t === 265 || t === 188;
    }
    function hVe(e) {
      if (e.kind !== 80) return !1;
      const t = Dn(e.parent, (r) => {
        switch (r.kind) {
          case 299:
            return !0;
          case 212:
          case 234:
            return !1;
          default:
            return "quit";
        }
      });
      return t?.token === 119 || t?.parent.kind === 265;
    }
    function Nre(e) {
      return Wp(e) && He(e.typeName);
    }
    function Mre(e, t = nb) {
      if (e.length < 2) return !0;
      const r = e[0];
      for (let i = 1, o = e.length; i < o; i++) {
        const s = e[i];
        if (!t(r, s)) return !1;
      }
      return !0;
    }
    function DM(e, t) {
      return ((e.pos = t), e);
    }
    function hD(e, t) {
      return ((e.end = t), e);
    }
    function uh(e, t, r) {
      return hD(DM(e, t), r);
    }
    function HV(e, t, r) {
      return uh(e, t, t + r);
    }
    function Pre(e, t) {
      return (e && (e.flags = t), e);
    }
    function ps(e, t) {
      return (e && t && (e.parent = t), e);
    }
    function qT(e, t) {
      if (!e) return e;
      return (ex(e, GR(e) ? r : o), e);
      function r(s, l) {
        if (t && s.parent === l) return "skip";
        ps(s, l);
      }
      function i(s) {
        if (ef(s)) for (const l of s.jsDoc) (r(l, s), ex(l, r));
      }
      function o(s, l) {
        return r(s, l) || i(s);
      }
    }
    function _Ve(e) {
      return !Jc(e);
    }
    function qV(e) {
      return Cd(e) && Vn(e.elements, _Ve);
    }
    function Lre(e) {
      for (C.assertIsDefined(e.parent); ; ) {
        const t = e.parent;
        if (Ou(t)) {
          e = t;
          continue;
        }
        if (
          od(t) ||
          KI(t) ||
          (QT(t) && (t.initializer === e || t.incrementor === e))
        )
          return !0;
        if (jM(t)) {
          if (e !== Ba(t.elements)) return !0;
          e = t;
          continue;
        }
        if (Nr(t) && t.operatorToken.kind === 28) {
          if (e === t.left) return !0;
          e = t;
          continue;
        }
        return !1;
      }
    }
    function CM(e) {
      return yt($8, (t) => e.includes(t));
    }
    function kre(e) {
      if (!e.parent) return;
      switch (e.kind) {
        case 169:
          const { parent: r } = e;
          return r.kind === 196 ? void 0 : r.typeParameters;
        case 170:
          return e.parent.parameters;
        case 205:
          return e.parent.templateSpans;
        case 240:
          return e.parent.templateSpans;
        case 171: {
          const { parent: i } = e;
          return qS(i) ? i.modifiers : void 0;
        }
        case 299:
          return e.parent.heritageClauses;
      }
      const { parent: t } = e;
      if (VR(e)) return x1(e.parent) ? void 0 : e.parent.tags;
      switch (t.kind) {
        case 188:
        case 265:
          return _S(e) ? t.members : void 0;
        case 193:
        case 194:
          return t.types;
        case 190:
        case 210:
        case 357:
        case 276:
        case 280:
          return t.elements;
        case 211:
        case 293:
          return t.properties;
        case 214:
        case 215:
          return Ri(e)
            ? t.typeArguments
            : t.expression === e
              ? void 0
              : t.arguments;
        case 285:
        case 289:
          return J2(e) ? t.children : void 0;
        case 287:
        case 286:
          return Ri(e) ? t.typeArguments : void 0;
        case 242:
        case 297:
        case 298:
        case 269:
          return t.statements;
        case 270:
          return t.clauses;
        case 264:
        case 232:
          return bc(e) ? t.members : void 0;
        case 267:
          return py(e) ? t.members : void 0;
        case 308:
          return t.statements;
      }
    }
    function Q6(e) {
      if (!e.typeParameters) {
        if (yt(e.parameters, (t) => !xc(t))) return !0;
        if (e.kind !== 220) {
          const t = Ac(e.parameters);
          if (!(t && Sb(t))) return !0;
        }
      }
      return !1;
    }
    function NM(e) {
      return e === "Infinity" || e === "-Infinity" || e === "NaN";
    }
    function wre(e) {
      return e.kind === 261 && e.parent.kind === 300;
    }
    function Rb(e) {
      return e.kind === 219 || e.kind === 220;
    }
    function OS(e) {
      return e.replace(/\$/g, () => "\\$");
    }
    function Eg(e) {
      return (+e).toString() === e;
    }
    function tw(e, t, r, i, o) {
      const s = o && e === "new";
      return !s && fp(e, t)
        ? L.createIdentifier(e)
        : !i && !s && Eg(e) && +e >= 0
          ? L.createNumericLiteral(+e)
          : L.createStringLiteral(e, !!r);
    }
    function MM(e) {
      return !!(e.flags & 262144 && e.isThisType);
    }
    function Z6(e) {
      let t = 0,
        r = 0,
        i = 0,
        o = 0,
        s;
      ((_) => {
        ((_[(_.BeforeNodeModules = 0)] = "BeforeNodeModules"),
          (_[(_.NodeModules = 1)] = "NodeModules"),
          (_[(_.Scope = 2)] = "Scope"),
          (_[(_.PackageContent = 3)] = "PackageContent"));
      })(s || (s = {}));
      let l = 0,
        u = 0,
        d = 0;
      for (; u >= 0; )
        switch (((l = u), (u = e.indexOf("/", l + 1)), d)) {
          case 0:
            e.indexOf(Rg, l) === l && ((t = l), (r = u), (d = 1));
            break;
          case 1:
          case 2:
            d === 1 && e.charAt(l + 1) === "@" ? (d = 2) : ((i = u), (d = 3));
            break;
          case 3:
            e.indexOf(Rg, l) === l ? (d = 1) : (d = 3);
            break;
        }
      return (
        (o = l),
        d > 1
          ? {
              topLevelNodeModulesIndex: t,
              topLevelPackageNameIndex: r,
              packageRootIndex: i,
              fileNameIndex: o,
            }
          : void 0
      );
    }
    function kI(e) {
      switch (e.kind) {
        case 169:
        case 264:
        case 265:
        case 266:
        case 267:
        case 347:
        case 339:
        case 341:
          return !0;
        case 274:
          return e.phaseModifier === 156;
        case 277:
          return e.parent.parent.phaseModifier === 156;
        case 282:
          return e.parent.parent.isTypeOnly;
        default:
          return !1;
      }
    }
    function nw(e) {
      return (
        ZT(e) ||
        ac(e) ||
        Zl(e) ||
        Dc(e) ||
        gd(e) ||
        kI(e) ||
        (uc(e) && !TS(e) && !M_(e))
      );
    }
    function rw(e) {
      if (!wN(e)) return !1;
      const { isBracketed: t, typeExpression: r } = e;
      return t || (!!r && r.type.kind === 317);
    }
    function JV(e, t) {
      if (e.length === 0) return !1;
      const r = e.charCodeAt(0);
      return r === 35 ? e.length > 1 && R_(e.charCodeAt(1), t) : R_(r, t);
    }
    function Ore(e) {
      var t;
      return ((t = uj(e)) == null ? void 0 : t.kind) === 0;
    }
    function e4(e) {
      return Ir(e) && ((e.type && e.type.kind === 317) || OR(e).some(rw));
    }
    function wI(e) {
      switch (e.kind) {
        case 173:
        case 172:
          return !!e.questionToken;
        case 170:
          return !!e.questionToken || e4(e);
        case 349:
        case 342:
          return rw(e);
        default:
          return !1;
      }
    }
    function Wre(e) {
      const t = e.kind;
      return (t === 212 || t === 213) && XI(e.expression);
    }
    function KV(e) {
      return Ir(e) && Ou(e) && ef(e) && !!j9(e);
    }
    function XV(e) {
      return C.checkDefined(t4(e));
    }
    function t4(e) {
      const t = j9(e);
      return t && t.typeExpression && t.typeExpression.type;
    }
    function PM(e) {
      return He(e) ? e.escapedText : OI(e);
    }
    function iw(e) {
      return He(e) ? Kr(e) : LM(e);
    }
    function Fre(e) {
      const t = e.kind;
      return t === 80 || t === 296;
    }
    function OI(e) {
      return `${e.namespace.escapedText}:${Kr(e.name)}`;
    }
    function LM(e) {
      return `${Kr(e.namespace)}:${Kr(e.name)}`;
    }
    function YV(e) {
      return He(e) ? Kr(e) : LM(e);
    }
    function jf(e) {
      return !!(e.flags & 8576);
    }
    function Uf(e) {
      return e.flags & 8192
        ? e.escapedName
        : e.flags & 384
          ? Cl("" + e.value)
          : C.fail();
    }
    function WI(e) {
      return !!e && (qr(e) || Ws(e) || Nr(e));
    }
    function zre(e) {
      return e === void 0 ? !1 : !!HD(e.attributes);
    }
    var gVe = String.prototype.replace;
    function m1(e, t) {
      return gVe.call(e, "*", t);
    }
    function n4(e) {
      return He(e.name) ? e.name.escapedText : Cl(e.name.text);
    }
    function Bre(e) {
      switch (e.kind) {
        case 169:
        case 170:
        case 173:
        case 172:
        case 186:
        case 185:
        case 180:
        case 181:
        case 182:
        case 175:
        case 174:
        case 176:
        case 177:
        case 178:
        case 179:
        case 184:
        case 183:
        case 187:
        case 188:
        case 189:
        case 190:
        case 193:
        case 194:
        case 197:
        case 191:
        case 192:
        case 198:
        case 199:
        case 195:
        case 196:
        case 204:
        case 206:
        case 203:
        case 329:
        case 330:
        case 347:
        case 339:
        case 341:
        case 346:
        case 345:
        case 325:
        case 326:
        case 327:
        case 342:
        case 349:
        case 318:
        case 316:
        case 315:
        case 313:
        case 314:
        case 323:
        case 319:
        case 310:
        case 334:
        case 336:
        case 335:
        case 351:
        case 344:
        case 200:
        case 201:
        case 263:
        case 242:
        case 269:
        case 244:
        case 245:
        case 246:
        case 247:
        case 248:
        case 249:
        case 250:
        case 251:
        case 252:
        case 253:
        case 254:
        case 255:
        case 256:
        case 257:
        case 258:
        case 259:
        case 261:
        case 209:
        case 264:
        case 265:
        case 266:
        case 267:
        case 268:
        case 273:
        case 272:
        case 279:
        case 278:
        case 243:
        case 260:
        case 283:
          return !0;
      }
      return !1;
    }
    function qc(e, t = !1, r = !1, i = !1) {
      return {
        value: e,
        isSyntacticallyString: t,
        resolvedOtherFiles: r,
        hasExternalReferences: i,
      };
    }
    function Gre({
      evaluateElementAccessExpression: e,
      evaluateEntityNameExpression: t,
    }) {
      function r(o, s) {
        let l = !1,
          u = !1,
          d = !1;
        switch (((o = us(o)), o.kind)) {
          case 225:
            const _ = r(o.operand, s);
            if (
              ((u = _.resolvedOtherFiles),
              (d = _.hasExternalReferences),
              typeof _.value == "number")
            )
              switch (o.operator) {
                case 40:
                  return qc(_.value, l, u, d);
                case 41:
                  return qc(-_.value, l, u, d);
                case 55:
                  return qc(~_.value, l, u, d);
              }
            break;
          case 227: {
            const h = r(o.left, s),
              g = r(o.right, s);
            if (
              ((l =
                (h.isSyntacticallyString || g.isSyntacticallyString) &&
                o.operatorToken.kind === 40),
              (u = h.resolvedOtherFiles || g.resolvedOtherFiles),
              (d = h.hasExternalReferences || g.hasExternalReferences),
              typeof h.value == "number" && typeof g.value == "number")
            )
              switch (o.operatorToken.kind) {
                case 52:
                  return qc(h.value | g.value, l, u, d);
                case 51:
                  return qc(h.value & g.value, l, u, d);
                case 49:
                  return qc(h.value >> g.value, l, u, d);
                case 50:
                  return qc(h.value >>> g.value, l, u, d);
                case 48:
                  return qc(h.value << g.value, l, u, d);
                case 53:
                  return qc(h.value ^ g.value, l, u, d);
                case 42:
                  return qc(h.value * g.value, l, u, d);
                case 44:
                  return qc(h.value / g.value, l, u, d);
                case 40:
                  return qc(h.value + g.value, l, u, d);
                case 41:
                  return qc(h.value - g.value, l, u, d);
                case 45:
                  return qc(h.value % g.value, l, u, d);
                case 43:
                  return qc(h.value ** g.value, l, u, d);
              }
            else if (
              (typeof h.value == "string" || typeof h.value == "number") &&
              (typeof g.value == "string" || typeof g.value == "number") &&
              o.operatorToken.kind === 40
            )
              return qc("" + h.value + g.value, l, u, d);
            break;
          }
          case 11:
          case 15:
            return qc(o.text, !0);
          case 229:
            return i(o, s);
          case 9:
            return qc(+o.text);
          case 80:
            return t(o, s);
          case 212:
            if (Ds(o)) return t(o, s);
            break;
          case 213:
            return e(o, s);
        }
        return qc(void 0, l, u, d);
      }
      function i(o, s) {
        let l = o.head.text,
          u = !1,
          d = !1;
        for (const _ of o.templateSpans) {
          const h = r(_.expression, s);
          if (h.value === void 0) return qc(void 0, !0);
          ((l += h.value),
            (l += _.literal.text),
            u || (u = h.resolvedOtherFiles),
            d || (d = h.hasExternalReferences));
        }
        return qc(l, !0, u, d);
      }
      return r;
    }
    function $V(e) {
      return (yS(e) && Om(e.type)) || (KM(e) && Om(e.typeExpression));
    }
    function ow(e) {
      const t = e.members;
      for (const r of t) if (r.kind === 177 && fm(r.body)) return r;
    }
    function QV({
      compilerOptions: e,
      requireSymbol: t,
      argumentsSymbol: r,
      error: i,
      getSymbolOfDeclaration: o,
      globals: s,
      lookup: l,
      setRequiresScopeChangeCache: u = uS,
      getRequiresScopeChangeCache: d = uS,
      onPropertyWithInvalidInitializer: _ = Qg,
      onFailedToResolveSymbol: h = uS,
      onSuccessfullyResolvedSymbol: g = uS,
    }) {
      var E = e.verbatimModuleSyntax
          ? "verbatimModuleSyntax"
          : "isolatedModules",
        A = MV(e),
        R = da();
      return N;
      function N(G, j, J, Z, q, ye) {
        var ie, K, pe;
        const de = G;
        let fe,
          ve,
          xe,
          X,
          Ce,
          Je = !1,
          Se;
        const re = Bo(j) ? j : j.escapedText;
        e: for (; G; ) {
          if (re === "const" && $V(G)) return;
          if (
            (H2(G) && ve && G.name === ve && ((ve = G), (G = G.parent)),
            D_(G) && G.locals && !ev(G) && (fe = l(G.locals, re, J)))
          ) {
            let be = !0;
            if (
              (Yo(G) && ve && ve !== G.body
                ? (J & fe.flags & 788968 &&
                    ve.kind !== 321 &&
                    (be =
                      fe.flags & 262144
                        ? !!(ve.flags & 16) ||
                          ve === G.type ||
                          ve.kind === 170 ||
                          ve.kind === 342 ||
                          ve.kind === 343 ||
                          ve.kind === 169
                        : !1),
                  J & fe.flags & 3 &&
                    (P(fe, G, ve)
                      ? (be = !1)
                      : fe.flags & 1 &&
                        (be =
                          ve.kind === 170 ||
                          !!(ve.flags & 16) ||
                          (ve === G.type && !!Dn(fe.valueDeclaration, to)))))
                : G.kind === 195 && (be = ve === G.trueType),
              be)
            )
              break e;
            fe = void 0;
          }
          switch (((Je = Je || k(G, ve)), G.kind)) {
            case 308:
              if (!Pp(G)) break;
            case 268:
              const be = ((ie = o(G)) == null ? void 0 : ie.exports) || R;
              if (G.kind === 308 || (uc(G) && G.flags & 33554432 && !M_(G))) {
                if ((fe = be.get("default"))) {
                  const lt = mM(fe);
                  if (lt && fe.flags & J && lt.escapedName === re) break e;
                  fe = void 0;
                }
                const Be = be.get(re);
                if (Be && Be.flags === 2097152 && (al(Be, 282) || al(Be, 281)))
                  break;
              }
              if (re !== "default" && (fe = l(be, re, J & 2623475)))
                if (
                  Yi(G) &&
                  G.commonJsModuleIndicator &&
                  !((K = fe.declarations) != null && K.some(hm))
                )
                  fe = void 0;
                else break e;
              break;
            case 267:
              if (
                (fe = l(
                  ((pe = o(G)) == null ? void 0 : pe.exports) || R,
                  re,
                  J & 8,
                ))
              ) {
                Z &&
                  ym(e) &&
                  !(G.flags & 33554432) &&
                  Wn(G) !== Wn(fe.valueDeclaration) &&
                  i(
                    de,
                    f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,
                    Gi(re),
                    E,
                    `${Gi(o(G).escapedName)}.${Gi(re)}`,
                  );
                break e;
              }
              break;
            case 173:
              if (!ua(G)) {
                const Be = ow(G.parent);
                Be &&
                  Be.locals &&
                  l(Be.locals, re, J & 111551) &&
                  (C.assertNode(G, Po), (X = G));
              }
              break;
            case 264:
            case 232:
            case 265:
              if ((fe = l(o(G).members || R, re, J & 788968))) {
                if (!O(fe, G)) {
                  fe = void 0;
                  break;
                }
                if (ve && ua(ve)) {
                  Z &&
                    i(
                      de,
                      f.Static_members_cannot_reference_class_type_parameters,
                    );
                  return;
                }
                break e;
              }
              if (dc(G) && J & 32) {
                const Be = G.name;
                if (Be && re === Be.escapedText) {
                  fe = G.symbol;
                  break e;
                }
              }
              break;
            case 234:
              if (ve === G.expression && G.parent.token === 96) {
                const Be = G.parent.parent;
                if (ui(Be) && (fe = l(o(Be).members, re, J & 788968))) {
                  Z &&
                    i(
                      de,
                      f.Base_class_expressions_cannot_reference_class_type_parameters,
                    );
                  return;
                }
              }
              break;
            case 168:
              if (
                ((Se = G.parent.parent),
                (ui(Se) || Se.kind === 265) &&
                  (fe = l(o(Se).members, re, J & 788968)))
              ) {
                Z &&
                  i(
                    de,
                    f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type,
                  );
                return;
              }
              break;
            case 220:
              if (Ga(e) >= 2) break;
            case 175:
            case 177:
            case 178:
            case 179:
            case 263:
              if (J & 3 && re === "arguments") {
                fe = r;
                break e;
              }
              break;
            case 219:
              if (J & 3 && re === "arguments") {
                fe = r;
                break e;
              }
              if (J & 16) {
                const Be = G.name;
                if (Be && re === Be.escapedText) {
                  fe = G.symbol;
                  break e;
                }
              }
              break;
            case 171:
              (G.parent && G.parent.kind === 170 && (G = G.parent),
                G.parent &&
                  (bc(G.parent) || G.parent.kind === 264) &&
                  (G = G.parent));
              break;
            case 347:
            case 339:
            case 341:
            case 352:
              const Ne = tD(G);
              Ne && (G = Ne.parent);
              break;
            case 170:
              ve &&
                (ve === G.initializer || (ve === G.name && Qo(ve))) &&
                (Ce || (Ce = G));
              break;
            case 209:
              ve &&
                (ve === G.initializer || (ve === G.name && Qo(ve))) &&
                jT(G) &&
                !Ce &&
                (Ce = G);
              break;
            case 196:
              if (J & 262144) {
                const Be = G.typeParameter.name;
                if (Be && re === Be.escapedText) {
                  fe = G.typeParameter.symbol;
                  break e;
                }
              }
              break;
            case 282:
              ve &&
                ve === G.propertyName &&
                G.parent.parent.moduleSpecifier &&
                (G = G.parent.parent.parent);
              break;
          }
          (W(G, ve) && (xe = G),
            (ve = G),
            (G = bm(G)
              ? a6(G) || G.parent
              : ((mf(G) || x4(G)) && BT(G)) || G.parent));
        }
        if (
          (q && fe && (!xe || fe !== xe.symbol) && (fe.isReferenced |= J), !fe)
        ) {
          if (
            ve &&
            (C.assertNode(ve, Yi),
            ve.commonJsModuleIndicator &&
              re === "exports" &&
              J & ve.symbol.flags)
          )
            return ve.symbol;
          ye || (fe = l(s, re, J));
        }
        if (!fe && de && Ir(de) && de.parent && Zu(de.parent, !1)) return t;
        if (Z) {
          if (X && _(de, re, X, fe)) return;
          fe ? g(de, fe, J, ve, Ce, Je) : h(de, j, J, Z);
        }
        return fe;
      }
      function P(G, j, J) {
        const Z = Ga(e),
          q = j;
        if (
          to(J) &&
          q.body &&
          G.valueDeclaration &&
          G.valueDeclaration.pos >= q.body.pos &&
          G.valueDeclaration.end <= q.body.end &&
          Z >= 2
        ) {
          let K = d(q);
          return (
            K === void 0 && ((K = Ye(q.parameters, ye) || !1), u(q, K)),
            !K
          );
        }
        return !1;
        function ye(K) {
          return ie(K.name) || (!!K.initializer && ie(K.initializer));
        }
        function ie(K) {
          switch (K.kind) {
            case 220:
            case 219:
            case 263:
            case 177:
              return !1;
            case 175:
            case 178:
            case 179:
            case 304:
              return ie(K.name);
            case 173:
              return wc(K) ? !A : ie(K.name);
            default:
              return H9(K) || tu(K)
                ? Z < 7
                : Ha(K) && K.dotDotDotToken && ff(K.parent)
                  ? Z < 4
                  : Ri(K)
                    ? !1
                    : Jo(K, ie) || !1;
          }
        }
      }
      function k(G, j) {
        return G.kind !== 220 && G.kind !== 219
          ? FS(G) ||
              ((Ms(G) || (G.kind === 173 && !ua(G))) && (!j || j !== G.name))
          : j && j === G.name
            ? !1
            : G.asteriskToken || di(G, 1024)
              ? !0
              : !WT(G);
      }
      function W(G, j) {
        switch (G.kind) {
          case 170:
            return !!j && j === G.name;
          case 263:
          case 264:
          case 265:
          case 267:
          case 266:
          case 268:
            return !0;
          default:
            return !1;
        }
      }
      function O(G, j) {
        if (G.declarations) {
          for (const J of G.declarations)
            if (
              J.kind === 169 &&
              (bm(J.parent) ? IS(J.parent) : J.parent) === j
            )
              return !(bm(J.parent) && hn(J.parent.parent.tags, hm));
        }
        return !1;
      }
    }
    function r4(e, t = !0) {
      switch ((C.type(e), e.kind)) {
        case 112:
        case 97:
        case 9:
        case 11:
        case 15:
          return !0;
        case 10:
          return t;
        case 225:
          return e.operator === 41
            ? np(e.operand) || (t && yD(e.operand))
            : e.operator === 40
              ? np(e.operand)
              : !1;
        default:
          return !1;
      }
    }
    function Vre(e) {
      for (; e.kind === 218; ) e = e.expression;
      return e;
    }
    function i4(e) {
      switch ((C.type(e), e.kind)) {
        case 170:
        case 172:
        case 173:
        case 209:
        case 212:
        case 213:
        case 227:
        case 261:
        case 278:
        case 304:
        case 305:
        case 342:
        case 349:
          return !0;
        default:
          return !1;
      }
    }
    function ZV(e) {
      const t = Dn(e, vl);
      return !!t && !t.importClause;
    }
    var jre = [
        "assert",
        "assert/strict",
        "async_hooks",
        "buffer",
        "child_process",
        "cluster",
        "console",
        "constants",
        "crypto",
        "dgram",
        "diagnostics_channel",
        "dns",
        "dns/promises",
        "domain",
        "events",
        "fs",
        "fs/promises",
        "http",
        "http2",
        "https",
        "inspector",
        "inspector/promises",
        "module",
        "net",
        "os",
        "path",
        "path/posix",
        "path/win32",
        "perf_hooks",
        "process",
        "punycode",
        "querystring",
        "readline",
        "readline/promises",
        "repl",
        "stream",
        "stream/consumers",
        "stream/promises",
        "stream/web",
        "string_decoder",
        "sys",
        "test/mock_loader",
        "timers",
        "timers/promises",
        "tls",
        "trace_events",
        "tty",
        "url",
        "util",
        "util/types",
        "v8",
        "vm",
        "wasi",
        "worker_threads",
        "zlib",
      ],
      Ure = new Set(jre),
      o4 = new Set([
        "node:sea",
        "node:sqlite",
        "node:test",
        "node:test/reporters",
      ]),
      _D = new Set([...jre, ...jre.map((e) => `node:${e}`), ...o4]);
    function a4(e, t, r, i) {
      const o = Ir(e),
        s = /import|require/g;
      for (; s.exec(e.text) !== null; ) {
        const l = yVe(e, s.lastIndex, t);
        if (o && Zu(l, r)) i(l, l.arguments[0]);
        else if (Qu(l) && l.arguments.length >= 1 && (!r || ds(l.arguments[0])))
          i(l, l.arguments[0]);
        else if (t && ry(l)) i(l, l.argument.literal);
        else if (t && o_(l)) {
          const u = yI(l);
          u && ka(u) && u.text && i(l, u);
        }
      }
    }
    function yVe(e, t, r) {
      const i = Ir(e);
      let o = e;
      const s = (l) => {
        if (l.pos <= t && (t < l.end || (t === l.end && l.kind === 1)))
          return l;
      };
      for (;;) {
        const l = (i && r && ef(o) && Ye(o.jsDoc, s)) || Jo(o, s);
        if (!l || S1(l)) return o;
        o = l;
      }
    }
    function Hre(e) {
      return Yo(e) || fv(e) || b1(e);
    }
    function ej(e) {
      return tb(e.fileName);
    }
    function tj(e) {
      const t = ej(e);
      return Qj.get(t);
    }
    function nj(e, t) {
      return kM(void 0, e, (r) => r && t(r));
    }
    function kM(e, t, r, i) {
      let o;
      return s(e, t, void 0);
      function s(l, u, d) {
        if (i) {
          const h = i(l, d);
          if (h) return h;
        }
        let _;
        return (
          Ye(u, (h, g) => {
            if (h && o?.has(h.sourceFile.path)) {
              (_ ?? (_ = new Set())).add(h);
              return;
            }
            const E = r(h, d, g);
            if (E || !h) return E;
            (o || (o = new Set())).add(h.sourceFile.path);
          }) ||
          Ye(u, (h) =>
            h && !_?.has(h)
              ? s(h.commandLine.projectReferences, h.references, h)
              : void 0,
          )
        );
      }
    }
    function rj(e, t, r) {
      return e && vVe(e, t, r);
    }
    function vVe(e, t, r) {
      return XR(e, t, (i) =>
        Cd(i.initializer)
          ? hn(i.initializer.elements, (o) => ka(o) && o.text === r)
          : void 0,
      );
    }
    function qre(e, t, r) {
      return ij(e, t, (i) =>
        ka(i.initializer) && i.initializer.text === r ? i.initializer : void 0,
      );
    }
    function ij(e, t, r) {
      return XR(e, t, r);
    }
    function _s(e, t = !0) {
      const r = e && Q0e(e);
      return (r && !t && Op(r), qT(r, !1));
    }
    function aw(e, t, r) {
      let i = r(e);
      return (i ? jr(i, e) : (i = Q0e(e, r)), i && !t && Op(i), i);
    }
    function Q0e(e, t) {
      const r = t ? (s) => aw(s, !0, t) : _s,
        o = kn(
          e,
          r,
          void 0,
          t ? (s) => s && oj(s, !0, t) : (s) => s && WS(s),
          r,
        );
      if (o === e) {
        const s = ka(e)
          ? jr(L.createStringLiteralFromNode(e), e)
          : np(e)
            ? jr(L.createNumericLiteral(e.text, e.numericLiteralFlags), e)
            : L.cloneNode(e);
        return vt(s, e);
      }
      return ((o.parent = void 0), o);
    }
    function WS(e, t = !0) {
      if (e) {
        const r = L.createNodeArray(
          e.map((i) => _s(i, t)),
          e.hasTrailingComma,
        );
        return (vt(r, e), r);
      }
      return e;
    }
    function oj(e, t, r) {
      return L.createNodeArray(
        e.map((i) => aw(i, t, r)),
        e.hasTrailingComma,
      );
    }
    function Op(e) {
      (aj(e), Jre(e));
    }
    function aj(e) {
      Kre(e, 1024, bVe);
    }
    function Jre(e) {
      Kre(e, 2048, AV);
    }
    function Kre(e, t, r) {
      Qh(e, t);
      const i = r(e);
      i && Kre(i, t, r);
    }
    function bVe(e) {
      return Jo(e, (t) => t);
    }
    function Xre() {
      let e, t, r, i, o;
      return {
        createBaseSourceFileNode: s,
        createBaseIdentifierNode: l,
        createBasePrivateIdentifierNode: u,
        createBaseTokenNode: d,
        createBaseNode: _,
      };
      function s(h) {
        return new (o || (o = Rd.getSourceFileConstructor()))(h, -1, -1);
      }
      function l(h) {
        return new (r || (r = Rd.getIdentifierConstructor()))(h, -1, -1);
      }
      function u(h) {
        return new (i || (i = Rd.getPrivateIdentifierConstructor()))(h, -1, -1);
      }
      function d(h) {
        return new (t || (t = Rd.getTokenConstructor()))(h, -1, -1);
      }
      function _(h) {
        return new (e || (e = Rd.getNodeConstructor()))(h, -1, -1);
      }
    }
    function Yre(e) {
      let t, r;
      return {
        getParenthesizeLeftSideOfBinaryForOperator: i,
        getParenthesizeRightSideOfBinaryForOperator: o,
        parenthesizeLeftSideOfBinary: h,
        parenthesizeRightSideOfBinary: g,
        parenthesizeExpressionOfComputedPropertyName: E,
        parenthesizeConditionOfConditionalExpression: A,
        parenthesizeBranchOfConditionalExpression: R,
        parenthesizeExpressionOfExportDefault: N,
        parenthesizeExpressionOfNew: P,
        parenthesizeLeftSideOfAccess: k,
        parenthesizeOperandOfPostfixUnary: W,
        parenthesizeOperandOfPrefixUnary: O,
        parenthesizeExpressionsOfCommaDelimitedList: G,
        parenthesizeExpressionForDisallowedComma: j,
        parenthesizeExpressionOfExpressionStatement: J,
        parenthesizeConciseBodyOfArrowFunction: Z,
        parenthesizeCheckTypeOfConditionalType: q,
        parenthesizeExtendsTypeOfConditionalType: ye,
        parenthesizeConstituentTypesOfUnionType: K,
        parenthesizeConstituentTypeOfUnionType: ie,
        parenthesizeConstituentTypesOfIntersectionType: de,
        parenthesizeConstituentTypeOfIntersectionType: pe,
        parenthesizeOperandOfTypeOperator: fe,
        parenthesizeOperandOfReadonlyTypeOperator: ve,
        parenthesizeNonArrayTypeOfPostfixType: xe,
        parenthesizeElementTypesOfTupleType: X,
        parenthesizeElementTypeOfTupleType: Ce,
        parenthesizeTypeOfOptionalType: Se,
        parenthesizeTypeArguments: Ne,
        parenthesizeLeadingTypeArgument: re,
      };
      function i(Be) {
        t || (t = new Map());
        let lt = t.get(Be);
        return (lt || ((lt = (ce) => h(Be, ce)), t.set(Be, lt)), lt);
      }
      function o(Be) {
        r || (r = new Map());
        let lt = r.get(Be);
        return (lt || ((lt = (ce) => g(Be, void 0, ce)), r.set(Be, lt)), lt);
      }
      function s(Be, lt) {
        return Be === 61
          ? lt === 56 || lt === 57
          : lt === 61
            ? Be === 56 || Be === 57
            : !1;
      }
      function l(Be, lt, ce, Re) {
        const _e = Wm(lt);
        if (Nr(_e) && s(Be, _e.operatorToken.kind)) return !0;
        const je = Nk(227, Be),
          Ge = $G(227, Be);
        if (!ce && lt.kind === 220 && je > 3) return !0;
        const We = lM(_e);
        switch (js(We, je)) {
          case -1:
            return !(!ce && Ge === 1 && lt.kind === 230);
          case 1:
            return !1;
          case 0:
            if (ce) return Ge === 1;
            if (Nr(_e) && _e.operatorToken.kind === Be) {
              if (u(Be)) return !1;
              if (Be === 40) {
                const Wt = Re ? d(Re) : 0;
                if (ON(Wt) && Wt === d(_e)) return !1;
              }
            }
            return YG(_e) === 0;
        }
      }
      function u(Be) {
        return Be === 42 || Be === 52 || Be === 51 || Be === 53 || Be === 28;
      }
      function d(Be) {
        if (((Be = Wm(Be)), ON(Be.kind))) return Be.kind;
        if (Be.kind === 227 && Be.operatorToken.kind === 40) {
          if (Be.cachedLiteralKind !== void 0) return Be.cachedLiteralKind;
          const lt = d(Be.left),
            ce = ON(lt) && lt === d(Be.right) ? lt : 0;
          return ((Be.cachedLiteralKind = ce), ce);
        }
        return 0;
      }
      function _(Be, lt, ce, Re) {
        return Wm(lt).kind === 218
          ? lt
          : l(Be, lt, ce, Re)
            ? e.createParenthesizedExpression(lt)
            : lt;
      }
      function h(Be, lt) {
        return _(Be, lt, !0);
      }
      function g(Be, lt, ce) {
        return _(Be, ce, !1, lt);
      }
      function E(Be) {
        return YM(Be) ? e.createParenthesizedExpression(Be) : Be;
      }
      function A(Be) {
        const lt = Nk(228, 58),
          ce = Wm(Be),
          Re = lM(ce);
        return js(Re, lt) !== 1 ? e.createParenthesizedExpression(Be) : Be;
      }
      function R(Be) {
        const lt = Wm(Be);
        return YM(lt) ? e.createParenthesizedExpression(Be) : Be;
      }
      function N(Be) {
        const lt = Wm(Be);
        let ce = YM(lt);
        if (!ce)
          switch (uD(lt, !1).kind) {
            case 232:
            case 219:
              ce = !0;
          }
        return ce ? e.createParenthesizedExpression(Be) : Be;
      }
      function P(Be) {
        const lt = uD(Be, !0);
        switch (lt.kind) {
          case 214:
            return e.createParenthesizedExpression(Be);
          case 215:
            return lt.arguments ? Be : e.createParenthesizedExpression(Be);
        }
        return k(Be);
      }
      function k(Be, lt) {
        const ce = Wm(Be);
        return $u(ce) && (ce.kind !== 215 || ce.arguments) && (lt || !tu(ce))
          ? Be
          : vt(e.createParenthesizedExpression(Be), Be);
      }
      function W(Be) {
        return $u(Be) ? Be : vt(e.createParenthesizedExpression(Be), Be);
      }
      function O(Be) {
        return tG(Be) ? Be : vt(e.createParenthesizedExpression(Be), Be);
      }
      function G(Be) {
        const lt = Zi(Be, j);
        return vt(e.createNodeArray(lt, Be.hasTrailingComma), Be);
      }
      function j(Be) {
        const lt = Wm(Be),
          ce = lM(lt),
          Re = Nk(227, 28);
        return ce > Re ? Be : vt(e.createParenthesizedExpression(Be), Be);
      }
      function J(Be) {
        const lt = Wm(Be);
        if (Zo(lt)) {
          const Re = lt.expression,
            _e = Wm(Re).kind;
          if (_e === 219 || _e === 220) {
            const je = e.updateCallExpression(
              lt,
              vt(e.createParenthesizedExpression(Re), Re),
              lt.typeArguments,
              lt.arguments,
            );
            return e.restoreOuterExpressions(Be, je, 8);
          }
        }
        const ce = uD(lt, !1).kind;
        return ce === 211 || ce === 219
          ? vt(e.createParenthesizedExpression(Be), Be)
          : Be;
      }
      function Z(Be) {
        return !ea(Be) && (YM(Be) || uD(Be, !1).kind === 211)
          ? vt(e.createParenthesizedExpression(Be), Be)
          : Be;
      }
      function q(Be) {
        switch (Be.kind) {
          case 185:
          case 186:
          case 195:
            return e.createParenthesizedType(Be);
        }
        return Be;
      }
      function ye(Be) {
        switch (Be.kind) {
          case 195:
            return e.createParenthesizedType(Be);
        }
        return Be;
      }
      function ie(Be) {
        switch (Be.kind) {
          case 193:
          case 194:
            return e.createParenthesizedType(Be);
        }
        return q(Be);
      }
      function K(Be) {
        return e.createNodeArray(Zi(Be, ie));
      }
      function pe(Be) {
        switch (Be.kind) {
          case 193:
          case 194:
            return e.createParenthesizedType(Be);
        }
        return ie(Be);
      }
      function de(Be) {
        return e.createNodeArray(Zi(Be, pe));
      }
      function fe(Be) {
        switch (Be.kind) {
          case 194:
            return e.createParenthesizedType(Be);
        }
        return pe(Be);
      }
      function ve(Be) {
        switch (Be.kind) {
          case 199:
            return e.createParenthesizedType(Be);
        }
        return fe(Be);
      }
      function xe(Be) {
        switch (Be.kind) {
          case 196:
          case 199:
          case 187:
            return e.createParenthesizedType(Be);
        }
        return fe(Be);
      }
      function X(Be) {
        return e.createNodeArray(Zi(Be, Ce));
      }
      function Ce(Be) {
        return Je(Be) ? e.createParenthesizedType(Be) : Be;
      }
      function Je(Be) {
        return RD(Be)
          ? Be.postfix
          : bD(Be) || w_(Be) || vD(Be) || KT(Be)
            ? Je(Be.type)
            : zS(Be)
              ? Je(Be.falseType)
              : dv(Be) || JI(Be)
                ? Je(Ba(Be.types))
                : y1(Be)
                  ? !!Be.typeParameter.constraint &&
                    Je(Be.typeParameter.constraint)
                  : !1;
      }
      function Se(Be) {
        return Je(Be) ? e.createParenthesizedType(Be) : xe(Be);
      }
      function re(Be) {
        return lte(Be) && Be.typeParameters
          ? e.createParenthesizedType(Be)
          : Be;
      }
      function be(Be, lt) {
        return lt === 0 ? re(Be) : Be;
      }
      function Ne(Be) {
        if (yt(Be)) return e.createNodeArray(Zi(Be, be));
      }
    }
    var $re = {
      getParenthesizeLeftSideOfBinaryForOperator: (e) => Vs,
      getParenthesizeRightSideOfBinaryForOperator: (e) => Vs,
      parenthesizeLeftSideOfBinary: (e, t) => t,
      parenthesizeRightSideOfBinary: (e, t, r) => r,
      parenthesizeExpressionOfComputedPropertyName: Vs,
      parenthesizeConditionOfConditionalExpression: Vs,
      parenthesizeBranchOfConditionalExpression: Vs,
      parenthesizeExpressionOfExportDefault: Vs,
      parenthesizeExpressionOfNew: (e) => ma(e, $u),
      parenthesizeLeftSideOfAccess: (e) => ma(e, $u),
      parenthesizeOperandOfPostfixUnary: (e) => ma(e, $u),
      parenthesizeOperandOfPrefixUnary: (e) => ma(e, tG),
      parenthesizeExpressionsOfCommaDelimitedList: (e) => ma(e, hS),
      parenthesizeExpressionForDisallowedComma: Vs,
      parenthesizeExpressionOfExpressionStatement: Vs,
      parenthesizeConciseBodyOfArrowFunction: Vs,
      parenthesizeCheckTypeOfConditionalType: Vs,
      parenthesizeExtendsTypeOfConditionalType: Vs,
      parenthesizeConstituentTypesOfUnionType: (e) => ma(e, hS),
      parenthesizeConstituentTypeOfUnionType: Vs,
      parenthesizeConstituentTypesOfIntersectionType: (e) => ma(e, hS),
      parenthesizeConstituentTypeOfIntersectionType: Vs,
      parenthesizeOperandOfTypeOperator: Vs,
      parenthesizeOperandOfReadonlyTypeOperator: Vs,
      parenthesizeNonArrayTypeOfPostfixType: Vs,
      parenthesizeElementTypesOfTupleType: (e) => ma(e, hS),
      parenthesizeElementTypeOfTupleType: Vs,
      parenthesizeTypeOfOptionalType: Vs,
      parenthesizeTypeArguments: (e) => e && ma(e, hS),
      parenthesizeLeadingTypeArgument: Vs,
    };
    function Qre(e) {
      return {
        convertToFunctionBlock: t,
        convertToFunctionExpression: r,
        convertToClassExpression: i,
        convertToArrayAssignmentElement: o,
        convertToObjectAssignmentElement: s,
        convertToAssignmentPattern: l,
        convertToObjectAssignmentPattern: u,
        convertToArrayAssignmentPattern: d,
        convertToAssignmentElementTarget: _,
      };
      function t(h, g) {
        if (ea(h)) return h;
        const E = e.createReturnStatement(h);
        vt(E, h);
        const A = e.createBlock([E], g);
        return (vt(A, h), A);
      }
      function r(h) {
        var g;
        if (!h.body)
          return C.fail("Cannot convert a FunctionDeclaration without a body");
        const E = e.createFunctionExpression(
          (g = mS(h)) == null ? void 0 : g.filter((A) => !VI(A) && !_4(A)),
          h.asteriskToken,
          h.name,
          h.typeParameters,
          h.parameters,
          h.type,
          h.body,
        );
        return (jr(E, h), vt(E, h), wM(h) && c4(E, !0), E);
      }
      function i(h) {
        var g;
        const E = e.createClassExpression(
          (g = h.modifiers) == null
            ? void 0
            : g.filter((A) => !VI(A) && !_4(A)),
          h.name,
          h.typeParameters,
          h.heritageClauses,
          h.members,
        );
        return (jr(E, h), vt(E, h), wM(h) && c4(E, !0), E);
      }
      function o(h) {
        if (Ha(h)) {
          if (h.dotDotDotToken)
            return (
              C.assertNode(h.name, He),
              jr(vt(e.createSpreadElement(h.name), h), h)
            );
          const g = _(h.name);
          return h.initializer
            ? jr(vt(e.createAssignment(g, h.initializer), h), h)
            : g;
        }
        return ma(h, St);
      }
      function s(h) {
        if (Ha(h)) {
          if (h.dotDotDotToken)
            return (
              C.assertNode(h.name, He),
              jr(vt(e.createSpreadAssignment(h.name), h), h)
            );
          if (h.propertyName) {
            const g = _(h.name);
            return jr(
              vt(
                e.createPropertyAssignment(
                  h.propertyName,
                  h.initializer ? e.createAssignment(g, h.initializer) : g,
                ),
                h,
              ),
              h,
            );
          }
          return (
            C.assertNode(h.name, He),
            jr(
              vt(e.createShorthandPropertyAssignment(h.name, h.initializer), h),
              h,
            )
          );
        }
        return ma(h, ny);
      }
      function l(h) {
        switch (h.kind) {
          case 208:
          case 210:
            return d(h);
          case 207:
          case 211:
            return u(h);
        }
      }
      function u(h) {
        return ff(h)
          ? jr(vt(e.createObjectLiteralExpression(Vt(h.elements, s)), h), h)
          : ma(h, Wa);
      }
      function d(h) {
        return pv(h)
          ? jr(vt(e.createArrayLiteralExpression(Vt(h.elements, o)), h), h)
          : ma(h, Cd);
      }
      function _(h) {
        return Qo(h) ? l(h) : ma(h, St);
      }
    }
    var Zre = {
        convertToFunctionBlock: ha,
        convertToFunctionExpression: ha,
        convertToClassExpression: ha,
        convertToArrayAssignmentElement: ha,
        convertToObjectAssignmentElement: ha,
        convertToAssignmentPattern: ha,
        convertToObjectAssignmentPattern: ha,
        convertToArrayAssignmentPattern: ha,
        convertToAssignmentElementTarget: ha,
      },
      sj = 0,
      eie = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.NoParenthesizerRules = 1)] = "NoParenthesizerRules"),
        (e[(e.NoNodeConverters = 2)] = "NoNodeConverters"),
        (e[(e.NoIndentationOnFreshPropertyAccess = 4)] =
          "NoIndentationOnFreshPropertyAccess"),
        (e[(e.NoOriginalNode = 8)] = "NoOriginalNode"),
        e
      ))(eie || {}),
      Z0e = [];
    function eSe(e) {
      Z0e.push(e);
    }
    function sw(e, t) {
      const r = e & 8 ? Vs : jr,
        i = Nu(() => (e & 1 ? $re : Yre(k))),
        o = Nu(() => (e & 2 ? Zre : Qre(k))),
        s = Fh((T) => (M, V) => or(M, T, V)),
        l = Fh((T) => (M) => ut(T, M)),
        u = Fh((T) => (M) => an(M, T)),
        d = Fh((T) => () => Wo(T)),
        _ = Fh((T) => (M) => tA(T, M)),
        h = Fh((T) => (M, V) => Mr(T, M, V)),
        g = Fh((T) => (M, V) => vp(T, M, V)),
        E = Fh((T) => (M, V) => Yb(T, M, V)),
        A = Fh((T) => (M, V) => O0(T, M, V)),
        R = Fh((T) => (M, V, ue) => My(T, M, V, ue)),
        N = Fh((T) => (M, V, ue) => CC(T, M, V, ue)),
        P = Fh((T) => (M, V, ue, tt) => W0(T, M, V, ue, tt)),
        k = {
          get parenthesizer() {
            return i();
          },
          get converters() {
            return o();
          },
          baseFactory: t,
          flags: e,
          createNodeArray: W,
          createNumericLiteral: J,
          createBigIntLiteral: Z,
          createStringLiteral: ye,
          createStringLiteralFromNode: ie,
          createRegularExpressionLiteral: K,
          createLiteralLikeNode: pe,
          createIdentifier: ve,
          createTempVariable: xe,
          createLoopVariable: X,
          createUniqueName: Ce,
          getGeneratedNameForNode: Je,
          createPrivateIdentifier: re,
          createUniquePrivateName: Ne,
          getGeneratedPrivateNameForNode: Be,
          createToken: ce,
          createSuper: Re,
          createThis: _e,
          createNull: je,
          createTrue: Ge,
          createFalse: We,
          createModifier: at,
          createModifiersFromModifierFlags: Wt,
          createQualifiedName: cn,
          updateQualifiedName: gn,
          createComputedPropertyName: Kn,
          updateComputedPropertyName: _t,
          createTypeParameterDeclaration: en,
          updateTypeParameterDeclaration: ir,
          createParameterDeclaration: Di,
          updateParameterDeclaration: lo,
          createDecorator: zt,
          updateDecorator: Zr,
          createPropertySignature: Ai,
          updatePropertySignature: Ni,
          createPropertyDeclaration: Ci,
          updatePropertyDeclaration: $e,
          createMethodSignature: At,
          updateMethodSignature: mn,
          createMethodDeclaration: dr,
          updateMethodDeclaration: ri,
          createConstructorDeclaration: Mn,
          updateConstructorDeclaration: Uo,
          createGetAccessorDeclaration: Ft,
          updateGetAccessorDeclaration: le,
          createSetAccessorDeclaration: ne,
          updateSetAccessorDeclaration: Fe,
          createCallSignature: dt,
          updateCallSignature: Lt,
          createConstructSignature: Ue,
          updateConstructSignature: Rt,
          createIndexSignature: It,
          updateIndexSignature: Ot,
          createClassStaticBlockDeclaration: qi,
          updateClassStaticBlockDeclaration: $o,
          createTemplateLiteralTypeSpan: nt,
          updateTemplateLiteralTypeSpan: Kt,
          createKeywordTypeNode: Tr,
          createTypePredicateNode: Oe,
          updateTypePredicateNode: Nt,
          createTypeReferenceNode: he,
          updateTypeReferenceNode: B,
          createFunctionTypeNode: Ae,
          updateFunctionTypeNode: te,
          createConstructorTypeNode: Xt,
          updateConstructorTypeNode: Bt,
          createTypeQueryNode: Jn,
          updateTypeQueryNode: ft,
          createTypeLiteralNode: Mt,
          updateTypeLiteralNode: jt,
          createArrayTypeNode: Qt,
          updateArrayTypeNode: In,
          createTupleTypeNode: yn,
          updateTupleTypeNode: wt,
          createNamedTupleMember: En,
          updateNamedTupleMember: xn,
          createOptionalTypeNode: Ln,
          updateOptionalTypeNode: ln,
          createRestTypeNode: Ii,
          updateRestTypeNode: ra,
          createUnionTypeNode: Bl,
          updateUnionTypeNode: xl,
          createIntersectionTypeNode: Ps,
          updateIntersectionTypeNode: co,
          createConditionalTypeNode: Go,
          updateConditionalTypeNode: Tc,
          createInferTypeNode: $s,
          updateInferTypeNode: Ra,
          createImportTypeNode: Lo,
          updateImportTypeNode: fa,
          createParenthesizedType: is,
          updateParenthesizedType: qa,
          createThisTypeNode: Zt,
          createTypeOperatorNode: As,
          updateTypeOperatorNode: Hl,
          createIndexedAccessTypeNode: sc,
          updateIndexedAccessTypeNode: vd,
          createMappedTypeNode: Fs,
          updateMappedTypeNode: Ee,
          createLiteralTypeNode: Y,
          updateLiteralTypeNode: pt,
          createTemplateLiteralType: ec,
          updateTemplateLiteralType: bf,
          createObjectBindingPattern: qt,
          updateObjectBindingPattern: fn,
          createArrayBindingPattern: ur,
          updateArrayBindingPattern: si,
          createBindingElement: Dr,
          updateBindingElement: Fn,
          createArrayLiteralExpression: ro,
          updateArrayLiteralExpression: So,
          createObjectLiteralExpression: Ns,
          updateObjectLiteralExpression: Da,
          createPropertyAccessExpression:
            e & 4 ? (T, M) => Cr(Sc(T, M), 262144) : Sc,
          updatePropertyAccessExpression: fc,
          createPropertyAccessChain:
            e & 4 ? (T, M, V) => Cr(Hs(T, M, V), 262144) : Hs,
          updatePropertyAccessChain: Pl,
          createElementAccessExpression: Pd,
          updateElementAccessExpression: nf,
          createElementAccessChain: op,
          updateElementAccessChain: ze,
          createCallExpression: er,
          updateCallExpression: go,
          createCallChain: Za,
          updateCallChain: es,
          createNewExpression: Va,
          updateNewExpression: Mc,
          createTaggedTemplateExpression: tl,
          updateTaggedTemplateExpression: Ll,
          createTypeAssertion: ql,
          updateTypeAssertion: rf,
          createParenthesizedExpression: bd,
          updateParenthesizedExpression: ld,
          createFunctionExpression: jp,
          updateFunctionExpression: Au,
          createArrowFunction: Xf,
          updateArrowFunction: G_,
          createDeleteExpression: Cg,
          updateDeleteExpression: Ng,
          createTypeOfExpression: ap,
          updateTypeOfExpression: Xc,
          createVoidExpression: bh,
          updateVoidExpression: Tf,
          createAwaitExpression: p_,
          updateAwaitExpression: oe,
          createPrefixUnaryExpression: ut,
          updatePrefixUnaryExpression: tn,
          createPostfixUnaryExpression: an,
          updatePostfixUnaryExpression: wn,
          createBinaryExpression: or,
          updateBinaryExpression: Ti,
          createConditionalExpression: $i,
          updateConditionalExpression: z,
          createTemplateExpression: Ve,
          updateTemplateExpression: kt,
          createTemplateHead: ml,
          createTemplateMiddle: Ca,
          createTemplateTail: cd,
          createNoSubstitutionTemplateLiteral: Up,
          createTemplateLiteralLikeNode: Vo,
          createYieldExpression: Sf,
          updateYieldExpression: Yf,
          createSpreadElement: Ty,
          updateSpreadElement: Tv,
          createClassExpression: Bu,
          updateClassExpression: V_,
          createOmittedExpression: Th,
          createExpressionWithTypeArguments: Im,
          updateExpressionWithTypeArguments: Hb,
          createAsExpression: Xe,
          updateAsExpression: mt,
          createNonNullExpression: Yt,
          updateNonNullExpression: Rn,
          createSatisfiesExpression: Qn,
          updateSatisfiesExpression: Lr,
          createNonNullChain: Yn,
          updateNonNullChain: lr,
          createMetaProperty: Oi,
          updateMetaProperty: Ro,
          createTemplateSpan: _i,
          updateTemplateSpan: Do,
          createSemicolonClassElement: Qi,
          createBlock: hl,
          updateBlock: sp,
          createVariableStatement: xm,
          updateVariableStatement: Td,
          createEmptyStatement: Rm,
          createExpressionStatement: Hp,
          updateExpressionStatement: b0,
          createIfStatement: f_,
          updateIfStatement: j_,
          createDoStatement: T0,
          updateDoStatement: U_,
          createWhileStatement: TC,
          updateWhileStatement: tL,
          createForStatement: SC,
          updateForStatement: Mg,
          createForInStatement: S0,
          updateForInStatement: q1,
          createForOfStatement: Sv,
          updateForOfStatement: J1,
          createContinueStatement: Dx,
          updateContinueStatement: nL,
          createBreakStatement: K1,
          updateBreakStatement: Cx,
          createReturnStatement: E0,
          updateReturnStatement: EC,
          createWithStatement: X1,
          updateWithStatement: Nx,
          createSwitchStatement: lE,
          updateSwitchStatement: qb,
          createLabeledStatement: Mx,
          updateLabeledStatement: Px,
          createThrowStatement: cE,
          updateThrowStatement: Jb,
          createTryStatement: Ev,
          updateTryStatement: Sy,
          createDebuggerStatement: Ey,
          createVariableDeclaration: Ay,
          updateVariableDeclaration: Kb,
          createVariableDeclarationList: A0,
          updateVariableDeclarationList: Y1,
          createFunctionDeclaration: I0,
          updateFunctionDeclaration: ns,
          createClassDeclaration: AC,
          updateClassDeclaration: Iy,
          createInterfaceDeclaration: xy,
          updateInterfaceDeclaration: H_,
          createTypeAliasDeclaration: cl,
          updateTypeAliasDeclaration: qd,
          createEnumDeclaration: lp,
          updateEnumDeclaration: Jd,
          createModuleDeclaration: x0,
          updateModuleDeclaration: Iu,
          createModuleBlock: q_,
          updateModuleBlock: Gu,
          createCaseBlock: Dm,
          updateCaseBlock: qm,
          createNamespaceExportDeclaration: R0,
          updateNamespaceExportDeclaration: D0,
          createImportEqualsDeclaration: IC,
          updateImportEqualsDeclaration: Av,
          createImportDeclaration: dE,
          updateImportDeclaration: Qe,
          createImportClause: Q1,
          updateImportClause: Pg,
          createAssertClause: Jm,
          updateAssertClause: Iv,
          createAssertEntry: Xb,
          updateAssertEntry: xu,
          createImportTypeAssertionContainer: Sh,
          updateImportTypeAssertionContainer: Cm,
          createImportAttributes: C0,
          updateImportAttributes: ja,
          createImportAttribute: Ef,
          updateImportAttribute: xv,
          createNamespaceImport: Z1,
          updateNamespaceImport: Ry,
          createNamespaceExport: uE,
          updateNamespaceExport: $f,
          createNamedImports: Lg,
          updateNamedImports: N0,
          createImportSpecifier: Rv,
          updateImportSpecifier: m_,
          createExportAssignment: pE,
          updateExportAssignment: M0,
          createExportDeclaration: Jr,
          updateExportDeclaration: Vr,
          createNamedExports: eA,
          updateNamedExports: Dy,
          createExportSpecifier: fE,
          updateExportSpecifier: xC,
          createMissingDeclaration: iL,
          createExternalModuleReference: zr,
          updateExternalModuleReference: Ru,
          get createJSDocAllType() {
            return d(313);
          },
          get createJSDocUnknownType() {
            return d(314);
          },
          get createJSDocNonNullableType() {
            return g(316);
          },
          get updateJSDocNonNullableType() {
            return E(316);
          },
          get createJSDocNullableType() {
            return g(315);
          },
          get updateJSDocNullableType() {
            return E(315);
          },
          get createJSDocOptionalType() {
            return _(317);
          },
          get updateJSDocOptionalType() {
            return h(317);
          },
          get createJSDocVariadicType() {
            return _(319);
          },
          get updateJSDocVariadicType() {
            return h(319);
          },
          get createJSDocNamepathType() {
            return _(320);
          },
          get updateJSDocNamepathType() {
            return h(320);
          },
          createJSDocFunctionType: RC,
          updateJSDocFunctionType: Lx,
          createJSDocTypeLiteral: du,
          updateJSDocTypeLiteral: J_,
          createJSDocTypeExpression: Eh,
          updateJSDocTypeExpression: $b,
          createJSDocSignature: nA,
          updateJSDocSignature: Qb,
          createJSDocTemplateTag: cp,
          updateJSDocTemplateTag: Dv,
          createJSDocTypedefTag: P0,
          updateJSDocTypedefTag: kx,
          createJSDocParameterTag: L0,
          updateJSDocParameterTag: Zb,
          createJSDocPropertyTag: wx,
          updateJSDocPropertyTag: Cy,
          createJSDocCallbackTag: h_,
          updateJSDocCallbackTag: eT,
          createJSDocOverloadTag: k0,
          updateJSDocOverloadTag: Cv,
          createJSDocAugmentsTag: tT,
          updateJSDocAugmentsTag: Xm,
          createJSDocImplementsTag: Ny,
          updateJSDocImplementsTag: Fx,
          createJSDocSeeTag: kg,
          updateJSDocSeeTag: nT,
          createJSDocImportTag: dp,
          updateJSDocImportTag: Zf,
          createJSDocNameReference: dd,
          updateJSDocNameReference: mE,
          createJSDocMemberName: wg,
          updateJSDocMemberName: w0,
          createJSDocLink: rA,
          updateJSDocLink: Og,
          createJSDocLinkCode: DC,
          updateJSDocLinkCode: Ox,
          createJSDocLinkPlain: Wx,
          updateJSDocLinkPlain: oL,
          get createJSDocTypeTag() {
            return N(345);
          },
          get updateJSDocTypeTag() {
            return P(345);
          },
          get createJSDocReturnTag() {
            return N(343);
          },
          get updateJSDocReturnTag() {
            return P(343);
          },
          get createJSDocThisTag() {
            return N(344);
          },
          get updateJSDocThisTag() {
            return P(344);
          },
          get createJSDocAuthorTag() {
            return A(331);
          },
          get updateJSDocAuthorTag() {
            return R(331);
          },
          get createJSDocClassTag() {
            return A(333);
          },
          get updateJSDocClassTag() {
            return R(333);
          },
          get createJSDocPublicTag() {
            return A(334);
          },
          get updateJSDocPublicTag() {
            return R(334);
          },
          get createJSDocPrivateTag() {
            return A(335);
          },
          get updateJSDocPrivateTag() {
            return R(335);
          },
          get createJSDocProtectedTag() {
            return A(336);
          },
          get updateJSDocProtectedTag() {
            return R(336);
          },
          get createJSDocReadonlyTag() {
            return A(337);
          },
          get updateJSDocReadonlyTag() {
            return R(337);
          },
          get createJSDocOverrideTag() {
            return A(338);
          },
          get updateJSDocOverrideTag() {
            return R(338);
          },
          get createJSDocDeprecatedTag() {
            return A(332);
          },
          get updateJSDocDeprecatedTag() {
            return R(332);
          },
          get createJSDocThrowsTag() {
            return N(350);
          },
          get updateJSDocThrowsTag() {
            return P(350);
          },
          get createJSDocSatisfiesTag() {
            return N(351);
          },
          get updateJSDocSatisfiesTag() {
            return P(351);
          },
          createJSDocEnumTag: ud,
          updateJSDocEnumTag: zx,
          createJSDocUnknownTag: iA,
          updateJSDocUnknownTag: mc,
          createJSDocText: hE,
          updateJSDocText: Ah,
          createJSDocComment: rT,
          updateJSDocComment: Nv,
          createJsxElement: Bx,
          updateJsxElement: aL,
          createJsxSelfClosingElement: Gl,
          updateJsxSelfClosingElement: NC,
          createJsxOpeningElement: oA,
          updateJsxOpeningElement: _E,
          createJsxClosingElement: Gx,
          updateJsxClosingElement: uu,
          createJsxFragment: bp,
          createJsxText: F0,
          updateJsxText: Tp,
          createJsxOpeningFragment: sA,
          createJsxJsxClosingFragment: Wg,
          updateJsxFragment: aA,
          createJsxAttribute: Vx,
          updateJsxAttribute: lA,
          createJsxAttributes: Ym,
          updateJsxAttributes: jx,
          createJsxSpreadAttribute: MC,
          updateJsxSpreadAttribute: Ux,
          createJsxExpression: cA,
          updateJsxExpression: Hx,
          createJsxNamespacedName: Mv,
          updateJsxNamespacedName: qp,
          createCaseClause: __,
          updateCaseClause: dA,
          createDefaultClause: uA,
          updateDefaultClause: os,
          createHeritageClause: Wr,
          updateHeritageClause: If,
          createCatchClause: Yc,
          updateCatchClause: z0,
          createPropertyAssignment: pA,
          updatePropertyAssignment: gE,
          createShorthandPropertyAssignment: fA,
          updateShorthandPropertyAssignment: D,
          createSpreadAssignment: Et,
          updateSpreadAssignment: An,
          createEnumMember: vi,
          updateEnumMember: wi,
          createSourceFile: Ao,
          updateSourceFile: G0,
          createRedirectedSourceFile: Li,
          createBundle: ju,
          updateBundle: iT,
          createSyntheticExpression: qx,
          createSyntaxList: Nm,
          createNotEmittedStatement: bl,
          createNotEmittedTypeElement: $m,
          createPartiallyEmittedExpression: mA,
          updatePartiallyEmittedExpression: Pv,
          createCommaListExpression: yE,
          updateCommaListExpression: Wz,
          createSyntheticReferenceExpression: sL,
          updateSyntheticReferenceExpression: Jx,
          cloneNode: hA,
          get createComma() {
            return s(28);
          },
          get createAssignment() {
            return s(64);
          },
          get createLogicalOr() {
            return s(57);
          },
          get createLogicalAnd() {
            return s(56);
          },
          get createBitwiseOr() {
            return s(52);
          },
          get createBitwiseXor() {
            return s(53);
          },
          get createBitwiseAnd() {
            return s(51);
          },
          get createStrictEquality() {
            return s(37);
          },
          get createStrictInequality() {
            return s(38);
          },
          get createEquality() {
            return s(35);
          },
          get createInequality() {
            return s(36);
          },
          get createLessThan() {
            return s(30);
          },
          get createLessThanEquals() {
            return s(33);
          },
          get createGreaterThan() {
            return s(32);
          },
          get createGreaterThanEquals() {
            return s(34);
          },
          get createLeftShift() {
            return s(48);
          },
          get createRightShift() {
            return s(49);
          },
          get createUnsignedRightShift() {
            return s(50);
          },
          get createAdd() {
            return s(40);
          },
          get createSubtract() {
            return s(41);
          },
          get createMultiply() {
            return s(42);
          },
          get createDivide() {
            return s(44);
          },
          get createModulo() {
            return s(45);
          },
          get createExponent() {
            return s(43);
          },
          get createPrefixPlus() {
            return l(40);
          },
          get createPrefixMinus() {
            return l(41);
          },
          get createPrefixIncrement() {
            return l(46);
          },
          get createPrefixDecrement() {
            return l(47);
          },
          get createBitwiseNot() {
            return l(55);
          },
          get createLogicalNot() {
            return l(54);
          },
          get createPostfixIncrement() {
            return u(46);
          },
          get createPostfixDecrement() {
            return u(47);
          },
          createImmediatelyInvokedFunctionExpression: Fz,
          createImmediatelyInvokedArrowFunction: vE,
          createVoidZero: _A,
          createExportDefault: cL,
          createExternalModuleExport: Xx,
          createTypeCheck: uo,
          createIsNotTypeCheck: aT,
          createMethodCall: ar,
          createGlobalMethodCall: bE,
          createFunctionBindCall: dL,
          createFunctionCallCall: PC,
          createFunctionApplyCall: LC,
          createArraySliceCall: TW,
          createArrayConcatCall: gA,
          createObjectDefinePropertyCall: zz,
          createObjectGetOwnPropertyDescriptorCall: kC,
          createReflectGetCall: K_,
          createReflectSetCall: SW,
          createPropertyDescriptor: Bz,
          createCallBinding: wC,
          createAssignmentTargetWrapper: g_,
          inlineExpressions: ee,
          getInternalName: rt,
          getLocalName: Pt,
          getExportName: nn,
          getDeclarationName: _n,
          getNamespaceMemberName: ei,
          getExternalModuleOrNamespaceExportName: wr,
          restoreOuterExpressions: pL,
          restoreEnclosingLabel: j0,
          createUseStrictPrologue: ao,
          copyPrologue: pr,
          copyStandardPrologue: zs,
          copyCustomPrologue: Is,
          ensureUseStrict: as,
          liftToBlock: em,
          mergeLexicalEnvironment: kv,
          replaceModifiers: wv,
          replaceDecoratorsAndModifiers: Fg,
          replacePropertyName: sT,
        };
      return (Ye(Z0e, (T) => T(k)), k);
      function W(T, M) {
        if (T === void 0 || T === ae) T = [];
        else if (hS(T)) {
          if (M === void 0 || T.hasTrailingComma === M)
            return (
              T.transformFlags === void 0 && nSe(T),
              C.attachNodeArrayDebugInfo(T),
              T
            );
          const tt = T.slice();
          return (
            (tt.pos = T.pos),
            (tt.end = T.end),
            (tt.hasTrailingComma = M),
            (tt.transformFlags = T.transformFlags),
            C.attachNodeArrayDebugInfo(tt),
            tt
          );
        }
        const V = T.length,
          ue = V >= 1 && V <= 4 ? T.slice() : T;
        return (
          (ue.pos = -1),
          (ue.end = -1),
          (ue.hasTrailingComma = !!M),
          (ue.transformFlags = 0),
          nSe(ue),
          C.attachNodeArrayDebugInfo(ue),
          ue
        );
      }
      function O(T) {
        return t.createBaseNode(T);
      }
      function G(T) {
        const M = O(T);
        return ((M.symbol = void 0), (M.localSymbol = void 0), M);
      }
      function j(T, M) {
        return (T !== M && (T.typeArguments = M.typeArguments), br(T, M));
      }
      function J(T, M = 0) {
        const V = typeof T == "number" ? T + "" : T;
        C.assert(
          V.charCodeAt(0) !== 45,
          "Negative numbers should be created in combination with createPrefixUnaryExpression",
        );
        const ue = G(9);
        return (
          (ue.text = V),
          (ue.numericLiteralFlags = M),
          M & 384 && (ue.transformFlags |= 1024),
          ue
        );
      }
      function Z(T) {
        const M = lt(10);
        return (
          (M.text = typeof T == "string" ? T : wS(T) + "n"),
          (M.transformFlags |= 32),
          M
        );
      }
      function q(T, M) {
        const V = G(11);
        return ((V.text = T), (V.singleQuote = M), V);
      }
      function ye(T, M, V) {
        const ue = q(T, M);
        return (
          (ue.hasExtendedUnicodeEscape = V),
          V && (ue.transformFlags |= 1024),
          ue
        );
      }
      function ie(T) {
        const M = q(zf(T), void 0);
        return ((M.textSourceNode = T), M);
      }
      function K(T) {
        const M = lt(14);
        return ((M.text = T), M);
      }
      function pe(T, M) {
        switch (T) {
          case 9:
            return J(M, 0);
          case 10:
            return Z(M);
          case 11:
            return ye(M, void 0);
          case 12:
            return F0(M, !1);
          case 13:
            return F0(M, !0);
          case 14:
            return K(M);
          case 15:
            return Vo(T, M, void 0, 0);
        }
      }
      function de(T) {
        const M = t.createBaseIdentifierNode(80);
        return (
          (M.escapedText = T),
          (M.jsDoc = void 0),
          (M.flowNode = void 0),
          (M.symbol = void 0),
          M
        );
      }
      function fe(T, M, V, ue) {
        const tt = de(Cl(T));
        return (pw(tt, { flags: M, id: sj, prefix: V, suffix: ue }), sj++, tt);
      }
      function ve(T, M, V) {
        (M === void 0 && T && (M = HE(T)), M === 80 && (M = void 0));
        const ue = de(Cl(T));
        return (
          V && (ue.flags |= 256),
          ue.escapedText === "await" && (ue.transformFlags |= 67108864),
          ue.flags & 256 && (ue.transformFlags |= 1024),
          ue
        );
      }
      function xe(T, M, V, ue) {
        let tt = 1;
        M && (tt |= 8);
        const rn = fe("", tt, V, ue);
        return (T && T(rn), rn);
      }
      function X(T) {
        let M = 2;
        return (T && (M |= 8), fe("", M, void 0, void 0));
      }
      function Ce(T, M = 0, V, ue) {
        return (
          C.assert(!(M & 7), "Argument out of range: flags"),
          C.assert(
            (M & 48) !== 32,
            "GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic",
          ),
          fe(T, 3 | M, V, ue)
        );
      }
      function Je(T, M = 0, V, ue) {
        C.assert(!(M & 7), "Argument out of range: flags");
        const tt = T
          ? dg(T)
            ? r0(!1, V, T, ue, Kr)
            : `generated@${ls(T)}`
          : "";
        (V || ue) && (M |= 16);
        const rn = fe(tt, 4 | M, V, ue);
        return ((rn.original = T), rn);
      }
      function Se(T) {
        const M = t.createBasePrivateIdentifierNode(81);
        return ((M.escapedText = T), (M.transformFlags |= 16777216), M);
      }
      function re(T) {
        return (
          po(T, "#") ||
            C.fail("First character of private identifier must be #: " + T),
          Se(Cl(T))
        );
      }
      function be(T, M, V, ue) {
        const tt = Se(Cl(T));
        return (pw(tt, { flags: M, id: sj, prefix: V, suffix: ue }), sj++, tt);
      }
      function Ne(T, M, V) {
        T &&
          !po(T, "#") &&
          C.fail("First character of private identifier must be #: " + T);
        const ue = 8 | (T ? 3 : 1);
        return be(T ?? "", ue, M, V);
      }
      function Be(T, M, V) {
        const ue = dg(T) ? r0(!0, M, T, V, Kr) : `#generated@${ls(T)}`,
          rn = be(ue, 4 | (M || V ? 16 : 0), M, V);
        return ((rn.original = T), rn);
      }
      function lt(T) {
        return t.createBaseTokenNode(T);
      }
      function ce(T) {
        (C.assert(T >= 0 && T <= 166, "Invalid token"),
          C.assert(
            T <= 15 || T >= 18,
            "Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals.",
          ),
          C.assert(
            T <= 9 || T >= 15,
            "Invalid token. Use 'createLiteralLikeNode' to create literals.",
          ),
          C.assert(
            T !== 80,
            "Invalid token. Use 'createIdentifier' to create identifiers",
          ));
        const M = lt(T);
        let V = 0;
        switch (T) {
          case 134:
            V = 384;
            break;
          case 160:
            V = 4;
            break;
          case 125:
          case 123:
          case 124:
          case 148:
          case 128:
          case 138:
          case 87:
          case 133:
          case 150:
          case 163:
          case 146:
          case 151:
          case 103:
          case 147:
          case 164:
          case 154:
          case 136:
          case 155:
          case 116:
          case 159:
          case 157:
            V = 1;
            break;
          case 108:
            ((V = 134218752), (M.flowNode = void 0));
            break;
          case 126:
            V = 1024;
            break;
          case 129:
            V = 16777216;
            break;
          case 110:
            ((V = 16384), (M.flowNode = void 0));
            break;
        }
        return (V && (M.transformFlags |= V), M);
      }
      function Re() {
        return ce(108);
      }
      function _e() {
        return ce(110);
      }
      function je() {
        return ce(106);
      }
      function Ge() {
        return ce(112);
      }
      function We() {
        return ce(97);
      }
      function at(T) {
        return ce(T);
      }
      function Wt(T) {
        const M = [];
        return (
          T & 32 && M.push(at(95)),
          T & 128 && M.push(at(138)),
          T & 2048 && M.push(at(90)),
          T & 4096 && M.push(at(87)),
          T & 1 && M.push(at(125)),
          T & 2 && M.push(at(123)),
          T & 4 && M.push(at(124)),
          T & 64 && M.push(at(128)),
          T & 256 && M.push(at(126)),
          T & 16 && M.push(at(164)),
          T & 8 && M.push(at(148)),
          T & 512 && M.push(at(129)),
          T & 1024 && M.push(at(134)),
          T & 8192 && M.push(at(103)),
          T & 16384 && M.push(at(147)),
          M.length ? M : void 0
        );
      }
      function cn(T, M) {
        const V = O(167);
        return (
          (V.left = T),
          (V.right = Gc(M)),
          (V.transformFlags |= Fr(V.left) | lw(V.right)),
          (V.flowNode = void 0),
          V
        );
      }
      function gn(T, M, V) {
        return T.left !== M || T.right !== V ? br(cn(M, V), T) : T;
      }
      function Kn(T) {
        const M = O(168);
        return (
          (M.expression = i().parenthesizeExpressionOfComputedPropertyName(T)),
          (M.transformFlags |= Fr(M.expression) | 1024 | 131072),
          M
        );
      }
      function _t(T, M) {
        return T.expression !== M ? br(Kn(M), T) : T;
      }
      function en(T, M, V, ue) {
        const tt = G(169);
        return (
          (tt.modifiers = cs(T)),
          (tt.name = Gc(M)),
          (tt.constraint = V),
          (tt.default = ue),
          (tt.transformFlags = 1),
          (tt.expression = void 0),
          (tt.jsDoc = void 0),
          tt
        );
      }
      function ir(T, M, V, ue, tt) {
        return T.modifiers !== M ||
          T.name !== V ||
          T.constraint !== ue ||
          T.default !== tt
          ? br(en(M, V, ue, tt), T)
          : T;
      }
      function Di(T, M, V, ue, tt, rn) {
        const Or = G(170);
        return (
          (Or.modifiers = cs(T)),
          (Or.dotDotDotToken = M),
          (Or.name = Gc(V)),
          (Or.questionToken = ue),
          (Or.type = tt),
          (Or.initializer = pu(rn)),
          Eb(Or.name)
            ? (Or.transformFlags = 1)
            : (Or.transformFlags =
                rs(Or.modifiers) |
                Fr(Or.dotDotDotToken) |
                Db(Or.name) |
                Fr(Or.questionToken) |
                Fr(Or.initializer) |
                ((Or.questionToken ?? Or.type) ? 1 : 0) |
                ((Or.dotDotDotToken ?? Or.initializer) ? 1024 : 0) |
                (Xh(Or.modifiers) & 31 ? 8192 : 0)),
          (Or.jsDoc = void 0),
          Or
        );
      }
      function lo(T, M, V, ue, tt, rn, Or) {
        return T.modifiers !== M ||
          T.dotDotDotToken !== V ||
          T.name !== ue ||
          T.questionToken !== tt ||
          T.type !== rn ||
          T.initializer !== Or
          ? br(Di(M, V, ue, tt, rn, Or), T)
          : T;
      }
      function zt(T) {
        const M = O(171);
        return (
          (M.expression = i().parenthesizeLeftSideOfAccess(T, !1)),
          (M.transformFlags |= Fr(M.expression) | 1 | 8192 | 33554432),
          M
        );
      }
      function Zr(T, M) {
        return T.expression !== M ? br(zt(M), T) : T;
      }
      function Ai(T, M, V, ue) {
        const tt = G(172);
        return (
          (tt.modifiers = cs(T)),
          (tt.name = Gc(M)),
          (tt.type = ue),
          (tt.questionToken = V),
          (tt.transformFlags = 1),
          (tt.initializer = void 0),
          (tt.jsDoc = void 0),
          tt
        );
      }
      function Ni(T, M, V, ue, tt) {
        return T.modifiers !== M ||
          T.name !== V ||
          T.questionToken !== ue ||
          T.type !== tt
          ? Pr(Ai(M, V, ue, tt), T)
          : T;
      }
      function Pr(T, M) {
        return (T !== M && (T.initializer = M.initializer), br(T, M));
      }
      function Ci(T, M, V, ue, tt) {
        const rn = G(173);
        ((rn.modifiers = cs(T)),
          (rn.name = Gc(M)),
          (rn.questionToken = V && Nb(V) ? V : void 0),
          (rn.exclamationToken = V && mw(V) ? V : void 0),
          (rn.type = ue),
          (rn.initializer = pu(tt)));
        const Or = rn.flags & 33554432 || Xh(rn.modifiers) & 128;
        return (
          (rn.transformFlags =
            rs(rn.modifiers) |
            Db(rn.name) |
            Fr(rn.initializer) |
            (Or || rn.questionToken || rn.exclamationToken || rn.type ? 1 : 0) |
            (va(rn.name) || (Xh(rn.modifiers) & 256 && rn.initializer)
              ? 8192
              : 0) |
            16777216),
          (rn.jsDoc = void 0),
          rn
        );
      }
      function $e(T, M, V, ue, tt, rn) {
        return T.modifiers !== M ||
          T.name !== V ||
          T.questionToken !== (ue !== void 0 && Nb(ue) ? ue : void 0) ||
          T.exclamationToken !== (ue !== void 0 && mw(ue) ? ue : void 0) ||
          T.type !== tt ||
          T.initializer !== rn
          ? br(Ci(M, V, ue, tt, rn), T)
          : T;
      }
      function At(T, M, V, ue, tt, rn) {
        const Or = G(174);
        return (
          (Or.modifiers = cs(T)),
          (Or.name = Gc(M)),
          (Or.questionToken = V),
          (Or.typeParameters = cs(ue)),
          (Or.parameters = cs(tt)),
          (Or.type = rn),
          (Or.transformFlags = 1),
          (Or.jsDoc = void 0),
          (Or.locals = void 0),
          (Or.nextContainer = void 0),
          (Or.typeArguments = void 0),
          Or
        );
      }
      function mn(T, M, V, ue, tt, rn, Or) {
        return T.modifiers !== M ||
          T.name !== V ||
          T.questionToken !== ue ||
          T.typeParameters !== tt ||
          T.parameters !== rn ||
          T.type !== Or
          ? j(At(M, V, ue, tt, rn, Or), T)
          : T;
      }
      function dr(T, M, V, ue, tt, rn, Or, ko) {
        const nl = G(175);
        if (
          ((nl.modifiers = cs(T)),
          (nl.asteriskToken = M),
          (nl.name = Gc(V)),
          (nl.questionToken = ue),
          (nl.exclamationToken = void 0),
          (nl.typeParameters = cs(tt)),
          (nl.parameters = W(rn)),
          (nl.type = Or),
          (nl.body = ko),
          !nl.body)
        )
          nl.transformFlags = 1;
        else {
          const of = Xh(nl.modifiers) & 1024,
            lT = !!nl.asteriskToken,
            Ih = of && lT;
          nl.transformFlags =
            rs(nl.modifiers) |
            Fr(nl.asteriskToken) |
            Db(nl.name) |
            Fr(nl.questionToken) |
            rs(nl.typeParameters) |
            rs(nl.parameters) |
            Fr(nl.type) |
            (Fr(nl.body) & -67108865) |
            (Ih ? 128 : of ? 256 : lT ? 2048 : 0) |
            (nl.questionToken || nl.typeParameters || nl.type ? 1 : 0) |
            1024;
        }
        return (
          (nl.typeArguments = void 0),
          (nl.jsDoc = void 0),
          (nl.locals = void 0),
          (nl.nextContainer = void 0),
          (nl.flowNode = void 0),
          (nl.endFlowNode = void 0),
          (nl.returnFlowNode = void 0),
          nl
        );
      }
      function ri(T, M, V, ue, tt, rn, Or, ko, nl) {
        return T.modifiers !== M ||
          T.asteriskToken !== V ||
          T.name !== ue ||
          T.questionToken !== tt ||
          T.typeParameters !== rn ||
          T.parameters !== Or ||
          T.type !== ko ||
          T.body !== nl
          ? ai(dr(M, V, ue, tt, rn, Or, ko, nl), T)
          : T;
      }
      function ai(T, M) {
        return (T !== M && (T.exclamationToken = M.exclamationToken), br(T, M));
      }
      function qi(T) {
        const M = G(176);
        return (
          (M.body = T),
          (M.transformFlags = Fr(T) | 16777216),
          (M.modifiers = void 0),
          (M.jsDoc = void 0),
          (M.locals = void 0),
          (M.nextContainer = void 0),
          (M.endFlowNode = void 0),
          (M.returnFlowNode = void 0),
          M
        );
      }
      function $o(T, M) {
        return T.body !== M ? Ia(qi(M), T) : T;
      }
      function Ia(T, M) {
        return (T !== M && (T.modifiers = M.modifiers), br(T, M));
      }
      function Mn(T, M, V) {
        const ue = G(177);
        return (
          (ue.modifiers = cs(T)),
          (ue.parameters = W(M)),
          (ue.body = V),
          ue.body
            ? (ue.transformFlags =
                rs(ue.modifiers) |
                rs(ue.parameters) |
                (Fr(ue.body) & -67108865) |
                1024)
            : (ue.transformFlags = 1),
          (ue.typeParameters = void 0),
          (ue.type = void 0),
          (ue.typeArguments = void 0),
          (ue.jsDoc = void 0),
          (ue.locals = void 0),
          (ue.nextContainer = void 0),
          (ue.endFlowNode = void 0),
          (ue.returnFlowNode = void 0),
          ue
        );
      }
      function Uo(T, M, V, ue) {
        return T.modifiers !== M || T.parameters !== V || T.body !== ue
          ? ot(Mn(M, V, ue), T)
          : T;
      }
      function ot(T, M) {
        return (
          T !== M && ((T.typeParameters = M.typeParameters), (T.type = M.type)),
          j(T, M)
        );
      }
      function Ft(T, M, V, ue, tt) {
        const rn = G(178);
        return (
          (rn.modifiers = cs(T)),
          (rn.name = Gc(M)),
          (rn.parameters = W(V)),
          (rn.type = ue),
          (rn.body = tt),
          rn.body
            ? (rn.transformFlags =
                rs(rn.modifiers) |
                Db(rn.name) |
                rs(rn.parameters) |
                Fr(rn.type) |
                (Fr(rn.body) & -67108865) |
                (rn.type ? 1 : 0))
            : (rn.transformFlags = 1),
          (rn.typeArguments = void 0),
          (rn.typeParameters = void 0),
          (rn.jsDoc = void 0),
          (rn.locals = void 0),
          (rn.nextContainer = void 0),
          (rn.flowNode = void 0),
          (rn.endFlowNode = void 0),
          (rn.returnFlowNode = void 0),
          rn
        );
      }
      function le(T, M, V, ue, tt, rn) {
        return T.modifiers !== M ||
          T.name !== V ||
          T.parameters !== ue ||
          T.type !== tt ||
          T.body !== rn
          ? ht(Ft(M, V, ue, tt, rn), T)
          : T;
      }
      function ht(T, M) {
        return (T !== M && (T.typeParameters = M.typeParameters), j(T, M));
      }
      function ne(T, M, V, ue) {
        const tt = G(179);
        return (
          (tt.modifiers = cs(T)),
          (tt.name = Gc(M)),
          (tt.parameters = W(V)),
          (tt.body = ue),
          tt.body
            ? (tt.transformFlags =
                rs(tt.modifiers) |
                Db(tt.name) |
                rs(tt.parameters) |
                (Fr(tt.body) & -67108865) |
                (tt.type ? 1 : 0))
            : (tt.transformFlags = 1),
          (tt.typeArguments = void 0),
          (tt.typeParameters = void 0),
          (tt.type = void 0),
          (tt.jsDoc = void 0),
          (tt.locals = void 0),
          (tt.nextContainer = void 0),
          (tt.flowNode = void 0),
          (tt.endFlowNode = void 0),
          (tt.returnFlowNode = void 0),
          tt
        );
      }
      function Fe(T, M, V, ue, tt) {
        return T.modifiers !== M ||
          T.name !== V ||
          T.parameters !== ue ||
          T.body !== tt
          ? it(ne(M, V, ue, tt), T)
          : T;
      }
      function it(T, M) {
        return (
          T !== M && ((T.typeParameters = M.typeParameters), (T.type = M.type)),
          j(T, M)
        );
      }
      function dt(T, M, V) {
        const ue = G(180);
        return (
          (ue.typeParameters = cs(T)),
          (ue.parameters = cs(M)),
          (ue.type = V),
          (ue.transformFlags = 1),
          (ue.jsDoc = void 0),
          (ue.locals = void 0),
          (ue.nextContainer = void 0),
          (ue.typeArguments = void 0),
          ue
        );
      }
      function Lt(T, M, V, ue) {
        return T.typeParameters !== M || T.parameters !== V || T.type !== ue
          ? j(dt(M, V, ue), T)
          : T;
      }
      function Ue(T, M, V) {
        const ue = G(181);
        return (
          (ue.typeParameters = cs(T)),
          (ue.parameters = cs(M)),
          (ue.type = V),
          (ue.transformFlags = 1),
          (ue.jsDoc = void 0),
          (ue.locals = void 0),
          (ue.nextContainer = void 0),
          (ue.typeArguments = void 0),
          ue
        );
      }
      function Rt(T, M, V, ue) {
        return T.typeParameters !== M || T.parameters !== V || T.type !== ue
          ? j(Ue(M, V, ue), T)
          : T;
      }
      function It(T, M, V) {
        const ue = G(182);
        return (
          (ue.modifiers = cs(T)),
          (ue.parameters = cs(M)),
          (ue.type = V),
          (ue.transformFlags = 1),
          (ue.jsDoc = void 0),
          (ue.locals = void 0),
          (ue.nextContainer = void 0),
          (ue.typeArguments = void 0),
          ue
        );
      }
      function Ot(T, M, V, ue) {
        return T.parameters !== V || T.type !== ue || T.modifiers !== M
          ? j(It(M, V, ue), T)
          : T;
      }
      function nt(T, M) {
        const V = O(205);
        return ((V.type = T), (V.literal = M), (V.transformFlags = 1), V);
      }
      function Kt(T, M, V) {
        return T.type !== M || T.literal !== V ? br(nt(M, V), T) : T;
      }
      function Tr(T) {
        return ce(T);
      }
      function Oe(T, M, V) {
        const ue = O(183);
        return (
          (ue.assertsModifier = T),
          (ue.parameterName = Gc(M)),
          (ue.type = V),
          (ue.transformFlags = 1),
          ue
        );
      }
      function Nt(T, M, V, ue) {
        return T.assertsModifier !== M || T.parameterName !== V || T.type !== ue
          ? br(Oe(M, V, ue), T)
          : T;
      }
      function he(T, M) {
        const V = O(184);
        return (
          (V.typeName = Gc(T)),
          (V.typeArguments = M && i().parenthesizeTypeArguments(W(M))),
          (V.transformFlags = 1),
          V
        );
      }
      function B(T, M, V) {
        return T.typeName !== M || T.typeArguments !== V ? br(he(M, V), T) : T;
      }
      function Ae(T, M, V) {
        const ue = G(185);
        return (
          (ue.typeParameters = cs(T)),
          (ue.parameters = cs(M)),
          (ue.type = V),
          (ue.transformFlags = 1),
          (ue.modifiers = void 0),
          (ue.jsDoc = void 0),
          (ue.locals = void 0),
          (ue.nextContainer = void 0),
          (ue.typeArguments = void 0),
          ue
        );
      }
      function te(T, M, V, ue) {
        return T.typeParameters !== M || T.parameters !== V || T.type !== ue
          ? xt(Ae(M, V, ue), T)
          : T;
      }
      function xt(T, M) {
        return (T !== M && (T.modifiers = M.modifiers), j(T, M));
      }
      function Xt(...T) {
        return T.length === 4
          ? Pe(...T)
          : T.length === 3
            ? gt(...T)
            : C.fail("Incorrect number of arguments specified.");
      }
      function Pe(T, M, V, ue) {
        const tt = G(186);
        return (
          (tt.modifiers = cs(T)),
          (tt.typeParameters = cs(M)),
          (tt.parameters = cs(V)),
          (tt.type = ue),
          (tt.transformFlags = 1),
          (tt.jsDoc = void 0),
          (tt.locals = void 0),
          (tt.nextContainer = void 0),
          (tt.typeArguments = void 0),
          tt
        );
      }
      function gt(T, M, V) {
        return Pe(void 0, T, M, V);
      }
      function Bt(...T) {
        return T.length === 5
          ? gr(...T)
          : T.length === 4
            ? tr(...T)
            : C.fail("Incorrect number of arguments specified.");
      }
      function gr(T, M, V, ue, tt) {
        return T.modifiers !== M ||
          T.typeParameters !== V ||
          T.parameters !== ue ||
          T.type !== tt
          ? j(Xt(M, V, ue, tt), T)
          : T;
      }
      function tr(T, M, V, ue) {
        return gr(T, T.modifiers, M, V, ue);
      }
      function Jn(T, M) {
        const V = O(187);
        return (
          (V.exprName = T),
          (V.typeArguments = M && i().parenthesizeTypeArguments(M)),
          (V.transformFlags = 1),
          V
        );
      }
      function ft(T, M, V) {
        return T.exprName !== M || T.typeArguments !== V ? br(Jn(M, V), T) : T;
      }
      function Mt(T) {
        const M = G(188);
        return ((M.members = W(T)), (M.transformFlags = 1), M);
      }
      function jt(T, M) {
        return T.members !== M ? br(Mt(M), T) : T;
      }
      function Qt(T) {
        const M = O(189);
        return (
          (M.elementType = i().parenthesizeNonArrayTypeOfPostfixType(T)),
          (M.transformFlags = 1),
          M
        );
      }
      function In(T, M) {
        return T.elementType !== M ? br(Qt(M), T) : T;
      }
      function yn(T) {
        const M = O(190);
        return (
          (M.elements = W(i().parenthesizeElementTypesOfTupleType(T))),
          (M.transformFlags = 1),
          M
        );
      }
      function wt(T, M) {
        return T.elements !== M ? br(yn(M), T) : T;
      }
      function En(T, M, V, ue) {
        const tt = G(203);
        return (
          (tt.dotDotDotToken = T),
          (tt.name = M),
          (tt.questionToken = V),
          (tt.type = ue),
          (tt.transformFlags = 1),
          (tt.jsDoc = void 0),
          tt
        );
      }
      function xn(T, M, V, ue, tt) {
        return T.dotDotDotToken !== M ||
          T.name !== V ||
          T.questionToken !== ue ||
          T.type !== tt
          ? br(En(M, V, ue, tt), T)
          : T;
      }
      function Ln(T) {
        const M = O(191);
        return (
          (M.type = i().parenthesizeTypeOfOptionalType(T)),
          (M.transformFlags = 1),
          M
        );
      }
      function ln(T, M) {
        return T.type !== M ? br(Ln(M), T) : T;
      }
      function Ii(T) {
        const M = O(192);
        return ((M.type = T), (M.transformFlags = 1), M);
      }
      function ra(T, M) {
        return T.type !== M ? br(Ii(M), T) : T;
      }
      function sa(T, M, V) {
        const ue = O(T);
        return (
          (ue.types = k.createNodeArray(V(M))),
          (ue.transformFlags = 1),
          ue
        );
      }
      function zo(T, M, V) {
        return T.types !== M ? br(sa(T.kind, M, V), T) : T;
      }
      function Bl(T) {
        return sa(193, T, i().parenthesizeConstituentTypesOfUnionType);
      }
      function xl(T, M) {
        return zo(T, M, i().parenthesizeConstituentTypesOfUnionType);
      }
      function Ps(T) {
        return sa(194, T, i().parenthesizeConstituentTypesOfIntersectionType);
      }
      function co(T, M) {
        return zo(T, M, i().parenthesizeConstituentTypesOfIntersectionType);
      }
      function Go(T, M, V, ue) {
        const tt = O(195);
        return (
          (tt.checkType = i().parenthesizeCheckTypeOfConditionalType(T)),
          (tt.extendsType = i().parenthesizeExtendsTypeOfConditionalType(M)),
          (tt.trueType = V),
          (tt.falseType = ue),
          (tt.transformFlags = 1),
          (tt.locals = void 0),
          (tt.nextContainer = void 0),
          tt
        );
      }
      function Tc(T, M, V, ue, tt) {
        return T.checkType !== M ||
          T.extendsType !== V ||
          T.trueType !== ue ||
          T.falseType !== tt
          ? br(Go(M, V, ue, tt), T)
          : T;
      }
      function $s(T) {
        const M = O(196);
        return ((M.typeParameter = T), (M.transformFlags = 1), M);
      }
      function Ra(T, M) {
        return T.typeParameter !== M ? br($s(M), T) : T;
      }
      function ec(T, M) {
        const V = O(204);
        return (
          (V.head = T),
          (V.templateSpans = W(M)),
          (V.transformFlags = 1),
          V
        );
      }
      function bf(T, M, V) {
        return T.head !== M || T.templateSpans !== V ? br(ec(M, V), T) : T;
      }
      function Lo(T, M, V, ue, tt = !1) {
        const rn = O(206);
        return (
          (rn.argument = T),
          (rn.attributes = M),
          rn.assertions &&
            rn.assertions.assertClause &&
            rn.attributes &&
            (rn.assertions.assertClause = rn.attributes),
          (rn.qualifier = V),
          (rn.typeArguments = ue && i().parenthesizeTypeArguments(ue)),
          (rn.isTypeOf = tt),
          (rn.transformFlags = 1),
          rn
        );
      }
      function fa(T, M, V, ue, tt, rn = T.isTypeOf) {
        return T.argument !== M ||
          T.attributes !== V ||
          T.qualifier !== ue ||
          T.typeArguments !== tt ||
          T.isTypeOf !== rn
          ? br(Lo(M, V, ue, tt, rn), T)
          : T;
      }
      function is(T) {
        const M = O(197);
        return ((M.type = T), (M.transformFlags = 1), M);
      }
      function qa(T, M) {
        return T.type !== M ? br(is(M), T) : T;
      }
      function Zt() {
        const T = O(198);
        return ((T.transformFlags = 1), T);
      }
      function As(T, M) {
        const V = O(199);
        return (
          (V.operator = T),
          (V.type =
            T === 148
              ? i().parenthesizeOperandOfReadonlyTypeOperator(M)
              : i().parenthesizeOperandOfTypeOperator(M)),
          (V.transformFlags = 1),
          V
        );
      }
      function Hl(T, M) {
        return T.type !== M ? br(As(T.operator, M), T) : T;
      }
      function sc(T, M) {
        const V = O(200);
        return (
          (V.objectType = i().parenthesizeNonArrayTypeOfPostfixType(T)),
          (V.indexType = M),
          (V.transformFlags = 1),
          V
        );
      }
      function vd(T, M, V) {
        return T.objectType !== M || T.indexType !== V ? br(sc(M, V), T) : T;
      }
      function Fs(T, M, V, ue, tt, rn) {
        const Or = G(201);
        return (
          (Or.readonlyToken = T),
          (Or.typeParameter = M),
          (Or.nameType = V),
          (Or.questionToken = ue),
          (Or.type = tt),
          (Or.members = rn && W(rn)),
          (Or.transformFlags = 1),
          (Or.locals = void 0),
          (Or.nextContainer = void 0),
          Or
        );
      }
      function Ee(T, M, V, ue, tt, rn, Or) {
        return T.readonlyToken !== M ||
          T.typeParameter !== V ||
          T.nameType !== ue ||
          T.questionToken !== tt ||
          T.type !== rn ||
          T.members !== Or
          ? br(Fs(M, V, ue, tt, rn, Or), T)
          : T;
      }
      function Y(T) {
        const M = O(202);
        return ((M.literal = T), (M.transformFlags = 1), M);
      }
      function pt(T, M) {
        return T.literal !== M ? br(Y(M), T) : T;
      }
      function qt(T) {
        const M = O(207);
        return (
          (M.elements = W(T)),
          (M.transformFlags |= rs(M.elements) | 1024 | 524288),
          M.transformFlags & 32768 && (M.transformFlags |= 65664),
          M
        );
      }
      function fn(T, M) {
        return T.elements !== M ? br(qt(M), T) : T;
      }
      function ur(T) {
        const M = O(208);
        return (
          (M.elements = W(T)),
          (M.transformFlags |= rs(M.elements) | 1024 | 524288),
          M
        );
      }
      function si(T, M) {
        return T.elements !== M ? br(ur(M), T) : T;
      }
      function Dr(T, M, V, ue) {
        const tt = G(209);
        return (
          (tt.dotDotDotToken = T),
          (tt.propertyName = Gc(M)),
          (tt.name = Gc(V)),
          (tt.initializer = pu(ue)),
          (tt.transformFlags |=
            Fr(tt.dotDotDotToken) |
            Db(tt.propertyName) |
            Db(tt.name) |
            Fr(tt.initializer) |
            (tt.dotDotDotToken ? 32768 : 0) |
            1024),
          (tt.flowNode = void 0),
          tt
        );
      }
      function Fn(T, M, V, ue, tt) {
        return T.propertyName !== V ||
          T.dotDotDotToken !== M ||
          T.name !== ue ||
          T.initializer !== tt
          ? br(Dr(M, V, ue, tt), T)
          : T;
      }
      function ro(T, M) {
        const V = O(210),
          ue = T && Zs(T),
          tt = W(T, ue && Jc(ue) ? !0 : void 0);
        return (
          (V.elements = i().parenthesizeExpressionsOfCommaDelimitedList(tt)),
          (V.multiLine = M),
          (V.transformFlags |= rs(V.elements)),
          V
        );
      }
      function So(T, M) {
        return T.elements !== M ? br(ro(M, T.multiLine), T) : T;
      }
      function Ns(T, M) {
        const V = G(211);
        return (
          (V.properties = W(T)),
          (V.multiLine = M),
          (V.transformFlags |= rs(V.properties)),
          (V.jsDoc = void 0),
          V
        );
      }
      function Da(T, M) {
        return T.properties !== M ? br(Ns(M, T.multiLine), T) : T;
      }
      function Qs(T, M, V) {
        const ue = G(212);
        return (
          (ue.expression = T),
          (ue.questionDotToken = M),
          (ue.name = V),
          (ue.transformFlags =
            Fr(ue.expression) |
            Fr(ue.questionDotToken) |
            (He(ue.name) ? lw(ue.name) : Fr(ue.name) | 536870912)),
          (ue.jsDoc = void 0),
          (ue.flowNode = void 0),
          ue
        );
      }
      function Sc(T, M) {
        const V = Qs(i().parenthesizeLeftSideOfAccess(T, !1), void 0, Gc(M));
        return (zM(T) && (V.transformFlags |= 384), V);
      }
      function fc(T, M, V) {
        return mF(T)
          ? Pl(T, M, T.questionDotToken, ma(V, He))
          : T.expression !== M || T.name !== V
            ? br(Sc(M, V), T)
            : T;
      }
      function Hs(T, M, V) {
        const ue = Qs(i().parenthesizeLeftSideOfAccess(T, !0), M, Gc(V));
        return ((ue.flags |= 64), (ue.transformFlags |= 32), ue);
      }
      function Pl(T, M, V, ue) {
        return (
          C.assert(
            !!(T.flags & 64),
            "Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead.",
          ),
          T.expression !== M || T.questionDotToken !== V || T.name !== ue
            ? br(Hs(M, V, ue), T)
            : T
        );
      }
      function vh(T, M, V) {
        const ue = G(213);
        return (
          (ue.expression = T),
          (ue.questionDotToken = M),
          (ue.argumentExpression = V),
          (ue.transformFlags |=
            Fr(ue.expression) |
            Fr(ue.questionDotToken) |
            Fr(ue.argumentExpression)),
          (ue.jsDoc = void 0),
          (ue.flowNode = void 0),
          ue
        );
      }
      function Pd(T, M) {
        const V = vh(i().parenthesizeLeftSideOfAccess(T, !1), void 0, Ov(M));
        return (zM(T) && (V.transformFlags |= 384), V);
      }
      function nf(T, M, V) {
        return U9(T)
          ? ze(T, M, T.questionDotToken, V)
          : T.expression !== M || T.argumentExpression !== V
            ? br(Pd(M, V), T)
            : T;
      }
      function op(T, M, V) {
        const ue = vh(i().parenthesizeLeftSideOfAccess(T, !0), M, Ov(V));
        return ((ue.flags |= 64), (ue.transformFlags |= 32), ue);
      }
      function ze(T, M, V, ue) {
        return (
          C.assert(
            !!(T.flags & 64),
            "Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead.",
          ),
          T.expression !== M ||
          T.questionDotToken !== V ||
          T.argumentExpression !== ue
            ? br(op(M, V, ue), T)
            : T
        );
      }
      function Jt(T, M, V, ue) {
        const tt = G(214);
        return (
          (tt.expression = T),
          (tt.questionDotToken = M),
          (tt.typeArguments = V),
          (tt.arguments = ue),
          (tt.transformFlags |=
            Fr(tt.expression) |
            Fr(tt.questionDotToken) |
            rs(tt.typeArguments) |
            rs(tt.arguments)),
          tt.typeArguments && (tt.transformFlags |= 1),
          mp(tt.expression) && (tt.transformFlags |= 16384),
          tt
        );
      }
      function er(T, M, V) {
        const ue = Jt(
          i().parenthesizeLeftSideOfAccess(T, !1),
          void 0,
          cs(M),
          i().parenthesizeExpressionsOfCommaDelimitedList(W(V)),
        );
        return (BM(ue.expression) && (ue.transformFlags |= 8388608), ue);
      }
      function go(T, M, V, ue) {
        return KE(T)
          ? es(T, M, T.questionDotToken, V, ue)
          : T.expression !== M || T.typeArguments !== V || T.arguments !== ue
            ? br(er(M, V, ue), T)
            : T;
      }
      function Za(T, M, V, ue) {
        const tt = Jt(
          i().parenthesizeLeftSideOfAccess(T, !0),
          M,
          cs(V),
          i().parenthesizeExpressionsOfCommaDelimitedList(W(ue)),
        );
        return ((tt.flags |= 64), (tt.transformFlags |= 32), tt);
      }
      function es(T, M, V, ue, tt) {
        return (
          C.assert(
            !!(T.flags & 64),
            "Cannot update a CallExpression using updateCallChain. Use updateCall instead.",
          ),
          T.expression !== M ||
          T.questionDotToken !== V ||
          T.typeArguments !== ue ||
          T.arguments !== tt
            ? br(Za(M, V, ue, tt), T)
            : T
        );
      }
      function Va(T, M, V) {
        const ue = G(215);
        return (
          (ue.expression = i().parenthesizeExpressionOfNew(T)),
          (ue.typeArguments = cs(M)),
          (ue.arguments = V
            ? i().parenthesizeExpressionsOfCommaDelimitedList(V)
            : void 0),
          (ue.transformFlags |=
            Fr(ue.expression) | rs(ue.typeArguments) | rs(ue.arguments) | 32),
          ue.typeArguments && (ue.transformFlags |= 1),
          ue
        );
      }
      function Mc(T, M, V, ue) {
        return T.expression !== M || T.typeArguments !== V || T.arguments !== ue
          ? br(Va(M, V, ue), T)
          : T;
      }
      function tl(T, M, V) {
        const ue = O(216);
        return (
          (ue.tag = i().parenthesizeLeftSideOfAccess(T, !1)),
          (ue.typeArguments = cs(M)),
          (ue.template = V),
          (ue.transformFlags |=
            Fr(ue.tag) | rs(ue.typeArguments) | Fr(ue.template) | 1024),
          ue.typeArguments && (ue.transformFlags |= 1),
          ZG(ue.template) && (ue.transformFlags |= 128),
          ue
        );
      }
      function Ll(T, M, V, ue) {
        return T.tag !== M || T.typeArguments !== V || T.template !== ue
          ? br(tl(M, V, ue), T)
          : T;
      }
      function ql(T, M) {
        const V = O(217);
        return (
          (V.expression = i().parenthesizeOperandOfPrefixUnary(M)),
          (V.type = T),
          (V.transformFlags |= Fr(V.expression) | Fr(V.type) | 1),
          V
        );
      }
      function rf(T, M, V) {
        return T.type !== M || T.expression !== V ? br(ql(M, V), T) : T;
      }
      function bd(T) {
        const M = O(218);
        return (
          (M.expression = T),
          (M.transformFlags = Fr(M.expression)),
          (M.jsDoc = void 0),
          M
        );
      }
      function ld(T, M) {
        return T.expression !== M ? br(bd(M), T) : T;
      }
      function jp(T, M, V, ue, tt, rn, Or) {
        const ko = G(219);
        ((ko.modifiers = cs(T)),
          (ko.asteriskToken = M),
          (ko.name = Gc(V)),
          (ko.typeParameters = cs(ue)),
          (ko.parameters = W(tt)),
          (ko.type = rn),
          (ko.body = Or));
        const nl = Xh(ko.modifiers) & 1024,
          of = !!ko.asteriskToken,
          lT = nl && of;
        return (
          (ko.transformFlags =
            rs(ko.modifiers) |
            Fr(ko.asteriskToken) |
            Db(ko.name) |
            rs(ko.typeParameters) |
            rs(ko.parameters) |
            Fr(ko.type) |
            (Fr(ko.body) & -67108865) |
            (lT ? 128 : nl ? 256 : of ? 2048 : 0) |
            (ko.typeParameters || ko.type ? 1 : 0) |
            4194304),
          (ko.typeArguments = void 0),
          (ko.jsDoc = void 0),
          (ko.locals = void 0),
          (ko.nextContainer = void 0),
          (ko.flowNode = void 0),
          (ko.endFlowNode = void 0),
          (ko.returnFlowNode = void 0),
          ko
        );
      }
      function Au(T, M, V, ue, tt, rn, Or, ko) {
        return T.name !== ue ||
          T.modifiers !== M ||
          T.asteriskToken !== V ||
          T.typeParameters !== tt ||
          T.parameters !== rn ||
          T.type !== Or ||
          T.body !== ko
          ? j(jp(M, V, ue, tt, rn, Or, ko), T)
          : T;
      }
      function Xf(T, M, V, ue, tt, rn) {
        const Or = G(220);
        ((Or.modifiers = cs(T)),
          (Or.typeParameters = cs(M)),
          (Or.parameters = W(V)),
          (Or.type = ue),
          (Or.equalsGreaterThanToken = tt ?? ce(39)),
          (Or.body = i().parenthesizeConciseBodyOfArrowFunction(rn)));
        const ko = Xh(Or.modifiers) & 1024;
        return (
          (Or.transformFlags =
            rs(Or.modifiers) |
            rs(Or.typeParameters) |
            rs(Or.parameters) |
            Fr(Or.type) |
            Fr(Or.equalsGreaterThanToken) |
            (Fr(Or.body) & -67108865) |
            (Or.typeParameters || Or.type ? 1 : 0) |
            (ko ? 16640 : 0) |
            1024),
          (Or.typeArguments = void 0),
          (Or.jsDoc = void 0),
          (Or.locals = void 0),
          (Or.nextContainer = void 0),
          (Or.flowNode = void 0),
          (Or.endFlowNode = void 0),
          (Or.returnFlowNode = void 0),
          Or
        );
      }
      function G_(T, M, V, ue, tt, rn, Or) {
        return T.modifiers !== M ||
          T.typeParameters !== V ||
          T.parameters !== ue ||
          T.type !== tt ||
          T.equalsGreaterThanToken !== rn ||
          T.body !== Or
          ? j(Xf(M, V, ue, tt, rn, Or), T)
          : T;
      }
      function Cg(T) {
        const M = O(221);
        return (
          (M.expression = i().parenthesizeOperandOfPrefixUnary(T)),
          (M.transformFlags |= Fr(M.expression)),
          M
        );
      }
      function Ng(T, M) {
        return T.expression !== M ? br(Cg(M), T) : T;
      }
      function ap(T) {
        const M = O(222);
        return (
          (M.expression = i().parenthesizeOperandOfPrefixUnary(T)),
          (M.transformFlags |= Fr(M.expression)),
          M
        );
      }
      function Xc(T, M) {
        return T.expression !== M ? br(ap(M), T) : T;
      }
      function bh(T) {
        const M = O(223);
        return (
          (M.expression = i().parenthesizeOperandOfPrefixUnary(T)),
          (M.transformFlags |= Fr(M.expression)),
          M
        );
      }
      function Tf(T, M) {
        return T.expression !== M ? br(bh(M), T) : T;
      }
      function p_(T) {
        const M = O(224);
        return (
          (M.expression = i().parenthesizeOperandOfPrefixUnary(T)),
          (M.transformFlags |= Fr(M.expression) | 256 | 128 | 2097152),
          M
        );
      }
      function oe(T, M) {
        return T.expression !== M ? br(p_(M), T) : T;
      }
      function ut(T, M) {
        const V = O(225);
        return (
          (V.operator = T),
          (V.operand = i().parenthesizeOperandOfPrefixUnary(M)),
          (V.transformFlags |= Fr(V.operand)),
          (T === 46 || T === 47) &&
            He(V.operand) &&
            !pl(V.operand) &&
            !fy(V.operand) &&
            (V.transformFlags |= 268435456),
          V
        );
      }
      function tn(T, M) {
        return T.operand !== M ? br(ut(T.operator, M), T) : T;
      }
      function an(T, M) {
        const V = O(226);
        return (
          (V.operator = M),
          (V.operand = i().parenthesizeOperandOfPostfixUnary(T)),
          (V.transformFlags |= Fr(V.operand)),
          He(V.operand) &&
            !pl(V.operand) &&
            !fy(V.operand) &&
            (V.transformFlags |= 268435456),
          V
        );
      }
      function wn(T, M) {
        return T.operand !== M ? br(an(M, T.operator), T) : T;
      }
      function or(T, M, V) {
        const ue = G(227),
          tt = Yx(M),
          rn = tt.kind;
        return (
          (ue.left = i().parenthesizeLeftSideOfBinary(rn, T)),
          (ue.operatorToken = tt),
          (ue.right = i().parenthesizeRightSideOfBinary(rn, ue.left, V)),
          (ue.transformFlags |=
            Fr(ue.left) | Fr(ue.operatorToken) | Fr(ue.right)),
          rn === 61
            ? (ue.transformFlags |= 32)
            : rn === 64
              ? Wa(ue.left)
                ? (ue.transformFlags |= 5248 | ti(ue.left))
                : Cd(ue.left) && (ue.transformFlags |= 5120 | ti(ue.left))
              : rn === 43 || rn === 68
                ? (ue.transformFlags |= 512)
                : pM(rn) && (ue.transformFlags |= 16),
          rn === 103 && eo(ue.left) && (ue.transformFlags |= 536870912),
          (ue.jsDoc = void 0),
          ue
        );
      }
      function ti(T) {
        return Dw(T) ? 65536 : 0;
      }
      function Ti(T, M, V, ue) {
        return T.left !== M || T.operatorToken !== V || T.right !== ue
          ? br(or(M, V, ue), T)
          : T;
      }
      function $i(T, M, V, ue, tt) {
        const rn = O(228);
        return (
          (rn.condition = i().parenthesizeConditionOfConditionalExpression(T)),
          (rn.questionToken = M ?? ce(58)),
          (rn.whenTrue = i().parenthesizeBranchOfConditionalExpression(V)),
          (rn.colonToken = ue ?? ce(59)),
          (rn.whenFalse = i().parenthesizeBranchOfConditionalExpression(tt)),
          (rn.transformFlags |=
            Fr(rn.condition) |
            Fr(rn.questionToken) |
            Fr(rn.whenTrue) |
            Fr(rn.colonToken) |
            Fr(rn.whenFalse)),
          (rn.flowNodeWhenFalse = void 0),
          (rn.flowNodeWhenTrue = void 0),
          rn
        );
      }
      function z(T, M, V, ue, tt, rn) {
        return T.condition !== M ||
          T.questionToken !== V ||
          T.whenTrue !== ue ||
          T.colonToken !== tt ||
          T.whenFalse !== rn
          ? br($i(M, V, ue, tt, rn), T)
          : T;
      }
      function Ve(T, M) {
        const V = O(229);
        return (
          (V.head = T),
          (V.templateSpans = W(M)),
          (V.transformFlags |= Fr(V.head) | rs(V.templateSpans) | 1024),
          V
        );
      }
      function kt(T, M, V) {
        return T.head !== M || T.templateSpans !== V ? br(Ve(M, V), T) : T;
      }
      function On(T, M, V, ue = 0) {
        C.assert(!(ue & -7177), "Unsupported template flags.");
        let tt;
        if (
          V !== void 0 &&
          V !== M &&
          ((tt = TVe(T, V)), typeof tt == "object")
        )
          return C.fail("Invalid raw text");
        if (M === void 0) {
          if (tt === void 0)
            return C.fail(
              "Arguments 'text' and 'rawText' may not both be undefined.",
            );
          M = tt;
        } else
          tt !== void 0 &&
            C.assert(
              M === tt,
              "Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.",
            );
        return M;
      }
      function yo(T) {
        let M = 1024;
        return (T && (M |= 128), M);
      }
      function ta(T, M, V, ue) {
        const tt = lt(T);
        return (
          (tt.text = M),
          (tt.rawText = V),
          (tt.templateFlags = ue & 7176),
          (tt.transformFlags = yo(tt.templateFlags)),
          tt
        );
      }
      function Eo(T, M, V, ue) {
        const tt = G(T);
        return (
          (tt.text = M),
          (tt.rawText = V),
          (tt.templateFlags = ue & 7176),
          (tt.transformFlags = yo(tt.templateFlags)),
          tt
        );
      }
      function Vo(T, M, V, ue) {
        return T === 15 ? Eo(T, M, V, ue) : ta(T, M, V, ue);
      }
      function ml(T, M, V) {
        return ((T = On(16, T, M, V)), Vo(16, T, M, V));
      }
      function Ca(T, M, V) {
        return ((T = On(16, T, M, V)), Vo(17, T, M, V));
      }
      function cd(T, M, V) {
        return ((T = On(16, T, M, V)), Vo(18, T, M, V));
      }
      function Up(T, M, V) {
        return ((T = On(16, T, M, V)), Eo(15, T, M, V));
      }
      function Sf(T, M) {
        C.assert(
          !T || !!M,
          "A `YieldExpression` with an asteriskToken must have an expression.",
        );
        const V = O(230);
        return (
          (V.expression = M && i().parenthesizeExpressionForDisallowedComma(M)),
          (V.asteriskToken = T),
          (V.transformFlags |=
            Fr(V.expression) | Fr(V.asteriskToken) | 1024 | 128 | 1048576),
          V
        );
      }
      function Yf(T, M, V) {
        return T.expression !== V || T.asteriskToken !== M
          ? br(Sf(M, V), T)
          : T;
      }
      function Ty(T) {
        const M = O(231);
        return (
          (M.expression = i().parenthesizeExpressionForDisallowedComma(T)),
          (M.transformFlags |= Fr(M.expression) | 1024 | 32768),
          M
        );
      }
      function Tv(T, M) {
        return T.expression !== M ? br(Ty(M), T) : T;
      }
      function Bu(T, M, V, ue, tt) {
        const rn = G(232);
        return (
          (rn.modifiers = cs(T)),
          (rn.name = Gc(M)),
          (rn.typeParameters = cs(V)),
          (rn.heritageClauses = cs(ue)),
          (rn.members = W(tt)),
          (rn.transformFlags |=
            rs(rn.modifiers) |
            Db(rn.name) |
            rs(rn.typeParameters) |
            rs(rn.heritageClauses) |
            rs(rn.members) |
            (rn.typeParameters ? 1 : 0) |
            1024),
          (rn.jsDoc = void 0),
          rn
        );
      }
      function V_(T, M, V, ue, tt, rn) {
        return T.modifiers !== M ||
          T.name !== V ||
          T.typeParameters !== ue ||
          T.heritageClauses !== tt ||
          T.members !== rn
          ? br(Bu(M, V, ue, tt, rn), T)
          : T;
      }
      function Th() {
        return O(233);
      }
      function Im(T, M) {
        const V = O(234);
        return (
          (V.expression = i().parenthesizeLeftSideOfAccess(T, !1)),
          (V.typeArguments = M && i().parenthesizeTypeArguments(M)),
          (V.transformFlags |= Fr(V.expression) | rs(V.typeArguments) | 1024),
          V
        );
      }
      function Hb(T, M, V) {
        return T.expression !== M || T.typeArguments !== V
          ? br(Im(M, V), T)
          : T;
      }
      function Xe(T, M) {
        const V = O(235);
        return (
          (V.expression = T),
          (V.type = M),
          (V.transformFlags |= Fr(V.expression) | Fr(V.type) | 1),
          V
        );
      }
      function mt(T, M, V) {
        return T.expression !== M || T.type !== V ? br(Xe(M, V), T) : T;
      }
      function Yt(T) {
        const M = O(236);
        return (
          (M.expression = i().parenthesizeLeftSideOfAccess(T, !1)),
          (M.transformFlags |= Fr(M.expression) | 1),
          M
        );
      }
      function Rn(T, M) {
        return _F(T) ? lr(T, M) : T.expression !== M ? br(Yt(M), T) : T;
      }
      function Qn(T, M) {
        const V = O(239);
        return (
          (V.expression = T),
          (V.type = M),
          (V.transformFlags |= Fr(V.expression) | Fr(V.type) | 1),
          V
        );
      }
      function Lr(T, M, V) {
        return T.expression !== M || T.type !== V ? br(Qn(M, V), T) : T;
      }
      function Yn(T) {
        const M = O(236);
        return (
          (M.flags |= 64),
          (M.expression = i().parenthesizeLeftSideOfAccess(T, !0)),
          (M.transformFlags |= Fr(M.expression) | 1),
          M
        );
      }
      function lr(T, M) {
        return (
          C.assert(
            !!(T.flags & 64),
            "Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead.",
          ),
          T.expression !== M ? br(Yn(M), T) : T
        );
      }
      function Oi(T, M) {
        const V = O(237);
        switch (
          ((V.keywordToken = T),
          (V.name = M),
          (V.transformFlags |= Fr(V.name)),
          T)
        ) {
          case 105:
            V.transformFlags |= 1024;
            break;
          case 102:
            V.transformFlags |= 32;
            break;
          default:
            return C.assertNever(T);
        }
        return ((V.flowNode = void 0), V);
      }
      function Ro(T, M) {
        return T.name !== M ? br(Oi(T.keywordToken, M), T) : T;
      }
      function _i(T, M) {
        const V = O(240);
        return (
          (V.expression = T),
          (V.literal = M),
          (V.transformFlags |= Fr(V.expression) | Fr(V.literal) | 1024),
          V
        );
      }
      function Do(T, M, V) {
        return T.expression !== M || T.literal !== V ? br(_i(M, V), T) : T;
      }
      function Qi() {
        const T = O(241);
        return ((T.transformFlags |= 1024), T);
      }
      function hl(T, M) {
        const V = O(242);
        return (
          (V.statements = W(T)),
          (V.multiLine = M),
          (V.transformFlags |= rs(V.statements)),
          (V.jsDoc = void 0),
          (V.locals = void 0),
          (V.nextContainer = void 0),
          V
        );
      }
      function sp(T, M) {
        return T.statements !== M ? br(hl(M, T.multiLine), T) : T;
      }
      function xm(T, M) {
        const V = O(244);
        return (
          (V.modifiers = cs(T)),
          (V.declarationList = Mo(M) ? A0(M) : M),
          (V.transformFlags |= rs(V.modifiers) | Fr(V.declarationList)),
          Xh(V.modifiers) & 128 && (V.transformFlags = 1),
          (V.jsDoc = void 0),
          (V.flowNode = void 0),
          V
        );
      }
      function Td(T, M, V) {
        return T.modifiers !== M || T.declarationList !== V
          ? br(xm(M, V), T)
          : T;
      }
      function Rm() {
        const T = O(243);
        return ((T.jsDoc = void 0), T);
      }
      function Hp(T) {
        const M = O(245);
        return (
          (M.expression = i().parenthesizeExpressionOfExpressionStatement(T)),
          (M.transformFlags |= Fr(M.expression)),
          (M.jsDoc = void 0),
          (M.flowNode = void 0),
          M
        );
      }
      function b0(T, M) {
        return T.expression !== M ? br(Hp(M), T) : T;
      }
      function f_(T, M, V) {
        const ue = O(246);
        return (
          (ue.expression = T),
          (ue.thenStatement = zg(M)),
          (ue.elseStatement = zg(V)),
          (ue.transformFlags |=
            Fr(ue.expression) | Fr(ue.thenStatement) | Fr(ue.elseStatement)),
          (ue.jsDoc = void 0),
          (ue.flowNode = void 0),
          ue
        );
      }
      function j_(T, M, V, ue) {
        return T.expression !== M ||
          T.thenStatement !== V ||
          T.elseStatement !== ue
          ? br(f_(M, V, ue), T)
          : T;
      }
      function T0(T, M) {
        const V = O(247);
        return (
          (V.statement = zg(T)),
          (V.expression = M),
          (V.transformFlags |= Fr(V.statement) | Fr(V.expression)),
          (V.jsDoc = void 0),
          (V.flowNode = void 0),
          V
        );
      }
      function U_(T, M, V) {
        return T.statement !== M || T.expression !== V ? br(T0(M, V), T) : T;
      }
      function TC(T, M) {
        const V = O(248);
        return (
          (V.expression = T),
          (V.statement = zg(M)),
          (V.transformFlags |= Fr(V.expression) | Fr(V.statement)),
          (V.jsDoc = void 0),
          (V.flowNode = void 0),
          V
        );
      }
      function tL(T, M, V) {
        return T.expression !== M || T.statement !== V ? br(TC(M, V), T) : T;
      }
      function SC(T, M, V, ue) {
        const tt = O(249);
        return (
          (tt.initializer = T),
          (tt.condition = M),
          (tt.incrementor = V),
          (tt.statement = zg(ue)),
          (tt.transformFlags |=
            Fr(tt.initializer) |
            Fr(tt.condition) |
            Fr(tt.incrementor) |
            Fr(tt.statement)),
          (tt.jsDoc = void 0),
          (tt.locals = void 0),
          (tt.nextContainer = void 0),
          (tt.flowNode = void 0),
          tt
        );
      }
      function Mg(T, M, V, ue, tt) {
        return T.initializer !== M ||
          T.condition !== V ||
          T.incrementor !== ue ||
          T.statement !== tt
          ? br(SC(M, V, ue, tt), T)
          : T;
      }
      function S0(T, M, V) {
        const ue = O(250);
        return (
          (ue.initializer = T),
          (ue.expression = M),
          (ue.statement = zg(V)),
          (ue.transformFlags |=
            Fr(ue.initializer) | Fr(ue.expression) | Fr(ue.statement)),
          (ue.jsDoc = void 0),
          (ue.locals = void 0),
          (ue.nextContainer = void 0),
          (ue.flowNode = void 0),
          ue
        );
      }
      function q1(T, M, V, ue) {
        return T.initializer !== M || T.expression !== V || T.statement !== ue
          ? br(S0(M, V, ue), T)
          : T;
      }
      function Sv(T, M, V, ue) {
        const tt = O(251);
        return (
          (tt.awaitModifier = T),
          (tt.initializer = M),
          (tt.expression = i().parenthesizeExpressionForDisallowedComma(V)),
          (tt.statement = zg(ue)),
          (tt.transformFlags |=
            Fr(tt.awaitModifier) |
            Fr(tt.initializer) |
            Fr(tt.expression) |
            Fr(tt.statement) |
            1024),
          T && (tt.transformFlags |= 128),
          (tt.jsDoc = void 0),
          (tt.locals = void 0),
          (tt.nextContainer = void 0),
          (tt.flowNode = void 0),
          tt
        );
      }
      function J1(T, M, V, ue, tt) {
        return T.awaitModifier !== M ||
          T.initializer !== V ||
          T.expression !== ue ||
          T.statement !== tt
          ? br(Sv(M, V, ue, tt), T)
          : T;
      }
      function Dx(T) {
        const M = O(252);
        return (
          (M.label = Gc(T)),
          (M.transformFlags |= Fr(M.label) | 4194304),
          (M.jsDoc = void 0),
          (M.flowNode = void 0),
          M
        );
      }
      function nL(T, M) {
        return T.label !== M ? br(Dx(M), T) : T;
      }
      function K1(T) {
        const M = O(253);
        return (
          (M.label = Gc(T)),
          (M.transformFlags |= Fr(M.label) | 4194304),
          (M.jsDoc = void 0),
          (M.flowNode = void 0),
          M
        );
      }
      function Cx(T, M) {
        return T.label !== M ? br(K1(M), T) : T;
      }
      function E0(T) {
        const M = O(254);
        return (
          (M.expression = T),
          (M.transformFlags |= Fr(M.expression) | 128 | 4194304),
          (M.jsDoc = void 0),
          (M.flowNode = void 0),
          M
        );
      }
      function EC(T, M) {
        return T.expression !== M ? br(E0(M), T) : T;
      }
      function X1(T, M) {
        const V = O(255);
        return (
          (V.expression = T),
          (V.statement = zg(M)),
          (V.transformFlags |= Fr(V.expression) | Fr(V.statement)),
          (V.jsDoc = void 0),
          (V.flowNode = void 0),
          V
        );
      }
      function Nx(T, M, V) {
        return T.expression !== M || T.statement !== V ? br(X1(M, V), T) : T;
      }
      function lE(T, M) {
        const V = O(256);
        return (
          (V.expression = i().parenthesizeExpressionForDisallowedComma(T)),
          (V.caseBlock = M),
          (V.transformFlags |= Fr(V.expression) | Fr(V.caseBlock)),
          (V.jsDoc = void 0),
          (V.flowNode = void 0),
          (V.possiblyExhaustive = !1),
          V
        );
      }
      function qb(T, M, V) {
        return T.expression !== M || T.caseBlock !== V ? br(lE(M, V), T) : T;
      }
      function Mx(T, M) {
        const V = O(257);
        return (
          (V.label = Gc(T)),
          (V.statement = zg(M)),
          (V.transformFlags |= Fr(V.label) | Fr(V.statement)),
          (V.jsDoc = void 0),
          (V.flowNode = void 0),
          V
        );
      }
      function Px(T, M, V) {
        return T.label !== M || T.statement !== V ? br(Mx(M, V), T) : T;
      }
      function cE(T) {
        const M = O(258);
        return (
          (M.expression = T),
          (M.transformFlags |= Fr(M.expression)),
          (M.jsDoc = void 0),
          (M.flowNode = void 0),
          M
        );
      }
      function Jb(T, M) {
        return T.expression !== M ? br(cE(M), T) : T;
      }
      function Ev(T, M, V) {
        const ue = O(259);
        return (
          (ue.tryBlock = T),
          (ue.catchClause = M),
          (ue.finallyBlock = V),
          (ue.transformFlags |=
            Fr(ue.tryBlock) | Fr(ue.catchClause) | Fr(ue.finallyBlock)),
          (ue.jsDoc = void 0),
          (ue.flowNode = void 0),
          ue
        );
      }
      function Sy(T, M, V, ue) {
        return T.tryBlock !== M || T.catchClause !== V || T.finallyBlock !== ue
          ? br(Ev(M, V, ue), T)
          : T;
      }
      function Ey() {
        const T = O(260);
        return ((T.jsDoc = void 0), (T.flowNode = void 0), T);
      }
      function Ay(T, M, V, ue) {
        const tt = G(261);
        return (
          (tt.name = Gc(T)),
          (tt.exclamationToken = M),
          (tt.type = V),
          (tt.initializer = pu(ue)),
          (tt.transformFlags |=
            Db(tt.name) |
            Fr(tt.initializer) |
            ((tt.exclamationToken ?? tt.type) ? 1 : 0)),
          (tt.jsDoc = void 0),
          tt
        );
      }
      function Kb(T, M, V, ue, tt) {
        return T.name !== M ||
          T.type !== ue ||
          T.exclamationToken !== V ||
          T.initializer !== tt
          ? br(Ay(M, V, ue, tt), T)
          : T;
      }
      function A0(T, M = 0) {
        const V = O(262);
        return (
          (V.flags |= M & 7),
          (V.declarations = W(T)),
          (V.transformFlags |= rs(V.declarations) | 4194304),
          M & 7 && (V.transformFlags |= 263168),
          M & 4 && (V.transformFlags |= 4),
          V
        );
      }
      function Y1(T, M) {
        return T.declarations !== M ? br(A0(M, T.flags), T) : T;
      }
      function I0(T, M, V, ue, tt, rn, Or) {
        const ko = G(263);
        if (
          ((ko.modifiers = cs(T)),
          (ko.asteriskToken = M),
          (ko.name = Gc(V)),
          (ko.typeParameters = cs(ue)),
          (ko.parameters = W(tt)),
          (ko.type = rn),
          (ko.body = Or),
          !ko.body || Xh(ko.modifiers) & 128)
        )
          ko.transformFlags = 1;
        else {
          const nl = Xh(ko.modifiers) & 1024,
            of = !!ko.asteriskToken,
            lT = nl && of;
          ko.transformFlags =
            rs(ko.modifiers) |
            Fr(ko.asteriskToken) |
            Db(ko.name) |
            rs(ko.typeParameters) |
            rs(ko.parameters) |
            Fr(ko.type) |
            (Fr(ko.body) & -67108865) |
            (lT ? 128 : nl ? 256 : of ? 2048 : 0) |
            (ko.typeParameters || ko.type ? 1 : 0) |
            4194304;
        }
        return (
          (ko.typeArguments = void 0),
          (ko.jsDoc = void 0),
          (ko.locals = void 0),
          (ko.nextContainer = void 0),
          (ko.endFlowNode = void 0),
          (ko.returnFlowNode = void 0),
          ko
        );
      }
      function ns(T, M, V, ue, tt, rn, Or, ko) {
        return T.modifiers !== M ||
          T.asteriskToken !== V ||
          T.name !== ue ||
          T.typeParameters !== tt ||
          T.parameters !== rn ||
          T.type !== Or ||
          T.body !== ko
          ? $1(I0(M, V, ue, tt, rn, Or, ko), T)
          : T;
      }
      function $1(T, M) {
        return (
          T !== M && T.modifiers === M.modifiers && (T.modifiers = M.modifiers),
          j(T, M)
        );
      }
      function AC(T, M, V, ue, tt) {
        const rn = G(264);
        return (
          (rn.modifiers = cs(T)),
          (rn.name = Gc(M)),
          (rn.typeParameters = cs(V)),
          (rn.heritageClauses = cs(ue)),
          (rn.members = W(tt)),
          Xh(rn.modifiers) & 128
            ? (rn.transformFlags = 1)
            : ((rn.transformFlags |=
                rs(rn.modifiers) |
                Db(rn.name) |
                rs(rn.typeParameters) |
                rs(rn.heritageClauses) |
                rs(rn.members) |
                (rn.typeParameters ? 1 : 0) |
                1024),
              rn.transformFlags & 8192 && (rn.transformFlags |= 1)),
          (rn.jsDoc = void 0),
          rn
        );
      }
      function Iy(T, M, V, ue, tt, rn) {
        return T.modifiers !== M ||
          T.name !== V ||
          T.typeParameters !== ue ||
          T.heritageClauses !== tt ||
          T.members !== rn
          ? br(AC(M, V, ue, tt, rn), T)
          : T;
      }
      function xy(T, M, V, ue, tt) {
        const rn = G(265);
        return (
          (rn.modifiers = cs(T)),
          (rn.name = Gc(M)),
          (rn.typeParameters = cs(V)),
          (rn.heritageClauses = cs(ue)),
          (rn.members = W(tt)),
          (rn.transformFlags = 1),
          (rn.jsDoc = void 0),
          rn
        );
      }
      function H_(T, M, V, ue, tt, rn) {
        return T.modifiers !== M ||
          T.name !== V ||
          T.typeParameters !== ue ||
          T.heritageClauses !== tt ||
          T.members !== rn
          ? br(xy(M, V, ue, tt, rn), T)
          : T;
      }
      function cl(T, M, V, ue) {
        const tt = G(266);
        return (
          (tt.modifiers = cs(T)),
          (tt.name = Gc(M)),
          (tt.typeParameters = cs(V)),
          (tt.type = ue),
          (tt.transformFlags = 1),
          (tt.jsDoc = void 0),
          (tt.locals = void 0),
          (tt.nextContainer = void 0),
          tt
        );
      }
      function qd(T, M, V, ue, tt) {
        return T.modifiers !== M ||
          T.name !== V ||
          T.typeParameters !== ue ||
          T.type !== tt
          ? br(cl(M, V, ue, tt), T)
          : T;
      }
      function lp(T, M, V) {
        const ue = G(267);
        return (
          (ue.modifiers = cs(T)),
          (ue.name = Gc(M)),
          (ue.members = W(V)),
          (ue.transformFlags |=
            rs(ue.modifiers) | Fr(ue.name) | rs(ue.members) | 1),
          (ue.transformFlags &= -67108865),
          (ue.jsDoc = void 0),
          ue
        );
      }
      function Jd(T, M, V, ue) {
        return T.modifiers !== M || T.name !== V || T.members !== ue
          ? br(lp(M, V, ue), T)
          : T;
      }
      function x0(T, M, V, ue = 0) {
        const tt = G(268);
        return (
          (tt.modifiers = cs(T)),
          (tt.flags |= ue & 2088),
          (tt.name = M),
          (tt.body = V),
          Xh(tt.modifiers) & 128
            ? (tt.transformFlags = 1)
            : (tt.transformFlags |=
                rs(tt.modifiers) | Fr(tt.name) | Fr(tt.body) | 1),
          (tt.transformFlags &= -67108865),
          (tt.jsDoc = void 0),
          (tt.locals = void 0),
          (tt.nextContainer = void 0),
          tt
        );
      }
      function Iu(T, M, V, ue) {
        return T.modifiers !== M || T.name !== V || T.body !== ue
          ? br(x0(M, V, ue, T.flags), T)
          : T;
      }
      function q_(T) {
        const M = O(269);
        return (
          (M.statements = W(T)),
          (M.transformFlags |= rs(M.statements)),
          (M.jsDoc = void 0),
          M
        );
      }
      function Gu(T, M) {
        return T.statements !== M ? br(q_(M), T) : T;
      }
      function Dm(T) {
        const M = O(270);
        return (
          (M.clauses = W(T)),
          (M.transformFlags |= rs(M.clauses)),
          (M.locals = void 0),
          (M.nextContainer = void 0),
          M
        );
      }
      function qm(T, M) {
        return T.clauses !== M ? br(Dm(M), T) : T;
      }
      function R0(T) {
        const M = G(271);
        return (
          (M.name = Gc(T)),
          (M.transformFlags |= lw(M.name) | 1),
          (M.modifiers = void 0),
          (M.jsDoc = void 0),
          M
        );
      }
      function D0(T, M) {
        return T.name !== M ? rL(R0(M), T) : T;
      }
      function rL(T, M) {
        return (T !== M && (T.modifiers = M.modifiers), br(T, M));
      }
      function IC(T, M, V, ue) {
        const tt = G(272);
        return (
          (tt.modifiers = cs(T)),
          (tt.name = Gc(V)),
          (tt.isTypeOnly = M),
          (tt.moduleReference = ue),
          (tt.transformFlags |=
            rs(tt.modifiers) | lw(tt.name) | Fr(tt.moduleReference)),
          uy(tt.moduleReference) || (tt.transformFlags |= 1),
          (tt.transformFlags &= -67108865),
          (tt.jsDoc = void 0),
          tt
        );
      }
      function Av(T, M, V, ue, tt) {
        return T.modifiers !== M ||
          T.isTypeOnly !== V ||
          T.name !== ue ||
          T.moduleReference !== tt
          ? br(IC(M, V, ue, tt), T)
          : T;
      }
      function dE(T, M, V, ue) {
        const tt = O(273);
        return (
          (tt.modifiers = cs(T)),
          (tt.importClause = M),
          (tt.moduleSpecifier = V),
          (tt.attributes = tt.assertClause = ue),
          (tt.transformFlags |= Fr(tt.importClause) | Fr(tt.moduleSpecifier)),
          (tt.transformFlags &= -67108865),
          (tt.jsDoc = void 0),
          tt
        );
      }
      function Qe(T, M, V, ue, tt) {
        return T.modifiers !== M ||
          T.importClause !== V ||
          T.moduleSpecifier !== ue ||
          T.attributes !== tt
          ? br(dE(M, V, ue, tt), T)
          : T;
      }
      function Q1(T, M, V) {
        const ue = G(274);
        return (
          typeof T == "boolean" && (T = T ? 156 : void 0),
          (ue.isTypeOnly = T === 156),
          (ue.phaseModifier = T),
          (ue.name = M),
          (ue.namedBindings = V),
          (ue.transformFlags |= Fr(ue.name) | Fr(ue.namedBindings)),
          T === 156 && (ue.transformFlags |= 1),
          (ue.transformFlags &= -67108865),
          ue
        );
      }
      function Pg(T, M, V, ue) {
        return (
          typeof M == "boolean" && (M = M ? 156 : void 0),
          T.phaseModifier !== M || T.name !== V || T.namedBindings !== ue
            ? br(Q1(M, V, ue), T)
            : T
        );
      }
      function Jm(T, M) {
        const V = O(301);
        return (
          (V.elements = W(T)),
          (V.multiLine = M),
          (V.token = 132),
          (V.transformFlags |= 4),
          V
        );
      }
      function Iv(T, M, V) {
        return T.elements !== M || T.multiLine !== V ? br(Jm(M, V), T) : T;
      }
      function Xb(T, M) {
        const V = O(302);
        return ((V.name = T), (V.value = M), (V.transformFlags |= 4), V);
      }
      function xu(T, M, V) {
        return T.name !== M || T.value !== V ? br(Xb(M, V), T) : T;
      }
      function Sh(T, M) {
        const V = O(303);
        return ((V.assertClause = T), (V.multiLine = M), V);
      }
      function Cm(T, M, V) {
        return T.assertClause !== M || T.multiLine !== V ? br(Sh(M, V), T) : T;
      }
      function C0(T, M, V) {
        const ue = O(301);
        return (
          (ue.token = V ?? 118),
          (ue.elements = W(T)),
          (ue.multiLine = M),
          (ue.transformFlags |= 4),
          ue
        );
      }
      function ja(T, M, V) {
        return T.elements !== M || T.multiLine !== V
          ? br(C0(M, V, T.token), T)
          : T;
      }
      function Ef(T, M) {
        const V = O(302);
        return ((V.name = T), (V.value = M), (V.transformFlags |= 4), V);
      }
      function xv(T, M, V) {
        return T.name !== M || T.value !== V ? br(Ef(M, V), T) : T;
      }
      function Z1(T) {
        const M = G(275);
        return (
          (M.name = T),
          (M.transformFlags |= Fr(M.name)),
          (M.transformFlags &= -67108865),
          M
        );
      }
      function Ry(T, M) {
        return T.name !== M ? br(Z1(M), T) : T;
      }
      function uE(T) {
        const M = G(281);
        return (
          (M.name = T),
          (M.transformFlags |= Fr(M.name) | 32),
          (M.transformFlags &= -67108865),
          M
        );
      }
      function $f(T, M) {
        return T.name !== M ? br(uE(M), T) : T;
      }
      function Lg(T) {
        const M = O(276);
        return (
          (M.elements = W(T)),
          (M.transformFlags |= rs(M.elements)),
          (M.transformFlags &= -67108865),
          M
        );
      }
      function N0(T, M) {
        return T.elements !== M ? br(Lg(M), T) : T;
      }
      function Rv(T, M, V) {
        const ue = G(277);
        return (
          (ue.isTypeOnly = T),
          (ue.propertyName = M),
          (ue.name = V),
          (ue.transformFlags |= Fr(ue.propertyName) | Fr(ue.name)),
          (ue.transformFlags &= -67108865),
          ue
        );
      }
      function m_(T, M, V, ue) {
        return T.isTypeOnly !== M || T.propertyName !== V || T.name !== ue
          ? br(Rv(M, V, ue), T)
          : T;
      }
      function pE(T, M, V) {
        const ue = G(278);
        return (
          (ue.modifiers = cs(T)),
          (ue.isExportEquals = M),
          (ue.expression = M
            ? i().parenthesizeRightSideOfBinary(64, void 0, V)
            : i().parenthesizeExpressionOfExportDefault(V)),
          (ue.transformFlags |= rs(ue.modifiers) | Fr(ue.expression)),
          (ue.transformFlags &= -67108865),
          (ue.jsDoc = void 0),
          ue
        );
      }
      function M0(T, M, V) {
        return T.modifiers !== M || T.expression !== V
          ? br(pE(M, T.isExportEquals, V), T)
          : T;
      }
      function Jr(T, M, V, ue, tt) {
        const rn = G(279);
        return (
          (rn.modifiers = cs(T)),
          (rn.isTypeOnly = M),
          (rn.exportClause = V),
          (rn.moduleSpecifier = ue),
          (rn.attributes = rn.assertClause = tt),
          (rn.transformFlags |=
            rs(rn.modifiers) | Fr(rn.exportClause) | Fr(rn.moduleSpecifier)),
          (rn.transformFlags &= -67108865),
          (rn.jsDoc = void 0),
          rn
        );
      }
      function Vr(T, M, V, ue, tt, rn) {
        return T.modifiers !== M ||
          T.isTypeOnly !== V ||
          T.exportClause !== ue ||
          T.moduleSpecifier !== tt ||
          T.attributes !== rn
          ? Sd(Jr(M, V, ue, tt, rn), T)
          : T;
      }
      function Sd(T, M) {
        return (
          T !== M && T.modifiers === M.modifiers && (T.modifiers = M.modifiers),
          br(T, M)
        );
      }
      function eA(T) {
        const M = O(280);
        return (
          (M.elements = W(T)),
          (M.transformFlags |= rs(M.elements)),
          (M.transformFlags &= -67108865),
          M
        );
      }
      function Dy(T, M) {
        return T.elements !== M ? br(eA(M), T) : T;
      }
      function fE(T, M, V) {
        const ue = O(282);
        return (
          (ue.isTypeOnly = T),
          (ue.propertyName = Gc(M)),
          (ue.name = Gc(V)),
          (ue.transformFlags |= Fr(ue.propertyName) | Fr(ue.name)),
          (ue.transformFlags &= -67108865),
          (ue.jsDoc = void 0),
          ue
        );
      }
      function xC(T, M, V, ue) {
        return T.isTypeOnly !== M || T.propertyName !== V || T.name !== ue
          ? br(fE(M, V, ue), T)
          : T;
      }
      function iL() {
        const T = G(283);
        return ((T.jsDoc = void 0), T);
      }
      function zr(T) {
        const M = O(284);
        return (
          (M.expression = T),
          (M.transformFlags |= Fr(M.expression)),
          (M.transformFlags &= -67108865),
          M
        );
      }
      function Ru(T, M) {
        return T.expression !== M ? br(zr(M), T) : T;
      }
      function Wo(T) {
        return O(T);
      }
      function vp(T, M, V = !1) {
        const ue = tA(
          T,
          V ? M && i().parenthesizeNonArrayTypeOfPostfixType(M) : M,
        );
        return ((ue.postfix = V), ue);
      }
      function tA(T, M) {
        const V = O(T);
        return ((V.type = M), V);
      }
      function Yb(T, M, V) {
        return M.type !== V ? br(vp(T, V, M.postfix), M) : M;
      }
      function Mr(T, M, V) {
        return M.type !== V ? br(tA(T, V), M) : M;
      }
      function RC(T, M) {
        const V = G(318);
        return (
          (V.parameters = cs(T)),
          (V.type = M),
          (V.transformFlags = rs(V.parameters) | (V.type ? 1 : 0)),
          (V.jsDoc = void 0),
          (V.locals = void 0),
          (V.nextContainer = void 0),
          (V.typeArguments = void 0),
          V
        );
      }
      function Lx(T, M, V) {
        return T.parameters !== M || T.type !== V ? br(RC(M, V), T) : T;
      }
      function du(T, M = !1) {
        const V = G(323);
        return ((V.jsDocPropertyTags = cs(T)), (V.isArrayType = M), V);
      }
      function J_(T, M, V) {
        return T.jsDocPropertyTags !== M || T.isArrayType !== V
          ? br(du(M, V), T)
          : T;
      }
      function Eh(T) {
        const M = O(310);
        return ((M.type = T), M);
      }
      function $b(T, M) {
        return T.type !== M ? br(Eh(M), T) : T;
      }
      function nA(T, M, V) {
        const ue = G(324);
        return (
          (ue.typeParameters = cs(T)),
          (ue.parameters = W(M)),
          (ue.type = V),
          (ue.jsDoc = void 0),
          (ue.locals = void 0),
          (ue.nextContainer = void 0),
          ue
        );
      }
      function Qb(T, M, V, ue) {
        return T.typeParameters !== M || T.parameters !== V || T.type !== ue
          ? br(nA(M, V, ue), T)
          : T;
      }
      function Af(T) {
        const M = lj(T.kind);
        return T.tagName.escapedText === Cl(M) ? T.tagName : ve(M);
      }
      function Km(T, M, V) {
        const ue = O(T);
        return ((ue.tagName = M), (ue.comment = V), ue);
      }
      function Qf(T, M, V) {
        const ue = G(T);
        return ((ue.tagName = M), (ue.comment = V), ue);
      }
      function cp(T, M, V, ue) {
        const tt = Km(346, T ?? ve("template"), ue);
        return ((tt.constraint = M), (tt.typeParameters = W(V)), tt);
      }
      function Dv(T, M = Af(T), V, ue, tt) {
        return T.tagName !== M ||
          T.constraint !== V ||
          T.typeParameters !== ue ||
          T.comment !== tt
          ? br(cp(M, V, ue, tt), T)
          : T;
      }
      function P0(T, M, V, ue) {
        const tt = Qf(347, T ?? ve("typedef"), ue);
        return (
          (tt.typeExpression = M),
          (tt.fullName = V),
          (tt.name = Vj(V)),
          (tt.locals = void 0),
          (tt.nextContainer = void 0),
          tt
        );
      }
      function kx(T, M = Af(T), V, ue, tt) {
        return T.tagName !== M ||
          T.typeExpression !== V ||
          T.fullName !== ue ||
          T.comment !== tt
          ? br(P0(M, V, ue, tt), T)
          : T;
      }
      function L0(T, M, V, ue, tt, rn) {
        const Or = Qf(342, T ?? ve("param"), rn);
        return (
          (Or.typeExpression = ue),
          (Or.name = M),
          (Or.isNameFirst = !!tt),
          (Or.isBracketed = V),
          Or
        );
      }
      function Zb(T, M = Af(T), V, ue, tt, rn, Or) {
        return T.tagName !== M ||
          T.name !== V ||
          T.isBracketed !== ue ||
          T.typeExpression !== tt ||
          T.isNameFirst !== rn ||
          T.comment !== Or
          ? br(L0(M, V, ue, tt, rn, Or), T)
          : T;
      }
      function wx(T, M, V, ue, tt, rn) {
        const Or = Qf(349, T ?? ve("prop"), rn);
        return (
          (Or.typeExpression = ue),
          (Or.name = M),
          (Or.isNameFirst = !!tt),
          (Or.isBracketed = V),
          Or
        );
      }
      function Cy(T, M = Af(T), V, ue, tt, rn, Or) {
        return T.tagName !== M ||
          T.name !== V ||
          T.isBracketed !== ue ||
          T.typeExpression !== tt ||
          T.isNameFirst !== rn ||
          T.comment !== Or
          ? br(wx(M, V, ue, tt, rn, Or), T)
          : T;
      }
      function h_(T, M, V, ue) {
        const tt = Qf(339, T ?? ve("callback"), ue);
        return (
          (tt.typeExpression = M),
          (tt.fullName = V),
          (tt.name = Vj(V)),
          (tt.locals = void 0),
          (tt.nextContainer = void 0),
          tt
        );
      }
      function eT(T, M = Af(T), V, ue, tt) {
        return T.tagName !== M ||
          T.typeExpression !== V ||
          T.fullName !== ue ||
          T.comment !== tt
          ? br(h_(M, V, ue, tt), T)
          : T;
      }
      function k0(T, M, V) {
        const ue = Km(340, T ?? ve("overload"), V);
        return ((ue.typeExpression = M), ue);
      }
      function Cv(T, M = Af(T), V, ue) {
        return T.tagName !== M || T.typeExpression !== V || T.comment !== ue
          ? br(k0(M, V, ue), T)
          : T;
      }
      function tT(T, M, V) {
        const ue = Km(329, T ?? ve("augments"), V);
        return ((ue.class = M), ue);
      }
      function Xm(T, M = Af(T), V, ue) {
        return T.tagName !== M || T.class !== V || T.comment !== ue
          ? br(tT(M, V, ue), T)
          : T;
      }
      function Ny(T, M, V) {
        const ue = Km(330, T ?? ve("implements"), V);
        return ((ue.class = M), ue);
      }
      function kg(T, M, V) {
        const ue = Km(348, T ?? ve("see"), V);
        return ((ue.name = M), ue);
      }
      function nT(T, M, V, ue) {
        return T.tagName !== M || T.name !== V || T.comment !== ue
          ? br(kg(M, V, ue), T)
          : T;
      }
      function dd(T) {
        const M = O(311);
        return ((M.name = T), M);
      }
      function mE(T, M) {
        return T.name !== M ? br(dd(M), T) : T;
      }
      function wg(T, M) {
        const V = O(312);
        return (
          (V.left = T),
          (V.right = M),
          (V.transformFlags |= Fr(V.left) | Fr(V.right)),
          V
        );
      }
      function w0(T, M, V) {
        return T.left !== M || T.right !== V ? br(wg(M, V), T) : T;
      }
      function rA(T, M) {
        const V = O(325);
        return ((V.name = T), (V.text = M), V);
      }
      function Og(T, M, V) {
        return T.name !== M ? br(rA(M, V), T) : T;
      }
      function DC(T, M) {
        const V = O(326);
        return ((V.name = T), (V.text = M), V);
      }
      function Ox(T, M, V) {
        return T.name !== M ? br(DC(M, V), T) : T;
      }
      function Wx(T, M) {
        const V = O(327);
        return ((V.name = T), (V.text = M), V);
      }
      function oL(T, M, V) {
        return T.name !== M ? br(Wx(M, V), T) : T;
      }
      function Fx(T, M = Af(T), V, ue) {
        return T.tagName !== M || T.class !== V || T.comment !== ue
          ? br(Ny(M, V, ue), T)
          : T;
      }
      function O0(T, M, V) {
        return Km(T, M ?? ve(lj(T)), V);
      }
      function My(T, M, V = Af(M), ue) {
        return M.tagName !== V || M.comment !== ue ? br(O0(T, V, ue), M) : M;
      }
      function CC(T, M, V, ue) {
        const tt = Km(T, M ?? ve(lj(T)), ue);
        return ((tt.typeExpression = V), tt);
      }
      function W0(T, M, V = Af(M), ue, tt) {
        return M.tagName !== V || M.typeExpression !== ue || M.comment !== tt
          ? br(CC(T, V, ue, tt), M)
          : M;
      }
      function iA(T, M) {
        return Km(328, T, M);
      }
      function mc(T, M, V) {
        return T.tagName !== M || T.comment !== V ? br(iA(M, V), T) : T;
      }
      function ud(T, M, V) {
        const ue = Qf(341, T ?? ve(lj(341)), V);
        return (
          (ue.typeExpression = M),
          (ue.locals = void 0),
          (ue.nextContainer = void 0),
          ue
        );
      }
      function zx(T, M = Af(T), V, ue) {
        return T.tagName !== M || T.typeExpression !== V || T.comment !== ue
          ? br(ud(M, V, ue), T)
          : T;
      }
      function dp(T, M, V, ue, tt) {
        const rn = Km(352, T ?? ve("import"), tt);
        return (
          (rn.importClause = M),
          (rn.moduleSpecifier = V),
          (rn.attributes = ue),
          (rn.comment = tt),
          rn
        );
      }
      function Zf(T, M, V, ue, tt, rn) {
        return T.tagName !== M ||
          T.comment !== rn ||
          T.importClause !== V ||
          T.moduleSpecifier !== ue ||
          T.attributes !== tt
          ? br(dp(M, V, ue, tt, rn), T)
          : T;
      }
      function hE(T) {
        const M = O(322);
        return ((M.text = T), M);
      }
      function Ah(T, M) {
        return T.text !== M ? br(hE(M), T) : T;
      }
      function rT(T, M) {
        const V = O(321);
        return ((V.comment = T), (V.tags = cs(M)), V);
      }
      function Nv(T, M, V) {
        return T.comment !== M || T.tags !== V ? br(rT(M, V), T) : T;
      }
      function Bx(T, M, V) {
        const ue = O(285);
        return (
          (ue.openingElement = T),
          (ue.children = W(M)),
          (ue.closingElement = V),
          (ue.transformFlags |=
            Fr(ue.openingElement) |
            rs(ue.children) |
            Fr(ue.closingElement) |
            2),
          ue
        );
      }
      function aL(T, M, V, ue) {
        return T.openingElement !== M ||
          T.children !== V ||
          T.closingElement !== ue
          ? br(Bx(M, V, ue), T)
          : T;
      }
      function Gl(T, M, V) {
        const ue = O(286);
        return (
          (ue.tagName = T),
          (ue.typeArguments = cs(M)),
          (ue.attributes = V),
          (ue.transformFlags |=
            Fr(ue.tagName) | rs(ue.typeArguments) | Fr(ue.attributes) | 2),
          ue.typeArguments && (ue.transformFlags |= 1),
          ue
        );
      }
      function NC(T, M, V, ue) {
        return T.tagName !== M || T.typeArguments !== V || T.attributes !== ue
          ? br(Gl(M, V, ue), T)
          : T;
      }
      function oA(T, M, V) {
        const ue = O(287);
        return (
          (ue.tagName = T),
          (ue.typeArguments = cs(M)),
          (ue.attributes = V),
          (ue.transformFlags |=
            Fr(ue.tagName) | rs(ue.typeArguments) | Fr(ue.attributes) | 2),
          M && (ue.transformFlags |= 1),
          ue
        );
      }
      function _E(T, M, V, ue) {
        return T.tagName !== M || T.typeArguments !== V || T.attributes !== ue
          ? br(oA(M, V, ue), T)
          : T;
      }
      function Gx(T) {
        const M = O(288);
        return ((M.tagName = T), (M.transformFlags |= Fr(M.tagName) | 2), M);
      }
      function uu(T, M) {
        return T.tagName !== M ? br(Gx(M), T) : T;
      }
      function bp(T, M, V) {
        const ue = O(289);
        return (
          (ue.openingFragment = T),
          (ue.children = W(M)),
          (ue.closingFragment = V),
          (ue.transformFlags |=
            Fr(ue.openingFragment) |
            rs(ue.children) |
            Fr(ue.closingFragment) |
            2),
          ue
        );
      }
      function aA(T, M, V, ue) {
        return T.openingFragment !== M ||
          T.children !== V ||
          T.closingFragment !== ue
          ? br(bp(M, V, ue), T)
          : T;
      }
      function F0(T, M) {
        const V = O(12);
        return (
          (V.text = T),
          (V.containsOnlyTriviaWhiteSpaces = !!M),
          (V.transformFlags |= 2),
          V
        );
      }
      function Tp(T, M, V) {
        return T.text !== M || T.containsOnlyTriviaWhiteSpaces !== V
          ? br(F0(M, V), T)
          : T;
      }
      function sA() {
        const T = O(290);
        return ((T.transformFlags |= 2), T);
      }
      function Wg() {
        const T = O(291);
        return ((T.transformFlags |= 2), T);
      }
      function Vx(T, M) {
        const V = G(292);
        return (
          (V.name = T),
          (V.initializer = M),
          (V.transformFlags |= Fr(V.name) | Fr(V.initializer) | 2),
          V
        );
      }
      function lA(T, M, V) {
        return T.name !== M || T.initializer !== V ? br(Vx(M, V), T) : T;
      }
      function Ym(T) {
        const M = G(293);
        return (
          (M.properties = W(T)),
          (M.transformFlags |= rs(M.properties) | 2),
          M
        );
      }
      function jx(T, M) {
        return T.properties !== M ? br(Ym(M), T) : T;
      }
      function MC(T) {
        const M = O(294);
        return (
          (M.expression = T),
          (M.transformFlags |= Fr(M.expression) | 2),
          M
        );
      }
      function Ux(T, M) {
        return T.expression !== M ? br(MC(M), T) : T;
      }
      function cA(T, M) {
        const V = O(295);
        return (
          (V.dotDotDotToken = T),
          (V.expression = M),
          (V.transformFlags |= Fr(V.dotDotDotToken) | Fr(V.expression) | 2),
          V
        );
      }
      function Hx(T, M) {
        return T.expression !== M ? br(cA(T.dotDotDotToken, M), T) : T;
      }
      function Mv(T, M) {
        const V = O(296);
        return (
          (V.namespace = T),
          (V.name = M),
          (V.transformFlags |= Fr(V.namespace) | Fr(V.name) | 2),
          V
        );
      }
      function qp(T, M, V) {
        return T.namespace !== M || T.name !== V ? br(Mv(M, V), T) : T;
      }
      function __(T, M) {
        const V = O(297);
        return (
          (V.expression = i().parenthesizeExpressionForDisallowedComma(T)),
          (V.statements = W(M)),
          (V.transformFlags |= Fr(V.expression) | rs(V.statements)),
          (V.jsDoc = void 0),
          V
        );
      }
      function dA(T, M, V) {
        return T.expression !== M || T.statements !== V ? br(__(M, V), T) : T;
      }
      function uA(T) {
        const M = O(298);
        return (
          (M.statements = W(T)),
          (M.transformFlags = rs(M.statements)),
          M
        );
      }
      function os(T, M) {
        return T.statements !== M ? br(uA(M), T) : T;
      }
      function Wr(T, M) {
        const V = O(299);
        switch (
          ((V.token = T),
          (V.types = W(M)),
          (V.transformFlags |= rs(V.types)),
          T)
        ) {
          case 96:
            V.transformFlags |= 1024;
            break;
          case 119:
            V.transformFlags |= 1;
            break;
          default:
            return C.assertNever(T);
        }
        return V;
      }
      function If(T, M) {
        return T.types !== M ? br(Wr(T.token, M), T) : T;
      }
      function Yc(T, M) {
        const V = O(300);
        return (
          (V.variableDeclaration = Y_(T)),
          (V.block = M),
          (V.transformFlags |=
            Fr(V.variableDeclaration) | Fr(V.block) | (T ? 0 : 64)),
          (V.locals = void 0),
          (V.nextContainer = void 0),
          V
        );
      }
      function z0(T, M, V) {
        return T.variableDeclaration !== M || T.block !== V
          ? br(Yc(M, V), T)
          : T;
      }
      function pA(T, M) {
        const V = G(304);
        return (
          (V.name = Gc(T)),
          (V.initializer = i().parenthesizeExpressionForDisallowedComma(M)),
          (V.transformFlags |= Db(V.name) | Fr(V.initializer)),
          (V.modifiers = void 0),
          (V.questionToken = void 0),
          (V.exclamationToken = void 0),
          (V.jsDoc = void 0),
          V
        );
      }
      function gE(T, M, V) {
        return T.name !== M || T.initializer !== V ? B0(pA(M, V), T) : T;
      }
      function B0(T, M) {
        return (
          T !== M &&
            ((T.modifiers = M.modifiers),
            (T.questionToken = M.questionToken),
            (T.exclamationToken = M.exclamationToken)),
          br(T, M)
        );
      }
      function fA(T, M) {
        const V = G(305);
        return (
          (V.name = Gc(T)),
          (V.objectAssignmentInitializer =
            M && i().parenthesizeExpressionForDisallowedComma(M)),
          (V.transformFlags |=
            lw(V.name) | Fr(V.objectAssignmentInitializer) | 1024),
          (V.equalsToken = void 0),
          (V.modifiers = void 0),
          (V.questionToken = void 0),
          (V.exclamationToken = void 0),
          (V.jsDoc = void 0),
          V
        );
      }
      function D(T, M, V) {
        return T.name !== M || T.objectAssignmentInitializer !== V
          ? me(fA(M, V), T)
          : T;
      }
      function me(T, M) {
        return (
          T !== M &&
            ((T.modifiers = M.modifiers),
            (T.questionToken = M.questionToken),
            (T.exclamationToken = M.exclamationToken),
            (T.equalsToken = M.equalsToken)),
          br(T, M)
        );
      }
      function Et(T) {
        const M = G(306);
        return (
          (M.expression = i().parenthesizeExpressionForDisallowedComma(T)),
          (M.transformFlags |= Fr(M.expression) | 128 | 65536),
          (M.jsDoc = void 0),
          M
        );
      }
      function An(T, M) {
        return T.expression !== M ? br(Et(M), T) : T;
      }
      function vi(T, M) {
        const V = G(307);
        return (
          (V.name = Gc(T)),
          (V.initializer =
            M && i().parenthesizeExpressionForDisallowedComma(M)),
          (V.transformFlags |= Fr(V.name) | Fr(V.initializer) | 1),
          (V.jsDoc = void 0),
          V
        );
      }
      function wi(T, M, V) {
        return T.name !== M || T.initializer !== V ? br(vi(M, V), T) : T;
      }
      function Ao(T, M, V) {
        const ue = t.createBaseSourceFileNode(308);
        return (
          (ue.statements = W(T)),
          (ue.endOfFileToken = M),
          (ue.flags |= V),
          (ue.text = ""),
          (ue.fileName = ""),
          (ue.path = ""),
          (ue.resolvedPath = ""),
          (ue.originalFileName = ""),
          (ue.languageVersion = 1),
          (ue.languageVariant = 0),
          (ue.scriptKind = 0),
          (ue.isDeclarationFile = !1),
          (ue.hasNoDefaultLib = !1),
          (ue.transformFlags |= rs(ue.statements) | Fr(ue.endOfFileToken)),
          (ue.locals = void 0),
          (ue.nextContainer = void 0),
          (ue.endFlowNode = void 0),
          (ue.nodeCount = 0),
          (ue.identifierCount = 0),
          (ue.symbolCount = 0),
          (ue.parseDiagnostics = void 0),
          (ue.bindDiagnostics = void 0),
          (ue.bindSuggestionDiagnostics = void 0),
          (ue.lineMap = void 0),
          (ue.externalModuleIndicator = void 0),
          (ue.setExternalModuleIndicator = void 0),
          (ue.pragmas = void 0),
          (ue.checkJsDirective = void 0),
          (ue.referencedFiles = void 0),
          (ue.typeReferenceDirectives = void 0),
          (ue.libReferenceDirectives = void 0),
          (ue.amdDependencies = void 0),
          (ue.commentDirectives = void 0),
          (ue.identifiers = void 0),
          (ue.packageJsonLocations = void 0),
          (ue.packageJsonScope = void 0),
          (ue.imports = void 0),
          (ue.moduleAugmentations = void 0),
          (ue.ambientModuleNames = void 0),
          (ue.classifiableNames = void 0),
          (ue.impliedNodeFormat = void 0),
          ue
        );
      }
      function Li(T) {
        const M = Object.create(T.redirectTarget);
        return (
          Object.defineProperties(M, {
            id: {
              get() {
                return this.redirectInfo.redirectTarget.id;
              },
              set(V) {
                this.redirectInfo.redirectTarget.id = V;
              },
            },
            symbol: {
              get() {
                return this.redirectInfo.redirectTarget.symbol;
              },
              set(V) {
                this.redirectInfo.redirectTarget.symbol = V;
              },
            },
          }),
          (M.redirectInfo = T),
          M
        );
      }
      function Ja(T) {
        const M = Li(T.redirectInfo);
        return (
          (M.flags |= T.flags & -17),
          (M.fileName = T.fileName),
          (M.path = T.path),
          (M.resolvedPath = T.resolvedPath),
          (M.originalFileName = T.originalFileName),
          (M.packageJsonLocations = T.packageJsonLocations),
          (M.packageJsonScope = T.packageJsonScope),
          (M.emitNode = void 0),
          M
        );
      }
      function hc(T) {
        const M = t.createBaseSourceFileNode(308);
        M.flags |= T.flags & -17;
        for (const V in T)
          if (!(Rs(M, V) || !Rs(T, V))) {
            if (V === "emitNode") {
              M.emitNode = void 0;
              continue;
            }
            M[V] = T[V];
          }
        return M;
      }
      function Kd(T) {
        const M = T.redirectInfo ? Ja(T) : hc(T);
        return (r(M, T), M);
      }
      function Vu(T, M, V, ue, tt, rn, Or) {
        const ko = Kd(T);
        return (
          (ko.statements = W(M)),
          (ko.isDeclarationFile = V),
          (ko.referencedFiles = ue),
          (ko.typeReferenceDirectives = tt),
          (ko.hasNoDefaultLib = rn),
          (ko.libReferenceDirectives = Or),
          (ko.transformFlags = rs(ko.statements) | Fr(ko.endOfFileToken)),
          ko
        );
      }
      function G0(
        T,
        M,
        V = T.isDeclarationFile,
        ue = T.referencedFiles,
        tt = T.typeReferenceDirectives,
        rn = T.hasNoDefaultLib,
        Or = T.libReferenceDirectives,
      ) {
        return T.statements !== M ||
          T.isDeclarationFile !== V ||
          T.referencedFiles !== ue ||
          T.typeReferenceDirectives !== tt ||
          T.hasNoDefaultLib !== rn ||
          T.libReferenceDirectives !== Or
          ? br(Vu(T, M, V, ue, tt, rn, Or), T)
          : T;
      }
      function ju(T) {
        const M = O(309);
        return (
          (M.sourceFiles = T),
          (M.syntheticFileReferences = void 0),
          (M.syntheticTypeReferences = void 0),
          (M.syntheticLibReferences = void 0),
          (M.hasNoDefaultLib = void 0),
          M
        );
      }
      function iT(T, M) {
        return T.sourceFiles !== M ? br(ju(M), T) : T;
      }
      function qx(T, M = !1, V) {
        const ue = O(238);
        return ((ue.type = T), (ue.isSpread = M), (ue.tupleNameSource = V), ue);
      }
      function Nm(T) {
        const M = O(353);
        return ((M._children = T), M);
      }
      function bl(T) {
        const M = O(354);
        return ((M.original = T), vt(M, T), M);
      }
      function mA(T, M) {
        const V = O(356);
        return (
          (V.expression = T),
          (V.original = M),
          (V.transformFlags |= Fr(V.expression) | 1),
          vt(V, M),
          V
        );
      }
      function Pv(T, M) {
        return T.expression !== M ? br(mA(M, T.original), T) : T;
      }
      function $m() {
        return O(355);
      }
      function Lv(T) {
        if (Os(T) && !MN(T) && !T.original && !T.emitNode && !T.id) {
          if (jM(T)) return T.elements;
          if (Nr(T) && mie(T.operatorToken)) return [T.left, T.right];
        }
        return T;
      }
      function yE(T) {
        const M = O(357);
        return (
          (M.elements = W(wm(T, Lv))),
          (M.transformFlags |= rs(M.elements)),
          M
        );
      }
      function Wz(T, M) {
        return T.elements !== M ? br(yE(M), T) : T;
      }
      function sL(T, M) {
        const V = O(358);
        return (
          (V.expression = T),
          (V.thisArg = M),
          (V.transformFlags |= Fr(V.expression) | Fr(V.thisArg)),
          V
        );
      }
      function Jx(T, M, V) {
        return T.expression !== M || T.thisArg !== V ? br(sL(M, V), T) : T;
      }
      function lL(T) {
        const M = de(T.escapedText);
        return (
          (M.flags |= T.flags & -17),
          (M.transformFlags = T.transformFlags),
          r(M, T),
          pw(M, { ...T.emitNode.autoGenerate }),
          M
        );
      }
      function bW(T) {
        const M = de(T.escapedText);
        ((M.flags |= T.flags & -17),
          (M.jsDoc = T.jsDoc),
          (M.flowNode = T.flowNode),
          (M.symbol = T.symbol),
          (M.transformFlags = T.transformFlags),
          r(M, T));
        const V = _1(T);
        return (V && cv(M, V), M);
      }
      function oT(T) {
        const M = Se(T.escapedText);
        return (
          (M.flags |= T.flags & -17),
          (M.transformFlags = T.transformFlags),
          r(M, T),
          pw(M, { ...T.emitNode.autoGenerate }),
          M
        );
      }
      function Kx(T) {
        const M = Se(T.escapedText);
        return (
          (M.flags |= T.flags & -17),
          (M.transformFlags = T.transformFlags),
          r(M, T),
          M
        );
      }
      function hA(T) {
        if (T === void 0) return T;
        if (Yi(T)) return Kd(T);
        if (pl(T)) return lL(T);
        if (He(T)) return bW(T);
        if (YE(T)) return oT(T);
        if (eo(T)) return Kx(T);
        const M = gF(T.kind)
          ? t.createBaseNode(T.kind)
          : t.createBaseTokenNode(T.kind);
        ((M.flags |= T.flags & -17),
          (M.transformFlags = T.transformFlags),
          r(M, T));
        for (const V in T) Rs(M, V) || !Rs(T, V) || (M[V] = T[V]);
        return M;
      }
      function Fz(T, M, V) {
        return er(
          jp(void 0, void 0, void 0, void 0, M ? [M] : [], void 0, hl(T, !0)),
          void 0,
          V ? [V] : [],
        );
      }
      function vE(T, M, V) {
        return er(
          Xf(void 0, void 0, M ? [M] : [], void 0, void 0, hl(T, !0)),
          void 0,
          V ? [V] : [],
        );
      }
      function _A() {
        return bh(J("0"));
      }
      function cL(T) {
        return pE(void 0, !1, T);
      }
      function Xx(T) {
        return Jr(void 0, !1, eA([fE(!1, void 0, T)]));
      }
      function uo(T, M) {
        return M === "null"
          ? k.createStrictEquality(T, je())
          : M === "undefined"
            ? k.createStrictEquality(T, _A())
            : k.createStrictEquality(ap(T), ye(M));
      }
      function aT(T, M) {
        return M === "null"
          ? k.createStrictInequality(T, je())
          : M === "undefined"
            ? k.createStrictInequality(T, _A())
            : k.createStrictInequality(ap(T), ye(M));
      }
      function ar(T, M, V) {
        return KE(T)
          ? Za(Hs(T, void 0, M), void 0, void 0, V)
          : er(Sc(T, M), void 0, V);
      }
      function dL(T, M, V) {
        return ar(T, "bind", [M, ...V]);
      }
      function PC(T, M, V) {
        return ar(T, "call", [M, ...V]);
      }
      function LC(T, M, V) {
        return ar(T, "apply", [M, V]);
      }
      function bE(T, M, V) {
        return ar(ve(T), M, V);
      }
      function TW(T, M) {
        return ar(T, "slice", M === void 0 ? [] : [Ov(M)]);
      }
      function gA(T, M) {
        return ar(T, "concat", M);
      }
      function zz(T, M, V) {
        return bE("Object", "defineProperty", [T, Ov(M), V]);
      }
      function kC(T, M) {
        return bE("Object", "getOwnPropertyDescriptor", [T, Ov(M)]);
      }
      function K_(T, M, V) {
        return bE("Reflect", "get", V ? [T, M, V] : [T, M]);
      }
      function SW(T, M, V, ue) {
        return bE("Reflect", "set", ue ? [T, M, V, ue] : [T, M, V]);
      }
      function V0(T, M, V) {
        return V ? (T.push(pA(M, V)), !0) : !1;
      }
      function Bz(T, M) {
        const V = [];
        (V0(V, "enumerable", Ov(T.enumerable)),
          V0(V, "configurable", Ov(T.configurable)));
        let ue = V0(V, "writable", Ov(T.writable));
        ue = V0(V, "value", T.value) || ue;
        let tt = V0(V, "get", T.get);
        return (
          (tt = V0(V, "set", T.set) || tt),
          C.assert(
            !(ue && tt),
            "A PropertyDescriptor may not be both an accessor descriptor and a data descriptor.",
          ),
          Ns(V, !M)
        );
      }
      function uL(T, M) {
        switch (T.kind) {
          case 218:
            return ld(T, M);
          case 217:
            return rf(T, T.type, M);
          case 235:
            return mt(T, M, T.type);
          case 239:
            return Lr(T, M, T.type);
          case 236:
            return Rn(T, M);
          case 234:
            return Hb(T, M, T.typeArguments);
          case 356:
            return Pv(T, M);
        }
      }
      function EW(T) {
        return (
          Ou(T) && Os(T) && Os(lv(T)) && Os(Zh(T)) && !yt(gD(T)) && !yt(uw(T))
        );
      }
      function pL(T, M, V = 63) {
        return T && M4(T, V) && !EW(T) ? uL(T, pL(T.expression, M)) : M;
      }
      function j0(T, M, V) {
        if (!M) return T;
        const ue = Px(M, M.label, Lb(M.statement) ? j0(T, M.statement) : T);
        return (V && V(M), ue);
      }
      function X_(T, M) {
        const V = us(T);
        switch (V.kind) {
          case 80:
            return M;
          case 110:
          case 9:
          case 10:
          case 11:
            return !1;
          case 210:
            return V.elements.length !== 0;
          case 211:
            return V.properties.length > 0;
          default:
            return !0;
        }
      }
      function wC(T, M, V, ue = !1) {
        const tt = Ul(T, 63);
        let rn, Or;
        return (
          mp(tt)
            ? ((rn = _e()), (Or = tt))
            : zM(tt)
              ? ((rn = _e()),
                (Or = V !== void 0 && V < 2 ? vt(ve("_super"), tt) : tt))
              : Qa(tt) & 8192
                ? ((rn = _A()), (Or = i().parenthesizeLeftSideOfAccess(tt, !1)))
                : qr(tt)
                  ? X_(tt.expression, ue)
                    ? ((rn = xe(M)),
                      (Or = Sc(
                        vt(
                          k.createAssignment(rn, tt.expression),
                          tt.expression,
                        ),
                        tt.name,
                      )),
                      vt(Or, tt))
                    : ((rn = tt.expression), (Or = tt))
                  : Ws(tt)
                    ? X_(tt.expression, ue)
                      ? ((rn = xe(M)),
                        (Or = Pd(
                          vt(
                            k.createAssignment(rn, tt.expression),
                            tt.expression,
                          ),
                          tt.argumentExpression,
                        )),
                        vt(Or, tt))
                      : ((rn = tt.expression), (Or = tt))
                    : ((rn = _A()),
                      (Or = i().parenthesizeLeftSideOfAccess(T, !1))),
          { target: Or, thisArg: rn }
        );
      }
      function g_(T, M) {
        return Sc(
          bd(
            Ns([
              ne(
                void 0,
                "value",
                [Di(void 0, void 0, T, void 0, void 0, void 0)],
                hl([Hp(M)]),
              ),
            ]),
          ),
          "value",
        );
      }
      function ee(T) {
        return T.length > 10 ? yE(T) : gu(T, k.createComma);
      }
      function ke(T, M, V, ue = 0, tt) {
        const rn = tt ? T && cF(T) : Oo(T);
        if (rn && He(rn) && !pl(rn)) {
          const Or = ps(vt(hA(rn), rn), rn.parent);
          return (
            (ue |= Qa(rn)),
            V || (ue |= 96),
            M || (ue |= 3072),
            ue && Cr(Or, ue),
            Or
          );
        }
        return Je(T);
      }
      function rt(T, M, V) {
        return ke(T, M, V, 98304);
      }
      function Pt(T, M, V, ue) {
        return ke(T, M, V, 32768, ue);
      }
      function nn(T, M, V) {
        return ke(T, M, V, 16384);
      }
      function _n(T, M, V) {
        return ke(T, M, V);
      }
      function ei(T, M, V, ue) {
        const tt = Sc(T, Os(M) ? M : hA(M));
        vt(tt, M);
        let rn = 0;
        return (ue || (rn |= 96), V || (rn |= 3072), rn && Cr(tt, rn), tt);
      }
      function wr(T, M, V, ue) {
        return T && di(M, 32) ? ei(T, ke(M), V, ue) : nn(M, V, ue);
      }
      function pr(T, M, V, ue) {
        const tt = zs(T, M, 0, V);
        return Is(T, M, tt, ue);
      }
      function Si(T) {
        return ka(T.expression) && T.expression.text === "use strict";
      }
      function ao() {
        return au(Hp(ye("use strict")));
      }
      function zs(T, M, V = 0, ue) {
        C.assert(
          M.length === 0,
          "Prologue directives should be at the first statement in the target statements array",
        );
        let tt = !1;
        const rn = T.length;
        for (; V < rn; ) {
          const Or = T[V];
          if (Uh(Or)) (Si(Or) && (tt = !0), M.push(Or));
          else break;
          V++;
        }
        return (ue && !tt && M.push(ao()), V);
      }
      function Is(T, M, V, ue, tt = dS) {
        const rn = T.length;
        for (; V !== void 0 && V < rn; ) {
          const Or = T[V];
          if (Qa(Or) & 2097152 && tt(Or)) Bn(M, ue ? st(Or, ue, Vi) : Or);
          else break;
          V++;
        }
        return V;
      }
      function as(T) {
        return zj(T) ? T : vt(W([ao(), ...T]), T);
      }
      function em(T) {
        return (
          C.assert(Vn(T, yte), "Cannot lift nodes to a Block."),
          og(T) || hl(T)
        );
      }
      function xf(T, M, V) {
        let ue = V;
        for (; ue < T.length && M(T[ue]); ) ue++;
        return ue;
      }
      function kv(T, M) {
        if (!yt(M)) return T;
        const V = xf(T, Uh, 0),
          ue = xf(T, VF, V),
          tt = xf(T, jF, ue),
          rn = xf(M, Uh, 0),
          Or = xf(M, VF, rn),
          ko = xf(M, jF, Or),
          nl = xf(M, ok, ko);
        C.assert(
          nl === M.length,
          "Expected declarations to be valid standard or custom prologues",
        );
        const of = hS(T) ? T.slice() : T;
        if (
          (nl > ko && of.splice(tt, 0, ...M.slice(ko, nl)),
          ko > Or && of.splice(ue, 0, ...M.slice(Or, ko)),
          Or > rn && of.splice(V, 0, ...M.slice(rn, Or)),
          rn > 0)
        )
          if (V === 0) of.splice(0, 0, ...M.slice(0, rn));
          else {
            const lT = new Map();
            for (let Ih = 0; Ih < V; Ih++) {
              const $x = T[Ih];
              lT.set($x.expression.text, !0);
            }
            for (let Ih = rn - 1; Ih >= 0; Ih--) {
              const $x = M[Ih];
              lT.has($x.expression.text) || of.unshift($x);
            }
          }
        return hS(T) ? vt(W(of, T.hasTrailingComma), T) : T;
      }
      function wv(T, M) {
        let V;
        return (
          typeof M == "number" ? (V = Wt(M)) : (V = M),
          sl(T)
            ? ir(T, V, T.name, T.constraint, T.default)
            : to(T)
              ? lo(
                  T,
                  V,
                  T.dotDotDotToken,
                  T.name,
                  T.questionToken,
                  T.type,
                  T.initializer,
                )
              : vD(T)
                ? gr(T, V, T.typeParameters, T.parameters, T.type)
                : Su(T)
                  ? Ni(T, V, T.name, T.questionToken, T.type)
                  : Po(T)
                    ? $e(
                        T,
                        V,
                        T.name,
                        T.questionToken ?? T.exclamationToken,
                        T.type,
                        T.initializer,
                      )
                    : Gm(T)
                      ? mn(
                          T,
                          V,
                          T.name,
                          T.questionToken,
                          T.typeParameters,
                          T.parameters,
                          T.type,
                        )
                      : Nl(T)
                        ? ri(
                            T,
                            V,
                            T.asteriskToken,
                            T.name,
                            T.questionToken,
                            T.typeParameters,
                            T.parameters,
                            T.type,
                            T.body,
                          )
                        : Ml(T)
                          ? Uo(T, V, T.parameters, T.body)
                          : Hf(T)
                            ? le(T, V, T.name, T.parameters, T.type, T.body)
                            : gp(T)
                              ? Fe(T, V, T.name, T.parameters, T.body)
                              : Mb(T)
                                ? Ot(T, V, T.parameters, T.type)
                                : Us(T)
                                  ? Au(
                                      T,
                                      V,
                                      T.asteriskToken,
                                      T.name,
                                      T.typeParameters,
                                      T.parameters,
                                      T.type,
                                      T.body,
                                    )
                                  : Xs(T)
                                    ? G_(
                                        T,
                                        V,
                                        T.typeParameters,
                                        T.parameters,
                                        T.type,
                                        T.equalsGreaterThanToken,
                                        T.body,
                                      )
                                    : dc(T)
                                      ? V_(
                                          T,
                                          V,
                                          T.name,
                                          T.typeParameters,
                                          T.heritageClauses,
                                          T.members,
                                        )
                                      : ac(T)
                                        ? Td(T, V, T.declarationList)
                                        : Zl(T)
                                          ? ns(
                                              T,
                                              V,
                                              T.asteriskToken,
                                              T.name,
                                              T.typeParameters,
                                              T.parameters,
                                              T.type,
                                              T.body,
                                            )
                                          : Dc(T)
                                            ? Iy(
                                                T,
                                                V,
                                                T.name,
                                                T.typeParameters,
                                                T.heritageClauses,
                                                T.members,
                                              )
                                            : gd(T)
                                              ? H_(
                                                  T,
                                                  V,
                                                  T.name,
                                                  T.typeParameters,
                                                  T.heritageClauses,
                                                  T.members,
                                                )
                                              : vm(T)
                                                ? qd(
                                                    T,
                                                    V,
                                                    T.name,
                                                    T.typeParameters,
                                                    T.type,
                                                  )
                                                : ZT(T)
                                                  ? Jd(T, V, T.name, T.members)
                                                  : uc(T)
                                                    ? Iu(T, V, T.name, T.body)
                                                    : Fc(T)
                                                      ? Av(
                                                          T,
                                                          V,
                                                          T.isTypeOnly,
                                                          T.name,
                                                          T.moduleReference,
                                                        )
                                                      : vl(T)
                                                        ? Qe(
                                                            T,
                                                            V,
                                                            T.importClause,
                                                            T.moduleSpecifier,
                                                            T.attributes,
                                                          )
                                                        : ll(T)
                                                          ? M0(
                                                              T,
                                                              V,
                                                              T.expression,
                                                            )
                                                          : pc(T)
                                                            ? Vr(
                                                                T,
                                                                V,
                                                                T.isTypeOnly,
                                                                T.exportClause,
                                                                T.moduleSpecifier,
                                                                T.attributes,
                                                              )
                                                            : C.assertNever(T)
        );
      }
      function Fg(T, M) {
        return to(T)
          ? lo(
              T,
              M,
              T.dotDotDotToken,
              T.name,
              T.questionToken,
              T.type,
              T.initializer,
            )
          : Po(T)
            ? $e(
                T,
                M,
                T.name,
                T.questionToken ?? T.exclamationToken,
                T.type,
                T.initializer,
              )
            : Nl(T)
              ? ri(
                  T,
                  M,
                  T.asteriskToken,
                  T.name,
                  T.questionToken,
                  T.typeParameters,
                  T.parameters,
                  T.type,
                  T.body,
                )
              : Hf(T)
                ? le(T, M, T.name, T.parameters, T.type, T.body)
                : gp(T)
                  ? Fe(T, M, T.name, T.parameters, T.body)
                  : dc(T)
                    ? V_(
                        T,
                        M,
                        T.name,
                        T.typeParameters,
                        T.heritageClauses,
                        T.members,
                      )
                    : Dc(T)
                      ? Iy(
                          T,
                          M,
                          T.name,
                          T.typeParameters,
                          T.heritageClauses,
                          T.members,
                        )
                      : C.assertNever(T);
      }
      function sT(T, M) {
        switch (T.kind) {
          case 178:
            return le(T, T.modifiers, M, T.parameters, T.type, T.body);
          case 179:
            return Fe(T, T.modifiers, M, T.parameters, T.body);
          case 175:
            return ri(
              T,
              T.modifiers,
              T.asteriskToken,
              M,
              T.questionToken,
              T.typeParameters,
              T.parameters,
              T.type,
              T.body,
            );
          case 174:
            return mn(
              T,
              T.modifiers,
              M,
              T.questionToken,
              T.typeParameters,
              T.parameters,
              T.type,
            );
          case 173:
            return $e(
              T,
              T.modifiers,
              M,
              T.questionToken ?? T.exclamationToken,
              T.type,
              T.initializer,
            );
          case 172:
            return Ni(T, T.modifiers, M, T.questionToken, T.type);
          case 304:
            return gE(T, M, T.initializer);
        }
      }
      function cs(T) {
        return T ? W(T) : void 0;
      }
      function Gc(T) {
        return typeof T == "string" ? ve(T) : T;
      }
      function Ov(T) {
        return typeof T == "string"
          ? ye(T)
          : typeof T == "number"
            ? J(T)
            : typeof T == "boolean"
              ? T
                ? Ge()
                : We()
              : T;
      }
      function pu(T) {
        return T && i().parenthesizeExpressionForDisallowedComma(T);
      }
      function Yx(T) {
        return typeof T == "number" ? ce(T) : T;
      }
      function zg(T) {
        return T && Cie(T) ? vt(r(Rm(), T), T) : T;
      }
      function Y_(T) {
        return typeof T == "string" || (T && !yi(T))
          ? Ay(T, void 0, void 0, void 0)
          : T;
      }
      function br(T, M) {
        return (T !== M && (r(T, M), vt(T, M)), T);
      }
    }
    function lj(e) {
      switch (e) {
        case 345:
          return "type";
        case 343:
          return "returns";
        case 344:
          return "this";
        case 341:
          return "enum";
        case 331:
          return "author";
        case 333:
          return "class";
        case 334:
          return "public";
        case 335:
          return "private";
        case 336:
          return "protected";
        case 337:
          return "readonly";
        case 338:
          return "override";
        case 346:
          return "template";
        case 347:
          return "typedef";
        case 342:
          return "param";
        case 349:
          return "prop";
        case 339:
          return "callback";
        case 340:
          return "overload";
        case 329:
          return "augments";
        case 330:
          return "implements";
        case 352:
          return "import";
        default:
          return C.fail(`Unsupported kind: ${C.formatSyntaxKind(e)}`);
      }
    }
    var sv,
      tSe = {};
    function TVe(e, t) {
      switch ((sv || (sv = cg(99, !1, 0)), e)) {
        case 15:
          sv.setText("`" + t + "`");
          break;
        case 16:
          sv.setText("`" + t + "${");
          break;
        case 17:
          sv.setText("}" + t + "${");
          break;
        case 18:
          sv.setText("}" + t + "`");
          break;
      }
      let r = sv.scan();
      if ((r === 20 && (r = sv.reScanTemplateToken(!1)), sv.isUnterminated()))
        return (sv.setText(void 0), tSe);
      let i;
      switch (r) {
        case 15:
        case 16:
        case 17:
        case 18:
          i = sv.getTokenValue();
          break;
      }
      return i === void 0 || sv.scan() !== 1
        ? (sv.setText(void 0), tSe)
        : (sv.setText(void 0), i);
    }
    function Db(e) {
      return e && He(e) ? lw(e) : Fr(e);
    }
    function lw(e) {
      return Fr(e) & -67108865;
    }
    function SVe(e, t) {
      return t | (e.transformFlags & 134234112);
    }
    function Fr(e) {
      if (!e) return 0;
      const t = e.transformFlags & ~EVe(e.kind);
      return nd(e) && vc(e.name) ? SVe(e.name, t) : t;
    }
    function rs(e) {
      return e ? e.transformFlags : 0;
    }
    function nSe(e) {
      let t = 0;
      for (const r of e) t |= Fr(r);
      e.transformFlags = t;
    }
    function EVe(e) {
      if (e >= 183 && e <= 206) return -2;
      switch (e) {
        case 214:
        case 215:
        case 210:
          return -2147450880;
        case 268:
          return -1941676032;
        case 170:
          return -2147483648;
        case 220:
          return -2072174592;
        case 219:
        case 263:
          return -1937940480;
        case 262:
          return -2146893824;
        case 264:
        case 232:
          return -2147344384;
        case 177:
          return -1937948672;
        case 173:
          return -2013249536;
        case 175:
        case 178:
        case 179:
          return -2005057536;
        case 133:
        case 150:
        case 163:
        case 146:
        case 154:
        case 151:
        case 136:
        case 155:
        case 116:
        case 169:
        case 172:
        case 174:
        case 180:
        case 181:
        case 182:
        case 265:
        case 266:
          return -2;
        case 211:
          return -2147278848;
        case 300:
          return -2147418112;
        case 207:
        case 208:
          return -2147450880;
        case 217:
        case 239:
        case 235:
        case 356:
        case 218:
        case 108:
          return -2147483648;
        case 212:
        case 213:
          return -2147483648;
        default:
          return -2147483648;
      }
    }
    var s4 = Xre();
    function l4(e) {
      return ((e.flags |= 16), e);
    }
    var AVe = {
        createBaseSourceFileNode: (e) => l4(s4.createBaseSourceFileNode(e)),
        createBaseIdentifierNode: (e) => l4(s4.createBaseIdentifierNode(e)),
        createBasePrivateIdentifierNode: (e) =>
          l4(s4.createBasePrivateIdentifierNode(e)),
        createBaseTokenNode: (e) => l4(s4.createBaseTokenNode(e)),
        createBaseNode: (e) => l4(s4.createBaseNode(e)),
      },
      L = sw(4, AVe),
      rSe;
    function iSe(e, t, r) {
      return new (rSe || (rSe = Rd.getSourceMapSourceConstructor()))(e, t, r);
    }
    function jr(e, t) {
      if (e.original !== t && ((e.original = t), t)) {
        const r = t.emitNode;
        r && (e.emitNode = IVe(r, e.emitNode));
      }
      return e;
    }
    function IVe(e, t) {
      const {
        flags: r,
        internalFlags: i,
        leadingComments: o,
        trailingComments: s,
        commentRange: l,
        sourceMapRange: u,
        tokenSourceMapRanges: d,
        constantValue: _,
        helpers: h,
        startsOnNewLine: g,
        snippetElement: E,
        classThis: A,
        assignedName: R,
      } = e;
      if (
        (t || (t = {}),
        r && (t.flags = r),
        i && (t.internalFlags = i & -9),
        o && (t.leadingComments = Xr(o.slice(), t.leadingComments)),
        s && (t.trailingComments = Xr(s.slice(), t.trailingComments)),
        l && (t.commentRange = l),
        u && (t.sourceMapRange = u),
        d && (t.tokenSourceMapRanges = xVe(d, t.tokenSourceMapRanges)),
        _ !== void 0 && (t.constantValue = _),
        h)
      )
        for (const N of h) t.helpers = $g(t.helpers, N);
      return (
        g !== void 0 && (t.startsOnNewLine = g),
        E !== void 0 && (t.snippetElement = E),
        A && (t.classThis = A),
        R && (t.assignedName = R),
        t
      );
    }
    function xVe(e, t) {
      t || (t = []);
      for (const r in e) t[r] = e[r];
      return t;
    }
    function jd(e) {
      if (e.emitNode)
        C.assert(
          !(e.emitNode.internalFlags & 8),
          "Invalid attempt to mutate an immutable node.",
        );
      else {
        if (MN(e)) {
          if (e.kind === 308) return (e.emitNode = { annotatedNodes: [e] });
          const t =
            Wn(jo(Wn(e))) ?? C.fail("Could not determine parsed source file.");
          jd(t).annotatedNodes.push(e);
        }
        e.emitNode = {};
      }
      return e.emitNode;
    }
    function cj(e) {
      var t, r;
      const i =
        (r = (t = Wn(jo(e))) == null ? void 0 : t.emitNode) == null
          ? void 0
          : r.annotatedNodes;
      if (i) for (const o of i) o.emitNode = void 0;
    }
    function cw(e) {
      const t = jd(e);
      return (
        (t.flags |= 3072),
        (t.leadingComments = void 0),
        (t.trailingComments = void 0),
        e
      );
    }
    function Cr(e, t) {
      return ((jd(e).flags = t), e);
    }
    function Qh(e, t) {
      const r = jd(e);
      return ((r.flags = r.flags | t), e);
    }
    function dw(e, t) {
      return ((jd(e).internalFlags = t), e);
    }
    function h1(e, t) {
      const r = jd(e);
      return ((r.internalFlags = r.internalFlags | t), e);
    }
    function lv(e) {
      var t;
      return ((t = e.emitNode) == null ? void 0 : t.sourceMapRange) ?? e;
    }
    function Ua(e, t) {
      return ((jd(e).sourceMapRange = t), e);
    }
    function oSe(e, t) {
      var r, i;
      return (i = (r = e.emitNode) == null ? void 0 : r.tokenSourceMapRanges) ==
        null
        ? void 0
        : i[t];
    }
    function tie(e, t, r) {
      const i = jd(e),
        o = i.tokenSourceMapRanges ?? (i.tokenSourceMapRanges = []);
      return ((o[t] = r), e);
    }
    function wM(e) {
      var t;
      return (t = e.emitNode) == null ? void 0 : t.startsOnNewLine;
    }
    function c4(e, t) {
      return ((jd(e).startsOnNewLine = t), e);
    }
    function Zh(e) {
      var t;
      return ((t = e.emitNode) == null ? void 0 : t.commentRange) ?? e;
    }
    function Rc(e, t) {
      return ((jd(e).commentRange = t), e);
    }
    function gD(e) {
      var t;
      return (t = e.emitNode) == null ? void 0 : t.leadingComments;
    }
    function JT(e, t) {
      return ((jd(e).leadingComments = t), e);
    }
    function Cb(e, t, r, i) {
      return JT(
        e,
        Bn(gD(e), {
          kind: t,
          pos: -1,
          end: -1,
          hasTrailingNewLine: i,
          text: r,
        }),
      );
    }
    function uw(e) {
      var t;
      return (t = e.emitNode) == null ? void 0 : t.trailingComments;
    }
    function FI(e, t) {
      return ((jd(e).trailingComments = t), e);
    }
    function OM(e, t, r, i) {
      return FI(
        e,
        Bn(uw(e), {
          kind: t,
          pos: -1,
          end: -1,
          hasTrailingNewLine: i,
          text: r,
        }),
      );
    }
    function nie(e, t) {
      (JT(e, gD(t)), FI(e, uw(t)));
      const r = jd(t);
      return ((r.leadingComments = void 0), (r.trailingComments = void 0), e);
    }
    function rie(e) {
      var t;
      return (t = e.emitNode) == null ? void 0 : t.constantValue;
    }
    function iie(e, t) {
      const r = jd(e);
      return ((r.constantValue = t), e);
    }
    function zI(e, t) {
      const r = jd(e);
      return ((r.helpers = Bn(r.helpers, t)), e);
    }
    function Ag(e, t) {
      if (yt(t)) {
        const r = jd(e);
        for (const i of t) r.helpers = $g(r.helpers, i);
      }
      return e;
    }
    function aSe(e, t) {
      var r;
      const i = (r = e.emitNode) == null ? void 0 : r.helpers;
      return i ? mN(i, t) : !1;
    }
    function dj(e) {
      var t;
      return (t = e.emitNode) == null ? void 0 : t.helpers;
    }
    function oie(e, t, r) {
      const i = e.emitNode,
        o = i && i.helpers;
      if (!yt(o)) return;
      const s = jd(t);
      let l = 0;
      for (let u = 0; u < o.length; u++) {
        const d = o[u];
        r(d) ? (l++, (s.helpers = $g(s.helpers, d))) : l > 0 && (o[u - l] = d);
      }
      l > 0 && (o.length -= l);
    }
    function uj(e) {
      var t;
      return (t = e.emitNode) == null ? void 0 : t.snippetElement;
    }
    function pj(e, t) {
      const r = jd(e);
      return ((r.snippetElement = t), e);
    }
    function fj(e) {
      return ((jd(e).internalFlags |= 4), e);
    }
    function aie(e, t) {
      const r = jd(e);
      return ((r.typeNode = t), e);
    }
    function sie(e) {
      var t;
      return (t = e.emitNode) == null ? void 0 : t.typeNode;
    }
    function cv(e, t) {
      return ((jd(e).identifierTypeArguments = t), e);
    }
    function _1(e) {
      var t;
      return (t = e.emitNode) == null ? void 0 : t.identifierTypeArguments;
    }
    function pw(e, t) {
      return ((jd(e).autoGenerate = t), e);
    }
    function sSe(e) {
      var t;
      return (t = e.emitNode) == null ? void 0 : t.autoGenerate;
    }
    function lie(e, t) {
      return ((jd(e).generatedImportReference = t), e);
    }
    function cie(e) {
      var t;
      return (t = e.emitNode) == null ? void 0 : t.generatedImportReference;
    }
    var die = ((e) => (
      (e.Field = "f"),
      (e.Method = "m"),
      (e.Accessor = "a"),
      e
    ))(die || {});
    function uie(e) {
      const t = e.factory,
        r = Nu(() => dw(t.createTrue(), 8)),
        i = Nu(() => dw(t.createFalse(), 8));
      return {
        getUnscopedHelperName: o,
        createDecorateHelper: s,
        createMetadataHelper: l,
        createParamHelper: u,
        createESDecorateHelper: N,
        createRunInitializersHelper: P,
        createAssignHelper: k,
        createAwaitHelper: W,
        createAsyncGeneratorHelper: O,
        createAsyncDelegatorHelper: G,
        createAsyncValuesHelper: j,
        createRestHelper: J,
        createAwaiterHelper: Z,
        createExtendsHelper: q,
        createTemplateObjectHelper: ye,
        createSpreadArrayHelper: ie,
        createPropKeyHelper: K,
        createSetFunctionNameHelper: pe,
        createValuesHelper: de,
        createReadHelper: fe,
        createGeneratorHelper: ve,
        createImportStarHelper: xe,
        createImportStarCallbackHelper: X,
        createImportDefaultHelper: Ce,
        createExportStarHelper: Je,
        createClassPrivateFieldGetHelper: Se,
        createClassPrivateFieldSetHelper: re,
        createClassPrivateFieldInHelper: be,
        createAddDisposableResourceHelper: Ne,
        createDisposeResourcesHelper: Be,
        createRewriteRelativeImportExtensionsHelper: lt,
      };
      function o(ce) {
        return Cr(t.createIdentifier(ce), 8196);
      }
      function s(ce, Re, _e, je) {
        e.requestEmitHelper(RVe);
        const Ge = [];
        return (
          Ge.push(t.createArrayLiteralExpression(ce, !0)),
          Ge.push(Re),
          _e && (Ge.push(_e), je && Ge.push(je)),
          t.createCallExpression(o("__decorate"), void 0, Ge)
        );
      }
      function l(ce, Re) {
        return (
          e.requestEmitHelper(DVe),
          t.createCallExpression(o("__metadata"), void 0, [
            t.createStringLiteral(ce),
            Re,
          ])
        );
      }
      function u(ce, Re, _e) {
        return (
          e.requestEmitHelper(CVe),
          vt(
            t.createCallExpression(o("__param"), void 0, [
              t.createNumericLiteral(Re + ""),
              ce,
            ]),
            _e,
          )
        );
      }
      function d(ce) {
        const Re = [
          t.createPropertyAssignment(
            t.createIdentifier("kind"),
            t.createStringLiteral("class"),
          ),
          t.createPropertyAssignment(t.createIdentifier("name"), ce.name),
          t.createPropertyAssignment(
            t.createIdentifier("metadata"),
            ce.metadata,
          ),
        ];
        return t.createObjectLiteralExpression(Re);
      }
      function _(ce) {
        const Re = ce.computed
          ? t.createElementAccessExpression(t.createIdentifier("obj"), ce.name)
          : t.createPropertyAccessExpression(
              t.createIdentifier("obj"),
              ce.name,
            );
        return t.createPropertyAssignment(
          "get",
          t.createArrowFunction(
            void 0,
            void 0,
            [
              t.createParameterDeclaration(
                void 0,
                void 0,
                t.createIdentifier("obj"),
              ),
            ],
            void 0,
            void 0,
            Re,
          ),
        );
      }
      function h(ce) {
        const Re = ce.computed
          ? t.createElementAccessExpression(t.createIdentifier("obj"), ce.name)
          : t.createPropertyAccessExpression(
              t.createIdentifier("obj"),
              ce.name,
            );
        return t.createPropertyAssignment(
          "set",
          t.createArrowFunction(
            void 0,
            void 0,
            [
              t.createParameterDeclaration(
                void 0,
                void 0,
                t.createIdentifier("obj"),
              ),
              t.createParameterDeclaration(
                void 0,
                void 0,
                t.createIdentifier("value"),
              ),
            ],
            void 0,
            void 0,
            t.createBlock([
              t.createExpressionStatement(
                t.createAssignment(Re, t.createIdentifier("value")),
              ),
            ]),
          ),
        );
      }
      function g(ce) {
        const Re = ce.computed
          ? ce.name
          : He(ce.name)
            ? t.createStringLiteralFromNode(ce.name)
            : ce.name;
        return t.createPropertyAssignment(
          "has",
          t.createArrowFunction(
            void 0,
            void 0,
            [
              t.createParameterDeclaration(
                void 0,
                void 0,
                t.createIdentifier("obj"),
              ),
            ],
            void 0,
            void 0,
            t.createBinaryExpression(Re, 103, t.createIdentifier("obj")),
          ),
        );
      }
      function E(ce, Re) {
        const _e = [];
        return (
          _e.push(g(ce)),
          Re.get && _e.push(_(ce)),
          Re.set && _e.push(h(ce)),
          t.createObjectLiteralExpression(_e)
        );
      }
      function A(ce) {
        const Re = [
          t.createPropertyAssignment(
            t.createIdentifier("kind"),
            t.createStringLiteral(ce.kind),
          ),
          t.createPropertyAssignment(
            t.createIdentifier("name"),
            ce.name.computed
              ? ce.name.name
              : t.createStringLiteralFromNode(ce.name.name),
          ),
          t.createPropertyAssignment(
            t.createIdentifier("static"),
            ce.static ? t.createTrue() : t.createFalse(),
          ),
          t.createPropertyAssignment(
            t.createIdentifier("private"),
            ce.private ? t.createTrue() : t.createFalse(),
          ),
          t.createPropertyAssignment(
            t.createIdentifier("access"),
            E(ce.name, ce.access),
          ),
          t.createPropertyAssignment(
            t.createIdentifier("metadata"),
            ce.metadata,
          ),
        ];
        return t.createObjectLiteralExpression(Re);
      }
      function R(ce) {
        return ce.kind === "class" ? d(ce) : A(ce);
      }
      function N(ce, Re, _e, je, Ge, We) {
        return (
          e.requestEmitHelper(NVe),
          t.createCallExpression(o("__esDecorate"), void 0, [
            ce ?? t.createNull(),
            Re ?? t.createNull(),
            _e,
            R(je),
            Ge,
            We,
          ])
        );
      }
      function P(ce, Re, _e) {
        return (
          e.requestEmitHelper(MVe),
          t.createCallExpression(
            o("__runInitializers"),
            void 0,
            _e ? [ce, Re, _e] : [ce, Re],
          )
        );
      }
      function k(ce) {
        return Ga(e.getCompilerOptions()) >= 2
          ? t.createCallExpression(
              t.createPropertyAccessExpression(
                t.createIdentifier("Object"),
                "assign",
              ),
              void 0,
              ce,
            )
          : (e.requestEmitHelper(PVe),
            t.createCallExpression(o("__assign"), void 0, ce));
      }
      function W(ce) {
        return (
          e.requestEmitHelper(d4),
          t.createCallExpression(o("__await"), void 0, [ce])
        );
      }
      function O(ce, Re) {
        return (
          e.requestEmitHelper(d4),
          e.requestEmitHelper(LVe),
          ((ce.emitNode || (ce.emitNode = {})).flags |= 1572864),
          t.createCallExpression(o("__asyncGenerator"), void 0, [
            Re ? t.createThis() : t.createVoidZero(),
            t.createIdentifier("arguments"),
            ce,
          ])
        );
      }
      function G(ce) {
        return (
          e.requestEmitHelper(d4),
          e.requestEmitHelper(kVe),
          t.createCallExpression(o("__asyncDelegator"), void 0, [ce])
        );
      }
      function j(ce) {
        return (
          e.requestEmitHelper(wVe),
          t.createCallExpression(o("__asyncValues"), void 0, [ce])
        );
      }
      function J(ce, Re, _e, je) {
        e.requestEmitHelper(OVe);
        const Ge = [];
        let We = 0;
        for (let at = 0; at < Re.length - 1; at++) {
          const Wt = Gj(Re[at]);
          if (Wt)
            if (va(Wt)) {
              C.assertIsDefined(
                _e,
                "Encountered computed property name but 'computedTempVariables' argument was not provided.",
              );
              const cn = _e[We];
              (We++,
                Ge.push(
                  t.createConditionalExpression(
                    t.createTypeCheck(cn, "symbol"),
                    void 0,
                    cn,
                    void 0,
                    t.createAdd(cn, t.createStringLiteral("")),
                  ),
                ));
            } else Ge.push(t.createStringLiteralFromNode(Wt));
        }
        return t.createCallExpression(o("__rest"), void 0, [
          ce,
          vt(t.createArrayLiteralExpression(Ge), je),
        ]);
      }
      function Z(ce, Re, _e, je, Ge) {
        e.requestEmitHelper(WVe);
        const We = t.createFunctionExpression(
          void 0,
          t.createToken(42),
          void 0,
          void 0,
          je ?? [],
          void 0,
          Ge,
        );
        return (
          ((We.emitNode || (We.emitNode = {})).flags |= 1572864),
          t.createCallExpression(o("__awaiter"), void 0, [
            ce ? t.createThis() : t.createVoidZero(),
            Re ?? t.createVoidZero(),
            _e ? Tw(t, _e) : t.createVoidZero(),
            We,
          ])
        );
      }
      function q(ce) {
        return (
          e.requestEmitHelper(FVe),
          t.createCallExpression(o("__extends"), void 0, [
            ce,
            t.createUniqueName("_super", 48),
          ])
        );
      }
      function ye(ce, Re) {
        return (
          e.requestEmitHelper(zVe),
          t.createCallExpression(o("__makeTemplateObject"), void 0, [ce, Re])
        );
      }
      function ie(ce, Re, _e) {
        return (
          e.requestEmitHelper(GVe),
          t.createCallExpression(o("__spreadArray"), void 0, [
            ce,
            Re,
            _e ? r() : i(),
          ])
        );
      }
      function K(ce) {
        return (
          e.requestEmitHelper(VVe),
          t.createCallExpression(o("__propKey"), void 0, [ce])
        );
      }
      function pe(ce, Re, _e) {
        return (
          e.requestEmitHelper(jVe),
          e.factory.createCallExpression(
            o("__setFunctionName"),
            void 0,
            _e ? [ce, Re, e.factory.createStringLiteral(_e)] : [ce, Re],
          )
        );
      }
      function de(ce) {
        return (
          e.requestEmitHelper(UVe),
          t.createCallExpression(o("__values"), void 0, [ce])
        );
      }
      function fe(ce, Re) {
        return (
          e.requestEmitHelper(BVe),
          t.createCallExpression(
            o("__read"),
            void 0,
            Re !== void 0 ? [ce, t.createNumericLiteral(Re + "")] : [ce],
          )
        );
      }
      function ve(ce) {
        return (
          e.requestEmitHelper(HVe),
          t.createCallExpression(o("__generator"), void 0, [t.createThis(), ce])
        );
      }
      function xe(ce) {
        return (
          e.requestEmitHelper(cSe),
          t.createCallExpression(o("__importStar"), void 0, [ce])
        );
      }
      function X() {
        return (e.requestEmitHelper(cSe), o("__importStar"));
      }
      function Ce(ce) {
        return (
          e.requestEmitHelper(JVe),
          t.createCallExpression(o("__importDefault"), void 0, [ce])
        );
      }
      function Je(ce, Re = t.createIdentifier("exports")) {
        return (
          e.requestEmitHelper(KVe),
          e.requestEmitHelper(fie),
          t.createCallExpression(o("__exportStar"), void 0, [ce, Re])
        );
      }
      function Se(ce, Re, _e, je) {
        e.requestEmitHelper(XVe);
        let Ge;
        return (
          je
            ? (Ge = [ce, Re, t.createStringLiteral(_e), je])
            : (Ge = [ce, Re, t.createStringLiteral(_e)]),
          t.createCallExpression(o("__classPrivateFieldGet"), void 0, Ge)
        );
      }
      function re(ce, Re, _e, je, Ge) {
        e.requestEmitHelper(YVe);
        let We;
        return (
          Ge
            ? (We = [ce, Re, _e, t.createStringLiteral(je), Ge])
            : (We = [ce, Re, _e, t.createStringLiteral(je)]),
          t.createCallExpression(o("__classPrivateFieldSet"), void 0, We)
        );
      }
      function be(ce, Re) {
        return (
          e.requestEmitHelper($Ve),
          t.createCallExpression(o("__classPrivateFieldIn"), void 0, [ce, Re])
        );
      }
      function Ne(ce, Re, _e) {
        return (
          e.requestEmitHelper(QVe),
          t.createCallExpression(o("__addDisposableResource"), void 0, [
            ce,
            Re,
            _e ? t.createTrue() : t.createFalse(),
          ])
        );
      }
      function Be(ce) {
        return (
          e.requestEmitHelper(ZVe),
          t.createCallExpression(o("__disposeResources"), void 0, [ce])
        );
      }
      function lt(ce) {
        return (
          e.requestEmitHelper(eje),
          t.createCallExpression(
            o("__rewriteRelativeImportExtension"),
            void 0,
            e.getCompilerOptions().jsx === 1 ? [ce, t.createTrue()] : [ce],
          )
        );
      }
    }
    function pie(e, t) {
      return e === t || e.priority === t.priority
        ? 0
        : e.priority === void 0
          ? 1
          : t.priority === void 0
            ? -1
            : js(e.priority, t.priority);
    }
    function lSe(e, ...t) {
      return (r) => {
        let i = "";
        for (let o = 0; o < t.length; o++) ((i += e[o]), (i += r(t[o])));
        return ((i += e[e.length - 1]), i);
      };
    }
    var RVe = {
        name: "typescript:decorate",
        importName: "__decorate",
        scoped: !1,
        priority: 2,
        text: `
            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
                return c > 3 && r && Object.defineProperty(target, key, r), r;
            };`,
      },
      DVe = {
        name: "typescript:metadata",
        importName: "__metadata",
        scoped: !1,
        priority: 3,
        text: `
            var __metadata = (this && this.__metadata) || function (k, v) {
                if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
            };`,
      },
      CVe = {
        name: "typescript:param",
        importName: "__param",
        scoped: !1,
        priority: 4,
        text: `
            var __param = (this && this.__param) || function (paramIndex, decorator) {
                return function (target, key) { decorator(target, key, paramIndex); }
            };`,
      },
      NVe = {
        name: "typescript:esDecorate",
        importName: "__esDecorate",
        scoped: !1,
        priority: 2,
        text: `
        var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
            function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
            var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
            var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
            var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
            var _, done = false;
            for (var i = decorators.length - 1; i >= 0; i--) {
                var context = {};
                for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
                for (var p in contextIn.access) context.access[p] = contextIn.access[p];
                context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
                var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
                if (kind === "accessor") {
                    if (result === void 0) continue;
                    if (result === null || typeof result !== "object") throw new TypeError("Object expected");
                    if (_ = accept(result.get)) descriptor.get = _;
                    if (_ = accept(result.set)) descriptor.set = _;
                    if (_ = accept(result.init)) initializers.unshift(_);
                }
                else if (_ = accept(result)) {
                    if (kind === "field") initializers.unshift(_);
                    else descriptor[key] = _;
                }
            }
            if (target) Object.defineProperty(target, contextIn.name, descriptor);
            done = true;
        };`,
      },
      MVe = {
        name: "typescript:runInitializers",
        importName: "__runInitializers",
        scoped: !1,
        priority: 2,
        text: `
        var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
            var useValue = arguments.length > 2;
            for (var i = 0; i < initializers.length; i++) {
                value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
            }
            return useValue ? value : void 0;
        };`,
      },
      PVe = {
        name: "typescript:assign",
        importName: "__assign",
        scoped: !1,
        priority: 1,
        text: `
            var __assign = (this && this.__assign) || function () {
                __assign = Object.assign || function(t) {
                    for (var s, i = 1, n = arguments.length; i < n; i++) {
                        s = arguments[i];
                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                            t[p] = s[p];
                    }
                    return t;
                };
                return __assign.apply(this, arguments);
            };`,
      },
      d4 = {
        name: "typescript:await",
        importName: "__await",
        scoped: !1,
        text: `
            var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`,
      },
      LVe = {
        name: "typescript:asyncGenerator",
        importName: "__asyncGenerator",
        scoped: !1,
        dependencies: [d4],
        text: `
        var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
            if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
            var g = generator.apply(thisArg, _arguments || []), i, q = [];
            return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
            function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
            function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
            function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
            function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
            function fulfill(value) { resume("next", value); }
            function reject(value) { resume("throw", value); }
            function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
        };`,
      },
      kVe = {
        name: "typescript:asyncDelegator",
        importName: "__asyncDelegator",
        scoped: !1,
        dependencies: [d4],
        text: `
            var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
                var i, p;
                return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
                function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
            };`,
      },
      wVe = {
        name: "typescript:asyncValues",
        importName: "__asyncValues",
        scoped: !1,
        text: `
            var __asyncValues = (this && this.__asyncValues) || function (o) {
                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
                var m = o[Symbol.asyncIterator], i;
                return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
                function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
                function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
            };`,
      },
      OVe = {
        name: "typescript:rest",
        importName: "__rest",
        scoped: !1,
        text: `
            var __rest = (this && this.__rest) || function (s, e) {
                var t = {};
                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
                    t[p] = s[p];
                if (s != null && typeof Object.getOwnPropertySymbols === "function")
                    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
                        if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                            t[p[i]] = s[p[i]];
                    }
                return t;
            };`,
      },
      WVe = {
        name: "typescript:awaiter",
        importName: "__awaiter",
        scoped: !1,
        priority: 5,
        text: `
            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
                function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
                return new (P || (P = Promise))(function (resolve, reject) {
                    function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
                    function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
                    function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
                    step((generator = generator.apply(thisArg, _arguments || [])).next());
                });
            };`,
      },
      FVe = {
        name: "typescript:extends",
        importName: "__extends",
        scoped: !1,
        priority: 0,
        text: `
            var __extends = (this && this.__extends) || (function () {
                var extendStatics = function (d, b) {
                    extendStatics = Object.setPrototypeOf ||
                        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
                    return extendStatics(d, b);
                };

                return function (d, b) {
                    if (typeof b !== "function" && b !== null)
                        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
                    extendStatics(d, b);
                    function __() { this.constructor = d; }
                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
                };
            })();`,
      },
      zVe = {
        name: "typescript:makeTemplateObject",
        importName: "__makeTemplateObject",
        scoped: !1,
        priority: 0,
        text: `
            var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
                if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
                return cooked;
            };`,
      },
      BVe = {
        name: "typescript:read",
        importName: "__read",
        scoped: !1,
        text: `
            var __read = (this && this.__read) || function (o, n) {
                var m = typeof Symbol === "function" && o[Symbol.iterator];
                if (!m) return o;
                var i = m.call(o), r, ar = [], e;
                try {
                    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
                }
                catch (error) { e = { error: error }; }
                finally {
                    try {
                        if (r && !r.done && (m = i["return"])) m.call(i);
                    }
                    finally { if (e) throw e.error; }
                }
                return ar;
            };`,
      },
      GVe = {
        name: "typescript:spreadArray",
        importName: "__spreadArray",
        scoped: !1,
        text: `
            var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
                if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
                    if (ar || !(i in from)) {
                        if (!ar) ar = Array.prototype.slice.call(from, 0, i);
                        ar[i] = from[i];
                    }
                }
                return to.concat(ar || Array.prototype.slice.call(from));
            };`,
      },
      VVe = {
        name: "typescript:propKey",
        importName: "__propKey",
        scoped: !1,
        text: `
        var __propKey = (this && this.__propKey) || function (x) {
            return typeof x === "symbol" ? x : "".concat(x);
        };`,
      },
      jVe = {
        name: "typescript:setFunctionName",
        importName: "__setFunctionName",
        scoped: !1,
        text: `
        var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
            if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
            return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
        };`,
      },
      UVe = {
        name: "typescript:values",
        importName: "__values",
        scoped: !1,
        text: `
            var __values = (this && this.__values) || function(o) {
                var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
                if (m) return m.call(o);
                if (o && typeof o.length === "number") return {
                    next: function () {
                        if (o && i >= o.length) o = void 0;
                        return { value: o && o[i++], done: !o };
                    }
                };
                throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
            };`,
      },
      HVe = {
        name: "typescript:generator",
        importName: "__generator",
        scoped: !1,
        priority: 6,
        text: `
            var __generator = (this && this.__generator) || function (thisArg, body) {
                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
                return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
                function verb(n) { return function (v) { return step([n, v]); }; }
                function step(op) {
                    if (f) throw new TypeError("Generator is already executing.");
                    while (g && (g = 0, op[0] && (_ = 0)), _) try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
                        if (y = 0, t) op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0: case 1: t = op; break;
                            case 4: _.label++; return { value: op[1], done: false };
                            case 5: _.label++; y = op[1]; op = [0]; continue;
                            case 7: op = _.ops.pop(); _.trys.pop(); continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                                if (t[2]) _.ops.pop();
                                _.trys.pop(); continue;
                        }
                        op = body.call(thisArg, _);
                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
                }
            };`,
      },
      fie = {
        name: "typescript:commonjscreatebinding",
        importName: "__createBinding",
        scoped: !1,
        priority: 1,
        text: `
            var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
                if (k2 === undefined) k2 = k;
                var desc = Object.getOwnPropertyDescriptor(m, k);
                if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                  desc = { enumerable: true, get: function() { return m[k]; } };
                }
                Object.defineProperty(o, k2, desc);
            }) : (function(o, m, k, k2) {
                if (k2 === undefined) k2 = k;
                o[k2] = m[k];
            }));`,
      },
      qVe = {
        name: "typescript:commonjscreatevalue",
        importName: "__setModuleDefault",
        scoped: !1,
        priority: 1,
        text: `
            var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
                Object.defineProperty(o, "default", { enumerable: true, value: v });
            }) : function(o, v) {
                o["default"] = v;
            });`,
      },
      cSe = {
        name: "typescript:commonjsimportstar",
        importName: "__importStar",
        scoped: !1,
        dependencies: [fie, qVe],
        priority: 2,
        text: `
            var __importStar = (this && this.__importStar) || (function () {
                var ownKeys = function(o) {
                    ownKeys = Object.getOwnPropertyNames || function (o) {
                        var ar = [];
                        for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
                        return ar;
                    };
                    return ownKeys(o);
                };
                return function (mod) {
                    if (mod && mod.__esModule) return mod;
                    var result = {};
                    if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
                    __setModuleDefault(result, mod);
                    return result;
                };
            })();`,
      },
      JVe = {
        name: "typescript:commonjsimportdefault",
        importName: "__importDefault",
        scoped: !1,
        text: `
            var __importDefault = (this && this.__importDefault) || function (mod) {
                return (mod && mod.__esModule) ? mod : { "default": mod };
            };`,
      },
      KVe = {
        name: "typescript:export-star",
        importName: "__exportStar",
        scoped: !1,
        dependencies: [fie],
        priority: 2,
        text: `
            var __exportStar = (this && this.__exportStar) || function(m, exports) {
                for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
            };`,
      },
      XVe = {
        name: "typescript:classPrivateFieldGet",
        importName: "__classPrivateFieldGet",
        scoped: !1,
        text: `
            var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
                return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
            };`,
      },
      YVe = {
        name: "typescript:classPrivateFieldSet",
        importName: "__classPrivateFieldSet",
        scoped: !1,
        text: `
            var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
                if (kind === "m") throw new TypeError("Private method is not writable");
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
                return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
            };`,
      },
      $Ve = {
        name: "typescript:classPrivateFieldIn",
        importName: "__classPrivateFieldIn",
        scoped: !1,
        text: `
            var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
                if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
                return typeof state === "function" ? receiver === state : state.has(receiver);
            };`,
      },
      QVe = {
        name: "typescript:addDisposableResource",
        importName: "__addDisposableResource",
        scoped: !1,
        text: `
        var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
            if (value !== null && value !== void 0) {
                if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
                var dispose, inner;
                if (async) {
                    if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
                    dispose = value[Symbol.asyncDispose];
                }
                if (dispose === void 0) {
                    if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
                    dispose = value[Symbol.dispose];
                    if (async) inner = dispose;
                }
                if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
                if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
                env.stack.push({ value: value, dispose: dispose, async: async });
            }
            else if (async) {
                env.stack.push({ async: true });
            }
            return value;
        };`,
      },
      ZVe = {
        name: "typescript:disposeResources",
        importName: "__disposeResources",
        scoped: !1,
        text: `
        var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
            return function (env) {
                function fail(e) {
                    env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
                    env.hasError = true;
                }
                var r, s = 0;
                function next() {
                    while (r = env.stack.pop()) {
                        try {
                            if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
                            if (r.dispose) {
                                var result = r.dispose.call(r.value);
                                if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
                            }
                            else s |= 1;
                        }
                        catch (e) {
                            fail(e);
                        }
                    }
                    if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
                    if (env.hasError) throw env.error;
                }
                return next();
            };
        })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
            var e = new Error(message);
            return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
        });`,
      },
      eje = {
        name: "typescript:rewriteRelativeImportExtensions",
        importName: "__rewriteRelativeImportExtension",
        scoped: !1,
        text: `
        var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
            if (typeof path === "string" && /^\\.\\.?\\//.test(path)) {
                return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
                    return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
                });
            }
            return path;
        };`,
      },
      u4 = {
        name: "typescript:async-super",
        scoped: !0,
        text: lSe`
            const ${"_superIndex"} = name => super[name];`,
      },
      p4 = {
        name: "typescript:advanced-async-super",
        scoped: !0,
        text: lSe`
            const ${"_superIndex"} = (function (geti, seti) {
                const cache = Object.create(null);
                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
            })(name => super[name], (name, value) => super[name] = value);`,
      };
    function WM(e, t) {
      return (
        Zo(e) &&
        He(e.expression) &&
        (Qa(e.expression) & 8192) !== 0 &&
        e.expression.escapedText === t
      );
    }
    function np(e) {
      return e.kind === 9;
    }
    function yD(e) {
      return e.kind === 10;
    }
    function ka(e) {
      return e.kind === 11;
    }
    function BI(e) {
      return e.kind === 12;
    }
    function mj(e) {
      return e.kind === 14;
    }
    function g1(e) {
      return e.kind === 15;
    }
    function GI(e) {
      return e.kind === 16;
    }
    function hj(e) {
      return e.kind === 17;
    }
    function f4(e) {
      return e.kind === 18;
    }
    function m4(e) {
      return e.kind === 26;
    }
    function mie(e) {
      return e.kind === 28;
    }
    function _j(e) {
      return e.kind === 40;
    }
    function gj(e) {
      return e.kind === 41;
    }
    function fw(e) {
      return e.kind === 42;
    }
    function mw(e) {
      return e.kind === 54;
    }
    function Nb(e) {
      return e.kind === 58;
    }
    function hie(e) {
      return e.kind === 59;
    }
    function h4(e) {
      return e.kind === 29;
    }
    function _ie(e) {
      return e.kind === 39;
    }
    function He(e) {
      return e.kind === 80;
    }
    function eo(e) {
      return e.kind === 81;
    }
    function VI(e) {
      return e.kind === 95;
    }
    function _4(e) {
      return e.kind === 90;
    }
    function FM(e) {
      return e.kind === 134;
    }
    function gie(e) {
      return e.kind === 131;
    }
    function yj(e) {
      return e.kind === 135;
    }
    function yie(e) {
      return e.kind === 148;
    }
    function jI(e) {
      return e.kind === 126;
    }
    function vie(e) {
      return e.kind === 128;
    }
    function bie(e) {
      return e.kind === 164;
    }
    function vj(e) {
      return e.kind === 129;
    }
    function zM(e) {
      return e.kind === 108;
    }
    function BM(e) {
      return e.kind === 102;
    }
    function Tie(e) {
      return e.kind === 84;
    }
    function ku(e) {
      return e.kind === 167;
    }
    function va(e) {
      return e.kind === 168;
    }
    function sl(e) {
      return e.kind === 169;
    }
    function to(e) {
      return e.kind === 170;
    }
    function Wc(e) {
      return e.kind === 171;
    }
    function Su(e) {
      return e.kind === 172;
    }
    function Po(e) {
      return e.kind === 173;
    }
    function Gm(e) {
      return e.kind === 174;
    }
    function Nl(e) {
      return e.kind === 175;
    }
    function Ql(e) {
      return e.kind === 176;
    }
    function Ml(e) {
      return e.kind === 177;
    }
    function Hf(e) {
      return e.kind === 178;
    }
    function gp(e) {
      return e.kind === 179;
    }
    function UI(e) {
      return e.kind === 180;
    }
    function GM(e) {
      return e.kind === 181;
    }
    function Mb(e) {
      return e.kind === 182;
    }
    function HI(e) {
      return e.kind === 183;
    }
    function Wp(e) {
      return e.kind === 184;
    }
    function w_(e) {
      return e.kind === 185;
    }
    function vD(e) {
      return e.kind === 186;
    }
    function FS(e) {
      return e.kind === 187;
    }
    function wu(e) {
      return e.kind === 188;
    }
    function hw(e) {
      return e.kind === 189;
    }
    function qI(e) {
      return e.kind === 190;
    }
    function bD(e) {
      return e.kind === 203;
    }
    function g4(e) {
      return e.kind === 191;
    }
    function y4(e) {
      return e.kind === 192;
    }
    function dv(e) {
      return e.kind === 193;
    }
    function JI(e) {
      return e.kind === 194;
    }
    function zS(e) {
      return e.kind === 195;
    }
    function y1(e) {
      return e.kind === 196;
    }
    function v1(e) {
      return e.kind === 197;
    }
    function VM(e) {
      return e.kind === 198;
    }
    function KT(e) {
      return e.kind === 199;
    }
    function BS(e) {
      return e.kind === 200;
    }
    function b1(e) {
      return e.kind === 201;
    }
    function uv(e) {
      return e.kind === 202;
    }
    function e_(e) {
      return e.kind === 206;
    }
    function bj(e) {
      return e.kind === 205;
    }
    function Sie(e) {
      return e.kind === 204;
    }
    function ff(e) {
      return e.kind === 207;
    }
    function pv(e) {
      return e.kind === 208;
    }
    function Ha(e) {
      return e.kind === 209;
    }
    function Cd(e) {
      return e.kind === 210;
    }
    function Wa(e) {
      return e.kind === 211;
    }
    function qr(e) {
      return e.kind === 212;
    }
    function Ws(e) {
      return e.kind === 213;
    }
    function Zo(e) {
      return e.kind === 214;
    }
    function GS(e) {
      return e.kind === 215;
    }
    function XT(e) {
      return e.kind === 216;
    }
    function v4(e) {
      return e.kind === 217;
    }
    function Ou(e) {
      return e.kind === 218;
    }
    function Us(e) {
      return e.kind === 219;
    }
    function Xs(e) {
      return e.kind === 220;
    }
    function Eie(e) {
      return e.kind === 221;
    }
    function TD(e) {
      return e.kind === 222;
    }
    function KI(e) {
      return e.kind === 223;
    }
    function Pb(e) {
      return e.kind === 224;
    }
    function YT(e) {
      return e.kind === 225;
    }
    function Tj(e) {
      return e.kind === 226;
    }
    function Nr(e) {
      return e.kind === 227;
    }
    function T1(e) {
      return e.kind === 228;
    }
    function b4(e) {
      return e.kind === 229;
    }
    function _w(e) {
      return e.kind === 230;
    }
    function qf(e) {
      return e.kind === 231;
    }
    function dc(e) {
      return e.kind === 232;
    }
    function Jc(e) {
      return e.kind === 233;
    }
    function dy(e) {
      return e.kind === 234;
    }
    function SD(e) {
      return e.kind === 235;
    }
    function ED(e) {
      return e.kind === 239;
    }
    function XI(e) {
      return e.kind === 236;
    }
    function S1(e) {
      return e.kind === 237;
    }
    function dSe(e) {
      return e.kind === 238;
    }
    function Aie(e) {
      return e.kind === 356;
    }
    function jM(e) {
      return e.kind === 357;
    }
    function AD(e) {
      return e.kind === 240;
    }
    function Iie(e) {
      return e.kind === 241;
    }
    function ea(e) {
      return e.kind === 242;
    }
    function ac(e) {
      return e.kind === 244;
    }
    function Sj(e) {
      return e.kind === 243;
    }
    function od(e) {
      return e.kind === 245;
    }
    function $T(e) {
      return e.kind === 246;
    }
    function uSe(e) {
      return e.kind === 247;
    }
    function Ej(e) {
      return e.kind === 248;
    }
    function QT(e) {
      return e.kind === 249;
    }
    function T4(e) {
      return e.kind === 250;
    }
    function gw(e) {
      return e.kind === 251;
    }
    function pSe(e) {
      return e.kind === 252;
    }
    function fSe(e) {
      return e.kind === 253;
    }
    function tf(e) {
      return e.kind === 254;
    }
    function xie(e) {
      return e.kind === 255;
    }
    function UM(e) {
      return e.kind === 256;
    }
    function Lb(e) {
      return e.kind === 257;
    }
    function Aj(e) {
      return e.kind === 258;
    }
    function E1(e) {
      return e.kind === 259;
    }
    function mSe(e) {
      return e.kind === 260;
    }
    function yi(e) {
      return e.kind === 261;
    }
    function _d(e) {
      return e.kind === 262;
    }
    function Zl(e) {
      return e.kind === 263;
    }
    function Dc(e) {
      return e.kind === 264;
    }
    function gd(e) {
      return e.kind === 265;
    }
    function vm(e) {
      return e.kind === 266;
    }
    function ZT(e) {
      return e.kind === 267;
    }
    function uc(e) {
      return e.kind === 268;
    }
    function t_(e) {
      return e.kind === 269;
    }
    function HM(e) {
      return e.kind === 270;
    }
    function yw(e) {
      return e.kind === 271;
    }
    function Fc(e) {
      return e.kind === 272;
    }
    function vl(e) {
      return e.kind === 273;
    }
    function Vm(e) {
      return e.kind === 274;
    }
    function hSe(e) {
      return e.kind === 303;
    }
    function Rie(e) {
      return e.kind === 301;
    }
    function _Se(e) {
      return e.kind === 302;
    }
    function A1(e) {
      return e.kind === 301;
    }
    function Die(e) {
      return e.kind === 302;
    }
    function Ig(e) {
      return e.kind === 275;
    }
    function O_(e) {
      return e.kind === 281;
    }
    function n_(e) {
      return e.kind === 276;
    }
    function Eu(e) {
      return e.kind === 277;
    }
    function ll(e) {
      return e.kind === 278;
    }
    function pc(e) {
      return e.kind === 279;
    }
    function Jf(e) {
      return e.kind === 280;
    }
    function ou(e) {
      return e.kind === 282;
    }
    function S4(e) {
      return e.kind === 80 || e.kind === 11;
    }
    function gSe(e) {
      return e.kind === 283;
    }
    function Cie(e) {
      return e.kind === 354;
    }
    function YI(e) {
      return e.kind === 358;
    }
    function uy(e) {
      return e.kind === 284;
    }
    function r_(e) {
      return e.kind === 285;
    }
    function I1(e) {
      return e.kind === 286;
    }
    function ph(e) {
      return e.kind === 287;
    }
    function VS(e) {
      return e.kind === 288;
    }
    function e0(e) {
      return e.kind === 289;
    }
    function jm(e) {
      return e.kind === 290;
    }
    function Nie(e) {
      return e.kind === 291;
    }
    function i_(e) {
      return e.kind === 292;
    }
    function jS(e) {
      return e.kind === 293;
    }
    function $I(e) {
      return e.kind === 294;
    }
    function ID(e) {
      return e.kind === 295;
    }
    function fh(e) {
      return e.kind === 296;
    }
    function xD(e) {
      return e.kind === 297;
    }
    function qM(e) {
      return e.kind === 298;
    }
    function Fp(e) {
      return e.kind === 299;
    }
    function US(e) {
      return e.kind === 300;
    }
    function Cc(e) {
      return e.kind === 304;
    }
    function Ud(e) {
      return e.kind === 305;
    }
    function xg(e) {
      return e.kind === 306;
    }
    function py(e) {
      return e.kind === 307;
    }
    function Yi(e) {
      return e.kind === 308;
    }
    function Mie(e) {
      return e.kind === 309;
    }
    function t0(e) {
      return e.kind === 310;
    }
    function JM(e) {
      return e.kind === 311;
    }
    function n0(e) {
      return e.kind === 312;
    }
    function Pie(e) {
      return e.kind === 325;
    }
    function Lie(e) {
      return e.kind === 326;
    }
    function ySe(e) {
      return e.kind === 327;
    }
    function kie(e) {
      return e.kind === 313;
    }
    function wie(e) {
      return e.kind === 314;
    }
    function RD(e) {
      return e.kind === 315;
    }
    function E4(e) {
      return e.kind === 316;
    }
    function Ij(e) {
      return e.kind === 317;
    }
    function DD(e) {
      return e.kind === 318;
    }
    function A4(e) {
      return e.kind === 319;
    }
    function vSe(e) {
      return e.kind === 320;
    }
    function mh(e) {
      return e.kind === 321;
    }
    function x1(e) {
      return e.kind === 323;
    }
    function fv(e) {
      return e.kind === 324;
    }
    function QI(e) {
      return e.kind === 329;
    }
    function bSe(e) {
      return e.kind === 331;
    }
    function Oie(e) {
      return e.kind === 333;
    }
    function xj(e) {
      return e.kind === 339;
    }
    function Rj(e) {
      return e.kind === 334;
    }
    function Dj(e) {
      return e.kind === 335;
    }
    function Cj(e) {
      return e.kind === 336;
    }
    function Nj(e) {
      return e.kind === 337;
    }
    function I4(e) {
      return e.kind === 338;
    }
    function CD(e) {
      return e.kind === 340;
    }
    function Mj(e) {
      return e.kind === 332;
    }
    function TSe(e) {
      return e.kind === 348;
    }
    function vw(e) {
      return e.kind === 341;
    }
    function mf(e) {
      return e.kind === 342;
    }
    function x4(e) {
      return e.kind === 343;
    }
    function Pj(e) {
      return e.kind === 344;
    }
    function KM(e) {
      return e.kind === 345;
    }
    function bm(e) {
      return e.kind === 346;
    }
    function R1(e) {
      return e.kind === 347;
    }
    function SSe(e) {
      return e.kind === 328;
    }
    function Wie(e) {
      return e.kind === 349;
    }
    function R4(e) {
      return e.kind === 330;
    }
    function D4(e) {
      return e.kind === 351;
    }
    function ESe(e) {
      return e.kind === 350;
    }
    function o_(e) {
      return e.kind === 352;
    }
    function ND(e) {
      return e.kind === 353;
    }
    var XM = new WeakMap();
    function Lj(e, t) {
      var r;
      const i = e.kind;
      return gF(i)
        ? i === 353
          ? e._children
          : (r = XM.get(t)) == null
            ? void 0
            : r.get(e)
        : ae;
    }
    function Fie(e, t, r) {
      e.kind === 353 &&
        C.fail("Should not need to re-set the children of a SyntaxList.");
      let i = XM.get(t);
      return (
        i === void 0 && ((i = new WeakMap()), XM.set(t, i)),
        i.set(e, r),
        r
      );
    }
    function kj(e, t) {
      var r;
      (e.kind === 353 &&
        C.fail("Did not expect to unset the children of a SyntaxList."),
        (r = XM.get(t)) == null || r.delete(e));
    }
    function zie(e, t) {
      const r = XM.get(e);
      r !== void 0 && (XM.delete(e), XM.set(t, r));
    }
    function bw(e) {
      return e.createExportDeclaration(
        void 0,
        !1,
        e.createNamedExports([]),
        void 0,
      );
    }
    function D1(e, t, r, i) {
      if (va(r)) return vt(e.createElementAccessExpression(t, r.expression), i);
      {
        const o = vt(
          dg(r)
            ? e.createPropertyAccessExpression(t, r)
            : e.createElementAccessExpression(t, r),
          r,
        );
        return (Qh(o, 128), o);
      }
    }
    function Bie(e, t) {
      const r = i0.createIdentifier(e || "React");
      return (ps(r, jo(t)), r);
    }
    function Gie(e, t, r) {
      if (ku(t)) {
        const i = Gie(e, t.left, r),
          o = e.createIdentifier(Kr(t.right));
        return (
          (o.escapedText = t.right.escapedText),
          e.createPropertyAccessExpression(i, o)
        );
      } else return Bie(Kr(t), r);
    }
    function wj(e, t, r, i) {
      return t
        ? Gie(e, t, i)
        : e.createPropertyAccessExpression(Bie(r, i), "createElement");
    }
    function tje(e, t, r, i) {
      return t
        ? Gie(e, t, i)
        : e.createPropertyAccessExpression(Bie(r, i), "Fragment");
    }
    function Vie(e, t, r, i, o, s) {
      const l = [r];
      if ((i && l.push(i), o && o.length > 0))
        if ((i || l.push(e.createNull()), o.length > 1))
          for (const u of o) (au(u), l.push(u));
        else l.push(o[0]);
      return vt(e.createCallExpression(t, void 0, l), s);
    }
    function jie(e, t, r, i, o, s, l) {
      const d = [tje(e, r, i, s), e.createNull()];
      if (o && o.length > 0)
        if (o.length > 1) for (const _ of o) (au(_), d.push(_));
        else d.push(o[0]);
      return vt(e.createCallExpression(wj(e, t, i, s), void 0, d), l);
    }
    function Oj(e, t, r) {
      if (_d(t)) {
        const i = $a(t.declarations),
          o = e.updateVariableDeclaration(i, i.name, void 0, void 0, r);
        return vt(
          e.createVariableStatement(
            void 0,
            e.updateVariableDeclarationList(t, [o]),
          ),
          t,
        );
      } else {
        const i = vt(e.createAssignment(t, r), t);
        return vt(e.createExpressionStatement(i), t);
      }
    }
    function Tw(e, t) {
      if (ku(t)) {
        const r = Tw(e, t.left),
          i = ps(vt(e.cloneNode(t.right), t.right), t.right.parent);
        return vt(e.createPropertyAccessExpression(r, i), t);
      } else return ps(vt(e.cloneNode(t), t), t.parent);
    }
    function Wj(e, t) {
      return He(t)
        ? e.createStringLiteralFromNode(t)
        : va(t)
          ? ps(vt(e.cloneNode(t.expression), t.expression), t.expression.parent)
          : ps(vt(e.cloneNode(t), t), t.parent);
    }
    function nje(e, t, r, i, o) {
      const { firstAccessor: s, getAccessor: l, setAccessor: u } = MS(t, r);
      if (r === s)
        return vt(
          e.createObjectDefinePropertyCall(
            i,
            Wj(e, r.name),
            e.createPropertyDescriptor(
              {
                enumerable: e.createFalse(),
                configurable: !0,
                get:
                  l &&
                  vt(
                    jr(
                      e.createFunctionExpression(
                        mS(l),
                        void 0,
                        void 0,
                        void 0,
                        l.parameters,
                        void 0,
                        l.body,
                      ),
                      l,
                    ),
                    l,
                  ),
                set:
                  u &&
                  vt(
                    jr(
                      e.createFunctionExpression(
                        mS(u),
                        void 0,
                        void 0,
                        void 0,
                        u.parameters,
                        void 0,
                        u.body,
                      ),
                      u,
                    ),
                    u,
                  ),
              },
              !o,
            ),
          ),
          s,
        );
    }
    function rje(e, t, r) {
      return jr(
        vt(e.createAssignment(D1(e, r, t.name, t.name), t.initializer), t),
        t,
      );
    }
    function ije(e, t, r) {
      return jr(
        vt(
          e.createAssignment(D1(e, r, t.name, t.name), e.cloneNode(t.name)),
          t,
        ),
        t,
      );
    }
    function oje(e, t, r) {
      return jr(
        vt(
          e.createAssignment(
            D1(e, r, t.name, t.name),
            jr(
              vt(
                e.createFunctionExpression(
                  mS(t),
                  t.asteriskToken,
                  void 0,
                  void 0,
                  t.parameters,
                  void 0,
                  t.body,
                ),
                t,
              ),
              t,
            ),
          ),
          t,
        ),
        t,
      );
    }
    function Uie(e, t, r, i) {
      switch (
        (r.name &&
          eo(r.name) &&
          C.failBadSyntaxKind(
            r.name,
            "Private identifiers are not allowed in object literals.",
          ),
        r.kind)
      ) {
        case 178:
        case 179:
          return nje(e, t.properties, r, i, !!t.multiLine);
        case 304:
          return rje(e, r, i);
        case 305:
          return ije(e, r, i);
        case 175:
          return oje(e, r, i);
      }
    }
    function C4(e, t, r, i, o) {
      const s = t.operator;
      C.assert(
        s === 46 || s === 47,
        "Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression",
      );
      const l = e.createTempVariable(i);
      ((r = e.createAssignment(l, r)), vt(r, t.operand));
      let u = YT(t)
        ? e.createPrefixUnaryExpression(s, l)
        : e.createPostfixUnaryExpression(l, s);
      return (
        vt(u, t),
        o && ((u = e.createAssignment(o, u)), vt(u, t)),
        (r = e.createComma(r, u)),
        vt(r, t),
        Tj(t) && ((r = e.createComma(r, l)), vt(r, t)),
        r
      );
    }
    function Fj(e) {
      return (Qa(e) & 65536) !== 0;
    }
    function fy(e) {
      return (Qa(e) & 32768) !== 0;
    }
    function N4(e) {
      return (Qa(e) & 16384) !== 0;
    }
    function ASe(e) {
      return ka(e.expression) && e.expression.text === "use strict";
    }
    function zj(e) {
      for (const t of e)
        if (Uh(t)) {
          if (ASe(t)) return t;
        } else break;
    }
    function Hie(e) {
      const t = Ac(e);
      return t !== void 0 && Uh(t) && ASe(t);
    }
    function Sw(e) {
      return e.kind === 227 && e.operatorToken.kind === 28;
    }
    function YM(e) {
      return Sw(e) || jM(e);
    }
    function HS(e) {
      return Ou(e) && Ir(e) && !!LT(e);
    }
    function MD(e) {
      const t = $y(e);
      return (C.assertIsDefined(t), t);
    }
    function M4(e, t = 63) {
      switch (e.kind) {
        case 218:
          return t & -2147483648 && HS(e) ? !1 : (t & 1) !== 0;
        case 217:
        case 235:
          return (t & 2) !== 0;
        case 239:
          return (t & 34) !== 0;
        case 234:
          return (t & 16) !== 0;
        case 236:
          return (t & 4) !== 0;
        case 356:
          return (t & 8) !== 0;
      }
      return !1;
    }
    function Ul(e, t = 63) {
      for (; M4(e, t); ) e = e.expression;
      return e;
    }
    function qie(e, t = 63) {
      let r = e.parent;
      for (; M4(r, t); ) ((r = r.parent), C.assert(r));
      return r;
    }
    function au(e) {
      return c4(e, !0);
    }
    function Ew(e) {
      const t = yl(e, Yi),
        r = t && t.emitNode;
      return r && r.externalHelpersModuleName;
    }
    function Jie(e) {
      const t = yl(e, Yi),
        r = t && t.emitNode;
      return !!r && (!!r.externalHelpersModuleName || !!r.externalHelpers);
    }
    function Bj(e, t, r, i, o, s, l) {
      if (i.importHelpers && HR(r, i)) {
        const u = bu(i),
          d = O1(r, i),
          _ = aje(r);
        if (
          d !== 1 &&
          ((u >= 5 && u <= 99) || d === 99 || (d === void 0 && u === 200))
        ) {
          if (_) {
            const h = [];
            for (const g of _) {
              const E = g.importName;
              E && kf(h, E);
            }
            if (yt(h)) {
              h.sort(Wd);
              const g = e.createNamedImports(
                  Vt(h, (N) =>
                    kF(r, N)
                      ? e.createImportSpecifier(
                          !1,
                          void 0,
                          e.createIdentifier(N),
                        )
                      : e.createImportSpecifier(
                          !1,
                          e.createIdentifier(N),
                          t.getUnscopedHelperName(N),
                        ),
                  ),
                ),
                E = yl(r, Yi),
                A = jd(E);
              A.externalHelpers = !0;
              const R = e.createImportDeclaration(
                void 0,
                e.createImportClause(void 0, void 0, g),
                e.createStringLiteral(hb),
                void 0,
              );
              return (h1(R, 2), R);
            }
          }
        } else {
          const h = sje(e, r, i, _, o, s || l);
          if (h) {
            const g = e.createImportEqualsDeclaration(
              void 0,
              !1,
              h,
              e.createExternalModuleReference(e.createStringLiteral(hb)),
            );
            return (h1(g, 2), g);
          }
        }
      }
    }
    function aje(e) {
      return Un(dj(e), (t) => !t.scoped);
    }
    function sje(e, t, r, i, o, s) {
      const l = Ew(t);
      if (l) return l;
      if (yt(i) || ((o || ($h(r) && s)) && TP(t, r) < 4)) {
        const d = yl(t, Yi),
          _ = jd(d);
        return (
          _.externalHelpersModuleName ||
          (_.externalHelpersModuleName = e.createUniqueName(hb))
        );
      }
    }
    function PD(e, t, r) {
      const i = ZR(t);
      if (i && !s1(t) && !OF(t)) {
        const o = i.name;
        return o.kind === 11
          ? e.getGeneratedNameForNode(t)
          : pl(o)
            ? o
            : e.createIdentifier(vS(r, o) || Kr(o));
      }
      if (
        (t.kind === 273 && t.importClause) ||
        (t.kind === 279 && t.moduleSpecifier)
      )
        return e.getGeneratedNameForNode(t);
    }
    function ZI(e, t, r, i, o, s) {
      const l = yI(t);
      if (l && ka(l))
        return cje(t, i, e, o, s) || lje(e, l, r) || e.cloneNode(l);
    }
    function lje(e, t, r) {
      const i = r.renamedDependencies && r.renamedDependencies.get(t.text);
      return i ? e.createStringLiteral(i) : void 0;
    }
    function Aw(e, t, r, i) {
      if (t) {
        if (t.moduleName) return e.createStringLiteral(t.moduleName);
        if (!t.isDeclarationFile && i.outFile)
          return e.createStringLiteral(rV(r, t.fileName));
      }
    }
    function cje(e, t, r, i, o) {
      return Aw(r, i.getExternalModuleFileFromDeclaration(e), t, o);
    }
    function Iw(e) {
      if (z2(e)) return e.initializer;
      if (Cc(e)) {
        const t = e.initializer;
        return id(t, !0) ? t.right : void 0;
      }
      if (Ud(e)) return e.objectAssignmentInitializer;
      if (id(e, !0)) return e.right;
      if (qf(e)) return Iw(e.expression);
    }
    function kb(e) {
      if (z2(e)) return e.name;
      if (ny(e)) {
        switch (e.kind) {
          case 304:
            return kb(e.initializer);
          case 305:
            return e.name;
          case 306:
            return kb(e.expression);
        }
        return;
      }
      return id(e, !0) ? kb(e.left) : qf(e) ? kb(e.expression) : e;
    }
    function P4(e) {
      switch (e.kind) {
        case 170:
        case 209:
          return e.dotDotDotToken;
        case 231:
        case 306:
          return e;
      }
    }
    function Gj(e) {
      const t = L4(e);
      return (
        C.assert(!!t || xg(e), "Invalid property name for binding element."),
        t
      );
    }
    function L4(e) {
      switch (e.kind) {
        case 209:
          if (e.propertyName) {
            const r = e.propertyName;
            return eo(r)
              ? C.failBadSyntaxKind(r)
              : va(r) && ISe(r.expression)
                ? r.expression
                : r;
          }
          break;
        case 304:
          if (e.name) {
            const r = e.name;
            return eo(r)
              ? C.failBadSyntaxKind(r)
              : va(r) && ISe(r.expression)
                ? r.expression
                : r;
          }
          break;
        case 306:
          return e.name && eo(e.name) ? C.failBadSyntaxKind(e.name) : e.name;
      }
      const t = kb(e);
      if (t && vc(t)) return t;
    }
    function ISe(e) {
      const t = e.kind;
      return t === 11 || t === 9;
    }
    function LD(e) {
      switch (e.kind) {
        case 207:
        case 208:
        case 210:
          return e.elements;
        case 211:
          return e.properties;
      }
    }
    function Vj(e) {
      if (e) {
        let t = e;
        for (;;) {
          if (He(t) || !t.body) return He(t) ? t : t.name;
          t = t.body;
        }
      }
    }
    function xSe(e) {
      const t = e.kind;
      return t === 177 || t === 179;
    }
    function Kie(e) {
      const t = e.kind;
      return t === 177 || t === 178 || t === 179;
    }
    function jj(e) {
      const t = e.kind;
      return (
        t === 304 ||
        t === 305 ||
        t === 263 ||
        t === 177 ||
        t === 182 ||
        t === 176 ||
        t === 283 ||
        t === 244 ||
        t === 265 ||
        t === 266 ||
        t === 267 ||
        t === 268 ||
        t === 272 ||
        t === 273 ||
        t === 271 ||
        t === 279 ||
        t === 278
      );
    }
    function Xie(e) {
      const t = e.kind;
      return t === 176 || t === 304 || t === 305 || t === 283 || t === 271;
    }
    function Yie(e) {
      return Nb(e) || mw(e);
    }
    function $ie(e) {
      return He(e) || VM(e);
    }
    function Qie(e) {
      return yie(e) || _j(e) || gj(e);
    }
    function Zie(e) {
      return Nb(e) || _j(e) || gj(e);
    }
    function eoe(e) {
      return He(e) || ka(e);
    }
    function dje(e) {
      return e === 43;
    }
    function uje(e) {
      return e === 42 || e === 44 || e === 45;
    }
    function pje(e) {
      return dje(e) || uje(e);
    }
    function fje(e) {
      return e === 40 || e === 41;
    }
    function mje(e) {
      return fje(e) || pje(e);
    }
    function hje(e) {
      return e === 48 || e === 49 || e === 50;
    }
    function Uj(e) {
      return hje(e) || mje(e);
    }
    function _je(e) {
      return (
        e === 30 || e === 33 || e === 32 || e === 34 || e === 104 || e === 103
      );
    }
    function gje(e) {
      return _je(e) || Uj(e);
    }
    function yje(e) {
      return e === 35 || e === 37 || e === 36 || e === 38;
    }
    function vje(e) {
      return yje(e) || gje(e);
    }
    function bje(e) {
      return e === 51 || e === 52 || e === 53;
    }
    function Tje(e) {
      return bje(e) || vje(e);
    }
    function Sje(e) {
      return e === 56 || e === 57;
    }
    function Eje(e) {
      return Sje(e) || Tje(e);
    }
    function Aje(e) {
      return e === 61 || Eje(e) || sy(e);
    }
    function Ije(e) {
      return Aje(e) || e === 28;
    }
    function toe(e) {
      return Ije(e.kind);
    }
    var Hj;
    ((e) => {
      function t(h, g, E, A, R, N, P) {
        const k = g > 0 ? R[g - 1] : void 0;
        return (
          C.assertEqual(E[g], t),
          (R[g] = h.onEnter(A[g], k, P)),
          (E[g] = u(h, t)),
          g
        );
      }
      e.enter = t;
      function r(h, g, E, A, R, N, P) {
        (C.assertEqual(E[g], r), C.assertIsDefined(h.onLeft), (E[g] = u(h, r)));
        const k = h.onLeft(A[g].left, R[g], A[g]);
        return k ? (_(g, A, k), d(g, E, A, R, k)) : g;
      }
      e.left = r;
      function i(h, g, E, A, R, N, P) {
        return (
          C.assertEqual(E[g], i),
          C.assertIsDefined(h.onOperator),
          (E[g] = u(h, i)),
          h.onOperator(A[g].operatorToken, R[g], A[g]),
          g
        );
      }
      e.operator = i;
      function o(h, g, E, A, R, N, P) {
        (C.assertEqual(E[g], o),
          C.assertIsDefined(h.onRight),
          (E[g] = u(h, o)));
        const k = h.onRight(A[g].right, R[g], A[g]);
        return k ? (_(g, A, k), d(g, E, A, R, k)) : g;
      }
      e.right = o;
      function s(h, g, E, A, R, N, P) {
        (C.assertEqual(E[g], s), (E[g] = u(h, s)));
        const k = h.onExit(A[g], R[g]);
        if (g > 0) {
          if ((g--, h.foldState)) {
            const W = E[g] === s ? "right" : "left";
            R[g] = h.foldState(R[g], k, W);
          }
        } else N.value = k;
        return g;
      }
      e.exit = s;
      function l(h, g, E, A, R, N, P) {
        return (C.assertEqual(E[g], l), g);
      }
      e.done = l;
      function u(h, g) {
        switch (g) {
          case t:
            if (h.onLeft) return r;
          case r:
            if (h.onOperator) return i;
          case i:
            if (h.onRight) return o;
          case o:
            return s;
          case s:
            return l;
          case l:
            return l;
          default:
            C.fail("Invalid state");
        }
      }
      e.nextState = u;
      function d(h, g, E, A, R) {
        return (h++, (g[h] = t), (E[h] = R), (A[h] = void 0), h);
      }
      function _(h, g, E) {
        if (C.shouldAssert(2))
          for (; h >= 0; )
            (C.assert(g[h] !== E, "Circular traversal detected."), h--);
      }
    })(Hj || (Hj = {}));
    var xje = class {
      constructor(e, t, r, i, o, s) {
        ((this.onEnter = e),
          (this.onLeft = t),
          (this.onOperator = r),
          (this.onRight = i),
          (this.onExit = o),
          (this.foldState = s));
      }
    };
    function k4(e, t, r, i, o, s) {
      const l = new xje(e, t, r, i, o, s);
      return u;
      function u(d, _) {
        const h = { value: void 0 },
          g = [Hj.enter],
          E = [d],
          A = [void 0];
        let R = 0;
        for (; g[R] !== Hj.done; ) R = g[R](l, R, g, E, A, h, _);
        return (C.assertEqual(R, 0), h.value);
      }
    }
    function Rje(e) {
      return e === 95 || e === 90;
    }
    function xw(e) {
      const t = e.kind;
      return Rje(t);
    }
    function noe(e, t) {
      if (t !== void 0)
        return t.length === 0
          ? t
          : vt(e.createNodeArray([], t.hasTrailingComma), t);
    }
    function Rw(e) {
      var t;
      const r = e.emitNode.autoGenerate;
      if (r.flags & 4) {
        const i = r.id;
        let o = e,
          s = o.original;
        for (; s; ) {
          o = s;
          const l = (t = o.emitNode) == null ? void 0 : t.autoGenerate;
          if (dg(o) && (l === void 0 || (l.flags & 4 && l.id !== i))) break;
          s = o.original;
        }
        return o;
      }
      return e;
    }
    function kD(e, t) {
      return typeof e == "object"
        ? r0(!1, e.prefix, e.node, e.suffix, t)
        : typeof e == "string"
          ? e.length > 0 && e.charCodeAt(0) === 35
            ? e.slice(1)
            : e
          : "";
    }
    function Dje(e, t) {
      return typeof e == "string" ? e : Cje(e, C.checkDefined(t));
    }
    function Cje(e, t) {
      return YE(e)
        ? t(e).slice(1)
        : pl(e)
          ? t(e)
          : eo(e)
            ? e.escapedText.slice(1)
            : Kr(e);
    }
    function r0(e, t, r, i, o) {
      return (
        (t = kD(t, o)),
        (i = kD(i, o)),
        (r = Dje(r, o)),
        `${e ? "#" : ""}${t}${r}${i}`
      );
    }
    function qj(e, t, r, i) {
      return e.updatePropertyDeclaration(
        t,
        r,
        e.getGeneratedPrivateNameForNode(t.name, void 0, "_accessor_storage"),
        void 0,
        void 0,
        i,
      );
    }
    function roe(e, t, r, i, o = e.createThis()) {
      return e.createGetAccessorDeclaration(
        r,
        i,
        [],
        void 0,
        e.createBlock([
          e.createReturnStatement(
            e.createPropertyAccessExpression(
              o,
              e.getGeneratedPrivateNameForNode(
                t.name,
                void 0,
                "_accessor_storage",
              ),
            ),
          ),
        ]),
      );
    }
    function ioe(e, t, r, i, o = e.createThis()) {
      return e.createSetAccessorDeclaration(
        r,
        i,
        [e.createParameterDeclaration(void 0, void 0, "value")],
        e.createBlock([
          e.createExpressionStatement(
            e.createAssignment(
              e.createPropertyAccessExpression(
                o,
                e.getGeneratedPrivateNameForNode(
                  t.name,
                  void 0,
                  "_accessor_storage",
                ),
              ),
              e.createIdentifier("value"),
            ),
          ),
        ]),
      );
    }
    function w4(e) {
      let t = e.expression;
      for (;;) {
        if (((t = Ul(t)), jM(t))) {
          t = Ba(t.elements);
          continue;
        }
        if (Sw(t)) {
          t = t.right;
          continue;
        }
        if (id(t, !0) && pl(t.left)) return t;
        break;
      }
    }
    function Nje(e) {
      return Ou(e) && Os(e) && !e.emitNode;
    }
    function O4(e, t) {
      if (Nje(e)) O4(e.expression, t);
      else if (Sw(e)) (O4(e.left, t), O4(e.right, t));
      else if (jM(e)) for (const r of e.elements) O4(r, t);
      else t.push(e);
    }
    function ooe(e) {
      const t = [];
      return (O4(e, t), t);
    }
    function Dw(e) {
      if (e.transformFlags & 65536) return !0;
      if (e.transformFlags & 128)
        for (const t of LD(e)) {
          const r = kb(t);
          if (
            r &&
            zN(r) &&
            (r.transformFlags & 65536 || (r.transformFlags & 128 && Dw(r)))
          )
            return !0;
        }
      return !1;
    }
    function vt(e, t) {
      return t ? uh(e, t.pos, t.end) : e;
    }
    function Tm(e) {
      const t = e.kind;
      return (
        t === 169 ||
        t === 170 ||
        t === 172 ||
        t === 173 ||
        t === 174 ||
        t === 175 ||
        t === 177 ||
        t === 178 ||
        t === 179 ||
        t === 182 ||
        t === 186 ||
        t === 219 ||
        t === 220 ||
        t === 232 ||
        t === 244 ||
        t === 263 ||
        t === 264 ||
        t === 265 ||
        t === 266 ||
        t === 267 ||
        t === 268 ||
        t === 272 ||
        t === 273 ||
        t === 278 ||
        t === 279
      );
    }
    function qS(e) {
      const t = e.kind;
      return (
        t === 170 ||
        t === 173 ||
        t === 175 ||
        t === 178 ||
        t === 179 ||
        t === 232 ||
        t === 264
      );
    }
    var RSe,
      DSe,
      CSe,
      NSe,
      MSe,
      aoe = {
        createBaseSourceFileNode: (e) =>
          new (MSe || (MSe = Rd.getSourceFileConstructor()))(e, -1, -1),
        createBaseIdentifierNode: (e) =>
          new (CSe || (CSe = Rd.getIdentifierConstructor()))(e, -1, -1),
        createBasePrivateIdentifierNode: (e) =>
          new (NSe || (NSe = Rd.getPrivateIdentifierConstructor()))(e, -1, -1),
        createBaseTokenNode: (e) =>
          new (DSe || (DSe = Rd.getTokenConstructor()))(e, -1, -1),
        createBaseNode: (e) =>
          new (RSe || (RSe = Rd.getNodeConstructor()))(e, -1, -1),
      },
      i0 = sw(1, aoe);
    function dn(e, t) {
      return t && e(t);
    }
    function Xi(e, t, r) {
      if (r) {
        if (t) return t(r);
        for (const i of r) {
          const o = e(i);
          if (o) return o;
        }
      }
    }
    function Jj(e, t) {
      return (
        e.charCodeAt(t + 1) === 42 &&
        e.charCodeAt(t + 2) === 42 &&
        e.charCodeAt(t + 3) !== 47
      );
    }
    function Cw(e) {
      return Ye(e.statements, Mje) || Pje(e);
    }
    function Mje(e) {
      return (Tm(e) && Lje(e, 95)) ||
        (Fc(e) && uy(e.moduleReference)) ||
        vl(e) ||
        ll(e) ||
        pc(e)
        ? e
        : void 0;
    }
    function Pje(e) {
      return e.flags & 8388608 ? PSe(e) : void 0;
    }
    function PSe(e) {
      return kje(e) ? e : Jo(e, PSe);
    }
    function Lje(e, t) {
      return yt(e.modifiers, (r) => r.kind === t);
    }
    function kje(e) {
      return S1(e) && e.keywordToken === 102 && e.name.escapedText === "meta";
    }
    var wje = {
      167: function (t, r, i) {
        return dn(r, t.left) || dn(r, t.right);
      },
      169: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          dn(r, t.constraint) ||
          dn(r, t.default) ||
          dn(r, t.expression)
        );
      },
      305: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          dn(r, t.questionToken) ||
          dn(r, t.exclamationToken) ||
          dn(r, t.equalsToken) ||
          dn(r, t.objectAssignmentInitializer)
        );
      },
      306: function (t, r, i) {
        return dn(r, t.expression);
      },
      170: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.dotDotDotToken) ||
          dn(r, t.name) ||
          dn(r, t.questionToken) ||
          dn(r, t.type) ||
          dn(r, t.initializer)
        );
      },
      173: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          dn(r, t.questionToken) ||
          dn(r, t.exclamationToken) ||
          dn(r, t.type) ||
          dn(r, t.initializer)
        );
      },
      172: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          dn(r, t.questionToken) ||
          dn(r, t.type) ||
          dn(r, t.initializer)
        );
      },
      304: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          dn(r, t.questionToken) ||
          dn(r, t.exclamationToken) ||
          dn(r, t.initializer)
        );
      },
      261: function (t, r, i) {
        return (
          dn(r, t.name) ||
          dn(r, t.exclamationToken) ||
          dn(r, t.type) ||
          dn(r, t.initializer)
        );
      },
      209: function (t, r, i) {
        return (
          dn(r, t.dotDotDotToken) ||
          dn(r, t.propertyName) ||
          dn(r, t.name) ||
          dn(r, t.initializer)
        );
      },
      182: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type)
        );
      },
      186: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type)
        );
      },
      185: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type)
        );
      },
      180: LSe,
      181: LSe,
      175: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.asteriskToken) ||
          dn(r, t.name) ||
          dn(r, t.questionToken) ||
          dn(r, t.exclamationToken) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type) ||
          dn(r, t.body)
        );
      },
      174: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          dn(r, t.questionToken) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type)
        );
      },
      177: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type) ||
          dn(r, t.body)
        );
      },
      178: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type) ||
          dn(r, t.body)
        );
      },
      179: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type) ||
          dn(r, t.body)
        );
      },
      263: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.asteriskToken) ||
          dn(r, t.name) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type) ||
          dn(r, t.body)
        );
      },
      219: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.asteriskToken) ||
          dn(r, t.name) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type) ||
          dn(r, t.body)
        );
      },
      220: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.parameters) ||
          dn(r, t.type) ||
          dn(r, t.equalsGreaterThanToken) ||
          dn(r, t.body)
        );
      },
      176: function (t, r, i) {
        return Xi(r, i, t.modifiers) || dn(r, t.body);
      },
      184: function (t, r, i) {
        return dn(r, t.typeName) || Xi(r, i, t.typeArguments);
      },
      183: function (t, r, i) {
        return (
          dn(r, t.assertsModifier) || dn(r, t.parameterName) || dn(r, t.type)
        );
      },
      187: function (t, r, i) {
        return dn(r, t.exprName) || Xi(r, i, t.typeArguments);
      },
      188: function (t, r, i) {
        return Xi(r, i, t.members);
      },
      189: function (t, r, i) {
        return dn(r, t.elementType);
      },
      190: function (t, r, i) {
        return Xi(r, i, t.elements);
      },
      193: kSe,
      194: kSe,
      195: function (t, r, i) {
        return (
          dn(r, t.checkType) ||
          dn(r, t.extendsType) ||
          dn(r, t.trueType) ||
          dn(r, t.falseType)
        );
      },
      196: function (t, r, i) {
        return dn(r, t.typeParameter);
      },
      206: function (t, r, i) {
        return (
          dn(r, t.argument) ||
          dn(r, t.attributes) ||
          dn(r, t.qualifier) ||
          Xi(r, i, t.typeArguments)
        );
      },
      303: function (t, r, i) {
        return dn(r, t.assertClause);
      },
      197: wSe,
      199: wSe,
      200: function (t, r, i) {
        return dn(r, t.objectType) || dn(r, t.indexType);
      },
      201: function (t, r, i) {
        return (
          dn(r, t.readonlyToken) ||
          dn(r, t.typeParameter) ||
          dn(r, t.nameType) ||
          dn(r, t.questionToken) ||
          dn(r, t.type) ||
          Xi(r, i, t.members)
        );
      },
      202: function (t, r, i) {
        return dn(r, t.literal);
      },
      203: function (t, r, i) {
        return (
          dn(r, t.dotDotDotToken) ||
          dn(r, t.name) ||
          dn(r, t.questionToken) ||
          dn(r, t.type)
        );
      },
      207: OSe,
      208: OSe,
      210: function (t, r, i) {
        return Xi(r, i, t.elements);
      },
      211: function (t, r, i) {
        return Xi(r, i, t.properties);
      },
      212: function (t, r, i) {
        return (
          dn(r, t.expression) || dn(r, t.questionDotToken) || dn(r, t.name)
        );
      },
      213: function (t, r, i) {
        return (
          dn(r, t.expression) ||
          dn(r, t.questionDotToken) ||
          dn(r, t.argumentExpression)
        );
      },
      214: WSe,
      215: WSe,
      216: function (t, r, i) {
        return (
          dn(r, t.tag) ||
          dn(r, t.questionDotToken) ||
          Xi(r, i, t.typeArguments) ||
          dn(r, t.template)
        );
      },
      217: function (t, r, i) {
        return dn(r, t.type) || dn(r, t.expression);
      },
      218: function (t, r, i) {
        return dn(r, t.expression);
      },
      221: function (t, r, i) {
        return dn(r, t.expression);
      },
      222: function (t, r, i) {
        return dn(r, t.expression);
      },
      223: function (t, r, i) {
        return dn(r, t.expression);
      },
      225: function (t, r, i) {
        return dn(r, t.operand);
      },
      230: function (t, r, i) {
        return dn(r, t.asteriskToken) || dn(r, t.expression);
      },
      224: function (t, r, i) {
        return dn(r, t.expression);
      },
      226: function (t, r, i) {
        return dn(r, t.operand);
      },
      227: function (t, r, i) {
        return dn(r, t.left) || dn(r, t.operatorToken) || dn(r, t.right);
      },
      235: function (t, r, i) {
        return dn(r, t.expression) || dn(r, t.type);
      },
      236: function (t, r, i) {
        return dn(r, t.expression);
      },
      239: function (t, r, i) {
        return dn(r, t.expression) || dn(r, t.type);
      },
      237: function (t, r, i) {
        return dn(r, t.name);
      },
      228: function (t, r, i) {
        return (
          dn(r, t.condition) ||
          dn(r, t.questionToken) ||
          dn(r, t.whenTrue) ||
          dn(r, t.colonToken) ||
          dn(r, t.whenFalse)
        );
      },
      231: function (t, r, i) {
        return dn(r, t.expression);
      },
      242: FSe,
      269: FSe,
      308: function (t, r, i) {
        return Xi(r, i, t.statements) || dn(r, t.endOfFileToken);
      },
      244: function (t, r, i) {
        return Xi(r, i, t.modifiers) || dn(r, t.declarationList);
      },
      262: function (t, r, i) {
        return Xi(r, i, t.declarations);
      },
      245: function (t, r, i) {
        return dn(r, t.expression);
      },
      246: function (t, r, i) {
        return (
          dn(r, t.expression) ||
          dn(r, t.thenStatement) ||
          dn(r, t.elseStatement)
        );
      },
      247: function (t, r, i) {
        return dn(r, t.statement) || dn(r, t.expression);
      },
      248: function (t, r, i) {
        return dn(r, t.expression) || dn(r, t.statement);
      },
      249: function (t, r, i) {
        return (
          dn(r, t.initializer) ||
          dn(r, t.condition) ||
          dn(r, t.incrementor) ||
          dn(r, t.statement)
        );
      },
      250: function (t, r, i) {
        return (
          dn(r, t.initializer) || dn(r, t.expression) || dn(r, t.statement)
        );
      },
      251: function (t, r, i) {
        return (
          dn(r, t.awaitModifier) ||
          dn(r, t.initializer) ||
          dn(r, t.expression) ||
          dn(r, t.statement)
        );
      },
      252: zSe,
      253: zSe,
      254: function (t, r, i) {
        return dn(r, t.expression);
      },
      255: function (t, r, i) {
        return dn(r, t.expression) || dn(r, t.statement);
      },
      256: function (t, r, i) {
        return dn(r, t.expression) || dn(r, t.caseBlock);
      },
      270: function (t, r, i) {
        return Xi(r, i, t.clauses);
      },
      297: function (t, r, i) {
        return dn(r, t.expression) || Xi(r, i, t.statements);
      },
      298: function (t, r, i) {
        return Xi(r, i, t.statements);
      },
      257: function (t, r, i) {
        return dn(r, t.label) || dn(r, t.statement);
      },
      258: function (t, r, i) {
        return dn(r, t.expression);
      },
      259: function (t, r, i) {
        return (
          dn(r, t.tryBlock) || dn(r, t.catchClause) || dn(r, t.finallyBlock)
        );
      },
      300: function (t, r, i) {
        return dn(r, t.variableDeclaration) || dn(r, t.block);
      },
      171: function (t, r, i) {
        return dn(r, t.expression);
      },
      264: BSe,
      232: BSe,
      265: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          Xi(r, i, t.typeParameters) ||
          Xi(r, i, t.heritageClauses) ||
          Xi(r, i, t.members)
        );
      },
      266: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.name) ||
          Xi(r, i, t.typeParameters) ||
          dn(r, t.type)
        );
      },
      267: function (t, r, i) {
        return Xi(r, i, t.modifiers) || dn(r, t.name) || Xi(r, i, t.members);
      },
      307: function (t, r, i) {
        return dn(r, t.name) || dn(r, t.initializer);
      },
      268: function (t, r, i) {
        return Xi(r, i, t.modifiers) || dn(r, t.name) || dn(r, t.body);
      },
      272: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) || dn(r, t.name) || dn(r, t.moduleReference)
        );
      },
      273: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.importClause) ||
          dn(r, t.moduleSpecifier) ||
          dn(r, t.attributes)
        );
      },
      274: function (t, r, i) {
        return dn(r, t.name) || dn(r, t.namedBindings);
      },
      301: function (t, r, i) {
        return Xi(r, i, t.elements);
      },
      302: function (t, r, i) {
        return dn(r, t.name) || dn(r, t.value);
      },
      271: function (t, r, i) {
        return Xi(r, i, t.modifiers) || dn(r, t.name);
      },
      275: function (t, r, i) {
        return dn(r, t.name);
      },
      281: function (t, r, i) {
        return dn(r, t.name);
      },
      276: GSe,
      280: GSe,
      279: function (t, r, i) {
        return (
          Xi(r, i, t.modifiers) ||
          dn(r, t.exportClause) ||
          dn(r, t.moduleSpecifier) ||
          dn(r, t.attributes)
        );
      },
      277: VSe,
      282: VSe,
      278: function (t, r, i) {
        return Xi(r, i, t.modifiers) || dn(r, t.expression);
      },
      229: function (t, r, i) {
        return dn(r, t.head) || Xi(r, i, t.templateSpans);
      },
      240: function (t, r, i) {
        return dn(r, t.expression) || dn(r, t.literal);
      },
      204: function (t, r, i) {
        return dn(r, t.head) || Xi(r, i, t.templateSpans);
      },
      205: function (t, r, i) {
        return dn(r, t.type) || dn(r, t.literal);
      },
      168: function (t, r, i) {
        return dn(r, t.expression);
      },
      299: function (t, r, i) {
        return Xi(r, i, t.types);
      },
      234: function (t, r, i) {
        return dn(r, t.expression) || Xi(r, i, t.typeArguments);
      },
      284: function (t, r, i) {
        return dn(r, t.expression);
      },
      283: function (t, r, i) {
        return Xi(r, i, t.modifiers);
      },
      357: function (t, r, i) {
        return Xi(r, i, t.elements);
      },
      285: function (t, r, i) {
        return (
          dn(r, t.openingElement) ||
          Xi(r, i, t.children) ||
          dn(r, t.closingElement)
        );
      },
      289: function (t, r, i) {
        return (
          dn(r, t.openingFragment) ||
          Xi(r, i, t.children) ||
          dn(r, t.closingFragment)
        );
      },
      286: jSe,
      287: jSe,
      293: function (t, r, i) {
        return Xi(r, i, t.properties);
      },
      292: function (t, r, i) {
        return dn(r, t.name) || dn(r, t.initializer);
      },
      294: function (t, r, i) {
        return dn(r, t.expression);
      },
      295: function (t, r, i) {
        return dn(r, t.dotDotDotToken) || dn(r, t.expression);
      },
      288: function (t, r, i) {
        return dn(r, t.tagName);
      },
      296: function (t, r, i) {
        return dn(r, t.namespace) || dn(r, t.name);
      },
      191: $M,
      192: $M,
      310: $M,
      316: $M,
      315: $M,
      317: $M,
      319: $M,
      318: function (t, r, i) {
        return Xi(r, i, t.parameters) || dn(r, t.type);
      },
      321: function (t, r, i) {
        return (
          (typeof t.comment == "string" ? void 0 : Xi(r, i, t.comment)) ||
          Xi(r, i, t.tags)
        );
      },
      348: function (t, r, i) {
        return (
          dn(r, t.tagName) ||
          dn(r, t.name) ||
          (typeof t.comment == "string" ? void 0 : Xi(r, i, t.comment))
        );
      },
      311: function (t, r, i) {
        return dn(r, t.name);
      },
      312: function (t, r, i) {
        return dn(r, t.left) || dn(r, t.right);
      },
      342: USe,
      349: USe,
      331: function (t, r, i) {
        return (
          dn(r, t.tagName) ||
          (typeof t.comment == "string" ? void 0 : Xi(r, i, t.comment))
        );
      },
      330: function (t, r, i) {
        return (
          dn(r, t.tagName) ||
          dn(r, t.class) ||
          (typeof t.comment == "string" ? void 0 : Xi(r, i, t.comment))
        );
      },
      329: function (t, r, i) {
        return (
          dn(r, t.tagName) ||
          dn(r, t.class) ||
          (typeof t.comment == "string" ? void 0 : Xi(r, i, t.comment))
        );
      },
      346: function (t, r, i) {
        return (
          dn(r, t.tagName) ||
          dn(r, t.constraint) ||
          Xi(r, i, t.typeParameters) ||
          (typeof t.comment == "string" ? void 0 : Xi(r, i, t.comment))
        );
      },
      347: function (t, r, i) {
        return (
          dn(r, t.tagName) ||
          (t.typeExpression && t.typeExpression.kind === 310
            ? dn(r, t.typeExpression) ||
              dn(r, t.fullName) ||
              (typeof t.comment == "string" ? void 0 : Xi(r, i, t.comment))
            : dn(r, t.fullName) ||
              dn(r, t.typeExpression) ||
              (typeof t.comment == "string" ? void 0 : Xi(r, i, t.comment)))
        );
      },
      339: function (t, r, i) {
        return (
          dn(r, t.tagName) ||
          dn(r, t.fullName) ||
          dn(r, t.typeExpression) ||
          (typeof t.comment == "string" ? void 0 : Xi(r, i, t.comment))
        );
      },
      343: QM,
      345: QM,
      344: QM,
      341: QM,
      351: QM,
      350: QM,
      340: QM,
      324: function (t, r, i) {
        return Ye(t.typeParameters, r) || Ye(t.parameters, r) || dn(r, t.type);
      },
      325: soe,
      326: soe,
      327: soe,
      323: function (t, r, i) {
        return Ye(t.jsDocPropertyTags, r);
      },
      328: wD,
      333: wD,
      334: wD,
      335: wD,
      336: wD,
      337: wD,
      332: wD,
      338: wD,
      352: Oje,
      356: Wje,
    };
    function LSe(e, t, r) {
      return (
        Xi(t, r, e.typeParameters) || Xi(t, r, e.parameters) || dn(t, e.type)
      );
    }
    function kSe(e, t, r) {
      return Xi(t, r, e.types);
    }
    function wSe(e, t, r) {
      return dn(t, e.type);
    }
    function OSe(e, t, r) {
      return Xi(t, r, e.elements);
    }
    function WSe(e, t, r) {
      return (
        dn(t, e.expression) ||
        dn(t, e.questionDotToken) ||
        Xi(t, r, e.typeArguments) ||
        Xi(t, r, e.arguments)
      );
    }
    function FSe(e, t, r) {
      return Xi(t, r, e.statements);
    }
    function zSe(e, t, r) {
      return dn(t, e.label);
    }
    function BSe(e, t, r) {
      return (
        Xi(t, r, e.modifiers) ||
        dn(t, e.name) ||
        Xi(t, r, e.typeParameters) ||
        Xi(t, r, e.heritageClauses) ||
        Xi(t, r, e.members)
      );
    }
    function GSe(e, t, r) {
      return Xi(t, r, e.elements);
    }
    function VSe(e, t, r) {
      return dn(t, e.propertyName) || dn(t, e.name);
    }
    function jSe(e, t, r) {
      return (
        dn(t, e.tagName) || Xi(t, r, e.typeArguments) || dn(t, e.attributes)
      );
    }
    function $M(e, t, r) {
      return dn(t, e.type);
    }
    function USe(e, t, r) {
      return (
        dn(t, e.tagName) ||
        (e.isNameFirst
          ? dn(t, e.name) || dn(t, e.typeExpression)
          : dn(t, e.typeExpression) || dn(t, e.name)) ||
        (typeof e.comment == "string" ? void 0 : Xi(t, r, e.comment))
      );
    }
    function QM(e, t, r) {
      return (
        dn(t, e.tagName) ||
        dn(t, e.typeExpression) ||
        (typeof e.comment == "string" ? void 0 : Xi(t, r, e.comment))
      );
    }
    function soe(e, t, r) {
      return dn(t, e.name);
    }
    function wD(e, t, r) {
      return (
        dn(t, e.tagName) ||
        (typeof e.comment == "string" ? void 0 : Xi(t, r, e.comment))
      );
    }
    function Oje(e, t, r) {
      return (
        dn(t, e.tagName) ||
        dn(t, e.importClause) ||
        dn(t, e.moduleSpecifier) ||
        dn(t, e.attributes) ||
        (typeof e.comment == "string" ? void 0 : Xi(t, r, e.comment))
      );
    }
    function Wje(e, t, r) {
      return dn(t, e.expression);
    }
    function Jo(e, t, r) {
      if (e === void 0 || e.kind <= 166) return;
      const i = wje[e.kind];
      return i === void 0 ? void 0 : i(e, t, r);
    }
    function ex(e, t, r) {
      const i = HSe(e),
        o = [];
      for (; o.length < i.length; ) o.push(e);
      for (; i.length !== 0; ) {
        const s = i.pop(),
          l = o.pop();
        if (Mo(s)) {
          if (r) {
            const u = r(s, l);
            if (u) {
              if (u === "skip") continue;
              return u;
            }
          }
          for (let u = s.length - 1; u >= 0; --u) (i.push(s[u]), o.push(l));
        } else {
          const u = t(s, l);
          if (u) {
            if (u === "skip") continue;
            return u;
          }
          if (s.kind >= 167) for (const d of HSe(s)) (i.push(d), o.push(s));
        }
      }
    }
    function HSe(e) {
      const t = [];
      return (Jo(e, r, r), t);
      function r(i) {
        t.unshift(i);
      }
    }
    function qSe(e) {
      e.externalModuleIndicator = Cw(e);
    }
    function tx(e, t, r, i = !1, o) {
      var s, l;
      ((s = xr) == null ||
        s.push(xr.Phase.Parse, "createSourceFile", { path: e }, !0),
        Rl("beforeParse"));
      let u;
      const {
        languageVersion: d,
        setExternalModuleIndicator: _,
        impliedNodeFormat: h,
        jsDocParsingMode: g,
      } = typeof r == "object" ? r : { languageVersion: r };
      if (d === 100) u = o0.parseSourceFile(e, t, d, void 0, i, 6, gs, g);
      else {
        const E =
          h === void 0 ? _ : (A) => ((A.impliedNodeFormat = h), (_ || qSe)(A));
        u = o0.parseSourceFile(e, t, d, void 0, i, o, E, g);
      }
      return (
        Rl("afterParse"),
        wf("Parse", "beforeParse", "afterParse"),
        (l = xr) == null || l.pop(),
        u
      );
    }
    function nx(e, t) {
      return o0.parseIsolatedEntityName(e, t);
    }
    function Nw(e, t) {
      return o0.parseJsonText(e, t);
    }
    function zc(e) {
      return e.externalModuleIndicator !== void 0;
    }
    function Kj(e, t, r, i = !1) {
      const o = Xj.updateSourceFile(e, t, r, i);
      return ((o.flags |= e.flags & 12582912), o);
    }
    function loe(e, t, r) {
      const i = o0.JSDocParser.parseIsolatedJSDocComment(e, t, r);
      return (i && i.jsDoc && o0.fixupParentReferences(i.jsDoc), i);
    }
    function JSe(e, t, r) {
      return o0.JSDocParser.parseJSDocTypeExpressionForTests(e, t, r);
    }
    var o0;
    ((e) => {
      var t = cg(99, !0),
        r = 40960,
        i,
        o,
        s,
        l,
        u;
      function d(ee) {
        return (We++, ee);
      }
      var _ = {
          createBaseSourceFileNode: (ee) => d(new u(ee, 0, 0)),
          createBaseIdentifierNode: (ee) => d(new s(ee, 0, 0)),
          createBasePrivateIdentifierNode: (ee) => d(new l(ee, 0, 0)),
          createBaseTokenNode: (ee) => d(new o(ee, 0, 0)),
          createBaseNode: (ee) => d(new i(ee, 0, 0)),
        },
        h = sw(11, _),
        {
          createNodeArray: g,
          createNumericLiteral: E,
          createStringLiteral: A,
          createLiteralLikeNode: R,
          createIdentifier: N,
          createPrivateIdentifier: P,
          createToken: k,
          createArrayLiteralExpression: W,
          createObjectLiteralExpression: O,
          createPropertyAccessExpression: G,
          createPropertyAccessChain: j,
          createElementAccessExpression: J,
          createElementAccessChain: Z,
          createCallExpression: q,
          createCallChain: ye,
          createNewExpression: ie,
          createParenthesizedExpression: K,
          createBlock: pe,
          createVariableStatement: de,
          createExpressionStatement: fe,
          createIfStatement: ve,
          createWhileStatement: xe,
          createForStatement: X,
          createForOfStatement: Ce,
          createVariableDeclaration: Je,
          createVariableDeclarationList: Se,
        } = h,
        re,
        be,
        Ne,
        Be,
        lt,
        ce,
        Re,
        _e,
        je,
        Ge,
        We,
        at,
        Wt,
        cn,
        gn,
        Kn,
        _t = !0,
        en = !1;
      function ir(ee, ke, rt, Pt, nn = !1, _n, ei, wr = 0) {
        var pr;
        if (((_n = U6(ee, _n)), _n === 6)) {
          const ao = lo(ee, ke, rt, Pt, nn);
          return (
            ww(
              ao,
              (pr = ao.statements[0]) == null ? void 0 : pr.expression,
              ao.parseDiagnostics,
              !1,
              void 0,
            ),
            (ao.referencedFiles = ae),
            (ao.typeReferenceDirectives = ae),
            (ao.libReferenceDirectives = ae),
            (ao.amdDependencies = ae),
            (ao.hasNoDefaultLib = !1),
            (ao.pragmas = bt),
            ao
          );
        }
        zt(ee, ke, rt, Pt, _n, wr);
        const Si = Ai(rt, nn, _n, ei || qSe, wr);
        return (Zr(), Si);
      }
      e.parseSourceFile = ir;
      function Di(ee, ke) {
        (zt("", ee, ke, void 0, 1, 0), Pe());
        const rt = ut(!0),
          Pt = te() === 1 && !Re.length;
        return (Zr(), Pt ? rt : void 0);
      }
      e.parseIsolatedEntityName = Di;
      function lo(ee, ke, rt = 2, Pt, nn = !1) {
        (zt(ee, ke, rt, Pt, 6, 0), (be = Kn), Pe());
        const _n = B();
        let ei, wr;
        if (te() === 1) ((ei = qa([], _n, _n)), (wr = ec()));
        else {
          let ao;
          for (; te() !== 1; ) {
            let as;
            switch (te()) {
              case 23:
                as = eT();
                break;
              case 112:
              case 97:
              case 106:
                as = ec();
                break;
              case 41:
                wt(() => Pe() === 9 && Pe() !== 59) ? (as = xv()) : (as = Cv());
                break;
              case 9:
              case 11:
                if (wt(() => Pe() !== 59)) {
                  as = kt();
                  break;
                }
              default:
                as = Cv();
                break;
            }
            ao && Mo(ao)
              ? ao.push(as)
              : ao
                ? (ao = [ao, as])
                : ((ao = as), te() !== 1 && Kt(f.Unexpected_token));
          }
          const zs = Mo(ao) ? Zt(W(ao), _n) : C.checkDefined(ao),
            Is = fe(zs);
          (Zt(Is, _n), (ei = qa([Is], _n)), (wr = $s(1, f.Unexpected_token)));
        }
        const pr = At(ee, 2, 6, !1, ei, wr, be, gs);
        (nn && $e(pr),
          (pr.nodeCount = We),
          (pr.identifierCount = Wt),
          (pr.identifiers = at),
          (pr.parseDiagnostics = NI(Re, pr)),
          _e && (pr.jsDocDiagnostics = NI(_e, pr)));
        const Si = pr;
        return (Zr(), Si);
      }
      e.parseJsonText = lo;
      function zt(ee, ke, rt, Pt, nn, _n) {
        switch (
          ((i = Rd.getNodeConstructor()),
          (o = Rd.getTokenConstructor()),
          (s = Rd.getIdentifierConstructor()),
          (l = Rd.getPrivateIdentifierConstructor()),
          (u = Rd.getSourceFileConstructor()),
          (re = ya(ee)),
          (Ne = ke),
          (Be = rt),
          (je = Pt),
          (lt = nn),
          (ce = jk(nn)),
          (Re = []),
          (cn = 0),
          (at = new Map()),
          (Wt = 0),
          (We = 0),
          (be = 0),
          (_t = !0),
          lt)
        ) {
          case 1:
          case 2:
            Kn = 524288;
            break;
          case 6:
            Kn = 134742016;
            break;
          default:
            Kn = 0;
            break;
        }
        ((en = !1),
          t.setText(Ne),
          t.setOnError(he),
          t.setScriptTarget(Be),
          t.setLanguageVariant(ce),
          t.setScriptKind(lt),
          t.setJSDocParsingMode(_n));
      }
      function Zr() {
        (t.clearCommentDirectives(),
          t.setText(""),
          t.setOnError(void 0),
          t.setScriptKind(0),
          t.setJSDocParsingMode(0),
          (Ne = void 0),
          (Be = void 0),
          (je = void 0),
          (lt = void 0),
          (ce = void 0),
          (be = 0),
          (Re = void 0),
          (_e = void 0),
          (cn = 0),
          (at = void 0),
          (gn = void 0),
          (_t = !0));
      }
      function Ai(ee, ke, rt, Pt, nn) {
        const _n = ad(re);
        (_n && (Kn |= 33554432), (be = Kn), Pe());
        const ei = Va(0, bp);
        C.assert(te() === 1);
        const wr = Ae(),
          pr = Pr(ec(), wr),
          Si = At(re, ee, rt, _n, ei, pr, be, Pt);
        return (
          Yj(Si, Ne),
          $j(Si, ao),
          (Si.commentDirectives = t.getCommentDirectives()),
          (Si.nodeCount = We),
          (Si.identifierCount = Wt),
          (Si.identifiers = at),
          (Si.parseDiagnostics = NI(Re, Si)),
          (Si.jsDocParsingMode = nn),
          _e && (Si.jsDocDiagnostics = NI(_e, Si)),
          ke && $e(Si),
          Si
        );
        function ao(zs, Is, as) {
          Re.push(CI(re, Ne, zs, Is, as));
        }
      }
      let Ni = !1;
      function Pr(ee, ke) {
        if (!ke) return ee;
        C.assert(!ee.jsDoc);
        const rt = Ui(RG(ee, Ne), (Pt) =>
          g_.parseJSDocComment(ee, Pt.pos, Pt.end - Pt.pos),
        );
        return (
          rt.length && (ee.jsDoc = rt),
          Ni && ((Ni = !1), (ee.flags |= 536870912)),
          ee
        );
      }
      function Ci(ee) {
        const ke = je,
          rt = Xj.createSyntaxCursor(ee);
        je = { currentNode: ao };
        const Pt = [],
          nn = Re;
        Re = [];
        let _n = 0,
          ei = pr(ee.statements, 0);
        for (; ei !== -1; ) {
          const zs = ee.statements[_n],
            Is = ee.statements[ei];
          (Xr(Pt, ee.statements, _n, ei), (_n = Si(ee.statements, ei)));
          const as = ho(nn, (xf) => xf.start >= zs.pos),
            em = as >= 0 ? ho(nn, (xf) => xf.start >= Is.pos, as) : -1;
          (as >= 0 && Xr(Re, nn, as, em >= 0 ? em : void 0),
            yn(() => {
              const xf = Kn;
              for (Kn |= 65536, t.resetTokenState(Is.pos), Pe(); te() !== 1; ) {
                const kv = t.getTokenFullStart(),
                  wv = Mc(0, bp);
                if (
                  (Pt.push(wv), kv === t.getTokenFullStart() && Pe(), _n >= 0)
                ) {
                  const Fg = ee.statements[_n];
                  if (wv.end === Fg.pos) break;
                  wv.end > Fg.pos && (_n = Si(ee.statements, _n + 1));
                }
              }
              Kn = xf;
            }, 2),
            (ei = _n >= 0 ? pr(ee.statements, _n) : -1));
        }
        if (_n >= 0) {
          const zs = ee.statements[_n];
          Xr(Pt, ee.statements, _n);
          const Is = ho(nn, (as) => as.start >= zs.pos);
          Is >= 0 && Xr(Re, nn, Is);
        }
        return ((je = ke), h.updateSourceFile(ee, vt(g(Pt), ee.statements)));
        function wr(zs) {
          return !(zs.flags & 65536) && !!(zs.transformFlags & 67108864);
        }
        function pr(zs, Is) {
          for (let as = Is; as < zs.length; as++) if (wr(zs[as])) return as;
          return -1;
        }
        function Si(zs, Is) {
          for (let as = Is; as < zs.length; as++) if (!wr(zs[as])) return as;
          return -1;
        }
        function ao(zs) {
          const Is = rt.currentNode(zs);
          return (_t && Is && wr(Is) && coe(Is), Is);
        }
      }
      function $e(ee) {
        qT(ee, !0);
      }
      e.fixupParentReferences = $e;
      function At(ee, ke, rt, Pt, nn, _n, ei, wr) {
        let pr = h.createSourceFile(nn, _n, ei);
        if (
          (HV(pr, 0, Ne.length),
          Si(pr),
          !Pt && zc(pr) && pr.transformFlags & 67108864)
        ) {
          const ao = pr;
          ((pr = Ci(pr)), ao !== pr && Si(pr));
        }
        return pr;
        function Si(ao) {
          ((ao.text = Ne),
            (ao.bindDiagnostics = []),
            (ao.bindSuggestionDiagnostics = void 0),
            (ao.languageVersion = ke),
            (ao.fileName = ee),
            (ao.languageVariant = jk(rt)),
            (ao.isDeclarationFile = Pt),
            (ao.scriptKind = rt),
            wr(ao),
            (ao.setExternalModuleIndicator = wr));
        }
      }
      function mn(ee, ke) {
        ee ? (Kn |= ke) : (Kn &= ~ke);
      }
      function dr(ee) {
        mn(ee, 8192);
      }
      function ri(ee) {
        mn(ee, 16384);
      }
      function ai(ee) {
        mn(ee, 32768);
      }
      function qi(ee) {
        mn(ee, 65536);
      }
      function $o(ee, ke) {
        const rt = ee & Kn;
        if (rt) {
          mn(!1, rt);
          const Pt = ke();
          return (mn(!0, rt), Pt);
        }
        return ke();
      }
      function Ia(ee, ke) {
        const rt = ee & ~Kn;
        if (rt) {
          mn(!0, rt);
          const Pt = ke();
          return (mn(!1, rt), Pt);
        }
        return ke();
      }
      function Mn(ee) {
        return $o(8192, ee);
      }
      function Uo(ee) {
        return Ia(8192, ee);
      }
      function ot(ee) {
        return $o(131072, ee);
      }
      function Ft(ee) {
        return Ia(131072, ee);
      }
      function le(ee) {
        return Ia(16384, ee);
      }
      function ht(ee) {
        return Ia(32768, ee);
      }
      function ne(ee) {
        return Ia(65536, ee);
      }
      function Fe(ee) {
        return $o(65536, ee);
      }
      function it(ee) {
        return Ia(81920, ee);
      }
      function dt(ee) {
        return $o(81920, ee);
      }
      function Lt(ee) {
        return (Kn & ee) !== 0;
      }
      function Ue() {
        return Lt(16384);
      }
      function Rt() {
        return Lt(8192);
      }
      function It() {
        return Lt(131072);
      }
      function Ot() {
        return Lt(32768);
      }
      function nt() {
        return Lt(65536);
      }
      function Kt(ee, ...ke) {
        return Oe(t.getTokenStart(), t.getTokenEnd(), ee, ...ke);
      }
      function Tr(ee, ke, rt, ...Pt) {
        const nn = Zs(Re);
        let _n;
        return (
          (!nn || ee !== nn.start) &&
            ((_n = CI(re, Ne, ee, ke, rt, ...Pt)), Re.push(_n)),
          (en = !0),
          _n
        );
      }
      function Oe(ee, ke, rt, ...Pt) {
        return Tr(ee, ke - ee, rt, ...Pt);
      }
      function Nt(ee, ke, ...rt) {
        Oe(ee.pos, ee.end, ke, ...rt);
      }
      function he(ee, ke, rt) {
        Tr(t.getTokenEnd(), ke, ee, rt);
      }
      function B() {
        return t.getTokenFullStart();
      }
      function Ae() {
        return t.hasPrecedingJSDocComment();
      }
      function te() {
        return Ge;
      }
      function xt() {
        return (Ge = t.scan());
      }
      function Xt(ee) {
        return (Pe(), ee());
      }
      function Pe() {
        return (
          ep(Ge) &&
            (t.hasUnicodeEscape() || t.hasExtendedUnicodeEscape()) &&
            Oe(
              t.getTokenStart(),
              t.getTokenEnd(),
              f.Keywords_cannot_contain_escape_characters,
            ),
          xt()
        );
      }
      function gt() {
        return (Ge = t.scanJsDocToken());
      }
      function Bt(ee) {
        return (Ge = t.scanJSDocCommentTextToken(ee));
      }
      function gr() {
        return (Ge = t.reScanGreaterToken());
      }
      function tr() {
        return (Ge = t.reScanSlashToken());
      }
      function Jn(ee) {
        return (Ge = t.reScanTemplateToken(ee));
      }
      function ft() {
        return (Ge = t.reScanLessThanToken());
      }
      function Mt() {
        return (Ge = t.reScanHashToken());
      }
      function jt() {
        return (Ge = t.scanJsxIdentifier());
      }
      function Qt() {
        return (Ge = t.scanJsxToken());
      }
      function In() {
        return (Ge = t.scanJsxAttributeValue());
      }
      function yn(ee, ke) {
        const rt = Ge,
          Pt = Re.length,
          nn = en,
          _n = Kn,
          ei = ke !== 0 ? t.lookAhead(ee) : t.tryScan(ee);
        return (
          C.assert(_n === Kn),
          (!ei || ke !== 0) &&
            ((Ge = rt), ke !== 2 && (Re.length = Pt), (en = nn)),
          ei
        );
      }
      function wt(ee) {
        return yn(ee, 1);
      }
      function En(ee) {
        return yn(ee, 0);
      }
      function xn() {
        return te() === 80 ? !0 : te() > 118;
      }
      function Ln() {
        return te() === 80
          ? !0
          : (te() === 127 && Ue()) || (te() === 135 && nt())
            ? !1
            : te() > 118;
      }
      function ln(ee, ke, rt = !0) {
        return te() === ee
          ? (rt && Pe(), !0)
          : (ke ? Kt(ke) : Kt(f._0_expected, _a(ee)), !1);
      }
      const Ii = Object.keys(iF).filter((ee) => ee.length > 2);
      function ra(ee) {
        if (XT(ee)) {
          Oe(
            La(Ne, ee.template.pos),
            ee.template.end,
            f.Module_declaration_names_may_only_use_or_quoted_strings,
          );
          return;
        }
        const ke = He(ee) ? Kr(ee) : void 0;
        if (!ke || !fp(ke, Be)) {
          Kt(f._0_expected, _a(27));
          return;
        }
        const rt = La(Ne, ee.pos);
        switch (ke) {
          case "const":
          case "let":
          case "var":
            Oe(rt, ee.end, f.Variable_declaration_not_allowed_at_this_location);
            return;
          case "declare":
            return;
          case "interface":
            sa(
              f.Interface_name_cannot_be_0,
              f.Interface_must_be_given_a_name,
              19,
            );
            return;
          case "is":
            Oe(
              rt,
              t.getTokenStart(),
              f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods,
            );
            return;
          case "module":
          case "namespace":
            sa(
              f.Namespace_name_cannot_be_0,
              f.Namespace_must_be_given_a_name,
              19,
            );
            return;
          case "type":
            sa(
              f.Type_alias_name_cannot_be_0,
              f.Type_alias_must_be_given_a_name,
              64,
            );
            return;
        }
        const Pt = fS(ke, Ii, Vs) ?? zo(ke);
        if (Pt) {
          Oe(rt, ee.end, f.Unknown_keyword_or_identifier_Did_you_mean_0, Pt);
          return;
        }
        te() !== 0 && Oe(rt, ee.end, f.Unexpected_keyword_or_identifier);
      }
      function sa(ee, ke, rt) {
        te() === rt ? Kt(ke) : Kt(ee, t.getTokenValue());
      }
      function zo(ee) {
        for (const ke of Ii)
          if (ee.length > ke.length + 2 && po(ee, ke))
            return `${ke} ${ee.slice(ke.length)}`;
      }
      function Bl(ee, ke, rt) {
        if (te() === 60 && !t.hasPrecedingLineBreak()) {
          Kt(
            f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations,
          );
          return;
        }
        if (te() === 21) {
          (Kt(f.Cannot_start_a_function_call_in_a_type_annotation), Pe());
          return;
        }
        if (ke && !Lo()) {
          rt
            ? Kt(f._0_expected, _a(27))
            : Kt(f.Expected_for_property_initializer);
          return;
        }
        if (!fa()) {
          if (rt) {
            Kt(f._0_expected, _a(27));
            return;
          }
          ra(ee);
        }
      }
      function xl(ee) {
        return te() === ee
          ? (gt(), !0)
          : (C.assert(l6(ee)), Kt(f._0_expected, _a(ee)), !1);
      }
      function Ps(ee, ke, rt, Pt) {
        if (te() === ke) {
          Pe();
          return;
        }
        const nn = Kt(f._0_expected, _a(ke));
        rt &&
          nn &&
          pa(
            nn,
            CI(
              re,
              Ne,
              Pt,
              1,
              f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,
              _a(ee),
              _a(ke),
            ),
          );
      }
      function co(ee) {
        return te() === ee ? (Pe(), !0) : !1;
      }
      function Go(ee) {
        if (te() === ee) return ec();
      }
      function Tc(ee) {
        if (te() === ee) return bf();
      }
      function $s(ee, ke, rt) {
        return Go(ee) || As(ee, !1, ke || f._0_expected, rt || _a(ee));
      }
      function Ra(ee) {
        const ke = Tc(ee);
        return ke || (C.assert(l6(ee)), As(ee, !1, f._0_expected, _a(ee)));
      }
      function ec() {
        const ee = B(),
          ke = te();
        return (Pe(), Zt(k(ke), ee));
      }
      function bf() {
        const ee = B(),
          ke = te();
        return (gt(), Zt(k(ke), ee));
      }
      function Lo() {
        return te() === 27
          ? !0
          : te() === 20 || te() === 1 || t.hasPrecedingLineBreak();
      }
      function fa() {
        return Lo() ? (te() === 27 && Pe(), !0) : !1;
      }
      function is() {
        return fa() || ln(27);
      }
      function qa(ee, ke, rt, Pt) {
        const nn = g(ee, Pt);
        return (uh(nn, ke, rt ?? t.getTokenFullStart()), nn);
      }
      function Zt(ee, ke, rt) {
        return (
          uh(ee, ke, rt ?? t.getTokenFullStart()),
          Kn && (ee.flags |= Kn),
          en && ((en = !1), (ee.flags |= 262144)),
          ee
        );
      }
      function As(ee, ke, rt, ...Pt) {
        ke ? Tr(t.getTokenFullStart(), 0, rt, ...Pt) : rt && Kt(rt, ...Pt);
        const nn = B(),
          _n =
            ee === 80
              ? N("", void 0)
              : db(ee)
                ? h.createTemplateLiteralLikeNode(ee, "", "", void 0)
                : ee === 9
                  ? E("", void 0)
                  : ee === 11
                    ? A("", void 0)
                    : ee === 283
                      ? h.createMissingDeclaration()
                      : k(ee);
        return Zt(_n, nn);
      }
      function Hl(ee) {
        let ke = at.get(ee);
        return (ke === void 0 && at.set(ee, (ke = ee)), ke);
      }
      function sc(ee, ke, rt) {
        if (ee) {
          Wt++;
          const wr = t.hasPrecedingJSDocLeadingAsterisks()
              ? t.getTokenStart()
              : B(),
            pr = te(),
            Si = Hl(t.getTokenValue()),
            ao = t.hasExtendedUnicodeEscape();
          return (xt(), Zt(N(Si, pr, ao), wr));
        }
        if (te() === 81)
          return (
            Kt(
              rt || f.Private_identifiers_are_not_allowed_outside_class_bodies,
            ),
            sc(!0)
          );
        if (te() === 0 && t.tryScan(() => t.reScanInvalidIdentifier() === 80))
          return sc(!0);
        Wt++;
        const Pt = te() === 1,
          nn = t.isReservedWord(),
          _n = t.getTokenText(),
          ei = nn
            ? f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here
            : f.Identifier_expected;
        return As(80, Pt, ke || ei, _n);
      }
      function vd(ee) {
        return sc(xn(), void 0, ee);
      }
      function Fs(ee, ke) {
        return sc(Ln(), ee, ke);
      }
      function Ee(ee) {
        return sc(Xu(te()), ee);
      }
      function Y() {
        return (
          (t.hasUnicodeEscape() || t.hasExtendedUnicodeEscape()) &&
            Kt(f.Unicode_escape_sequence_cannot_appear_here),
          sc(Xu(te()))
        );
      }
      function pt() {
        return Xu(te()) || te() === 11 || te() === 9 || te() === 10;
      }
      function qt() {
        return Xu(te()) || te() === 11;
      }
      function fn(ee) {
        if (te() === 11 || te() === 9 || te() === 10) {
          const ke = kt();
          return ((ke.text = Hl(ke.text)), ke);
        }
        return te() === 23 ? si() : te() === 81 ? Dr() : Ee();
      }
      function ur() {
        return fn();
      }
      function si() {
        const ee = B();
        ln(23);
        const ke = Mn(Iu);
        return (ln(24), Zt(h.createComputedPropertyName(ke), ee));
      }
      function Dr() {
        const ee = B(),
          ke = P(Hl(t.getTokenValue()));
        return (Pe(), Zt(ke, ee));
      }
      function Fn(ee) {
        return te() === ee && En(So);
      }
      function ro() {
        return (Pe(), t.hasPrecedingLineBreak() ? !1 : Sc());
      }
      function So() {
        switch (te()) {
          case 87:
            return Pe() === 94;
          case 95:
            return (Pe(), te() === 90 ? wt(Hs) : te() === 156 ? wt(Da) : Ns());
          case 90:
            return Hs();
          case 126:
            return (Pe(), Sc());
          case 139:
          case 153:
            return (Pe(), fc());
          default:
            return ro();
        }
      }
      function Ns() {
        return (
          te() === 60 || (te() !== 42 && te() !== 130 && te() !== 19 && Sc())
        );
      }
      function Da() {
        return (Pe(), Ns());
      }
      function Qs() {
        return pb(te()) && En(So);
      }
      function Sc() {
        return te() === 23 || te() === 19 || te() === 42 || te() === 26 || pt();
      }
      function fc() {
        return te() === 23 || pt();
      }
      function Hs() {
        return (
          Pe(),
          te() === 86 ||
            te() === 100 ||
            te() === 120 ||
            te() === 60 ||
            (te() === 128 && wt(dp)) ||
            (te() === 134 && wt(Zf))
        );
      }
      function Pl(ee, ke) {
        if (tl(ee)) return !0;
        switch (ee) {
          case 0:
          case 1:
          case 3:
            return !(te() === 27 && ke) && Nv();
          case 2:
            return te() === 84 || te() === 90;
          case 4:
            return wt(Rm);
          case 5:
            return wt(fA) || (te() === 27 && !ke);
          case 6:
            return te() === 23 || pt();
          case 12:
            switch (te()) {
              case 23:
              case 42:
              case 26:
              case 25:
                return !0;
              default:
                return pt();
            }
          case 18:
            return pt();
          case 9:
            return te() === 23 || te() === 26 || pt();
          case 24:
            return qt();
          case 7:
            return te() === 19 ? wt(vh) : ke ? Ln() && !ze() : lp() && !ze();
          case 8:
            return Hx();
          case 10:
            return te() === 28 || te() === 26 || Hx();
          case 19:
            return te() === 103 || te() === 87 || Ln();
          case 15:
            switch (te()) {
              case 28:
              case 25:
                return !0;
            }
          case 11:
            return te() === 26 || Jd();
          case 16:
            return mt(!1);
          case 17:
            return mt(!0);
          case 20:
          case 21:
            return te() === 28 || qb();
          case 22:
            return mA();
          case 23:
            return te() === 161 && wt(Wg) ? !1 : te() === 11 ? !0 : Xu(te());
          case 13:
            return Xu(te()) || te() === 19;
          case 14:
            return !0;
          case 25:
            return !0;
          case 26:
            return C.fail("ParsingContext.Count used as a context");
          default:
            C.assertNever(ee, "Non-exhaustive case in 'isListElement'.");
        }
      }
      function vh() {
        if ((C.assert(te() === 19), Pe() === 20)) {
          const ee = Pe();
          return ee === 28 || ee === 19 || ee === 96 || ee === 119;
        }
        return !0;
      }
      function Pd() {
        return (Pe(), Ln());
      }
      function nf() {
        return (Pe(), Xu(te()));
      }
      function op() {
        return (Pe(), bee(te()));
      }
      function ze() {
        return te() === 119 || te() === 96 ? wt(Jt) : !1;
      }
      function Jt() {
        return (Pe(), Jd());
      }
      function er() {
        return (Pe(), qb());
      }
      function go(ee) {
        if (te() === 1) return !0;
        switch (ee) {
          case 1:
          case 2:
          case 4:
          case 5:
          case 6:
          case 12:
          case 9:
          case 23:
          case 24:
            return te() === 20;
          case 3:
            return te() === 20 || te() === 84 || te() === 90;
          case 7:
            return te() === 19 || te() === 96 || te() === 119;
          case 8:
            return Za();
          case 19:
            return (
              te() === 32 ||
              te() === 21 ||
              te() === 19 ||
              te() === 96 ||
              te() === 119
            );
          case 11:
            return te() === 22 || te() === 27;
          case 15:
          case 21:
          case 10:
            return te() === 24;
          case 17:
          case 16:
          case 18:
            return te() === 22 || te() === 24;
          case 20:
            return te() !== 28;
          case 22:
            return te() === 19 || te() === 20;
          case 13:
            return te() === 32 || te() === 44;
          case 14:
            return te() === 30 && wt(Fz);
          default:
            return !1;
        }
      }
      function Za() {
        return !!(Lo() || xu(te()) || te() === 39);
      }
      function es() {
        C.assert(cn, "Missing parsing context");
        for (let ee = 0; ee < 26; ee++)
          if (cn & (1 << ee) && (Pl(ee, !0) || go(ee))) return !0;
        return !1;
      }
      function Va(ee, ke) {
        const rt = cn;
        cn |= 1 << ee;
        const Pt = [],
          nn = B();
        for (; !go(ee); ) {
          if (Pl(ee, !1)) {
            Pt.push(Mc(ee, ke));
            continue;
          }
          if (Ng(ee)) break;
        }
        return ((cn = rt), qa(Pt, nn));
      }
      function Mc(ee, ke) {
        const rt = tl(ee);
        return rt ? Ll(rt) : ke();
      }
      function tl(ee, ke) {
        var rt;
        if (!je || !ql(ee) || en) return;
        const Pt = je.currentNode(ke ?? t.getTokenFullStart());
        if (
          !(Ol(Pt) || zje(Pt) || fI(Pt) || (Pt.flags & 101441536) !== Kn) &&
          rf(Pt, ee)
        )
          return (
            Ek(Pt) &&
              (rt = Pt.jsDoc) != null &&
              rt.jsDocCache &&
              (Pt.jsDoc.jsDocCache = void 0),
            Pt
          );
      }
      function Ll(ee) {
        return (t.resetTokenState(ee.end), Pe(), ee);
      }
      function ql(ee) {
        switch (ee) {
          case 5:
          case 2:
          case 0:
          case 1:
          case 3:
          case 6:
          case 4:
          case 8:
          case 17:
          case 16:
            return !0;
        }
        return !1;
      }
      function rf(ee, ke) {
        switch (ke) {
          case 5:
            return bd(ee);
          case 2:
            return ld(ee);
          case 0:
          case 1:
          case 3:
            return jp(ee);
          case 6:
            return Au(ee);
          case 4:
            return Xf(ee);
          case 8:
            return G_(ee);
          case 17:
          case 16:
            return Cg(ee);
        }
        return !1;
      }
      function bd(ee) {
        if (ee)
          switch (ee.kind) {
            case 177:
            case 182:
            case 178:
            case 179:
            case 173:
            case 241:
              return !0;
            case 175:
              const ke = ee;
              return !(
                ke.name.kind === 80 && ke.name.escapedText === "constructor"
              );
          }
        return !1;
      }
      function ld(ee) {
        if (ee)
          switch (ee.kind) {
            case 297:
            case 298:
              return !0;
          }
        return !1;
      }
      function jp(ee) {
        if (ee)
          switch (ee.kind) {
            case 263:
            case 244:
            case 242:
            case 246:
            case 245:
            case 258:
            case 254:
            case 256:
            case 253:
            case 252:
            case 250:
            case 251:
            case 249:
            case 248:
            case 255:
            case 243:
            case 259:
            case 257:
            case 247:
            case 260:
            case 273:
            case 272:
            case 279:
            case 278:
            case 268:
            case 264:
            case 265:
            case 267:
            case 266:
              return !0;
          }
        return !1;
      }
      function Au(ee) {
        return ee.kind === 307;
      }
      function Xf(ee) {
        if (ee)
          switch (ee.kind) {
            case 181:
            case 174:
            case 182:
            case 172:
            case 180:
              return !0;
          }
        return !1;
      }
      function G_(ee) {
        return ee.kind !== 261 ? !1 : ee.initializer === void 0;
      }
      function Cg(ee) {
        return ee.kind !== 170 ? !1 : ee.initializer === void 0;
      }
      function Ng(ee) {
        return (ap(ee), es() ? !0 : (Pe(), !1));
      }
      function ap(ee) {
        switch (ee) {
          case 0:
            return te() === 90
              ? Kt(f._0_expected, _a(95))
              : Kt(f.Declaration_or_statement_expected);
          case 1:
            return Kt(f.Declaration_or_statement_expected);
          case 2:
            return Kt(f.case_or_default_expected);
          case 3:
            return Kt(f.Statement_expected);
          case 18:
          case 4:
            return Kt(f.Property_or_signature_expected);
          case 5:
            return Kt(
              f.Unexpected_token_A_constructor_method_accessor_or_property_was_expected,
            );
          case 6:
            return Kt(f.Enum_member_expected);
          case 7:
            return Kt(f.Expression_expected);
          case 8:
            return ep(te())
              ? Kt(f._0_is_not_allowed_as_a_variable_declaration_name, _a(te()))
              : Kt(f.Variable_declaration_expected);
          case 9:
            return Kt(f.Property_destructuring_pattern_expected);
          case 10:
            return Kt(f.Array_element_destructuring_pattern_expected);
          case 11:
            return Kt(f.Argument_expression_expected);
          case 12:
            return Kt(f.Property_assignment_expected);
          case 15:
            return Kt(f.Expression_or_comma_expected);
          case 17:
            return Kt(f.Parameter_declaration_expected);
          case 16:
            return ep(te())
              ? Kt(f._0_is_not_allowed_as_a_parameter_name, _a(te()))
              : Kt(f.Parameter_declaration_expected);
          case 19:
            return Kt(f.Type_parameter_declaration_expected);
          case 20:
            return Kt(f.Type_argument_expected);
          case 21:
            return Kt(f.Type_expected);
          case 22:
            return Kt(f.Unexpected_token_expected);
          case 23:
            return te() === 161
              ? Kt(f._0_expected, "}")
              : Kt(f.Identifier_expected);
          case 13:
            return Kt(f.Identifier_expected);
          case 14:
            return Kt(f.Identifier_expected);
          case 24:
            return Kt(f.Identifier_or_string_literal_expected);
          case 25:
            return Kt(f.Identifier_expected);
          case 26:
            return C.fail("ParsingContext.Count used as a context");
          default:
            C.assertNever(ee);
        }
      }
      function Xc(ee, ke, rt) {
        const Pt = cn;
        cn |= 1 << ee;
        const nn = [],
          _n = B();
        let ei = -1;
        for (;;) {
          if (Pl(ee, !1)) {
            const wr = t.getTokenFullStart(),
              pr = Mc(ee, ke);
            if (!pr) {
              cn = Pt;
              return;
            }
            if ((nn.push(pr), (ei = t.getTokenStart()), co(28))) continue;
            if (((ei = -1), go(ee))) break;
            (ln(28, bh(ee)),
              rt && te() === 27 && !t.hasPrecedingLineBreak() && Pe(),
              wr === t.getTokenFullStart() && Pe());
            continue;
          }
          if (go(ee) || Ng(ee)) break;
        }
        return ((cn = Pt), qa(nn, _n, void 0, ei >= 0));
      }
      function bh(ee) {
        return ee === 6
          ? f.An_enum_member_name_must_be_followed_by_a_or
          : void 0;
      }
      function Tf() {
        const ee = qa([], B());
        return ((ee.isMissingList = !0), ee);
      }
      function p_(ee) {
        return !!ee.isMissingList;
      }
      function oe(ee, ke, rt, Pt) {
        if (ln(rt)) {
          const nn = Xc(ee, ke);
          return (ln(Pt), nn);
        }
        return Tf();
      }
      function ut(ee, ke) {
        const rt = B();
        let Pt = ee ? Ee(ke) : Fs(ke);
        for (; co(25) && te() !== 30; )
          Pt = Zt(h.createQualifiedName(Pt, an(ee, !1, !0)), rt);
        return Pt;
      }
      function tn(ee, ke) {
        return Zt(h.createQualifiedName(ee, ke), ee.pos);
      }
      function an(ee, ke, rt) {
        if (t.hasPrecedingLineBreak() && Xu(te()) && wt(zx))
          return As(80, !0, f.Identifier_expected);
        if (te() === 81) {
          const Pt = Dr();
          return ke ? Pt : As(80, !0, f.Identifier_expected);
        }
        return ee ? (rt ? Ee() : Y()) : Fs();
      }
      function wn(ee) {
        const ke = B(),
          rt = [];
        let Pt;
        do ((Pt = Ve(ee)), rt.push(Pt));
        while (Pt.literal.kind === 17);
        return qa(rt, ke);
      }
      function or(ee) {
        const ke = B();
        return Zt(h.createTemplateExpression(On(ee), wn(ee)), ke);
      }
      function ti() {
        const ee = B();
        return Zt(h.createTemplateLiteralType(On(!1), Ti()), ee);
      }
      function Ti() {
        const ee = B(),
          ke = [];
        let rt;
        do ((rt = $i()), ke.push(rt));
        while (rt.literal.kind === 17);
        return qa(ke, ee);
      }
      function $i() {
        const ee = B();
        return Zt(h.createTemplateLiteralTypeSpan(cl(), z(!1)), ee);
      }
      function z(ee) {
        return te() === 20 ? (Jn(ee), yo()) : $s(18, f._0_expected, _a(20));
      }
      function Ve(ee) {
        const ke = B();
        return Zt(h.createTemplateSpan(Mn(Iu), z(ee)), ke);
      }
      function kt() {
        return Eo(te());
      }
      function On(ee) {
        !ee && t.getTokenFlags() & 26656 && Jn(!1);
        const ke = Eo(te());
        return (
          C.assert(ke.kind === 16, "Template head has wrong token kind"),
          ke
        );
      }
      function yo() {
        const ee = Eo(te());
        return (
          C.assert(
            ee.kind === 17 || ee.kind === 18,
            "Template fragment has wrong token kind",
          ),
          ee
        );
      }
      function ta(ee) {
        const ke = ee === 15 || ee === 18,
          rt = t.getTokenText();
        return rt.substring(
          1,
          rt.length - (t.isUnterminated() ? 0 : ke ? 1 : 2),
        );
      }
      function Eo(ee) {
        const ke = B(),
          rt = db(ee)
            ? h.createTemplateLiteralLikeNode(
                ee,
                t.getTokenValue(),
                ta(ee),
                t.getTokenFlags() & 7176,
              )
            : ee === 9
              ? E(t.getTokenValue(), t.getNumericLiteralFlags())
              : ee === 11
                ? A(t.getTokenValue(), void 0, t.hasExtendedUnicodeEscape())
                : ON(ee)
                  ? R(ee, t.getTokenValue())
                  : C.fail();
        return (
          t.hasExtendedUnicodeEscape() && (rt.hasExtendedUnicodeEscape = !0),
          t.isUnterminated() && (rt.isUnterminated = !0),
          Pe(),
          Zt(rt, ke)
        );
      }
      function Vo() {
        return ut(!0, f.Type_expected);
      }
      function ml() {
        if (!t.hasPrecedingLineBreak() && ft() === 30)
          return oe(20, cl, 30, 32);
      }
      function Ca() {
        const ee = B();
        return Zt(h.createTypeReferenceNode(Vo(), ml()), ee);
      }
      function cd(ee) {
        switch (ee.kind) {
          case 184:
            return Ol(ee.typeName);
          case 185:
          case 186: {
            const { parameters: ke, type: rt } = ee;
            return p_(ke) || cd(rt);
          }
          case 197:
            return cd(ee.type);
          default:
            return !1;
        }
      }
      function Up(ee) {
        return (Pe(), Zt(h.createTypePredicateNode(void 0, ee, cl()), ee.pos));
      }
      function Sf() {
        const ee = B();
        return (Pe(), Zt(h.createThisTypeNode(), ee));
      }
      function Yf() {
        const ee = B();
        return (Pe(), Zt(h.createJSDocAllType(), ee));
      }
      function Ty() {
        const ee = B();
        return (Pe(), Zt(h.createJSDocNonNullableType(lE(), !1), ee));
      }
      function Tv() {
        const ee = B();
        return (
          Pe(),
          te() === 28 ||
          te() === 20 ||
          te() === 22 ||
          te() === 32 ||
          te() === 64 ||
          te() === 52
            ? Zt(h.createJSDocUnknownType(), ee)
            : Zt(h.createJSDocNullableType(cl(), !1), ee)
        );
      }
      function Bu() {
        const ee = B(),
          ke = Ae();
        if (En(Kx)) {
          const rt = _i(36),
            Pt = lr(59, !1);
          return Pr(Zt(h.createJSDocFunctionType(rt, Pt), ee), ke);
        }
        return Zt(h.createTypeReferenceNode(Ee(), void 0), ee);
      }
      function V_() {
        const ee = B();
        let ke;
        return (
          (te() === 110 || te() === 105) && ((ke = Ee()), ln(59)),
          Zt(
            h.createParameterDeclaration(
              void 0,
              void 0,
              ke,
              void 0,
              Th(),
              void 0,
            ),
            ee,
          )
        );
      }
      function Th() {
        t.setSkipJsDocLeadingAsterisks(!0);
        const ee = B();
        if (co(144)) {
          const Pt = h.createJSDocNamepathType(void 0);
          e: for (;;)
            switch (te()) {
              case 20:
              case 1:
              case 28:
              case 5:
                break e;
              default:
                gt();
            }
          return (t.setSkipJsDocLeadingAsterisks(!1), Zt(Pt, ee));
        }
        const ke = co(26);
        let rt = Iy();
        return (
          t.setSkipJsDocLeadingAsterisks(!1),
          ke && (rt = Zt(h.createJSDocVariadicType(rt), ee)),
          te() === 64 ? (Pe(), Zt(h.createJSDocOptionalType(rt), ee)) : rt
        );
      }
      function Im() {
        const ee = B();
        ln(114);
        const ke = ut(!0),
          rt = t.hasPrecedingLineBreak() ? void 0 : bl();
        return Zt(h.createTypeQueryNode(ke, rt), ee);
      }
      function Hb() {
        const ee = B(),
          ke = wi(!1, !0),
          rt = Fs();
        let Pt, nn;
        co(96) && (qb() || !Jd() ? (Pt = cl()) : (nn = N0()));
        const _n = co(64) ? cl() : void 0,
          ei = h.createTypeParameterDeclaration(ke, rt, Pt, _n);
        return ((ei.expression = nn), Zt(ei, ee));
      }
      function Xe() {
        if (te() === 30) return oe(19, Hb, 30, 32);
      }
      function mt(ee) {
        return te() === 26 || Hx() || pb(te()) || te() === 60 || qb(!ee);
      }
      function Yt(ee) {
        const ke = Mv(f.Private_identifiers_cannot_be_used_as_parameters);
        return (K2(ke) === 0 && !yt(ee) && pb(te()) && Pe(), ke);
      }
      function Rn() {
        return xn() || te() === 23 || te() === 19;
      }
      function Qn(ee) {
        return Yn(ee);
      }
      function Lr(ee) {
        return Yn(ee, !1);
      }
      function Yn(ee, ke = !0) {
        const rt = B(),
          Pt = Ae(),
          nn = ee ? ne(() => wi(!0)) : Fe(() => wi(!0));
        if (te() === 110) {
          const pr = h.createParameterDeclaration(
              nn,
              void 0,
              sc(!0),
              void 0,
              qd(),
              void 0,
            ),
            Si = Ac(nn);
          return (
            Si &&
              Nt(
                Si,
                f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters,
              ),
            Pr(Zt(pr, rt), Pt)
          );
        }
        const _n = _t;
        _t = !1;
        const ei = Go(26);
        if (!ke && !Rn()) return;
        const wr = Pr(
          Zt(
            h.createParameterDeclaration(nn, ei, Yt(nn), Go(58), qd(), q_()),
            rt,
          ),
          Pt,
        );
        return ((_t = _n), wr);
      }
      function lr(ee, ke) {
        if (Oi(ee, ke)) return ot(Iy);
      }
      function Oi(ee, ke) {
        return ee === 39
          ? (ln(ee), !0)
          : co(59)
            ? !0
            : ke && te() === 39
              ? (Kt(f._0_expected, _a(59)), Pe(), !0)
              : !1;
      }
      function Ro(ee, ke) {
        const rt = Ue(),
          Pt = nt();
        (ri(!!(ee & 1)), qi(!!(ee & 2)));
        const nn = ee & 32 ? Xc(17, V_) : Xc(16, () => (ke ? Qn(Pt) : Lr(Pt)));
        return (ri(rt), qi(Pt), nn);
      }
      function _i(ee) {
        if (!ln(21)) return Tf();
        const ke = Ro(ee, !0);
        return (ln(22), ke);
      }
      function Do() {
        co(28) || is();
      }
      function Qi(ee) {
        const ke = B(),
          rt = Ae();
        ee === 181 && ln(105);
        const Pt = Xe(),
          nn = _i(4),
          _n = lr(59, !0);
        Do();
        const ei =
          ee === 180
            ? h.createCallSignature(Pt, nn, _n)
            : h.createConstructSignature(Pt, nn, _n);
        return Pr(Zt(ei, ke), rt);
      }
      function hl() {
        return te() === 23 && wt(sp);
      }
      function sp() {
        if ((Pe(), te() === 26 || te() === 24)) return !0;
        if (pb(te())) {
          if ((Pe(), Ln())) return !0;
        } else if (Ln()) Pe();
        else return !1;
        return te() === 59 || te() === 28
          ? !0
          : te() !== 58
            ? !1
            : (Pe(), te() === 59 || te() === 28 || te() === 24);
      }
      function xm(ee, ke, rt) {
        const Pt = oe(16, () => Qn(!1), 23, 24),
          nn = qd();
        Do();
        const _n = h.createIndexSignature(rt, Pt, nn);
        return Pr(Zt(_n, ee), ke);
      }
      function Td(ee, ke, rt) {
        const Pt = ur(),
          nn = Go(58);
        let _n;
        if (te() === 21 || te() === 30) {
          const ei = Xe(),
            wr = _i(4),
            pr = lr(59, !0);
          _n = h.createMethodSignature(rt, Pt, nn, ei, wr, pr);
        } else {
          const ei = qd();
          ((_n = h.createPropertySignature(rt, Pt, nn, ei)),
            te() === 64 && (_n.initializer = q_()));
        }
        return (Do(), Pr(Zt(_n, ee), ke));
      }
      function Rm() {
        if (te() === 21 || te() === 30 || te() === 139 || te() === 153)
          return !0;
        let ee = !1;
        for (; pb(te()); ) ((ee = !0), Pe());
        return te() === 23
          ? !0
          : (pt() && ((ee = !0), Pe()),
            ee
              ? te() === 21 ||
                te() === 30 ||
                te() === 58 ||
                te() === 59 ||
                te() === 28 ||
                Lo()
              : !1);
      }
      function Hp() {
        if (te() === 21 || te() === 30) return Qi(180);
        if (te() === 105 && wt(b0)) return Qi(181);
        const ee = B(),
          ke = Ae(),
          rt = wi(!1);
        return Fn(139)
          ? B0(ee, ke, rt, 178, 4)
          : Fn(153)
            ? B0(ee, ke, rt, 179, 4)
            : hl()
              ? xm(ee, ke, rt)
              : Td(ee, ke, rt);
      }
      function b0() {
        return (Pe(), te() === 21 || te() === 30);
      }
      function f_() {
        return Pe() === 25;
      }
      function j_() {
        switch (Pe()) {
          case 21:
          case 30:
          case 25:
            return !0;
        }
        return !1;
      }
      function T0() {
        const ee = B();
        return Zt(h.createTypeLiteralNode(U_()), ee);
      }
      function U_() {
        let ee;
        return (ln(19) ? ((ee = Va(4, Hp)), ln(20)) : (ee = Tf()), ee);
      }
      function TC() {
        return (
          Pe(),
          te() === 40 || te() === 41
            ? Pe() === 148
            : (te() === 148 && Pe(), te() === 23 && Pd() && Pe() === 103)
        );
      }
      function tL() {
        const ee = B(),
          ke = Ee();
        ln(103);
        const rt = cl();
        return Zt(h.createTypeParameterDeclaration(void 0, ke, rt, void 0), ee);
      }
      function SC() {
        const ee = B();
        ln(19);
        let ke;
        ((te() === 148 || te() === 40 || te() === 41) &&
          ((ke = ec()), ke.kind !== 148 && ln(148)),
          ln(23));
        const rt = tL(),
          Pt = co(130) ? cl() : void 0;
        ln(24);
        let nn;
        (te() === 58 || te() === 40 || te() === 41) &&
          ((nn = ec()), nn.kind !== 58 && ln(58));
        const _n = qd();
        is();
        const ei = Va(4, Hp);
        return (ln(20), Zt(h.createMappedTypeNode(ke, rt, Pt, nn, _n, ei), ee));
      }
      function Mg() {
        const ee = B();
        if (co(26)) return Zt(h.createRestTypeNode(cl()), ee);
        const ke = cl();
        if (RD(ke) && ke.pos === ke.type.pos) {
          const rt = h.createOptionalTypeNode(ke.type);
          return (vt(rt, ke), (rt.flags = ke.flags), rt);
        }
        return ke;
      }
      function S0() {
        return Pe() === 59 || (te() === 58 && Pe() === 59);
      }
      function q1() {
        return te() === 26 ? Xu(Pe()) && S0() : Xu(te()) && S0();
      }
      function Sv() {
        if (wt(q1)) {
          const ee = B(),
            ke = Ae(),
            rt = Go(26),
            Pt = Ee(),
            nn = Go(58);
          ln(59);
          const _n = Mg(),
            ei = h.createNamedTupleMember(rt, Pt, nn, _n);
          return Pr(Zt(ei, ee), ke);
        }
        return Mg();
      }
      function J1() {
        const ee = B();
        return Zt(h.createTupleTypeNode(oe(21, Sv, 23, 24)), ee);
      }
      function Dx() {
        const ee = B();
        ln(21);
        const ke = cl();
        return (ln(22), Zt(h.createParenthesizedType(ke), ee));
      }
      function nL() {
        let ee;
        if (te() === 128) {
          const ke = B();
          Pe();
          const rt = Zt(k(128), ke);
          ee = qa([rt], ke);
        }
        return ee;
      }
      function K1() {
        const ee = B(),
          ke = Ae(),
          rt = nL(),
          Pt = co(105);
        C.assert(
          !rt || Pt,
          "Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.",
        );
        const nn = Xe(),
          _n = _i(4),
          ei = lr(39, !1),
          wr = Pt
            ? h.createConstructorTypeNode(rt, nn, _n, ei)
            : h.createFunctionTypeNode(nn, _n, ei);
        return Pr(Zt(wr, ee), ke);
      }
      function Cx() {
        const ee = ec();
        return te() === 25 ? void 0 : ee;
      }
      function E0(ee) {
        const ke = B();
        ee && Pe();
        let rt = te() === 112 || te() === 97 || te() === 106 ? ec() : Eo(te());
        return (
          ee && (rt = Zt(h.createPrefixUnaryExpression(41, rt), ke)),
          Zt(h.createLiteralTypeNode(rt), ke)
        );
      }
      function EC() {
        return (Pe(), te() === 102);
      }
      function X1() {
        be |= 4194304;
        const ee = B(),
          ke = co(114);
        (ln(102), ln(21));
        const rt = cl();
        let Pt;
        if (co(28)) {
          const ei = t.getTokenStart();
          ln(19);
          const wr = te();
          if (
            (wr === 118 || wr === 132 ? Pe() : Kt(f._0_expected, _a(118)),
            ln(59),
            (Pt = aT(wr, !0)),
            co(28),
            !ln(20))
          ) {
            const pr = Zs(Re);
            pr &&
              pr.code === f._0_expected.code &&
              pa(
                pr,
                CI(
                  re,
                  Ne,
                  ei,
                  1,
                  f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,
                  "{",
                  "}",
                ),
              );
          }
        }
        ln(22);
        const nn = co(25) ? Vo() : void 0,
          _n = ml();
        return Zt(h.createImportTypeNode(rt, Pt, nn, _n, ke), ee);
      }
      function Nx() {
        return (Pe(), te() === 9 || te() === 10);
      }
      function lE() {
        switch (te()) {
          case 133:
          case 159:
          case 154:
          case 150:
          case 163:
          case 155:
          case 136:
          case 157:
          case 146:
          case 151:
            return En(Cx) || Ca();
          case 67:
            t.reScanAsteriskEqualsToken();
          case 42:
            return Yf();
          case 61:
            t.reScanQuestionToken();
          case 58:
            return Tv();
          case 100:
            return Bu();
          case 54:
            return Ty();
          case 15:
          case 11:
          case 9:
          case 10:
          case 112:
          case 97:
          case 106:
            return E0();
          case 41:
            return wt(Nx) ? E0(!0) : Ca();
          case 116:
            return ec();
          case 110: {
            const ee = Sf();
            return te() === 142 && !t.hasPrecedingLineBreak() ? Up(ee) : ee;
          }
          case 114:
            return wt(EC) ? X1() : Im();
          case 19:
            return wt(TC) ? SC() : T0();
          case 23:
            return J1();
          case 21:
            return Dx();
          case 102:
            return X1();
          case 131:
            return wt(zx) ? H_() : Ca();
          case 16:
            return ti();
          default:
            return Ca();
        }
      }
      function qb(ee) {
        switch (te()) {
          case 133:
          case 159:
          case 154:
          case 150:
          case 163:
          case 136:
          case 148:
          case 155:
          case 158:
          case 116:
          case 157:
          case 106:
          case 110:
          case 114:
          case 146:
          case 19:
          case 23:
          case 30:
          case 52:
          case 51:
          case 105:
          case 11:
          case 9:
          case 10:
          case 112:
          case 97:
          case 151:
          case 42:
          case 58:
          case 54:
          case 26:
          case 140:
          case 102:
          case 131:
          case 15:
          case 16:
            return !0;
          case 100:
            return !ee;
          case 41:
            return !ee && wt(Nx);
          case 21:
            return !ee && wt(Mx);
          default:
            return Ln();
        }
      }
      function Mx() {
        return (Pe(), te() === 22 || mt(!1) || qb());
      }
      function Px() {
        const ee = B();
        let ke = lE();
        for (; !t.hasPrecedingLineBreak(); )
          switch (te()) {
            case 54:
              (Pe(), (ke = Zt(h.createJSDocNonNullableType(ke, !0), ee)));
              break;
            case 58:
              if (wt(er)) return ke;
              (Pe(), (ke = Zt(h.createJSDocNullableType(ke, !0), ee)));
              break;
            case 23:
              if ((ln(23), qb())) {
                const rt = cl();
                (ln(24), (ke = Zt(h.createIndexedAccessTypeNode(ke, rt), ee)));
              } else (ln(24), (ke = Zt(h.createArrayTypeNode(ke), ee)));
              break;
            default:
              return ke;
          }
        return ke;
      }
      function cE(ee) {
        const ke = B();
        return (ln(ee), Zt(h.createTypeOperatorNode(ee, Ey()), ke));
      }
      function Jb() {
        if (co(96)) {
          const ee = Ft(cl);
          if (It() || te() !== 58) return ee;
        }
      }
      function Ev() {
        const ee = B(),
          ke = Fs(),
          rt = En(Jb),
          Pt = h.createTypeParameterDeclaration(void 0, ke, rt);
        return Zt(Pt, ee);
      }
      function Sy() {
        const ee = B();
        return (ln(140), Zt(h.createInferTypeNode(Ev()), ee));
      }
      function Ey() {
        const ee = te();
        switch (ee) {
          case 143:
          case 158:
          case 148:
            return cE(ee);
          case 140:
            return Sy();
        }
        return ot(Px);
      }
      function Ay(ee) {
        if (ns()) {
          const ke = K1();
          let rt;
          return (
            w_(ke)
              ? (rt = ee
                  ? f.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type
                  : f.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type)
              : (rt = ee
                  ? f.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type
                  : f.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),
            Nt(ke, rt),
            ke
          );
        }
      }
      function Kb(ee, ke, rt) {
        const Pt = B(),
          nn = ee === 52,
          _n = co(ee);
        let ei = (_n && Ay(nn)) || ke();
        if (te() === ee || _n) {
          const wr = [ei];
          for (; co(ee); ) wr.push(Ay(nn) || ke());
          ei = Zt(rt(qa(wr, Pt)), Pt);
        }
        return ei;
      }
      function A0() {
        return Kb(51, Ey, h.createIntersectionTypeNode);
      }
      function Y1() {
        return Kb(52, A0, h.createUnionTypeNode);
      }
      function I0() {
        return (Pe(), te() === 105);
      }
      function ns() {
        return te() === 30 || (te() === 21 && wt(AC))
          ? !0
          : te() === 105 || (te() === 128 && wt(I0));
      }
      function $1() {
        if ((pb(te()) && wi(!1), Ln() || te() === 110)) return (Pe(), !0);
        if (te() === 23 || te() === 19) {
          const ee = Re.length;
          return (Mv(), ee === Re.length);
        }
        return !1;
      }
      function AC() {
        return (
          Pe(),
          !!(
            te() === 22 ||
            te() === 26 ||
            ($1() &&
              (te() === 59 ||
                te() === 28 ||
                te() === 58 ||
                te() === 64 ||
                (te() === 22 && (Pe(), te() === 39))))
          )
        );
      }
      function Iy() {
        const ee = B(),
          ke = Ln() && En(xy),
          rt = cl();
        return ke ? Zt(h.createTypePredicateNode(void 0, ke, rt), ee) : rt;
      }
      function xy() {
        const ee = Fs();
        if (te() === 142 && !t.hasPrecedingLineBreak()) return (Pe(), ee);
      }
      function H_() {
        const ee = B(),
          ke = $s(131),
          rt = te() === 110 ? Sf() : Fs(),
          Pt = co(142) ? cl() : void 0;
        return Zt(h.createTypePredicateNode(ke, rt, Pt), ee);
      }
      function cl() {
        if (Kn & 81920) return $o(81920, cl);
        if (ns()) return K1();
        const ee = B(),
          ke = Y1();
        if (!It() && !t.hasPrecedingLineBreak() && co(96)) {
          const rt = Ft(cl);
          ln(58);
          const Pt = ot(cl);
          ln(59);
          const nn = ot(cl);
          return Zt(h.createConditionalTypeNode(ke, rt, Pt, nn), ee);
        }
        return ke;
      }
      function qd() {
        return co(59) ? cl() : void 0;
      }
      function lp() {
        switch (te()) {
          case 110:
          case 108:
          case 106:
          case 112:
          case 97:
          case 9:
          case 10:
          case 11:
          case 15:
          case 16:
          case 21:
          case 23:
          case 19:
          case 100:
          case 86:
          case 105:
          case 44:
          case 69:
          case 80:
            return !0;
          case 102:
            return wt(j_);
          default:
            return Ln();
        }
      }
      function Jd() {
        if (lp()) return !0;
        switch (te()) {
          case 40:
          case 41:
          case 55:
          case 54:
          case 91:
          case 114:
          case 116:
          case 46:
          case 47:
          case 30:
          case 135:
          case 127:
          case 81:
          case 60:
            return !0;
          default:
            return Cm() ? !0 : Ln();
        }
      }
      function x0() {
        return (
          te() !== 19 && te() !== 100 && te() !== 86 && te() !== 60 && Jd()
        );
      }
      function Iu() {
        const ee = Ot();
        ee && ai(!1);
        const ke = B();
        let rt = Gu(!0),
          Pt;
        for (; (Pt = Go(28)); ) rt = ja(rt, Pt, Gu(!0), ke);
        return (ee && ai(!0), rt);
      }
      function q_() {
        return co(64) ? Gu(!0) : void 0;
      }
      function Gu(ee) {
        if (Dm()) return R0();
        const ke = rL(ee) || Qe(ee);
        if (ke) return ke;
        const rt = B(),
          Pt = Ae(),
          nn = Xb(0);
        return nn.kind === 80 && te() === 39
          ? D0(rt, nn, ee, Pt, void 0)
          : $u(nn) && sy(gr())
            ? ja(nn, ec(), Gu(ee), rt)
            : Iv(nn, rt, ee);
      }
      function Dm() {
        return te() === 127 ? (Ue() ? !0 : wt(hE)) : !1;
      }
      function qm() {
        return (Pe(), !t.hasPrecedingLineBreak() && Ln());
      }
      function R0() {
        const ee = B();
        return (
          Pe(),
          !t.hasPrecedingLineBreak() && (te() === 42 || Jd())
            ? Zt(h.createYieldExpression(Go(42), Gu(!0)), ee)
            : Zt(h.createYieldExpression(void 0, void 0), ee)
        );
      }
      function D0(ee, ke, rt, Pt, nn) {
        C.assert(
          te() === 39,
          "parseSimpleArrowFunctionExpression should only have been called if we had a =>",
        );
        const _n = h.createParameterDeclaration(
          void 0,
          void 0,
          ke,
          void 0,
          void 0,
          void 0,
        );
        Zt(_n, ke.pos);
        const ei = qa([_n], _n.pos, _n.end),
          wr = $s(39),
          pr = Jm(!!nn, rt),
          Si = h.createArrowFunction(nn, void 0, ei, void 0, wr, pr);
        return Pr(Zt(Si, ee), Pt);
      }
      function rL(ee) {
        const ke = IC();
        if (ke !== 0) return ke === 1 ? Pg(!0, !0) : En(() => dE(ee));
      }
      function IC() {
        return te() === 21 || te() === 30 || te() === 134
          ? wt(Av)
          : te() === 39
            ? 1
            : 0;
      }
      function Av() {
        if (
          te() === 134 &&
          (Pe(), t.hasPrecedingLineBreak() || (te() !== 21 && te() !== 30))
        )
          return 0;
        const ee = te(),
          ke = Pe();
        if (ee === 21) {
          if (ke === 22)
            switch (Pe()) {
              case 39:
              case 59:
              case 19:
                return 1;
              default:
                return 0;
            }
          if (ke === 23 || ke === 19) return 2;
          if (ke === 26) return 1;
          if (pb(ke) && ke !== 134 && wt(Pd)) return Pe() === 130 ? 0 : 1;
          if (!Ln() && ke !== 110) return 0;
          switch (Pe()) {
            case 59:
              return 1;
            case 58:
              return (
                Pe(),
                te() === 59 || te() === 28 || te() === 64 || te() === 22 ? 1 : 0
              );
            case 28:
            case 64:
            case 22:
              return 2;
          }
          return 0;
        } else
          return (
            C.assert(ee === 30),
            !Ln() && te() !== 87
              ? 0
              : ce === 1
                ? wt(() => {
                    co(87);
                    const Pt = Pe();
                    if (Pt === 96)
                      switch (Pe()) {
                        case 64:
                        case 32:
                        case 44:
                          return !1;
                        default:
                          return !0;
                      }
                    else if (Pt === 28 || Pt === 64) return !0;
                    return !1;
                  })
                  ? 1
                  : 0
                : 2
          );
      }
      function dE(ee) {
        const ke = t.getTokenStart();
        if (gn?.has(ke)) return;
        const rt = Pg(!1, ee);
        return (rt || (gn || (gn = new Set())).add(ke), rt);
      }
      function Qe(ee) {
        if (te() === 134 && wt(Q1) === 1) {
          const ke = B(),
            rt = Ae(),
            Pt = Ao(),
            nn = Xb(0);
          return D0(ke, nn, ee, rt, Pt);
        }
      }
      function Q1() {
        if (te() === 134) {
          if ((Pe(), t.hasPrecedingLineBreak() || te() === 39)) return 0;
          const ee = Xb(0);
          if (!t.hasPrecedingLineBreak() && ee.kind === 80 && te() === 39)
            return 1;
        }
        return 0;
      }
      function Pg(ee, ke) {
        const rt = B(),
          Pt = Ae(),
          nn = Ao(),
          _n = yt(nn, FM) ? 2 : 0,
          ei = Xe();
        let wr;
        if (ln(21)) {
          if (ee) wr = Ro(_n, ee);
          else {
            const kv = Ro(_n, ee);
            if (!kv) return;
            wr = kv;
          }
          if (!ln(22) && !ee) return;
        } else {
          if (!ee) return;
          wr = Tf();
        }
        const pr = te() === 59,
          Si = lr(59, !1);
        if (Si && !ee && cd(Si)) return;
        let ao = Si;
        for (; ao?.kind === 197; ) ao = ao.type;
        const zs = ao && DD(ao);
        if (!ee && te() !== 39 && (zs || te() !== 19)) return;
        const Is = te(),
          as = $s(39),
          em = Is === 39 || Is === 19 ? Jm(yt(nn, FM), ke) : Fs();
        if (!ke && pr && te() !== 59) return;
        const xf = h.createArrowFunction(nn, ei, wr, Si, as, em);
        return Pr(Zt(xf, rt), Pt);
      }
      function Jm(ee, ke) {
        if (te() === 19) return nT(ee ? 2 : 0);
        if (te() !== 27 && te() !== 100 && te() !== 86 && Nv() && !x0())
          return nT(16 | (ee ? 2 : 0));
        const rt = Ue();
        ri(!1);
        const Pt = _t;
        _t = !1;
        const nn = ee ? ne(() => Gu(ke)) : Fe(() => Gu(ke));
        return ((_t = Pt), ri(rt), nn);
      }
      function Iv(ee, ke, rt) {
        const Pt = Go(58);
        if (!Pt) return ee;
        let nn;
        return Zt(
          h.createConditionalExpression(
            ee,
            Pt,
            $o(r, () => Gu(!1)),
            (nn = $s(59)),
            fm(nn) ? Gu(rt) : As(80, !1, f._0_expected, _a(59)),
          ),
          ke,
        );
      }
      function Xb(ee) {
        const ke = B(),
          rt = N0();
        return Sh(ee, rt, ke);
      }
      function xu(ee) {
        return ee === 103 || ee === 165;
      }
      function Sh(ee, ke, rt) {
        for (;;) {
          gr();
          const Pt = Mk(te());
          if (!(te() === 43 ? Pt >= ee : Pt > ee) || (te() === 103 && Rt()))
            break;
          if (te() === 130 || te() === 152) {
            if (t.hasPrecedingLineBreak()) break;
            {
              const _n = te();
              (Pe(), (ke = _n === 152 ? C0(ke, cl()) : Ef(ke, cl())));
            }
          } else ke = ja(ke, ec(), Xb(Pt), rt);
        }
        return ke;
      }
      function Cm() {
        return Rt() && te() === 103 ? !1 : Mk(te()) > 0;
      }
      function C0(ee, ke) {
        return Zt(h.createSatisfiesExpression(ee, ke), ee.pos);
      }
      function ja(ee, ke, rt, Pt) {
        return Zt(h.createBinaryExpression(ee, ke, rt), Pt);
      }
      function Ef(ee, ke) {
        return Zt(h.createAsExpression(ee, ke), ee.pos);
      }
      function xv() {
        const ee = B();
        return Zt(h.createPrefixUnaryExpression(te(), Xt(Rv)), ee);
      }
      function Z1() {
        const ee = B();
        return Zt(h.createDeleteExpression(Xt(Rv)), ee);
      }
      function Ry() {
        const ee = B();
        return Zt(h.createTypeOfExpression(Xt(Rv)), ee);
      }
      function uE() {
        const ee = B();
        return Zt(h.createVoidExpression(Xt(Rv)), ee);
      }
      function $f() {
        return te() === 135 ? (nt() ? !0 : wt(hE)) : !1;
      }
      function Lg() {
        const ee = B();
        return Zt(h.createAwaitExpression(Xt(Rv)), ee);
      }
      function N0() {
        if (m_()) {
          const rt = B(),
            Pt = pE();
          return te() === 43 ? Sh(Mk(te()), Pt, rt) : Pt;
        }
        const ee = te(),
          ke = Rv();
        if (te() === 43) {
          const rt = La(Ne, ke.pos),
            { end: Pt } = ke;
          ke.kind === 217
            ? Oe(
                rt,
                Pt,
                f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,
              )
            : (C.assert(l6(ee)),
              Oe(
                rt,
                Pt,
                f.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,
                _a(ee),
              ));
        }
        return ke;
      }
      function Rv() {
        switch (te()) {
          case 40:
          case 41:
          case 55:
          case 54:
            return xv();
          case 91:
            return Z1();
          case 114:
            return Ry();
          case 116:
            return uE();
          case 30:
            return ce === 1 ? Sd(!0, void 0, void 0, !0) : du();
          case 135:
            if ($f()) return Lg();
          default:
            return pE();
        }
      }
      function m_() {
        switch (te()) {
          case 40:
          case 41:
          case 55:
          case 54:
          case 91:
          case 114:
          case 116:
          case 135:
            return !1;
          case 30:
            if (ce !== 1) return !1;
          default:
            return !0;
        }
      }
      function pE() {
        if (te() === 46 || te() === 47) {
          const ke = B();
          return Zt(h.createPrefixUnaryExpression(te(), Xt(M0)), ke);
        } else if (ce === 1 && te() === 30 && wt(op)) return Sd(!0);
        const ee = M0();
        if (
          (C.assert($u(ee)),
          (te() === 46 || te() === 47) && !t.hasPrecedingLineBreak())
        ) {
          const ke = te();
          return (Pe(), Zt(h.createPostfixUnaryExpression(ee, ke), ee.pos));
        }
        return ee;
      }
      function M0() {
        const ee = B();
        let ke;
        return (
          te() === 102
            ? wt(b0)
              ? ((be |= 4194304), (ke = ec()))
              : wt(f_)
                ? (Pe(),
                  Pe(),
                  (ke = Zt(h.createMetaProperty(102, Ee()), ee)),
                  ke.name.escapedText === "defer"
                    ? (te() === 21 || te() === 30) && (be |= 4194304)
                    : (be |= 8388608))
                : (ke = Jr())
            : (ke = te() === 108 ? Vr() : Jr()),
          cp(ee, ke)
        );
      }
      function Jr() {
        const ee = B(),
          ke = L0();
        return Af(ee, ke, !0);
      }
      function Vr() {
        const ee = B();
        let ke = ec();
        if (te() === 30) {
          const rt = B(),
            Pt = En(P0);
          Pt !== void 0 &&
            (Oe(rt, B(), f.super_may_not_use_type_arguments),
            Km() || (ke = h.createExpressionWithTypeArguments(ke, Pt)));
        }
        return te() === 21 || te() === 25 || te() === 23
          ? ke
          : ($s(
              25,
              f.super_must_be_followed_by_an_argument_list_or_member_access,
            ),
            Zt(G(ke, an(!0, !0, !0)), ee));
      }
      function Sd(ee, ke, rt, Pt = !1) {
        const nn = B(),
          _n = iL(ee);
        let ei;
        if (_n.kind === 287) {
          let wr = fE(_n),
            pr;
          const Si = wr[wr.length - 1];
          if (
            Si?.kind === 285 &&
            !a0(Si.openingElement.tagName, Si.closingElement.tagName) &&
            a0(_n.tagName, Si.closingElement.tagName)
          ) {
            const ao = Si.children.end,
              zs = Zt(
                h.createJsxElement(
                  Si.openingElement,
                  Si.children,
                  Zt(h.createJsxClosingElement(Zt(N(""), ao, ao)), ao, ao),
                ),
                Si.openingElement.pos,
                ao,
              );
            ((wr = qa([...wr.slice(0, wr.length - 1), zs], wr.pos, ao)),
              (pr = Si.closingElement));
          } else
            ((pr = RC(_n, ee)),
              a0(_n.tagName, pr.tagName) ||
                (rt && ph(rt) && a0(pr.tagName, rt.tagName)
                  ? Nt(
                      _n.tagName,
                      f.JSX_element_0_has_no_corresponding_closing_tag,
                      jN(Ne, _n.tagName),
                    )
                  : Nt(
                      pr.tagName,
                      f.Expected_corresponding_JSX_closing_tag_for_0,
                      jN(Ne, _n.tagName),
                    )));
          ei = Zt(h.createJsxElement(_n, wr, pr), nn);
        } else
          _n.kind === 290
            ? (ei = Zt(h.createJsxFragment(_n, fE(_n), Lx(ee)), nn))
            : (C.assert(_n.kind === 286), (ei = _n));
        if (!Pt && ee && te() === 30) {
          const wr = typeof ke > "u" ? ei.pos : ke,
            pr = En(() => Sd(!0, wr));
          if (pr) {
            const Si = As(28, !1);
            return (
              HV(Si, pr.pos, 0),
              Oe(
                La(Ne, wr),
                pr.end,
                f.JSX_expressions_must_have_one_parent_element,
              ),
              Zt(h.createBinaryExpression(ei, Si, pr), nn)
            );
          }
        }
        return ei;
      }
      function eA() {
        const ee = B(),
          ke = h.createJsxText(t.getTokenValue(), Ge === 13);
        return ((Ge = t.scanJsxToken()), Zt(ke, ee));
      }
      function Dy(ee, ke) {
        switch (ke) {
          case 1:
            if (jm(ee)) Nt(ee, f.JSX_fragment_has_no_corresponding_closing_tag);
            else {
              const rt = ee.tagName,
                Pt = Math.min(La(Ne, rt.pos), rt.end);
              Oe(
                Pt,
                rt.end,
                f.JSX_element_0_has_no_corresponding_closing_tag,
                jN(Ne, ee.tagName),
              );
            }
            return;
          case 31:
          case 7:
            return;
          case 12:
          case 13:
            return eA();
          case 19:
            return Wo(!1);
          case 30:
            return Sd(!1, void 0, ee);
          default:
            return C.assertNever(ke);
        }
      }
      function fE(ee) {
        const ke = [],
          rt = B(),
          Pt = cn;
        for (cn |= 16384; ; ) {
          const nn = Dy(ee, (Ge = t.reScanJsxToken()));
          if (
            !nn ||
            (ke.push(nn),
            ph(ee) &&
              nn?.kind === 285 &&
              !a0(nn.openingElement.tagName, nn.closingElement.tagName) &&
              a0(ee.tagName, nn.closingElement.tagName))
          )
            break;
        }
        return ((cn = Pt), qa(ke, rt));
      }
      function xC() {
        const ee = B();
        return Zt(h.createJsxAttributes(Va(13, vp)), ee);
      }
      function iL(ee) {
        const ke = B();
        if ((ln(30), te() === 32))
          return (Qt(), Zt(h.createJsxOpeningFragment(), ke));
        const rt = zr(),
          Pt = (Kn & 524288) === 0 ? bl() : void 0,
          nn = xC();
        let _n;
        return (
          te() === 32
            ? (Qt(), (_n = h.createJsxOpeningElement(rt, Pt, nn)))
            : (ln(44),
              ln(32, void 0, !1) && (ee ? Pe() : Qt()),
              (_n = h.createJsxSelfClosingElement(rt, Pt, nn))),
          Zt(_n, ke)
        );
      }
      function zr() {
        const ee = B(),
          ke = Ru();
        if (fh(ke)) return ke;
        let rt = ke;
        for (; co(25); ) rt = Zt(G(rt, an(!0, !1, !1)), ee);
        return rt;
      }
      function Ru() {
        const ee = B();
        jt();
        const ke = te() === 110,
          rt = Y();
        return co(59)
          ? (jt(), Zt(h.createJsxNamespacedName(rt, Y()), ee))
          : ke
            ? Zt(h.createToken(110), ee)
            : rt;
      }
      function Wo(ee) {
        const ke = B();
        if (!ln(19)) return;
        let rt, Pt;
        return (
          te() !== 20 && (ee || (rt = Go(26)), (Pt = Iu())),
          ee ? ln(20) : ln(20, void 0, !1) && Qt(),
          Zt(h.createJsxExpression(rt, Pt), ke)
        );
      }
      function vp() {
        if (te() === 19) return Mr();
        const ee = B();
        return Zt(h.createJsxAttribute(Yb(), tA()), ee);
      }
      function tA() {
        if (te() === 64) {
          if (In() === 11) return kt();
          if (te() === 19) return Wo(!0);
          if (te() === 30) return Sd(!0);
          Kt(f.or_JSX_element_expected);
        }
      }
      function Yb() {
        const ee = B();
        jt();
        const ke = Y();
        return co(59) ? (jt(), Zt(h.createJsxNamespacedName(ke, Y()), ee)) : ke;
      }
      function Mr() {
        const ee = B();
        (ln(19), ln(26));
        const ke = Iu();
        return (ln(20), Zt(h.createJsxSpreadAttribute(ke), ee));
      }
      function RC(ee, ke) {
        const rt = B();
        ln(31);
        const Pt = zr();
        return (
          ln(32, void 0, !1) && (ke || !a0(ee.tagName, Pt) ? Pe() : Qt()),
          Zt(h.createJsxClosingElement(Pt), rt)
        );
      }
      function Lx(ee) {
        const ke = B();
        return (
          ln(31),
          ln(32, f.Expected_corresponding_closing_tag_for_JSX_fragment, !1) &&
            (ee ? Pe() : Qt()),
          Zt(h.createJsxJsxClosingFragment(), ke)
        );
      }
      function du() {
        C.assert(
          ce !== 1,
          "Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.",
        );
        const ee = B();
        ln(30);
        const ke = cl();
        ln(32);
        const rt = Rv();
        return Zt(h.createTypeAssertion(ke, rt), ee);
      }
      function J_() {
        return (Pe(), Xu(te()) || te() === 23 || Km());
      }
      function Eh() {
        return te() === 29 && wt(J_);
      }
      function $b(ee) {
        if (ee.flags & 64) return !0;
        if (XI(ee)) {
          let ke = ee.expression;
          for (; XI(ke) && !(ke.flags & 64); ) ke = ke.expression;
          if (ke.flags & 64) {
            for (; XI(ee); ) ((ee.flags |= 64), (ee = ee.expression));
            return !0;
          }
        }
        return !1;
      }
      function nA(ee, ke, rt) {
        const Pt = an(!0, !0, !0),
          nn = rt || $b(ke),
          _n = nn ? j(ke, rt, Pt) : G(ke, Pt);
        if (
          (nn &&
            eo(_n.name) &&
            Nt(_n.name, f.An_optional_chain_cannot_contain_private_identifiers),
          dy(ke) && ke.typeArguments)
        ) {
          const ei = ke.typeArguments.pos - 1,
            wr = La(Ne, ke.typeArguments.end) + 1;
          Oe(
            ei,
            wr,
            f.An_instantiation_expression_cannot_be_followed_by_a_property_access,
          );
        }
        return Zt(_n, ee);
      }
      function Qb(ee, ke, rt) {
        let Pt;
        if (te() === 24)
          Pt = As(
            80,
            !0,
            f.An_element_access_expression_should_take_an_argument,
          );
        else {
          const _n = Mn(Iu);
          (uf(_n) && (_n.text = Hl(_n.text)), (Pt = _n));
        }
        ln(24);
        const nn = rt || $b(ke) ? Z(ke, rt, Pt) : J(ke, Pt);
        return Zt(nn, ee);
      }
      function Af(ee, ke, rt) {
        for (;;) {
          let Pt,
            nn = !1;
          if (
            (rt && Eh() ? ((Pt = $s(29)), (nn = Xu(te()))) : (nn = co(25)), nn)
          ) {
            ke = nA(ee, ke, Pt);
            continue;
          }
          if ((Pt || !Ot()) && co(23)) {
            ke = Qb(ee, ke, Pt);
            continue;
          }
          if (Km()) {
            ke =
              !Pt && ke.kind === 234
                ? Qf(ee, ke.expression, Pt, ke.typeArguments)
                : Qf(ee, ke, Pt, void 0);
            continue;
          }
          if (!Pt) {
            if (te() === 54 && !t.hasPrecedingLineBreak()) {
              (Pe(), (ke = Zt(h.createNonNullExpression(ke), ee)));
              continue;
            }
            const _n = En(P0);
            if (_n) {
              ke = Zt(h.createExpressionWithTypeArguments(ke, _n), ee);
              continue;
            }
          }
          return ke;
        }
      }
      function Km() {
        return te() === 15 || te() === 16;
      }
      function Qf(ee, ke, rt, Pt) {
        const nn = h.createTaggedTemplateExpression(
          ke,
          Pt,
          te() === 15 ? (Jn(!0), kt()) : or(!0),
        );
        return (
          (rt || ke.flags & 64) && (nn.flags |= 64),
          (nn.questionDotToken = rt),
          Zt(nn, ee)
        );
      }
      function cp(ee, ke) {
        for (;;) {
          ke = Af(ee, ke, !0);
          let rt;
          const Pt = Go(29);
          if (Pt && ((rt = En(P0)), Km())) {
            ke = Qf(ee, ke, Pt, rt);
            continue;
          }
          if (rt || te() === 21) {
            !Pt &&
              ke.kind === 234 &&
              ((rt = ke.typeArguments), (ke = ke.expression));
            const nn = Dv(),
              _n = Pt || $b(ke) ? ye(ke, Pt, rt, nn) : q(ke, rt, nn);
            ke = Zt(_n, ee);
            continue;
          }
          if (Pt) {
            const nn = As(80, !1, f.Identifier_expected);
            ke = Zt(j(ke, Pt, nn), ee);
          }
          break;
        }
        return ke;
      }
      function Dv() {
        ln(21);
        const ee = Xc(11, h_);
        return (ln(22), ee);
      }
      function P0() {
        if ((Kn & 524288) !== 0 || ft() !== 30) return;
        Pe();
        const ee = Xc(20, cl);
        if (gr() === 32) return (Pe(), ee && kx() ? ee : void 0);
      }
      function kx() {
        switch (te()) {
          case 21:
          case 15:
          case 16:
            return !0;
          case 30:
          case 32:
          case 40:
          case 41:
            return !1;
        }
        return t.hasPrecedingLineBreak() || Cm() || !Jd();
      }
      function L0() {
        switch (te()) {
          case 15:
            t.getTokenFlags() & 26656 && Jn(!1);
          case 9:
          case 10:
          case 11:
            return kt();
          case 110:
          case 108:
          case 106:
          case 112:
          case 97:
            return ec();
          case 21:
            return Zb();
          case 23:
            return eT();
          case 19:
            return Cv();
          case 134:
            if (!wt(Zf)) break;
            return tT();
          case 60:
            return Ja();
          case 86:
            return hc();
          case 100:
            return tT();
          case 105:
            return Ny();
          case 44:
          case 69:
            if (tr() === 14) return kt();
            break;
          case 16:
            return or(!1);
          case 81:
            return Dr();
        }
        return Fs(f.Expression_expected);
      }
      function Zb() {
        const ee = B(),
          ke = Ae();
        ln(21);
        const rt = Mn(Iu);
        return (ln(22), Pr(Zt(K(rt), ee), ke));
      }
      function wx() {
        const ee = B();
        ln(26);
        const ke = Gu(!0);
        return Zt(h.createSpreadElement(ke), ee);
      }
      function Cy() {
        return te() === 26
          ? wx()
          : te() === 28
            ? Zt(h.createOmittedExpression(), B())
            : Gu(!0);
      }
      function h_() {
        return $o(r, Cy);
      }
      function eT() {
        const ee = B(),
          ke = t.getTokenStart(),
          rt = ln(23),
          Pt = t.hasPrecedingLineBreak(),
          nn = Xc(15, Cy);
        return (Ps(23, 24, rt, ke), Zt(W(nn, Pt), ee));
      }
      function k0() {
        const ee = B(),
          ke = Ae();
        if (Go(26)) {
          const ao = Gu(!0);
          return Pr(Zt(h.createSpreadAssignment(ao), ee), ke);
        }
        const rt = wi(!0);
        if (Fn(139)) return B0(ee, ke, rt, 178, 0);
        if (Fn(153)) return B0(ee, ke, rt, 179, 0);
        const Pt = Go(42),
          nn = Ln(),
          _n = ur(),
          ei = Go(58),
          wr = Go(54);
        if (Pt || te() === 21 || te() === 30)
          return z0(ee, ke, rt, Pt, _n, ei, wr);
        let pr;
        if (nn && te() !== 59) {
          const ao = Go(64),
            zs = ao ? Mn(() => Gu(!0)) : void 0;
          ((pr = h.createShorthandPropertyAssignment(_n, zs)),
            (pr.equalsToken = ao));
        } else {
          ln(59);
          const ao = Mn(() => Gu(!0));
          pr = h.createPropertyAssignment(_n, ao);
        }
        return (
          (pr.modifiers = rt),
          (pr.questionToken = ei),
          (pr.exclamationToken = wr),
          Pr(Zt(pr, ee), ke)
        );
      }
      function Cv() {
        const ee = B(),
          ke = t.getTokenStart(),
          rt = ln(19),
          Pt = t.hasPrecedingLineBreak(),
          nn = Xc(12, k0, !0);
        return (Ps(19, 20, rt, ke), Zt(O(nn, Pt), ee));
      }
      function tT() {
        const ee = Ot();
        ai(!1);
        const ke = B(),
          rt = Ae(),
          Pt = wi(!1);
        ln(100);
        const nn = Go(42),
          _n = nn ? 1 : 0,
          ei = yt(Pt, FM) ? 2 : 0,
          wr = _n && ei ? it(Xm) : _n ? le(Xm) : ei ? ne(Xm) : Xm(),
          pr = Xe(),
          Si = _i(_n | ei),
          ao = lr(59, !1),
          zs = nT(_n | ei);
        ai(ee);
        const Is = h.createFunctionExpression(Pt, nn, wr, pr, Si, ao, zs);
        return Pr(Zt(Is, ke), rt);
      }
      function Xm() {
        return xn() ? vd() : void 0;
      }
      function Ny() {
        const ee = B();
        if ((ln(105), co(25))) {
          const _n = Ee();
          return Zt(h.createMetaProperty(105, _n), ee);
        }
        const ke = B();
        let rt = Af(ke, L0(), !1),
          Pt;
        (rt.kind === 234 && ((Pt = rt.typeArguments), (rt = rt.expression)),
          te() === 29 &&
            Kt(
              f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,
              jN(Ne, rt),
            ));
        const nn = te() === 21 ? Dv() : void 0;
        return Zt(ie(rt, Pt, nn), ee);
      }
      function kg(ee, ke) {
        const rt = B(),
          Pt = Ae(),
          nn = t.getTokenStart(),
          _n = ln(19, ke);
        if (_n || ee) {
          const ei = t.hasPrecedingLineBreak(),
            wr = Va(1, bp);
          Ps(19, 20, _n, nn);
          const pr = Pr(Zt(pe(wr, ei), rt), Pt);
          return (
            te() === 64 &&
              (Kt(
                f.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses,
              ),
              Pe()),
            pr
          );
        } else {
          const ei = Tf();
          return Pr(Zt(pe(ei, void 0), rt), Pt);
        }
      }
      function nT(ee, ke) {
        const rt = Ue();
        ri(!!(ee & 1));
        const Pt = nt();
        qi(!!(ee & 2));
        const nn = _t;
        _t = !1;
        const _n = Ot();
        _n && ai(!1);
        const ei = kg(!!(ee & 16), ke);
        return (_n && ai(!0), (_t = nn), ri(rt), qi(Pt), ei);
      }
      function dd() {
        const ee = B(),
          ke = Ae();
        return (ln(27), Pr(Zt(h.createEmptyStatement(), ee), ke));
      }
      function mE() {
        const ee = B(),
          ke = Ae();
        ln(101);
        const rt = t.getTokenStart(),
          Pt = ln(21),
          nn = Mn(Iu);
        Ps(21, 22, Pt, rt);
        const _n = bp(),
          ei = co(93) ? bp() : void 0;
        return Pr(Zt(ve(nn, _n, ei), ee), ke);
      }
      function wg() {
        const ee = B(),
          ke = Ae();
        ln(92);
        const rt = bp();
        ln(117);
        const Pt = t.getTokenStart(),
          nn = ln(21),
          _n = Mn(Iu);
        return (
          Ps(21, 22, nn, Pt),
          co(27),
          Pr(Zt(h.createDoStatement(rt, _n), ee), ke)
        );
      }
      function w0() {
        const ee = B(),
          ke = Ae();
        ln(117);
        const rt = t.getTokenStart(),
          Pt = ln(21),
          nn = Mn(Iu);
        Ps(21, 22, Pt, rt);
        const _n = bp();
        return Pr(Zt(xe(nn, _n), ee), ke);
      }
      function rA() {
        const ee = B(),
          ke = Ae();
        ln(99);
        const rt = Go(135);
        ln(21);
        let Pt;
        te() !== 27 &&
          (te() === 115 ||
          te() === 121 ||
          te() === 87 ||
          (te() === 160 && wt(Gl)) ||
          (te() === 135 && wt(Gx))
            ? (Pt = dA(!0))
            : (Pt = Uo(Iu)));
        let nn;
        if (rt ? ln(165) : co(165)) {
          const _n = Mn(() => Gu(!0));
          (ln(22), (nn = Ce(rt, Pt, _n, bp())));
        } else if (co(103)) {
          const _n = Mn(Iu);
          (ln(22), (nn = h.createForInStatement(Pt, _n, bp())));
        } else {
          ln(27);
          const _n = te() !== 27 && te() !== 22 ? Mn(Iu) : void 0;
          ln(27);
          const ei = te() !== 22 ? Mn(Iu) : void 0;
          (ln(22), (nn = X(Pt, _n, ei, bp())));
        }
        return Pr(Zt(nn, ee), ke);
      }
      function Og(ee) {
        const ke = B(),
          rt = Ae();
        ln(ee === 253 ? 83 : 88);
        const Pt = Lo() ? void 0 : Fs();
        is();
        const nn =
          ee === 253
            ? h.createBreakStatement(Pt)
            : h.createContinueStatement(Pt);
        return Pr(Zt(nn, ke), rt);
      }
      function DC() {
        const ee = B(),
          ke = Ae();
        ln(107);
        const rt = Lo() ? void 0 : Mn(Iu);
        return (is(), Pr(Zt(h.createReturnStatement(rt), ee), ke));
      }
      function Ox() {
        const ee = B(),
          ke = Ae();
        ln(118);
        const rt = t.getTokenStart(),
          Pt = ln(21),
          nn = Mn(Iu);
        Ps(21, 22, Pt, rt);
        const _n = Ia(67108864, bp);
        return Pr(Zt(h.createWithStatement(nn, _n), ee), ke);
      }
      function Wx() {
        const ee = B(),
          ke = Ae();
        ln(84);
        const rt = Mn(Iu);
        ln(59);
        const Pt = Va(3, bp);
        return Pr(Zt(h.createCaseClause(rt, Pt), ee), ke);
      }
      function oL() {
        const ee = B();
        (ln(90), ln(59));
        const ke = Va(3, bp);
        return Zt(h.createDefaultClause(ke), ee);
      }
      function Fx() {
        return te() === 84 ? Wx() : oL();
      }
      function O0() {
        const ee = B();
        ln(19);
        const ke = Va(2, Fx);
        return (ln(20), Zt(h.createCaseBlock(ke), ee));
      }
      function My() {
        const ee = B(),
          ke = Ae();
        (ln(109), ln(21));
        const rt = Mn(Iu);
        ln(22);
        const Pt = O0();
        return Pr(Zt(h.createSwitchStatement(rt, Pt), ee), ke);
      }
      function CC() {
        const ee = B(),
          ke = Ae();
        ln(111);
        let rt = t.hasPrecedingLineBreak() ? void 0 : Mn(Iu);
        return (
          rt === void 0 && (Wt++, (rt = Zt(N(""), B()))),
          fa() || ra(rt),
          Pr(Zt(h.createThrowStatement(rt), ee), ke)
        );
      }
      function W0() {
        const ee = B(),
          ke = Ae();
        ln(113);
        const rt = kg(!1),
          Pt = te() === 85 ? iA() : void 0;
        let nn;
        return (
          (!Pt || te() === 98) &&
            (ln(98, f.catch_or_finally_expected), (nn = kg(!1))),
          Pr(Zt(h.createTryStatement(rt, Pt, nn), ee), ke)
        );
      }
      function iA() {
        const ee = B();
        ln(85);
        let ke;
        co(21) ? ((ke = __()), ln(22)) : (ke = void 0);
        const rt = kg(!1);
        return Zt(h.createCatchClause(ke, rt), ee);
      }
      function mc() {
        const ee = B(),
          ke = Ae();
        return (ln(89), is(), Pr(Zt(h.createDebuggerStatement(), ee), ke));
      }
      function ud() {
        const ee = B();
        let ke = Ae(),
          rt;
        const Pt = te() === 21,
          nn = Mn(Iu);
        return (
          He(nn) && co(59)
            ? (rt = h.createLabeledStatement(nn, bp()))
            : (fa() || ra(nn), (rt = fe(nn)), Pt && (ke = !1)),
          Pr(Zt(rt, ee), ke)
        );
      }
      function zx() {
        return (Pe(), Xu(te()) && !t.hasPrecedingLineBreak());
      }
      function dp() {
        return (Pe(), te() === 86 && !t.hasPrecedingLineBreak());
      }
      function Zf() {
        return (Pe(), te() === 100 && !t.hasPrecedingLineBreak());
      }
      function hE() {
        return (
          Pe(),
          (Xu(te()) || te() === 9 || te() === 10 || te() === 11) &&
            !t.hasPrecedingLineBreak()
        );
      }
      function Ah() {
        for (;;)
          switch (te()) {
            case 115:
            case 121:
            case 87:
            case 100:
            case 86:
            case 94:
              return !0;
            case 160:
              return _E();
            case 135:
              return uu();
            case 120:
            case 156:
            case 166:
              return qm();
            case 144:
            case 145:
              return lA();
            case 128:
            case 129:
            case 134:
            case 138:
            case 123:
            case 124:
            case 125:
            case 148:
              const ee = te();
              if ((Pe(), t.hasPrecedingLineBreak())) return !1;
              if (ee === 138 && te() === 156) return !0;
              continue;
            case 162:
              return (Pe(), te() === 19 || te() === 80 || te() === 95);
            case 102:
              return (
                Pe(),
                te() === 166 ||
                  te() === 11 ||
                  te() === 42 ||
                  te() === 19 ||
                  Xu(te())
              );
            case 95:
              let ke = Pe();
              if (
                (ke === 156 && (ke = wt(Pe)),
                ke === 64 ||
                  ke === 42 ||
                  ke === 19 ||
                  ke === 90 ||
                  ke === 130 ||
                  ke === 60)
              )
                return !0;
              continue;
            case 126:
              Pe();
              continue;
            default:
              return !1;
          }
      }
      function rT() {
        return wt(Ah);
      }
      function Nv() {
        switch (te()) {
          case 60:
          case 27:
          case 19:
          case 115:
          case 121:
          case 160:
          case 100:
          case 86:
          case 94:
          case 101:
          case 92:
          case 117:
          case 99:
          case 88:
          case 83:
          case 107:
          case 118:
          case 109:
          case 111:
          case 113:
          case 89:
          case 85:
          case 98:
            return !0;
          case 102:
            return rT() || wt(j_);
          case 87:
          case 95:
            return rT();
          case 134:
          case 138:
          case 120:
          case 144:
          case 145:
          case 156:
          case 162:
          case 166:
            return !0;
          case 129:
          case 125:
          case 123:
          case 124:
          case 126:
          case 148:
            return rT() || !wt(zx);
          default:
            return Jd();
        }
      }
      function Bx() {
        return (Pe(), xn() || te() === 19 || te() === 23);
      }
      function aL() {
        return wt(Bx);
      }
      function Gl() {
        return oA(!0);
      }
      function NC() {
        return (Pe(), te() === 64 || te() === 27 || te() === 59);
      }
      function oA(ee) {
        return (
          Pe(),
          ee && te() === 165
            ? wt(NC)
            : (xn() || te() === 19) && !t.hasPrecedingLineBreak()
        );
      }
      function _E() {
        return wt(oA);
      }
      function Gx(ee) {
        return Pe() === 160 ? oA(ee) : !1;
      }
      function uu() {
        return wt(Gx);
      }
      function bp() {
        switch (te()) {
          case 27:
            return dd();
          case 19:
            return kg(!1);
          case 115:
            return os(B(), Ae(), void 0);
          case 121:
            if (aL()) return os(B(), Ae(), void 0);
            break;
          case 135:
            if (uu()) return os(B(), Ae(), void 0);
            break;
          case 160:
            if (_E()) return os(B(), Ae(), void 0);
            break;
          case 100:
            return Wr(B(), Ae(), void 0);
          case 86:
            return Kd(B(), Ae(), void 0);
          case 101:
            return mE();
          case 92:
            return wg();
          case 117:
            return w0();
          case 99:
            return rA();
          case 88:
            return Og(252);
          case 83:
            return Og(253);
          case 107:
            return DC();
          case 118:
            return Ox();
          case 109:
            return My();
          case 111:
            return CC();
          case 113:
          case 85:
          case 98:
            return W0();
          case 89:
            return mc();
          case 60:
            return F0();
          case 134:
          case 120:
          case 156:
          case 144:
          case 145:
          case 138:
          case 87:
          case 94:
          case 95:
          case 102:
          case 123:
          case 124:
          case 125:
          case 128:
          case 129:
          case 126:
          case 148:
          case 162:
            if (rT()) return F0();
            break;
        }
        return ud();
      }
      function aA(ee) {
        return ee.kind === 138;
      }
      function F0() {
        const ee = B(),
          ke = Ae(),
          rt = wi(!0);
        if (yt(rt, aA)) {
          const nn = Tp(ee);
          if (nn) return nn;
          for (const _n of rt) _n.flags |= 33554432;
          return Ia(33554432, () => sA(ee, ke, rt));
        } else return sA(ee, ke, rt);
      }
      function Tp(ee) {
        return Ia(33554432, () => {
          const ke = tl(cn, ee);
          if (ke) return Ll(ke);
        });
      }
      function sA(ee, ke, rt) {
        switch (te()) {
          case 115:
          case 121:
          case 87:
          case 160:
          case 135:
            return os(ee, ke, rt);
          case 100:
            return Wr(ee, ke, rt);
          case 86:
            return Kd(ee, ke, rt);
          case 120:
            return $m(ee, ke, rt);
          case 156:
            return Lv(ee, ke, rt);
          case 94:
            return Wz(ee, ke, rt);
          case 162:
          case 144:
          case 145:
            return bW(ee, ke, rt);
          case 102:
            return _A(ee, ke, rt);
          case 95:
            switch ((Pe(), te())) {
              case 90:
              case 64:
                return j0(ee, ke, rt);
              case 130:
                return vE(ee, ke, rt);
              default:
                return pL(ee, ke, rt);
            }
          default:
            if (rt) {
              const Pt = As(283, !0, f.Declaration_expected);
              return (DM(Pt, ee), (Pt.modifiers = rt), Pt);
            }
            return;
        }
      }
      function Wg() {
        return Pe() === 11;
      }
      function Vx() {
        return (Pe(), te() === 161 || te() === 64);
      }
      function lA() {
        return (Pe(), !t.hasPrecedingLineBreak() && (Ln() || te() === 11));
      }
      function Ym(ee, ke) {
        if (te() !== 19) {
          if (ee & 4) {
            Do();
            return;
          }
          if (Lo()) {
            is();
            return;
          }
        }
        return nT(ee, ke);
      }
      function jx() {
        const ee = B();
        if (te() === 28) return Zt(h.createOmittedExpression(), ee);
        const ke = Go(26),
          rt = Mv(),
          Pt = q_();
        return Zt(h.createBindingElement(ke, void 0, rt, Pt), ee);
      }
      function MC() {
        const ee = B(),
          ke = Go(26),
          rt = xn();
        let Pt = ur(),
          nn;
        rt && te() !== 59 ? ((nn = Pt), (Pt = void 0)) : (ln(59), (nn = Mv()));
        const _n = q_();
        return Zt(h.createBindingElement(ke, Pt, nn, _n), ee);
      }
      function Ux() {
        const ee = B();
        ln(19);
        const ke = Mn(() => Xc(9, MC));
        return (ln(20), Zt(h.createObjectBindingPattern(ke), ee));
      }
      function cA() {
        const ee = B();
        ln(23);
        const ke = Mn(() => Xc(10, jx));
        return (ln(24), Zt(h.createArrayBindingPattern(ke), ee));
      }
      function Hx() {
        return te() === 19 || te() === 23 || te() === 81 || xn();
      }
      function Mv(ee) {
        return te() === 23 ? cA() : te() === 19 ? Ux() : vd(ee);
      }
      function qp() {
        return __(!0);
      }
      function __(ee) {
        const ke = B(),
          rt = Ae(),
          Pt = Mv(
            f.Private_identifiers_are_not_allowed_in_variable_declarations,
          );
        let nn;
        ee &&
          Pt.kind === 80 &&
          te() === 54 &&
          !t.hasPrecedingLineBreak() &&
          (nn = ec());
        const _n = qd(),
          ei = xu(te()) ? void 0 : q_(),
          wr = Je(Pt, nn, _n, ei);
        return Pr(Zt(wr, ke), rt);
      }
      function dA(ee) {
        const ke = B();
        let rt = 0;
        switch (te()) {
          case 115:
            break;
          case 121:
            rt |= 1;
            break;
          case 87:
            rt |= 2;
            break;
          case 160:
            rt |= 4;
            break;
          case 135:
            (C.assert(uu()), (rt |= 6), Pe());
            break;
          default:
            C.fail();
        }
        Pe();
        let Pt;
        if (te() === 165 && wt(uA)) Pt = Tf();
        else {
          const nn = Rt();
          (dr(ee), (Pt = Xc(8, ee ? __ : qp)), dr(nn));
        }
        return Zt(Se(Pt, rt), ke);
      }
      function uA() {
        return Pd() && Pe() === 22;
      }
      function os(ee, ke, rt) {
        const Pt = dA(!1);
        is();
        const nn = de(rt, Pt);
        return Pr(Zt(nn, ee), ke);
      }
      function Wr(ee, ke, rt) {
        const Pt = nt(),
          nn = Xh(rt);
        ln(100);
        const _n = Go(42),
          ei = nn & 2048 ? Xm() : vd(),
          wr = _n ? 1 : 0,
          pr = nn & 1024 ? 2 : 0,
          Si = Xe();
        nn & 32 && qi(!0);
        const ao = _i(wr | pr),
          zs = lr(59, !1),
          Is = Ym(wr | pr, f.or_expected);
        qi(Pt);
        const as = h.createFunctionDeclaration(rt, _n, ei, Si, ao, zs, Is);
        return Pr(Zt(as, ee), ke);
      }
      function If() {
        if (te() === 137) return ln(137);
        if (te() === 11 && wt(Pe) === 21)
          return En(() => {
            const ee = kt();
            return ee.text === "constructor" ? ee : void 0;
          });
      }
      function Yc(ee, ke, rt) {
        return En(() => {
          if (If()) {
            const Pt = Xe(),
              nn = _i(0),
              _n = lr(59, !1),
              ei = Ym(0, f.or_expected),
              wr = h.createConstructorDeclaration(rt, nn, ei);
            return (
              (wr.typeParameters = Pt),
              (wr.type = _n),
              Pr(Zt(wr, ee), ke)
            );
          }
        });
      }
      function z0(ee, ke, rt, Pt, nn, _n, ei, wr) {
        const pr = Pt ? 1 : 0,
          Si = yt(rt, FM) ? 2 : 0,
          ao = Xe(),
          zs = _i(pr | Si),
          Is = lr(59, !1),
          as = Ym(pr | Si, wr),
          em = h.createMethodDeclaration(rt, Pt, nn, _n, ao, zs, Is, as);
        return ((em.exclamationToken = ei), Pr(Zt(em, ee), ke));
      }
      function pA(ee, ke, rt, Pt, nn) {
        const _n = !nn && !t.hasPrecedingLineBreak() ? Go(54) : void 0,
          ei = qd(),
          wr = $o(90112, q_);
        Bl(Pt, ei, wr);
        const pr = h.createPropertyDeclaration(rt, Pt, nn || _n, ei, wr);
        return Pr(Zt(pr, ee), ke);
      }
      function gE(ee, ke, rt) {
        const Pt = Go(42),
          nn = ur(),
          _n = Go(58);
        return Pt || te() === 21 || te() === 30
          ? z0(ee, ke, rt, Pt, nn, _n, void 0, f.or_expected)
          : pA(ee, ke, rt, nn, _n);
      }
      function B0(ee, ke, rt, Pt, nn) {
        const _n = ur(),
          ei = Xe(),
          wr = _i(0),
          pr = lr(59, !1),
          Si = Ym(nn),
          ao =
            Pt === 178
              ? h.createGetAccessorDeclaration(rt, _n, wr, pr, Si)
              : h.createSetAccessorDeclaration(rt, _n, wr, Si);
        return (
          (ao.typeParameters = ei),
          gp(ao) && (ao.type = pr),
          Pr(Zt(ao, ee), ke)
        );
      }
      function fA() {
        let ee;
        if (te() === 60) return !0;
        for (; pb(te()); ) {
          if (((ee = te()), Y9(ee))) return !0;
          Pe();
        }
        if (te() === 42 || (pt() && ((ee = te()), Pe()), te() === 23))
          return !0;
        if (ee !== void 0) {
          if (!ep(ee) || ee === 153 || ee === 139) return !0;
          switch (te()) {
            case 21:
            case 30:
            case 54:
            case 59:
            case 64:
            case 58:
              return !0;
            default:
              return Lo();
          }
        }
        return !1;
      }
      function D(ee, ke, rt) {
        $s(126);
        const Pt = me(),
          nn = Pr(Zt(h.createClassStaticBlockDeclaration(Pt), ee), ke);
        return ((nn.modifiers = rt), nn);
      }
      function me() {
        const ee = Ue(),
          ke = nt();
        (ri(!1), qi(!0));
        const rt = kg(!1);
        return (ri(ee), qi(ke), rt);
      }
      function Et() {
        if (nt() && te() === 135) {
          const ee = B(),
            ke = Fs(f.Expression_expected);
          Pe();
          const rt = Af(ee, ke, !0);
          return cp(ee, rt);
        }
        return M0();
      }
      function An() {
        const ee = B();
        if (!co(60)) return;
        const ke = ht(Et);
        return Zt(h.createDecorator(ke), ee);
      }
      function vi(ee, ke, rt) {
        const Pt = B(),
          nn = te();
        if (te() === 87 && ke) {
          if (!En(ro)) return;
        } else {
          if (rt && te() === 126 && wt(hA)) return;
          if (ee && te() === 126) return;
          if (!Qs()) return;
        }
        return Zt(k(nn), Pt);
      }
      function wi(ee, ke, rt) {
        const Pt = B();
        let nn,
          _n,
          ei,
          wr = !1,
          pr = !1,
          Si = !1;
        if (ee && te() === 60) for (; (_n = An()); ) nn = Bn(nn, _n);
        for (; (ei = vi(wr, ke, rt)); )
          (ei.kind === 126 && (wr = !0), (nn = Bn(nn, ei)), (pr = !0));
        if (pr && ee && te() === 60)
          for (; (_n = An()); ) ((nn = Bn(nn, _n)), (Si = !0));
        if (Si)
          for (; (ei = vi(wr, ke, rt)); )
            (ei.kind === 126 && (wr = !0), (nn = Bn(nn, ei)));
        return nn && qa(nn, Pt);
      }
      function Ao() {
        let ee;
        if (te() === 134) {
          const ke = B();
          Pe();
          const rt = Zt(k(134), ke);
          ee = qa([rt], ke);
        }
        return ee;
      }
      function Li() {
        const ee = B(),
          ke = Ae();
        if (te() === 27)
          return (Pe(), Pr(Zt(h.createSemicolonClassElement(), ee), ke));
        const rt = wi(!0, !0, !0);
        if (te() === 126 && wt(hA)) return D(ee, ke, rt);
        if (Fn(139)) return B0(ee, ke, rt, 178, 0);
        if (Fn(153)) return B0(ee, ke, rt, 179, 0);
        if (te() === 137 || te() === 11) {
          const Pt = Yc(ee, ke, rt);
          if (Pt) return Pt;
        }
        if (hl()) return xm(ee, ke, rt);
        if (
          Xu(te()) ||
          te() === 11 ||
          te() === 9 ||
          te() === 10 ||
          te() === 42 ||
          te() === 23
        )
          if (yt(rt, aA)) {
            for (const nn of rt) nn.flags |= 33554432;
            return Ia(33554432, () => gE(ee, ke, rt));
          } else return gE(ee, ke, rt);
        if (rt) {
          const Pt = As(80, !0, f.Declaration_expected);
          return pA(ee, ke, rt, Pt, void 0);
        }
        return C.fail(
          "Should not have attempted to parse class member declaration.",
        );
      }
      function Ja() {
        const ee = B(),
          ke = Ae(),
          rt = wi(!0);
        if (te() === 86) return Vu(ee, ke, rt, 232);
        const Pt = As(283, !0, f.Expression_expected);
        return (DM(Pt, ee), (Pt.modifiers = rt), Pt);
      }
      function hc() {
        return Vu(B(), Ae(), void 0, 232);
      }
      function Kd(ee, ke, rt) {
        return Vu(ee, ke, rt, 264);
      }
      function Vu(ee, ke, rt, Pt) {
        const nn = nt();
        ln(86);
        const _n = G0(),
          ei = Xe();
        yt(rt, VI) && qi(!0);
        const wr = iT();
        let pr;
        (ln(19) ? ((pr = Pv()), ln(20)) : (pr = Tf()), qi(nn));
        const Si =
          Pt === 264
            ? h.createClassDeclaration(rt, _n, ei, wr, pr)
            : h.createClassExpression(rt, _n, ei, wr, pr);
        return Pr(Zt(Si, ee), ke);
      }
      function G0() {
        return xn() && !ju() ? sc(xn()) : void 0;
      }
      function ju() {
        return te() === 119 && wt(nf);
      }
      function iT() {
        if (mA()) return Va(22, qx);
      }
      function qx() {
        const ee = B(),
          ke = te();
        (C.assert(ke === 96 || ke === 119), Pe());
        const rt = Xc(7, Nm);
        return Zt(h.createHeritageClause(ke, rt), ee);
      }
      function Nm() {
        const ee = B(),
          ke = M0();
        if (ke.kind === 234) return ke;
        const rt = bl();
        return Zt(h.createExpressionWithTypeArguments(ke, rt), ee);
      }
      function bl() {
        return te() === 30 ? oe(20, cl, 30, 32) : void 0;
      }
      function mA() {
        return te() === 96 || te() === 119;
      }
      function Pv() {
        return Va(5, Li);
      }
      function $m(ee, ke, rt) {
        ln(120);
        const Pt = Fs(),
          nn = Xe(),
          _n = iT(),
          ei = U_(),
          wr = h.createInterfaceDeclaration(rt, Pt, nn, _n, ei);
        return Pr(Zt(wr, ee), ke);
      }
      function Lv(ee, ke, rt) {
        (ln(156),
          t.hasPrecedingLineBreak() && Kt(f.Line_break_not_permitted_here));
        const Pt = Fs(),
          nn = Xe();
        ln(64);
        const _n = (te() === 141 && En(Cx)) || cl();
        is();
        const ei = h.createTypeAliasDeclaration(rt, Pt, nn, _n);
        return Pr(Zt(ei, ee), ke);
      }
      function yE() {
        const ee = B(),
          ke = Ae(),
          rt = ur(),
          Pt = Mn(q_);
        return Pr(Zt(h.createEnumMember(rt, Pt), ee), ke);
      }
      function Wz(ee, ke, rt) {
        ln(94);
        const Pt = Fs();
        let nn;
        ln(19) ? ((nn = dt(() => Xc(6, yE))), ln(20)) : (nn = Tf());
        const _n = h.createEnumDeclaration(rt, Pt, nn);
        return Pr(Zt(_n, ee), ke);
      }
      function sL() {
        const ee = B();
        let ke;
        return (
          ln(19) ? ((ke = Va(1, bp)), ln(20)) : (ke = Tf()),
          Zt(h.createModuleBlock(ke), ee)
        );
      }
      function Jx(ee, ke, rt, Pt) {
        const nn = Pt & 32,
          _n = Pt & 8 ? Ee() : Fs(),
          ei = co(25) ? Jx(B(), !1, void 0, 8 | nn) : sL(),
          wr = h.createModuleDeclaration(rt, _n, ei, Pt);
        return Pr(Zt(wr, ee), ke);
      }
      function lL(ee, ke, rt) {
        let Pt = 0,
          nn;
        te() === 162
          ? ((nn = Fs()), (Pt |= 2048))
          : ((nn = kt()), (nn.text = Hl(nn.text)));
        let _n;
        te() === 19 ? (_n = sL()) : is();
        const ei = h.createModuleDeclaration(rt, nn, _n, Pt);
        return Pr(Zt(ei, ee), ke);
      }
      function bW(ee, ke, rt) {
        let Pt = 0;
        if (te() === 162) return lL(ee, ke, rt);
        if (co(145)) Pt |= 32;
        else if ((ln(144), te() === 11)) return lL(ee, ke, rt);
        return Jx(ee, ke, rt, Pt);
      }
      function oT() {
        return te() === 149 && wt(Kx);
      }
      function Kx() {
        return Pe() === 21;
      }
      function hA() {
        return Pe() === 19;
      }
      function Fz() {
        return Pe() === 44;
      }
      function vE(ee, ke, rt) {
        (ln(130), ln(145));
        const Pt = Fs();
        is();
        const nn = h.createNamespaceExportDeclaration(Pt);
        return ((nn.modifiers = rt), Pr(Zt(nn, ee), ke));
      }
      function _A(ee, ke, rt) {
        ln(102);
        const Pt = t.getTokenFullStart();
        let nn;
        Ln() && (nn = Fs());
        let _n;
        if (
          (nn?.escapedText === "type" &&
          (te() !== 161 || (Ln() && wt(Vx))) &&
          (Ln() || ar())
            ? ((_n = 156), (nn = Ln() ? Fs() : void 0))
            : nn?.escapedText === "defer" &&
              (te() === 161 ? !wt(Wg) : te() !== 28 && te() !== 64) &&
              ((_n = 166), (nn = Ln() ? Fs() : void 0)),
          nn && !dL() && _n !== 166)
        )
          return PC(ee, ke, rt, nn, _n === 156);
        const ei = cL(nn, Pt, _n, void 0),
          wr = gA(),
          pr = Xx();
        is();
        const Si = h.createImportDeclaration(rt, ei, wr, pr);
        return Pr(Zt(Si, ee), ke);
      }
      function cL(ee, ke, rt, Pt = !1) {
        let nn;
        return (
          (ee || te() === 42 || te() === 19) &&
            ((nn = LC(ee, ke, rt, Pt)), ln(161)),
          nn
        );
      }
      function Xx() {
        const ee = te();
        if ((ee === 118 || ee === 132) && !t.hasPrecedingLineBreak())
          return aT(ee);
      }
      function uo() {
        const ee = B(),
          ke = Xu(te()) ? Ee() : Eo(11);
        ln(59);
        const rt = Gu(!0);
        return Zt(h.createImportAttribute(ke, rt), ee);
      }
      function aT(ee, ke) {
        const rt = B();
        ke || ln(ee);
        const Pt = t.getTokenStart();
        if (ln(19)) {
          const nn = t.hasPrecedingLineBreak(),
            _n = Xc(24, uo, !0);
          if (!ln(20)) {
            const ei = Zs(Re);
            ei &&
              ei.code === f._0_expected.code &&
              pa(
                ei,
                CI(
                  re,
                  Ne,
                  Pt,
                  1,
                  f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,
                  "{",
                  "}",
                ),
              );
          }
          return Zt(h.createImportAttributes(_n, nn, ee), rt);
        } else {
          const nn = qa([], B(), void 0, !1);
          return Zt(h.createImportAttributes(nn, !1, ee), rt);
        }
      }
      function ar() {
        return te() === 42 || te() === 19;
      }
      function dL() {
        return te() === 28 || te() === 161;
      }
      function PC(ee, ke, rt, Pt, nn) {
        ln(64);
        const _n = bE();
        is();
        const ei = h.createImportEqualsDeclaration(rt, nn, Pt, _n);
        return Pr(Zt(ei, ee), ke);
      }
      function LC(ee, ke, rt, Pt) {
        let nn;
        return (
          (!ee || co(28)) &&
            (Pt && t.setSkipJsDocLeadingAsterisks(!0),
            te() === 42 ? (nn = zz()) : (nn = SW(276)),
            Pt && t.setSkipJsDocLeadingAsterisks(!1)),
          Zt(h.createImportClause(rt, ee, nn), ke)
        );
      }
      function bE() {
        return oT() ? TW() : ut(!1);
      }
      function TW() {
        const ee = B();
        (ln(149), ln(21));
        const ke = gA();
        return (ln(22), Zt(h.createExternalModuleReference(ke), ee));
      }
      function gA() {
        if (te() === 11) {
          const ee = kt();
          return ((ee.text = Hl(ee.text)), ee);
        } else return Iu();
      }
      function zz() {
        const ee = B();
        (ln(42), ln(130));
        const ke = Fs();
        return Zt(h.createNamespaceImport(ke), ee);
      }
      function kC() {
        return Xu(te()) || te() === 11;
      }
      function K_(ee) {
        return te() === 11 ? kt() : ee();
      }
      function SW(ee) {
        const ke = B(),
          rt =
            ee === 276
              ? h.createNamedImports(oe(23, Bz, 19, 20))
              : h.createNamedExports(oe(23, V0, 19, 20));
        return Zt(rt, ke);
      }
      function V0() {
        const ee = Ae();
        return Pr(uL(282), ee);
      }
      function Bz() {
        return uL(277);
      }
      function uL(ee) {
        const ke = B();
        let rt = ep(te()) && !Ln(),
          Pt = t.getTokenStart(),
          nn = t.getTokenEnd(),
          _n = !1,
          ei,
          wr = !0,
          pr = K_(Ee);
        if (pr.kind === 80 && pr.escapedText === "type")
          if (te() === 130) {
            const zs = Ee();
            if (te() === 130) {
              const Is = Ee();
              kC()
                ? ((_n = !0), (ei = zs), (pr = K_(ao)), (wr = !1))
                : ((ei = pr), (pr = Is), (wr = !1));
            } else
              kC()
                ? ((ei = pr), (wr = !1), (pr = K_(ao)))
                : ((_n = !0), (pr = zs));
          } else kC() && ((_n = !0), (pr = K_(ao)));
        (wr && te() === 130 && ((ei = pr), ln(130), (pr = K_(ao))),
          ee === 277 &&
            (pr.kind !== 80
              ? (Oe(La(Ne, pr.pos), pr.end, f.Identifier_expected),
                (pr = uh(As(80, !1), pr.pos, pr.pos)))
              : rt && Oe(Pt, nn, f.Identifier_expected)));
        const Si =
          ee === 277
            ? h.createImportSpecifier(_n, ei, pr)
            : h.createExportSpecifier(_n, ei, pr);
        return Zt(Si, ke);
        function ao() {
          return (
            (rt = ep(te()) && !Ln()),
            (Pt = t.getTokenStart()),
            (nn = t.getTokenEnd()),
            Ee()
          );
        }
      }
      function EW(ee) {
        return Zt(h.createNamespaceExport(K_(Ee)), ee);
      }
      function pL(ee, ke, rt) {
        const Pt = nt();
        qi(!0);
        let nn, _n, ei;
        const wr = co(156),
          pr = B();
        co(42)
          ? (co(130) && (nn = EW(pr)), ln(161), (_n = gA()))
          : ((nn = SW(280)),
            (te() === 161 || (te() === 11 && !t.hasPrecedingLineBreak())) &&
              (ln(161), (_n = gA())));
        const Si = te();
        (_n &&
          (Si === 118 || Si === 132) &&
          !t.hasPrecedingLineBreak() &&
          (ei = aT(Si)),
          is(),
          qi(Pt));
        const ao = h.createExportDeclaration(rt, wr, nn, _n, ei);
        return Pr(Zt(ao, ee), ke);
      }
      function j0(ee, ke, rt) {
        const Pt = nt();
        qi(!0);
        let nn;
        co(64) ? (nn = !0) : ln(90);
        const _n = Gu(!0);
        (is(), qi(Pt));
        const ei = h.createExportAssignment(rt, nn, _n);
        return Pr(Zt(ei, ee), ke);
      }
      let X_;
      ((ee) => {
        ((ee[(ee.SourceElements = 0)] = "SourceElements"),
          (ee[(ee.BlockStatements = 1)] = "BlockStatements"),
          (ee[(ee.SwitchClauses = 2)] = "SwitchClauses"),
          (ee[(ee.SwitchClauseStatements = 3)] = "SwitchClauseStatements"),
          (ee[(ee.TypeMembers = 4)] = "TypeMembers"),
          (ee[(ee.ClassMembers = 5)] = "ClassMembers"),
          (ee[(ee.EnumMembers = 6)] = "EnumMembers"),
          (ee[(ee.HeritageClauseElement = 7)] = "HeritageClauseElement"),
          (ee[(ee.VariableDeclarations = 8)] = "VariableDeclarations"),
          (ee[(ee.ObjectBindingElements = 9)] = "ObjectBindingElements"),
          (ee[(ee.ArrayBindingElements = 10)] = "ArrayBindingElements"),
          (ee[(ee.ArgumentExpressions = 11)] = "ArgumentExpressions"),
          (ee[(ee.ObjectLiteralMembers = 12)] = "ObjectLiteralMembers"),
          (ee[(ee.JsxAttributes = 13)] = "JsxAttributes"),
          (ee[(ee.JsxChildren = 14)] = "JsxChildren"),
          (ee[(ee.ArrayLiteralMembers = 15)] = "ArrayLiteralMembers"),
          (ee[(ee.Parameters = 16)] = "Parameters"),
          (ee[(ee.JSDocParameters = 17)] = "JSDocParameters"),
          (ee[(ee.RestProperties = 18)] = "RestProperties"),
          (ee[(ee.TypeParameters = 19)] = "TypeParameters"),
          (ee[(ee.TypeArguments = 20)] = "TypeArguments"),
          (ee[(ee.TupleElementTypes = 21)] = "TupleElementTypes"),
          (ee[(ee.HeritageClauses = 22)] = "HeritageClauses"),
          (ee[(ee.ImportOrExportSpecifiers = 23)] = "ImportOrExportSpecifiers"),
          (ee[(ee.ImportAttributes = 24)] = "ImportAttributes"),
          (ee[(ee.JSDocComment = 25)] = "JSDocComment"),
          (ee[(ee.Count = 26)] = "Count"));
      })(X_ || (X_ = {}));
      let wC;
      ((ee) => {
        ((ee[(ee.False = 0)] = "False"),
          (ee[(ee.True = 1)] = "True"),
          (ee[(ee.Unknown = 2)] = "Unknown"));
      })(wC || (wC = {}));
      let g_;
      ((ee) => {
        function ke(Si, ao, zs) {
          (zt("file.js", Si, 99, void 0, 1, 0),
            t.setText(Si, ao, zs),
            (Ge = t.scan()));
          const Is = rt(),
            as = At("file.js", 99, 1, !1, [], k(1), 0, gs),
            em = NI(Re, as);
          return (
            _e && (as.jsDocDiagnostics = NI(_e, as)),
            Zr(),
            Is ? { jsDocTypeExpression: Is, diagnostics: em } : void 0
          );
        }
        ee.parseJSDocTypeExpressionForTests = ke;
        function rt(Si) {
          const ao = B(),
            zs = (Si ? co : ln)(19),
            Is = Ia(16777216, Th);
          (!Si || zs) && xl(20);
          const as = h.createJSDocTypeExpression(Is);
          return ($e(as), Zt(as, ao));
        }
        ee.parseJSDocTypeExpression = rt;
        function Pt() {
          const Si = B(),
            ao = co(19),
            zs = B();
          let Is = ut(!1);
          for (; te() === 81; )
            (Mt(), gt(), (Is = Zt(h.createJSDocMemberName(Is, Fs()), zs)));
          ao && xl(20);
          const as = h.createJSDocNameReference(Is);
          return ($e(as), Zt(as, Si));
        }
        ee.parseJSDocNameReference = Pt;
        function nn(Si, ao, zs) {
          zt("", Si, 99, void 0, 1, 0);
          const Is = Ia(16777216, () => pr(ao, zs)),
            em = NI(Re, { languageVariant: 0, text: Si });
          return (Zr(), Is ? { jsDoc: Is, diagnostics: em } : void 0);
        }
        ee.parseIsolatedJSDocComment = nn;
        function _n(Si, ao, zs) {
          const Is = Ge,
            as = Re.length,
            em = en,
            xf = Ia(16777216, () => pr(ao, zs));
          return (
            ps(xf, Si),
            Kn & 524288 && (_e || (_e = []), Xr(_e, Re, as)),
            (Ge = Is),
            (Re.length = as),
            (en = em),
            xf
          );
        }
        ee.parseJSDocComment = _n;
        let ei;
        ((Si) => {
          ((Si[(Si.BeginningOfLine = 0)] = "BeginningOfLine"),
            (Si[(Si.SawAsterisk = 1)] = "SawAsterisk"),
            (Si[(Si.SavingComments = 2)] = "SavingComments"),
            (Si[(Si.SavingBackticks = 3)] = "SavingBackticks"));
        })(ei || (ei = {}));
        let wr;
        ((Si) => {
          ((Si[(Si.Property = 1)] = "Property"),
            (Si[(Si.Parameter = 2)] = "Parameter"),
            (Si[(Si.CallbackParameter = 4)] = "CallbackParameter"));
        })(wr || (wr = {}));
        function pr(Si = 0, ao) {
          const zs = Ne,
            Is = ao === void 0 ? zs.length : Si + ao;
          if (
            ((ao = Is - Si),
            C.assert(Si >= 0),
            C.assert(Si <= Is),
            C.assert(Is <= zs.length),
            !Jj(zs, Si))
          )
            return;
          let as,
            em,
            xf,
            kv,
            wv,
            Fg = [];
          const sT = [],
            cs = cn;
          cn |= 1 << 25;
          const Gc = t.scanRange(Si + 3, ao - 5, Ov);
          return ((cn = cs), Gc);
          function Ov() {
            let zn = 1,
              Ur,
              $r =
                Si -
                (zs.lastIndexOf(
                  `
`,
                  Si,
                ) +
                  1) +
                4;
            function Mi(Bs) {
              (Ur || (Ur = $r), Fg.push(Bs), ($r += Bs.length));
            }
            for (gt(); xh(5); );
            xh(4) && ((zn = 0), ($r = 0));
            e: for (;;) {
              switch (te()) {
                case 60:
                  (Yx(Fg),
                    wv || (wv = B()),
                    nl(T($r)),
                    (zn = 0),
                    (Ur = void 0));
                  break;
                case 4:
                  (Fg.push(t.getTokenText()), (zn = 0), ($r = 0));
                  break;
                case 42:
                  const Bs = t.getTokenText();
                  zn === 1
                    ? ((zn = 2), Mi(Bs))
                    : (C.assert(zn === 0), (zn = 1), ($r += Bs.length));
                  break;
                case 5:
                  C.assert(
                    zn !== 2,
                    "whitespace shouldn't come from the scanner while saving top-level comment text",
                  );
                  const Ed = t.getTokenText();
                  (Ur !== void 0 &&
                    $r + Ed.length > Ur &&
                    Fg.push(Ed.slice(Ur - $r)),
                    ($r += Ed.length));
                  break;
                case 1:
                  break e;
                case 82:
                  ((zn = 2), Mi(t.getTokenValue()));
                  break;
                case 19:
                  zn = 2;
                  const Rh = t.getTokenFullStart(),
                    Mm = t.getTokenEnd() - 1,
                    Qm = ue(Mm);
                  if (Qm) {
                    (kv || pu(Fg),
                      sT.push(Zt(h.createJSDocText(Fg.join("")), kv ?? Si, Rh)),
                      sT.push(Qm),
                      (Fg = []),
                      (kv = t.getTokenEnd()));
                    break;
                  }
                default:
                  ((zn = 2), Mi(t.getTokenText()));
                  break;
              }
              zn === 2 ? Bt(!1) : gt();
            }
            const Wi = Fg.join("").trimEnd();
            (sT.length &&
              Wi.length &&
              sT.push(Zt(h.createJSDocText(Wi), kv ?? Si, wv)),
              sT.length &&
                as &&
                C.assertIsDefined(
                  wv,
                  "having parsed tags implies that the end of the comment span should be set",
                ));
            const Na = as && qa(as, em, xf);
            return Zt(
              h.createJSDocComment(
                sT.length ? qa(sT, Si, wv) : Wi.length ? Wi : void 0,
                Na,
              ),
              Si,
              Is,
            );
          }
          function pu(zn) {
            for (
              ;
              zn.length &&
              (zn[0] ===
                `
` ||
                zn[0] === "\r");
            )
              zn.shift();
          }
          function Yx(zn) {
            for (; zn.length; ) {
              const Ur = zn[zn.length - 1].trimEnd();
              if (Ur === "") zn.pop();
              else if (Ur.length < zn[zn.length - 1].length) {
                zn[zn.length - 1] = Ur;
                break;
              } else break;
            }
          }
          function zg() {
            for (;;) {
              if ((gt(), te() === 1)) return !0;
              if (!(te() === 5 || te() === 4)) return !1;
            }
          }
          function Y_() {
            if (!((te() === 5 || te() === 4) && wt(zg)))
              for (; te() === 5 || te() === 4; ) gt();
          }
          function br() {
            if ((te() === 5 || te() === 4) && wt(zg)) return "";
            let zn = t.hasPrecedingLineBreak(),
              Ur = !1,
              $r = "";
            for (; (zn && te() === 42) || te() === 5 || te() === 4; )
              (($r += t.getTokenText()),
                te() === 4
                  ? ((zn = !0), (Ur = !0), ($r = ""))
                  : te() === 42 && (zn = !1),
                gt());
            return Ur ? $r : "";
          }
          function T(zn) {
            C.assert(te() === 60);
            const Ur = t.getTokenStart();
            gt();
            const $r = Jp(void 0),
              Mi = br();
            let Wi;
            switch ($r.escapedText) {
              case "author":
                Wi = AW(Ur, $r, zn, Mi);
                break;
              case "implements":
                Wi = cT(Ur, $r, zn, Mi);
                break;
              case "augments":
              case "extends":
                Wi = ahe(Ur, $r, zn, Mi);
                break;
              case "class":
              case "constructor":
                Wi = Zx(Ur, h.createJSDocClassTag, $r, zn, Mi);
                break;
              case "public":
                Wi = Zx(Ur, h.createJSDocPublicTag, $r, zn, Mi);
                break;
              case "private":
                Wi = Zx(Ur, h.createJSDocPrivateTag, $r, zn, Mi);
                break;
              case "protected":
                Wi = Zx(Ur, h.createJSDocProtectedTag, $r, zn, Mi);
                break;
              case "readonly":
                Wi = Zx(Ur, h.createJSDocReadonlyTag, $r, zn, Mi);
                break;
              case "override":
                Wi = Zx(Ur, h.createJSDocOverrideTag, $r, zn, Mi);
                break;
              case "deprecated":
                ((Ni = !0),
                  (Wi = Zx(Ur, h.createJSDocDeprecatedTag, $r, zn, Mi)));
                break;
              case "this":
                Wi = JX(Ur, $r, zn, Mi);
                break;
              case "enum":
                Wi = hL(Ur, $r, zn, Mi);
                break;
              case "arg":
              case "argument":
              case "param":
                return $x(Ur, $r, 2, zn);
              case "return":
              case "returns":
                Wi = fL(Ur, $r, zn, Mi);
                break;
              case "template":
                Wi = _r(Ur, $r, zn, Mi);
                break;
              case "type":
                Wi = Qx(Ur, $r, zn, Mi);
                break;
              case "typedef":
                Wi = KX(Ur, $r, zn, Mi);
                break;
              case "callback":
                Wi = YX(Ur, $r, zn, Mi);
                break;
              case "overload":
                Wi = che(Ur, $r, zn, Mi);
                break;
              case "satisfies":
                Wi = she(Ur, $r, zn, Mi);
                break;
              case "see":
                Wi = ihe(Ur, $r, zn, Mi);
                break;
              case "exception":
              case "throws":
                Wi = ohe(Ur, $r, zn, Mi);
                break;
              case "import":
                Wi = lhe(Ur, $r, zn, Mi);
                break;
              default:
                Wi = ko(Ur, $r, zn, Mi);
                break;
            }
            return Wi;
          }
          function M(zn, Ur, $r, Mi) {
            return (Mi || ($r += Ur - zn), V($r, Mi.slice($r)));
          }
          function V(zn, Ur) {
            const $r = B();
            let Mi = [];
            const Wi = [];
            let Na,
              Bs = 0,
              Ed;
            function Rh(Bg) {
              (Ed || (Ed = zn), Mi.push(Bg), (zn += Bg.length));
            }
            Ur !== void 0 && (Ur !== "" && Rh(Ur), (Bs = 1));
            let Mm = te();
            e: for (;;) {
              switch (Mm) {
                case 4:
                  ((Bs = 0), Mi.push(t.getTokenText()), (zn = 0));
                  break;
                case 60:
                  t.resetTokenState(t.getTokenEnd() - 1);
                  break e;
                case 1:
                  break e;
                case 5:
                  C.assert(
                    Bs !== 2 && Bs !== 3,
                    "whitespace shouldn't come from the scanner while saving comment text",
                  );
                  const Bg = t.getTokenText();
                  (Ed !== void 0 &&
                    zn + Bg.length > Ed &&
                    (Mi.push(Bg.slice(Ed - zn)), (Bs = 2)),
                    (zn += Bg.length));
                  break;
                case 19:
                  Bs = 2;
                  const Py = t.getTokenFullStart(),
                    OC = t.getTokenEnd() - 1,
                    gL = ue(OC);
                  gL
                    ? (Wi.push(
                        Zt(h.createJSDocText(Mi.join("")), Na ?? $r, Py),
                      ),
                      Wi.push(gL),
                      (Mi = []),
                      (Na = t.getTokenEnd()))
                    : Rh(t.getTokenText());
                  break;
                case 62:
                  (Bs === 3 ? (Bs = 2) : (Bs = 3), Rh(t.getTokenText()));
                  break;
                case 82:
                  (Bs !== 3 && (Bs = 2), Rh(t.getTokenValue()));
                  break;
                case 42:
                  if (Bs === 0) {
                    ((Bs = 1), (zn += 1));
                    break;
                  }
                default:
                  (Bs !== 3 && (Bs = 2), Rh(t.getTokenText()));
                  break;
              }
              Bs === 2 || Bs === 3 ? (Mm = Bt(Bs === 3)) : (Mm = gt());
            }
            pu(Mi);
            const Qm = Mi.join("").trimEnd();
            if (Wi.length)
              return (
                Qm.length && Wi.push(Zt(h.createJSDocText(Qm), Na ?? $r)),
                qa(Wi, $r, t.getTokenEnd())
              );
            if (Qm.length) return Qm;
          }
          function ue(zn) {
            const Ur = En(rn);
            if (!Ur) return;
            (gt(), Y_());
            const $r = tt(),
              Mi = [];
            for (; te() !== 20 && te() !== 4 && te() !== 1; )
              (Mi.push(t.getTokenText()), gt());
            const Wi =
              Ur === "link"
                ? h.createJSDocLink
                : Ur === "linkcode"
                  ? h.createJSDocLinkCode
                  : h.createJSDocLinkPlain;
            return Zt(Wi($r, Mi.join("")), zn, t.getTokenEnd());
          }
          function tt() {
            if (Xu(te())) {
              const zn = B();
              let Ur = Ee();
              for (; co(25); )
                Ur = Zt(
                  h.createQualifiedName(Ur, te() === 81 ? As(80, !1) : Ee()),
                  zn,
                );
              for (; te() === 81; )
                (Mt(), gt(), (Ur = Zt(h.createJSDocMemberName(Ur, Fs()), zn)));
              return Ur;
            }
          }
          function rn() {
            if ((br(), te() === 19 && gt() === 60 && Xu(gt()))) {
              const zn = t.getTokenValue();
              if (Or(zn)) return zn;
            }
          }
          function Or(zn) {
            return zn === "link" || zn === "linkcode" || zn === "linkplain";
          }
          function ko(zn, Ur, $r, Mi) {
            return Zt(h.createJSDocUnknownTag(Ur, M(zn, B(), $r, Mi)), zn);
          }
          function nl(zn) {
            zn &&
              (as ? as.push(zn) : ((as = [zn]), (em = zn.pos)), (xf = zn.end));
          }
          function of() {
            return (br(), te() === 19 ? rt() : void 0);
          }
          function lT() {
            const zn = xh(23);
            zn && Y_();
            const Ur = xh(62),
              $r = QX();
            return (
              Ur && Ra(62),
              zn && (Y_(), Go(64) && Iu(), ln(24)),
              { name: $r, isBracketed: zn }
            );
          }
          function Ih(zn) {
            switch (zn.kind) {
              case 151:
                return !0;
              case 189:
                return Ih(zn.elementType);
              default:
                return (
                  Wp(zn) &&
                  He(zn.typeName) &&
                  zn.typeName.escapedText === "Object" &&
                  !zn.typeArguments
                );
            }
          }
          function $x(zn, Ur, $r, Mi) {
            let Wi = of(),
              Na = !Wi;
            br();
            const { name: Bs, isBracketed: Ed } = lT(),
              Rh = br();
            Na && !wt(rn) && (Wi = of());
            const Mm = M(zn, B(), Mi, Rh),
              Qm = rhe(Wi, Bs, $r, Mi);
            Qm && ((Wi = Qm), (Na = !0));
            const Bg =
              $r === 1
                ? h.createJSDocPropertyTag(Ur, Bs, Ed, Wi, Na, Mm)
                : h.createJSDocParameterTag(Ur, Bs, Ed, Wi, Na, Mm);
            return Zt(Bg, zn);
          }
          function rhe(zn, Ur, $r, Mi) {
            if (zn && Ih(zn.type)) {
              const Wi = B();
              let Na, Bs;
              for (; (Na = En(() => yA($r, Mi, Ur))); )
                Na.kind === 342 || Na.kind === 349
                  ? (Bs = Bn(Bs, Na))
                  : Na.kind === 346 &&
                    Nt(
                      Na.tagName,
                      f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag,
                    );
              if (Bs) {
                const Ed = Zt(
                  h.createJSDocTypeLiteral(Bs, zn.type.kind === 189),
                  Wi,
                );
                return Zt(h.createJSDocTypeExpression(Ed), Wi);
              }
            }
          }
          function fL(zn, Ur, $r, Mi) {
            yt(as, x4) &&
              Oe(
                Ur.pos,
                t.getTokenStart(),
                f._0_tag_already_specified,
                Gi(Ur.escapedText),
              );
            const Wi = of();
            return Zt(h.createJSDocReturnTag(Ur, Wi, M(zn, B(), $r, Mi)), zn);
          }
          function Qx(zn, Ur, $r, Mi) {
            yt(as, KM) &&
              Oe(
                Ur.pos,
                t.getTokenStart(),
                f._0_tag_already_specified,
                Gi(Ur.escapedText),
              );
            const Wi = rt(!0),
              Na = $r !== void 0 && Mi !== void 0 ? M(zn, B(), $r, Mi) : void 0;
            return Zt(h.createJSDocTypeTag(Ur, Wi, Na), zn);
          }
          function ihe(zn, Ur, $r, Mi) {
            const Na =
                te() === 23 ||
                wt(() => gt() === 60 && Xu(gt()) && Or(t.getTokenValue()))
                  ? void 0
                  : Pt(),
              Bs = $r !== void 0 && Mi !== void 0 ? M(zn, B(), $r, Mi) : void 0;
            return Zt(h.createJSDocSeeTag(Ur, Na, Bs), zn);
          }
          function ohe(zn, Ur, $r, Mi) {
            const Wi = of(),
              Na = M(zn, B(), $r, Mi);
            return Zt(h.createJSDocThrowsTag(Ur, Wi, Na), zn);
          }
          function AW(zn, Ur, $r, Mi) {
            const Wi = B(),
              Na = qX();
            let Bs = t.getTokenFullStart();
            const Ed = M(zn, Bs, $r, Mi);
            Ed || (Bs = t.getTokenFullStart());
            const Rh =
              typeof Ed != "string"
                ? qa(so([Zt(Na, Wi, Bs)], Ed), Wi)
                : Na.text + Ed;
            return Zt(h.createJSDocAuthorTag(Ur, Rh), zn);
          }
          function qX() {
            const zn = [];
            let Ur = !1,
              $r = t.getToken();
            for (; $r !== 1 && $r !== 4; ) {
              if ($r === 30) Ur = !0;
              else {
                if ($r === 60 && !Ur) break;
                if ($r === 32 && Ur) {
                  (zn.push(t.getTokenText()),
                    t.resetTokenState(t.getTokenEnd()));
                  break;
                }
              }
              (zn.push(t.getTokenText()), ($r = gt()));
            }
            return h.createJSDocText(zn.join(""));
          }
          function cT(zn, Ur, $r, Mi) {
            const Wi = TE();
            return Zt(
              h.createJSDocImplementsTag(Ur, Wi, M(zn, B(), $r, Mi)),
              zn,
            );
          }
          function ahe(zn, Ur, $r, Mi) {
            const Wi = TE();
            return Zt(h.createJSDocAugmentsTag(Ur, Wi, M(zn, B(), $r, Mi)), zn);
          }
          function she(zn, Ur, $r, Mi) {
            const Wi = rt(!1),
              Na = $r !== void 0 && Mi !== void 0 ? M(zn, B(), $r, Mi) : void 0;
            return Zt(h.createJSDocSatisfiesTag(Ur, Wi, Na), zn);
          }
          function lhe(zn, Ur, $r, Mi) {
            const Wi = t.getTokenFullStart();
            let Na;
            Ln() && (Na = Fs());
            const Bs = cL(Na, Wi, 156, !0),
              Ed = gA(),
              Rh = Xx(),
              Mm = $r !== void 0 && Mi !== void 0 ? M(zn, B(), $r, Mi) : void 0;
            return Zt(h.createJSDocImportTag(Ur, Bs, Ed, Rh, Mm), zn);
          }
          function TE() {
            const zn = co(19),
              Ur = B(),
              $r = mL();
            t.setSkipJsDocLeadingAsterisks(!0);
            const Mi = bl();
            t.setSkipJsDocLeadingAsterisks(!1);
            const Wi = h.createExpressionWithTypeArguments($r, Mi),
              Na = Zt(Wi, Ur);
            return (zn && (Y_(), ln(20)), Na);
          }
          function mL() {
            const zn = B();
            let Ur = Jp();
            for (; co(25); ) {
              const $r = Jp();
              Ur = Zt(G(Ur, $r), zn);
            }
            return Ur;
          }
          function Zx(zn, Ur, $r, Mi, Wi) {
            return Zt(Ur($r, M(zn, B(), Mi, Wi)), zn);
          }
          function JX(zn, Ur, $r, Mi) {
            const Wi = rt(!0);
            return (
              Y_(),
              Zt(h.createJSDocThisTag(Ur, Wi, M(zn, B(), $r, Mi)), zn)
            );
          }
          function hL(zn, Ur, $r, Mi) {
            const Wi = rt(!0);
            return (
              Y_(),
              Zt(h.createJSDocEnumTag(Ur, Wi, M(zn, B(), $r, Mi)), zn)
            );
          }
          function KX(zn, Ur, $r, Mi) {
            let Wi = of();
            br();
            const Na = IW();
            Y_();
            let Bs = V($r),
              Ed;
            if (!Wi || Ih(Wi.type)) {
              let Mm,
                Qm,
                Bg,
                Py = !1;
              for (; (Mm = En(() => uhe($r))) && Mm.kind !== 346; )
                if (((Py = !0), Mm.kind === 345))
                  if (Qm) {
                    const OC = Kt(
                      f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags,
                    );
                    OC &&
                      pa(
                        OC,
                        CI(re, Ne, 0, 0, f.The_tag_was_first_specified_here),
                      );
                    break;
                  } else Qm = Mm;
                else Bg = Bn(Bg, Mm);
              if (Py) {
                const OC = Wi && Wi.type.kind === 189,
                  gL = h.createJSDocTypeLiteral(Bg, OC);
                ((Wi =
                  Qm && Qm.typeExpression && !Ih(Qm.typeExpression.type)
                    ? Qm.typeExpression
                    : Zt(gL, zn)),
                  (Ed = Wi.end));
              }
            }
            ((Ed = Ed || Bs !== void 0 ? B() : (Na ?? Wi ?? Ur).end),
              Bs || (Bs = M(zn, Ed, $r, Mi)));
            const Rh = h.createJSDocTypedefTag(Ur, Wi, Na, Bs);
            return Zt(Rh, zn, Ed);
          }
          function IW(zn) {
            const Ur = t.getTokenStart();
            if (!Xu(te())) return;
            const $r = Jp();
            if (co(25)) {
              const Mi = IW(!0),
                Wi = h.createModuleDeclaration(void 0, $r, Mi, zn ? 8 : void 0);
              return Zt(Wi, Ur);
            }
            return (zn && ($r.flags |= 4096), $r);
          }
          function _L(zn) {
            const Ur = B();
            let $r, Mi;
            for (; ($r = En(() => yA(4, zn))); ) {
              if ($r.kind === 346) {
                Nt(
                  $r.tagName,
                  f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag,
                );
                break;
              }
              Mi = Bn(Mi, $r);
            }
            return qa(Mi || [], Ur);
          }
          function XX(zn, Ur) {
            const $r = _L(Ur),
              Mi = En(() => {
                if (xh(60)) {
                  const Wi = T(Ur);
                  if (Wi && Wi.kind === 343) return Wi;
                }
              });
            return Zt(h.createJSDocSignature(void 0, $r, Mi), zn);
          }
          function YX(zn, Ur, $r, Mi) {
            const Wi = IW();
            Y_();
            let Na = V($r);
            const Bs = XX(zn, $r);
            Na || (Na = M(zn, B(), $r, Mi));
            const Ed = Na !== void 0 ? B() : Bs.end;
            return Zt(h.createJSDocCallbackTag(Ur, Bs, Wi, Na), zn, Ed);
          }
          function che(zn, Ur, $r, Mi) {
            Y_();
            let Wi = V($r);
            const Na = XX(zn, $r);
            Wi || (Wi = M(zn, B(), $r, Mi));
            const Bs = Wi !== void 0 ? B() : Na.end;
            return Zt(h.createJSDocOverloadTag(Ur, Na, Wi), zn, Bs);
          }
          function dhe(zn, Ur) {
            for (; !He(zn) || !He(Ur); )
              if (
                !He(zn) &&
                !He(Ur) &&
                zn.right.escapedText === Ur.right.escapedText
              )
                ((zn = zn.left), (Ur = Ur.left));
              else return !1;
            return zn.escapedText === Ur.escapedText;
          }
          function uhe(zn) {
            return yA(1, zn);
          }
          function yA(zn, Ur, $r) {
            let Mi = !0,
              Wi = !1;
            for (;;)
              switch (gt()) {
                case 60:
                  if (Mi) {
                    const Na = $X(zn, Ur);
                    return Na &&
                      (Na.kind === 342 || Na.kind === 349) &&
                      $r &&
                      (He(Na.name) || !dhe($r, Na.name.left))
                      ? !1
                      : Na;
                  }
                  Wi = !1;
                  break;
                case 4:
                  ((Mi = !0), (Wi = !1));
                  break;
                case 42:
                  (Wi && (Mi = !1), (Wi = !0));
                  break;
                case 80:
                  Mi = !1;
                  break;
                case 1:
                  return !1;
              }
          }
          function $X(zn, Ur) {
            C.assert(te() === 60);
            const $r = t.getTokenFullStart();
            gt();
            const Mi = Jp(),
              Wi = br();
            let Na;
            switch (Mi.escapedText) {
              case "type":
                return zn === 1 && Qx($r, Mi);
              case "prop":
              case "property":
                Na = 1;
                break;
              case "arg":
              case "argument":
              case "param":
                Na = 6;
                break;
              case "template":
                return _r($r, Mi, Ur, Wi);
              case "this":
                return JX($r, Mi, Ur, Wi);
              default:
                return !1;
            }
            return zn & Na ? $x($r, Mi, zn, Ur) : !1;
          }
          function phe() {
            const zn = B(),
              Ur = xh(23);
            Ur && Y_();
            const $r = wi(!1, !0),
              Mi = Jp(
                f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces,
              );
            let Wi;
            if (
              (Ur && (Y_(), ln(64), (Wi = Ia(16777216, Th)), ln(24)), !Ol(Mi))
            )
              return Zt(
                h.createTypeParameterDeclaration($r, Mi, void 0, Wi),
                zn,
              );
          }
          function Wv() {
            const zn = B(),
              Ur = [];
            do {
              Y_();
              const $r = phe();
              ($r !== void 0 && Ur.push($r), br());
            } while (xh(28));
            return qa(Ur, zn);
          }
          function _r(zn, Ur, $r, Mi) {
            const Wi = te() === 19 ? rt() : void 0,
              Na = Wv();
            return Zt(
              h.createJSDocTemplateTag(Ur, Wi, Na, M(zn, B(), $r, Mi)),
              zn,
            );
          }
          function xh(zn) {
            return te() === zn ? (gt(), !0) : !1;
          }
          function QX() {
            let zn = Jp();
            for (co(23) && ln(24); co(25); ) {
              const Ur = Jp();
              (co(23) && ln(24), (zn = tn(zn, Ur)));
            }
            return zn;
          }
          function Jp(zn) {
            if (!Xu(te())) return As(80, !zn, zn || f.Identifier_expected);
            Wt++;
            const Ur = t.getTokenStart(),
              $r = t.getTokenEnd(),
              Mi = te(),
              Wi = Hl(t.getTokenValue()),
              Na = Zt(N(Wi, Mi), Ur, $r);
            return (gt(), Na);
          }
        }
      })((g_ = e.JSDocParser || (e.JSDocParser = {})));
    })(o0 || (o0 = {}));
    var KSe = new WeakSet();
    function Fje(e) {
      (KSe.has(e) &&
        C.fail("Source file has already been incrementally parsed"),
        KSe.add(e));
    }
    var XSe = new WeakSet();
    function zje(e) {
      return XSe.has(e);
    }
    function coe(e) {
      XSe.add(e);
    }
    var Xj;
    ((e) => {
      function t(A, R, N, P) {
        if (((P = P || C.shouldAssert(2)), h(A, R, N, P), Wee(N))) return A;
        if (A.statements.length === 0)
          return o0.parseSourceFile(
            A.fileName,
            R,
            A.languageVersion,
            void 0,
            !0,
            A.scriptKind,
            A.setExternalModuleIndicator,
            A.jsDocParsingMode,
          );
        (Fje(A), o0.fixupParentReferences(A));
        const k = A.text,
          W = g(A),
          O = d(A, N);
        (h(A, R, O, P),
          C.assert(O.span.start <= N.span.start),
          C.assert(Dl(O.span) === Dl(N.span)),
          C.assert(Dl(NN(O)) === Dl(NN(N))));
        const G = NN(O).length - O.span.length;
        u(A, O.span.start, Dl(O.span), Dl(NN(O)), G, k, R, P);
        const j = o0.parseSourceFile(
          A.fileName,
          R,
          A.languageVersion,
          W,
          !0,
          A.scriptKind,
          A.setExternalModuleIndicator,
          A.jsDocParsingMode,
        );
        return (
          (j.commentDirectives = r(
            A.commentDirectives,
            j.commentDirectives,
            O.span.start,
            Dl(O.span),
            G,
            k,
            R,
            P,
          )),
          (j.impliedNodeFormat = A.impliedNodeFormat),
          zie(A, j),
          j
        );
      }
      e.updateSourceFile = t;
      function r(A, R, N, P, k, W, O, G) {
        if (!A) return R;
        let j,
          J = !1;
        for (const q of A) {
          const { range: ye, type: ie } = q;
          if (ye.end < N) j = Bn(j, q);
          else if (ye.pos > P) {
            Z();
            const K = { range: { pos: ye.pos + k, end: ye.end + k }, type: ie };
            ((j = Bn(j, K)),
              G &&
                C.assert(
                  W.substring(ye.pos, ye.end) ===
                    O.substring(K.range.pos, K.range.end),
                ));
          }
        }
        return (Z(), j);
        function Z() {
          J || ((J = !0), j ? R && j.push(...R) : (j = R));
        }
      }
      function i(A, R, N, P, k, W, O) {
        N ? j(A) : G(A);
        return;
        function G(J) {
          let Z = "";
          if (
            (O && o(J) && (Z = k.substring(J.pos, J.end)),
            kj(J, R),
            uh(J, J.pos + P, J.end + P),
            O && o(J) && C.assert(Z === W.substring(J.pos, J.end)),
            Jo(J, G, j),
            ef(J))
          )
            for (const q of J.jsDoc) G(q);
          l(J, O);
        }
        function j(J) {
          uh(J, J.pos + P, J.end + P);
          for (const Z of J) G(Z);
        }
      }
      function o(A) {
        switch (A.kind) {
          case 11:
          case 9:
          case 80:
            return !0;
        }
        return !1;
      }
      function s(A, R, N, P, k) {
        (C.assert(
          A.end >= R,
          "Adjusting an element that was entirely before the change range",
        ),
          C.assert(
            A.pos <= N,
            "Adjusting an element that was entirely after the change range",
          ),
          C.assert(A.pos <= A.end));
        const W = Math.min(A.pos, P),
          O = A.end >= N ? A.end + k : Math.min(A.end, P);
        if ((C.assert(W <= O), A.parent)) {
          const G = A.parent;
          (C.assertGreaterThanOrEqual(W, G.pos),
            C.assertLessThanOrEqual(O, G.end));
        }
        uh(A, W, O);
      }
      function l(A, R) {
        if (R) {
          let N = A.pos;
          const P = (k) => {
            (C.assert(k.pos >= N), (N = k.end));
          };
          if (ef(A)) for (const k of A.jsDoc) P(k);
          (Jo(A, P), C.assert(N <= A.end));
        }
      }
      function u(A, R, N, P, k, W, O, G) {
        j(A);
        return;
        function j(Z) {
          if ((C.assert(Z.pos <= Z.end), Z.pos > N)) {
            i(Z, A, !1, k, W, O, G);
            return;
          }
          const q = Z.end;
          if (q >= R) {
            if ((coe(Z), kj(Z, A), s(Z, R, N, P, k), Jo(Z, j, J), ef(Z)))
              for (const ye of Z.jsDoc) j(ye);
            l(Z, G);
            return;
          }
          C.assert(q < R);
        }
        function J(Z) {
          if ((C.assert(Z.pos <= Z.end), Z.pos > N)) {
            i(Z, A, !0, k, W, O, G);
            return;
          }
          const q = Z.end;
          if (q >= R) {
            (coe(Z), s(Z, R, N, P, k));
            for (const ye of Z) j(ye);
            return;
          }
          C.assert(q < R);
        }
      }
      function d(A, R) {
        let P = R.span.start;
        for (let O = 0; P > 0 && O <= 1; O++) {
          const G = _(A, P);
          C.assert(G.pos <= P);
          const j = G.pos;
          P = Math.max(0, j - 1);
        }
        const k = ic(P, Dl(R.span)),
          W = R.newLength + (R.span.start - P);
        return L2(k, W);
      }
      function _(A, R) {
        let N = A,
          P;
        if ((Jo(A, W), P)) {
          const O = k(P);
          O.pos > N.pos && (N = O);
        }
        return N;
        function k(O) {
          for (;;) {
            const G = AV(O);
            if (G) O = G;
            else return O;
          }
        }
        function W(O) {
          if (!Ol(O))
            if (O.pos <= R) {
              if ((O.pos >= N.pos && (N = O), R < O.end)) return (Jo(O, W), !0);
              (C.assert(O.end <= R), (P = O));
            } else return (C.assert(O.pos > R), !0);
        }
      }
      function h(A, R, N, P) {
        const k = A.text;
        if (
          N &&
          (C.assert(k.length - N.span.length + N.newLength === R.length),
          P || C.shouldAssert(3))
        ) {
          const W = k.substr(0, N.span.start),
            O = R.substr(0, N.span.start);
          C.assert(W === O);
          const G = k.substring(Dl(N.span), k.length),
            j = R.substring(Dl(NN(N)), R.length);
          C.assert(G === j);
        }
      }
      function g(A) {
        let R = A.statements,
          N = 0;
        C.assert(N < R.length);
        let P = R[N],
          k = -1;
        return {
          currentNode(O) {
            return (
              O !== k &&
                (P && P.end === O && N < R.length - 1 && (N++, (P = R[N])),
                (!P || P.pos !== O) && W(O)),
              (k = O),
              C.assert(!P || P.pos === O),
              P
            );
          },
        };
        function W(O) {
          ((R = void 0), (N = -1), (P = void 0), Jo(A, G, j));
          return;
          function G(J) {
            return O >= J.pos && O < J.end ? (Jo(J, G, j), !0) : !1;
          }
          function j(J) {
            if (O >= J.pos && O < J.end)
              for (let Z = 0; Z < J.length; Z++) {
                const q = J[Z];
                if (q) {
                  if (q.pos === O) return ((R = J), (N = Z), (P = q), !0);
                  if (q.pos < O && O < q.end) return (Jo(q, G, j), !0);
                }
              }
            return !1;
          }
        }
      }
      e.createSyntaxCursor = g;
      let E;
      ((A) => {
        A[(A.Value = -1)] = "Value";
      })(E || (E = {}));
    })(Xj || (Xj = {}));
    function ad(e) {
      return W4(e) !== void 0;
    }
    function W4(e) {
      const t = nI(e, J6, !1);
      if (t) return t;
      if (El(e, ".ts")) {
        const r = Ic(e),
          i = r.lastIndexOf(".d.");
        if (i >= 0) return r.substring(i);
      }
    }
    function Bje(e, t, r, i) {
      if (e) {
        if (e === "import") return 99;
        if (e === "require") return 1;
        i(t, r - t, f.resolution_mode_should_be_either_require_or_import);
      }
    }
    function Yj(e, t) {
      const r = [];
      for (const i of lg(t, 0) || ae) {
        const o = t.substring(i.pos, i.end);
        Uje(r, i, o);
      }
      e.pragmas = new Map();
      for (const i of r) {
        if (e.pragmas.has(i.name)) {
          const o = e.pragmas.get(i.name);
          o instanceof Array
            ? o.push(i.args)
            : e.pragmas.set(i.name, [o, i.args]);
          continue;
        }
        e.pragmas.set(i.name, i.args);
      }
    }
    function $j(e, t) {
      ((e.checkJsDirective = void 0),
        (e.referencedFiles = []),
        (e.typeReferenceDirectives = []),
        (e.libReferenceDirectives = []),
        (e.amdDependencies = []),
        (e.hasNoDefaultLib = !1),
        e.pragmas.forEach((r, i) => {
          switch (i) {
            case "reference": {
              const o = e.referencedFiles,
                s = e.typeReferenceDirectives,
                l = e.libReferenceDirectives;
              Ye(QA(r), (u) => {
                const {
                    types: d,
                    lib: _,
                    path: h,
                    ["resolution-mode"]: g,
                    preserve: E,
                  } = u.arguments,
                  A = E === "true" ? !0 : void 0;
                if (u.arguments["no-default-lib"] === "true")
                  e.hasNoDefaultLib = !0;
                else if (d) {
                  const R = Bje(g, d.pos, d.end, t);
                  s.push({
                    pos: d.pos,
                    end: d.end,
                    fileName: d.value,
                    ...(R ? { resolutionMode: R } : {}),
                    ...(A ? { preserve: A } : {}),
                  });
                } else
                  _
                    ? l.push({
                        pos: _.pos,
                        end: _.end,
                        fileName: _.value,
                        ...(A ? { preserve: A } : {}),
                      })
                    : h
                      ? o.push({
                          pos: h.pos,
                          end: h.end,
                          fileName: h.value,
                          ...(A ? { preserve: A } : {}),
                        })
                      : t(
                          u.range.pos,
                          u.range.end - u.range.pos,
                          f.Invalid_reference_directive_syntax,
                        );
              });
              break;
            }
            case "amd-dependency": {
              e.amdDependencies = Vt(QA(r), (o) => ({
                name: o.arguments.name,
                path: o.arguments.path,
              }));
              break;
            }
            case "amd-module": {
              if (r instanceof Array)
                for (const o of r)
                  (e.moduleName &&
                    t(
                      o.range.pos,
                      o.range.end - o.range.pos,
                      f.An_AMD_module_cannot_have_multiple_name_assignments,
                    ),
                    (e.moduleName = o.arguments.name));
              else e.moduleName = r.arguments.name;
              break;
            }
            case "ts-nocheck":
            case "ts-check": {
              Ye(QA(r), (o) => {
                (!e.checkJsDirective || o.range.pos > e.checkJsDirective.pos) &&
                  (e.checkJsDirective = {
                    enabled: i === "ts-check",
                    end: o.range.end,
                    pos: o.range.pos,
                  });
              });
              break;
            }
            case "jsx":
            case "jsxfrag":
            case "jsximportsource":
            case "jsxruntime":
              return;
            default:
              C.fail("Unhandled pragma kind");
          }
        }));
    }
    var doe = new Map();
    function Gje(e) {
      if (doe.has(e)) return doe.get(e);
      const t = new RegExp(
        `(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,
        "im",
      );
      return (doe.set(e, t), t);
    }
    var Vje = /^\/\/\/\s*<(\S+)\s.*?\/>/m,
      jje = /^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;
    function Uje(e, t, r) {
      const i = t.kind === 2 && Vje.exec(r);
      if (i) {
        const s = i[1].toLowerCase(),
          l = X8[s];
        if (!l || !(l.kind & 1)) return;
        if (l.args) {
          const u = {};
          for (const d of l.args) {
            const h = Gje(d.name).exec(r);
            if (!h && !d.optional) return;
            if (h) {
              const g = h[2] || h[3];
              if (d.captureSpan) {
                const E = t.pos + h.index + h[1].length + 1;
                u[d.name] = { value: g, pos: E, end: E + g.length };
              } else u[d.name] = g;
            }
          }
          e.push({ name: s, args: { arguments: u, range: t } });
        } else e.push({ name: s, args: { arguments: {}, range: t } });
        return;
      }
      const o = t.kind === 2 && jje.exec(r);
      if (o) return YSe(e, t, 2, o);
      if (t.kind === 3) {
        const s = /@(\S+)(\s+(?:\S.*)?)?$/gm;
        let l;
        for (; (l = s.exec(r)); ) YSe(e, t, 4, l);
      }
    }
    function YSe(e, t, r, i) {
      if (!i) return;
      const o = i[1].toLowerCase(),
        s = X8[o];
      if (!s || !(s.kind & r)) return;
      const l = i[2],
        u = Hje(s, l);
      u !== "fail" && e.push({ name: o, args: { arguments: u, range: t } });
    }
    function Hje(e, t) {
      if (!t) return {};
      if (!e.args) return {};
      const r = t.trim().split(/\s+/),
        i = {};
      for (let o = 0; o < e.args.length; o++) {
        const s = e.args[o];
        if (!r[o] && !s.optional) return "fail";
        if (s.captureSpan)
          return C.fail(
            "Capture spans not yet implemented for non-xml pragmas",
          );
        i[s.name] = r[o];
      }
      return i;
    }
    function a0(e, t) {
      return e.kind !== t.kind
        ? !1
        : e.kind === 80
          ? e.escapedText === t.escapedText
          : e.kind === 110
            ? !0
            : e.kind === 296
              ? e.namespace.escapedText === t.namespace.escapedText &&
                e.name.escapedText === t.name.escapedText
              : e.name.escapedText === t.name.escapedText &&
                a0(e.expression, t.expression);
    }
    var uoe = {
        name: "compileOnSave",
        type: "boolean",
        defaultValueDescription: !1,
      },
      $Se = new Map(
        Object.entries({
          preserve: 1,
          "react-native": 3,
          "react-jsx": 4,
          "react-jsxdev": 5,
          react: 2,
        }),
      ),
      Mw = new Map(za($Se.entries(), ([e, t]) => ["" + t, e])),
      QSe = [
        ["es5", "lib.es5.d.ts"],
        ["es6", "lib.es2015.d.ts"],
        ["es2015", "lib.es2015.d.ts"],
        ["es7", "lib.es2016.d.ts"],
        ["es2016", "lib.es2016.d.ts"],
        ["es2017", "lib.es2017.d.ts"],
        ["es2018", "lib.es2018.d.ts"],
        ["es2019", "lib.es2019.d.ts"],
        ["es2020", "lib.es2020.d.ts"],
        ["es2021", "lib.es2021.d.ts"],
        ["es2022", "lib.es2022.d.ts"],
        ["es2023", "lib.es2023.d.ts"],
        ["es2024", "lib.es2024.d.ts"],
        ["esnext", "lib.esnext.d.ts"],
        ["dom", "lib.dom.d.ts"],
        ["dom.iterable", "lib.dom.iterable.d.ts"],
        ["dom.asynciterable", "lib.dom.asynciterable.d.ts"],
        ["webworker", "lib.webworker.d.ts"],
        ["webworker.importscripts", "lib.webworker.importscripts.d.ts"],
        ["webworker.iterable", "lib.webworker.iterable.d.ts"],
        ["webworker.asynciterable", "lib.webworker.asynciterable.d.ts"],
        ["scripthost", "lib.scripthost.d.ts"],
        ["es2015.core", "lib.es2015.core.d.ts"],
        ["es2015.collection", "lib.es2015.collection.d.ts"],
        ["es2015.generator", "lib.es2015.generator.d.ts"],
        ["es2015.iterable", "lib.es2015.iterable.d.ts"],
        ["es2015.promise", "lib.es2015.promise.d.ts"],
        ["es2015.proxy", "lib.es2015.proxy.d.ts"],
        ["es2015.reflect", "lib.es2015.reflect.d.ts"],
        ["es2015.symbol", "lib.es2015.symbol.d.ts"],
        ["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"],
        ["es2016.array.include", "lib.es2016.array.include.d.ts"],
        ["es2016.intl", "lib.es2016.intl.d.ts"],
        ["es2017.arraybuffer", "lib.es2017.arraybuffer.d.ts"],
        ["es2017.date", "lib.es2017.date.d.ts"],
        ["es2017.object", "lib.es2017.object.d.ts"],
        ["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"],
        ["es2017.string", "lib.es2017.string.d.ts"],
        ["es2017.intl", "lib.es2017.intl.d.ts"],
        ["es2017.typedarrays", "lib.es2017.typedarrays.d.ts"],
        ["es2018.asyncgenerator", "lib.es2018.asyncgenerator.d.ts"],
        ["es2018.asynciterable", "lib.es2018.asynciterable.d.ts"],
        ["es2018.intl", "lib.es2018.intl.d.ts"],
        ["es2018.promise", "lib.es2018.promise.d.ts"],
        ["es2018.regexp", "lib.es2018.regexp.d.ts"],
        ["es2019.array", "lib.es2019.array.d.ts"],
        ["es2019.object", "lib.es2019.object.d.ts"],
        ["es2019.string", "lib.es2019.string.d.ts"],
        ["es2019.symbol", "lib.es2019.symbol.d.ts"],
        ["es2019.intl", "lib.es2019.intl.d.ts"],
        ["es2020.bigint", "lib.es2020.bigint.d.ts"],
        ["es2020.date", "lib.es2020.date.d.ts"],
        ["es2020.promise", "lib.es2020.promise.d.ts"],
        ["es2020.sharedmemory", "lib.es2020.sharedmemory.d.ts"],
        ["es2020.string", "lib.es2020.string.d.ts"],
        ["es2020.symbol.wellknown", "lib.es2020.symbol.wellknown.d.ts"],
        ["es2020.intl", "lib.es2020.intl.d.ts"],
        ["es2020.number", "lib.es2020.number.d.ts"],
        ["es2021.promise", "lib.es2021.promise.d.ts"],
        ["es2021.string", "lib.es2021.string.d.ts"],
        ["es2021.weakref", "lib.es2021.weakref.d.ts"],
        ["es2021.intl", "lib.es2021.intl.d.ts"],
        ["es2022.array", "lib.es2022.array.d.ts"],
        ["es2022.error", "lib.es2022.error.d.ts"],
        ["es2022.intl", "lib.es2022.intl.d.ts"],
        ["es2022.object", "lib.es2022.object.d.ts"],
        ["es2022.string", "lib.es2022.string.d.ts"],
        ["es2022.regexp", "lib.es2022.regexp.d.ts"],
        ["es2023.array", "lib.es2023.array.d.ts"],
        ["es2023.collection", "lib.es2023.collection.d.ts"],
        ["es2023.intl", "lib.es2023.intl.d.ts"],
        ["es2024.arraybuffer", "lib.es2024.arraybuffer.d.ts"],
        ["es2024.collection", "lib.es2024.collection.d.ts"],
        ["es2024.object", "lib.es2024.object.d.ts"],
        ["es2024.promise", "lib.es2024.promise.d.ts"],
        ["es2024.regexp", "lib.es2024.regexp.d.ts"],
        ["es2024.sharedmemory", "lib.es2024.sharedmemory.d.ts"],
        ["es2024.string", "lib.es2024.string.d.ts"],
        ["esnext.array", "lib.es2023.array.d.ts"],
        ["esnext.collection", "lib.esnext.collection.d.ts"],
        ["esnext.symbol", "lib.es2019.symbol.d.ts"],
        ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"],
        ["esnext.intl", "lib.esnext.intl.d.ts"],
        ["esnext.disposable", "lib.esnext.disposable.d.ts"],
        ["esnext.bigint", "lib.es2020.bigint.d.ts"],
        ["esnext.string", "lib.es2022.string.d.ts"],
        ["esnext.promise", "lib.es2024.promise.d.ts"],
        ["esnext.weakref", "lib.es2021.weakref.d.ts"],
        ["esnext.decorators", "lib.esnext.decorators.d.ts"],
        ["esnext.object", "lib.es2024.object.d.ts"],
        ["esnext.array", "lib.esnext.array.d.ts"],
        ["esnext.regexp", "lib.es2024.regexp.d.ts"],
        ["esnext.string", "lib.es2024.string.d.ts"],
        ["esnext.iterator", "lib.esnext.iterator.d.ts"],
        ["esnext.promise", "lib.esnext.promise.d.ts"],
        ["esnext.float16", "lib.esnext.float16.d.ts"],
        ["esnext.error", "lib.esnext.error.d.ts"],
        ["esnext.sharedmemory", "lib.esnext.sharedmemory.d.ts"],
        ["decorators", "lib.decorators.d.ts"],
        ["decorators.legacy", "lib.decorators.legacy.d.ts"],
      ],
      F4 = QSe.map((e) => e[0]),
      Qj = new Map(QSe),
      rx = [
        {
          name: "watchFile",
          type: new Map(
            Object.entries({
              fixedpollinginterval: 0,
              prioritypollinginterval: 1,
              dynamicprioritypolling: 2,
              fixedchunksizepolling: 3,
              usefsevents: 4,
              usefseventsonparentdirectory: 5,
            }),
          ),
          category: f.Watch_and_Build_Modes,
          description: f.Specify_how_the_TypeScript_watch_mode_works,
          defaultValueDescription: 4,
        },
        {
          name: "watchDirectory",
          type: new Map(
            Object.entries({
              usefsevents: 0,
              fixedpollinginterval: 1,
              dynamicprioritypolling: 2,
              fixedchunksizepolling: 3,
            }),
          ),
          category: f.Watch_and_Build_Modes,
          description:
            f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,
          defaultValueDescription: 0,
        },
        {
          name: "fallbackPolling",
          type: new Map(
            Object.entries({
              fixedinterval: 0,
              priorityinterval: 1,
              dynamicpriority: 2,
              fixedchunksize: 3,
            }),
          ),
          category: f.Watch_and_Build_Modes,
          description:
            f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,
          defaultValueDescription: 1,
        },
        {
          name: "synchronousWatchDirectory",
          type: "boolean",
          category: f.Watch_and_Build_Modes,
          description:
            f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,
          defaultValueDescription: !1,
        },
        {
          name: "excludeDirectories",
          type: "list",
          element: {
            name: "excludeDirectory",
            type: "string",
            isFilePath: !0,
            extraValidation: Moe,
          },
          allowConfigDirTemplateSubstitution: !0,
          category: f.Watch_and_Build_Modes,
          description: f.Remove_a_list_of_directories_from_the_watch_process,
        },
        {
          name: "excludeFiles",
          type: "list",
          element: {
            name: "excludeFile",
            type: "string",
            isFilePath: !0,
            extraValidation: Moe,
          },
          allowConfigDirTemplateSubstitution: !0,
          category: f.Watch_and_Build_Modes,
          description:
            f.Remove_a_list_of_files_from_the_watch_mode_s_processing,
        },
      ],
      z4 = [
        {
          name: "help",
          shortName: "h",
          type: "boolean",
          showInSimplifiedHelpView: !0,
          isCommandLineOnly: !0,
          category: f.Command_line_Options,
          description: f.Print_this_message,
          defaultValueDescription: !1,
        },
        {
          name: "help",
          shortName: "?",
          type: "boolean",
          isCommandLineOnly: !0,
          category: f.Command_line_Options,
          defaultValueDescription: !1,
        },
        {
          name: "watch",
          shortName: "w",
          type: "boolean",
          showInSimplifiedHelpView: !0,
          isCommandLineOnly: !0,
          category: f.Command_line_Options,
          description: f.Watch_input_files,
          defaultValueDescription: !1,
        },
        {
          name: "preserveWatchOutput",
          type: "boolean",
          showInSimplifiedHelpView: !1,
          category: f.Output_Formatting,
          description: f.Disable_wiping_the_console_in_watch_mode,
          defaultValueDescription: !1,
        },
        {
          name: "listFiles",
          type: "boolean",
          category: f.Compiler_Diagnostics,
          description: f.Print_all_of_the_files_read_during_the_compilation,
          defaultValueDescription: !1,
        },
        {
          name: "explainFiles",
          type: "boolean",
          category: f.Compiler_Diagnostics,
          description:
            f.Print_files_read_during_the_compilation_including_why_it_was_included,
          defaultValueDescription: !1,
        },
        {
          name: "listEmittedFiles",
          type: "boolean",
          category: f.Compiler_Diagnostics,
          description: f.Print_the_names_of_emitted_files_after_a_compilation,
          defaultValueDescription: !1,
        },
        {
          name: "pretty",
          type: "boolean",
          showInSimplifiedHelpView: !0,
          category: f.Output_Formatting,
          description:
            f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,
          defaultValueDescription: !0,
        },
        {
          name: "traceResolution",
          type: "boolean",
          category: f.Compiler_Diagnostics,
          description: f.Log_paths_used_during_the_moduleResolution_process,
          defaultValueDescription: !1,
        },
        {
          name: "diagnostics",
          type: "boolean",
          category: f.Compiler_Diagnostics,
          description: f.Output_compiler_performance_information_after_building,
          defaultValueDescription: !1,
        },
        {
          name: "extendedDiagnostics",
          type: "boolean",
          category: f.Compiler_Diagnostics,
          description:
            f.Output_more_detailed_compiler_performance_information_after_building,
          defaultValueDescription: !1,
        },
        {
          name: "generateCpuProfile",
          type: "string",
          isFilePath: !0,
          paramType: f.FILE_OR_DIRECTORY,
          category: f.Compiler_Diagnostics,
          description:
            f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,
          defaultValueDescription: "profile.cpuprofile",
        },
        {
          name: "generateTrace",
          type: "string",
          isFilePath: !0,
          paramType: f.DIRECTORY,
          category: f.Compiler_Diagnostics,
          description: f.Generates_an_event_trace_and_a_list_of_types,
        },
        {
          name: "incremental",
          shortName: "i",
          type: "boolean",
          category: f.Projects,
          description:
            f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,
          transpileOptionValue: void 0,
          defaultValueDescription: f.false_unless_composite_is_set,
        },
        {
          name: "declaration",
          shortName: "d",
          type: "boolean",
          affectsBuildInfo: !0,
          showInSimplifiedHelpView: !0,
          category: f.Emit,
          transpileOptionValue: void 0,
          description:
            f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,
          defaultValueDescription: f.false_unless_composite_is_set,
        },
        {
          name: "declarationMap",
          type: "boolean",
          affectsBuildInfo: !0,
          showInSimplifiedHelpView: !0,
          category: f.Emit,
          defaultValueDescription: !1,
          description: f.Create_sourcemaps_for_d_ts_files,
        },
        {
          name: "emitDeclarationOnly",
          type: "boolean",
          affectsBuildInfo: !0,
          showInSimplifiedHelpView: !0,
          category: f.Emit,
          description: f.Only_output_d_ts_files_and_not_JavaScript_files,
          transpileOptionValue: void 0,
          defaultValueDescription: !1,
        },
        {
          name: "sourceMap",
          type: "boolean",
          affectsBuildInfo: !0,
          showInSimplifiedHelpView: !0,
          category: f.Emit,
          defaultValueDescription: !1,
          description: f.Create_source_map_files_for_emitted_JavaScript_files,
        },
        {
          name: "inlineSourceMap",
          type: "boolean",
          affectsBuildInfo: !0,
          category: f.Emit,
          description: f.Include_sourcemap_files_inside_the_emitted_JavaScript,
          defaultValueDescription: !1,
        },
        {
          name: "noCheck",
          type: "boolean",
          showInSimplifiedHelpView: !1,
          category: f.Compiler_Diagnostics,
          description:
            f.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,
          transpileOptionValue: !0,
          defaultValueDescription: !1,
        },
        {
          name: "noEmit",
          type: "boolean",
          showInSimplifiedHelpView: !0,
          category: f.Emit,
          description: f.Disable_emitting_files_from_a_compilation,
          transpileOptionValue: void 0,
          defaultValueDescription: !1,
        },
        {
          name: "assumeChangesOnlyAffectDirectDependencies",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Watch_and_Build_Modes,
          description:
            f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,
          defaultValueDescription: !1,
        },
        {
          name: "locale",
          type: "string",
          category: f.Command_line_Options,
          isCommandLineOnly: !0,
          description:
            f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,
          defaultValueDescription: f.Platform_specific,
        },
      ],
      Zj = {
        name: "target",
        shortName: "t",
        type: new Map(
          Object.entries({
            es3: 0,
            es5: 1,
            es6: 2,
            es2015: 2,
            es2016: 3,
            es2017: 4,
            es2018: 5,
            es2019: 6,
            es2020: 7,
            es2021: 8,
            es2022: 9,
            es2023: 10,
            es2024: 11,
            esnext: 99,
          }),
        ),
        affectsSourceFile: !0,
        affectsModuleResolution: !0,
        affectsEmit: !0,
        affectsBuildInfo: !0,
        deprecatedKeys: new Set(["es3"]),
        paramType: f.VERSION,
        showInSimplifiedHelpView: !0,
        category: f.Language_and_Environment,
        description:
          f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,
        defaultValueDescription: 1,
      },
      poe = {
        name: "module",
        shortName: "m",
        type: new Map(
          Object.entries({
            none: 0,
            commonjs: 1,
            amd: 2,
            system: 4,
            umd: 3,
            es6: 5,
            es2015: 5,
            es2020: 6,
            es2022: 7,
            esnext: 99,
            node16: 100,
            node18: 101,
            node20: 102,
            nodenext: 199,
            preserve: 200,
          }),
        ),
        affectsSourceFile: !0,
        affectsModuleResolution: !0,
        affectsEmit: !0,
        affectsBuildInfo: !0,
        paramType: f.KIND,
        showInSimplifiedHelpView: !0,
        category: f.Modules,
        description: f.Specify_what_module_code_is_generated,
        defaultValueDescription: void 0,
      },
      ZSe = [
        {
          name: "all",
          type: "boolean",
          showInSimplifiedHelpView: !0,
          category: f.Command_line_Options,
          description: f.Show_all_compiler_options,
          defaultValueDescription: !1,
        },
        {
          name: "version",
          shortName: "v",
          type: "boolean",
          showInSimplifiedHelpView: !0,
          category: f.Command_line_Options,
          description: f.Print_the_compiler_s_version,
          defaultValueDescription: !1,
        },
        {
          name: "init",
          type: "boolean",
          showInSimplifiedHelpView: !0,
          category: f.Command_line_Options,
          description:
            f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,
          defaultValueDescription: !1,
        },
        {
          name: "project",
          shortName: "p",
          type: "string",
          isFilePath: !0,
          showInSimplifiedHelpView: !0,
          category: f.Command_line_Options,
          paramType: f.FILE_OR_DIRECTORY,
          description:
            f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json,
        },
        {
          name: "showConfig",
          type: "boolean",
          showInSimplifiedHelpView: !0,
          category: f.Command_line_Options,
          isCommandLineOnly: !0,
          description: f.Print_the_final_configuration_instead_of_building,
          defaultValueDescription: !1,
        },
        {
          name: "listFilesOnly",
          type: "boolean",
          category: f.Command_line_Options,
          isCommandLineOnly: !0,
          description:
            f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,
          defaultValueDescription: !1,
        },
        Zj,
        poe,
        {
          name: "lib",
          type: "list",
          element: { name: "lib", type: Qj, defaultValueDescription: void 0 },
          affectsProgramStructure: !0,
          showInSimplifiedHelpView: !0,
          category: f.Language_and_Environment,
          description:
            f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,
          transpileOptionValue: void 0,
        },
        {
          name: "allowJs",
          type: "boolean",
          allowJsFlag: !0,
          affectsBuildInfo: !0,
          showInSimplifiedHelpView: !0,
          category: f.JavaScript_Support,
          description:
            f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,
          defaultValueDescription: !1,
        },
        {
          name: "checkJs",
          type: "boolean",
          affectsModuleResolution: !0,
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          showInSimplifiedHelpView: !0,
          category: f.JavaScript_Support,
          description:
            f.Enable_error_reporting_in_type_checked_JavaScript_files,
          defaultValueDescription: !1,
        },
        {
          name: "jsx",
          type: $Se,
          affectsSourceFile: !0,
          affectsEmit: !0,
          affectsBuildInfo: !0,
          affectsModuleResolution: !0,
          affectsSemanticDiagnostics: !0,
          paramType: f.KIND,
          showInSimplifiedHelpView: !0,
          category: f.Language_and_Environment,
          description: f.Specify_what_JSX_code_is_generated,
          defaultValueDescription: void 0,
        },
        {
          name: "outFile",
          type: "string",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          affectsDeclarationPath: !0,
          isFilePath: !0,
          paramType: f.FILE,
          showInSimplifiedHelpView: !0,
          category: f.Emit,
          description:
            f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,
          transpileOptionValue: void 0,
        },
        {
          name: "outDir",
          type: "string",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          affectsDeclarationPath: !0,
          isFilePath: !0,
          paramType: f.DIRECTORY,
          showInSimplifiedHelpView: !0,
          category: f.Emit,
          description: f.Specify_an_output_folder_for_all_emitted_files,
        },
        {
          name: "rootDir",
          type: "string",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          affectsDeclarationPath: !0,
          isFilePath: !0,
          paramType: f.LOCATION,
          category: f.Modules,
          description: f.Specify_the_root_folder_within_your_source_files,
          defaultValueDescription: f.Computed_from_the_list_of_input_files,
        },
        {
          name: "composite",
          type: "boolean",
          affectsBuildInfo: !0,
          isTSConfigOnly: !0,
          category: f.Projects,
          transpileOptionValue: void 0,
          defaultValueDescription: !1,
          description:
            f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references,
        },
        {
          name: "tsBuildInfoFile",
          type: "string",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          isFilePath: !0,
          paramType: f.FILE,
          category: f.Projects,
          transpileOptionValue: void 0,
          defaultValueDescription: ".tsbuildinfo",
          description:
            f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file,
        },
        {
          name: "removeComments",
          type: "boolean",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          showInSimplifiedHelpView: !0,
          category: f.Emit,
          defaultValueDescription: !1,
          description: f.Disable_emitting_comments,
        },
        {
          name: "importHelpers",
          type: "boolean",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          affectsSourceFile: !0,
          category: f.Emit,
          description:
            f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,
          defaultValueDescription: !1,
        },
        {
          name: "importsNotUsedAsValues",
          type: new Map(Object.entries({ remove: 0, preserve: 1, error: 2 })),
          affectsEmit: !0,
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Backwards_Compatibility,
          description:
            f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,
          defaultValueDescription: 0,
        },
        {
          name: "downlevelIteration",
          type: "boolean",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Emit,
          description:
            f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,
          defaultValueDescription: !1,
        },
        {
          name: "isolatedModules",
          type: "boolean",
          category: f.Interop_Constraints,
          description:
            f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,
          transpileOptionValue: !0,
          defaultValueDescription: !1,
        },
        {
          name: "verbatimModuleSyntax",
          type: "boolean",
          affectsEmit: !0,
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Interop_Constraints,
          description:
            f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,
          defaultValueDescription: !1,
        },
        {
          name: "isolatedDeclarations",
          type: "boolean",
          category: f.Interop_Constraints,
          description:
            f.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,
          defaultValueDescription: !1,
          affectsBuildInfo: !0,
          affectsSemanticDiagnostics: !0,
        },
        {
          name: "erasableSyntaxOnly",
          type: "boolean",
          category: f.Interop_Constraints,
          description:
            f.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,
          defaultValueDescription: !1,
          affectsBuildInfo: !0,
          affectsSemanticDiagnostics: !0,
        },
        {
          name: "libReplacement",
          type: "boolean",
          affectsProgramStructure: !0,
          category: f.Language_and_Environment,
          description: f.Enable_lib_replacement,
          defaultValueDescription: !0,
        },
        {
          name: "strict",
          type: "boolean",
          affectsBuildInfo: !0,
          showInSimplifiedHelpView: !0,
          category: f.Type_Checking,
          description: f.Enable_all_strict_type_checking_options,
          defaultValueDescription: !1,
        },
        {
          name: "noImplicitAny",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          strictFlag: !0,
          category: f.Type_Checking,
          description:
            f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,
          defaultValueDescription: f.false_unless_strict_is_set,
        },
        {
          name: "strictNullChecks",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          strictFlag: !0,
          category: f.Type_Checking,
          description:
            f.When_type_checking_take_into_account_null_and_undefined,
          defaultValueDescription: f.false_unless_strict_is_set,
        },
        {
          name: "strictFunctionTypes",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          strictFlag: !0,
          category: f.Type_Checking,
          description:
            f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,
          defaultValueDescription: f.false_unless_strict_is_set,
        },
        {
          name: "strictBindCallApply",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          strictFlag: !0,
          category: f.Type_Checking,
          description:
            f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,
          defaultValueDescription: f.false_unless_strict_is_set,
        },
        {
          name: "strictPropertyInitialization",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          strictFlag: !0,
          category: f.Type_Checking,
          description:
            f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,
          defaultValueDescription: f.false_unless_strict_is_set,
        },
        {
          name: "strictBuiltinIteratorReturn",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          strictFlag: !0,
          category: f.Type_Checking,
          description:
            f.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,
          defaultValueDescription: f.false_unless_strict_is_set,
        },
        {
          name: "noImplicitThis",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          strictFlag: !0,
          category: f.Type_Checking,
          description: f.Enable_error_reporting_when_this_is_given_the_type_any,
          defaultValueDescription: f.false_unless_strict_is_set,
        },
        {
          name: "useUnknownInCatchVariables",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          strictFlag: !0,
          category: f.Type_Checking,
          description:
            f.Default_catch_clause_variables_as_unknown_instead_of_any,
          defaultValueDescription: f.false_unless_strict_is_set,
        },
        {
          name: "alwaysStrict",
          type: "boolean",
          affectsSourceFile: !0,
          affectsEmit: !0,
          affectsBuildInfo: !0,
          strictFlag: !0,
          category: f.Type_Checking,
          description: f.Ensure_use_strict_is_always_emitted,
          defaultValueDescription: f.false_unless_strict_is_set,
        },
        {
          name: "noUnusedLocals",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Type_Checking,
          description:
            f.Enable_error_reporting_when_local_variables_aren_t_read,
          defaultValueDescription: !1,
        },
        {
          name: "noUnusedParameters",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Type_Checking,
          description: f.Raise_an_error_when_a_function_parameter_isn_t_read,
          defaultValueDescription: !1,
        },
        {
          name: "exactOptionalPropertyTypes",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Type_Checking,
          description:
            f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,
          defaultValueDescription: !1,
        },
        {
          name: "noImplicitReturns",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Type_Checking,
          description:
            f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,
          defaultValueDescription: !1,
        },
        {
          name: "noFallthroughCasesInSwitch",
          type: "boolean",
          affectsBindDiagnostics: !0,
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Type_Checking,
          description:
            f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,
          defaultValueDescription: !1,
        },
        {
          name: "noUncheckedIndexedAccess",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Type_Checking,
          description: f.Add_undefined_to_a_type_when_accessed_using_an_index,
          defaultValueDescription: !1,
        },
        {
          name: "noImplicitOverride",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Type_Checking,
          description:
            f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,
          defaultValueDescription: !1,
        },
        {
          name: "noPropertyAccessFromIndexSignature",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          showInSimplifiedHelpView: !1,
          category: f.Type_Checking,
          description:
            f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,
          defaultValueDescription: !1,
        },
        {
          name: "moduleResolution",
          type: new Map(
            Object.entries({
              node10: 2,
              node: 2,
              classic: 1,
              node16: 3,
              nodenext: 99,
              bundler: 100,
            }),
          ),
          deprecatedKeys: new Set(["node"]),
          affectsSourceFile: !0,
          affectsModuleResolution: !0,
          paramType: f.STRATEGY,
          category: f.Modules,
          description:
            f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,
          defaultValueDescription:
            f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node,
        },
        {
          name: "baseUrl",
          type: "string",
          affectsModuleResolution: !0,
          isFilePath: !0,
          category: f.Modules,
          description:
            f.Specify_the_base_directory_to_resolve_non_relative_module_names,
        },
        {
          name: "paths",
          type: "object",
          affectsModuleResolution: !0,
          allowConfigDirTemplateSubstitution: !0,
          isTSConfigOnly: !0,
          category: f.Modules,
          description:
            f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,
          transpileOptionValue: void 0,
        },
        {
          name: "rootDirs",
          type: "list",
          isTSConfigOnly: !0,
          element: { name: "rootDirs", type: "string", isFilePath: !0 },
          affectsModuleResolution: !0,
          allowConfigDirTemplateSubstitution: !0,
          category: f.Modules,
          description:
            f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,
          transpileOptionValue: void 0,
          defaultValueDescription: f.Computed_from_the_list_of_input_files,
        },
        {
          name: "typeRoots",
          type: "list",
          element: { name: "typeRoots", type: "string", isFilePath: !0 },
          affectsModuleResolution: !0,
          allowConfigDirTemplateSubstitution: !0,
          category: f.Modules,
          description:
            f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types,
        },
        {
          name: "types",
          type: "list",
          element: { name: "types", type: "string" },
          affectsProgramStructure: !0,
          showInSimplifiedHelpView: !0,
          category: f.Modules,
          description:
            f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,
          transpileOptionValue: void 0,
        },
        {
          name: "allowSyntheticDefaultImports",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Interop_Constraints,
          description:
            f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,
          defaultValueDescription: f.module_system_or_esModuleInterop,
        },
        {
          name: "esModuleInterop",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsEmit: !0,
          affectsBuildInfo: !0,
          showInSimplifiedHelpView: !0,
          category: f.Interop_Constraints,
          description:
            f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,
          defaultValueDescription: !1,
        },
        {
          name: "preserveSymlinks",
          type: "boolean",
          category: f.Interop_Constraints,
          description:
            f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,
          defaultValueDescription: !1,
        },
        {
          name: "allowUmdGlobalAccess",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Modules,
          description: f.Allow_accessing_UMD_globals_from_modules,
          defaultValueDescription: !1,
        },
        {
          name: "moduleSuffixes",
          type: "list",
          element: { name: "suffix", type: "string" },
          listPreserveFalsyValues: !0,
          affectsModuleResolution: !0,
          category: f.Modules,
          description:
            f.List_of_file_name_suffixes_to_search_when_resolving_a_module,
        },
        {
          name: "allowImportingTsExtensions",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Modules,
          description:
            f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
          defaultValueDescription: !1,
          transpileOptionValue: void 0,
        },
        {
          name: "rewriteRelativeImportExtensions",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Modules,
          description:
            f.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,
          defaultValueDescription: !1,
        },
        {
          name: "resolvePackageJsonExports",
          type: "boolean",
          affectsModuleResolution: !0,
          category: f.Modules,
          description:
            f.Use_the_package_json_exports_field_when_resolving_package_imports,
          defaultValueDescription:
            f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false,
        },
        {
          name: "resolvePackageJsonImports",
          type: "boolean",
          affectsModuleResolution: !0,
          category: f.Modules,
          description:
            f.Use_the_package_json_imports_field_when_resolving_imports,
          defaultValueDescription:
            f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false,
        },
        {
          name: "customConditions",
          type: "list",
          element: { name: "condition", type: "string" },
          affectsModuleResolution: !0,
          category: f.Modules,
          description:
            f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports,
        },
        {
          name: "noUncheckedSideEffectImports",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Modules,
          description: f.Check_side_effect_imports,
          defaultValueDescription: !1,
        },
        {
          name: "sourceRoot",
          type: "string",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          paramType: f.LOCATION,
          category: f.Emit,
          description:
            f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code,
        },
        {
          name: "mapRoot",
          type: "string",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          paramType: f.LOCATION,
          category: f.Emit,
          description:
            f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations,
        },
        {
          name: "inlineSources",
          type: "boolean",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Emit,
          description:
            f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,
          defaultValueDescription: !1,
        },
        {
          name: "experimentalDecorators",
          type: "boolean",
          affectsEmit: !0,
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Language_and_Environment,
          description:
            f.Enable_experimental_support_for_legacy_experimental_decorators,
          defaultValueDescription: !1,
        },
        {
          name: "emitDecoratorMetadata",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Language_and_Environment,
          description:
            f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,
          defaultValueDescription: !1,
        },
        {
          name: "jsxFactory",
          type: "string",
          category: f.Language_and_Environment,
          description:
            f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,
          defaultValueDescription: "`React.createElement`",
        },
        {
          name: "jsxFragmentFactory",
          type: "string",
          category: f.Language_and_Environment,
          description:
            f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,
          defaultValueDescription: "React.Fragment",
        },
        {
          name: "jsxImportSource",
          type: "string",
          affectsSemanticDiagnostics: !0,
          affectsEmit: !0,
          affectsBuildInfo: !0,
          affectsModuleResolution: !0,
          affectsSourceFile: !0,
          category: f.Language_and_Environment,
          description:
            f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,
          defaultValueDescription: "react",
        },
        {
          name: "resolveJsonModule",
          type: "boolean",
          affectsModuleResolution: !0,
          category: f.Modules,
          description: f.Enable_importing_json_files,
          defaultValueDescription: !1,
        },
        {
          name: "allowArbitraryExtensions",
          type: "boolean",
          affectsProgramStructure: !0,
          category: f.Modules,
          description:
            f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,
          defaultValueDescription: !1,
        },
        {
          name: "out",
          type: "string",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          affectsDeclarationPath: !0,
          isFilePath: !1,
          category: f.Backwards_Compatibility,
          paramType: f.FILE,
          transpileOptionValue: void 0,
          description: f.Deprecated_setting_Use_outFile_instead,
        },
        {
          name: "reactNamespace",
          type: "string",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Language_and_Environment,
          description:
            f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,
          defaultValueDescription: "`React`",
        },
        {
          name: "skipDefaultLibCheck",
          type: "boolean",
          affectsBuildInfo: !0,
          category: f.Completeness,
          description:
            f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,
          defaultValueDescription: !1,
        },
        {
          name: "charset",
          type: "string",
          category: f.Backwards_Compatibility,
          description:
            f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,
          defaultValueDescription: "utf8",
        },
        {
          name: "emitBOM",
          type: "boolean",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Emit,
          description:
            f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,
          defaultValueDescription: !1,
        },
        {
          name: "newLine",
          type: new Map(Object.entries({ crlf: 0, lf: 1 })),
          affectsEmit: !0,
          affectsBuildInfo: !0,
          paramType: f.NEWLINE,
          category: f.Emit,
          description: f.Set_the_newline_character_for_emitting_files,
          defaultValueDescription: "lf",
        },
        {
          name: "noErrorTruncation",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Output_Formatting,
          description: f.Disable_truncating_types_in_error_messages,
          defaultValueDescription: !1,
        },
        {
          name: "noLib",
          type: "boolean",
          category: f.Language_and_Environment,
          affectsProgramStructure: !0,
          description:
            f.Disable_including_any_library_files_including_the_default_lib_d_ts,
          transpileOptionValue: !0,
          defaultValueDescription: !1,
        },
        {
          name: "noResolve",
          type: "boolean",
          affectsModuleResolution: !0,
          category: f.Modules,
          description:
            f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,
          transpileOptionValue: !0,
          defaultValueDescription: !1,
        },
        {
          name: "stripInternal",
          type: "boolean",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Emit,
          description:
            f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,
          defaultValueDescription: !1,
        },
        {
          name: "disableSizeLimit",
          type: "boolean",
          affectsProgramStructure: !0,
          category: f.Editor_Support,
          description:
            f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,
          defaultValueDescription: !1,
        },
        {
          name: "disableSourceOfProjectReferenceRedirect",
          type: "boolean",
          isTSConfigOnly: !0,
          category: f.Projects,
          description:
            f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,
          defaultValueDescription: !1,
        },
        {
          name: "disableSolutionSearching",
          type: "boolean",
          isTSConfigOnly: !0,
          category: f.Projects,
          description:
            f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,
          defaultValueDescription: !1,
        },
        {
          name: "disableReferencedProjectLoad",
          type: "boolean",
          isTSConfigOnly: !0,
          category: f.Projects,
          description:
            f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,
          defaultValueDescription: !1,
        },
        {
          name: "noImplicitUseStrict",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Backwards_Compatibility,
          description:
            f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,
          defaultValueDescription: !1,
        },
        {
          name: "noEmitHelpers",
          type: "boolean",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Emit,
          description:
            f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,
          defaultValueDescription: !1,
        },
        {
          name: "noEmitOnError",
          type: "boolean",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Emit,
          transpileOptionValue: void 0,
          description:
            f.Disable_emitting_files_if_any_type_checking_errors_are_reported,
          defaultValueDescription: !1,
        },
        {
          name: "preserveConstEnums",
          type: "boolean",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Emit,
          description:
            f.Disable_erasing_const_enum_declarations_in_generated_code,
          defaultValueDescription: !1,
        },
        {
          name: "declarationDir",
          type: "string",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          affectsDeclarationPath: !0,
          isFilePath: !0,
          paramType: f.DIRECTORY,
          category: f.Emit,
          transpileOptionValue: void 0,
          description:
            f.Specify_the_output_directory_for_generated_declaration_files,
        },
        {
          name: "skipLibCheck",
          type: "boolean",
          affectsBuildInfo: !0,
          category: f.Completeness,
          description: f.Skip_type_checking_all_d_ts_files,
          defaultValueDescription: !1,
        },
        {
          name: "allowUnusedLabels",
          type: "boolean",
          affectsBindDiagnostics: !0,
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Type_Checking,
          description: f.Disable_error_reporting_for_unused_labels,
          defaultValueDescription: void 0,
        },
        {
          name: "allowUnreachableCode",
          type: "boolean",
          affectsBindDiagnostics: !0,
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Type_Checking,
          description: f.Disable_error_reporting_for_unreachable_code,
          defaultValueDescription: void 0,
        },
        {
          name: "suppressExcessPropertyErrors",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Backwards_Compatibility,
          description:
            f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,
          defaultValueDescription: !1,
        },
        {
          name: "suppressImplicitAnyIndexErrors",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Backwards_Compatibility,
          description:
            f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,
          defaultValueDescription: !1,
        },
        {
          name: "forceConsistentCasingInFileNames",
          type: "boolean",
          affectsModuleResolution: !0,
          category: f.Interop_Constraints,
          description: f.Ensure_that_casing_is_correct_in_imports,
          defaultValueDescription: !0,
        },
        {
          name: "maxNodeModuleJsDepth",
          type: "number",
          affectsModuleResolution: !0,
          category: f.JavaScript_Support,
          description:
            f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,
          defaultValueDescription: 0,
        },
        {
          name: "noStrictGenericChecks",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsBuildInfo: !0,
          category: f.Backwards_Compatibility,
          description:
            f.Disable_strict_checking_of_generic_signatures_in_function_types,
          defaultValueDescription: !1,
        },
        {
          name: "useDefineForClassFields",
          type: "boolean",
          affectsSemanticDiagnostics: !0,
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Language_and_Environment,
          description: f.Emit_ECMAScript_standard_compliant_class_fields,
          defaultValueDescription: f.true_for_ES2022_and_above_including_ESNext,
        },
        {
          name: "preserveValueImports",
          type: "boolean",
          affectsEmit: !0,
          affectsBuildInfo: !0,
          category: f.Backwards_Compatibility,
          description:
            f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,
          defaultValueDescription: !1,
        },
        {
          name: "keyofStringsOnly",
          type: "boolean",
          category: f.Backwards_Compatibility,
          description:
            f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,
          defaultValueDescription: !1,
        },
        {
          name: "plugins",
          type: "list",
          isTSConfigOnly: !0,
          element: { name: "plugin", type: "object" },
          description: f.Specify_a_list_of_language_service_plugins_to_include,
          category: f.Editor_Support,
        },
        {
          name: "moduleDetection",
          type: new Map(Object.entries({ auto: 2, legacy: 1, force: 3 })),
          affectsSourceFile: !0,
          affectsModuleResolution: !0,
          description:
            f.Control_what_method_is_used_to_detect_module_format_JS_files,
          category: f.Language_and_Environment,
          defaultValueDescription:
            f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules,
        },
        {
          name: "ignoreDeprecations",
          type: "string",
          defaultValueDescription: void 0,
        },
      ],
      Um = [...z4, ...ZSe],
      foe = Um.filter((e) => !!e.affectsSemanticDiagnostics),
      moe = Um.filter((e) => !!e.affectsEmit),
      hoe = Um.filter((e) => !!e.affectsDeclarationPath),
      eU = Um.filter((e) => !!e.affectsModuleResolution),
      tU = Um.filter(
        (e) => !!e.affectsSourceFile || !!e.affectsBindDiagnostics,
      ),
      _oe = Um.filter((e) => !!e.affectsProgramStructure),
      goe = Um.filter((e) => Rs(e, "transpileOptionValue")),
      qje = Um.filter(
        (e) =>
          e.allowConfigDirTemplateSubstitution ||
          (!e.isCommandLineOnly && e.isFilePath),
      ),
      Jje = rx.filter(
        (e) =>
          e.allowConfigDirTemplateSubstitution ||
          (!e.isCommandLineOnly && e.isFilePath),
      ),
      yoe = Um.filter(Kje);
    function Kje(e) {
      return !Bo(e.type);
    }
    var C1 = {
        name: "build",
        type: "boolean",
        shortName: "b",
        showInSimplifiedHelpView: !0,
        category: f.Command_line_Options,
        description:
          f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,
        defaultValueDescription: !1,
      },
      nU = [
        C1,
        {
          name: "verbose",
          shortName: "v",
          category: f.Command_line_Options,
          description: f.Enable_verbose_logging,
          type: "boolean",
          defaultValueDescription: !1,
        },
        {
          name: "dry",
          shortName: "d",
          category: f.Command_line_Options,
          description:
            f.Show_what_would_be_built_or_deleted_if_specified_with_clean,
          type: "boolean",
          defaultValueDescription: !1,
        },
        {
          name: "force",
          shortName: "f",
          category: f.Command_line_Options,
          description:
            f.Build_all_projects_including_those_that_appear_to_be_up_to_date,
          type: "boolean",
          defaultValueDescription: !1,
        },
        {
          name: "clean",
          category: f.Command_line_Options,
          description: f.Delete_the_outputs_of_all_projects,
          type: "boolean",
          defaultValueDescription: !1,
        },
        {
          name: "stopBuildOnErrors",
          category: f.Command_line_Options,
          description:
            f.Skip_building_downstream_projects_on_error_in_upstream_project,
          type: "boolean",
          defaultValueDescription: !1,
        },
      ],
      Pw = [...z4, ...nU],
      B4 = [
        { name: "enable", type: "boolean", defaultValueDescription: !1 },
        {
          name: "include",
          type: "list",
          element: { name: "include", type: "string" },
        },
        {
          name: "exclude",
          type: "list",
          element: { name: "exclude", type: "string" },
        },
        {
          name: "disableFilenameBasedTypeAcquisition",
          type: "boolean",
          defaultValueDescription: !1,
        },
      ];
    function G4(e) {
      const t = new Map(),
        r = new Map();
      return (
        Ye(e, (i) => {
          (t.set(i.name.toLowerCase(), i),
            i.shortName && r.set(i.shortName, i.name));
        }),
        { optionsNameMap: t, shortOptionNames: r }
      );
    }
    var eEe;
    function OD() {
      return eEe || (eEe = G4(Um));
    }
    var Xje = {
        diagnostic: f.Compiler_option_0_may_only_be_used_with_build,
        getOptionsNameMap: aEe,
      },
      tEe = {
        module: 1,
        target: 3,
        strict: !0,
        esModuleInterop: !0,
        forceConsistentCasingInFileNames: !0,
        skipLibCheck: !0,
      };
    function voe(e) {
      return nEe(e, Il);
    }
    function nEe(e, t) {
      const r = Co(e.type.keys()),
        i = (e.deprecatedKeys ? r.filter((o) => !e.deprecatedKeys.has(o)) : r)
          .map((o) => `'${o}'`)
          .join(", ");
      return t(f.Argument_for_0_option_must_be_Colon_1, `--${e.name}`, i);
    }
    function V4(e, t, r) {
      return BEe(e, (t ?? "").trim(), r);
    }
    function boe(e, t = "", r) {
      if (((t = t.trim()), po(t, "-"))) return;
      if (e.type === "listOrElement" && !t.includes(",")) return ix(e, t, r);
      if (t === "") return [];
      const i = t.split(",");
      switch (e.element.type) {
        case "number":
          return Ui(i, (o) => ix(e.element, parseInt(o), r));
        case "string":
          return Ui(i, (o) => ix(e.element, o || "", r));
        case "boolean":
        case "object":
          return C.fail(`List of ${e.element.type} is not yet supported.`);
        default:
          return Ui(i, (o) => V4(e.element, o, r));
      }
    }
    function rEe(e) {
      return e.name;
    }
    function Toe(e, t, r, i, o) {
      var s;
      const l =
        (s = t.alternateMode) == null
          ? void 0
          : s.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());
      if (l)
        return s0(
          o,
          i,
          l !== C1
            ? t.alternateMode.diagnostic
            : f.Option_build_must_be_the_first_command_line_argument,
          e,
        );
      const u = fS(e, t.optionDeclarations, rEe);
      return u
        ? s0(o, i, t.unknownDidYouMeanDiagnostic, r || e, u.name)
        : s0(o, i, t.unknownOptionDiagnostic, r || e);
    }
    function rU(e, t, r) {
      const i = {};
      let o;
      const s = [],
        l = [];
      return (u(t), { options: i, watchOptions: o, fileNames: s, errors: l });
      function u(_) {
        let h = 0;
        for (; h < _.length; ) {
          const g = _[h];
          if ((h++, g.charCodeAt(0) === 64)) d(g.slice(1));
          else if (g.charCodeAt(0) === 45) {
            const E = g.slice(g.charCodeAt(1) === 45 ? 2 : 1),
              A = Eoe(e.getOptionsNameMap, E, !0);
            if (A) h = iEe(_, h, e, A, i, l);
            else {
              const R = Eoe(sU.getOptionsNameMap, E, !0);
              R
                ? (h = iEe(_, h, sU, R, o || (o = {}), l))
                : l.push(Toe(E, e, g));
            }
          } else s.push(g);
        }
      }
      function d(_) {
        const h = ZM(_, r || ((A) => jc.readFile(A)));
        if (!Bo(h)) {
          l.push(h);
          return;
        }
        const g = [];
        let E = 0;
        for (;;) {
          for (; E < h.length && h.charCodeAt(E) <= 32; ) E++;
          if (E >= h.length) break;
          const A = E;
          if (h.charCodeAt(A) === 34) {
            for (E++; E < h.length && h.charCodeAt(E) !== 34; ) E++;
            E < h.length
              ? (g.push(h.substring(A + 1, E)), E++)
              : l.push(Il(f.Unterminated_quoted_string_in_response_file_0, _));
          } else {
            for (; h.charCodeAt(E) > 32; ) E++;
            g.push(h.substring(A, E));
          }
        }
        u(g);
      }
    }
    function iEe(e, t, r, i, o, s) {
      if (i.isTSConfigOnly) {
        const l = e[t];
        l === "null"
          ? ((o[i.name] = void 0), t++)
          : i.type === "boolean"
            ? l === "false"
              ? ((o[i.name] = ix(i, !1, s)), t++)
              : (l === "true" && t++,
                s.push(
                  Il(
                    f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,
                    i.name,
                  ),
                ))
            : (s.push(
                Il(
                  f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,
                  i.name,
                ),
              ),
              l && !po(l, "-") && t++);
      } else if (
        (!e[t] &&
          i.type !== "boolean" &&
          s.push(Il(r.optionTypeMismatchDiagnostic, i.name, lU(i))),
        e[t] !== "null")
      )
        switch (i.type) {
          case "number":
            ((o[i.name] = ix(i, parseInt(e[t]), s)), t++);
            break;
          case "boolean":
            const l = e[t];
            ((o[i.name] = ix(i, l !== "false", s)),
              (l === "false" || l === "true") && t++);
            break;
          case "string":
            ((o[i.name] = ix(i, e[t] || "", s)), t++);
            break;
          case "list":
            const u = boe(i, e[t], s);
            ((o[i.name] = u || []), u && t++);
            break;
          case "listOrElement":
            C.fail("listOrElement not supported here");
            break;
          default:
            ((o[i.name] = V4(i, e[t], s)), t++);
            break;
        }
      else ((o[i.name] = void 0), t++);
      return t;
    }
    var j4 = {
      alternateMode: Xje,
      getOptionsNameMap: OD,
      optionDeclarations: Um,
      unknownOptionDiagnostic: f.Unknown_compiler_option_0,
      unknownDidYouMeanDiagnostic: f.Unknown_compiler_option_0_Did_you_mean_1,
      optionTypeMismatchDiagnostic: f.Compiler_option_0_expects_an_argument,
    };
    function Soe(e, t) {
      return rU(j4, e, t);
    }
    function iU(e, t) {
      return Eoe(OD, e, t);
    }
    function Eoe(e, t, r = !1) {
      t = t.toLowerCase();
      const { optionsNameMap: i, shortOptionNames: o } = e();
      if (r) {
        const s = o.get(t);
        s !== void 0 && (t = s);
      }
      return i.get(t);
    }
    var oEe;
    function aEe() {
      return oEe || (oEe = G4(Pw));
    }
    var Yje = {
        diagnostic: f.Compiler_option_0_may_not_be_used_with_build,
        getOptionsNameMap: OD,
      },
      $je = {
        alternateMode: Yje,
        getOptionsNameMap: aEe,
        optionDeclarations: Pw,
        unknownOptionDiagnostic: f.Unknown_build_option_0,
        unknownDidYouMeanDiagnostic: f.Unknown_build_option_0_Did_you_mean_1,
        optionTypeMismatchDiagnostic:
          f.Build_option_0_requires_a_value_of_type_1,
      };
    function Aoe(e) {
      const {
          options: t,
          watchOptions: r,
          fileNames: i,
          errors: o,
        } = rU($je, e),
        s = t;
      return (
        i.length === 0 && i.push("."),
        s.clean &&
          s.force &&
          o.push(Il(f.Options_0_and_1_cannot_be_combined, "clean", "force")),
        s.clean &&
          s.verbose &&
          o.push(Il(f.Options_0_and_1_cannot_be_combined, "clean", "verbose")),
        s.clean &&
          s.watch &&
          o.push(Il(f.Options_0_and_1_cannot_be_combined, "clean", "watch")),
        s.watch &&
          s.dry &&
          o.push(Il(f.Options_0_and_1_cannot_be_combined, "watch", "dry")),
        { buildOptions: s, watchOptions: r, projects: i, errors: o }
      );
    }
    function rp(e, ...t) {
      return ma(Il(e, ...t).messageText, Bo);
    }
    function Lw(e, t, r, i, o, s) {
      const l = ZM(e, (_) => r.readFile(_));
      if (!Bo(l)) {
        r.onUnRecoverableConfigFileDiagnostic(l);
        return;
      }
      const u = Nw(e, l),
        d = r.getCurrentDirectory();
      return (
        (u.path = ks(e, d, Fd(r.useCaseSensitiveFileNames))),
        (u.resolvedPath = u.path),
        (u.originalFileName = u.fileName),
        Ow(u, r, To(ci(e), d), t, To(e, d), void 0, s, i, o)
      );
    }
    function kw(e, t) {
      const r = ZM(e, t);
      return Bo(r) ? oU(e, r) : { config: {}, error: r };
    }
    function oU(e, t) {
      const r = Nw(e, t);
      return {
        config: vEe(r, r.parseDiagnostics, void 0),
        error: r.parseDiagnostics.length ? r.parseDiagnostics[0] : void 0,
      };
    }
    function Ioe(e, t) {
      const r = ZM(e, t);
      return Bo(r) ? Nw(e, r) : { fileName: e, parseDiagnostics: [r] };
    }
    function ZM(e, t) {
      let r;
      try {
        r = t(e);
      } catch (i) {
        return Il(f.Cannot_read_file_0_Colon_1, e, i.message);
      }
      return r === void 0 ? Il(f.Cannot_read_file_0, e) : r;
    }
    function aU(e) {
      return AR(e, rEe);
    }
    var sEe = {
        optionDeclarations: B4,
        unknownOptionDiagnostic: f.Unknown_type_acquisition_option_0,
        unknownDidYouMeanDiagnostic:
          f.Unknown_type_acquisition_option_0_Did_you_mean_1,
      },
      lEe;
    function cEe() {
      return lEe || (lEe = G4(rx));
    }
    var sU = {
        getOptionsNameMap: cEe,
        optionDeclarations: rx,
        unknownOptionDiagnostic: f.Unknown_watch_option_0,
        unknownDidYouMeanDiagnostic: f.Unknown_watch_option_0_Did_you_mean_1,
        optionTypeMismatchDiagnostic:
          f.Watch_option_0_requires_a_value_of_type_1,
      },
      dEe;
    function uEe() {
      return dEe || (dEe = aU(Um));
    }
    var pEe;
    function fEe() {
      return pEe || (pEe = aU(rx));
    }
    var mEe;
    function hEe() {
      return mEe || (mEe = aU(B4));
    }
    var U4 = {
        name: "extends",
        type: "listOrElement",
        element: { name: "extends", type: "string" },
        category: f.File_Management,
        disallowNullOrUndefined: !0,
      },
      _Ee = {
        name: "compilerOptions",
        type: "object",
        elementOptions: uEe(),
        extraKeyDiagnostics: j4,
      },
      gEe = {
        name: "watchOptions",
        type: "object",
        elementOptions: fEe(),
        extraKeyDiagnostics: sU,
      },
      yEe = {
        name: "typeAcquisition",
        type: "object",
        elementOptions: hEe(),
        extraKeyDiagnostics: sEe,
      },
      xoe;
    function Qje() {
      return (
        xoe === void 0 &&
          (xoe = {
            name: void 0,
            type: "object",
            elementOptions: aU([
              _Ee,
              gEe,
              yEe,
              U4,
              {
                name: "references",
                type: "list",
                element: { name: "references", type: "object" },
                category: f.Projects,
              },
              {
                name: "files",
                type: "list",
                element: { name: "files", type: "string" },
                category: f.File_Management,
              },
              {
                name: "include",
                type: "list",
                element: { name: "include", type: "string" },
                category: f.File_Management,
                defaultValueDescription:
                  f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk,
              },
              {
                name: "exclude",
                type: "list",
                element: { name: "exclude", type: "string" },
                category: f.File_Management,
                defaultValueDescription:
                  f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified,
              },
              uoe,
            ]),
          }),
        xoe
      );
    }
    function vEe(e, t, r) {
      var i;
      const o = (i = e.statements[0]) == null ? void 0 : i.expression;
      if (o && o.kind !== 211) {
        if (
          (t.push(
            Wf(
              e,
              o,
              f.The_root_value_of_a_0_file_must_be_an_object,
              Ic(e.fileName) === "jsconfig.json"
                ? "jsconfig.json"
                : "tsconfig.json",
            ),
          ),
          Cd(o))
        ) {
          const s = hn(o.elements, Wa);
          if (s) return ww(e, s, t, !0, r);
        }
        return {};
      }
      return ww(e, o, t, !0, r);
    }
    function Roe(e, t) {
      var r;
      return ww(
        e,
        (r = e.statements[0]) == null ? void 0 : r.expression,
        t,
        !0,
        void 0,
      );
    }
    function ww(e, t, r, i, o) {
      if (!t) return i ? {} : void 0;
      return u(t, o?.rootOptions);
      function s(_, h) {
        var g;
        const E = i ? {} : void 0;
        for (const A of _.properties) {
          if (A.kind !== 304) {
            r.push(Wf(e, A, f.Property_assignment_expected));
            continue;
          }
          (A.questionToken &&
            r.push(
              Wf(
                e,
                A.questionToken,
                f.The_0_modifier_can_only_be_used_in_TypeScript_files,
                "?",
              ),
            ),
            d(A.name) ||
              r.push(
                Wf(e, A.name, f.String_literal_with_double_quotes_expected),
              ));
          const R = ek(A.name) ? void 0 : hI(A.name),
            N = R && Gi(R),
            P = N
              ? (g = h?.elementOptions) == null
                ? void 0
                : g.get(N)
              : void 0,
            k = u(A.initializer, P);
          typeof N < "u" && (i && (E[N] = k), o?.onPropertySet(N, k, A, h, P));
        }
        return E;
      }
      function l(_, h) {
        if (!i) {
          _.forEach((g) => u(g, h));
          return;
        }
        return Un(
          _.map((g) => u(g, h)),
          (g) => g !== void 0,
        );
      }
      function u(_, h) {
        switch (_.kind) {
          case 112:
            return !0;
          case 97:
            return !1;
          case 106:
            return null;
          case 11:
            return (
              d(_) ||
                r.push(Wf(e, _, f.String_literal_with_double_quotes_expected)),
              _.text
            );
          case 9:
            return Number(_.text);
          case 225:
            if (_.operator !== 41 || _.operand.kind !== 9) break;
            return -Number(_.operand.text);
          case 211:
            return s(_, h);
          case 210:
            return l(_.elements, h && h.element);
        }
        h
          ? r.push(
              Wf(
                e,
                _,
                f.Compiler_option_0_requires_a_value_of_type_1,
                h.name,
                lU(h),
              ),
            )
          : r.push(
              Wf(
                e,
                _,
                f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal,
              ),
            );
      }
      function d(_) {
        return ka(_) && r6(_, e);
      }
    }
    function lU(e) {
      return e.type === "listOrElement"
        ? `${lU(e.element)} or Array`
        : e.type === "list"
          ? "Array"
          : Bo(e.type)
            ? e.type
            : "string";
    }
    function bEe(e, t) {
      if (e) {
        if (Ww(t)) return !e.disallowNullOrUndefined;
        if (e.type === "list") return Mo(t);
        if (e.type === "listOrElement") return Mo(t) || bEe(e.element, t);
        const r = Bo(e.type) ? e.type : "string";
        return typeof t === r;
      }
      return !1;
    }
    function cU(e, t, r) {
      var i, o, s;
      const l = Fd(r.useCaseSensitiveFileNames),
        u = Vt(
          Un(
            e.fileNames,
            (o =
              (i = e.options.configFile) == null
                ? void 0
                : i.configFileSpecs) != null && o.validatedIncludeSpecs
              ? tUe(
                  t,
                  e.options.configFile.configFileSpecs.validatedIncludeSpecs,
                  e.options.configFile.configFileSpecs.validatedExcludeSpecs,
                  r,
                )
              : dS,
          ),
          (R) =>
            MR(
              To(t, r.getCurrentDirectory()),
              To(R, r.getCurrentDirectory()),
              l,
            ),
        ),
        d = {
          configFilePath: To(t, r.getCurrentDirectory()),
          useCaseSensitiveFileNames: r.useCaseSensitiveFileNames,
        },
        _ = dU(e.options, d),
        h = e.watchOptions && nUe(e.watchOptions),
        g = {
          compilerOptions: {
            ...H4(_),
            showConfig: void 0,
            configFile: void 0,
            configFilePath: void 0,
            help: void 0,
            init: void 0,
            listFiles: void 0,
            listEmittedFiles: void 0,
            project: void 0,
            build: void 0,
            version: void 0,
          },
          watchOptions: h && H4(h),
          references: Vt(e.projectReferences, (R) => ({
            ...R,
            path: R.originalPath ? R.originalPath : "",
            originalPath: void 0,
          })),
          files: et(u) ? u : void 0,
          ...((s = e.options.configFile) != null && s.configFileSpecs
            ? {
                include: eUe(
                  e.options.configFile.configFileSpecs.validatedIncludeSpecs,
                ),
                exclude:
                  e.options.configFile.configFileSpecs.validatedExcludeSpecs,
              }
            : {}),
          compileOnSave: e.compileOnSave ? !0 : void 0,
        },
        E = new Set(_.keys()),
        A = {};
      for (const R in bM)
        if (!E.has(R) && Zje(R, E)) {
          const N = bM[R].computeValue(e.options),
            P = bM[R].computeValue({});
          N !== P && (A[R] = bM[R].computeValue(e.options));
        }
      return (GE(g.compilerOptions, H4(dU(A, d))), g);
    }
    function Zje(e, t) {
      const r = new Set();
      return i(e);
      function i(o) {
        var s;
        return gm(r, o)
          ? yt(
              (s = bM[o]) == null ? void 0 : s.dependencies,
              (l) => t.has(l) || i(l),
            )
          : !1;
      }
    }
    function H4(e) {
      return Object.fromEntries(e);
    }
    function eUe(e) {
      if (et(e)) {
        if (et(e) !== 1) return e;
        if (e[0] !== IEe) return e;
      }
    }
    function tUe(e, t, r, i) {
      if (!t) return dS;
      const o = j6(
          e,
          r,
          t,
          i.useCaseSensitiveFileNames,
          i.getCurrentDirectory(),
        ),
        s =
          o.excludePattern && ov(o.excludePattern, i.useCaseSensitiveFileNames),
        l =
          o.includeFilePattern &&
          ov(o.includeFilePattern, i.useCaseSensitiveFileNames);
      return l
        ? s
          ? (u) => !(l.test(u) && !s.test(u))
          : (u) => !l.test(u)
        : s
          ? (u) => s.test(u)
          : dS;
    }
    function TEe(e) {
      switch (e.type) {
        case "string":
        case "number":
        case "boolean":
        case "object":
          return;
        case "list":
        case "listOrElement":
          return TEe(e.element);
        default:
          return e.type;
      }
    }
    function q4(e, t) {
      return Hc(t, (r, i) => {
        if (r === e) return i;
      });
    }
    function dU(e, t) {
      return SEe(e, OD(), t);
    }
    function nUe(e) {
      return SEe(e, cEe());
    }
    function SEe(e, { optionsNameMap: t }, r) {
      const i = new Map(),
        o = r && Fd(r.useCaseSensitiveFileNames);
      for (const s in e)
        if (Rs(e, s)) {
          if (
            t.has(s) &&
            (t.get(s).category === f.Command_line_Options ||
              t.get(s).category === f.Output_Formatting)
          )
            continue;
          const l = e[s],
            u = t.get(s.toLowerCase());
          if (u) {
            C.assert(u.type !== "listOrElement");
            const d = TEe(u);
            d
              ? u.type === "list"
                ? i.set(
                    s,
                    l.map((_) => q4(_, d)),
                  )
                : i.set(s, q4(l, d))
              : r && u.isFilePath
                ? i.set(s, MR(r.configFilePath, To(l, ci(r.configFilePath)), o))
                : r && u.type === "list" && u.element.isFilePath
                  ? i.set(
                      s,
                      l.map((_) =>
                        MR(r.configFilePath, To(_, ci(r.configFilePath)), o),
                      ),
                    )
                  : i.set(s, l);
          }
        }
      return i;
    }
    function Doe(e, t) {
      const i = [],
        o = Object.keys(e).filter(
          (h) => h !== "init" && h !== "help" && h !== "watch",
        );
      if (
        (i.push("{"),
        i.push(
          `  // ${Ho(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`,
        ),
        i.push('  "compilerOptions": {'),
        l(f.File_Layout),
        u("rootDir", "./src", "optional"),
        u("outDir", "./dist", "optional"),
        s(),
        l(f.Environment_Settings),
        l(f.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),
        u("module", 199),
        u("target", 99),
        u("types", []),
        e.lib && u("lib", e.lib),
        l(f.For_nodejs_Colon),
        i.push('    // "lib": ["esnext"],'),
        i.push('    // "types": ["node"],'),
        l(f.and_npm_install_D_types_Slashnode),
        s(),
        l(f.Other_Outputs),
        u("sourceMap", !0),
        u("declaration", !0),
        u("declarationMap", !0),
        s(),
        l(f.Stricter_Typechecking_Options),
        u("noUncheckedIndexedAccess", !0),
        u("exactOptionalPropertyTypes", !0),
        s(),
        l(f.Style_Options),
        u("noImplicitReturns", !0, "optional"),
        u("noImplicitOverride", !0, "optional"),
        u("noUnusedLocals", !0, "optional"),
        u("noUnusedParameters", !0, "optional"),
        u("noFallthroughCasesInSwitch", !0, "optional"),
        u("noPropertyAccessFromIndexSignature", !0, "optional"),
        s(),
        l(f.Recommended_Options),
        u("strict", !0),
        u("jsx", 4),
        u("verbatimModuleSyntax", !0),
        u("isolatedModules", !0),
        u("noUncheckedSideEffectImports", !0),
        u("moduleDetection", 3),
        u("skipLibCheck", !0),
        o.length > 0)
      )
        for (s(); o.length > 0; ) u(o[0], e[o[0]]);
      function s() {
        i.push("");
      }
      function l(h) {
        i.push(`    // ${Ho(h)}`);
      }
      function u(h, g, E = "never") {
        const A = o.indexOf(h);
        A >= 0 && o.splice(A, 1);
        let R;
        E === "always" ? (R = !0) : E === "never" ? (R = !1) : (R = !Rs(e, h));
        const N = e[h] ?? g;
        R
          ? i.push(`    // "${h}": ${d(h, N)},`)
          : i.push(`    "${h}": ${d(h, N)},`);
      }
      function d(h, g) {
        const E = Um.filter((R) => R.name === h)[0];
        E || C.fail(`No option named ${h}?`);
        const A = E.type instanceof Map ? E.type : void 0;
        if (Mo(g)) {
          const R =
            "element" in E && E.element.type instanceof Map
              ? E.element.type
              : void 0;
          return `[${g.map((N) => _(N, R)).join(", ")}]`;
        } else return _(g, A);
      }
      function _(h, g) {
        return (
          g && (h = q4(h, g) ?? C.fail(`No matching value of ${h}`)),
          JSON.stringify(h)
        );
      }
      return (i.push("  }"), i.push("}"), i.push(""), i.join(t));
    }
    function J4(e, t) {
      const r = {},
        i = OD().optionsNameMap;
      for (const o in e)
        Rs(e, o) && (r[o] = rUe(i.get(o.toLowerCase()), e[o], t));
      return (r.configFilePath && (r.configFilePath = t(r.configFilePath)), r);
    }
    function rUe(e, t, r) {
      if (e && !Ww(t)) {
        if (e.type === "list") {
          const i = t;
          if (e.element.isFilePath && i.length) return i.map(r);
        } else if (e.isFilePath) return r(t);
        C.assert(e.type !== "listOrElement");
      }
      return t;
    }
    function EEe(e, t, r, i, o, s, l, u, d) {
      return xEe(e, void 0, t, r, i, d, o, s, l, u);
    }
    function Ow(e, t, r, i, o, s, l, u, d) {
      var _, h;
      (_ = xr) == null ||
        _.push(xr.Phase.Parse, "parseJsonSourceFileConfigFileContent", {
          path: e.fileName,
        });
      const g = xEe(void 0, e, t, r, i, d, o, s, l, u);
      return ((h = xr) == null || h.pop(), g);
    }
    function uU(e, t) {
      t &&
        Object.defineProperty(e, "configFile", {
          enumerable: !1,
          writable: !1,
          value: t,
        });
    }
    function Ww(e) {
      return e == null;
    }
    function AEe(e, t) {
      return ci(To(e, t));
    }
    var IEe = "**/*";
    function xEe(e, t, r, i, o = {}, s, l, u = [], d = [], _) {
      C.assert(
        (e === void 0 && t !== void 0) || (e !== void 0 && t === void 0),
      );
      const h = [],
        g = PEe(e, t, r, i, l, u, h, _),
        { raw: E } = g,
        A = REe(jB(o, g.options || {}), qje, i),
        R = K4(
          s && g.watchOptions ? jB(s, g.watchOptions) : g.watchOptions || s,
          i,
        );
      A.configFilePath = l && Bd(l);
      const N = ya(l ? AEe(l, i) : i),
        P = k();
      return (
        t && (t.configFileSpecs = P),
        uU(A, t),
        {
          options: A,
          watchOptions: R,
          fileNames: W(N),
          projectReferences: O(N),
          typeAcquisition: g.typeAcquisition || mU(),
          raw: E,
          errors: h,
          wildcardDirectories: hUe(P, N, r.useCaseSensitiveFileNames),
          compileOnSave: !!E.compileOnSave,
        }
      );
      function k() {
        const q = J("references", (Se) => typeof Se == "object", "object"),
          ye = G(j("files"));
        if (ye) {
          const Se = q === "no-prop" || (Mo(q) && q.length === 0),
            re = Rs(E, "extends");
          if (ye.length === 0 && Se && !re)
            if (t) {
              const be = l || "tsconfig.json",
                Ne = f.The_files_list_in_config_file_0_is_empty,
                Be = ak(t, "files", (ce) => ce.initializer),
                lt = s0(t, Be, Ne, be);
              h.push(lt);
            } else
              Z(
                f.The_files_list_in_config_file_0_is_empty,
                l || "tsconfig.json",
              );
        }
        let ie = G(j("include"));
        const K = j("exclude");
        let pe = !1,
          de = G(K);
        if (K === "no-prop") {
          const Se = A.outDir,
            re = A.declarationDir;
          (Se || re) && (de = Un([Se, re], (be) => !!be));
        }
        ye === void 0 && ie === void 0 && ((ie = [IEe]), (pe = !0));
        let fe, ve, xe, X;
        (ie && ((fe = jEe(ie, h, !0, t, "include")), (xe = X4(fe, N) || fe)),
          de && ((ve = jEe(de, h, !1, t, "exclude")), (X = X4(ve, N) || ve)));
        const Ce = Un(ye, Bo),
          Je = X4(Ce, N) || Ce;
        return {
          filesSpecs: ye,
          includeSpecs: ie,
          excludeSpecs: de,
          validatedFilesSpec: Je,
          validatedIncludeSpecs: xe,
          validatedExcludeSpecs: X,
          validatedFilesSpecBeforeSubstitution: Ce,
          validatedIncludeSpecsBeforeSubstitution: fe,
          validatedExcludeSpecsBeforeSubstitution: ve,
          isDefaultIncludeSpec: pe,
        };
      }
      function W(q) {
        const ye = eP(P, q, A, r, d);
        return (MEe(ye, Fw(E), u) && h.push(NEe(P, l)), ye);
      }
      function O(q) {
        let ye;
        const ie = J("references", (K) => typeof K == "object", "object");
        if (Mo(ie))
          for (const K of ie)
            typeof K.path != "string"
              ? Z(
                  f.Compiler_option_0_requires_a_value_of_type_1,
                  "reference.path",
                  "string",
                )
              : (ye || (ye = [])).push({
                  path: To(K.path, q),
                  originalPath: K.path,
                  prepend: K.prepend,
                  circular: K.circular,
                });
        return ye;
      }
      function G(q) {
        return Mo(q) ? q : void 0;
      }
      function j(q) {
        return J(q, Bo, "string");
      }
      function J(q, ye, ie) {
        if (Rs(E, q) && !Ww(E[q]))
          if (Mo(E[q])) {
            const K = E[q];
            return (
              !t &&
                !Vn(K, ye) &&
                h.push(
                  Il(f.Compiler_option_0_requires_a_value_of_type_1, q, ie),
                ),
              K
            );
          } else
            return (
              Z(f.Compiler_option_0_requires_a_value_of_type_1, q, "Array"),
              "not-array"
            );
        return "no-prop";
      }
      function Z(q, ...ye) {
        t || h.push(Il(q, ...ye));
      }
    }
    function K4(e, t) {
      return REe(e, Jje, t);
    }
    function REe(e, t, r) {
      if (!e) return e;
      let i;
      for (const s of t)
        if (e[s.name] !== void 0) {
          const l = e[s.name];
          switch (s.type) {
            case "string":
              (C.assert(s.isFilePath), pU(l) && o(s, CEe(l, r)));
              break;
            case "list":
              C.assert(s.element.isFilePath);
              const u = X4(l, r);
              u && o(s, u);
              break;
            case "object":
              C.assert(s.name === "paths");
              const d = iUe(l, r);
              d && o(s, d);
              break;
            default:
              C.fail("option type not supported");
          }
        }
      return i || e;
      function o(s, l) {
        (i ?? (i = GE({}, e)))[s.name] = l;
      }
    }
    var DEe = "${configDir}";
    function pU(e) {
      return Bo(e) && po(e, DEe, !0);
    }
    function CEe(e, t) {
      return To(e.replace(DEe, "./"), t);
    }
    function X4(e, t) {
      if (!e) return e;
      let r;
      return (
        e.forEach((i, o) => {
          pU(i) && ((r ?? (r = e.slice()))[o] = CEe(i, t));
        }),
        r
      );
    }
    function iUe(e, t) {
      let r;
      return (
        Wh(e).forEach((o) => {
          if (!Mo(e[o])) return;
          const s = X4(e[o], t);
          s && ((r ?? (r = GE({}, e)))[o] = s);
        }),
        r
      );
    }
    function oUe(e) {
      return (
        e.code ===
        f
          .No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2
          .code
      );
    }
    function NEe({ includeSpecs: e, excludeSpecs: t }, r) {
      return Il(
        f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,
        r || "tsconfig.json",
        JSON.stringify(e || []),
        JSON.stringify(t || []),
      );
    }
    function MEe(e, t, r) {
      return e.length === 0 && t && (!r || r.length === 0);
    }
    function fU(e) {
      return !e.fileNames.length && Rs(e.raw, "references");
    }
    function Fw(e) {
      return !Rs(e, "files") && !Rs(e, "references");
    }
    function Y4(e, t, r, i, o) {
      const s = i.length;
      return (
        MEe(e, o) ? i.push(NEe(r, t)) : ul(i, (l) => !oUe(l)),
        s !== i.length
      );
    }
    function aUe(e) {
      return !!e.options;
    }
    function PEe(e, t, r, i, o, s, l, u) {
      var d;
      i = Bd(i);
      const _ = To(o || "", i);
      if (s.includes(_))
        return (
          l.push(
            Il(
              f.Circularity_detected_while_resolving_configuration_Colon_0,
              [...s, _].join(" -> "),
            ),
          ),
          { raw: e || Roe(t, l) }
        );
      const h = e ? sUe(e, r, i, o, l) : lUe(t, r, i, o, l);
      if (
        ((d = h.options) != null && d.paths && (h.options.pathsBasePath = i),
        h.extendedConfigPath)
      ) {
        s = s.concat([_]);
        const A = { options: {} };
        (Bo(h.extendedConfigPath)
          ? g(A, h.extendedConfigPath)
          : h.extendedConfigPath.forEach((R) => g(A, R)),
          A.include && (h.raw.include = A.include),
          A.exclude && (h.raw.exclude = A.exclude),
          A.files && (h.raw.files = A.files),
          h.raw.compileOnSave === void 0 &&
            A.compileOnSave &&
            (h.raw.compileOnSave = A.compileOnSave),
          t &&
            A.extendedSourceFiles &&
            (t.extendedSourceFiles = Co(A.extendedSourceFiles.keys())),
          (h.options = GE(A.options, h.options)),
          (h.watchOptions =
            h.watchOptions && A.watchOptions
              ? E(A, h.watchOptions)
              : h.watchOptions || A.watchOptions));
      }
      return h;
      function g(A, R) {
        const N = cUe(t, R, r, s, l, u, A);
        if (N && aUe(N)) {
          const P = N.raw;
          let k;
          const W = (O) => {
            h.raw[O] ||
              (P[O] &&
                (A[O] = Vt(P[O], (G) =>
                  pU(G) || Cp(G)
                    ? G
                    : Qr(
                        k ||
                          (k = EN(ci(R), i, Fd(r.useCaseSensitiveFileNames))),
                        G,
                      ),
                )));
          };
          (W("include"),
            W("exclude"),
            W("files"),
            P.compileOnSave !== void 0 && (A.compileOnSave = P.compileOnSave),
            GE(A.options, N.options),
            (A.watchOptions =
              A.watchOptions && N.watchOptions
                ? E(A, N.watchOptions)
                : A.watchOptions || N.watchOptions));
        }
      }
      function E(A, R) {
        return A.watchOptionsCopied
          ? GE(A.watchOptions, R)
          : ((A.watchOptionsCopied = !0), GE({}, A.watchOptions, R));
      }
    }
    function sUe(e, t, r, i, o) {
      Rs(e, "excludes") &&
        o.push(Il(f.Unknown_option_excludes_Did_you_mean_exclude));
      const s = FEe(e.compilerOptions, r, o, i),
        l = zEe(e.typeAcquisition, r, o, i),
        u = uUe(e.watchOptions, r, o);
      e.compileOnSave = dUe(e, r, o);
      const d =
        e.extends || e.extends === "" ? LEe(e.extends, t, r, i, o) : void 0;
      return {
        raw: e,
        options: s,
        watchOptions: u,
        typeAcquisition: l,
        extendedConfigPath: d,
      };
    }
    function LEe(e, t, r, i, o, s, l, u) {
      let d;
      const _ = i ? AEe(i, r) : r;
      if (Bo(e)) d = kEe(e, t, _, o, l, u);
      else if (Mo(e)) {
        d = [];
        for (let h = 0; h < e.length; h++) {
          const g = e[h];
          Bo(g)
            ? (d = Bn(d, kEe(g, t, _, o, l?.elements[h], u)))
            : N1(U4.element, e, r, o, s, l?.elements[h], u);
        }
      } else N1(U4, e, r, o, s, l, u);
      return d;
    }
    function lUe(e, t, r, i, o) {
      const s = WEe(i);
      let l, u, d, _;
      const h = Qje(),
        g = vEe(e, o, { rootOptions: h, onPropertySet: E });
      return (
        l || (l = mU(i)),
        _ &&
          g &&
          g.compilerOptions === void 0 &&
          o.push(
            Wf(
              e,
              _[0],
              f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,
              hI(_[0]),
            ),
          ),
        {
          raw: g,
          options: s,
          watchOptions: u,
          typeAcquisition: l,
          extendedConfigPath: d,
        }
      );
      function E(A, R, N, P, k) {
        if (
          (k && k !== U4 && (R = N1(k, R, r, o, N, N.initializer, e)), P?.name)
        )
          if (k) {
            let W;
            (P === _Ee
              ? (W = s)
              : P === gEe
                ? (W = u ?? (u = {}))
                : P === yEe
                  ? (W = l ?? (l = mU(i)))
                  : C.fail("Unknown option"),
              (W[k.name] = R));
          } else
            A &&
              P?.extraKeyDiagnostics &&
              (P.elementOptions
                ? o.push(Toe(A, P.extraKeyDiagnostics, void 0, N.name, e))
                : o.push(
                    Wf(
                      e,
                      N.name,
                      P.extraKeyDiagnostics.unknownOptionDiagnostic,
                      A,
                    ),
                  ));
        else
          P === h &&
            (k === U4
              ? (d = LEe(R, t, r, i, o, N, N.initializer, e))
              : k ||
                (A === "excludes" &&
                  o.push(
                    Wf(
                      e,
                      N.name,
                      f.Unknown_option_excludes_Did_you_mean_exclude,
                    ),
                  ),
                hn(ZSe, (W) => W.name === A) && (_ = Bn(_, N.name))));
      }
    }
    function kEe(e, t, r, i, o, s) {
      if (((e = Bd(e)), Cp(e) || po(e, "./") || po(e, "../"))) {
        let u = To(e, r);
        if (
          !t.fileExists(u) &&
          !el(u, ".json") &&
          ((u = `${u}.json`), !t.fileExists(u))
        ) {
          i.push(s0(s, o, f.File_0_not_found, e));
          return;
        }
        return u;
      }
      const l = qoe(e, Qr(r, "tsconfig.json"), t);
      if (l.resolvedModule) return l.resolvedModule.resolvedFileName;
      e === ""
        ? i.push(
            s0(
              s,
              o,
              f.Compiler_option_0_cannot_be_given_an_empty_string,
              "extends",
            ),
          )
        : i.push(s0(s, o, f.File_0_not_found, e));
    }
    function cUe(e, t, r, i, o, s, l) {
      const u = r.useCaseSensitiveFileNames ? t : tb(t);
      let d, _, h;
      if (
        (s && (d = s.get(u))
          ? ({ extendedResult: _, extendedConfig: h } = d)
          : ((_ = Ioe(t, (g) => r.readFile(g))),
            _.parseDiagnostics.length ||
              (h = PEe(void 0, _, r, ci(t), Ic(t), i, o, s)),
            s && s.set(u, { extendedResult: _, extendedConfig: h })),
        e &&
          ((l.extendedSourceFiles ?? (l.extendedSourceFiles = new Set())).add(
            _.fileName,
          ),
          _.extendedSourceFiles))
      )
        for (const g of _.extendedSourceFiles) l.extendedSourceFiles.add(g);
      if (_.parseDiagnostics.length) {
        o.push(..._.parseDiagnostics);
        return;
      }
      return h;
    }
    function dUe(e, t, r) {
      if (!Rs(e, uoe.name)) return !1;
      const i = N1(uoe, e.compileOnSave, t, r);
      return typeof i == "boolean" && i;
    }
    function wEe(e, t, r) {
      const i = [];
      return { options: FEe(e, t, i, r), errors: i };
    }
    function OEe(e, t, r) {
      const i = [];
      return { options: zEe(e, t, i, r), errors: i };
    }
    function WEe(e) {
      return e && Ic(e) === "jsconfig.json"
        ? {
            allowJs: !0,
            maxNodeModuleJsDepth: 2,
            allowSyntheticDefaultImports: !0,
            skipLibCheck: !0,
            noEmit: !0,
          }
        : {};
    }
    function FEe(e, t, r, i) {
      const o = WEe(i);
      return (Coe(uEe(), e, t, o, j4, r), i && (o.configFilePath = Bd(i)), o);
    }
    function mU(e) {
      return {
        enable: !!e && Ic(e) === "jsconfig.json",
        include: [],
        exclude: [],
      };
    }
    function zEe(e, t, r, i) {
      const o = mU(i);
      return (Coe(hEe(), e, t, o, sEe, r), o);
    }
    function uUe(e, t, r) {
      return Coe(fEe(), e, t, void 0, sU, r);
    }
    function Coe(e, t, r, i, o, s) {
      if (t) {
        for (const l in t) {
          const u = e.get(l);
          u ? ((i || (i = {}))[u.name] = N1(u, t[l], r, s)) : s.push(Toe(l, o));
        }
        return i;
      }
    }
    function s0(e, t, r, ...i) {
      return e && t ? Wf(e, t, r, ...i) : Il(r, ...i);
    }
    function N1(e, t, r, i, o, s, l) {
      if (e.isCommandLineOnly) {
        i.push(
          s0(
            l,
            o?.name,
            f.Option_0_can_only_be_specified_on_command_line,
            e.name,
          ),
        );
        return;
      }
      if (bEe(e, t)) {
        const u = e.type;
        if (u === "list" && Mo(t)) return GEe(e, t, r, i, o, s, l);
        if (u === "listOrElement")
          return Mo(t)
            ? GEe(e, t, r, i, o, s, l)
            : N1(e.element, t, r, i, o, s, l);
        if (!Bo(e.type)) return BEe(e, t, i, s, l);
        const d = ix(e, t, i, s, l);
        return Ww(d) ? d : pUe(e, r, d);
      } else
        i.push(
          s0(
            l,
            s,
            f.Compiler_option_0_requires_a_value_of_type_1,
            e.name,
            lU(e),
          ),
        );
    }
    function pUe(e, t, r) {
      return (
        e.isFilePath &&
          ((r = Bd(r)), (r = pU(r) ? r : To(r, t)), r === "" && (r = ".")),
        r
      );
    }
    function ix(e, t, r, i, o) {
      var s;
      if (Ww(t)) return;
      const l = (s = e.extraValidation) == null ? void 0 : s.call(e, t);
      if (!l) return t;
      r.push(s0(o, i, ...l));
    }
    function BEe(e, t, r, i, o) {
      if (Ww(t)) return;
      const s = t.toLowerCase(),
        l = e.type.get(s);
      if (l !== void 0) return ix(e, l, r, i, o);
      r.push(nEe(e, (u, ...d) => s0(o, i, u, ...d)));
    }
    function GEe(e, t, r, i, o, s, l) {
      return Un(
        Vt(t, (u, d) => N1(e.element, u, r, i, o, s?.elements[d], l)),
        (u) => (e.listPreserveFalsyValues ? !0 : !!u),
      );
    }
    var fUe = /(?:^|\/)\*\*\/?$/,
      mUe = /^[^*?]*(?=\/[^/]*[*?])/;
    function eP(e, t, r, i, o = ae) {
      t = ya(t);
      const s = Fd(i.useCaseSensitiveFileNames),
        l = new Map(),
        u = new Map(),
        d = new Map(),
        {
          validatedFilesSpec: _,
          validatedIncludeSpecs: h,
          validatedExcludeSpecs: g,
        } = e,
        E = SM(r, o),
        A = $k(r, E);
      if (_)
        for (const k of _) {
          const W = To(k, t);
          l.set(s(W), W);
        }
      let R;
      if (h && h.length > 0)
        for (const k of i.readDirectory(t, la(A), g, h, void 0)) {
          if (El(k, ".json")) {
            if (!R) {
              const G = h.filter((J) => el(J, ".json")),
                j = Vt(G6(G, t, "files"), (J) => `^${J}$`);
              R = j ? j.map((J) => ov(J, i.useCaseSensitiveFileNames)) : ae;
            }
            if (ho(R, (G) => G.test(k)) !== -1) {
              const G = s(k);
              !l.has(G) && !d.has(G) && d.set(G, k);
            }
            continue;
          }
          if (gUe(k, l, u, E, s)) continue;
          yUe(k, u, E, s);
          const W = s(k);
          !l.has(W) && !u.has(W) && u.set(W, k);
        }
      const N = Co(l.values()),
        P = Co(u.values());
      return N.concat(P, Co(d.values()));
    }
    function Noe(e, t, r, i, o) {
      const {
        validatedFilesSpec: s,
        validatedIncludeSpecs: l,
        validatedExcludeSpecs: u,
      } = t;
      if (!et(l) || !et(u)) return !1;
      r = ya(r);
      const d = Fd(i);
      if (s) {
        for (const _ of s) if (d(To(_, r)) === e) return !1;
      }
      return Q4(e, u, i, o, r);
    }
    function VEe(e) {
      const t = po(e, "**/") ? 0 : e.indexOf("/**/");
      return t === -1
        ? !1
        : (el(e, "/..") ? e.length : e.lastIndexOf("/../")) > t;
    }
    function $4(e, t, r, i) {
      return Q4(
        e,
        Un(t, (o) => !VEe(o)),
        r,
        i,
      );
    }
    function Q4(e, t, r, i, o) {
      const s = TM(t, Qr(ya(i), o), "exclude"),
        l = s && ov(s, r);
      return l ? (l.test(e) ? !0 : !NR(e) && l.test(Uc(e))) : !1;
    }
    function jEe(e, t, r, i, o) {
      return e.filter((l) => {
        if (!Bo(l)) return !1;
        const u = Moe(l, r);
        return (u !== void 0 && t.push(s(...u)), u === void 0);
      });
      function s(l, u) {
        const d = qF(i, o, u);
        return s0(i, d, l, u);
      }
    }
    function Moe(e, t) {
      if ((C.assert(typeof e == "string"), t && fUe.test(e)))
        return [
          f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,
          e,
        ];
      if (VEe(e))
        return [
          f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,
          e,
        ];
    }
    function hUe({ validatedIncludeSpecs: e, validatedExcludeSpecs: t }, r, i) {
      const o = TM(t, r, "exclude"),
        s = o && new RegExp(o, i ? "" : "i"),
        l = {},
        u = new Map();
      if (e !== void 0) {
        const d = [];
        for (const _ of e) {
          const h = ya(Qr(r, _));
          if (s && s.test(h)) continue;
          const g = _Ue(h, i);
          if (g) {
            const { key: E, path: A, flags: R } = g,
              N = u.get(E),
              P = N !== void 0 ? l[N] : void 0;
            (P === void 0 || P < R) &&
              ((l[N !== void 0 ? N : A] = R),
              N === void 0 && u.set(E, A),
              R === 1 && d.push(E));
          }
        }
        for (const _ in l)
          if (Rs(l, _))
            for (const h of d) {
              const g = Poe(_, i);
              g !== h && um(h, g, r, !i) && delete l[_];
            }
      }
      return l;
    }
    function Poe(e, t) {
      return t ? e : tb(e);
    }
    function _Ue(e, t) {
      const r = mUe.exec(e);
      if (r) {
        const i = e.indexOf("?"),
          o = e.indexOf("*"),
          s = e.lastIndexOf(Js);
        return {
          key: Poe(r[0], t),
          path: r[0],
          flags: (i !== -1 && i < s) || (o !== -1 && o < s) ? 1 : 0,
        };
      }
      if (wV(e.substring(e.lastIndexOf(Js) + 1))) {
        const i = Yy(e);
        return { key: Poe(i, t), path: i, flags: 1 };
      }
    }
    function gUe(e, t, r, i, o) {
      const s = Ye(i, (l) => ($l(e, l) ? l : void 0));
      if (!s) return !1;
      for (const l of s) {
        if (El(e, l) && (l !== ".ts" || !El(e, ".d.ts"))) return !1;
        const u = o(av(e, l));
        if (t.has(u) || r.has(u)) {
          if (l === ".d.ts" && (El(e, ".js") || El(e, ".jsx"))) continue;
          return !0;
        }
      }
      return !1;
    }
    function yUe(e, t, r, i) {
      const o = Ye(r, (s) => ($l(e, s) ? s : void 0));
      if (o)
        for (let s = o.length - 1; s >= 0; s--) {
          const l = o[s];
          if (El(e, l)) return;
          const u = i(av(e, l));
          t.delete(u);
        }
    }
    function Loe(e) {
      const t = {};
      for (const r in e)
        if (Rs(e, r)) {
          const i = iU(r);
          i !== void 0 && (t[r] = koe(e[r], i));
        }
      return t;
    }
    function koe(e, t) {
      if (e === void 0) return e;
      switch (t.type) {
        case "object":
          return "";
        case "string":
          return "";
        case "number":
          return typeof e == "number" ? e : "";
        case "boolean":
          return typeof e == "boolean" ? e : "";
        case "listOrElement":
          if (!Mo(e)) return koe(e, t.element);
        case "list":
          const r = t.element;
          return Mo(e) ? Ui(e, (i) => koe(i, r)) : "";
        default:
          return Hc(t.type, (i, o) => {
            if (i === e) return o;
          });
      }
    }
    function xo(e, t, ...r) {
      e.trace(MI(t, ...r));
    }
    function wb(e, t) {
      return !!e.traceResolution && t.trace !== void 0;
    }
    function ox(e, t, r) {
      let i;
      if (t && e) {
        const o = e.contents.packageJsonContent;
        typeof o.name == "string" &&
          typeof o.version == "string" &&
          (i = {
            name: o.name,
            subModuleName: t.path.slice(e.packageDirectory.length + Js.length),
            version: o.version,
            peerDependencies: zUe(e, r),
          });
      }
      return (
        t && {
          path: t.path,
          extension: t.ext,
          packageId: i,
          resolvedUsingTsExtension: t.resolvedUsingTsExtension,
        }
      );
    }
    function hU(e) {
      return ox(void 0, e, void 0);
    }
    function UEe(e) {
      if (e)
        return (
          C.assert(e.packageId === void 0),
          {
            path: e.path,
            ext: e.extension,
            resolvedUsingTsExtension: e.resolvedUsingTsExtension,
          }
        );
    }
    function Z4(e) {
      const t = [];
      return (
        e & 1 && t.push("TypeScript"),
        e & 2 && t.push("JavaScript"),
        e & 4 && t.push("Declaration"),
        e & 8 && t.push("JSON"),
        t.join(", ")
      );
    }
    function vUe(e) {
      const t = [];
      return (
        e & 1 && t.push(...Yk),
        e & 2 && t.push(...fD),
        e & 4 && t.push(...J6),
        e & 8 && t.push(".json"),
        t
      );
    }
    function woe(e) {
      if (e)
        return (
          C.assert(X6(e.extension)),
          { fileName: e.path, packageId: e.packageId }
        );
    }
    function HEe(e, t, r, i, o, s, l, u, d) {
      if (
        !l.resultFromCache &&
        !l.compilerOptions.preserveSymlinks &&
        t &&
        r &&
        !t.originalPath &&
        !td(e)
      ) {
        const { resolvedFileName: _, originalPath: h } = KEe(
          t.path,
          l.host,
          l.traceEnabled,
        );
        h && (t = { ...t, path: _, originalPath: h });
      }
      return qEe(t, r, i, o, s, l.resultFromCache, u, d);
    }
    function qEe(e, t, r, i, o, s, l, u) {
      return s
        ? l?.isReadonly
          ? {
              ...s,
              failedLookupLocations: Ooe(s.failedLookupLocations, r),
              affectingLocations: Ooe(s.affectingLocations, i),
              resolutionDiagnostics: Ooe(s.resolutionDiagnostics, o),
            }
          : ((s.failedLookupLocations = WD(s.failedLookupLocations, r)),
            (s.affectingLocations = WD(s.affectingLocations, i)),
            (s.resolutionDiagnostics = WD(s.resolutionDiagnostics, o)),
            s)
        : {
            resolvedModule: e && {
              resolvedFileName: e.path,
              originalPath: e.originalPath === !0 ? void 0 : e.originalPath,
              extension: e.extension,
              isExternalLibraryImport: t,
              packageId: e.packageId,
              resolvedUsingTsExtension: !!e.resolvedUsingTsExtension,
            },
            failedLookupLocations: tP(r),
            affectingLocations: tP(i),
            resolutionDiagnostics: tP(o),
            alternateResult: u,
          };
    }
    function tP(e) {
      return e.length ? e : void 0;
    }
    function WD(e, t) {
      return t?.length ? (e?.length ? (e.push(...t), e) : t) : e;
    }
    function Ooe(e, t) {
      return e?.length ? (t.length ? [...e, ...t] : e.slice()) : tP(t);
    }
    function Woe(e, t, r, i) {
      if (!Rs(e, t)) {
        i.traceEnabled && xo(i.host, f.package_json_does_not_have_a_0_field, t);
        return;
      }
      const o = e[t];
      if (typeof o !== r || o === null) {
        i.traceEnabled &&
          xo(
            i.host,
            f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,
            t,
            r,
            o === null ? "null" : typeof o,
          );
        return;
      }
      return o;
    }
    function _U(e, t, r, i) {
      const o = Woe(e, t, "string", i);
      if (o === void 0) return;
      if (!o) {
        i.traceEnabled && xo(i.host, f.package_json_had_a_falsy_0_field, t);
        return;
      }
      const s = ya(Qr(r, o));
      return (
        i.traceEnabled &&
          xo(i.host, f.package_json_has_0_field_1_that_references_2, t, o, s),
        s
      );
    }
    function bUe(e, t, r) {
      return _U(e, "typings", t, r) || _U(e, "types", t, r);
    }
    function TUe(e, t, r) {
      return _U(e, "tsconfig", t, r);
    }
    function SUe(e, t, r) {
      return _U(e, "main", t, r);
    }
    function EUe(e, t) {
      const r = Woe(e, "typesVersions", "object", t);
      if (r !== void 0)
        return (
          t.traceEnabled &&
            xo(
              t.host,
              f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings,
            ),
          r
        );
    }
    function AUe(e, t) {
      const r = EUe(e, t);
      if (r === void 0) return;
      if (t.traceEnabled)
        for (const l in r)
          Rs(r, l) &&
            !q8.tryParse(l) &&
            xo(
              t.host,
              f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,
              l,
            );
      const i = e3(r);
      if (!i) {
        t.traceEnabled &&
          xo(
            t.host,
            f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,
            ge,
          );
        return;
      }
      const { version: o, paths: s } = i;
      if (typeof s != "object") {
        t.traceEnabled &&
          xo(
            t.host,
            f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,
            `typesVersions['${o}']`,
            "object",
            typeof s,
          );
        return;
      }
      return i;
    }
    var Foe;
    function e3(e) {
      Foe || (Foe = new ih(Le));
      for (const t in e) {
        if (!Rs(e, t)) continue;
        const r = q8.tryParse(t);
        if (r !== void 0 && r.test(Foe)) return { version: t, paths: e[t] };
      }
    }
    function nP(e, t) {
      if (e.typeRoots) return e.typeRoots;
      let r;
      if (
        (e.configFilePath
          ? (r = ci(e.configFilePath))
          : t.getCurrentDirectory && (r = t.getCurrentDirectory()),
        r !== void 0)
      )
        return IUe(r);
    }
    function IUe(e) {
      let t;
      return (
        AN(ya(e), (r) => {
          const i = Qr(r, xUe);
          (t ?? (t = [])).push(i);
        }),
        t
      );
    }
    var xUe = Qr("node_modules", "@types");
    function JEe(e, t, r) {
      const i =
        typeof r.useCaseSensitiveFileNames == "function"
          ? r.useCaseSensitiveFileNames()
          : r.useCaseSensitiveFileNames;
      return Zg(e, t, !i) === 0;
    }
    function KEe(e, t, r) {
      const i = i1e(e, t, r),
        o = JEe(e, i, t);
      return { resolvedFileName: o ? e : i, originalPath: o ? void 0 : e };
    }
    function XEe(e, t, r) {
      const i =
        el(e, "/node_modules/@types") || el(e, "/node_modules/@types/")
          ? g1e(t, r)
          : t;
      return Qr(e, i);
    }
    function zoe(e, t, r, i, o, s, l) {
      C.assert(
        typeof e == "string",
        "Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.",
      );
      const u = wb(r, i);
      o && (r = o.commandLine.options);
      const d = t ? ci(t) : void 0;
      let _ = d ? s?.getFromDirectoryCache(e, l, d, o) : void 0;
      if (
        (!_ && d && !td(e) && (_ = s?.getFromNonRelativeNameCache(e, l, d, o)),
        _)
      )
        return (
          u &&
            (xo(
              i,
              f.Resolving_type_reference_directive_0_containing_file_1,
              e,
              t,
            ),
            o &&
              xo(
                i,
                f.Using_compiler_options_of_project_reference_redirect_0,
                o.sourceFile.fileName,
              ),
            xo(
              i,
              f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,
              e,
              d,
            ),
            j(_)),
          _
        );
      const h = nP(r, i);
      u &&
        (t === void 0
          ? h === void 0
            ? xo(
                i,
                f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,
                e,
              )
            : xo(
                i,
                f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,
                e,
                h,
              )
          : h === void 0
            ? xo(
                i,
                f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,
                e,
                t,
              )
            : xo(
                i,
                f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,
                e,
                t,
                h,
              ),
        o &&
          xo(
            i,
            f.Using_compiler_options_of_project_reference_redirect_0,
            o.sourceFile.fileName,
          ));
      const g = [],
        E = [];
      let A = Boe(r);
      l !== void 0 && (A |= 30);
      const R = iu(r);
      l === 99 && 3 <= R && R <= 99 && (A |= 32);
      const N = A & 8 ? Ob(r, l) : [],
        P = [],
        k = {
          compilerOptions: r,
          host: i,
          traceEnabled: u,
          failedLookupLocations: g,
          affectingLocations: E,
          packageJsonInfoCache: s,
          features: A,
          conditions: N,
          requestContainingDirectory: d,
          reportDiagnostic: (q) => void P.push(q),
          isConfigLookup: !1,
          candidateIsFromPackageJsonField: !1,
          resolvedPackageDirectory: !1,
        };
      let W = J(),
        O = !0;
      W || ((W = Z()), (O = !1));
      let G;
      if (W) {
        const { fileName: q, packageId: ye } = W;
        let ie = q,
          K;
        (r.preserveSymlinks ||
          ({ resolvedFileName: ie, originalPath: K } = KEe(q, i, u)),
          (G = {
            primary: O,
            resolvedFileName: ie,
            originalPath: K,
            packageId: ye,
            isExternalLibraryImport: Wb(q),
          }));
      }
      return (
        (_ = {
          resolvedTypeReferenceDirective: G,
          failedLookupLocations: tP(g),
          affectingLocations: tP(E),
          resolutionDiagnostics: tP(P),
        }),
        d &&
          s &&
          !s.isReadonly &&
          (s.getOrCreateCacheForDirectory(d, o).set(e, l, _),
          td(e) || s.getOrCreateCacheForNonRelativeName(e, l, o).set(d, _)),
        u && j(_),
        _
      );
      function j(q) {
        var ye;
        (ye = q.resolvedTypeReferenceDirective) != null && ye.resolvedFileName
          ? q.resolvedTypeReferenceDirective.packageId
            ? xo(
                i,
                f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,
                e,
                q.resolvedTypeReferenceDirective.resolvedFileName,
                wT(q.resolvedTypeReferenceDirective.packageId),
                q.resolvedTypeReferenceDirective.primary,
              )
            : xo(
                i,
                f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,
                e,
                q.resolvedTypeReferenceDirective.resolvedFileName,
                q.resolvedTypeReferenceDirective.primary,
              )
          : xo(i, f.Type_reference_directive_0_was_not_resolved, e);
      }
      function J() {
        if (h && h.length)
          return (
            u && xo(i, f.Resolving_with_primary_search_path_0, h.join(", ")),
            Hn(h, (q) => {
              const ye = XEe(q, e, k),
                ie = ch(q, i);
              if (
                (!ie &&
                  u &&
                  xo(
                    i,
                    f.Directory_0_does_not_exist_skipping_all_lookups_in_it,
                    q,
                  ),
                r.typeRoots)
              ) {
                const K = BD(4, ye, !ie, k);
                if (K) {
                  const pe = Bw(K.path),
                    de = pe ? P1(pe, !1, k) : void 0;
                  return woe(ox(de, K, k));
                }
              }
              return woe(Koe(4, ye, !ie, k));
            })
          );
        u &&
          xo(
            i,
            f.Root_directory_cannot_be_determined_skipping_primary_search_paths,
          );
      }
      function Z() {
        const q = t && ci(t);
        if (q !== void 0) {
          let ye;
          if (!r.typeRoots || !el(t, vP))
            if (
              (u &&
                xo(
                  i,
                  f.Looking_up_in_node_modules_folder_initial_location_0,
                  q,
                ),
              td(e))
            ) {
              const { path: ie } = r1e(q, e);
              ye = bU(4, ie, !1, k, !0);
            } else {
              const ie = f1e(4, e, q, k, void 0, void 0);
              ye = ie && ie.value;
            }
          else
            u &&
              xo(
                i,
                f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder,
              );
          return woe(ye);
        } else
          u &&
            xo(
              i,
              f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder,
            );
      }
    }
    function Boe(e) {
      let t = 0;
      switch (iu(e)) {
        case 3:
          t = 30;
          break;
        case 99:
          t = 30;
          break;
        case 100:
          t = 30;
          break;
      }
      return (
        e.resolvePackageJsonExports
          ? (t |= 8)
          : e.resolvePackageJsonExports === !1 && (t &= -9),
        e.resolvePackageJsonImports
          ? (t |= 2)
          : e.resolvePackageJsonImports === !1 && (t &= -3),
        t
      );
    }
    function Ob(e, t) {
      const r = iu(e);
      if (t === void 0) {
        if (r === 100) t = 99;
        else if (r === 2) return [];
      }
      const i = t === 99 ? ["import"] : ["require"];
      return (
        e.noDtsResolution || i.push("types"),
        r !== 100 && i.push("node"),
        so(i, e.customConditions)
      );
    }
    function gU(e, t, r, i, o) {
      const s = iP(o?.getPackageJsonInfoCache(), i, r);
      return W_(i, t, (l) => {
        if (Ic(l) !== "node_modules") {
          const u = Qr(l, "node_modules"),
            d = Qr(u, e);
          return P1(d, !1, s);
        }
      });
    }
    function t3(e, t) {
      if (e.types) return e.types;
      const r = [];
      if (t.directoryExists && t.getDirectories) {
        const i = nP(e, t);
        if (i) {
          for (const o of i)
            if (t.directoryExists(o))
              for (const s of t.getDirectories(o)) {
                const l = ya(s),
                  u = Qr(o, l, "package.json");
                if (!(t.fileExists(u) && lD(u, t).typings === null)) {
                  const _ = Ic(l);
                  _.charCodeAt(0) !== 46 && r.push(_);
                }
              }
        }
      }
      return r;
    }
    function n3(e) {
      return !!e?.contents;
    }
    function Goe(e) {
      return !!e && !e.contents;
    }
    function Voe(e) {
      var t;
      if (e === null || typeof e != "object") return "" + e;
      if (Mo(e))
        return `[${(t = e.map((i) => Voe(i))) == null ? void 0 : t.join(",")}]`;
      let r = "{";
      for (const i in e) Rs(e, i) && (r += `${i}: ${Voe(e[i])}`);
      return r + "}";
    }
    function yU(e, t) {
      return t.map((r) => Voe(F6(e, r))).join("|") + `|${e.pathsBasePath}`;
    }
    function YEe(e, t) {
      const r = new Map(),
        i = new Map();
      let o = new Map();
      return (
        e && r.set(e, o),
        {
          getMapOfCacheRedirects: s,
          getOrCreateMapOfCacheRedirects: l,
          update: u,
          clear: _,
          getOwnMap: () => o,
        }
      );
      function s(g) {
        return g ? d(g.commandLine.options, !1) : o;
      }
      function l(g) {
        return g ? d(g.commandLine.options, !0) : o;
      }
      function u(g) {
        e !== g && (e ? (o = d(g, !0)) : r.set(g, o), (e = g));
      }
      function d(g, E) {
        let A = r.get(g);
        if (A) return A;
        const R = h(g);
        if (((A = i.get(R)), !A)) {
          if (e) {
            const N = h(e);
            N === R ? (A = o) : i.has(N) || i.set(N, o);
          }
          (E && (A ?? (A = new Map())), A && i.set(R, A));
        }
        return (A && r.set(g, A), A);
      }
      function _() {
        const g = e && t.get(e);
        (o.clear(),
          r.clear(),
          t.clear(),
          i.clear(),
          e && (g && t.set(e, g), r.set(e, o)));
      }
      function h(g) {
        let E = t.get(g);
        return (E || t.set(g, (E = yU(g, eU))), E);
      }
    }
    function RUe(e, t) {
      let r;
      return {
        getPackageJsonInfo: i,
        setPackageJsonInfo: o,
        clear: s,
        getInternalMap: l,
      };
      function i(u) {
        return r?.get(ks(u, e, t));
      }
      function o(u, d) {
        (r || (r = new Map())).set(ks(u, e, t), d);
      }
      function s() {
        r = void 0;
      }
      function l() {
        return r;
      }
    }
    function $Ee(e, t, r, i) {
      const o = e.getOrCreateMapOfCacheRedirects(t);
      let s = o.get(r);
      return (s || ((s = i()), o.set(r, s)), s);
    }
    function DUe(e, t, r, i) {
      const o = YEe(r, i);
      return {
        getFromDirectoryCache: d,
        getOrCreateCacheForDirectory: u,
        clear: s,
        update: l,
        directoryToModuleNameMap: o,
      };
      function s() {
        o.clear();
      }
      function l(_) {
        o.update(_);
      }
      function u(_, h) {
        const g = ks(_, e, t);
        return $Ee(o, h, g, () => FD());
      }
      function d(_, h, g, E) {
        var A, R;
        const N = ks(g, e, t);
        return (R =
          (A = o.getMapOfCacheRedirects(E)) == null ? void 0 : A.get(N)) == null
          ? void 0
          : R.get(_, h);
      }
    }
    function rP(e, t) {
      return t === void 0 ? e : `${t}|${e}`;
    }
    function FD() {
      const e = new Map(),
        t = new Map(),
        r = {
          get(o, s) {
            return e.get(i(o, s));
          },
          set(o, s, l) {
            return (e.set(i(o, s), l), r);
          },
          delete(o, s) {
            return (e.delete(i(o, s)), r);
          },
          has(o, s) {
            return e.has(i(o, s));
          },
          forEach(o) {
            return e.forEach((s, l) => {
              const [u, d] = t.get(l);
              return o(s, u, d);
            });
          },
          size() {
            return e.size;
          },
        };
      return r;
      function i(o, s) {
        const l = rP(o, s);
        return (t.set(l, [o, s]), l);
      }
    }
    function CUe(e) {
      return (
        e.resolvedModule &&
        (e.resolvedModule.originalPath || e.resolvedModule.resolvedFileName)
      );
    }
    function NUe(e) {
      return (
        e.resolvedTypeReferenceDirective &&
        (e.resolvedTypeReferenceDirective.originalPath ||
          e.resolvedTypeReferenceDirective.resolvedFileName)
      );
    }
    function MUe(e, t, r, i, o) {
      const s = YEe(r, o);
      return {
        getFromNonRelativeNameCache: d,
        getOrCreateCacheForNonRelativeName: _,
        clear: l,
        update: u,
      };
      function l() {
        s.clear();
      }
      function u(g) {
        s.update(g);
      }
      function d(g, E, A, R) {
        var N, P;
        return (
          C.assert(!td(g)),
          (P =
            (N = s.getMapOfCacheRedirects(R)) == null
              ? void 0
              : N.get(rP(g, E))) == null
            ? void 0
            : P.get(A)
        );
      }
      function _(g, E, A) {
        return (C.assert(!td(g)), $Ee(s, A, rP(g, E), h));
      }
      function h() {
        const g = new Map();
        return { get: E, set: A };
        function E(N) {
          return g.get(ks(N, e, t));
        }
        function A(N, P) {
          const k = ks(N, e, t);
          if (g.has(k)) return;
          g.set(k, P);
          const W = i(P),
            O = W && R(k, W);
          let G = k;
          for (; G !== O; ) {
            const j = ci(G);
            if (j === G || g.has(j)) break;
            (g.set(j, P), (G = j));
          }
        }
        function R(N, P) {
          const k = ks(ci(P), e, t);
          let W = 0;
          const O = Math.min(N.length, k.length);
          for (; W < O && N.charCodeAt(W) === k.charCodeAt(W); ) W++;
          if (W === N.length && (k.length === W || k[W] === Js)) return N;
          const G = zh(N);
          if (W < G) return;
          const j = N.lastIndexOf(Js, W - 1);
          if (j !== -1) return N.substr(0, Math.max(j, G));
        }
      }
    }
    function QEe(e, t, r, i, o, s) {
      s ?? (s = new Map());
      const l = DUe(e, t, r, s),
        u = MUe(e, t, r, o, s);
      return (
        i ?? (i = RUe(e, t)),
        {
          ...i,
          ...l,
          ...u,
          clear: d,
          update: h,
          getPackageJsonInfoCache: () => i,
          clearAllExceptPackageJsonInfoCache: _,
          optionsToRedirectsKey: s,
        }
      );
      function d() {
        (_(), i.clear());
      }
      function _() {
        (l.clear(), u.clear());
      }
      function h(g) {
        (l.update(g), u.update(g));
      }
    }
    function zD(e, t, r, i, o) {
      const s = QEe(e, t, r, i, CUe, o);
      return (
        (s.getOrCreateCacheForModuleName = (l, u, d) =>
          s.getOrCreateCacheForNonRelativeName(l, u, d)),
        s
      );
    }
    function r3(e, t, r, i, o) {
      return QEe(e, t, r, i, NUe, o);
    }
    function vU(e) {
      return { moduleResolution: 2, traceResolution: e.traceResolution };
    }
    function i3(e, t, r, i, o) {
      return M1(e, t, vU(r), i, o);
    }
    function ZEe(e, t, r, i) {
      const o = ci(t);
      return r.getFromDirectoryCache(e, i, o, void 0);
    }
    function M1(e, t, r, i, o, s, l) {
      const u = wb(r, i);
      (s && (r = s.commandLine.options),
        u &&
          (xo(i, f.Resolving_module_0_from_1, e, t),
          s &&
            xo(
              i,
              f.Using_compiler_options_of_project_reference_redirect_0,
              s.sourceFile.fileName,
            )));
      const d = ci(t);
      let _ = o?.getFromDirectoryCache(e, l, d, s);
      if (_)
        u &&
          xo(
            i,
            f.Resolution_for_module_0_was_found_in_cache_from_location_1,
            e,
            d,
          );
      else {
        let h = r.moduleResolution;
        switch (
          (h === void 0
            ? ((h = iu(r)),
              u &&
                xo(i, f.Module_resolution_kind_is_not_specified_using_0, DR[h]))
            : u &&
              xo(
                i,
                f.Explicitly_specified_module_resolution_kind_Colon_0,
                DR[h],
              ),
          h)
        ) {
          case 3:
            _ = wUe(e, t, r, i, o, s, l);
            break;
          case 99:
            _ = OUe(e, t, r, i, o, s, l);
            break;
          case 2:
            _ = Hoe(e, t, r, i, o, s, l ? Ob(r, l) : void 0);
            break;
          case 1:
            _ = $oe(e, t, r, i, o, s);
            break;
          case 100:
            _ = Uoe(e, t, r, i, o, s, l ? Ob(r, l) : void 0);
            break;
          default:
            return C.fail(`Unexpected moduleResolution: ${h}`);
        }
        o &&
          !o.isReadonly &&
          (o.getOrCreateCacheForDirectory(d, s).set(e, l, _),
          td(e) || o.getOrCreateCacheForNonRelativeName(e, l, s).set(d, _));
      }
      return (
        u &&
          (_.resolvedModule
            ? _.resolvedModule.packageId
              ? xo(
                  i,
                  f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,
                  e,
                  _.resolvedModule.resolvedFileName,
                  wT(_.resolvedModule.packageId),
                )
              : xo(
                  i,
                  f.Module_name_0_was_successfully_resolved_to_1,
                  e,
                  _.resolvedModule.resolvedFileName,
                )
            : xo(i, f.Module_name_0_was_not_resolved, e)),
        _
      );
    }
    function e1e(e, t, r, i, o) {
      const s = PUe(e, t, i, o);
      return s ? s.value : td(t) ? LUe(e, t, r, i, o) : kUe(e, t, i, o);
    }
    function PUe(e, t, r, i) {
      const { baseUrl: o, paths: s } = i.compilerOptions;
      if (s && !Zp(t)) {
        i.traceEnabled &&
          (o &&
            xo(
              i.host,
              f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,
              o,
              t,
            ),
          xo(
            i.host,
            f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,
            t,
          ));
        const l = g6(i.compilerOptions, i.host),
          u = ew(s);
        return Xoe(e, t, l, s, u, r, !1, i);
      }
    }
    function LUe(e, t, r, i, o) {
      if (!o.compilerOptions.rootDirs) return;
      o.traceEnabled &&
        xo(
          o.host,
          f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,
          t,
        );
      const s = ya(Qr(r, t));
      let l, u;
      for (const d of o.compilerOptions.rootDirs) {
        let _ = ya(d);
        el(_, Js) || (_ += Js);
        const h = po(s, _) && (u === void 0 || u.length < _.length);
        (o.traceEnabled &&
          xo(
            o.host,
            f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,
            _,
            s,
            h,
          ),
          h && ((u = _), (l = d)));
      }
      if (u) {
        o.traceEnabled &&
          xo(o.host, f.Longest_matching_prefix_for_0_is_1, s, u);
        const d = s.substr(u.length);
        o.traceEnabled &&
          xo(
            o.host,
            f.Loading_0_from_the_root_dir_1_candidate_location_2,
            d,
            u,
            s,
          );
        const _ = i(e, s, !ch(r, o.host), o);
        if (_) return _;
        o.traceEnabled && xo(o.host, f.Trying_other_entries_in_rootDirs);
        for (const h of o.compilerOptions.rootDirs) {
          if (h === l) continue;
          const g = Qr(ya(h), d);
          o.traceEnabled &&
            xo(
              o.host,
              f.Loading_0_from_the_root_dir_1_candidate_location_2,
              d,
              h,
              g,
            );
          const E = ci(g),
            A = i(e, g, !ch(E, o.host), o);
          if (A) return A;
        }
        o.traceEnabled &&
          xo(o.host, f.Module_resolution_using_rootDirs_has_failed);
      }
    }
    function kUe(e, t, r, i) {
      const { baseUrl: o } = i.compilerOptions;
      if (!o) return;
      i.traceEnabled &&
        xo(
          i.host,
          f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,
          o,
          t,
        );
      const s = ya(Qr(o, t));
      return (
        i.traceEnabled &&
          xo(
            i.host,
            f.Resolving_module_name_0_relative_to_base_url_1_2,
            t,
            o,
            s,
          ),
        r(e, s, !ch(ci(s), i.host), i)
      );
    }
    function t1e(e, t, r) {
      const { resolvedModule: i, failedLookupLocations: o } = WUe(e, t, r);
      if (!i)
        throw new Error(
          `Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(", ")}`,
        );
      return i.resolvedFileName;
    }
    var joe = ((e) => (
      (e[(e.None = 0)] = "None"),
      (e[(e.Imports = 2)] = "Imports"),
      (e[(e.SelfName = 4)] = "SelfName"),
      (e[(e.Exports = 8)] = "Exports"),
      (e[(e.ExportsPatternTrailers = 16)] = "ExportsPatternTrailers"),
      (e[(e.AllFeatures = 30)] = "AllFeatures"),
      (e[(e.Node16Default = 30)] = "Node16Default"),
      (e[(e.NodeNextDefault = 30)] = "NodeNextDefault"),
      (e[(e.BundlerDefault = 30)] = "BundlerDefault"),
      (e[(e.EsmMode = 32)] = "EsmMode"),
      e
    ))(joe || {});
    function wUe(e, t, r, i, o, s, l) {
      return n1e(30, e, t, r, i, o, s, l);
    }
    function OUe(e, t, r, i, o, s, l) {
      return n1e(30, e, t, r, i, o, s, l);
    }
    function n1e(e, t, r, i, o, s, l, u, d) {
      const _ = ci(r),
        h = u === 99 ? 32 : 0;
      let g = i.noDtsResolution ? 3 : 7;
      return (LS(i) && (g |= 8), zw(e | h, t, _, i, o, s, g, !1, l, d));
    }
    function WUe(e, t, r) {
      return zw(
        0,
        e,
        t,
        { moduleResolution: 2, allowJs: !0 },
        r,
        void 0,
        2,
        !1,
        void 0,
        void 0,
      );
    }
    function Uoe(e, t, r, i, o, s, l) {
      const u = ci(t);
      let d = r.noDtsResolution ? 3 : 7;
      return (LS(r) && (d |= 8), zw(Boe(r), e, u, r, i, o, d, !1, s, l));
    }
    function Hoe(e, t, r, i, o, s, l, u) {
      let d;
      return (
        u
          ? (d = 8)
          : r.noDtsResolution
            ? ((d = 3), LS(r) && (d |= 8))
            : (d = LS(r) ? 15 : 7),
        zw(l ? 30 : 0, e, ci(t), r, i, o, d, !!u, s, l)
      );
    }
    function qoe(e, t, r) {
      return zw(
        30,
        e,
        ci(t),
        { moduleResolution: 99 },
        r,
        void 0,
        8,
        !0,
        void 0,
        void 0,
      );
    }
    function zw(e, t, r, i, o, s, l, u, d, _) {
      var h, g, E, A, R;
      const N = wb(i, o),
        P = [],
        k = [],
        W = iu(i);
      _ ?? (_ = Ob(i, W === 100 || W === 2 ? void 0 : e & 32 ? 99 : 1));
      const O = [],
        G = {
          compilerOptions: i,
          host: o,
          traceEnabled: N,
          failedLookupLocations: P,
          affectingLocations: k,
          packageJsonInfoCache: s,
          features: e,
          conditions: _ ?? ae,
          requestContainingDirectory: r,
          reportDiagnostic: (q) => void O.push(q),
          isConfigLookup: u,
          candidateIsFromPackageJsonField: !1,
          resolvedPackageDirectory: !1,
        };
      N &&
        pD(W) &&
        xo(
          o,
          f.Resolving_in_0_mode_with_conditions_1,
          e & 32 ? "ESM" : "CJS",
          G.conditions.map((q) => `'${q}'`).join(", "),
        );
      let j;
      if (W === 2) {
        const q = l & 5,
          ye = l & -6;
        j = (q && Z(q, G)) || (ye && Z(ye, G)) || void 0;
      } else j = Z(l, G);
      let J;
      if (G.resolvedPackageDirectory && !u && !td(t)) {
        const q = j?.value && l & 5 && !d1e(5, j.value.resolved.extension);
        if (
          (h = j?.value) != null &&
          h.isExternalLibraryImport &&
          q &&
          e & 8 &&
          _?.includes("import")
        ) {
          Fb(
            G,
            f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update,
          );
          const ye = { ...G, features: G.features & -9, reportDiagnostic: gs },
            ie = Z(l & 5, ye);
          (g = ie?.value) != null &&
            g.isExternalLibraryImport &&
            (J = ie.value.resolved.path);
        } else if ((!j?.value || q) && W === 2) {
          Fb(
            G,
            f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update,
          );
          const ye = { ...G.compilerOptions, moduleResolution: 100 },
            ie = {
              ...G,
              compilerOptions: ye,
              features: 30,
              conditions: Ob(ye),
              reportDiagnostic: gs,
            },
            K = Z(l & 5, ie);
          (E = K?.value) != null &&
            E.isExternalLibraryImport &&
            (J = K.value.resolved.path);
        }
      }
      return HEe(
        t,
        (A = j?.value) == null ? void 0 : A.resolved,
        (R = j?.value) == null ? void 0 : R.isExternalLibraryImport,
        P,
        k,
        O,
        G,
        s,
        J,
      );
      function Z(q, ye) {
        const K = e1e(q, t, r, (pe, de, fe, ve) => bU(pe, de, fe, ve, !0), ye);
        if (K) return hf({ resolved: K, isExternalLibraryImport: Wb(K.path) });
        if (td(t)) {
          const { path: pe, parts: de } = r1e(r, t),
            fe = bU(q, pe, !1, ye, !0);
          return (
            fe &&
            hf({
              resolved: fe,
              isExternalLibraryImport: jn(de, "node_modules"),
            })
          );
        } else {
          if (e & 2 && po(t, "#")) {
            const de = jUe(q, t, r, ye, s, d);
            if (de)
              return (
                de.value && {
                  value: { resolved: de.value, isExternalLibraryImport: !1 },
                }
              );
          }
          if (e & 4) {
            const de = VUe(q, t, r, ye, s, d);
            if (de)
              return (
                de.value && {
                  value: { resolved: de.value, isExternalLibraryImport: !1 },
                }
              );
          }
          if (t.includes(":")) {
            N &&
              xo(
                o,
                f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,
                t,
                Z4(q),
              );
            return;
          }
          N &&
            xo(
              o,
              f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,
              t,
              Z4(q),
            );
          let pe = f1e(q, t, r, ye, s, d);
          return (
            q & 4 && (pe ?? (pe = v1e(t, ye))),
            pe && {
              value: pe.value && {
                resolved: pe.value,
                isExternalLibraryImport: !0,
              },
            }
          );
        }
      }
    }
    function r1e(e, t) {
      const r = Qr(e, t),
        i = zd(r),
        o = Zs(i);
      return { path: o === "." || o === ".." ? Uc(ya(r)) : ya(r), parts: i };
    }
    function i1e(e, t, r) {
      if (!t.realpath) return e;
      const i = ya(t.realpath(e));
      return (r && xo(t, f.Resolving_real_path_for_0_result_1, e, i), i);
    }
    function bU(e, t, r, i, o) {
      if (
        (i.traceEnabled &&
          xo(
            i.host,
            f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,
            t,
            Z4(e),
          ),
        !ob(t))
      ) {
        if (!r) {
          const l = ci(t);
          ch(l, i.host) ||
            (i.traceEnabled &&
              xo(
                i.host,
                f.Directory_0_does_not_exist_skipping_all_lookups_in_it,
                l,
              ),
            (r = !0));
        }
        const s = BD(e, t, r, i);
        if (s) {
          const l = o ? Bw(s.path) : void 0,
            u = l ? P1(l, !1, i) : void 0;
          return ox(u, s, i);
        }
      }
      if (
        (r ||
          ch(t, i.host) ||
          (i.traceEnabled &&
            xo(
              i.host,
              f.Directory_0_does_not_exist_skipping_all_lookups_in_it,
              t,
            ),
          (r = !0)),
        !(i.features & 32))
      )
        return Koe(e, t, r, i, o);
    }
    var Rg = "/node_modules/";
    function Wb(e) {
      return e.includes(Rg);
    }
    function Bw(e, t) {
      const r = ya(e),
        i = r.lastIndexOf(Rg);
      if (i === -1) return;
      const o = i + Rg.length;
      let s = o1e(r, o, t);
      return (r.charCodeAt(o) === 64 && (s = o1e(r, s, t)), r.slice(0, s));
    }
    function o1e(e, t, r) {
      const i = e.indexOf(Js, t + 1);
      return i === -1 ? (r ? e.length : t) : i;
    }
    function Joe(e, t, r, i) {
      return hU(BD(e, t, r, i));
    }
    function BD(e, t, r, i) {
      const o = a1e(e, t, r, i);
      if (o) return o;
      if (!(i.features & 32)) {
        const s = s1e(t, e, "", r, i);
        if (s) return s;
      }
    }
    function a1e(e, t, r, i) {
      if (!Ic(t).includes(".")) return;
      let s = Tu(t);
      s === t && (s = t.substring(0, t.lastIndexOf(".")));
      const l = t.substring(s.length);
      return (
        i.traceEnabled &&
          xo(i.host, f.File_name_0_has_a_1_extension_stripping_it, t, l),
        s1e(s, e, l, r, i)
      );
    }
    function TU(e, t, r, i, o) {
      if ((e & 1 && $l(t, Yk)) || (e & 4 && $l(t, J6))) {
        const s = SU(t, i, o),
          l = x6(t);
        return s !== void 0
          ? {
              path: t,
              ext: l,
              resolvedUsingTsExtension: r ? !el(r, l) : void 0,
            }
          : void 0;
      }
      return o.isConfigLookup && e === 8 && El(t, ".json")
        ? SU(t, i, o) !== void 0
          ? { path: t, ext: ".json", resolvedUsingTsExtension: void 0 }
          : void 0
        : a1e(e, t, i, o);
    }
    function s1e(e, t, r, i, o) {
      if (!i) {
        const l = ci(e);
        l && (i = !ch(l, o.host));
      }
      switch (r) {
        case ".mjs":
        case ".mts":
        case ".d.mts":
          return (
            (t & 1 && s(".mts", r === ".mts" || r === ".d.mts")) ||
            (t & 4 && s(".d.mts", r === ".mts" || r === ".d.mts")) ||
            (t & 2 && s(".mjs")) ||
            void 0
          );
        case ".cjs":
        case ".cts":
        case ".d.cts":
          return (
            (t & 1 && s(".cts", r === ".cts" || r === ".d.cts")) ||
            (t & 4 && s(".d.cts", r === ".cts" || r === ".d.cts")) ||
            (t & 2 && s(".cjs")) ||
            void 0
          );
        case ".json":
          return (t & 4 && s(".d.json.ts")) || (t & 8 && s(".json")) || void 0;
        case ".tsx":
        case ".jsx":
          return (
            (t & 1 && (s(".tsx", r === ".tsx") || s(".ts", r === ".tsx"))) ||
            (t & 4 && s(".d.ts", r === ".tsx")) ||
            (t & 2 && (s(".jsx") || s(".js"))) ||
            void 0
          );
        case ".ts":
        case ".d.ts":
        case ".js":
        case "":
          return (
            (t & 1 &&
              (s(".ts", r === ".ts" || r === ".d.ts") ||
                s(".tsx", r === ".ts" || r === ".d.ts"))) ||
            (t & 4 && s(".d.ts", r === ".ts" || r === ".d.ts")) ||
            (t & 2 && (s(".js") || s(".jsx"))) ||
            (o.isConfigLookup && s(".json")) ||
            void 0
          );
        default:
          return (t & 4 && !ad(e + r) && s(`.d${r}.ts`)) || void 0;
      }
      function s(l, u) {
        const d = SU(e + l, i, o);
        return d === void 0
          ? void 0
          : {
              path: d,
              ext: l,
              resolvedUsingTsExtension: !o.candidateIsFromPackageJsonField && u,
            };
      }
    }
    function SU(e, t, r) {
      var i;
      if (!((i = r.compilerOptions.moduleSuffixes) != null && i.length))
        return l1e(e, t, r);
      const o = Sg(e) ?? "",
        s = o ? Zk(e, o) : e;
      return Ye(r.compilerOptions.moduleSuffixes, (l) => l1e(s + l + o, t, r));
    }
    function l1e(e, t, r) {
      var i;
      if (!t) {
        if (r.host.fileExists(e))
          return (
            r.traceEnabled &&
              xo(r.host, f.File_0_exists_use_it_as_a_name_resolution_result, e),
            e
          );
        r.traceEnabled && xo(r.host, f.File_0_does_not_exist, e);
      }
      (i = r.failedLookupLocations) == null || i.push(e);
    }
    function Koe(e, t, r, i, o = !0) {
      const s = o ? P1(t, r, i) : void 0;
      return ox(s, AU(e, t, r, i, s), i);
    }
    function EU(e, t, r, i, o) {
      if (!o && e.contents.resolvedEntrypoints !== void 0)
        return e.contents.resolvedEntrypoints;
      let s;
      const l = 5 | (o ? 2 : 0),
        u = Boe(t),
        d = iP(i?.getPackageJsonInfoCache(), r, t);
      ((d.conditions = Ob(t)),
        (d.requestContainingDirectory = e.packageDirectory));
      const _ = AU(l, e.packageDirectory, !1, d, e);
      if (
        ((s = Bn(s, _?.path)), u & 8 && e.contents.packageJsonContent.exports)
      ) {
        const h = cS([Ob(t, 99), Ob(t, 1)], Qp);
        for (const g of h) {
          const E = { ...d, failedLookupLocations: [], conditions: g, host: r },
            A = FUe(e, e.contents.packageJsonContent.exports, E, l);
          if (A) for (const R of A) s = $g(s, R.path);
        }
      }
      return (e.contents.resolvedEntrypoints = s || !1);
    }
    function FUe(e, t, r, i) {
      let o;
      if (Mo(t)) for (const l of t) s(l);
      else if (typeof t == "object" && t !== null && a3(t))
        for (const l in t) s(t[l]);
      else s(t);
      return o;
      function s(l) {
        var u, d;
        if (typeof l == "string" && po(l, "./"))
          if (l.includes("*") && r.host.readDirectory) {
            if (l.indexOf("*") !== l.lastIndexOf("*")) return !1;
            r.host
              .readDirectory(e.packageDirectory, vUe(i), void 0, [
                nF(m1(l, "**/*"), ".*"),
              ])
              .forEach((_) => {
                o = $g(o, {
                  path: _,
                  ext: nI(_),
                  resolvedUsingTsExtension: void 0,
                });
              });
          } else {
            const _ = zd(l).slice(2);
            if (
              _.includes("..") ||
              _.includes(".") ||
              _.includes("node_modules")
            )
              return !1;
            const h = Qr(e.packageDirectory, l),
              g = To(
                h,
                (d = (u = r.host).getCurrentDirectory) == null
                  ? void 0
                  : d.call(u),
              ),
              E = TU(i, g, l, !1, r);
            if (E) return ((o = $g(o, E, (A, R) => A.path === R.path)), !0);
          }
        else if (Array.isArray(l)) {
          for (const _ of l) if (s(_)) return !0;
        } else if (typeof l == "object" && l !== null)
          return Ye(Wh(l), (_) => {
            if (_ === "default" || jn(r.conditions, _) || Gw(r.conditions, _))
              return (s(l[_]), !0);
          });
      }
    }
    function iP(e, t, r) {
      return {
        host: t,
        compilerOptions: r,
        traceEnabled: wb(r, t),
        failedLookupLocations: void 0,
        affectingLocations: void 0,
        packageJsonInfoCache: e,
        features: 0,
        conditions: ae,
        requestContainingDirectory: void 0,
        reportDiagnostic: gs,
        isConfigLookup: !1,
        candidateIsFromPackageJsonField: !1,
        resolvedPackageDirectory: !1,
      };
    }
    function oP(e, t) {
      return W_(t.host, e, (r) => P1(r, !1, t));
    }
    function c1e(e, t) {
      return (
        e.contents.versionPaths === void 0 &&
          (e.contents.versionPaths =
            AUe(e.contents.packageJsonContent, t) || !1),
        e.contents.versionPaths || void 0
      );
    }
    function zUe(e, t) {
      return (
        e.contents.peerDependencies === void 0 &&
          (e.contents.peerDependencies = BUe(e, t) || !1),
        e.contents.peerDependencies || void 0
      );
    }
    function BUe(e, t) {
      const r = Woe(
        e.contents.packageJsonContent,
        "peerDependencies",
        "object",
        t,
      );
      if (r === void 0) return;
      t.traceEnabled && xo(t.host, f.package_json_has_a_peerDependencies_field);
      const i = i1e(e.packageDirectory, t.host, t.traceEnabled),
        o = i.substring(0, i.lastIndexOf("node_modules") + 12) + Js;
      let s = "";
      for (const l in r)
        if (Rs(r, l)) {
          const u = P1(o + l, !1, t);
          if (u) {
            const d = u.contents.packageJsonContent.version;
            ((s += `+${l}@${d}`),
              t.traceEnabled &&
                xo(t.host, f.Found_peerDependency_0_with_1_version, l, d));
          } else
            t.traceEnabled && xo(t.host, f.Failed_to_find_peerDependency_0, l);
        }
      return s;
    }
    function P1(e, t, r) {
      var i, o, s, l, u, d;
      const { host: _, traceEnabled: h } = r,
        g = Qr(e, "package.json");
      if (t) {
        (i = r.failedLookupLocations) == null || i.push(g);
        return;
      }
      const E =
        (o = r.packageJsonInfoCache) == null ? void 0 : o.getPackageJsonInfo(g);
      if (E !== void 0) {
        if (n3(E))
          return (
            h && xo(_, f.File_0_exists_according_to_earlier_cached_lookups, g),
            (s = r.affectingLocations) == null || s.push(g),
            E.packageDirectory === e
              ? E
              : { packageDirectory: e, contents: E.contents }
          );
        (E.directoryExists &&
          h &&
          xo(_, f.File_0_does_not_exist_according_to_earlier_cached_lookups, g),
          (l = r.failedLookupLocations) == null || l.push(g));
        return;
      }
      const A = ch(e, _);
      if (A && _.fileExists(g)) {
        const R = lD(g, _);
        h && xo(_, f.Found_package_json_at_0, g);
        const N = {
          packageDirectory: e,
          contents: {
            packageJsonContent: R,
            versionPaths: void 0,
            resolvedEntrypoints: void 0,
            peerDependencies: void 0,
          },
        };
        return (
          r.packageJsonInfoCache &&
            !r.packageJsonInfoCache.isReadonly &&
            r.packageJsonInfoCache.setPackageJsonInfo(g, N),
          (u = r.affectingLocations) == null || u.push(g),
          N
        );
      } else
        (A && h && xo(_, f.File_0_does_not_exist, g),
          r.packageJsonInfoCache &&
            !r.packageJsonInfoCache.isReadonly &&
            r.packageJsonInfoCache.setPackageJsonInfo(g, {
              packageDirectory: e,
              directoryExists: A,
            }),
          (d = r.failedLookupLocations) == null || d.push(g));
    }
    function AU(e, t, r, i, o) {
      const s = o && c1e(o, i);
      let l;
      o &&
        JEe(o?.packageDirectory, t, i.host) &&
        (i.isConfigLookup
          ? (l = TUe(o.contents.packageJsonContent, o.packageDirectory, i))
          : (l =
              (e & 4 &&
                bUe(o.contents.packageJsonContent, o.packageDirectory, i)) ||
              (e & 7 &&
                SUe(o.contents.packageJsonContent, o.packageDirectory, i)) ||
              void 0));
      const u = (E, A, R, N) => {
          const P = TU(E, A, void 0, R, N);
          if (P) return hU(P);
          const k = E === 4 ? 5 : E,
            W = N.features,
            O = N.candidateIsFromPackageJsonField;
          ((N.candidateIsFromPackageJsonField = !0),
            o?.contents.packageJsonContent.type !== "module" &&
              (N.features &= -33));
          const G = bU(k, A, R, N, !1);
          return ((N.features = W), (N.candidateIsFromPackageJsonField = O), G);
        },
        d = l ? !ch(ci(l), i.host) : void 0,
        _ = r || !ch(t, i.host),
        h = Qr(t, i.isConfigLookup ? "tsconfig" : "index");
      if (s && (!l || um(t, l))) {
        const E = cf(t, l || h, !1);
        i.traceEnabled &&
          xo(
            i.host,
            f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,
            s.version,
            Le,
            E,
          );
        const A = ew(s.paths),
          R = Xoe(e, E, t, s.paths, A, u, d || _, i);
        if (R) return UEe(R.value);
      }
      const g = l && UEe(u(e, l, d, i));
      if (g) return g;
      if (!(i.features & 32)) return BD(e, h, _, i);
    }
    function d1e(e, t) {
      return (
        (e & 2 &&
          (t === ".js" || t === ".jsx" || t === ".mjs" || t === ".cjs")) ||
        (e & 1 &&
          (t === ".ts" || t === ".tsx" || t === ".mts" || t === ".cts")) ||
        (e & 4 && (t === ".d.ts" || t === ".d.mts" || t === ".d.cts")) ||
        (e & 8 && t === ".json") ||
        !1
      );
    }
    function o3(e) {
      let t = e.indexOf(Js);
      return (
        e[0] === "@" && (t = e.indexOf(Js, t + 1)),
        t === -1
          ? { packageName: e, rest: "" }
          : { packageName: e.slice(0, t), rest: e.slice(t + 1) }
      );
    }
    function a3(e) {
      return Vn(Wh(e), (t) => po(t, "."));
    }
    function GUe(e) {
      return !yt(Wh(e), (t) => po(t, "."));
    }
    function VUe(e, t, r, i, o, s) {
      var l, u;
      const d = To(
          r,
          (u = (l = i.host).getCurrentDirectory) == null ? void 0 : u.call(l),
        ),
        _ = oP(d, i);
      if (
        !_ ||
        !_.contents.packageJsonContent.exports ||
        typeof _.contents.packageJsonContent.name != "string"
      )
        return;
      const h = zd(t),
        g = zd(_.contents.packageJsonContent.name);
      if (!Vn(g, (P, k) => h[k] === P)) return;
      const E = h.slice(g.length),
        A = et(E) ? `.${Js}${E.join(Js)}` : ".";
      if (xb(i.compilerOptions) && !Wb(r)) return IU(_, e, A, i, o, s);
      const R = e & 5,
        N = e & -6;
      return IU(_, R, A, i, o, s) || IU(_, N, A, i, o, s);
    }
    function IU(e, t, r, i, o, s) {
      if (e.contents.packageJsonContent.exports) {
        if (r === ".") {
          let l;
          if (
            (typeof e.contents.packageJsonContent.exports == "string" ||
            Array.isArray(e.contents.packageJsonContent.exports) ||
            (typeof e.contents.packageJsonContent.exports == "object" &&
              GUe(e.contents.packageJsonContent.exports))
              ? (l = e.contents.packageJsonContent.exports)
              : Rs(e.contents.packageJsonContent.exports, ".") &&
                (l = e.contents.packageJsonContent.exports["."]),
            l)
          )
            return p1e(t, i, o, s, r, e, !1)(l, "", !1, ".");
        } else if (a3(e.contents.packageJsonContent.exports)) {
          if (typeof e.contents.packageJsonContent.exports != "object")
            return (
              i.traceEnabled &&
                xo(
                  i.host,
                  f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,
                  r,
                  e.packageDirectory,
                ),
              hf(void 0)
            );
          const l = u1e(
            t,
            i,
            o,
            s,
            r,
            e.contents.packageJsonContent.exports,
            e,
            !1,
          );
          if (l) return l;
        }
        return (
          i.traceEnabled &&
            xo(
              i.host,
              f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,
              r,
              e.packageDirectory,
            ),
          hf(void 0)
        );
      }
    }
    function jUe(e, t, r, i, o, s) {
      var l, u;
      if (t === "#" || po(t, "#/"))
        return (
          i.traceEnabled &&
            xo(
              i.host,
              f.Invalid_import_specifier_0_has_no_possible_resolutions,
              t,
            ),
          hf(void 0)
        );
      const d = To(
          r,
          (u = (l = i.host).getCurrentDirectory) == null ? void 0 : u.call(l),
        ),
        _ = oP(d, i);
      if (!_)
        return (
          i.traceEnabled &&
            xo(
              i.host,
              f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,
              d,
            ),
          hf(void 0)
        );
      if (!_.contents.packageJsonContent.imports)
        return (
          i.traceEnabled &&
            xo(
              i.host,
              f.package_json_scope_0_has_no_imports_defined,
              _.packageDirectory,
            ),
          hf(void 0)
        );
      const h = u1e(
        e,
        i,
        o,
        s,
        t,
        _.contents.packageJsonContent.imports,
        _,
        !0,
      );
      return (
        h ||
        (i.traceEnabled &&
          xo(
            i.host,
            f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,
            t,
            _.packageDirectory,
          ),
        hf(void 0))
      );
    }
    function xU(e, t) {
      const r = e.indexOf("*"),
        i = t.indexOf("*"),
        o = r === -1 ? e.length : r + 1,
        s = i === -1 ? t.length : i + 1;
      return o > s
        ? -1
        : s > o || r === -1
          ? 1
          : i === -1 || e.length > t.length
            ? -1
            : t.length > e.length
              ? 1
              : 0;
    }
    function u1e(e, t, r, i, o, s, l, u) {
      const d = p1e(e, t, r, i, o, l, u);
      if (!el(o, Js) && !o.includes("*") && Rs(s, o)) {
        const g = s[o];
        return d(g, "", !1, o);
      }
      const _ = xp(
        Un(Wh(s), (g) => UUe(g) || el(g, "/")),
        xU,
      );
      for (const g of _)
        if (t.features & 16 && h(g, o)) {
          const E = s[g],
            A = g.indexOf("*"),
            R = o.substring(
              g.substring(0, A).length,
              o.length - (g.length - 1 - A),
            );
          return d(E, R, !0, g);
        } else if (el(g, "*") && po(o, g.substring(0, g.length - 1))) {
          const E = s[g],
            A = o.substring(g.length - 1);
          return d(E, A, !0, g);
        } else if (po(o, g)) {
          const E = s[g],
            A = o.substring(g.length);
          return d(E, A, !1, g);
        }
      function h(g, E) {
        if (el(g, "*")) return !1;
        const A = g.indexOf("*");
        return A === -1
          ? !1
          : po(E, g.substring(0, A)) && el(E, g.substring(A + 1));
      }
    }
    function UUe(e) {
      const t = e.indexOf("*");
      return t !== -1 && t === e.lastIndexOf("*");
    }
    function p1e(e, t, r, i, o, s, l) {
      return u;
      function u(d, _, h, g) {
        var E, A;
        if (typeof d == "string") {
          if (!h && _.length > 0 && !el(d, "/"))
            return (
              t.traceEnabled &&
                xo(
                  t.host,
                  f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,
                  s.packageDirectory,
                  o,
                ),
              hf(void 0)
            );
          if (!po(d, "./")) {
            if (l && !po(d, "../") && !po(d, "/") && !Cp(d)) {
              const Z = h ? d.replace(/\*/g, _) : d + _;
              (Fb(t, f.Using_0_subpath_1_with_target_2, "imports", g, Z),
                Fb(
                  t,
                  f.Resolving_module_0_from_1,
                  Z,
                  s.packageDirectory + "/",
                ));
              const q = zw(
                t.features,
                Z,
                s.packageDirectory + "/",
                t.compilerOptions,
                t.host,
                r,
                e,
                !1,
                i,
                t.conditions,
              );
              return (
                (E = t.failedLookupLocations) == null ||
                  E.push(...(q.failedLookupLocations ?? ae)),
                (A = t.affectingLocations) == null ||
                  A.push(...(q.affectingLocations ?? ae)),
                hf(
                  q.resolvedModule
                    ? {
                        path: q.resolvedModule.resolvedFileName,
                        extension: q.resolvedModule.extension,
                        packageId: q.resolvedModule.packageId,
                        originalPath: q.resolvedModule.originalPath,
                        resolvedUsingTsExtension:
                          q.resolvedModule.resolvedUsingTsExtension,
                      }
                    : void 0,
                )
              );
            }
            return (
              t.traceEnabled &&
                xo(
                  t.host,
                  f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,
                  s.packageDirectory,
                  o,
                ),
              hf(void 0)
            );
          }
          const W = (Zp(d) ? zd(d).slice(1) : zd(d)).slice(1);
          if (W.includes("..") || W.includes(".") || W.includes("node_modules"))
            return (
              t.traceEnabled &&
                xo(
                  t.host,
                  f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,
                  s.packageDirectory,
                  o,
                ),
              hf(void 0)
            );
          const O = Qr(s.packageDirectory, d),
            G = zd(_);
          if (G.includes("..") || G.includes(".") || G.includes("node_modules"))
            return (
              t.traceEnabled &&
                xo(
                  t.host,
                  f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,
                  s.packageDirectory,
                  o,
                ),
              hf(void 0)
            );
          t.traceEnabled &&
            xo(
              t.host,
              f.Using_0_subpath_1_with_target_2,
              l ? "imports" : "exports",
              g,
              h ? d.replace(/\*/g, _) : d + _,
            );
          const j = R(h ? O.replace(/\*/g, _) : O + _),
            J = P(j, _, Qr(s.packageDirectory, "package.json"), l);
          return J || hf(ox(s, TU(e, j, d, !1, t), t));
        } else if (typeof d == "object" && d !== null)
          if (Array.isArray(d)) {
            if (!et(d))
              return (
                t.traceEnabled &&
                  xo(
                    t.host,
                    f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,
                    s.packageDirectory,
                    o,
                  ),
                hf(void 0)
              );
            for (const k of d) {
              const W = u(k, _, h, g);
              if (W) return W;
            }
          } else {
            Fb(t, f.Entering_conditional_exports);
            for (const k of Wh(d))
              if (
                k === "default" ||
                t.conditions.includes(k) ||
                Gw(t.conditions, k)
              ) {
                Fb(t, f.Matched_0_condition_1, l ? "imports" : "exports", k);
                const W = d[k],
                  O = u(W, _, h, g);
                if (O)
                  return (
                    Fb(t, f.Resolved_under_condition_0, k),
                    Fb(t, f.Exiting_conditional_exports),
                    O
                  );
                Fb(t, f.Failed_to_resolve_under_condition_0, k);
              } else Fb(t, f.Saw_non_matching_condition_0, k);
            Fb(t, f.Exiting_conditional_exports);
            return;
          }
        else if (d === null)
          return (
            t.traceEnabled &&
              xo(
                t.host,
                f.package_json_scope_0_explicitly_maps_specifier_1_to_null,
                s.packageDirectory,
                o,
              ),
            hf(void 0)
          );
        return (
          t.traceEnabled &&
            xo(
              t.host,
              f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,
              s.packageDirectory,
              o,
            ),
          hf(void 0)
        );
        function R(k) {
          var W, O;
          return k === void 0
            ? k
            : To(
                k,
                (O = (W = t.host).getCurrentDirectory) == null
                  ? void 0
                  : O.call(W),
              );
        }
        function N(k, W) {
          return Uc(Qr(k, W));
        }
        function P(k, W, O, G) {
          var j, J, Z, q;
          if (
            !t.isConfigLookup &&
            (t.compilerOptions.declarationDir || t.compilerOptions.outDir) &&
            !k.includes("/node_modules/") &&
            (!t.compilerOptions.configFile ||
              um(
                s.packageDirectory,
                R(t.compilerOptions.configFile.fileName),
                !RU(t),
              ))
          ) {
            const ie = ay({ useCaseSensitiveFileNames: () => RU(t) }),
              K = [];
            if (
              t.compilerOptions.rootDir ||
              (t.compilerOptions.composite && t.compilerOptions.configFilePath)
            ) {
              const pe = R(
                gP(
                  t.compilerOptions,
                  () => [],
                  ((J = (j = t.host).getCurrentDirectory) == null
                    ? void 0
                    : J.call(j)) || "",
                  ie,
                ),
              );
              K.push(pe);
            } else if (t.requestContainingDirectory) {
              const pe = R(Qr(t.requestContainingDirectory, "index.ts")),
                de = R(
                  gP(
                    t.compilerOptions,
                    () => [pe, R(O)],
                    ((q = (Z = t.host).getCurrentDirectory) == null
                      ? void 0
                      : q.call(Z)) || "",
                    ie,
                  ),
                );
              K.push(de);
              let fe = Uc(de);
              for (; fe && fe.length > 1; ) {
                const ve = zd(fe);
                ve.pop();
                const xe = MT(ve);
                (K.unshift(xe), (fe = Uc(xe)));
              }
            }
            K.length > 1 &&
              t.reportDiagnostic(
                Il(
                  G
                    ? f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate
                    : f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,
                  W === "" ? "." : W,
                  O,
                ),
              );
            for (const pe of K) {
              const de = ye(pe);
              for (const fe of de)
                if (um(fe, k, !RU(t))) {
                  const ve = k.slice(fe.length + 1),
                    xe = Qr(pe, ve),
                    X = [
                      ".mjs",
                      ".cjs",
                      ".js",
                      ".json",
                      ".d.mts",
                      ".d.cts",
                      ".d.ts",
                    ];
                  for (const Ce of X)
                    if (El(xe, Ce)) {
                      const Je = iV(xe);
                      for (const Se of Je) {
                        if (!d1e(e, Se)) continue;
                        const re = E2(xe, Se, Ce, !RU(t));
                        if (t.host.fileExists(re))
                          return hf(ox(s, TU(e, re, void 0, !1, t), t));
                      }
                    }
                }
            }
          }
          return;
          function ye(ie) {
            var K, pe;
            const de = t.compilerOptions.configFile
                ? ((pe = (K = t.host).getCurrentDirectory) == null
                    ? void 0
                    : pe.call(K)) || ""
                : ie,
              fe = [];
            return (
              t.compilerOptions.declarationDir &&
                fe.push(R(N(de, t.compilerOptions.declarationDir))),
              t.compilerOptions.outDir &&
                t.compilerOptions.outDir !== t.compilerOptions.declarationDir &&
                fe.push(R(N(de, t.compilerOptions.outDir))),
              fe
            );
          }
        }
      }
    }
    function Gw(e, t) {
      if (!e.includes("types") || !po(t, "types@")) return !1;
      const r = q8.tryParse(t.substring(6));
      return r ? r.test(Le) : !1;
    }
    function f1e(e, t, r, i, o, s) {
      return m1e(e, t, r, i, !1, o, s);
    }
    function HUe(e, t, r) {
      return m1e(4, e, t, r, !0, void 0, void 0);
    }
    function m1e(e, t, r, i, o, s, l) {
      const u =
          i.features === 0
            ? void 0
            : i.features & 32 || i.conditions.includes("import")
              ? 99
              : 1,
        d = e & 5,
        _ = e & -6;
      if (d) {
        Fb(
          i,
          f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,
          Z4(d),
        );
        const g = h(d);
        if (g) return g;
      }
      if (_ && !o)
        return (
          Fb(
            i,
            f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,
            Z4(_),
          ),
          h(_)
        );
      function h(g) {
        return W_(i.host, Bd(r), (E) => {
          if (Ic(E) !== "node_modules") {
            const A = y1e(s, t, u, E, l, i);
            return A || hf(h1e(g, t, E, i, o, s, l));
          }
        });
      }
    }
    function W_(e, t, r) {
      var i;
      const o =
        (i = e?.getGlobalTypingsCacheLocation) == null ? void 0 : i.call(e);
      return (
        AN(t, (s) => {
          const l = r(s);
          if (l !== void 0) return l;
          if (s === o) return !1;
        }) || void 0
      );
    }
    function h1e(e, t, r, i, o, s, l) {
      const u = Qr(r, "node_modules"),
        d = ch(u, i.host);
      if (
        (!d &&
          i.traceEnabled &&
          xo(
            i.host,
            f.Directory_0_does_not_exist_skipping_all_lookups_in_it,
            u,
          ),
        !o)
      ) {
        const _ = _1e(e, t, u, d, i, s, l);
        if (_) return _;
      }
      if (e & 4) {
        const _ = Qr(u, "@types");
        let h = d;
        return (
          d &&
            !ch(_, i.host) &&
            (i.traceEnabled &&
              xo(
                i.host,
                f.Directory_0_does_not_exist_skipping_all_lookups_in_it,
                _,
              ),
            (h = !1)),
          _1e(4, g1e(t, i), _, h, i, s, l)
        );
      }
    }
    function _1e(e, t, r, i, o, s, l) {
      var u, d;
      const _ = ya(Qr(r, t)),
        { packageName: h, rest: g } = o3(t),
        E = Qr(r, h);
      let A,
        R = P1(_, !i, o);
      if (
        g !== "" &&
        R &&
        (!(o.features & 8) ||
          !Rs(
            ((u = A = P1(E, !i, o)) == null
              ? void 0
              : u.contents.packageJsonContent) ?? ae,
            "exports",
          ))
      ) {
        const k = BD(e, _, !i, o);
        if (k) return hU(k);
        const W = AU(e, _, !i, o, R);
        return ox(R, W, o);
      }
      const N = (k, W, O, G) => {
        let j =
          ((g || !(G.features & 32)) && BD(k, W, O, G)) || AU(k, W, O, G, R);
        return (
          !j &&
            !g &&
            R &&
            (R.contents.packageJsonContent.exports === void 0 ||
              R.contents.packageJsonContent.exports === null) &&
            G.features & 32 &&
            (j = BD(k, Qr(W, "index.js"), O, G)),
          ox(R, j, G)
        );
      };
      if (
        (g !== "" && (R = A ?? P1(E, !i, o)),
        R && (o.resolvedPackageDirectory = !0),
        R && R.contents.packageJsonContent.exports && o.features & 8)
      )
        return (d = IU(R, e, Qr(".", g), o, s, l)) == null ? void 0 : d.value;
      const P = g !== "" && R ? c1e(R, o) : void 0;
      if (P) {
        o.traceEnabled &&
          xo(
            o.host,
            f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,
            P.version,
            Le,
            g,
          );
        const k = i && ch(E, o.host),
          W = ew(P.paths),
          O = Xoe(e, g, E, P.paths, W, N, !k, o);
        if (O) return O.value;
      }
      return N(e, _, !i, o);
    }
    function Xoe(e, t, r, i, o, s, l, u) {
      const d = BV(o, t);
      if (d) {
        const _ = Bo(d) ? void 0 : tZ(d, t),
          h = Bo(d) ? d : eZ(d);
        return (
          u.traceEnabled && xo(u.host, f.Module_name_0_matched_pattern_1, t, h),
          {
            value: Ye(i[h], (E) => {
              const A = _ ? m1(E, _) : E,
                R = ya(Qr(r, A));
              u.traceEnabled &&
                xo(
                  u.host,
                  f.Trying_substitution_0_candidate_module_location_Colon_1,
                  E,
                  A,
                );
              const N = Sg(E);
              if (N !== void 0) {
                const P = SU(R, l, u);
                if (P !== void 0)
                  return hU({
                    path: P,
                    ext: N,
                    resolvedUsingTsExtension: void 0,
                  });
              }
              return s(e, R, l || !ch(ci(R), u.host), u);
            }),
          }
        );
      }
    }
    var Yoe = "__";
    function g1e(e, t) {
      const r = GD(e);
      return (
        t.traceEnabled &&
          r !== e &&
          xo(t.host, f.Scoped_package_detected_looking_in_0, r),
        r
      );
    }
    function s3(e) {
      return `@types/${GD(e)}`;
    }
    function GD(e) {
      if (po(e, "@")) {
        const t = e.replace(Js, Yoe);
        if (t !== e) return t.slice(1);
      }
      return e;
    }
    function aP(e) {
      const t = hN(e, "@types/");
      return t !== e ? Vw(t) : e;
    }
    function Vw(e) {
      return e.includes(Yoe) ? "@" + e.replace(Yoe, Js) : e;
    }
    function y1e(e, t, r, i, o, s) {
      const l = e && e.getFromNonRelativeNameCache(t, r, i, o);
      if (l)
        return (
          s.traceEnabled &&
            xo(
              s.host,
              f.Resolution_for_module_0_was_found_in_cache_from_location_1,
              t,
              i,
            ),
          (s.resultFromCache = l),
          {
            value: l.resolvedModule && {
              path: l.resolvedModule.resolvedFileName,
              originalPath: l.resolvedModule.originalPath || !0,
              extension: l.resolvedModule.extension,
              packageId: l.resolvedModule.packageId,
              resolvedUsingTsExtension:
                l.resolvedModule.resolvedUsingTsExtension,
            },
          }
        );
    }
    function $oe(e, t, r, i, o, s) {
      const l = wb(r, i),
        u = [],
        d = [],
        _ = ci(t),
        h = [],
        g = {
          compilerOptions: r,
          host: i,
          traceEnabled: l,
          failedLookupLocations: u,
          affectingLocations: d,
          packageJsonInfoCache: o,
          features: 0,
          conditions: [],
          requestContainingDirectory: _,
          reportDiagnostic: (R) => void h.push(R),
          isConfigLookup: !1,
          candidateIsFromPackageJsonField: !1,
          resolvedPackageDirectory: !1,
        },
        E = A(5) || A(2 | (r.resolveJsonModule ? 8 : 0));
      return HEe(e, E && E.value, E?.value && Wb(E.value.path), u, d, h, g, o);
      function A(R) {
        const N = e1e(R, e, _, Joe, g);
        if (N) return { value: N };
        if (td(e)) {
          const P = ya(Qr(_, e));
          return hf(Joe(R, P, !1, g));
        } else {
          const P = W_(g.host, _, (k) => {
            const W = y1e(o, e, void 0, k, s, g);
            if (W) return W;
            const O = ya(Qr(k, e));
            return hf(Joe(R, O, !1, g));
          });
          if (P) return P;
          if (R & 5) {
            let k = HUe(e, _, g);
            return (R & 4 && (k ?? (k = v1e(e, g))), k);
          }
        }
      }
    }
    function v1e(e, t) {
      if (t.compilerOptions.typeRoots)
        for (const r of t.compilerOptions.typeRoots) {
          const i = XEe(r, e, t),
            o = ch(r, t.host);
          !o &&
            t.traceEnabled &&
            xo(
              t.host,
              f.Directory_0_does_not_exist_skipping_all_lookups_in_it,
              r,
            );
          const s = BD(4, i, !o, t);
          if (s) {
            const u = Bw(s.path),
              d = u ? P1(u, !1, t) : void 0;
            return hf(ox(d, s, t));
          }
          const l = Koe(4, i, !o, t);
          if (l) return hf(l);
        }
    }
    function VD(e, t) {
      return lre(e) || (!!t && ad(t));
    }
    function Qoe(e, t, r, i, o, s) {
      const l = wb(r, i);
      l &&
        xo(
          i,
          f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,
          t,
          e,
          o,
        );
      const u = [],
        d = [],
        _ = [],
        h = {
          compilerOptions: r,
          host: i,
          traceEnabled: l,
          failedLookupLocations: u,
          affectingLocations: d,
          packageJsonInfoCache: s,
          features: 0,
          conditions: [],
          requestContainingDirectory: void 0,
          reportDiagnostic: (E) => void _.push(E),
          isConfigLookup: !1,
          candidateIsFromPackageJsonField: !1,
          resolvedPackageDirectory: !1,
        },
        g = h1e(4, e, o, h, !1, void 0, void 0);
      return qEe(g, !0, u, d, _, h.resultFromCache, void 0);
    }
    function hf(e) {
      return e !== void 0 ? { value: e } : void 0;
    }
    function Fb(e, t, ...r) {
      e.traceEnabled && xo(e.host, t, ...r);
    }
    function RU(e) {
      return e.host.useCaseSensitiveFileNames
        ? typeof e.host.useCaseSensitiveFileNames == "boolean"
          ? e.host.useCaseSensitiveFileNames
          : e.host.useCaseSensitiveFileNames()
        : !0;
    }
    var Zoe = ((e) => (
      (e[(e.NonInstantiated = 0)] = "NonInstantiated"),
      (e[(e.Instantiated = 1)] = "Instantiated"),
      (e[(e.ConstEnumOnly = 2)] = "ConstEnumOnly"),
      e
    ))(Zoe || {});
    function my(e, t) {
      return (
        e.body && !e.body.parent && (ps(e.body, e), qT(e.body, !1)),
        e.body ? eae(e.body, t) : 1
      );
    }
    function eae(e, t = new Map()) {
      const r = ls(e);
      if (t.has(r)) return t.get(r) || 0;
      t.set(r, void 0);
      const i = qUe(e, t);
      return (t.set(r, i), i);
    }
    function qUe(e, t) {
      switch (e.kind) {
        case 265:
        case 266:
          return 0;
        case 267:
          if (OT(e)) return 2;
          break;
        case 273:
        case 272:
          if (!di(e, 32)) return 0;
          break;
        case 279:
          const r = e;
          if (
            !r.moduleSpecifier &&
            r.exportClause &&
            r.exportClause.kind === 280
          ) {
            let i = 0;
            for (const o of r.exportClause.elements) {
              const s = JUe(o, t);
              if ((s > i && (i = s), i === 1)) return i;
            }
            return i;
          }
          break;
        case 269: {
          let i = 0;
          return (
            Jo(e, (o) => {
              const s = eae(o, t);
              switch (s) {
                case 0:
                  return;
                case 2:
                  i = 2;
                  return;
                case 1:
                  return ((i = 1), !0);
                default:
                  C.assertNever(s);
              }
            }),
            i
          );
        }
        case 268:
          return my(e, t);
        case 80:
          if (e.flags & 4096) return 0;
      }
      return 1;
    }
    function JUe(e, t) {
      const r = e.propertyName || e.name;
      if (r.kind !== 80) return 1;
      let i = e.parent;
      for (; i; ) {
        if (ea(i) || t_(i) || Yi(i)) {
          const o = i.statements;
          let s;
          for (const l of o)
            if (k2(l, r)) {
              l.parent || (ps(l, i), qT(l, !1));
              const u = eae(l, t);
              if (((s === void 0 || u > s) && (s = u), s === 1)) return s;
              l.kind === 272 && (s = 1);
            }
          if (s !== void 0) return s;
        }
        i = i.parent;
      }
      return 1;
    }
    var tae = ((e) => (
      (e[(e.None = 0)] = "None"),
      (e[(e.IsContainer = 1)] = "IsContainer"),
      (e[(e.IsBlockScopedContainer = 2)] = "IsBlockScopedContainer"),
      (e[(e.IsControlFlowContainer = 4)] = "IsControlFlowContainer"),
      (e[(e.IsFunctionLike = 8)] = "IsFunctionLike"),
      (e[(e.IsFunctionExpression = 16)] = "IsFunctionExpression"),
      (e[(e.HasLocals = 32)] = "HasLocals"),
      (e[(e.IsInterface = 64)] = "IsInterface"),
      (e[(e.IsObjectLiteralOrClassExpressionMethodOrAccessor = 128)] =
        "IsObjectLiteralOrClassExpressionMethodOrAccessor"),
      e
    ))(tae || {});
    function F_(e, t, r) {
      return C.attachFlowNodeDebugInfo({
        flags: e,
        id: 0,
        node: t,
        antecedent: r,
      });
    }
    var KUe = XUe();
    function nae(e, t) {
      (Rl("beforeBind"),
        KUe(e, t),
        Rl("afterBind"),
        wf("Bind", "beforeBind", "afterBind"));
    }
    function XUe() {
      var e,
        t,
        r,
        i,
        o,
        s,
        l,
        u,
        d,
        _,
        h,
        g,
        E,
        A,
        R,
        N,
        P,
        k,
        W,
        O,
        G,
        j,
        J,
        Z,
        q,
        ye = !1,
        ie = 0,
        K,
        pe,
        de = F_(1, void 0, void 0),
        fe = F_(1, void 0, void 0),
        ve = B();
      return X;
      function xe(z, Ve, ...kt) {
        return Wf(Wn(z) || e, z, Ve, ...kt);
      }
      function X(z, Ve) {
        var kt, On;
        ((e = z),
          (t = Ve),
          (r = Ga(t)),
          (q = Ce(e, Ve)),
          (pe = new Set()),
          (ie = 0),
          (K = Rd.getSymbolConstructor()),
          C.attachFlowNodeDebugInfo(de),
          C.attachFlowNodeDebugInfo(fe),
          e.locals ||
            ((kt = xr) == null ||
              kt.push(xr.Phase.Bind, "bindSourceFile", { path: e.path }, !0),
            Fn(e),
            (On = xr) == null || On.pop(),
            (e.symbolCount = ie),
            (e.classifiableNames = pe),
            $s(),
            Ra()),
          (e = void 0),
          (t = void 0),
          (r = void 0),
          (i = void 0),
          (o = void 0),
          (s = void 0),
          (l = void 0),
          (u = void 0),
          (d = void 0),
          (h = void 0),
          (_ = !1),
          (g = void 0),
          (E = void 0),
          (A = void 0),
          (R = void 0),
          (N = void 0),
          (P = void 0),
          (k = void 0),
          (O = void 0),
          (G = !1),
          (j = !1),
          (J = !1),
          (ye = !1),
          (Z = 0));
      }
      function Ce(z, Ve) {
        return Vd(Ve, "alwaysStrict") && !z.isDeclarationFile
          ? !0
          : !!z.externalModuleIndicator;
      }
      function Je(z, Ve) {
        return (ie++, new K(z, Ve));
      }
      function Se(z, Ve, kt) {
        ((z.flags |= kt),
          (Ve.symbol = z),
          (z.declarations = $g(z.declarations, Ve)),
          kt & 1955 && !z.exports && (z.exports = da()),
          kt & 6240 && !z.members && (z.members = da()),
          z.constEnumOnlyModule &&
            z.flags & 304 &&
            (z.constEnumOnlyModule = !1),
          kt & 111551 && ZN(z, Ve));
      }
      function re(z) {
        if (z.kind === 278) return z.isExportEquals ? "export=" : "default";
        const Ve = Oo(z);
        if (Ve) {
          if (yu(z)) {
            const kt = zf(Ve);
            return M_(z) ? "__global" : `"${kt}"`;
          }
          if (Ve.kind === 168) {
            const kt = Ve.expression;
            if (uf(kt)) return Cl(kt.text);
            if (d6(kt)) return _a(kt.operator) + kt.operand.text;
            C.fail(
              "Only computed properties with literal names have declaration names",
            );
          }
          if (eo(Ve)) {
            const kt = hd(z);
            if (!kt) return;
            const On = kt.symbol;
            return Ck(On, Ve.escapedText);
          }
          return fh(Ve) ? OI(Ve) : qh(Ve) ? aM(Ve) : void 0;
        }
        switch (z.kind) {
          case 177:
            return "__constructor";
          case 185:
          case 180:
          case 324:
            return "__call";
          case 186:
          case 181:
            return "__new";
          case 182:
            return "__index";
          case 279:
            return "__export";
          case 308:
            return "export=";
          case 227:
            if (oc(z) === 2) return "export=";
            C.fail("Unknown binary declaration kind");
            break;
          case 318:
            return bI(z) ? "__new" : "__call";
          case 170:
            return (
              C.assert(
                z.parent.kind === 318,
                "Impossible parameter parent kind",
                () =>
                  `parent is: ${C.formatSyntaxKind(z.parent.kind)}, expected JSDocFunctionType`,
              ),
              "arg" + z.parent.parameters.indexOf(z)
            );
        }
      }
      function be(z) {
        return nd(z) ? ws(z.name) : Gi(C.checkDefined(re(z)));
      }
      function Ne(z, Ve, kt, On, yo, ta, Eo) {
        C.assert(Eo || !oy(kt));
        const Vo = di(kt, 2048) || (ou(kt) && N_(kt.name)),
          ml = Eo ? "__computed" : Vo && Ve ? "default" : re(kt);
        let Ca;
        if (ml === void 0) Ca = Je(0, "__missing");
        else if (((Ca = z.get(ml)), On & 2885600 && pe.add(ml), !Ca))
          (z.set(ml, (Ca = Je(0, ml))), ta && (Ca.isReplaceableByMethod = !0));
        else {
          if (ta && !Ca.isReplaceableByMethod) return Ca;
          if (Ca.flags & yo) {
            if (Ca.isReplaceableByMethod) z.set(ml, (Ca = Je(0, ml)));
            else if (!(On & 3 && Ca.flags & 67108864)) {
              nd(kt) && ps(kt.name, kt);
              let cd =
                  Ca.flags & 2
                    ? f.Cannot_redeclare_block_scoped_variable_0
                    : f.Duplicate_identifier_0,
                Up = !0;
              (Ca.flags & 384 || On & 384) &&
                ((cd =
                  f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations),
                (Up = !1));
              let Sf = !1;
              et(Ca.declarations) &&
                (Vo ||
                  (Ca.declarations &&
                    Ca.declarations.length &&
                    kt.kind === 278 &&
                    !kt.isExportEquals)) &&
                ((cd = f.A_module_cannot_have_multiple_default_exports),
                (Up = !1),
                (Sf = !0));
              const Yf = [];
              vm(kt) &&
                Ol(kt.type) &&
                di(kt, 32) &&
                Ca.flags & 2887656 &&
                Yf.push(
                  xe(
                    kt,
                    f.Did_you_mean_0,
                    `export type { ${Gi(kt.name.escapedText)} }`,
                  ),
                );
              const Ty = Oo(kt) || kt;
              Ye(Ca.declarations, (Bu, V_) => {
                const Th = Oo(Bu) || Bu,
                  Im = Up ? xe(Th, cd, be(Bu)) : xe(Th, cd);
                (e.bindDiagnostics.push(
                  Sf
                    ? pa(
                        Im,
                        xe(
                          Ty,
                          V_ === 0
                            ? f.Another_export_default_is_here
                            : f.and_here,
                        ),
                      )
                    : Im,
                ),
                  Sf && Yf.push(xe(Th, f.The_first_export_default_is_here)));
              });
              const Tv = Up ? xe(Ty, cd, be(kt)) : xe(Ty, cd);
              (e.bindDiagnostics.push(pa(Tv, ...Yf)), (Ca = Je(0, ml)));
            }
          }
        }
        return (
          Se(Ca, kt, On),
          Ca.parent
            ? C.assert(
                Ca.parent === Ve,
                "Existing symbol parent should match new one",
              )
            : (Ca.parent = Ve),
          Ca
        );
      }
      function Be(z, Ve, kt) {
        const On = !!(PT(z) & 32) || lt(z);
        if (Ve & 2097152)
          return z.kind === 282 || (z.kind === 272 && On)
            ? Ne(o.symbol.exports, o.symbol, z, Ve, kt)
            : (C.assertNode(o, D_), Ne(o.locals, void 0, z, Ve, kt));
        if ((hm(z) && C.assert(Ir(z)), !yu(z) && (On || o.flags & 128))) {
          if (!D_(o) || !o.locals || (di(z, 2048) && !re(z)))
            return Ne(o.symbol.exports, o.symbol, z, Ve, kt);
          const yo = Ve & 111551 ? 1048576 : 0,
            ta = Ne(o.locals, void 0, z, yo, kt);
          return (
            (ta.exportSymbol = Ne(o.symbol.exports, o.symbol, z, Ve, kt)),
            (z.localSymbol = ta),
            ta
          );
        } else return (C.assertNode(o, D_), Ne(o.locals, void 0, z, Ve, kt));
      }
      function lt(z) {
        if ((z.parent && uc(z) && (z = z.parent), !hm(z))) return !1;
        if (!vw(z) && z.fullName) return !0;
        const Ve = Oo(z);
        return Ve
          ? !!(
              (Fk(Ve.parent) && Xf(Ve.parent)) ||
              (rd(Ve.parent) && PT(Ve.parent) & 32)
            )
          : !1;
      }
      function ce(z, Ve) {
        const kt = o,
          On = s,
          yo = l,
          ta = j;
        if (
          (z.kind === 220 && z.body.kind !== 242 && (j = !0),
          Ve & 1
            ? (z.kind !== 220 && (s = o),
              (o = l = z),
              Ve & 32 && ((o.locals = da()), En(o)))
            : Ve & 2 && ((l = z), Ve & 32 && (l.locals = void 0)),
          Ve & 4)
        ) {
          const Eo = g,
            Vo = E,
            ml = A,
            Ca = R,
            cd = k,
            Up = O,
            Sf = G,
            Yf =
              (Ve & 16 && !di(z, 1024) && !z.asteriskToken && !!WT(z)) ||
              z.kind === 176;
          (Yf || ((g = F_(2, void 0, void 0)), Ve & 144 && (g.node = z)),
            (R =
              Yf ||
              z.kind === 177 ||
              (Ir(z) && (z.kind === 263 || z.kind === 219))
                ? en()
                : void 0),
            (k = void 0),
            (E = void 0),
            (A = void 0),
            (O = void 0),
            (G = !1),
            Ge(z),
            (z.flags &= -5633),
            !(g.flags & 1) &&
              Ve & 8 &&
              fm(z.body) &&
              ((z.flags |= 512), G && (z.flags |= 1024), (z.endFlowNode = g)),
            z.kind === 308 && ((z.flags |= Z), (z.endFlowNode = g)),
            R &&
              (zt(R, g),
              (g = Ci(R)),
              (z.kind === 177 ||
                z.kind === 176 ||
                (Ir(z) && (z.kind === 263 || z.kind === 219))) &&
                (z.returnFlowNode = g)),
            Yf || (g = Eo),
            (E = Vo),
            (A = ml),
            (R = Ca),
            (k = cd),
            (O = Up),
            (G = Sf));
        } else
          Ve & 64
            ? ((_ = !1),
              Ge(z),
              C.assertNotNode(z, He),
              (z.flags = _ ? z.flags | 256 : z.flags & -257))
            : Ge(z);
        ((j = ta), (o = kt), (s = On), (l = yo));
      }
      function Re(z) {
        (_e(z, (Ve) => (Ve.kind === 263 ? Fn(Ve) : void 0)),
          _e(z, (Ve) => (Ve.kind !== 263 ? Fn(Ve) : void 0)));
      }
      function _e(z, Ve = Fn) {
        z !== void 0 && Ye(z, Ve);
      }
      function je(z) {
        Jo(z, Fn, _e);
      }
      function Ge(z) {
        const Ve = ye;
        if (((ye = !1), $i(z))) {
          (eD(z) && z.flowNode && (z.flowNode = void 0),
            je(z),
            ro(z),
            (ye = Ve));
          return;
        }
        switch (
          (z.kind >= 244 &&
            z.kind <= 260 &&
            (!t.allowUnreachableCode || z.kind === 254) &&
            (z.flowNode = g),
          z.kind)
        ) {
          case 248:
            Ia(z);
            break;
          case 247:
            Mn(z);
            break;
          case 249:
            Uo(z);
            break;
          case 250:
          case 251:
            ot(z);
            break;
          case 246:
            Ft(z);
            break;
          case 254:
          case 258:
            le(z);
            break;
          case 253:
          case 252:
            Fe(z);
            break;
          case 259:
            it(z);
            break;
          case 256:
            dt(z);
            break;
          case 270:
            Lt(z);
            break;
          case 297:
            Ue(z);
            break;
          case 245:
            Rt(z);
            break;
          case 257:
            Ot(z);
            break;
          case 225:
            Oe(z);
            break;
          case 226:
            Nt(z);
            break;
          case 227:
            if (rv(z)) {
              ((ye = Ve), he(z));
              return;
            }
            ve(z);
            break;
          case 221:
            Ae(z);
            break;
          case 228:
            te(z);
            break;
          case 261:
            Xt(z);
            break;
          case 212:
          case 213:
            yn(z);
            break;
          case 214:
            wt(z);
            break;
          case 236:
            In(z);
            break;
          case 347:
          case 339:
          case 341:
            gr(z);
            break;
          case 352:
            Jn(z);
            break;
          case 308: {
            (Re(z.statements), Fn(z.endOfFileToken));
            break;
          }
          case 242:
          case 269:
            Re(z.statements);
            break;
          case 209:
            Pe(z);
            break;
          case 170:
            gt(z);
            break;
          case 211:
          case 210:
          case 304:
          case 231:
            ye = Ve;
          default:
            je(z);
            break;
        }
        (ro(z), (ye = Ve));
      }
      function We(z) {
        switch (z.kind) {
          case 80:
          case 110:
            return !0;
          case 212:
          case 213:
            return Wt(z);
          case 214:
            return cn(z);
          case 218:
            if (HS(z)) return !1;
          case 236:
            return We(z.expression);
          case 227:
            return Kn(z);
          case 225:
            return z.operator === 54 && We(z.operand);
          case 222:
            return We(z.expression);
        }
        return !1;
      }
      function at(z) {
        switch (z.kind) {
          case 80:
          case 110:
          case 108:
          case 237:
            return !0;
          case 212:
          case 218:
          case 236:
            return at(z.expression);
          case 213:
            return (
              (uf(z.argumentExpression) || Ds(z.argumentExpression)) &&
              at(z.expression)
            );
          case 227:
            return (
              (z.operatorToken.kind === 28 && at(z.right)) ||
              (sy(z.operatorToken.kind) && $u(z.left))
            );
        }
        return !1;
      }
      function Wt(z) {
        return at(z) || (tu(z) && Wt(z.expression));
      }
      function cn(z) {
        if (z.arguments) {
          for (const Ve of z.arguments) if (Wt(Ve)) return !0;
        }
        return !!(z.expression.kind === 212 && Wt(z.expression.expression));
      }
      function gn(z, Ve) {
        return TD(z) && _t(z.expression) && ds(Ve);
      }
      function Kn(z) {
        switch (z.operatorToken.kind) {
          case 64:
          case 76:
          case 77:
          case 78:
            return Wt(z.left);
          case 35:
          case 36:
          case 37:
          case 38:
            const Ve = us(z.left),
              kt = us(z.right);
            return (
              _t(Ve) ||
              _t(kt) ||
              gn(kt, Ve) ||
              gn(Ve, kt) ||
              (FN(kt) && We(Ve)) ||
              (FN(Ve) && We(kt))
            );
          case 104:
            return _t(z.left);
          case 103:
            return We(z.right);
          case 28:
            return We(z.right);
        }
        return !1;
      }
      function _t(z) {
        switch (z.kind) {
          case 218:
            return _t(z.expression);
          case 227:
            switch (z.operatorToken.kind) {
              case 64:
                return _t(z.left);
              case 28:
                return _t(z.right);
            }
        }
        return Wt(z);
      }
      function en() {
        return F_(4, void 0, void 0);
      }
      function ir() {
        return F_(8, void 0, void 0);
      }
      function Di(z, Ve, kt) {
        return F_(1024, { target: z, antecedents: Ve }, kt);
      }
      function lo(z) {
        z.flags |= z.flags & 2048 ? 4096 : 2048;
      }
      function zt(z, Ve) {
        !(Ve.flags & 1) &&
          !jn(z.antecedent, Ve) &&
          ((z.antecedent || (z.antecedent = [])).push(Ve), lo(Ve));
      }
      function Zr(z, Ve, kt) {
        return Ve.flags & 1
          ? Ve
          : kt
            ? ((kt.kind === 112 && z & 64) || (kt.kind === 97 && z & 32)) &&
              !hF(kt) &&
              !H9(kt.parent)
              ? de
              : We(kt)
                ? (lo(Ve), F_(z, kt, Ve))
                : Ve
            : z & 32
              ? Ve
              : de;
      }
      function Ai(z, Ve, kt, On) {
        return (
          lo(z),
          F_(128, { switchStatement: Ve, clauseStart: kt, clauseEnd: On }, z)
        );
      }
      function Ni(z, Ve, kt) {
        (lo(Ve), (J = !0));
        const On = F_(z, kt, Ve);
        return (k && zt(k, On), On);
      }
      function Pr(z, Ve) {
        return (lo(z), (J = !0), F_(512, Ve, z));
      }
      function Ci(z) {
        const Ve = z.antecedent;
        return Ve ? (Ve.length === 1 ? Ve[0] : z) : de;
      }
      function $e(z) {
        const Ve = z.parent;
        switch (Ve.kind) {
          case 246:
          case 248:
          case 247:
            return Ve.expression === z;
          case 249:
          case 228:
            return Ve.condition === z;
        }
        return !1;
      }
      function At(z) {
        for (;;)
          if (z.kind === 218) z = z.expression;
          else if (z.kind === 225 && z.operator === 54) z = z.operand;
          else return Ok(z);
      }
      function mn(z) {
        return pV(us(z));
      }
      function dr(z) {
        for (; Ou(z.parent) || (YT(z.parent) && z.parent.operator === 54); )
          z = z.parent;
        return (
          !$e(z) &&
          !At(z.parent) &&
          !(tu(z.parent) && z.parent.expression === z)
        );
      }
      function ri(z, Ve, kt, On) {
        const yo = N,
          ta = P;
        ((N = kt), (P = On), z(Ve), (N = yo), (P = ta));
      }
      function ai(z, Ve, kt) {
        (ri(Fn, z, Ve, kt),
          (!z || (!mn(z) && !At(z) && !(tu(z) && LN(z)))) &&
            (zt(Ve, Zr(32, g, z)), zt(kt, Zr(64, g, z))));
      }
      function qi(z, Ve, kt) {
        const On = E,
          yo = A;
        ((E = Ve), (A = kt), Fn(z), (E = On), (A = yo));
      }
      function $o(z, Ve) {
        let kt = O;
        for (; kt && z.parent.kind === 257; )
          ((kt.continueTarget = Ve), (kt = kt.next), (z = z.parent));
        return Ve;
      }
      function Ia(z) {
        const Ve = $o(z, ir()),
          kt = en(),
          On = en();
        (zt(Ve, g),
          (g = Ve),
          ai(z.expression, kt, On),
          (g = Ci(kt)),
          qi(z.statement, On, Ve),
          zt(Ve, g),
          (g = Ci(On)));
      }
      function Mn(z) {
        const Ve = ir(),
          kt = $o(z, en()),
          On = en();
        (zt(Ve, g),
          (g = Ve),
          qi(z.statement, On, kt),
          zt(kt, g),
          (g = Ci(kt)),
          ai(z.expression, Ve, On),
          (g = Ci(On)));
      }
      function Uo(z) {
        const Ve = $o(z, ir()),
          kt = en(),
          On = en(),
          yo = en();
        (Fn(z.initializer),
          zt(Ve, g),
          (g = Ve),
          ai(z.condition, kt, yo),
          (g = Ci(kt)),
          qi(z.statement, yo, On),
          zt(On, g),
          (g = Ci(On)),
          Fn(z.incrementor),
          zt(Ve, g),
          (g = Ci(yo)));
      }
      function ot(z) {
        const Ve = $o(z, ir()),
          kt = en();
        (Fn(z.expression),
          zt(Ve, g),
          (g = Ve),
          z.kind === 251 && Fn(z.awaitModifier),
          zt(kt, g),
          Fn(z.initializer),
          z.initializer.kind !== 262 && Kt(z.initializer),
          qi(z.statement, kt, Ve),
          zt(Ve, g),
          (g = Ci(kt)));
      }
      function Ft(z) {
        const Ve = en(),
          kt = en(),
          On = en();
        (ai(z.expression, Ve, kt),
          (g = Ci(Ve)),
          Fn(z.thenStatement),
          zt(On, g),
          (g = Ci(kt)),
          Fn(z.elseStatement),
          zt(On, g),
          (g = Ci(On)));
      }
      function le(z) {
        const Ve = j;
        ((j = !0),
          Fn(z.expression),
          (j = Ve),
          z.kind === 254 && ((G = !0), R && zt(R, g)),
          (g = de),
          (J = !0));
      }
      function ht(z) {
        for (let Ve = O; Ve; Ve = Ve.next) if (Ve.name === z) return Ve;
      }
      function ne(z, Ve, kt) {
        const On = z.kind === 253 ? Ve : kt;
        On && (zt(On, g), (g = de), (J = !0));
      }
      function Fe(z) {
        if ((Fn(z.label), z.label)) {
          const Ve = ht(z.label.escapedText);
          Ve &&
            ((Ve.referenced = !0), ne(z, Ve.breakTarget, Ve.continueTarget));
        } else ne(z, E, A);
      }
      function it(z) {
        const Ve = R,
          kt = k,
          On = en(),
          yo = en();
        let ta = en();
        if (
          (z.finallyBlock && (R = yo),
          zt(ta, g),
          (k = ta),
          Fn(z.tryBlock),
          zt(On, g),
          z.catchClause &&
            ((g = Ci(ta)),
            (ta = en()),
            zt(ta, g),
            (k = ta),
            Fn(z.catchClause),
            zt(On, g)),
          (R = Ve),
          (k = kt),
          z.finallyBlock)
        ) {
          const Eo = en();
          ((Eo.antecedent = so(
            so(On.antecedent, ta.antecedent),
            yo.antecedent,
          )),
            (g = Eo),
            Fn(z.finallyBlock),
            g.flags & 1
              ? (g = de)
              : (R && yo.antecedent && zt(R, Di(Eo, yo.antecedent, g)),
                k && ta.antecedent && zt(k, Di(Eo, ta.antecedent, g)),
                (g = On.antecedent ? Di(Eo, On.antecedent, g) : de)));
        } else g = Ci(On);
      }
      function dt(z) {
        const Ve = en();
        Fn(z.expression);
        const kt = E,
          On = W;
        ((E = Ve), (W = g), Fn(z.caseBlock), zt(Ve, g));
        const yo = Ye(z.caseBlock.clauses, (ta) => ta.kind === 298);
        ((z.possiblyExhaustive = !yo && !Ve.antecedent),
          yo || zt(Ve, Ai(W, z, 0, 0)),
          (E = kt),
          (W = On),
          (g = Ci(Ve)));
      }
      function Lt(z) {
        const Ve = z.clauses,
          kt = z.parent.expression.kind === 112 || We(z.parent.expression);
        let On = de;
        for (let yo = 0; yo < Ve.length; yo++) {
          const ta = yo;
          for (; !Ve[yo].statements.length && yo + 1 < Ve.length; )
            (On === de && (g = W), Fn(Ve[yo]), yo++);
          const Eo = en();
          (zt(Eo, kt ? Ai(W, z.parent, ta, yo + 1) : W),
            zt(Eo, On),
            (g = Ci(Eo)));
          const Vo = Ve[yo];
          (Fn(Vo),
            (On = g),
            !(g.flags & 1) &&
              yo !== Ve.length - 1 &&
              t.noFallthroughCasesInSwitch &&
              (Vo.fallthroughFlowNode = g));
        }
      }
      function Ue(z) {
        const Ve = g;
        ((g = W), Fn(z.expression), (g = Ve), _e(z.statements));
      }
      function Rt(z) {
        (Fn(z.expression), It(z.expression));
      }
      function It(z) {
        if (z.kind === 214) {
          const Ve = z;
          Ve.expression.kind !== 108 && Wk(Ve.expression) && (g = Pr(g, Ve));
        }
      }
      function Ot(z) {
        const Ve = en();
        ((O = {
          next: O,
          name: z.label.escapedText,
          breakTarget: Ve,
          continueTarget: void 0,
          referenced: !1,
        }),
          Fn(z.label),
          Fn(z.statement),
          !O.referenced &&
            !t.allowUnusedLabels &&
            ur(ure(t), z.label, f.Unused_label),
          (O = O.next),
          zt(Ve, g),
          (g = Ci(Ve)));
      }
      function nt(z) {
        z.kind === 227 && z.operatorToken.kind === 64 ? Kt(z.left) : Kt(z);
      }
      function Kt(z) {
        if (at(z)) g = Ni(16, g, z);
        else if (z.kind === 210)
          for (const Ve of z.elements)
            Ve.kind === 231 ? Kt(Ve.expression) : nt(Ve);
        else if (z.kind === 211)
          for (const Ve of z.properties)
            Ve.kind === 304
              ? nt(Ve.initializer)
              : Ve.kind === 305
                ? Kt(Ve.name)
                : Ve.kind === 306 && Kt(Ve.expression);
      }
      function Tr(z, Ve, kt) {
        const On = en();
        (z.operatorToken.kind === 56 || z.operatorToken.kind === 77
          ? ai(z.left, On, kt)
          : ai(z.left, Ve, On),
          (g = Ci(On)),
          Fn(z.operatorToken),
          pM(z.operatorToken.kind)
            ? (ri(Fn, z.right, Ve, kt),
              Kt(z.left),
              zt(Ve, Zr(32, g, z)),
              zt(kt, Zr(64, g, z)))
            : ai(z.right, Ve, kt));
      }
      function Oe(z) {
        if (z.operator === 54) {
          const Ve = N;
          ((N = P), (P = Ve), je(z), (P = N), (N = Ve));
        } else
          (je(z), (z.operator === 46 || z.operator === 47) && Kt(z.operand));
      }
      function Nt(z) {
        (je(z), (z.operator === 46 || z.operator === 47) && Kt(z.operand));
      }
      function he(z) {
        (ye
          ? ((ye = !1), Fn(z.operatorToken), Fn(z.right), (ye = !0), Fn(z.left))
          : ((ye = !0),
            Fn(z.left),
            (ye = !1),
            Fn(z.operatorToken),
            Fn(z.right)),
          Kt(z.left));
      }
      function B() {
        return k4(z, Ve, kt, On, yo, void 0);
        function z(Eo, Vo) {
          if (Vo) {
            (Vo.stackIndex++, ps(Eo, i));
            const Ca = q;
            Da(Eo);
            const cd = i;
            ((i = Eo),
              (Vo.skip = !1),
              (Vo.inStrictModeStack[Vo.stackIndex] = Ca),
              (Vo.parentStack[Vo.stackIndex] = cd));
          } else
            Vo = {
              stackIndex: 0,
              skip: !1,
              inStrictModeStack: [void 0],
              parentStack: [void 0],
            };
          const ml = Eo.operatorToken.kind;
          if (E6(ml) || pM(ml)) {
            if (dr(Eo)) {
              const Ca = en(),
                cd = g,
                Up = J;
              ((J = !1), Tr(Eo, Ca, Ca), (g = J ? Ci(Ca) : cd), J || (J = Up));
            } else Tr(Eo, N, P);
            Vo.skip = !0;
          }
          return Vo;
        }
        function Ve(Eo, Vo, ml) {
          if (!Vo.skip) {
            const Ca = ta(Eo);
            return (ml.operatorToken.kind === 28 && It(Eo), Ca);
          }
        }
        function kt(Eo, Vo, ml) {
          Vo.skip || Fn(Eo);
        }
        function On(Eo, Vo, ml) {
          if (!Vo.skip) {
            const Ca = ta(Eo);
            return (ml.operatorToken.kind === 28 && It(Eo), Ca);
          }
        }
        function yo(Eo, Vo) {
          if (!Vo.skip) {
            const cd = Eo.operatorToken.kind;
            if (
              sy(cd) &&
              !Tb(Eo) &&
              (Kt(Eo.left), cd === 64 && Eo.left.kind === 213)
            ) {
              const Up = Eo.left;
              _t(Up.expression) && (g = Ni(256, g, Eo));
            }
          }
          const ml = Vo.inStrictModeStack[Vo.stackIndex],
            Ca = Vo.parentStack[Vo.stackIndex];
          (ml !== void 0 && (q = ml),
            Ca !== void 0 && (i = Ca),
            (Vo.skip = !1),
            Vo.stackIndex--);
        }
        function ta(Eo) {
          if (Eo && Nr(Eo) && !rv(Eo)) return Eo;
          Fn(Eo);
        }
      }
      function Ae(z) {
        (je(z), z.expression.kind === 212 && Kt(z.expression));
      }
      function te(z) {
        const Ve = en(),
          kt = en(),
          On = en(),
          yo = g,
          ta = J;
        ((J = !1),
          ai(z.condition, Ve, kt),
          (g = Ci(Ve)),
          j && (z.flowNodeWhenTrue = g),
          Fn(z.questionToken),
          Fn(z.whenTrue),
          zt(On, g),
          (g = Ci(kt)),
          j && (z.flowNodeWhenFalse = g),
          Fn(z.colonToken),
          Fn(z.whenFalse),
          zt(On, g),
          (g = J ? Ci(On) : yo),
          J || (J = ta));
      }
      function xt(z) {
        const Ve = Jc(z) ? void 0 : z.name;
        if (Qo(Ve)) for (const kt of Ve.elements) xt(kt);
        else g = Ni(16, g, z);
      }
      function Xt(z) {
        (je(z), (z.initializer || QE(z.parent.parent)) && xt(z));
      }
      function Pe(z) {
        (Fn(z.dotDotDotToken),
          Fn(z.propertyName),
          Bt(z.initializer),
          Fn(z.name));
      }
      function gt(z) {
        (_e(z.modifiers),
          Fn(z.dotDotDotToken),
          Fn(z.questionToken),
          Fn(z.type),
          Bt(z.initializer),
          Fn(z.name));
      }
      function Bt(z) {
        if (!z) return;
        const Ve = g;
        if ((Fn(z), Ve === de || Ve === g)) return;
        const kt = en();
        (zt(kt, Ve), zt(kt, g), (g = Ci(kt)));
      }
      function gr(z) {
        (Fn(z.tagName),
          z.kind !== 341 &&
            z.fullName &&
            (ps(z.fullName, z), qT(z.fullName, !1)),
          typeof z.comment != "string" && _e(z.comment));
      }
      function tr(z) {
        je(z);
        const Ve = BT(z);
        Ve && Ve.kind !== 175 && Se(Ve.symbol, Ve, 32);
      }
      function Jn(z) {
        (Fn(z.tagName),
          Fn(z.moduleSpecifier),
          Fn(z.attributes),
          typeof z.comment != "string" && _e(z.comment));
      }
      function ft(z, Ve, kt) {
        (ri(Fn, z, Ve, kt),
          (!tu(z) || LN(z)) && (zt(Ve, Zr(32, g, z)), zt(kt, Zr(64, g, z))));
      }
      function Mt(z) {
        switch (z.kind) {
          case 212:
            (Fn(z.questionDotToken), Fn(z.name));
            break;
          case 213:
            (Fn(z.questionDotToken), Fn(z.argumentExpression));
            break;
          case 214:
            (Fn(z.questionDotToken), _e(z.typeArguments), _e(z.arguments));
            break;
        }
      }
      function jt(z, Ve, kt) {
        const On = PN(z) ? en() : void 0;
        (ft(z.expression, On || Ve, kt),
          On && (g = Ci(On)),
          ri(Mt, z, Ve, kt),
          LN(z) && (zt(Ve, Zr(32, g, z)), zt(kt, Zr(64, g, z))));
      }
      function Qt(z) {
        if (dr(z)) {
          const Ve = en(),
            kt = g,
            On = J;
          (jt(z, Ve, Ve), (g = J ? Ci(Ve) : kt), J || (J = On));
        } else jt(z, N, P);
      }
      function In(z) {
        tu(z) ? Qt(z) : je(z);
      }
      function yn(z) {
        tu(z) ? Qt(z) : je(z);
      }
      function wt(z) {
        if (tu(z)) Qt(z);
        else {
          const Ve = us(z.expression);
          Ve.kind === 219 || Ve.kind === 220
            ? (_e(z.typeArguments), _e(z.arguments), Fn(z.expression))
            : (je(z), z.expression.kind === 108 && (g = Pr(g, z)));
        }
        if (z.expression.kind === 212) {
          const Ve = z.expression;
          He(Ve.name) &&
            _t(Ve.expression) &&
            KG(Ve.name) &&
            (g = Ni(256, g, z));
        }
      }
      function En(z) {
        (u && (u.nextContainer = z), (u = z));
      }
      function xn(z, Ve, kt) {
        switch (o.kind) {
          case 268:
            return Be(z, Ve, kt);
          case 308:
            return ln(z, Ve, kt);
          case 232:
          case 264:
            return Ln(z, Ve, kt);
          case 267:
            return Ne(o.symbol.exports, o.symbol, z, Ve, kt);
          case 188:
          case 323:
          case 211:
          case 265:
          case 293:
            return Ne(o.symbol.members, o.symbol, z, Ve, kt);
          case 185:
          case 186:
          case 180:
          case 181:
          case 324:
          case 182:
          case 175:
          case 174:
          case 177:
          case 178:
          case 179:
          case 263:
          case 219:
          case 220:
          case 318:
          case 176:
          case 266:
          case 201:
            return (
              o.locals && C.assertNode(o, D_),
              Ne(o.locals, void 0, z, Ve, kt)
            );
        }
      }
      function Ln(z, Ve, kt) {
        return ua(z)
          ? Ne(o.symbol.exports, o.symbol, z, Ve, kt)
          : Ne(o.symbol.members, o.symbol, z, Ve, kt);
      }
      function ln(z, Ve, kt) {
        return zc(e) ? Be(z, Ve, kt) : Ne(e.locals, void 0, z, Ve, kt);
      }
      function Ii(z) {
        const Ve = Yi(z) ? z : ni(z.body, t_);
        return !!Ve && Ve.statements.some((kt) => pc(kt) || ll(kt));
      }
      function ra(z) {
        z.flags & 33554432 && !Ii(z) ? (z.flags |= 128) : (z.flags &= -129);
      }
      function sa(z) {
        if ((ra(z), yu(z)))
          if (
            (di(z, 32) &&
              fn(
                z,
                f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible,
              ),
            yG(z))
          )
            zo(z);
          else {
            let Ve;
            if (z.name.kind === 11) {
              const { text: On } = z.name;
              ((Ve = LI(On)),
                Ve === void 0 &&
                  fn(
                    z.name,
                    f.Pattern_0_can_have_at_most_one_Asterisk_character,
                    On,
                  ));
            }
            const kt = xn(z, 512, 110735);
            e.patternAmbientModules = Bn(
              e.patternAmbientModules,
              Ve && !Bo(Ve) ? { pattern: Ve, symbol: kt } : void 0,
            );
          }
        else {
          const Ve = zo(z);
          if (Ve !== 0) {
            const { symbol: kt } = z;
            kt.constEnumOnlyModule =
              !(kt.flags & 304) && Ve === 2 && kt.constEnumOnlyModule !== !1;
          }
        }
      }
      function zo(z) {
        const Ve = my(z),
          kt = Ve !== 0;
        return (xn(z, kt ? 512 : 1024, kt ? 110735 : 0), Ve);
      }
      function Bl(z) {
        const Ve = Je(131072, re(z));
        Se(Ve, z, 131072);
        const kt = Je(2048, "__type");
        (Se(kt, z, 2048),
          (kt.members = da()),
          kt.members.set(Ve.escapedName, Ve));
      }
      function xl(z) {
        return Go(z, 4096, "__object");
      }
      function Ps(z) {
        return Go(z, 4096, "__jsxAttributes");
      }
      function co(z, Ve, kt) {
        return xn(z, Ve, kt);
      }
      function Go(z, Ve, kt) {
        const On = Je(Ve, kt);
        return (Ve & 106508 && (On.parent = o.symbol), Se(On, z, Ve), On);
      }
      function Tc(z, Ve, kt) {
        switch (l.kind) {
          case 268:
            Be(z, Ve, kt);
            break;
          case 308:
            if (Pp(o)) {
              Be(z, Ve, kt);
              break;
            }
          default:
            (C.assertNode(l, D_),
              l.locals || ((l.locals = da()), En(l)),
              Ne(l.locals, void 0, z, Ve, kt));
        }
      }
      function $s() {
        if (!d) return;
        const z = o,
          Ve = u,
          kt = l,
          On = i,
          yo = g;
        for (const ta of d) {
          const Eo = ta.parent.parent;
          ((o = zF(Eo) || e),
            (l = sh(Eo) || e),
            (g = F_(2, void 0, void 0)),
            (i = ta),
            Fn(ta.typeExpression));
          const Vo = Oo(ta);
          if ((vw(ta) || !ta.fullName) && Vo && Fk(Vo.parent)) {
            const ml = Xf(Vo.parent);
            if (ml) {
              jp(
                e.symbol,
                Vo.parent,
                ml,
                !!Dn(Vo, (cd) => qr(cd) && cd.name.escapedText === "prototype"),
                !1,
              );
              const Ca = o;
              switch (yk(Vo.parent)) {
                case 1:
                case 2:
                  Pp(e) ? (o = e) : (o = void 0);
                  break;
                case 4:
                  o = Vo.parent.expression;
                  break;
                case 3:
                  o = Vo.parent.expression.name;
                  break;
                case 5:
                  o = JS(e, Vo.parent.expression)
                    ? e
                    : qr(Vo.parent.expression)
                      ? Vo.parent.expression.name
                      : Vo.parent.expression;
                  break;
                case 0:
                  return C.fail(
                    "Shouldn't have detected typedef or enum on non-assignment declaration",
                  );
              }
              (o && Be(ta, 524288, 788968), (o = Ca));
            }
          } else
            vw(ta) || !ta.fullName || ta.fullName.kind === 80
              ? ((i = ta.parent), Tc(ta, 524288, 788968))
              : Fn(ta.fullName);
        }
        ((o = z), (u = Ve), (l = kt), (i = On), (g = yo));
      }
      function Ra() {
        if (h === void 0) return;
        const z = o,
          Ve = u,
          kt = l,
          On = i,
          yo = g;
        for (const ta of h) {
          const Eo = IS(ta),
            Vo = Eo ? zF(Eo) : void 0,
            ml = Eo ? sh(Eo) : void 0;
          ((o = Vo || e),
            (l = ml || e),
            (g = F_(2, void 0, void 0)),
            (i = ta),
            Fn(ta.importClause));
        }
        ((o = z), (u = Ve), (l = kt), (i = On), (g = yo));
      }
      function ec(z) {
        if (
          !e.parseDiagnostics.length &&
          !(z.flags & 33554432) &&
          !(z.flags & 16777216) &&
          !Tne(z)
        ) {
          const Ve = JE(z);
          if (Ve === void 0) return;
          q && Ve >= 119 && Ve <= 127
            ? e.bindDiagnostics.push(xe(z, bf(z), ws(z)))
            : Ve === 135
              ? zc(e) && XF(z)
                ? e.bindDiagnostics.push(
                    xe(
                      z,
                      f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,
                      ws(z),
                    ),
                  )
                : z.flags & 65536 &&
                  e.bindDiagnostics.push(
                    xe(
                      z,
                      f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,
                      ws(z),
                    ),
                  )
              : Ve === 127 &&
                z.flags & 16384 &&
                e.bindDiagnostics.push(
                  xe(
                    z,
                    f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,
                    ws(z),
                  ),
                );
        }
      }
      function bf(z) {
        return hd(z)
          ? f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode
          : e.externalModuleIndicator
            ? f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode
            : f.Identifier_expected_0_is_a_reserved_word_in_strict_mode;
      }
      function Lo(z) {
        z.escapedText === "#constructor" &&
          (e.parseDiagnostics.length ||
            e.bindDiagnostics.push(
              xe(z, f.constructor_is_a_reserved_word, ws(z)),
            ));
      }
      function fa(z) {
        q && $u(z.left) && sy(z.operatorToken.kind) && As(z, z.left);
      }
      function is(z) {
        q && z.variableDeclaration && As(z, z.variableDeclaration.name);
      }
      function qa(z) {
        if (q && z.expression.kind === 80) {
          const Ve = t1(e, z.expression);
          e.bindDiagnostics.push(
            Oc(
              e,
              Ve.start,
              Ve.length,
              f.delete_cannot_be_called_on_an_identifier_in_strict_mode,
            ),
          );
        }
      }
      function Zt(z) {
        return (
          He(z) && (z.escapedText === "eval" || z.escapedText === "arguments")
        );
      }
      function As(z, Ve) {
        if (Ve && Ve.kind === 80) {
          const kt = Ve;
          if (Zt(kt)) {
            const On = t1(e, Ve);
            e.bindDiagnostics.push(Oc(e, On.start, On.length, Hl(z), Kr(kt)));
          }
        }
      }
      function Hl(z) {
        return hd(z)
          ? f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode
          : e.externalModuleIndicator
            ? f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode
            : f.Invalid_use_of_0_in_strict_mode;
      }
      function sc(z) {
        q && !(z.flags & 33554432) && As(z, z.name);
      }
      function vd(z) {
        return hd(z)
          ? f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode
          : e.externalModuleIndicator
            ? f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode
            : f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5;
      }
      function Fs(z) {
        if (r < 2 && l.kind !== 308 && l.kind !== 268 && !BR(l)) {
          const Ve = t1(e, z);
          e.bindDiagnostics.push(Oc(e, Ve.start, Ve.length, vd(z)));
        }
      }
      function Ee(z) {
        q && As(z, z.operand);
      }
      function Y(z) {
        q && (z.operator === 46 || z.operator === 47) && As(z, z.operand);
      }
      function pt(z) {
        q && fn(z, f.with_statements_are_not_allowed_in_strict_mode);
      }
      function qt(z) {
        q &&
          Ga(t) >= 2 &&
          (gte(z.statement) || ac(z.statement)) &&
          fn(z.label, f.A_label_is_not_allowed_here);
      }
      function fn(z, Ve, ...kt) {
        const On = jh(e, z.pos);
        e.bindDiagnostics.push(Oc(e, On.start, On.length, Ve, ...kt));
      }
      function ur(z, Ve, kt) {
        si(z, Ve, Ve, kt);
      }
      function si(z, Ve, kt, On) {
        Dr(z, { pos: gb(Ve, e), end: kt.end }, On);
      }
      function Dr(z, Ve, kt) {
        const On = Oc(e, Ve.pos, Ve.end - Ve.pos, kt);
        z
          ? e.bindDiagnostics.push(On)
          : (e.bindSuggestionDiagnostics = Bn(e.bindSuggestionDiagnostics, {
              ...On,
              category: 2,
            }));
      }
      function Fn(z) {
        if (!z) return;
        (ps(z, i), xr && (z.tracingPath = e.path));
        const Ve = q;
        if ((Da(z), z.kind > 166)) {
          const kt = i;
          i = z;
          const On = DU(z);
          (On === 0 ? Ge(z) : ce(z, On), (i = kt));
        } else {
          const kt = i;
          (z.kind === 1 && (i = z), ro(z), (i = kt));
        }
        q = Ve;
      }
      function ro(z) {
        if (ef(z))
          if (Ir(z)) for (const Ve of z.jsDoc) Fn(Ve);
          else for (const Ve of z.jsDoc) (ps(Ve, z), qT(Ve, !1));
      }
      function So(z) {
        if (!q)
          for (const Ve of z) {
            if (!Uh(Ve)) return;
            if (Ns(Ve)) {
              q = !0;
              return;
            }
          }
      }
      function Ns(z) {
        const Ve = vS(e, z.expression);
        return Ve === '"use strict"' || Ve === "'use strict'";
      }
      function Da(z) {
        switch (z.kind) {
          case 80:
            if (z.flags & 4096) {
              let Eo = z.parent;
              for (; Eo && !hm(Eo); ) Eo = Eo.parent;
              Tc(Eo, 524288, 788968);
              break;
            }
          case 110:
            return (g && (St(z) || i.kind === 305) && (z.flowNode = g), ec(z));
          case 167:
            g && ZF(z) && (z.flowNode = g);
            break;
          case 237:
          case 108:
            z.flowNode = g;
            break;
          case 81:
            return Lo(z);
          case 212:
          case 213:
            const Ve = z;
            (g && at(Ve) && (Ve.flowNode = g),
              pne(Ve) && Mc(Ve),
              Ir(Ve) &&
                e.commonJsModuleIndicator &&
                gg(Ve) &&
                !l3(l, "module") &&
                Ne(e.locals, void 0, Ve.expression, 134217729, 111550));
            break;
          case 227:
            switch (oc(z)) {
              case 1:
                Jt(z);
                break;
              case 2:
                er(z);
                break;
              case 3:
                ql(z.left, z);
                break;
              case 6:
                tl(z);
                break;
              case 4:
                Za(z);
                break;
              case 5:
                const Eo = z.left.expression;
                if (Ir(z) && He(Eo)) {
                  const Vo = l3(l, Eo.escapedText);
                  if (YF(Vo?.valueDeclaration)) {
                    Za(z);
                    break;
                  }
                }
                bd(z);
                break;
              case 0:
                break;
              default:
                C.fail(
                  "Unknown binary expression special property assignment kind",
                );
            }
            return fa(z);
          case 300:
            return is(z);
          case 221:
            return qa(z);
          case 226:
            return Ee(z);
          case 225:
            return Y(z);
          case 255:
            return pt(z);
          case 257:
            return qt(z);
          case 198:
            _ = !0;
            return;
          case 183:
            break;
          case 169:
            return ti(z);
          case 170:
            return ut(z);
          case 261:
            return oe(z);
          case 209:
            return ((z.flowNode = g), oe(z));
          case 173:
          case 172:
            return Qs(z);
          case 304:
          case 305:
            return wn(z, 4, 0);
          case 307:
            return wn(z, 8, 900095);
          case 180:
          case 181:
          case 182:
            return xn(z, 131072, 0);
          case 175:
          case 174:
            return wn(
              z,
              8192 | (z.questionToken ? 16777216 : 0),
              mm(z) ? 0 : 103359,
            );
          case 263:
            return tn(z);
          case 177:
            return xn(z, 16384, 0);
          case 178:
            return wn(z, 32768, 46015);
          case 179:
            return wn(z, 65536, 78783);
          case 185:
          case 318:
          case 324:
          case 186:
            return Bl(z);
          case 188:
          case 323:
          case 201:
            return Sc(z);
          case 333:
            return tr(z);
          case 211:
            return xl(z);
          case 219:
          case 220:
            return an(z);
          case 214:
            switch (oc(z)) {
              case 7:
                return rf(z);
              case 8:
                return ze(z);
              case 9:
                return Ll(z);
              case 0:
                break;
              default:
                return C.fail(
                  "Unknown call expression assignment declaration kind",
                );
            }
            Ir(z) && bh(z);
            break;
          case 232:
          case 264:
            return ((q = !0), Tf(z));
          case 265:
            return Tc(z, 64, 788872);
          case 266:
            return Tc(z, 524288, 788968);
          case 267:
            return p_(z);
          case 268:
            return sa(z);
          case 293:
            return Ps(z);
          case 292:
            return co(z, 4, 0);
          case 272:
          case 275:
          case 277:
          case 282:
            return xn(z, 2097152, 2097152);
          case 271:
            return vh(z);
          case 274:
            return nf(z);
          case 279:
            return Pd(z);
          case 278:
            return Pl(z);
          case 308:
            return (So(z.statements), fc());
          case 242:
            if (!BR(z.parent)) return;
          case 269:
            return So(z.statements);
          case 342:
            if (z.parent.kind === 324) return ut(z);
            if (z.parent.kind !== 323) break;
          case 349:
            const yo = z,
              ta =
                yo.isBracketed ||
                (yo.typeExpression && yo.typeExpression.type.kind === 317)
                  ? 16777220
                  : 4;
            return xn(yo, ta, 0);
          case 347:
          case 339:
          case 341:
            return (d || (d = [])).push(z);
          case 340:
            return Fn(z.typeExpression);
          case 352:
            return (h || (h = [])).push(z);
        }
      }
      function Qs(z) {
        const Ve = Yu(z),
          kt = Ve ? 98304 : 4,
          On = Ve ? 13247 : 0;
        return wn(z, kt | (z.questionToken ? 16777216 : 0), On);
      }
      function Sc(z) {
        return Go(z, 2048, "__type");
      }
      function fc() {
        if ((ra(e), zc(e))) Hs();
        else if (Ff(e)) {
          Hs();
          const z = e.symbol;
          (Ne(e.symbol.exports, e.symbol, e, 4, -1), (e.symbol = z));
        }
      }
      function Hs() {
        Go(e, 512, `"${Tu(e.fileName)}"`);
      }
      function Pl(z) {
        if (!o.symbol || !o.symbol.exports) Go(z, 111551, re(z));
        else {
          const Ve = Rk(z) ? 2097152 : 4,
            kt = Ne(o.symbol.exports, o.symbol, z, Ve, -1);
          z.isExportEquals && ZN(kt, z);
        }
      }
      function vh(z) {
        yt(z.modifiers) &&
          e.bindDiagnostics.push(xe(z, f.Modifiers_cannot_appear_here));
        const Ve = Yi(z.parent)
          ? zc(z.parent)
            ? z.parent.isDeclarationFile
              ? void 0
              : f.Global_module_exports_may_only_appear_in_declaration_files
            : f.Global_module_exports_may_only_appear_in_module_files
          : f.Global_module_exports_may_only_appear_at_top_level;
        Ve
          ? e.bindDiagnostics.push(xe(z, Ve))
          : ((e.symbol.globalExports = e.symbol.globalExports || da()),
            Ne(e.symbol.globalExports, e.symbol, z, 2097152, 2097152));
      }
      function Pd(z) {
        !o.symbol || !o.symbol.exports
          ? Go(z, 8388608, re(z))
          : z.exportClause
            ? O_(z.exportClause) &&
              (ps(z.exportClause, z),
              Ne(o.symbol.exports, o.symbol, z.exportClause, 2097152, 2097152))
            : Ne(o.symbol.exports, o.symbol, z, 8388608, 0);
      }
      function nf(z) {
        z.name && xn(z, 2097152, 2097152);
      }
      function op(z) {
        return e.externalModuleIndicator && e.externalModuleIndicator !== !0
          ? !1
          : (e.commonJsModuleIndicator ||
              ((e.commonJsModuleIndicator = z),
              e.externalModuleIndicator || Hs()),
            !0);
      }
      function ze(z) {
        if (!op(z)) return;
        const Ve = Xc(
          z.arguments[0],
          void 0,
          (kt, On) => (On && Se(On, kt, 67110400), On),
        );
        Ve && Ne(Ve.exports, Ve, z, 1048580, 0);
      }
      function Jt(z) {
        if (!op(z)) return;
        const Ve = Xc(
          z.left.expression,
          void 0,
          (kt, On) => (On && Se(On, kt, 67110400), On),
        );
        if (Ve) {
          const On =
            s6(z.right) && (i1(z.left.expression) || gg(z.left.expression))
              ? 2097152
              : 1048580;
          (ps(z.left, z), Ne(Ve.exports, Ve, z.left, On, 0));
        }
      }
      function er(z) {
        if (!op(z)) return;
        const Ve = _k(z.right);
        if (_V(Ve) || (o === e && JS(e, Ve))) return;
        if (Wa(Ve) && Vn(Ve.properties, Ud)) {
          Ye(Ve.properties, go);
          return;
        }
        const kt = Rk(z) ? 2097152 : 1049092,
          On = Ne(e.symbol.exports, e.symbol, z, kt | 67108864, 0);
        ZN(On, z);
      }
      function go(z) {
        Ne(e.symbol.exports, e.symbol, z, 69206016, 0);
      }
      function Za(z) {
        if (
          (C.assert(Ir(z)),
          (Nr(z) && qr(z.left) && eo(z.left.name)) || (qr(z) && eo(z.name)))
        )
          return;
        const kt = vu(z, !1, !1);
        switch (kt.kind) {
          case 263:
          case 219:
            let On = kt.symbol;
            if (Nr(kt.parent) && kt.parent.operatorToken.kind === 64) {
              const Eo = kt.parent.left;
              AS(Eo) &&
                Ab(Eo.expression) &&
                (On = ap(Eo.expression.expression, s));
            }
            On &&
              On.valueDeclaration &&
              ((On.members = On.members || da()),
              oy(z)
                ? es(z, On, On.members)
                : Ne(On.members, On, z, 67108868, 0),
              Se(On, On.valueDeclaration, 32));
            break;
          case 177:
          case 173:
          case 175:
          case 178:
          case 179:
          case 176:
            const yo = kt.parent,
              ta = ua(kt) ? yo.symbol.exports : yo.symbol.members;
            oy(z)
              ? es(z, yo.symbol, ta)
              : Ne(ta, yo.symbol, z, 67108868, 0, !0);
            break;
          case 308:
            if (oy(z)) break;
            kt.commonJsModuleIndicator
              ? Ne(kt.symbol.exports, kt.symbol, z, 1048580, 0)
              : xn(z, 1, 111550);
            break;
          case 268:
            break;
          default:
            C.failBadSyntaxKind(kt);
        }
      }
      function es(z, Ve, kt) {
        (Ne(kt, Ve, z, 4, 0, !0, !0), Va(z, Ve));
      }
      function Va(z, Ve) {
        Ve &&
          (
            Ve.assignmentDeclarationMembers ||
            (Ve.assignmentDeclarationMembers = new Map())
          ).set(ls(z), z);
      }
      function Mc(z) {
        z.expression.kind === 110
          ? Za(z)
          : AS(z) &&
            z.parent.parent.kind === 308 &&
            (Ab(z.expression) ? ql(z, z.parent) : ld(z));
      }
      function tl(z) {
        (ps(z.left, z), ps(z.right, z), G_(z.left.expression, z.left, !1, !0));
      }
      function Ll(z) {
        const Ve = ap(z.arguments[0].expression);
        (Ve && Ve.valueDeclaration && Se(Ve, Ve.valueDeclaration, 32),
          Au(z, Ve, !0));
      }
      function ql(z, Ve) {
        const kt = z.expression,
          On = kt.expression;
        (ps(On, kt), ps(kt, z), ps(z, Ve), G_(On, z, !0, !0));
      }
      function rf(z) {
        let Ve = ap(z.arguments[0]);
        const kt = z.parent.parent.kind === 308;
        ((Ve = jp(Ve, z.arguments[0], kt, !1, !1)), Au(z, Ve, !1));
      }
      function bd(z) {
        var Ve;
        const kt = ap(z.left.expression, l) || ap(z.left.expression, o);
        if (!Ir(z) && !fne(kt)) return;
        const On = dD(z.left);
        if (
          !(
            He(On) &&
            ((Ve = l3(o, On.escapedText)) == null ? void 0 : Ve.flags) & 2097152
          )
        )
          if (
            (ps(z.left, z),
            ps(z.right, z),
            He(z.left.expression) && o === e && JS(e, z.left.expression))
          )
            Jt(z);
          else if (oy(z)) {
            Go(z, 67108868, "__computed");
            const yo = jp(kt, z.left.expression, Xf(z.left), !1, !1);
            Va(z, yo);
          } else ld(ma(z.left, a1));
      }
      function ld(z) {
        (C.assert(!He(z)), ps(z.expression, z), G_(z.expression, z, !1, !1));
      }
      function jp(z, Ve, kt, On, yo) {
        return (
          z?.flags & 2097152 ||
            (kt &&
              !On &&
              (z = Xc(Ve, z, (Vo, ml, Ca) => {
                if (ml) return (Se(ml, Vo, 67110400), ml);
                {
                  const cd = Ca
                    ? Ca.exports
                    : e.jsGlobalAugmentations ||
                      (e.jsGlobalAugmentations = da());
                  return Ne(cd, Ca, Vo, 67110400, 110735);
                }
              })),
            yo && z && z.valueDeclaration && Se(z, z.valueDeclaration, 32)),
          z
        );
      }
      function Au(z, Ve, kt) {
        if (!Ve || !Cg(Ve)) return;
        const On = kt
          ? Ve.members || (Ve.members = da())
          : Ve.exports || (Ve.exports = da());
        let yo = 0,
          ta = 0;
        (Ms(_I(z))
          ? ((yo = 8192), (ta = 103359))
          : Zo(z) &&
            o1(z) &&
            (yt(z.arguments[2].properties, (Eo) => {
              const Vo = Oo(Eo);
              return !!Vo && He(Vo) && Kr(Vo) === "set";
            }) && ((yo |= 65540), (ta |= 78783)),
            yt(z.arguments[2].properties, (Eo) => {
              const Vo = Oo(Eo);
              return !!Vo && He(Vo) && Kr(Vo) === "get";
            }) && ((yo |= 32772), (ta |= 46015))),
          yo === 0 && ((yo = 4), (ta = 0)),
          Ne(On, Ve, z, yo | 67108864, ta & -67108865));
      }
      function Xf(z) {
        return Nr(z.parent)
          ? Ng(z.parent).parent.kind === 308
          : z.parent.parent.kind === 308;
      }
      function G_(z, Ve, kt, On) {
        let yo = ap(z, l) || ap(z, o);
        const ta = Xf(Ve);
        ((yo = jp(yo, Ve.expression, ta, kt, On)), Au(Ve, yo, kt));
      }
      function Cg(z) {
        if (z.flags & 1072) return !0;
        const Ve = z.valueDeclaration;
        if (Ve && Zo(Ve)) return !!_I(Ve);
        let kt = Ve
          ? yi(Ve)
            ? Ve.initializer
            : Nr(Ve)
              ? Ve.right
              : qr(Ve) && Nr(Ve.parent)
                ? Ve.parent.right
                : void 0
          : void 0;
        if (((kt = kt && _k(kt)), kt)) {
          const On = Ab(yi(Ve) ? Ve.name : Nr(Ve) ? Ve.left : Ve);
          return !!zT(
            Nr(kt) &&
              (kt.operatorToken.kind === 57 || kt.operatorToken.kind === 61)
              ? kt.right
              : kt,
            On,
          );
        }
        return !1;
      }
      function Ng(z) {
        for (; Nr(z.parent); ) z = z.parent;
        return z.parent;
      }
      function ap(z, Ve = o) {
        if (He(z)) return l3(Ve, z.escapedText);
        {
          const kt = ap(z.expression);
          return kt && kt.exports && kt.exports.get(iy(z));
        }
      }
      function Xc(z, Ve, kt) {
        if (JS(e, z)) return e.symbol;
        if (He(z)) return kt(z, ap(z), Ve);
        {
          const On = Xc(z.expression, Ve, kt),
            yo = gk(z);
          return (
            eo(yo) && C.fail("unexpected PrivateIdentifier"),
            kt(yo, On && On.exports && On.exports.get(iy(z)), On)
          );
        }
      }
      function bh(z) {
        !e.commonJsModuleIndicator && Zu(z, !1) && op(z);
      }
      function Tf(z) {
        if (z.kind === 264) Tc(z, 32, 899503);
        else {
          const yo = z.name ? z.name.escapedText : "__class";
          (Go(z, 32, yo), z.name && pe.add(z.name.escapedText));
        }
        const { symbol: Ve } = z,
          kt = Je(4194308, "prototype"),
          On = Ve.exports.get(kt.escapedName);
        (On &&
          (z.name && ps(z.name, z),
          e.bindDiagnostics.push(
            xe(On.declarations[0], f.Duplicate_identifier_0, wl(kt)),
          )),
          Ve.exports.set(kt.escapedName, kt),
          (kt.parent = Ve));
      }
      function p_(z) {
        return OT(z) ? Tc(z, 128, 899967) : Tc(z, 256, 899327);
      }
      function oe(z) {
        if ((q && As(z, z.name), !Qo(z.name))) {
          const Ve = z.kind === 261 ? z : z.parent.parent;
          Ir(z) && ES(Ve) && !LT(z) && !(PT(z) & 32)
            ? xn(z, 2097152, 2097152)
            : hG(z)
              ? Tc(z, 2, 111551)
              : jT(z)
                ? xn(z, 1, 111551)
                : xn(z, 1, 111550);
        }
      }
      function ut(z) {
        if (
          !(z.kind === 342 && o.kind !== 324) &&
          (q && !(z.flags & 33554432) && As(z, z.name),
          Qo(z.name)
            ? Go(z, 1, "__" + z.parent.parameters.indexOf(z))
            : xn(z, 1, 111551),
          Np(z, z.parent))
        ) {
          const Ve = z.parent.parent;
          Ne(
            Ve.symbol.members,
            Ve.symbol,
            z,
            4 | (z.questionToken ? 16777216 : 0),
            0,
          );
        }
      }
      function tn(z) {
        (!e.isDeclarationFile && !(z.flags & 33554432) && oM(z) && (Z |= 4096),
          sc(z),
          q ? (Fs(z), Tc(z, 16, 110991)) : xn(z, 16, 110991));
      }
      function an(z) {
        (!e.isDeclarationFile && !(z.flags & 33554432) && oM(z) && (Z |= 4096),
          g && (z.flowNode = g),
          sc(z));
        const Ve = z.name ? z.name.escapedText : "__function";
        return Go(z, 16, Ve);
      }
      function wn(z, Ve, kt) {
        return (
          !e.isDeclarationFile && !(z.flags & 33554432) && oM(z) && (Z |= 4096),
          g && HF(z) && (z.flowNode = g),
          oy(z) ? Go(z, Ve, "__computed") : xn(z, Ve, kt)
        );
      }
      function or(z) {
        const Ve = Dn(
          z,
          (kt) => kt.parent && zS(kt.parent) && kt.parent.extendsType === kt,
        );
        return Ve && Ve.parent;
      }
      function ti(z) {
        if (bm(z.parent)) {
          const Ve = a6(z.parent);
          Ve
            ? (C.assertNode(Ve, D_),
              Ve.locals ?? (Ve.locals = da()),
              Ne(Ve.locals, void 0, z, 262144, 526824))
            : xn(z, 262144, 526824);
        } else if (z.parent.kind === 196) {
          const Ve = or(z.parent);
          Ve
            ? (C.assertNode(Ve, D_),
              Ve.locals ?? (Ve.locals = da()),
              Ne(Ve.locals, void 0, z, 262144, 526824))
            : Go(z, 262144, re(z));
        } else xn(z, 262144, 526824);
      }
      function Ti(z) {
        const Ve = my(z);
        return Ve === 1 || (Ve === 2 && Ib(t));
      }
      function $i(z) {
        if (!(g.flags & 1)) return !1;
        if (
          g === de &&
          ((q2(z) && z.kind !== 243) ||
            z.kind === 264 ||
            b1e(z, t) ||
            (z.kind === 268 && Ti(z))) &&
          ((g = fe), !t.allowUnreachableCode)
        ) {
          const kt =
            dre(t) &&
            !(z.flags & 33554432) &&
            (!ac(z) ||
              !!(ty(z.declarationList) & 7) ||
              z.declarationList.declarations.some((On) => !!On.initializer));
          YUe(z, t, (On, yo) => si(kt, On, yo, f.Unreachable_code_detected));
        }
        return !0;
      }
    }
    function b1e(e, t) {
      return e.kind === 267 && (!OT(e) || Ib(t));
    }
    function YUe(e, t, r) {
      if (Vi(e) && i(e) && ea(e.parent)) {
        const { statements: s } = e.parent,
          l = GV(s, e);
        wB(l, i, (u, d) => r(l[u], l[d - 1]));
      } else r(e, e);
      function i(s) {
        return (
          !Zl(s) &&
          !o(s) &&
          !(
            ac(s) &&
            !(ty(s) & 7) &&
            s.declarationList.declarations.some((l) => !l.initializer)
          )
        );
      }
      function o(s) {
        switch (s.kind) {
          case 265:
          case 266:
            return !0;
          case 268:
            return my(s) !== 1;
          case 267:
            return !b1e(s, t);
          default:
            return !1;
        }
      }
    }
    function JS(e, t) {
      let r = 0;
      const i = g2();
      for (i.enqueue(t); !i.isEmpty() && r < 100; ) {
        if ((r++, (t = i.dequeue()), i1(t) || gg(t))) return !0;
        if (He(t)) {
          const o = l3(e, t.escapedText);
          if (
            o &&
            o.valueDeclaration &&
            yi(o.valueDeclaration) &&
            o.valueDeclaration.initializer
          ) {
            const s = o.valueDeclaration.initializer;
            (i.enqueue(s),
              id(s, !0) && (i.enqueue(s.left), i.enqueue(s.right)));
          }
        }
      }
      return !1;
    }
    function DU(e) {
      switch (e.kind) {
        case 232:
        case 264:
        case 267:
        case 211:
        case 188:
        case 323:
        case 293:
          return 1;
        case 265:
          return 65;
        case 268:
        case 266:
        case 201:
        case 182:
          return 33;
        case 308:
          return 37;
        case 178:
        case 179:
        case 175:
          if (HF(e)) return 173;
        case 177:
        case 263:
        case 174:
        case 180:
        case 324:
        case 318:
        case 185:
        case 181:
        case 186:
        case 176:
          return 45;
        case 352:
          return 37;
        case 219:
        case 220:
          return 61;
        case 269:
          return 4;
        case 173:
          return e.initializer ? 4 : 0;
        case 300:
        case 249:
        case 250:
        case 251:
        case 270:
          return 34;
        case 242:
          return Yo(e.parent) || Ql(e.parent) ? 0 : 34;
      }
      return 0;
    }
    function l3(e, t) {
      var r, i, o, s;
      const l =
        (i = (r = ni(e, D_)) == null ? void 0 : r.locals) == null
          ? void 0
          : i.get(t);
      if (l) return l.exportSymbol ?? l;
      if (Yi(e) && e.jsGlobalAugmentations && e.jsGlobalAugmentations.has(t))
        return e.jsGlobalAugmentations.get(t);
      if (ah(e))
        return (s = (o = e.symbol) == null ? void 0 : o.exports) == null
          ? void 0
          : s.get(t);
    }
    function rae(e, t, r, i, o, s, l, u, d, _) {
      return h;
      function h(g = () => !0) {
        const E = [],
          A = [];
        return {
          walkType: (ye) => {
            try {
              return (R(ye), { visitedTypes: $A(E), visitedSymbols: $A(A) });
            } finally {
              (hi(E), hi(A));
            }
          },
          walkSymbol: (ye) => {
            try {
              return (q(ye), { visitedTypes: $A(E), visitedSymbols: $A(A) });
            } finally {
              (hi(E), hi(A));
            }
          },
        };
        function R(ye) {
          if (!(!ye || E[ye.id] || ((E[ye.id] = ye), q(ye.symbol)))) {
            if (ye.flags & 524288) {
              const K = ye,
                pe = K.objectFlags;
              (pe & 4 && N(ye),
                pe & 32 && G(ye),
                pe & 3 && J(ye),
                pe & 24 && Z(K));
            }
            (ye.flags & 262144 && P(ye),
              ye.flags & 3145728 && k(ye),
              ye.flags & 4194304 && W(ye),
              ye.flags & 8388608 && O(ye));
          }
        }
        function N(ye) {
          (R(ye.target), Ye(_(ye), R));
        }
        function P(ye) {
          R(u(ye));
        }
        function k(ye) {
          Ye(ye.types, R);
        }
        function W(ye) {
          R(ye.type);
        }
        function O(ye) {
          (R(ye.objectType), R(ye.indexType), R(ye.constraint));
        }
        function G(ye) {
          (R(ye.typeParameter),
            R(ye.constraintType),
            R(ye.templateType),
            R(ye.modifiersType));
        }
        function j(ye) {
          const ie = t(ye);
          (ie && R(ie.type), Ye(ye.typeParameters, R));
          for (const K of ye.parameters) q(K);
          (R(e(ye)), R(r(ye)));
        }
        function J(ye) {
          (Z(ye), Ye(ye.typeParameters, R), Ye(i(ye), R), R(ye.thisType));
        }
        function Z(ye) {
          const ie = o(ye);
          for (const K of ie.indexInfos) (R(K.keyType), R(K.type));
          for (const K of ie.callSignatures) j(K);
          for (const K of ie.constructSignatures) j(K);
          for (const K of ie.properties) q(K);
        }
        function q(ye) {
          if (!ye) return !1;
          const ie = Ta(ye);
          if (A[ie]) return !1;
          if (((A[ie] = ye), !g(ye))) return !0;
          const K = s(ye);
          return (
            R(K),
            ye.exports && ye.exports.forEach(q),
            Ye(ye.declarations, (pe) => {
              if (pe.type && pe.type.kind === 187) {
                const de = pe.type,
                  fe = l(d(de.exprName));
                q(fe);
              }
            }),
            !1
          );
        }
      }
    }
    var hy = {};
    x(hy, {
      RelativePreference: () => T1e,
      countPathComponents: () => u3,
      forEachFileNameOfModule: () => R1e,
      getLocalModuleSpecifierBetweenFileNames: () => nHe,
      getModuleSpecifier: () => ZUe,
      getModuleSpecifierPreferences: () => jw,
      getModuleSpecifiers: () => A1e,
      getModuleSpecifiersWithCacheInfo: () => I1e,
      getNodeModulesPackageName: () => eHe,
      tryGetJSExtensionForFile: () => NU,
      tryGetModuleSpecifiersFromCache: () => tHe,
      tryGetRealFileNameForNonJsDeclarationFileName: () => P1e,
      updateModuleSpecifier: () => QUe,
    });
    var $Ue = Fh((e) => {
        try {
          let t = e.indexOf("/");
          if (t !== 0) return new RegExp(e);
          const r = e.lastIndexOf("/");
          if (t === r) return new RegExp(e);
          for (; (t = e.indexOf("/", t + 1)) !== r; )
            if (e[t - 1] !== "\\") return new RegExp(e);
          const i = e.substring(r + 1).replace(/[^iu]/g, "");
          return ((e = e.substring(1, r)), new RegExp(e, i));
        } catch {
          return;
        }
      }),
      T1e = ((e) => (
        (e[(e.Relative = 0)] = "Relative"),
        (e[(e.NonRelative = 1)] = "NonRelative"),
        (e[(e.Shortest = 2)] = "Shortest"),
        (e[(e.ExternalNonRelative = 3)] = "ExternalNonRelative"),
        e
      ))(T1e || {});
    function jw(
      {
        importModuleSpecifierPreference: e,
        importModuleSpecifierEnding: t,
        autoImportSpecifierExcludeRegexes: r,
      },
      i,
      o,
      s,
      l,
    ) {
      const u = d();
      return {
        excludeRegexes: r,
        relativePreference:
          l !== void 0
            ? td(l)
              ? 0
              : 1
            : e === "relative"
              ? 0
              : e === "non-relative"
                ? 1
                : e === "project-relative"
                  ? 3
                  : 2,
        getAllowedEndingsInPreferredOrder: (_) => {
          const h = MU(s, i, o),
            g = _ !== h ? d(_) : u,
            E = iu(o);
          if ((_ ?? h) === 99 && 3 <= E && E <= 99)
            return VD(o, s.fileName) ? [3, 2] : [2];
          if (iu(o) === 1) return g === 2 ? [2, 1] : [1, 2];
          const A = VD(o, s.fileName);
          switch (g) {
            case 2:
              return A ? [2, 3, 0, 1] : [2, 0, 1];
            case 3:
              return [3, 0, 2, 1];
            case 1:
              return A ? [1, 0, 3, 2] : [1, 0, 2];
            case 0:
              return A ? [0, 1, 3, 2] : [0, 1, 2];
            default:
              C.assertNever(g);
          }
        },
      };
      function d(_) {
        if (l !== void 0) {
          if (Tg(l)) return 2;
          if (el(l, "/index")) return 1;
        }
        return Ere(t, _ ?? MU(s, i, o), o, _g(s) ? s : void 0);
      }
    }
    function QUe(e, t, r, i, o, s, l = {}) {
      const u = S1e(e, t, r, i, o, jw({}, o, e, t, s), {}, l);
      if (u !== s) return u;
    }
    function ZUe(e, t, r, i, o, s = {}) {
      return S1e(e, t, r, i, o, jw({}, o, e, t), {}, s);
    }
    function eHe(e, t, r, i, o, s = {}) {
      const l = d3(t.fileName, i),
        u = D1e(l, r, i, o, e, s);
      return Hn(u, (d) => aae(d, l, t, i, e, o, !0, s.overrideImportMode));
    }
    function S1e(e, t, r, i, o, s, l, u = {}) {
      const d = d3(r, o),
        _ = D1e(d, i, o, l, e, u);
      return (
        Hn(_, (h) => aae(h, d, t, o, e, l, void 0, u.overrideImportMode)) ||
        iae(i, d, e, o, u.overrideImportMode || MU(t, o, e), s)
      );
    }
    function tHe(e, t, r, i, o = {}) {
      const s = E1e(e, t, r, i, o);
      return (
        s[1] && { kind: s[0], moduleSpecifiers: s[1], computedWithoutCache: !1 }
      );
    }
    function E1e(e, t, r, i, o = {}) {
      var s;
      const l = X2(e);
      if (!l) return ae;
      const u = (s = r.getModuleSpecifierCache) == null ? void 0 : s.call(r),
        d = u?.get(t.path, l.path, i, o);
      return [d?.kind, d?.moduleSpecifiers, l, d?.modulePaths, u];
    }
    function A1e(e, t, r, i, o, s, l = {}) {
      return I1e(e, t, r, i, o, s, l, !1).moduleSpecifiers;
    }
    function I1e(e, t, r, i, o, s, l = {}, u) {
      let d = !1;
      const _ = sHe(e, t);
      if (_)
        return {
          kind: "ambient",
          moduleSpecifiers:
            u && c3(_, s.autoImportSpecifierExcludeRegexes) ? ae : [_],
          computedWithoutCache: d,
        };
      let [h, g, E, A, R] = E1e(e, i, o, s, l);
      if (g) return { kind: h, moduleSpecifiers: g, computedWithoutCache: d };
      if (!E)
        return { kind: void 0, moduleSpecifiers: ae, computedWithoutCache: d };
      ((d = !0),
        A || (A = C1e(d3(i.fileName, o), E.originalFileName, o, r, l)));
      const N = rHe(A, r, i, o, s, l, u);
      return (R?.set(i.path, E.path, s, l, N.kind, A, N.moduleSpecifiers), N);
    }
    function nHe(e, t, r, i, o, s = {}) {
      const l = d3(e.fileName, i),
        u = s.overrideImportMode ?? e.impliedNodeFormat;
      return iae(t, l, r, i, u, jw(o, i, r, e));
    }
    function rHe(e, t, r, i, o, s = {}, l) {
      const u = d3(r.fileName, i),
        d = jw(o, i, t, r),
        _ =
          _g(r) &&
          Ye(e, (N) =>
            Ye(
              i
                .getFileIncludeReasons()
                .get(
                  ks(N.path, i.getCurrentDirectory(), u.getCanonicalFileName),
                ),
              (P) => {
                if (P.kind !== 3 || P.file !== r.path) return;
                const k = i.getModeForResolutionAtIndex(r, P.index),
                  W =
                    s.overrideImportMode ??
                    i.getDefaultResolutionModeForFile(r);
                if (k !== W && k !== void 0 && W !== void 0) return;
                const O = aO(r, P.index).text;
                return d.relativePreference !== 1 || !Zp(O) ? O : void 0;
              },
            ),
          );
      if (_)
        return {
          kind: void 0,
          moduleSpecifiers: [_],
          computedWithoutCache: !0,
        };
      const h = yt(e, (N) => N.isInNodeModules);
      let g, E, A, R;
      for (const N of e) {
        const P = N.isInNodeModules
          ? aae(N, u, r, i, t, o, void 0, s.overrideImportMode)
          : void 0;
        if (
          P &&
          !(l && c3(P, d.excludeRegexes)) &&
          ((g = Bn(g, P)), N.isRedirect)
        )
          return {
            kind: "node_modules",
            moduleSpecifiers: g,
            computedWithoutCache: !0,
          };
        const k = iae(
          N.path,
          u,
          t,
          i,
          s.overrideImportMode || r.impliedNodeFormat,
          d,
          N.isRedirect || !!P,
        );
        !k ||
          (l && c3(k, d.excludeRegexes)) ||
          (N.isRedirect
            ? (A = Bn(A, k))
            : x9(k)
              ? Wb(k)
                ? (R = Bn(R, k))
                : (E = Bn(E, k))
              : (l || !h || N.isInNodeModules) && (R = Bn(R, k)));
      }
      return E?.length
        ? { kind: "paths", moduleSpecifiers: E, computedWithoutCache: !0 }
        : A?.length
          ? { kind: "redirect", moduleSpecifiers: A, computedWithoutCache: !0 }
          : g?.length
            ? {
                kind: "node_modules",
                moduleSpecifiers: g,
                computedWithoutCache: !0,
              }
            : {
                kind: "relative",
                moduleSpecifiers: R ?? ae,
                computedWithoutCache: !0,
              };
    }
    function c3(e, t) {
      return yt(t, (r) => {
        var i;
        return !!((i = $Ue(r)) != null && i.test(e));
      });
    }
    function d3(e, t) {
      e = To(e, t.getCurrentDirectory());
      const r = Fd(
          t.useCaseSensitiveFileNames ? t.useCaseSensitiveFileNames() : !0,
        ),
        i = ci(e);
      return {
        getCanonicalFileName: r,
        importingSourceFileName: e,
        sourceDirectory: i,
        canonicalSourceDirectory: r(i),
      };
    }
    function iae(
      e,
      t,
      r,
      i,
      o,
      {
        getAllowedEndingsInPreferredOrder: s,
        relativePreference: l,
        excludeRegexes: u,
      },
      d,
    ) {
      const { baseUrl: _, paths: h, rootDirs: g } = r;
      if (d && !h) return;
      const {
          sourceDirectory: E,
          canonicalSourceDirectory: A,
          getCanonicalFileName: R,
        } = t,
        N = s(o),
        P = (g && dHe(g, e, E, R, N, r)) || Uw(UE(cf(E, e, R)), N, r);
      if ((!_ && !h && !qk(r)) || l === 0) return d ? void 0 : P;
      const k = To(g6(r, i) || _, i.getCurrentDirectory()),
        W = sae(e, k, R);
      if (!W) return d ? void 0 : P;
      const O = d ? void 0 : cHe(e, E, r, i, o, pHe(N)),
        G = d || O === void 0 ? h && N1e(W, h, N, k, R, i, r) : void 0;
      if (d) return G;
      const j = O ?? (G === void 0 && _ !== void 0 ? Uw(W, N, r) : G);
      if (!j) return P;
      const J = c3(P, u),
        Z = c3(j, u);
      if (!J && Z) return P;
      if ((J && !Z) || (l === 1 && !Zp(j))) return j;
      if (l === 3 && !Zp(j)) {
        const q = r.configFilePath
            ? ks(
                ci(r.configFilePath),
                i.getCurrentDirectory(),
                t.getCanonicalFileName,
              )
            : t.getCanonicalFileName(i.getCurrentDirectory()),
          ye = ks(e, q, R),
          ie = po(A, q),
          K = po(ye, q);
        if ((ie && !K) || (!ie && K)) return j;
        const pe = oae(i, ci(ye)),
          de = oae(i, E),
          fe = !d1(i);
        return iHe(pe, de, fe) ? P : j;
      }
      return L1e(j) || u3(P) < u3(j) ? P : j;
    }
    function iHe(e, t, r) {
      return e === t
        ? !0
        : e === void 0 || t === void 0
          ? !1
          : Zg(e, t, r) === 0;
    }
    function u3(e) {
      let t = 0;
      for (let r = po(e, "./") ? 2 : 0; r < e.length; r++)
        e.charCodeAt(r) === 47 && t++;
      return t;
    }
    function x1e(e, t) {
      return NT(t.isRedirect, e.isRedirect) || Qk(e.path, t.path);
    }
    function oae(e, t) {
      return e.getNearestAncestorDirectoryWithPackageJson
        ? e.getNearestAncestorDirectoryWithPackageJson(t)
        : W_(e, t, (r) => (e.fileExists(Qr(r, "package.json")) ? r : void 0));
    }
    function R1e(e, t, r, i, o) {
      var s, l;
      const u = ay(r),
        d = r.getCurrentDirectory(),
        _ = r.isSourceOfProjectReferenceRedirect(t)
          ? (s = r.getRedirectFromSourceFile(t)) == null
            ? void 0
            : s.outputDts
          : void 0,
        h = ks(t, d, u),
        g = r.redirectTargetsMap.get(h) || ae,
        A = [...(_ ? [_] : ae), t, ...g].map((W) => To(W, d));
      let R = !Vn(A, CM);
      if (!i) {
        const W = Ye(A, (O) => !(R && CM(O)) && o(O, _ === O));
        if (W) return W;
      }
      const N =
          (l = r.getSymlinkCache) == null
            ? void 0
            : l.call(r).getSymlinkedDirectoriesByRealpath(),
        P = To(t, d);
      return (
        (N &&
          W_(r, ci(P), (W) => {
            const O = N.get(Uc(ks(W, d, u)));
            if (O)
              return C9(e, W, u)
                ? !1
                : Ye(A, (G) => {
                    if (!C9(G, W, u)) return;
                    const j = cf(W, G, u);
                    for (const J of O) {
                      const Z = ab(J, j),
                        q = o(Z, G === _);
                      if (((R = !0), q)) return q;
                    }
                  });
          })) ||
        (i ? Ye(A, (W) => (R && CM(W) ? void 0 : o(W, W === _))) : void 0)
      );
    }
    function D1e(e, t, r, i, o, s = {}) {
      var l;
      const u = ks(e.importingSourceFileName, r.getCurrentDirectory(), ay(r)),
        d = ks(t, r.getCurrentDirectory(), ay(r)),
        _ = (l = r.getModuleSpecifierCache) == null ? void 0 : l.call(r);
      if (_) {
        const g = _.get(u, d, i, s);
        if (g?.modulePaths) return g.modulePaths;
      }
      const h = C1e(e, t, r, o, s);
      return (_ && _.setModulePaths(u, d, i, s, h), h);
    }
    var oHe = ["dependencies", "peerDependencies", "optionalDependencies"];
    function aHe(e) {
      let t;
      for (const r of oHe) {
        const i = e[r];
        i && typeof i == "object" && (t = so(t, Wh(i)));
      }
      return t;
    }
    function C1e(e, t, r, i, o) {
      var s, l;
      const u = (s = r.getModuleResolutionCache) == null ? void 0 : s.call(r),
        d = (l = r.getSymlinkCache) == null ? void 0 : l.call(r);
      if (u && d && r.readFile && !Wb(e.importingSourceFileName)) {
        C.type(r);
        const g = iP(u.getPackageJsonInfoCache(), r, {}),
          E = oP(ci(e.importingSourceFileName), g);
        if (E) {
          const A = aHe(E.contents.packageJsonContent);
          for (const R of A || ae) {
            const N = M1(
              R,
              Qr(E.packageDirectory, "package.json"),
              i,
              r,
              u,
              void 0,
              o.overrideImportMode,
            );
            d.setSymlinksFromResolution(N.resolvedModule);
          }
        }
      }
      const _ = new Map();
      R1e(e.importingSourceFileName, t, r, !0, (g, E) => {
        const A = Wb(g);
        _.set(g, {
          path: e.getCanonicalFileName(g),
          isRedirect: E,
          isInNodeModules: A,
        });
      });
      const h = [];
      for (let g = e.canonicalSourceDirectory; _.size !== 0; ) {
        const E = Uc(g);
        let A;
        (_.forEach(({ path: N, isRedirect: P, isInNodeModules: k }, W) => {
          po(N, E) &&
            ((A || (A = [])).push({
              path: W,
              isRedirect: P,
              isInNodeModules: k,
            }),
            _.delete(W));
        }),
          A && (A.length > 1 && A.sort(x1e), h.push(...A)));
        const R = ci(g);
        if (R === g) break;
        g = R;
      }
      if (_.size) {
        const g = Co(
          _.entries(),
          ([E, { isRedirect: A, isInNodeModules: R }]) => ({
            path: E,
            isRedirect: A,
            isInNodeModules: R,
          }),
        );
        (g.length > 1 && g.sort(x1e), h.push(...g));
      }
      return h;
    }
    function sHe(e, t) {
      var r;
      const i =
        (r = e.declarations) == null
          ? void 0
          : r.find((l) => gG(l) && (!TS(l) || !td(zf(l.name))));
      if (i) return i.name.text;
      const s = Ui(e.declarations, (l) => {
        var u, d, _, h;
        if (!uc(l)) return;
        const g = N(l);
        if (
          !(
            (u = g?.parent) != null &&
            u.parent &&
            t_(g.parent) &&
            yu(g.parent.parent) &&
            Yi(g.parent.parent.parent)
          )
        )
          return;
        const E =
          (h =
            (_ =
              (d = g.parent.parent.symbol.exports) == null
                ? void 0
                : d.get("export=")) == null
              ? void 0
              : _.valueDeclaration) == null
            ? void 0
            : h.expression;
        if (!E) return;
        const A = t.getSymbolAtLocation(E);
        if (!A) return;
        if ((A?.flags & 2097152 ? t.getAliasedSymbol(A) : A) === l.symbol)
          return g.parent.parent;
        function N(P) {
          for (; P.flags & 8; ) P = P.parent;
          return P;
        }
      })[0];
      if (s) return s.name.text;
    }
    function N1e(e, t, r, i, o, s, l) {
      for (const d in t)
        for (const _ of t[d]) {
          const h = ya(_),
            g = sae(h, i, o) ?? h,
            E = g.indexOf("*"),
            A = r.map((R) => ({ ending: R, value: Uw(e, [R], l) }));
          if ((Sg(g) && A.push({ ending: void 0, value: e }), E !== -1)) {
            const R = g.substring(0, E),
              N = g.substring(E + 1);
            for (const { ending: P, value: k } of A)
              if (
                k.length >= R.length + N.length &&
                po(k, R) &&
                el(k, N) &&
                u({ ending: P, value: k })
              ) {
                const W = k.substring(R.length, k.length - N.length);
                if (!Zp(W)) return m1(d, W);
              }
          } else if (
            yt(A, (R) => R.ending !== 0 && g === R.value) ||
            yt(A, (R) => R.ending === 0 && g === R.value && u(R))
          )
            return d;
        }
      function u({ ending: d, value: _ }) {
        return d !== 0 || _ === Uw(e, [d], l, s);
      }
    }
    function p3(e, t, r, i, o, s, l, u, d, _) {
      if (typeof s == "string") {
        const h = !d1(t),
          g = () => t.getCommonSourceDirectory(),
          E = d && oH(r, e, h, g),
          A = d && iH(r, e, h, g),
          R = To(Qr(i, s), void 0),
          N = f1(r) ? Tu(r) + NU(r, e) : void 0,
          P = _ && Tre(r);
        switch (u) {
          case 0:
            if (
              (N && Zg(N, R, h) === 0) ||
              Zg(r, R, h) === 0 ||
              (E && Zg(E, R, h) === 0) ||
              (A && Zg(A, R, h) === 0)
            )
              return { moduleFileToTry: o };
            break;
          case 1:
            if (P && um(r, R, h)) {
              const G = cf(R, r, !1);
              return { moduleFileToTry: To(Qr(Qr(o, s), G), void 0) };
            }
            if (N && um(R, N, h)) {
              const G = cf(R, N, !1);
              return { moduleFileToTry: To(Qr(Qr(o, s), G), void 0) };
            }
            if (!P && um(R, r, h)) {
              const G = cf(R, r, !1);
              return { moduleFileToTry: To(Qr(Qr(o, s), G), void 0) };
            }
            if (E && um(R, E, h)) {
              const G = cf(R, E, !1);
              return { moduleFileToTry: Qr(o, G) };
            }
            if (A && um(R, A, h)) {
              const G = nF(cf(R, A, !1), CU(A, e));
              return { moduleFileToTry: Qr(o, G) };
            }
            break;
          case 2:
            const k = R.indexOf("*"),
              W = R.slice(0, k),
              O = R.slice(k + 1);
            if (P && po(r, W, h) && el(r, O, h)) {
              const G = r.slice(W.length, r.length - O.length);
              return { moduleFileToTry: m1(o, G) };
            }
            if (N && po(N, W, h) && el(N, O, h)) {
              const G = N.slice(W.length, N.length - O.length);
              return { moduleFileToTry: m1(o, G) };
            }
            if (!P && po(r, W, h) && el(r, O, h)) {
              const G = r.slice(W.length, r.length - O.length);
              return { moduleFileToTry: m1(o, G) };
            }
            if (E && po(E, W, h) && el(E, O, h)) {
              const G = E.slice(W.length, E.length - O.length);
              return { moduleFileToTry: m1(o, G) };
            }
            if (A && po(A, W, h) && el(A, O, h)) {
              const G = A.slice(W.length, A.length - O.length),
                j = m1(o, G),
                J = NU(A, e);
              return J ? { moduleFileToTry: nF(j, J) } : void 0;
            }
            break;
        }
      } else {
        if (Array.isArray(s))
          return Ye(s, (h) => p3(e, t, r, i, o, h, l, u, d, _));
        if (typeof s == "object" && s !== null) {
          for (const h of Wh(s))
            if (h === "default" || l.indexOf(h) >= 0 || Gw(l, h)) {
              const g = s[h],
                E = p3(e, t, r, i, o, g, l, u, d, _);
              if (E) return E;
            }
        }
      }
    }
    function lHe(e, t, r, i, o, s, l) {
      return typeof s == "object" && s !== null && !Array.isArray(s) && a3(s)
        ? Ye(Wh(s), (u) => {
            const d = To(Qr(o, u), void 0),
              _ = el(u, "/") ? 1 : u.includes("*") ? 2 : 0;
            return p3(e, t, r, i, d, s[u], l, _, !1, !1);
          })
        : p3(e, t, r, i, o, s, l, 0, !1, !1);
    }
    function cHe(e, t, r, i, o, s) {
      var l, u, d;
      if (!i.readFile || !qk(r)) return;
      const _ = oae(i, t);
      if (!_) return;
      const h = Qr(_, "package.json"),
        g =
          (u = (l = i.getPackageJsonInfoCache) == null ? void 0 : l.call(i)) ==
          null
            ? void 0
            : u.getPackageJsonInfo(h);
      if (Goe(g) || !i.fileExists(h)) return;
      const E = g?.contents.packageJsonContent || Bk(i.readFile(h)),
        A = E?.imports;
      if (!A) return;
      const R = Ob(r, o);
      return (d = Ye(Wh(A), (N) => {
        if (!po(N, "#") || N === "#" || po(N, "#/")) return;
        const P = el(N, "/") ? 1 : N.includes("*") ? 2 : 0;
        return p3(r, i, e, _, N, A[N], R, P, !0, s);
      })) == null
        ? void 0
        : d.moduleFileToTry;
    }
    function dHe(e, t, r, i, o, s) {
      const l = M1e(t, e, i);
      if (l === void 0) return;
      const u = M1e(r, e, i),
        d = Ki(u, (h) => Vt(l, (g) => UE(cf(h, g, i)))),
        _ = JB(d, Qk);
      if (_) return Uw(_, o, s);
    }
    function aae(
      { path: e, isRedirect: t },
      { getCanonicalFileName: r, canonicalSourceDirectory: i },
      o,
      s,
      l,
      u,
      d,
      _,
    ) {
      if (!s.fileExists || !s.readFile) return;
      const h = Z6(e);
      if (!h) return;
      const E = jw(u, s, l, o).getAllowedEndingsInPreferredOrder();
      let A = e,
        R = !1;
      if (!d) {
        let G = h.packageRootIndex,
          j;
        for (;;) {
          const {
            moduleFileToTry: J,
            packageRootPath: Z,
            blockedByExports: q,
            verbatimFromExports: ye,
          } = O(G);
          if (iu(l) !== 1) {
            if (q) return;
            if (ye) return J;
          }
          if (Z) {
            ((A = Z), (R = !0));
            break;
          }
          if ((j || (j = J), (G = e.indexOf(Js, G + 1)), G === -1)) {
            A = Uw(j, E, l, s);
            break;
          }
        }
      }
      if (t && !R) return;
      const N =
          s.getGlobalTypingsCacheLocation && s.getGlobalTypingsCacheLocation(),
        P = r(A.substring(0, h.topLevelNodeModulesIndex));
      if (!(po(i, P) || (N && po(r(N), P)))) return;
      const k = A.substring(h.topLevelPackageNameIndex + 1),
        W = aP(k);
      return iu(l) === 1 && W === k ? void 0 : W;
      function O(G) {
        var j, J;
        const Z = e.substring(0, G),
          q = Qr(Z, "package.json");
        let ye = e,
          ie = !1;
        const K =
          (J = (j = s.getPackageJsonInfoCache) == null ? void 0 : j.call(s)) ==
          null
            ? void 0
            : J.getPackageJsonInfo(q);
        if (n3(K) || (K === void 0 && s.fileExists(q))) {
          const pe = K?.contents.packageJsonContent || Bk(s.readFile(q)),
            de = _ || MU(o, s, l);
          if (Hk(l)) {
            const xe = Z.substring(h.topLevelPackageNameIndex + 1),
              X = aP(xe),
              Ce = Ob(l, de),
              Je = pe?.exports ? lHe(l, s, e, Z, X, pe.exports, Ce) : void 0;
            if (Je) return { ...Je, verbatimFromExports: !0 };
            if (pe?.exports)
              return { moduleFileToTry: e, blockedByExports: !0 };
          }
          const fe = pe?.typesVersions ? e3(pe.typesVersions) : void 0;
          if (fe) {
            const xe = e.slice(Z.length + 1),
              X = N1e(xe, fe.paths, E, Z, r, s, l);
            X === void 0 ? (ie = !0) : (ye = Qr(Z, X));
          }
          const ve = pe?.typings || pe?.types || pe?.main || "index.js";
          if (Bo(ve) && !(ie && BV(ew(fe.paths), ve))) {
            const xe = ks(ve, Z, r),
              X = r(ye);
            if (Tu(xe) === Tu(X))
              return { packageRootPath: Z, moduleFileToTry: ye };
            if (
              pe?.type !== "module" &&
              !$l(X, K6) &&
              po(X, xe) &&
              ci(X) === Yy(xe) &&
              Tu(Ic(X)) === "index"
            )
              return { packageRootPath: Z, moduleFileToTry: ye };
          }
        } else {
          const pe = r(ye.substring(h.packageRootIndex + 1));
          if (
            pe === "index.d.ts" ||
            pe === "index.js" ||
            pe === "index.ts" ||
            pe === "index.tsx"
          )
            return { moduleFileToTry: ye, packageRootPath: Z };
        }
        return { moduleFileToTry: ye };
      }
    }
    function uHe(e, t) {
      if (!e.fileExists) return;
      const r = la(
        SM({ allowJs: !0 }, [
          { extension: "node", isMixedContent: !1 },
          { extension: "json", isMixedContent: !1, scriptKind: 6 },
        ]),
      );
      for (const i of r) {
        const o = t + i;
        if (e.fileExists(o)) return o;
      }
    }
    function M1e(e, t, r) {
      return Ui(t, (i) => {
        const o = sae(e, i, r);
        return o !== void 0 && L1e(o) ? void 0 : o;
      });
    }
    function Uw(e, t, r, i) {
      if ($l(e, [".json", ".mjs", ".cjs"])) return e;
      const o = Tu(e);
      if (e === o) return e;
      const s = t.indexOf(2),
        l = t.indexOf(3);
      if ($l(e, [".mts", ".cts"]) && l !== -1 && l < s) return e;
      if ($l(e, [".d.mts", ".mts", ".d.cts", ".cts"])) return o + CU(e, r);
      if (!$l(e, [".d.ts"]) && $l(e, [".ts"]) && e.includes(".d."))
        return P1e(e);
      switch (t[0]) {
        case 0:
          const u = RR(o, "/index");
          return i && u !== o && uHe(i, u) ? o : u;
        case 1:
          return o;
        case 2:
          return o + CU(e, r);
        case 3:
          if (ad(e)) {
            const d = t.findIndex((_) => _ === 0 || _ === 1);
            return d !== -1 && d < s ? o : o + CU(e, r);
          }
          return e;
        default:
          return C.assertNever(t[0]);
      }
    }
    function P1e(e) {
      const t = Ic(e);
      if (!el(e, ".ts") || !t.includes(".d.") || $l(t, [".d.ts"])) return;
      const r = Zk(e, ".ts"),
        i = r.substring(r.lastIndexOf("."));
      return r.substring(0, r.indexOf(".d.")) + i;
    }
    function CU(e, t) {
      return (
        NU(e, t) ??
        C.fail(`Extension ${AM(e)} is unsupported:: FileName:: ${e}`)
      );
    }
    function NU(e, t) {
      const r = Sg(e);
      switch (r) {
        case ".ts":
        case ".d.ts":
          return ".js";
        case ".tsx":
          return t.jsx === 1 ? ".jsx" : ".js";
        case ".js":
        case ".jsx":
        case ".json":
          return r;
        case ".d.mts":
        case ".mts":
        case ".mjs":
          return ".mjs";
        case ".d.cts":
        case ".cts":
        case ".cjs":
          return ".cjs";
        default:
          return;
      }
    }
    function sae(e, t, r) {
      const i = PR(t, e, t, r, !1);
      return Cp(i) ? void 0 : i;
    }
    function L1e(e) {
      return po(e, "..");
    }
    function MU(e, t, r) {
      return _g(e) ? t.getDefaultResolutionModeForFile(e) : L3(e, r);
    }
    function pHe(e) {
      const t = e.indexOf(3);
      return t > -1 && t < e.indexOf(2);
    }
    var lae = /^".+"$/,
      PU = "(anonymous)",
      k1e = 1,
      w1e = 1,
      O1e = 1,
      W1e = 1,
      LU = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.TypeofEQString = 1)] = "TypeofEQString"),
        (e[(e.TypeofEQNumber = 2)] = "TypeofEQNumber"),
        (e[(e.TypeofEQBigInt = 4)] = "TypeofEQBigInt"),
        (e[(e.TypeofEQBoolean = 8)] = "TypeofEQBoolean"),
        (e[(e.TypeofEQSymbol = 16)] = "TypeofEQSymbol"),
        (e[(e.TypeofEQObject = 32)] = "TypeofEQObject"),
        (e[(e.TypeofEQFunction = 64)] = "TypeofEQFunction"),
        (e[(e.TypeofEQHostObject = 128)] = "TypeofEQHostObject"),
        (e[(e.TypeofNEString = 256)] = "TypeofNEString"),
        (e[(e.TypeofNENumber = 512)] = "TypeofNENumber"),
        (e[(e.TypeofNEBigInt = 1024)] = "TypeofNEBigInt"),
        (e[(e.TypeofNEBoolean = 2048)] = "TypeofNEBoolean"),
        (e[(e.TypeofNESymbol = 4096)] = "TypeofNESymbol"),
        (e[(e.TypeofNEObject = 8192)] = "TypeofNEObject"),
        (e[(e.TypeofNEFunction = 16384)] = "TypeofNEFunction"),
        (e[(e.TypeofNEHostObject = 32768)] = "TypeofNEHostObject"),
        (e[(e.EQUndefined = 65536)] = "EQUndefined"),
        (e[(e.EQNull = 131072)] = "EQNull"),
        (e[(e.EQUndefinedOrNull = 262144)] = "EQUndefinedOrNull"),
        (e[(e.NEUndefined = 524288)] = "NEUndefined"),
        (e[(e.NENull = 1048576)] = "NENull"),
        (e[(e.NEUndefinedOrNull = 2097152)] = "NEUndefinedOrNull"),
        (e[(e.Truthy = 4194304)] = "Truthy"),
        (e[(e.Falsy = 8388608)] = "Falsy"),
        (e[(e.IsUndefined = 16777216)] = "IsUndefined"),
        (e[(e.IsNull = 33554432)] = "IsNull"),
        (e[(e.IsUndefinedOrNull = 50331648)] = "IsUndefinedOrNull"),
        (e[(e.All = 134217727)] = "All"),
        (e[(e.BaseStringStrictFacts = 3735041)] = "BaseStringStrictFacts"),
        (e[(e.BaseStringFacts = 12582401)] = "BaseStringFacts"),
        (e[(e.StringStrictFacts = 16317953)] = "StringStrictFacts"),
        (e[(e.StringFacts = 16776705)] = "StringFacts"),
        (e[(e.EmptyStringStrictFacts = 12123649)] = "EmptyStringStrictFacts"),
        (e[(e.EmptyStringFacts = 12582401)] = "EmptyStringFacts"),
        (e[(e.NonEmptyStringStrictFacts = 7929345)] =
          "NonEmptyStringStrictFacts"),
        (e[(e.NonEmptyStringFacts = 16776705)] = "NonEmptyStringFacts"),
        (e[(e.BaseNumberStrictFacts = 3734786)] = "BaseNumberStrictFacts"),
        (e[(e.BaseNumberFacts = 12582146)] = "BaseNumberFacts"),
        (e[(e.NumberStrictFacts = 16317698)] = "NumberStrictFacts"),
        (e[(e.NumberFacts = 16776450)] = "NumberFacts"),
        (e[(e.ZeroNumberStrictFacts = 12123394)] = "ZeroNumberStrictFacts"),
        (e[(e.ZeroNumberFacts = 12582146)] = "ZeroNumberFacts"),
        (e[(e.NonZeroNumberStrictFacts = 7929090)] =
          "NonZeroNumberStrictFacts"),
        (e[(e.NonZeroNumberFacts = 16776450)] = "NonZeroNumberFacts"),
        (e[(e.BaseBigIntStrictFacts = 3734276)] = "BaseBigIntStrictFacts"),
        (e[(e.BaseBigIntFacts = 12581636)] = "BaseBigIntFacts"),
        (e[(e.BigIntStrictFacts = 16317188)] = "BigIntStrictFacts"),
        (e[(e.BigIntFacts = 16775940)] = "BigIntFacts"),
        (e[(e.ZeroBigIntStrictFacts = 12122884)] = "ZeroBigIntStrictFacts"),
        (e[(e.ZeroBigIntFacts = 12581636)] = "ZeroBigIntFacts"),
        (e[(e.NonZeroBigIntStrictFacts = 7928580)] =
          "NonZeroBigIntStrictFacts"),
        (e[(e.NonZeroBigIntFacts = 16775940)] = "NonZeroBigIntFacts"),
        (e[(e.BaseBooleanStrictFacts = 3733256)] = "BaseBooleanStrictFacts"),
        (e[(e.BaseBooleanFacts = 12580616)] = "BaseBooleanFacts"),
        (e[(e.BooleanStrictFacts = 16316168)] = "BooleanStrictFacts"),
        (e[(e.BooleanFacts = 16774920)] = "BooleanFacts"),
        (e[(e.FalseStrictFacts = 12121864)] = "FalseStrictFacts"),
        (e[(e.FalseFacts = 12580616)] = "FalseFacts"),
        (e[(e.TrueStrictFacts = 7927560)] = "TrueStrictFacts"),
        (e[(e.TrueFacts = 16774920)] = "TrueFacts"),
        (e[(e.SymbolStrictFacts = 7925520)] = "SymbolStrictFacts"),
        (e[(e.SymbolFacts = 16772880)] = "SymbolFacts"),
        (e[(e.ObjectStrictFacts = 7888800)] = "ObjectStrictFacts"),
        (e[(e.ObjectFacts = 16736160)] = "ObjectFacts"),
        (e[(e.FunctionStrictFacts = 7880640)] = "FunctionStrictFacts"),
        (e[(e.FunctionFacts = 16728e3)] = "FunctionFacts"),
        (e[(e.VoidFacts = 9830144)] = "VoidFacts"),
        (e[(e.UndefinedFacts = 26607360)] = "UndefinedFacts"),
        (e[(e.NullFacts = 42917664)] = "NullFacts"),
        (e[(e.EmptyObjectStrictFacts = 83427327)] = "EmptyObjectStrictFacts"),
        (e[(e.EmptyObjectFacts = 83886079)] = "EmptyObjectFacts"),
        (e[(e.UnknownFacts = 83886079)] = "UnknownFacts"),
        (e[(e.AllTypeofNE = 556800)] = "AllTypeofNE"),
        (e[(e.OrFactsMask = 8256)] = "OrFactsMask"),
        (e[(e.AndFactsMask = 134209471)] = "AndFactsMask"),
        e
      ))(LU || {}),
      cae = new Map(
        Object.entries({
          string: 256,
          number: 512,
          bigint: 1024,
          boolean: 2048,
          symbol: 4096,
          undefined: 524288,
          object: 8192,
          function: 16384,
        }),
      ),
      kU = ((e) => (
        (e[(e.Normal = 0)] = "Normal"),
        (e[(e.Contextual = 1)] = "Contextual"),
        (e[(e.Inferential = 2)] = "Inferential"),
        (e[(e.SkipContextSensitive = 4)] = "SkipContextSensitive"),
        (e[(e.SkipGenericFunctions = 8)] = "SkipGenericFunctions"),
        (e[(e.IsForSignatureHelp = 16)] = "IsForSignatureHelp"),
        (e[(e.RestBindingElement = 32)] = "RestBindingElement"),
        (e[(e.TypeOnly = 64)] = "TypeOnly"),
        e
      ))(kU || {}),
      wU = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.BivariantCallback = 1)] = "BivariantCallback"),
        (e[(e.StrictCallback = 2)] = "StrictCallback"),
        (e[(e.IgnoreReturnTypes = 4)] = "IgnoreReturnTypes"),
        (e[(e.StrictArity = 8)] = "StrictArity"),
        (e[(e.StrictTopSignature = 16)] = "StrictTopSignature"),
        (e[(e.Callback = 3)] = "Callback"),
        e
      ))(wU || {}),
      fHe = j8(z1e, hHe),
      OU = new Map(
        Object.entries({
          Uppercase: 0,
          Lowercase: 1,
          Capitalize: 2,
          Uncapitalize: 3,
          NoInfer: 4,
        }),
      ),
      F1e = class {};
    function mHe() {
      this.flags = 0;
    }
    function ls(e) {
      return (e.id || ((e.id = w1e), w1e++), e.id);
    }
    function Ta(e) {
      return (e.id || ((e.id = k1e), k1e++), e.id);
    }
    function WU(e, t) {
      const r = my(e);
      return r === 1 || (t && r === 2);
    }
    function dae(e) {
      var t = [],
        r = (n) => {
          t.push(n);
        },
        i,
        o,
        s = Rd.getSymbolConstructor(),
        l = Rd.getTypeConstructor(),
        u = Rd.getSignatureConstructor(),
        d = 0,
        _ = 0,
        h = 0,
        g = 0,
        E = 0,
        A = 0,
        R,
        N,
        P = !1,
        k = da(),
        W = [1],
        O = e.getCompilerOptions(),
        G = Ga(O),
        j = bu(O),
        J = !!O.experimentalDecorators,
        Z = Jk(O),
        q = MV(O),
        ye = PI(O),
        ie = Vd(O, "strictNullChecks"),
        K = Vd(O, "strictFunctionTypes"),
        pe = Vd(O, "strictBindCallApply"),
        de = Vd(O, "strictPropertyInitialization"),
        fe = Vd(O, "strictBuiltinIteratorReturn"),
        ve = Vd(O, "noImplicitAny"),
        xe = Vd(O, "noImplicitThis"),
        X = Vd(O, "useUnknownInCatchVariables"),
        Ce = O.exactOptionalPropertyTypes,
        Je = !!O.noUncheckedSideEffectImports,
        Se = Qht(),
        re = Ovt(),
        be = zz(),
        Ne = mle(O, be.syntacticBuilderResolver),
        Be = Gre({
          evaluateElementAccessExpression: xyt,
          evaluateEntityNameExpression: F3e,
        }),
        lt = da(),
        ce = ja(4, "undefined");
      ce.declarations = [];
      var Re = ja(1536, "globalThis", 8);
      ((Re.exports = lt), (Re.declarations = []), lt.set(Re.escapedName, Re));
      var _e = ja(4, "arguments"),
        je = ja(4, "require"),
        Ge = O.verbatimModuleSyntax
          ? "verbatimModuleSyntax"
          : "isolatedModules",
        We = !O.verbatimModuleSyntax,
        at,
        Wt,
        cn = 0,
        gn,
        Kn = 0,
        _t = QV({
          compilerOptions: O,
          requireSymbol: je,
          argumentsSymbol: _e,
          globals: lt,
          getSymbolOfDeclaration: Wr,
          error: Qe,
          getRequiresScopeChangeCache: fE,
          setRequiresScopeChangeCache: xC,
          lookup: Sd,
          onPropertyWithInvalidInitializer: iL,
          onFailedToResolveSymbol: zr,
          onSuccessfullyResolvedSymbol: Ru,
        }),
        en = QV({
          compilerOptions: O,
          requireSymbol: je,
          argumentsSymbol: _e,
          globals: lt,
          getSymbolOfDeclaration: Wr,
          error: Qe,
          getRequiresScopeChangeCache: fE,
          setRequiresScopeChangeCache: xC,
          lookup: vmt,
        });
      const ir = {
        getNodeCount: () =>
          gu(e.getSourceFiles(), (n, a) => n + a.nodeCount, 0),
        getIdentifierCount: () =>
          gu(e.getSourceFiles(), (n, a) => n + a.identifierCount, 0),
        getSymbolCount: () =>
          gu(e.getSourceFiles(), (n, a) => n + a.symbolCount, _),
        getTypeCount: () => d,
        getInstantiationCount: () => h,
        getRelationCacheSizes: () => ({
          assignable: qd.size,
          identity: Jd.size,
          subtype: H_.size,
          strictSubtype: cl.size,
        }),
        isUndefinedSymbol: (n) => n === ce,
        isArgumentsSymbol: (n) => n === _e,
        isUnknownSymbol: (n) => n === ne,
        getMergedSymbol: os,
        symbolIsValue: An,
        getDiagnostics: q3e,
        getGlobalDiagnostics: $yt,
        getRecursionIdentity: MY,
        getUnmatchedProperties: F_e,
        getTypeOfSymbolAtLocation: (n, a) => {
          const c = jo(a);
          return c ? Npt(n, c) : nt;
        },
        getTypeOfSymbol: _r,
        getSymbolsOfParameterPropertyDeclaration: (n, a) => {
          const c = jo(n, to);
          return c === void 0
            ? C.fail(
                "Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.",
              )
            : (C.assert(Np(c, c.parent)), eA(c, Cl(a)));
        },
        getDeclaredTypeOfSymbol: qs,
        getPropertiesOfType: bs,
        getPropertyOfType: (n, a) => Ea(n, Cl(a)),
        getPrivateIdentifierPropertyOfType: (n, a, c) => {
          const p = jo(c);
          if (!p) return;
          const m = Cl(a),
            v = L5(m, p);
          return v ? f$(n, v) : void 0;
        },
        getTypeOfPropertyOfType: (n, a) => _n(n, Cl(a)),
        getIndexInfoOfType: (n, a) => Vg(n, a === 0 ? gt : Bt),
        getIndexInfosOfType: Xd,
        getIndexInfosOfIndexSymbol: sY,
        getSignaturesOfType: na,
        getIndexTypeOfType: (n, a) => q0(n, a === 0 ? gt : Bt),
        getIndexType: (n) => b_(n),
        getBaseTypes: Zm,
        getBaseTypeOfLiteralType: zy,
        getWidenedType: $p,
        getWidenedLiteralType: Z0,
        fillMissingTypeArguments: Bv,
        getTypeFromTypeNode: (n) => {
          const a = jo(n, Ri);
          return a ? Ji(a) : nt;
        },
        getParameterType: Lh,
        getParameterIdentifierInfoAtPosition: fht,
        getPromisedTypeOfPromise: p8,
        getAwaitedType: (n) => pR(n),
        getReturnTypeOfSignature: fs,
        isNullableType: P5,
        getNullableType: h5,
        getNonNullableType: By,
        getNonOptionalType: wY,
        getTypeArguments: rl,
        typeToTypeNode: be.typeToTypeNode,
        typePredicateToTypePredicateNode: be.typePredicateToTypePredicateNode,
        indexInfoToIndexSignatureDeclaration:
          be.indexInfoToIndexSignatureDeclaration,
        signatureToSignatureDeclaration: be.signatureToSignatureDeclaration,
        symbolToEntityName: be.symbolToEntityName,
        symbolToExpression: be.symbolToExpression,
        symbolToNode: be.symbolToNode,
        symbolToTypeParameterDeclarations: be.symbolToTypeParameterDeclarations,
        symbolToParameterDeclaration: be.symbolToParameterDeclaration,
        typeParameterToDeclaration: be.typeParameterToDeclaration,
        getSymbolsInScope: (n, a) => {
          const c = jo(n);
          return c ? Qyt(c, a) : [];
        },
        getSymbolAtLocation: (n) => {
          const a = jo(n);
          return a ? sm(a, !0) : void 0;
        },
        getIndexInfosAtLocation: (n) => {
          const a = jo(n);
          return a ? avt(a) : void 0;
        },
        getShorthandAssignmentValueSymbol: (n) => {
          const a = jo(n);
          return a ? svt(a) : void 0;
        },
        getExportSpecifierLocalTargetSymbol: (n) => {
          const a = jo(n, ou);
          return a ? lvt(a) : void 0;
        },
        getExportSymbolOfSymbol(n) {
          return os(n.exportSymbol || n);
        },
        getTypeAtLocation: (n) => {
          const a = jo(n);
          return a ? mR(a) : nt;
        },
        getTypeOfAssignmentPattern: (n) => {
          const a = jo(n, zN);
          return (a && j$(a)) || nt;
        },
        getPropertySymbolOfDestructuringAssignment: (n) => {
          const a = jo(n, He);
          return a ? cvt(a) : void 0;
        },
        signatureToString: (n, a, c, p) => aT(n, jo(a), c, p),
        typeToString: (n, a, c) => ar(n, jo(a), c),
        symbolToString: (n, a, c, p) => uo(n, jo(a), c, p),
        typePredicateToString: (n, a, c) => K_(n, jo(a), c),
        writeSignature: (n, a, c, p, m, v, I, w) =>
          aT(n, jo(a), c, p, m, v, I, w),
        writeType: (n, a, c, p, m, v, I) => ar(n, jo(a), c, p, m, v, I),
        writeSymbol: (n, a, c, p, m) => uo(n, jo(a), c, p, m),
        writeTypePredicate: (n, a, c, p) => K_(n, jo(a), c, p),
        getAugmentedPropertiesOfType: Rye,
        getRootSymbols: e7e,
        getSymbolOfExpando: v$,
        getContextualType: (n, a) => {
          const c = jo(n, St);
          if (c) return a & 4 ? Zr(c, () => Hu(c, a)) : Hu(c, a);
        },
        getContextualTypeForObjectLiteralElement: (n) => {
          const a = jo(n, ny);
          return a ? mge(a, void 0) : void 0;
        },
        getContextualTypeForArgumentAtIndex: (n, a) => {
          const c = jo(n, gS);
          return c && uge(c, a);
        },
        getContextualTypeForJsxAttribute: (n) => {
          const a = jo(n, EF);
          return a && h6e(a, void 0);
        },
        isContextSensitive: Cf,
        getTypeOfPropertyOfContextualType: tS,
        getFullyQualifiedName: Nv,
        getResolvedSignature: (n, a, c) => Ai(n, a, c, 0),
        getCandidateSignaturesForStringLiteralCompletions: lo,
        getResolvedSignatureForSignatureHelp: (n, a, c) =>
          zt(n, () => Ai(n, a, c, 16)),
        getExpandedParameters: QOe,
        hasEffectiveRestParameter: ng,
        containsArgumentsReference: Nhe,
        getConstantValue: (n) => {
          const a = jo(n, a7e);
          return a ? q$(a) : void 0;
        },
        isValidPropertyAccess: (n, a) => {
          const c = jo(n, dte);
          return !!c && Smt(c, Cl(a));
        },
        isValidPropertyAccessForCompletions: (n, a, c) => {
          const p = jo(n, qr);
          return !!p && q6e(p, a, c);
        },
        getSignatureFromDeclaration: (n) => {
          const a = jo(n, Yo);
          return a ? Df(a) : void 0;
        },
        isImplementationOfOverload: (n) => {
          const a = jo(n, Yo);
          return a ? i7e(a) : void 0;
        },
        getImmediateAliasedSymbol: a$,
        getAliasedSymbol: ud,
        getEmitResolver: rL,
        requiresAddingImplicitUndefined: oB,
        getExportsOfModule: jx,
        getExportsAndPropertiesOfModule: MC,
        forEachExportAndPropertyOfModule: Ux,
        getSymbolWalker: rae(Klt, nm, fs, Zm, Dh, _r, fu, Uu, Lu, rl),
        getAmbientModules: Abt,
        getJsxIntrinsicTagNamesAt: nmt,
        isOptionalParameter: (n) => {
          const a = jo(n, to);
          return a ? NW(a) : !1;
        },
        tryGetMemberInModuleExports: (n, a) => cA(Cl(n), a),
        tryGetMemberInModuleExportsAndProperties: (n, a) => Hx(Cl(n), a),
        tryFindAmbientModule: (n) => yWe(n, !0),
        getApparentType: Du,
        getUnionType: pi,
        isTypeAssignableTo: aa,
        createAnonymousType: bl,
        createSignature: y_,
        createSymbol: ja,
        createIndexInfo: jg,
        getAnyType: () => Ue,
        getStringType: () => gt,
        getStringLiteralType: Sp,
        getNumberType: () => Bt,
        getNumberLiteralType: Ch,
        getBigIntType: () => gr,
        getBigIntLiteralType: r5,
        getUnknownType: () => Nt,
        createPromiseType: V5,
        createArrayType: Yd,
        getElementTypeOfArrayType: m5,
        getBooleanType: () => jt,
        getFalseType: (n) => (n ? tr : Jn),
        getTrueType: (n) => (n ? ft : Mt),
        getVoidType: () => In,
        getUndefinedType: () => he,
        getNullType: () => Xt,
        getESSymbolType: () => Qt,
        getNeverType: () => yn,
        getNonPrimitiveType: () => Ln,
        getOptionalType: () => xt,
        getPromiseType: () => $z(!1),
        getPromiseLikeType: () => VWe(!1),
        getAnyAsyncIterableType: () => {
          const n = Qz(!1);
          if (n !== Zt) return Ly(n, [Ue, Ue, Ue]);
        },
        isSymbolAccessible: oT,
        isArrayType: im,
        isTupleType: Ka,
        isArrayLikeType: jv,
        isEmptyAnonymousObjectType: tg,
        isTypeInvalidDueToUnionDiscriminant: Clt,
        getExactOptionalProperties: iut,
        getAllPossiblePropertiesOfTypes: Nlt,
        getSuggestedSymbolForNonexistentProperty: Rge,
        getSuggestedSymbolForNonexistentJSXAttribute: V6e,
        getSuggestedSymbolForNonexistentSymbol: (n, a, c) => U6e(n, Cl(a), c),
        getSuggestedSymbolForNonexistentModule: Dge,
        getSuggestedSymbolForNonexistentClassMember: G6e,
        getBaseConstraintOfType: Ld,
        getDefaultFromTypeParameter: (n) =>
          n && n.flags & 262144 ? EE(n) : void 0,
        resolveName(n, a, c, p) {
          return _t(a, Cl(n), c, void 0, !1, p);
        },
        getJsxNamespace: (n) => Gi(qm(n)),
        getJsxFragmentFactory: (n) => {
          const a = Pye(n);
          return a && Gi(Lu(a).escapedText);
        },
        getAccessibleSymbolChain: Lv,
        getTypePredicateOfSignature: nm,
        resolveExternalModuleName: (n) => {
          const a = jo(n, St);
          return a && uu(a, a, !0);
        },
        resolveExternalModuleSymbol: Tp,
        tryGetThisTypeAt: (n, a, c) => {
          const p = jo(n);
          return p && sge(p, a, c);
        },
        getTypeArgumentConstraint: (n) => {
          const a = jo(n, Ri);
          return a && k_t(a);
        },
        getSuggestionDiagnostics: (n, a) => {
          const c =
            jo(n, Yi) || C.fail("Could not determine parsed source file.");
          if (mD(c, O, e)) return ae;
          let p;
          try {
            return (
              (i = a),
              Iye(c),
              C.assert(!!(Vr(c).flags & 1)),
              (p = Xr(p, $1.getDiagnostics(c.fileName))),
              d3e(H3e(c), (m, v, I) => {
                !fI(m) &&
                  !U3e(v, !!(m.flags & 33554432)) &&
                  (p || (p = [])).push({ ...I, category: 2 });
              }),
              p || ae
            );
          } finally {
            i = void 0;
          }
        },
        runWithCancellationToken: (n, a) => {
          try {
            return ((i = n), a(ir));
          } finally {
            i = void 0;
          }
        },
        getLocalTypeParametersOfClassOrInterfaceOrTypeAlias: Na,
        isDeclarationVisible: X_,
        isPropertyAccessible: Nge,
        getTypeOnlyAliasDeclaration: Ah,
        getMemberOverrideModifierStatus: hyt,
        isTypeParameterPossiblyReferenced: a5,
        typeHasCallOrConstructSignatures: U$,
        getSymbolFlags: dp,
        getTypeArgumentsForResolvedSignature: Di,
        isLibType: kC,
      };
      function Di(n) {
        if (n.mapper !== void 0)
          return Wy((n.target || n).typeParameters, n.mapper);
      }
      function lo(n, a) {
        const c = new Set(),
          p = [];
        Zr(a, () => Ai(n, p, void 0, 0));
        for (const m of p) c.add(m);
        ((p.length = 0), zt(a, () => Ai(n, p, void 0, 0)));
        for (const m of p) c.add(m);
        return Co(c);
      }
      function zt(n, a) {
        if (((n = Dn(n, eG)), n)) {
          const c = [],
            p = [];
          for (; n; ) {
            const v = Vr(n);
            if (
              (c.push([v, v.resolvedSignature]),
              (v.resolvedSignature = void 0),
              Rb(n))
            ) {
              const I = Jr(Wr(n)),
                w = I.type;
              (p.push([I, w]), (I.type = void 0));
            }
            n = Dn(n.parent, eG);
          }
          const m = a();
          for (const [v, I] of c) v.resolvedSignature = I;
          for (const [v, I] of p) v.type = I;
          return m;
        }
        return a();
      }
      function Zr(n, a) {
        const c = Dn(n, gS);
        if (c) {
          let m = n;
          do ((Vr(m).skipDirectInference = !0), (m = m.parent));
          while (m && m !== c);
        }
        P = !0;
        const p = zt(n, a);
        if (((P = !1), c)) {
          let m = n;
          do ((Vr(m).skipDirectInference = void 0), (m = m.parent));
          while (m && m !== c);
        }
        return p;
      }
      function Ai(n, a, c, p) {
        const m = jo(n, gS);
        at = c;
        const v = m ? ZC(m, a, p) : void 0;
        return ((at = void 0), v);
      }
      var Ni = new Map(),
        Pr = new Map(),
        Ci = new Map(),
        $e = new Map(),
        At = new Map(),
        mn = new Map(),
        dr = new Map(),
        ri = new Map(),
        ai = new Map(),
        qi = new Map(),
        $o = new Map(),
        Ia = new Map(),
        Mn = new Map(),
        Uo = new Map(),
        ot = new Map(),
        Ft = [],
        le = new Map(),
        ht = new Set(),
        ne = ja(4, "unknown"),
        Fe = ja(0, "__resolving__"),
        it = new Map(),
        dt = new Map(),
        Lt = new Set(),
        Ue = Li(1, "any"),
        Rt = Li(1, "any", 262144, "auto"),
        It = Li(1, "any", void 0, "wildcard"),
        Ot = Li(1, "any", void 0, "blocked string"),
        nt = Li(1, "error"),
        Kt = Li(1, "unresolved"),
        Tr = Li(1, "any", 65536, "non-inferrable"),
        Oe = Li(1, "intrinsic"),
        Nt = Li(2, "unknown"),
        he = Li(32768, "undefined"),
        B = ie ? he : Li(32768, "undefined", 65536, "widening"),
        Ae = Li(32768, "undefined", void 0, "missing"),
        te = Ce ? Ae : he,
        xt = Li(32768, "undefined", void 0, "optional"),
        Xt = Li(65536, "null"),
        Pe = ie ? Xt : Li(65536, "null", 65536, "widening"),
        gt = Li(4, "string"),
        Bt = Li(8, "number"),
        gr = Li(64, "bigint"),
        tr = Li(512, "false", void 0, "fresh"),
        Jn = Li(512, "false"),
        ft = Li(512, "true", void 0, "fresh"),
        Mt = Li(512, "true");
      ((ft.regularType = Mt),
        (ft.freshType = ft),
        (Mt.regularType = Mt),
        (Mt.freshType = ft),
        (tr.regularType = Jn),
        (tr.freshType = tr),
        (Jn.regularType = Jn),
        (Jn.freshType = tr));
      var jt = pi([Jn, Mt]),
        Qt = Li(4096, "symbol"),
        In = Li(16384, "void"),
        yn = Li(131072, "never"),
        wt = Li(131072, "never", 262144, "silent"),
        En = Li(131072, "never", void 0, "implicit"),
        xn = Li(131072, "never", void 0, "unreachable"),
        Ln = Li(67108864, "object"),
        ln = pi([gt, Bt]),
        Ii = pi([gt, Bt, Qt]),
        ra = pi([Bt, gr]),
        sa = pi([gt, Bt, jt, gr, Xt, he]),
        zo = EA(["", ""], [Bt]),
        Bl = o5(
          (n) => (n.flags & 262144 ? Ndt(n) : n),
          () => "(restrictive mapper)",
        ),
        xl = o5(
          (n) => (n.flags & 262144 ? It : n),
          () => "(permissive mapper)",
        ),
        Ps = Li(131072, "never", void 0, "unique literal"),
        co = o5(
          (n) => (n.flags & 262144 ? Ps : n),
          () => "(unique literal mapper)",
        ),
        Go,
        Tc = o5(
          (n) => (Go && (n === Fs || n === Ee || n === Y) && Go(!0), n),
          () => "(unmeasurable reporter)",
        ),
        $s = o5(
          (n) => (Go && (n === Fs || n === Ee || n === Y) && Go(!1), n),
          () => "(unreliable reporter)",
        ),
        Ra = bl(void 0, k, ae, ae, ae),
        ec = bl(void 0, k, ae, ae, ae);
      ec.objectFlags |= 2048;
      var bf = bl(void 0, k, ae, ae, ae);
      bf.objectFlags |= 141440;
      var Lo = ja(2048, "__type");
      Lo.members = da();
      var fa = bl(Lo, k, ae, ae, ae),
        is = bl(void 0, k, ae, ae, ae),
        qa = ie ? pi([he, Xt, is]) : Nt,
        Zt = bl(void 0, k, ae, ae, ae);
      Zt.instantiations = new Map();
      var As = bl(void 0, k, ae, ae, ae);
      As.objectFlags |= 262144;
      var Hl = bl(void 0, k, ae, ae, ae),
        sc = bl(void 0, k, ae, ae, ae),
        vd = bl(void 0, k, ae, ae, ae),
        Fs = Vu(),
        Ee = Vu();
      Ee.constraint = Fs;
      var Y = Vu(),
        pt = Vu(),
        qt = Vu();
      qt.constraint = pt;
      var fn = MW(1, "<<unresolved>>", 0, Ue),
        ur = y_(void 0, void 0, void 0, ae, Ue, void 0, 0, 0),
        si = y_(void 0, void 0, void 0, ae, nt, void 0, 0, 0),
        Dr = y_(void 0, void 0, void 0, ae, Ue, void 0, 0, 0),
        Fn = y_(void 0, void 0, void 0, ae, wt, void 0, 0, 0),
        ro = jg(Bt, gt, !0),
        So = jg(gt, Ue, !1),
        Ns = new Map(),
        Da = {
          get yieldType() {
            return C.fail("Not supported");
          },
          get returnType() {
            return C.fail("Not supported");
          },
          get nextType() {
            return C.fail("Not supported");
          },
        },
        Qs = yT(Ue, Ue, Ue),
        Sc = yT(wt, wt, wt),
        fc = {
          iterableCacheKey: "iterationTypesOfAsyncIterable",
          iteratorCacheKey: "iterationTypesOfAsyncIterator",
          iteratorSymbolName: "asyncIterator",
          getGlobalIteratorType: cct,
          getGlobalIterableType: Qz,
          getGlobalIterableIteratorType: jWe,
          getGlobalIteratorObjectType: uct,
          getGlobalGeneratorType: pct,
          getGlobalBuiltinIteratorTypes: dct,
          resolveIterationType: (n, a) =>
            pR(
              n,
              a,
              f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member,
            ),
          mustHaveANextMethodDiagnostic:
            f.An_async_iterator_must_have_a_next_method,
          mustBeAMethodDiagnostic:
            f.The_0_property_of_an_async_iterator_must_be_a_method,
          mustHaveAValueDiagnostic:
            f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property,
        },
        Hs = {
          iterableCacheKey: "iterationTypesOfIterable",
          iteratorCacheKey: "iterationTypesOfIterator",
          iteratorSymbolName: "iterator",
          getGlobalIteratorType: fct,
          getGlobalIterableType: hY,
          getGlobalIterableIteratorType: UWe,
          getGlobalIteratorObjectType: hct,
          getGlobalGeneratorType: _ct,
          getGlobalBuiltinIteratorTypes: mct,
          resolveIterationType: (n, a) => n,
          mustHaveANextMethodDiagnostic: f.An_iterator_must_have_a_next_method,
          mustBeAMethodDiagnostic:
            f.The_0_property_of_an_iterator_must_be_a_method,
          mustHaveAValueDiagnostic:
            f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property,
        },
        Pl,
        vh = new Map(),
        Pd = new Map(),
        nf,
        op,
        ze,
        Jt,
        er,
        go,
        Za,
        es,
        Va,
        Mc,
        tl,
        Ll,
        ql,
        rf,
        bd,
        ld,
        jp,
        Au,
        Xf,
        G_,
        Cg,
        Ng,
        ap,
        Xc,
        bh,
        Tf,
        p_,
        oe,
        ut,
        tn,
        an,
        wn,
        or,
        ti,
        Ti,
        $i,
        z,
        Ve,
        kt,
        On,
        yo,
        ta,
        Eo,
        Vo,
        ml,
        Ca,
        cd,
        Up,
        Sf,
        Yf,
        Ty,
        Tv,
        Bu,
        V_,
        Th,
        Im,
        Hb,
        Xe,
        mt,
        Yt,
        Rn,
        Qn = new Map(),
        Lr = 0,
        Yn = 0,
        lr = 0,
        Oi = !1,
        Ro = 0,
        _i,
        Do,
        Qi,
        hl = [],
        sp = [],
        xm = [],
        Td = 0,
        Rm = [],
        Hp = [],
        b0 = [],
        f_ = 0,
        j_ = [],
        T0 = [],
        U_ = 0,
        TC = Sp(""),
        tL = Ch(0),
        SC = r5({ negative: !1, base10Value: "0" }),
        Mg = [],
        S0 = [],
        q1 = [],
        Sv = 0,
        J1 = !1,
        Dx = 0,
        nL = 10,
        K1 = [],
        Cx = [],
        E0 = [],
        EC = [],
        X1 = [],
        Nx = [],
        lE = [],
        qb = [],
        Mx = [],
        Px = [],
        cE = [],
        Jb = [],
        Ev = [],
        Sy = [],
        Ey = [],
        Ay = [],
        Kb = [],
        A0 = [],
        Y1 = [],
        I0 = 0,
        ns = cM(),
        $1 = cM(),
        AC = Kd(),
        Iy,
        xy,
        H_ = new Map(),
        cl = new Map(),
        qd = new Map(),
        lp = new Map(),
        Jd = new Map(),
        x0 = new Map(),
        Iu = [
          [".mts", ".mjs"],
          [".ts", ".js"],
          [".cts", ".cjs"],
          [".mjs", ".mjs"],
          [".js", ".js"],
          [".cjs", ".cjs"],
          [".tsx", O.jsx === 1 ? ".jsx" : ".js"],
          [".jsx", ".jsx"],
          [".json", ".json"],
        ];
      return (Wvt(), ir);
      function q_(n) {
        return !qr(n) || !He(n.name) || (!qr(n.expression) && !He(n.expression))
          ? !1
          : He(n.expression)
            ? Kr(n.expression) === "Symbol" &&
              fu(n.expression) === (UC("Symbol", 1160127, void 0) || ne)
            : He(n.expression.expression)
              ? Kr(n.expression.name) === "Symbol" &&
                Kr(n.expression.expression) === "globalThis" &&
                fu(n.expression.expression) === Re
              : !1;
      }
      function Gu(n) {
        return n ? ot.get(n) : void 0;
      }
      function Dm(n, a) {
        return (n && ot.set(n, a), a);
      }
      function qm(n) {
        if (n) {
          const a = Wn(n);
          if (a)
            if (jm(n)) {
              if (a.localJsxFragmentNamespace)
                return a.localJsxFragmentNamespace;
              const c = a.pragmas.get("jsxfrag");
              if (c) {
                const m = Mo(c) ? c[0] : c;
                if (
                  ((a.localJsxFragmentFactory = nx(m.arguments.factory, G)),
                  st(a.localJsxFragmentFactory, D0, Mu),
                  a.localJsxFragmentFactory)
                )
                  return (a.localJsxFragmentNamespace = Lu(
                    a.localJsxFragmentFactory,
                  ).escapedText);
              }
              const p = Pye(n);
              if (p)
                return (
                  (a.localJsxFragmentFactory = p),
                  (a.localJsxFragmentNamespace = Lu(p).escapedText)
                );
            } else {
              const c = R0(a);
              if (c) return (a.localJsxNamespace = c);
            }
        }
        return (
          Iy ||
            ((Iy = "React"),
            O.jsxFactory
              ? ((xy = nx(O.jsxFactory, G)),
                st(xy, D0),
                xy && (Iy = Lu(xy).escapedText))
              : O.reactNamespace && (Iy = Cl(O.reactNamespace))),
          xy ||
            (xy = L.createQualifiedName(
              L.createIdentifier(Gi(Iy)),
              "createElement",
            )),
          Iy
        );
      }
      function R0(n) {
        if (n.localJsxNamespace) return n.localJsxNamespace;
        const a = n.pragmas.get("jsx");
        if (a) {
          const c = Mo(a) ? a[0] : a;
          if (
            ((n.localJsxFactory = nx(c.arguments.factory, G)),
            st(n.localJsxFactory, D0, Mu),
            n.localJsxFactory)
          )
            return (n.localJsxNamespace = Lu(n.localJsxFactory).escapedText);
        }
      }
      function D0(n) {
        return (uh(n, -1, -1), kn(n, D0, void 0));
      }
      function rL(n, a, c) {
        return (c || q3e(n, a), re);
      }
      function IC(n, a, ...c) {
        const p = n ? Ar(n, a, ...c) : Il(a, ...c),
          m = ns.lookup(p);
        return m || (ns.add(p), p);
      }
      function Av(n, a, c, ...p) {
        const m = Qe(a, c, ...p);
        return ((m.skippedOn = n), m);
      }
      function dE(n, a, ...c) {
        return n ? Ar(n, a, ...c) : Il(a, ...c);
      }
      function Qe(n, a, ...c) {
        const p = dE(n, a, ...c);
        return (ns.add(p), p);
      }
      function Q1(n) {
        const c = Wn(n).fileName;
        return $l(c, [".cts", ".cjs"])
          ? f.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax
          : f.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript;
      }
      function Pg(n, a) {
        n ? ns.add(a) : $1.add({ ...a, category: 2 });
      }
      function Jm(n, a, c, ...p) {
        if (a.pos < 0 || a.end < 0) {
          if (!n) return;
          const m = Wn(a);
          Pg(n, "message" in c ? Oc(m, 0, 0, c, ...p) : IG(m, c));
          return;
        }
        Pg(n, "message" in c ? Ar(a, c, ...p) : hg(Wn(a), a, c));
      }
      function Iv(n, a, c, ...p) {
        const m = Qe(n, c, ...p);
        if (a) {
          const v = Ar(n, f.Did_you_forget_to_use_await);
          pa(m, v);
        }
        return m;
      }
      function Xb(n, a) {
        const c = Array.isArray(n) ? Ye(n, G9) : G9(n);
        return (
          c && pa(a, Ar(c, f.The_declaration_was_marked_as_deprecated_here)),
          $1.add(a),
          a
        );
      }
      function xu(n) {
        const a = Yc(n);
        return a && et(n.declarations) > 1
          ? a.flags & 64
            ? yt(n.declarations, Sh)
            : Vn(n.declarations, Sh)
          : (!!n.valueDeclaration && Sh(n.valueDeclaration)) ||
              (et(n.declarations) && Vn(n.declarations, Sh));
      }
      function Sh(n) {
        return !!(wE(n) & 536870912);
      }
      function Cm(n, a, c) {
        const p = Ar(n, f._0_is_deprecated, c);
        return Xb(a, p);
      }
      function C0(n, a, c, p) {
        const m = c
          ? Ar(n, f.The_signature_0_of_1_is_deprecated, p, c)
          : Ar(n, f._0_is_deprecated, p);
        return Xb(a, m);
      }
      function ja(n, a, c) {
        _++;
        const p = new s(n | 33554432, a);
        return ((p.links = new F1e()), (p.links.checkFlags = c || 0), p);
      }
      function Ef(n, a) {
        const c = ja(1, n);
        return ((c.links.type = a), c);
      }
      function xv(n, a) {
        const c = ja(4, n);
        return ((c.links.type = a), c);
      }
      function Z1(n) {
        let a = 0;
        return (
          n & 2 && (a |= 111551),
          n & 1 && (a |= 111550),
          n & 4 && (a |= 0),
          n & 8 && (a |= 900095),
          n & 16 && (a |= 110991),
          n & 32 && (a |= 899503),
          n & 64 && (a |= 788872),
          n & 256 && (a |= 899327),
          n & 128 && (a |= 899967),
          n & 512 && (a |= 110735),
          n & 8192 && (a |= 103359),
          n & 32768 && (a |= 46015),
          n & 65536 && (a |= 78783),
          n & 262144 && (a |= 526824),
          n & 524288 && (a |= 788968),
          n & 2097152 && (a |= 2097152),
          a
        );
      }
      function Ry(n, a) {
        (a.mergeId || ((a.mergeId = O1e), O1e++), (K1[a.mergeId] = n));
      }
      function uE(n) {
        const a = ja(n.flags, n.escapedName);
        return (
          (a.declarations = n.declarations ? n.declarations.slice() : []),
          (a.parent = n.parent),
          n.valueDeclaration && (a.valueDeclaration = n.valueDeclaration),
          n.constEnumOnlyModule && (a.constEnumOnlyModule = !0),
          n.members && (a.members = new Map(n.members)),
          n.exports && (a.exports = new Map(n.exports)),
          Ry(a, n),
          a
        );
      }
      function $f(n, a, c = !1) {
        if (!(n.flags & Z1(a.flags)) || (a.flags | n.flags) & 67108864) {
          if (a === n) return n;
          if (!(n.flags & 33554432)) {
            const v = mc(n);
            if (v === ne) return a;
            if (!(v.flags & Z1(a.flags)) || (a.flags | v.flags) & 67108864)
              n = uE(v);
            else return (p(n, a), a);
          }
          (a.flags & 512 &&
            n.flags & 512 &&
            n.constEnumOnlyModule &&
            !a.constEnumOnlyModule &&
            (n.constEnumOnlyModule = !1),
            (n.flags |= a.flags),
            a.valueDeclaration && ZN(n, a.valueDeclaration),
            Xr(n.declarations, a.declarations),
            a.members &&
              (n.members || (n.members = da()), m_(n.members, a.members, c)),
            a.exports &&
              (n.exports || (n.exports = da()), m_(n.exports, a.exports, c, n)),
            c || Ry(n, a));
        } else
          n.flags & 1024
            ? n !== Re &&
              Qe(
                a.declarations && Oo(a.declarations[0]),
                f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,
                uo(n),
              )
            : p(n, a);
        return n;
        function p(v, I) {
          const w = !!(v.flags & 384 || I.flags & 384),
            U = !!(v.flags & 2 || I.flags & 2),
            H = w
              ? f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations
              : U
                ? f.Cannot_redeclare_block_scoped_variable_0
                : f.Duplicate_identifier_0,
            Q = I.declarations && Wn(I.declarations[0]),
            Ie = v.declarations && Wn(v.declarations[0]),
            Te = VN(Q, O.checkJs),
            Ze = VN(Ie, O.checkJs),
            Tt = uo(I);
          if (Q && Ie && Pl && !w && Q !== Ie) {
            const Dt = Zg(Q.path, Ie.path) === -1 ? Q : Ie,
              $t = Dt === Q ? Ie : Q,
              Tn = KA(Pl, `${Dt.path}|${$t.path}`, () => ({
                firstFile: Dt,
                secondFile: $t,
                conflictingSymbols: new Map(),
              })),
              nr = KA(Tn.conflictingSymbols, Tt, () => ({
                isBlockScoped: U,
                firstFileLocations: [],
                secondFileLocations: [],
              }));
            (Te || m(nr.firstFileLocations, I),
              Ze || m(nr.secondFileLocations, v));
          } else (Te || Lg(I, H, Tt, v), Ze || Lg(v, H, Tt, I));
        }
        function m(v, I) {
          if (I.declarations) for (const w of I.declarations) kf(v, w);
        }
      }
      function Lg(n, a, c, p) {
        Ye(n.declarations, (m) => {
          N0(m, a, c, p.declarations);
        });
      }
      function N0(n, a, c, p) {
        const m = (zT(n, !1) ? LG(n) : Oo(n)) || n,
          v = IC(m, a, c);
        for (const I of p || ae) {
          const w = (zT(I, !1) ? LG(I) : Oo(I)) || I;
          if (w === m) continue;
          v.relatedInformation = v.relatedInformation || [];
          const U = Ar(w, f._0_was_also_declared_here, c),
            H = Ar(w, f.and_here);
          et(v.relatedInformation) >= 5 ||
            yt(v.relatedInformation, (Q) => vM(Q, H) === 0 || vM(Q, U) === 0) ||
            pa(v, et(v.relatedInformation) ? H : U);
        }
      }
      function Rv(n, a) {
        if (!n?.size) return a;
        if (!a?.size) return n;
        const c = da();
        return (m_(c, n), m_(c, a), c);
      }
      function m_(n, a, c = !1, p) {
        a.forEach((m, v) => {
          const I = n.get(v),
            w = I ? $f(I, m, c) : os(m);
          (p && I && (w.parent = p), n.set(v, w));
        });
      }
      function pE(n) {
        var a, c, p;
        const m = n.parent;
        if (((a = m.symbol.declarations) == null ? void 0 : a[0]) !== m) {
          C.assert(m.symbol.declarations.length > 1);
          return;
        }
        if (M_(m)) m_(lt, m.symbol.exports);
        else {
          const v =
            n.parent.parent.flags & 33554432
              ? void 0
              : f.Invalid_module_name_in_augmentation_module_0_cannot_be_found;
          let I = bp(n, n, v, !1, !0);
          if (!I) return;
          if (((I = Tp(I)), I.flags & 1920))
            if (yt(op, (w) => I === w.symbol)) {
              const w = $f(m.symbol, I, !0);
              (ze || (ze = new Map()), ze.set(n.text, w));
            } else {
              if (
                (c = I.exports) != null &&
                c.get("__export") &&
                (p = m.symbol.exports) != null &&
                p.size
              ) {
                const w = hhe(I, "resolvedExports");
                for (const [U, H] of Co(m.symbol.exports.entries()))
                  w.has(U) && !I.exports.has(U) && $f(w.get(U), H);
              }
              $f(I, m.symbol);
            }
          else
            Qe(
              n,
              f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,
              n.text,
            );
        }
      }
      function M0() {
        const n = ce.escapedName,
          a = lt.get(n);
        a
          ? Ye(a.declarations, (c) => {
              kI(c) ||
                ns.add(
                  Ar(
                    c,
                    f.Declaration_name_conflicts_with_built_in_global_identifier_0,
                    Gi(n),
                  ),
                );
            })
          : lt.set(n, ce);
      }
      function Jr(n) {
        if (n.flags & 33554432) return n.links;
        const a = Ta(n);
        return Cx[a] ?? (Cx[a] = new F1e());
      }
      function Vr(n) {
        const a = ls(n);
        return E0[a] || (E0[a] = new mHe());
      }
      function Sd(n, a, c) {
        if (c) {
          const p = os(n.get(a));
          if (p && (p.flags & c || (p.flags & 2097152 && dp(p) & c))) return p;
        }
      }
      function eA(n, a) {
        const c = n.parent,
          p = n.parent.parent,
          m = Sd(c.locals, a, 111551),
          v = Sd($_(p.symbol), a, 111551);
        return m && v
          ? [m, v]
          : C.fail(
              "There should exist two symbols, one as property declaration and one as parameter declaration",
            );
      }
      function Dy(n, a) {
        const c = Wn(n),
          p = Wn(a),
          m = sh(n);
        if (c !== p) {
          if (
            (j && (c.externalModuleIndicator || p.externalModuleIndicator)) ||
            !O.outFile ||
            EI(a) ||
            n.flags & 33554432 ||
            I(a, n)
          )
            return !0;
          const H = e.getSourceFiles();
          return H.indexOf(c) <= H.indexOf(p);
        }
        if (a.flags & 16777216 || EI(a) || H_e(a)) return !0;
        if (
          n.pos <= a.pos &&
          !(Po(n) && lk(a.parent) && !n.initializer && !n.exclamationToken)
        ) {
          if (n.kind === 209) {
            const H = VT(a, 209);
            return H
              ? Dn(H, Ha) !== Dn(n, Ha) || n.pos < H.pos
              : Dy(VT(n, 261), a);
          } else {
            if (n.kind === 261) return !v(n, a);
            if (ui(n)) {
              const H = Dn(a, (Q) =>
                Q === n
                  ? "quit"
                  : va(Q)
                    ? Q.parent.parent === n
                    : !J &&
                      Wc(Q) &&
                      (Q.parent === n ||
                        (Nl(Q.parent) && Q.parent.parent === n) ||
                        (W2(Q.parent) && Q.parent.parent === n) ||
                        (Po(Q.parent) && Q.parent.parent === n) ||
                        (to(Q.parent) && Q.parent.parent.parent === n)),
              );
              return H
                ? !J && Wc(H)
                  ? !!Dn(a, (Q) => (Q === H ? "quit" : Yo(Q) && !WT(Q)))
                  : !1
                : !0;
            } else {
              if (Po(n)) return !U(n, a, !1);
              if (Np(n, n.parent)) return !(q && hd(n) === hd(a) && I(a, n));
            }
          }
          return !0;
        }
        if (
          a.parent.kind === 282 ||
          (a.parent.kind === 278 && a.parent.isExportEquals) ||
          (a.kind === 278 && a.isExportEquals)
        )
          return !0;
        if (I(a, n))
          return q && hd(n) && (Po(n) || Np(n, n.parent)) ? !U(n, a, !0) : !0;
        return !1;
        function v(H, Q) {
          switch (H.parent.parent.kind) {
            case 244:
            case 249:
            case 251:
              if (Km(Q, H, m)) return !0;
              break;
          }
          const Ie = H.parent.parent;
          return QE(Ie) && Km(Q, Ie.expression, m);
        }
        function I(H, Q) {
          return w(H, Q);
        }
        function w(H, Q) {
          return !!Dn(H, (Ie) => {
            if (Ie === m) return "quit";
            if (Yo(Ie)) return !WT(Ie);
            if (Ql(Ie)) return Q.pos < H.pos;
            const Te = ni(Ie.parent, Po);
            if (Te && Te.initializer === Ie) {
              if (ua(Ie.parent)) {
                if (Q.kind === 175) return !0;
                if (Po(Q) && hd(H) === hd(Q)) {
                  const Dt = Q.name;
                  if (He(Dt) || eo(Dt)) {
                    const $t = _r(Wr(Q)),
                      Tn = Un(Q.parent.members, Ql);
                    if (Tyt(Dt, $t, Tn, Q.parent.pos, Ie.pos)) return !0;
                  }
                }
              } else if (!(Q.kind === 173 && !ua(Q)) || hd(H) !== hd(Q))
                return !0;
            }
            const Ze = ni(Ie.parent, Wc);
            if (Ze && Ze.expression === Ie) {
              if (to(Ze.parent))
                return w(Ze.parent.parent.parent, Q) ? !0 : "quit";
              if (Nl(Ze.parent)) return w(Ze.parent.parent, Q) ? !0 : "quit";
            }
            return !1;
          });
        }
        function U(H, Q, Ie) {
          return Q.end > H.end
            ? !1
            : Dn(Q, (Ze) => {
                if (Ze === H) return "quit";
                switch (Ze.kind) {
                  case 220:
                    return !0;
                  case 173:
                    return Ie &&
                      ((Po(H) && Ze.parent === H.parent) ||
                        (Np(H, H.parent) && Ze.parent === H.parent.parent))
                      ? "quit"
                      : !0;
                  case 242:
                    switch (Ze.parent.kind) {
                      case 178:
                      case 175:
                      case 179:
                        return !0;
                      default:
                        return !1;
                    }
                  default:
                    return !1;
                }
              }) === void 0;
        }
      }
      function fE(n) {
        return Vr(n).declarationRequiresScopeChange;
      }
      function xC(n, a) {
        Vr(n).declarationRequiresScopeChange = a;
      }
      function iL(n, a, c, p) {
        return q
          ? !1
          : ((n && !p && tA(n, a, a)) ||
              Qe(
                n,
                n && c.type && N2(c.type, n.pos)
                  ? f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor
                  : f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,
                ws(c.name),
                vp(a),
              ),
            !0);
      }
      function zr(n, a, c, p) {
        const m = Bo(a) ? a : a.escapedText;
        r(() => {
          if (
            !n ||
            (n.parent.kind !== 325 &&
              !tA(n, m, a) &&
              !Yb(n) &&
              !RC(n, m, c) &&
              !J_(n, m) &&
              !Qb(n, m, c) &&
              !Eh(n, m, c) &&
              !Lx(n, m, c))
          ) {
            let v, I;
            if (
              (a && ((I = gmt(a)), I && Qe(n, p, vp(a), I)),
              !I &&
                Dx < nL &&
                ((v = U6e(n, m, c)),
                v?.valueDeclaration &&
                  yu(v.valueDeclaration) &&
                  M_(v.valueDeclaration) &&
                  (v = void 0),
                v))
            ) {
              const U = uo(v),
                H = Ige(n, v, !1),
                Q =
                  c === 1920 || (a && typeof a != "string" && Os(a))
                    ? f.Cannot_find_namespace_0_Did_you_mean_1
                    : H
                      ? f.Could_not_find_name_0_Did_you_mean_1
                      : f.Cannot_find_name_0_Did_you_mean_1,
                Ie = dE(n, Q, vp(a), U);
              ((Ie.canonicalHead = Jte(p, vp(a))),
                Pg(!H, Ie),
                v.valueDeclaration &&
                  pa(Ie, Ar(v.valueDeclaration, f._0_is_declared_here, U)));
            }
            (!v && !I && a && Qe(n, p, vp(a)), Dx++);
          }
        });
      }
      function Ru(n, a, c, p, m, v) {
        r(() => {
          var I;
          const w = a.escapedName,
            U = p && Yi(p) && Pp(p);
          if (
            n &&
            (c & 2 || ((c & 32 || c & 384) && (c & 111551) === 111551))
          ) {
            const H = Et(a);
            (H.flags & 2 || H.flags & 32 || H.flags & 384) && Af(H, n);
          }
          if (U && (c & 111551) === 111551 && !(n.flags & 16777216)) {
            const H = os(a);
            et(H.declarations) &&
              Vn(
                H.declarations,
                (Q) => yw(Q) || (Yi(Q) && !!Q.symbol.globalExports),
              ) &&
              Jm(
                !O.allowUmdGlobalAccess,
                n,
                f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,
                Gi(w),
              );
          }
          if (m && !v && (c & 111551) === 111551) {
            const H = os(eY(a)),
              Q = Jh(m);
            H === Wr(m)
              ? Qe(n, f.Parameter_0_cannot_reference_itself, ws(m.name))
              : H.valueDeclaration &&
                H.valueDeclaration.pos > m.pos &&
                Q.parent.locals &&
                Sd(Q.parent.locals, H.escapedName, c) === H &&
                Qe(
                  n,
                  f.Parameter_0_cannot_reference_identifier_1_declared_after_it,
                  ws(m.name),
                  ws(n),
                );
          }
          if (
            n &&
            c & 111551 &&
            a.flags & 2097152 &&
            !(a.flags & 111551) &&
            !HT(n)
          ) {
            const H = Ah(a, 111551);
            if (H) {
              const Q =
                  H.kind === 282 || H.kind === 279 || H.kind === 281
                    ? f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type
                    : f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,
                Ie = Gi(w);
              Wo(Qe(n, Q, Ie), H, Ie);
            }
          }
          if (O.isolatedModules && a && U && (c & 111551) === 111551) {
            const Q =
              Sd(lt, w, c) === a &&
              Yi(p) &&
              p.locals &&
              Sd(p.locals, w, -111552);
            if (Q) {
              const Ie =
                (I = Q.declarations) == null
                  ? void 0
                  : I.find(
                      (Te) =>
                        Te.kind === 277 ||
                        Te.kind === 274 ||
                        Te.kind === 275 ||
                        Te.kind === 272,
                    );
              Ie &&
                !FR(Ie) &&
                Qe(
                  Ie,
                  f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,
                  Gi(w),
                );
            }
          }
        });
      }
      function Wo(n, a, c) {
        return a
          ? pa(
              n,
              Ar(
                a,
                a.kind === 282 || a.kind === 279 || a.kind === 281
                  ? f._0_was_exported_here
                  : f._0_was_imported_here,
                c,
              ),
            )
          : n;
      }
      function vp(n) {
        return Bo(n) ? Gi(n) : ws(n);
      }
      function tA(n, a, c) {
        if (!He(n) || n.escapedText !== a || J3e(n) || EI(n)) return !1;
        const p = vu(n, !1, !1);
        let m = p;
        for (; m; ) {
          if (ui(m.parent)) {
            const v = Wr(m.parent);
            if (!v) break;
            const I = _r(v);
            if (Ea(I, a))
              return (
                Qe(
                  n,
                  f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,
                  vp(c),
                  uo(v),
                ),
                !0
              );
            if (m === p && !ua(m)) {
              const w = qs(v).thisType;
              if (Ea(w, a))
                return (
                  Qe(
                    n,
                    f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,
                    vp(c),
                  ),
                  !0
                );
            }
          }
          m = m.parent;
        }
        return !1;
      }
      function Yb(n) {
        const a = Mr(n);
        return a && Gl(a, 64, !0)
          ? (Qe(
              n,
              f.Cannot_extend_an_interface_0_Did_you_mean_implements,
              Al(a),
            ),
            !0)
          : !1;
      }
      function Mr(n) {
        switch (n.kind) {
          case 80:
          case 212:
            return n.parent ? Mr(n.parent) : void 0;
          case 234:
            if (Ds(n.expression)) return n.expression;
          default:
            return;
        }
      }
      function RC(n, a, c) {
        const p = 1920 | (Ir(n) ? 111551 : 0);
        if (c === p) {
          const m = mc(_t(n, a, 788968 & ~p, void 0, !1)),
            v = n.parent;
          if (m) {
            if (ku(v)) {
              C.assert(
                v.left === n,
                "Should only be resolving left side of qualified name as a namespace",
              );
              const I = v.right.escapedText;
              if (Ea(qs(m), I))
                return (
                  Qe(
                    v,
                    f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,
                    Gi(a),
                    Gi(I),
                  ),
                  !0
                );
            }
            return (
              Qe(
                n,
                f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,
                Gi(a),
              ),
              !0
            );
          }
        }
        return !1;
      }
      function Lx(n, a, c) {
        if (c & 788584) {
          const p = mc(_t(n, a, 111127, void 0, !1));
          if (p && !(p.flags & 1920))
            return (
              Qe(
                n,
                f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,
                Gi(a),
              ),
              !0
            );
        }
        return !1;
      }
      function du(n) {
        return (
          n === "any" ||
          n === "string" ||
          n === "number" ||
          n === "boolean" ||
          n === "never" ||
          n === "unknown"
        );
      }
      function J_(n, a) {
        return du(a) && n.parent.kind === 282
          ? (Qe(
              n,
              f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,
              a,
            ),
            !0)
          : !1;
      }
      function Eh(n, a, c) {
        if (c & 111551) {
          if (du(a)) {
            const v = n.parent.parent;
            if (v && v.parent && Fp(v)) {
              const I = v.token;
              v.parent.kind === 265 && I === 96
                ? Qe(
                    n,
                    f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,
                    Gi(a),
                  )
                : ui(v.parent) && I === 96
                  ? Qe(
                      n,
                      f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,
                      Gi(a),
                    )
                  : ui(v.parent) &&
                    I === 119 &&
                    Qe(
                      n,
                      f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,
                      Gi(a),
                    );
            } else
              Qe(
                n,
                f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,
                Gi(a),
              );
            return !0;
          }
          const p = mc(_t(n, a, 788544, void 0, !1)),
            m = p && dp(p);
          if (p && m !== void 0 && !(m & 111551)) {
            const v = Gi(a);
            return (
              nA(a)
                ? Qe(
                    n,
                    f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,
                    v,
                  )
                : $b(n, p)
                  ? Qe(
                      n,
                      f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,
                      v,
                      v === "K" ? "P" : "K",
                    )
                  : Qe(
                      n,
                      f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,
                      v,
                    ),
              !0
            );
          }
        }
        return !1;
      }
      function $b(n, a) {
        const c = Dn(n.parent, (p) => (va(p) || Su(p) ? !1 : wu(p) || "quit"));
        if (c && c.members.length === 1) {
          const p = qs(a);
          return !!(p.flags & 1048576) && l8(p, 384, !0);
        }
        return !1;
      }
      function nA(n) {
        switch (n) {
          case "Promise":
          case "Symbol":
          case "Map":
          case "WeakMap":
          case "Set":
          case "WeakSet":
            return !0;
        }
        return !1;
      }
      function Qb(n, a, c) {
        if (c & 111127) {
          if (mc(_t(n, a, 1024, void 0, !1)))
            return (Qe(n, f.Cannot_use_namespace_0_as_a_value, Gi(a)), !0);
        } else if (c & 788544 && mc(_t(n, a, 1536, void 0, !1)))
          return (Qe(n, f.Cannot_use_namespace_0_as_a_type, Gi(a)), !0);
        return !1;
      }
      function Af(n, a) {
        var c;
        if (
          (C.assert(!!(n.flags & 2 || n.flags & 32 || n.flags & 384)),
          n.flags & 67108881 && n.flags & 32)
        )
          return;
        const p =
          (c = n.declarations) == null
            ? void 0
            : c.find((m) => hG(m) || ui(m) || m.kind === 267);
        if (p === void 0)
          return C.fail(
            "checkResolvedBlockScopedVariable could not find block-scoped declaration",
          );
        if (!(p.flags & 33554432) && !Dy(p, a)) {
          let m;
          const v = ws(Oo(p));
          (n.flags & 2
            ? (m = Qe(
                a,
                f.Block_scoped_variable_0_used_before_its_declaration,
                v,
              ))
            : n.flags & 32
              ? (m = Qe(a, f.Class_0_used_before_its_declaration, v))
              : n.flags & 256
                ? (m = Qe(a, f.Enum_0_used_before_its_declaration, v))
                : (C.assert(!!(n.flags & 128)),
                  ym(O) &&
                    (m = Qe(a, f.Enum_0_used_before_its_declaration, v))),
            m && pa(m, Ar(p, f._0_is_declared_here, v)));
        }
      }
      function Km(n, a, c) {
        return (
          !!a &&
          !!Dn(
            n,
            (p) =>
              p === a ||
              (p === c || (Yo(p) && (!WT(p) || cc(p) & 3)) ? "quit" : !1),
          )
        );
      }
      function Qf(n) {
        switch (n.kind) {
          case 272:
            return n;
          case 274:
            return n.parent;
          case 275:
            return n.parent.parent;
          case 277:
            return n.parent.parent.parent;
          default:
            return;
        }
      }
      function cp(n) {
        return n.declarations && ga(n.declarations, Dv);
      }
      function Dv(n) {
        return (
          n.kind === 272 ||
          n.kind === 271 ||
          (n.kind === 274 && !!n.name) ||
          n.kind === 275 ||
          n.kind === 281 ||
          n.kind === 277 ||
          n.kind === 282 ||
          (n.kind === 278 && Rk(n)) ||
          (Nr(n) && oc(n) === 2 && Rk(n)) ||
          (Ks(n) &&
            Nr(n.parent) &&
            n.parent.left === n &&
            n.parent.operatorToken.kind === 64 &&
            P0(n.parent.right)) ||
          n.kind === 305 ||
          (n.kind === 304 && P0(n.initializer)) ||
          (n.kind === 261 && ES(n)) ||
          (n.kind === 209 && ES(n.parent.parent))
        );
      }
      function P0(n) {
        return s6(n) || (Us(n) && E_(n));
      }
      function kx(n, a) {
        const c = Wx(n);
        if (c) {
          const m = dD(c.expression).arguments[0];
          return He(c.name) ? mc(Ea(vWe(m), c.name.escapedText)) : void 0;
        }
        if (yi(n) || n.moduleReference.kind === 284) {
          const m = uu(n, PG(n) || XN(n)),
            v = Tp(m);
          if (v && 102 <= j && j <= 199) {
            const I = mE(v, "module.exports", n, a);
            if (I) return I;
          }
          return (Zf(n, m, v, !1), v);
        }
        const p = rT(n.moduleReference, a);
        return (L0(n, p), p);
      }
      function L0(n, a) {
        if (Zf(n, void 0, a, !1) && !n.isTypeOnly) {
          const c = Ah(Wr(n)),
            p = c.kind === 282 || c.kind === 279,
            m = p
              ? f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type
              : f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,
            v = p ? f._0_was_exported_here : f._0_was_imported_here,
            I = c.kind === 279 ? "*" : yb(c.name);
          pa(Qe(n.moduleReference, m), Ar(c, v, I));
        }
      }
      function Zb(n, a, c, p) {
        const m = n.exports.get("export="),
          v = m ? Ea(_r(m), a, !0) : n.exports.get(a),
          I = mc(v, p);
        return (Zf(c, v, I, !1), I);
      }
      function wx(n) {
        return (ll(n) && !n.isExportEquals) || di(n, 2048) || ou(n) || O_(n);
      }
      function Cy(n) {
        return ds(n) ? e.getEmitSyntaxForUsageLocation(Wn(n), n) : void 0;
      }
      function h_(n, a) {
        return n === 99 && a === 1;
      }
      function eT(n, a) {
        if (100 <= j && j <= 199 && Cy(n) === 99) {
          a ?? (a = uu(n, n, !0));
          const p = a && X2(a);
          return p && (Ff(p) || W4(p.fileName) === ".d.json.ts");
        }
        return !1;
      }
      function k0(n, a, c, p) {
        const m = n && Cy(p);
        if (n && m !== void 0) {
          const v = e.getImpliedNodeFormatForEmit(n);
          if (m === 99 && v === 1 && 100 <= j && j <= 199) return !0;
          if (m === 99 && v === 99) return !1;
        }
        if (!ye) return !1;
        if (!n || n.isDeclarationFile) {
          const v = Zb(a, "default", void 0, !0);
          return !(
            (v && yt(v.declarations, wx)) ||
            Zb(a, Cl("__esModule"), void 0, c)
          );
        }
        return Pu(n)
          ? typeof n.externalModuleIndicator != "object" &&
              !Zb(a, Cl("__esModule"), void 0, c)
          : Ym(a);
      }
      function Cv(n, a) {
        const c = uu(n, n.parent.moduleSpecifier);
        if (c) return tT(c, n, a);
      }
      function tT(n, a, c) {
        var p;
        const m = (p = n.declarations) == null ? void 0 : p.find(Yi),
          v = Xm(a);
        let I, w;
        if (Q2(n)) I = n;
        else if (
          m &&
          v &&
          102 <= j &&
          j <= 199 &&
          Cy(v) === 1 &&
          e.getImpliedNodeFormatForEmit(m) === 99 &&
          (w = Zb(n, "module.exports", a, c))
        ) {
          if (!$h(O)) {
            Qe(
              a.name,
              f.Module_0_can_only_be_default_imported_using_the_1_flag,
              uo(n),
              "esModuleInterop",
            );
            return;
          }
          return (Zf(a, w, void 0, !1), w);
        } else I = Zb(n, "default", a, c);
        if (!v) return I;
        const U = eT(v, n),
          H = k0(m, n, c, v);
        if (!I && !H && !U)
          if (Ym(n) && !ye) {
            const Q =
                j >= 5 ? "allowSyntheticDefaultImports" : "esModuleInterop",
              Te = n.exports.get("export=").valueDeclaration,
              Ze = Qe(
                a.name,
                f.Module_0_can_only_be_default_imported_using_the_1_flag,
                uo(n),
                Q,
              );
            Te &&
              pa(
                Ze,
                Ar(
                  Te,
                  f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,
                  Q,
                ),
              );
          } else
            Vm(a) ? Ny(n, a) : rA(n, n, a, (ub(a) && a.propertyName) || a.name);
        else if (H || U) {
          const Q = Tp(n, c) || mc(n, c);
          return (Zf(a, n, Q, !1), Q);
        }
        return (Zf(a, I, void 0, !1), I);
      }
      function Xm(n) {
        switch (n.kind) {
          case 274:
            return n.parent.moduleSpecifier;
          case 272:
            return uy(n.moduleReference)
              ? n.moduleReference.expression
              : void 0;
          case 275:
            return n.parent.parent.moduleSpecifier;
          case 277:
            return n.parent.parent.parent.moduleSpecifier;
          case 282:
            return n.parent.parent.moduleSpecifier;
          default:
            return C.assertNever(n);
        }
      }
      function Ny(n, a) {
        var c, p, m;
        if ((c = n.exports) != null && c.has(a.symbol.escapedName))
          Qe(
            a.name,
            f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,
            uo(n),
            uo(a.symbol),
          );
        else {
          const v = Qe(a.name, f.Module_0_has_no_default_export, uo(n)),
            I = (p = n.exports) == null ? void 0 : p.get("__export");
          if (I) {
            const w =
              (m = I.declarations) == null
                ? void 0
                : m.find((U) => {
                    var H, Q;
                    return !!(
                      pc(U) &&
                      U.moduleSpecifier &&
                      (Q =
                        (H = uu(U, U.moduleSpecifier)) == null
                          ? void 0
                          : H.exports) != null &&
                      Q.has("default")
                    );
                  });
            w && pa(v, Ar(w, f.export_Asterisk_does_not_re_export_a_default));
          }
        }
      }
      function kg(n, a) {
        const c = n.parent.parent.moduleSpecifier,
          p = uu(n, c),
          m = Wg(p, c, a, !1);
        return (Zf(n, p, m, !1), m);
      }
      function nT(n, a) {
        const c = n.parent.moduleSpecifier,
          p = c && uu(n, c),
          m = c && Wg(p, c, a, !1);
        return (Zf(n, p, m, !1), m);
      }
      function dd(n, a) {
        if (n === ne && a === ne) return ne;
        if (n.flags & 790504) return n;
        const c = ja(n.flags | a.flags, n.escapedName);
        return (
          C.assert(n.declarations || a.declarations),
          (c.declarations = cS(so(n.declarations, a.declarations), nb)),
          (c.parent = n.parent || a.parent),
          n.valueDeclaration && (c.valueDeclaration = n.valueDeclaration),
          a.members && (c.members = new Map(a.members)),
          n.exports && (c.exports = new Map(n.exports)),
          c
        );
      }
      function mE(n, a, c, p) {
        var m;
        if (n.flags & 1536) {
          const v = qp(n).get(a),
            I = mc(v, p),
            w = (m = Jr(n).typeOnlyExportStarMap) == null ? void 0 : m.get(a);
          return (Zf(c, v, I, !1, w, a), I);
        }
      }
      function wg(n, a) {
        if (n.flags & 3) {
          const c = n.valueDeclaration.type;
          if (c) return mc(Ea(Ji(c), a));
        }
      }
      function w0(n, a, c = !1) {
        var p;
        const m = PG(n) || n.moduleSpecifier,
          v = uu(n, m),
          I = (!qr(a) && a.propertyName) || a.name;
        if (!He(I) && I.kind !== 11) return;
        const w = bS(I),
          H = Wg(v, m, !1, w === "default" && ye);
        if (H && (w || I.kind === 11)) {
          if (Q2(v)) return v;
          let Q;
          (v && v.exports && v.exports.get("export=")
            ? (Q = Ea(_r(H), w, !0))
            : (Q = wg(H, w)),
            (Q = mc(Q, c)));
          let Ie = mE(H, w, a, c);
          if (Ie === void 0 && w === "default") {
            const Ze = (p = v.declarations) == null ? void 0 : p.find(Yi);
            (eT(m, v) || k0(Ze, v, c, m)) && (Ie = Tp(v, c) || mc(v, c));
          }
          const Te = Ie && Q && Ie !== Q ? dd(Q, Ie) : Ie || Q;
          return (
            ub(a) && eT(m, v) && w !== "default"
              ? Qe(
                  I,
                  f.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,
                  CR[j],
                )
              : Te || rA(v, H, n, I),
            Te
          );
        }
      }
      function rA(n, a, c, p) {
        var m;
        const v = Nv(n, c),
          I = ws(p),
          w = He(p) ? Dge(p, a) : void 0;
        if (w !== void 0) {
          const U = uo(w),
            H = Qe(
              p,
              f._0_has_no_exported_member_named_1_Did_you_mean_2,
              v,
              I,
              U,
            );
          w.valueDeclaration &&
            pa(H, Ar(w.valueDeclaration, f._0_is_declared_here, U));
        } else
          (m = n.exports) != null && m.has("default")
            ? Qe(
                p,
                f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,
                v,
                I,
              )
            : Og(c, p, I, n, v);
      }
      function Og(n, a, c, p, m) {
        var v, I;
        const w =
            (I =
              (v = ni(p.valueDeclaration, D_)) == null ? void 0 : v.locals) ==
            null
              ? void 0
              : I.get(bS(a)),
          U = p.exports;
        if (w) {
          const H = U?.get("export=");
          if (H)
            me(H, w)
              ? DC(n, a, c, m)
              : Qe(a, f.Module_0_has_no_exported_member_1, m, c);
          else {
            const Q = U ? hn(Che(U), (Te) => !!me(Te, w)) : void 0,
              Ie = Q
                ? Qe(
                    a,
                    f.Module_0_declares_1_locally_but_it_is_exported_as_2,
                    m,
                    c,
                    uo(Q),
                  )
                : Qe(
                    a,
                    f.Module_0_declares_1_locally_but_it_is_not_exported,
                    m,
                    c,
                  );
            w.declarations &&
              pa(
                Ie,
                ...Vt(w.declarations, (Te, Ze) =>
                  Ar(Te, Ze === 0 ? f._0_is_declared_here : f.and_here, c),
                ),
              );
          }
        } else Qe(a, f.Module_0_has_no_exported_member_1, m, c);
      }
      function DC(n, a, c, p) {
        if (j >= 5) {
          const m = $h(O)
            ? f._0_can_only_be_imported_by_using_a_default_import
            : f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;
          Qe(a, m, c);
        } else if (Ir(n)) {
          const m = $h(O)
            ? f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import
            : f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;
          Qe(a, m, c);
        } else {
          const m = $h(O)
            ? f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import
            : f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;
          Qe(a, m, c, c, p);
        }
      }
      function Ox(n, a) {
        if (Eu(n) && N_(n.propertyName || n.name)) {
          const I = Xm(n),
            w = I && uu(n, I);
          if (w) return tT(w, n, a);
        }
        const c = Ha(n) ? Jh(n) : n.parent.parent.parent,
          p = Wx(c),
          m = w0(c, p || n, a),
          v = n.propertyName || n.name;
        return p && m && He(v)
          ? mc(Ea(_r(m), v.escapedText), a)
          : (Zf(n, void 0, m, !1), m);
      }
      function Wx(n) {
        if (yi(n) && n.initializer && qr(n.initializer)) return n.initializer;
      }
      function oL(n, a) {
        if (ah(n.parent)) {
          const c = Tp(n.parent.symbol, a);
          return (Zf(n, void 0, c, !1), c);
        }
      }
      function Fx(n, a, c) {
        const p = n.propertyName || n.name;
        if (N_(p)) {
          const v = Xm(n),
            I = v && uu(n, v);
          if (I) return tT(I, n, !!c);
        }
        const m = n.parent.parent.moduleSpecifier
          ? w0(n.parent.parent, n, c)
          : p.kind === 11
            ? void 0
            : Gl(p, a, !1, c);
        return (Zf(n, void 0, m, !1), m);
      }
      function O0(n, a) {
        const c = ll(n) ? n.expression : n.right,
          p = My(c, a);
        return (Zf(n, void 0, p, !1), p);
      }
      function My(n, a) {
        if (dc(n)) return Vl(n).symbol;
        if (!Mu(n) && !Ds(n)) return;
        const c = Gl(n, 901119, !0, a);
        return c || (Vl(n), Vr(n).resolvedSymbol);
      }
      function CC(n, a) {
        if (
          Nr(n.parent) &&
          n.parent.left === n &&
          n.parent.operatorToken.kind === 64
        )
          return My(n.parent.right, a);
      }
      function W0(n, a = !1) {
        switch (n.kind) {
          case 272:
          case 261:
            return kx(n, a);
          case 274:
            return Cv(n, a);
          case 275:
            return kg(n, a);
          case 281:
            return nT(n, a);
          case 277:
          case 209:
            return Ox(n, a);
          case 282:
            return Fx(n, 901119, a);
          case 278:
          case 227:
            return O0(n, a);
          case 271:
            return oL(n, a);
          case 305:
            return Gl(n.name, 901119, !0, a);
          case 304:
            return My(n.initializer, a);
          case 213:
          case 212:
            return CC(n, a);
          default:
            return C.fail();
        }
      }
      function iA(n, a = 901119) {
        return n
          ? (n.flags & (2097152 | a)) === 2097152 ||
              !!(n.flags & 2097152 && n.flags & 67108864)
          : !1;
      }
      function mc(n, a) {
        return !a && iA(n) ? ud(n) : n;
      }
      function ud(n) {
        C.assert((n.flags & 2097152) !== 0, "Should only get Alias here.");
        const a = Jr(n);
        if (a.aliasTarget) a.aliasTarget === Fe && (a.aliasTarget = ne);
        else {
          a.aliasTarget = Fe;
          const c = cp(n);
          if (!c) return C.fail();
          const p = W0(c);
          a.aliasTarget === Fe
            ? (a.aliasTarget = p || ne)
            : Qe(c, f.Circular_definition_of_import_alias_0, uo(n));
        }
        return a.aliasTarget;
      }
      function zx(n) {
        if (Jr(n).aliasTarget !== Fe) return ud(n);
      }
      function dp(n, a, c) {
        const p = a && Ah(n),
          m = p && pc(p),
          v =
            p &&
            (m ? uu(p.moduleSpecifier, p.moduleSpecifier, !0) : ud(p.symbol)),
          I = m && v ? __(v) : void 0;
        let w = c ? 0 : n.flags,
          U;
        for (; n.flags & 2097152; ) {
          const H = Et(ud(n));
          if ((!m && H === v) || I?.get(H.escapedName) === H) break;
          if (H === ne) return -1;
          if (H === n || U?.has(H)) break;
          (H.flags & 2097152 && (U ? U.add(H) : (U = new Set([n, H]))),
            (w |= H.flags),
            (n = H));
        }
        return w;
      }
      function Zf(n, a, c, p, m, v) {
        if (!n || qr(n)) return !1;
        const I = Wr(n);
        if (Qy(n)) {
          const U = Jr(I);
          return ((U.typeOnlyDeclaration = n), !0);
        }
        if (m) {
          const U = Jr(I);
          return (
            (U.typeOnlyDeclaration = m),
            I.escapedName !== v && (U.typeOnlyExportStarName = v),
            !0
          );
        }
        const w = Jr(I);
        return hE(w, a, p) || hE(w, c, p);
      }
      function hE(n, a, c) {
        var p;
        if (
          a &&
          (n.typeOnlyDeclaration === void 0 ||
            (c && n.typeOnlyDeclaration === !1))
        ) {
          const m = ((p = a.exports) == null ? void 0 : p.get("export=")) ?? a,
            v = m.declarations && hn(m.declarations, Qy);
          n.typeOnlyDeclaration = v ?? Jr(m).typeOnlyDeclaration ?? !1;
        }
        return !!n.typeOnlyDeclaration;
      }
      function Ah(n, a) {
        var c;
        if (!(n.flags & 2097152)) return;
        const p = Jr(n);
        if (p.typeOnlyDeclaration === void 0) {
          p.typeOnlyDeclaration = !1;
          const m = mc(n);
          Zf(
            (c = n.declarations) == null ? void 0 : c[0],
            cp(n) && a$(n),
            m,
            !0,
          );
        }
        if (a === void 0) return p.typeOnlyDeclaration || void 0;
        if (p.typeOnlyDeclaration) {
          const m =
            p.typeOnlyDeclaration.kind === 279
              ? mc(
                  __(p.typeOnlyDeclaration.symbol.parent).get(
                    p.typeOnlyExportStarName || n.escapedName,
                  ),
                )
              : ud(p.typeOnlyDeclaration.symbol);
          return dp(m) & a ? p.typeOnlyDeclaration : void 0;
        }
      }
      function rT(n, a) {
        return (
          n.kind === 80 && fM(n) && (n = n.parent),
          n.kind === 80 || n.parent.kind === 167
            ? Gl(n, 1920, !1, a)
            : (C.assert(n.parent.kind === 272), Gl(n, 901119, !1, a))
        );
      }
      function Nv(n, a) {
        return n.parent ? Nv(n.parent, a) + "." + uo(n) : uo(n, a, void 0, 36);
      }
      function Bx(n) {
        for (; ku(n.parent); ) n = n.parent;
        return n;
      }
      function aL(n) {
        let a = Lu(n),
          c = _t(a, a, 111551, void 0, !0);
        if (c) {
          for (; ku(a.parent); ) {
            const p = _r(c);
            if (((c = Ea(p, a.parent.right.escapedText)), !c)) return;
            a = a.parent;
          }
          return c;
        }
      }
      function Gl(n, a, c, p, m) {
        if (Ol(n)) return;
        const v = 1920 | (Ir(n) ? a & 111551 : 0);
        let I;
        if (n.kind === 80) {
          const w = a === v || Os(n) ? f.Cannot_find_namespace_0 : vFe(Lu(n)),
            U = Ir(n) && !Os(n) ? NC(n, a) : void 0;
          if (((I = os(_t(m || n, n, a, c || U ? void 0 : w, !0, !1))), !I))
            return os(U);
        } else if (n.kind === 167 || n.kind === 212) {
          const w = n.kind === 167 ? n.left : n.expression,
            U = n.kind === 167 ? n.right : n.name;
          let H = Gl(w, v, c, !1, m);
          if (!H || Ol(U)) return;
          if (H === ne) return H;
          if (
            H.valueDeclaration &&
            Ir(H.valueDeclaration) &&
            iu(O) !== 100 &&
            yi(H.valueDeclaration) &&
            H.valueDeclaration.initializer &&
            h4e(H.valueDeclaration.initializer)
          ) {
            const Q = H.valueDeclaration.initializer.arguments[0],
              Ie = uu(Q, Q);
            if (Ie) {
              const Te = Tp(Ie);
              Te && (H = Te);
            }
          }
          if (
            ((I = os(Sd(qp(H), U.escapedText, a))),
            !I &&
              H.flags & 2097152 &&
              (I = os(Sd(qp(ud(H)), U.escapedText, a))),
            !I)
          ) {
            if (!c) {
              const Q = Nv(H),
                Ie = ws(U),
                Te = Dge(U, H);
              if (Te) {
                Qe(
                  U,
                  f._0_has_no_exported_member_named_1_Did_you_mean_2,
                  Q,
                  Ie,
                  uo(Te),
                );
                return;
              }
              const Ze = ku(n) && Bx(n);
              if (Jt && a & 788968 && Ze && !TD(Ze.parent) && aL(Ze)) {
                Qe(
                  Ze,
                  f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,
                  Mp(Ze),
                );
                return;
              }
              if (a & 1920 && ku(n.parent)) {
                const Dt = os(Sd(qp(H), U.escapedText, 788968));
                if (Dt) {
                  Qe(
                    n.parent.right,
                    f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,
                    uo(Dt),
                    Gi(n.parent.right.escapedText),
                  );
                  return;
                }
              }
              Qe(U, f.Namespace_0_has_no_exported_member_1, Q, Ie);
            }
            return;
          }
        } else C.assertNever(n, "Unknown entity name kind.");
        return (
          !Os(n) &&
            Mu(n) &&
            (I.flags & 2097152 || n.parent.kind === 278) &&
            Zf(VG(n), I, void 0, !0),
          I.flags & a || p ? I : ud(I)
        );
      }
      function NC(n, a) {
        if (pY(n.parent)) {
          const c = oA(n.parent);
          if (c) return _t(c, n, a, void 0, !0);
        }
      }
      function oA(n) {
        if (Dn(n, (m) => (GR(m) || m.flags & 16777216 ? hm(m) : "quit")))
          return;
        const c = IS(n);
        if (c && od(c) && vk(c.expression)) {
          const m = Wr(c.expression.left);
          if (m) return _E(m);
        }
        if (c && Us(c) && vk(c.parent) && od(c.parent.parent)) {
          const m = Wr(c.parent.left);
          if (m) return _E(m);
        }
        if (
          c &&
          (mm(c) || Cc(c)) &&
          Nr(c.parent.parent) &&
          oc(c.parent.parent) === 6
        ) {
          const m = Wr(c.parent.parent.left);
          if (m) return _E(m);
        }
        const p = GT(n);
        if (p && Yo(p)) {
          const m = Wr(p);
          return m && m.valueDeclaration;
        }
      }
      function _E(n) {
        const a = n.parent.valueDeclaration;
        return a ? ($N(a) ? _I(a) : ZE(a) ? QN(a) : void 0) || a : void 0;
      }
      function Gx(n) {
        const a = n.valueDeclaration;
        if (!a || !Ir(a) || n.flags & 524288 || zT(a, !1)) return;
        const c = yi(a) ? QN(a) : _I(a);
        if (c) {
          const p = If(c);
          if (p) return Fge(p, n);
        }
      }
      function uu(n, a, c) {
        const m =
          iu(O) === 1
            ? f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option
            : f.Cannot_find_module_0_or_its_corresponding_type_declarations;
        return bp(n, a, c ? void 0 : m, c);
      }
      function bp(n, a, c, p = !1, m = !1) {
        return ds(a) ? aA(n, a.text, c, p ? void 0 : a, m) : void 0;
      }
      function aA(n, a, c, p, m = !1) {
        var v, I, w, U, H, Q, Ie, Te, Ze, Tt, Dt, $t;
        if (p && po(a, "@types/")) {
          const zi =
              f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,
            Ko = hN(a, "@types/");
          Qe(p, zi, Ko, a);
        }
        const Tn = yWe(a, !0);
        if (Tn) return Tn;
        const nr = Wn(n),
          yr = ds(n)
            ? n
            : ((v = uc(n)
                ? n
                : n.parent && uc(n.parent) && n.parent.name === n
                  ? n.parent
                  : void 0) == null
                ? void 0
                : v.name) ||
              ((I = ry(n) ? n : void 0) == null
                ? void 0
                : I.argument.literal) ||
              (yi(n) && n.initializer && Zu(n.initializer, !0)
                ? n.initializer.arguments[0]
                : void 0) ||
              ((w = Dn(n, Qu)) == null ? void 0 : w.arguments[0]) ||
              ((U = Dn(n, Rp(vl, o_, pc))) == null
                ? void 0
                : U.moduleSpecifier) ||
              ((H = Dn(n, FT)) == null ? void 0 : H.moduleReference.expression),
          Sn =
            yr && ds(yr)
              ? e.getModeForUsageLocation(nr, yr)
              : e.getDefaultResolutionModeForFile(nr),
          vn = iu(O),
          Sr =
            (Q = e.getResolvedModule(nr, a, Sn)) == null
              ? void 0
              : Q.resolvedModule,
          fi = p && Sr && RH(O, Sr, nr),
          oo =
            Sr &&
            (!fi || fi === f.Module_0_was_resolved_to_1_but_jsx_is_not_set) &&
            e.getSourceFile(Sr.resolvedFileName);
        if (oo) {
          if (
            (fi && Qe(p, fi, a, Sr.resolvedFileName),
            Sr.resolvedUsingTsExtension && ad(a))
          ) {
            const zi =
              ((Ie = Dn(n, vl)) == null ? void 0 : Ie.importClause) ||
              Dn(n, Rp(Fc, pc));
            ((p && zi && !zi.isTypeOnly) || Dn(n, Qu)) &&
              Qe(
                p,
                f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,
                ii(C.checkDefined(x6(a))),
              );
          } else if (Sr.resolvedUsingTsExtension && !VD(O, nr.fileName)) {
            const zi =
              ((Te = Dn(n, vl)) == null ? void 0 : Te.importClause) ||
              Dn(n, Rp(Fc, pc));
            if (p && !(zi?.isTypeOnly || Dn(n, e_))) {
              const Ko = C.checkDefined(x6(a));
              Qe(
                p,
                f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,
                Ko,
              );
            }
          } else if (
            O.rewriteRelativeImportExtensions &&
            !(n.flags & 33554432) &&
            !ad(a) &&
            !ry(n) &&
            !ote(n)
          ) {
            const zi = Tk(a, O);
            if (!Sr.resolvedUsingTsExtension && zi)
              Qe(
                p,
                f.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,
                MR(
                  To(nr.fileName, e.getCurrentDirectory()),
                  Sr.resolvedFileName,
                  ay(e),
                ),
              );
            else if (Sr.resolvedUsingTsExtension && !zi && DS(oo, e))
              Qe(
                p,
                f.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,
                nI(a),
              );
            else if (Sr.resolvedUsingTsExtension && zi) {
              const Ko =
                (Ze = e.getRedirectFromSourceFile(oo.path)) == null
                  ? void 0
                  : Ze.resolvedRef;
              if (Ko) {
                const ms = !e.useCaseSensitiveFileNames(),
                  fo = e.getCommonSourceDirectory(),
                  dl = w1(Ko.commandLine, ms),
                  Kl = cf(fo, dl, ms),
                  mu = cf(
                    O.outDir || fo,
                    Ko.commandLine.options.outDir || dl,
                    ms,
                  );
                Kl !== mu &&
                  Qe(
                    p,
                    f.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files,
                  );
              }
            }
          }
          if (oo.symbol) {
            if (
              (p &&
                Sr.isExternalLibraryImport &&
                !EM(Sr.extension) &&
                F0(!1, p, nr, Sn, Sr, a),
              p && (j === 100 || j === 101))
            ) {
              const zi =
                  (nr.impliedNodeFormat === 1 && !Dn(n, Qu)) || !!Dn(n, Fc),
                Ko = Dn(n, (ms) => e_(ms) || pc(ms) || vl(ms) || o_(ms));
              if (zi && oo.impliedNodeFormat === 99 && !zre(Ko))
                if (Dn(n, Fc))
                  Qe(
                    p,
                    f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,
                    a,
                  );
                else {
                  let ms;
                  const fo = Sg(nr.fileName);
                  (fo === ".ts" ||
                    fo === ".js" ||
                    fo === ".tsx" ||
                    fo === ".jsx") &&
                    (ms = cG(nr));
                  const dl =
                    Ko?.kind === 273 &&
                    (Tt = Ko.importClause) != null &&
                    Tt.isTypeOnly
                      ? f.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute
                      : Ko?.kind === 206
                        ? f.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute
                        : f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;
                  ns.add(hg(Wn(p), p, qo(ms, dl, a)));
                }
            }
            return os(oo.symbol);
          }
          p && c && !ZV(p) && Qe(p, f.File_0_is_not_a_module, oo.fileName);
          return;
        }
        if (op) {
          const zi = $B(op, (Ko) => Ko.pattern, a);
          if (zi) {
            const Ko = ze && ze.get(a);
            return os(Ko || zi.symbol);
          }
        }
        if (!p) return;
        if (
          (Sr && !EM(Sr.extension) && fi === void 0) ||
          fi ===
            f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type
        ) {
          if (m) {
            const zi =
              f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;
            Qe(p, zi, a, Sr.resolvedFileName);
          } else F0(ve && !!c, p, nr, Sn, Sr, a);
          return;
        }
        if (c) {
          if (Sr) {
            const zi = e.getRedirectFromSourceFile(Sr.resolvedFileName);
            if (zi?.outputDts) {
              Qe(
                p,
                f.Output_file_0_has_not_been_built_from_source_file_1,
                zi.outputDts,
                Sr.resolvedFileName,
              );
              return;
            }
          }
          if (fi) Qe(p, fi, a, Sr.resolvedFileName);
          else {
            const zi = Zp(a) && !NR(a),
              Ko = vn === 3 || vn === 99;
            if (!LS(O) && El(a, ".json") && vn !== 1 && O6(O))
              Qe(
                p,
                f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,
                a,
              );
            else if (Sn === 99 && Ko && zi) {
              const ms = To(a, ci(nr.path)),
                fo =
                  (Dt = Iu.find(([dl, Kl]) => e.fileExists(ms + dl))) == null
                    ? void 0
                    : Dt[1];
              fo
                ? Qe(
                    p,
                    f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,
                    a + fo,
                  )
                : Qe(
                    p,
                    f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path,
                  );
            } else if (
              ($t = e.getResolvedModule(nr, a, Sn)) != null &&
              $t.alternateResult
            ) {
              const ms = PF(nr, e, a, Sn, a);
              Jm(!0, p, qo(ms, c, a));
            } else Qe(p, c, a);
          }
        }
        return;
        function ii(zi) {
          const Ko = Zk(a, zi);
          if (Kk(j) || Sn === 99) {
            const ms = ad(a) && VD(O);
            return (
              Ko +
              (zi === ".mts" || zi === ".d.mts"
                ? ms
                  ? ".mts"
                  : ".mjs"
                : zi === ".cts" || zi === ".d.mts"
                  ? ms
                    ? ".cts"
                    : ".cjs"
                  : ms
                    ? ".ts"
                    : ".js")
            );
          }
          return Ko;
        }
      }
      function F0(n, a, c, p, { packageId: m, resolvedFileName: v }, I) {
        if (ZV(a)) return;
        let w;
        (!td(I) && m && (w = PF(c, e, I, p, m.name)),
          Jm(
            n,
            a,
            qo(
              w,
              f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,
              I,
              v,
            ),
          ));
      }
      function Tp(n, a) {
        if (n?.exports) {
          const c = mc(n.exports.get("export="), a),
            p = sA(os(c), os(n));
          return os(p) || n;
        }
      }
      function sA(n, a) {
        if (
          !n ||
          n === ne ||
          n === a ||
          a.exports.size === 1 ||
          n.flags & 2097152
        )
          return n;
        const c = Jr(n);
        if (c.cjsExportMerged) return c.cjsExportMerged;
        const p = n.flags & 33554432 ? n : uE(n);
        return (
          (p.flags = p.flags | 512),
          p.exports === void 0 && (p.exports = da()),
          a.exports.forEach((m, v) => {
            v !== "export=" &&
              p.exports.set(v, p.exports.has(v) ? $f(p.exports.get(v), m) : m);
          }),
          p === n &&
            ((Jr(p).resolvedExports = void 0),
            (Jr(p).resolvedMembers = void 0)),
          (Jr(p).cjsExportMerged = p),
          (c.cjsExportMerged = p)
        );
      }
      function Wg(n, a, c, p) {
        var m;
        const v = Tp(n, c);
        if (!c && v) {
          if (!p && !(v.flags & 1539) && !al(v, 308)) {
            const U =
              j >= 5 ? "allowSyntheticDefaultImports" : "esModuleInterop";
            return (
              Qe(
                a,
                f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,
                U,
              ),
              v
            );
          }
          const I = a.parent,
            w = vl(I) && ZR(I);
          if (w || Qu(I)) {
            const U = Qu(I) ? I.arguments[0] : I.moduleSpecifier,
              H = _r(v),
              Q = f4e(H, v, n, U);
            if (Q) return lA(v, Q, I);
            const Ie = (m = n?.declarations) == null ? void 0 : m.find(Yi),
              Te = Cy(U);
            let Ze;
            if (
              w &&
              Ie &&
              102 <= j &&
              j <= 199 &&
              Te === 1 &&
              e.getImpliedNodeFormatForEmit(Ie) === 99 &&
              (Ze = Zb(v, "module.exports", w, c))
            )
              return (
                !p &&
                  !(v.flags & 1539) &&
                  Qe(
                    a,
                    f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,
                    "esModuleInterop",
                  ),
                $h(O) && Vx(H) ? lA(Ze, H, I) : Ze
              );
            const Tt = Ie && h_(Te, e.getImpliedNodeFormatForEmit(Ie));
            if (($h(O) || Tt) && (Vx(H) || Ea(H, "default", !0) || Tt)) {
              const Dt = H.flags & 3670016 ? m4e(H, v, n, U) : zge(v, v.parent);
              return lA(v, Dt, I);
            }
          }
        }
        return v;
      }
      function Vx(n) {
        return yt(Kz(n, 0)) || yt(Kz(n, 1));
      }
      function lA(n, a, c) {
        const p = ja(n.flags, n.escapedName);
        ((p.declarations = n.declarations ? n.declarations.slice() : []),
          (p.parent = n.parent),
          (p.links.target = n),
          (p.links.originatingImport = c),
          n.valueDeclaration && (p.valueDeclaration = n.valueDeclaration),
          n.constEnumOnlyModule && (p.constEnumOnlyModule = !0),
          n.members && (p.members = new Map(n.members)),
          n.exports && (p.exports = new Map(n.exports)));
        const m = Dh(a);
        return ((p.links.type = bl(p, m.members, ae, ae, m.indexInfos)), p);
      }
      function Ym(n) {
        return n.exports.get("export=") !== void 0;
      }
      function jx(n) {
        return Che(__(n));
      }
      function MC(n) {
        const a = jx(n),
          c = Tp(n);
        if (c !== n) {
          const p = _r(c);
          Mv(p) && Xr(a, bs(p));
        }
        return a;
      }
      function Ux(n, a) {
        __(n).forEach((m, v) => {
          G0(v) || a(m, v);
        });
        const p = Tp(n);
        if (p !== n) {
          const m = _r(p);
          Mv(m) &&
            Dlt(m, (v, I) => {
              a(v, I);
            });
        }
      }
      function cA(n, a) {
        const c = __(a);
        if (c) return c.get(n);
      }
      function Hx(n, a) {
        const c = cA(n, a);
        if (c) return c;
        const p = Tp(a);
        if (p === a) return;
        const m = _r(p);
        return Mv(m) ? Ea(m, n) : void 0;
      }
      function Mv(n) {
        return !(n.flags & 402784252 || Hr(n) & 1 || im(n) || Ka(n));
      }
      function qp(n) {
        return n.flags & 6256
          ? hhe(n, "resolvedExports")
          : n.flags & 1536
            ? __(n)
            : n.exports || k;
      }
      function __(n) {
        const a = Jr(n);
        if (!a.resolvedExports) {
          const { exports: c, typeOnlyExportStarMap: p } = uA(n);
          ((a.resolvedExports = c), (a.typeOnlyExportStarMap = p));
        }
        return a.resolvedExports;
      }
      function dA(n, a, c, p) {
        a &&
          a.forEach((m, v) => {
            if (v === "default") return;
            const I = n.get(v);
            if (!I)
              (n.set(v, m),
                c && p && c.set(v, { specifierText: Al(p.moduleSpecifier) }));
            else if (c && p && I && mc(I) !== mc(m)) {
              const w = c.get(v);
              w.exportsWithDuplicate
                ? w.exportsWithDuplicate.push(p)
                : (w.exportsWithDuplicate = [p]);
            }
          });
      }
      function uA(n) {
        const a = [];
        let c;
        const p = new Set();
        n = Tp(n);
        const m = v(n) || k;
        return (
          c && p.forEach((I) => c.delete(I)),
          { exports: m, typeOnlyExportStarMap: c }
        );
        function v(I, w, U) {
          if (
            (!U && I?.exports && I.exports.forEach((Ie, Te) => p.add(Te)),
            !(I && I.exports && kf(a, I)))
          )
            return;
          const H = new Map(I.exports),
            Q = I.exports.get("__export");
          if (Q) {
            const Ie = da(),
              Te = new Map();
            if (Q.declarations)
              for (const Ze of Q.declarations) {
                const Tt = uu(Ze, Ze.moduleSpecifier),
                  Dt = v(Tt, Ze, U || Ze.isTypeOnly);
                dA(Ie, Dt, Te, Ze);
              }
            (Te.forEach(({ exportsWithDuplicate: Ze }, Tt) => {
              if (!(Tt === "export=" || !(Ze && Ze.length) || H.has(Tt)))
                for (const Dt of Ze)
                  ns.add(
                    Ar(
                      Dt,
                      f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,
                      Te.get(Tt).specifierText,
                      Gi(Tt),
                    ),
                  );
            }),
              dA(H, Ie));
          }
          return (
            w?.isTypeOnly &&
              (c ?? (c = new Map()), H.forEach((Ie, Te) => c.set(Te, w))),
            H
          );
        }
      }
      function os(n) {
        let a;
        return n && n.mergeId && (a = K1[n.mergeId]) ? a : n;
      }
      function Wr(n) {
        return os(n.symbol && eY(n.symbol));
      }
      function If(n) {
        return ah(n) ? Wr(n) : void 0;
      }
      function Yc(n) {
        return os(n.parent && eY(n.parent));
      }
      function z0(n) {
        var a, c;
        return (
          ((((a = n.valueDeclaration) == null ? void 0 : a.kind) === 220 ||
            ((c = n.valueDeclaration) == null ? void 0 : c.kind) === 219) &&
            If(n.valueDeclaration.parent)) ||
          n
        );
      }
      function pA(n, a) {
        const c = Wn(a),
          p = ls(c),
          m = Jr(n);
        let v;
        if (
          m.extendedContainersByFile &&
          (v = m.extendedContainersByFile.get(p))
        )
          return v;
        if (c && c.imports) {
          for (const w of c.imports) {
            if (Os(w)) continue;
            const U = uu(a, w, !0);
            !U || !D(U, n) || (v = Bn(v, U));
          }
          if (et(v))
            return (
              (
                m.extendedContainersByFile ||
                (m.extendedContainersByFile = new Map())
              ).set(p, v),
              v
            );
        }
        if (m.extendedContainers) return m.extendedContainers;
        const I = e.getSourceFiles();
        for (const w of I) {
          if (!zc(w)) continue;
          const U = Wr(w);
          D(U, n) && (v = Bn(v, U));
        }
        return (m.extendedContainers = v || ae);
      }
      function gE(n, a, c) {
        const p = Yc(n);
        if (p && !(n.flags & 262144)) return U(p);
        const m = Ui(n.declarations, (Q) => {
          if (!yu(Q) && Q.parent) {
            if (vE(Q.parent)) return Wr(Q.parent);
            if (
              t_(Q.parent) &&
              Q.parent.parent &&
              Tp(Wr(Q.parent.parent)) === n
            )
              return Wr(Q.parent.parent);
          }
          if (
            dc(Q) &&
            Nr(Q.parent) &&
            Q.parent.operatorToken.kind === 64 &&
            Ks(Q.parent.left) &&
            Ds(Q.parent.left.expression)
          )
            return gg(Q.parent.left) || i1(Q.parent.left.expression)
              ? Wr(Wn(Q))
              : (Vl(Q.parent.left.expression),
                Vr(Q.parent.left.expression).resolvedSymbol);
        });
        if (!et(m)) return;
        const v = Ui(m, (Q) => (D(Q, n) ? Q : void 0));
        let I = [],
          w = [];
        for (const Q of v) {
          const [Ie, ...Te] = U(Q);
          ((I = Bn(I, Ie)), (w = Xr(w, Te)));
        }
        return so(I, w);
        function U(Q) {
          const Ie = Ui(Q.declarations, H),
            Te = a && pA(n, a),
            Ze = B0(Q, c);
          if (a && Q.flags & $m(c) && Lv(Q, a, 1920, !1))
            return Bn(so(so([Q], Ie), Te), Ze);
          const Tt =
            !(Q.flags & $m(c)) &&
            Q.flags & 788968 &&
            qs(Q).flags & 524288 &&
            c === 111551
              ? Pv(a, ($t) =>
                  Hc($t, (Tn) => {
                    if (Tn.flags & $m(c) && _r(Tn) === qs(Q)) return Tn;
                  }),
                )
              : void 0;
          let Dt = Tt ? [Tt, ...Ie, Q] : [...Ie, Q];
          return ((Dt = Bn(Dt, Ze)), (Dt = Xr(Dt, Te)), Dt);
        }
        function H(Q) {
          return p && fA(Q, p);
        }
      }
      function B0(n, a) {
        const c = !!et(n.declarations) && $a(n.declarations);
        if (
          a & 111551 &&
          c &&
          c.parent &&
          yi(c.parent) &&
          ((Wa(c) && c === c.parent.initializer) ||
            (wu(c) && c === c.parent.type))
        )
          return Wr(c.parent);
      }
      function fA(n, a) {
        const c = hA(n),
          p = c && c.exports && c.exports.get("export=");
        return p && me(p, a) ? c : void 0;
      }
      function D(n, a) {
        if (n === Yc(a)) return a;
        const c = n.exports && n.exports.get("export=");
        if (c && me(c, a)) return n;
        const p = qp(n),
          m = p.get(a.escapedName);
        return m && me(m, a)
          ? m
          : Hc(p, (v) => {
              if (me(v, a)) return v;
            });
      }
      function me(n, a) {
        if (os(mc(os(n))) === os(mc(os(a)))) return n;
      }
      function Et(n) {
        return os((n && (n.flags & 1048576) !== 0 && n.exportSymbol) || n);
      }
      function An(n, a) {
        return !!(
          n.flags & 111551 ||
          (n.flags & 2097152 && dp(n, !a) & 111551)
        );
      }
      function vi(n) {
        var a;
        const c = new l(ir, n);
        return (d++, (c.id = d), (a = xr) == null || a.recordType(c), c);
      }
      function wi(n, a) {
        const c = vi(n);
        return ((c.symbol = a), c);
      }
      function Ao(n) {
        return new l(ir, n);
      }
      function Li(n, a, c = 0, p) {
        Ja(a, p);
        const m = vi(n);
        return (
          (m.intrinsicName = a),
          (m.debugIntrinsicName = p),
          (m.objectFlags = c | 524288 | 2097152 | 33554432 | 16777216),
          m
        );
      }
      function Ja(n, a) {
        const c = `${n},${a ?? ""}`;
        (Lt.has(c) &&
          C.fail(
            `Duplicate intrinsic type name ${n}${a ? ` (${a})` : ""}; you may need to pass a name to createIntrinsicType.`,
          ),
          Lt.add(c));
      }
      function hc(n, a) {
        const c = wi(524288, a);
        return (
          (c.objectFlags = n),
          (c.members = void 0),
          (c.properties = void 0),
          (c.callSignatures = void 0),
          (c.constructSignatures = void 0),
          (c.indexInfos = void 0),
          c
        );
      }
      function Kd() {
        return pi(Co(cae.keys(), Sp));
      }
      function Vu(n) {
        return wi(262144, n);
      }
      function G0(n) {
        return (
          n.charCodeAt(0) === 95 &&
          n.charCodeAt(1) === 95 &&
          n.charCodeAt(2) !== 95 &&
          n.charCodeAt(2) !== 64 &&
          n.charCodeAt(2) !== 35
        );
      }
      function ju(n) {
        let a;
        return (
          n.forEach((c, p) => {
            iT(c, p) && (a || (a = [])).push(c);
          }),
          a || ae
        );
      }
      function iT(n, a) {
        return !G0(a) && An(n);
      }
      function qx(n) {
        const a = ju(n),
          c = aY(n);
        return c ? so(a, [c]) : a;
      }
      function Nm(n, a, c, p, m) {
        const v = n;
        return (
          (v.members = a),
          (v.properties = ae),
          (v.callSignatures = c),
          (v.constructSignatures = p),
          (v.indexInfos = m),
          a !== k && (v.properties = ju(a)),
          v
        );
      }
      function bl(n, a, c, p, m) {
        return Nm(hc(16, n), a, c, p, m);
      }
      function mA(n) {
        if (n.constructSignatures.length === 0) return n;
        if (n.objectTypeWithoutAbstractConstructSignatures)
          return n.objectTypeWithoutAbstractConstructSignatures;
        const a = Un(n.constructSignatures, (p) => !(p.flags & 4));
        if (n.constructSignatures === a) return n;
        const c = bl(
          n.symbol,
          n.members,
          n.callSignatures,
          yt(a) ? a : ae,
          n.indexInfos,
        );
        return (
          (n.objectTypeWithoutAbstractConstructSignatures = c),
          (c.objectTypeWithoutAbstractConstructSignatures = c),
          c
        );
      }
      function Pv(n, a) {
        let c;
        for (let p = n; p; p = p.parent) {
          if (D_(p) && p.locals && !ev(p) && (c = a(p.locals, void 0, !0, p)))
            return c;
          switch (p.kind) {
            case 308:
              if (!Pp(p)) break;
            case 268:
              const m = Wr(p);
              if ((c = a(m?.exports || k, void 0, !0, p))) return c;
              break;
            case 264:
            case 232:
            case 265:
              let v;
              if (
                ((Wr(p).members || k).forEach((I, w) => {
                  I.flags & 788968 && (v || (v = da())).set(w, I);
                }),
                v && (c = a(v, void 0, !1, p)))
              )
                return c;
              break;
          }
        }
        return a(lt, void 0, !0);
      }
      function $m(n) {
        return n === 111551 ? 111551 : 1920;
      }
      function Lv(n, a, c, p, m = new Map()) {
        if (!(n && !Wz(n))) return;
        const v = Jr(n),
          I = v.accessibleChainCache || (v.accessibleChainCache = new Map()),
          w = Pv(a, (Tn, nr, yr, Sn) => Sn),
          U = `${p ? 0 : 1}|${w ? ls(w) : 0}|${c}`;
        if (I.has(U)) return I.get(U);
        const H = Ta(n);
        let Q = m.get(H);
        Q || m.set(H, (Q = []));
        const Ie = Pv(a, Te);
        return (I.set(U, Ie), Ie);
        function Te(Tn, nr, yr) {
          if (!kf(Q, Tn)) return;
          const Sn = Dt(Tn, nr, yr);
          return (Q.pop(), Sn);
        }
        function Ze(Tn, nr) {
          return !yE(Tn, a, nr) || !!Lv(Tn.parent, a, $m(nr), p, m);
        }
        function Tt(Tn, nr, yr) {
          return (
            (n === (nr || Tn) || os(n) === os(nr || Tn)) &&
            !yt(Tn.declarations, vE) &&
            (yr || Ze(os(Tn), c))
          );
        }
        function Dt(Tn, nr, yr) {
          return Tt(Tn.get(n.escapedName), void 0, nr)
            ? [n]
            : Hc(Tn, (vn) => {
                if (
                  vn.flags & 2097152 &&
                  vn.escapedName !== "export=" &&
                  vn.escapedName !== "default" &&
                  !(N6(vn) && a && zc(Wn(a))) &&
                  (!p || yt(vn.declarations, FT)) &&
                  (!yr || !yt(vn.declarations, lne)) &&
                  (nr || !al(vn, 282))
                ) {
                  const Sr = ud(vn),
                    fi = $t(vn, Sr, nr);
                  if (fi) return fi;
                }
                if (
                  vn.escapedName === n.escapedName &&
                  vn.exportSymbol &&
                  Tt(os(vn.exportSymbol), void 0, nr)
                )
                  return [n];
              }) || (Tn === lt ? $t(Re, Re, nr) : void 0);
        }
        function $t(Tn, nr, yr) {
          if (Tt(Tn, nr, yr)) return [Tn];
          const Sn = qp(nr),
            vn = Sn && Te(Sn, !0);
          if (vn && Ze(Tn, $m(c))) return [Tn].concat(vn);
        }
      }
      function yE(n, a, c) {
        let p = !1;
        return (
          Pv(a, (m) => {
            let v = os(m.get(n.escapedName));
            if (!v) return !1;
            if (v === n) return !0;
            const I = v.flags & 2097152 && !al(v, 282);
            return (
              (v = I ? ud(v) : v),
              (I ? dp(v) : v.flags) & c ? ((p = !0), !0) : !1
            );
          }),
          p
        );
      }
      function Wz(n) {
        if (n.declarations && n.declarations.length) {
          for (const a of n.declarations)
            switch (a.kind) {
              case 173:
              case 175:
              case 178:
              case 179:
                continue;
              default:
                return !1;
            }
          return !0;
        }
        return !1;
      }
      function sL(n, a) {
        return Kx(n, a, 788968, !1, !0).accessibility === 0;
      }
      function Jx(n, a) {
        return Kx(n, a, 111551, !1, !0).accessibility === 0;
      }
      function lL(n, a, c) {
        return Kx(n, a, c, !1, !1).accessibility === 0;
      }
      function bW(n, a, c, p, m, v) {
        if (!et(n)) return;
        let I,
          w = !1;
        for (const U of n) {
          const H = Lv(U, a, p, !1);
          if (H) {
            I = U;
            const Te = _A(H[0], m);
            if (Te) return Te;
          }
          if (v && yt(U.declarations, vE)) {
            if (m) {
              w = !0;
              continue;
            }
            return { accessibility: 0 };
          }
          const Q = gE(U, a, p),
            Ie = bW(Q, a, c, c === U ? $m(p) : p, m, v);
          if (Ie) return Ie;
        }
        if (w) return { accessibility: 0 };
        if (I)
          return {
            accessibility: 1,
            errorSymbolName: uo(c, a, p),
            errorModuleName: I !== c ? uo(I, a, 1920) : void 0,
          };
      }
      function oT(n, a, c, p) {
        return Kx(n, a, c, p, !0);
      }
      function Kx(n, a, c, p, m) {
        if (n && a) {
          const v = bW([n], a, n, c, p, m);
          if (v) return v;
          const I = Ye(n.declarations, hA);
          if (I) {
            const w = hA(a);
            if (I !== w)
              return {
                accessibility: 2,
                errorSymbolName: uo(n, a, c),
                errorModuleName: uo(I),
                errorNode: Ir(a) ? a : void 0,
              };
          }
          return { accessibility: 1, errorSymbolName: uo(n, a, c) };
        }
        return { accessibility: 0 };
      }
      function hA(n) {
        const a = Dn(n, Fz);
        return a && Wr(a);
      }
      function Fz(n) {
        return yu(n) || (n.kind === 308 && Pp(n));
      }
      function vE(n) {
        return WF(n) || (n.kind === 308 && Pp(n));
      }
      function _A(n, a) {
        let c;
        if (
          !Vn(
            Un(n.declarations, (v) => v.kind !== 80),
            p,
          )
        )
          return;
        return { accessibility: 0, aliasesToMakeVisible: c };
        function p(v) {
          var I, w;
          if (!X_(v)) {
            const U = Qf(v);
            if (U && !di(U, 32) && X_(U.parent)) return m(v, U);
            if (
              yi(v) &&
              ac(v.parent.parent) &&
              !di(v.parent.parent, 32) &&
              X_(v.parent.parent.parent)
            )
              return m(v, v.parent.parent);
            if (FF(v) && !di(v, 32) && X_(v.parent)) return m(v, v);
            if (Ha(v)) {
              if (
                n.flags & 2097152 &&
                Ir(v) &&
                (I = v.parent) != null &&
                I.parent &&
                yi(v.parent.parent) &&
                (w = v.parent.parent.parent) != null &&
                w.parent &&
                ac(v.parent.parent.parent.parent) &&
                !di(v.parent.parent.parent.parent, 32) &&
                v.parent.parent.parent.parent.parent &&
                X_(v.parent.parent.parent.parent.parent)
              )
                return m(v, v.parent.parent.parent.parent);
              if (n.flags & 2) {
                const H = qE(v);
                if (H.kind === 170) return !1;
                const Q = H.parent.parent;
                return Q.kind !== 244
                  ? !1
                  : di(Q, 32)
                    ? !0
                    : X_(Q.parent)
                      ? m(v, Q)
                      : !1;
              }
            }
            return !1;
          }
          return !0;
        }
        function m(v, I) {
          return (a && ((Vr(v).isVisible = !0), (c = $g(c, I))), !0);
        }
      }
      function cL(n) {
        let a;
        return (
          n.parent.kind === 187 ||
          (n.parent.kind === 234 && !Hh(n.parent)) ||
          n.parent.kind === 168 ||
          (n.parent.kind === 183 && n.parent.parameterName === n)
            ? (a = 1160127)
            : n.kind === 167 ||
                n.kind === 212 ||
                n.parent.kind === 272 ||
                (n.parent.kind === 167 && n.parent.left === n) ||
                (n.parent.kind === 212 && n.parent.expression === n) ||
                (n.parent.kind === 213 && n.parent.expression === n)
              ? (a = 1920)
              : (a = 788968),
          a
        );
      }
      function Xx(n, a, c = !0) {
        const p = cL(n),
          m = Lu(n),
          v = _t(a, m.escapedText, p, void 0, !1);
        return v && v.flags & 262144 && p & 788968
          ? { accessibility: 0 }
          : !v && Eb(m) && oT(Wr(vu(m, !1, !1)), m, p, !1).accessibility === 0
            ? { accessibility: 0 }
            : v
              ? _A(v, c) || {
                  accessibility: 1,
                  errorSymbolName: Al(m),
                  errorNode: m,
                }
              : { accessibility: 3, errorSymbolName: Al(m), errorNode: m };
      }
      function uo(n, a, c, p = 4, m) {
        let v = 70221824,
          I = 0;
        (p & 2 && (v |= 128),
          p & 1 && (v |= 512),
          p & 8 && (v |= 16384),
          p & 32 && (I |= 4),
          p & 16 && (I |= 1));
        const w = p & 4 ? be.symbolToNode : be.symbolToEntityName;
        return m ? U(m).getText() : jR(U);
        function U(H) {
          const Q = w(n, c, a, v, I),
            Ie = a?.kind === 308 ? ose() : YS(),
            Te = a && Wn(a);
          return (Ie.writeNode(4, Q, Te, H), H);
        }
      }
      function aT(n, a, c = 0, p, m, v, I, w) {
        return m ? U(m).getText() : jR(U);
        function U(H) {
          let Q;
          c & 262144 ? (Q = p === 1 ? 186 : 185) : (Q = p === 1 ? 181 : 180);
          const Ie = be.signatureToSignatureDeclaration(
              n,
              Q,
              a,
              bE(c) | 70221824 | 512,
              void 0,
              void 0,
              v,
              I,
              w,
            ),
            Te = dH(),
            Ze = a && Wn(a);
          return (Te.writeNode(4, Ie, Ze, tV(H)), H);
        }
      }
      function ar(n, a, c = 1064960, p = kk(""), m, v, I) {
        const w = (!m && O.noErrorTruncation) || c & 1,
          U = be.typeToTypeNode(
            n,
            a,
            bE(c) | 70221824 | (w ? 1 : 0),
            void 0,
            void 0,
            m,
            v,
            I,
          );
        if (U === void 0) return C.fail("should always get typenode");
        const H = n !== Kt ? YS() : ise(),
          Q = a && Wn(a);
        H.writeNode(4, U, Q, p);
        const Ie = p.getText(),
          Te = m || (w ? sG * 2 : GN * 2);
        return Ie && Ie.length >= Te ? Ie.substr(0, Te - 3) + "..." : Ie;
      }
      function dL(n, a) {
        let c = LC(n.symbol) ? ar(n, n.symbol.valueDeclaration) : ar(n),
          p = LC(a.symbol) ? ar(a, a.symbol.valueDeclaration) : ar(a);
        return (c === p && ((c = PC(n)), (p = PC(a))), [c, p]);
      }
      function PC(n) {
        return ar(n, void 0, 64);
      }
      function LC(n) {
        return (
          n &&
          !!n.valueDeclaration &&
          St(n.valueDeclaration) &&
          !Cf(n.valueDeclaration)
        );
      }
      function bE(n = 0) {
        return n & 848330095;
      }
      function TW(n) {
        return (
          !!n.symbol &&
          !!(n.symbol.flags & 32) &&
          (n === tm(n.symbol) || (!!(n.flags & 524288) && !!(Hr(n) & 16777216)))
        );
      }
      function gA(n) {
        return Ji(n);
      }
      function zz() {
        return {
          syntacticBuilderResolver: {
            evaluateEntityNameExpression: F3e,
            isExpandoFunctionDeclaration: o7e,
            hasLateBindableName: WC,
            shouldRemoveDeclaration(we, se) {
              return !(
                we.internalFlags & 8 &&
                Ds(se.name.expression) &&
                th(se.name).flags & 1
              );
            },
            createRecoveryBoundary(we) {
              return zi(we);
            },
            isDefinitelyReferenceToGlobalSymbolObject: q_,
            getAllAccessorDeclarations: Nye,
            requiresAddingImplicitUndefined(we, se, on) {
              var pn;
              switch (we.kind) {
                case 173:
                case 172:
                case 349:
                  se ?? (se = Wr(we));
                  const Me = _r(se);
                  return !!(
                    se.flags & 4 &&
                    se.flags & 16777216 &&
                    wI(we) &&
                    (pn = se.links) != null &&
                    pn.mappedType &&
                    eut(Me)
                  );
                case 170:
                case 342:
                  return oB(we, on);
                default:
                  C.assertNever(we);
              }
            },
            isOptionalParameter: NW,
            isUndefinedIdentifierExpression(we) {
              return sm(we) === ce;
            },
            isEntityNameVisible(we, se, on) {
              return Xx(se, we.enclosingDeclaration, on);
            },
            serializeExistingTypeNode(we, se, on) {
              return pp(we, se, !!on);
            },
            serializeReturnTypeForSignature(we, se, on) {
              const pn = we,
                Me = Df(se);
              on ?? (on = Wr(se));
              const qe =
                pn.enclosingSymbolTypes.get(Ta(on)) ?? io(fs(Me), pn.mapper);
              return Oa(pn, Me, qe);
            },
            serializeTypeOfExpression(we, se) {
              const on = we,
                pn = io($p($3e(se)), on.mapper);
              return $t(pn, on);
            },
            serializeTypeOfDeclaration(we, se, on) {
              var pn;
              const Me = we;
              on ?? (on = Wr(se));
              let qe =
                (pn = Me.enclosingSymbolTypes) == null
                  ? void 0
                  : pn.get(Ta(on));
              return (
                qe === void 0 &&
                  (qe =
                    on.flags & 98304 && se.kind === 179
                      ? io(Wv(on), Me.mapper)
                      : on && !(on.flags & 133120)
                        ? io(Z0(_r(on)), Me.mapper)
                        : nt),
                se &&
                  (to(se) || mf(se)) &&
                  oB(se, Me.enclosingDeclaration) &&
                  (qe = hT(qe)),
                hr(on, Me, qe)
              );
            },
            serializeNameOfParameter(we, se) {
              return Hi(Wr(se), se, we);
            },
            serializeEntityName(we, se) {
              const on = we,
                pn = sm(se, !0);
              if (pn && Jx(pn, on.enclosingDeclaration))
                return lm(pn, on, 1160127);
            },
            serializeTypeName(we, se, on, pn) {
              return Qc(we, se, on, pn);
            },
            getJsDocPropertyOverride(we, se, on) {
              const pn = we,
                Me = He(on.name) ? on.name : on.name.right,
                qe = _n(a(pn, se), Me.escapedText);
              return qe &&
                on.typeExpression &&
                a(pn, on.typeExpression.type) !== qe
                ? $t(qe, pn)
                : void 0;
            },
            enterNewScope(we, se) {
              if (Yo(se) || fv(se)) {
                const on = Df(se);
                return Ko(we, se, on.parameters, on.typeParameters);
              } else {
                const on = zS(se) ? r_e(se) : [U0(Wr(se.typeParameter))];
                return Ko(we, se, void 0, on);
              }
            },
            markNodeReuse(we, se, on) {
              return c(we, se, on);
            },
            trackExistingEntityName(we, se) {
              return Gs(se, we);
            },
            trackComputedName(we, se) {
              vr(se, we.enclosingDeclaration, we);
            },
            getModuleSpecifierOverride(we, se, on) {
              const pn = we;
              if (pn.bundled || pn.enclosingFile !== Wn(on)) {
                let Me = on.text;
                const qe = Me,
                  ct = Vr(se).resolvedSymbol,
                  Gt = se.isTypeOf ? 111551 : 788968,
                  sn =
                    ct &&
                    oT(ct, pn.enclosingDeclaration, Gt, !1).accessibility ===
                      0 &&
                    wo(ct, pn, Gt, !0)[0];
                if (sn && dI(sn)) Me = lc(sn, pn);
                else {
                  const Ut = Lye(se);
                  Ut && (Me = lc(Ut.symbol, pn));
                }
                if (
                  (Me.includes("/node_modules/") &&
                    ((pn.encounteredError = !0),
                    pn.tracker.reportLikelyUnsafeImportRequiredError &&
                      pn.tracker.reportLikelyUnsafeImportRequiredError(Me)),
                  Me !== qe)
                )
                  return Me;
              }
            },
            canReuseTypeNode(we, se) {
              return hu(we, se);
            },
            canReuseTypeNodeAnnotation(we, se, on, pn, Me) {
              var qe;
              const ct = we;
              if (ct.enclosingDeclaration === void 0) return !1;
              pn ?? (pn = Wr(se));
              let Gt =
                (qe = ct.enclosingSymbolTypes) == null
                  ? void 0
                  : qe.get(Ta(pn));
              Gt === void 0 &&
                (pn.flags & 98304
                  ? (Gt = se.kind === 179 ? Wv(pn) : hL(pn))
                  : l1(se)
                    ? (Gt = fs(Df(se)))
                    : (Gt = _r(pn)));
              let sn = gA(on);
              return pr(sn)
                ? !0
                : (Me && sn && (sn = pu(sn, !to(se))),
                  !!sn && gi(se, Gt, sn) && Nn(on, Gt));
            },
          },
          typeToTypeNode: (we, se, on, pn, Me, qe, ct, Gt) =>
            H(se, on, pn, Me, qe, ct, (sn) => $t(we, sn), Gt),
          typePredicateToTypePredicateNode: (we, se, on, pn, Me) =>
            H(se, on, pn, Me, void 0, void 0, (qe) => mu(we, qe)),
          serializeTypeForDeclaration: (we, se, on, pn, Me, qe) =>
            H(on, pn, Me, qe, void 0, void 0, (ct) =>
              Ne.serializeTypeOfDeclaration(we, se, ct),
            ),
          serializeReturnTypeForSignature: (we, se, on, pn, Me) =>
            H(se, on, pn, Me, void 0, void 0, (qe) =>
              Ne.serializeReturnTypeForSignature(we, Wr(we), qe),
            ),
          serializeTypeForExpression: (we, se, on, pn, Me) =>
            H(se, on, pn, Me, void 0, void 0, (qe) =>
              Ne.serializeTypeOfExpression(we, qe),
            ),
          indexInfoToIndexSignatureDeclaration: (we, se, on, pn, Me) =>
            H(se, on, pn, Me, void 0, void 0, (qe) => oo(we, qe, void 0)),
          signatureToSignatureDeclaration: (
            we,
            se,
            on,
            pn,
            Me,
            qe,
            ct,
            Gt,
            sn,
          ) => H(on, pn, Me, qe, ct, Gt, (Ut) => ii(we, se, Ut), sn),
          symbolToEntityName: (we, se, on, pn, Me, qe) =>
            H(on, pn, Me, qe, void 0, void 0, (ct) => nc(we, ct, se, !1)),
          symbolToExpression: (we, se, on, pn, Me, qe) =>
            H(on, pn, Me, qe, void 0, void 0, (ct) => lm(we, ct, se)),
          symbolToTypeParameterDeclarations: (we, se, on, pn, Me) =>
            H(se, on, pn, Me, void 0, void 0, (qe) => il(we, qe)),
          symbolToParameterDeclaration: (we, se, on, pn, Me) =>
            H(se, on, pn, Me, void 0, void 0, (qe) => rr(we, qe)),
          typeParameterToDeclaration: (we, se, on, pn, Me, qe, ct, Gt) =>
            H(se, on, pn, Me, qe, ct, (sn) => Kl(we, sn), Gt),
          symbolTableToDeclarationStatements: (we, se, on, pn, Me) =>
            H(se, on, pn, Me, void 0, void 0, (qe) => iS(we, qe)),
          symbolToNode: (we, se, on, pn, Me, qe) =>
            H(on, pn, Me, qe, void 0, void 0, (ct) => p(we, ct, se)),
          symbolToDeclarations: m,
        };
        function a(we, se, on) {
          const pn = gA(se);
          if (!we.mapper) return pn;
          const Me = io(pn, we.mapper);
          return on && Me !== pn ? void 0 : Me;
        }
        function c(we, se, on) {
          if (
            ((!Os(se) ||
              !(se.flags & 16) ||
              !we.enclosingFile ||
              we.enclosingFile !== Wn(yl(se))) &&
              (se = L.cloneNode(se)),
            se === on || !on)
          )
            return se;
          let pn = se.original;
          for (; pn && pn !== on; ) pn = pn.original;
          return (
            pn || jr(se, on),
            we.enclosingFile && we.enclosingFile === Wn(yl(on))
              ? vt(se, on)
              : se
          );
        }
        function p(we, se, on) {
          if (se.internalFlags & 1) {
            if (we.valueDeclaration) {
              const Me = Oo(we.valueDeclaration);
              if (Me && va(Me)) return Me;
            }
            const pn = Jr(we).nameType;
            if (pn && pn.flags & 9216)
              return (
                (se.enclosingDeclaration = pn.symbol.valueDeclaration),
                L.createComputedPropertyName(lm(pn.symbol, se, on))
              );
          }
          return lm(we, se, on);
        }
        function m(we, se, on, pn, Me, qe) {
          const ct = H(
            void 0,
            on,
            void 0,
            void 0,
            pn,
            Me,
            (Gt) => U(we, Gt),
            qe,
          );
          return Ui(ct, (Gt) => {
            switch (Gt.kind) {
              case 264:
                return v(Gt, we);
              case 267:
                return I(Gt, ZT, we);
              case 265:
                return w(Gt, we, se);
              case 268:
                return I(Gt, uc, we);
              default:
                return;
            }
          });
        }
        function v(we, se) {
          const on = Un(se.declarations, ui),
            pn = on && on.length > 0 ? on[0] : we,
            Me = Gd(pn) & -161;
          return (
            dc(pn) &&
              (we = L.updateClassDeclaration(
                we,
                we.modifiers,
                void 0,
                we.typeParameters,
                we.heritageClauses,
                we.members,
              )),
            L.replaceModifiers(we, Me)
          );
        }
        function I(we, se, on) {
          const pn = Un(on.declarations, se),
            Me = pn && pn.length > 0 ? pn[0] : we,
            qe = Gd(Me) & -161;
          return L.replaceModifiers(we, qe);
        }
        function w(we, se, on) {
          if (on & 64) return I(we, gd, se);
        }
        function U(we, se) {
          const on = qs(we);
          (se.typeStack.push(on.id), se.typeStack.push(-1));
          const pn = da([we]),
            Me = iS(pn, se);
          return (se.typeStack.pop(), se.typeStack.pop(), Me);
        }
        function H(we, se, on, pn, Me, qe, ct, Gt) {
          const sn = pn?.trackSymbol
            ? pn.moduleResolverHost
            : (on || 0) & 4
              ? _He(e)
              : void 0;
          se = se || 0;
          const Ut = Me || (se & 1 ? sG : GN),
            un = {
              enclosingDeclaration: we,
              enclosingFile: we && Wn(we),
              flags: se,
              internalFlags: on || 0,
              tracker: void 0,
              maxTruncationLength: Ut,
              maxExpansionDepth: qe ?? -1,
              encounteredError: !1,
              suppressReportInferenceFallback: !1,
              reportedDiagnostic: !1,
              visitedTypes: void 0,
              symbolDepth: void 0,
              inferTypeParameters: void 0,
              approximateLength: 0,
              trackedSymbols: void 0,
              bundled: !!O.outFile && !!we && Pp(Wn(we)),
              truncating: !1,
              usedSymbolNames: void 0,
              remappedSymbolNames: void 0,
              remappedSymbolReferences: void 0,
              reverseMappedStack: void 0,
              mustCreateTypeParameterSymbolList: !0,
              typeParameterSymbolList: void 0,
              mustCreateTypeParametersNamesLookups: !0,
              typeParameterNames: void 0,
              typeParameterNamesByText: void 0,
              typeParameterNamesByTextNextNameCount: void 0,
              enclosingSymbolTypes: new Map(),
              mapper: void 0,
              depth: 0,
              typeStack: [],
              out: { canIncreaseExpansionDepth: !1, truncated: !1 },
            };
          un.tracker = new uae(un, pn, sn);
          const Zn = ct(un);
          return (
            un.truncating && un.flags & 1 && un.tracker.reportTruncationError(),
            Gt &&
              ((Gt.canIncreaseExpansionDepth =
                un.out.canIncreaseExpansionDepth),
              (Gt.truncated = un.out.truncated)),
            un.encounteredError ? void 0 : Zn
          );
        }
        function Q(we, se, on) {
          const pn = Ta(se),
            Me = we.enclosingSymbolTypes.get(pn);
          return (we.enclosingSymbolTypes.set(pn, on), qe);
          function qe() {
            Me
              ? we.enclosingSymbolTypes.set(pn, Me)
              : we.enclosingSymbolTypes.delete(pn);
          }
        }
        function Ie(we) {
          const se = we.flags,
            on = we.internalFlags,
            pn = we.depth;
          return Me;
          function Me() {
            ((we.flags = se), (we.internalFlags = on), (we.depth = pn));
          }
        }
        function Te(we) {
          return we.maxExpansionDepth >= 0 && Ze(we);
        }
        function Ze(we) {
          return we.truncating
            ? we.truncating
            : (we.truncating = we.approximateLength > we.maxTruncationLength);
        }
        function Tt(we, se) {
          for (let on = 0; on < se.typeStack.length - 1; on++)
            if (se.typeStack[on] === we.id) return !1;
          return (
            se.depth < se.maxExpansionDepth ||
            (se.depth === se.maxExpansionDepth &&
              !se.out.canIncreaseExpansionDepth)
          );
        }
        function Dt(we, se, on = !1) {
          if (!on && kC(we)) return !1;
          for (let Me = 0; Me < se.typeStack.length - 1; Me++)
            if (se.typeStack[Me] === we.id) return !1;
          const pn = se.depth < se.maxExpansionDepth;
          return (pn || (se.out.canIncreaseExpansionDepth = !0), pn);
        }
        function $t(we, se) {
          const on = Ie(se);
          we && se.typeStack.push(we.id);
          const pn = Tn(we, se);
          return (we && se.typeStack.pop(), on(), pn);
        }
        function Tn(we, se) {
          var on, pn;
          i &&
            i.throwIfCancellationRequested &&
            i.throwIfCancellationRequested();
          const Me = se.flags & 8388608;
          se.flags &= -8388609;
          let qe = !1;
          if (!we) {
            if (!(se.flags & 262144)) {
              se.encounteredError = !0;
              return;
            }
            return ((se.approximateLength += 3), L.createKeywordTypeNode(133));
          }
          if ((se.flags & 536870912 || (we = Pm(we)), we.flags & 1))
            return we.aliasSymbol
              ? L.createTypeReferenceNode(
                  _c(we.aliasSymbol),
                  Sr(we.aliasTypeArguments, se),
                )
              : we === Kt
                ? Cb(L.createKeywordTypeNode(133), 3, "unresolved")
                : ((se.approximateLength += 3),
                  L.createKeywordTypeNode(we === Oe ? 141 : 133));
          if (we.flags & 2) return L.createKeywordTypeNode(159);
          if (we.flags & 4)
            return ((se.approximateLength += 6), L.createKeywordTypeNode(154));
          if (we.flags & 8)
            return ((se.approximateLength += 6), L.createKeywordTypeNode(150));
          if (we.flags & 64)
            return ((se.approximateLength += 6), L.createKeywordTypeNode(163));
          if (we.flags & 16 && !we.aliasSymbol)
            return ((se.approximateLength += 7), L.createKeywordTypeNode(136));
          if (we.flags & 1056) {
            if (we.symbol.flags & 8) {
              const bn = Yc(we.symbol),
                Yr = Ts(bn, se, 788968);
              if (qs(bn) === we) return Yr;
              const Fo = wl(we.symbol);
              return fp(Fo, 1)
                ? sr(Yr, L.createTypeReferenceNode(Fo, void 0))
                : e_(Yr)
                  ? ((Yr.isTypeOf = !0),
                    L.createIndexedAccessTypeNode(
                      Yr,
                      L.createLiteralTypeNode(L.createStringLiteral(Fo)),
                    ))
                  : Wp(Yr)
                    ? L.createIndexedAccessTypeNode(
                        L.createTypeQueryNode(Yr.typeName),
                        L.createLiteralTypeNode(L.createStringLiteral(Fo)),
                      )
                    : C.fail(
                        "Unhandled type node kind returned from `symbolToTypeNode`.",
                      );
            }
            if (Dt(we, se)) qe = !0;
            else return Ts(we.symbol, se, 788968);
          }
          if (we.flags & 128)
            return (
              (se.approximateLength += we.value.length + 2),
              L.createLiteralTypeNode(
                Cr(
                  L.createStringLiteral(we.value, !!(se.flags & 268435456)),
                  16777216,
                ),
              )
            );
          if (we.flags & 256) {
            const bn = we.value;
            return (
              (se.approximateLength += ("" + bn).length),
              L.createLiteralTypeNode(
                bn < 0
                  ? L.createPrefixUnaryExpression(
                      41,
                      L.createNumericLiteral(-bn),
                    )
                  : L.createNumericLiteral(bn),
              )
            );
          }
          if (we.flags & 2048)
            return (
              (se.approximateLength += wS(we.value).length + 1),
              L.createLiteralTypeNode(L.createBigIntLiteral(we.value))
            );
          if (we.flags & 512)
            return (
              (se.approximateLength += we.intrinsicName.length),
              L.createLiteralTypeNode(
                we.intrinsicName === "true" ? L.createTrue() : L.createFalse(),
              )
            );
          if (we.flags & 8192) {
            if (!(se.flags & 1048576)) {
              if (Jx(we.symbol, se.enclosingDeclaration))
                return ((se.approximateLength += 6), Ts(we.symbol, se, 111551));
              se.tracker.reportInaccessibleUniqueSymbolError &&
                se.tracker.reportInaccessibleUniqueSymbolError();
            }
            return (
              (se.approximateLength += 13),
              L.createTypeOperatorNode(158, L.createKeywordTypeNode(155))
            );
          }
          if (we.flags & 16384)
            return ((se.approximateLength += 4), L.createKeywordTypeNode(116));
          if (we.flags & 32768)
            return ((se.approximateLength += 9), L.createKeywordTypeNode(157));
          if (we.flags & 65536)
            return (
              (se.approximateLength += 4),
              L.createLiteralTypeNode(L.createNull())
            );
          if (we.flags & 131072)
            return ((se.approximateLength += 5), L.createKeywordTypeNode(146));
          if (we.flags & 4096)
            return ((se.approximateLength += 6), L.createKeywordTypeNode(155));
          if (we.flags & 67108864)
            return ((se.approximateLength += 6), L.createKeywordTypeNode(151));
          if (MM(we))
            return (
              se.flags & 4194304 &&
                (!se.encounteredError &&
                  !(se.flags & 32768) &&
                  (se.encounteredError = !0),
                (pn = (on = se.tracker).reportInaccessibleThisError) == null ||
                  pn.call(on)),
              (se.approximateLength += 4),
              L.createThisTypeNode()
            );
          if (
            !Me &&
            we.aliasSymbol &&
            (se.flags & 16384 || sL(we.aliasSymbol, se.enclosingDeclaration))
          ) {
            if (!Dt(we, se, !0)) {
              const bn = Sr(we.aliasTypeArguments, se);
              return G0(we.aliasSymbol.escapedName) &&
                !(we.aliasSymbol.flags & 32)
                ? L.createTypeReferenceNode(L.createIdentifier(""), bn)
                : et(bn) === 1 && we.aliasSymbol === es.symbol
                  ? L.createArrayTypeNode(bn[0])
                  : Ts(we.aliasSymbol, se, 788968, bn);
            }
            se.depth += 1;
          }
          const ct = Hr(we);
          if (ct & 4)
            return (
              C.assert(!!(we.flags & 524288)),
              Dt(we, se)
                ? ((se.depth += 1), fr(we, !0, !0))
                : we.node
                  ? Br(we, mi)
                  : mi(we)
            );
          if (we.flags & 262144 || ct & 3) {
            if (we.flags & 262144 && jn(se.inferTypeParameters, we)) {
              se.approximateLength += wl(we.symbol).length + 6;
              let Yr;
              const Fo = Uu(we);
              if (Fo) {
                const vo = AWe(we, !0);
                (vo && Hg(Fo, vo)) ||
                  ((se.approximateLength += 9), (Yr = Fo && $t(Fo, se)));
              }
              return L.createInferTypeNode(fo(we, se, Yr));
            }
            if (se.flags & 4 && we.flags & 262144) {
              const Yr = Sl(we, se);
              return (
                (se.approximateLength += Kr(Yr).length),
                L.createTypeReferenceNode(L.createIdentifier(Kr(Yr)), void 0)
              );
            }
            if (ct & 3 && Dt(we, se)) return ((se.depth += 1), fr(we, !0, !0));
            if (we.symbol) return Ts(we.symbol, se, 788968);
            const bn =
              (we === pt || we === qt) && N && N.symbol
                ? (we === qt ? "sub-" : "super-") + wl(N.symbol)
                : "?";
            return L.createTypeReferenceNode(L.createIdentifier(bn), void 0);
          }
          if (
            (we.flags & 1048576 && we.origin && (we = we.origin),
            we.flags & 3145728)
          ) {
            const bn = we.flags & 1048576 ? SW(we.types, qe) : we.types;
            if (et(bn) === 1) return $t(bn[0], se);
            const Yr = Sr(bn, se, !0);
            if (Yr && Yr.length > 0)
              return we.flags & 1048576
                ? L.createUnionTypeNode(Yr)
                : L.createIntersectionTypeNode(Yr);
            !se.encounteredError &&
              !(se.flags & 262144) &&
              (se.encounteredError = !0);
            return;
          }
          if (ct & 48) return (C.assert(!!(we.flags & 524288)), fr(we));
          if (we.flags & 4194304) {
            const bn = we.type;
            se.approximateLength += 6;
            const Yr = $t(bn, se);
            return L.createTypeOperatorNode(143, Yr);
          }
          if (we.flags & 134217728) {
            const bn = we.texts,
              Yr = we.types,
              Fo = L.createTemplateHead(bn[0]),
              vo = L.createNodeArray(
                Vt(Yr, (Ya, hs) =>
                  L.createTemplateLiteralTypeSpan(
                    $t(Ya, se),
                    (hs < Yr.length - 1
                      ? L.createTemplateMiddle
                      : L.createTemplateTail)(bn[hs + 1]),
                  ),
                ),
              );
            return (
              (se.approximateLength += 2),
              L.createTemplateLiteralType(Fo, vo)
            );
          }
          if (we.flags & 268435456) {
            const bn = $t(we.type, se);
            return Ts(we.symbol, se, 788968, [bn]);
          }
          if (we.flags & 8388608) {
            const bn = $t(we.objectType, se),
              Yr = $t(we.indexType, se);
            return (
              (se.approximateLength += 2),
              L.createIndexedAccessTypeNode(bn, Yr)
            );
          }
          if (we.flags & 16777216) return Br(we, (bn) => Gt(bn));
          if (we.flags & 33554432) {
            const bn = $t(we.baseType, se),
              Yr = jC(we) && Fhe("NoInfer", !1);
            return Yr ? Ts(Yr, se, 788968, [bn]) : bn;
          }
          return C.fail("Should be unreachable.");
          function Gt(bn) {
            const Yr = $t(bn.checkType, se);
            if (
              ((se.approximateLength += 15),
              se.flags & 4 &&
                bn.root.isDistributive &&
                !(bn.checkType.flags & 262144))
            ) {
              const No = Vu(ja(262144, "T")),
                Pc = Sl(No, se),
                Lc = L.createTypeReferenceNode(Pc);
              se.approximateLength += 37;
              const Od = RA(bn.root.checkType, No, bn.mapper),
                _u = se.inferTypeParameters;
              se.inferTypeParameters = bn.root.inferTypeParameters;
              const qu = $t(io(bn.root.extendsType, Od), se);
              se.inferTypeParameters = _u;
              const Hy = sn(io(a(se, bn.root.node.trueType), Od)),
                aS = sn(io(a(se, bn.root.node.falseType), Od));
              return L.createConditionalTypeNode(
                Yr,
                L.createInferTypeNode(
                  L.createTypeParameterDeclaration(
                    void 0,
                    L.cloneNode(Lc.typeName),
                  ),
                ),
                L.createConditionalTypeNode(
                  L.createTypeReferenceNode(L.cloneNode(Pc)),
                  $t(bn.checkType, se),
                  L.createConditionalTypeNode(Lc, qu, Hy, aS),
                  L.createKeywordTypeNode(146),
                ),
                L.createKeywordTypeNode(146),
              );
            }
            const Fo = se.inferTypeParameters;
            se.inferTypeParameters = bn.root.inferTypeParameters;
            const vo = $t(bn.extendsType, se);
            se.inferTypeParameters = Fo;
            const Ya = sn(pT(bn)),
              hs = sn(fT(bn));
            return L.createConditionalTypeNode(Yr, vo, Ya, hs);
          }
          function sn(bn) {
            var Yr, Fo, vo;
            return bn.flags & 1048576
              ? (Yr = se.visitedTypes) != null && Yr.has(pd(bn))
                ? (se.flags & 131072 ||
                    ((se.encounteredError = !0),
                    (vo =
                      (Fo = se.tracker) == null
                        ? void 0
                        : Fo.reportCyclicStructureError) == null ||
                      vo.call(Fo)),
                  nr(se))
                : Br(bn, (Ya) => $t(Ya, se))
              : $t(bn, se);
          }
          function Ut(bn) {
            return !!FW(bn);
          }
          function un(bn) {
            return !!bn.target && Ut(bn.target) && !Ut(bn);
          }
          function Zn(bn) {
            var Yr;
            C.assert(!!(bn.flags & 524288));
            const Fo = bn.declaration.readonlyToken
                ? L.createToken(bn.declaration.readonlyToken.kind)
                : void 0,
              vo = bn.declaration.questionToken
                ? L.createToken(bn.declaration.questionToken.kind)
                : void 0;
            let Ya,
              hs,
              No = Gg(bn);
            const Pc = eh(bn),
              Lc =
                !zC(bn) &&
                !(H0(bn).flags & 2) &&
                se.flags & 4 &&
                !(
                  Rf(bn).flags & 262144 &&
                  ((Yr = Uu(Rf(bn))) == null ? void 0 : Yr.flags) & 4194304
                );
            if (zC(bn)) {
              if (un(bn) && se.flags & 4) {
                const bT = Vu(ja(262144, "T")),
                  gR = Sl(bT, se),
                  HL = bn.target;
                ((hs = L.createTypeReferenceNode(gR)),
                  (No = io(Gg(HL), D8e([eh(HL), H0(HL)], [Pc, bT]))));
              }
              Ya = L.createTypeOperatorNode(143, hs || $t(H0(bn), se));
            } else if (Lc) {
              const bT = Vu(ja(262144, "T")),
                gR = Sl(bT, se);
              ((hs = L.createTypeReferenceNode(gR)), (Ya = hs));
            } else Ya = $t(Rf(bn), se);
            const Od = fo(Pc, se, Ya),
              _u = Ko(se, bn.declaration, void 0, [
                U0(Wr(bn.declaration.typeParameter)),
              ]),
              qu = bn.declaration.nameType ? $t(Fv(bn), se) : void 0,
              Hy = $t(Gy(No, !!(Q_(bn) & 4)), se);
            _u();
            const aS = L.createMappedTypeNode(Fo, Od, qu, vo, Hy, void 0);
            se.approximateLength += 10;
            const OE = Cr(aS, 1);
            if (un(bn) && se.flags & 4) {
              const bT = io(
                Uu(a(se, bn.declaration.typeParameter.constraint.type)) || Nt,
                bn.mapper,
              );
              return L.createConditionalTypeNode(
                $t(H0(bn), se),
                L.createInferTypeNode(
                  L.createTypeParameterDeclaration(
                    void 0,
                    L.cloneNode(hs.typeName),
                    bT.flags & 2 ? void 0 : $t(bT, se),
                  ),
                ),
                OE,
                L.createKeywordTypeNode(146),
              );
            } else if (Lc)
              return L.createConditionalTypeNode(
                $t(Rf(bn), se),
                L.createInferTypeNode(
                  L.createTypeParameterDeclaration(
                    void 0,
                    L.cloneNode(hs.typeName),
                    L.createTypeOperatorNode(143, $t(H0(bn), se)),
                  ),
                ),
                OE,
                L.createKeywordTypeNode(146),
              );
            return OE;
          }
          function fr(bn, Yr = !1, Fo = !1) {
            var vo, Ya;
            const hs = bn.id,
              No = bn.symbol;
            if (No) {
              if (!!(Hr(bn) & 8388608)) {
                const qu = bn.node;
                if (FS(qu) && a(se, qu) === bn) {
                  const Hy = Ne.tryReuseExistingTypeNode(se, qu);
                  if (Hy) return Hy;
                }
                return (vo = se.visitedTypes) != null && vo.has(hs)
                  ? nr(se)
                  : Br(bn, li);
              }
              const Od = TW(bn) ? 788968 : 111551;
              if (E_(No.valueDeclaration)) return Ts(No, se, Od);
              if (
                !Fo &&
                ((No.flags & 32 &&
                  !Yr &&
                  !IW(No) &&
                  !(
                    No.valueDeclaration &&
                    ui(No.valueDeclaration) &&
                    se.flags & 2048 &&
                    (!Dc(No.valueDeclaration) ||
                      oT(No, se.enclosingDeclaration, Od, !1).accessibility !==
                        0)
                  )) ||
                  No.flags & 896 ||
                  Pc())
              )
                if (Dt(bn, se)) se.depth += 1;
                else return Ts(No, se, Od);
              if ((Ya = se.visitedTypes) != null && Ya.has(hs)) {
                const _u = Bz(bn);
                return _u ? Ts(_u, se, 788968) : nr(se);
              } else return Br(bn, li);
            } else return li(bn);
            function Pc() {
              var Lc;
              const Od =
                  !!(No.flags & 8192) &&
                  yt(No.declarations, (qu) => ua(qu) && !HOe(Oo(qu))),
                _u =
                  !!(No.flags & 16) &&
                  (No.parent ||
                    Ye(
                      No.declarations,
                      (qu) => qu.parent.kind === 308 || qu.parent.kind === 269,
                    ));
              if (Od || _u)
                return (
                  (!!(se.flags & 4096) ||
                    ((Lc = se.visitedTypes) == null ? void 0 : Lc.has(hs))) &&
                  (!(se.flags & 8) || Jx(No, se.enclosingDeclaration))
                );
            }
          }
          function Br(bn, Yr) {
            var Fo, vo, Ya;
            const hs = bn.id,
              No = Hr(bn) & 16 && bn.symbol && bn.symbol.flags & 32,
              Pc =
                Hr(bn) & 4 && bn.node
                  ? "N" + ls(bn.node)
                  : bn.flags & 16777216
                    ? "N" + ls(bn.root.node)
                    : bn.symbol
                      ? (No ? "+" : "") + Ta(bn.symbol)
                      : void 0;
            (se.visitedTypes || (se.visitedTypes = new Set()),
              Pc && !se.symbolDepth && (se.symbolDepth = new Map()));
            const Lc =
                se.maxExpansionDepth >= 0
                  ? void 0
                  : se.enclosingDeclaration && Vr(se.enclosingDeclaration),
              Od = `${pd(bn)}|${se.flags}|${se.internalFlags}`;
            Lc && (Lc.serializedTypes || (Lc.serializedTypes = new Map()));
            const _u = (Fo = Lc?.serializedTypes) == null ? void 0 : Fo.get(Od);
            if (_u)
              return (
                (vo = _u.trackedSymbols) == null ||
                  vo.forEach(([rg, rN, lB]) =>
                    se.tracker.trackSymbol(rg, rN, lB),
                  ),
                _u.truncating && (se.truncating = !0),
                (se.approximateLength += _u.addedLength),
                gR(_u.node)
              );
            let qu;
            if (Pc) {
              if (((qu = se.symbolDepth.get(Pc) || 0), qu > 10)) return nr(se);
              se.symbolDepth.set(Pc, qu + 1);
            }
            se.visitedTypes.add(hs);
            const Hy = se.trackedSymbols;
            se.trackedSymbols = void 0;
            const aS = se.approximateLength,
              OE = Yr(bn),
              bT = se.approximateLength - aS;
            return (
              !se.reportedDiagnostic &&
                !se.encounteredError &&
                ((Ya = Lc?.serializedTypes) == null ||
                  Ya.set(Od, {
                    node: OE,
                    truncating: se.truncating,
                    addedLength: bT,
                    trackedSymbols: se.trackedSymbols,
                  })),
              se.visitedTypes.delete(hs),
              Pc && se.symbolDepth.set(Pc, qu),
              (se.trackedSymbols = Hy),
              OE
            );
            function gR(rg) {
              return !Os(rg) && jo(rg) === rg
                ? rg
                : c(se, L.cloneNode(kn(rg, gR, void 0, HL, gR)), rg);
            }
            function HL(rg, rN, lB, zye, Bye) {
              return rg && rg.length === 0
                ? vt(L.createNodeArray(void 0, rg.hasTrailingComma), rg)
                : Xn(rg, rN, lB, zye, Bye);
            }
          }
          function li(bn) {
            if (up(bn) || bn.containsError) return Zn(bn);
            const Yr = Dh(bn);
            if (!Yr.properties.length && !Yr.indexInfos.length) {
              if (!Yr.callSignatures.length && !Yr.constructSignatures.length)
                return (
                  (se.approximateLength += 2),
                  Cr(L.createTypeLiteralNode(void 0), 1)
                );
              if (
                Yr.callSignatures.length === 1 &&
                !Yr.constructSignatures.length
              ) {
                const No = Yr.callSignatures[0];
                return ii(No, 185, se);
              }
              if (
                Yr.constructSignatures.length === 1 &&
                !Yr.callSignatures.length
              ) {
                const No = Yr.constructSignatures[0];
                return ii(No, 186, se);
              }
            }
            const Fo = Un(Yr.constructSignatures, (No) => !!(No.flags & 4));
            if (yt(Fo)) {
              const No = Vt(Fo, TA);
              return (
                Yr.callSignatures.length +
                  (Yr.constructSignatures.length - Fo.length) +
                  Yr.indexInfos.length +
                  (se.flags & 2048
                    ? Io(Yr.properties, (Lc) => !(Lc.flags & 4194304))
                    : et(Yr.properties)) && No.push(mA(Yr)),
                $t(Ma(No), se)
              );
            }
            const vo = Ie(se);
            se.flags |= 4194304;
            const Ya = ts(Yr);
            vo();
            const hs = L.createTypeLiteralNode(Ya);
            return (
              (se.approximateLength += 2),
              Cr(hs, se.flags & 1024 ? 0 : 1),
              hs
            );
          }
          function mi(bn) {
            let Yr = rl(bn);
            if (bn.target === es || bn.target === Va) {
              if (se.flags & 2) {
                const Ya = $t(Yr[0], se);
                return L.createTypeReferenceNode(
                  bn.target === es ? "Array" : "ReadonlyArray",
                  [Ya],
                );
              }
              const Fo = $t(Yr[0], se),
                vo = L.createArrayTypeNode(Fo);
              return bn.target === es ? vo : L.createTypeOperatorNode(148, vo);
            } else if (bn.target.objectFlags & 8) {
              if (
                ((Yr = Zi(Yr, (Fo, vo) =>
                  Gy(Fo, !!(bn.target.elementFlags[vo] & 2)),
                )),
                Yr.length > 0)
              ) {
                const Fo = Gv(bn),
                  vo = Sr(Yr.slice(0, Fo), se);
                if (vo) {
                  const { labeledElementDeclarations: Ya } = bn.target;
                  for (let No = 0; No < vo.length; No++) {
                    const Pc = bn.target.elementFlags[No],
                      Lc = Ya?.[No];
                    Lc
                      ? (vo[No] = L.createNamedTupleMember(
                          Pc & 12 ? L.createToken(26) : void 0,
                          L.createIdentifier(Gi(Uge(Lc))),
                          Pc & 2 ? L.createToken(58) : void 0,
                          Pc & 4 ? L.createArrayTypeNode(vo[No]) : vo[No],
                        ))
                      : (vo[No] =
                          Pc & 12
                            ? L.createRestTypeNode(
                                Pc & 4 ? L.createArrayTypeNode(vo[No]) : vo[No],
                              )
                            : Pc & 2
                              ? L.createOptionalTypeNode(vo[No])
                              : vo[No]);
                  }
                  const hs = Cr(L.createTupleTypeNode(vo), 1);
                  return bn.target.readonly
                    ? L.createTypeOperatorNode(148, hs)
                    : hs;
                }
              }
              if (se.encounteredError || se.flags & 524288) {
                const Fo = Cr(L.createTupleTypeNode([]), 1);
                return bn.target.readonly
                  ? L.createTypeOperatorNode(148, Fo)
                  : Fo;
              }
              se.encounteredError = !0;
              return;
            } else {
              if (
                se.flags & 2048 &&
                bn.symbol.valueDeclaration &&
                ui(bn.symbol.valueDeclaration) &&
                !Jx(bn.symbol, se.enclosingDeclaration)
              )
                return fr(bn);
              {
                const Fo = bn.target.outerTypeParameters;
                let vo = 0,
                  Ya;
                if (Fo) {
                  const Lc = Fo.length;
                  for (; vo < Lc; ) {
                    const Od = vo,
                      _u = IWe(Fo[vo]);
                    do vo++;
                    while (vo < Lc && IWe(Fo[vo]) === _u);
                    if (!FB(Fo, Yr, Od, vo)) {
                      const qu = Sr(Yr.slice(Od, vo), se),
                        Hy = Ie(se);
                      se.flags |= 16;
                      const aS = Ts(_u, se, 788968, qu);
                      (Hy(), (Ya = Ya ? sr(Ya, aS) : aS));
                    }
                  }
                }
                let hs;
                if (Yr.length > 0) {
                  let Lc = 0;
                  if (
                    bn.target.typeParameters &&
                    ((Lc = Math.min(
                      bn.target.typeParameters.length,
                      Yr.length,
                    )),
                    (Jp(bn, hY(!1)) ||
                      Jp(bn, UWe(!1)) ||
                      Jp(bn, Qz(!1)) ||
                      Jp(bn, jWe(!1))) &&
                      (!bn.node ||
                        !Wp(bn.node) ||
                        !bn.node.typeArguments ||
                        bn.node.typeArguments.length < Lc))
                  )
                    for (; Lc > 0; ) {
                      const Od = Yr[Lc - 1],
                        _u = bn.target.typeParameters[Lc - 1],
                        qu = EE(_u);
                      if (!qu || !Hg(Od, qu)) break;
                      Lc--;
                    }
                  hs = Sr(Yr.slice(vo, Lc), se);
                }
                const No = Ie(se);
                se.flags |= 16;
                const Pc = Ts(bn.symbol, se, 788968, hs);
                return (No(), Ya ? sr(Ya, Pc) : Pc);
              }
            }
          }
          function sr(bn, Yr) {
            if (e_(bn)) {
              let Fo = bn.typeArguments,
                vo = bn.qualifier;
              (vo &&
                (He(vo)
                  ? Fo !== _1(vo) && (vo = cv(L.cloneNode(vo), Fo))
                  : Fo !== _1(vo.right) &&
                    (vo = L.updateQualifiedName(
                      vo,
                      vo.left,
                      cv(L.cloneNode(vo.right), Fo),
                    ))),
                (Fo = Yr.typeArguments));
              const Ya = xi(Yr);
              for (const hs of Ya) vo = vo ? L.createQualifiedName(vo, hs) : hs;
              return L.updateImportTypeNode(
                bn,
                bn.argument,
                bn.attributes,
                vo,
                Fo,
                bn.isTypeOf,
              );
            } else {
              let Fo = bn.typeArguments,
                vo = bn.typeName;
              (He(vo)
                ? Fo !== _1(vo) && (vo = cv(L.cloneNode(vo), Fo))
                : Fo !== _1(vo.right) &&
                  (vo = L.updateQualifiedName(
                    vo,
                    vo.left,
                    cv(L.cloneNode(vo.right), Fo),
                  )),
                (Fo = Yr.typeArguments));
              const Ya = xi(Yr);
              for (const hs of Ya) vo = L.createQualifiedName(vo, hs);
              return L.updateTypeReferenceNode(bn, vo, Fo);
            }
          }
          function xi(bn) {
            let Yr = bn.typeName;
            const Fo = [];
            for (; !He(Yr); ) (Fo.unshift(Yr.right), (Yr = Yr.left));
            return (Fo.unshift(Yr), Fo);
          }
          function mo(bn, Yr, Fo) {
            if (
              bn.components &&
              Vn(bn.components, (Ya) => {
                var hs;
                return !!(
                  Ya.name &&
                  va(Ya.name) &&
                  Ds(Ya.name.expression) &&
                  Yr.enclosingDeclaration &&
                  ((hs = Xx(Ya.name.expression, Yr.enclosingDeclaration, !1)) ==
                  null
                    ? void 0
                    : hs.accessibility) === 0
                );
              })
            ) {
              const Ya = Un(bn.components, (hs) => !WC(hs));
              return Vt(
                Ya,
                (hs) => (
                  vr(hs.name.expression, Yr.enclosingDeclaration, Yr),
                  c(
                    Yr,
                    L.createPropertySignature(
                      bn.isReadonly ? [L.createModifier(148)] : void 0,
                      hs.name,
                      (Su(hs) ||
                        Po(hs) ||
                        Gm(hs) ||
                        Nl(hs) ||
                        ug(hs) ||
                        Vh(hs)) &&
                        hs.questionToken
                        ? L.createToken(58)
                        : void 0,
                      Fo || $t(_r(hs.symbol), Yr),
                    ),
                    hs,
                  )
                ),
              );
            }
            return [oo(bn, Yr, Fo)];
          }
          function ts(bn) {
            if (Ze(se))
              return (
                (se.out.truncated = !0),
                se.flags & 1
                  ? [OM(L.createNotEmittedTypeElement(), 3, "elided")]
                  : [L.createPropertySignature(void 0, "...", void 0, void 0)]
              );
            se.typeStack.push(-1);
            const Yr = [];
            for (const Ya of bn.callSignatures) Yr.push(ii(Ya, 180, se));
            for (const Ya of bn.constructSignatures)
              Ya.flags & 4 || Yr.push(ii(Ya, 181, se));
            for (const Ya of bn.indexInfos)
              Yr.push(...mo(Ya, se, bn.objectFlags & 1024 ? nr(se) : void 0));
            const Fo = bn.properties;
            if (!Fo) return (se.typeStack.pop(), Yr);
            let vo = 0;
            for (const Ya of Fo)
              if (!(oS(se) && Ya.flags & 4194304)) {
                if ((vo++, se.flags & 2048)) {
                  if (Ya.flags & 4194304) continue;
                  Vf(Ya) & 6 &&
                    se.tracker.reportPrivateInBaseOfClassExpression &&
                    se.tracker.reportPrivateInBaseOfClassExpression(
                      Gi(Ya.escapedName),
                    );
                }
                if (Ze(se) && vo + 2 < Fo.length - 1) {
                  if (((se.out.truncated = !0), se.flags & 1)) {
                    const hs = Yr.pop();
                    Yr.push(OM(hs, 3, `... ${Fo.length - vo} more elided ...`));
                  } else
                    Yr.push(
                      L.createPropertySignature(
                        void 0,
                        `... ${Fo.length - vo} more ...`,
                        void 0,
                        void 0,
                      ),
                    );
                  Sn(Fo[Fo.length - 1], se, Yr);
                  break;
                }
                Sn(Ya, se, Yr);
              }
            return (se.typeStack.pop(), Yr.length ? Yr : void 0);
          }
        }
        function nr(we) {
          return (
            (we.approximateLength += 3),
            we.flags & 1
              ? Cb(L.createKeywordTypeNode(133), 3, "elided")
              : L.createTypeReferenceNode(L.createIdentifier("..."), void 0)
          );
        }
        function yr(we, se) {
          var on;
          return (
            !!(Wl(we) & 8192) &&
            (jn(se.reverseMappedStack, we) ||
              (((on = se.reverseMappedStack) == null ? void 0 : on[0]) &&
                !(Hr(Ba(se.reverseMappedStack).links.propertyType) & 16)) ||
              Me())
          );
          function Me() {
            var qe;
            if (
              (((qe = se.reverseMappedStack) == null ? void 0 : qe.length) ??
                0) < 3
            )
              return !1;
            for (let ct = 0; ct < 3; ct++)
              if (
                se.reverseMappedStack[se.reverseMappedStack.length - 1 - ct]
                  .links.mappedType.symbol !== we.links.mappedType.symbol
              )
                return !1;
            return !0;
          }
        }
        function Sn(we, se, on) {
          var pn;
          const Me = !!(Wl(we) & 8192),
            qe = yr(we, se) ? Ue : xh(we),
            ct = se.enclosingDeclaration;
          if (
            ((se.enclosingDeclaration = void 0),
            se.tracker.canTrackSymbol && xW(we.escapedName))
          )
            if (we.declarations) {
              const Br = $a(we.declarations);
              if (WC(Br))
                if (Nr(Br)) {
                  const li = Oo(Br);
                  li &&
                    Ws(li) &&
                    Fk(li.argumentExpression) &&
                    vr(li.argumentExpression, ct, se);
                } else vr(Br.name.expression, ct, se);
            } else se.tracker.reportNonSerializableProperty(uo(we));
          se.enclosingDeclaration =
            we.valueDeclaration ||
            ((pn = we.declarations) == null ? void 0 : pn[0]) ||
            ct;
          const Gt = UL(we, se);
          if (
            ((se.enclosingDeclaration = ct),
            (se.approximateLength += wl(we).length + 1),
            we.flags & 98304)
          ) {
            const Br = Wv(we);
            if (!pr(qe) && !pr(Br)) {
              const li = Jr(we).mapper,
                mi = al(we, 173);
              if (qe !== Br || (we.parent.flags & 32 && !mi)) {
                const sr = al(we, 178);
                if (sr) {
                  const mo = Df(sr);
                  on.push(
                    vn(se, ii(li ? DA(mo, li) : mo, 178, se, { name: Gt }), sr),
                  );
                }
                const xi = al(we, 179);
                if (xi) {
                  const mo = Df(xi);
                  on.push(
                    vn(se, ii(li ? DA(mo, li) : mo, 179, se, { name: Gt }), xi),
                  );
                }
                return;
              }
              if (we.parent.flags & 32 && mi && hn(mi.modifiers, vj)) {
                const sr = y_(void 0, void 0, void 0, ae, qe, void 0, 0, 0);
                on.push(vn(se, ii(sr, 178, se, { name: Gt }), mi));
                const xi = ja(1, "arg");
                xi.links.type = Br;
                const mo = y_(void 0, void 0, void 0, [xi], In, void 0, 0, 0);
                on.push(ii(mo, 179, se, { name: Gt }));
                return;
              }
            }
          }
          const sn = we.flags & 16777216 ? L.createToken(58) : void 0;
          if (we.flags & 8208 && !zv(qe).length && !wh(we)) {
            const Br = na(
              Ec(qe, (li) => !(li.flags & 32768)),
              0,
            );
            for (const li of Br) {
              const mi = ii(li, 174, se, { name: Gt, questionToken: sn });
              on.push(fr(mi, li.declaration || we.valueDeclaration));
            }
            if (Br.length || !sn) return;
          }
          let Ut;
          yr(we, se)
            ? (Ut = nr(se))
            : (Me &&
                (se.reverseMappedStack || (se.reverseMappedStack = []),
                se.reverseMappedStack.push(we)),
              (Ut = qe ? Gr(se, void 0, qe, we) : L.createKeywordTypeNode(133)),
              Me && se.reverseMappedStack.pop());
          const un = wh(we) ? [L.createToken(148)] : void 0;
          un && (se.approximateLength += 9);
          const Zn = L.createPropertySignature(un, Gt, sn, Ut);
          on.push(fr(Zn, we.valueDeclaration));
          function fr(Br, li) {
            var mi;
            const sr =
              (mi = we.declarations) == null
                ? void 0
                : mi.find((xi) => xi.kind === 349);
            if (sr) {
              const xi = O2(sr.comment);
              xi &&
                JT(Br, [
                  {
                    kind: 3,
                    text:
                      `*
 * ` +
                      xi.replace(
                        /\n/g,
                        `
 * `,
                      ) +
                      `
 `,
                    pos: -1,
                    end: -1,
                    hasTrailingNewLine: !0,
                  },
                ]);
            } else li && vn(se, Br, li);
            return Br;
          }
        }
        function vn(we, se, on) {
          return we.enclosingFile && we.enclosingFile === Wn(on)
            ? Rc(se, on)
            : se;
        }
        function Sr(we, se, on) {
          if (yt(we)) {
            if (Ze(se))
              if (((se.out.truncated = !0), on)) {
                if (we.length > 2)
                  return [
                    $t(we[0], se),
                    se.flags & 1
                      ? Cb(
                          L.createKeywordTypeNode(133),
                          3,
                          `... ${we.length - 2} more elided ...`,
                        )
                      : L.createTypeReferenceNode(
                          `... ${we.length - 2} more ...`,
                          void 0,
                        ),
                    $t(we[we.length - 1], se),
                  ];
              } else
                return [
                  se.flags & 1
                    ? Cb(L.createKeywordTypeNode(133), 3, "elided")
                    : L.createTypeReferenceNode("...", void 0),
                ];
            const Me = !(se.flags & 64) ? cm() : void 0,
              qe = [];
            let ct = 0;
            for (const Gt of we) {
              if ((ct++, Ze(se) && ct + 2 < we.length - 1)) {
                ((se.out.truncated = !0),
                  qe.push(
                    se.flags & 1
                      ? Cb(
                          L.createKeywordTypeNode(133),
                          3,
                          `... ${we.length - ct} more elided ...`,
                        )
                      : L.createTypeReferenceNode(
                          `... ${we.length - ct} more ...`,
                          void 0,
                        ),
                  ));
                const Ut = $t(we[we.length - 1], se);
                Ut && qe.push(Ut);
                break;
              }
              se.approximateLength += 2;
              const sn = $t(Gt, se);
              sn &&
                (qe.push(sn),
                Me &&
                  Nre(sn) &&
                  Me.add(sn.typeName.escapedText, [Gt, qe.length - 1]));
            }
            if (Me) {
              const Gt = Ie(se);
              ((se.flags |= 64),
                Me.forEach((sn) => {
                  if (!Mre(sn, ([Ut], [un]) => fi(Ut, un)))
                    for (const [Ut, un] of sn) qe[un] = $t(Ut, se);
                }),
                Gt());
            }
            return qe;
          }
        }
        function fi(we, se) {
          return (
            we === se ||
            (!!we.symbol && we.symbol === se.symbol) ||
            (!!we.aliasSymbol && we.aliasSymbol === se.aliasSymbol)
          );
        }
        function oo(we, se, on) {
          const pn = jte(we) || "x",
            Me = $t(we.keyType, se),
            qe = L.createParameterDeclaration(
              void 0,
              void 0,
              pn,
              void 0,
              Me,
              void 0,
            );
          return (
            on || (on = $t(we.type || Ue, se)),
            !we.type && !(se.flags & 2097152) && (se.encounteredError = !0),
            (se.approximateLength += pn.length + 4),
            L.createIndexSignature(
              we.isReadonly ? [L.createToken(148)] : void 0,
              [qe],
              on,
            )
          );
        }
        function ii(we, se, on, pn) {
          var Me;
          let qe, ct;
          const Gt = QOe(we, !0)[0],
            sn = Ko(
              on,
              we.declaration,
              Gt,
              we.typeParameters,
              we.parameters,
              we.mapper,
            );
          ((on.approximateLength += 3),
            on.flags & 32 && we.target && we.mapper && we.target.typeParameters
              ? (ct = we.target.typeParameters.map((mi) =>
                  $t(io(mi, we.mapper), on),
                ))
              : (qe =
                  we.typeParameters &&
                  we.typeParameters.map((mi) => Kl(mi, on))));
          const Ut = Ie(on);
          on.flags &= -257;
          const un = (
              yt(Gt, (mi) => mi !== Gt[Gt.length - 1] && !!(Wl(mi) & 32768))
                ? we.parameters
                : Gt
            ).map((mi) => rr(mi, on, se === 177)),
            Zn = on.flags & 33554432 ? void 0 : ms(we, on);
          (Zn && un.unshift(Zn), Ut());
          const fr = Pa(on, we);
          let Br = pn?.modifiers;
          if (se === 186 && we.flags & 4) {
            const mi = Xh(Br);
            Br = L.createModifiersFromModifierFlags(mi | 64);
          }
          const li =
            se === 180
              ? L.createCallSignature(qe, un, fr)
              : se === 181
                ? L.createConstructSignature(qe, un, fr)
                : se === 174
                  ? L.createMethodSignature(
                      Br,
                      pn?.name ?? L.createIdentifier(""),
                      pn?.questionToken,
                      qe,
                      un,
                      fr,
                    )
                  : se === 175
                    ? L.createMethodDeclaration(
                        Br,
                        void 0,
                        pn?.name ?? L.createIdentifier(""),
                        void 0,
                        qe,
                        un,
                        fr,
                        void 0,
                      )
                    : se === 177
                      ? L.createConstructorDeclaration(Br, un, void 0)
                      : se === 178
                        ? L.createGetAccessorDeclaration(
                            Br,
                            pn?.name ?? L.createIdentifier(""),
                            un,
                            fr,
                            void 0,
                          )
                        : se === 179
                          ? L.createSetAccessorDeclaration(
                              Br,
                              pn?.name ?? L.createIdentifier(""),
                              un,
                              void 0,
                            )
                          : se === 182
                            ? L.createIndexSignature(Br, un, fr)
                            : se === 318
                              ? L.createJSDocFunctionType(un, fr)
                              : se === 185
                                ? L.createFunctionTypeNode(
                                    qe,
                                    un,
                                    fr ??
                                      L.createTypeReferenceNode(
                                        L.createIdentifier(""),
                                      ),
                                  )
                                : se === 186
                                  ? L.createConstructorTypeNode(
                                      Br,
                                      qe,
                                      un,
                                      fr ??
                                        L.createTypeReferenceNode(
                                          L.createIdentifier(""),
                                        ),
                                    )
                                  : se === 263
                                    ? L.createFunctionDeclaration(
                                        Br,
                                        void 0,
                                        pn?.name
                                          ? ma(pn.name, He)
                                          : L.createIdentifier(""),
                                        qe,
                                        un,
                                        fr,
                                        void 0,
                                      )
                                    : se === 219
                                      ? L.createFunctionExpression(
                                          Br,
                                          void 0,
                                          pn?.name
                                            ? ma(pn.name, He)
                                            : L.createIdentifier(""),
                                          qe,
                                          un,
                                          fr,
                                          L.createBlock([]),
                                        )
                                      : se === 220
                                        ? L.createArrowFunction(
                                            Br,
                                            qe,
                                            un,
                                            fr,
                                            void 0,
                                            L.createBlock([]),
                                          )
                                        : C.assertNever(se);
          if (
            (ct && (li.typeArguments = L.createNodeArray(ct)),
            ((Me = we.declaration) == null ? void 0 : Me.kind) === 324 &&
              we.declaration.parent.kind === 340)
          ) {
            const mi = Al(we.declaration.parent.parent, !0)
              .slice(2, -2)
              .split(/\r\n|\n|\r/)
              .map((sr) => sr.replace(/^\s+/, " ")).join(`
`);
            Cb(li, 3, mi, !0);
          }
          return (sn?.(), li);
        }
        function zi(we) {
          i &&
            i.throwIfCancellationRequested &&
            i.throwIfCancellationRequested();
          let se,
            on,
            pn = !1;
          const Me = we.tracker,
            qe = we.trackedSymbols;
          we.trackedSymbols = void 0;
          const ct = we.encounteredError;
          return (
            (we.tracker = new uae(
              we,
              {
                ...Me.inner,
                reportCyclicStructureError() {
                  Gt(() => Me.reportCyclicStructureError());
                },
                reportInaccessibleThisError() {
                  Gt(() => Me.reportInaccessibleThisError());
                },
                reportInaccessibleUniqueSymbolError() {
                  Gt(() => Me.reportInaccessibleUniqueSymbolError());
                },
                reportLikelyUnsafeImportRequiredError(un) {
                  Gt(() => Me.reportLikelyUnsafeImportRequiredError(un));
                },
                reportNonSerializableProperty(un) {
                  Gt(() => Me.reportNonSerializableProperty(un));
                },
                reportPrivateInBaseOfClassExpression(un) {
                  Gt(() => Me.reportPrivateInBaseOfClassExpression(un));
                },
                trackSymbol(un, Zn, fr) {
                  return ((se ?? (se = [])).push([un, Zn, fr]), !1);
                },
                moduleResolverHost: we.tracker.moduleResolverHost,
              },
              we.tracker.moduleResolverHost,
            )),
            {
              startRecoveryScope: sn,
              finalizeBoundary: Ut,
              markError: Gt,
              hadError: () => pn,
            }
          );
          function Gt(un) {
            ((pn = !0), un && (on ?? (on = [])).push(un));
          }
          function sn() {
            const un = se?.length ?? 0,
              Zn = on?.length ?? 0;
            return () => {
              ((pn = !1), se && (se.length = un), on && (on.length = Zn));
            };
          }
          function Ut() {
            return (
              (we.tracker = Me),
              (we.trackedSymbols = qe),
              (we.encounteredError = ct),
              on?.forEach((un) => un()),
              pn
                ? !1
                : (se?.forEach(([un, Zn, fr]) =>
                    we.tracker.trackSymbol(un, Zn, fr),
                  ),
                  !0)
            );
          }
        }
        function Ko(we, se, on, pn, Me, qe) {
          const ct = S8(we);
          let Gt, sn;
          const Ut = we.enclosingDeclaration,
            un = we.mapper;
          if ((qe && (we.mapper = qe), we.enclosingDeclaration && se)) {
            let Zn = function (fr, Br) {
              C.assert(we.enclosingDeclaration);
              let li;
              (Vr(we.enclosingDeclaration).fakeScopeForSignatureDeclaration ===
              fr
                ? (li = we.enclosingDeclaration)
                : we.enclosingDeclaration.parent &&
                  Vr(we.enclosingDeclaration.parent)
                    .fakeScopeForSignatureDeclaration === fr &&
                  (li = we.enclosingDeclaration.parent),
                C.assertOptionalNode(li, ea));
              const mi = li?.locals ?? da();
              let sr, xi;
              if (
                (Br((mo, ts) => {
                  if (li) {
                    const bn = mi.get(mo);
                    bn
                      ? (xi = Bn(xi, { name: mo, oldSymbol: bn }))
                      : (sr = Bn(sr, mo));
                  }
                  mi.set(mo, ts);
                }),
                li)
              )
                return function () {
                  (Ye(sr, (ts) => mi.delete(ts)),
                    Ye(xi, (ts) => mi.set(ts.name, ts.oldSymbol)));
                };
              {
                const mo = L.createBlock(ae);
                ((Vr(mo).fakeScopeForSignatureDeclaration = fr),
                  (mo.locals = mi),
                  ps(mo, we.enclosingDeclaration),
                  (we.enclosingDeclaration = mo));
              }
            };
            ((Gt = yt(on)
              ? Zn("params", (fr) => {
                  if (on)
                    for (let Br = 0; Br < on.length; Br++) {
                      const li = on[Br],
                        mi = Me?.[Br];
                      Me && mi !== li
                        ? (fr(li.escapedName, ne), mi && fr(mi.escapedName, ne))
                        : Ye(li.declarations, (sr) => {
                            if (to(sr) && Qo(sr.name)) return (xi(sr.name), !0);
                            return;
                            function xi(ts) {
                              Ye(ts.elements, (bn) => {
                                switch (bn.kind) {
                                  case 233:
                                    return;
                                  case 209:
                                    return mo(bn);
                                  default:
                                    return C.assertNever(bn);
                                }
                              });
                            }
                            function mo(ts) {
                              if (Qo(ts.name)) return xi(ts.name);
                              const bn = Wr(ts);
                              fr(bn.escapedName, bn);
                            }
                          }) || fr(li.escapedName, li);
                    }
                })
              : void 0),
              we.flags & 4 &&
                yt(pn) &&
                (sn = Zn("typeParams", (fr) => {
                  for (const Br of pn ?? ae) {
                    const li = Sl(Br, we).escapedText;
                    fr(li, Br.symbol);
                  }
                })));
          }
          return () => {
            (Gt?.(),
              sn?.(),
              ct(),
              (we.enclosingDeclaration = Ut),
              (we.mapper = un));
          };
        }
        function ms(we, se) {
          if (we.thisParameter) return rr(we.thisParameter, se);
          if (we.declaration && Ir(we.declaration)) {
            const on = uF(we.declaration);
            if (on && on.typeExpression)
              return L.createParameterDeclaration(
                void 0,
                void 0,
                "this",
                void 0,
                $t(a(se, on.typeExpression), se),
              );
          }
        }
        function fo(we, se, on) {
          const pn = Ie(se);
          se.flags &= -513;
          const Me = L.createModifiersFromModifierFlags(E_e(we)),
            qe = Sl(we, se),
            ct = EE(we),
            Gt = ct && $t(ct, se);
          return (pn(), L.createTypeParameterDeclaration(Me, qe, on, Gt));
        }
        function dl(we, se, on) {
          return (
            (!Tt(we, on) &&
              se &&
              a(on, se) === we &&
              Ne.tryReuseExistingTypeNode(on, se)) ||
            $t(we, on)
          );
        }
        function Kl(we, se, on = Uu(we)) {
          const pn = on && dl(on, cY(we), se);
          return fo(we, se, pn);
        }
        function mu(we, se) {
          const on =
              we.kind === 2 || we.kind === 3 ? L.createToken(131) : void 0,
            pn =
              we.kind === 1 || we.kind === 3
                ? Cr(L.createIdentifier(we.parameterName), 16777216)
                : L.createThisTypeNode(),
            Me = we.type && $t(we.type, se);
          return L.createTypePredicateNode(on, pn, Me);
        }
        function qn(we) {
          const se = al(we, 170);
          if (se) return se;
          if (!pg(we)) return al(we, 342);
        }
        function rr(we, se, on) {
          const pn = qn(we),
            Me = _r(we),
            qe = Gr(se, pn, Me, we),
            ct =
              !(se.flags & 8192) && on && pn && Tm(pn)
                ? Vt(mS(pn), L.cloneNode)
                : void 0,
            sn = (pn && C_(pn)) || Wl(we) & 32768 ? L.createToken(26) : void 0,
            Ut = Hi(we, pn, se),
            Zn = (pn && NW(pn)) || Wl(we) & 16384 ? L.createToken(58) : void 0,
            fr = L.createParameterDeclaration(ct, sn, Ut, Zn, qe, void 0);
          return ((se.approximateLength += wl(we).length + 3), fr);
        }
        function Hi(we, se, on) {
          return se && se.name
            ? se.name.kind === 80
              ? Cr(L.cloneNode(se.name), 16777216)
              : se.name.kind === 167
                ? Cr(L.cloneNode(se.name.right), 16777216)
                : pn(se.name)
            : wl(we);
          function pn(Me) {
            return qe(Me);
            function qe(ct) {
              on.tracker.canTrackSymbol &&
                va(ct) &&
                mhe(ct) &&
                vr(ct.expression, on.enclosingDeclaration, on);
              let Gt = kn(ct, qe, void 0, void 0, qe);
              return (
                Ha(Gt) &&
                  (Gt = L.updateBindingElement(
                    Gt,
                    Gt.dotDotDotToken,
                    Gt.propertyName,
                    Gt.name,
                    void 0,
                  )),
                Os(Gt) || (Gt = L.cloneNode(Gt)),
                Cr(Gt, 16777217)
              );
            }
          }
        }
        function vr(we, se, on) {
          if (!on.tracker.canTrackSymbol) return;
          const pn = Lu(we),
            Me = _t(se, pn.escapedText, 1160127, void 0, !0);
          if (Me) on.tracker.trackSymbol(Me, se, 111551);
          else {
            const qe = _t(pn, pn.escapedText, 1160127, void 0, !0);
            qe && on.tracker.trackSymbol(qe, se, 111551);
          }
        }
        function wo(we, se, on, pn) {
          return (
            se.tracker.trackSymbol(we, se.enclosingDeclaration, on),
            ys(we, se, on, pn)
          );
        }
        function ys(we, se, on, pn) {
          let Me;
          return (
            !(we.flags & 262144) &&
            (se.enclosingDeclaration || se.flags & 64) &&
            !(se.internalFlags & 4)
              ? ((Me = C.checkDefined(ct(we, on, !0))),
                C.assert(Me && Me.length > 0))
              : (Me = [we]),
            Me
          );
          function ct(Gt, sn, Ut) {
            let un = Lv(Gt, se.enclosingDeclaration, sn, !!(se.flags & 128)),
              Zn;
            if (
              !un ||
              yE(un[0], se.enclosingDeclaration, un.length === 1 ? sn : $m(sn))
            ) {
              const Br = gE(un ? un[0] : Gt, se.enclosingDeclaration, sn);
              if (et(Br)) {
                Zn = Br.map((sr) =>
                  yt(sr.declarations, vE) ? lc(sr, se) : void 0,
                );
                const li = Br.map((sr, xi) => xi);
                li.sort(fr);
                const mi = li.map((sr) => Br[sr]);
                for (const sr of mi) {
                  const xi = ct(sr, $m(sn), !1);
                  if (xi) {
                    if (
                      sr.exports &&
                      sr.exports.get("export=") &&
                      me(sr.exports.get("export="), Gt)
                    ) {
                      un = xi;
                      break;
                    }
                    un = xi.concat(un || [D(sr, Gt) || Gt]);
                    break;
                  }
                }
              }
            }
            if (un) return un;
            if (Ut || !(Gt.flags & 6144))
              return !Ut && !pn && Ye(Gt.declarations, vE) ? void 0 : [Gt];
            function fr(Br, li) {
              const mi = Zn[Br],
                sr = Zn[li];
              if (mi && sr) {
                const xi = Zp(sr);
                return Zp(mi) === xi ? u3(mi) - u3(sr) : xi ? -1 : 1;
              }
              return 0;
            }
          }
        }
        function il(we, se) {
          let on;
          return (
            nN(we).flags & 524384 &&
              (on = L.createNodeArray(Vt(Na(we), (Me) => Kl(Me, se)))),
            on
          );
        }
        function md(we, se, on) {
          var pn;
          C.assert(we && 0 <= se && se < we.length);
          const Me = we[se],
            qe = Ta(Me);
          if ((pn = on.typeParameterSymbolList) != null && pn.has(qe)) return;
          (on.mustCreateTypeParameterSymbolList &&
            ((on.mustCreateTypeParameterSymbolList = !1),
            (on.typeParameterSymbolList = new Set(on.typeParameterSymbolList))),
            on.typeParameterSymbolList.add(qe));
          let ct;
          if (on.flags & 512 && se < we.length - 1) {
            const Gt = Me,
              sn = we[se + 1];
            if (Wl(sn) & 1) {
              const Ut = Bs(Gt.flags & 2097152 ? ud(Gt) : Gt);
              ct = Sr(
                Vt(Ut, (un) => Vv(un, sn.links.mapper)),
                on,
              );
            } else ct = il(Me, on);
          }
          return ct;
        }
        function Xa(we) {
          return BS(we.objectType) ? Xa(we.objectType) : we;
        }
        function lc(we, se, on) {
          let pn = al(we, 308);
          if (!pn) {
            const Zn = Hn(we.declarations, (fr) => fA(fr, we));
            Zn && (pn = al(Zn, 308));
          }
          if (pn && pn.moduleName !== void 0) return pn.moduleName;
          if (!pn && lae.test(we.escapedName))
            return we.escapedName.substring(1, we.escapedName.length - 1);
          if (!se.enclosingFile || !se.tracker.moduleResolverHost)
            return lae.test(we.escapedName)
              ? we.escapedName.substring(1, we.escapedName.length - 1)
              : Wn(vG(we)).fileName;
          const Me = yl(se.enclosingDeclaration),
            qe = mne(Me) ? gI(Me) : void 0,
            ct = se.enclosingFile,
            Gt =
              on ||
              (qe && e.getModeForUsageLocation(ct, qe)) ||
              (ct && e.getDefaultResolutionModeForFile(ct)),
            sn = rP(ct.path, Gt),
            Ut = Jr(we);
          let un = Ut.specifierCache && Ut.specifierCache.get(sn);
          if (!un) {
            const Zn = !!O.outFile,
              { moduleResolverHost: fr } = se.tracker,
              Br = Zn ? { ...O, baseUrl: fr.getCommonSourceDirectory() } : O;
            ((un = $a(
              A1e(
                we,
                ir,
                Br,
                ct,
                fr,
                {
                  importModuleSpecifierPreference: Zn
                    ? "non-relative"
                    : "project-relative",
                  importModuleSpecifierEnding: Zn
                    ? "minimal"
                    : Gt === 99
                      ? "js"
                      : void 0,
                },
                { overrideImportMode: on },
              ),
            )),
              Ut.specifierCache ?? (Ut.specifierCache = new Map()),
              Ut.specifierCache.set(sn, un));
          }
          return un;
        }
        function _c(we) {
          const se = L.createIdentifier(Gi(we.escapedName));
          return we.parent ? L.createQualifiedName(_c(we.parent), se) : se;
        }
        function Ts(we, se, on, pn) {
          const Me = wo(we, se, on, !(se.flags & 16384)),
            qe = on === 111551;
          if (yt(Me[0].declarations, vE)) {
            const sn = Me.length > 1 ? Gt(Me, Me.length - 1, 1) : void 0,
              Ut = pn || md(Me, 0, se),
              un = Wn(yl(se.enclosingDeclaration)),
              Zn = X2(Me[0]);
            let fr, Br;
            if (
              ((iu(O) === 3 || iu(O) === 99) &&
                Zn?.impliedNodeFormat === 99 &&
                Zn.impliedNodeFormat !== un?.impliedNodeFormat &&
                ((fr = lc(Me[0], se, 99)),
                (Br = L.createImportAttributes(
                  L.createNodeArray([
                    L.createImportAttribute(
                      L.createStringLiteral("resolution-mode"),
                      L.createStringLiteral("import"),
                    ),
                  ]),
                ))),
              fr || (fr = lc(Me[0], se)),
              !(se.flags & 67108864) &&
                iu(O) !== 1 &&
                fr.includes("/node_modules/"))
            ) {
              const mi = fr;
              if (iu(O) === 3 || iu(O) === 99) {
                const sr = un?.impliedNodeFormat === 99 ? 1 : 99;
                ((fr = lc(Me[0], se, sr)),
                  fr.includes("/node_modules/")
                    ? (fr = mi)
                    : (Br = L.createImportAttributes(
                        L.createNodeArray([
                          L.createImportAttribute(
                            L.createStringLiteral("resolution-mode"),
                            L.createStringLiteral(
                              sr === 99 ? "import" : "require",
                            ),
                          ),
                        ]),
                      )));
              }
              Br ||
                ((se.encounteredError = !0),
                se.tracker.reportLikelyUnsafeImportRequiredError &&
                  se.tracker.reportLikelyUnsafeImportRequiredError(mi));
            }
            const li = L.createLiteralTypeNode(L.createStringLiteral(fr));
            if (((se.approximateLength += fr.length + 10), !sn || Mu(sn))) {
              if (sn) {
                const mi = He(sn) ? sn : sn.right;
                cv(mi, void 0);
              }
              return L.createImportTypeNode(li, Br, sn, Ut, qe);
            } else {
              const mi = Xa(sn),
                sr = mi.objectType.typeName;
              return L.createIndexedAccessTypeNode(
                L.createImportTypeNode(li, Br, sr, Ut, qe),
                mi.indexType,
              );
            }
          }
          const ct = Gt(Me, Me.length - 1, 0);
          if (BS(ct)) return ct;
          if (qe) return L.createTypeQueryNode(ct);
          {
            const sn = He(ct) ? ct : ct.right,
              Ut = _1(sn);
            return (cv(sn, void 0), L.createTypeReferenceNode(ct, Ut));
          }
          function Gt(sn, Ut, un) {
            const Zn = Ut === sn.length - 1 ? pn : md(sn, Ut, se),
              fr = sn[Ut],
              Br = sn[Ut - 1];
            let li;
            if (Ut === 0)
              ((se.flags |= 16777216),
                (li = j0(fr, se)),
                (se.approximateLength += (li ? li.length : 0) + 1),
                (se.flags ^= 16777216));
            else if (Br && qp(Br)) {
              const sr = qp(Br);
              Hc(sr, (xi, mo) => {
                if (me(xi, fr) && !xW(mo) && mo !== "export=")
                  return ((li = Gi(mo)), !0);
              });
            }
            if (li === void 0) {
              const sr = Hn(fr.declarations, Oo);
              if (sr && va(sr) && Mu(sr.expression)) {
                const xi = Gt(sn, Ut - 1, un);
                return Mu(xi)
                  ? L.createIndexedAccessTypeNode(
                      L.createParenthesizedType(L.createTypeQueryNode(xi)),
                      L.createTypeQueryNode(sr.expression),
                    )
                  : xi;
              }
              li = j0(fr, se);
            }
            if (
              ((se.approximateLength += li.length + 1),
              !(se.flags & 16) &&
                Br &&
                $_(Br) &&
                $_(Br).get(fr.escapedName) &&
                me($_(Br).get(fr.escapedName), fr))
            ) {
              const sr = Gt(sn, Ut - 1, un);
              return BS(sr)
                ? L.createIndexedAccessTypeNode(
                    sr,
                    L.createLiteralTypeNode(L.createStringLiteral(li)),
                  )
                : L.createIndexedAccessTypeNode(
                    L.createTypeReferenceNode(sr, Zn),
                    L.createLiteralTypeNode(L.createStringLiteral(li)),
                  );
            }
            const mi = Cr(L.createIdentifier(li), 16777216);
            if (
              (Zn && cv(mi, L.createNodeArray(Zn)), (mi.symbol = fr), Ut > un)
            ) {
              const sr = Gt(sn, Ut - 1, un);
              return Mu(sr)
                ? L.createQualifiedName(sr, mi)
                : C.fail(
                    "Impossible construct - an export of an indexed access cannot be reachable",
                  );
            }
            return mi;
          }
        }
        function Nf(we, se, on) {
          const pn = _t(se.enclosingDeclaration, we, 788968, void 0, !1);
          return pn && pn.flags & 262144 ? pn !== on.symbol : !1;
        }
        function Sl(we, se) {
          var on, pn, Me, qe;
          if (se.flags & 4 && se.typeParameterNames) {
            const sn = se.typeParameterNames.get(pd(we));
            if (sn) return sn;
          }
          let ct = nc(we.symbol, se, 788968, !0);
          if (!(ct.kind & 80))
            return L.createIdentifier("(Missing type parameter)");
          const Gt =
            (pn = (on = we.symbol) == null ? void 0 : on.declarations) == null
              ? void 0
              : pn[0];
          if ((Gt && sl(Gt) && (ct = c(se, ct, Gt.name)), se.flags & 4)) {
            const sn = ct.escapedText;
            let Ut =
                ((Me = se.typeParameterNamesByTextNextNameCount) == null
                  ? void 0
                  : Me.get(sn)) || 0,
              un = sn;
            for (
              ;
              ((qe = se.typeParameterNamesByText) != null && qe.has(un)) ||
              Nf(un, se, we);
            )
              (Ut++, (un = `${sn}_${Ut}`));
            if (un !== sn) {
              const Zn = _1(ct);
              ((ct = L.createIdentifier(un)), cv(ct, Zn));
            }
            (se.mustCreateTypeParametersNamesLookups &&
              ((se.mustCreateTypeParametersNamesLookups = !1),
              (se.typeParameterNames = new Map(se.typeParameterNames)),
              (se.typeParameterNamesByTextNextNameCount = new Map(
                se.typeParameterNamesByTextNextNameCount,
              )),
              (se.typeParameterNamesByText = new Set(
                se.typeParameterNamesByText,
              ))),
              se.typeParameterNamesByTextNextNameCount.set(sn, Ut),
              se.typeParameterNames.set(pd(we), ct),
              se.typeParameterNamesByText.add(un));
          }
          return ct;
        }
        function nc(we, se, on, pn) {
          const Me = wo(we, se, on);
          return (
            pn &&
              Me.length !== 1 &&
              !se.encounteredError &&
              !(se.flags & 65536) &&
              (se.encounteredError = !0),
            qe(Me, Me.length - 1)
          );
          function qe(ct, Gt) {
            const sn = md(ct, Gt, se),
              Ut = ct[Gt];
            Gt === 0 && (se.flags |= 16777216);
            const un = j0(Ut, se);
            Gt === 0 && (se.flags ^= 16777216);
            const Zn = Cr(L.createIdentifier(un), 16777216);
            return (
              sn && cv(Zn, L.createNodeArray(sn)),
              (Zn.symbol = Ut),
              Gt > 0 ? L.createQualifiedName(qe(ct, Gt - 1), Zn) : Zn
            );
          }
        }
        function lm(we, se, on) {
          const pn = wo(we, se, on);
          return Me(pn, pn.length - 1);
          function Me(qe, ct) {
            const Gt = md(qe, ct, se),
              sn = qe[ct];
            ct === 0 && (se.flags |= 16777216);
            let Ut = j0(sn, se);
            ct === 0 && (se.flags ^= 16777216);
            let un = Ut.charCodeAt(0);
            if (mk(un) && yt(sn.declarations, vE)) {
              const Zn = lc(sn, se);
              return (
                (se.approximateLength += 2 + Zn.length),
                L.createStringLiteral(Zn)
              );
            }
            if (ct === 0 || JV(Ut, G)) {
              const Zn = Cr(L.createIdentifier(Ut), 16777216);
              return (
                Gt && cv(Zn, L.createNodeArray(Gt)),
                (Zn.symbol = sn),
                (se.approximateLength += 1 + Ut.length),
                ct > 0
                  ? L.createPropertyAccessExpression(Me(qe, ct - 1), Zn)
                  : Zn
              );
            } else {
              un === 91 &&
                ((Ut = Ut.substring(1, Ut.length - 1)),
                (un = Ut.charCodeAt(0)));
              let Zn;
              if (mk(un) && !(sn.flags & 8)) {
                const fr = _m(Ut).replace(/\\./g, (Br) => Br.substring(1));
                ((se.approximateLength += fr.length + 2),
                  (Zn = L.createStringLiteral(fr, un === 39)));
              } else
                "" + +Ut === Ut &&
                  ((se.approximateLength += Ut.length),
                  (Zn = L.createNumericLiteral(+Ut)));
              if (!Zn) {
                const fr = Cr(L.createIdentifier(Ut), 16777216);
                (Gt && cv(fr, L.createNodeArray(Gt)),
                  (fr.symbol = sn),
                  (se.approximateLength += Ut.length),
                  (Zn = fr));
              }
              return (
                (se.approximateLength += 2),
                L.createElementAccessExpression(Me(qe, ct - 1), Zn)
              );
            }
          }
        }
        function jL(we) {
          const se = Oo(we);
          return se
            ? va(se)
              ? !!(_o(se.expression).flags & 402653316)
              : Ws(se)
                ? !!(_o(se.argumentExpression).flags & 402653316)
                : ka(se)
            : !1;
        }
        function T8(we) {
          const se = Oo(we);
          return !!(
            se &&
            ka(se) &&
            (se.singleQuote || (!Os(se) && po(Al(se, !1), "'")))
          );
        }
        function UL(we, se) {
          const on = Q$(we);
          if (on)
            if (
              !!se.tracker.reportPrivateInBaseOfClassExpression &&
              se.flags & 2048
            ) {
              let Ut = Gi(we.escapedName);
              return (
                (Ut = Ut.replace(/__#\d+@#/g, "__#private@#")),
                tw(Ut, Ga(O), !1, !0, !!(we.flags & 8192))
              );
            } else return on;
          const pn = !!et(we.declarations) && Vn(we.declarations, jL),
            Me = !!et(we.declarations) && Vn(we.declarations, T8),
            qe = !!(we.flags & 8192),
            ct = af(we, se, Me, pn, qe);
          if (ct) return ct;
          const Gt = Gi(we.escapedName);
          return tw(Gt, Ga(O), Me, pn, qe);
        }
        function af(we, se, on, pn, Me) {
          const qe = Jr(we).nameType;
          if (qe) {
            if (qe.flags & 384) {
              const ct = "" + qe.value;
              return !fp(ct, Ga(O)) && (pn || !Eg(ct))
                ? L.createStringLiteral(ct, !!on)
                : Eg(ct) && po(ct, "-")
                  ? L.createComputedPropertyName(
                      L.createPrefixUnaryExpression(
                        41,
                        L.createNumericLiteral(-ct),
                      ),
                    )
                  : tw(ct, Ga(O), on, pn, Me);
            }
            if (qe.flags & 8192)
              return L.createComputedPropertyName(lm(qe.symbol, se, 111551));
          }
        }
        function S8(we) {
          const se = we.mustCreateTypeParameterSymbolList,
            on = we.mustCreateTypeParametersNamesLookups;
          ((we.mustCreateTypeParameterSymbolList = !0),
            (we.mustCreateTypeParametersNamesLookups = !0));
          const pn = we.typeParameterNames,
            Me = we.typeParameterNamesByText,
            qe = we.typeParameterNamesByTextNextNameCount,
            ct = we.typeParameterSymbolList;
          return () => {
            ((we.typeParameterNames = pn),
              (we.typeParameterNamesByText = Me),
              (we.typeParameterNamesByTextNextNameCount = qe),
              (we.typeParameterSymbolList = ct),
              (we.mustCreateTypeParameterSymbolList = se),
              (we.mustCreateTypeParametersNamesLookups = on));
          };
        }
        function Ht(we, se) {
          return (
            we.declarations &&
            hn(
              we.declarations,
              (on) => !!s7e(on) && (!se || !!Dn(on, (pn) => pn === se)),
            )
          );
        }
        function Nn(we, se) {
          if (!(Hr(se) & 4) || !Wp(we)) return !0;
          fY(we);
          const on = Vr(we).resolvedSymbol,
            pn = on && qs(on);
          return !pn || pn !== se.target
            ? !0
            : et(we.typeArguments) >= Z_(se.target.typeParameters);
        }
        function $n(we) {
          for (; Vr(we).fakeScopeForSignatureDeclaration; ) we = we.parent;
          return we;
        }
        function hr(we, se, on) {
          return (
            on.flags & 8192 &&
              on.symbol === we &&
              (!se.enclosingDeclaration ||
                yt(we.declarations, (Me) => Wn(Me) === se.enclosingFile)) &&
              (se.flags |= 1048576),
            $t(on, se)
          );
        }
        function Gr(we, se, on, pn) {
          var Me;
          let qe;
          const ct =
              se && (to(se) || mf(se)) && oB(se, we.enclosingDeclaration),
            Gt =
              se ??
              pn.valueDeclaration ??
              Ht(pn) ??
              ((Me = pn.declarations) == null ? void 0 : Me[0]);
          if (!Tt(on, we) && Gt) {
            const sn = Q(we, pn, on);
            (fb(Gt)
              ? (qe = Ne.serializeTypeOfAccessor(Gt, pn, we))
              : i4(Gt) &&
                !Os(Gt) &&
                !(Hr(on) & 196608) &&
                (qe = Ne.serializeTypeOfDeclaration(Gt, pn, we)),
              sn());
          }
          return (
            qe || (ct && (on = hT(on)), (qe = hr(pn, we, on))),
            qe ?? L.createKeywordTypeNode(133)
          );
        }
        function gi(we, se, on) {
          return on === se
            ? !0
            : we &&
                (((Su(we) || Po(we)) && we.questionToken) || (to(we) && nY(we)))
              ? om(se, 524288) === on
              : !1;
        }
        function Pa(we, se) {
          const on = we.flags & 256,
            pn = Ie(we);
          on && (we.flags &= -257);
          let Me;
          const qe = fs(se);
          if (!(on && wr(qe))) {
            if (se.declaration && !Os(se.declaration) && !Tt(qe, we)) {
              const ct = Wr(se.declaration),
                Gt = Q(we, ct, qe);
              ((Me = Ne.serializeReturnTypeForSignature(
                se.declaration,
                ct,
                we,
              )),
                Gt());
            }
            Me || (Me = Oa(we, se, qe));
          }
          return (!Me && !on && (Me = L.createKeywordTypeNode(133)), pn(), Me);
        }
        function Oa(we, se, on) {
          const pn = we.suppressReportInferenceFallback;
          we.suppressReportInferenceFallback = !0;
          const Me = nm(se),
            qe = Me ? mu(we.mapper ? M8e(Me, we.mapper) : Me, we) : $t(on, we);
          return ((we.suppressReportInferenceFallback = pn), qe);
        }
        function Gs(we, se, on = se.enclosingDeclaration) {
          let pn = !1;
          const Me = Lu(we);
          if (
            Ir(we) &&
            (i1(Me) ||
              gg(Me.parent) ||
              (ku(Me.parent) && kG(Me.parent.left) && i1(Me.parent.right)))
          )
            return ((pn = !0), { introducesError: pn, node: we });
          const qe = cL(we);
          let ct;
          if (Eb(Me))
            return (
              (ct = Wr(vu(Me, !1, !1))),
              oT(ct, Me, qe, !1).accessibility !== 0 &&
                ((pn = !0), se.tracker.reportInaccessibleThisError()),
              { introducesError: pn, node: Gt(we) }
            );
          if (
            ((ct = Gl(Me, qe, !0, !0)),
            se.enclosingDeclaration && !(ct && ct.flags & 262144))
          ) {
            ct = Et(ct);
            const sn = Gl(Me, qe, !0, !0, se.enclosingDeclaration);
            if (
              sn === ne ||
              (sn === void 0 && ct !== void 0) ||
              (sn && ct && !me(Et(sn), ct))
            )
              return (
                sn !== ne && se.tracker.reportInferenceFallback(we),
                (pn = !0),
                { introducesError: pn, node: we, sym: ct }
              );
            ct = sn;
          }
          if (ct)
            return ct.flags & 1 &&
              ct.valueDeclaration &&
              (jT(ct.valueDeclaration) || mf(ct.valueDeclaration))
              ? { introducesError: pn, node: Gt(we) }
              : (!(ct.flags & 262144) &&
                !L_(we) &&
                oT(ct, on, qe, !1).accessibility !== 0
                  ? (se.tracker.reportInferenceFallback(we), (pn = !0))
                  : se.tracker.trackSymbol(ct, on, qe),
                { introducesError: pn, node: Gt(we) });
          return { introducesError: pn, node: we };
          function Gt(sn) {
            if (sn === Me) {
              const un = qs(ct),
                Zn = ct.flags & 262144 ? Sl(un, se) : L.cloneNode(sn);
              return ((Zn.symbol = ct), c(se, Cr(Zn, 16777216), sn));
            }
            const Ut = kn(sn, (un) => Gt(un), void 0);
            return c(se, Ut, sn);
          }
        }
        function Qc(we, se, on, pn) {
          const Me = on ? 111551 : 788968,
            qe = Gl(se, Me, !0);
          if (!qe) return;
          const ct = qe.flags & 2097152 ? ud(qe) : qe;
          if (oT(qe, we.enclosingDeclaration, Me, !1).accessibility === 0)
            return Ts(ct, we, Me, pn);
        }
        function hu(we, se) {
          const on = a(we, se, !0);
          if (!on) return !1;
          if (Ir(se) && ry(se)) {
            S8e(se);
            const pn = Vr(se).resolvedSymbol;
            return (
              !pn ||
              !(
                (!se.isTypeOf && !(pn.flags & 788968)) ||
                !(et(se.typeArguments) >= Z_(Na(pn)))
              )
            );
          }
          if (Wp(se)) {
            if (Om(se)) return !1;
            const pn = Vr(se).resolvedSymbol;
            if (!pn) return !1;
            if (pn.flags & 262144) {
              const Me = qs(pn);
              return !(we.mapper && Vv(Me, we.mapper) !== Me);
            }
            if (YN(se)) return Nn(se, on) && !LWe(se) && !!(pn.flags & 788968);
          }
          if (KT(se) && se.operator === 158 && se.type.kind === 155) {
            const pn = we.enclosingDeclaration && $n(we.enclosingDeclaration);
            return !!Dn(se, (Me) => Me === pn);
          }
          return !0;
        }
        function pp(we, se, on) {
          const pn = a(we, se);
          if (on && !am(pn, (Me) => !!(Me.flags & 32768)) && hu(we, se)) {
            const Me = Ne.tryReuseExistingTypeNode(we, se);
            if (Me)
              return L.createUnionTypeNode([Me, L.createKeywordTypeNode(157)]);
          }
          return $t(pn, we);
        }
        function iS(we, se) {
          var on;
          const pn = E7e(L.createPropertyDeclaration, 175, !0),
            Me = E7e(
              (Ct, mr, bi, Ei) => L.createPropertySignature(Ct, mr, bi, Ei),
              174,
              !1,
            ),
            qe = se.enclosingDeclaration;
          let ct = [];
          const Gt = new Set(),
            sn = [],
            Ut = se;
          se = {
            ...Ut,
            usedSymbolNames: new Set(Ut.usedSymbolNames),
            remappedSymbolNames: new Map(),
            remappedSymbolReferences: new Map(
              (on = Ut.remappedSymbolReferences) == null
                ? void 0
                : on.entries(),
            ),
            tracker: void 0,
          };
          const un = {
            ...Ut.tracker.inner,
            trackSymbol: (Ct, mr, bi) => {
              var Ei, kr;
              if ((Ei = se.remappedSymbolNames) != null && Ei.has(Ta(Ct)))
                return !1;
              if (oT(Ct, mr, bi, !1).accessibility === 0) {
                const Fa = ys(Ct, se, bi);
                if (!(Ct.flags & 4)) {
                  const Xo = Fa[0],
                    Pi = Wn(Ut.enclosingDeclaration);
                  yt(Xo.declarations, (ba) => Wn(ba) === Pi) && Ya(Xo);
                }
              } else if ((kr = Ut.tracker.inner) != null && kr.trackSymbol)
                return Ut.tracker.inner.trackSymbol(Ct, mr, bi);
              return !1;
            },
          };
          ((se.tracker = new uae(se, un, Ut.tracker.moduleResolverHost)),
            Hc(we, (Ct, mr) => {
              const bi = Gi(mr);
              ig(Ct, bi);
            }));
          let Zn = !se.bundled;
          const fr = we.get("export=");
          return (
            fr &&
              we.size > 1 &&
              fr.flags & 2098688 &&
              ((we = da()), we.set("export=", fr)),
            Yr(we),
            mo(ct)
          );
          function Br(Ct) {
            return !!Ct && Ct.kind === 80;
          }
          function li(Ct) {
            return ac(Ct)
              ? Un(Vt(Ct.declarationList.declarations, Oo), Br)
              : Un([Oo(Ct)], Br);
          }
          function mi(Ct) {
            const mr = hn(Ct, ll),
              bi = ho(Ct, uc);
            let Ei = bi !== -1 ? Ct[bi] : void 0;
            if (
              Ei &&
              mr &&
              mr.isExportEquals &&
              He(mr.expression) &&
              He(Ei.name) &&
              Kr(Ei.name) === Kr(mr.expression) &&
              Ei.body &&
              t_(Ei.body)
            ) {
              const kr = Un(Ct, (Xo) => !!(Gd(Xo) & 32)),
                xa = Ei.name;
              let Fa = Ei.body;
              if (
                (et(kr) &&
                  ((Ei = L.updateModuleDeclaration(
                    Ei,
                    Ei.modifiers,
                    Ei.name,
                    (Fa = L.updateModuleBlock(
                      Fa,
                      L.createNodeArray([
                        ...Ei.body.statements,
                        L.createExportDeclaration(
                          void 0,
                          !1,
                          L.createNamedExports(
                            Vt(
                              Ki(kr, (Xo) => li(Xo)),
                              (Xo) => L.createExportSpecifier(!1, void 0, Xo),
                            ),
                          ),
                          void 0,
                        ),
                      ]),
                    )),
                  )),
                  (Ct = [...Ct.slice(0, bi), Ei, ...Ct.slice(bi + 1)])),
                !hn(Ct, (Xo) => Xo !== Ei && k2(Xo, xa)))
              ) {
                ct = [];
                const Xo = !yt(
                  Fa.statements,
                  (Pi) => di(Pi, 32) || ll(Pi) || pc(Pi),
                );
                (Ye(Fa.statements, (Pi) => {
                  No(Pi, Xo ? 32 : 0);
                }),
                  (Ct = [...Un(Ct, (Pi) => Pi !== Ei && Pi !== mr), ...ct]));
              }
            }
            return Ct;
          }
          function sr(Ct) {
            const mr = Un(
              Ct,
              (Ei) =>
                pc(Ei) &&
                !Ei.moduleSpecifier &&
                !!Ei.exportClause &&
                Jf(Ei.exportClause),
            );
            et(mr) > 1 &&
              (Ct = [
                ...Un(
                  Ct,
                  (kr) => !pc(kr) || !!kr.moduleSpecifier || !kr.exportClause,
                ),
                L.createExportDeclaration(
                  void 0,
                  !1,
                  L.createNamedExports(
                    Ki(mr, (kr) => ma(kr.exportClause, Jf).elements),
                  ),
                  void 0,
                ),
              ]);
            const bi = Un(
              Ct,
              (Ei) =>
                pc(Ei) &&
                !!Ei.moduleSpecifier &&
                !!Ei.exportClause &&
                Jf(Ei.exportClause),
            );
            if (et(bi) > 1) {
              const Ei = IR(bi, (kr) =>
                ka(kr.moduleSpecifier) ? ">" + kr.moduleSpecifier.text : ">",
              );
              if (Ei.length !== bi.length)
                for (const kr of Ei)
                  kr.length > 1 &&
                    (Ct = [
                      ...Un(Ct, (xa) => !kr.includes(xa)),
                      L.createExportDeclaration(
                        void 0,
                        !1,
                        L.createNamedExports(
                          Ki(kr, (xa) => ma(xa.exportClause, Jf).elements),
                        ),
                        kr[0].moduleSpecifier,
                      ),
                    ]);
            }
            return Ct;
          }
          function xi(Ct) {
            const mr = ho(
              Ct,
              (bi) =>
                pc(bi) &&
                !bi.moduleSpecifier &&
                !bi.attributes &&
                !!bi.exportClause &&
                Jf(bi.exportClause),
            );
            if (mr >= 0) {
              const bi = Ct[mr],
                Ei = Ui(bi.exportClause.elements, (kr) => {
                  if (!kr.propertyName && kr.name.kind !== 11) {
                    const xa = kr.name,
                      Fa = z8(Ct),
                      Xo = Un(Fa, (Pi) => k2(Ct[Pi], xa));
                    if (et(Xo) && Vn(Xo, (Pi) => nw(Ct[Pi]))) {
                      for (const Pi of Xo) Ct[Pi] = ts(Ct[Pi]);
                      return;
                    }
                  }
                  return kr;
                });
              et(Ei)
                ? (Ct[mr] = L.updateExportDeclaration(
                    bi,
                    bi.modifiers,
                    bi.isTypeOnly,
                    L.updateNamedExports(bi.exportClause, Ei),
                    bi.moduleSpecifier,
                    bi.attributes,
                  ))
                : ib(Ct, mr);
            }
            return Ct;
          }
          function mo(Ct) {
            return (
              (Ct = mi(Ct)),
              (Ct = sr(Ct)),
              (Ct = xi(Ct)),
              qe &&
                ((Yi(qe) && Pp(qe)) || uc(qe)) &&
                (!yt(Ct, U2) || (!fte(Ct) && yt(Ct, TF))) &&
                Ct.push(bw(L)),
              Ct
            );
          }
          function ts(Ct) {
            const mr = (Gd(Ct) | 32) & -129;
            return L.replaceModifiers(Ct, mr);
          }
          function bn(Ct) {
            const mr = Gd(Ct) & -33;
            return L.replaceModifiers(Ct, mr);
          }
          function Yr(Ct, mr, bi) {
            mr || sn.push(new Map());
            let Ei = 0;
            const kr = Array.from(Ct.values());
            for (const xa of kr) {
              if ((Ei++, Te(se) && Ei + 2 < Ct.size - 1)) {
                ((se.out.truncated = !0),
                  ct.push(gR(`... (${Ct.size - Ei} more ...)`)),
                  Fo(kr[kr.length - 1], !1, !!bi));
                break;
              }
              Fo(xa, !1, !!bi);
            }
            mr ||
              (sn[sn.length - 1].forEach((xa) => {
                Fo(xa, !0, !!bi);
              }),
              sn.pop());
          }
          function Fo(Ct, mr, bi) {
            bs(_r(Ct));
            const Ei = os(Ct);
            if (Gt.has(Ta(Ei))) return;
            if (
              (Gt.add(Ta(Ei)),
              !mr ||
                (et(Ct.declarations) &&
                  yt(Ct.declarations, (xa) => !!Dn(xa, (Fa) => Fa === qe))))
            ) {
              const xa = S8(se);
              (se.tracker.pushErrorFallbackNode(
                hn(Ct.declarations, (Fa) => Wn(Fa) === se.enclosingFile),
              ),
                vo(Ct, mr, bi),
                se.tracker.popErrorFallbackNode(),
                xa());
            }
          }
          function vo(Ct, mr, bi, Ei = Ct.escapedName) {
            var kr, xa, Fa, Xo, Pi, ba, kc;
            const _l = Gi(Ei),
              Qd = Ei === "default";
            if (mr && !(se.flags & 131072) && SI(_l) && !Qd) {
              se.encounteredError = !0;
              return;
            }
            let Xl =
                Qd &&
                !!(Ct.flags & -113 || (Ct.flags & 16 && et(bs(_r(Ct))))) &&
                !(Ct.flags & 2097152),
              ol = !Xl && !mr && SI(_l) && !Qd;
            (Xl || ol) && (mr = !0);
            const kl = (mr ? 0 : 32) | (Qd && !Xl ? 2048 : 0),
              jl = Ct.flags & 1536 && Ct.flags & 7 && Ei !== "export=",
              Mf = jl && Gye(_r(Ct), Ct);
            if (
              ((Ct.flags & 8208 || Mf) && bT(_r(Ct), Ct, ig(Ct, _l), kl),
              Ct.flags & 524288 && Pc(Ct, _l, kl),
              Ct.flags & 98311 &&
                Ei !== "export=" &&
                !(Ct.flags & 4194304) &&
                !(Ct.flags & 32) &&
                !(Ct.flags & 8192) &&
                !Mf)
            )
              if (bi) cB(Ct) && ((ol = !1), (Xl = !1));
              else {
                const gc = _r(Ct),
                  Ju = ig(Ct, _l);
                if (
                  gc.symbol &&
                  gc.symbol !== Ct &&
                  gc.symbol.flags & 16 &&
                  yt(gc.symbol.declarations, Rb) &&
                  (((kr = gc.symbol.members) != null && kr.size) ||
                    ((xa = gc.symbol.exports) != null && xa.size))
                )
                  (se.remappedSymbolReferences ||
                    (se.remappedSymbolReferences = new Map()),
                    se.remappedSymbolReferences.set(Ta(gc.symbol), Ct),
                    vo(gc.symbol, mr, bi, Ei),
                    se.remappedSymbolReferences.delete(Ta(gc.symbol)));
                else if (!(Ct.flags & 16) && Gye(gc, Ct)) bT(gc, Ct, Ju, kl);
                else {
                  const Jv =
                      Ct.flags & 2
                        ? lR(Ct)
                          ? 2
                          : 1
                        : (Fa = Ct.parent) != null &&
                            Fa.valueDeclaration &&
                            Yi(
                              (Xo = Ct.parent) == null
                                ? void 0
                                : Xo.valueDeclaration,
                            )
                          ? 2
                          : void 0,
                    Pf = Xl || !(Ct.flags & 4) ? Ju : uB(Ju, Ct);
                  let Xg =
                    Ct.declarations && hn(Ct.declarations, (ST) => yi(ST));
                  Xg &&
                    _d(Xg.parent) &&
                    Xg.parent.declarations.length === 1 &&
                    (Xg = Xg.parent.parent);
                  const TT =
                    (Pi = Ct.declarations) == null ? void 0 : Pi.find(qr);
                  if (
                    TT &&
                    Nr(TT.parent) &&
                    He(TT.parent.right) &&
                    (ba = gc.symbol) != null &&
                    ba.valueDeclaration &&
                    Yi(gc.symbol.valueDeclaration)
                  ) {
                    const ST =
                      Ju === TT.parent.right.escapedText
                        ? void 0
                        : TT.parent.right;
                    ((se.approximateLength +=
                      12 +
                      (((kc = ST?.escapedText) == null ? void 0 : kc.length) ??
                        0)),
                      No(
                        L.createExportDeclaration(
                          void 0,
                          !1,
                          L.createNamedExports([
                            L.createExportSpecifier(!1, ST, Ju),
                          ]),
                        ),
                        0,
                      ),
                      se.tracker.trackSymbol(
                        gc.symbol,
                        se.enclosingDeclaration,
                        111551,
                      ));
                  } else {
                    const ST = c(
                      se,
                      L.createVariableStatement(
                        void 0,
                        L.createVariableDeclarationList(
                          [
                            L.createVariableDeclaration(
                              Pf,
                              void 0,
                              Gr(se, void 0, gc, Ct),
                            ),
                          ],
                          Jv,
                        ),
                      ),
                      Xg,
                    );
                    ((se.approximateLength += 7 + Pf.length),
                      No(ST, Pf !== Ju ? kl & -33 : kl),
                      Pf !== Ju &&
                        !mr &&
                        ((se.approximateLength += 16 + Pf.length + Ju.length),
                        No(
                          L.createExportDeclaration(
                            void 0,
                            !1,
                            L.createNamedExports([
                              L.createExportSpecifier(!1, Pf, Ju),
                            ]),
                          ),
                          0,
                        ),
                        (ol = !1),
                        (Xl = !1)));
                  }
                }
              }
            if (
              (Ct.flags & 384 && OE(Ct, _l, kl),
              Ct.flags & 32 &&
                (Ct.flags & 4 &&
                Ct.valueDeclaration &&
                Nr(Ct.valueDeclaration.parent) &&
                dc(Ct.valueDeclaration.parent.right)
                  ? S7e(Ct, ig(Ct, _l), kl)
                  : zye(Ct, ig(Ct, _l), kl)),
              ((Ct.flags & 1536 && (!jl || Hy(Ct))) || Mf) && aS(Ct, _l, kl),
              Ct.flags & 64 && !(Ct.flags & 32) && Lc(Ct, _l, kl),
              Ct.flags & 2097152 && S7e(Ct, ig(Ct, _l), kl),
              Ct.flags & 4 && Ct.escapedName === "export=" && cB(Ct),
              Ct.flags & 8388608 && Ct.declarations)
            )
              for (const gc of Ct.declarations) {
                const Ju = uu(gc, gc.moduleSpecifier);
                if (!Ju) continue;
                const Jv = gc.isTypeOnly,
                  Pf = lc(Ju, se);
                ((se.approximateLength += 17 + Pf.length),
                  No(
                    L.createExportDeclaration(
                      void 0,
                      Jv,
                      void 0,
                      L.createStringLiteral(Pf),
                    ),
                    0,
                  ));
              }
            if (Xl) {
              const gc = ig(Ct, _l);
              ((se.approximateLength += 16 + gc.length),
                No(
                  L.createExportAssignment(void 0, !1, L.createIdentifier(gc)),
                  0,
                ));
            } else if (ol) {
              const gc = ig(Ct, _l);
              ((se.approximateLength += 22 + _l.length + gc.length),
                No(
                  L.createExportDeclaration(
                    void 0,
                    !1,
                    L.createNamedExports([L.createExportSpecifier(!1, gc, _l)]),
                  ),
                  0,
                ));
            }
          }
          function Ya(Ct) {
            if (yt(Ct.declarations, jT)) return;
            (C.assertIsDefined(sn[sn.length - 1]), uB(Gi(Ct.escapedName), Ct));
            const mr =
              !!(Ct.flags & 2097152) &&
              !yt(
                Ct.declarations,
                (bi) =>
                  !!Dn(bi, pc) || O_(bi) || (Fc(bi) && !uy(bi.moduleReference)),
              );
            sn[mr ? 0 : sn.length - 1].set(Ta(Ct), Ct);
          }
          function hs(Ct) {
            return (Yi(Ct) && (Pp(Ct) || Ff(Ct))) || (yu(Ct) && !M_(Ct));
          }
          function No(Ct, mr) {
            if (Tm(Ct)) {
              const bi = Gd(Ct);
              let Ei = 0;
              const kr =
                se.enclosingDeclaration &&
                (hm(se.enclosingDeclaration)
                  ? Wn(se.enclosingDeclaration)
                  : se.enclosingDeclaration);
              (mr & 32 && kr && (hs(kr) || uc(kr)) && nw(Ct) && (Ei |= 32),
                Zn &&
                  !(Ei & 32) &&
                  (!kr || !(kr.flags & 33554432)) &&
                  (ZT(Ct) || ac(Ct) || Zl(Ct) || Dc(Ct) || uc(Ct)) &&
                  (Ei |= 128),
                mr & 2048 && (Dc(Ct) || gd(Ct) || Zl(Ct)) && (Ei |= 2048),
                Ei && (Ct = L.replaceModifiers(Ct, Ei | bi)),
                (se.approximateLength += dB(Ei | bi)));
            }
            ct.push(Ct);
          }
          function Pc(Ct, mr, bi) {
            var Ei;
            const kr = OOe(Ct),
              xa = Jr(Ct).typeParameters,
              Fa = Vt(xa, (Xl) => Kl(Xl, se)),
              Xo = (Ei = Ct.declarations) == null ? void 0 : Ei.find(hm),
              Pi = O2(Xo ? Xo.comment || Xo.parent.comment : void 0),
              ba = Ie(se);
            se.flags |= 8388608;
            const kc = se.enclosingDeclaration;
            se.enclosingDeclaration = Xo;
            const _l =
                (Xo &&
                  Xo.typeExpression &&
                  t0(Xo.typeExpression) &&
                  Ne.tryReuseExistingTypeNode(se, Xo.typeExpression.type)) ||
                $t(kr, se),
              Qd = ig(Ct, mr);
            ((se.approximateLength += 8 + (Pi?.length ?? 0) + Qd.length),
              No(
                JT(
                  L.createTypeAliasDeclaration(void 0, Qd, Fa, _l),
                  Pi
                    ? [
                        {
                          kind: 3,
                          text:
                            `*
 * ` +
                            Pi.replace(
                              /\n/g,
                              `
 * `,
                            ) +
                            `
 `,
                          pos: -1,
                          end: -1,
                          hasTrailingNewLine: !0,
                        },
                      ]
                    : [],
                ),
                bi,
              ),
              ba(),
              (se.enclosingDeclaration = kc));
          }
          function Lc(Ct, mr, bi) {
            const Ei = ig(Ct, mr);
            se.approximateLength += 14 + Ei.length;
            const kr = tm(Ct),
              xa = Na(Ct),
              Fa = Vt(xa, (ol) => Kl(ol, se)),
              Xo = Zm(kr),
              Pi = et(Xo) ? Ma(Xo) : void 0,
              ba = Od(bs(kr), !1, Pi),
              kc = Vye(0, kr, Pi, 180),
              _l = Vye(1, kr, Pi, 181),
              Qd = I7e(kr, Pi),
              Xl = et(Xo)
                ? [
                    L.createHeritageClause(
                      96,
                      Ui(Xo, (ol) => jye(ol, 111551)),
                    ),
                  ]
                : void 0;
            No(
              L.createInterfaceDeclaration(void 0, Ei, Fa, Xl, [
                ...Qd,
                ..._l,
                ...kc,
                ...ba,
              ]),
              bi,
            );
          }
          function Od(Ct, mr, bi, Ei) {
            const kr = [];
            let xa = 0;
            for (const Fa of Ct) {
              if ((xa++, Te(se) && xa + 2 < Ct.length - 1)) {
                se.out.truncated = !0;
                const Pi = _u(`... ${Ct.length - xa} more ... `, mr);
                kr.push(Pi);
                const ba = mr
                  ? pn(Ct[Ct.length - 1], Ei, bi)
                  : A7e(Ct[Ct.length - 1], bi);
                Mo(ba) ? kr.push(...ba) : kr.push(ba);
                break;
              }
              se.approximateLength += 1;
              const Xo = mr ? pn(Fa, Ei, bi) : A7e(Fa, bi);
              Mo(Xo) ? kr.push(...Xo) : kr.push(Xo);
            }
            return kr;
          }
          function _u(Ct, mr) {
            return se.flags & 1
              ? Cb(L.createNotEmittedTypeElement(), 3, Ct)
              : mr
                ? L.createPropertyDeclaration(
                    void 0,
                    Ct,
                    void 0,
                    void 0,
                    void 0,
                  )
                : L.createPropertySignature(void 0, Ct, void 0, void 0);
          }
          function qu(Ct) {
            let mr = Co(qp(Ct).values());
            const bi = os(Ct);
            if (bi !== Ct) {
              const Ei = new Set(mr);
              for (const kr of qp(bi).values())
                dp(mc(kr)) & 111551 || Ei.add(kr);
              mr = Co(Ei);
            }
            return Un(mr, (Ei) => rN(Ei) && fp(Ei.escapedName, 99));
          }
          function Hy(Ct) {
            return Vn(qu(Ct), (mr) => !(dp(mc(mr)) & 111551));
          }
          function aS(Ct, mr, bi) {
            const Ei = qu(Ct),
              kr = oS(se),
              xa = _2(Ei, (Pi) =>
                (Pi.parent && Pi.parent === Ct) || kr ? "real" : "merged",
              ),
              Fa = xa.get("real") || ae,
              Xo = xa.get("merged") || ae;
            if (et(Fa) || kr) {
              let Pi;
              if (kr) {
                const ba = se.flags;
                ((se.flags |= 514), (Pi = p(Ct, se, -1)), (se.flags = ba));
              } else {
                const ba = ig(Ct, mr);
                ((Pi = L.createIdentifier(ba)),
                  (se.approximateLength += ba.length));
              }
              rg(Fa, Pi, bi, !!(Ct.flags & 67108880));
            }
            if (et(Xo)) {
              const Pi = Wn(se.enclosingDeclaration),
                ba = ig(Ct, mr),
                kc = L.createModuleBlock([
                  L.createExportDeclaration(
                    void 0,
                    !1,
                    L.createNamedExports(
                      Ui(
                        Un(Xo, (_l) => _l.escapedName !== "export="),
                        (_l) => {
                          var Qd, Xl;
                          const ol = Gi(_l.escapedName),
                            kl = ig(_l, ol),
                            jl = _l.declarations && cp(_l);
                          if (
                            Pi &&
                            (jl
                              ? Pi !== Wn(jl)
                              : !yt(_l.declarations, (Ju) => Wn(Ju) === Pi))
                          ) {
                            (Xl =
                              (Qd = se.tracker) == null
                                ? void 0
                                : Qd.reportNonlocalAugmentation) == null ||
                              Xl.call(Qd, Pi, Ct, _l);
                            return;
                          }
                          const Mf = jl && W0(jl, !0);
                          Ya(Mf || _l);
                          const gc = Mf ? ig(Mf, Gi(Mf.escapedName)) : kl;
                          return L.createExportSpecifier(
                            !1,
                            ol === gc ? void 0 : gc,
                            ol,
                          );
                        },
                      ),
                    ),
                  ),
                ]);
              No(
                L.createModuleDeclaration(
                  void 0,
                  L.createIdentifier(ba),
                  kc,
                  32,
                ),
                0,
              );
            }
          }
          function OE(Ct, mr, bi) {
            const Ei = ig(Ct, mr);
            se.approximateLength += 9 + Ei.length;
            const kr = [],
              xa = Un(bs(_r(Ct)), (Xo) => !!(Xo.flags & 8));
            let Fa = 0;
            for (const Xo of xa) {
              if ((Fa++, Te(se) && Fa + 2 < xa.length - 1)) {
                ((se.out.truncated = !0),
                  kr.push(
                    L.createEnumMember(` ... ${xa.length - Fa} more ... `),
                  ));
                const Xl = xa[xa.length - 1],
                  ol =
                    Xl.declarations &&
                    Xl.declarations[0] &&
                    py(Xl.declarations[0])
                      ? q$(Xl.declarations[0])
                      : void 0,
                  kl =
                    ol === void 0
                      ? void 0
                      : typeof ol == "string"
                        ? L.createStringLiteral(ol)
                        : L.createNumericLiteral(ol),
                  jl = Gi(Xl.escapedName),
                  Mf = L.createEnumMember(jl, kl);
                kr.push(Mf);
                break;
              }
              const Pi =
                Xo.declarations && Xo.declarations[0] && py(Xo.declarations[0])
                  ? Xo.declarations[0]
                  : void 0;
              let ba, kc;
              if (oS(se) && Pi && Pi.initializer)
                ((ba = _s(Pi.initializer)),
                  (kc = Pi.initializer.end - Pi.initializer.pos));
              else {
                const Xl = Pi && q$(Pi);
                ((ba =
                  Xl === void 0
                    ? void 0
                    : typeof Xl == "string"
                      ? L.createStringLiteral(Xl)
                      : L.createNumericLiteral(Xl)),
                  (kc = ba?.text.length ?? 0));
              }
              const _l = Gi(Xo.escapedName);
              se.approximateLength += 4 + _l.length + kc;
              const Qd = L.createEnumMember(_l, ba);
              kr.push(Qd);
            }
            No(
              L.createEnumDeclaration(
                L.createModifiersFromModifierFlags(Qge(Ct) ? 4096 : 0),
                Ei,
                kr,
              ),
              bi,
            );
          }
          function bT(Ct, mr, bi, Ei) {
            const kr = na(Ct, 0);
            for (const xa of kr) {
              se.approximateLength += 1;
              const Fa = ii(xa, 263, se, { name: L.createIdentifier(bi) });
              No(c(se, Fa, HL(xa)), Ei);
            }
            if (!(mr.flags & 1536 && mr.exports && mr.exports.size)) {
              const xa = Un(bs(Ct), rN);
              ((se.approximateLength += bi.length),
                rg(xa, L.createIdentifier(bi), Ei, !0));
            }
          }
          function gR(Ct) {
            return se.flags & 1
              ? Cb(L.createEmptyStatement(), 3, Ct)
              : L.createExpressionStatement(L.createIdentifier(Ct));
          }
          function HL(Ct) {
            if (Ct.declaration && Ct.declaration.parent) {
              if (Nr(Ct.declaration.parent) && oc(Ct.declaration.parent) === 5)
                return Ct.declaration.parent;
              if (yi(Ct.declaration.parent) && Ct.declaration.parent.parent)
                return Ct.declaration.parent.parent;
            }
            return Ct.declaration;
          }
          function rg(Ct, mr, bi, Ei) {
            const kr = He(mr) ? 32 : 0,
              xa = oS(se);
            if (et(Ct)) {
              se.approximateLength += 14;
              const Xo =
                _2(Ct, (jl) =>
                  !et(jl.declarations) ||
                  yt(
                    jl.declarations,
                    (Mf) => Wn(Mf) === Wn(se.enclosingDeclaration),
                  ) ||
                  xa
                    ? "local"
                    : "remote",
                ).get("local") || ae;
              let Pi = i0.createModuleDeclaration(
                void 0,
                mr,
                L.createModuleBlock([]),
                kr,
              );
              (ps(Pi, qe), (Pi.locals = da(Ct)), (Pi.symbol = Ct[0].parent));
              const ba = ct;
              ct = [];
              const kc = Zn;
              Zn = !1;
              const _l = { ...se, enclosingDeclaration: Pi },
                Qd = se;
              ((se = _l), Yr(da(Xo), Ei, !0), (se = Qd), (Zn = kc));
              const Xl = ct;
              ct = ba;
              const ol = Vt(Xl, (jl) =>
                  ll(jl) && !jl.isExportEquals && He(jl.expression)
                    ? L.createExportDeclaration(
                        void 0,
                        !1,
                        L.createNamedExports([
                          L.createExportSpecifier(
                            !1,
                            jl.expression,
                            L.createIdentifier("default"),
                          ),
                        ]),
                      )
                    : jl,
                ),
                kl = Vn(ol, (jl) => di(jl, 32)) ? Vt(ol, bn) : ol;
              ((Pi = L.updateModuleDeclaration(
                Pi,
                Pi.modifiers,
                Pi.name,
                L.createModuleBlock(kl),
              )),
                No(Pi, bi));
            } else
              xa &&
                ((se.approximateLength += 14),
                No(
                  L.createModuleDeclaration(
                    void 0,
                    mr,
                    L.createModuleBlock([]),
                    kr,
                  ),
                  bi,
                ));
          }
          function rN(Ct) {
            return (
              !!(Ct.flags & 2887656) ||
              !(
                Ct.flags & 4194304 ||
                Ct.escapedName === "prototype" ||
                (Ct.valueDeclaration &&
                  ua(Ct.valueDeclaration) &&
                  ui(Ct.valueDeclaration.parent))
              )
            );
          }
          function lB(Ct) {
            const mr = Ui(Ct, (bi) => {
              const Ei = se.enclosingDeclaration;
              se.enclosingDeclaration = bi;
              let kr = bi.expression;
              if (Ds(kr)) {
                if (He(kr) && Kr(kr) === "") return xa(void 0);
                let Fa;
                if ((({ introducesError: Fa, node: kr } = Gs(kr, se)), Fa))
                  return xa(void 0);
              }
              return xa(
                L.createExpressionWithTypeArguments(
                  kr,
                  Vt(
                    bi.typeArguments,
                    (Fa) =>
                      Ne.tryReuseExistingTypeNode(se, Fa) || $t(a(se, Fa), se),
                  ),
                ),
              );
              function xa(Fa) {
                return ((se.enclosingDeclaration = Ei), Fa);
              }
            });
            if (mr.length === Ct.length) return mr;
          }
          function zye(Ct, mr, bi) {
            var Ei, kr;
            se.approximateLength += 9 + mr.length;
            const xa = (Ei = Ct.declarations) == null ? void 0 : Ei.find(ui),
              Fa = se.enclosingDeclaration;
            se.enclosingDeclaration = xa || Fa;
            const Xo = Na(Ct),
              Pi = Vt(Xo, (Kv) => Kl(Kv, se));
            Ye(Xo, (Kv) => (se.approximateLength += wl(Kv.symbol).length));
            const ba = Kp(tm(Ct)),
              kc = Zm(ba),
              _l = xa && nD(xa),
              Qd = (_l && lB(_l)) || Ui(OC(ba), wbt),
              Xl = _r(Ct),
              ol =
                !!((kr = Xl.symbol) != null && kr.valueDeclaration) &&
                ui(Xl.symbol.valueDeclaration),
              kl = ol ? Py(Xl) : Ue;
            se.approximateLength += (et(kc) ? 8 : 0) + (et(Qd) ? 11 : 0);
            const jl = [
                ...(et(kc)
                  ? [
                      L.createHeritageClause(
                        96,
                        Vt(kc, (Kv) => kbt(Kv, kl, mr)),
                      ),
                    ]
                  : []),
                ...(et(Qd) ? [L.createHeritageClause(119, Qd)] : []),
              ],
              Mf = yyt(ba, kc, bs(ba)),
              gc = Un(Mf, (Kv) => !sB(Kv)),
              Ju = yt(Mf, sB),
              Jv = Ju
                ? oS(se)
                  ? Od(Un(Mf, sB), !0, kc[0], !1)
                  : [
                      L.createPropertyDeclaration(
                        void 0,
                        L.createPrivateIdentifier("#private"),
                        void 0,
                        void 0,
                        void 0,
                      ),
                    ]
                : ae;
            Ju && !oS(se) && (se.approximateLength += 9);
            const Pf = Od(gc, !0, kc[0], !1),
              Xg = Od(
                Un(
                  bs(Xl),
                  (Kv) =>
                    !(Kv.flags & 4194304) &&
                    Kv.escapedName !== "prototype" &&
                    !rN(Kv),
                ),
                !0,
                kl,
                !0,
              ),
              TT =
                !ol &&
                !!Ct.valueDeclaration &&
                Ir(Ct.valueDeclaration) &&
                !yt(na(Xl, 1));
            TT && (se.approximateLength += 21);
            const ST = TT
                ? [
                    L.createConstructorDeclaration(
                      L.createModifiersFromModifierFlags(2),
                      [],
                      void 0,
                    ),
                  ]
                : Vye(1, Xl, kl, 177),
              Obt = I7e(ba, kc[0]);
            ((se.enclosingDeclaration = Fa),
              No(
                c(
                  se,
                  L.createClassDeclaration(void 0, mr, Pi, jl, [
                    ...Obt,
                    ...Xg,
                    ...ST,
                    ...Pf,
                    ...Jv,
                  ]),
                  Ct.declarations &&
                    Un(Ct.declarations, (Kv) => Dc(Kv) || dc(Kv))[0],
                ),
                bi,
              ));
          }
          function Bye(Ct) {
            return Hn(Ct, (mr) => {
              if (Eu(mr) || ou(mr)) return yb(mr.propertyName || mr.name);
              if (Nr(mr) || ll(mr)) {
                const bi = ll(mr) ? mr.expression : mr.right;
                if (qr(bi)) return Kr(bi.name);
              }
              if (Dv(mr)) {
                const bi = Oo(mr);
                if (bi && He(bi)) return Kr(bi);
              }
            });
          }
          function S7e(Ct, mr, bi) {
            var Ei, kr, xa, Fa, Xo;
            const Pi = cp(Ct);
            if (!Pi) return C.fail();
            const ba = os(W0(Pi, !0));
            if (!ba) return;
            let kc = (Q2(ba) && Bye(Ct.declarations)) || Gi(ba.escapedName);
            kc === "export=" && ye && (kc = "default");
            const _l = ig(ba, kc);
            switch ((Ya(ba), Pi.kind)) {
              case 209:
                if (
                  ((kr = (Ei = Pi.parent) == null ? void 0 : Ei.parent) == null
                    ? void 0
                    : kr.kind) === 261
                ) {
                  const ol = lc(ba.parent || ba, se),
                    { propertyName: kl } = Pi,
                    jl = kl && He(kl) ? Kr(kl) : void 0;
                  ((se.approximateLength +=
                    24 + mr.length + ol.length + (jl?.length ?? 0)),
                    No(
                      L.createImportDeclaration(
                        void 0,
                        L.createImportClause(
                          void 0,
                          void 0,
                          L.createNamedImports([
                            L.createImportSpecifier(
                              !1,
                              jl ? L.createIdentifier(jl) : void 0,
                              L.createIdentifier(mr),
                            ),
                          ]),
                        ),
                        L.createStringLiteral(ol),
                        void 0,
                      ),
                      0,
                    ));
                  break;
                }
                C.failBadSyntaxKind(
                  ((xa = Pi.parent) == null ? void 0 : xa.parent) || Pi,
                  "Unhandled binding element grandparent kind in declaration serialization",
                );
                break;
              case 305:
                ((Xo = (Fa = Pi.parent) == null ? void 0 : Fa.parent) == null
                  ? void 0
                  : Xo.kind) === 227 && qL(Gi(Ct.escapedName), _l);
                break;
              case 261:
                if (qr(Pi.initializer)) {
                  const ol = Pi.initializer,
                    kl = L.createUniqueName(mr),
                    jl = lc(ba.parent || ba, se);
                  ((se.approximateLength += 22 + jl.length + Kr(kl).length),
                    No(
                      L.createImportEqualsDeclaration(
                        void 0,
                        !1,
                        kl,
                        L.createExternalModuleReference(
                          L.createStringLiteral(jl),
                        ),
                      ),
                      0,
                    ),
                    (se.approximateLength +=
                      12 + mr.length + Kr(kl).length + Kr(ol.name).length),
                    No(
                      L.createImportEqualsDeclaration(
                        void 0,
                        !1,
                        L.createIdentifier(mr),
                        L.createQualifiedName(kl, ol.name),
                      ),
                      bi,
                    ));
                  break;
                }
              case 272:
                if (
                  ba.escapedName === "export=" &&
                  yt(ba.declarations, (ol) => Yi(ol) && Ff(ol))
                ) {
                  cB(Ct);
                  break;
                }
                const Qd = !(ba.flags & 512) && !yi(Pi);
                ((se.approximateLength +=
                  11 + mr.length + Gi(ba.escapedName).length),
                  No(
                    L.createImportEqualsDeclaration(
                      void 0,
                      !1,
                      L.createIdentifier(mr),
                      Qd
                        ? nc(ba, se, -1, !1)
                        : L.createExternalModuleReference(
                            L.createStringLiteral(lc(ba, se)),
                          ),
                    ),
                    Qd ? bi : 0,
                  ));
                break;
              case 271:
                No(L.createNamespaceExportDeclaration(Kr(Pi.name)), 0);
                break;
              case 274: {
                const ol = lc(ba.parent || ba, se),
                  kl = se.bundled
                    ? L.createStringLiteral(ol)
                    : Pi.parent.moduleSpecifier,
                  jl = vl(Pi.parent) ? Pi.parent.attributes : void 0,
                  Mf = o_(Pi.parent);
                ((se.approximateLength += 14 + mr.length + 3 + (Mf ? 4 : 0)),
                  No(
                    L.createImportDeclaration(
                      void 0,
                      L.createImportClause(
                        Mf ? 156 : void 0,
                        L.createIdentifier(mr),
                        void 0,
                      ),
                      kl,
                      jl,
                    ),
                    0,
                  ));
                break;
              }
              case 275: {
                const ol = lc(ba.parent || ba, se),
                  kl = se.bundled
                    ? L.createStringLiteral(ol)
                    : Pi.parent.parent.moduleSpecifier,
                  jl = o_(Pi.parent.parent);
                ((se.approximateLength += 19 + mr.length + 3 + (jl ? 4 : 0)),
                  No(
                    L.createImportDeclaration(
                      void 0,
                      L.createImportClause(
                        jl ? 156 : void 0,
                        void 0,
                        L.createNamespaceImport(L.createIdentifier(mr)),
                      ),
                      kl,
                      Pi.parent.attributes,
                    ),
                    0,
                  ));
                break;
              }
              case 281:
                ((se.approximateLength += 19 + mr.length + 3),
                  No(
                    L.createExportDeclaration(
                      void 0,
                      !1,
                      L.createNamespaceExport(L.createIdentifier(mr)),
                      L.createStringLiteral(lc(ba, se)),
                    ),
                    0,
                  ));
                break;
              case 277: {
                const ol = lc(ba.parent || ba, se),
                  kl = se.bundled
                    ? L.createStringLiteral(ol)
                    : Pi.parent.parent.parent.moduleSpecifier,
                  jl = o_(Pi.parent.parent.parent);
                ((se.approximateLength += 19 + mr.length + 3 + (jl ? 4 : 0)),
                  No(
                    L.createImportDeclaration(
                      void 0,
                      L.createImportClause(
                        jl ? 156 : void 0,
                        void 0,
                        L.createNamedImports([
                          L.createImportSpecifier(
                            !1,
                            mr !== kc ? L.createIdentifier(kc) : void 0,
                            L.createIdentifier(mr),
                          ),
                        ]),
                      ),
                      kl,
                      Pi.parent.parent.parent.attributes,
                    ),
                    0,
                  ));
                break;
              }
              case 282:
                const Xl = Pi.parent.parent.moduleSpecifier;
                if (Xl) {
                  const ol = Pi.propertyName;
                  ol && N_(ol) && (kc = "default");
                }
                qL(
                  Gi(Ct.escapedName),
                  Xl ? kc : _l,
                  Xl && ds(Xl) ? L.createStringLiteral(Xl.text) : void 0,
                );
                break;
              case 278:
                cB(Ct);
                break;
              case 227:
              case 212:
              case 213:
                Ct.escapedName === "default" || Ct.escapedName === "export="
                  ? cB(Ct)
                  : qL(mr, _l);
                break;
              default:
                return C.failBadSyntaxKind(
                  Pi,
                  "Unhandled alias declaration kind in symbol serializer!",
                );
            }
          }
          function qL(Ct, mr, bi) {
            ((se.approximateLength +=
              16 + Ct.length + (Ct !== mr ? mr.length : 0)),
              No(
                L.createExportDeclaration(
                  void 0,
                  !1,
                  L.createNamedExports([
                    L.createExportSpecifier(!1, Ct !== mr ? mr : void 0, Ct),
                  ]),
                  bi,
                ),
                0,
              ));
          }
          function cB(Ct) {
            var mr;
            if (Ct.flags & 4194304) return !1;
            const bi = Gi(Ct.escapedName),
              Ei = bi === "export=",
              xa = Ei || bi === "default",
              Fa = Ct.declarations && cp(Ct),
              Xo = Fa && W0(Fa, !0);
            if (
              Xo &&
              et(Xo.declarations) &&
              yt(Xo.declarations, (Pi) => Wn(Pi) === Wn(qe))
            ) {
              const Pi = Fa && (ll(Fa) || Nr(Fa) ? jG(Fa) : Sne(Fa)),
                ba = Pi && Ds(Pi) ? Lyt(Pi) : void 0,
                kc = ba && Gl(ba, -1, !0, !0, qe);
              (kc || Xo) && Ya(kc || Xo);
              const _l = se.tracker.disableTrackSymbol;
              if (((se.tracker.disableTrackSymbol = !0), xa))
                ((se.approximateLength += 10),
                  ct.push(
                    L.createExportAssignment(void 0, Ei, lm(Xo, se, -1)),
                  ));
              else if (ba === Pi && ba) qL(bi, Kr(ba));
              else if (Pi && dc(Pi)) qL(bi, ig(Xo, wl(Xo)));
              else {
                const Qd = uB(bi, Ct);
                ((se.approximateLength += Qd.length + 10),
                  No(
                    L.createImportEqualsDeclaration(
                      void 0,
                      !1,
                      L.createIdentifier(Qd),
                      nc(Xo, se, -1, !1),
                    ),
                    0,
                  ),
                  qL(bi, Qd));
              }
              return ((se.tracker.disableTrackSymbol = _l), !0);
            } else {
              const Pi = uB(bi, Ct),
                ba = $p(_r(os(Ct)));
              if (Gye(ba, Ct)) bT(ba, Ct, Pi, xa ? 0 : 32);
              else {
                const kc =
                  ((mr = se.enclosingDeclaration) == null
                    ? void 0
                    : mr.kind) === 268 &&
                  (!(Ct.flags & 98304) || Ct.flags & 65536)
                    ? 1
                    : 2;
                se.approximateLength += Pi.length + 5;
                const _l = L.createVariableStatement(
                  void 0,
                  L.createVariableDeclarationList(
                    [
                      L.createVariableDeclaration(
                        Pi,
                        void 0,
                        Gr(se, void 0, ba, Ct),
                      ),
                    ],
                    kc,
                  ),
                );
                No(
                  _l,
                  Xo && Xo.flags & 4 && Xo.escapedName === "export="
                    ? 128
                    : bi === Pi
                      ? 32
                      : 0,
                );
              }
              return xa
                ? ((se.approximateLength += Pi.length + 10),
                  ct.push(
                    L.createExportAssignment(
                      void 0,
                      Ei,
                      L.createIdentifier(Pi),
                    ),
                  ),
                  !0)
                : bi !== Pi
                  ? (qL(bi, Pi), !0)
                  : !1;
            }
          }
          function Gye(Ct, mr) {
            var bi;
            const Ei = Wn(se.enclosingDeclaration);
            return (
              Hr(Ct) & 48 &&
              !yt((bi = Ct.symbol) == null ? void 0 : bi.declarations, Ri) &&
              !et(Xd(Ct)) &&
              !TW(Ct) &&
              !!(et(Un(bs(Ct), rN)) || et(na(Ct, 0))) &&
              !et(na(Ct, 1)) &&
              !Ht(mr, qe) &&
              !(
                Ct.symbol && yt(Ct.symbol.declarations, (kr) => Wn(kr) !== Ei)
              ) &&
              !yt(bs(Ct), (kr) => xW(kr.escapedName)) &&
              !yt(bs(Ct), (kr) => yt(kr.declarations, (xa) => Wn(xa) !== Ei)) &&
              Vn(bs(Ct), (kr) =>
                fp(wl(kr), G)
                  ? kr.flags & 98304
                    ? xh(kr) === Wv(kr)
                    : !0
                  : !1,
              )
            );
          }
          function E7e(Ct, mr, bi) {
            return function (kr, xa, Fa) {
              var Xo, Pi, ba, kc, _l, Qd;
              const Xl = Vf(kr),
                ol = !!(Xl & 2) && !oS(se);
              if (xa && kr.flags & 2887656) return [];
              if (
                kr.flags & 4194304 ||
                kr.escapedName === "constructor" ||
                (Fa &&
                  Ea(Fa, kr.escapedName) &&
                  wh(Ea(Fa, kr.escapedName)) === wh(kr) &&
                  (kr.flags & 16777216) ===
                    (Ea(Fa, kr.escapedName).flags & 16777216) &&
                  Hg(_r(kr), _n(Fa, kr.escapedName)))
              )
                return [];
              const kl = (Xl & -1025) | (xa ? 256 : 0),
                jl = UL(kr, se),
                Mf =
                  (Xo = kr.declarations) == null
                    ? void 0
                    : Xo.find(Rp(Po, fb, yi, Su, Nr, qr));
              if (kr.flags & 98304 && bi) {
                const gc = [];
                if (kr.flags & 65536) {
                  const Ju =
                    kr.declarations &&
                    Ye(kr.declarations, (Xg) => {
                      if (Xg.kind === 179) return Xg;
                      if (Zo(Xg) && o1(Xg))
                        return Ye(Xg.arguments[2].properties, (TT) => {
                          const ST = Oo(TT);
                          if (ST && He(ST) && Kr(ST) === "set") return TT;
                        });
                    });
                  C.assert(!!Ju);
                  const Jv = Ms(Ju) ? Df(Ju).parameters[0] : void 0,
                    Pf = (Pi = kr.declarations) == null ? void 0 : Pi.find(Vh);
                  ((se.approximateLength +=
                    dB(kl) + 7 + (Jv ? wl(Jv).length : 5) + (ol ? 0 : 2)),
                    gc.push(
                      c(
                        se,
                        L.createSetAccessorDeclaration(
                          L.createModifiersFromModifierFlags(kl),
                          jl,
                          [
                            L.createParameterDeclaration(
                              void 0,
                              void 0,
                              Jv ? Hi(Jv, qn(Jv), se) : "value",
                              void 0,
                              ol ? void 0 : Gr(se, Pf, Wv(kr), kr),
                            ),
                          ],
                          void 0,
                        ),
                        Pf ?? Mf,
                      ),
                    ));
                }
                if (kr.flags & 32768) {
                  const Ju =
                    (ba = kr.declarations) == null ? void 0 : ba.find(ug);
                  ((se.approximateLength += dB(kl) + 8 + (ol ? 0 : 2)),
                    gc.push(
                      c(
                        se,
                        L.createGetAccessorDeclaration(
                          L.createModifiersFromModifierFlags(kl),
                          jl,
                          [],
                          ol ? void 0 : Gr(se, Ju, _r(kr), kr),
                          void 0,
                        ),
                        Ju ?? Mf,
                      ),
                    ));
                }
                return gc;
              } else if (kr.flags & 98311) {
                const gc = (wh(kr) ? 8 : 0) | kl;
                return (
                  (se.approximateLength += 2 + (ol ? 0 : 2) + dB(gc)),
                  c(
                    se,
                    Ct(
                      L.createModifiersFromModifierFlags(gc),
                      jl,
                      kr.flags & 16777216 ? L.createToken(58) : void 0,
                      ol
                        ? void 0
                        : Gr(
                            se,
                            (kc = kr.declarations) == null
                              ? void 0
                              : kc.find(gp),
                            Wv(kr),
                            kr,
                          ),
                      void 0,
                    ),
                    ((_l = kr.declarations) == null
                      ? void 0
                      : _l.find(Rp(Po, yi))) || Mf,
                  )
                );
              }
              if (kr.flags & 8208) {
                const gc = _r(kr),
                  Ju = na(gc, 0);
                if (ol) {
                  const Pf = (wh(kr) ? 8 : 0) | kl;
                  return (
                    (se.approximateLength += 1 + dB(Pf)),
                    c(
                      se,
                      Ct(
                        L.createModifiersFromModifierFlags(Pf),
                        jl,
                        kr.flags & 16777216 ? L.createToken(58) : void 0,
                        void 0,
                        void 0,
                      ),
                      ((Qd = kr.declarations) == null ? void 0 : Qd.find(Ms)) ||
                        (Ju[0] && Ju[0].declaration) ||
                        (kr.declarations && kr.declarations[0]),
                    )
                  );
                }
                const Jv = [];
                for (const Pf of Ju) {
                  se.approximateLength += 1;
                  const Xg = ii(Pf, mr, se, {
                      name: jl,
                      questionToken:
                        kr.flags & 16777216 ? L.createToken(58) : void 0,
                      modifiers: kl
                        ? L.createModifiersFromModifierFlags(kl)
                        : void 0,
                    }),
                    TT =
                      Pf.declaration && vk(Pf.declaration.parent)
                        ? Pf.declaration.parent
                        : Pf.declaration;
                  Jv.push(c(se, Xg, TT));
                }
                return Jv;
              }
              return C.fail(
                `Unhandled class member kind! ${kr.__debugFlags || kr.flags}`,
              );
            };
          }
          function dB(Ct) {
            let mr = 0;
            return (
              Ct & 32 && (mr += 7),
              Ct & 128 && (mr += 8),
              Ct & 2048 && (mr += 8),
              Ct & 4096 && (mr += 6),
              Ct & 1 && (mr += 7),
              Ct & 2 && (mr += 8),
              Ct & 4 && (mr += 10),
              Ct & 64 && (mr += 9),
              Ct & 256 && (mr += 7),
              Ct & 16 && (mr += 9),
              Ct & 8 && (mr += 9),
              Ct & 512 && (mr += 9),
              Ct & 1024 && (mr += 6),
              Ct & 8192 && (mr += 3),
              Ct & 16384 && (mr += 4),
              mr
            );
          }
          function A7e(Ct, mr) {
            return Me(Ct, !1, mr);
          }
          function Vye(Ct, mr, bi, Ei) {
            const kr = na(mr, Ct);
            if (Ct === 1) {
              if (!bi && Vn(kr, (Xo) => et(Xo.parameters) === 0)) return [];
              if (bi) {
                const Xo = na(bi, 1);
                if (!et(Xo) && Vn(kr, (Pi) => et(Pi.parameters) === 0))
                  return [];
                if (Xo.length === kr.length) {
                  let Pi = !1;
                  for (let ba = 0; ba < Xo.length; ba++)
                    if (!p5(kr[ba], Xo[ba], !1, !1, !0, BW)) {
                      Pi = !0;
                      break;
                    }
                  if (!Pi) return [];
                }
              }
              let Fa = 0;
              for (const Xo of kr)
                Xo.declaration && (Fa |= AI(Xo.declaration, 6));
              if (Fa)
                return [
                  c(
                    se,
                    L.createConstructorDeclaration(
                      L.createModifiersFromModifierFlags(Fa),
                      [],
                      void 0,
                    ),
                    kr[0].declaration,
                  ),
                ];
            }
            const xa = [];
            for (const Fa of kr) {
              se.approximateLength += 1;
              const Xo = ii(Fa, Ei, se);
              xa.push(c(se, Xo, Fa.declaration));
            }
            return xa;
          }
          function I7e(Ct, mr) {
            const bi = [];
            for (const Ei of Xd(Ct)) {
              if (mr) {
                const kr = Vg(mr, Ei.keyType);
                if (kr && Hg(Ei.type, kr.type)) continue;
              }
              bi.push(oo(Ei, se, void 0));
            }
            return bi;
          }
          function kbt(Ct, mr, bi) {
            const Ei = jye(Ct, 111551);
            if (Ei) return Ei;
            const kr = uB(`${bi}_base`),
              xa = L.createVariableStatement(
                void 0,
                L.createVariableDeclarationList(
                  [L.createVariableDeclaration(kr, void 0, $t(mr, se))],
                  2,
                ),
              );
            return (
              No(xa, 0),
              L.createExpressionWithTypeArguments(
                L.createIdentifier(kr),
                void 0,
              )
            );
          }
          function jye(Ct, mr) {
            let bi, Ei;
            if (
              (Ct.target && lL(Ct.target.symbol, qe, mr)
                ? ((bi = Vt(rl(Ct), (kr) => $t(kr, se))),
                  (Ei = lm(Ct.target.symbol, se, 788968)))
                : Ct.symbol &&
                  lL(Ct.symbol, qe, mr) &&
                  (Ei = lm(Ct.symbol, se, 788968)),
              Ei)
            )
              return L.createExpressionWithTypeArguments(Ei, bi);
          }
          function wbt(Ct) {
            const mr = jye(Ct, 788968);
            if (mr) return mr;
            if (Ct.symbol)
              return L.createExpressionWithTypeArguments(
                lm(Ct.symbol, se, 788968),
                void 0,
              );
          }
          function uB(Ct, mr) {
            var bi, Ei;
            const kr = mr ? Ta(mr) : void 0;
            if (kr && se.remappedSymbolNames.has(kr))
              return se.remappedSymbolNames.get(kr);
            mr && (Ct = x7e(mr, Ct));
            let xa = 0;
            const Fa = Ct;
            for (; (bi = se.usedSymbolNames) != null && bi.has(Ct); )
              (xa++, (Ct = `${Fa}_${xa}`));
            return (
              (Ei = se.usedSymbolNames) == null || Ei.add(Ct),
              kr && se.remappedSymbolNames.set(kr, Ct),
              Ct
            );
          }
          function x7e(Ct, mr) {
            if (mr === "default" || mr === "__class" || mr === "__function") {
              const bi = Ie(se);
              se.flags |= 16777216;
              const Ei = j0(Ct, se);
              (bi(),
                (mr = Ei.length > 0 && mk(Ei.charCodeAt(0)) ? _m(Ei) : Ei));
            }
            return (
              mr === "default"
                ? (mr = "_default")
                : mr === "export=" && (mr = "_exports"),
              (mr =
                fp(mr, G) && !SI(mr)
                  ? mr
                  : "_" + mr.replace(/[^a-z0-9]/gi, "_")),
              mr
            );
          }
          function ig(Ct, mr) {
            const bi = Ta(Ct);
            return se.remappedSymbolNames.has(bi)
              ? se.remappedSymbolNames.get(bi)
              : ((mr = x7e(Ct, mr)), se.remappedSymbolNames.set(bi, mr), mr);
          }
        }
        function oS(we) {
          return we.maxExpansionDepth !== -1;
        }
        function sB(we) {
          return (
            !!we.valueDeclaration &&
            nd(we.valueDeclaration) &&
            eo(we.valueDeclaration.name)
          );
        }
        function Q$(we) {
          if (
            we.valueDeclaration &&
            nd(we.valueDeclaration) &&
            eo(we.valueDeclaration.name)
          )
            return L.cloneNode(we.valueDeclaration.name);
        }
      }
      function kC(n) {
        var a;
        const c = (Hr(n) & 4) !== 0 ? n.target.symbol : n.symbol;
        return (
          Ka(n) ||
          !!(
            (a = c?.declarations) != null &&
            a.some((p) => e.isSourceFileDefaultLibrary(Wn(p)))
          )
        );
      }
      function K_(n, a, c = 16384, p) {
        return p ? m(p).getText() : jR(m);
        function m(v) {
          const I = bE(c) | 70221824 | 512,
            w = be.typePredicateToTypePredicateNode(n, a, I),
            U = YS(),
            H = a && Wn(a);
          return (U.writeNode(4, w, H, v), v);
        }
      }
      function SW(n, a) {
        const c = [];
        let p = 0;
        for (let m = 0; m < n.length; m++) {
          const v = n[m];
          if (((p |= v.flags), !(v.flags & 98304))) {
            if (v.flags & 512 || (!a && v.flags | 1056)) {
              const I = v.flags & 512 ? jt : ZX(v);
              if (I.flags & 1048576) {
                const w = I.types.length;
                if (
                  m + w <= n.length &&
                  Cu(n[m + w - 1]) === Cu(I.types[w - 1])
                ) {
                  (c.push(I), (m += w - 1));
                  continue;
                }
              }
            }
            c.push(v);
          }
        }
        return (p & 65536 && c.push(Xt), p & 32768 && c.push(he), c || n);
      }
      function V0(n) {
        return n === 2 ? "private" : n === 4 ? "protected" : "public";
      }
      function Bz(n) {
        if (n.symbol && n.symbol.flags & 2048 && n.symbol.declarations) {
          const a = Ik(n.symbol.declarations[0].parent);
          if (vm(a)) return Wr(a);
        }
      }
      function uL(n) {
        return n && n.parent && n.parent.kind === 269 && TS(n.parent.parent);
      }
      function EW(n) {
        return n.kind === 308 || yu(n);
      }
      function pL(n, a) {
        const c = Jr(n).nameType;
        if (c) {
          if (c.flags & 384) {
            const p = "" + c.value;
            return !fp(p, Ga(O)) && !Eg(p)
              ? `"${k_(p, 34)}"`
              : Eg(p) && po(p, "-")
                ? `[${p}]`
                : p;
          }
          if (c.flags & 8192) return `[${j0(c.symbol, a)}]`;
        }
      }
      function j0(n, a) {
        var c;
        if (
          ((c = a?.remappedSymbolReferences) != null &&
            c.has(Ta(n)) &&
            (n = a.remappedSymbolReferences.get(Ta(n))),
          a &&
            n.escapedName === "default" &&
            !(a.flags & 16384) &&
            (!(a.flags & 16777216) ||
              !n.declarations ||
              (a.enclosingDeclaration &&
                Dn(n.declarations[0], EW) !== Dn(a.enclosingDeclaration, EW))))
        )
          return "default";
        if (n.declarations && n.declarations.length) {
          let m = Hn(n.declarations, (I) => (Oo(I) ? I : void 0));
          const v = m && Oo(m);
          if (m && v) {
            if (Zo(m) && o1(m)) return wl(n);
            if (va(v) && !(Wl(n) & 4096)) {
              const I = Jr(n).nameType;
              if (I && I.flags & 384) {
                const w = pL(n, a);
                if (w !== void 0) return w;
              }
            }
            return ws(v);
          }
          if ((m || (m = n.declarations[0]), m.parent && m.parent.kind === 261))
            return ws(m.parent.name);
          switch (m.kind) {
            case 232:
            case 219:
            case 220:
              return (
                a &&
                  !a.encounteredError &&
                  !(a.flags & 131072) &&
                  (a.encounteredError = !0),
                m.kind === 232 ? "(Anonymous class)" : "(Anonymous function)"
              );
          }
        }
        const p = pL(n, a);
        return p !== void 0 ? p : wl(n);
      }
      function X_(n) {
        if (n) {
          const c = Vr(n);
          return (c.isVisible === void 0 && (c.isVisible = !!a()), c.isVisible);
        }
        return !1;
        function a() {
          switch (n.kind) {
            case 339:
            case 347:
            case 341:
              return !!(
                n.parent &&
                n.parent.parent &&
                n.parent.parent.parent &&
                Yi(n.parent.parent.parent)
              );
            case 209:
              return X_(n.parent.parent);
            case 261:
              if (Qo(n.name) && !n.name.elements.length) return !1;
            case 268:
            case 264:
            case 265:
            case 266:
            case 263:
            case 267:
            case 272:
              if (TS(n)) return !0;
              const c = Pt(n);
              return !($$(n) & 32) &&
                !(n.kind !== 272 && c.kind !== 308 && c.flags & 33554432)
                ? ev(c)
                : X_(c);
            case 173:
            case 172:
            case 178:
            case 179:
            case 175:
            case 174:
              if (wp(n, 6)) return !1;
            case 177:
            case 181:
            case 180:
            case 182:
            case 170:
            case 269:
            case 185:
            case 186:
            case 188:
            case 184:
            case 189:
            case 190:
            case 193:
            case 194:
            case 197:
            case 203:
              return X_(n.parent);
            case 274:
            case 275:
            case 277:
              return !1;
            case 169:
            case 308:
            case 271:
              return !0;
            case 278:
              return !1;
            default:
              return !1;
          }
        }
      }
      function wC(n, a) {
        let c;
        n.kind !== 11 && n.parent && n.parent.kind === 278
          ? (c = _t(n, n, 2998271, void 0, !1))
          : n.parent.kind === 282 && (c = Fx(n.parent, 2998271));
        let p, m;
        return (c && ((m = new Set()), m.add(Ta(c)), v(c.declarations)), p);
        function v(I) {
          Ye(I, (w) => {
            const U = Qf(w) || w;
            if (
              (a ? (Vr(w).isVisible = !0) : ((p = p || []), kf(p, U)), r1(w))
            ) {
              const H = w.moduleReference,
                Q = Lu(H),
                Ie = _t(w, Q.escapedText, 901119, void 0, !1);
              Ie && m && rh(m, Ta(Ie)) && v(Ie.declarations);
            }
          });
        }
      }
      function g_(n, a) {
        const c = ee(n, a);
        if (c >= 0) {
          const { length: p } = Mg;
          for (let m = c; m < p; m++) S0[m] = !1;
          return !1;
        }
        return (Mg.push(n), S0.push(!0), q1.push(a), !0);
      }
      function ee(n, a) {
        for (let c = Mg.length - 1; c >= Sv; c--) {
          if (ke(Mg[c], q1[c])) return -1;
          if (Mg[c] === n && q1[c] === a) return c;
        }
        return -1;
      }
      function ke(n, a) {
        switch (a) {
          case 0:
            return !!Jr(n).type;
          case 2:
            return !!Jr(n).declaredType;
          case 1:
            return !!n.resolvedBaseConstructorType;
          case 3:
            return !!n.resolvedReturnType;
          case 4:
            return !!n.immediateBaseConstraint;
          case 5:
            return !!n.resolvedTypeArguments;
          case 6:
            return !!n.baseTypesResolved;
          case 7:
            return !!Jr(n).writeType;
          case 8:
            return Vr(n).parameterInitializerContainsUndefined !== void 0;
        }
        return C.assertNever(a);
      }
      function rt() {
        return (Mg.pop(), q1.pop(), S0.pop());
      }
      function Pt(n) {
        return Dn(Jh(n), (a) => {
          switch (a.kind) {
            case 261:
            case 262:
            case 277:
            case 276:
            case 275:
            case 274:
              return !1;
            default:
              return !0;
          }
        }).parent;
      }
      function nn(n) {
        const a = qs(Yc(n));
        return a.typeParameters
          ? Ly(
              a,
              Vt(a.typeParameters, (c) => Ue),
            )
          : a;
      }
      function _n(n, a) {
        const c = Ea(n, a);
        return c ? _r(c) : void 0;
      }
      function ei(n, a) {
        var c;
        let p;
        return (
          _n(n, a) ||
          ((p = (c = tR(n, a)) == null ? void 0 : c.type) && pu(p, !0, !0))
        );
      }
      function wr(n) {
        return n && (n.flags & 1) !== 0;
      }
      function pr(n) {
        return n === nt || !!(n.flags & 1 && n.aliasSymbol);
      }
      function Si(n, a) {
        if (a !== 0) return Yx(n, !1, a);
        const c = Wr(n);
        return (c && Jr(c).type) || Yx(n, !1, a);
      }
      function ao(n, a, c) {
        if (((n = Ec(n, (U) => !(U.flags & 98304))), n.flags & 131072))
          return Ra;
        if (n.flags & 1048576) return Tl(n, (U) => ao(U, a, c));
        let p = pi(Vt(a, ky));
        const m = [],
          v = [];
        for (const U of bs(n)) {
          const H = nR(U, 8576);
          !aa(H, p) && !(Vf(U) & 6) && vY(U) ? m.push(U) : v.push(H);
        }
        if (IA(n) || xA(p)) {
          if ((v.length && (p = pi([p, ...v])), p.flags & 131072)) return n;
          const U = Tct();
          return U ? VC(U, [n, p]) : nt;
        }
        const I = da();
        for (const U of m) I.set(U.escapedName, a_e(U, !1));
        const w = bl(c, I, ae, ae, Xd(n));
        return ((w.objectFlags |= 4194304), w);
      }
      function zs(n) {
        return !!(n.flags & 465829888) && tc(Ld(n) || Nt, 32768);
      }
      function Is(n) {
        const a = am(n, zs)
          ? Tl(n, (c) => (c.flags & 465829888 ? v_(c) : c))
          : n;
        return om(a, 524288);
      }
      function as(n, a) {
        const c = em(n);
        return c ? Vy(c, a) : a;
      }
      function em(n) {
        const a = xf(n);
        if (a && eD(a) && a.flowNode) {
          const c = kv(n);
          if (c) {
            const p = vt(i0.createStringLiteral(c), n),
              m = $u(a) ? a : i0.createParenthesizedExpression(a),
              v = vt(i0.createElementAccessExpression(m, p), n);
            return (
              ps(p, v),
              ps(v, n),
              m !== a && ps(m, v),
              (v.flowNode = a.flowNode),
              v
            );
          }
        }
      }
      function xf(n) {
        const a = n.parent.parent;
        switch (a.kind) {
          case 209:
          case 304:
            return em(a);
          case 210:
            return em(n.parent);
          case 261:
            return a.initializer;
          case 227:
            return a.right;
        }
      }
      function kv(n) {
        const a = n.parent;
        return n.kind === 209 && a.kind === 207
          ? wv(n.propertyName || n.name)
          : n.kind === 304 || n.kind === 305
            ? wv(n.name)
            : "" + a.elements.indexOf(n);
      }
      function wv(n) {
        const a = ky(n);
        return a.flags & 384 ? "" + a.value : void 0;
      }
      function Fg(n) {
        const a = n.dotDotDotToken ? 32 : 0,
          c = Si(n.parent.parent, a);
        return c && sT(n, c, !1);
      }
      function sT(n, a, c) {
        if (wr(a)) return a;
        const p = n.parent;
        ie && n.flags & 33554432 && jT(n)
          ? (a = By(a))
          : ie &&
            p.parent.initializer &&
            !Mh(NFe(p.parent.initializer), 65536) &&
            (a = om(a, 524288));
        const m = 32 | (c || dR(n) ? 16 : 0);
        let v;
        if (p.kind === 207)
          if (n.dotDotDotToken) {
            if (((a = Pm(a)), a.flags & 2 || !C5(a)))
              return (
                Qe(n, f.Rest_types_may_only_be_created_from_object_types),
                nt
              );
            const I = [];
            for (const w of p.elements)
              w.dotDotDotToken || I.push(w.propertyName || w.name);
            v = ao(a, I, n.symbol);
          } else {
            const I = n.propertyName || n.name,
              w = ky(I),
              U = Xp(a, w, m, I);
            v = as(n, U);
          }
        else {
          const I = Hv(65 | (n.dotDotDotToken ? 0 : 128), a, he, p),
            w = p.elements.indexOf(n);
          if (n.dotDotDotToken) {
            const U = Tl(a, (H) => (H.flags & 58982400 ? v_(H) : H));
            v = Ep(U, Ka) ? Tl(U, (H) => IL(H, w)) : Yd(I);
          } else if (jv(a)) {
            const U = Ch(w),
              H = uT(a, U, m, n.name) || nt;
            v = as(n, H);
          } else v = I;
        }
        return n.initializer
          ? xc(qE(n))
            ? ie && !Mh(wL(n, 0), 16777216)
              ? Is(v)
              : v
            : tye(n, pi([Is(v), wL(n, 0)], 2))
          : v;
      }
      function cs(n) {
        const a = $y(n);
        if (a) return Ji(a);
      }
      function Gc(n) {
        const a = us(n, !0);
        return a.kind === 106 || (a.kind === 80 && fu(a) === ce);
      }
      function Ov(n) {
        const a = us(n, !0);
        return a.kind === 210 && a.elements.length === 0;
      }
      function pu(n, a = !1, c = !0) {
        return ie && c ? hT(n, a) : n;
      }
      function Yx(n, a, c) {
        if (yi(n) && n.parent.parent.kind === 250) {
          const I = b_(Sge(_o(n.parent.parent.expression, c)));
          return I.flags & 4456448 ? d8e(I) : gt;
        }
        if (yi(n) && n.parent.parent.kind === 251) {
          const I = n.parent.parent;
          return eB(I) || Ue;
        }
        if (Qo(n.parent)) return Fg(n);
        const p = (Po(n) && !Kh(n)) || Su(n) || Wie(n),
          m = a && wI(n),
          v = cT(n);
        if (_G(n)) return v ? (wr(v) || v === Nt ? v : nt) : X ? Nt : Ue;
        if (v) return pu(v, p, m);
        if (
          (ve || Ir(n)) &&
          yi(n) &&
          !Qo(n.name) &&
          !($$(n) & 32) &&
          !(n.flags & 33554432)
        ) {
          if (!(wE(n) & 6) && (!n.initializer || Gc(n.initializer))) return Rt;
          if (n.initializer && Ov(n.initializer)) return ld;
        }
        if (to(n)) {
          if (!n.symbol) return;
          const I = n.parent;
          if (I.kind === 179 && FC(I)) {
            const H = al(Wr(n.parent), 178);
            if (H) {
              const Q = Df(H),
                Ie = Oye(I);
              return Ie && n === Ie
                ? (C.assert(!Ie.type), _r(Q.thisParameter))
                : fs(Q);
            }
          }
          const w = Hlt(I, n);
          if (w) return w;
          const U = n.symbol.escapedName === "this" ? lge(I) : s6e(n);
          if (U) return pu(U, !1, m);
        }
        if (ZE(n) && n.initializer) {
          if (Ir(n) && !to(n)) {
            const w = rn(n, Wr(n), QN(n));
            if (w) return w;
          }
          const I = tye(n, wL(n, c));
          return pu(I, p, m);
        }
        if (Po(n) && (ve || Ir(n)))
          if (wc(n)) {
            const I = Un(n.parent.members, Ql),
              w = I.length
                ? M(n.symbol, I)
                : Gd(n) & 128
                  ? NY(n.symbol)
                  : void 0;
            return w && pu(w, !0, m);
          } else {
            const I = ow(n.parent),
              w = I ? V(n.symbol, I) : Gd(n) & 128 ? NY(n.symbol) : void 0;
            return w && pu(w, !0, m);
          }
        if (i_(n)) return ft;
        if (Qo(n.name)) return fL(n.name, !1, !0);
      }
      function zg(n) {
        if (n.valueDeclaration && Nr(n.valueDeclaration)) {
          const a = Jr(n);
          return (
            a.isConstructorDeclaredProperty === void 0 &&
              ((a.isConstructorDeclaredProperty = !1),
              (a.isConstructorDeclaredProperty =
                !!br(n) &&
                Vn(
                  n.declarations,
                  (c) =>
                    Nr(c) &&
                    t$(c) &&
                    (c.left.kind !== 213 || uf(c.left.argumentExpression)) &&
                    !Or(void 0, c, n, c),
                ))),
            a.isConstructorDeclaredProperty
          );
        }
        return !1;
      }
      function Y_(n) {
        const a = n.valueDeclaration;
        return a && Po(a) && !xc(a) && !a.initializer && (ve || Ir(a));
      }
      function br(n) {
        if (n.declarations)
          for (const a of n.declarations) {
            const c = vu(a, !1, !1);
            if (c && (c.kind === 177 || E_(c))) return c;
          }
      }
      function T(n) {
        const a = Wn(n.declarations[0]),
          c = Gi(n.escapedName),
          p = n.declarations.every((v) => Ir(v) && Ks(v) && gg(v.expression)),
          m = p
            ? L.createPropertyAccessExpression(
                L.createPropertyAccessExpression(
                  L.createIdentifier("module"),
                  L.createIdentifier("exports"),
                ),
                c,
              )
            : L.createPropertyAccessExpression(
                L.createIdentifier("exports"),
                c,
              );
        return (
          p && ps(m.expression.expression, m.expression),
          ps(m.expression, m),
          ps(m, a),
          (m.flowNode = a.endFlowNode),
          Vy(m, Rt, he)
        );
      }
      function M(n, a) {
        const c = po(n.escapedName, "__#")
          ? L.createPrivateIdentifier(n.escapedName.split("@")[1])
          : Gi(n.escapedName);
        for (const p of a) {
          const m = L.createPropertyAccessExpression(L.createThis(), c);
          (ps(m.expression, m), ps(m, p), (m.flowNode = p.returnFlowNode));
          const v = ue(m, n);
          if (
            (ve &&
              (v === Rt || v === ld) &&
              Qe(
                n.valueDeclaration,
                f.Member_0_implicitly_has_an_1_type,
                uo(n),
                ar(v),
              ),
            !Ep(v, P5))
          )
            return _8(v);
        }
      }
      function V(n, a) {
        const c = po(n.escapedName, "__#")
            ? L.createPrivateIdentifier(n.escapedName.split("@")[1])
            : Gi(n.escapedName),
          p = L.createPropertyAccessExpression(L.createThis(), c);
        (ps(p.expression, p), ps(p, a), (p.flowNode = a.returnFlowNode));
        const m = ue(p, n);
        return (
          ve &&
            (m === Rt || m === ld) &&
            Qe(
              n.valueDeclaration,
              f.Member_0_implicitly_has_an_1_type,
              uo(n),
              ar(m),
            ),
          Ep(m, P5) ? void 0 : _8(m)
        );
      }
      function ue(n, a) {
        const c =
          (a?.valueDeclaration &&
            (!Y_(a) || Gd(a.valueDeclaration) & 128) &&
            NY(a)) ||
          he;
        return Vy(n, Rt, c);
      }
      function tt(n, a) {
        const c = _I(n.valueDeclaration);
        if (c) {
          const w = Ir(c) ? LT(c) : void 0;
          return w && w.typeExpression
            ? Ji(w.typeExpression)
            : (n.valueDeclaration && rn(n.valueDeclaration, n, c)) || Z0(Vl(c));
        }
        let p,
          m = !1,
          v = !1;
        if ((zg(n) && (p = V(n, br(n))), !p)) {
          let w;
          if (n.declarations) {
            let U;
            for (const H of n.declarations) {
              const Q =
                Nr(H) || Zo(H)
                  ? H
                  : Ks(H)
                    ? Nr(H.parent)
                      ? H.parent
                      : H
                    : void 0;
              if (!Q) continue;
              const Ie = Ks(Q) ? yk(Q) : oc(Q);
              ((Ie === 4 || (Nr(Q) && t$(Q, Ie))) &&
                (of(Q) ? (m = !0) : (v = !0)),
                Zo(Q) || (U = Or(U, Q, n, H)),
                U ||
                  (w || (w = [])).push(Nr(Q) || Zo(Q) ? ko(n, a, Q, Ie) : yn));
            }
            p = U;
          }
          if (!p) {
            if (!et(w)) return nt;
            let U = m && n.declarations ? lT(w, n.declarations) : void 0;
            if (v) {
              const Q = NY(n);
              Q && ((U || (U = [])).push(Q), (m = !0));
            }
            const H = yt(U, (Q) => !!(Q.flags & -98305)) ? U : w;
            p = pi(H);
          }
        }
        const I = $p(pu(p, !1, v && !m));
        return n.valueDeclaration &&
          Ir(n.valueDeclaration) &&
          Ec(I, (w) => !!(w.flags & -98305)) === yn
          ? (eS(n.valueDeclaration, Ue), Ue)
          : I;
      }
      function rn(n, a, c) {
        var p, m;
        if (!Ir(n) || !c || !Wa(c) || c.properties.length) return;
        const v = da();
        for (; Nr(n) || qr(n); ) {
          const U = If(n);
          ((p = U?.exports) != null && p.size && m_(v, U.exports),
            (n = Nr(n) ? n.parent : n.parent.parent));
        }
        const I = If(n);
        (m = I?.exports) != null && m.size && m_(v, I.exports);
        const w = bl(a, v, ae, ae, ae);
        return ((w.objectFlags |= 4096), w);
      }
      function Or(n, a, c, p) {
        var m;
        const v = xc(a.parent);
        if (v) {
          const I = $p(Ji(v));
          if (n) !pr(n) && !pr(I) && !Hg(n, I) && h3e(void 0, n, p, I);
          else return I;
        }
        if ((m = c.parent) != null && m.valueDeclaration) {
          const I = z0(c.parent);
          if (I.valueDeclaration) {
            const w = xc(I.valueDeclaration);
            if (w) {
              const U = Ea(Ji(w), c.escapedName);
              if (U) return xh(U);
            }
          }
        }
        return n;
      }
      function ko(n, a, c, p) {
        if (Zo(c)) {
          if (a) return _r(a);
          const I = Vl(c.arguments[2]),
            w = _n(I, "value");
          if (w) return w;
          const U = _n(I, "get");
          if (U) {
            const Q = FA(U);
            if (Q) return fs(Q);
          }
          const H = _n(I, "set");
          if (H) {
            const Q = FA(H);
            if (Q) return Hge(Q);
          }
          return Ue;
        }
        if (nl(c.left, c.right)) return Ue;
        const m =
            p === 1 &&
            (qr(c.left) || Ws(c.left)) &&
            (gg(c.left.expression) ||
              (He(c.left.expression) && i1(c.left.expression))),
          v = a ? _r(a) : m ? Cu(Vl(c.right)) : Z0(Vl(c.right));
        if (v.flags & 524288 && p === 2 && n.escapedName === "export=") {
          const I = Dh(v),
            w = da();
          NF(I.members, w);
          const U = w.size;
          (a && !a.exports && (a.exports = da()),
            (a || n).exports.forEach((Q, Ie) => {
              var Te;
              const Ze = w.get(Ie);
              if (Ze && Ze !== Q && !(Q.flags & 2097152))
                if (Q.flags & 111551 && Ze.flags & 111551) {
                  if (
                    Q.valueDeclaration &&
                    Ze.valueDeclaration &&
                    Wn(Q.valueDeclaration) !== Wn(Ze.valueDeclaration)
                  ) {
                    const Dt = Gi(Q.escapedName),
                      $t =
                        ((Te = ni(Ze.valueDeclaration, nd)) == null
                          ? void 0
                          : Te.name) || Ze.valueDeclaration;
                    (pa(
                      Qe(Q.valueDeclaration, f.Duplicate_identifier_0, Dt),
                      Ar($t, f._0_was_also_declared_here, Dt),
                    ),
                      pa(
                        Qe($t, f.Duplicate_identifier_0, Dt),
                        Ar(Q.valueDeclaration, f._0_was_also_declared_here, Dt),
                      ));
                  }
                  const Tt = ja(Q.flags | Ze.flags, Ie);
                  ((Tt.links.type = pi([_r(Q), _r(Ze)])),
                    (Tt.valueDeclaration = Ze.valueDeclaration),
                    (Tt.declarations = so(Ze.declarations, Q.declarations)),
                    w.set(Ie, Tt));
                } else w.set(Ie, $f(Q, Ze));
              else w.set(Ie, Q);
            }));
          const H = bl(
            U !== w.size ? void 0 : I.symbol,
            w,
            I.callSignatures,
            I.constructSignatures,
            I.indexInfos,
          );
          if (
            U === w.size &&
            (v.aliasSymbol &&
              ((H.aliasSymbol = v.aliasSymbol),
              (H.aliasTypeArguments = v.aliasTypeArguments)),
            Hr(v) & 4)
          ) {
            H.aliasSymbol = v.symbol;
            const Q = rl(v);
            H.aliasTypeArguments = et(Q) ? Q : void 0;
          }
          return (
            (H.objectFlags |= Xz([v]) | (Hr(v) & 20608)),
            H.symbol &&
              H.symbol.flags & 32 &&
              v === tm(H.symbol) &&
              (H.objectFlags |= 16777216),
            H
          );
        }
        return PY(v) ? (eS(c, bd), bd) : v;
      }
      function nl(n, a) {
        return qr(n) && n.expression.kind === 110 && ex(a, (c) => Ad(n, c));
      }
      function of(n) {
        const a = vu(n, !1, !1);
        return (
          a.kind === 177 || a.kind === 263 || (a.kind === 219 && !vk(a.parent))
        );
      }
      function lT(n, a) {
        return (
          C.assert(n.length === a.length),
          n.filter((c, p) => {
            const m = a[p],
              v = Nr(m) ? m : Nr(m.parent) ? m.parent : void 0;
            return v && of(v);
          })
        );
      }
      function Ih(n, a, c) {
        if (n.initializer) {
          const p = Qo(n.name) ? fL(n.name, !0, !1) : Nt;
          return pu(G4e(n, wL(n, 0, p)));
        }
        return Qo(n.name)
          ? fL(n.name, a, c)
          : (c && !qX(n) && eS(n, Ue), a ? Tr : Ue);
      }
      function $x(n, a, c) {
        const p = da();
        let m,
          v = 131200;
        Ye(n.elements, (w) => {
          const U = w.propertyName || w.name;
          if (w.dotDotDotToken) {
            m = jg(gt, Ue, !1);
            return;
          }
          const H = ky(U);
          if (!jf(H)) {
            v |= 512;
            return;
          }
          const Q = Uf(H),
            Ie = 4 | (w.initializer ? 16777216 : 0),
            Te = ja(Ie, Q);
          ((Te.links.type = Ih(w, a, c)), p.set(Te.escapedName, Te));
        });
        const I = bl(void 0, p, ae, ae, m ? [m] : ae);
        return (
          (I.objectFlags |= v),
          a && ((I.pattern = n), (I.objectFlags |= 131072)),
          I
        );
      }
      function rhe(n, a, c) {
        const p = n.elements,
          m = Zs(p),
          v = m && m.kind === 209 && m.dotDotDotToken ? m : void 0;
        if (p.length === 0 || (p.length === 1 && v))
          return G >= 2 ? KWe(Ue) : bd;
        const I = Vt(p, (Q) => (Jc(Q) ? Ue : Ih(Q, a, c))),
          w = gl(p, (Q) => !(Q === v || Jc(Q) || dR(Q)), p.length - 1) + 1,
          U = Vt(p, (Q, Ie) => (Q === v ? 4 : Ie >= w ? 2 : 1));
        let H = eg(I, U);
        return (
          a && ((H = xWe(H)), (H.pattern = n), (H.objectFlags |= 131072)),
          H
        );
      }
      function fL(n, a = !1, c = !1) {
        a && Rm.push(n);
        const p = n.kind === 207 ? $x(n, a, c) : rhe(n, a, c);
        return (a && Rm.pop(), p);
      }
      function Qx(n, a) {
        return AW(Yx(n, !0, 0), n, a);
      }
      function ihe(n) {
        const a = Vr(n);
        if (!a.resolvedType) {
          const c = ja(4096, "__importAttributes"),
            p = da();
          Ye(n.elements, (v) => {
            const I = ja(4, n4(v));
            ((I.parent = c),
              (I.links.type = kyt(v)),
              (I.links.target = I),
              p.set(I.escapedName, I));
          });
          const m = bl(c, p, ae, ae, ae);
          ((m.objectFlags |= 262272), (a.resolvedType = m));
        }
        return a.resolvedType;
      }
      function ohe(n) {
        const a = If(n),
          c = sct(!1);
        return c && a && a === c;
      }
      function AW(n, a, c) {
        return n
          ? (n.flags & 4096 && ohe(a.parent) && (n = s_e(a)),
            c && BY(a, n),
            n.flags & 8192 &&
              (Ha(a) || !cT(a)) &&
              n.symbol !== Wr(a) &&
              (n = Qt),
            $p(n))
          : ((n = to(a) && a.dotDotDotToken ? bd : Ue),
            c && (qX(a) || eS(a, n)),
            n);
      }
      function qX(n) {
        const a = Jh(n),
          c = a.kind === 170 ? a.parent : a;
        return K5(c);
      }
      function cT(n) {
        const a = xc(n);
        if (a) return Ji(a);
      }
      function ahe(n) {
        let a = n.valueDeclaration;
        return a ? (Ha(a) && (a = qE(a)), to(a) ? EY(a.parent) : !1) : !1;
      }
      function she(n) {
        const a = Jr(n);
        if (!a.type) {
          const c = lhe(n);
          return (!a.type && !ahe(n) && (a.type = c), c);
        }
        return a.type;
      }
      function lhe(n) {
        if (n.flags & 4194304) return nn(n);
        if (n === je) return Ue;
        if (n.flags & 134217728 && n.valueDeclaration) {
          const p = Wr(Wn(n.valueDeclaration)),
            m = ja(p.flags, "exports");
          ((m.declarations = p.declarations ? p.declarations.slice() : []),
            (m.parent = n),
            (m.links.target = p),
            p.valueDeclaration && (m.valueDeclaration = p.valueDeclaration),
            p.members && (m.members = new Map(p.members)),
            p.exports && (m.exports = new Map(p.exports)));
          const v = da();
          return (v.set("exports", m), bl(n, v, ae, ae, ae));
        }
        C.assertIsDefined(n.valueDeclaration);
        const a = n.valueDeclaration;
        if (Yi(a) && Ff(a))
          return a.statements.length
            ? $p(Z0(_o(a.statements[0].expression)))
            : Ra;
        if (fb(a)) return hL(n);
        if (!g_(n, 0))
          return n.flags & 512 && !(n.flags & 67108864) ? _L(n) : yA(n);
        let c;
        if (a.kind === 278) c = AW(cT(a) || Vl(a.expression), a);
        else if (
          Nr(a) ||
          (Ir(a) && (Zo(a) || ((qr(a) || i6(a)) && Nr(a.parent))))
        )
          c = tt(n);
        else if (
          qr(a) ||
          Ws(a) ||
          He(a) ||
          ds(a) ||
          np(a) ||
          Dc(a) ||
          Zl(a) ||
          (Nl(a) && !mm(a)) ||
          Gm(a) ||
          Yi(a)
        ) {
          if (n.flags & 9136) return _L(n);
          c = Nr(a.parent) ? tt(n) : cT(a) || Ue;
        } else if (Cc(a)) c = cT(a) || V4e(a);
        else if (i_(a)) c = cT(a) || S6e(a);
        else if (Ud(a)) c = cT(a) || WL(a.name, 0);
        else if (mm(a)) c = cT(a) || j4e(a, 0);
        else if (to(a) || Po(a) || Su(a) || yi(a) || Ha(a) || wN(a))
          c = Qx(a, !0);
        else if (ZT(a)) c = _L(n);
        else if (py(a)) c = YX(n);
        else
          return C.fail(
            "Unhandled declaration kind! " +
              C.formatSyntaxKind(a.kind) +
              " for " +
              C.formatSymbol(n),
          );
        return rt()
          ? c
          : n.flags & 512 && !(n.flags & 67108864)
            ? _L(n)
            : yA(n);
      }
      function TE(n) {
        if (n)
          switch (n.kind) {
            case 178:
              return kp(n);
            case 179:
              return lV(n);
            case 173:
              return (C.assert(Kh(n)), xc(n));
          }
      }
      function mL(n) {
        const a = TE(n);
        return a && Ji(a);
      }
      function Zx(n) {
        const a = Oye(n);
        return a && a.symbol;
      }
      function JX(n) {
        return J0(Df(n));
      }
      function hL(n) {
        const a = Jr(n);
        if (!a.type) {
          if (!g_(n, 0)) return nt;
          const c = al(n, 178),
            p = al(n, 179),
            m = ni(al(n, 173), Yu);
          let v =
            (c && Ir(c) && cs(c)) ||
            mL(c) ||
            mL(p) ||
            mL(m) ||
            (c && c.body && T$(c)) ||
            (m && Qx(m, !0));
          (v ||
            (p && !K5(p)
              ? Jm(
                  ve,
                  p,
                  f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,
                  uo(n),
                )
              : c && !K5(c)
                ? Jm(
                    ve,
                    c,
                    f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,
                    uo(n),
                  )
                : m &&
                  !K5(m) &&
                  Jm(ve, m, f.Member_0_implicitly_has_an_1_type, uo(n), "any"),
            (v = Ue)),
            rt() ||
              (TE(c)
                ? Qe(
                    c,
                    f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
                    uo(n),
                  )
                : TE(p) || TE(m)
                  ? Qe(
                      p,
                      f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
                      uo(n),
                    )
                  : c &&
                    ve &&
                    Qe(
                      c,
                      f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,
                      uo(n),
                    ),
              (v = Ue)),
            a.type ?? (a.type = v));
        }
        return a.type;
      }
      function KX(n) {
        const a = Jr(n);
        if (!a.writeType) {
          if (!g_(n, 7)) return nt;
          const c = al(n, 179) ?? ni(al(n, 173), Yu);
          let p = mL(c);
          (rt() ||
            (TE(c) &&
              Qe(
                c,
                f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
                uo(n),
              ),
            (p = Ue)),
            a.writeType ?? (a.writeType = p || hL(n)));
        }
        return a.writeType;
      }
      function IW(n) {
        const a = Py(tm(n));
        return a.flags & 8650752
          ? a
          : a.flags & 2097152
            ? hn(a.types, (c) => !!(c.flags & 8650752))
            : void 0;
      }
      function _L(n) {
        let a = Jr(n);
        const c = a;
        if (!a.type) {
          const p = n.valueDeclaration && v$(n.valueDeclaration, !1);
          if (p) {
            const m = Fge(n, p);
            m && ((n = m), (a = m.links));
          }
          c.type = a.type = XX(n);
        }
        return a.type;
      }
      function XX(n) {
        const a = n.valueDeclaration;
        if (n.flags & 1536 && Q2(n)) return Ue;
        if (a && (a.kind === 227 || (Ks(a) && a.parent.kind === 227)))
          return tt(n);
        if (n.flags & 512 && a && Yi(a) && a.commonJsModuleIndicator) {
          const p = Tp(n);
          if (p !== n) {
            if (!g_(n, 0)) return nt;
            const m = os(n.exports.get("export=")),
              v = tt(m, m === p ? void 0 : p);
            return rt() ? v : yA(n);
          }
        }
        const c = hc(16, n);
        if (n.flags & 32) {
          const p = IW(n);
          return p ? Ma([c, p]) : c;
        } else return ie && n.flags & 16777216 ? hT(c, !0) : c;
      }
      function YX(n) {
        const a = Jr(n);
        return a.type || (a.type = zOe(n));
      }
      function che(n) {
        const a = Jr(n);
        if (!a.type) {
          if (!g_(n, 0)) return nt;
          const c = ud(n),
            p = n.declarations && W0(cp(n), !0),
            m = Hn(p?.declarations, (v) => (ll(v) ? cT(v) : void 0));
          if (
            (a.type ??
              (a.type =
                p?.declarations && G$(p.declarations) && n.declarations.length
                  ? T(p)
                  : G$(n.declarations)
                    ? Rt
                    : m || (dp(c) & 111551 ? _r(c) : nt)),
            !rt())
          )
            return (yA(p ?? n), a.type ?? (a.type = nt));
        }
        return a.type;
      }
      function dhe(n) {
        const a = Jr(n);
        return a.type || (a.type = io(_r(a.target), a.mapper));
      }
      function uhe(n) {
        const a = Jr(n);
        return a.writeType || (a.writeType = io(Wv(a.target), a.mapper));
      }
      function yA(n) {
        const a = n.valueDeclaration;
        if (a) {
          if (xc(a))
            return (
              Qe(
                n.valueDeclaration,
                f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,
                uo(n),
              ),
              nt
            );
          ve &&
            (a.kind !== 170 || a.initializer) &&
            Qe(
              n.valueDeclaration,
              f._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,
              uo(n),
            );
        } else if (n.flags & 2097152) {
          const c = cp(n);
          c && Qe(c, f.Circular_definition_of_import_alias_0, uo(n));
        }
        return Ue;
      }
      function $X(n) {
        const a = Jr(n);
        return (
          a.type ||
            (C.assertIsDefined(a.deferralParent),
            C.assertIsDefined(a.deferralConstituents),
            (a.type =
              a.deferralParent.flags & 1048576
                ? pi(a.deferralConstituents)
                : Ma(a.deferralConstituents))),
          a.type
        );
      }
      function phe(n) {
        const a = Jr(n);
        return (
          !a.writeType &&
            a.deferralWriteConstituents &&
            (C.assertIsDefined(a.deferralParent),
            C.assertIsDefined(a.deferralConstituents),
            (a.writeType =
              a.deferralParent.flags & 1048576
                ? pi(a.deferralWriteConstituents)
                : Ma(a.deferralWriteConstituents))),
          a.writeType
        );
      }
      function Wv(n) {
        const a = Wl(n);
        return a & 2
          ? a & 65536
            ? phe(n) || $X(n)
            : n.links.writeType || n.links.type
          : n.flags & 4
            ? Gy(_r(n), !!(n.flags & 16777216))
            : n.flags & 98304
              ? a & 1
                ? uhe(n)
                : KX(n)
              : _r(n);
      }
      function _r(n) {
        const a = Wl(n);
        return a & 65536
          ? $X(n)
          : a & 1
            ? dhe(n)
            : a & 262144
              ? xlt(n)
              : a & 8192
                ? jut(n)
                : n.flags & 7
                  ? she(n)
                  : n.flags & 9136
                    ? _L(n)
                    : n.flags & 8
                      ? YX(n)
                      : n.flags & 98304
                        ? hL(n)
                        : n.flags & 2097152
                          ? che(n)
                          : nt;
      }
      function xh(n) {
        return Gy(_r(n), !!(n.flags & 16777216));
      }
      function QX(n, a) {
        if (n === void 0 || (Hr(n) & 4) === 0) return !1;
        for (const c of a) if (n.target === c) return !0;
        return !1;
      }
      function Jp(n, a) {
        return (
          n !== void 0 && a !== void 0 && (Hr(n) & 4) !== 0 && n.target === a
        );
      }
      function zn(n) {
        return Hr(n) & 4 ? n.target : n;
      }
      function Ur(n, a) {
        return c(n);
        function c(p) {
          if (Hr(p) & 7) {
            const m = zn(p);
            return m === a || yt(Zm(m), c);
          } else if (p.flags & 2097152) return yt(p.types, c);
          return !1;
        }
      }
      function $r(n, a) {
        for (const c of a) n = $g(n, U0(Wr(c)));
        return n;
      }
      function Mi(n, a) {
        for (;;) {
          if (((n = n.parent), n && Nr(n))) {
            const p = oc(n);
            if (p === 6 || p === 3) {
              const m = Wr(n.left);
              m &&
                m.parent &&
                !Dn(m.parent.valueDeclaration, (v) => n === v) &&
                (n = m.parent.valueDeclaration);
            }
          }
          if (!n) return;
          const c = n.kind;
          switch (c) {
            case 264:
            case 232:
            case 265:
            case 180:
            case 181:
            case 174:
            case 185:
            case 186:
            case 318:
            case 263:
            case 175:
            case 219:
            case 220:
            case 266:
            case 346:
            case 347:
            case 341:
            case 339:
            case 201:
            case 195: {
              const m = Mi(n, a);
              if ((c === 219 || c === 220 || mm(n)) && Cf(n)) {
                const w = Ac(na(_r(Wr(n)), 0));
                if (w && w.typeParameters)
                  return [...(m || ae), ...w.typeParameters];
              }
              if (c === 201) return Bn(m, U0(Wr(n.typeParameter)));
              if (c === 195) return so(m, r_e(n));
              const v = $r(m, cb(n)),
                I =
                  a &&
                  (c === 264 || c === 232 || c === 265 || E_(n)) &&
                  tm(Wr(n)).thisType;
              return I ? Bn(v, I) : v;
            }
            case 342:
              const p = Ak(n);
              p && (n = p.valueDeclaration);
              break;
            case 321: {
              const m = Mi(n, a);
              return n.tags
                ? $r(
                    m,
                    Ki(n.tags, (v) => (bm(v) ? v.typeParameters : void 0)),
                  )
                : m;
            }
          }
        }
      }
      function Wi(n) {
        var a;
        const c =
          n.flags & 32 || n.flags & 16
            ? n.valueDeclaration
            : (a = n.declarations) == null
              ? void 0
              : a.find((p) => {
                  if (p.kind === 265) return !0;
                  if (p.kind !== 261) return !1;
                  const m = p.initializer;
                  return !!m && (m.kind === 219 || m.kind === 220);
                });
        return (
          C.assert(
            !!c,
            "Class was missing valueDeclaration -OR- non-class had no interface declarations",
          ),
          Mi(c)
        );
      }
      function Na(n) {
        if (!n.declarations) return;
        let a;
        for (const c of n.declarations)
          (c.kind === 265 ||
            c.kind === 264 ||
            c.kind === 232 ||
            E_(c) ||
            Sk(c)) &&
            (a = $r(a, cb(c)));
        return a;
      }
      function Bs(n) {
        return so(Wi(n), Na(n));
      }
      function Ed(n) {
        const a = na(n, 1);
        if (a.length === 1) {
          const c = a[0];
          if (!c.typeParameters && c.parameters.length === 1 && su(c)) {
            const p = z5(c.parameters[0]);
            return wr(p) || m5(p) === Ue;
          }
        }
        return !1;
      }
      function Rh(n) {
        if (na(n, 1).length > 0) return !0;
        if (n.flags & 8650752) {
          const a = Ld(n);
          return !!a && Ed(a);
        }
        return !1;
      }
      function Mm(n) {
        const a = cy(n.symbol);
        return a && lh(a);
      }
      function Qm(n, a, c) {
        const p = et(a),
          m = Ir(c);
        return Un(
          na(n, 1),
          (v) => (m || p >= Z_(v.typeParameters)) && p <= et(v.typeParameters),
        );
      }
      function Bg(n, a, c) {
        const p = Qm(n, a, c),
          m = Vt(a, Ji);
        return Zi(p, (v) => (yt(v.typeParameters) ? PW(v, m, Ir(c)) : v));
      }
      function Py(n) {
        if (!n.resolvedBaseConstructorType) {
          const a = cy(n.symbol),
            c = a && lh(a),
            p = Mm(n);
          if (!p) return (n.resolvedBaseConstructorType = he);
          if (!g_(n, 1)) return nt;
          const m = _o(p.expression);
          if (
            (c && p !== c && (C.assert(!c.typeArguments), _o(c.expression)),
            m.flags & 2621440 && Dh(m),
            !rt())
          )
            return (
              Qe(
                n.symbol.valueDeclaration,
                f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,
                uo(n.symbol),
              ),
              n.resolvedBaseConstructorType ??
                (n.resolvedBaseConstructorType = nt)
            );
          if (!(m.flags & 1) && m !== Pe && !Rh(m)) {
            const v = Qe(
              p.expression,
              f.Type_0_is_not_a_constructor_function_type,
              ar(m),
            );
            if (m.flags & 262144) {
              const I = SL(m);
              let w = Nt;
              if (I) {
                const U = na(I, 1);
                U[0] && (w = fs(U[0]));
              }
              m.symbol.declarations &&
                pa(
                  v,
                  Ar(
                    m.symbol.declarations[0],
                    f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,
                    uo(m.symbol),
                    ar(w),
                  ),
                );
            }
            return (
              n.resolvedBaseConstructorType ??
              (n.resolvedBaseConstructorType = nt)
            );
          }
          n.resolvedBaseConstructorType ?? (n.resolvedBaseConstructorType = m);
        }
        return n.resolvedBaseConstructorType;
      }
      function OC(n) {
        let a = ae;
        if (n.symbol.declarations)
          for (const c of n.symbol.declarations) {
            const p = nD(c);
            if (p)
              for (const m of p) {
                const v = Ji(m);
                pr(v) || (a === ae ? (a = [v]) : a.push(v));
              }
          }
        return a;
      }
      function gL(n, a) {
        Qe(
          n,
          f.Type_0_recursively_references_itself_as_a_base_type,
          ar(a, void 0, 2),
        );
      }
      function Zm(n) {
        if (!n.baseTypesResolved) {
          if (
            g_(n, 6) &&
            (n.objectFlags & 8
              ? (n.resolvedBaseTypes = [$st(n)])
              : n.symbol.flags & 96
                ? (n.symbol.flags & 32 && Qst(n), n.symbol.flags & 64 && elt(n))
                : C.fail("type must be class or interface"),
            !rt() && n.symbol.declarations)
          )
            for (const a of n.symbol.declarations)
              (a.kind === 264 || a.kind === 265) && gL(a, n);
          n.baseTypesResolved = !0;
        }
        return n.resolvedBaseTypes;
      }
      function $st(n) {
        const a = Zi(n.typeParameters, (c, p) =>
          n.elementFlags[p] & 8 ? Xp(c, Bt) : c,
        );
        return Yd(pi(a || ae), n.readonly);
      }
      function Qst(n) {
        n.resolvedBaseTypes = aG;
        const a = Du(Py(n));
        if (!(a.flags & 2621441)) return (n.resolvedBaseTypes = ae);
        const c = Mm(n);
        let p;
        const m = a.symbol ? qs(a.symbol) : void 0;
        if (a.symbol && a.symbol.flags & 32 && Zst(m)) p = RWe(c, a.symbol);
        else if (a.flags & 1) p = a;
        else {
          const I = Bg(a, c.typeArguments, c);
          if (!I.length)
            return (
              Qe(
                c.expression,
                f.No_base_constructor_has_the_specified_number_of_type_arguments,
              ),
              (n.resolvedBaseTypes = ae)
            );
          p = fs(I[0]);
        }
        if (pr(p)) return (n.resolvedBaseTypes = ae);
        const v = Pm(p);
        if (!Gz(v)) {
          const I = Ihe(void 0, p),
            w = qo(
              I,
              f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,
              ar(v),
            );
          return (
            ns.add(hg(Wn(c.expression), c.expression, w)),
            (n.resolvedBaseTypes = ae)
          );
        }
        return n === v || Ur(v, n)
          ? (Qe(
              n.symbol.valueDeclaration,
              f.Type_0_recursively_references_itself_as_a_base_type,
              ar(n, void 0, 2),
            ),
            (n.resolvedBaseTypes = ae))
          : (n.resolvedBaseTypes === aG && (n.members = void 0),
            (n.resolvedBaseTypes = [v]));
      }
      function Zst(n) {
        const a = n.outerTypeParameters;
        if (a) {
          const c = a.length - 1,
            p = rl(n);
          return a[c].symbol !== p[c].symbol;
        }
        return !0;
      }
      function Gz(n) {
        if (n.flags & 262144) {
          const a = Ld(n);
          if (a) return Gz(a);
        }
        return !!(
          (n.flags & 67633153 && !up(n)) ||
          (n.flags & 2097152 && Vn(n.types, Gz))
        );
      }
      function elt(n) {
        if (
          ((n.resolvedBaseTypes = n.resolvedBaseTypes || ae),
          n.symbol.declarations)
        ) {
          for (const a of n.symbol.declarations)
            if (a.kind === 265 && iM(a))
              for (const c of iM(a)) {
                const p = Pm(Ji(c));
                pr(p) ||
                  (Gz(p)
                    ? n !== p && !Ur(p, n)
                      ? n.resolvedBaseTypes === ae
                        ? (n.resolvedBaseTypes = [p])
                        : n.resolvedBaseTypes.push(p)
                      : gL(a, n)
                    : Qe(
                        c,
                        f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members,
                      ));
              }
        }
      }
      function tlt(n) {
        if (!n.declarations) return !0;
        for (const a of n.declarations)
          if (a.kind === 265) {
            if (a.flags & 256) return !1;
            const c = iM(a);
            if (c) {
              for (const p of c)
                if (Ds(p.expression)) {
                  const m = Gl(p.expression, 788968, !0);
                  if (!m || !(m.flags & 64) || tm(m).thisType) return !1;
                }
            }
          }
        return !0;
      }
      function tm(n) {
        let a = Jr(n);
        const c = a;
        if (!a.declaredType) {
          const p = n.flags & 32 ? 1 : 2,
            m = Fge(n, n.valueDeclaration && tht(n.valueDeclaration));
          m && ((n = m), (a = m.links));
          const v = (c.declaredType = a.declaredType = hc(p, n)),
            I = Wi(n),
            w = Na(n);
          (I || w || p === 1 || !tlt(n)) &&
            ((v.objectFlags |= 4),
            (v.typeParameters = so(I, w)),
            (v.outerTypeParameters = I),
            (v.localTypeParameters = w),
            (v.instantiations = new Map()),
            v.instantiations.set(Lm(v.typeParameters), v),
            (v.target = v),
            (v.resolvedTypeArguments = v.typeParameters),
            (v.thisType = Vu(n)),
            (v.thisType.isThisType = !0),
            (v.thisType.constraint = v));
        }
        return a.declaredType;
      }
      function OOe(n) {
        var a;
        const c = Jr(n);
        if (!c.declaredType) {
          if (!g_(n, 2)) return nt;
          const p = C.checkDefined(
              (a = n.declarations) == null ? void 0 : a.find(Sk),
              "Type alias symbol with no valid declaration found",
            ),
            m = hm(p) ? p.typeExpression : p.type;
          let v = m ? Ji(m) : nt;
          if (rt()) {
            const I = Na(n);
            (I &&
              ((c.typeParameters = I),
              (c.instantiations = new Map()),
              c.instantiations.set(Lm(I), v)),
              v === Oe &&
                n.escapedName === "BuiltinIteratorReturn" &&
                (v = Ghe()));
          } else
            ((v = nt),
              p.kind === 341
                ? Qe(
                    p.typeExpression.type,
                    f.Type_alias_0_circularly_references_itself,
                    uo(n),
                  )
                : Qe(
                    (nd(p) && p.name) || p,
                    f.Type_alias_0_circularly_references_itself,
                    uo(n),
                  ));
          c.declaredType ?? (c.declaredType = v);
        }
        return c.declaredType;
      }
      function ZX(n) {
        return n.flags & 1056 && n.symbol.flags & 8 ? qs(Yc(n.symbol)) : n;
      }
      function WOe(n) {
        const a = Jr(n);
        if (!a.declaredType) {
          const c = [];
          if (n.declarations) {
            for (const m of n.declarations)
              if (m.kind === 267) {
                for (const v of m.members)
                  if (FC(v)) {
                    const I = Wr(v),
                      w = BA(v).value,
                      U = oR(w !== void 0 ? Edt(w, Ta(n), I) : FOe(I));
                    ((Jr(I).declaredType = U), c.push(Cu(U)));
                  }
              }
          }
          const p = c.length ? pi(c, 1, n, void 0) : FOe(n);
          (p.flags & 1048576 && ((p.flags |= 1024), (p.symbol = n)),
            (a.declaredType = p));
        }
        return a.declaredType;
      }
      function FOe(n) {
        const a = wi(32, n),
          c = wi(32, n);
        return (
          (a.regularType = a),
          (a.freshType = c),
          (c.regularType = a),
          (c.freshType = c),
          a
        );
      }
      function zOe(n) {
        const a = Jr(n);
        if (!a.declaredType) {
          const c = WOe(Yc(n));
          a.declaredType || (a.declaredType = c);
        }
        return a.declaredType;
      }
      function U0(n) {
        const a = Jr(n);
        return a.declaredType || (a.declaredType = Vu(n));
      }
      function nlt(n) {
        const a = Jr(n);
        return a.declaredType || (a.declaredType = qs(ud(n)));
      }
      function qs(n) {
        return BOe(n) || nt;
      }
      function BOe(n) {
        if (n.flags & 96) return tm(n);
        if (n.flags & 524288) return OOe(n);
        if (n.flags & 262144) return U0(n);
        if (n.flags & 384) return WOe(n);
        if (n.flags & 8) return zOe(n);
        if (n.flags & 2097152) return nlt(n);
      }
      function Vz(n) {
        switch (n.kind) {
          case 133:
          case 159:
          case 154:
          case 150:
          case 163:
          case 136:
          case 155:
          case 151:
          case 116:
          case 157:
          case 146:
          case 202:
            return !0;
          case 189:
            return Vz(n.elementType);
          case 184:
            return !n.typeArguments || n.typeArguments.every(Vz);
        }
        return !1;
      }
      function rlt(n) {
        const a = WR(n);
        return !a || Vz(a);
      }
      function GOe(n) {
        const a = xc(n);
        return a ? Vz(a) : !Zy(n);
      }
      function ilt(n) {
        const a = kp(n),
          c = cb(n);
        return (
          (n.kind === 177 || (!!a && Vz(a))) &&
          n.parameters.every(GOe) &&
          c.every(rlt)
        );
      }
      function olt(n) {
        if (n.declarations && n.declarations.length === 1) {
          const a = n.declarations[0];
          if (a)
            switch (a.kind) {
              case 173:
              case 172:
                return GOe(a);
              case 175:
              case 174:
              case 177:
              case 178:
              case 179:
                return ilt(a);
            }
        }
        return !1;
      }
      function VOe(n, a, c) {
        const p = da();
        for (const m of n) p.set(m.escapedName, c && olt(m) ? m : u_e(m, a));
        return p;
      }
      function jOe(n, a) {
        for (const c of a) {
          if (UOe(c)) continue;
          const p = n.get(c.escapedName);
          (!p ||
            (p.valueDeclaration &&
              Nr(p.valueDeclaration) &&
              !zg(p) &&
              !ine(p.valueDeclaration))) &&
            (n.set(c.escapedName, c), n.set(c.escapedName, c));
        }
      }
      function UOe(n) {
        return (
          !!n.valueDeclaration &&
          nu(n.valueDeclaration) &&
          ua(n.valueDeclaration)
        );
      }
      function fhe(n) {
        if (!n.declaredProperties) {
          const a = n.symbol,
            c = $_(a);
          ((n.declaredProperties = ju(c)),
            (n.declaredCallSignatures = ae),
            (n.declaredConstructSignatures = ae),
            (n.declaredIndexInfos = ae),
            (n.declaredCallSignatures = AE(c.get("__call"))),
            (n.declaredConstructSignatures = AE(c.get("__new"))),
            (n.declaredIndexInfos = EWe(a)));
        }
        return n;
      }
      function mhe(n) {
        return qOe(n) && jf(va(n) ? th(n) : Vl(n.argumentExpression));
      }
      function HOe(n) {
        return qOe(n) && alt(va(n) ? th(n) : Vl(n.argumentExpression));
      }
      function qOe(n) {
        if (!va(n) && !Ws(n)) return !1;
        const a = va(n) ? n.expression : n.argumentExpression;
        return Ds(a);
      }
      function alt(n) {
        return aa(n, Ii);
      }
      function xW(n) {
        return (
          n.charCodeAt(0) === 95 &&
          n.charCodeAt(1) === 95 &&
          n.charCodeAt(2) === 64
        );
      }
      function WC(n) {
        const a = Oo(n);
        return !!a && mhe(a);
      }
      function JOe(n) {
        const a = Oo(n);
        return !!a && HOe(a);
      }
      function FC(n) {
        return !oy(n) || WC(n);
      }
      function KOe(n) {
        return u6(n) && !mhe(n);
      }
      function slt(n, a, c) {
        (C.assert(!!(Wl(n) & 4096), "Expected a late-bound symbol."),
          (n.flags |= c),
          (Jr(a.symbol).lateSymbol = n),
          n.declarations
            ? a.symbol.isReplaceableByMethod || n.declarations.push(a)
            : (n.declarations = [a]),
          c & 111551 && ZN(n, a));
      }
      function XOe(n, a, c, p) {
        C.assert(!!p.symbol, "The member is expected to have a symbol.");
        const m = Vr(p);
        if (!m.resolvedSymbol) {
          m.resolvedSymbol = p.symbol;
          const v = Nr(p) ? p.left : p.name,
            I = Ws(v) ? Vl(v.argumentExpression) : th(v);
          if (jf(I)) {
            const w = Uf(I),
              U = p.symbol.flags;
            let H = c.get(w);
            H || c.set(w, (H = ja(0, w, 4096)));
            const Q = a && a.get(w);
            if (!(n.flags & 32) && H.flags & Z1(U)) {
              const Ie = Q
                  ? so(Q.declarations, H.declarations)
                  : H.declarations,
                Te = (!(I.flags & 8192) && Gi(w)) || ws(v);
              (Ye(Ie, (Ze) =>
                Qe(Oo(Ze) || Ze, f.Property_0_was_also_declared_here, Te),
              ),
                Qe(v || p, f.Duplicate_property_0, Te),
                (H = ja(0, w, 4096)));
            }
            return (
              (H.links.nameType = I),
              slt(H, p, U),
              H.parent
                ? C.assert(
                    H.parent === n,
                    "Existing symbol parent should match new one",
                  )
                : (H.parent = n),
              (m.resolvedSymbol = H)
            );
          }
        }
        return m.resolvedSymbol;
      }
      function llt(n, a, c, p) {
        let m = c.get("__index");
        if (!m) {
          const v = a?.get("__index");
          (v
            ? ((m = uE(v)), (m.links.checkFlags |= 4096))
            : (m = ja(0, "__index", 4096)),
            c.set("__index", m));
        }
        m.declarations
          ? p.symbol.isReplaceableByMethod || m.declarations.push(p)
          : (m.declarations = [p]);
      }
      function hhe(n, a) {
        const c = Jr(n);
        if (!c[a]) {
          const p = a === "resolvedExports",
            m = p ? (n.flags & 1536 ? uA(n).exports : n.exports) : n.members;
          c[a] = m || k;
          const v = da();
          for (const U of n.declarations || ae) {
            const H = $te(U);
            if (H)
              for (const Q of H)
                p === wc(Q) &&
                  (WC(Q) ? XOe(n, m, v, Q) : JOe(Q) && llt(n, m, v, Q));
          }
          const I = z0(n).assignmentDeclarationMembers;
          if (I) {
            const U = Co(I.values());
            for (const H of U) {
              const Q = oc(H),
                Ie = Q === 3 || (Nr(H) && t$(H, Q)) || Q === 9 || Q === 6;
              p === !Ie && WC(H) && XOe(n, m, v, H);
            }
          }
          let w = Rv(m, v);
          if (n.flags & 33554432 && c.cjsExportMerged && n.declarations)
            for (const U of n.declarations) {
              const H = Jr(U.symbol)[a];
              if (!w) {
                w = H;
                continue;
              }
              H &&
                H.forEach((Q, Ie) => {
                  const Te = w.get(Ie);
                  if (!Te) w.set(Ie, Q);
                  else {
                    if (Te === Q) return;
                    w.set(Ie, $f(Te, Q));
                  }
                });
            }
          c[a] = w || k;
        }
        return c[a];
      }
      function $_(n) {
        return n.flags & 6256 ? hhe(n, "resolvedMembers") : n.members || k;
      }
      function eY(n) {
        if (n.flags & 106500 && n.escapedName === "__computed") {
          const a = Jr(n);
          if (!a.lateSymbol && yt(n.declarations, WC)) {
            const c = os(n.parent);
            yt(n.declarations, wc) ? qp(c) : $_(c);
          }
          return a.lateSymbol || (a.lateSymbol = n);
        }
        return n;
      }
      function Kp(n, a, c) {
        if (Hr(n) & 4) {
          const p = n.target,
            m = rl(n);
          return et(p.typeParameters) === et(m)
            ? Ly(p, so(m, [a || p.thisType]))
            : n;
        } else if (n.flags & 2097152) {
          const p = Zi(n.types, (m) => Kp(m, a, c));
          return p !== n.types ? Ma(p) : n;
        }
        return c ? Du(n) : n;
      }
      function YOe(n, a, c, p) {
        let m, v, I, w, U;
        FB(c, p, 0, c.length)
          ? ((v = a.symbol ? $_(a.symbol) : da(a.declaredProperties)),
            (I = a.declaredCallSignatures),
            (w = a.declaredConstructSignatures),
            (U = a.declaredIndexInfos))
          : ((m = Yp(c, p)),
            (v = VOe(a.declaredProperties, m, c.length === 1)),
            (I = TY(a.declaredCallSignatures, m)),
            (w = TY(a.declaredConstructSignatures, m)),
            (U = R8e(a.declaredIndexInfos, m)));
        const H = Zm(a);
        if (H.length) {
          if (a.symbol && v === $_(a.symbol)) {
            const Ie = da(a.declaredProperties),
              Te = oY(a.symbol);
            (Te && Ie.set("__index", Te), (v = Ie));
          }
          Nm(n, v, I, w, U);
          const Q = Zs(p);
          for (const Ie of H) {
            const Te = Q ? Kp(io(Ie, m), Q) : Ie;
            (jOe(v, bs(Te)), (I = so(I, na(Te, 0))), (w = so(w, na(Te, 1))));
            const Ze = Te !== Ue ? Xd(Te) : [So];
            U = so(
              U,
              Un(Ze, (Tt) => !bL(U, Tt.keyType)),
            );
          }
        }
        Nm(n, v, I, w, U);
      }
      function clt(n) {
        YOe(n, fhe(n), ae, ae);
      }
      function dlt(n) {
        const a = fhe(n.target),
          c = so(a.typeParameters, [a.thisType]),
          p = rl(n),
          m = p.length === c.length ? p : so(p, [n]);
        YOe(n, a, c, m);
      }
      function y_(n, a, c, p, m, v, I, w) {
        const U = new u(ir, w);
        return (
          (U.declaration = n),
          (U.typeParameters = a),
          (U.parameters = p),
          (U.thisParameter = c),
          (U.resolvedReturnType = m),
          (U.resolvedTypePredicate = v),
          (U.minArgumentCount = I),
          (U.resolvedMinArgumentCount = void 0),
          (U.target = void 0),
          (U.mapper = void 0),
          (U.compositeSignatures = void 0),
          (U.compositeKind = void 0),
          U
        );
      }
      function RW(n) {
        const a = y_(
          n.declaration,
          n.typeParameters,
          n.thisParameter,
          n.parameters,
          void 0,
          void 0,
          n.minArgumentCount,
          n.flags & 167,
        );
        return (
          (a.target = n.target),
          (a.mapper = n.mapper),
          (a.compositeSignatures = n.compositeSignatures),
          (a.compositeKind = n.compositeKind),
          a
        );
      }
      function $Oe(n, a) {
        const c = RW(n);
        return (
          (c.compositeSignatures = a),
          (c.compositeKind = 1048576),
          (c.target = void 0),
          (c.mapper = void 0),
          c
        );
      }
      function ult(n, a) {
        if ((n.flags & 24) === a) return n;
        n.optionalCallSignatureCache || (n.optionalCallSignatureCache = {});
        const c = a === 8 ? "inner" : "outer";
        return (
          n.optionalCallSignatureCache[c] ||
          (n.optionalCallSignatureCache[c] = plt(n, a))
        );
      }
      function plt(n, a) {
        C.assert(
          a === 8 || a === 16,
          "An optional call signature can either be for an inner call chain or an outer call chain, but not both.",
        );
        const c = RW(n);
        return ((c.flags |= a), c);
      }
      function QOe(n, a) {
        if (su(n)) {
          const m = n.parameters.length - 1,
            v = n.parameters[m],
            I = _r(v);
          if (Ka(I)) return [c(I, m, v)];
          if (!a && I.flags & 1048576 && Vn(I.types, Ka))
            return Vt(I.types, (w) => c(w, m, v));
        }
        return [n.parameters];
        function c(m, v, I) {
          const w = rl(m),
            U = p(m, I),
            H = Vt(w, (Q, Ie) => {
              const Te = U && U[Ie] ? U[Ie] : kL(n, v + Ie, m),
                Ze = m.target.elementFlags[Ie],
                Tt = Ze & 12 ? 32768 : Ze & 2 ? 16384 : 0,
                Dt = ja(1, Te, Tt);
              return ((Dt.links.type = Ze & 4 ? Yd(Q) : Q), Dt);
            });
          return so(n.parameters.slice(0, v), H);
        }
        function p(m, v) {
          const I = Vt(m.target.labeledElementDeclarations, (w, U) =>
            Uge(w, U, m.target.elementFlags[U], v),
          );
          if (I) {
            const w = [],
              U = new Set();
            for (let Q = 0; Q < I.length; Q++) {
              const Ie = I[Q];
              rh(U, Ie) || w.push(Q);
            }
            const H = new Map();
            for (const Q of w) {
              let Ie = H.get(I[Q]) ?? 1,
                Te;
              for (; !rh(U, (Te = `${I[Q]}_${Ie}`)); ) Ie++;
              ((I[Q] = Te), H.set(I[Q], Ie + 1));
            }
          }
          return I;
        }
      }
      function flt(n) {
        const a = Py(n),
          c = na(a, 1),
          p = cy(n.symbol),
          m = !!p && di(p, 64);
        if (c.length === 0)
          return [
            y_(
              void 0,
              n.localTypeParameters,
              void 0,
              ae,
              n,
              void 0,
              0,
              m ? 4 : 0,
            ),
          ];
        const v = Mm(n),
          I = Ir(v),
          w = Yz(v),
          U = et(w),
          H = [];
        for (const Q of c) {
          const Ie = Z_(Q.typeParameters),
            Te = et(Q.typeParameters);
          if (I || (U >= Ie && U <= Te)) {
            const Ze = Te ? iY(Q, Bv(w, Q.typeParameters, Ie, I)) : RW(Q);
            ((Ze.typeParameters = n.localTypeParameters),
              (Ze.resolvedReturnType = n),
              (Ze.flags = m ? Ze.flags | 4 : Ze.flags & -5),
              H.push(Ze));
          }
        }
        return H;
      }
      function tY(n, a, c, p, m) {
        for (const v of n) if (p5(v, a, c, p, m, c ? Bdt : BW)) return v;
      }
      function mlt(n, a, c) {
        if (a.typeParameters) {
          if (c > 0) return;
          for (let m = 1; m < n.length; m++)
            if (!tY(n[m], a, !1, !1, !1)) return;
          return [a];
        }
        let p;
        for (let m = 0; m < n.length; m++) {
          const v =
            m === c ? a : tY(n[m], a, !1, !1, !0) || tY(n[m], a, !0, !1, !0);
          if (!v) return;
          p = $g(p, v);
        }
        return p;
      }
      function _he(n) {
        let a, c;
        for (let p = 0; p < n.length; p++) {
          if (n[p].length === 0) return ae;
          n[p].length > 1 && (c = c === void 0 ? p : -1);
          for (const m of n[p])
            if (!a || !tY(a, m, !1, !1, !0)) {
              const v = mlt(n, m, p);
              if (v) {
                let I = m;
                if (v.length > 1) {
                  let w = m.thisParameter;
                  const U = Ye(v, (H) => H.thisParameter);
                  if (U) {
                    const H = Ma(
                      Ui(v, (Q) => Q.thisParameter && _r(Q.thisParameter)),
                    );
                    w = NA(U, H);
                  }
                  ((I = $Oe(m, v)), (I.thisParameter = w));
                }
                (a || (a = [])).push(I);
              }
            }
        }
        if (!et(a) && c !== -1) {
          const p = n[c !== void 0 ? c : 0];
          let m = p.slice();
          for (const v of n)
            if (v !== p) {
              const I = v[0];
              if (
                (C.assert(
                  !!I,
                  "getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass",
                ),
                (m =
                  I.typeParameters &&
                  yt(
                    m,
                    (w) =>
                      !!w.typeParameters &&
                      !ZOe(I.typeParameters, w.typeParameters),
                  )
                    ? void 0
                    : Vt(m, (w) => glt(w, I))),
                !m)
              )
                break;
            }
          a = m;
        }
        return a || ae;
      }
      function ZOe(n, a) {
        if (et(n) !== et(a)) return !1;
        if (!n || !a) return !0;
        const c = Yp(a, n);
        for (let p = 0; p < n.length; p++) {
          const m = n[p],
            v = a[p];
          if (m !== v && !Hg(SL(m) || Nt, io(SL(v) || Nt, c))) return !1;
        }
        return !0;
      }
      function hlt(n, a, c) {
        if (!n || !a) return n || a;
        const p = Ma([_r(n), io(_r(a), c)]);
        return NA(n, p);
      }
      function _lt(n, a, c) {
        const p = Ap(n),
          m = Ap(a),
          v = p >= m ? n : a,
          I = v === n ? a : n,
          w = v === n ? p : m,
          U = ng(n) || ng(a),
          H = U && !ng(v),
          Q = new Array(w + (H ? 1 : 0));
        for (let Ie = 0; Ie < w; Ie++) {
          let Te = kE(v, Ie);
          v === a && (Te = io(Te, c));
          let Ze = kE(I, Ie) || Nt;
          I === a && (Ze = io(Ze, c));
          const Tt = Ma([Te, Ze]),
            Dt = U && !H && Ie === w - 1,
            $t = Ie >= kh(v) && Ie >= kh(I),
            Tn = Ie >= p ? void 0 : kL(n, Ie),
            nr = Ie >= m ? void 0 : kL(a, Ie),
            yr = Tn === nr ? Tn : Tn ? (nr ? void 0 : Tn) : nr,
            Sn = ja(
              1 | ($t && !Dt ? 16777216 : 0),
              yr || `arg${Ie}`,
              Dt ? 32768 : $t ? 16384 : 0,
            );
          ((Sn.links.type = Dt ? Yd(Tt) : Tt), (Q[Ie] = Sn));
        }
        if (H) {
          const Ie = ja(1, "args", 32768);
          ((Ie.links.type = Yd(Lh(I, w))),
            I === a && (Ie.links.type = io(Ie.links.type, c)),
            (Q[w] = Ie));
        }
        return Q;
      }
      function glt(n, a) {
        const c = n.typeParameters || a.typeParameters;
        let p;
        n.typeParameters &&
          a.typeParameters &&
          (p = Yp(a.typeParameters, n.typeParameters));
        let m = (n.flags | a.flags) & 166;
        const v = n.declaration,
          I = _lt(n, a, p),
          w = Zs(I);
        w && Wl(w) & 32768 && (m |= 1);
        const U = hlt(n.thisParameter, a.thisParameter, p),
          H = Math.max(n.minArgumentCount, a.minArgumentCount),
          Q = y_(v, c, U, I, void 0, void 0, H, m);
        return (
          (Q.compositeKind = 1048576),
          (Q.compositeSignatures = so(
            (n.compositeKind !== 2097152 && n.compositeSignatures) || [n],
            [a],
          )),
          p
            ? (Q.mapper =
                n.compositeKind !== 2097152 && n.mapper && n.compositeSignatures
                  ? Y0(n.mapper, p)
                  : p)
            : n.compositeKind !== 2097152 &&
              n.mapper &&
              n.compositeSignatures &&
              (Q.mapper = n.mapper),
          Q
        );
      }
      function eWe(n) {
        const a = Xd(n[0]);
        if (a) {
          const c = [];
          for (const p of a) {
            const m = p.keyType;
            Vn(n, (v) => !!Vg(v, m)) &&
              c.push(
                jg(
                  m,
                  pi(Vt(n, (v) => q0(v, m))),
                  yt(n, (v) => Vg(v, m).isReadonly),
                ),
              );
          }
          return c;
        }
        return ae;
      }
      function ylt(n) {
        const a = _he(Vt(n.types, (m) => (m === er ? [si] : na(m, 0)))),
          c = _he(Vt(n.types, (m) => na(m, 1))),
          p = eWe(n.types);
        Nm(n, k, a, c, p);
      }
      function jz(n, a) {
        return n ? (a ? Ma([n, a]) : n) : a;
      }
      function tWe(n) {
        const a = Io(n, (p) => na(p, 1).length > 0),
          c = Vt(n, Ed);
        if (a > 0 && a === Io(c, (p) => p)) {
          const p = c.indexOf(!0);
          c[p] = !1;
        }
        return c;
      }
      function vlt(n, a, c, p) {
        const m = [];
        for (let v = 0; v < a.length; v++)
          v === p ? m.push(n) : c[v] && m.push(fs(na(a[v], 1)[0]));
        return Ma(m);
      }
      function blt(n) {
        let a, c, p;
        const m = n.types,
          v = tWe(m),
          I = Io(v, (w) => w);
        for (let w = 0; w < m.length; w++) {
          const U = n.types[w];
          if (!v[w]) {
            let H = na(U, 1);
            (H.length &&
              I > 0 &&
              (H = Vt(H, (Q) => {
                const Ie = RW(Q);
                return ((Ie.resolvedReturnType = vlt(fs(Q), m, v, w)), Ie);
              })),
              (c = nWe(c, H)));
          }
          ((a = nWe(a, na(U, 0))), (p = gu(Xd(U), (H, Q) => rWe(H, Q, !1), p)));
        }
        Nm(n, k, a || ae, c || ae, p || ae);
      }
      function nWe(n, a) {
        for (const c of a)
          (!n || Vn(n, (p) => !p5(p, c, !1, !1, !1, BW))) && (n = Bn(n, c));
        return n;
      }
      function rWe(n, a, c) {
        if (n)
          for (let p = 0; p < n.length; p++) {
            const m = n[p];
            if (m.keyType === a.keyType)
              return (
                (n[p] = jg(
                  m.keyType,
                  c ? pi([m.type, a.type]) : Ma([m.type, a.type]),
                  c
                    ? m.isReadonly || a.isReadonly
                    : m.isReadonly && a.isReadonly,
                )),
                n
              );
          }
        return Bn(n, a);
      }
      function Tlt(n) {
        if (n.target) {
          Nm(n, k, ae, ae, ae);
          const I = VOe(zv(n.target), n.mapper, !1),
            w = TY(na(n.target, 0), n.mapper),
            U = TY(na(n.target, 1), n.mapper),
            H = R8e(Xd(n.target), n.mapper);
          Nm(n, I, w, U, H);
          return;
        }
        const a = os(n.symbol);
        if (a.flags & 2048) {
          Nm(n, k, ae, ae, ae);
          const I = $_(a),
            w = AE(I.get("__call")),
            U = AE(I.get("__new")),
            H = EWe(a);
          Nm(n, I, w, U, H);
          return;
        }
        let c = qp(a),
          p;
        if (a === Re) {
          const I = new Map();
          (c.forEach((w) => {
            var U;
            !(w.flags & 418) &&
              !(
                w.flags & 512 &&
                (U = w.declarations) != null &&
                U.length &&
                Vn(w.declarations, yu)
              ) &&
              I.set(w.escapedName, w);
          }),
            (c = I));
        }
        let m;
        if ((Nm(n, c, ae, ae, ae), a.flags & 32)) {
          const I = tm(a),
            w = Py(I);
          w.flags & 11272192
            ? ((c = da(qx(c))), jOe(c, bs(w)))
            : w === Ue && (m = So);
        }
        const v = aY(c);
        if (
          (v
            ? (p = sY(v, Co(c.values())))
            : (m && (p = Bn(p, m)),
              a.flags & 384 &&
                (qs(a).flags & 32 ||
                  yt(n.properties, (I) => !!(_r(I).flags & 296))) &&
                (p = Bn(p, ro))),
          Nm(n, c, ae, ae, p || ae),
          a.flags & 8208 && (n.callSignatures = AE(a)),
          a.flags & 32)
        ) {
          const I = tm(a);
          let w = a.members ? AE(a.members.get("__constructor")) : ae;
          (a.flags & 16 &&
            (w = Xr(
              w.slice(),
              Ui(n.callSignatures, (U) =>
                E_(U.declaration)
                  ? y_(
                      U.declaration,
                      U.typeParameters,
                      U.thisParameter,
                      U.parameters,
                      I,
                      void 0,
                      U.minArgumentCount,
                      U.flags & 167,
                    )
                  : void 0,
              ),
            )),
            w.length || (w = flt(I)),
            (n.constructSignatures = w));
        }
      }
      function Slt(n, a, c) {
        return io(n, Yp([a.indexType, a.objectType], [Ch(0), eg([c])]));
      }
      function Elt(n) {
        const a = Rf(n.mappedType);
        if (!(a.flags & 1048576 || a.flags & 2097152)) return;
        const c = a.flags & 1048576 ? a.origin : a;
        if (!c || !(c.flags & 2097152)) return;
        const p = Ma(c.types.filter((m) => m !== n.constraintType));
        return p !== yn ? p : void 0;
      }
      function Alt(n) {
        const a = Vg(n.source, gt),
          c = Q_(n.mappedType),
          p = !(c & 1),
          m = c & 4 ? 0 : 16777216,
          v = a
            ? [
                jg(
                  gt,
                  VY(a.type, n.mappedType, n.constraintType) || Nt,
                  p && a.isReadonly,
                ),
              ]
            : ae,
          I = da(),
          w = Elt(n);
        for (const U of bs(n.source)) {
          if (w) {
            const Ie = nR(U, 8576);
            if (!aa(Ie, w)) continue;
          }
          const H = 8192 | (p && wh(U) ? 8 : 0),
            Q = ja(4 | (U.flags & m), U.escapedName, H);
          if (
            ((Q.declarations = U.declarations),
            (Q.links.nameType = Jr(U).nameType),
            (Q.links.propertyType = _r(U)),
            n.constraintType.type.flags & 8388608 &&
              n.constraintType.type.objectType.flags & 262144 &&
              n.constraintType.type.indexType.flags & 262144)
          ) {
            const Ie = n.constraintType.type.objectType,
              Te = Slt(n.mappedType, n.constraintType.type, Ie);
            ((Q.links.mappedType = Te), (Q.links.constraintType = b_(Ie)));
          } else
            ((Q.links.mappedType = n.mappedType),
              (Q.links.constraintType = n.constraintType));
          I.set(U.escapedName, Q);
        }
        Nm(n, I, ae, ae, v);
      }
      function Uz(n) {
        if (n.flags & 4194304) {
          const a = Du(n.type);
          return mT(a) ? QWe(a) : b_(a);
        }
        if (n.flags & 16777216) {
          if (n.root.isDistributive) {
            const a = n.checkType,
              c = Uz(a);
            if (c !== a) return f_e(n, RA(n.root.checkType, c, n.mapper), !1);
          }
          return n;
        }
        if (n.flags & 1048576) return Tl(n, Uz, !0);
        if (n.flags & 2097152) {
          const a = n.types;
          return a.length === 2 && a[0].flags & 76 && a[1] === fa
            ? n
            : Ma(Zi(n.types, Uz));
        }
        return n;
      }
      function ghe(n) {
        return Wl(n) & 4096;
      }
      function yhe(n, a, c, p) {
        for (const m of bs(n)) p(nR(m, a));
        if (n.flags & 1) p(gt);
        else
          for (const m of Xd(n))
            (!c || m.keyType.flags & 134217732) && p(m.keyType);
      }
      function Ilt(n) {
        const a = da();
        let c;
        Nm(n, k, ae, ae, ae);
        const p = eh(n),
          m = Rf(n),
          v = n.target || n,
          I = Fv(v),
          w = DW(v) !== 2,
          U = Gg(v),
          H = Du(H0(n)),
          Q = Q_(n);
        (zC(n) ? yhe(H, 8576, !1, Te) : kA(Uz(m), Te),
          Nm(n, a, ae, ae, c || ae));
        function Te(Tt) {
          const Dt = I ? io(I, WW(n.mapper, p, Tt)) : Tt;
          kA(Dt, ($t) => Ze(Tt, $t));
        }
        function Ze(Tt, Dt) {
          if (jf(Dt)) {
            const $t = Uf(Dt),
              Tn = a.get($t);
            if (Tn)
              ((Tn.links.nameType = pi([Tn.links.nameType, Dt])),
                (Tn.links.keyType = pi([Tn.links.keyType, Tt])));
            else {
              const nr = jf(Tt) ? Ea(H, Uf(Tt)) : void 0,
                yr = !!(Q & 4 || (!(Q & 8) && nr && nr.flags & 16777216)),
                Sn = !!(Q & 1 || (!(Q & 2) && nr && wh(nr))),
                vn = ie && !yr && nr && nr.flags & 16777216,
                Sr = nr ? ghe(nr) : 0,
                fi = ja(
                  4 | (yr ? 16777216 : 0),
                  $t,
                  Sr | 262144 | (Sn ? 8 : 0) | (vn ? 524288 : 0),
                );
              ((fi.links.mappedType = n),
                (fi.links.nameType = Dt),
                (fi.links.keyType = Tt),
                nr &&
                  ((fi.links.syntheticOrigin = nr),
                  (fi.declarations = w ? nr.declarations : void 0)),
                a.set($t, fi));
            }
          } else if (lY(Dt) || Dt.flags & 33) {
            const $t = Dt.flags & 5 ? gt : Dt.flags & 40 ? Bt : Dt,
              Tn = io(U, WW(n.mapper, p, Tt)),
              nr = CW(H, Dt),
              yr = !!(Q & 1 || (!(Q & 2) && nr?.isReadonly)),
              Sn = jg($t, Tn, yr);
            c = rWe(c, Sn, !0);
          }
        }
      }
      function xlt(n) {
        var a;
        if (!n.links.type) {
          const c = n.links.mappedType;
          if (!g_(n, 0)) return ((c.containsError = !0), nt);
          const p = Gg(c.target || c),
            m = WW(c.mapper, eh(c), n.links.keyType),
            v = io(p, m);
          let I =
            ie && n.flags & 16777216 && !tc(v, 49152)
              ? hT(v, !0)
              : n.links.checkFlags & 524288
                ? WY(v)
                : v;
          (rt() ||
            (Qe(
              R,
              f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,
              uo(n),
              ar(c),
            ),
            (I = nt)),
            (a = n.links).type ?? (a.type = I));
        }
        return n.links.type;
      }
      function eh(n) {
        return (
          n.typeParameter ||
          (n.typeParameter = U0(Wr(n.declaration.typeParameter)))
        );
      }
      function Rf(n) {
        return n.constraintType || (n.constraintType = Uu(eh(n)) || nt);
      }
      function Fv(n) {
        return n.declaration.nameType
          ? n.nameType ||
              (n.nameType = io(Ji(n.declaration.nameType), n.mapper))
          : void 0;
      }
      function Gg(n) {
        return (
          n.templateType ||
          (n.templateType = n.declaration.type
            ? io(pu(Ji(n.declaration.type), !0, !!(Q_(n) & 4)), n.mapper)
            : nt)
        );
      }
      function iWe(n) {
        return WR(n.declaration.typeParameter);
      }
      function zC(n) {
        const a = iWe(n);
        return a.kind === 199 && a.operator === 143;
      }
      function H0(n) {
        if (!n.modifiersType)
          if (zC(n)) n.modifiersType = io(Ji(iWe(n).type), n.mapper);
          else {
            const a = t_e(n.declaration),
              c = Rf(a),
              p = c && c.flags & 262144 ? Uu(c) : c;
            n.modifiersType =
              p && p.flags & 4194304 ? io(p.type, n.mapper) : Nt;
          }
        return n.modifiersType;
      }
      function Q_(n) {
        const a = n.declaration;
        return (
          (a.readonlyToken ? (a.readonlyToken.kind === 41 ? 2 : 1) : 0) |
          (a.questionToken ? (a.questionToken.kind === 41 ? 8 : 4) : 0)
        );
      }
      function oWe(n) {
        const a = Q_(n);
        return a & 8 ? -1 : a & 4 ? 1 : 0;
      }
      function yL(n) {
        if (Hr(n) & 32) return oWe(n) || yL(H0(n));
        if (n.flags & 2097152) {
          const a = yL(n.types[0]);
          return Vn(n.types, (c, p) => p === 0 || yL(c) === a) ? a : 0;
        }
        return 0;
      }
      function Rlt(n) {
        return !!(Hr(n) & 32 && Q_(n) & 4);
      }
      function up(n) {
        if (Hr(n) & 32) {
          const a = Rf(n);
          if (xA(a)) return !0;
          const c = Fv(n);
          if (c && xA(io(c, DE(eh(n), a)))) return !0;
        }
        return !1;
      }
      function DW(n) {
        const a = Fv(n);
        return a ? (aa(a, eh(n)) ? 1 : 2) : 0;
      }
      function Dh(n) {
        return (
          n.members ||
            (n.flags & 524288
              ? n.objectFlags & 4
                ? dlt(n)
                : n.objectFlags & 3
                  ? clt(n)
                  : n.objectFlags & 1024
                    ? Alt(n)
                    : n.objectFlags & 16
                      ? Tlt(n)
                      : n.objectFlags & 32
                        ? Ilt(n)
                        : C.fail(
                            "Unhandled object type " +
                              C.formatObjectFlags(n.objectFlags),
                          )
              : n.flags & 1048576
                ? ylt(n)
                : n.flags & 2097152
                  ? blt(n)
                  : C.fail("Unhandled type " + C.formatTypeFlags(n.flags))),
          n
        );
      }
      function zv(n) {
        return n.flags & 524288 ? Dh(n).properties : ae;
      }
      function SE(n, a) {
        if (n.flags & 524288) {
          const p = Dh(n).members.get(a);
          if (p && An(p)) return p;
        }
      }
      function Hz(n) {
        if (!n.resolvedProperties) {
          const a = da();
          for (const c of n.types) {
            for (const p of bs(c))
              if (!a.has(p.escapedName)) {
                const m = Jz(n, p.escapedName, !!(n.flags & 2097152));
                m && a.set(p.escapedName, m);
              }
            if (n.flags & 1048576 && Xd(c).length === 0) break;
          }
          n.resolvedProperties = ju(a);
        }
        return n.resolvedProperties;
      }
      function bs(n) {
        return ((n = vL(n)), n.flags & 3145728 ? Hz(n) : zv(n));
      }
      function Dlt(n, a) {
        ((n = vL(n)),
          n.flags & 3670016 &&
            Dh(n).members.forEach((c, p) => {
              iT(c, p) && a(c, p);
            }));
      }
      function Clt(n, a) {
        return a.properties.some((p) => {
          const m = p.name && (fh(p.name) ? Sp(iw(p.name)) : ky(p.name)),
            v = m && jf(m) ? Uf(m) : void 0,
            I = v === void 0 ? void 0 : _n(n, v);
          return !!I && jW(I) && !aa(mR(p), I);
        });
      }
      function Nlt(n) {
        const a = pi(n);
        if (!(a.flags & 1048576)) return Rye(a);
        const c = da();
        for (const p of n)
          for (const { escapedName: m } of Rye(p))
            if (!c.has(m)) {
              const v = pWe(a, m);
              v && c.set(m, v);
            }
        return Co(c.values());
      }
      function vA(n) {
        return n.flags & 262144
          ? Uu(n)
          : n.flags & 8388608
            ? Plt(n)
            : n.flags & 16777216
              ? lWe(n)
              : Ld(n);
      }
      function Uu(n) {
        return qz(n) ? SL(n) : void 0;
      }
      function Mlt(n, a) {
        const c = FW(n);
        return !!c && bA(c, a);
      }
      function bA(n, a = 0) {
        var c;
        return (
          a < 5 &&
          !!(
            n &&
            ((n.flags & 262144 &&
              yt((c = n.symbol) == null ? void 0 : c.declarations, (p) =>
                di(p, 4096),
              )) ||
              (n.flags & 3145728 && yt(n.types, (p) => bA(p, a))) ||
              (n.flags & 8388608 && bA(n.objectType, a + 1)) ||
              (n.flags & 16777216 && bA(lWe(n), a + 1)) ||
              (n.flags & 33554432 && bA(n.baseType, a)) ||
              (Hr(n) & 32 && Mlt(n, a)) ||
              (mT(n) &&
                ho(
                  IE(n),
                  (p, m) => !!(n.target.elementFlags[m] & 8) && bA(p, a),
                ) >= 0))
          )
        );
      }
      function Plt(n) {
        return qz(n) ? Llt(n) : void 0;
      }
      function vhe(n) {
        const a = wy(n, !1);
        return a !== n ? a : vA(n);
      }
      function Llt(n) {
        if (Ehe(n)) return gY(n.objectType, n.indexType);
        const a = vhe(n.indexType);
        if (a && a !== n.indexType) {
          const p = uT(n.objectType, a, n.accessFlags);
          if (p) return p;
        }
        const c = vhe(n.objectType);
        if (c && c !== n.objectType) return uT(c, n.indexType, n.accessFlags);
      }
      function bhe(n) {
        if (!n.resolvedDefaultConstraint) {
          const a = ydt(n),
            c = fT(n);
          n.resolvedDefaultConstraint = wr(a) ? c : wr(c) ? a : pi([a, c]);
        }
        return n.resolvedDefaultConstraint;
      }
      function aWe(n) {
        if (n.resolvedConstraintOfDistributive !== void 0)
          return n.resolvedConstraintOfDistributive || void 0;
        if (n.root.isDistributive && n.restrictiveInstantiation !== n) {
          const a = wy(n.checkType, !1),
            c = a === n.checkType ? vA(a) : a;
          if (c && c !== n.checkType) {
            const p = f_e(n, RA(n.root.checkType, c, n.mapper), !0);
            if (!(p.flags & 131072))
              return ((n.resolvedConstraintOfDistributive = p), p);
          }
        }
        n.resolvedConstraintOfDistributive = !1;
      }
      function sWe(n) {
        return aWe(n) || bhe(n);
      }
      function lWe(n) {
        return qz(n) ? sWe(n) : void 0;
      }
      function klt(n, a) {
        let c,
          p = !1;
        for (const m of n)
          if (m.flags & 465829888) {
            let v = vA(m);
            for (; v && v.flags & 21233664; ) v = vA(v);
            v && ((c = Bn(c, v)), a && (c = Bn(c, m)));
          } else (m.flags & 469892092 || tg(m)) && (p = !0);
        if (c && (a || p)) {
          if (p)
            for (const m of n) (m.flags & 469892092 || tg(m)) && (c = Bn(c, m));
          return c5(Ma(c, 2), !1);
        }
      }
      function Ld(n) {
        if (n.flags & 464781312 || mT(n)) {
          const a = The(n);
          return a !== Hl && a !== sc ? a : void 0;
        }
        return n.flags & 4194304 ? Ii : void 0;
      }
      function v_(n) {
        return Ld(n) || n;
      }
      function qz(n) {
        return The(n) !== sc;
      }
      function The(n) {
        if (n.resolvedBaseConstraint) return n.resolvedBaseConstraint;
        const a = [];
        return (n.resolvedBaseConstraint = c(n));
        function c(v) {
          if (!v.immediateBaseConstraint) {
            if (!g_(v, 4)) return sc;
            let I;
            const w = MY(v);
            if (
              ((a.length < 10 || (a.length < 50 && !jn(a, w))) &&
                (a.push(w), (I = m(wy(v, !1))), a.pop()),
              !rt())
            ) {
              if (v.flags & 262144) {
                const U = cY(v);
                if (U) {
                  const H = Qe(
                    U,
                    f.Type_parameter_0_has_a_circular_constraint,
                    ar(v),
                  );
                  R &&
                    !xS(U, R) &&
                    !xS(R, U) &&
                    pa(
                      H,
                      Ar(R, f.Circularity_originates_in_type_at_this_location),
                    );
                }
              }
              I = sc;
            }
            v.immediateBaseConstraint ?? (v.immediateBaseConstraint = I || Hl);
          }
          return v.immediateBaseConstraint;
        }
        function p(v) {
          const I = c(v);
          return I !== Hl && I !== sc ? I : void 0;
        }
        function m(v) {
          if (v.flags & 262144) {
            const I = SL(v);
            return v.isThisType || !I ? I : p(I);
          }
          if (v.flags & 3145728) {
            const I = v.types,
              w = [];
            let U = !1;
            for (const H of I) {
              const Q = p(H);
              Q ? (Q !== H && (U = !0), w.push(Q)) : (U = !0);
            }
            return U
              ? v.flags & 1048576 && w.length === I.length
                ? pi(w)
                : v.flags & 2097152 && w.length
                  ? Ma(w)
                  : void 0
              : v;
          }
          if (v.flags & 4194304) return Ii;
          if (v.flags & 134217728) {
            const I = v.types,
              w = Ui(I, p);
            return w.length === I.length ? EA(v.texts, w) : gt;
          }
          if (v.flags & 268435456) {
            const I = p(v.type);
            return I && I !== v.type ? rR(v.symbol, I) : gt;
          }
          if (v.flags & 8388608) {
            if (Ehe(v)) return p(gY(v.objectType, v.indexType));
            const I = p(v.objectType),
              w = p(v.indexType),
              U = I && w && uT(I, w, v.accessFlags);
            return U && p(U);
          }
          if (v.flags & 16777216) {
            const I = sWe(v);
            return I && p(I);
          }
          if (v.flags & 33554432) return p(Ohe(v));
          if (mT(v)) {
            const I = Vt(IE(v), (w, U) => {
              const H =
                (w.flags & 262144 && v.target.elementFlags[U] & 8 && p(w)) || w;
              return H !== w && Ep(H, (Q) => Q0(Q) && !mT(Q)) ? H : w;
            });
            return eg(
              I,
              v.target.elementFlags,
              v.target.readonly,
              v.target.labeledElementDeclarations,
            );
          }
          return v;
        }
      }
      function wlt(n, a) {
        if (n === a)
          return (
            n.resolvedApparentType || (n.resolvedApparentType = Kp(n, a, !0))
          );
        const c = `I${pd(n)},${pd(a)}`;
        return Gu(c) ?? Dm(c, Kp(n, a, !0));
      }
      function She(n) {
        if (n.default) n.default === vd && (n.default = sc);
        else if (n.target) {
          const a = She(n.target);
          n.default = a ? io(a, n.mapper) : Hl;
        } else {
          n.default = vd;
          const a =
              n.symbol && Ye(n.symbol.declarations, (p) => sl(p) && p.default),
            c = a ? Ji(a) : Hl;
          n.default === vd && (n.default = c);
        }
        return n.default;
      }
      function EE(n) {
        const a = She(n);
        return a !== Hl && a !== sc ? a : void 0;
      }
      function Olt(n) {
        return She(n) !== sc;
      }
      function cWe(n) {
        return !!(
          n.symbol && Ye(n.symbol.declarations, (a) => sl(a) && a.default)
        );
      }
      function dWe(n) {
        return n.resolvedApparentType || (n.resolvedApparentType = Wlt(n));
      }
      function Wlt(n) {
        const a = n.target ?? n,
          c = FW(a);
        if (c && !a.declaration.nameType) {
          const p = H0(n),
            m = up(p) ? dWe(p) : Ld(p);
          if (m && Ep(m, (v) => Q0(v) || uWe(v)))
            return io(a, RA(c, m, n.mapper));
        }
        return n;
      }
      function uWe(n) {
        return !!(n.flags & 2097152) && Vn(n.types, Q0);
      }
      function Ehe(n) {
        let a;
        return !!(
          n.flags & 8388608 &&
          Hr((a = n.objectType)) & 32 &&
          !up(a) &&
          xA(n.indexType) &&
          !(Q_(a) & 8) &&
          !a.declaration.nameType
        );
      }
      function Du(n) {
        const a = n.flags & 465829888 ? Ld(n) || Nt : n,
          c = Hr(a);
        return c & 32
          ? dWe(a)
          : c & 4 && a !== n
            ? Kp(a, n)
            : a.flags & 2097152
              ? wlt(a, n)
              : a.flags & 402653316
                ? Mc
                : a.flags & 296
                  ? tl
                  : a.flags & 2112
                    ? Sct()
                    : a.flags & 528
                      ? Ll
                      : a.flags & 12288
                        ? GWe()
                        : a.flags & 67108864
                          ? Ra
                          : a.flags & 4194304
                            ? Ii
                            : a.flags & 2 && !ie
                              ? Ra
                              : a;
      }
      function vL(n) {
        return Pm(Du(Pm(n)));
      }
      function pWe(n, a, c) {
        var p, m, v;
        let I = 0,
          w,
          U,
          H;
        const Q = n.flags & 1048576;
        let Ie,
          Te = 4,
          Ze = Q ? 0 : 8,
          Tt = !1;
        for (const oo of n.types) {
          const ii = Du(oo);
          if (!(pr(ii) || ii.flags & 131072)) {
            const zi = Ea(ii, a, c),
              Ko = zi ? Vf(zi) : 0;
            if (zi) {
              if (
                (zi.flags & 106500 &&
                  (Ie ?? (Ie = Q ? 0 : 16777216),
                  Q ? (Ie |= zi.flags & 16777216) : (Ie &= zi.flags)),
                !w)
              )
                ((w = zi), (I = zi.flags & 98304 || 4));
              else if (zi !== w) {
                if (
                  (nN(zi) || zi) === (nN(w) || w) &&
                  A_e(w, zi, (fo, dl) => (fo === dl ? -1 : 0)) === -1
                )
                  Tt = !!w.parent && !!et(Na(w.parent));
                else {
                  U || ((U = new Map()), U.set(Ta(w), w));
                  const fo = Ta(zi);
                  U.has(fo) || U.set(fo, zi);
                }
                I & 98304 &&
                  (zi.flags & 98304) !== (I & 98304) &&
                  (I = (I & -98305) | 4);
              }
              (Q && wh(zi) ? (Ze |= 8) : !Q && !wh(zi) && (Ze &= -9),
                (Ze |=
                  (Ko & 6 ? 0 : 256) |
                  (Ko & 4 ? 512 : 0) |
                  (Ko & 2 ? 1024 : 0) |
                  (Ko & 256 ? 2048 : 0)),
                bge(zi) || (Te = 2));
            } else if (Q) {
              const ms = !xW(a) && tR(ii, a);
              ms
                ? ((I = (I & -98305) | 4),
                  (Ze |= 32 | (ms.isReadonly ? 8 : 0)),
                  (H = Bn(H, Ka(ii) ? kY(ii) || he : ms.type)))
                : Uv(ii) && !(Hr(ii) & 2097152)
                  ? ((Ze |= 32), (H = Bn(H, he)))
                  : (Ze |= 16);
            }
          }
        }
        if (!w || (Q && (U || Ze & 48) && Ze & 1536 && !(U && Flt(U.values()))))
          return;
        if (!U && !(Ze & 16) && !H)
          if (Tt) {
            const oo = (p = ni(w, pg)) == null ? void 0 : p.links,
              ii = NA(w, oo?.type);
            return (
              (ii.parent =
                (v = (m = w.valueDeclaration) == null ? void 0 : m.symbol) ==
                null
                  ? void 0
                  : v.parent),
              (ii.links.containingType = n),
              (ii.links.mapper = oo?.mapper),
              (ii.links.writeType = Wv(w)),
              ii
            );
          } else return w;
        const Dt = U ? Co(U.values()) : [w];
        let $t, Tn, nr;
        const yr = [];
        let Sn,
          vn,
          Sr = !1;
        for (const oo of Dt) {
          (vn
            ? oo.valueDeclaration && oo.valueDeclaration !== vn && (Sr = !0)
            : (vn = oo.valueDeclaration),
            ($t = Xr($t, oo.declarations)));
          const ii = _r(oo);
          Tn || ((Tn = ii), (nr = Jr(oo).nameType));
          const zi = Wv(oo);
          ((Sn || zi !== ii) && (Sn = Bn(Sn || yr.slice(), zi)),
            ii !== Tn && (Ze |= 64),
            (jW(ii) || AA(ii)) && (Ze |= 128),
            ii.flags & 131072 && ii !== Ps && (Ze |= 131072),
            yr.push(ii));
        }
        Xr(yr, H);
        const fi = ja(I | (Ie ?? 0), a, Te | Ze);
        return (
          (fi.links.containingType = n),
          !Sr &&
            vn &&
            ((fi.valueDeclaration = vn),
            vn.symbol.parent && (fi.parent = vn.symbol.parent)),
          (fi.declarations = $t),
          (fi.links.nameType = nr),
          yr.length > 2
            ? ((fi.links.checkFlags |= 65536),
              (fi.links.deferralParent = n),
              (fi.links.deferralConstituents = yr),
              (fi.links.deferralWriteConstituents = Sn))
            : ((fi.links.type = Q ? pi(yr) : Ma(yr)),
              Sn && (fi.links.writeType = Q ? pi(Sn) : Ma(Sn))),
          fi
        );
      }
      function fWe(n, a, c) {
        var p, m, v;
        let I = c
          ? (p = n.propertyCacheWithoutObjectFunctionPropertyAugment) == null
            ? void 0
            : p.get(a)
          : (m = n.propertyCache) == null
            ? void 0
            : m.get(a);
        return (
          I ||
            ((I = pWe(n, a, c)),
            I &&
              ((c
                ? n.propertyCacheWithoutObjectFunctionPropertyAugment ||
                  (n.propertyCacheWithoutObjectFunctionPropertyAugment = da())
                : n.propertyCache || (n.propertyCache = da())
              ).set(a, I),
              c &&
                !(Wl(I) & 48) &&
                !((v = n.propertyCache) != null && v.get(a)) &&
                (n.propertyCache || (n.propertyCache = da())).set(a, I))),
          I
        );
      }
      function Flt(n) {
        let a;
        for (const c of n) {
          if (!c.declarations) return;
          if (!a) {
            a = new Set(c.declarations);
            continue;
          }
          if (
            (a.forEach((p) => {
              jn(c.declarations, p) || a.delete(p);
            }),
            a.size === 0)
          )
            return;
        }
        return a;
      }
      function Jz(n, a, c) {
        const p = fWe(n, a, c);
        return p && !(Wl(p) & 16) ? p : void 0;
      }
      function Pm(n) {
        return n.flags & 1048576 && n.objectFlags & 16777216
          ? n.resolvedReducedType || (n.resolvedReducedType = zlt(n))
          : n.flags & 2097152
            ? (n.objectFlags & 16777216 ||
                (n.objectFlags |= 16777216 | (yt(Hz(n), Blt) ? 33554432 : 0)),
              n.objectFlags & 33554432 ? yn : n)
            : n;
      }
      function zlt(n) {
        const a = Zi(n.types, Pm);
        if (a === n.types) return n;
        const c = pi(a);
        return (c.flags & 1048576 && (c.resolvedReducedType = c), c);
      }
      function Blt(n) {
        return mWe(n) || hWe(n);
      }
      function mWe(n) {
        return (
          !(n.flags & 16777216) &&
          (Wl(n) & 131264) === 192 &&
          !!(_r(n).flags & 131072)
        );
      }
      function hWe(n) {
        return !n.valueDeclaration && !!(Wl(n) & 1024);
      }
      function Ahe(n) {
        return !!(
          (n.flags & 1048576 && n.objectFlags & 16777216 && yt(n.types, Ahe)) ||
          (n.flags & 2097152 && Glt(n))
        );
      }
      function Glt(n) {
        const a =
          n.uniqueLiteralFilledInstantiation ||
          (n.uniqueLiteralFilledInstantiation = io(n, co));
        return Pm(a) !== a;
      }
      function Ihe(n, a) {
        if (a.flags & 2097152 && Hr(a) & 33554432) {
          const c = hn(Hz(a), mWe);
          if (c)
            return qo(
              n,
              f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,
              ar(a, void 0, 536870912),
              uo(c),
            );
          const p = hn(Hz(a), hWe);
          if (p)
            return qo(
              n,
              f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,
              ar(a, void 0, 536870912),
              uo(p),
            );
        }
        return n;
      }
      function Ea(n, a, c, p) {
        var m, v;
        if (((n = vL(n)), n.flags & 524288)) {
          const I = Dh(n),
            w = I.members.get(a);
          if (
            w &&
            !p &&
            ((m = n.symbol) == null ? void 0 : m.flags) & 512 &&
            (v = Jr(n.symbol).typeOnlyExportStarMap) != null &&
            v.has(a)
          )
            return;
          if (w && An(w, p)) return w;
          if (c) return;
          const U =
            I === As
              ? er
              : I.callSignatures.length
                ? go
                : I.constructSignatures.length
                  ? Za
                  : void 0;
          if (U) {
            const H = SE(U, a);
            if (H) return H;
          }
          return SE(Jt, a);
        }
        if (n.flags & 2097152) {
          const I = Jz(n, a, !0);
          return I || (c ? void 0 : Jz(n, a, c));
        }
        if (n.flags & 1048576) return Jz(n, a, c);
      }
      function Kz(n, a) {
        if (n.flags & 3670016) {
          const c = Dh(n);
          return a === 0 ? c.callSignatures : c.constructSignatures;
        }
        return ae;
      }
      function na(n, a) {
        const c = Kz(vL(n), a);
        if (a === 0 && !et(c) && n.flags & 1048576) {
          if (n.arrayFallbackSignatures) return n.arrayFallbackSignatures;
          let p;
          if (
            Ep(n, (m) => {
              var v;
              return (
                !!((v = m.symbol) != null && v.parent) &&
                Vlt(m.symbol.parent) &&
                (p
                  ? p === m.symbol.escapedName
                  : ((p = m.symbol.escapedName), !0))
              );
            })
          ) {
            const m = Tl(n, (I) =>
                Vv(
                  (_We(I.symbol.parent) ? Va : es).typeParameters[0],
                  I.mapper,
                ),
              ),
              v = Yd(
                m,
                am(n, (I) => _We(I.symbol.parent)),
              );
            return (n.arrayFallbackSignatures = na(_n(v, p), a));
          }
          n.arrayFallbackSignatures = c;
        }
        return c;
      }
      function Vlt(n) {
        return !n || !es.symbol || !Va.symbol
          ? !1
          : !!me(n, es.symbol) || !!me(n, Va.symbol);
      }
      function _We(n) {
        return !n || !Va.symbol ? !1 : !!me(n, Va.symbol);
      }
      function bL(n, a) {
        return hn(n, (c) => c.keyType === a);
      }
      function xhe(n, a) {
        let c, p, m;
        for (const v of n)
          v.keyType === gt
            ? (c = v)
            : eR(a, v.keyType) && (p ? (m || (m = [p])).push(v) : (p = v));
        return m
          ? jg(
              Nt,
              Ma(Vt(m, (v) => v.type)),
              gu(m, (v, I) => v && I.isReadonly, !0),
            )
          : p || (c && eR(a, gt) ? c : void 0);
      }
      function eR(n, a) {
        return (
          aa(n, a) ||
          (a === gt && aa(n, Bt)) ||
          (a === Bt && (n === zo || (!!(n.flags & 128) && Eg(n.value))))
        );
      }
      function Rhe(n) {
        return n.flags & 3670016 ? Dh(n).indexInfos : ae;
      }
      function Xd(n) {
        return Rhe(vL(n));
      }
      function Vg(n, a) {
        return bL(Xd(n), a);
      }
      function q0(n, a) {
        var c;
        return (c = Vg(n, a)) == null ? void 0 : c.type;
      }
      function Dhe(n, a) {
        return Xd(n).filter((c) => eR(a, c.keyType));
      }
      function CW(n, a) {
        return xhe(Xd(n), a);
      }
      function tR(n, a) {
        return CW(n, xW(a) ? Qt : Sp(Gi(a)));
      }
      function gWe(n) {
        var a;
        let c;
        for (const p of cb(n)) c = $g(c, U0(p.symbol));
        return c?.length
          ? c
          : Zl(n)
            ? (a = TL(n)) == null
              ? void 0
              : a.typeParameters
            : void 0;
      }
      function Che(n) {
        const a = [];
        return (
          n.forEach((c, p) => {
            G0(p) || a.push(c);
          }),
          a
        );
      }
      function yWe(n, a) {
        if (td(n)) return;
        const c = Sd(lt, '"' + n + '"', 512);
        return c && a ? os(c) : c;
      }
      function nY(n) {
        return vI(n) || rw(n) || (to(n) && e4(n));
      }
      function NW(n) {
        if (nY(n)) return !0;
        if (!to(n)) return !1;
        if (n.initializer) {
          const c = Df(n.parent),
            p = n.parent.parameters.indexOf(n);
          return (C.assert(p >= 0), p >= kh(c, 3));
        }
        const a = WT(n.parent);
        return a
          ? !n.type &&
              !n.dotDotDotToken &&
              n.parent.parameters.indexOf(n) >= g$(a).length
          : !1;
      }
      function jlt(n) {
        return Po(n) && !Kh(n) && n.questionToken;
      }
      function MW(n, a, c, p) {
        return { kind: n, parameterName: a, parameterIndex: c, type: p };
      }
      function Z_(n) {
        let a = 0;
        if (n) for (let c = 0; c < n.length; c++) cWe(n[c]) || (a = c + 1);
        return a;
      }
      function Bv(n, a, c, p) {
        const m = et(a);
        if (!m) return [];
        const v = et(n);
        if (p || (v >= c && v <= m)) {
          const I = n ? n.slice() : [];
          for (let U = v; U < m; U++) I[U] = nt;
          const w = j_e(p);
          for (let U = v; U < m; U++) {
            let H = EE(a[U]);
            (p && H && (Hg(H, Nt) || Hg(H, Ra)) && (H = Ue),
              (I[U] = H ? io(H, Yp(a, I)) : w));
          }
          return ((I.length = a.length), I);
        }
        return n && n.slice();
      }
      function Df(n) {
        const a = Vr(n);
        if (!a.resolvedSignature) {
          const c = [];
          let p = 0,
            m = 0,
            v,
            I = Ir(n) ? uF(n) : void 0,
            w = !1;
          const U = WT(n),
            H = bI(n);
          !U &&
            Ir(n) &&
            l1(n) &&
            !Jee(n) &&
            !yt(n.parameters, (Tt) => !!$y(Tt)) &&
            !$y(n) &&
            !o$(n) &&
            (p |= 32);
          for (let Tt = H ? 1 : 0; Tt < n.parameters.length; Tt++) {
            const Dt = n.parameters[Tt];
            if (Ir(Dt) && Pj(Dt)) {
              I = Dt;
              continue;
            }
            let $t = Dt.symbol;
            const Tn = mf(Dt)
              ? Dt.typeExpression && Dt.typeExpression.type
              : Dt.type;
            ($t &&
              $t.flags & 4 &&
              !Qo(Dt.name) &&
              ($t = _t(Dt, $t.escapedName, 111551, void 0, !1)),
              Tt === 0 && $t.escapedName === "this"
                ? ((w = !0), (v = Dt.symbol))
                : c.push($t),
              Tn && Tn.kind === 202 && (p |= 2),
              nY(Dt) ||
                (to(Dt) && Dt.initializer) ||
                C_(Dt) ||
                (U && c.length > U.arguments.length && !Tn) ||
                (m = c.length));
          }
          if ((n.kind === 178 || n.kind === 179) && FC(n) && (!w || !v)) {
            const Tt = n.kind === 178 ? 179 : 178,
              Dt = al(Wr(n), Tt);
            Dt && (v = Zx(Dt));
          }
          I &&
            I.typeExpression &&
            (v = NA(ja(1, "this"), Ji(I.typeExpression)));
          const Ie = fv(n) ? GT(n) : n,
            Te = Ie && Ml(Ie) ? tm(os(Ie.parent.symbol)) : void 0,
            Ze = Te ? Te.localTypeParameters : gWe(n);
          ((oG(n) || (Ir(n) && Ult(n, c))) && (p |= 1),
            ((vD(n) && di(n, 64)) || (Ml(n) && di(n.parent, 64))) && (p |= 4),
            (a.resolvedSignature = y_(n, Ze, v, c, void 0, void 0, m, p)));
        }
        return a.resolvedSignature;
      }
      function Ult(n, a) {
        if (fv(n) || !Nhe(n)) return !1;
        const c = Zs(n.parameters),
          p = c ? OR(c) : kT(n).filter(mf),
          m = Hn(p, (I) =>
            I.typeExpression && A4(I.typeExpression.type)
              ? I.typeExpression.type
              : void 0,
          ),
          v = ja(3, "args", 32768);
        return (
          m
            ? (v.links.type = Yd(Ji(m.type)))
            : ((v.links.checkFlags |= 65536),
              (v.links.deferralParent = yn),
              (v.links.deferralConstituents = [bd]),
              (v.links.deferralWriteConstituents = [bd])),
          m && a.pop(),
          a.push(v),
          !0
        );
      }
      function TL(n) {
        if (!(Ir(n) && Ms(n))) return;
        const a = LT(n);
        return a?.typeExpression && FA(Ji(a.typeExpression));
      }
      function Hlt(n, a) {
        const c = TL(n);
        if (!c) return;
        const p = n.parameters.indexOf(a);
        return a.dotDotDotToken ? B5(c, p) : Lh(c, p);
      }
      function qlt(n) {
        const a = TL(n);
        return a && fs(a);
      }
      function Nhe(n) {
        const a = Vr(n);
        return (
          a.containsArgumentsReference === void 0 &&
            (a.flags & 512
              ? (a.containsArgumentsReference = !0)
              : (a.containsArgumentsReference = c(n.body))),
          a.containsArgumentsReference
        );
        function c(p) {
          if (!p) return !1;
          switch (p.kind) {
            case 80:
              return p.escapedText === _e.escapedName && v8(p) === _e;
            case 173:
            case 175:
            case 178:
            case 179:
              return p.name.kind === 168 && c(p.name);
            case 212:
            case 213:
              return c(p.expression);
            case 304:
              return c(p.initializer);
            default:
              return !XG(p) && !Hh(p) && !!Jo(p, c);
          }
        }
      }
      function AE(n) {
        if (!n || !n.declarations) return ae;
        const a = [];
        for (let c = 0; c < n.declarations.length; c++) {
          const p = n.declarations[c];
          if (Yo(p)) {
            if (c > 0 && p.body) {
              const m = n.declarations[c - 1];
              if (p.parent === m.parent && p.kind === m.kind && p.pos === m.end)
                continue;
            }
            if (Ir(p) && p.jsDoc) {
              const m = zG(p);
              if (et(m)) {
                for (const v of m) {
                  const I = v.typeExpression;
                  (I.type === void 0 && !Ml(p) && eS(I, Ue), a.push(Df(I)));
                }
                continue;
              }
            }
            a.push((!Rb(p) && !mm(p) && TL(p)) || Df(p));
          }
        }
        return a;
      }
      function vWe(n) {
        const a = uu(n, n);
        if (a) {
          const c = Tp(a);
          if (c) return _r(c);
        }
        return Ue;
      }
      function J0(n) {
        if (n.thisParameter) return _r(n.thisParameter);
      }
      function nm(n) {
        if (!n.resolvedTypePredicate) {
          if (n.target) {
            const a = nm(n.target);
            n.resolvedTypePredicate = a ? M8e(a, n.mapper) : fn;
          } else if (n.compositeSignatures)
            n.resolvedTypePredicate =
              Jct(n.compositeSignatures, n.compositeKind) || fn;
          else {
            const a = n.declaration && kp(n.declaration);
            let c;
            if (!a) {
              const p = TL(n.declaration);
              p && n !== p && (c = nm(p));
            }
            if (a || c)
              n.resolvedTypePredicate = a && HI(a) ? Jlt(a, n) : c || fn;
            else if (
              n.declaration &&
              Ms(n.declaration) &&
              (!n.resolvedReturnType || n.resolvedReturnType.flags & 16) &&
              Ap(n) > 0
            ) {
              const { declaration: p } = n;
              ((n.resolvedTypePredicate = fn),
                (n.resolvedTypePredicate = Lht(p) || fn));
            } else n.resolvedTypePredicate = fn;
          }
          C.assert(!!n.resolvedTypePredicate);
        }
        return n.resolvedTypePredicate === fn
          ? void 0
          : n.resolvedTypePredicate;
      }
      function Jlt(n, a) {
        const c = n.parameterName,
          p = n.type && Ji(n.type);
        return c.kind === 198
          ? MW(n.assertsModifier ? 2 : 0, void 0, void 0, p)
          : MW(
              n.assertsModifier ? 3 : 1,
              c.escapedText,
              ho(a.parameters, (m) => m.escapedName === c.escapedText),
              p,
            );
      }
      function bWe(n, a, c) {
        return a !== 2097152 ? pi(n, c) : Ma(n);
      }
      function fs(n) {
        if (!n.resolvedReturnType) {
          if (!g_(n, 3)) return nt;
          let a = n.target
            ? io(fs(n.target), n.mapper)
            : n.compositeSignatures
              ? io(
                  bWe(Vt(n.compositeSignatures, fs), n.compositeKind, 2),
                  n.mapper,
                )
              : BC(n.declaration) ||
                (Ol(n.declaration.body) ? Ue : T$(n.declaration));
          if (
            (n.flags & 8 ? (a = aFe(a)) : n.flags & 16 && (a = hT(a)), !rt())
          ) {
            if (n.declaration) {
              const c = kp(n.declaration);
              if (c)
                Qe(c, f.Return_type_annotation_circularly_references_itself);
              else if (ve) {
                const p = n.declaration,
                  m = Oo(p);
                m
                  ? Qe(
                      m,
                      f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,
                      ws(m),
                    )
                  : Qe(
                      p,
                      f.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,
                    );
              }
            }
            a = Ue;
          }
          n.resolvedReturnType ?? (n.resolvedReturnType = a);
        }
        return n.resolvedReturnType;
      }
      function BC(n) {
        if (n.kind === 177) return tm(os(n.parent.symbol));
        const a = kp(n);
        if (fv(n)) {
          const c = tD(n);
          if (c && Ml(c.parent) && !a) return tm(os(c.parent.parent.symbol));
        }
        if (bI(n)) return Ji(n.parameters[0].type);
        if (a) return Ji(a);
        if (n.kind === 178 && FC(n)) {
          const c = Ir(n) && cs(n);
          if (c) return c;
          const p = al(Wr(n), 179),
            m = mL(p);
          if (m) return m;
        }
        return qlt(n);
      }
      function rY(n) {
        return (
          (n.compositeSignatures && yt(n.compositeSignatures, rY)) ||
          (!n.resolvedReturnType && ee(n, 3) >= 0)
        );
      }
      function Klt(n) {
        return TWe(n) || Ue;
      }
      function TWe(n) {
        if (su(n)) {
          const a = _r(n.parameters[n.parameters.length - 1]),
            c = Ka(a) ? kY(a) : a;
          return c && q0(c, Bt);
        }
      }
      function PW(n, a, c, p) {
        const m = Mhe(n, Bv(a, n.typeParameters, Z_(n.typeParameters), c));
        if (p) {
          const v = $6e(fs(m));
          if (v) {
            const I = RW(v);
            I.typeParameters = p;
            const w = TA(I);
            w.mapper = m.mapper;
            const U = RW(m);
            return ((U.resolvedReturnType = w), U);
          }
        }
        return m;
      }
      function Mhe(n, a) {
        const c = n.instantiations || (n.instantiations = new Map()),
          p = Lm(a);
        let m = c.get(p);
        return (m || c.set(p, (m = iY(n, a))), m);
      }
      function iY(n, a) {
        return DA(n, Xlt(n, a), !0);
      }
      function SWe(n) {
        return Zi(n.typeParameters, (a) => (a.mapper ? io(a, a.mapper) : a));
      }
      function Xlt(n, a) {
        return Yp(SWe(n), a);
      }
      function LW(n) {
        return n.typeParameters
          ? n.erasedSignatureCache || (n.erasedSignatureCache = Ylt(n))
          : n;
      }
      function Ylt(n) {
        return DA(n, C8e(n.typeParameters), !0);
      }
      function $lt(n) {
        return n.typeParameters
          ? n.canonicalSignatureCache || (n.canonicalSignatureCache = Qlt(n))
          : n;
      }
      function Qlt(n) {
        return PW(
          n,
          Vt(n.typeParameters, (a) =>
            a.target && !Uu(a.target) ? a.target : a,
          ),
          Ir(n.declaration),
        );
      }
      function Zlt(n) {
        const a = n.typeParameters;
        if (a) {
          if (n.baseSignatureCache) return n.baseSignatureCache;
          const c = C8e(a),
            p = Yp(
              a,
              Vt(a, (v) => Uu(v) || Nt),
            );
          let m = Vt(a, (v) => io(v, p) || Nt);
          for (let v = 0; v < a.length - 1; v++) m = Wy(m, p);
          return ((m = Wy(m, c)), (n.baseSignatureCache = DA(n, Yp(a, m), !0)));
        }
        return n;
      }
      function TA(n) {
        var a, c;
        if (!n.isolatedSignatureType) {
          const p = (a = n.declaration) == null ? void 0 : a.kind,
            m = p === void 0 || p === 177 || p === 181 || p === 186,
            v = hc(134217744, (c = n.declaration) == null ? void 0 : c.symbol);
          ((v.members = k),
            (v.properties = ae),
            (v.callSignatures = m ? ae : [n]),
            (v.constructSignatures = m ? [n] : ae),
            (v.indexInfos = ae),
            (n.isolatedSignatureType = v));
        }
        return n.isolatedSignatureType;
      }
      function oY(n) {
        return n.members ? aY($_(n)) : void 0;
      }
      function aY(n) {
        return n.get("__index");
      }
      function jg(n, a, c, p, m) {
        return {
          keyType: n,
          type: a,
          isReadonly: c,
          declaration: p,
          components: m,
        };
      }
      function EWe(n) {
        const a = oY(n);
        return a ? sY(a, Co($_(n).values())) : ae;
      }
      function sY(n, a = n.parent ? Co($_(n.parent).values()) : void 0) {
        if (n.declarations) {
          const c = [];
          let p = !1,
            m = !0,
            v = !1,
            I = !0,
            w = !1,
            U = !0;
          const H = [];
          for (const Ie of n.declarations)
            if (Mb(Ie)) {
              if (Ie.parameters.length === 1) {
                const Te = Ie.parameters[0];
                Te.type &&
                  kA(Ji(Te.type), (Ze) => {
                    lY(Ze) &&
                      !bL(c, Ze) &&
                      c.push(jg(Ze, Ie.type ? Ji(Ie.type) : Ue, wp(Ie, 8), Ie));
                  });
              }
            } else if (JOe(Ie)) {
              const Te = Nr(Ie) ? Ie.left : Ie.name,
                Ze = Ws(Te) ? Vl(Te.argumentExpression) : th(Te);
              if (bL(c, Ze)) continue;
              aa(Ze, Ii) &&
                (aa(Ze, Bt)
                  ? ((p = !0), u1(Ie) || (m = !1))
                  : aa(Ze, Qt)
                    ? ((v = !0), u1(Ie) || (I = !1))
                    : ((w = !0), u1(Ie) || (U = !1)),
                H.push(Ie.symbol));
            }
          const Q = so(
            H,
            Un(a, (Ie) => Ie !== n),
          );
          return (
            w && !bL(c, gt) && c.push(e8(U, 0, Q, gt)),
            p && !bL(c, Bt) && c.push(e8(m, 0, Q, Bt)),
            v && !bL(c, Qt) && c.push(e8(I, 0, Q, Qt)),
            c
          );
        }
        return ae;
      }
      function lY(n) {
        return (
          !!(n.flags & 4108) ||
          AA(n) ||
          (!!(n.flags & 2097152) && !X0(n) && yt(n.types, lY))
        );
      }
      function cY(n) {
        return Ui(Un(n.symbol && n.symbol.declarations, sl), WR)[0];
      }
      function AWe(n, a) {
        var c;
        let p;
        if ((c = n.symbol) != null && c.declarations) {
          for (const m of n.symbol.declarations)
            if (m.parent.kind === 196) {
              const [v = m.parent, I] = bne(m.parent.parent);
              if (I.kind === 184 && !a) {
                const w = I,
                  U = aye(w);
                if (U) {
                  const H = w.typeArguments.indexOf(v);
                  if (H < U.length) {
                    const Q = Uu(U[H]);
                    if (Q) {
                      const Ie = c_e(
                          U,
                          U.map((Ze, Tt) => () => P_t(w, U, Tt)),
                        ),
                        Te = io(Q, Ie);
                      Te !== n && (p = Bn(p, Te));
                    }
                  }
                }
              } else if (
                (I.kind === 170 && I.dotDotDotToken) ||
                I.kind === 192 ||
                (I.kind === 203 && I.dotDotDotToken)
              )
                p = Bn(p, Yd(Nt));
              else if (I.kind === 205) p = Bn(p, gt);
              else if (I.kind === 169 && I.parent.kind === 201) p = Bn(p, Ii);
              else if (
                I.kind === 201 &&
                I.type &&
                us(I.type) === m.parent &&
                I.parent.kind === 195 &&
                I.parent.extendsType === I &&
                I.parent.checkType.kind === 201 &&
                I.parent.checkType.type
              ) {
                const w = I.parent.checkType,
                  U = Ji(w.type);
                p = Bn(
                  p,
                  io(
                    U,
                    DE(
                      U0(Wr(w.typeParameter)),
                      w.typeParameter.constraint
                        ? Ji(w.typeParameter.constraint)
                        : Ii,
                    ),
                  ),
                );
              }
            }
        }
        return p && Ma(p);
      }
      function SL(n) {
        if (!n.constraint)
          if (n.target) {
            const a = Uu(n.target);
            n.constraint = a ? io(a, n.mapper) : Hl;
          } else {
            const a = cY(n);
            if (!a) n.constraint = AWe(n) || Hl;
            else {
              let c = Ji(a);
              (c.flags & 1 &&
                !pr(c) &&
                (c = a.parent.parent.kind === 201 ? Ii : Nt),
                (n.constraint = c));
            }
          }
        return n.constraint === Hl ? void 0 : n.constraint;
      }
      function IWe(n) {
        const a = al(n.symbol, 169),
          c = bm(a.parent) ? a6(a.parent) : a.parent;
        return c && If(c);
      }
      function Lm(n) {
        let a = "";
        if (n) {
          const c = n.length;
          let p = 0;
          for (; p < c; ) {
            const m = n[p].id;
            let v = 1;
            for (; p + v < c && n[p + v].id === m + v; ) v++;
            (a.length && (a += ","),
              (a += m),
              v > 1 && (a += ":" + v),
              (p += v));
          }
        }
        return a;
      }
      function SA(n, a) {
        return n ? `@${Ta(n)}` + (a ? `:${Lm(a)}` : "") : "";
      }
      function Xz(n, a) {
        let c = 0;
        for (const p of n) (a === void 0 || !(p.flags & a)) && (c |= Hr(p));
        return c & 458752;
      }
      function GC(n, a) {
        return yt(a) && n === Zt ? Nt : Ly(n, a);
      }
      function Ly(n, a) {
        const c = Lm(a);
        let p = n.instantiations.get(c);
        return (
          p ||
            ((p = hc(4, n.symbol)),
            n.instantiations.set(c, p),
            (p.objectFlags |= a ? Xz(a) : 0),
            (p.target = n),
            (p.resolvedTypeArguments = a)),
          p
        );
      }
      function xWe(n) {
        const a = wi(n.flags, n.symbol);
        return (
          (a.objectFlags = n.objectFlags),
          (a.target = n.target),
          (a.resolvedTypeArguments = n.resolvedTypeArguments),
          a
        );
      }
      function Phe(n, a, c, p, m) {
        if (!p) {
          p = iR(a);
          const I = HC(p);
          m = c ? Wy(I, c) : I;
        }
        const v = hc(4, n.symbol);
        return (
          (v.target = n),
          (v.node = a),
          (v.mapper = c),
          (v.aliasSymbol = p),
          (v.aliasTypeArguments = m),
          v
        );
      }
      function rl(n) {
        var a, c;
        if (!n.resolvedTypeArguments) {
          if (!g_(n, 5))
            return (
              so(
                n.target.outerTypeParameters,
                (a = n.target.localTypeParameters) == null
                  ? void 0
                  : a.map(() => nt),
              ) || ae
            );
          const p = n.node,
            m = p
              ? p.kind === 184
                ? so(
                    n.target.outerTypeParameters,
                    R$(p, n.target.localTypeParameters),
                  )
                : p.kind === 189
                  ? [Ji(p.elementType)]
                  : Vt(p.elements, Ji)
              : ae;
          rt()
            ? (n.resolvedTypeArguments ??
              (n.resolvedTypeArguments = n.mapper ? Wy(m, n.mapper) : m))
            : (n.resolvedTypeArguments ??
                (n.resolvedTypeArguments = so(
                  n.target.outerTypeParameters,
                  ((c = n.target.localTypeParameters) == null
                    ? void 0
                    : c.map(() => nt)) || ae,
                )),
              Qe(
                n.node || R,
                n.target.symbol
                  ? f.Type_arguments_for_0_circularly_reference_themselves
                  : f.Tuple_type_arguments_circularly_reference_themselves,
                n.target.symbol && uo(n.target.symbol),
              ));
        }
        return n.resolvedTypeArguments;
      }
      function Gv(n) {
        return et(n.target.typeParameters);
      }
      function RWe(n, a) {
        const c = qs(os(a)),
          p = c.localTypeParameters;
        if (p) {
          const m = et(n.typeArguments),
            v = Z_(p),
            I = Ir(n);
          if (!(!ve && I) && (m < v || m > p.length)) {
            const H = I && dy(n) && !QI(n.parent),
              Q =
                v === p.length
                  ? H
                    ? f.Expected_0_type_arguments_provide_these_with_an_extends_tag
                    : f.Generic_type_0_requires_1_type_argument_s
                  : H
                    ? f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag
                    : f.Generic_type_0_requires_between_1_and_2_type_arguments,
              Ie = ar(c, void 0, 2);
            if ((Qe(n, Q, Ie, v, p.length), !I)) return nt;
          }
          if (n.kind === 184 && YWe(n, et(n.typeArguments) !== p.length))
            return Phe(c, n, void 0);
          const U = so(c.outerTypeParameters, Bv(Yz(n), p, v, I));
          return Ly(c, U);
        }
        return K0(n, a) ? c : nt;
      }
      function VC(n, a, c, p) {
        const m = qs(n);
        if (m === Oe) {
          const H = OU.get(n.escapedName);
          if (H !== void 0 && a && a.length === 1)
            return H === 4 ? Lhe(a[0]) : rR(n, a[0]);
        }
        const v = Jr(n),
          I = v.typeParameters,
          w = Lm(a) + SA(c, p);
        let U = v.instantiations.get(w);
        return (
          U ||
            v.instantiations.set(
              w,
              (U = k8e(
                m,
                Yp(I, Bv(a, I, Z_(I), Ir(n.valueDeclaration))),
                c,
                p,
              )),
            ),
          U
        );
      }
      function ect(n, a) {
        if (Wl(a) & 1048576) {
          const m = Yz(n),
            v = SA(a, m);
          let I = dt.get(v);
          return (
            I ||
              ((I = Li(1, "error", void 0, `alias ${v}`)),
              (I.aliasSymbol = a),
              (I.aliasTypeArguments = m),
              dt.set(v, I)),
            I
          );
        }
        const c = qs(a),
          p = Jr(a).typeParameters;
        if (p) {
          const m = et(n.typeArguments),
            v = Z_(p);
          if (m < v || m > p.length)
            return (
              Qe(
                n,
                v === p.length
                  ? f.Generic_type_0_requires_1_type_argument_s
                  : f.Generic_type_0_requires_between_1_and_2_type_arguments,
                uo(a),
                v,
                p.length,
              ),
              nt
            );
          const I = iR(n);
          let w = I && (DWe(a) || !DWe(I)) ? I : void 0,
            U;
          if (w) U = HC(w);
          else if (RF(n)) {
            const H = EL(n, 2097152, !0);
            if (H && H !== ne) {
              const Q = ud(H);
              Q &&
                Q.flags & 524288 &&
                ((w = Q), (U = Yz(n) || (p ? [] : void 0)));
            }
          }
          return VC(a, Yz(n), w, U);
        }
        return K0(n, a) ? c : nt;
      }
      function DWe(n) {
        var a;
        const c = (a = n.declarations) == null ? void 0 : a.find(Sk);
        return !!(c && df(c));
      }
      function tct(n) {
        switch (n.kind) {
          case 184:
            return n.typeName;
          case 234:
            const a = n.expression;
            if (Ds(a)) return a;
        }
      }
      function CWe(n) {
        return n.parent ? `${CWe(n.parent)}.${n.escapedName}` : n.escapedName;
      }
      function dY(n) {
        const c = (n.kind === 167 ? n.right : n.kind === 212 ? n.name : n)
          .escapedText;
        if (c) {
          const p =
              n.kind === 167
                ? dY(n.left)
                : n.kind === 212
                  ? dY(n.expression)
                  : void 0,
            m = p ? `${CWe(p)}.${c}` : c;
          let v = it.get(m);
          return (
            v ||
              (it.set(m, (v = ja(524288, c, 1048576))),
              (v.parent = p),
              (v.links.declaredType = Kt)),
            v
          );
        }
        return ne;
      }
      function EL(n, a, c) {
        const p = tct(n);
        if (!p) return ne;
        const m = Gl(p, a, c);
        return m && m !== ne ? m : c ? ne : dY(p);
      }
      function uY(n, a) {
        if (a === ne) return nt;
        if (((a = Gx(a) || a), a.flags & 96)) return RWe(n, a);
        if (a.flags & 524288) return ect(n, a);
        const c = BOe(a);
        if (c) return K0(n, a) ? Cu(c) : nt;
        if (a.flags & 111551 && pY(n)) {
          const p = nct(n, a);
          return p || (EL(n, 788968), _r(a));
        }
        return nt;
      }
      function nct(n, a) {
        const c = Vr(n);
        if (!c.resolvedJSDocType) {
          const p = _r(a);
          let m = p;
          if (a.valueDeclaration) {
            const v = n.kind === 206 && n.qualifier;
            p.symbol && p.symbol !== a && v && (m = uY(n, p.symbol));
          }
          c.resolvedJSDocType = m;
        }
        return c.resolvedJSDocType;
      }
      function Lhe(n) {
        return khe(n) ? NWe(n, Nt) : n;
      }
      function khe(n) {
        return !!(
          (n.flags & 3145728 && yt(n.types, khe)) ||
          (n.flags & 33554432 && !jC(n) && khe(n.baseType)) ||
          (n.flags & 524288 && !tg(n)) ||
          (n.flags & 432275456 && !AA(n))
        );
      }
      function jC(n) {
        return !!(n.flags & 33554432 && n.constraint.flags & 2);
      }
      function whe(n, a) {
        return a.flags & 3 || a === n || n.flags & 1 ? n : NWe(n, a);
      }
      function NWe(n, a) {
        const c = `${pd(n)}>${pd(a)}`,
          p = Ia.get(c);
        if (p) return p;
        const m = vi(33554432);
        return ((m.baseType = n), (m.constraint = a), Ia.set(c, m), m);
      }
      function Ohe(n) {
        return jC(n) ? n.baseType : Ma([n.constraint, n.baseType]);
      }
      function MWe(n) {
        return n.kind === 190 && n.elements.length === 1;
      }
      function PWe(n, a, c) {
        return MWe(a) && MWe(c)
          ? PWe(n, a.elements[0], c.elements[0])
          : Oy(Ji(a)) === Oy(n)
            ? Ji(c)
            : void 0;
      }
      function rct(n, a) {
        let c,
          p = !0;
        for (; a && !Vi(a) && a.kind !== 321; ) {
          const m = a.parent;
          if (
            (m.kind === 170 && (p = !p),
            (p || n.flags & 8650752) && m.kind === 195 && a === m.trueType)
          ) {
            const v = PWe(n, m.checkType, m.extendsType);
            v && (c = Bn(c, v));
          } else if (
            n.flags & 262144 &&
            m.kind === 201 &&
            !m.nameType &&
            a === m.type
          ) {
            const v = Ji(m);
            if (eh(v) === Oy(n)) {
              const I = FW(v);
              if (I) {
                const w = Uu(I);
                w && Ep(w, Q0) && (c = Bn(c, pi([Bt, zo])));
              }
            }
          }
          a = m;
        }
        return c ? whe(n, Ma(c)) : n;
      }
      function pY(n) {
        return !!(n.flags & 16777216) && (n.kind === 184 || n.kind === 206);
      }
      function K0(n, a) {
        return n.typeArguments
          ? (Qe(
              n,
              f.Type_0_is_not_generic,
              a ? uo(a) : n.typeName ? ws(n.typeName) : PU,
            ),
            !1)
          : !0;
      }
      function LWe(n) {
        if (He(n.typeName)) {
          const a = n.typeArguments;
          switch (n.typeName.escapedText) {
            case "String":
              return (K0(n), gt);
            case "Number":
              return (K0(n), Bt);
            case "BigInt":
              return (K0(n), gr);
            case "Boolean":
              return (K0(n), jt);
            case "Void":
              return (K0(n), In);
            case "Undefined":
              return (K0(n), he);
            case "Null":
              return (K0(n), Xt);
            case "Function":
            case "function":
              return (K0(n), er);
            case "array":
              return (!a || !a.length) && !ve ? bd : void 0;
            case "promise":
              return (!a || !a.length) && !ve ? V5(Ue) : void 0;
            case "Object":
              if (a && a.length === 2) {
                if (n6(n)) {
                  const c = Ji(a[0]),
                    p = Ji(a[1]),
                    m = c === gt || c === Bt ? [jg(c, p, !1)] : ae;
                  return bl(void 0, k, ae, ae, m);
                }
                return Ue;
              }
              return (K0(n), ve ? void 0 : Ue);
          }
        }
      }
      function ict(n) {
        const a = Ji(n.type);
        return ie ? h5(a, 65536) : a;
      }
      function fY(n) {
        const a = Vr(n);
        if (!a.resolvedType) {
          if (Om(n) && yS(n.parent))
            return (
              (a.resolvedSymbol = ne),
              (a.resolvedType = Vl(n.parent.expression))
            );
          let c, p;
          const m = 788968;
          (pY(n) &&
            ((p = LWe(n)),
            p ||
              ((c = EL(n, m, !0)),
              c === ne ? (c = EL(n, m | 111551)) : EL(n, m),
              (p = uY(n, c)))),
            p || ((c = EL(n, m)), (p = uY(n, c))),
            (a.resolvedSymbol = c),
            (a.resolvedType = p));
        }
        return a.resolvedType;
      }
      function Yz(n) {
        return Vt(n.typeArguments, Ji);
      }
      function kWe(n) {
        const a = Vr(n);
        if (!a.resolvedType) {
          const c = y4e(n);
          a.resolvedType = Cu($p(c));
        }
        return a.resolvedType;
      }
      function wWe(n, a) {
        function c(m) {
          const v = m.declarations;
          if (v)
            for (const I of v)
              switch (I.kind) {
                case 264:
                case 265:
                case 267:
                  return I;
              }
        }
        if (!n) return a ? Zt : Ra;
        const p = qs(n);
        return p.flags & 524288
          ? et(p.typeParameters) !== a
            ? (Qe(c(n), f.Global_type_0_must_have_1_type_parameter_s, wl(n), a),
              a ? Zt : Ra)
            : p
          : (Qe(c(n), f.Global_type_0_must_be_a_class_or_interface_type, wl(n)),
            a ? Zt : Ra);
      }
      function Whe(n, a) {
        return UC(n, 111551, a ? f.Cannot_find_global_value_0 : void 0);
      }
      function Fhe(n, a) {
        return UC(n, 788968, a ? f.Cannot_find_global_type_0 : void 0);
      }
      function mY(n, a, c) {
        const p = UC(n, 788968, c ? f.Cannot_find_global_type_0 : void 0);
        if (p && (qs(p), et(Jr(p).typeParameters) !== a)) {
          const m = p.declarations && hn(p.declarations, vm);
          Qe(m, f.Global_type_0_must_have_1_type_parameter_s, wl(p), a);
          return;
        }
        return p;
      }
      function UC(n, a, c) {
        return _t(void 0, n, a, c, !1, !1);
      }
      function Jl(n, a, c) {
        const p = Fhe(n, c);
        return p || c ? wWe(p, a) : void 0;
      }
      function OWe(n, a) {
        let c;
        for (const p of n) c = Bn(c, Jl(p, a, !1));
        return c ?? ae;
      }
      function oct() {
        return Ng || (Ng = Jl("TypedPropertyDescriptor", 1, !0) || Zt);
      }
      function act() {
        return yo || (yo = Jl("TemplateStringsArray", 0, !0) || Ra);
      }
      function WWe() {
        return ta || (ta = Jl("ImportMeta", 0, !0) || Ra);
      }
      function FWe() {
        if (!Eo) {
          const n = ja(0, "ImportMetaExpression"),
            a = WWe(),
            c = ja(4, "meta", 8);
          ((c.parent = n), (c.links.type = a));
          const p = da([c]);
          ((n.members = p), (Eo = bl(n, p, ae, ae, ae)));
        }
        return Eo;
      }
      function zWe(n) {
        return Vo || (Vo = Jl("ImportCallOptions", 0, n)) || Ra;
      }
      function zhe(n) {
        return ml || (ml = Jl("ImportAttributes", 0, n)) || Ra;
      }
      function BWe(n) {
        return Xf || (Xf = Whe("Symbol", n));
      }
      function sct(n) {
        return G_ || (G_ = Fhe("SymbolConstructor", n));
      }
      function GWe() {
        return Cg || (Cg = Jl("Symbol", 0, !1)) || Ra;
      }
      function $z(n) {
        return ap || (ap = Jl("Promise", 1, n)) || Zt;
      }
      function VWe(n) {
        return Xc || (Xc = Jl("PromiseLike", 1, n)) || Zt;
      }
      function Bhe(n) {
        return bh || (bh = Whe("Promise", n));
      }
      function lct(n) {
        return Tf || (Tf = Jl("PromiseConstructorLike", 0, n)) || Ra;
      }
      function Qz(n) {
        return ti || (ti = Jl("AsyncIterable", 3, n)) || Zt;
      }
      function cct(n) {
        return Ti || (Ti = Jl("AsyncIterator", 3, n)) || Zt;
      }
      function jWe(n) {
        return $i || ($i = Jl("AsyncIterableIterator", 3, n)) || Zt;
      }
      function dct() {
        return Ve ?? (Ve = OWe(["ReadableStreamAsyncIterator"], 1));
      }
      function uct(n) {
        return kt || (kt = Jl("AsyncIteratorObject", 3, n)) || Zt;
      }
      function pct(n) {
        return On || (On = Jl("AsyncGenerator", 3, n)) || Zt;
      }
      function hY(n) {
        return p_ || (p_ = Jl("Iterable", 3, n)) || Zt;
      }
      function fct(n) {
        return oe || (oe = Jl("Iterator", 3, n)) || Zt;
      }
      function UWe(n) {
        return ut || (ut = Jl("IterableIterator", 3, n)) || Zt;
      }
      function Ghe() {
        return fe ? he : Ue;
      }
      function mct() {
        return (
          z ??
          (z = OWe(
            ["ArrayIterator", "MapIterator", "SetIterator", "StringIterator"],
            1,
          ))
        );
      }
      function hct(n) {
        return tn || (tn = Jl("IteratorObject", 3, n)) || Zt;
      }
      function _ct(n) {
        return an || (an = Jl("Generator", 3, n)) || Zt;
      }
      function gct(n) {
        return wn || (wn = Jl("IteratorYieldResult", 1, n)) || Zt;
      }
      function yct(n) {
        return or || (or = Jl("IteratorReturnResult", 1, n)) || Zt;
      }
      function HWe(n) {
        return Ca || (Ca = Jl("Disposable", 0, n)) || Ra;
      }
      function vct(n) {
        return cd || (cd = Jl("AsyncDisposable", 0, n)) || Ra;
      }
      function qWe(n, a = 0) {
        const c = UC(n, 788968, void 0);
        return c && wWe(c, a);
      }
      function bct() {
        return (
          Up || (Up = mY("Extract", 2, !0) || ne),
          Up === ne ? void 0 : Up
        );
      }
      function Tct() {
        return (Sf || (Sf = mY("Omit", 2, !0) || ne), Sf === ne ? void 0 : Sf);
      }
      function Vhe(n) {
        return (
          Yf || (Yf = mY("Awaited", 1, n) || (n ? ne : void 0)),
          Yf === ne ? void 0 : Yf
        );
      }
      function Sct() {
        return Ty || (Ty = Jl("BigInt", 0, !1)) || Ra;
      }
      function Ect(n) {
        return V_ ?? (V_ = Jl("ClassDecoratorContext", 1, n)) ?? Zt;
      }
      function Act(n) {
        return Th ?? (Th = Jl("ClassMethodDecoratorContext", 2, n)) ?? Zt;
      }
      function Ict(n) {
        return Im ?? (Im = Jl("ClassGetterDecoratorContext", 2, n)) ?? Zt;
      }
      function xct(n) {
        return Hb ?? (Hb = Jl("ClassSetterDecoratorContext", 2, n)) ?? Zt;
      }
      function Rct(n) {
        return Xe ?? (Xe = Jl("ClassAccessorDecoratorContext", 2, n)) ?? Zt;
      }
      function Dct(n) {
        return mt ?? (mt = Jl("ClassAccessorDecoratorTarget", 2, n)) ?? Zt;
      }
      function Cct(n) {
        return Yt ?? (Yt = Jl("ClassAccessorDecoratorResult", 2, n)) ?? Zt;
      }
      function Nct(n) {
        return Rn ?? (Rn = Jl("ClassFieldDecoratorContext", 2, n)) ?? Zt;
      }
      function Mct() {
        return Tv || (Tv = Whe("NaN", !1));
      }
      function Pct() {
        return (
          Bu || (Bu = mY("Record", 2, !0) || ne),
          Bu === ne ? void 0 : Bu
        );
      }
      function AL(n, a) {
        return n !== Zt ? Ly(n, a) : Ra;
      }
      function JWe(n) {
        return AL(oct(), [n]);
      }
      function KWe(n) {
        return AL(hY(!0), [n, In, he]);
      }
      function Yd(n, a) {
        return AL(a ? Va : es, [n]);
      }
      function jhe(n) {
        switch (n.kind) {
          case 191:
            return 2;
          case 192:
            return XWe(n);
          case 203:
            return n.questionToken ? 2 : n.dotDotDotToken ? XWe(n) : 1;
          default:
            return 1;
        }
      }
      function XWe(n) {
        return i5(n.type) ? 4 : 8;
      }
      function Lct(n) {
        const a = Oct(n.parent);
        if (i5(n)) return a ? Va : es;
        const p = Vt(n.elements, jhe);
        return Uhe(p, a, Vt(n.elements, kct));
      }
      function kct(n) {
        return bD(n) || to(n) ? n : void 0;
      }
      function YWe(n, a) {
        return (
          !!iR(n) ||
          ($We(n) &&
            (n.kind === 189
              ? dT(n.elementType)
              : n.kind === 190
                ? yt(n.elements, dT)
                : a || yt(n.typeArguments, dT)))
        );
      }
      function $We(n) {
        const a = n.parent;
        switch (a.kind) {
          case 197:
          case 203:
          case 184:
          case 193:
          case 194:
          case 200:
          case 195:
          case 199:
          case 189:
          case 190:
            return $We(a);
          case 266:
            return !0;
        }
        return !1;
      }
      function dT(n) {
        switch (n.kind) {
          case 184:
            return pY(n) || !!(EL(n, 788968).flags & 524288);
          case 187:
            return !0;
          case 199:
            return n.operator !== 158 && dT(n.type);
          case 197:
          case 191:
          case 203:
          case 317:
          case 315:
          case 316:
          case 310:
            return dT(n.type);
          case 192:
            return n.type.kind !== 189 || dT(n.type.elementType);
          case 193:
          case 194:
            return yt(n.types, dT);
          case 200:
            return dT(n.objectType) || dT(n.indexType);
          case 195:
            return (
              dT(n.checkType) ||
              dT(n.extendsType) ||
              dT(n.trueType) ||
              dT(n.falseType)
            );
        }
        return !1;
      }
      function wct(n) {
        const a = Vr(n);
        if (!a.resolvedType) {
          const c = Lct(n);
          if (c === Zt) a.resolvedType = Ra;
          else if (
            !(n.kind === 190 && yt(n.elements, (p) => !!(jhe(p) & 8))) &&
            YWe(n)
          )
            a.resolvedType =
              n.kind === 190 && n.elements.length === 0 ? c : Phe(c, n, void 0);
          else {
            const p = n.kind === 189 ? [Ji(n.elementType)] : Vt(n.elements, Ji);
            a.resolvedType = Hhe(c, p);
          }
        }
        return a.resolvedType;
      }
      function Oct(n) {
        return KT(n) && n.operator === 148;
      }
      function eg(n, a, c = !1, p = []) {
        const m = Uhe(a || Vt(n, (v) => 1), c, p);
        return m === Zt ? Ra : n.length ? Hhe(m, n) : m;
      }
      function Uhe(n, a, c) {
        if (n.length === 1 && n[0] & 4) return a ? Va : es;
        const p =
          Vt(n, (v) => (v & 1 ? "#" : v & 2 ? "?" : v & 4 ? "." : "*")).join() +
          (a ? "R" : "") +
          (yt(c, (v) => !!v)
            ? "," + Vt(c, (v) => (v ? ls(v) : "_")).join(",")
            : "");
        let m = Ni.get(p);
        return (m || Ni.set(p, (m = Wct(n, a, c))), m);
      }
      function Wct(n, a, c) {
        const p = n.length,
          m = Io(n, (Ie) => !!(Ie & 9));
        let v;
        const I = [];
        let w = 0;
        if (p) {
          v = new Array(p);
          for (let Ie = 0; Ie < p; Ie++) {
            const Te = (v[Ie] = Vu()),
              Ze = n[Ie];
            if (((w |= Ze), !(w & 12))) {
              const Tt = ja(4 | (Ze & 2 ? 16777216 : 0), "" + Ie, a ? 8 : 0);
              ((Tt.links.tupleLabelDeclaration = c?.[Ie]),
                (Tt.links.type = Te),
                I.push(Tt));
            }
          }
        }
        const U = I.length,
          H = ja(4, "length", a ? 8 : 0);
        if (w & 12) H.links.type = Bt;
        else {
          const Ie = [];
          for (let Te = m; Te <= p; Te++) Ie.push(Ch(Te));
          H.links.type = pi(Ie);
        }
        I.push(H);
        const Q = hc(12);
        return (
          (Q.typeParameters = v),
          (Q.outerTypeParameters = void 0),
          (Q.localTypeParameters = v),
          (Q.instantiations = new Map()),
          Q.instantiations.set(Lm(Q.typeParameters), Q),
          (Q.target = Q),
          (Q.resolvedTypeArguments = Q.typeParameters),
          (Q.thisType = Vu()),
          (Q.thisType.isThisType = !0),
          (Q.thisType.constraint = Q),
          (Q.declaredProperties = I),
          (Q.declaredCallSignatures = ae),
          (Q.declaredConstructSignatures = ae),
          (Q.declaredIndexInfos = ae),
          (Q.elementFlags = n),
          (Q.minLength = m),
          (Q.fixedLength = U),
          (Q.hasRestElement = !!(w & 12)),
          (Q.combinedFlags = w),
          (Q.readonly = a),
          (Q.labeledElementDeclarations = c),
          Q
        );
      }
      function Hhe(n, a) {
        return n.objectFlags & 8 ? qhe(n, a) : Ly(n, a);
      }
      function qhe(n, a) {
        var c, p, m, v;
        if (!(n.combinedFlags & 14)) return Ly(n, a);
        if (n.combinedFlags & 8) {
          const Tt = ho(
            a,
            (Dt, $t) => !!(n.elementFlags[$t] & 8 && Dt.flags & 1179648),
          );
          if (Tt >= 0)
            return e5(Vt(a, (Dt, $t) => (n.elementFlags[$t] & 8 ? Dt : Nt)))
              ? Tl(a[Tt], (Dt) => qhe(n, GB(a, Tt, Dt)))
              : nt;
        }
        const I = [],
          w = [],
          U = [];
        let H = -1,
          Q = -1,
          Ie = -1;
        for (let Tt = 0; Tt < a.length; Tt++) {
          const Dt = a[Tt],
            $t = n.elementFlags[Tt];
          if ($t & 8)
            if (Dt.flags & 1)
              Ze(
                Dt,
                4,
                (c = n.labeledElementDeclarations) == null ? void 0 : c[Tt],
              );
            else if (Dt.flags & 58982400 || up(Dt))
              Ze(
                Dt,
                8,
                (p = n.labeledElementDeclarations) == null ? void 0 : p[Tt],
              );
            else if (Ka(Dt)) {
              const Tn = IE(Dt);
              if (Tn.length + I.length >= 1e4)
                return (
                  Qe(
                    R,
                    Hh(R)
                      ? f.Type_produces_a_tuple_type_that_is_too_large_to_represent
                      : f.Expression_produces_a_tuple_type_that_is_too_large_to_represent,
                  ),
                  nt
                );
              Ye(Tn, (nr, yr) => {
                var Sn;
                return Ze(
                  nr,
                  Dt.target.elementFlags[yr],
                  (Sn = Dt.target.labeledElementDeclarations) == null
                    ? void 0
                    : Sn[yr],
                );
              });
            } else
              Ze(
                (jv(Dt) && q0(Dt, Bt)) || nt,
                4,
                (m = n.labeledElementDeclarations) == null ? void 0 : m[Tt],
              );
          else
            Ze(
              Dt,
              $t,
              (v = n.labeledElementDeclarations) == null ? void 0 : v[Tt],
            );
        }
        for (let Tt = 0; Tt < H; Tt++) w[Tt] & 2 && (w[Tt] = 1);
        Q >= 0 &&
          Q < Ie &&
          ((I[Q] = pi(
            Zi(I.slice(Q, Ie + 1), (Tt, Dt) =>
              w[Q + Dt] & 8 ? Xp(Tt, Bt) : Tt,
            ),
          )),
          I.splice(Q + 1, Ie - Q),
          w.splice(Q + 1, Ie - Q),
          U.splice(Q + 1, Ie - Q));
        const Te = Uhe(w, n.readonly, U);
        return Te === Zt ? Ra : w.length ? Ly(Te, I) : Te;
        function Ze(Tt, Dt, $t) {
          (Dt & 1 && (H = w.length),
            Dt & 4 && Q < 0 && (Q = w.length),
            Dt & 6 && (Ie = w.length),
            I.push(Dt & 2 ? pu(Tt, !0) : Tt),
            w.push(Dt),
            U.push($t));
        }
      }
      function IL(n, a, c = 0) {
        const p = n.target,
          m = Gv(n) - c;
        return a > p.fixedLength
          ? Aut(n) || eg(ae)
          : eg(
              rl(n).slice(a, m),
              p.elementFlags.slice(a, m),
              !1,
              p.labeledElementDeclarations &&
                p.labeledElementDeclarations.slice(a, m),
            );
      }
      function QWe(n) {
        return pi(
          Bn(
            UQ(n.target.fixedLength, (a) => Sp("" + a)),
            b_(n.target.readonly ? Va : es),
          ),
        );
      }
      function Fct(n, a) {
        const c = ho(n.elementFlags, (p) => !(p & a));
        return c >= 0 ? c : n.elementFlags.length;
      }
      function kW(n, a) {
        return n.elementFlags.length - gl(n.elementFlags, (c) => !(c & a)) - 1;
      }
      function Jhe(n) {
        return n.fixedLength + kW(n, 3);
      }
      function IE(n) {
        const a = rl(n),
          c = Gv(n);
        return a.length === c ? a : a.slice(0, c);
      }
      function zct(n) {
        return pu(Ji(n.type), !0);
      }
      function pd(n) {
        return n.id;
      }
      function Ug(n, a) {
        return Zv(n, a, pd, js) >= 0;
      }
      function Zz(n, a) {
        const c = Zv(n, a, pd, js);
        return c < 0 ? (n.splice(~c, 0, a), !0) : !1;
      }
      function Bct(n, a, c) {
        const p = c.flags;
        if (!(p & 131072))
          if (
            ((a |= p & 473694207),
            p & 465829888 && (a |= 33554432),
            p & 2097152 && Hr(c) & 67108864 && (a |= 536870912),
            c === It && (a |= 8388608),
            pr(c) && (a |= 1073741824),
            !ie && p & 98304)
          )
            Hr(c) & 65536 || (a |= 4194304);
          else {
            const m = n.length,
              v = m && c.id > n[m - 1].id ? ~m : Zv(n, c, pd, js);
            v < 0 && n.splice(~v, 0, c);
          }
        return a;
      }
      function ZWe(n, a, c) {
        let p;
        for (const m of c)
          m !== p &&
            ((a =
              m.flags & 1048576
                ? ZWe(n, a | (qct(m) ? 1048576 : 0), m.types)
                : Bct(n, a, m)),
            (p = m));
        return a;
      }
      function Gct(n, a) {
        var c;
        if (n.length < 2) return n;
        const p = Lm(n),
          m = Mn.get(p);
        if (m) return m;
        const v =
            a && yt(n, (H) => !!(H.flags & 524288) && !up(H) && g_e(Dh(H))),
          I = n.length;
        let w = I,
          U = 0;
        for (; w > 0; ) {
          w--;
          const H = n[w];
          if (v || H.flags & 469499904) {
            if (H.flags & 262144 && v_(H).flags & 1048576) {
              T_(H, pi(Vt(n, (Te) => (Te === H ? yn : Te))), cl) && ib(n, w);
              continue;
            }
            const Q =
                H.flags & 61603840 ? hn(bs(H), (Te) => Nh(_r(Te))) : void 0,
              Ie = Q && Cu(_r(Q));
            for (const Te of n)
              if (H !== Te) {
                if (U === 1e5 && (U / (I - w)) * I > 1e6) {
                  ((c = xr) == null ||
                    c.instant(
                      xr.Phase.CheckTypes,
                      "removeSubtypes_DepthLimit",
                      { typeIds: n.map((Tt) => Tt.id) },
                    ),
                    Qe(
                      R,
                      f.Expression_produces_a_union_type_that_is_too_complex_to_represent,
                    ));
                  return;
                }
                if ((U++, Q && Te.flags & 61603840)) {
                  const Ze = _n(Te, Q.escapedName);
                  if (Ze && Nh(Ze) && Cu(Ze) !== Ie) continue;
                }
                if (
                  T_(H, Te, cl) &&
                  (!(Hr(zn(H)) & 1) || !(Hr(zn(Te)) & 1) || $0(H, Te))
                ) {
                  ib(n, w);
                  break;
                }
              }
          }
        }
        return (Mn.set(p, n), n);
      }
      function Vct(n, a, c) {
        let p = n.length;
        for (; p > 0; ) {
          p--;
          const m = n[p],
            v = m.flags;
          ((v & 402653312 && a & 4) ||
            (v & 256 && a & 8) ||
            (v & 2048 && a & 64) ||
            (v & 8192 && a & 4096) ||
            (c && v & 32768 && a & 16384) ||
            (RE(m) && Ug(n, m.regularType))) &&
            ib(n, p);
        }
      }
      function jct(n) {
        const a = Un(n, AA);
        if (a.length) {
          let c = n.length;
          for (; c > 0; ) {
            c--;
            const p = n[c];
            p.flags & 128 && yt(a, (m) => Uct(p, m)) && ib(n, c);
          }
        }
      }
      function Uct(n, a) {
        return a.flags & 134217728 ? UY(n, a) : jY(n, a);
      }
      function Hct(n) {
        const a = [];
        for (const c of n)
          if (c.flags & 2097152 && Hr(c) & 67108864) {
            const p = c.types[0].flags & 8650752 ? 0 : 1;
            kf(a, c.types[p]);
          }
        for (const c of a) {
          const p = [];
          for (const v of n)
            if (v.flags & 2097152 && Hr(v) & 67108864) {
              const I = v.types[0].flags & 8650752 ? 0 : 1;
              v.types[I] === c && Zz(p, v.types[1 - I]);
            }
          const m = Ld(c);
          if (Ep(m, (v) => Ug(p, v))) {
            let v = n.length;
            for (; v > 0; ) {
              v--;
              const I = n[v];
              if (I.flags & 2097152 && Hr(I) & 67108864) {
                const w = I.types[0].flags & 8650752 ? 0 : 1;
                I.types[w] === c && Ug(p, I.types[1 - w]) && ib(n, v);
              }
            }
            Zz(n, c);
          }
        }
      }
      function qct(n) {
        return !!(n.flags & 1048576 && (n.aliasSymbol || n.origin));
      }
      function e8e(n, a) {
        for (const c of a)
          if (c.flags & 1048576) {
            const p = c.origin;
            c.aliasSymbol || (p && !(p.flags & 1048576))
              ? kf(n, c)
              : p && p.flags & 1048576 && e8e(n, p.types);
          }
      }
      function Khe(n, a) {
        const c = Ao(n);
        return ((c.types = a), c);
      }
      function pi(n, a = 1, c, p, m) {
        if (n.length === 0) return yn;
        if (n.length === 1) return n[0];
        if (
          n.length === 2 &&
          !m &&
          (n[0].flags & 1048576 || n[1].flags & 1048576)
        ) {
          const v = a === 0 ? "N" : a === 2 ? "S" : "L",
            I = n[0].id < n[1].id ? 0 : 1,
            w = n[I].id + v + n[1 - I].id + SA(c, p);
          let U = Ci.get(w);
          return (U || ((U = t8e(n, a, c, p, void 0)), Ci.set(w, U)), U);
        }
        return t8e(n, a, c, p, m);
      }
      function t8e(n, a, c, p, m) {
        let v = [];
        const I = ZWe(v, 0, n);
        if (a !== 0) {
          if (I & 3)
            return I & 1 ? (I & 8388608 ? It : I & 1073741824 ? nt : Ue) : Nt;
          if (
            (I & 32768 &&
              v.length >= 2 &&
              v[0] === he &&
              v[1] === Ae &&
              ib(v, 1),
            (I & 402664352 || (I & 16384 && I & 32768)) && Vct(v, I, !!(a & 2)),
            I & 128 && I & 402653184 && jct(v),
            I & 536870912 && Hct(v),
            a === 2 && ((v = Gct(v, !!(I & 524288))), !v))
          )
            return nt;
          if (v.length === 0)
            return I & 65536
              ? I & 4194304
                ? Xt
                : Pe
              : I & 32768
                ? I & 4194304
                  ? he
                  : B
                : yn;
        }
        if (!m && I & 1048576) {
          const U = [];
          e8e(U, n);
          const H = [];
          for (const Ie of v) yt(U, (Te) => Ug(Te.types, Ie)) || H.push(Ie);
          if (!c && U.length === 1 && H.length === 0) return U[0];
          if (
            gu(U, (Ie, Te) => Ie + Te.types.length, 0) + H.length ===
            v.length
          ) {
            for (const Ie of U) Zz(H, Ie);
            m = Khe(1048576, H);
          }
        }
        const w = (I & 36323331 ? 0 : 32768) | (I & 2097152 ? 16777216 : 0);
        return Yhe(v, w, c, p, m);
      }
      function Jct(n, a) {
        let c;
        const p = [];
        for (const v of n) {
          const I = nm(v);
          if (I) {
            if ((I.kind !== 0 && I.kind !== 1) || (c && !Xhe(c, I))) return;
            ((c = I), p.push(I.type));
          } else {
            const w = a !== 2097152 ? fs(v) : void 0;
            if (w !== tr && w !== Jn) return;
          }
        }
        if (!c) return;
        const m = bWe(p, a);
        return MW(c.kind, c.parameterName, c.parameterIndex, m);
      }
      function Xhe(n, a) {
        return n.kind === a.kind && n.parameterIndex === a.parameterIndex;
      }
      function Yhe(n, a, c, p, m) {
        if (n.length === 0) return yn;
        if (n.length === 1) return n[0];
        const I =
          (m
            ? m.flags & 1048576
              ? `|${Lm(m.types)}`
              : m.flags & 2097152
                ? `&${Lm(m.types)}`
                : `#${m.type.id}|${Lm(n)}`
            : Lm(n)) + SA(c, p);
        let w = Pr.get(I);
        return (
          w ||
            ((w = vi(1048576)),
            (w.objectFlags = a | Xz(n, 98304)),
            (w.types = n),
            (w.origin = m),
            (w.aliasSymbol = c),
            (w.aliasTypeArguments = p),
            n.length === 2 &&
              n[0].flags & 512 &&
              n[1].flags & 512 &&
              ((w.flags |= 16), (w.intrinsicName = "boolean")),
            Pr.set(I, w)),
          w
        );
      }
      function Kct(n) {
        const a = Vr(n);
        if (!a.resolvedType) {
          const c = iR(n);
          a.resolvedType = pi(Vt(n.types, Ji), 1, c, HC(c));
        }
        return a.resolvedType;
      }
      function Xct(n, a, c) {
        const p = c.flags;
        return p & 2097152
          ? n8e(n, a, c.types)
          : (tg(c)
              ? a & 16777216 || ((a |= 16777216), n.set(c.id.toString(), c))
              : (p & 3
                  ? (c === It && (a |= 8388608), pr(c) && (a |= 1073741824))
                  : (ie || !(p & 98304)) &&
                    (c === Ae && ((a |= 262144), (c = he)),
                    n.has(c.id.toString()) ||
                      (c.flags & 109472 && a & 109472 && (a |= 67108864),
                      n.set(c.id.toString(), c))),
                (a |= p & 473694207)),
            a);
      }
      function n8e(n, a, c) {
        for (const p of c) a = Xct(n, a, Cu(p));
        return a;
      }
      function Yct(n, a) {
        let c = n.length;
        for (; c > 0; ) {
          c--;
          const p = n[c];
          ((p.flags & 4 && a & 402653312) ||
            (p.flags & 8 && a & 256) ||
            (p.flags & 64 && a & 2048) ||
            (p.flags & 4096 && a & 8192) ||
            (p.flags & 16384 && a & 32768) ||
            (tg(p) && a & 470302716)) &&
            ib(n, c);
        }
      }
      function $ct(n, a) {
        for (const c of n)
          if (!Ug(c.types, a)) {
            if (a === Ae) return Ug(c.types, he);
            if (a === he) return Ug(c.types, Ae);
            const p =
              a.flags & 128
                ? gt
                : a.flags & 288
                  ? Bt
                  : a.flags & 2048
                    ? gr
                    : a.flags & 8192
                      ? Qt
                      : void 0;
            if (!p || !Ug(c.types, p)) return !1;
          }
        return !0;
      }
      function Qct(n) {
        let a = n.length;
        const c = Un(n, (p) => !!(p.flags & 128));
        for (; a > 0; ) {
          a--;
          const p = n[a];
          if (p.flags & 402653184) {
            for (const m of c)
              if (CE(m, p)) {
                ib(n, a);
                break;
              } else if (AA(p)) return !0;
          }
        }
        return !1;
      }
      function r8e(n, a) {
        for (let c = 0; c < n.length; c++)
          n[c] = Ec(n[c], (p) => !(p.flags & a));
      }
      function Zct(n) {
        let a;
        const c = ho(n, (I) => !!(Hr(I) & 32768));
        if (c < 0) return !1;
        let p = c + 1;
        for (; p < n.length; ) {
          const I = n[p];
          Hr(I) & 32768 ? ((a || (a = [n[c]])).push(I), ib(n, p)) : p++;
        }
        if (!a) return !1;
        const m = [],
          v = [];
        for (const I of a)
          for (const w of I.types)
            if (Zz(m, w) && $ct(a, w)) {
              if (w === he && v.length && v[0] === Ae) continue;
              if (w === Ae && v.length && v[0] === he) {
                v[0] = Ae;
                continue;
              }
              Zz(v, w);
            }
        return ((n[c] = Yhe(v, 32768)), !0);
      }
      function edt(n, a, c, p) {
        const m = vi(2097152);
        return (
          (m.objectFlags = a | Xz(n, 98304)),
          (m.types = n),
          (m.aliasSymbol = c),
          (m.aliasTypeArguments = p),
          m
        );
      }
      function Ma(n, a = 0, c, p) {
        const m = new Map(),
          v = n8e(m, 0, n),
          I = Co(m.values());
        let w = 0;
        if (v & 131072) return jn(I, wt) ? wt : yn;
        if (
          (ie && v & 98304 && v & 84410368) ||
          (v & 67108864 && v & 402783228) ||
          (v & 402653316 && v & 67238776) ||
          (v & 296 && v & 469891796) ||
          (v & 2112 && v & 469889980) ||
          (v & 12288 && v & 469879804) ||
          (v & 49152 && v & 469842940) ||
          (v & 402653184 && v & 128 && Qct(I))
        )
          return yn;
        if (v & 1) return v & 8388608 ? It : v & 1073741824 ? nt : Ue;
        if (!ie && v & 98304) return v & 16777216 ? yn : v & 32768 ? he : Xt;
        if (
          (((v & 4 && v & 402653312) ||
            (v & 8 && v & 256) ||
            (v & 64 && v & 2048) ||
            (v & 4096 && v & 8192) ||
            (v & 16384 && v & 32768) ||
            (v & 16777216 && v & 470302716)) &&
            (a & 1 || Yct(I, v)),
          v & 262144 && (I[I.indexOf(he)] = Ae),
          I.length === 0)
        )
          return Nt;
        if (I.length === 1) return I[0];
        if (I.length === 2 && !(a & 2)) {
          const Q = I[0].flags & 8650752 ? 0 : 1,
            Ie = I[Q],
            Te = I[1 - Q];
          if (
            Ie.flags & 8650752 &&
            ((Te.flags & 469893116 && !m8e(Te)) || v & 16777216)
          ) {
            const Ze = Ld(Ie);
            if (Ze && Ep(Ze, (Tt) => !!(Tt.flags & 469893116) || tg(Tt))) {
              if (xL(Ze, Te)) return Ie;
              if (
                !(Ze.flags & 1048576 && am(Ze, (Tt) => xL(Tt, Te))) &&
                !xL(Te, Ze)
              )
                return yn;
              w = 67108864;
            }
          }
        }
        const U = Lm(I) + (a & 2 ? "*" : SA(c, p));
        let H = $e.get(U);
        if (!H) {
          if (v & 1048576)
            if (Zct(I)) H = Ma(I, a, c, p);
            else if (
              Vn(I, (Q) => !!(Q.flags & 1048576 && Q.types[0].flags & 32768))
            ) {
              const Q = yt(I, HW) ? Ae : he;
              (r8e(I, 32768), (H = pi([Ma(I, a), Q], 1, c, p)));
            } else if (
              Vn(
                I,
                (Q) =>
                  !!(
                    Q.flags & 1048576 &&
                    (Q.types[0].flags & 65536 || Q.types[1].flags & 65536)
                  ),
              )
            )
              (r8e(I, 65536), (H = pi([Ma(I, a), Xt], 1, c, p)));
            else if (I.length >= 3 && n.length > 2) {
              const Q = Math.floor(I.length / 2);
              H = Ma([Ma(I.slice(0, Q), a), Ma(I.slice(Q), a)], a, c, p);
            } else {
              if (!e5(I)) return nt;
              const Q = tdt(I, a),
                Ie =
                  yt(Q, (Te) => !!(Te.flags & 2097152)) && $he(Q) > $he(I)
                    ? Khe(2097152, I)
                    : void 0;
              H = pi(Q, 1, c, p, Ie);
            }
          else H = edt(I, w, c, p);
          $e.set(U, H);
        }
        return H;
      }
      function i8e(n) {
        return gu(
          n,
          (a, c) =>
            c.flags & 1048576 ? a * c.types.length : c.flags & 131072 ? 0 : a,
          1,
        );
      }
      function e5(n) {
        var a;
        const c = i8e(n);
        return c >= 1e5
          ? ((a = xr) == null ||
              a.instant(
                xr.Phase.CheckTypes,
                "checkCrossProductUnion_DepthLimit",
                { typeIds: n.map((p) => p.id), size: c },
              ),
            Qe(
              R,
              f.Expression_produces_a_union_type_that_is_too_complex_to_represent,
            ),
            !1)
          : !0;
      }
      function tdt(n, a) {
        const c = i8e(n),
          p = [];
        for (let m = 0; m < c; m++) {
          const v = n.slice();
          let I = m;
          for (let U = n.length - 1; U >= 0; U--)
            if (n[U].flags & 1048576) {
              const H = n[U].types,
                Q = H.length;
              ((v[U] = H[I % Q]), (I = Math.floor(I / Q)));
            }
          const w = Ma(v, a);
          w.flags & 131072 || p.push(w);
        }
        return p;
      }
      function o8e(n) {
        return !(n.flags & 3145728) || n.aliasSymbol
          ? 1
          : n.flags & 1048576 && n.origin
            ? o8e(n.origin)
            : $he(n.types);
      }
      function $he(n) {
        return gu(n, (a, c) => a + o8e(c), 0);
      }
      function ndt(n) {
        const a = Vr(n);
        if (!a.resolvedType) {
          const c = iR(n),
            p = Vt(n.types, Ji),
            m = p.length === 2 ? p.indexOf(fa) : -1,
            v = m >= 0 ? p[1 - m] : Nt,
            I = !!(v.flags & 76 || (v.flags & 134217728 && AA(v)));
          a.resolvedType = Ma(p, I ? 1 : 0, c, HC(c));
        }
        return a.resolvedType;
      }
      function a8e(n, a) {
        const c = vi(4194304);
        return ((c.type = n), (c.indexFlags = a), c);
      }
      function rdt(n) {
        const a = Ao(4194304);
        return ((a.type = n), a);
      }
      function s8e(n, a) {
        return a & 1
          ? n.resolvedStringIndexType || (n.resolvedStringIndexType = a8e(n, 1))
          : n.resolvedIndexType || (n.resolvedIndexType = a8e(n, 0));
      }
      function l8e(n, a) {
        const c = eh(n),
          p = Rf(n),
          m = Fv(n.target || n);
        if (!m && !(a & 2)) return p;
        const v = [];
        if (xA(p)) {
          if (zC(n)) return s8e(n, a);
          kA(p, w);
        } else if (zC(n)) {
          const U = Du(H0(n));
          yhe(U, 8576, !!(a & 1), w);
        } else kA(Uz(p), w);
        const I = a & 2 ? Ec(pi(v), (U) => !(U.flags & 5)) : pi(v);
        if (
          I.flags & 1048576 &&
          p.flags & 1048576 &&
          Lm(I.types) === Lm(p.types)
        )
          return p;
        return I;
        function w(U) {
          const H = m ? io(m, WW(n.mapper, c, U)) : U;
          v.push(H === gt ? ln : H);
        }
      }
      function idt(n) {
        const a = eh(n);
        return c(Fv(n) || a);
        function c(p) {
          return p.flags & 470810623
            ? !0
            : p.flags & 16777216
              ? p.root.isDistributive && p.checkType === a
              : p.flags & 137363456
                ? Vn(p.types, c)
                : p.flags & 8388608
                  ? c(p.objectType) && c(p.indexType)
                  : p.flags & 33554432
                    ? c(p.baseType) && c(p.constraint)
                    : p.flags & 268435456
                      ? c(p.type)
                      : !1;
        }
      }
      function ky(n) {
        if (eo(n)) return yn;
        if (np(n)) return Cu(_o(n));
        if (va(n)) return Cu(th(n));
        const a = c1(n);
        return a !== void 0 ? Sp(Gi(a)) : St(n) ? Cu(_o(n)) : yn;
      }
      function nR(n, a, c) {
        if (c || !(Vf(n) & 6)) {
          let p = Jr(eY(n)).nameType;
          if (!p) {
            const m = Oo(n.valueDeclaration);
            p =
              n.escapedName === "default"
                ? Sp("default")
                : (m && ky(m)) || (sM(n) ? void 0 : Sp(wl(n)));
          }
          if (p && p.flags & a) return p;
        }
        return yn;
      }
      function c8e(n, a) {
        return !!(
          n.flags & a ||
          (n.flags & 2097152 && yt(n.types, (c) => c8e(c, a)))
        );
      }
      function odt(n, a, c) {
        const p = c && (Hr(n) & 7 || n.aliasSymbol) ? rdt(n) : void 0,
          m = Vt(bs(n), (I) => nR(I, a)),
          v = Vt(Xd(n), (I) =>
            I !== ro && c8e(I.keyType, a)
              ? I.keyType === gt && a & 8
                ? ln
                : I.keyType
              : yn,
          );
        return pi(so(m, v), 1, void 0, void 0, p);
      }
      function Qhe(n, a = 0) {
        return !!(
          n.flags & 58982400 ||
          mT(n) ||
          (up(n) && (!idt(n) || DW(n) === 2)) ||
          (n.flags & 1048576 && !(a & 4) && Ahe(n)) ||
          (n.flags & 2097152 && tc(n, 465829888) && yt(n.types, tg))
        );
      }
      function b_(n, a = 0) {
        return (
          (n = Pm(n)),
          jC(n)
            ? Lhe(b_(n.baseType, a))
            : Qhe(n, a)
              ? s8e(n, a)
              : n.flags & 1048576
                ? Ma(Vt(n.types, (c) => b_(c, a)))
                : n.flags & 2097152
                  ? pi(Vt(n.types, (c) => b_(c, a)))
                  : Hr(n) & 32
                    ? l8e(n, a)
                    : n === It
                      ? It
                      : n.flags & 2
                        ? yn
                        : n.flags & 131073
                          ? Ii
                          : odt(
                              n,
                              (a & 2 ? 128 : 402653316) | (a & 1 ? 0 : 12584),
                              a === 0,
                            )
        );
      }
      function d8e(n) {
        const a = bct();
        return a ? VC(a, [n, gt]) : gt;
      }
      function adt(n) {
        const a = d8e(b_(n));
        return a.flags & 131072 ? gt : a;
      }
      function sdt(n) {
        const a = Vr(n);
        if (!a.resolvedType)
          switch (n.operator) {
            case 143:
              a.resolvedType = b_(Ji(n.type));
              break;
            case 158:
              a.resolvedType = n.type.kind === 155 ? s_e(Ik(n.parent)) : nt;
              break;
            case 148:
              a.resolvedType = Ji(n.type);
              break;
            default:
              C.assertNever(n.operator);
          }
        return a.resolvedType;
      }
      function ldt(n) {
        const a = Vr(n);
        return (
          a.resolvedType ||
            (a.resolvedType = EA(
              [n.head.text, ...Vt(n.templateSpans, (c) => c.literal.text)],
              Vt(n.templateSpans, (c) => Ji(c.type)),
            )),
          a.resolvedType
        );
      }
      function EA(n, a) {
        const c = ho(a, (H) => !!(H.flags & 1179648));
        if (c >= 0) return e5(a) ? Tl(a[c], (H) => EA(n, GB(a, c, H))) : nt;
        if (jn(a, It)) return It;
        const p = [],
          m = [];
        let v = n[0];
        if (!U(n, a)) return gt;
        if (p.length === 0) return Sp(v);
        if ((m.push(v), Vn(m, (H) => H === ""))) {
          if (Vn(p, (H) => !!(H.flags & 4))) return gt;
          if (p.length === 1 && AA(p[0])) return p[0];
        }
        const I = `${Lm(p)}|${Vt(m, (H) => H.length).join(",")}|${m.join("")}`;
        let w = qi.get(I);
        return (w || qi.set(I, (w = ddt(m, p))), w);
        function U(H, Q) {
          for (let Ie = 0; Ie < Q.length; Ie++) {
            const Te = Q[Ie];
            if (Te.flags & 101248) ((v += cdt(Te) || ""), (v += H[Ie + 1]));
            else if (Te.flags & 134217728) {
              if (((v += Te.texts[0]), !U(Te.texts, Te.types))) return !1;
              v += H[Ie + 1];
            } else if (xA(Te) || t5(Te))
              (p.push(Te), m.push(v), (v = H[Ie + 1]));
            else return !1;
          }
          return !0;
        }
      }
      function cdt(n) {
        return n.flags & 128
          ? n.value
          : n.flags & 256
            ? "" + n.value
            : n.flags & 2048
              ? wS(n.value)
              : n.flags & 98816
                ? n.intrinsicName
                : void 0;
      }
      function ddt(n, a) {
        const c = vi(134217728);
        return ((c.texts = n), (c.types = a), c);
      }
      function rR(n, a) {
        return a.flags & 1179648
          ? Tl(a, (c) => rR(n, c))
          : a.flags & 128
            ? Sp(u8e(n, a.value))
            : a.flags & 134217728
              ? EA(...udt(n, a.texts, a.types))
              : a.flags & 268435456 && n === a.symbol
                ? a
                : a.flags & 268435461 || xA(a)
                  ? p8e(n, a)
                  : t5(a)
                    ? p8e(n, EA(["", ""], [a]))
                    : a;
      }
      function u8e(n, a) {
        switch (OU.get(n.escapedName)) {
          case 0:
            return a.toUpperCase();
          case 1:
            return a.toLowerCase();
          case 2:
            return a.charAt(0).toUpperCase() + a.slice(1);
          case 3:
            return a.charAt(0).toLowerCase() + a.slice(1);
        }
        return a;
      }
      function udt(n, a, c) {
        switch (OU.get(n.escapedName)) {
          case 0:
            return [a.map((p) => p.toUpperCase()), c.map((p) => rR(n, p))];
          case 1:
            return [a.map((p) => p.toLowerCase()), c.map((p) => rR(n, p))];
          case 2:
            return [
              a[0] === ""
                ? a
                : [a[0].charAt(0).toUpperCase() + a[0].slice(1), ...a.slice(1)],
              a[0] === "" ? [rR(n, c[0]), ...c.slice(1)] : c,
            ];
          case 3:
            return [
              a[0] === ""
                ? a
                : [a[0].charAt(0).toLowerCase() + a[0].slice(1), ...a.slice(1)],
              a[0] === "" ? [rR(n, c[0]), ...c.slice(1)] : c,
            ];
        }
        return [a, c];
      }
      function p8e(n, a) {
        const c = `${Ta(n)},${pd(a)}`;
        let p = $o.get(c);
        return (p || $o.set(c, (p = pdt(n, a))), p);
      }
      function pdt(n, a) {
        const c = wi(268435456, n);
        return ((c.type = a), c);
      }
      function fdt(n, a, c, p, m) {
        const v = vi(8388608);
        return (
          (v.objectType = n),
          (v.indexType = a),
          (v.accessFlags = c),
          (v.aliasSymbol = p),
          (v.aliasTypeArguments = m),
          v
        );
      }
      function wW(n) {
        if (ve) return !1;
        if (Hr(n) & 4096) return !0;
        if (n.flags & 1048576) return Vn(n.types, wW);
        if (n.flags & 2097152) return yt(n.types, wW);
        if (n.flags & 465829888) {
          const a = The(n);
          return a !== n && wW(a);
        }
        return !1;
      }
      function _Y(n, a) {
        return jf(n) ? Uf(n) : a && vc(a) ? c1(a) : void 0;
      }
      function Zhe(n, a) {
        if (a.flags & 8208) {
          const c = Dn(n.parent, (p) => !Ks(p)) || n.parent;
          return gS(c)
            ? Gh(c) && He(n) && AFe(c, n)
            : Vn(a.declarations, (p) => !Yo(p) || Sh(p));
        }
        return !0;
      }
      function f8e(n, a, c, p, m, v) {
        const I = m && m.kind === 213 ? m : void 0,
          w = m && eo(m) ? void 0 : _Y(c, m);
        if (w !== void 0) {
          if (v & 256) return tS(a, w) || Ue;
          const H = Ea(a, w);
          if (H) {
            if (v & 64 && m && H.declarations && xu(H) && Zhe(m, H)) {
              const Ie = I?.argumentExpression ?? (BS(m) ? m.indexType : m);
              Cm(Ie, H.declarations, w);
            }
            if (I) {
              if ((w5(H, I, H6e(I.expression, a.symbol)), L4e(I, H, bb(I)))) {
                Qe(
                  I.argumentExpression,
                  f.Cannot_assign_to_0_because_it_is_a_read_only_property,
                  uo(H),
                );
                return;
              }
              if ((v & 8 && (Vr(m).resolvedSymbol = H), W6e(I, H))) return Rt;
            }
            const Q = v & 4 ? Wv(H) : _r(H);
            return I && bb(I) !== 1
              ? Vy(I, Q)
              : m && BS(m) && HW(Q)
                ? pi([Q, he])
                : Q;
          }
          if (Ep(a, Ka) && Eg(w)) {
            const Q = +w;
            if (
              m &&
              Ep(a, (Ie) => !(Ie.target.combinedFlags & 12)) &&
              !(v & 16)
            ) {
              const Ie = e_e(m);
              if (Ka(a)) {
                if (Q < 0)
                  return (
                    Qe(
                      Ie,
                      f.A_tuple_type_cannot_be_indexed_with_a_negative_value,
                    ),
                    he
                  );
                Qe(
                  Ie,
                  f.Tuple_type_0_of_length_1_has_no_element_at_index_2,
                  ar(a),
                  Gv(a),
                  Gi(w),
                );
              } else
                Qe(Ie, f.Property_0_does_not_exist_on_type_1, Gi(w), ar(a));
            }
            if (Q >= 0) return (U(Vg(a, Bt)), rFe(a, Q, v & 1 ? Ae : void 0));
          }
        }
        if (!(c.flags & 98304) && kd(c, 402665900)) {
          if (a.flags & 131073) return a;
          const H = CW(a, c) || Vg(a, gt);
          if (H) {
            if (v & 2 && H.keyType !== Bt) {
              I &&
                (v & 4
                  ? Qe(
                      I,
                      f.Type_0_is_generic_and_can_only_be_indexed_for_reading,
                      ar(n),
                    )
                  : Qe(
                      I,
                      f.Type_0_cannot_be_used_to_index_type_1,
                      ar(c),
                      ar(n),
                    ));
              return;
            }
            if (m && H.keyType === gt && !kd(c, 12)) {
              const Q = e_e(m);
              return (
                Qe(Q, f.Type_0_cannot_be_used_as_an_index_type, ar(c)),
                v & 1 ? pi([H.type, Ae]) : H.type
              );
            }
            return (
              U(H),
              v & 1 &&
              !(
                a.symbol &&
                a.symbol.flags & 384 &&
                c.symbol &&
                c.flags & 1024 &&
                Yc(c.symbol) === a.symbol
              )
                ? pi([H.type, Ae])
                : H.type
            );
          }
          if (c.flags & 131072) return yn;
          if (wW(a)) return Ue;
          if (I && !A$(a)) {
            if (Uv(a)) {
              if (ve && c.flags & 384)
                return (
                  ns.add(
                    Ar(
                      I,
                      f.Property_0_does_not_exist_on_type_1,
                      c.value,
                      ar(a),
                    ),
                  ),
                  he
                );
              if (c.flags & 12) {
                const Q = Vt(a.properties, (Ie) => _r(Ie));
                return pi(Bn(Q, he));
              }
            }
            if (
              a.symbol === Re &&
              w !== void 0 &&
              Re.exports.has(w) &&
              Re.exports.get(w).flags & 418
            )
              Qe(I, f.Property_0_does_not_exist_on_type_1, Gi(w), ar(a));
            else if (ve && !(v & 128))
              if (w !== void 0 && B6e(w, a)) {
                const Q = ar(a);
                Qe(
                  I,
                  f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,
                  w,
                  Q,
                  Q + "[" + Al(I.argumentExpression) + "]",
                );
              } else if (q0(a, Bt))
                Qe(
                  I.argumentExpression,
                  f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number,
                );
              else {
                let Q;
                if (w !== void 0 && (Q = j6e(w, a)))
                  Q !== void 0 &&
                    Qe(
                      I.argumentExpression,
                      f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,
                      w,
                      ar(a),
                      Q,
                    );
                else {
                  const Ie = bmt(a, I, c);
                  if (Ie !== void 0)
                    Qe(
                      I,
                      f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,
                      ar(a),
                      Ie,
                    );
                  else {
                    let Te;
                    if (c.flags & 1024)
                      Te = qo(
                        void 0,
                        f.Property_0_does_not_exist_on_type_1,
                        "[" + ar(c) + "]",
                        ar(a),
                      );
                    else if (c.flags & 8192) {
                      const Ze = Nv(c.symbol, I);
                      Te = qo(
                        void 0,
                        f.Property_0_does_not_exist_on_type_1,
                        "[" + Ze + "]",
                        ar(a),
                      );
                    } else
                      c.flags & 128 || c.flags & 256
                        ? (Te = qo(
                            void 0,
                            f.Property_0_does_not_exist_on_type_1,
                            c.value,
                            ar(a),
                          ))
                        : c.flags & 12 &&
                          (Te = qo(
                            void 0,
                            f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,
                            ar(c),
                            ar(a),
                          ));
                    ((Te = qo(
                      Te,
                      f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,
                      ar(p),
                      ar(a),
                    )),
                      ns.add(hg(Wn(I), I, Te)));
                  }
                }
              }
            return;
          }
        }
        if (v & 16 && Uv(a)) return he;
        if (wW(a)) return Ue;
        if (m) {
          const H = e_e(m);
          if (H.kind !== 10 && c.flags & 384)
            Qe(H, f.Property_0_does_not_exist_on_type_1, "" + c.value, ar(a));
          else if (c.flags & 12)
            Qe(
              H,
              f.Type_0_has_no_matching_index_signature_for_type_1,
              ar(a),
              ar(c),
            );
          else {
            const Q = H.kind === 10 ? "bigint" : ar(c);
            Qe(H, f.Type_0_cannot_be_used_as_an_index_type, Q);
          }
        }
        if (wr(c)) return c;
        return;
        function U(H) {
          H &&
            H.isReadonly &&
            I &&
            (Tb(I) || GG(I)) &&
            Qe(I, f.Index_signature_in_type_0_only_permits_reading, ar(a));
        }
      }
      function e_e(n) {
        return n.kind === 213
          ? n.argumentExpression
          : n.kind === 200
            ? n.indexType
            : n.kind === 168
              ? n.expression
              : n;
      }
      function t5(n) {
        if (n.flags & 2097152) {
          let a = !1;
          for (const c of n.types)
            if (c.flags & 101248 || t5(c)) a = !0;
            else if (!(c.flags & 524288)) return !1;
          return a;
        }
        return !!(n.flags & 77) || AA(n);
      }
      function AA(n) {
        return (
          (!!(n.flags & 134217728) && Vn(n.types, t5)) ||
          (!!(n.flags & 268435456) && t5(n.type))
        );
      }
      function m8e(n) {
        return !!(n.flags & 402653184) && !AA(n);
      }
      function X0(n) {
        return !!OW(n);
      }
      function IA(n) {
        return !!(OW(n) & 4194304);
      }
      function xA(n) {
        return !!(OW(n) & 8388608);
      }
      function OW(n) {
        return n.flags & 3145728
          ? (n.objectFlags & 2097152 ||
              (n.objectFlags |= 2097152 | gu(n.types, (a, c) => a | OW(c), 0)),
            n.objectFlags & 12582912)
          : n.flags & 33554432
            ? (n.objectFlags & 2097152 ||
                (n.objectFlags |= 2097152 | OW(n.baseType) | OW(n.constraint)),
              n.objectFlags & 12582912)
            : (n.flags & 58982400 || up(n) || mT(n) ? 4194304 : 0) |
              (n.flags & 63176704 || m8e(n) ? 8388608 : 0);
      }
      function wy(n, a) {
        return n.flags & 8388608
          ? hdt(n, a)
          : n.flags & 16777216
            ? _dt(n, a)
            : n;
      }
      function h8e(n, a, c) {
        if (n.flags & 1048576 || (n.flags & 2097152 && !Qhe(n))) {
          const p = Vt(n.types, (m) => wy(Xp(m, a), c));
          return n.flags & 2097152 || c ? Ma(p) : pi(p);
        }
      }
      function mdt(n, a, c) {
        if (a.flags & 1048576) {
          const p = Vt(a.types, (m) => wy(Xp(n, m), c));
          return c ? Ma(p) : pi(p);
        }
      }
      function hdt(n, a) {
        const c = a ? "simplifiedForWriting" : "simplifiedForReading";
        if (n[c]) return n[c] === sc ? n : n[c];
        n[c] = sc;
        const p = wy(n.objectType, a),
          m = wy(n.indexType, a),
          v = mdt(p, m, a);
        if (v) return (n[c] = v);
        if (!(m.flags & 465829888)) {
          const I = h8e(p, m, a);
          if (I) return (n[c] = I);
        }
        if (mT(p) && m.flags & 296) {
          const I = CL(p, m.flags & 8 ? 0 : p.target.fixedLength, 0, a);
          if (I) return (n[c] = I);
        }
        return up(p) && DW(p) !== 2
          ? (n[c] = Tl(gY(p, n.indexType), (I) => wy(I, a)))
          : (n[c] = n);
      }
      function _dt(n, a) {
        const c = n.checkType,
          p = n.extendsType,
          m = pT(n),
          v = fT(n);
        if (v.flags & 131072 && Oy(m) === Oy(c)) {
          if (c.flags & 1 || aa(CA(c), CA(p))) return wy(m, a);
          if (_8e(c, p)) return yn;
        } else if (m.flags & 131072 && Oy(v) === Oy(c)) {
          if (!(c.flags & 1) && aa(CA(c), CA(p))) return yn;
          if (c.flags & 1 || _8e(c, p)) return wy(v, a);
        }
        return n;
      }
      function _8e(n, a) {
        return !!(pi([jz(n, a), yn]).flags & 131072);
      }
      function gY(n, a) {
        const c = Yp([eh(n)], [a]),
          p = Y0(n.mapper, c),
          m = io(Gg(n.target || n), p),
          v = oWe(n) > 0 || (X0(n) ? yL(H0(n)) > 0 : gdt(n, a));
        return pu(m, !0, v);
      }
      function gdt(n, a) {
        const c = Ld(a);
        return (
          !!c && yt(bs(n), (p) => !!(p.flags & 16777216) && aa(nR(p, 8576), c))
        );
      }
      function Xp(n, a, c = 0, p, m, v) {
        return uT(n, a, c, p, m, v) || (p ? nt : Nt);
      }
      function g8e(n, a) {
        return Ep(n, (c) => {
          if (c.flags & 384) {
            const p = Uf(c);
            if (Eg(p)) {
              const m = +p;
              return m >= 0 && m < a;
            }
          }
          return !1;
        });
      }
      function uT(n, a, c = 0, p, m, v) {
        if (n === It || a === It) return It;
        if (
          ((n = Pm(n)),
          j8e(n) && !(a.flags & 98304) && kd(a, 12) && (a = gt),
          O.noUncheckedIndexedAccess && c & 32 && (c |= 1),
          xA(a) ||
            (p && p.kind !== 200
              ? mT(n) && !g8e(a, Jhe(n.target))
              : (IA(n) && !(Ka(n) && g8e(a, Jhe(n.target)))) || Ahe(n)))
        ) {
          if (n.flags & 3) return n;
          const w = c & 1,
            U = n.id + "," + a.id + "," + w + SA(m, v);
          let H = ai.get(U);
          return (H || ai.set(U, (H = fdt(n, a, w, m, v))), H);
        }
        const I = vL(n);
        if (a.flags & 1048576 && !(a.flags & 16)) {
          const w = [];
          let U = !1;
          for (const H of a.types) {
            const Q = f8e(n, I, H, a, p, c | (U ? 128 : 0));
            if (Q) w.push(Q);
            else if (p) U = !0;
            else return;
          }
          return U ? void 0 : c & 4 ? Ma(w, 0, m, v) : pi(w, 1, m, v);
        }
        return f8e(n, I, a, a, p, c | 8 | 64);
      }
      function y8e(n) {
        const a = Vr(n);
        if (!a.resolvedType) {
          const c = Ji(n.objectType),
            p = Ji(n.indexType),
            m = iR(n);
          a.resolvedType = Xp(c, p, 0, n, m, HC(m));
        }
        return a.resolvedType;
      }
      function t_e(n) {
        const a = Vr(n);
        if (!a.resolvedType) {
          const c = hc(32, n.symbol);
          ((c.declaration = n),
            (c.aliasSymbol = iR(n)),
            (c.aliasTypeArguments = HC(c.aliasSymbol)),
            (a.resolvedType = c),
            Rf(c));
        }
        return a.resolvedType;
      }
      function Oy(n) {
        return n.flags & 33554432
          ? Oy(n.baseType)
          : n.flags & 8388608 &&
              (n.objectType.flags & 33554432 || n.indexType.flags & 33554432)
            ? Xp(Oy(n.objectType), Oy(n.indexType))
            : n;
      }
      function v8e(n) {
        return (
          qI(n) &&
          et(n.elements) > 0 &&
          !yt(
            n.elements,
            (a) =>
              g4(a) ||
              y4(a) ||
              (bD(a) && !!(a.questionToken || a.dotDotDotToken)),
          )
        );
      }
      function b8e(n, a) {
        return X0(n) || (a && Ka(n) && yt(IE(n), X0));
      }
      function n_e(n, a, c, p, m) {
        let v,
          I,
          w = 0;
        for (;;) {
          if (w === 1e3)
            return (
              Qe(
                R,
                f.Type_instantiation_is_excessively_deep_and_possibly_infinite,
              ),
              nt
            );
          const H = io(Oy(n.checkType), a),
            Q = io(n.extendsType, a);
          if (H === nt || Q === nt) return nt;
          if (H === It || Q === It) return It;
          const Ie = tM(n.node.checkType),
            Te = tM(n.node.extendsType),
            Ze = v8e(Ie) && v8e(Te) && et(Ie.elements) === et(Te.elements),
            Tt = b8e(H, Ze);
          let Dt;
          if (n.inferTypeParameters) {
            const Tn = JW(n.inferTypeParameters, void 0, 0);
            (a && (Tn.nonFixingMapper = Y0(Tn.nonFixingMapper, a)),
              Tt || qg(Tn.inferences, H, Q, 1536),
              (Dt = a ? Y0(Tn.mapper, a) : Tn.mapper));
          }
          const $t = Dt ? io(n.extendsType, Dt) : Q;
          if (!Tt && !b8e($t, Ze)) {
            if (!($t.flags & 3) && (H.flags & 1 || !aa(zW(H), zW($t)))) {
              (H.flags & 1 ||
                (c &&
                  !($t.flags & 131072) &&
                  am(zW($t), (nr) => aa(nr, zW(H))))) &&
                (I || (I = [])).push(io(Ji(n.node.trueType), Dt || a));
              const Tn = Ji(n.node.falseType);
              if (Tn.flags & 16777216) {
                const nr = Tn.root;
                if (
                  nr.node.parent === n.node &&
                  (!nr.isDistributive || nr.checkType === n.checkType)
                ) {
                  n = nr;
                  continue;
                }
                if (U(Tn, a)) continue;
              }
              v = io(Tn, a);
              break;
            }
            if ($t.flags & 3 || aa(CA(H), CA($t))) {
              const Tn = Ji(n.node.trueType),
                nr = Dt || a;
              if (U(Tn, nr)) continue;
              v = io(Tn, nr);
              break;
            }
          }
          ((v = vi(16777216)),
            (v.root = n),
            (v.checkType = io(n.checkType, a)),
            (v.extendsType = io(n.extendsType, a)),
            (v.mapper = a),
            (v.combinedMapper = Dt),
            (v.aliasSymbol = p || n.aliasSymbol),
            (v.aliasTypeArguments = p ? m : Wy(n.aliasTypeArguments, a)));
          break;
        }
        return I ? pi(Bn(I, v)) : v;
        function U(H, Q) {
          if (H.flags & 16777216 && Q) {
            const Ie = H.root;
            if (Ie.outerTypeParameters) {
              const Te = Y0(H.mapper, Q),
                Ze = Vt(Ie.outerTypeParameters, ($t) => Vv($t, Te)),
                Tt = Yp(Ie.outerTypeParameters, Ze),
                Dt = Ie.isDistributive ? Vv(Ie.checkType, Tt) : void 0;
              if (!Dt || Dt === Ie.checkType || !(Dt.flags & 1179648))
                return (
                  (n = Ie),
                  (a = Tt),
                  (p = void 0),
                  (m = void 0),
                  Ie.aliasSymbol && w++,
                  !0
                );
            }
          }
          return !1;
        }
      }
      function pT(n) {
        return (
          n.resolvedTrueType ||
          (n.resolvedTrueType = io(Ji(n.root.node.trueType), n.mapper))
        );
      }
      function fT(n) {
        return (
          n.resolvedFalseType ||
          (n.resolvedFalseType = io(Ji(n.root.node.falseType), n.mapper))
        );
      }
      function ydt(n) {
        return (
          n.resolvedInferredTrueType ||
          (n.resolvedInferredTrueType = n.combinedMapper
            ? io(Ji(n.root.node.trueType), n.combinedMapper)
            : pT(n))
        );
      }
      function r_e(n) {
        let a;
        return (
          n.locals &&
            n.locals.forEach((c) => {
              c.flags & 262144 && (a = Bn(a, qs(c)));
            }),
          a
        );
      }
      function vdt(n) {
        return (
          n.isDistributive &&
          (a5(n.checkType, n.node.trueType) ||
            a5(n.checkType, n.node.falseType))
        );
      }
      function bdt(n) {
        const a = Vr(n);
        if (!a.resolvedType) {
          const c = Ji(n.checkType),
            p = iR(n),
            m = HC(p),
            v = Mi(n, !0),
            I = m ? v : Un(v, (U) => a5(U, n)),
            w = {
              node: n,
              checkType: c,
              extendsType: Ji(n.extendsType),
              isDistributive: !!(c.flags & 262144),
              inferTypeParameters: r_e(n),
              outerTypeParameters: I,
              instantiations: void 0,
              aliasSymbol: p,
              aliasTypeArguments: m,
            };
          ((a.resolvedType = n_e(w, void 0, !1)),
            I &&
              ((w.instantiations = new Map()),
              w.instantiations.set(Lm(I), a.resolvedType)));
        }
        return a.resolvedType;
      }
      function Tdt(n) {
        const a = Vr(n);
        return (
          a.resolvedType || (a.resolvedType = U0(Wr(n.typeParameter))),
          a.resolvedType
        );
      }
      function T8e(n) {
        return He(n) ? [n] : Bn(T8e(n.left), n.right);
      }
      function S8e(n) {
        var a;
        const c = Vr(n);
        if (!c.resolvedType) {
          if (!ry(n))
            return (
              Qe(n.argument, f.String_literal_expected),
              (c.resolvedSymbol = ne),
              (c.resolvedType = nt)
            );
          const p = n.isTypeOf ? 111551 : n.flags & 16777216 ? 900095 : 788968,
            m = uu(n, n.argument.literal);
          if (!m) return ((c.resolvedSymbol = ne), (c.resolvedType = nt));
          const v = !!((a = m.exports) != null && a.get("export=")),
            I = Tp(m, !1);
          if (Ol(n.qualifier))
            if (I.flags & p) c.resolvedType = E8e(n, c, I, p);
            else {
              const w =
                p === 111551
                  ? f.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here
                  : f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;
              (Qe(n, w, n.argument.literal.text),
                (c.resolvedSymbol = ne),
                (c.resolvedType = nt));
            }
          else {
            const w = T8e(n.qualifier);
            let U = I,
              H;
            for (; (H = w.shift()); ) {
              const Q = w.length ? 1920 : p,
                Ie = os(mc(U)),
                Te =
                  n.isTypeOf || (Ir(n) && v)
                    ? Ea(_r(Ie), H.escapedText, !1, !0)
                    : void 0,
                Tt = (n.isTypeOf ? void 0 : Sd(qp(Ie), H.escapedText, Q)) ?? Te;
              if (!Tt)
                return (
                  Qe(H, f.Namespace_0_has_no_exported_member_1, Nv(U), ws(H)),
                  (c.resolvedType = nt)
                );
              ((Vr(H).resolvedSymbol = Tt),
                (Vr(H.parent).resolvedSymbol = Tt),
                (U = Tt));
            }
            c.resolvedType = E8e(n, c, U, p);
          }
        }
        return c.resolvedType;
      }
      function E8e(n, a, c, p) {
        const m = mc(c);
        return (
          (a.resolvedSymbol = m),
          p === 111551 ? v4e(_r(c), n) : uY(n, m)
        );
      }
      function A8e(n) {
        const a = Vr(n);
        if (!a.resolvedType) {
          const c = iR(n);
          if (!n.symbol || ($_(n.symbol).size === 0 && !c)) a.resolvedType = fa;
          else {
            let p = hc(16, n.symbol);
            ((p.aliasSymbol = c),
              (p.aliasTypeArguments = HC(c)),
              x1(n) && n.isArrayType && (p = Yd(p)),
              (a.resolvedType = p));
          }
        }
        return a.resolvedType;
      }
      function iR(n) {
        let a = n.parent;
        for (; v1(a) || t0(a) || (KT(a) && a.operator === 148); ) a = a.parent;
        return Sk(a) ? Wr(a) : void 0;
      }
      function HC(n) {
        return n ? Na(n) : void 0;
      }
      function yY(n) {
        return !!(n.flags & 524288) && !up(n);
      }
      function i_e(n) {
        return Fy(n) || !!(n.flags & 474058748);
      }
      function o_e(n, a) {
        if (!(n.flags & 1048576)) return n;
        if (Vn(n.types, i_e)) return hn(n.types, Fy) || Ra;
        const c = hn(n.types, (v) => !i_e(v));
        if (!c || hn(n.types, (v) => v !== c && !i_e(v))) return n;
        return m(c);
        function m(v) {
          const I = da();
          for (const U of bs(v))
            if (!(Vf(U) & 6)) {
              if (vY(U)) {
                const H = U.flags & 65536 && !(U.flags & 32768),
                  Ie = ja(16777220, U.escapedName, ghe(U) | (a ? 8 : 0));
                ((Ie.links.type = H ? he : pu(_r(U), !0)),
                  (Ie.declarations = U.declarations),
                  (Ie.links.nameType = Jr(U).nameType),
                  (Ie.links.syntheticOrigin = U),
                  I.set(U.escapedName, Ie));
              }
            }
          const w = bl(v.symbol, I, ae, ae, Xd(v));
          return ((w.objectFlags |= 131200), w);
        }
      }
      function xE(n, a, c, p, m) {
        if (n.flags & 1 || a.flags & 1) return Ue;
        if (n.flags & 2 || a.flags & 2) return Nt;
        if (n.flags & 131072) return a;
        if (a.flags & 131072) return n;
        if (((n = o_e(n, m)), n.flags & 1048576))
          return e5([n, a]) ? Tl(n, (H) => xE(H, a, c, p, m)) : nt;
        if (((a = o_e(a, m)), a.flags & 1048576))
          return e5([n, a]) ? Tl(a, (H) => xE(n, H, c, p, m)) : nt;
        if (a.flags & 473960444) return n;
        if (IA(n) || IA(a)) {
          if (Fy(n)) return a;
          if (n.flags & 2097152) {
            const H = n.types,
              Q = H[H.length - 1];
            if (yY(Q) && yY(a))
              return Ma(so(H.slice(0, H.length - 1), [xE(Q, a, c, p, m)]));
          }
          return Ma([n, a]);
        }
        const v = da(),
          I = new Set(),
          w = n === Ra ? Xd(a) : eWe([n, a]);
        for (const H of bs(a))
          Vf(H) & 6
            ? I.add(H.escapedName)
            : vY(H) && v.set(H.escapedName, a_e(H, m));
        for (const H of bs(n))
          if (!(I.has(H.escapedName) || !vY(H)))
            if (v.has(H.escapedName)) {
              const Q = v.get(H.escapedName),
                Ie = _r(Q);
              if (Q.flags & 16777216) {
                const Te = so(H.declarations, Q.declarations),
                  Ze = 4 | (H.flags & 16777216),
                  Tt = ja(Ze, H.escapedName),
                  Dt = _r(H),
                  $t = WY(Dt),
                  Tn = WY(Ie);
                ((Tt.links.type = $t === Tn ? Dt : pi([Dt, Tn], 2)),
                  (Tt.links.leftSpread = H),
                  (Tt.links.rightSpread = Q),
                  (Tt.declarations = Te),
                  (Tt.links.nameType = Jr(H).nameType),
                  v.set(H.escapedName, Tt));
              }
            } else v.set(H.escapedName, a_e(H, m));
        const U = bl(
          c,
          v,
          ae,
          ae,
          Zi(w, (H) => Sdt(H, m)),
        );
        return ((U.objectFlags |= 2228352 | p), U);
      }
      function vY(n) {
        var a;
        return (
          !yt(n.declarations, nu) &&
          (!(n.flags & 106496) ||
            !((a = n.declarations) != null && a.some((c) => ui(c.parent))))
        );
      }
      function a_e(n, a) {
        const c = n.flags & 65536 && !(n.flags & 32768);
        if (!c && a === wh(n)) return n;
        const p = 4 | (n.flags & 16777216),
          m = ja(p, n.escapedName, ghe(n) | (a ? 8 : 0));
        return (
          (m.links.type = c ? he : _r(n)),
          (m.declarations = n.declarations),
          (m.links.nameType = Jr(n).nameType),
          (m.links.syntheticOrigin = n),
          m
        );
      }
      function Sdt(n, a) {
        return n.isReadonly !== a
          ? jg(n.keyType, n.type, a, n.declaration, n.components)
          : n;
      }
      function n5(n, a, c, p) {
        const m = wi(n, c);
        return ((m.value = a), (m.regularType = p || m), m);
      }
      function oR(n) {
        if (n.flags & 2976) {
          if (!n.freshType) {
            const a = n5(n.flags, n.value, n.symbol, n);
            ((a.freshType = a), (n.freshType = a));
          }
          return n.freshType;
        }
        return n;
      }
      function Cu(n) {
        return n.flags & 2976
          ? n.regularType
          : n.flags & 1048576
            ? n.regularType || (n.regularType = Tl(n, Cu))
            : n;
      }
      function RE(n) {
        return !!(n.flags & 2976) && n.freshType === n;
      }
      function Sp(n) {
        let a;
        return At.get(n) || (At.set(n, (a = n5(128, n))), a);
      }
      function Ch(n) {
        let a;
        return mn.get(n) || (mn.set(n, (a = n5(256, n))), a);
      }
      function r5(n) {
        let a;
        const c = wS(n);
        return dr.get(c) || (dr.set(c, (a = n5(2048, n))), a);
      }
      function Edt(n, a, c) {
        let p;
        const m = `${a}${typeof n == "string" ? "@" : "#"}${n}`,
          v = 1024 | (typeof n == "string" ? 128 : 256);
        return ri.get(m) || (ri.set(m, (p = n5(v, n, c))), p);
      }
      function Adt(n) {
        if (n.literal.kind === 106) return Xt;
        const a = Vr(n);
        return (
          a.resolvedType || (a.resolvedType = Cu(_o(n.literal))),
          a.resolvedType
        );
      }
      function Idt(n) {
        const a = wi(8192, n);
        return (
          (a.escapedName = `__@${a.symbol.escapedName}@${Ta(a.symbol)}`),
          a
        );
      }
      function s_e(n) {
        if (Ir(n) && t0(n)) {
          const a = IS(n);
          a && (n = TI(a) || a);
        }
        if (Zte(n)) {
          const a = UF(n) ? If(n.left) : If(n);
          if (a) {
            const c = Jr(a);
            return c.uniqueESSymbolType || (c.uniqueESSymbolType = Idt(a));
          }
        }
        return Qt;
      }
      function xdt(n) {
        const a = vu(n, !1, !1),
          c = a && a.parent;
        if (
          c &&
          (ui(c) || c.kind === 265) &&
          !ua(a) &&
          (!Ml(a) || xS(n, a.body))
        )
          return tm(Wr(c)).thisType;
        if (c && Wa(c) && Nr(c.parent) && oc(c.parent) === 6)
          return tm(If(c.parent.left).parent).thisType;
        const p = n.flags & 16777216 ? BT(n) : void 0;
        return p && Us(p) && Nr(p.parent) && oc(p.parent) === 3
          ? tm(If(p.parent.left).parent).thisType
          : E_(a) && xS(n, a.body)
            ? tm(Wr(a)).thisType
            : (Qe(
                n,
                f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface,
              ),
              nt);
      }
      function l_e(n) {
        const a = Vr(n);
        return (a.resolvedType || (a.resolvedType = xdt(n)), a.resolvedType);
      }
      function I8e(n) {
        return Ji(i5(n.type) || n.type);
      }
      function i5(n) {
        switch (n.kind) {
          case 197:
            return i5(n.type);
          case 190:
            if (
              n.elements.length === 1 &&
              ((n = n.elements[0]),
              n.kind === 192 || (n.kind === 203 && n.dotDotDotToken))
            )
              return i5(n.type);
            break;
          case 189:
            return n.elementType;
        }
      }
      function Rdt(n) {
        const a = Vr(n);
        return (
          a.resolvedType ||
          (a.resolvedType = n.dotDotDotToken
            ? I8e(n)
            : pu(Ji(n.type), !0, !!n.questionToken))
        );
      }
      function Ji(n) {
        return rct(x8e(n), n);
      }
      function x8e(n) {
        switch (n.kind) {
          case 133:
          case 313:
          case 314:
            return Ue;
          case 159:
            return Nt;
          case 154:
            return gt;
          case 150:
            return Bt;
          case 163:
            return gr;
          case 136:
            return jt;
          case 155:
            return Qt;
          case 116:
            return In;
          case 157:
            return he;
          case 106:
            return Xt;
          case 146:
            return yn;
          case 151:
            return n.flags & 524288 && !ve ? Ue : Ln;
          case 141:
            return Oe;
          case 198:
          case 110:
            return l_e(n);
          case 202:
            return Adt(n);
          case 184:
            return fY(n);
          case 183:
            return n.assertsModifier ? In : jt;
          case 234:
            return fY(n);
          case 187:
            return kWe(n);
          case 189:
          case 190:
            return wct(n);
          case 191:
            return zct(n);
          case 193:
            return Kct(n);
          case 194:
            return ndt(n);
          case 315:
            return ict(n);
          case 317:
            return pu(Ji(n.type));
          case 203:
            return Rdt(n);
          case 197:
          case 316:
          case 310:
            return Ji(n.type);
          case 192:
            return I8e(n);
          case 319:
            return Hyt(n);
          case 185:
          case 186:
          case 188:
          case 323:
          case 318:
          case 324:
            return A8e(n);
          case 199:
            return sdt(n);
          case 200:
            return y8e(n);
          case 201:
            return t_e(n);
          case 195:
            return bdt(n);
          case 196:
            return Tdt(n);
          case 204:
            return ldt(n);
          case 206:
            return S8e(n);
          case 80:
          case 167:
          case 212:
            const a = sm(n);
            return a ? qs(a) : nt;
          default:
            return nt;
        }
      }
      function bY(n, a, c) {
        if (n && n.length)
          for (let p = 0; p < n.length; p++) {
            const m = n[p],
              v = c(m, a);
            if (m !== v) {
              const I = p === 0 ? [] : n.slice(0, p);
              for (I.push(v), p++; p < n.length; p++) I.push(c(n[p], a));
              return I;
            }
          }
        return n;
      }
      function Wy(n, a) {
        return bY(n, a, io);
      }
      function TY(n, a) {
        return bY(n, a, DA);
      }
      function R8e(n, a) {
        return bY(n, a, Fdt);
      }
      function Yp(n, a) {
        return n.length === 1 ? DE(n[0], a ? a[0] : Ue) : D8e(n, a);
      }
      function Vv(n, a) {
        switch (a.kind) {
          case 0:
            return n === a.source ? a.target : n;
          case 1: {
            const p = a.sources,
              m = a.targets;
            for (let v = 0; v < p.length; v++)
              if (n === p[v]) return m ? m[v] : Ue;
            return n;
          }
          case 2: {
            const p = a.sources,
              m = a.targets;
            for (let v = 0; v < p.length; v++) if (n === p[v]) return m[v]();
            return n;
          }
          case 3:
            return a.func(n);
          case 4:
          case 5:
            const c = Vv(n, a.mapper1);
            return c !== n && a.kind === 4
              ? io(c, a.mapper2)
              : Vv(c, a.mapper2);
        }
      }
      function DE(n, a) {
        return C.attachDebugPrototypeIfDebug({ kind: 0, source: n, target: a });
      }
      function D8e(n, a) {
        return C.attachDebugPrototypeIfDebug({
          kind: 1,
          sources: n,
          targets: a,
        });
      }
      function o5(n, a) {
        return C.attachDebugPrototypeIfDebug({
          kind: 3,
          func: n,
          debugInfo: C.isDebugging ? a : void 0,
        });
      }
      function c_e(n, a) {
        return C.attachDebugPrototypeIfDebug({
          kind: 2,
          sources: n,
          targets: a,
        });
      }
      function SY(n, a, c) {
        return C.attachDebugPrototypeIfDebug({
          kind: n,
          mapper1: a,
          mapper2: c,
        });
      }
      function C8e(n) {
        return Yp(n, void 0);
      }
      function Ddt(n, a) {
        const c = n.inferences.slice(a);
        return Yp(
          Vt(c, (p) => p.typeParameter),
          Vt(c, () => Nt),
        );
      }
      function Cdt(n) {
        return (
          n.outerReturnMapper ??
          (n.outerReturnMapper = N8e(n.returnMapper, cFe(n).mapper))
        );
      }
      function Y0(n, a) {
        return n ? SY(4, n, a) : a;
      }
      function N8e(n, a) {
        return n ? SY(5, n, a) : a;
      }
      function RA(n, a, c) {
        return c ? SY(5, DE(n, a), c) : DE(n, a);
      }
      function WW(n, a, c) {
        return n ? SY(5, n, DE(a, c)) : DE(a, c);
      }
      function Ndt(n) {
        return (!n.constraint && !cY(n)) || n.constraint === Hl
          ? n
          : n.restrictiveInstantiation ||
              ((n.restrictiveInstantiation = Vu(n.symbol)),
              (n.restrictiveInstantiation.constraint = Hl),
              n.restrictiveInstantiation);
      }
      function d_e(n) {
        const a = Vu(n.symbol);
        return ((a.target = n), a);
      }
      function M8e(n, a) {
        return MW(n.kind, n.parameterName, n.parameterIndex, io(n.type, a));
      }
      function DA(n, a, c) {
        let p;
        if (n.typeParameters && !c) {
          ((p = Vt(n.typeParameters, d_e)),
            (a = Y0(Yp(n.typeParameters, p), a)));
          for (const v of p) v.mapper = a;
        }
        const m = y_(
          n.declaration,
          p,
          n.thisParameter && u_e(n.thisParameter, a),
          bY(n.parameters, a, u_e),
          void 0,
          void 0,
          n.minArgumentCount,
          n.flags & 167,
        );
        return ((m.target = n), (m.mapper = a), m);
      }
      function u_e(n, a) {
        const c = Jr(n);
        if (
          c.type &&
          !_T(c.type) &&
          (!(n.flags & 65536) || (c.writeType && !_T(c.writeType)))
        )
          return n;
        Wl(n) & 1 && ((n = c.target), (a = Y0(c.mapper, a)));
        const p = ja(n.flags, n.escapedName, 1 | (Wl(n) & 53256));
        return (
          (p.declarations = n.declarations),
          (p.parent = n.parent),
          (p.links.target = n),
          (p.links.mapper = a),
          n.valueDeclaration && (p.valueDeclaration = n.valueDeclaration),
          c.nameType && (p.links.nameType = c.nameType),
          p
        );
      }
      function Mdt(n, a, c, p) {
        const m =
            n.objectFlags & 4 || n.objectFlags & 8388608
              ? n.node
              : n.symbol.declarations[0],
          v = Vr(m),
          I =
            n.objectFlags & 4
              ? v.resolvedType
              : n.objectFlags & 64
                ? n.target
                : n;
        let w = v.outerTypeParameters;
        if (!w) {
          let U = Mi(m, !0);
          if (E_(m)) {
            const Q = gWe(m);
            U = Xr(U, Q);
          }
          w = U || ae;
          const H = n.objectFlags & 8388612 ? [m] : n.symbol.declarations;
          ((w =
            (I.objectFlags & 8388612 ||
              I.symbol.flags & 8192 ||
              I.symbol.flags & 2048) &&
            !I.aliasTypeArguments
              ? Un(w, (Q) => yt(H, (Ie) => a5(Q, Ie)))
              : w),
            (v.outerTypeParameters = w));
        }
        if (w.length) {
          const U = Y0(n.mapper, a),
            H = Vt(w, (Tt) => Vv(Tt, U)),
            Q = c || n.aliasSymbol,
            Ie = c ? p : Wy(n.aliasTypeArguments, a),
            Te = Lm(H) + SA(Q, Ie);
          I.instantiations ||
            ((I.instantiations = new Map()),
            I.instantiations.set(
              Lm(w) + SA(I.aliasSymbol, I.aliasTypeArguments),
              I,
            ));
          let Ze = I.instantiations.get(Te);
          if (!Ze) {
            let Tt = Yp(w, H);
            (I.objectFlags & 134217728 && a && (Tt = Y0(Tt, a)),
              (Ze =
                I.objectFlags & 4
                  ? Phe(n.target, n.node, Tt, Q, Ie)
                  : I.objectFlags & 32
                    ? Ldt(I, Tt, Q, Ie)
                    : p_e(I, Tt, Q, Ie)),
              I.instantiations.set(Te, Ze));
            const Dt = Hr(Ze);
            if (Ze.flags & 3899393 && !(Dt & 524288)) {
              const $t = yt(H, _T);
              Hr(Ze) & 524288 ||
                (Dt & 52
                  ? (Ze.objectFlags |= 524288 | ($t ? 1048576 : 0))
                  : (Ze.objectFlags |= $t ? 0 : 524288));
            }
          }
          return Ze;
        }
        return n;
      }
      function Pdt(n) {
        return !(
          (n.parent.kind === 184 &&
            n.parent.typeArguments &&
            n === n.parent.typeName) ||
          (n.parent.kind === 206 &&
            n.parent.typeArguments &&
            n === n.parent.qualifier)
        );
      }
      function a5(n, a) {
        if (
          n.symbol &&
          n.symbol.declarations &&
          n.symbol.declarations.length === 1
        ) {
          const p = n.symbol.declarations[0].parent;
          for (let m = a; m !== p; m = m.parent)
            if (
              !m ||
              m.kind === 242 ||
              (m.kind === 195 && Jo(m.extendsType, c))
            )
              return !0;
          return c(a);
        }
        return !0;
        function c(p) {
          switch (p.kind) {
            case 198:
              return !!n.isThisType;
            case 80:
              return !n.isThisType && Hh(p) && Pdt(p) && x8e(p) === n;
            case 187:
              const m = p.exprName,
                v = Lu(m);
              if (!Eb(v)) {
                const I = fu(v),
                  w = n.symbol.declarations[0],
                  U = w.kind === 169 ? w.parent : n.isThisType ? w : void 0;
                if (I.declarations && U)
                  return (
                    yt(I.declarations, (H) => xS(H, U)) ||
                    yt(p.typeArguments, c)
                  );
              }
              return !0;
            case 175:
            case 174:
              return (
                (!p.type && !!p.body) ||
                yt(p.typeParameters, c) ||
                yt(p.parameters, c) ||
                (!!p.type && c(p.type))
              );
          }
          return !!Jo(p, c);
        }
      }
      function FW(n) {
        const a = Rf(n);
        if (a.flags & 4194304) {
          const c = Oy(a.type);
          if (c.flags & 262144) return c;
        }
      }
      function Ldt(n, a, c, p) {
        const m = FW(n);
        if (m) {
          const I = io(m, a);
          if (m !== I) return kFe(Pm(I), v, c, p);
        }
        return io(Rf(n), a) === It ? It : p_e(n, a, c, p);
        function v(I) {
          if (I.flags & 61603843 && I !== It && !pr(I)) {
            if (!n.declaration.nameType) {
              let w;
              if (
                im(I) ||
                (I.flags & 1 && ee(m, 4) < 0 && (w = Uu(m)) && Ep(w, Q0))
              )
                return wdt(I, n, RA(m, I, a));
              if (Ka(I)) return kdt(I, n, m, a);
              if (uWe(I)) return Ma(Vt(I.types, v));
            }
            return p_e(n, RA(m, I, a));
          }
          return I;
        }
      }
      function P8e(n, a) {
        return a & 1 ? !0 : a & 2 ? !1 : n;
      }
      function kdt(n, a, c, p) {
        const m = n.target.elementFlags,
          v = n.target.fixedLength,
          I = v ? RA(c, n, p) : p,
          w = Vt(IE(n), (Ie, Te) => {
            const Ze = m[Te];
            return Te < v
              ? L8e(a, Sp("" + Te), !!(Ze & 2), I)
              : Ze & 8
                ? io(a, RA(c, Ie, p))
                : (m5(io(a, RA(c, Yd(Ie), p))) ?? Nt);
          }),
          U = Q_(a),
          H =
            U & 4
              ? Vt(m, (Ie) => (Ie & 1 ? 2 : Ie))
              : U & 8
                ? Vt(m, (Ie) => (Ie & 2 ? 1 : Ie))
                : m,
          Q = P8e(n.target.readonly, Q_(a));
        return jn(w, nt)
          ? nt
          : eg(w, H, Q, n.target.labeledElementDeclarations);
      }
      function wdt(n, a, c) {
        const p = L8e(a, Bt, !0, c);
        return pr(p) ? nt : Yd(p, P8e(RL(n), Q_(a)));
      }
      function L8e(n, a, c, p) {
        const m = WW(p, eh(n), a),
          v = io(Gg(n.target || n), m),
          I = Q_(n);
        return ie && I & 4 && !tc(v, 49152)
          ? hT(v, !0)
          : ie && I & 8 && c
            ? om(v, 524288)
            : v;
      }
      function p_e(n, a, c, p) {
        C.assert(
          n.symbol,
          "anonymous type must have symbol to be instantiated",
        );
        const m = hc((n.objectFlags & -1572865) | 64, n.symbol);
        if (n.objectFlags & 32) {
          m.declaration = n.declaration;
          const v = eh(n),
            I = d_e(v);
          ((m.typeParameter = I), (a = Y0(DE(v, I), a)), (I.mapper = a));
        }
        return (
          n.objectFlags & 8388608 && (m.node = n.node),
          (m.target = n),
          (m.mapper = a),
          (m.aliasSymbol = c || n.aliasSymbol),
          (m.aliasTypeArguments = c ? p : Wy(n.aliasTypeArguments, a)),
          (m.objectFlags |= m.aliasTypeArguments
            ? Xz(m.aliasTypeArguments)
            : 0),
          m
        );
      }
      function f_e(n, a, c, p, m) {
        const v = n.root;
        if (v.outerTypeParameters) {
          const I = Vt(v.outerTypeParameters, (H) => Vv(H, a)),
            w = (c ? "C" : "") + Lm(I) + SA(p, m);
          let U = v.instantiations.get(w);
          if (!U) {
            const H = Yp(v.outerTypeParameters, I),
              Q = v.checkType,
              Ie = v.isDistributive ? Pm(Vv(Q, H)) : void 0;
            ((U =
              Ie && Q !== Ie && Ie.flags & 1179648
                ? kFe(Ie, (Te) => n_e(v, RA(Q, Te, H), c), p, m)
                : n_e(v, H, c, p, m)),
              v.instantiations.set(w, U));
          }
          return U;
        }
        return n;
      }
      function io(n, a) {
        return n && a ? k8e(n, a, void 0, void 0) : n;
      }
      function k8e(n, a, c, p) {
        var m;
        if (!_T(n)) return n;
        if (E === 100 || g >= 5e6)
          return (
            (m = xr) == null ||
              m.instant(xr.Phase.CheckTypes, "instantiateType_DepthLimit", {
                typeId: n.id,
                instantiationDepth: E,
                instantiationCount: g,
              }),
            Qe(
              R,
              f.Type_instantiation_is_excessively_deep_and_possibly_infinite,
            ),
            nt
          );
        const v = Tft(a);
        v === -1 && vft(a);
        const I = n.id + SA(c, p),
          w = T0[v !== -1 ? v : U_ - 1],
          U = w.get(I);
        if (U) return U;
        (h++, g++, E++);
        const H = Odt(n, a, c, p);
        return (v === -1 ? bft() : w.set(I, H), E--, H);
      }
      function Odt(n, a, c, p) {
        const m = n.flags;
        if (m & 262144) return Vv(n, a);
        if (m & 524288) {
          const v = n.objectFlags;
          if (v & 52) {
            if (v & 4 && !n.node) {
              const I = n.resolvedTypeArguments,
                w = Wy(I, a);
              return w !== I ? Hhe(n.target, w) : n;
            }
            return v & 1024 ? Wdt(n, a) : Mdt(n, a, c, p);
          }
          return n;
        }
        if (m & 3145728) {
          const v = n.flags & 1048576 ? n.origin : void 0,
            I = v && v.flags & 3145728 ? v.types : n.types,
            w = Wy(I, a);
          if (w === I && c === n.aliasSymbol) return n;
          const U = c || n.aliasSymbol,
            H = c ? p : Wy(n.aliasTypeArguments, a);
          return m & 2097152 || (v && v.flags & 2097152)
            ? Ma(w, 0, U, H)
            : pi(w, 1, U, H);
        }
        if (m & 4194304) return b_(io(n.type, a));
        if (m & 134217728) return EA(n.texts, Wy(n.types, a));
        if (m & 268435456) return rR(n.symbol, io(n.type, a));
        if (m & 8388608) {
          const v = c || n.aliasSymbol,
            I = c ? p : Wy(n.aliasTypeArguments, a);
          return Xp(
            io(n.objectType, a),
            io(n.indexType, a),
            n.accessFlags,
            void 0,
            v,
            I,
          );
        }
        if (m & 16777216) return f_e(n, Y0(n.mapper, a), !1, c, p);
        if (m & 33554432) {
          const v = io(n.baseType, a);
          if (jC(n)) return Lhe(v);
          const I = io(n.constraint, a);
          return v.flags & 8650752 && X0(I)
            ? whe(v, I)
            : I.flags & 3 || aa(CA(v), CA(I))
              ? v
              : v.flags & 8650752
                ? whe(v, I)
                : Ma([I, v]);
        }
        return n;
      }
      function Wdt(n, a) {
        const c = io(n.mappedType, a);
        if (!(Hr(c) & 32)) return n;
        const p = io(n.constraintType, a);
        if (!(p.flags & 4194304)) return n;
        const m = pFe(io(n.source, a), c, p);
        return m || n;
      }
      function zW(n) {
        return n.flags & 402915327
          ? n
          : n.permissiveInstantiation ||
              (n.permissiveInstantiation = io(n, xl));
      }
      function CA(n) {
        return n.flags & 402915327
          ? n
          : (n.restrictiveInstantiation ||
              ((n.restrictiveInstantiation = io(n, Bl)),
              (n.restrictiveInstantiation.restrictiveInstantiation =
                n.restrictiveInstantiation)),
            n.restrictiveInstantiation);
      }
      function Fdt(n, a) {
        return jg(
          n.keyType,
          io(n.type, a),
          n.isReadonly,
          n.declaration,
          n.components,
        );
      }
      function Cf(n) {
        switch ((C.assert(n.kind !== 175 || mm(n)), n.kind)) {
          case 219:
          case 220:
          case 175:
          case 263:
            return w8e(n);
          case 211:
            return yt(n.properties, Cf);
          case 210:
            return yt(n.elements, Cf);
          case 228:
            return Cf(n.whenTrue) || Cf(n.whenFalse);
          case 227:
            return (
              (n.operatorToken.kind === 57 || n.operatorToken.kind === 61) &&
              (Cf(n.left) || Cf(n.right))
            );
          case 304:
            return Cf(n.initializer);
          case 218:
            return Cf(n.expression);
          case 293:
            return (
              yt(n.properties, Cf) ||
              (ph(n.parent) && yt(n.parent.parent.children, Cf))
            );
          case 292: {
            const { initializer: a } = n;
            return !!a && Cf(a);
          }
          case 295: {
            const { expression: a } = n;
            return !!a && Cf(a);
          }
        }
        return !1;
      }
      function w8e(n) {
        return Q6(n) || zdt(n);
      }
      function zdt(n) {
        return n.typeParameters || kp(n) || !n.body
          ? !1
          : n.body.kind !== 242
            ? Cf(n.body)
            : !!vb(n.body, (a) => !!a.expression && Cf(a.expression));
      }
      function EY(n) {
        return (Rb(n) || mm(n)) && w8e(n);
      }
      function O8e(n) {
        if (n.flags & 524288) {
          const a = Dh(n);
          if (a.constructSignatures.length || a.callSignatures.length) {
            const c = hc(16, n.symbol);
            return (
              (c.members = a.members),
              (c.properties = a.properties),
              (c.callSignatures = ae),
              (c.constructSignatures = ae),
              (c.indexInfos = ae),
              c
            );
          }
        } else if (n.flags & 2097152) return Ma(Vt(n.types, O8e));
        return n;
      }
      function Hg(n, a) {
        return T_(n, a, Jd);
      }
      function BW(n, a) {
        return T_(n, a, Jd) ? -1 : 0;
      }
      function m_e(n, a) {
        return T_(n, a, qd) ? -1 : 0;
      }
      function Bdt(n, a) {
        return T_(n, a, H_) ? -1 : 0;
      }
      function CE(n, a) {
        return T_(n, a, H_);
      }
      function xL(n, a) {
        return T_(n, a, cl);
      }
      function aa(n, a) {
        return T_(n, a, qd);
      }
      function $0(n, a) {
        return n.flags & 1048576
          ? Vn(n.types, (c) => $0(c, a))
          : a.flags & 1048576
            ? yt(a.types, (c) => $0(n, c))
            : n.flags & 2097152
              ? yt(n.types, (c) => $0(c, a))
              : n.flags & 58982400
                ? $0(Ld(n) || Nt, a)
                : tg(a)
                  ? !!(n.flags & 67633152)
                  : a === Jt
                    ? !!(n.flags & 67633152) && !tg(n)
                    : a === er
                      ? !!(n.flags & 524288) && K_e(n)
                      : Ur(n, zn(a)) || (im(a) && !RL(a) && $0(n, Va));
      }
      function AY(n, a) {
        return T_(n, a, lp);
      }
      function s5(n, a) {
        return AY(n, a) || AY(a, n);
      }
      function $d(n, a, c, p, m, v) {
        return rm(n, a, qd, c, p, m, v);
      }
      function NE(n, a, c, p, m, v) {
        return h_e(n, a, qd, c, p, m, v, void 0);
      }
      function h_e(n, a, c, p, m, v, I, w) {
        return T_(n, a, c)
          ? !0
          : !p || !GW(m, n, a, c, v, I, w)
            ? rm(n, a, c, p, v, I, w)
            : !1;
      }
      function W8e(n) {
        return !!(
          n.flags & 16777216 ||
          (n.flags & 2097152 && yt(n.types, W8e))
        );
      }
      function GW(n, a, c, p, m, v, I) {
        if (!n || W8e(c)) return !1;
        if (!rm(a, c, p, void 0) && Gdt(n, a, c, p, m, v, I)) return !0;
        switch (n.kind) {
          case 235:
            if (!$V(n)) break;
          case 295:
          case 218:
            return GW(n.expression, a, c, p, m, v, I);
          case 227:
            switch (n.operatorToken.kind) {
              case 64:
              case 28:
                return GW(n.right, a, c, p, m, v, I);
            }
            break;
          case 211:
            return Xdt(n, a, c, p, v, I);
          case 210:
            return Jdt(n, a, c, p, v, I);
          case 293:
            return qdt(n, a, c, p, v, I);
          case 220:
            return Vdt(n, a, c, p, v, I);
        }
        return !1;
      }
      function Gdt(n, a, c, p, m, v, I) {
        const w = na(a, 0),
          U = na(a, 1);
        for (const H of [U, w])
          if (
            yt(H, (Q) => {
              const Ie = fs(Q);
              return !(Ie.flags & 131073) && rm(Ie, c, p, void 0);
            })
          ) {
            const Q = I || {};
            $d(a, c, n, m, v, Q);
            const Ie = Q.errors[Q.errors.length - 1];
            return (
              pa(
                Ie,
                Ar(
                  n,
                  H === U
                    ? f.Did_you_mean_to_use_new_with_this_expression
                    : f.Did_you_mean_to_call_this_expression,
                ),
              ),
              !0
            );
          }
        return !1;
      }
      function Vdt(n, a, c, p, m, v) {
        if (ea(n.body) || yt(n.parameters, xF)) return !1;
        const I = FA(a);
        if (!I) return !1;
        const w = na(c, 0);
        if (!et(w)) return !1;
        const U = n.body,
          H = fs(I),
          Q = pi(Vt(w, fs));
        if (!rm(H, Q, p, void 0)) {
          const Ie = U && GW(U, H, Q, p, void 0, m, v);
          if (Ie) return Ie;
          const Te = v || {};
          if ((rm(H, Q, p, U, void 0, m, Te), Te.errors))
            return (
              c.symbol &&
                et(c.symbol.declarations) &&
                pa(
                  Te.errors[Te.errors.length - 1],
                  Ar(
                    c.symbol.declarations[0],
                    f.The_expected_type_comes_from_the_return_type_of_this_signature,
                  ),
                ),
              (cc(n) & 2) === 0 &&
                !_n(H, "then") &&
                rm(V5(H), Q, p, void 0) &&
                pa(
                  Te.errors[Te.errors.length - 1],
                  Ar(n, f.Did_you_mean_to_mark_this_function_as_async),
                ),
              !0
            );
        }
        return !1;
      }
      function F8e(n, a, c) {
        const p = uT(a, c);
        if (p) return p;
        if (a.flags & 1048576) {
          const m = q8e(n, a);
          if (m) return uT(m, c);
        }
      }
      function z8e(n, a) {
        D5(n, a, !1);
        const c = WL(n, 1);
        return (QW(), c);
      }
      function l5(n, a, c, p, m, v) {
        let I = !1;
        for (const w of n) {
          const {
            errorNode: U,
            innerExpression: H,
            nameType: Q,
            errorMessage: Ie,
          } = w;
          let Te = F8e(a, c, Q);
          if (!Te || Te.flags & 8388608) continue;
          let Ze = uT(a, Q);
          if (!Ze) continue;
          const Tt = _Y(Q, void 0);
          if (!rm(Ze, Te, p, void 0)) {
            const Dt = H && GW(H, Ze, Te, p, void 0, m, v);
            if (((I = !0), !Dt)) {
              const $t = v || {},
                Tn = H ? z8e(H, Ze) : Ze;
              if (Ce && xY(Tn, Te)) {
                const nr = Ar(
                  U,
                  f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,
                  ar(Tn),
                  ar(Te),
                );
                (ns.add(nr), ($t.errors = [nr]));
              } else {
                const nr = !!(Tt && (Ea(c, Tt) || ne).flags & 16777216),
                  yr = !!(Tt && (Ea(a, Tt) || ne).flags & 16777216);
                ((Te = Gy(Te, nr)),
                  (Ze = Gy(Ze, nr && yr)),
                  rm(Tn, Te, p, U, Ie, m, $t) &&
                    Tn !== Ze &&
                    rm(Ze, Te, p, U, Ie, m, $t));
              }
              if ($t.errors) {
                const nr = $t.errors[$t.errors.length - 1],
                  yr = jf(Q) ? Uf(Q) : void 0,
                  Sn = yr !== void 0 ? Ea(c, yr) : void 0;
                let vn = !1;
                if (!Sn) {
                  const Sr = CW(c, Q);
                  Sr &&
                    Sr.declaration &&
                    !Wn(Sr.declaration).hasNoDefaultLib &&
                    ((vn = !0),
                    pa(
                      nr,
                      Ar(
                        Sr.declaration,
                        f.The_expected_type_comes_from_this_index_signature,
                      ),
                    ));
                }
                if (
                  !vn &&
                  ((Sn && et(Sn.declarations)) ||
                    (c.symbol && et(c.symbol.declarations)))
                ) {
                  const Sr =
                    Sn && et(Sn.declarations)
                      ? Sn.declarations[0]
                      : c.symbol.declarations[0];
                  Wn(Sr).hasNoDefaultLib ||
                    pa(
                      nr,
                      Ar(
                        Sr,
                        f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,
                        yr && !(Q.flags & 8192) ? Gi(yr) : ar(Q),
                        ar(c),
                      ),
                    );
                }
              }
            }
          }
        }
        return I;
      }
      function jdt(n, a, c, p, m, v) {
        const I = Ec(c, LY),
          w = Ec(c, (Q) => !LY(Q)),
          U = w !== yn ? _ye(13, 0, w, void 0) : void 0;
        let H = !1;
        for (let Q = n.next(); !Q.done; Q = n.next()) {
          const {
            errorNode: Ie,
            innerExpression: Te,
            nameType: Ze,
            errorMessage: Tt,
          } = Q.value;
          let Dt = U;
          const $t = I !== yn ? F8e(a, I, Ze) : void 0;
          if (($t && !($t.flags & 8388608) && (Dt = U ? pi([U, $t]) : $t), !Dt))
            continue;
          let Tn = uT(a, Ze);
          if (!Tn) continue;
          const nr = _Y(Ze, void 0);
          if (!rm(Tn, Dt, p, void 0)) {
            const yr = Te && GW(Te, Tn, Dt, p, void 0, m, v);
            if (((H = !0), !yr)) {
              const Sn = v || {},
                vn = Te ? z8e(Te, Tn) : Tn;
              if (Ce && xY(vn, Dt)) {
                const Sr = Ar(
                  Ie,
                  f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,
                  ar(vn),
                  ar(Dt),
                );
                (ns.add(Sr), (Sn.errors = [Sr]));
              } else {
                const Sr = !!(nr && (Ea(I, nr) || ne).flags & 16777216),
                  fi = !!(nr && (Ea(a, nr) || ne).flags & 16777216);
                ((Dt = Gy(Dt, Sr)),
                  (Tn = Gy(Tn, Sr && fi)),
                  rm(vn, Dt, p, Ie, Tt, m, Sn) &&
                    vn !== Tn &&
                    rm(Tn, Dt, p, Ie, Tt, m, Sn));
              }
            }
          }
        }
        return H;
      }
      function* Udt(n) {
        if (et(n.properties))
          for (const a of n.properties)
            $I(a) ||
              gge(iw(a.name)) ||
              (yield {
                errorNode: a.name,
                innerExpression: a.initializer,
                nameType: Sp(iw(a.name)),
              });
      }
      function* Hdt(n, a) {
        if (!et(n.children)) return;
        let c = 0;
        for (let p = 0; p < n.children.length; p++) {
          const m = n.children[p],
            v = Ch(p - c),
            I = B8e(m, v, a);
          I ? yield I : c++;
        }
      }
      function B8e(n, a, c) {
        switch (n.kind) {
          case 295:
            return { errorNode: n, innerExpression: n.expression, nameType: a };
          case 12:
            if (n.containsOnlyTriviaWhiteSpaces) break;
            return {
              errorNode: n,
              innerExpression: void 0,
              nameType: a,
              errorMessage: c(),
            };
          case 285:
          case 286:
          case 289:
            return { errorNode: n, innerExpression: n, nameType: a };
          default:
            return C.assertNever(n, "Found invalid jsx child");
        }
      }
      function qdt(n, a, c, p, m, v) {
        let I = l5(Udt(n), a, c, p, m, v),
          w;
        if (ph(n.parent) && r_(n.parent.parent)) {
          const H = n.parent.parent,
            Q = N5(OA(n)),
            Ie = Q === void 0 ? "children" : Gi(Q),
            Te = Sp(Ie),
            Ze = Xp(c, Te),
            Tt = iD(H.children);
          if (!et(Tt)) return I;
          const Dt = et(Tt) > 1;
          let $t, Tn;
          if (hY(!1) !== Zt) {
            const yr = KWe(Ue);
            (($t = Ec(Ze, (Sn) => aa(Sn, yr))),
              (Tn = Ec(Ze, (Sn) => !aa(Sn, yr))));
          } else (($t = Ec(Ze, LY)), (Tn = Ec(Ze, (yr) => !LY(yr))));
          if (Dt) {
            if ($t !== yn) {
              const yr = eg(s$(H, 0)),
                Sn = Hdt(H, U);
              I = jdt(Sn, yr, $t, p, m, v) || I;
            } else if (!T_(Xp(a, Te), Ze, p)) {
              I = !0;
              const yr = Qe(
                H.openingElement.tagName,
                f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,
                Ie,
                ar(Ze),
              );
              v && v.skipLogging && (v.errors || (v.errors = [])).push(yr);
            }
          } else if (Tn !== yn) {
            const yr = Tt[0],
              Sn = B8e(yr, Te, U);
            Sn &&
              (I =
                l5(
                  (function* () {
                    yield Sn;
                  })(),
                  a,
                  c,
                  p,
                  m,
                  v,
                ) || I);
          } else if (!T_(Xp(a, Te), Ze, p)) {
            I = !0;
            const yr = Qe(
              H.openingElement.tagName,
              f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,
              Ie,
              ar(Ze),
            );
            v && v.skipLogging && (v.errors || (v.errors = [])).push(yr);
          }
        }
        return I;
        function U() {
          if (!w) {
            const H = Al(n.parent.tagName),
              Q = N5(OA(n)),
              Ie = Q === void 0 ? "children" : Gi(Q),
              Te = Xp(c, Sp(Ie)),
              Ze =
                f._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;
            w = {
              ...Ze,
              key: "!!ALREADY FORMATTED!!",
              message: MI(Ze, H, Ie, ar(Te)),
            };
          }
          return w;
        }
      }
      function* G8e(n, a) {
        const c = et(n.elements);
        if (c)
          for (let p = 0; p < c; p++) {
            if (DL(a) && !Ea(a, "" + p)) continue;
            const m = n.elements[p];
            if (Jc(m)) continue;
            const v = Ch(p),
              I = _$(m);
            yield { errorNode: I, innerExpression: I, nameType: v };
          }
      }
      function Jdt(n, a, c, p, m, v) {
        if (c.flags & 402915324) return !1;
        if (DL(a)) return l5(G8e(n, c), a, c, p, m, v);
        D5(n, c, !1);
        const I = v6e(n, 1, !0);
        return (QW(), DL(I) ? l5(G8e(n, c), I, c, p, m, v) : !1);
      }
      function* Kdt(n) {
        if (et(n.properties))
          for (const a of n.properties) {
            if (xg(a)) continue;
            const c = nR(Wr(a), 8576);
            if (!(!c || c.flags & 131072))
              switch (a.kind) {
                case 179:
                case 178:
                case 175:
                case 305:
                  yield {
                    errorNode: a.name,
                    innerExpression: void 0,
                    nameType: c,
                  };
                  break;
                case 304:
                  yield {
                    errorNode: a.name,
                    innerExpression: a.initializer,
                    nameType: c,
                    errorMessage: ek(a.name)
                      ? f.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1
                      : void 0,
                  };
                  break;
                default:
                  C.assertNever(a);
              }
          }
      }
      function Xdt(n, a, c, p, m, v) {
        return c.flags & 402915324 ? !1 : l5(Kdt(n), a, c, p, m, v);
      }
      function V8e(n, a, c, p, m) {
        return rm(n, a, lp, c, p, m);
      }
      function Ydt(n, a, c) {
        return __e(n, a, 4, !1, void 0, void 0, m_e, void 0) !== 0;
      }
      function IY(n) {
        if (
          !n.typeParameters &&
          (!n.thisParameter || wr(z5(n.thisParameter))) &&
          n.parameters.length === 1 &&
          su(n)
        ) {
          const a = z5(n.parameters[0]);
          return !!((im(a) ? rl(a)[0] : a).flags & 131073 && fs(n).flags & 3);
        }
        return !1;
      }
      function __e(n, a, c, p, m, v, I, w) {
        if (n === a || (!(c & 16 && IY(n)) && IY(a))) return -1;
        if (c & 16 && IY(n) && !IY(a)) return 0;
        const U = Ap(a);
        if (!ng(a) && (c & 8 ? ng(n) || Ap(n) > U : kh(n) > U))
          return (
            p &&
              !(c & 8) &&
              m(
                f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,
                kh(n),
                U,
              ),
            0
          );
        n.typeParameters &&
          n.typeParameters !== a.typeParameters &&
          ((a = $lt(a)), (n = Q6e(n, a, void 0, I)));
        const Q = Ap(n),
          Ie = a8(n),
          Te = a8(a);
        (Ie || Te) && io(Ie || Te, w);
        const Ze = a.declaration ? a.declaration.kind : 0,
          Tt = !(c & 3) && K && Ze !== 175 && Ze !== 174 && Ze !== 177;
        let Dt = -1;
        const $t = J0(n);
        if ($t && $t !== In) {
          const yr = J0(a);
          if (yr) {
            const Sn = (!Tt && I($t, yr, !1)) || I(yr, $t, p);
            if (!Sn)
              return (
                p && m(f.The_this_types_of_each_signature_are_incompatible),
                0
              );
            Dt &= Sn;
          }
        }
        const Tn = Ie || Te ? Math.min(Q, U) : Math.max(Q, U),
          nr = Ie || Te ? Tn - 1 : -1;
        for (let yr = 0; yr < Tn; yr++) {
          const Sn = yr === nr ? E4e(n, yr) : kE(n, yr),
            vn = yr === nr ? E4e(a, yr) : kE(a, yr);
          if (Sn && vn && (Sn !== vn || c & 8)) {
            const Sr = c & 3 || Y6e(n, yr) ? void 0 : FA(By(Sn)),
              fi = c & 3 || Y6e(a, yr) ? void 0 : FA(By(vn));
            let ii =
              Sr &&
              fi &&
              !nm(Sr) &&
              !nm(fi) &&
              JC(Sn, 50331648) === JC(vn, 50331648)
                ? __e(fi, Sr, (c & 8) | (Tt ? 2 : 1), p, m, v, I, w)
                : (!(c & 3) && !Tt && I(Sn, vn, !1)) || I(vn, Sn, p);
            if (
              (ii &&
                c & 8 &&
                yr >= kh(n) &&
                yr < kh(a) &&
                I(Sn, vn, !1) &&
                (ii = 0),
              !ii)
            )
              return (
                p &&
                  m(
                    f.Types_of_parameters_0_and_1_are_incompatible,
                    Gi(kL(n, yr)),
                    Gi(kL(a, yr)),
                  ),
                0
              );
            Dt &= ii;
          }
        }
        if (!(c & 4)) {
          const yr = rY(a)
            ? Ue
            : a.declaration && E_(a.declaration)
              ? tm(os(a.declaration.symbol))
              : fs(a);
          if (yr === In || yr === Ue) return Dt;
          const Sn = rY(n)
              ? Ue
              : n.declaration && E_(n.declaration)
                ? tm(os(n.declaration.symbol))
                : fs(n),
            vn = nm(a);
          if (vn) {
            const Sr = nm(n);
            if (Sr) Dt &= $dt(Sr, vn, p, m, I);
            else if (tne(vn) || nne(vn))
              return (p && m(f.Signature_0_must_be_a_type_predicate, aT(n)), 0);
          } else
            ((Dt &= (c & 1 && I(yr, Sn, !1)) || I(Sn, yr, p)),
              !Dt && p && v && v(Sn, yr));
        }
        return Dt;
      }
      function $dt(n, a, c, p, m) {
        if (n.kind !== a.kind)
          return (
            c &&
              (p(
                f.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard,
              ),
              p(f.Type_predicate_0_is_not_assignable_to_1, K_(n), K_(a))),
            0
          );
        if (
          (n.kind === 1 || n.kind === 3) &&
          n.parameterIndex !== a.parameterIndex
        )
          return (
            c &&
              (p(
                f.Parameter_0_is_not_in_the_same_position_as_parameter_1,
                n.parameterName,
                a.parameterName,
              ),
              p(f.Type_predicate_0_is_not_assignable_to_1, K_(n), K_(a))),
            0
          );
        const v =
          n.type === a.type ? -1 : n.type && a.type ? m(n.type, a.type, c) : 0;
        return (
          v === 0 &&
            c &&
            p(f.Type_predicate_0_is_not_assignable_to_1, K_(n), K_(a)),
          v
        );
      }
      function Qdt(n, a) {
        const c = LW(n),
          p = LW(a),
          m = fs(c),
          v = fs(p);
        return v === In || T_(v, m, qd) || T_(m, v, qd) ? Ydt(c, p) : !1;
      }
      function g_e(n) {
        return (
          n !== As &&
          n.properties.length === 0 &&
          n.callSignatures.length === 0 &&
          n.constructSignatures.length === 0 &&
          n.indexInfos.length === 0
        );
      }
      function Fy(n) {
        return n.flags & 524288
          ? !up(n) && g_e(Dh(n))
          : n.flags & 67108864
            ? !0
            : n.flags & 1048576
              ? yt(n.types, Fy)
              : n.flags & 2097152
                ? Vn(n.types, Fy)
                : !1;
      }
      function tg(n) {
        return !!(
          Hr(n) & 16 &&
          ((n.members && g_e(n)) ||
            (n.symbol && n.symbol.flags & 2048 && $_(n.symbol).size === 0))
        );
      }
      function Zdt(n) {
        if (ie && n.flags & 1048576) {
          if (!(n.objectFlags & 33554432)) {
            const a = n.types;
            n.objectFlags |=
              33554432 |
              (a.length >= 3 &&
              a[0].flags & 32768 &&
              a[1].flags & 65536 &&
              yt(a, tg)
                ? 67108864
                : 0);
          }
          return !!(n.objectFlags & 67108864);
        }
        return !1;
      }
      function qC(n) {
        return !!((n.flags & 1048576 ? n.types[0] : n).flags & 32768);
      }
      function eut(n) {
        const a = n.flags & 1048576 ? n.types[0] : n;
        return !!(a.flags & 32768) && a !== Ae;
      }
      function j8e(n) {
        return (
          (n.flags & 524288 &&
            !up(n) &&
            bs(n).length === 0 &&
            Xd(n).length === 1 &&
            !!Vg(n, gt)) ||
          (n.flags & 3145728 && Vn(n.types, j8e)) ||
          !1
        );
      }
      function y_e(n, a, c) {
        const p = n.flags & 8 ? Yc(n) : n,
          m = a.flags & 8 ? Yc(a) : a;
        if (p === m) return !0;
        if (
          p.escapedName !== m.escapedName ||
          !(p.flags & 256) ||
          !(m.flags & 256)
        )
          return !1;
        const v = Ta(p) + "," + Ta(m),
          I = x0.get(v);
        if (I !== void 0 && !(I & 2 && c)) return !!(I & 1);
        const w = _r(m);
        for (const U of bs(_r(p)))
          if (U.flags & 8) {
            const H = Ea(w, U.escapedName);
            if (!H || !(H.flags & 8))
              return (
                c &&
                  c(
                    f.Property_0_is_missing_in_type_1,
                    wl(U),
                    ar(qs(m), void 0, 64),
                  ),
                x0.set(v, 2),
                !1
              );
            const Q = BA(al(U, 307)).value,
              Ie = BA(al(H, 307)).value;
            if (Q !== Ie) {
              const Te = typeof Q == "string",
                Ze = typeof Ie == "string";
              if (Q !== void 0 && Ie !== void 0) {
                if (c) {
                  const Tt = Te ? `"${k_(Q)}"` : Q,
                    Dt = Ze ? `"${k_(Ie)}"` : Ie;
                  c(
                    f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,
                    wl(m),
                    wl(H),
                    Dt,
                    Tt,
                  );
                }
                return (x0.set(v, 2), !1);
              }
              if (Te || Ze) {
                if (c) {
                  const Tt = Q ?? Ie;
                  C.assert(typeof Tt == "string");
                  const Dt = `"${k_(Tt)}"`;
                  c(
                    f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,
                    wl(m),
                    wl(H),
                    Dt,
                  );
                }
                return (x0.set(v, 2), !1);
              }
            }
          }
        return (x0.set(v, 1), !0);
      }
      function VW(n, a, c, p) {
        const m = n.flags,
          v = a.flags;
        return v & 1 ||
          m & 131072 ||
          n === It ||
          (v & 2 && !(c === cl && m & 1))
          ? !0
          : v & 131072
            ? !1
            : !!(
                (m & 402653316 && v & 4) ||
                (m & 128 &&
                  m & 1024 &&
                  v & 128 &&
                  !(v & 1024) &&
                  n.value === a.value) ||
                (m & 296 && v & 8) ||
                (m & 256 &&
                  m & 1024 &&
                  v & 256 &&
                  !(v & 1024) &&
                  n.value === a.value) ||
                (m & 2112 && v & 64) ||
                (m & 528 && v & 16) ||
                (m & 12288 && v & 4096) ||
                (m & 32 &&
                  v & 32 &&
                  n.symbol.escapedName === a.symbol.escapedName &&
                  y_e(n.symbol, a.symbol, p)) ||
                (m & 1024 &&
                  v & 1024 &&
                  ((m & 1048576 && v & 1048576 && y_e(n.symbol, a.symbol, p)) ||
                    (m & 2944 &&
                      v & 2944 &&
                      n.value === a.value &&
                      y_e(n.symbol, a.symbol, p)))) ||
                (m & 32768 && ((!ie && !(v & 3145728)) || v & 49152)) ||
                (m & 65536 && ((!ie && !(v & 3145728)) || v & 65536)) ||
                (m & 524288 &&
                  v & 67108864 &&
                  !(c === cl && tg(n) && !(Hr(n) & 8192))) ||
                ((c === qd || c === lp) &&
                  (m & 1 ||
                    (m & 8 && (v & 32 || (v & 256 && v & 1024))) ||
                    (m & 256 &&
                      !(m & 1024) &&
                      (v & 32 ||
                        (v & 256 && v & 1024 && n.value === a.value))) ||
                    Zdt(a)))
              );
      }
      function T_(n, a, c) {
        if (
          (RE(n) && (n = n.regularType), RE(a) && (a = a.regularType), n === a)
        )
          return !0;
        if (c !== Jd) {
          if ((c === lp && !(a.flags & 131072) && VW(a, n, c)) || VW(n, a, c))
            return !0;
        } else if (!((n.flags | a.flags) & 61865984)) {
          if (n.flags !== a.flags) return !1;
          if (n.flags & 67358815) return !0;
        }
        if (n.flags & 524288 && a.flags & 524288) {
          const p = c.get(CY(n, a, 0, c, !1));
          if (p !== void 0) return !!(p & 1);
        }
        return n.flags & 469499904 || a.flags & 469499904
          ? rm(n, a, c, void 0)
          : !1;
      }
      function U8e(n, a) {
        return Hr(n) & 2048 && gge(a.escapedName);
      }
      function c5(n, a) {
        for (;;) {
          const c = RE(n)
            ? n.regularType
            : mT(n)
              ? rut(n, a)
              : Hr(n) & 4
                ? n.node
                  ? Ly(n.target, rl(n))
                  : x_e(n) || n
                : n.flags & 3145728
                  ? tut(n, a)
                  : n.flags & 33554432
                    ? a
                      ? n.baseType
                      : Ohe(n)
                    : n.flags & 25165824
                      ? wy(n, a)
                      : n;
          if (c === n) return c;
          n = c;
        }
      }
      function tut(n, a) {
        const c = Pm(n);
        if (c !== n) return c;
        if (n.flags & 2097152 && nut(n)) {
          const p = Zi(n.types, (m) => c5(m, a));
          if (p !== n.types) return Ma(p);
        }
        return n;
      }
      function nut(n) {
        let a = !1,
          c = !1;
        for (const p of n.types)
          if (
            (a || (a = !!(p.flags & 465829888)),
            c || (c = !!(p.flags & 98304) || tg(p)),
            a && c)
          )
            return !0;
        return !1;
      }
      function rut(n, a) {
        const c = IE(n),
          p = Zi(c, (m) => (m.flags & 25165824 ? wy(m, a) : m));
        return c !== p ? qhe(n.target, p) : n;
      }
      function rm(n, a, c, p, m, v, I) {
        var w;
        let U,
          H,
          Q,
          Ie,
          Te,
          Ze,
          Tt = 0,
          Dt = 0,
          $t = 0,
          Tn = 0,
          nr = !1,
          yr = 0,
          Sn = 0,
          vn,
          Sr,
          fi = (16e6 - c.size) >> 3;
        C.assert(c !== Jd || !p, "no error reporting in identity checking");
        const oo = vr(n, a, 3, !!p, m);
        if ((Sr && ms(), nr)) {
          const Me = CY(n, a, 0, c, !1);
          (c.set(Me, 2 | (fi <= 0 ? 32 : 64)),
            (w = xr) == null ||
              w.instant(xr.Phase.CheckTypes, "checkTypeRelatedTo_DepthLimit", {
                sourceId: n.id,
                targetId: a.id,
                depth: Dt,
                targetDepth: $t,
              }));
          const qe =
              fi <= 0
                ? f.Excessive_complexity_comparing_types_0_and_1
                : f.Excessive_stack_depth_comparing_types_0_and_1,
            ct = Qe(p || R, qe, ar(n), ar(a));
          I && (I.errors || (I.errors = [])).push(ct);
        } else if (U) {
          if (v) {
            const ct = v();
            ct && (are(ct, U), (U = ct));
          }
          let Me;
          if (m && p && !oo && n.symbol) {
            const ct = Jr(n.symbol);
            if (
              ct.originatingImport &&
              !Qu(ct.originatingImport) &&
              rm(_r(ct.target), a, c, void 0)
            ) {
              const sn = Ar(
                ct.originatingImport,
                f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead,
              );
              Me = Bn(Me, sn);
            }
          }
          const qe = hg(Wn(p), p, U, Me);
          (H && pa(qe, ...H),
            I && (I.errors || (I.errors = [])).push(qe),
            (!I || !I.skipLogging) && ns.add(qe));
        }
        return (
          p &&
            I &&
            I.skipLogging &&
            oo === 0 &&
            C.assert(!!I.errors, "missed opportunity to interact with error."),
          oo !== 0
        );
        function ii(Me) {
          ((U = Me.errorInfo),
            (vn = Me.lastSkippedInfo),
            (Sr = Me.incompatibleStack),
            (yr = Me.overrideNextErrorInfo),
            (Sn = Me.skipParentCounter),
            (H = Me.relatedInfo));
        }
        function zi() {
          return {
            errorInfo: U,
            lastSkippedInfo: vn,
            incompatibleStack: Sr?.slice(),
            overrideNextErrorInfo: yr,
            skipParentCounter: Sn,
            relatedInfo: H?.slice(),
          };
        }
        function Ko(Me, ...qe) {
          (yr++, (vn = void 0), (Sr || (Sr = [])).push([Me, ...qe]));
        }
        function ms() {
          const Me = Sr || [];
          Sr = void 0;
          const qe = vn;
          if (((vn = void 0), Me.length === 1)) {
            (fo(...Me[0]), qe && mu(void 0, ...qe));
            return;
          }
          let ct = "";
          const Gt = [];
          for (; Me.length; ) {
            const [sn, ...Ut] = Me.pop();
            switch (sn.code) {
              case f.Types_of_property_0_are_incompatible.code: {
                ct.indexOf("new ") === 0 && (ct = `(${ct})`);
                const un = "" + Ut[0];
                ct.length === 0
                  ? (ct = `${un}`)
                  : fp(un, Ga(O))
                    ? (ct = `${ct}.${un}`)
                    : un[0] === "[" && un[un.length - 1] === "]"
                      ? (ct = `${ct}${un}`)
                      : (ct = `${ct}[${un}]`);
                break;
              }
              case f.Call_signature_return_types_0_and_1_are_incompatible.code:
              case f.Construct_signature_return_types_0_and_1_are_incompatible
                .code:
              case f
                .Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1
                .code:
              case f
                .Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1
                .code: {
                if (ct.length === 0) {
                  let un = sn;
                  (sn.code ===
                  f
                    .Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1
                    .code
                    ? (un =
                        f.Call_signature_return_types_0_and_1_are_incompatible)
                    : sn.code ===
                        f
                          .Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1
                          .code &&
                      (un =
                        f.Construct_signature_return_types_0_and_1_are_incompatible),
                    Gt.unshift([un, Ut[0], Ut[1]]));
                } else {
                  const un =
                      sn.code ===
                        f
                          .Construct_signature_return_types_0_and_1_are_incompatible
                          .code ||
                      sn.code ===
                        f
                          .Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1
                          .code
                        ? "new "
                        : "",
                    Zn =
                      sn.code ===
                        f
                          .Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1
                          .code ||
                      sn.code ===
                        f
                          .Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1
                          .code
                        ? ""
                        : "...";
                  ct = `${un}${ct}(${Zn})`;
                }
                break;
              }
              case f
                .Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target
                .code: {
                Gt.unshift([
                  f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,
                  Ut[0],
                  Ut[1],
                ]);
                break;
              }
              case f
                .Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target
                .code: {
                Gt.unshift([
                  f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,
                  Ut[0],
                  Ut[1],
                  Ut[2],
                ]);
                break;
              }
              default:
                return C.fail(`Unhandled Diagnostic: ${sn.code}`);
            }
          }
          ct
            ? fo(
                ct[ct.length - 1] === ")"
                  ? f.The_types_returned_by_0_are_incompatible_between_these_types
                  : f.The_types_of_0_are_incompatible_between_these_types,
                ct,
              )
            : Gt.shift();
          for (const [sn, ...Ut] of Gt) {
            const un = sn.elidedInCompatabilityPyramid;
            ((sn.elidedInCompatabilityPyramid = !1),
              fo(sn, ...Ut),
              (sn.elidedInCompatabilityPyramid = un));
          }
          qe && mu(void 0, ...qe);
        }
        function fo(Me, ...qe) {
          (C.assert(!!p),
            Sr && ms(),
            !Me.elidedInCompatabilityPyramid &&
              (Sn === 0 ? (U = qo(U, Me, ...qe)) : Sn--));
        }
        function dl(Me, ...qe) {
          (fo(Me, ...qe), Sn++);
        }
        function Kl(Me) {
          (C.assert(!!U), H ? H.push(Me) : (H = [Me]));
        }
        function mu(Me, qe, ct) {
          Sr && ms();
          const [Gt, sn] = dL(qe, ct);
          let Ut = qe,
            un = Gt;
          if (
            (!(ct.flags & 131072) &&
              jW(qe) &&
              !v_e(ct) &&
              ((Ut = zy(qe)),
              C.assert(
                !aa(Ut, ct),
                "generalized source shouldn't be assignable",
              ),
              (un = PC(Ut))),
            (ct.flags & 8388608 && !(qe.flags & 8388608)
              ? ct.objectType.flags
              : ct.flags) & 262144 &&
              ct !== pt &&
              ct !== qt)
          ) {
            const fr = Ld(ct);
            let Br;
            fr && (aa(Ut, fr) || (Br = aa(qe, fr)))
              ? fo(
                  f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,
                  Br ? Gt : un,
                  sn,
                  ar(fr),
                )
              : ((U = void 0),
                fo(
                  f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,
                  sn,
                  un,
                ));
          }
          if (Me)
            Me ===
              f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1 &&
              Ce &&
              H8e(qe, ct).length &&
              (Me =
                f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);
          else if (c === lp) Me = f.Type_0_is_not_comparable_to_type_1;
          else if (Gt === sn)
            Me =
              f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;
          else if (Ce && H8e(qe, ct).length)
            Me =
              f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;
          else {
            if (qe.flags & 128 && ct.flags & 1048576) {
              const fr = Tmt(qe, ct);
              if (fr) {
                fo(
                  f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,
                  un,
                  sn,
                  ar(fr),
                );
                return;
              }
            }
            Me = f.Type_0_is_not_assignable_to_type_1;
          }
          fo(Me, un, sn);
        }
        function qn(Me, qe) {
          const ct = LC(Me.symbol)
              ? ar(Me, Me.symbol.valueDeclaration)
              : ar(Me),
            Gt = LC(qe.symbol) ? ar(qe, qe.symbol.valueDeclaration) : ar(qe);
          ((Mc === Me && gt === qe) ||
            (tl === Me && Bt === qe) ||
            (Ll === Me && jt === qe) ||
            (GWe() === Me && Qt === qe)) &&
            fo(
              f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,
              Gt,
              ct,
            );
        }
        function rr(Me, qe, ct) {
          return Ka(Me)
            ? Me.target.readonly && f5(qe)
              ? (ct &&
                  fo(
                    f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,
                    ar(Me),
                    ar(qe),
                  ),
                !1)
              : Q0(qe)
            : RL(Me) && f5(qe)
              ? (ct &&
                  fo(
                    f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,
                    ar(Me),
                    ar(qe),
                  ),
                !1)
              : Ka(qe)
                ? im(Me)
                : !0;
        }
        function Hi(Me, qe, ct) {
          return vr(Me, qe, 3, ct);
        }
        function vr(Me, qe, ct = 3, Gt = !1, sn, Ut = 0) {
          if (Me === qe) return -1;
          if (Me.flags & 524288 && qe.flags & 402784252)
            return (c === lp && !(qe.flags & 131072) && VW(qe, Me, c)) ||
              VW(Me, qe, c, Gt ? fo : void 0)
              ? -1
              : (Gt && wo(Me, qe, Me, qe, sn), 0);
          const un = c5(Me, !1);
          let Zn = c5(qe, !0);
          if (un === Zn) return -1;
          if (c === Jd)
            return un.flags !== Zn.flags
              ? 0
              : un.flags & 67358815
                ? -1
                : (ys(un, Zn), T8(un, Zn, !1, 0, ct));
          if (un.flags & 262144 && vA(un) === Zn) return -1;
          if (un.flags & 470302716 && Zn.flags & 1048576) {
            const fr = Zn.types,
              Br =
                fr.length === 2 && fr[0].flags & 98304
                  ? fr[1]
                  : fr.length === 3 &&
                      fr[0].flags & 98304 &&
                      fr[1].flags & 98304
                    ? fr[2]
                    : void 0;
            if (Br && !(Br.flags & 98304) && ((Zn = c5(Br, !0)), un === Zn))
              return -1;
          }
          if (
            (c === lp && !(Zn.flags & 131072) && VW(Zn, un, c)) ||
            VW(un, Zn, c, Gt ? fo : void 0)
          )
            return -1;
          if (un.flags & 469499904 || Zn.flags & 469499904) {
            if (!(Ut & 2) && Uv(un) && Hr(un) & 8192 && md(un, Zn, Gt))
              return (Gt && mu(sn, un, qe.aliasSymbol ? qe : Zn), 0);
            const Br =
                (c !== lp || Nh(un)) &&
                !(Ut & 2) &&
                un.flags & 405405692 &&
                un !== Jt &&
                Zn.flags & 2621440 &&
                T_e(Zn) &&
                (bs(un).length > 0 || U$(un)),
              li = !!(Hr(un) & 2048);
            if (Br && !out(un, Zn, li)) {
              if (Gt) {
                const xi = ar(Me.aliasSymbol ? Me : un),
                  mo = ar(qe.aliasSymbol ? qe : Zn),
                  ts = na(un, 0),
                  bn = na(un, 1);
                (ts.length > 0 && vr(fs(ts[0]), Zn, 1, !1)) ||
                (bn.length > 0 && vr(fs(bn[0]), Zn, 1, !1))
                  ? fo(
                      f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,
                      xi,
                      mo,
                    )
                  : fo(
                      f.Type_0_has_no_properties_in_common_with_type_1,
                      xi,
                      mo,
                    );
              }
              return 0;
            }
            ys(un, Zn);
            const sr =
              (un.flags & 1048576 &&
                un.types.length < 4 &&
                !(Zn.flags & 1048576)) ||
              (Zn.flags & 1048576 &&
                Zn.types.length < 4 &&
                !(un.flags & 469499904))
                ? lc(un, Zn, Gt, Ut)
                : T8(un, Zn, Gt, Ut, ct);
            if (sr) return sr;
          }
          return (Gt && wo(Me, qe, un, Zn, sn), 0);
        }
        function wo(Me, qe, ct, Gt, sn) {
          var Ut, un;
          const Zn = !!x_e(Me),
            fr = !!x_e(qe);
          ((ct = Me.aliasSymbol || Zn ? Me : ct),
            (Gt = qe.aliasSymbol || fr ? qe : Gt));
          let Br = yr > 0;
          if ((Br && yr--, ct.flags & 524288 && Gt.flags & 524288)) {
            const li = U;
            (rr(ct, Gt, !0), U !== li && (Br = !!U));
          }
          if (ct.flags & 524288 && Gt.flags & 402784252) qn(ct, Gt);
          else if (ct.symbol && ct.flags & 524288 && Jt === ct)
            fo(
              f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead,
            );
          else if (Hr(ct) & 2048 && Gt.flags & 2097152) {
            const li = Gt.types,
              mi = LE(_f.IntrinsicAttributes, p),
              sr = LE(_f.IntrinsicClassAttributes, p);
            if (!pr(mi) && !pr(sr) && (jn(li, mi) || jn(li, sr))) return;
          } else U = Ihe(U, qe);
          if (!sn && Br) {
            const li = zi();
            mu(sn, ct, Gt);
            let mi;
            (U &&
              U !== li.errorInfo &&
              (mi = { code: U.code, messageText: U.messageText }),
              ii(li),
              mi && U && (U.canonicalHead = mi),
              (vn = [ct, Gt]));
            return;
          }
          if (
            (mu(sn, ct, Gt),
            ct.flags & 262144 &&
              (un = (Ut = ct.symbol) == null ? void 0 : Ut.declarations) !=
                null &&
              un[0] &&
              !vA(ct))
          ) {
            const li = d_e(ct);
            if (((li.constraint = io(Gt, DE(ct, li))), qz(li))) {
              const mi = ar(Gt, ct.symbol.declarations[0]);
              Kl(
                Ar(
                  ct.symbol.declarations[0],
                  f.This_type_parameter_might_need_an_extends_0_constraint,
                  mi,
                ),
              );
            }
          }
        }
        function ys(Me, qe) {
          if (xr && Me.flags & 3145728 && qe.flags & 3145728) {
            const ct = Me,
              Gt = qe;
            if (ct.objectFlags & Gt.objectFlags & 32768) return;
            const sn = ct.types.length,
              Ut = Gt.types.length;
            sn * Ut > 1e6 &&
              xr.instant(
                xr.Phase.CheckTypes,
                "traceUnionsOrIntersectionsTooLarge_DepthLimit",
                {
                  sourceId: Me.id,
                  sourceSize: sn,
                  targetId: qe.id,
                  targetSize: Ut,
                  pos: p?.pos,
                  end: p?.end,
                },
              );
          }
        }
        function il(Me, qe) {
          return pi(
            gu(
              Me,
              (Gt, sn) => {
                var Ut;
                sn = Du(sn);
                const un = sn.flags & 3145728 ? Jz(sn, qe) : SE(sn, qe),
                  Zn =
                    (un && _r(un)) ||
                    ((Ut = tR(sn, qe)) == null ? void 0 : Ut.type) ||
                    he;
                return Bn(Gt, Zn);
              },
              void 0,
            ) || ae,
          );
        }
        function md(Me, qe, ct) {
          var Gt;
          if (!t8(qe) || (!ve && Hr(qe) & 4096)) return !1;
          const sn = !!(Hr(Me) & 2048);
          if ((c === qd || c === lp) && (ML(Jt, qe) || (!sn && Fy(qe))))
            return !1;
          let Ut = qe,
            un;
          qe.flags & 1048576 &&
            ((Ut = T7e(Me, qe, vr) || Mbt(qe)),
            (un = Ut.flags & 1048576 ? Ut.types : [Ut]));
          for (const Zn of bs(Me))
            if (Xa(Zn, Me.symbol) && !U8e(Me, Zn)) {
              if (!d$(Ut, Zn.escapedName, sn)) {
                if (ct) {
                  const fr = Ec(Ut, t8);
                  if (!p) return C.fail();
                  if (jS(p) || ru(p) || ru(p.parent)) {
                    Zn.valueDeclaration &&
                      i_(Zn.valueDeclaration) &&
                      Wn(p) === Wn(Zn.valueDeclaration.name) &&
                      (p = Zn.valueDeclaration.name);
                    const Br = uo(Zn),
                      li = V6e(Br, fr),
                      mi = li ? uo(li) : void 0;
                    mi
                      ? fo(
                          f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,
                          Br,
                          ar(fr),
                          mi,
                        )
                      : fo(f.Property_0_does_not_exist_on_type_1, Br, ar(fr));
                  } else {
                    const Br =
                      ((Gt = Me.symbol) == null ? void 0 : Gt.declarations) &&
                      Ac(Me.symbol.declarations);
                    let li;
                    if (
                      Zn.valueDeclaration &&
                      Dn(Zn.valueDeclaration, (mi) => mi === Br) &&
                      Wn(Br) === Wn(p)
                    ) {
                      const mi = Zn.valueDeclaration;
                      C.assertNode(mi, ny);
                      const sr = mi.name;
                      ((p = sr), He(sr) && (li = j6e(sr, fr)));
                    }
                    li !== void 0
                      ? dl(
                          f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,
                          uo(Zn),
                          ar(fr),
                          li,
                        )
                      : dl(
                          f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
                          uo(Zn),
                          ar(fr),
                        );
                  }
                }
                return !0;
              }
              if (un && !vr(_r(Zn), il(un, Zn.escapedName), 3, ct))
                return (
                  ct && Ko(f.Types_of_property_0_are_incompatible, uo(Zn)),
                  !0
                );
            }
          return !1;
        }
        function Xa(Me, qe) {
          return (
            Me.valueDeclaration &&
            qe.valueDeclaration &&
            Me.valueDeclaration.parent === qe.valueDeclaration
          );
        }
        function lc(Me, qe, ct, Gt) {
          if (Me.flags & 1048576) {
            if (qe.flags & 1048576) {
              const sn = Me.origin;
              if (
                sn &&
                sn.flags & 2097152 &&
                qe.aliasSymbol &&
                jn(sn.types, qe)
              )
                return -1;
              const Ut = qe.origin;
              if (
                Ut &&
                Ut.flags & 1048576 &&
                Me.aliasSymbol &&
                jn(Ut.types, Me)
              )
                return -1;
            }
            return c === lp
              ? Sl(Me, qe, ct && !(Me.flags & 402784252), Gt)
              : lm(Me, qe, ct && !(Me.flags & 402784252), Gt);
          }
          if (qe.flags & 1048576)
            return Ts(
              qW(Me),
              qe,
              ct && !(Me.flags & 402784252) && !(qe.flags & 402784252),
              Gt,
            );
          if (qe.flags & 2097152) return Nf(Me, qe, ct, 2);
          if (c === lp && qe.flags & 402784252) {
            const sn = Zi(Me.types, (Ut) =>
              Ut.flags & 465829888 ? Ld(Ut) || Nt : Ut,
            );
            if (sn !== Me.types) {
              if (((Me = Ma(sn)), Me.flags & 131072)) return 0;
              if (!(Me.flags & 2097152))
                return vr(Me, qe, 1, !1) || vr(qe, Me, 1, !1);
            }
          }
          return Sl(Me, qe, !1, 1);
        }
        function _c(Me, qe) {
          let ct = -1;
          const Gt = Me.types;
          for (const sn of Gt) {
            const Ut = Ts(sn, qe, !1, 0);
            if (!Ut) return 0;
            ct &= Ut;
          }
          return ct;
        }
        function Ts(Me, qe, ct, Gt) {
          const sn = qe.types;
          if (qe.flags & 1048576) {
            if (Ug(sn, Me)) return -1;
            if (
              c !== lp &&
              Hr(qe) & 32768 &&
              !(Me.flags & 1024) &&
              (Me.flags & 2688 || ((c === H_ || c === cl) && Me.flags & 256))
            ) {
              const un = Me === Me.regularType ? Me.freshType : Me.regularType,
                Zn =
                  Me.flags & 128
                    ? gt
                    : Me.flags & 256
                      ? Bt
                      : Me.flags & 2048
                        ? gr
                        : void 0;
              return (Zn && Ug(sn, Zn)) || (un && Ug(sn, un)) ? -1 : 0;
            }
            const Ut = SFe(qe, Me);
            if (Ut) {
              const un = vr(Me, Ut, 2, !1, void 0, Gt);
              if (un) return un;
            }
          }
          for (const Ut of sn) {
            const un = vr(Me, Ut, 2, !1, void 0, Gt);
            if (un) return un;
          }
          if (ct) {
            const Ut = q8e(Me, qe, vr);
            Ut && vr(Me, Ut, 2, !0, void 0, Gt);
          }
          return 0;
        }
        function Nf(Me, qe, ct, Gt) {
          let sn = -1;
          const Ut = qe.types;
          for (const un of Ut) {
            const Zn = vr(Me, un, 2, ct, void 0, Gt);
            if (!Zn) return 0;
            sn &= Zn;
          }
          return sn;
        }
        function Sl(Me, qe, ct, Gt) {
          const sn = Me.types;
          if (Me.flags & 1048576 && Ug(sn, qe)) return -1;
          const Ut = sn.length;
          for (let un = 0; un < Ut; un++) {
            const Zn = vr(sn[un], qe, 1, ct && un === Ut - 1, void 0, Gt);
            if (Zn) return Zn;
          }
          return 0;
        }
        function nc(Me, qe) {
          return Me.flags & 1048576 &&
            qe.flags & 1048576 &&
            !(Me.types[0].flags & 32768) &&
            qe.types[0].flags & 32768
            ? PL(qe, -32769)
            : qe;
        }
        function lm(Me, qe, ct, Gt) {
          let sn = -1;
          const Ut = Me.types,
            un = nc(Me, qe);
          for (let Zn = 0; Zn < Ut.length; Zn++) {
            const fr = Ut[Zn];
            if (
              un.flags & 1048576 &&
              Ut.length >= un.types.length &&
              Ut.length % un.types.length === 0
            ) {
              const li = vr(
                fr,
                un.types[Zn % un.types.length],
                3,
                !1,
                void 0,
                Gt,
              );
              if (li) {
                sn &= li;
                continue;
              }
            }
            const Br = vr(fr, qe, 1, ct, void 0, Gt);
            if (!Br) return 0;
            sn &= Br;
          }
          return sn;
        }
        function jL(Me = ae, qe = ae, ct = ae, Gt, sn) {
          if (Me.length !== qe.length && c === Jd) return 0;
          const Ut = Me.length <= qe.length ? Me.length : qe.length;
          let un = -1;
          for (let Zn = 0; Zn < Ut; Zn++) {
            const fr = Zn < ct.length ? ct[Zn] : 1,
              Br = fr & 7;
            if (Br !== 4) {
              const li = Me[Zn],
                mi = qe[Zn];
              let sr = -1;
              if (
                (fr & 8
                  ? (sr = c === Jd ? vr(li, mi, 3, !1) : BW(li, mi))
                  : Br === 1
                    ? (sr = vr(li, mi, 3, Gt, void 0, sn))
                    : Br === 2
                      ? (sr = vr(mi, li, 3, Gt, void 0, sn))
                      : Br === 3
                        ? ((sr = vr(mi, li, 3, !1)),
                          sr || (sr = vr(li, mi, 3, Gt, void 0, sn)))
                        : ((sr = vr(li, mi, 3, Gt, void 0, sn)),
                          sr && (sr &= vr(mi, li, 3, Gt, void 0, sn))),
                !sr)
              )
                return 0;
              un &= sr;
            }
          }
          return un;
        }
        function T8(Me, qe, ct, Gt, sn) {
          var Ut, un, Zn;
          if (nr) return 0;
          const fr = CY(Me, qe, Gt, c, !1),
            Br = c.get(fr);
          if (Br !== void 0 && !(ct && Br & 2 && !(Br & 96))) {
            if (Go) {
              const bn = Br & 24;
              (bn & 8 && io(Me, $s), bn & 16 && io(Me, Tc));
            }
            if (ct && Br & 96) {
              const bn =
                Br & 32
                  ? f.Excessive_complexity_comparing_types_0_and_1
                  : f.Excessive_stack_depth_comparing_types_0_and_1;
              (fo(bn, ar(Me), ar(qe)), yr++);
            }
            return Br & 1 ? -1 : 0;
          }
          if (fi <= 0) return ((nr = !0), 0);
          if (!Q) ((Q = []), (Ie = new Set()), (Te = []), (Ze = []));
          else {
            if (Ie.has(fr)) return 3;
            const bn = fr.startsWith("*") ? CY(Me, qe, Gt, c, !0) : void 0;
            if (bn && Ie.has(bn)) return 3;
            if (Dt === 100 || $t === 100) return ((nr = !0), 0);
          }
          const li = Tt;
          ((Q[Tt] = fr), Ie.add(fr), Tt++);
          const mi = Tn;
          (sn & 1 &&
            ((Te[Dt] = Me), Dt++, !(Tn & 1) && sR(Me, Te, Dt) && (Tn |= 1)),
            sn & 2 &&
              ((Ze[$t] = qe), $t++, !(Tn & 2) && sR(qe, Ze, $t) && (Tn |= 2)));
          let sr,
            xi = 0;
          Go && ((sr = Go), (Go = (bn) => ((xi |= bn ? 16 : 8), sr(bn))));
          let mo;
          return (
            Tn === 3
              ? ((Ut = xr) == null ||
                  Ut.instant(
                    xr.Phase.CheckTypes,
                    "recursiveTypeRelatedTo_DepthLimit",
                    {
                      sourceId: Me.id,
                      sourceIdStack: Te.map((bn) => bn.id),
                      targetId: qe.id,
                      targetIdStack: Ze.map((bn) => bn.id),
                      depth: Dt,
                      targetDepth: $t,
                    },
                  ),
                (mo = 3))
              : ((un = xr) == null ||
                  un.push(xr.Phase.CheckTypes, "structuredTypeRelatedTo", {
                    sourceId: Me.id,
                    targetId: qe.id,
                  }),
                (mo = UL(Me, qe, ct, Gt)),
                (Zn = xr) == null || Zn.pop()),
            Go && (Go = sr),
            sn & 1 && Dt--,
            sn & 2 && $t--,
            (Tn = mi),
            mo
              ? (mo === -1 || (Dt === 0 && $t === 0)) &&
                ts(mo === -1 || mo === 3)
              : (c.set(fr, 2 | xi), fi--, ts(!1)),
            mo
          );
          function ts(bn) {
            for (let Yr = li; Yr < Tt; Yr++)
              (Ie.delete(Q[Yr]), bn && (c.set(Q[Yr], 1 | xi), fi--));
            Tt = li;
          }
        }
        function UL(Me, qe, ct, Gt) {
          const sn = zi();
          let Ut = S8(Me, qe, ct, Gt, sn);
          if (c !== Jd) {
            if (
              !Ut &&
              (Me.flags & 2097152 || (Me.flags & 262144 && qe.flags & 1048576))
            ) {
              const un = klt(
                Me.flags & 2097152 ? Me.types : [Me],
                !!(qe.flags & 1048576),
              );
              un &&
                Ep(un, (Zn) => Zn !== Me) &&
                (Ut = vr(un, qe, 1, !1, void 0, Gt));
            }
            Ut &&
            !(Gt & 2) &&
            qe.flags & 2097152 &&
            !IA(qe) &&
            Me.flags & 2621440
              ? ((Ut &= Pa(Me, qe, ct, void 0, !1, 0)),
                Ut && Uv(Me) && Hr(Me) & 8192 && (Ut &= we(Me, qe, !1, ct, 0)))
              : Ut &&
                yY(qe) &&
                !Q0(qe) &&
                Me.flags & 2097152 &&
                Du(Me).flags & 3670016 &&
                !yt(Me.types, (un) => un === qe || !!(Hr(un) & 262144)) &&
                (Ut &= Pa(Me, qe, ct, void 0, !0, Gt));
          }
          return (Ut && ii(sn), Ut);
        }
        function af(Me, qe) {
          const ct = Du(H0(qe)),
            Gt = [];
          return (
            yhe(
              ct,
              8576,
              !1,
              (sn) => void Gt.push(io(Me, WW(qe.mapper, eh(qe), sn))),
            ),
            pi(Gt)
          );
        }
        function S8(Me, qe, ct, Gt, sn) {
          let Ut,
            un,
            Zn = !1,
            fr = Me.flags;
          const Br = qe.flags;
          if (c === Jd) {
            if (fr & 3145728) {
              let sr = _c(Me, qe);
              return (sr && (sr &= _c(qe, Me)), sr);
            }
            if (fr & 4194304) return vr(Me.type, qe.type, 3, !1);
            if (
              (fr & 8388608 &&
                (Ut = vr(Me.objectType, qe.objectType, 3, !1)) &&
                (Ut &= vr(Me.indexType, qe.indexType, 3, !1))) ||
              (fr & 16777216 &&
                Me.root.isDistributive === qe.root.isDistributive &&
                (Ut = vr(Me.checkType, qe.checkType, 3, !1)) &&
                (Ut &= vr(Me.extendsType, qe.extendsType, 3, !1)) &&
                (Ut &= vr(pT(Me), pT(qe), 3, !1)) &&
                (Ut &= vr(fT(Me), fT(qe), 3, !1))) ||
              (fr & 33554432 &&
                (Ut = vr(Me.baseType, qe.baseType, 3, !1)) &&
                (Ut &= vr(Me.constraint, qe.constraint, 3, !1)))
            )
              return Ut;
            if (fr & 134217728 && Qp(Me.texts, qe.texts)) {
              const sr = Me.types,
                xi = qe.types;
              Ut = -1;
              for (
                let mo = 0;
                mo < sr.length && (Ut &= vr(sr[mo], xi[mo], 3, !1));
                mo++
              );
              return Ut;
            }
            if (fr & 268435456 && Me.symbol === qe.symbol)
              return vr(Me.type, qe.type, 3, !1);
            if (!(fr & 524288)) return 0;
          } else if (fr & 3145728 || Br & 3145728) {
            if ((Ut = lc(Me, qe, ct, Gt))) return Ut;
            if (
              !(
                fr & 465829888 ||
                (fr & 524288 && Br & 1048576) ||
                (fr & 2097152 && Br & 467402752)
              )
            )
              return 0;
          }
          if (
            fr & 17301504 &&
            Me.aliasSymbol &&
            Me.aliasTypeArguments &&
            Me.aliasSymbol === qe.aliasSymbol &&
            !(RY(Me) || RY(qe))
          ) {
            const sr = J8e(Me.aliasSymbol);
            if (sr === ae) return 1;
            const xi = Jr(Me.aliasSymbol).typeParameters,
              mo = Z_(xi),
              ts = Bv(
                Me.aliasTypeArguments,
                xi,
                mo,
                Ir(Me.aliasSymbol.valueDeclaration),
              ),
              bn = Bv(
                qe.aliasTypeArguments,
                xi,
                mo,
                Ir(Me.aliasSymbol.valueDeclaration),
              ),
              Yr = mi(ts, bn, sr, Gt);
            if (Yr !== void 0) return Yr;
          }
          if (
            (nFe(Me) && !Me.target.readonly && (Ut = vr(rl(Me)[0], qe, 1))) ||
            (nFe(qe) &&
              (qe.target.readonly || f5(Ld(Me) || Me)) &&
              (Ut = vr(Me, rl(qe)[0], 2)))
          )
            return Ut;
          if (Br & 262144) {
            if (
              Hr(Me) & 32 &&
              !Me.declaration.nameType &&
              vr(b_(qe), Rf(Me), 3) &&
              !(Q_(Me) & 4)
            ) {
              const sr = Gg(Me),
                xi = Xp(qe, eh(Me));
              if ((Ut = vr(sr, xi, 3, ct))) return Ut;
            }
            if (c === lp && fr & 262144) {
              let sr = Uu(Me);
              if (sr)
                for (; sr && am(sr, (xi) => !!(xi.flags & 262144)); ) {
                  if ((Ut = vr(sr, qe, 1, !1))) return Ut;
                  sr = Uu(sr);
                }
              return 0;
            }
          } else if (Br & 4194304) {
            const sr = qe.type;
            if (fr & 4194304 && (Ut = vr(sr, Me.type, 3, !1))) return Ut;
            if (Ka(sr)) {
              if ((Ut = vr(Me, QWe(sr), 2, ct))) return Ut;
            } else {
              const xi = vhe(sr);
              if (xi) {
                if (vr(Me, b_(xi, qe.indexFlags | 4), 2, ct) === -1) return -1;
              } else if (up(sr)) {
                const mo = Fv(sr),
                  ts = Rf(sr);
                let bn;
                if (mo && zC(sr)) {
                  const Yr = af(mo, sr);
                  bn = pi([Yr, mo]);
                } else bn = mo || ts;
                if (vr(Me, bn, 2, ct) === -1) return -1;
              }
            }
          } else if (Br & 8388608) {
            if (fr & 8388608) {
              if (
                ((Ut = vr(Me.objectType, qe.objectType, 3, ct)) &&
                  (Ut &= vr(Me.indexType, qe.indexType, 3, ct)),
                Ut)
              )
                return Ut;
              ct && (un = U);
            }
            if (c === qd || c === lp) {
              const sr = qe.objectType,
                xi = qe.indexType,
                mo = Ld(sr) || sr,
                ts = Ld(xi) || xi;
              if (!IA(mo) && !xA(ts)) {
                const bn = 4 | (mo !== sr ? 2 : 0),
                  Yr = uT(mo, ts, bn);
                if (Yr) {
                  if (
                    (ct && un && ii(sn), (Ut = vr(Me, Yr, 2, ct, void 0, Gt)))
                  )
                    return Ut;
                  ct && un && U && (U = li([un]) <= li([U]) ? un : U);
                }
              }
            }
            ct && (un = void 0);
          } else if (up(qe) && c !== Jd) {
            const sr = !!qe.declaration.nameType,
              xi = Gg(qe),
              mo = Q_(qe);
            if (!(mo & 8)) {
              if (
                !sr &&
                xi.flags & 8388608 &&
                xi.objectType === Me &&
                xi.indexType === eh(qe)
              )
                return -1;
              if (!up(Me)) {
                const ts = sr ? Fv(qe) : Rf(qe),
                  bn = b_(Me, 2),
                  Yr = mo & 4,
                  Fo = Yr ? jz(ts, bn) : void 0;
                if (Yr ? !(Fo.flags & 131072) : vr(ts, bn, 3)) {
                  const vo = Gg(qe),
                    Ya = eh(qe),
                    hs = PL(vo, -98305);
                  if (!sr && hs.flags & 8388608 && hs.indexType === Ya) {
                    if ((Ut = vr(Me, hs.objectType, 2, ct))) return Ut;
                  } else {
                    const No = sr ? Fo || ts : Fo ? Ma([Fo, Ya]) : Ya,
                      Pc = Xp(Me, No);
                    if ((Ut = vr(Pc, vo, 3, ct))) return Ut;
                  }
                }
                ((un = U), ii(sn));
              }
            }
          } else if (Br & 16777216) {
            if (sR(qe, Ze, $t, 10)) return 3;
            const sr = qe;
            if (
              !sr.root.inferTypeParameters &&
              !vdt(sr.root) &&
              !(Me.flags & 16777216 && Me.root === sr.root)
            ) {
              const xi = !aa(zW(sr.checkType), zW(sr.extendsType)),
                mo = !xi && aa(CA(sr.checkType), CA(sr.extendsType));
              if (
                (Ut = xi ? -1 : vr(Me, pT(sr), 2, !1, void 0, Gt)) &&
                ((Ut &= mo ? -1 : vr(Me, fT(sr), 2, !1, void 0, Gt)), Ut)
              )
                return Ut;
            }
          } else if (Br & 134217728) {
            if (fr & 134217728) {
              if (c === lp) return Jut(Me, qe) ? 0 : -1;
              io(Me, Tc);
            }
            if (UY(Me, qe)) return -1;
          } else if (
            qe.flags & 268435456 &&
            !(Me.flags & 268435456) &&
            jY(Me, qe)
          )
            return -1;
          if (fr & 8650752) {
            if (!(fr & 8388608 && Br & 8388608)) {
              const sr = vA(Me) || Nt;
              if ((Ut = vr(sr, qe, 1, !1, void 0, Gt))) return Ut;
              if (
                (Ut = vr(
                  Kp(sr, Me),
                  qe,
                  1,
                  ct && sr !== Nt && !(Br & fr & 262144),
                  void 0,
                  Gt,
                ))
              )
                return Ut;
              if (Ehe(Me)) {
                const xi = vA(Me.indexType);
                if (xi && (Ut = vr(Xp(Me.objectType, xi), qe, 1, ct)))
                  return Ut;
              }
            }
          } else if (fr & 4194304) {
            const sr = Qhe(Me.type, Me.indexFlags) && Hr(Me.type) & 32;
            if ((Ut = vr(Ii, qe, 1, ct && !sr))) return Ut;
            if (sr) {
              const xi = Me.type,
                mo = Fv(xi),
                ts = mo && zC(xi) ? af(mo, xi) : mo || Rf(xi);
              if ((Ut = vr(ts, qe, 1, ct))) return Ut;
            }
          } else if (fr & 134217728 && !(Br & 524288)) {
            if (!(Br & 134217728)) {
              const sr = Ld(Me);
              if (sr && sr !== Me && (Ut = vr(sr, qe, 1, ct))) return Ut;
            }
          } else if (fr & 268435456)
            if (Br & 268435456) {
              if (Me.symbol !== qe.symbol) return 0;
              if ((Ut = vr(Me.type, qe.type, 3, ct))) return Ut;
            } else {
              const sr = Ld(Me);
              if (sr && (Ut = vr(sr, qe, 1, ct))) return Ut;
            }
          else if (fr & 16777216) {
            if (sR(Me, Te, Dt, 10)) return 3;
            if (Br & 16777216) {
              const mo = Me.root.inferTypeParameters;
              let ts = Me.extendsType,
                bn;
              if (mo) {
                const Yr = JW(mo, void 0, 0, Hi);
                (qg(Yr.inferences, qe.extendsType, ts, 1536),
                  (ts = io(ts, Yr.mapper)),
                  (bn = Yr.mapper));
              }
              if (
                Hg(ts, qe.extendsType) &&
                (vr(Me.checkType, qe.checkType, 3) ||
                  vr(qe.checkType, Me.checkType, 3)) &&
                ((Ut = vr(io(pT(Me), bn), pT(qe), 3, ct)) &&
                  (Ut &= vr(fT(Me), fT(qe), 3, ct)),
                Ut)
              )
                return Ut;
            }
            const sr = bhe(Me);
            if (sr && (Ut = vr(sr, qe, 1, ct))) return Ut;
            const xi = !(Br & 16777216) && qz(Me) ? aWe(Me) : void 0;
            if (xi && (ii(sn), (Ut = vr(xi, qe, 1, ct)))) return Ut;
          } else {
            if (c !== H_ && c !== cl && Rlt(qe) && Fy(Me)) return -1;
            if (up(qe)) return up(Me) && (Ut = Ht(Me, qe, ct)) ? Ut : 0;
            const sr = !!(fr & 402784252);
            if (c !== Jd) ((Me = Du(Me)), (fr = Me.flags));
            else if (up(Me)) return 0;
            if (
              Hr(Me) & 4 &&
              Hr(qe) & 4 &&
              Me.target === qe.target &&
              !Ka(Me) &&
              !(RY(Me) || RY(qe))
            ) {
              if (PY(Me)) return -1;
              const xi = S_e(Me.target);
              if (xi === ae) return 1;
              const mo = mi(rl(Me), rl(qe), xi, Gt);
              if (mo !== void 0) return mo;
            } else {
              if (
                RL(qe)
                  ? Ep(Me, Q0)
                  : im(qe) && Ep(Me, (xi) => Ka(xi) && !xi.target.readonly)
              )
                return c !== Jd
                  ? vr(q0(Me, Bt) || Ue, q0(qe, Bt) || Ue, 3, ct)
                  : 0;
              if (mT(Me) && Ka(qe) && !mT(qe)) {
                const xi = v_(Me);
                if (xi !== Me) return vr(xi, qe, 1, ct);
              } else if (
                (c === H_ || c === cl) &&
                Fy(qe) &&
                Hr(qe) & 8192 &&
                !Fy(Me)
              )
                return 0;
            }
            if (fr & 2621440 && Br & 524288) {
              const xi = ct && U === sn.errorInfo && !sr;
              if (
                ((Ut = Pa(Me, qe, xi, void 0, !1, Gt)),
                Ut &&
                  ((Ut &= Gs(Me, qe, 0, xi, Gt)),
                  Ut &&
                    ((Ut &= Gs(Me, qe, 1, xi, Gt)),
                    Ut && (Ut &= we(Me, qe, sr, xi, Gt)))),
                Zn && Ut)
              )
                U = un || U || sn.errorInfo;
              else if (Ut) return Ut;
            }
            if (fr & 2621440 && Br & 1048576) {
              const xi = PL(qe, 36175872);
              if (xi.flags & 1048576) {
                const mo = Nn(Me, xi);
                if (mo) return mo;
              }
            }
          }
          return 0;
          function li(sr) {
            return sr ? gu(sr, (xi, mo) => xi + 1 + li(mo.next), 0) : 0;
          }
          function mi(sr, xi, mo, ts) {
            if ((Ut = jL(sr, xi, mo, ct, ts))) return Ut;
            if (yt(mo, (Yr) => !!(Yr & 24))) {
              ((un = void 0), ii(sn));
              return;
            }
            const bn = xi && aut(xi, mo);
            if (((Zn = !bn), mo !== ae && !bn)) {
              if (Zn && !(ct && yt(mo, (Yr) => (Yr & 7) === 0))) return 0;
              ((un = U), ii(sn));
            }
          }
        }
        function Ht(Me, qe, ct) {
          if (c === lp || (c === Jd ? Q_(Me) === Q_(qe) : yL(Me) <= yL(qe))) {
            let sn;
            const Ut = Rf(qe),
              un = io(Rf(Me), yL(Me) < 0 ? $s : Tc);
            if ((sn = vr(Ut, un, 3, ct))) {
              const Zn = Yp([eh(Me)], [eh(qe)]);
              if (io(Fv(Me), Zn) === io(Fv(qe), Zn))
                return sn & vr(io(Gg(Me), Zn), Gg(qe), 3, ct);
            }
          }
          return 0;
        }
        function Nn(Me, qe) {
          var ct;
          const Gt = bs(Me),
            sn = TFe(Gt, qe);
          if (!sn) return 0;
          let Ut = 1;
          for (const mi of sn)
            if (((Ut *= Tpt(xh(mi))), Ut > 25))
              return (
                (ct = xr) == null ||
                  ct.instant(
                    xr.Phase.CheckTypes,
                    "typeRelatedToDiscriminatedType_DepthLimit",
                    { sourceId: Me.id, targetId: qe.id, numCombinations: Ut },
                  ),
                0
              );
          const un = new Array(sn.length),
            Zn = new Set();
          for (let mi = 0; mi < sn.length; mi++) {
            const sr = sn[mi],
              xi = xh(sr);
            ((un[mi] = xi.flags & 1048576 ? xi.types : [xi]),
              Zn.add(sr.escapedName));
          }
          const fr = nZ(un),
            Br = [];
          for (const mi of fr) {
            let sr = !1;
            e: for (const xi of qe.types) {
              for (let mo = 0; mo < sn.length; mo++) {
                const ts = sn[mo],
                  bn = Ea(xi, ts.escapedName);
                if (!bn) continue e;
                if (ts === bn) continue;
                if (!Gr(Me, qe, ts, bn, (Fo) => mi[mo], !1, 0, ie || c === lp))
                  continue e;
              }
              (kf(Br, xi, nb), (sr = !0));
            }
            if (!sr) return 0;
          }
          let li = -1;
          for (const mi of Br)
            if (
              ((li &= Pa(Me, mi, !1, Zn, !1, 0)),
              li &&
                ((li &= Gs(Me, mi, 0, !1, 0)),
                li &&
                  ((li &= Gs(Me, mi, 1, !1, 0)),
                  li && !(Ka(Me) && Ka(mi)) && (li &= we(Me, mi, !1, !1, 0)))),
              !li)
            )
              return li;
          return li;
        }
        function $n(Me, qe) {
          if (!qe || Me.length === 0) return Me;
          let ct;
          for (let Gt = 0; Gt < Me.length; Gt++)
            qe.has(Me[Gt].escapedName)
              ? ct || (ct = Me.slice(0, Gt))
              : ct && ct.push(Me[Gt]);
          return ct || Me;
        }
        function hr(Me, qe, ct, Gt, sn) {
          const Ut = ie && !!(Wl(qe) & 48),
            un = pu(xh(qe), !1, Ut);
          if (un.flags & (c === cl ? 1 : 3)) return -1;
          const Zn = ct(Me);
          return vr(Zn, un, 3, Gt, void 0, sn);
        }
        function Gr(Me, qe, ct, Gt, sn, Ut, un, Zn) {
          const fr = Vf(ct),
            Br = Vf(Gt);
          if (fr & 2 || Br & 2) {
            if (ct.valueDeclaration !== Gt.valueDeclaration)
              return (
                Ut &&
                  (fr & 2 && Br & 2
                    ? fo(
                        f.Types_have_separate_declarations_of_a_private_property_0,
                        uo(Gt),
                      )
                    : fo(
                        f.Property_0_is_private_in_type_1_but_not_in_type_2,
                        uo(Gt),
                        ar(fr & 2 ? Me : qe),
                        ar(fr & 2 ? qe : Me),
                      )),
                0
              );
          } else if (Br & 4) {
            if (!uut(ct, Gt))
              return (
                Ut &&
                  fo(
                    f.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,
                    uo(Gt),
                    ar(aR(ct) || Me),
                    ar(aR(Gt) || qe),
                  ),
                0
              );
          } else if (fr & 4)
            return (
              Ut &&
                fo(
                  f.Property_0_is_protected_in_type_1_but_public_in_type_2,
                  uo(Gt),
                  ar(Me),
                  ar(qe),
                ),
              0
            );
          if (c === cl && wh(ct) && !wh(Gt)) return 0;
          const li = hr(ct, Gt, sn, Ut, un);
          return li
            ? !Zn &&
              ct.flags & 16777216 &&
              Gt.flags & 106500 &&
              !(Gt.flags & 16777216)
              ? (Ut &&
                  fo(
                    f.Property_0_is_optional_in_type_1_but_required_in_type_2,
                    uo(Gt),
                    ar(Me),
                    ar(qe),
                  ),
                0)
              : li
            : (Ut && Ko(f.Types_of_property_0_are_incompatible, uo(Gt)), 0);
        }
        function gi(Me, qe, ct, Gt) {
          let sn = !1;
          if (
            ct.valueDeclaration &&
            nd(ct.valueDeclaration) &&
            eo(ct.valueDeclaration.name) &&
            Me.symbol &&
            Me.symbol.flags & 32
          ) {
            const un = ct.valueDeclaration.name.escapedText,
              Zn = Ck(Me.symbol, un);
            if (Zn && Ea(Me, Zn)) {
              const fr = L.getDeclarationName(Me.symbol.valueDeclaration),
                Br = L.getDeclarationName(qe.symbol.valueDeclaration);
              fo(
                f.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,
                vp(un),
                vp(fr.escapedText === "" ? PU : fr),
                vp(Br.escapedText === "" ? PU : Br),
              );
              return;
            }
          }
          const Ut = Co(F_e(Me, qe, Gt, !1));
          if (
            ((!m ||
              (m.code !== f.Class_0_incorrectly_implements_interface_1.code &&
                m.code !==
                  f
                    .Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass
                    .code)) &&
              (sn = !0),
            Ut.length === 1)
          ) {
            const un = uo(ct, void 0, 0, 20);
            (fo(
              f.Property_0_is_missing_in_type_1_but_required_in_type_2,
              un,
              ...dL(Me, qe),
            ),
              et(ct.declarations) &&
                Kl(Ar(ct.declarations[0], f._0_is_declared_here, un)),
              sn && U && yr++);
          } else
            rr(Me, qe, !1) &&
              (Ut.length > 5
                ? fo(
                    f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,
                    ar(Me),
                    ar(qe),
                    Vt(Ut.slice(0, 4), (un) => uo(un)).join(", "),
                    Ut.length - 4,
                  )
                : fo(
                    f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,
                    ar(Me),
                    ar(qe),
                    Vt(Ut, (un) => uo(un)).join(", "),
                  ),
              sn && U && yr++);
        }
        function Pa(Me, qe, ct, Gt, sn, Ut) {
          if (c === Jd) return Oa(Me, qe, Gt);
          let un = -1;
          if (Ka(qe)) {
            if (Q0(Me)) {
              if (
                !qe.target.readonly &&
                (RL(Me) || (Ka(Me) && Me.target.readonly))
              )
                return 0;
              const mi = Gv(Me),
                sr = Gv(qe),
                xi = Ka(Me) ? Me.target.combinedFlags & 4 : 4,
                mo = !!(qe.target.combinedFlags & 12),
                ts = Ka(Me) ? Me.target.minLength : 0,
                bn = qe.target.minLength;
              if (!xi && mi < bn)
                return (
                  ct &&
                    fo(f.Source_has_0_element_s_but_target_requires_1, mi, bn),
                  0
                );
              if (!mo && sr < ts)
                return (
                  ct &&
                    fo(
                      f.Source_has_0_element_s_but_target_allows_only_1,
                      ts,
                      sr,
                    ),
                  0
                );
              if (!mo && (xi || sr < mi))
                return (
                  ct &&
                    (ts < bn
                      ? fo(
                          f.Target_requires_0_element_s_but_source_may_have_fewer,
                          bn,
                        )
                      : fo(
                          f.Target_allows_only_0_element_s_but_source_may_have_more,
                          sr,
                        )),
                  0
                );
              const Yr = rl(Me),
                Fo = rl(qe),
                vo = Fct(qe.target, 11),
                Ya = kW(qe.target, 11);
              let hs = !!Gt;
              for (let No = 0; No < mi; No++) {
                const Pc = Ka(Me) ? Me.target.elementFlags[No] : 4,
                  Lc = mi - 1 - No,
                  Od = mo && No >= vo ? sr - 1 - Math.min(Lc, Ya) : No,
                  _u = qe.target.elementFlags[Od];
                if (_u & 8 && !(Pc & 8))
                  return (
                    ct &&
                      fo(
                        f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,
                        Od,
                      ),
                    0
                  );
                if (Pc & 8 && !(_u & 12))
                  return (
                    ct &&
                      fo(
                        f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,
                        No,
                        Od,
                      ),
                    0
                  );
                if (_u & 1 && !(Pc & 1))
                  return (
                    ct &&
                      fo(
                        f.Source_provides_no_match_for_required_element_at_position_0_in_target,
                        Od,
                      ),
                    0
                  );
                if (
                  hs &&
                  ((Pc & 12 || _u & 12) && (hs = !1), hs && Gt?.has("" + No))
                )
                  continue;
                const qu = Gy(Yr[No], !!(Pc & _u & 2)),
                  Hy = Fo[Od],
                  aS = Pc & 8 && _u & 4 ? Yd(Hy) : Gy(Hy, !!(_u & 2)),
                  OE = vr(qu, aS, 3, ct, void 0, Ut);
                if (!OE)
                  return (
                    ct &&
                      (sr > 1 || mi > 1) &&
                      (mo && No >= vo && Lc >= Ya && vo !== mi - Ya - 1
                        ? Ko(
                            f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,
                            vo,
                            mi - Ya - 1,
                            Od,
                          )
                        : Ko(
                            f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,
                            No,
                            Od,
                          )),
                    0
                  );
                un &= OE;
              }
              return un;
            }
            if (qe.target.combinedFlags & 12) return 0;
          }
          const Zn = (c === H_ || c === cl) && !Uv(Me) && !PY(Me) && !Ka(Me),
            fr = z_e(Me, qe, Zn, !1);
          if (fr) return (ct && Qc(Me, qe) && gi(Me, qe, fr, Zn), 0);
          if (Uv(qe)) {
            for (const mi of $n(bs(Me), Gt))
              if (!SE(qe, mi.escapedName) && !(_r(mi).flags & 32768))
                return (
                  ct &&
                    fo(f.Property_0_does_not_exist_on_type_1, uo(mi), ar(qe)),
                  0
                );
          }
          const Br = bs(qe),
            li = Ka(Me) && Ka(qe);
          for (const mi of $n(Br, Gt)) {
            const sr = mi.escapedName;
            if (
              !(mi.flags & 4194304) &&
              (!li || Eg(sr) || sr === "length") &&
              (!sn || mi.flags & 16777216)
            ) {
              const xi = Ea(Me, sr);
              if (xi && xi !== mi) {
                const mo = Gr(Me, qe, xi, mi, xh, ct, Ut, c === lp);
                if (!mo) return 0;
                un &= mo;
              }
            }
          }
          return un;
        }
        function Oa(Me, qe, ct) {
          if (!(Me.flags & 524288 && qe.flags & 524288)) return 0;
          const Gt = $n(zv(Me), ct),
            sn = $n(zv(qe), ct);
          if (Gt.length !== sn.length) return 0;
          let Ut = -1;
          for (const un of Gt) {
            const Zn = SE(qe, un.escapedName);
            if (!Zn) return 0;
            const fr = A_e(un, Zn, vr);
            if (!fr) return 0;
            Ut &= fr;
          }
          return Ut;
        }
        function Gs(Me, qe, ct, Gt, sn) {
          var Ut, un;
          if (c === Jd) return oS(Me, qe, ct);
          if (qe === As || Me === As) return -1;
          const Zn = Me.symbol && E_(Me.symbol.valueDeclaration),
            fr = qe.symbol && E_(qe.symbol.valueDeclaration),
            Br = na(Me, Zn && ct === 1 ? 0 : ct),
            li = na(qe, fr && ct === 1 ? 0 : ct);
          if (ct === 1 && Br.length && li.length) {
            const ts = !!(Br[0].flags & 4),
              bn = !!(li[0].flags & 4);
            if (ts && !bn)
              return (
                Gt &&
                  fo(
                    f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type,
                  ),
                0
              );
            if (!pn(Br[0], li[0], Gt)) return 0;
          }
          let mi = -1;
          const sr = ct === 1 ? pp : hu,
            xi = Hr(Me),
            mo = Hr(qe);
          if (
            (xi & 64 && mo & 64 && Me.symbol === qe.symbol) ||
            (xi & 4 && mo & 4 && Me.target === qe.target)
          ) {
            C.assertEqual(Br.length, li.length);
            for (let ts = 0; ts < li.length; ts++) {
              const bn = iS(Br[ts], li[ts], !0, Gt, sn, sr(Br[ts], li[ts]));
              if (!bn) return 0;
              mi &= bn;
            }
          } else if (Br.length === 1 && li.length === 1) {
            const ts = c === lp,
              bn = $a(Br),
              Yr = $a(li);
            if (
              ((mi = iS(bn, Yr, ts, Gt, sn, sr(bn, Yr))),
              !mi &&
                Gt &&
                ct === 1 &&
                xi & mo &&
                (((Ut = Yr.declaration) == null ? void 0 : Ut.kind) === 177 ||
                  ((un = bn.declaration) == null ? void 0 : un.kind) === 177))
            ) {
              const Fo = (vo) => aT(vo, void 0, 262144, ct);
              return (
                fo(f.Type_0_is_not_assignable_to_type_1, Fo(bn), Fo(Yr)),
                fo(f.Types_of_construct_signatures_are_incompatible),
                mi
              );
            }
          } else
            e: for (const ts of li) {
              const bn = zi();
              let Yr = Gt;
              for (const Fo of Br) {
                const vo = iS(Fo, ts, !0, Yr, sn, sr(Fo, ts));
                if (vo) {
                  ((mi &= vo), ii(bn));
                  continue e;
                }
                Yr = !1;
              }
              return (
                Yr &&
                  fo(
                    f.Type_0_provides_no_match_for_the_signature_1,
                    ar(Me),
                    aT(ts, void 0, void 0, ct),
                  ),
                0
              );
            }
          return mi;
        }
        function Qc(Me, qe) {
          const ct = Kz(Me, 0),
            Gt = Kz(Me, 1),
            sn = zv(Me);
          return (ct.length || Gt.length) && !sn.length
            ? !!(
                (na(qe, 0).length && ct.length) ||
                (na(qe, 1).length && Gt.length)
              )
            : !0;
        }
        function hu(Me, qe) {
          return Me.parameters.length === 0 && qe.parameters.length === 0
            ? (ct, Gt) =>
                Ko(
                  f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,
                  ar(ct),
                  ar(Gt),
                )
            : (ct, Gt) =>
                Ko(
                  f.Call_signature_return_types_0_and_1_are_incompatible,
                  ar(ct),
                  ar(Gt),
                );
        }
        function pp(Me, qe) {
          return Me.parameters.length === 0 && qe.parameters.length === 0
            ? (ct, Gt) =>
                Ko(
                  f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,
                  ar(ct),
                  ar(Gt),
                )
            : (ct, Gt) =>
                Ko(
                  f.Construct_signature_return_types_0_and_1_are_incompatible,
                  ar(ct),
                  ar(Gt),
                );
        }
        function iS(Me, qe, ct, Gt, sn, Ut) {
          const un = c === H_ ? 16 : c === cl ? 24 : 0;
          return __e(
            ct ? LW(Me) : Me,
            ct ? LW(qe) : qe,
            un,
            Gt,
            fo,
            Ut,
            Zn,
            Tc,
          );
          function Zn(fr, Br, li) {
            return vr(fr, Br, 3, li, void 0, sn);
          }
        }
        function oS(Me, qe, ct) {
          const Gt = na(Me, ct),
            sn = na(qe, ct);
          if (Gt.length !== sn.length) return 0;
          let Ut = -1;
          for (let un = 0; un < Gt.length; un++) {
            const Zn = p5(Gt[un], sn[un], !1, !1, !1, vr);
            if (!Zn) return 0;
            Ut &= Zn;
          }
          return Ut;
        }
        function sB(Me, qe, ct, Gt) {
          let sn = -1;
          const Ut = qe.keyType,
            un = Me.flags & 2097152 ? Hz(Me) : zv(Me);
          for (const Zn of un)
            if (!U8e(Me, Zn) && eR(nR(Zn, 8576), Ut)) {
              const fr = xh(Zn),
                Br =
                  Ce || fr.flags & 32768 || Ut === Bt || !(Zn.flags & 16777216)
                    ? fr
                    : om(fr, 524288),
                li = vr(Br, qe.type, 3, ct, void 0, Gt);
              if (!li)
                return (
                  ct &&
                    fo(
                      f.Property_0_is_incompatible_with_index_signature,
                      uo(Zn),
                    ),
                  0
                );
              sn &= li;
            }
          for (const Zn of Xd(Me))
            if (eR(Zn.keyType, Ut)) {
              const fr = Q$(Zn, qe, ct, Gt);
              if (!fr) return 0;
              sn &= fr;
            }
          return sn;
        }
        function Q$(Me, qe, ct, Gt) {
          const sn = vr(Me.type, qe.type, 3, ct, void 0, Gt);
          return (
            !sn &&
              ct &&
              (Me.keyType === qe.keyType
                ? fo(f._0_index_signatures_are_incompatible, ar(Me.keyType))
                : fo(
                    f._0_and_1_index_signatures_are_incompatible,
                    ar(Me.keyType),
                    ar(qe.keyType),
                  )),
            sn
          );
        }
        function we(Me, qe, ct, Gt, sn) {
          if (c === Jd) return on(Me, qe);
          const Ut = Xd(qe),
            un = yt(Ut, (fr) => fr.keyType === gt);
          let Zn = -1;
          for (const fr of Ut) {
            const Br =
              c !== cl && !ct && un && fr.type.flags & 1
                ? -1
                : up(Me) && un
                  ? vr(Gg(Me), fr.type, 3, Gt)
                  : se(Me, fr, Gt, sn);
            if (!Br) return 0;
            Zn &= Br;
          }
          return Zn;
        }
        function se(Me, qe, ct, Gt) {
          const sn = CW(Me, qe.keyType);
          return sn
            ? Q$(sn, qe, ct, Gt)
            : !(Gt & 1) && (c !== cl || Hr(Me) & 8192) && FY(Me)
              ? sB(Me, qe, ct, Gt)
              : (ct &&
                  fo(
                    f.Index_signature_for_type_0_is_missing_in_type_1,
                    ar(qe.keyType),
                    ar(Me),
                  ),
                0);
        }
        function on(Me, qe) {
          const ct = Xd(Me),
            Gt = Xd(qe);
          if (ct.length !== Gt.length) return 0;
          for (const sn of Gt) {
            const Ut = Vg(Me, sn.keyType);
            if (
              !(
                Ut &&
                vr(Ut.type, sn.type, 3) &&
                Ut.isReadonly === sn.isReadonly
              )
            )
              return 0;
          }
          return -1;
        }
        function pn(Me, qe, ct) {
          if (!Me.declaration || !qe.declaration) return !0;
          const Gt = AI(Me.declaration, 6),
            sn = AI(qe.declaration, 6);
          return sn === 2 || (sn === 4 && Gt !== 2) || (sn !== 4 && !Gt)
            ? !0
            : (ct &&
                fo(
                  f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,
                  V0(Gt),
                  V0(sn),
                ),
              !1);
        }
      }
      function v_e(n) {
        if (n.flags & 16) return !1;
        if (n.flags & 3145728) return !!Ye(n.types, v_e);
        if (n.flags & 465829888) {
          const a = vA(n);
          if (a && a !== n) return v_e(a);
        }
        return Nh(n) || !!(n.flags & 134217728) || !!(n.flags & 268435456);
      }
      function H8e(n, a) {
        return Ka(n) && Ka(a)
          ? ae
          : bs(a).filter((c) => xY(_n(n, c.escapedName), _r(c)));
      }
      function xY(n, a) {
        return !!n && !!a && tc(n, 32768) && !!HW(a);
      }
      function iut(n) {
        return bs(n).filter((a) => HW(_r(a)));
      }
      function q8e(n, a, c = m_e) {
        return T7e(n, a, c) || Rbt(n, a) || Dbt(n, a) || Cbt(n, a) || Nbt(n, a);
      }
      function b_e(n, a, c) {
        const p = n.types,
          m = p.map((I) => (I.flags & 402784252 ? 0 : -1));
        for (const [I, w] of a) {
          let U = !1;
          for (let H = 0; H < p.length; H++)
            if (m[H]) {
              const Q = ei(p[H], w);
              Q && (am(I(), (Ie) => !!c(Ie, Q)) ? (U = !0) : (m[H] = 3));
            }
          for (let H = 0; H < p.length; H++) m[H] === 3 && (m[H] = U ? 0 : -1);
        }
        const v = jn(m, 0)
          ? pi(
              p.filter((I, w) => m[w]),
              0,
            )
          : n;
        return v.flags & 131072 ? n : v;
      }
      function T_e(n) {
        if (n.flags & 524288) {
          const a = Dh(n);
          return (
            a.callSignatures.length === 0 &&
            a.constructSignatures.length === 0 &&
            a.indexInfos.length === 0 &&
            a.properties.length > 0 &&
            Vn(a.properties, (c) => !!(c.flags & 16777216))
          );
        }
        return n.flags & 33554432
          ? T_e(n.baseType)
          : n.flags & 2097152
            ? Vn(n.types, T_e)
            : !1;
      }
      function out(n, a, c) {
        for (const p of bs(n)) if (d$(a, p.escapedName, c)) return !0;
        return !1;
      }
      function S_e(n) {
        return n === es || n === Va || n.objectFlags & 8
          ? W
          : K8e(n.symbol, n.typeParameters);
      }
      function J8e(n) {
        return K8e(n, Jr(n).typeParameters);
      }
      function K8e(n, a = ae) {
        var c, p;
        const m = Jr(n);
        if (!m.variances) {
          (c = xr) == null ||
            c.push(xr.Phase.CheckTypes, "getVariancesWorker", {
              arity: a.length,
              id: pd(qs(n)),
            });
          const v = J1,
            I = Sv;
          (J1 || ((J1 = !0), (Sv = Mg.length)), (m.variances = ae));
          const w = [];
          for (const U of a) {
            const H = E_e(U);
            let Q = H & 16384 ? (H & 8192 ? 0 : 1) : H & 8192 ? 2 : void 0;
            if (Q === void 0) {
              let Ie = !1,
                Te = !1;
              const Ze = Go;
              Go = ($t) => ($t ? (Te = !0) : (Ie = !0));
              const Tt = d5(n, U, Fs),
                Dt = d5(n, U, Ee);
              ((Q = (aa(Dt, Tt) ? 1 : 0) | (aa(Tt, Dt) ? 2 : 0)),
                Q === 3 && aa(d5(n, U, Y), Tt) && (Q = 4),
                (Go = Ze),
                (Ie || Te) && (Ie && (Q |= 8), Te && (Q |= 16)));
            }
            w.push(Q);
          }
          (v || ((J1 = !1), (Sv = I)),
            (m.variances = w),
            (p = xr) == null || p.pop({ variances: w.map(C.formatVariance) }));
        }
        return m.variances;
      }
      function d5(n, a, c) {
        const p = DE(a, c),
          m = qs(n);
        if (pr(m)) return m;
        const v =
          n.flags & 524288
            ? VC(n, Wy(Jr(n).typeParameters, p))
            : Ly(m, Wy(m.typeParameters, p));
        return (ht.add(pd(v)), v);
      }
      function RY(n) {
        return ht.has(pd(n));
      }
      function E_e(n) {
        var a;
        return (
          gu(
            (a = n.symbol) == null ? void 0 : a.declarations,
            (c, p) => c | Gd(p),
            0,
          ) & 28672
        );
      }
      function aut(n, a) {
        for (let c = 0; c < a.length; c++)
          if ((a[c] & 7) === 1 && n[c].flags & 16384) return !0;
        return !1;
      }
      function sut(n) {
        return n.flags & 262144 && !Uu(n);
      }
      function lut(n) {
        return !!(Hr(n) & 4) && !n.node;
      }
      function DY(n) {
        return lut(n) && yt(rl(n), (a) => !!(a.flags & 262144) || DY(a));
      }
      function cut(n, a, c, p) {
        const m = [];
        let v = "";
        const I = U(n, 0),
          w = U(a, 0);
        return `${v}${I},${w}${c}`;
        function U(H, Q = 0) {
          let Ie = "" + H.target.id;
          for (const Te of rl(H)) {
            if (Te.flags & 262144) {
              if (p || sut(Te)) {
                let Ze = m.indexOf(Te);
                (Ze < 0 && ((Ze = m.length), m.push(Te)), (Ie += "=" + Ze));
                continue;
              }
              v = "*";
            } else if (Q < 4 && DY(Te)) {
              Ie += "<" + U(Te, Q + 1) + ">";
              continue;
            }
            Ie += "-" + Te.id;
          }
          return Ie;
        }
      }
      function CY(n, a, c, p, m) {
        if (p === Jd && n.id > a.id) {
          const I = n;
          ((n = a), (a = I));
        }
        const v = c ? ":" + c : "";
        return DY(n) && DY(a) ? cut(n, a, v, m) : `${n.id},${a.id}${v}`;
      }
      function u5(n, a) {
        if (Wl(n) & 6) {
          for (const c of n.links.containingType.types) {
            const p = Ea(c, n.escapedName),
              m = p && u5(p, a);
            if (m) return m;
          }
          return;
        }
        return a(n);
      }
      function aR(n) {
        return n.parent && n.parent.flags & 32 ? qs(Yc(n)) : void 0;
      }
      function NY(n) {
        const a = aR(n),
          c = a && Zm(a)[0];
        return c && _n(c, n.escapedName);
      }
      function dut(n, a) {
        return u5(n, (c) => {
          const p = aR(c);
          return p ? Ur(p, a) : !1;
        });
      }
      function uut(n, a) {
        return !u5(a, (c) => (Vf(c) & 4 ? !dut(n, aR(c)) : !1));
      }
      function X8e(n, a, c) {
        return u5(a, (p) => (Vf(p, c) & 4 ? !Ur(n, aR(p)) : !1)) ? void 0 : n;
      }
      function sR(n, a, c, p = 3) {
        if (c >= p) {
          if (((Hr(n) & 96) === 96 && (n = Y8e(n)), n.flags & 2097152))
            return yt(n.types, (w) => sR(w, a, c, p));
          const m = MY(n);
          let v = 0,
            I = 0;
          for (let w = 0; w < c; w++) {
            const U = a[w];
            if ($8e(U, m)) {
              if (U.id >= I && (v++, v >= p)) return !0;
              I = U.id;
            }
          }
        }
        return !1;
      }
      function Y8e(n) {
        let a;
        for (
          ;
          (Hr(n) & 96) === 96 &&
          (a = H0(n)) &&
          (a.symbol || (a.flags & 2097152 && yt(a.types, (c) => !!c.symbol)));
        )
          n = a;
        return n;
      }
      function $8e(n, a) {
        return (
          (Hr(n) & 96) === 96 && (n = Y8e(n)),
          n.flags & 2097152 ? yt(n.types, (c) => $8e(c, a)) : MY(n) === a
        );
      }
      function MY(n) {
        if (n.flags & 524288 && !G_e(n)) {
          if (Hr(n) & 4 && n.node) return n.node;
          if (n.symbol && !(Hr(n) & 16 && n.symbol.flags & 32)) return n.symbol;
          if (Ka(n)) return n.target;
        }
        if (n.flags & 262144) return n.symbol;
        if (n.flags & 8388608) {
          do n = n.objectType;
          while (n.flags & 8388608);
          return n;
        }
        return n.flags & 16777216 ? n.root : n;
      }
      function put(n, a) {
        return A_e(n, a, BW) !== 0;
      }
      function A_e(n, a, c) {
        if (n === a) return -1;
        const p = Vf(n) & 6,
          m = Vf(a) & 6;
        if (p !== m) return 0;
        if (p) {
          if (nN(n) !== nN(a)) return 0;
        } else if ((n.flags & 16777216) !== (a.flags & 16777216)) return 0;
        return wh(n) !== wh(a) ? 0 : c(_r(n), _r(a));
      }
      function fut(n, a, c) {
        const p = Ap(n),
          m = Ap(a),
          v = kh(n),
          I = kh(a),
          w = ng(n),
          U = ng(a);
        return !!((p === m && v === I && w === U) || (c && v <= I));
      }
      function p5(n, a, c, p, m, v) {
        if (n === a) return -1;
        if (!fut(n, a, c) || et(n.typeParameters) !== et(a.typeParameters))
          return 0;
        if (a.typeParameters) {
          const U = Yp(n.typeParameters, a.typeParameters);
          for (let H = 0; H < a.typeParameters.length; H++) {
            const Q = n.typeParameters[H],
              Ie = a.typeParameters[H];
            if (
              !(
                Q === Ie ||
                (v(io(SL(Q), U) || Nt, SL(Ie) || Nt) &&
                  v(io(EE(Q), U) || Nt, EE(Ie) || Nt))
              )
            )
              return 0;
          }
          n = DA(n, U, !0);
        }
        let I = -1;
        if (!p) {
          const U = J0(n);
          if (U) {
            const H = J0(a);
            if (H) {
              const Q = v(U, H);
              if (!Q) return 0;
              I &= Q;
            }
          }
        }
        const w = Ap(a);
        for (let U = 0; U < w; U++) {
          const H = Lh(n, U),
            Q = Lh(a, U),
            Ie = v(Q, H);
          if (!Ie) return 0;
          I &= Ie;
        }
        if (!m) {
          const U = nm(n),
            H = nm(a);
          I &= U || H ? mut(U, H, v) : v(fs(n), fs(a));
        }
        return I;
      }
      function mut(n, a, c) {
        return n && a && Xhe(n, a)
          ? n.type === a.type
            ? -1
            : n.type && a.type
              ? c(n.type, a.type)
              : 0
          : 0;
      }
      function hut(n) {
        let a;
        for (const c of n)
          if (!(c.flags & 131072)) {
            const p = zy(c);
            if ((a ?? (a = p), p === c || p !== a)) return !1;
          }
        return !0;
      }
      function Q8e(n) {
        return gu(
          n,
          (a, c) => a | (c.flags & 1048576 ? Q8e(c.types) : c.flags),
          0,
        );
      }
      function _ut(n) {
        if (n.length === 1) return n[0];
        const a = ie ? Zi(n, (p) => Ec(p, (m) => !(m.flags & 98304))) : n,
          c = hut(a) ? pi(a) : gut(a);
        return a === n ? c : h5(c, Q8e(n) & 98304);
      }
      function gut(n) {
        const a = gu(n, (c, p) => (xL(c, p) ? p : c));
        return Vn(n, (c) => c === a || xL(c, a))
          ? a
          : gu(n, (c, p) => (CE(c, p) ? p : c));
      }
      function yut(n) {
        return gu(n, (a, c) => (CE(c, a) ? c : a));
      }
      function im(n) {
        return !!(Hr(n) & 4) && (n.target === es || n.target === Va);
      }
      function RL(n) {
        return !!(Hr(n) & 4) && n.target === Va;
      }
      function Q0(n) {
        return im(n) || Ka(n);
      }
      function f5(n) {
        return (im(n) && !RL(n)) || (Ka(n) && !n.target.readonly);
      }
      function m5(n) {
        return im(n) ? rl(n)[0] : void 0;
      }
      function jv(n) {
        return im(n) || (!(n.flags & 98304) && aa(n, jp));
      }
      function I_e(n) {
        return f5(n) || (!(n.flags & 98305) && aa(n, bd));
      }
      function x_e(n) {
        if (!(Hr(n) & 4) || !(Hr(n.target) & 3)) return;
        if (Hr(n) & 33554432)
          return Hr(n) & 67108864 ? n.cachedEquivalentBaseType : void 0;
        n.objectFlags |= 33554432;
        const a = n.target;
        if (Hr(a) & 1) {
          const m = Mm(a);
          if (m && m.expression.kind !== 80 && m.expression.kind !== 212)
            return;
        }
        const c = Zm(a);
        if (c.length !== 1 || $_(n.symbol).size) return;
        let p = et(a.typeParameters)
          ? io(
              c[0],
              Yp(a.typeParameters, rl(n).slice(0, a.typeParameters.length)),
            )
          : c[0];
        return (
          et(rl(n)) > et(a.typeParameters) && (p = Kp(p, Ba(rl(n)))),
          (n.objectFlags |= 67108864),
          (n.cachedEquivalentBaseType = p)
        );
      }
      function Z8e(n) {
        return ie ? n === En : n === B;
      }
      function PY(n) {
        const a = m5(n);
        return !!a && Z8e(a);
      }
      function DL(n) {
        let a;
        return (
          Ka(n) ||
          !!Ea(n, "0") ||
          (jv(n) && !!(a = _n(n, "length")) && Ep(a, (c) => !!(c.flags & 256)))
        );
      }
      function LY(n) {
        return jv(n) || DL(n);
      }
      function vut(n, a) {
        const c = _n(n, "" + a);
        if (c) return c;
        if (Ep(n, Ka))
          return rFe(n, a, O.noUncheckedIndexedAccess ? he : void 0);
      }
      function but(n) {
        return !(n.flags & 240544);
      }
      function Nh(n) {
        return !!(n.flags & 109472);
      }
      function eFe(n) {
        const a = v_(n);
        return a.flags & 2097152 ? yt(a.types, Nh) : Nh(a);
      }
      function Tut(n) {
        return (n.flags & 2097152 && hn(n.types, Nh)) || n;
      }
      function jW(n) {
        return n.flags & 16
          ? !0
          : n.flags & 1048576
            ? n.flags & 1024
              ? !0
              : Vn(n.types, Nh)
            : Nh(n);
      }
      function zy(n) {
        return n.flags & 1056
          ? ZX(n)
          : n.flags & 402653312
            ? gt
            : n.flags & 256
              ? Bt
              : n.flags & 2048
                ? gr
                : n.flags & 512
                  ? jt
                  : n.flags & 1048576
                    ? Sut(n)
                    : n;
      }
      function Sut(n) {
        const a = `B${pd(n)}`;
        return Gu(a) ?? Dm(a, Tl(n, zy));
      }
      function R_e(n) {
        return n.flags & 402653312
          ? gt
          : n.flags & 288
            ? Bt
            : n.flags & 2048
              ? gr
              : n.flags & 512
                ? jt
                : n.flags & 1048576
                  ? Tl(n, R_e)
                  : n;
      }
      function Z0(n) {
        return n.flags & 1056 && RE(n)
          ? ZX(n)
          : n.flags & 128 && RE(n)
            ? gt
            : n.flags & 256 && RE(n)
              ? Bt
              : n.flags & 2048 && RE(n)
                ? gr
                : n.flags & 512 && RE(n)
                  ? jt
                  : n.flags & 1048576
                    ? Tl(n, Z0)
                    : n;
      }
      function tFe(n) {
        return n.flags & 8192 ? Qt : n.flags & 1048576 ? Tl(n, tFe) : n;
      }
      function D_e(n, a) {
        return (I$(n, a) || (n = tFe(Z0(n))), Cu(n));
      }
      function Eut(n, a, c) {
        if (n && Nh(n)) {
          const p = a ? (c ? p8(a) : a) : void 0;
          n = D_e(n, p);
        }
        return n;
      }
      function C_e(n, a, c, p) {
        if (n && Nh(n)) {
          const m = a ? qv(c, a, p) : void 0;
          n = D_e(n, m);
        }
        return n;
      }
      function Ka(n) {
        return !!(Hr(n) & 4 && n.target.objectFlags & 8);
      }
      function mT(n) {
        return Ka(n) && !!(n.target.combinedFlags & 8);
      }
      function nFe(n) {
        return mT(n) && n.target.elementFlags.length === 1;
      }
      function kY(n) {
        return CL(n, n.target.fixedLength);
      }
      function rFe(n, a, c) {
        return Tl(n, (p) => {
          const m = p,
            v = kY(m);
          return v ? (c && a >= Jhe(m.target) ? pi([v, c]) : v) : he;
        });
      }
      function Aut(n) {
        const a = kY(n);
        return a && Yd(a);
      }
      function CL(n, a, c = 0, p = !1, m = !1) {
        const v = Gv(n) - c;
        if (a < v) {
          const I = rl(n),
            w = [];
          for (let U = a; U < v; U++) {
            const H = I[U];
            w.push(n.target.elementFlags[U] & 8 ? Xp(H, Bt) : H);
          }
          return p ? Ma(w) : pi(w, m ? 0 : 1);
        }
      }
      function Iut(n, a) {
        return (
          Gv(n) === Gv(a) &&
          Vn(
            n.target.elementFlags,
            (c, p) => (c & 12) === (a.target.elementFlags[p] & 12),
          )
        );
      }
      function iFe({ value: n }) {
        return n.base10Value === "0";
      }
      function oFe(n) {
        return Ec(n, (a) => Mh(a, 4194304));
      }
      function xut(n) {
        return Tl(n, Rut);
      }
      function Rut(n) {
        return n.flags & 4
          ? TC
          : n.flags & 8
            ? tL
            : n.flags & 64
              ? SC
              : n === Jn ||
                  n === tr ||
                  n.flags & 114691 ||
                  (n.flags & 128 && n.value === "") ||
                  (n.flags & 256 && n.value === 0) ||
                  (n.flags & 2048 && iFe(n))
                ? n
                : yn;
      }
      function h5(n, a) {
        const c = a & ~n.flags & 98304;
        return c === 0
          ? n
          : pi(c === 32768 ? [n, he] : c === 65536 ? [n, Xt] : [n, he, Xt]);
      }
      function hT(n, a = !1) {
        C.assert(ie);
        const c = a ? te : he;
        return n === c || (n.flags & 1048576 && n.types[0] === c)
          ? n
          : pi([n, c]);
      }
      function Dut(n) {
        return (
          Au || (Au = UC("NonNullable", 524288, void 0) || ne),
          Au !== ne ? VC(Au, [n]) : Ma([n, Ra])
        );
      }
      function By(n) {
        return ie ? LA(n, 2097152) : n;
      }
      function aFe(n) {
        return ie ? pi([n, xt]) : n;
      }
      function wY(n) {
        return ie ? qY(n, xt) : n;
      }
      function OY(n, a, c) {
        return c ? (LN(a) ? hT(n) : aFe(n)) : n;
      }
      function UW(n, a) {
        return hF(a) ? By(n) : tu(a) ? wY(n) : n;
      }
      function Gy(n, a) {
        return Ce && a ? qY(n, Ae) : n;
      }
      function HW(n) {
        return n === Ae || (!!(n.flags & 1048576) && n.types[0] === Ae);
      }
      function WY(n) {
        return Ce ? qY(n, Ae) : om(n, 524288);
      }
      function Cut(n, a) {
        return (n.flags & 524) !== 0 && (a.flags & 28) !== 0;
      }
      function FY(n) {
        const a = Hr(n);
        return n.flags & 2097152
          ? Vn(n.types, FY)
          : !!(
              n.symbol &&
              (n.symbol.flags & 7040) !== 0 &&
              !(n.symbol.flags & 32) &&
              !U$(n)
            ) ||
              !!(a & 4194304) ||
              !!(a & 1024 && FY(n.source));
      }
      function NA(n, a) {
        const c = ja(n.flags, n.escapedName, Wl(n) & 8);
        ((c.declarations = n.declarations),
          (c.parent = n.parent),
          (c.links.type = a),
          (c.links.target = n),
          n.valueDeclaration && (c.valueDeclaration = n.valueDeclaration));
        const p = Jr(n).nameType;
        return (p && (c.links.nameType = p), c);
      }
      function Nut(n, a) {
        const c = da();
        for (const p of zv(n)) {
          const m = _r(p),
            v = a(m);
          c.set(p.escapedName, v === m ? p : NA(p, v));
        }
        return c;
      }
      function qW(n) {
        if (!(Uv(n) && Hr(n) & 8192)) return n;
        const a = n.regularType;
        if (a) return a;
        const c = n,
          p = Nut(n, qW),
          m = bl(
            c.symbol,
            p,
            c.callSignatures,
            c.constructSignatures,
            c.indexInfos,
          );
        return (
          (m.flags = c.flags),
          (m.objectFlags |= c.objectFlags & -8193),
          (n.regularType = m),
          m
        );
      }
      function sFe(n, a, c) {
        return {
          parent: n,
          propertyName: a,
          siblings: c,
          resolvedProperties: void 0,
        };
      }
      function lFe(n) {
        if (!n.siblings) {
          const a = [];
          for (const c of lFe(n.parent))
            if (Uv(c)) {
              const p = SE(c, n.propertyName);
              p &&
                kA(_r(p), (m) => {
                  a.push(m);
                });
            }
          n.siblings = a;
        }
        return n.siblings;
      }
      function Mut(n) {
        if (!n.resolvedProperties) {
          const a = new Map();
          for (const c of lFe(n))
            if (Uv(c) && !(Hr(c) & 2097152))
              for (const p of bs(c)) a.set(p.escapedName, p);
          n.resolvedProperties = Co(a.values());
        }
        return n.resolvedProperties;
      }
      function Put(n, a) {
        if (!(n.flags & 4)) return n;
        const c = _r(n),
          p = a && sFe(a, n.escapedName, void 0),
          m = N_e(c, p);
        return m === c ? n : NA(n, m);
      }
      function Lut(n) {
        const a = le.get(n.escapedName);
        if (a) return a;
        const c = NA(n, te);
        return ((c.flags |= 16777216), le.set(n.escapedName, c), c);
      }
      function kut(n, a) {
        const c = da();
        for (const m of zv(n)) c.set(m.escapedName, Put(m, a));
        if (a)
          for (const m of Mut(a))
            c.has(m.escapedName) || c.set(m.escapedName, Lut(m));
        const p = bl(
          n.symbol,
          c,
          ae,
          ae,
          Zi(Xd(n), (m) =>
            jg(
              m.keyType,
              $p(m.type),
              m.isReadonly,
              m.declaration,
              m.components,
            ),
          ),
        );
        return ((p.objectFlags |= Hr(n) & 266240), p);
      }
      function $p(n) {
        return N_e(n, void 0);
      }
      function N_e(n, a) {
        if (Hr(n) & 196608) {
          if (a === void 0 && n.widened) return n.widened;
          let c;
          if (n.flags & 98305) c = Ue;
          else if (Uv(n)) c = kut(n, a);
          else if (n.flags & 1048576) {
            const p = a || sFe(void 0, void 0, n.types),
              m = Zi(n.types, (v) => (v.flags & 98304 ? v : N_e(v, p)));
            c = pi(m, yt(m, Fy) ? 2 : 1);
          } else
            n.flags & 2097152
              ? (c = Ma(Zi(n.types, $p)))
              : Q0(n) && (c = Ly(n.target, Zi(rl(n), $p)));
          return (c && a === void 0 && (n.widened = c), c || n);
        }
        return n;
      }
      function zY(n) {
        var a;
        let c = !1;
        if (Hr(n) & 65536) {
          if (n.flags & 1048576)
            if (yt(n.types, Fy)) c = !0;
            else for (const p of n.types) c || (c = zY(p));
          else if (Q0(n)) for (const p of rl(n)) c || (c = zY(p));
          else if (Uv(n))
            for (const p of zv(n)) {
              const m = _r(p);
              if (Hr(m) & 65536 && ((c = zY(m)), !c)) {
                const v =
                  (a = p.declarations) == null
                    ? void 0
                    : a.find((I) => {
                        var w;
                        return (
                          ((w = I.symbol.valueDeclaration) == null
                            ? void 0
                            : w.parent) === n.symbol.valueDeclaration
                        );
                      });
                v &&
                  (Qe(
                    v,
                    f.Object_literal_s_property_0_implicitly_has_an_1_type,
                    uo(p),
                    ar($p(m)),
                  ),
                  (c = !0));
              }
            }
        }
        return c;
      }
      function eS(n, a, c) {
        const p = ar($p(a));
        if (Ir(n) && !IM(Wn(n), O)) return;
        let m;
        switch (n.kind) {
          case 227:
          case 173:
          case 172:
            m = ve
              ? f.Member_0_implicitly_has_an_1_type
              : f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;
            break;
          case 170:
            const v = n;
            if (He(v.name)) {
              const I = JE(v.name);
              if (
                (UI(v.parent) || Gm(v.parent) || w_(v.parent)) &&
                v.parent.parameters.includes(v) &&
                (_t(v, v.name.escapedText, 788968, void 0, !0) || (I && IV(I)))
              ) {
                const w = "arg" + v.parent.parameters.indexOf(v),
                  U = ws(v.name) + (v.dotDotDotToken ? "[]" : "");
                Jm(
                  ve,
                  n,
                  f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,
                  w,
                  U,
                );
                return;
              }
            }
            m = n.dotDotDotToken
              ? ve
                ? f.Rest_parameter_0_implicitly_has_an_any_type
                : f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage
              : ve
                ? f.Parameter_0_implicitly_has_an_1_type
                : f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;
            break;
          case 209:
            if (((m = f.Binding_element_0_implicitly_has_an_1_type), !ve))
              return;
            break;
          case 318:
            Qe(
              n,
              f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,
              p,
            );
            return;
          case 324:
            ve &&
              CD(n.parent) &&
              Qe(
                n.parent.tagName,
                f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,
                p,
              );
            return;
          case 263:
          case 175:
          case 174:
          case 178:
          case 179:
          case 219:
          case 220:
            if (ve && !n.name) {
              c === 3
                ? Qe(
                    n,
                    f.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,
                    p,
                  )
                : Qe(
                    n,
                    f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,
                    p,
                  );
              return;
            }
            m = ve
              ? c === 3
                ? f._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type
                : f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type
              : f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;
            break;
          case 201:
            ve &&
              Qe(n, f.Mapped_object_type_implicitly_has_an_any_template_type);
            return;
          default:
            m = ve
              ? f.Variable_0_implicitly_has_an_1_type
              : f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;
        }
        Jm(ve, n, m, ws(Oo(n)), p);
      }
      function wut(n, a) {
        const c = o$(n);
        if (!c) return !0;
        let p = fs(c);
        const m = cc(n);
        switch (a) {
          case 1:
            return (
              m & 1
                ? (p = qv(1, p, !!(m & 2)) ?? p)
                : m & 2 && (p = jy(p) ?? p),
              X0(p)
            );
          case 3:
            const v = qv(0, p, !!(m & 2));
            return !!v && X0(v);
          case 2:
            const I = qv(2, p, !!(m & 2));
            return !!I && X0(I);
        }
        return !1;
      }
      function BY(n, a, c) {
        r(() => {
          ve &&
            Hr(a) & 65536 &&
            (!c || (Ms(n) && wut(n, c))) &&
            (zY(a) || eS(n, a, c));
        });
      }
      function M_e(n, a, c) {
        const p = Ap(n),
          m = Ap(a),
          v = o8(n),
          I = o8(a),
          w = I ? m - 1 : m,
          U = v ? w : Math.min(p, w),
          H = J0(n);
        if (H) {
          const Q = J0(a);
          Q && c(H, Q);
        }
        for (let Q = 0; Q < U; Q++) c(Lh(n, Q), Lh(a, Q));
        I && c(B5(n, U, bA(I) && !am(I, I_e)), I);
      }
      function P_e(n, a, c) {
        const p = nm(a);
        if (p) {
          const v = nm(n);
          if (v && Xhe(v, p) && v.type && p.type) {
            c(v.type, p.type);
            return;
          }
        }
        const m = fs(a);
        _T(m) && c(fs(n), m);
      }
      function JW(n, a, c, p) {
        return L_e(n.map(w_e), a, c, p || m_e);
      }
      function cFe(n, a = 0) {
        return (
          n &&
          L_e(Vt(n.inferences, dFe), n.signature, n.flags | a, n.compareTypes)
        );
      }
      function L_e(n, a, c, p) {
        const m = {
          inferences: n,
          signature: a,
          flags: c,
          compareTypes: p,
          mapper: $s,
          nonFixingMapper: $s,
        };
        return ((m.mapper = Out(m)), (m.nonFixingMapper = Wut(m)), m);
      }
      function Out(n) {
        return c_e(
          Vt(n.inferences, (a) => a.typeParameter),
          Vt(
            n.inferences,
            (a, c) => () => (
              a.isFixed || (Fut(n), GY(n.inferences), (a.isFixed = !0)),
              V_e(n, c)
            ),
          ),
        );
      }
      function Wut(n) {
        return c_e(
          Vt(n.inferences, (a) => a.typeParameter),
          Vt(n.inferences, (a, c) => () => V_e(n, c)),
        );
      }
      function GY(n) {
        for (const a of n) a.isFixed || (a.inferredType = void 0);
      }
      function k_e(n, a, c) {
        (
          n.intraExpressionInferenceSites ??
          (n.intraExpressionInferenceSites = [])
        ).push({ node: a, type: c });
      }
      function Fut(n) {
        if (n.intraExpressionInferenceSites) {
          for (const { node: a, type: c } of n.intraExpressionInferenceSites) {
            const p = a.kind === 175 ? m6e(a, 2) : Hu(a, 2);
            p && qg(n.inferences, c, p);
          }
          n.intraExpressionInferenceSites = void 0;
        }
      }
      function w_e(n) {
        return {
          typeParameter: n,
          candidates: void 0,
          contraCandidates: void 0,
          inferredType: void 0,
          priority: void 0,
          topLevel: !0,
          isFixed: !1,
          impliedArity: void 0,
        };
      }
      function dFe(n) {
        return {
          typeParameter: n.typeParameter,
          candidates: n.candidates && n.candidates.slice(),
          contraCandidates: n.contraCandidates && n.contraCandidates.slice(),
          inferredType: n.inferredType,
          priority: n.priority,
          topLevel: n.topLevel,
          isFixed: n.isFixed,
          impliedArity: n.impliedArity,
        };
      }
      function zut(n) {
        const a = Un(n.inferences, tN);
        return a.length
          ? L_e(Vt(a, dFe), n.signature, n.flags, n.compareTypes)
          : void 0;
      }
      function O_e(n) {
        return n && n.mapper;
      }
      function _T(n) {
        const a = Hr(n);
        if (a & 524288) return !!(a & 1048576);
        const c = !!(
          n.flags & 465829888 ||
          (n.flags & 524288 &&
            !uFe(n) &&
            ((a & 4 && (n.node || yt(rl(n), _T))) ||
              (a & 16 &&
                n.symbol &&
                n.symbol.flags & 14384 &&
                n.symbol.declarations) ||
              a & 12583968)) ||
          (n.flags & 3145728 && !(n.flags & 1024) && !uFe(n) && yt(n.types, _T))
        );
        return (
          n.flags & 3899393 && (n.objectFlags |= 524288 | (c ? 1048576 : 0)),
          c
        );
      }
      function uFe(n) {
        if (n.aliasSymbol && !n.aliasTypeArguments) {
          const a = al(n.aliasSymbol, 266);
          return !!(
            a &&
            Dn(a.parent, (c) =>
              c.kind === 308 ? !0 : c.kind === 268 ? !1 : "quit",
            )
          );
        }
        return !1;
      }
      function KW(n, a, c = 0) {
        return !!(
          n === a ||
          (n.flags & 3145728 && yt(n.types, (p) => KW(p, a, c))) ||
          (c < 3 &&
            n.flags & 16777216 &&
            (KW(pT(n), a, c + 1) || KW(fT(n), a, c + 1)))
        );
      }
      function But(n, a) {
        const c = nm(n);
        return c ? !!c.type && KW(c.type, a) : KW(fs(n), a);
      }
      function Gut(n) {
        const a = da();
        kA(n, (p) => {
          if (!(p.flags & 128)) return;
          const m = Cl(p.value),
            v = ja(4, m);
          ((v.links.type = Ue),
            p.symbol &&
              ((v.declarations = p.symbol.declarations),
              (v.valueDeclaration = p.symbol.valueDeclaration)),
            a.set(m, v));
        });
        const c = n.flags & 4 ? [jg(gt, Ra, !1)] : ae;
        return bl(void 0, a, ae, ae, c);
      }
      function pFe(n, a, c) {
        const p = n.id + "," + a.id + "," + c.id;
        if (Pd.has(p)) return Pd.get(p);
        const m = Vut(n, a, c);
        return (Pd.set(p, m), m);
      }
      function W_e(n) {
        return (
          !(Hr(n) & 262144) ||
          (Uv(n) && yt(bs(n), (a) => W_e(_r(a)))) ||
          (Ka(n) && yt(IE(n), W_e))
        );
      }
      function Vut(n, a, c) {
        if (!(Vg(n, gt) || (bs(n).length !== 0 && W_e(n)))) return;
        if (im(n)) {
          const m = VY(rl(n)[0], a, c);
          return m ? Yd(m, RL(n)) : void 0;
        }
        if (Ka(n)) {
          const m = Vt(IE(n), (I) => VY(I, a, c));
          if (!Vn(m, (I) => !!I)) return;
          const v =
            Q_(a) & 4
              ? Zi(n.target.elementFlags, (I) => (I & 2 ? 1 : I))
              : n.target.elementFlags;
          return eg(
            m,
            v,
            n.target.readonly,
            n.target.labeledElementDeclarations,
          );
        }
        const p = hc(1040, void 0);
        return ((p.source = n), (p.mappedType = a), (p.constraintType = c), p);
      }
      function jut(n) {
        const a = Jr(n);
        return (
          a.type ||
            (a.type =
              VY(
                n.links.propertyType,
                n.links.mappedType,
                n.links.constraintType,
              ) || Nt),
          a.type
        );
      }
      function Uut(n, a, c) {
        const p = Xp(c.type, eh(a)),
          m = Gg(a),
          v = w_e(p);
        return (qg([v], n, m), fFe(v) || Nt);
      }
      function VY(n, a, c) {
        const p = n.id + "," + a.id + "," + c.id;
        if (vh.has(p)) return vh.get(p) || Nt;
        (A0.push(n), Y1.push(a));
        const m = I0;
        (sR(n, A0, A0.length, 2) && (I0 |= 1),
          sR(a, Y1, Y1.length, 2) && (I0 |= 2));
        let v;
        return (
          I0 !== 3 && (v = Uut(n, a, c)),
          A0.pop(),
          Y1.pop(),
          (I0 = m),
          vh.set(p, v),
          v
        );
      }
      function* F_e(n, a, c, p) {
        const m = bs(a);
        for (const v of m)
          if (!UOe(v) && (c || !(v.flags & 16777216 || Wl(v) & 48))) {
            const I = Ea(n, v.escapedName);
            if (!I) yield v;
            else if (p) {
              const w = _r(v);
              if (w.flags & 109472) {
                const U = _r(I);
                U.flags & 1 || Cu(U) === Cu(w) || (yield v);
              }
            }
          }
      }
      function z_e(n, a, c, p) {
        return B8(F_e(n, a, c, p));
      }
      function Hut(n, a) {
        return (
          (!(a.target.combinedFlags & 8) &&
            a.target.minLength > n.target.minLength) ||
          (!(a.target.combinedFlags & 12) &&
            (!!(n.target.combinedFlags & 12) ||
              a.target.fixedLength < n.target.fixedLength))
        );
      }
      function qut(n, a) {
        return Ka(n) && Ka(a)
          ? Hut(n, a)
          : !!z_e(n, a, !1, !0) && !!z_e(a, n, !1, !1);
      }
      function fFe(n) {
        return n.candidates
          ? pi(n.candidates, 2)
          : n.contraCandidates
            ? Ma(n.contraCandidates)
            : void 0;
      }
      function B_e(n) {
        return !!Vr(n).skipDirectInference;
      }
      function mFe(n) {
        return !!(n.symbol && yt(n.symbol.declarations, B_e));
      }
      function Jut(n, a) {
        const c = n.texts[0],
          p = a.texts[0],
          m = n.texts[n.texts.length - 1],
          v = a.texts[a.texts.length - 1],
          I = Math.min(c.length, p.length),
          w = Math.min(m.length, v.length);
        return (
          c.slice(0, I) !== p.slice(0, I) ||
          m.slice(m.length - w) !== v.slice(v.length - w)
        );
      }
      function hFe(n, a) {
        if (n === "") return !1;
        const c = +n;
        return isFinite(c) && (!a || "" + c === n);
      }
      function Kut(n) {
        return r5(UV(n));
      }
      function jY(n, a) {
        if (a.flags & 1) return !0;
        if (a.flags & 134217732) return aa(n, a);
        if (a.flags & 268435456) {
          const c = [];
          for (; a.flags & 268435456; ) (c.unshift(a.symbol), (a = a.type));
          return gu(c, (m, v) => rR(v, m), n) === n && jY(n, a);
        }
        return !1;
      }
      function _Fe(n, a) {
        if (a.flags & 2097152) return Vn(a.types, (c) => c === fa || _Fe(n, c));
        if (a.flags & 4 || aa(n, a)) return !0;
        if (n.flags & 128) {
          const c = n.value;
          return !!(
            (a.flags & 8 && hFe(c, !1)) ||
            (a.flags & 64 && $6(c, !1)) ||
            (a.flags & 98816 && c === a.intrinsicName) ||
            (a.flags & 268435456 && jY(n, a)) ||
            (a.flags & 134217728 && UY(n, a))
          );
        }
        if (n.flags & 134217728) {
          const c = n.texts;
          return (
            c.length === 2 && c[0] === "" && c[1] === "" && aa(n.types[0], a)
          );
        }
        return !1;
      }
      function gFe(n, a) {
        return n.flags & 128
          ? yFe([n.value], ae, a)
          : n.flags & 134217728
            ? Qp(n.texts, a.texts)
              ? Vt(n.types, (c, p) => (aa(v_(c), v_(a.types[p])) ? c : Xut(c)))
              : yFe(n.texts, n.types, a)
            : void 0;
      }
      function UY(n, a) {
        const c = gFe(n, a);
        return !!c && Vn(c, (p, m) => _Fe(p, a.types[m]));
      }
      function Xut(n) {
        return n.flags & 402653317 ? n : EA(["", ""], [n]);
      }
      function yFe(n, a, c) {
        const p = n.length - 1,
          m = n[0],
          v = n[p],
          I = c.texts,
          w = I.length - 1,
          U = I[0],
          H = I[w];
        if (
          (p === 0 && m.length < U.length + H.length) ||
          !m.startsWith(U) ||
          !v.endsWith(H)
        )
          return;
        const Q = v.slice(0, v.length - H.length),
          Ie = [];
        let Te = 0,
          Ze = U.length;
        for (let $t = 1; $t < w; $t++) {
          const Tn = I[$t];
          if (Tn.length > 0) {
            let nr = Te,
              yr = Ze;
            for (; (yr = Tt(nr).indexOf(Tn, yr)), !(yr >= 0); ) {
              if ((nr++, nr === n.length)) return;
              yr = 0;
            }
            (Dt(nr, yr), (Ze += Tn.length));
          } else if (Ze < Tt(Te).length) Dt(Te, Ze + 1);
          else if (Te < p) Dt(Te + 1, 0);
          else return;
        }
        return (Dt(p, Tt(p).length), Ie);
        function Tt($t) {
          return $t < p ? n[$t] : Q;
        }
        function Dt($t, Tn) {
          const nr =
            $t === Te
              ? Sp(Tt($t).slice(Ze, Tn))
              : EA(
                  [
                    n[Te].slice(Ze),
                    ...n.slice(Te + 1, $t),
                    Tt($t).slice(0, Tn),
                  ],
                  a.slice(Te, $t),
                );
          (Ie.push(nr), (Te = $t), (Ze = Tn));
        }
      }
      function qg(n, a, c, p = 0, m = !1) {
        let v = !1,
          I,
          w = 2048,
          U,
          H,
          Q,
          Ie = 0;
        Te(a, c);
        function Te(qn, rr) {
          if (!(!_T(rr) || jC(rr))) {
            if (qn === It || qn === Ot) {
              const Hi = I;
              ((I = qn), Te(rr, rr), (I = Hi));
              return;
            }
            if (qn.aliasSymbol && qn.aliasSymbol === rr.aliasSymbol) {
              if (qn.aliasTypeArguments) {
                const Hi = Jr(qn.aliasSymbol).typeParameters,
                  vr = Z_(Hi),
                  wo = Bv(
                    qn.aliasTypeArguments,
                    Hi,
                    vr,
                    Ir(qn.aliasSymbol.valueDeclaration),
                  ),
                  ys = Bv(
                    rr.aliasTypeArguments,
                    Hi,
                    vr,
                    Ir(qn.aliasSymbol.valueDeclaration),
                  );
                nr(wo, ys, J8e(qn.aliasSymbol));
              }
              return;
            }
            if (qn === rr && qn.flags & 3145728) {
              for (const Hi of qn.types) Te(Hi, Hi);
              return;
            }
            if (rr.flags & 1048576) {
              const [Hi, vr] = Tn(
                  qn.flags & 1048576 ? qn.types : [qn],
                  rr.types,
                  Yut,
                ),
                [wo, ys] = Tn(Hi, vr, $ut);
              if (ys.length === 0) return;
              if (((rr = pi(ys)), wo.length === 0)) {
                Ze(qn, rr, 1);
                return;
              }
              qn = pi(wo);
            } else if (
              rr.flags & 2097152 &&
              !Vn(rr.types, yY) &&
              !(qn.flags & 1048576)
            ) {
              const [Hi, vr] = Tn(
                qn.flags & 2097152 ? qn.types : [qn],
                rr.types,
                Hg,
              );
              if (Hi.length === 0 || vr.length === 0) return;
              ((qn = Ma(Hi)), (rr = Ma(vr)));
            }
            if (rr.flags & 41943040) {
              if (jC(rr)) return;
              rr = Oy(rr);
            }
            if (rr.flags & 8650752) {
              if (mFe(qn)) return;
              const Hi = vn(rr);
              if (Hi) {
                if (Hr(qn) & 262144 || qn === Tr) return;
                if (!Hi.isFixed) {
                  const wo = I || qn;
                  if (wo === Ot) return;
                  ((Hi.priority === void 0 || p < Hi.priority) &&
                    ((Hi.candidates = void 0),
                    (Hi.contraCandidates = void 0),
                    (Hi.topLevel = !0),
                    (Hi.priority = p)),
                    p === Hi.priority &&
                      (m && !v
                        ? jn(Hi.contraCandidates, wo) ||
                          ((Hi.contraCandidates = Bn(Hi.contraCandidates, wo)),
                          GY(n))
                        : jn(Hi.candidates, wo) ||
                          ((Hi.candidates = Bn(Hi.candidates, wo)), GY(n))),
                    !(p & 128) &&
                      rr.flags & 262144 &&
                      Hi.topLevel &&
                      !KW(c, rr) &&
                      ((Hi.topLevel = !1), GY(n)));
                }
                w = Math.min(w, p);
                return;
              }
              const vr = wy(rr, !1);
              if (vr !== rr) Te(qn, vr);
              else if (rr.flags & 8388608) {
                const wo = wy(rr.indexType, !1);
                if (wo.flags & 465829888) {
                  const ys = h8e(wy(rr.objectType, !1), wo, !1);
                  ys && ys !== rr && Te(qn, ys);
                }
              }
            }
            if (
              Hr(qn) & 4 &&
              Hr(rr) & 4 &&
              (qn.target === rr.target || (im(qn) && im(rr))) &&
              !(qn.node && rr.node)
            )
              nr(rl(qn), rl(rr), S_e(qn.target));
            else if (qn.flags & 4194304 && rr.flags & 4194304)
              yr(qn.type, rr.type);
            else if ((jW(qn) || qn.flags & 4) && rr.flags & 4194304) {
              const Hi = Gut(qn);
              Tt(Hi, rr.type, 256);
            } else if (qn.flags & 8388608 && rr.flags & 8388608)
              (Te(qn.objectType, rr.objectType),
                Te(qn.indexType, rr.indexType));
            else if (qn.flags & 268435456 && rr.flags & 268435456)
              qn.symbol === rr.symbol && Te(qn.type, rr.type);
            else if (qn.flags & 33554432)
              (Te(qn.baseType, rr), Ze(Ohe(qn), rr, 4));
            else if (rr.flags & 16777216) $t(qn, rr, ii);
            else if (rr.flags & 3145728) fi(qn, rr.types, rr.flags);
            else if (qn.flags & 1048576) {
              const Hi = qn.types;
              for (const vr of Hi) Te(vr, rr);
            } else if (rr.flags & 134217728) zi(qn, rr);
            else {
              if (
                ((qn = Pm(qn)),
                up(qn) && up(rr) && $t(qn, rr, Ko),
                !(p & 512 && qn.flags & 467927040))
              ) {
                const Hi = Du(qn);
                if (Hi !== qn && !(Hi.flags & 2621440)) return Te(Hi, rr);
                qn = Hi;
              }
              qn.flags & 2621440 && $t(qn, rr, ms);
            }
          }
        }
        function Ze(qn, rr, Hi) {
          const vr = p;
          ((p |= Hi), Te(qn, rr), (p = vr));
        }
        function Tt(qn, rr, Hi) {
          const vr = p;
          ((p |= Hi), yr(qn, rr), (p = vr));
        }
        function Dt(qn, rr, Hi, vr) {
          const wo = p;
          ((p |= vr), fi(qn, rr, Hi), (p = wo));
        }
        function $t(qn, rr, Hi) {
          const vr = qn.id + "," + rr.id,
            wo = U && U.get(vr);
          if (wo !== void 0) {
            w = Math.min(w, wo);
            return;
          }
          (U || (U = new Map())).set(vr, -1);
          const ys = w;
          w = 2048;
          const il = Ie;
          ((H ?? (H = [])).push(qn),
            (Q ?? (Q = [])).push(rr),
            sR(qn, H, H.length, 2) && (Ie |= 1),
            sR(rr, Q, Q.length, 2) && (Ie |= 2),
            Ie !== 3 ? Hi(qn, rr) : (w = -1),
            Q.pop(),
            H.pop(),
            (Ie = il),
            U.set(vr, w),
            (w = Math.min(w, ys)));
        }
        function Tn(qn, rr, Hi) {
          let vr, wo;
          for (const ys of rr)
            for (const il of qn)
              Hi(il, ys) && (Te(il, ys), (vr = $g(vr, il)), (wo = $g(wo, ys)));
          return [
            vr ? Un(qn, (ys) => !jn(vr, ys)) : qn,
            wo ? Un(rr, (ys) => !jn(wo, ys)) : rr,
          ];
        }
        function nr(qn, rr, Hi) {
          const vr = qn.length < rr.length ? qn.length : rr.length;
          for (let wo = 0; wo < vr; wo++)
            wo < Hi.length && (Hi[wo] & 7) === 2
              ? yr(qn[wo], rr[wo])
              : Te(qn[wo], rr[wo]);
        }
        function yr(qn, rr) {
          ((m = !m), Te(qn, rr), (m = !m));
        }
        function Sn(qn, rr) {
          K || p & 1024 ? yr(qn, rr) : Te(qn, rr);
        }
        function vn(qn) {
          if (qn.flags & 8650752) {
            for (const rr of n) if (qn === rr.typeParameter) return rr;
          }
        }
        function Sr(qn) {
          let rr;
          for (const Hi of qn) {
            const vr = Hi.flags & 2097152 && hn(Hi.types, (wo) => !!vn(wo));
            if (!vr || (rr && vr !== rr)) return;
            rr = vr;
          }
          return rr;
        }
        function fi(qn, rr, Hi) {
          let vr = 0;
          if (Hi & 1048576) {
            let wo;
            const ys = qn.flags & 1048576 ? qn.types : [qn],
              il = new Array(ys.length);
            let md = !1;
            for (const Xa of rr)
              if (vn(Xa)) ((wo = Xa), vr++);
              else
                for (let lc = 0; lc < ys.length; lc++) {
                  const _c = w;
                  ((w = 2048),
                    Te(ys[lc], Xa),
                    w === p && (il[lc] = !0),
                    (md = md || w === -1),
                    (w = Math.min(w, _c)));
                }
            if (vr === 0) {
              const Xa = Sr(rr);
              Xa && Ze(qn, Xa, 1);
              return;
            }
            if (vr === 1 && !md) {
              const Xa = Ki(ys, (lc, _c) => (il[_c] ? void 0 : lc));
              if (Xa.length) {
                Te(pi(Xa), wo);
                return;
              }
            }
          } else for (const wo of rr) vn(wo) ? vr++ : Te(qn, wo);
          if (Hi & 2097152 ? vr === 1 : vr > 0)
            for (const wo of rr) vn(wo) && Ze(qn, wo, 1);
        }
        function oo(qn, rr, Hi) {
          if (Hi.flags & 1048576 || Hi.flags & 2097152) {
            let vr = !1;
            for (const wo of Hi.types) vr = oo(qn, rr, wo) || vr;
            return vr;
          }
          if (Hi.flags & 4194304) {
            const vr = vn(Hi.type);
            if (vr && !vr.isFixed && !mFe(qn)) {
              const wo = pFe(qn, rr, Hi);
              wo && Ze(wo, vr.typeParameter, Hr(qn) & 262144 ? 16 : 8);
            }
            return !0;
          }
          if (Hi.flags & 262144) {
            Ze(b_(qn, qn.pattern ? 2 : 0), Hi, 32);
            const vr = vA(Hi);
            if (vr && oo(qn, rr, vr)) return !0;
            const wo = Vt(bs(qn), _r),
              ys = Vt(Xd(qn), (il) => (il !== ro ? il.type : yn));
            return (Te(pi(so(wo, ys)), Gg(rr)), !0);
          }
          return !1;
        }
        function ii(qn, rr) {
          if (qn.flags & 16777216)
            (Te(qn.checkType, rr.checkType),
              Te(qn.extendsType, rr.extendsType),
              Te(pT(qn), pT(rr)),
              Te(fT(qn), fT(rr)));
          else {
            const Hi = [pT(rr), fT(rr)];
            Dt(qn, Hi, rr.flags, m ? 64 : 0);
          }
        }
        function zi(qn, rr) {
          const Hi = gFe(qn, rr),
            vr = rr.types;
          if (Hi || Vn(rr.texts, (wo) => wo.length === 0))
            for (let wo = 0; wo < vr.length; wo++) {
              const ys = Hi ? Hi[wo] : yn,
                il = vr[wo];
              if (ys.flags & 128 && il.flags & 8650752) {
                const md = vn(il),
                  Xa = md ? Ld(md.typeParameter) : void 0;
                if (Xa && !wr(Xa)) {
                  const lc = Xa.flags & 1048576 ? Xa.types : [Xa];
                  let _c = gu(lc, (Ts, Nf) => Ts | Nf.flags, 0);
                  if (!(_c & 4)) {
                    const Ts = ys.value;
                    (_c & 296 && !hFe(Ts, !0) && (_c &= -297),
                      _c & 2112 && !$6(Ts, !0) && (_c &= -2113));
                    const Nf = gu(
                      lc,
                      (Sl, nc) =>
                        nc.flags & _c
                          ? Sl.flags & 4
                            ? Sl
                            : nc.flags & 4
                              ? ys
                              : Sl.flags & 134217728
                                ? Sl
                                : nc.flags & 134217728 && UY(ys, nc)
                                  ? ys
                                  : Sl.flags & 268435456
                                    ? Sl
                                    : nc.flags & 268435456 &&
                                        Ts === u8e(nc.symbol, Ts)
                                      ? ys
                                      : Sl.flags & 128
                                        ? Sl
                                        : nc.flags & 128 && nc.value === Ts
                                          ? nc
                                          : Sl.flags & 8
                                            ? Sl
                                            : nc.flags & 8
                                              ? Ch(+Ts)
                                              : Sl.flags & 32
                                                ? Sl
                                                : nc.flags & 32
                                                  ? Ch(+Ts)
                                                  : Sl.flags & 256
                                                    ? Sl
                                                    : nc.flags & 256 &&
                                                        nc.value === +Ts
                                                      ? nc
                                                      : Sl.flags & 64
                                                        ? Sl
                                                        : nc.flags & 64
                                                          ? Kut(Ts)
                                                          : Sl.flags & 2048
                                                            ? Sl
                                                            : nc.flags & 2048 &&
                                                                wS(nc.value) ===
                                                                  Ts
                                                              ? nc
                                                              : Sl.flags & 16
                                                                ? Sl
                                                                : nc.flags & 16
                                                                  ? Ts ===
                                                                    "true"
                                                                    ? ft
                                                                    : Ts ===
                                                                        "false"
                                                                      ? tr
                                                                      : jt
                                                                  : Sl.flags &
                                                                      512
                                                                    ? Sl
                                                                    : nc.flags &
                                                                          512 &&
                                                                        nc.intrinsicName ===
                                                                          Ts
                                                                      ? nc
                                                                      : Sl.flags &
                                                                          32768
                                                                        ? Sl
                                                                        : nc.flags &
                                                                              32768 &&
                                                                            nc.intrinsicName ===
                                                                              Ts
                                                                          ? nc
                                                                          : Sl.flags &
                                                                              65536
                                                                            ? Sl
                                                                            : nc.flags &
                                                                                  65536 &&
                                                                                nc.intrinsicName ===
                                                                                  Ts
                                                                              ? nc
                                                                              : Sl
                          : Sl,
                      yn,
                    );
                    if (!(Nf.flags & 131072)) {
                      Te(Nf, il);
                      continue;
                    }
                  }
                }
              }
              Te(ys, il);
            }
        }
        function Ko(qn, rr) {
          (Te(Rf(qn), Rf(rr)), Te(Gg(qn), Gg(rr)));
          const Hi = Fv(qn),
            vr = Fv(rr);
          Hi && vr && Te(Hi, vr);
        }
        function ms(qn, rr) {
          var Hi, vr;
          if (
            Hr(qn) & 4 &&
            Hr(rr) & 4 &&
            (qn.target === rr.target || (im(qn) && im(rr)))
          ) {
            nr(rl(qn), rl(rr), S_e(qn.target));
            return;
          }
          if (
            (up(qn) && up(rr) && Ko(qn, rr),
            Hr(rr) & 32 && !rr.declaration.nameType)
          ) {
            const wo = Rf(rr);
            if (oo(qn, rr, wo)) return;
          }
          if (!qut(qn, rr)) {
            if (Q0(qn)) {
              if (Ka(rr)) {
                const wo = Gv(qn),
                  ys = Gv(rr),
                  il = rl(rr),
                  md = rr.target.elementFlags;
                if (Ka(qn) && Iut(qn, rr)) {
                  for (let _c = 0; _c < ys; _c++) Te(rl(qn)[_c], il[_c]);
                  return;
                }
                const Xa = Ka(qn)
                    ? Math.min(qn.target.fixedLength, rr.target.fixedLength)
                    : 0,
                  lc = Math.min(
                    Ka(qn) ? kW(qn.target, 3) : 0,
                    rr.target.combinedFlags & 12 ? kW(rr.target, 3) : 0,
                  );
                for (let _c = 0; _c < Xa; _c++) Te(rl(qn)[_c], il[_c]);
                if (
                  !Ka(qn) ||
                  (wo - Xa - lc === 1 && qn.target.elementFlags[Xa] & 4)
                ) {
                  const _c = rl(qn)[Xa];
                  for (let Ts = Xa; Ts < ys - lc; Ts++)
                    Te(md[Ts] & 8 ? Yd(_c) : _c, il[Ts]);
                } else {
                  const _c = ys - Xa - lc;
                  if (_c === 2) {
                    if (md[Xa] & md[Xa + 1] & 8) {
                      const Ts = vn(il[Xa]);
                      Ts &&
                        Ts.impliedArity !== void 0 &&
                        (Te(IL(qn, Xa, lc + wo - Ts.impliedArity), il[Xa]),
                        Te(IL(qn, Xa + Ts.impliedArity, lc), il[Xa + 1]));
                    } else if (md[Xa] & 8 && md[Xa + 1] & 4) {
                      const Ts =
                          (Hi = vn(il[Xa])) == null ? void 0 : Hi.typeParameter,
                        Nf = Ts && Ld(Ts);
                      if (Nf && Ka(Nf) && !(Nf.target.combinedFlags & 12)) {
                        const Sl = Nf.target.fixedLength;
                        (Te(IL(qn, Xa, wo - (Xa + Sl)), il[Xa]),
                          Te(CL(qn, Xa + Sl, lc), il[Xa + 1]));
                      }
                    } else if (md[Xa] & 4 && md[Xa + 1] & 8) {
                      const Ts =
                          (vr = vn(il[Xa + 1])) == null
                            ? void 0
                            : vr.typeParameter,
                        Nf = Ts && Ld(Ts);
                      if (Nf && Ka(Nf) && !(Nf.target.combinedFlags & 12)) {
                        const Sl = Nf.target.fixedLength,
                          nc = wo - kW(rr.target, 3),
                          lm = nc - Sl,
                          jL = eg(
                            rl(qn).slice(lm, nc),
                            qn.target.elementFlags.slice(lm, nc),
                            !1,
                            qn.target.labeledElementDeclarations &&
                              qn.target.labeledElementDeclarations.slice(
                                lm,
                                nc,
                              ),
                          );
                        (Te(CL(qn, Xa, lc + Sl), il[Xa]), Te(jL, il[Xa + 1]));
                      }
                    }
                  } else if (_c === 1 && md[Xa] & 8) {
                    const Ts = rr.target.elementFlags[ys - 1] & 2,
                      Nf = IL(qn, Xa, lc);
                    Ze(Nf, il[Xa], Ts ? 2 : 0);
                  } else if (_c === 1 && md[Xa] & 4) {
                    const Ts = CL(qn, Xa, lc);
                    Ts && Te(Ts, il[Xa]);
                  }
                }
                for (let _c = 0; _c < lc; _c++)
                  Te(rl(qn)[wo - _c - 1], il[ys - _c - 1]);
                return;
              }
              if (im(rr)) {
                mu(qn, rr);
                return;
              }
            }
            (fo(qn, rr), dl(qn, rr, 0), dl(qn, rr, 1), mu(qn, rr));
          }
        }
        function fo(qn, rr) {
          const Hi = zv(rr);
          for (const vr of Hi) {
            const wo = Ea(qn, vr.escapedName);
            wo &&
              !yt(wo.declarations, B_e) &&
              Te(
                Gy(_r(wo), !!(wo.flags & 16777216)),
                Gy(_r(vr), !!(vr.flags & 16777216)),
              );
          }
        }
        function dl(qn, rr, Hi) {
          const vr = na(qn, Hi),
            wo = vr.length;
          if (wo > 0) {
            const ys = na(rr, Hi),
              il = ys.length;
            for (let md = 0; md < il; md++) {
              const Xa = Math.max(wo - il + md, 0);
              Kl(Zlt(vr[Xa]), LW(ys[md]));
            }
          }
        }
        function Kl(qn, rr) {
          if (!(qn.flags & 64)) {
            const Hi = v,
              vr = rr.declaration ? rr.declaration.kind : 0;
            ((v = v || vr === 175 || vr === 174 || vr === 177),
              M_e(qn, rr, Sn),
              (v = Hi));
          }
          P_e(qn, rr, Te);
        }
        function mu(qn, rr) {
          const Hi = Hr(qn) & Hr(rr) & 32 ? 8 : 0,
            vr = Xd(rr);
          if (FY(qn))
            for (const wo of vr) {
              const ys = [];
              for (const il of bs(qn))
                if (eR(nR(il, 8576), wo.keyType)) {
                  const md = _r(il);
                  ys.push(il.flags & 16777216 ? WY(md) : md);
                }
              for (const il of Xd(qn))
                eR(il.keyType, wo.keyType) && ys.push(il.type);
              ys.length && Ze(pi(ys), wo.type, Hi);
            }
          for (const wo of vr) {
            const ys = CW(qn, wo.keyType);
            ys && Ze(ys.type, wo.type, Hi);
          }
        }
      }
      function Yut(n, a) {
        return a === Ae
          ? n === a
          : Hg(n, a) ||
              !!(
                (a.flags & 4 && n.flags & 128) ||
                (a.flags & 8 && n.flags & 256)
              );
      }
      function $ut(n, a) {
        return !!(
          (n.flags & 524288 &&
            a.flags & 524288 &&
            n.symbol &&
            n.symbol === a.symbol) ||
          (n.aliasSymbol &&
            n.aliasTypeArguments &&
            n.aliasSymbol === a.aliasSymbol)
        );
      }
      function Qut(n) {
        const a = Uu(n);
        return !!a && tc(a.flags & 16777216 ? bhe(a) : a, 406978556);
      }
      function Uv(n) {
        return !!(Hr(n) & 128);
      }
      function G_e(n) {
        return !!(Hr(n) & 16512);
      }
      function Zut(n) {
        if (n.length > 1) {
          const a = Un(n, G_e);
          if (a.length) {
            const c = pi(a, 2);
            return so(
              Un(n, (p) => !G_e(p)),
              [c],
            );
          }
        }
        return n;
      }
      function ept(n) {
        return n.priority & 416
          ? Ma(n.contraCandidates)
          : yut(n.contraCandidates);
      }
      function tpt(n, a) {
        const c = Zut(n.candidates),
          p = Qut(n.typeParameter) || bA(n.typeParameter),
          m = !p && n.topLevel && (n.isFixed || !But(a, n.typeParameter)),
          v = p ? Zi(c, Cu) : m ? Zi(c, Z0) : c,
          I = n.priority & 416 ? pi(v, 2) : _ut(v);
        return $p(I);
      }
      function V_e(n, a) {
        const c = n.inferences[a];
        if (!c.inferredType) {
          let p, m;
          if (n.signature) {
            const I = c.candidates ? tpt(c, n.signature) : void 0,
              w = c.contraCandidates ? ept(c) : void 0;
            if (I || w) {
              const U =
                I &&
                (!w ||
                  (!(I.flags & 131073) &&
                    yt(c.contraCandidates, (H) => aa(I, H)) &&
                    Vn(
                      n.inferences,
                      (H) =>
                        (H !== c && Uu(H.typeParameter) !== c.typeParameter) ||
                        Vn(H.candidates, (Q) => aa(Q, I)),
                    )));
              ((p = U ? I : w), (m = U ? w : I));
            } else if (n.flags & 1) p = wt;
            else {
              const U = EE(c.typeParameter);
              U && (p = io(U, N8e(Ddt(n, a), n.nonFixingMapper)));
            }
          } else p = fFe(c);
          c.inferredType = p || j_e(!!(n.flags & 2));
          const v = Uu(c.typeParameter);
          if (v) {
            const I = io(v, n.nonFixingMapper);
            (!p || !n.compareTypes(p, Kp(I, p))) &&
              (c.inferredType = m && n.compareTypes(m, Kp(I, m)) ? m : I);
          }
          Sft();
        }
        return c.inferredType;
      }
      function j_e(n) {
        return n ? Ue : Nt;
      }
      function U_e(n) {
        const a = [];
        for (let c = 0; c < n.inferences.length; c++) a.push(V_e(n, c));
        return a;
      }
      function vFe(n) {
        switch (n.escapedText) {
          case "document":
          case "console":
            return f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;
          case "$":
            return O.types
              ? f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig
              : f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;
          case "describe":
          case "suite":
          case "it":
          case "test":
            return O.types
              ? f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig
              : f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;
          case "process":
          case "require":
          case "Buffer":
          case "module":
            return O.types
              ? f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig
              : f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;
          case "Bun":
            return O.types
              ? f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig
              : f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun;
          case "Map":
          case "Set":
          case "Promise":
          case "Symbol":
          case "WeakMap":
          case "WeakSet":
          case "Iterator":
          case "AsyncIterator":
          case "SharedArrayBuffer":
          case "Atomics":
          case "AsyncIterable":
          case "AsyncIterableIterator":
          case "AsyncGenerator":
          case "AsyncGeneratorFunction":
          case "BigInt":
          case "Reflect":
          case "BigInt64Array":
          case "BigUint64Array":
            return f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;
          case "await":
            if (Zo(n.parent))
              return f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;
          default:
            return n.parent.kind === 305
              ? f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer
              : f.Cannot_find_name_0;
        }
      }
      function fu(n) {
        const a = Vr(n);
        return (
          a.resolvedSymbol ||
            (a.resolvedSymbol =
              (!Ol(n) && _t(n, n, 1160127, vFe(n), !C6(n), !1)) || ne),
          a.resolvedSymbol
        );
      }
      function H_e(n) {
        return !!(n.flags & 33554432 || Dn(n, (a) => gd(a) || vm(a) || wu(a)));
      }
      function _5(n, a, c, p) {
        switch (n.kind) {
          case 80:
            if (!NS(n)) {
              const I = fu(n);
              return I !== ne
                ? `${p ? ls(p) : "-1"}|${pd(a)}|${pd(c)}|${Ta(I)}`
                : void 0;
            }
          case 110:
            return `0|${p ? ls(p) : "-1"}|${pd(a)}|${pd(c)}`;
          case 236:
          case 218:
            return _5(n.expression, a, c, p);
          case 167:
            const m = _5(n.left, a, c, p);
            return m && `${m}.${n.right.escapedText}`;
          case 212:
          case 213:
            const v = MA(n);
            if (v !== void 0) {
              const I = _5(n.expression, a, c, p);
              return I && `${I}.${v}`;
            }
            if (Ws(n) && He(n.argumentExpression)) {
              const I = fu(n.argumentExpression);
              if (lR(I) || ($W(I) && !YW(I))) {
                const w = _5(n.expression, a, c, p);
                return w && `${w}.@${Ta(I)}`;
              }
            }
            break;
          case 207:
          case 208:
          case 263:
          case 219:
          case 220:
          case 175:
            return `${ls(n)}#${pd(a)}`;
        }
      }
      function Ad(n, a) {
        switch (a.kind) {
          case 218:
          case 236:
            return Ad(n, a.expression);
          case 227:
            return (
              (id(a) && Ad(n, a.left)) ||
              (Nr(a) && a.operatorToken.kind === 28 && Ad(n, a.right))
            );
        }
        switch (n.kind) {
          case 237:
            return (
              a.kind === 237 &&
              n.keywordToken === a.keywordToken &&
              n.name.escapedText === a.name.escapedText
            );
          case 80:
          case 81:
            return NS(n)
              ? a.kind === 110
              : (a.kind === 80 && fu(n) === fu(a)) ||
                  ((yi(a) || Ha(a)) && Et(fu(n)) === Wr(a));
          case 110:
            return a.kind === 110;
          case 108:
            return a.kind === 108;
          case 236:
          case 218:
          case 239:
            return Ad(n.expression, a);
          case 212:
          case 213:
            const c = MA(n);
            if (c !== void 0) {
              const p = Ks(a) ? MA(a) : void 0;
              if (p !== void 0)
                return p === c && Ad(n.expression, a.expression);
            }
            if (
              Ws(n) &&
              Ws(a) &&
              He(n.argumentExpression) &&
              He(a.argumentExpression)
            ) {
              const p = fu(n.argumentExpression);
              if (
                p === fu(a.argumentExpression) &&
                (lR(p) || ($W(p) && !YW(p)))
              )
                return Ad(n.expression, a.expression);
            }
            break;
          case 167:
            return (
              Ks(a) && n.right.escapedText === MA(a) && Ad(n.left, a.expression)
            );
          case 227:
            return Nr(n) && n.operatorToken.kind === 28 && Ad(n.right, a);
        }
        return !1;
      }
      function MA(n) {
        if (qr(n)) return n.name.escapedText;
        if (Ws(n)) return npt(n);
        if (Ha(n)) {
          const a = kv(n);
          return a ? Cl(a) : void 0;
        }
        if (to(n)) return "" + n.parent.parameters.indexOf(n);
      }
      function q_e(n) {
        return n.flags & 8192
          ? n.escapedName
          : n.flags & 384
            ? Cl("" + n.value)
            : void 0;
      }
      function npt(n) {
        return uf(n.argumentExpression)
          ? Cl(n.argumentExpression.text)
          : Ds(n.argumentExpression)
            ? rpt(n.argumentExpression)
            : void 0;
      }
      function rpt(n) {
        const a = Gl(n, 111551, !0);
        if (!a || !(lR(a) || a.flags & 8)) return;
        const c = a.valueDeclaration;
        if (c === void 0) return;
        const p = cT(c);
        if (p) {
          const m = q_e(p);
          if (m !== void 0) return m;
        }
        if (ZE(c) && Dy(c, n)) {
          const m = hk(c);
          if (m) {
            const v = Qo(c.parent) ? Fg(c) : wd(m);
            return v && q_e(v);
          }
          if (py(c)) return hI(c.name);
        }
      }
      function bFe(n, a) {
        for (; Ks(n); ) if (((n = n.expression), Ad(n, a))) return !0;
        return !1;
      }
      function PA(n, a) {
        for (; tu(n); ) if (((n = n.expression), Ad(n, a))) return !0;
        return !1;
      }
      function NL(n, a) {
        if (n && n.flags & 1048576) {
          const c = fWe(n, a);
          if (c && Wl(c) & 2)
            return (
              c.links.isDiscriminantProperty === void 0 &&
                (c.links.isDiscriminantProperty =
                  (c.links.checkFlags & 192) === 192 && !X0(_r(c))),
              !!c.links.isDiscriminantProperty
            );
        }
        return !1;
      }
      function TFe(n, a) {
        let c;
        for (const p of n)
          if (NL(a, p.escapedName)) {
            if (c) {
              c.push(p);
              continue;
            }
            c = [p];
          }
        return c;
      }
      function ipt(n, a) {
        const c = new Map();
        let p = 0;
        for (const m of n)
          if (m.flags & 61603840) {
            const v = _n(m, a);
            if (v) {
              if (!jW(v)) return;
              let I = !1;
              (kA(v, (w) => {
                const U = pd(Cu(w)),
                  H = c.get(U);
                H ? H !== Nt && (c.set(U, Nt), (I = !0)) : c.set(U, m);
              }),
                I || p++);
            }
          }
        return p >= 10 && p * 2 >= n.length ? c : void 0;
      }
      function g5(n) {
        const a = n.types;
        if (
          !(
            a.length < 10 ||
            Hr(n) & 32768 ||
            Io(a, (c) => !!(c.flags & 59506688)) < 10
          )
        ) {
          if (n.keyPropertyName === void 0) {
            const c = Ye(a, (m) =>
                m.flags & 59506688
                  ? Ye(bs(m), (v) => (Nh(_r(v)) ? v.escapedName : void 0))
                  : void 0,
              ),
              p = c && ipt(a, c);
            ((n.keyPropertyName = p ? c : ""), (n.constituentMap = p));
          }
          return n.keyPropertyName.length ? n.keyPropertyName : void 0;
        }
      }
      function y5(n, a) {
        var c;
        const p = (c = n.constituentMap) == null ? void 0 : c.get(pd(Cu(a)));
        return p !== Nt ? p : void 0;
      }
      function SFe(n, a) {
        const c = g5(n),
          p = c && _n(a, c);
        return p && y5(n, p);
      }
      function opt(n, a) {
        const c = g5(n),
          p =
            c &&
            hn(
              a.properties,
              (v) =>
                v.symbol &&
                v.kind === 304 &&
                v.symbol.escapedName === c &&
                R5(v.initializer),
            ),
          m = p && J5(p.initializer);
        return m && y5(n, m);
      }
      function EFe(n, a) {
        return Ad(n, a) || bFe(n, a);
      }
      function AFe(n, a) {
        if (n.arguments) {
          for (const c of n.arguments) if (EFe(a, c) || PA(c, a)) return !0;
        }
        return !!(n.expression.kind === 212 && EFe(a, n.expression.expression));
      }
      function J_e(n) {
        return (n.id <= 0 && ((n.id = W1e), W1e++), n.id);
      }
      function apt(n, a) {
        if (!(n.flags & 1048576)) return aa(n, a);
        for (const c of n.types) if (aa(c, a)) return !0;
        return !1;
      }
      function spt(n, a) {
        if (n === a) return n;
        if (a.flags & 131072) return a;
        const c = `A${pd(n)},${pd(a)}`;
        return Gu(c) ?? Dm(c, lpt(n, a));
      }
      function lpt(n, a) {
        const c = Ec(n, (m) => apt(a, m)),
          p = a.flags & 512 && RE(a) ? Tl(c, oR) : c;
        return aa(a, p) ? p : n;
      }
      function K_e(n) {
        if (Hr(n) & 256) return !1;
        const a = Dh(n);
        return !!(
          a.callSignatures.length ||
          a.constructSignatures.length ||
          (a.members.get("bind") && CE(n, er))
        );
      }
      function JC(n, a) {
        return X_e(n, a) & a;
      }
      function Mh(n, a) {
        return JC(n, a) !== 0;
      }
      function X_e(n, a) {
        n.flags & 467927040 && (n = Ld(n) || Nt);
        const c = n.flags;
        if (c & 268435460) return ie ? 16317953 : 16776705;
        if (c & 134217856) {
          const p = c & 128 && n.value === "";
          return ie ? (p ? 12123649 : 7929345) : p ? 12582401 : 16776705;
        }
        if (c & 40) return ie ? 16317698 : 16776450;
        if (c & 256) {
          const p = n.value === 0;
          return ie ? (p ? 12123394 : 7929090) : p ? 12582146 : 16776450;
        }
        if (c & 64) return ie ? 16317188 : 16775940;
        if (c & 2048) {
          const p = iFe(n);
          return ie ? (p ? 12122884 : 7928580) : p ? 12581636 : 16775940;
        }
        return c & 16
          ? ie
            ? 16316168
            : 16774920
          : c & 528
            ? ie
              ? n === tr || n === Jn
                ? 12121864
                : 7927560
              : n === tr || n === Jn
                ? 12580616
                : 16774920
            : c & 524288
              ? (a & (ie ? 83427327 : 83886079)) === 0
                ? 0
                : Hr(n) & 16 && Fy(n)
                  ? ie
                    ? 83427327
                    : 83886079
                  : K_e(n)
                    ? ie
                      ? 7880640
                      : 16728e3
                    : ie
                      ? 7888800
                      : 16736160
              : c & 16384
                ? 9830144
                : c & 32768
                  ? 26607360
                  : c & 65536
                    ? 42917664
                    : c & 12288
                      ? ie
                        ? 7925520
                        : 16772880
                      : c & 67108864
                        ? ie
                          ? 7888800
                          : 16736160
                        : c & 131072
                          ? 0
                          : c & 1048576
                            ? gu(n.types, (p, m) => p | X_e(m, a), 0)
                            : c & 2097152
                              ? cpt(n, a)
                              : 83886079;
      }
      function cpt(n, a) {
        const c = tc(n, 402784252);
        let p = 0,
          m = 134217727;
        for (const v of n.types)
          if (!(c && v.flags & 524288)) {
            const I = X_e(v, a);
            ((p |= I), (m &= I));
          }
        return (p & 8256) | (m & 134209471);
      }
      function om(n, a) {
        return Ec(n, (c) => Mh(c, a));
      }
      function LA(n, a) {
        const c = Y_e(om(ie && n.flags & 2 ? qa : n, a));
        if (ie)
          switch (a) {
            case 524288:
              return IFe(c, 65536, 131072, 33554432, Xt);
            case 1048576:
              return IFe(c, 131072, 65536, 16777216, he);
            case 2097152:
            case 4194304:
              return Tl(c, (p) => (Mh(p, 262144) ? Dut(p) : p));
          }
        return c;
      }
      function IFe(n, a, c, p, m) {
        const v = JC(n, 50528256);
        if (!(v & a)) return n;
        const I = pi([Ra, m]);
        return Tl(n, (w) =>
          Mh(w, a) ? Ma([w, !(v & p) && Mh(w, c) ? I : Ra]) : w,
        );
      }
      function Y_e(n) {
        return n === qa ? Nt : n;
      }
      function $_e(n, a) {
        return a ? pi([Is(n), wd(a)]) : n;
      }
      function xFe(n, a) {
        var c;
        const p = ky(a);
        if (!jf(p)) return nt;
        const m = Uf(p);
        return _n(n, m) || XW((c = tR(n, m)) == null ? void 0 : c.type) || nt;
      }
      function RFe(n, a) {
        return (Ep(n, DL) && vut(n, a)) || XW(Hv(65, n, he, void 0)) || nt;
      }
      function XW(n) {
        return n && (O.noUncheckedIndexedAccess ? pi([n, Ae]) : n);
      }
      function DFe(n) {
        return Yd(Hv(65, n, he, void 0) || nt);
      }
      function dpt(n) {
        return (n.parent.kind === 210 && Q_e(n.parent)) ||
          (n.parent.kind === 304 && Q_e(n.parent.parent))
          ? $_e(v5(n), n.right)
          : wd(n.right);
      }
      function Q_e(n) {
        return (
          (n.parent.kind === 227 && n.parent.left === n) ||
          (n.parent.kind === 251 && n.parent.initializer === n)
        );
      }
      function upt(n, a) {
        return RFe(v5(n), n.elements.indexOf(a));
      }
      function ppt(n) {
        return DFe(v5(n.parent));
      }
      function CFe(n) {
        return xFe(v5(n.parent), n.name);
      }
      function fpt(n) {
        return $_e(CFe(n), n.objectAssignmentInitializer);
      }
      function v5(n) {
        const { parent: a } = n;
        switch (a.kind) {
          case 250:
            return gt;
          case 251:
            return eB(a) || nt;
          case 227:
            return dpt(a);
          case 221:
            return he;
          case 210:
            return upt(a, n);
          case 231:
            return ppt(a);
          case 304:
            return CFe(a);
          case 305:
            return fpt(a);
        }
        return nt;
      }
      function mpt(n) {
        const a = n.parent,
          c = MFe(a.parent),
          p =
            a.kind === 207
              ? xFe(c, n.propertyName || n.name)
              : n.dotDotDotToken
                ? DFe(c)
                : RFe(c, a.elements.indexOf(n));
        return $_e(p, n.initializer);
      }
      function NFe(n) {
        return Vr(n).resolvedType || wd(n);
      }
      function hpt(n) {
        return n.initializer
          ? NFe(n.initializer)
          : n.parent.parent.kind === 250
            ? gt
            : (n.parent.parent.kind === 251 && eB(n.parent.parent)) || nt;
      }
      function MFe(n) {
        return n.kind === 261 ? hpt(n) : mpt(n);
      }
      function _pt(n) {
        return (
          (n.kind === 261 && n.initializer && Ov(n.initializer)) ||
          (n.kind !== 209 && n.parent.kind === 227 && Ov(n.parent.right))
        );
      }
      function ME(n) {
        switch (n.kind) {
          case 218:
            return ME(n.expression);
          case 227:
            switch (n.operatorToken.kind) {
              case 64:
              case 76:
              case 77:
              case 78:
                return ME(n.left);
              case 28:
                return ME(n.right);
            }
        }
        return n;
      }
      function PFe(n) {
        const { parent: a } = n;
        return a.kind === 218 ||
          (a.kind === 227 && a.operatorToken.kind === 64 && a.left === n) ||
          (a.kind === 227 && a.operatorToken.kind === 28 && a.right === n)
          ? PFe(a)
          : n;
      }
      function gpt(n) {
        return n.kind === 297 ? Cu(wd(n.expression)) : yn;
      }
      function HY(n) {
        const a = Vr(n);
        if (!a.switchTypes) {
          a.switchTypes = [];
          for (const c of n.caseBlock.clauses) a.switchTypes.push(gpt(c));
        }
        return a.switchTypes;
      }
      function LFe(n) {
        if (yt(n.caseBlock.clauses, (c) => c.kind === 297 && !ds(c.expression)))
          return;
        const a = [];
        for (const c of n.caseBlock.clauses) {
          const p = c.kind === 297 ? c.expression.text : void 0;
          a.push(p && !jn(a, p) ? p : void 0);
        }
        return a;
      }
      function ypt(n, a) {
        return n.flags & 1048576 ? !Ye(n.types, (c) => !jn(a, c)) : jn(a, n);
      }
      function ML(n, a) {
        return !!(
          n === a ||
          n.flags & 131072 ||
          (a.flags & 1048576 && vpt(n, a))
        );
      }
      function vpt(n, a) {
        if (n.flags & 1048576) {
          for (const c of n.types) if (!Ug(a.types, c)) return !1;
          return !0;
        }
        return n.flags & 1056 && ZX(n) === a ? !0 : Ug(a.types, n);
      }
      function kA(n, a) {
        return n.flags & 1048576 ? Ye(n.types, a) : a(n);
      }
      function am(n, a) {
        return n.flags & 1048576 ? yt(n.types, a) : a(n);
      }
      function Ep(n, a) {
        return n.flags & 1048576 ? Vn(n.types, a) : a(n);
      }
      function bpt(n, a) {
        return n.flags & 3145728 ? Vn(n.types, a) : a(n);
      }
      function Ec(n, a) {
        if (n.flags & 1048576) {
          const c = n.types,
            p = Un(c, a);
          if (p === c) return n;
          const m = n.origin;
          let v;
          if (m && m.flags & 1048576) {
            const I = m.types,
              w = Un(I, (U) => !!(U.flags & 1048576) || a(U));
            if (I.length - w.length === c.length - p.length) {
              if (w.length === 1) return w[0];
              v = Khe(1048576, w);
            }
          }
          return Yhe(p, n.objectFlags & 16809984, void 0, void 0, v);
        }
        return n.flags & 131072 || a(n) ? n : yn;
      }
      function qY(n, a) {
        return Ec(n, (c) => c !== a);
      }
      function Tpt(n) {
        return n.flags & 1048576 ? n.types.length : 1;
      }
      function Tl(n, a, c) {
        if (n.flags & 131072) return n;
        if (!(n.flags & 1048576)) return a(n);
        const p = n.origin,
          m = p && p.flags & 1048576 ? p.types : n.types;
        let v,
          I = !1;
        for (const w of m) {
          const U = w.flags & 1048576 ? Tl(w, a, c) : a(w);
          (I || (I = w !== U), U && (v ? v.push(U) : (v = [U])));
        }
        return I ? v && pi(v, c ? 0 : 1) : n;
      }
      function kFe(n, a, c, p) {
        return n.flags & 1048576 && c ? pi(Vt(n.types, a), 1, c, p) : Tl(n, a);
      }
      function PL(n, a) {
        return Ec(n, (c) => (c.flags & a) !== 0);
      }
      function wFe(n, a) {
        return tc(n, 134217804) && tc(a, 402655616)
          ? Tl(n, (c) =>
              c.flags & 4
                ? PL(a, 402653316)
                : AA(c) && !tc(a, 402653188)
                  ? PL(a, 128)
                  : c.flags & 8
                    ? PL(a, 264)
                    : c.flags & 64
                      ? PL(a, 2112)
                      : c,
            )
          : n;
      }
      function KC(n) {
        return n.flags === 0;
      }
      function wA(n) {
        return n.flags === 0 ? n.type : n;
      }
      function XC(n, a) {
        return a ? { flags: 0, type: n.flags & 131072 ? wt : n } : n;
      }
      function Spt(n) {
        const a = hc(256);
        return ((a.elementType = n), a);
      }
      function Z_e(n) {
        return Ft[n.id] || (Ft[n.id] = Spt(n));
      }
      function OFe(n, a) {
        const c = qW(zy(J5(a)));
        return ML(c, n.elementType) ? n : Z_e(pi([n.elementType, c]));
      }
      function Ept(n) {
        return n.flags & 131072
          ? ld
          : Yd(n.flags & 1048576 ? pi(n.types, 2) : n);
      }
      function Apt(n) {
        return n.finalArrayType || (n.finalArrayType = Ept(n.elementType));
      }
      function b5(n) {
        return Hr(n) & 256 ? Apt(n) : n;
      }
      function Ipt(n) {
        return Hr(n) & 256 ? n.elementType : yn;
      }
      function xpt(n) {
        let a = !1;
        for (const c of n)
          if (!(c.flags & 131072)) {
            if (!(Hr(c) & 256)) return !1;
            a = !0;
          }
        return a;
      }
      function WFe(n) {
        const a = PFe(n),
          c = a.parent,
          p =
            qr(c) &&
            (c.name.escapedText === "length" ||
              (c.parent.kind === 214 && He(c.name) && KG(c.name))),
          m =
            c.kind === 213 &&
            c.expression === a &&
            c.parent.kind === 227 &&
            c.parent.operatorToken.kind === 64 &&
            c.parent.left === c &&
            !Tb(c.parent) &&
            kd(wd(c.argumentExpression), 296);
        return p || m;
      }
      function Rpt(n) {
        return (
          (yi(n) || Po(n) || Su(n) || to(n)) &&
          !!(
            xc(n) ||
            (Ir(n) &&
              Zy(n) &&
              n.initializer &&
              Rb(n.initializer) &&
              kp(n.initializer))
          )
        );
      }
      function JY(n, a) {
        if (((n = mc(n)), n.flags & 8752)) return _r(n);
        if (n.flags & 7) {
          if (Wl(n) & 262144) {
            const p = n.links.syntheticOrigin;
            if (p && JY(p)) return _r(n);
          }
          const c = n.valueDeclaration;
          if (c) {
            if (Rpt(c)) return _r(n);
            if (yi(c) && c.parent.parent.kind === 251) {
              const p = c.parent.parent,
                m = T5(p.expression, void 0);
              if (m) {
                const v = p.awaitModifier ? 15 : 13;
                return Hv(v, m, he, void 0);
              }
            }
            a && pa(a, Ar(c, f._0_needs_an_explicit_type_annotation, uo(n)));
          }
        }
      }
      function T5(n, a) {
        if (!(n.flags & 67108864))
          switch (n.kind) {
            case 80:
              const c = Et(fu(n));
              return JY(c, a);
            case 110:
              return Kpt(n);
            case 108:
              return ZY(n);
            case 212: {
              const p = T5(n.expression, a);
              if (p) {
                const m = n.name;
                let v;
                if (eo(m)) {
                  if (!p.symbol) return;
                  v = Ea(p, Ck(p.symbol, m.escapedText));
                } else v = Ea(p, m.escapedText);
                return v && JY(v, a);
              }
              return;
            }
            case 218:
              return T5(n.expression, a);
          }
      }
      function S5(n) {
        const a = Vr(n);
        let c = a.effectsSignature;
        if (c === void 0) {
          let p;
          if (Nr(n)) {
            const I = $C(n.right);
            p = Zge(I);
          } else
            n.parent.kind === 245
              ? (p = T5(n.expression, void 0))
              : n.expression.kind !== 108 &&
                (tu(n)
                  ? (p = S_(UW(_o(n.expression), n.expression), n.expression))
                  : (p = $C(n.expression)));
          const m = na((p && Du(p)) || Nt, 0),
            v =
              m.length === 1 && !m[0].typeParameters
                ? m[0]
                : yt(m, FFe)
                  ? ZC(n)
                  : void 0;
          c = a.effectsSignature = v && FFe(v) ? v : si;
        }
        return c === si ? void 0 : c;
      }
      function FFe(n) {
        return !!(
          nm(n) ||
          (n.declaration && (BC(n.declaration) || Nt).flags & 131072)
        );
      }
      function Dpt(n, a) {
        if (n.kind === 1 || n.kind === 3) return a.arguments[n.parameterIndex];
        const c = us(a.expression);
        return Ks(c) ? us(c.expression) : void 0;
      }
      function Cpt(n) {
        const a = Dn(n, $9),
          c = Wn(n),
          p = jh(c, a.statements.pos);
        ns.add(
          Oc(
            c,
            p.start,
            p.length,
            f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis,
          ),
        );
      }
      function E5(n) {
        const a = KY(n, !1);
        return ((_i = n), (Do = a), a);
      }
      function A5(n) {
        const a = us(n, !0);
        return (
          a.kind === 97 ||
          (a.kind === 227 &&
            ((a.operatorToken.kind === 56 && (A5(a.left) || A5(a.right))) ||
              (a.operatorToken.kind === 57 && A5(a.left) && A5(a.right))))
        );
      }
      function KY(n, a) {
        for (;;) {
          if (n === _i) return Do;
          const c = n.flags;
          if (c & 4096) {
            if (!a) {
              const p = J_e(n),
                m = Px[p];
              return m !== void 0 ? m : (Px[p] = KY(n, !0));
            }
            a = !1;
          }
          if (c & 368) n = n.antecedent;
          else if (c & 512) {
            const p = S5(n.node);
            if (p) {
              const m = nm(p);
              if (m && m.kind === 3 && !m.type) {
                const v = n.node.arguments[m.parameterIndex];
                if (v && A5(v)) return !1;
              }
              if (fs(p).flags & 131072) return !1;
            }
            n = n.antecedent;
          } else {
            if (c & 4) return yt(n.antecedent, (p) => KY(p, !1));
            if (c & 8) {
              const p = n.antecedent;
              if (p === void 0 || p.length === 0) return !1;
              n = p[0];
            } else if (c & 128) {
              const p = n.node;
              if (p.clauseStart === p.clauseEnd && N4e(p.switchStatement))
                return !1;
              n = n.antecedent;
            } else if (c & 1024) {
              _i = void 0;
              const p = n.node.target,
                m = p.antecedent;
              p.antecedent = n.node.antecedents;
              const v = KY(n.antecedent, !1);
              return ((p.antecedent = m), v);
            } else return !(c & 1);
          }
        }
      }
      function XY(n, a) {
        for (;;) {
          const c = n.flags;
          if (c & 4096) {
            if (!a) {
              const p = J_e(n),
                m = cE[p];
              return m !== void 0 ? m : (cE[p] = XY(n, !0));
            }
            a = !1;
          }
          if (c & 496) n = n.antecedent;
          else if (c & 512) {
            if (n.node.expression.kind === 108) return !0;
            n = n.antecedent;
          } else {
            if (c & 4) return Vn(n.antecedent, (p) => XY(p, !1));
            if (c & 8) n = n.antecedent[0];
            else if (c & 1024) {
              const p = n.node.target,
                m = p.antecedent;
              p.antecedent = n.node.antecedents;
              const v = XY(n.antecedent, !1);
              return ((p.antecedent = m), v);
            } else return !!(c & 1);
          }
        }
      }
      function ege(n) {
        switch (n.kind) {
          case 110:
            return !0;
          case 80:
            if (!NS(n)) {
              const c = fu(n);
              return (
                lR(c) ||
                ($W(c) && !YW(c)) ||
                (!!c.valueDeclaration && Us(c.valueDeclaration))
              );
            }
            break;
          case 212:
          case 213:
            return ege(n.expression) && wh(Vr(n).resolvedSymbol || ne);
          case 207:
          case 208:
            const a = Jh(n.parent);
            return to(a) || wre(a) ? !tge(a) : yi(a) && b8(a);
        }
        return !1;
      }
      function Vy(
        n,
        a,
        c = a,
        p,
        m = ((v) => ((v = ni(n, eD)) == null ? void 0 : v.flowNode))(),
      ) {
        let v,
          I = !1,
          w = 0;
        if (Oi) return nt;
        if (!m) return a;
        Ro++;
        const U = lr,
          H = wA(Te(m));
        lr = U;
        const Q = Hr(H) & 256 && WFe(n) ? ld : b5(H);
        if (
          Q === xn ||
          (n.parent &&
            n.parent.kind === 236 &&
            !(Q.flags & 131072) &&
            om(Q, 2097152).flags & 131072)
        )
          return a;
        return Q;
        function Ie() {
          return I ? v : ((I = !0), (v = _5(n, a, c, p)));
        }
        function Te(Ht) {
          var Nn;
          if (w === 2e3)
            return (
              (Nn = xr) == null ||
                Nn.instant(
                  xr.Phase.CheckTypes,
                  "getTypeAtFlowNode_DepthLimit",
                  { flowId: Ht.id },
                ),
              (Oi = !0),
              Cpt(n),
              nt
            );
          w++;
          let $n;
          for (;;) {
            const hr = Ht.flags;
            if (hr & 4096) {
              for (let gi = U; gi < lr; gi++)
                if (qb[gi] === Ht) return (w--, Mx[gi]);
              $n = Ht;
            }
            let Gr;
            if (hr & 16) {
              if (((Gr = Tt(Ht)), !Gr)) {
                Ht = Ht.antecedent;
                continue;
              }
            } else if (hr & 512) {
              if (((Gr = $t(Ht)), !Gr)) {
                Ht = Ht.antecedent;
                continue;
              }
            } else if (hr & 96) Gr = nr(Ht);
            else if (hr & 128) Gr = yr(Ht);
            else if (hr & 12) {
              if (Ht.antecedent.length === 1) {
                Ht = Ht.antecedent[0];
                continue;
              }
              Gr = hr & 4 ? Sn(Ht) : vn(Ht);
            } else if (hr & 256) {
              if (((Gr = Tn(Ht)), !Gr)) {
                Ht = Ht.antecedent;
                continue;
              }
            } else if (hr & 1024) {
              const gi = Ht.node.target,
                Pa = gi.antecedent;
              ((gi.antecedent = Ht.node.antecedents),
                (Gr = Te(Ht.antecedent)),
                (gi.antecedent = Pa));
            } else if (hr & 2) {
              const gi = Ht.node;
              if (
                gi &&
                gi !== p &&
                n.kind !== 212 &&
                n.kind !== 213 &&
                !(n.kind === 110 && gi.kind !== 220)
              ) {
                Ht = gi.flowNode;
                continue;
              }
              Gr = c;
            } else Gr = _8(a);
            return ($n && ((qb[lr] = $n), (Mx[lr] = Gr), lr++), w--, Gr);
          }
        }
        function Ze(Ht) {
          const Nn = Ht.node;
          return nge(Nn.kind === 261 || Nn.kind === 209 ? MFe(Nn) : v5(Nn), n);
        }
        function Tt(Ht) {
          const Nn = Ht.node;
          if (Ad(n, Nn)) {
            if (!E5(Ht)) return xn;
            if (bb(Nn) === 2) {
              const hr = Te(Ht.antecedent);
              return XC(zy(wA(hr)), KC(hr));
            }
            if (a === Rt || a === ld) {
              if (_pt(Nn)) return Z_e(yn);
              const hr = Z0(Ze(Ht));
              return aa(hr, a) ? hr : bd;
            }
            const $n = BG(Nn) ? zy(a) : a;
            return $n.flags & 1048576 ? spt($n, Ze(Ht)) : $n;
          }
          if (bFe(n, Nn)) {
            if (!E5(Ht)) return xn;
            if (yi(Nn) && (Ir(Nn) || b8(Nn))) {
              const $n = QN(Nn);
              if ($n && ($n.kind === 219 || $n.kind === 220))
                return Te(Ht.antecedent);
            }
            return a;
          }
          if (
            yi(Nn) &&
            Nn.parent.parent.kind === 250 &&
            (Ad(n, Nn.parent.parent.expression) ||
              PA(Nn.parent.parent.expression, n))
          )
            return Sge(b5(wA(Te(Ht.antecedent))));
        }
        function Dt(Ht, Nn) {
          const $n = us(Nn, !0);
          if ($n.kind === 97) return xn;
          if ($n.kind === 227) {
            if ($n.operatorToken.kind === 56)
              return Dt(Dt(Ht, $n.left), $n.right);
            if ($n.operatorToken.kind === 57)
              return pi([Dt(Ht, $n.left), Dt(Ht, $n.right)]);
          }
          return af(Ht, $n, !0);
        }
        function $t(Ht) {
          const Nn = S5(Ht.node);
          if (Nn) {
            const $n = nm(Nn);
            if ($n && ($n.kind === 2 || $n.kind === 3)) {
              const hr = Te(Ht.antecedent),
                Gr = b5(wA(hr)),
                gi = $n.type
                  ? UL(Gr, $n, Ht.node, !0)
                  : $n.kind === 3 &&
                      $n.parameterIndex >= 0 &&
                      $n.parameterIndex < Ht.node.arguments.length
                    ? Dt(Gr, Ht.node.arguments[$n.parameterIndex])
                    : Gr;
              return gi === Gr ? hr : XC(gi, KC(hr));
            }
            if (fs(Nn).flags & 131072) return xn;
          }
        }
        function Tn(Ht) {
          if (a === Rt || a === ld) {
            const Nn = Ht.node,
              $n =
                Nn.kind === 214 ? Nn.expression.expression : Nn.left.expression;
            if (Ad(n, ME($n))) {
              const hr = Te(Ht.antecedent),
                Gr = wA(hr);
              if (Hr(Gr) & 256) {
                let gi = Gr;
                if (Nn.kind === 214)
                  for (const Pa of Nn.arguments) gi = OFe(gi, Pa);
                else {
                  const Pa = J5(Nn.left.argumentExpression);
                  kd(Pa, 296) && (gi = OFe(gi, Nn.right));
                }
                return gi === Gr ? hr : XC(gi, KC(hr));
              }
              return hr;
            }
          }
        }
        function nr(Ht) {
          const Nn = Te(Ht.antecedent),
            $n = wA(Nn);
          if ($n.flags & 131072) return Nn;
          const hr = (Ht.flags & 32) !== 0,
            Gr = b5($n),
            gi = af(Gr, Ht.node, hr);
          return gi === Gr ? Nn : XC(gi, KC(Nn));
        }
        function yr(Ht) {
          const Nn = us(Ht.node.switchStatement.expression),
            $n = Te(Ht.antecedent);
          let hr = wA($n);
          if (Ad(n, Nn)) hr = il(hr, Ht.node);
          else if (Nn.kind === 222 && Ad(n, Nn.expression))
            hr = lc(hr, Ht.node);
          else if (Nn.kind === 112) hr = _c(hr, Ht.node);
          else {
            ie &&
              (PA(Nn, n)
                ? (hr = ys(hr, Ht.node, (gi) => !(gi.flags & 163840)))
                : Nn.kind === 222 &&
                  PA(Nn.expression, n) &&
                  (hr = ys(
                    hr,
                    Ht.node,
                    (gi) =>
                      !(
                        gi.flags & 131072 ||
                        (gi.flags & 128 && gi.value === "undefined")
                      ),
                  )));
            const Gr = oo(Nn, hr);
            Gr && (hr = Ko(hr, Gr, Ht.node));
          }
          return XC(hr, KC($n));
        }
        function Sn(Ht) {
          const Nn = [];
          let $n = !1,
            hr = !1,
            Gr;
          for (const gi of Ht.antecedent) {
            if (
              !Gr &&
              gi.flags & 128 &&
              gi.node.clauseStart === gi.node.clauseEnd
            ) {
              Gr = gi;
              continue;
            }
            const Pa = Te(gi),
              Oa = wA(Pa);
            if (Oa === a && a === c) return Oa;
            (kf(Nn, Oa), ML(Oa, c) || ($n = !0), KC(Pa) && (hr = !0));
          }
          if (Gr) {
            const gi = Te(Gr),
              Pa = wA(gi);
            if (
              !(Pa.flags & 131072) &&
              !jn(Nn, Pa) &&
              !N4e(Gr.node.switchStatement)
            ) {
              if (Pa === a && a === c) return Pa;
              (Nn.push(Pa), ML(Pa, c) || ($n = !0), KC(gi) && (hr = !0));
            }
          }
          return XC(Sr(Nn, $n ? 2 : 1), hr);
        }
        function vn(Ht) {
          const Nn = J_e(Ht),
            $n = EC[Nn] || (EC[Nn] = new Map()),
            hr = Ie();
          if (!hr) return a;
          const Gr = $n.get(hr);
          if (Gr) return Gr;
          for (let Qc = Lr; Qc < Yn; Qc++)
            if (X1[Qc] === Ht && Nx[Qc] === hr && lE[Qc].length)
              return XC(Sr(lE[Qc], 1), !0);
          const gi = [];
          let Pa = !1,
            Oa;
          for (const Qc of Ht.antecedent) {
            let hu;
            if (!Oa) hu = Oa = Te(Qc);
            else {
              ((X1[Yn] = Ht), (Nx[Yn] = hr), (lE[Yn] = gi), Yn++);
              const iS = Qi;
              ((Qi = void 0), (hu = Te(Qc)), (Qi = iS), Yn--);
              const oS = $n.get(hr);
              if (oS) return oS;
            }
            const pp = wA(hu);
            if ((kf(gi, pp), ML(pp, c) || (Pa = !0), pp === a)) break;
          }
          const Gs = Sr(gi, Pa ? 2 : 1);
          return KC(Oa) ? XC(Gs, !0) : ($n.set(hr, Gs), Gs);
        }
        function Sr(Ht, Nn) {
          if (xpt(Ht)) return Z_e(pi(Vt(Ht, Ipt)));
          const $n = Y_e(pi(Zi(Ht, b5), Nn));
          return $n !== a &&
            $n.flags & a.flags & 1048576 &&
            Qp($n.types, a.types)
            ? a
            : $n;
        }
        function fi(Ht) {
          if (Qo(n) || Rb(n) || mm(n)) {
            if (He(Ht)) {
              const Nn = fu(Ht),
                $n = Et(Nn).valueDeclaration;
              if (
                $n &&
                (Ha($n) || to($n)) &&
                n === $n.parent &&
                !$n.initializer &&
                !$n.dotDotDotToken
              )
                return $n;
            }
          } else if (Ks(Ht)) {
            if (Ad(n, Ht.expression)) return Ht;
          } else if (He(Ht)) {
            const Nn = fu(Ht);
            if (lR(Nn)) {
              const $n = Nn.valueDeclaration;
              if (
                yi($n) &&
                !$n.type &&
                $n.initializer &&
                Ks($n.initializer) &&
                Ad(n, $n.initializer.expression)
              )
                return $n.initializer;
              if (Ha($n) && !$n.initializer) {
                const hr = $n.parent.parent;
                if (
                  yi(hr) &&
                  !hr.type &&
                  hr.initializer &&
                  (He(hr.initializer) || Ks(hr.initializer)) &&
                  Ad(n, hr.initializer)
                )
                  return $n;
              }
            }
          }
        }
        function oo(Ht, Nn) {
          if (a.flags & 1048576 || Nn.flags & 1048576) {
            const $n = fi(Ht);
            if ($n) {
              const hr = MA($n);
              if (hr) {
                const Gr = a.flags & 1048576 && ML(Nn, a) ? a : Nn;
                if (NL(Gr, hr)) return $n;
              }
            }
          }
        }
        function ii(Ht, Nn, $n) {
          const hr = MA(Nn);
          if (hr === void 0) return Ht;
          const Gr = tu(Nn),
            gi = ie && (Gr || Wre(Nn)) && tc(Ht, 98304);
          let Pa = _n(gi ? om(Ht, 2097152) : Ht, hr);
          if (!Pa) return Ht;
          Pa = gi && Gr ? hT(Pa) : Pa;
          const Oa = $n(Pa);
          return Ec(Ht, (Gs) => {
            const Qc = ei(Gs, hr) || Nt;
            return !(Qc.flags & 131072) && !(Oa.flags & 131072) && s5(Oa, Qc);
          });
        }
        function zi(Ht, Nn, $n, hr, Gr) {
          if (($n === 37 || $n === 38) && Ht.flags & 1048576) {
            const gi = g5(Ht);
            if (gi && gi === MA(Nn)) {
              const Pa = y5(Ht, wd(hr));
              if (Pa)
                return $n === (Gr ? 37 : 38)
                  ? Pa
                  : Nh(_n(Pa, gi) || Nt)
                    ? qY(Ht, Pa)
                    : Ht;
            }
          }
          return ii(Ht, Nn, (gi) => Hi(gi, $n, hr, Gr));
        }
        function Ko(Ht, Nn, $n) {
          if (
            $n.clauseStart < $n.clauseEnd &&
            Ht.flags & 1048576 &&
            g5(Ht) === MA(Nn)
          ) {
            const hr = HY($n.switchStatement).slice(
                $n.clauseStart,
                $n.clauseEnd,
              ),
              Gr = pi(Vt(hr, (gi) => y5(Ht, gi) || Nt));
            if (Gr !== Nt) return Gr;
          }
          return ii(Ht, Nn, (hr) => il(hr, $n));
        }
        function ms(Ht, Nn, $n) {
          if (Ad(n, Nn)) return LA(Ht, $n ? 4194304 : 8388608);
          ie && $n && PA(Nn, n) && (Ht = LA(Ht, 2097152));
          const hr = oo(Nn, Ht);
          return hr ? ii(Ht, hr, (Gr) => om(Gr, $n ? 4194304 : 8388608)) : Ht;
        }
        function fo(Ht, Nn, $n) {
          const hr = Ea(Ht, Nn);
          return hr
            ? !!(hr.flags & 16777216 || Wl(hr) & 48) || $n
            : !!tR(Ht, Nn) || !$n;
        }
        function dl(Ht, Nn, $n) {
          const hr = Uf(Nn);
          if (am(Ht, (gi) => fo(gi, hr, !0)))
            return Ec(Ht, (gi) => fo(gi, hr, $n));
          if ($n) {
            const gi = Pct();
            if (gi) return Ma([Ht, VC(gi, [Nn, Nt])]);
          }
          return Ht;
        }
        function Kl(Ht, Nn, $n, hr, Gr) {
          return (
            (Gr = (Gr !== ($n.kind === 112)) != (hr !== 38 && hr !== 36)),
            af(Ht, Nn, Gr)
          );
        }
        function mu(Ht, Nn, $n) {
          switch (Nn.operatorToken.kind) {
            case 64:
            case 76:
            case 77:
            case 78:
              return ms(af(Ht, Nn.right, $n), Nn.left, $n);
            case 35:
            case 36:
            case 37:
            case 38:
              const hr = Nn.operatorToken.kind,
                Gr = ME(Nn.left),
                gi = ME(Nn.right);
              if (Gr.kind === 222 && ds(gi)) return vr(Ht, Gr, hr, gi, $n);
              if (gi.kind === 222 && ds(Gr)) return vr(Ht, gi, hr, Gr, $n);
              if (Ad(n, Gr)) return Hi(Ht, hr, gi, $n);
              if (Ad(n, gi)) return Hi(Ht, hr, Gr, $n);
              ie &&
                (PA(Gr, n)
                  ? (Ht = rr(Ht, hr, gi, $n))
                  : PA(gi, n) && (Ht = rr(Ht, hr, Gr, $n)));
              const Pa = oo(Gr, Ht);
              if (Pa) return zi(Ht, Pa, hr, gi, $n);
              const Oa = oo(gi, Ht);
              if (Oa) return zi(Ht, Oa, hr, Gr, $n);
              if (Ts(Gr)) return Nf(Ht, hr, gi, $n);
              if (Ts(gi)) return Nf(Ht, hr, Gr, $n);
              if (FN(gi) && !Ks(Gr)) return Kl(Ht, Gr, gi, hr, $n);
              if (FN(Gr) && !Ks(gi)) return Kl(Ht, gi, Gr, hr, $n);
              break;
            case 104:
              return Sl(Ht, Nn, $n);
            case 103:
              if (eo(Nn.left)) return qn(Ht, Nn, $n);
              const Gs = ME(Nn.right);
              if (HW(Ht) && Ks(n) && Ad(n.expression, Gs)) {
                const Qc = wd(Nn.left);
                if (jf(Qc) && MA(n) === Uf(Qc))
                  return om(Ht, $n ? 524288 : 65536);
              }
              if (Ad(n, Gs)) {
                const Qc = wd(Nn.left);
                if (jf(Qc)) return dl(Ht, Qc, $n);
              }
              break;
            case 28:
              return af(Ht, Nn.right, $n);
            case 56:
              return $n
                ? af(af(Ht, Nn.left, !0), Nn.right, !0)
                : pi([af(Ht, Nn.left, !1), af(Ht, Nn.right, !1)]);
            case 57:
              return $n
                ? pi([af(Ht, Nn.left, !0), af(Ht, Nn.right, !0)])
                : af(af(Ht, Nn.left, !1), Nn.right, !1);
          }
          return Ht;
        }
        function qn(Ht, Nn, $n) {
          const hr = ME(Nn.right);
          if (!Ad(n, hr)) return Ht;
          C.assertNode(Nn.left, eo);
          const Gr = p$(Nn.left);
          if (Gr === void 0) return Ht;
          const gi = Gr.parent,
            Pa = wc(
              C.checkDefined(
                Gr.valueDeclaration,
                "should always have a declaration",
              ),
            )
              ? _r(gi)
              : qs(gi);
          return lm(Ht, Pa, $n, !0);
        }
        function rr(Ht, Nn, $n, hr) {
          const Gr = Nn === 35 || Nn === 37,
            gi = Nn === 35 || Nn === 36 ? 98304 : 32768,
            Pa = wd($n);
          return (Gr !== hr && Ep(Pa, (Gs) => !!(Gs.flags & gi))) ||
            (Gr === hr && Ep(Pa, (Gs) => !(Gs.flags & (3 | gi))))
            ? LA(Ht, 2097152)
            : Ht;
        }
        function Hi(Ht, Nn, $n, hr) {
          if (Ht.flags & 1) return Ht;
          (Nn === 36 || Nn === 38) && (hr = !hr);
          const Gr = wd($n),
            gi = Nn === 35 || Nn === 36;
          if (Gr.flags & 98304) {
            if (!ie) return Ht;
            const Pa = gi
              ? hr
                ? 262144
                : 2097152
              : Gr.flags & 65536
                ? hr
                  ? 131072
                  : 1048576
                : hr
                  ? 65536
                  : 524288;
            return LA(Ht, Pa);
          }
          if (hr) {
            if (!gi && (Ht.flags & 2 || am(Ht, tg))) {
              if (Gr.flags & 469893116 || tg(Gr)) return Gr;
              if (Gr.flags & 524288) return Ln;
            }
            const Pa = Ec(Ht, (Oa) => s5(Oa, Gr) || (gi && Cut(Oa, Gr)));
            return wFe(Pa, Gr);
          }
          return Nh(Gr) ? Ec(Ht, (Pa) => !(eFe(Pa) && s5(Pa, Gr))) : Ht;
        }
        function vr(Ht, Nn, $n, hr, Gr) {
          ($n === 36 || $n === 38) && (Gr = !Gr);
          const gi = ME(Nn.expression);
          if (!Ad(n, gi)) {
            ie &&
              PA(gi, n) &&
              Gr === (hr.text !== "undefined") &&
              (Ht = LA(Ht, 2097152));
            const Pa = oo(gi, Ht);
            return Pa ? ii(Ht, Pa, (Oa) => wo(Oa, hr, Gr)) : Ht;
          }
          return wo(Ht, hr, Gr);
        }
        function wo(Ht, Nn, $n) {
          return $n ? md(Ht, Nn.text) : LA(Ht, cae.get(Nn.text) || 32768);
        }
        function ys(
          Ht,
          { switchStatement: Nn, clauseStart: $n, clauseEnd: hr },
          Gr,
        ) {
          return $n !== hr && Vn(HY(Nn).slice($n, hr), Gr)
            ? om(Ht, 2097152)
            : Ht;
        }
        function il(
          Ht,
          { switchStatement: Nn, clauseStart: $n, clauseEnd: hr },
        ) {
          const Gr = HY(Nn);
          if (!Gr.length) return Ht;
          const gi = Gr.slice($n, hr),
            Pa = $n === hr || jn(gi, yn);
          if (Ht.flags & 2 && !Pa) {
            let hu;
            for (let pp = 0; pp < gi.length; pp += 1) {
              const iS = gi[pp];
              if (iS.flags & 469893116) hu !== void 0 && hu.push(iS);
              else if (iS.flags & 524288)
                (hu === void 0 && (hu = gi.slice(0, pp)), hu.push(Ln));
              else return Ht;
            }
            return pi(hu === void 0 ? gi : hu);
          }
          const Oa = pi(gi),
            Gs =
              Oa.flags & 131072
                ? yn
                : wFe(
                    Ec(Ht, (hu) => s5(Oa, hu)),
                    Oa,
                  );
          if (!Pa) return Gs;
          const Qc = Ec(
            Ht,
            (hu) => !(eFe(hu) && jn(Gr, hu.flags & 32768 ? he : Cu(Tut(hu)))),
          );
          return Gs.flags & 131072 ? Qc : pi([Gs, Qc]);
        }
        function md(Ht, Nn) {
          switch (Nn) {
            case "string":
              return Xa(Ht, gt, 1);
            case "number":
              return Xa(Ht, Bt, 2);
            case "bigint":
              return Xa(Ht, gr, 4);
            case "boolean":
              return Xa(Ht, jt, 8);
            case "symbol":
              return Xa(Ht, Qt, 16);
            case "object":
              return Ht.flags & 1
                ? Ht
                : pi([Xa(Ht, Ln, 32), Xa(Ht, Xt, 131072)]);
            case "function":
              return Ht.flags & 1 ? Ht : Xa(Ht, er, 64);
            case "undefined":
              return Xa(Ht, he, 65536);
          }
          return Xa(Ht, Ln, 128);
        }
        function Xa(Ht, Nn, $n) {
          return Tl(Ht, (hr) =>
            T_(hr, Nn, cl)
              ? Mh(hr, $n)
                ? hr
                : yn
              : CE(Nn, hr)
                ? Nn
                : Mh(hr, $n)
                  ? Ma([hr, Nn])
                  : yn,
          );
        }
        function lc(
          Ht,
          { switchStatement: Nn, clauseStart: $n, clauseEnd: hr },
        ) {
          const Gr = LFe(Nn);
          if (!Gr) return Ht;
          const gi = ho(Nn.caseBlock.clauses, (Gs) => Gs.kind === 298);
          if ($n === hr || (gi >= $n && gi < hr)) {
            const Gs = C4e($n, hr, Gr);
            return Ec(Ht, (Qc) => JC(Qc, Gs) === Gs);
          }
          const Oa = Gr.slice($n, hr);
          return pi(Vt(Oa, (Gs) => (Gs ? md(Ht, Gs) : yn)));
        }
        function _c(
          Ht,
          { switchStatement: Nn, clauseStart: $n, clauseEnd: hr },
        ) {
          const Gr = ho(Nn.caseBlock.clauses, (Oa) => Oa.kind === 298),
            gi = $n === hr || (Gr >= $n && Gr < hr);
          for (let Oa = 0; Oa < $n; Oa++) {
            const Gs = Nn.caseBlock.clauses[Oa];
            Gs.kind === 297 && (Ht = af(Ht, Gs.expression, !1));
          }
          if (gi) {
            for (let Oa = hr; Oa < Nn.caseBlock.clauses.length; Oa++) {
              const Gs = Nn.caseBlock.clauses[Oa];
              Gs.kind === 297 && (Ht = af(Ht, Gs.expression, !1));
            }
            return Ht;
          }
          const Pa = Nn.caseBlock.clauses.slice($n, hr);
          return pi(
            Vt(Pa, (Oa) => (Oa.kind === 297 ? af(Ht, Oa.expression, !0) : yn)),
          );
        }
        function Ts(Ht) {
          return (
            ((qr(Ht) && Kr(Ht.name) === "constructor") ||
              (Ws(Ht) &&
                ds(Ht.argumentExpression) &&
                Ht.argumentExpression.text === "constructor")) &&
            Ad(n, Ht.expression)
          );
        }
        function Nf(Ht, Nn, $n, hr) {
          if (hr ? Nn !== 35 && Nn !== 37 : Nn !== 36 && Nn !== 38) return Ht;
          const Gr = wd($n);
          if (!Cye(Gr) && !Rh(Gr)) return Ht;
          const gi = Ea(Gr, "prototype");
          if (!gi) return Ht;
          const Pa = _r(gi),
            Oa = wr(Pa) ? void 0 : Pa;
          if (!Oa || Oa === Jt || Oa === er) return Ht;
          if (wr(Ht)) return Oa;
          return Ec(Ht, (Qc) => Gs(Qc, Oa));
          function Gs(Qc, hu) {
            return (Qc.flags & 524288 && Hr(Qc) & 1) ||
              (hu.flags & 524288 && Hr(hu) & 1)
              ? Qc.symbol === hu.symbol
              : CE(Qc, hu);
          }
        }
        function Sl(Ht, Nn, $n) {
          const hr = ME(Nn.left);
          if (!Ad(n, hr)) return $n && ie && PA(hr, n) ? LA(Ht, 2097152) : Ht;
          const Gr = Nn.right,
            gi = wd(Gr);
          if (!$0(gi, Jt)) return Ht;
          const Pa = S5(Nn),
            Oa = Pa && nm(Pa);
          if (Oa && Oa.kind === 1 && Oa.parameterIndex === 0)
            return lm(Ht, Oa.type, $n, !0);
          if (!$0(gi, er)) return Ht;
          const Gs = Tl(gi, nc);
          return (wr(Ht) && (Gs === Jt || Gs === er)) ||
            (!$n && !(Gs.flags & 524288 && !tg(Gs)))
            ? Ht
            : lm(Ht, Gs, $n, !0);
        }
        function nc(Ht) {
          const Nn = _n(Ht, "prototype");
          if (Nn && !wr(Nn)) return Nn;
          const $n = na(Ht, 1);
          return $n.length ? pi(Vt($n, (hr) => fs(LW(hr)))) : Ra;
        }
        function lm(Ht, Nn, $n, hr) {
          const Gr =
            Ht.flags & 1048576
              ? `N${pd(Ht)},${pd(Nn)},${($n ? 1 : 0) | (hr ? 2 : 0)}`
              : void 0;
          return Gu(Gr) ?? Dm(Gr, jL(Ht, Nn, $n, hr));
        }
        function jL(Ht, Nn, $n, hr) {
          if (!$n) {
            if (Ht === Nn) return yn;
            if (hr) return Ec(Ht, (Gs) => !$0(Gs, Nn));
            Ht = Ht.flags & 2 ? qa : Ht;
            const Oa = lm(Ht, Nn, !0, !1);
            return Y_e(Ec(Ht, (Gs) => !ML(Gs, Oa)));
          }
          if (Ht.flags & 3 || Ht === Nn) return Nn;
          const Gr = hr ? $0 : CE,
            gi = Ht.flags & 1048576 ? g5(Ht) : void 0,
            Pa = Tl(Nn, (Oa) => {
              const Gs = gi && _n(Oa, gi),
                Qc = Gs && y5(Ht, Gs),
                hu = Tl(
                  Qc || Ht,
                  hr
                    ? (pp) => ($0(pp, Oa) ? pp : $0(Oa, pp) ? Oa : yn)
                    : (pp) =>
                        xL(pp, Oa)
                          ? pp
                          : xL(Oa, pp)
                            ? Oa
                            : CE(pp, Oa)
                              ? pp
                              : CE(Oa, pp)
                                ? Oa
                                : yn,
                );
              return hu.flags & 131072
                ? Tl(Ht, (pp) =>
                    tc(pp, 465829888) && Gr(Oa, Ld(pp) || Nt)
                      ? Ma([pp, Oa])
                      : yn,
                  )
                : hu;
            });
          return Pa.flags & 131072
            ? CE(Nn, Ht)
              ? Nn
              : aa(Ht, Nn)
                ? Ht
                : aa(Nn, Ht)
                  ? Nn
                  : Ma([Ht, Nn])
            : Pa;
        }
        function T8(Ht, Nn, $n) {
          if (AFe(Nn, n)) {
            const hr = $n || !KE(Nn) ? S5(Nn) : void 0,
              Gr = hr && nm(hr);
            if (Gr && (Gr.kind === 0 || Gr.kind === 1))
              return UL(Ht, Gr, Nn, $n);
          }
          if (HW(Ht) && Ks(n) && qr(Nn.expression)) {
            const hr = Nn.expression;
            if (
              Ad(n.expression, ME(hr.expression)) &&
              He(hr.name) &&
              hr.name.escapedText === "hasOwnProperty" &&
              Nn.arguments.length === 1
            ) {
              const Gr = Nn.arguments[0];
              if (ds(Gr) && MA(n) === Cl(Gr.text))
                return om(Ht, $n ? 524288 : 65536);
            }
          }
          return Ht;
        }
        function UL(Ht, Nn, $n, hr) {
          if (Nn.type && !(wr(Ht) && (Nn.type === Jt || Nn.type === er))) {
            const Gr = Dpt(Nn, $n);
            if (Gr) {
              if (Ad(n, Gr)) return lm(Ht, Nn.type, hr, !1);
              ie &&
                PA(Gr, n) &&
                ((hr && !Mh(Nn.type, 65536)) || (!hr && Ep(Nn.type, P5))) &&
                (Ht = LA(Ht, 2097152));
              const gi = oo(Gr, Ht);
              if (gi) return ii(Ht, gi, (Pa) => lm(Pa, Nn.type, hr, !1));
            }
          }
          return Ht;
        }
        function af(Ht, Nn, $n) {
          if (
            hF(Nn) ||
            (Nr(Nn.parent) &&
              (Nn.parent.operatorToken.kind === 61 ||
                Nn.parent.operatorToken.kind === 78) &&
              Nn.parent.left === Nn)
          )
            return S8(Ht, Nn, $n);
          switch (Nn.kind) {
            case 80:
              if (!Ad(n, Nn) && A < 5) {
                const hr = fu(Nn);
                if (lR(hr)) {
                  const Gr = hr.valueDeclaration;
                  if (Gr && yi(Gr) && !Gr.type && Gr.initializer && ege(n)) {
                    A++;
                    const gi = af(Ht, Gr.initializer, $n);
                    return (A--, gi);
                  }
                }
              }
            case 110:
            case 108:
            case 212:
            case 213:
              return ms(Ht, Nn, $n);
            case 214:
              return T8(Ht, Nn, $n);
            case 218:
            case 236:
            case 239:
              return af(Ht, Nn.expression, $n);
            case 227:
              return mu(Ht, Nn, $n);
            case 225:
              if (Nn.operator === 54) return af(Ht, Nn.operand, !$n);
              break;
          }
          return Ht;
        }
        function S8(Ht, Nn, $n) {
          if (Ad(n, Nn)) return LA(Ht, $n ? 2097152 : 262144);
          const hr = oo(Nn, Ht);
          return hr ? ii(Ht, hr, (Gr) => om(Gr, $n ? 2097152 : 262144)) : Ht;
        }
      }
      function Npt(n, a) {
        if (
          ((n = Et(n)),
          (a.kind === 80 || a.kind === 81) &&
            (fM(a) && (a = a.parent), P_(a) && (!Tb(a) || RI(a))))
        ) {
          const c = wY(RI(a) && a.kind === 212 ? u$(a, void 0, !0) : wd(a));
          if (Et(Vr(a).resolvedSymbol) === n) return c;
        }
        return L_(a) && Vh(a.parent) && TE(a.parent)
          ? KX(a.parent.symbol)
          : hV(a) && RI(a.parent)
            ? Wv(n)
            : xh(n);
      }
      function LL(n) {
        return Dn(
          n.parent,
          (a) =>
            (Yo(a) && !WT(a)) ||
            a.kind === 269 ||
            a.kind === 308 ||
            a.kind === 173,
        );
      }
      function Mpt(n) {
        return (
          (n.lastAssignmentPos !== void 0 ||
            (YW(n) && n.lastAssignmentPos !== void 0)) &&
          n.lastAssignmentPos < 0
        );
      }
      function YW(n) {
        return !zFe(n, void 0);
      }
      function zFe(n, a) {
        const c = Dn(n.valueDeclaration, YY);
        if (!c) return !1;
        const p = Vr(c);
        return (
          p.flags & 131072 || ((p.flags |= 131072), Ppt(c) || GFe(c)),
          !n.lastAssignmentPos || (a && Math.abs(n.lastAssignmentPos) < a.pos)
        );
      }
      function tge(n) {
        return (C.assert(yi(n) || to(n)), BFe(n.name));
      }
      function BFe(n) {
        return n.kind === 80
          ? YW(Wr(n.parent))
          : yt(n.elements, (a) => a.kind !== 233 && BFe(a.name));
      }
      function Ppt(n) {
        return !!Dn(n.parent, (a) => YY(a) && !!(Vr(a).flags & 131072));
      }
      function YY(n) {
        return Ms(n) || Yi(n);
      }
      function GFe(n) {
        switch (n.kind) {
          case 80:
            const a = bb(n);
            if (a !== 0) {
              const m = fu(n),
                v =
                  a === 1 ||
                  (m.lastAssignmentPos !== void 0 && m.lastAssignmentPos < 0);
              if ($W(m)) {
                if (
                  m.lastAssignmentPos === void 0 ||
                  Math.abs(m.lastAssignmentPos) !== Number.MAX_VALUE
                ) {
                  const I = Dn(n, YY),
                    w = Dn(m.valueDeclaration, YY);
                  m.lastAssignmentPos =
                    I === w ? Lpt(n, m.valueDeclaration) : Number.MAX_VALUE;
                }
                v && m.lastAssignmentPos > 0 && (m.lastAssignmentPos *= -1);
              }
            }
            return;
          case 282:
            const c = n.parent.parent,
              p = n.propertyName || n.name;
            if (
              !n.isTypeOnly &&
              !c.isTypeOnly &&
              !c.moduleSpecifier &&
              p.kind !== 11
            ) {
              const m = Gl(p, 111551, !0, !0);
              if (m && $W(m)) {
                const v =
                  m.lastAssignmentPos !== void 0 && m.lastAssignmentPos < 0
                    ? -1
                    : 1;
                m.lastAssignmentPos = v * Number.MAX_VALUE;
              }
            }
            return;
          case 265:
          case 266:
          case 267:
            return;
        }
        Ri(n) || Jo(n, GFe);
      }
      function Lpt(n, a) {
        let c = n.pos;
        for (; n && n.pos > a.pos; ) {
          switch (n.kind) {
            case 244:
            case 245:
            case 246:
            case 247:
            case 248:
            case 249:
            case 250:
            case 251:
            case 255:
            case 256:
            case 259:
            case 264:
              c = n.end;
          }
          n = n.parent;
        }
        return c;
      }
      function lR(n) {
        return n.flags & 3 && (vge(n) & 6) !== 0;
      }
      function $W(n) {
        const a = n.valueDeclaration && Jh(n.valueDeclaration);
        return !!a && (to(a) || (yi(a) && (US(a.parent) || VFe(a))));
      }
      function VFe(n) {
        return (
          !!(n.parent.flags & 1) &&
          !(
            PT(n) & 32 ||
            (n.parent.parent.kind === 244 && ev(n.parent.parent.parent))
          )
        );
      }
      function kpt(n) {
        const a = Vr(n);
        if (a.parameterInitializerContainsUndefined === void 0) {
          if (!g_(n, 8)) return (yA(n.symbol), !0);
          const c = !!Mh(wL(n, 0), 16777216);
          if (!rt()) return (yA(n.symbol), !0);
          a.parameterInitializerContainsUndefined ??
            (a.parameterInitializerContainsUndefined = c);
        }
        return a.parameterInitializerContainsUndefined;
      }
      function wpt(n, a) {
        return ie &&
          a.kind === 170 &&
          a.initializer &&
          Mh(n, 16777216) &&
          !kpt(a)
          ? om(n, 524288)
          : n;
      }
      function Opt(n, a) {
        const c = a.parent;
        return (
          c.kind === 212 ||
          c.kind === 167 ||
          (c.kind === 214 && c.expression === a) ||
          (c.kind === 215 && c.expression === a) ||
          (c.kind === 213 &&
            c.expression === a &&
            !(am(n, UFe) && xA(wd(c.argumentExpression))))
        );
      }
      function jFe(n) {
        return n.flags & 2097152
          ? yt(n.types, jFe)
          : !!(n.flags & 465829888 && v_(n).flags & 1146880);
      }
      function UFe(n) {
        return n.flags & 2097152
          ? yt(n.types, UFe)
          : !!(n.flags & 465829888 && !tc(v_(n), 98304));
      }
      function Wpt(n, a) {
        const c =
          (He(n) || qr(n) || Ws(n)) &&
          !((ph(n.parent) || I1(n.parent)) && n.parent.tagName === n) &&
          (a && a & 32 ? Hu(n, 8) : Hu(n, void 0));
        return c && !X0(c);
      }
      function nge(n, a, c) {
        return (
          jC(n) && (n = n.baseType),
          !(c && c & 2) && am(n, jFe) && (Opt(n, a) || Wpt(a, c))
            ? Tl(n, v_)
            : n
        );
      }
      function HFe(n) {
        return !!Dn(n, (a) => {
          const c = a.parent;
          return c === void 0
            ? "quit"
            : ll(c)
              ? c.expression === a && Ds(a)
              : ou(c)
                ? c.name === a || c.propertyName === a
                : !1;
        });
      }
      function cR(n, a, c, p) {
        if (We && !(n.flags & 33554432 && !Su(n) && !Po(n)))
          switch (a) {
            case 1:
              return $Y(n);
            case 2:
              return qFe(n, c, p);
            case 3:
              return JFe(n);
            case 4:
              return rge(n);
            case 5:
              return KFe(n);
            case 6:
              return XFe(n);
            case 7:
              return YFe(n);
            case 8:
              return $Fe(n);
            case 0: {
              if (
                He(n) &&
                (P_(n) ||
                  Ud(n.parent) ||
                  (Fc(n.parent) && n.parent.moduleReference === n)) &&
                t6e(n)
              ) {
                if (
                  j2(n.parent) &&
                  (qr(n.parent) ? n.parent.expression : n.parent.left) !== n
                )
                  return;
                $Y(n);
                return;
              }
              if (j2(n)) {
                let m = n;
                for (; j2(m); ) {
                  if (Hh(m)) return;
                  m = m.parent;
                }
                return qFe(n);
              }
              return ll(n)
                ? JFe(n)
                : ru(n) || jm(n)
                  ? rge(n)
                  : Fc(n)
                    ? r1(n) || W$(n)
                      ? XFe(n)
                      : void 0
                    : ou(n)
                      ? YFe(n)
                      : ((Ms(n) || Gm(n)) && KFe(n),
                        !O.emitDecoratorMetadata ||
                        !qS(n) ||
                        !pf(n) ||
                        !n.modifiers ||
                        !dk(J, n, n.parent, n.parent.parent)
                          ? void 0
                          : $Fe(n));
            }
            default:
              C.assertNever(a, `Unhandled reference hint: ${a}`);
          }
      }
      function $Y(n) {
        const a = fu(n);
        a && a !== _e && a !== ne && !NS(n) && I5(a, n);
      }
      function qFe(n, a, c) {
        const p = qr(n) ? n.expression : n.left;
        if (Eb(p) || !He(p)) return;
        const m = fu(p);
        if (!m || m === ne) return;
        if (ym(O) || (Ib(O) && HFe(n))) {
          I5(m, n);
          return;
        }
        const v = c || Vl(p);
        if (wr(v) || v === wt) {
          I5(m, n);
          return;
        }
        let I = a;
        if (!I && !c) {
          const w = qr(n) ? n.name : n.right,
            U = eo(w) && L5(w.escapedText, w),
            H = bb(n),
            Q = Du(H !== 0 || Ege(n) ? $p(v) : v);
          I = eo(w) ? (U && f$(Q, U)) || void 0 : Ea(Q, w.escapedText);
        }
        (I && (y8(I) || (I.flags & 8 && n.parent.kind === 307))) || I5(m, n);
      }
      function JFe(n) {
        if (He(n.expression)) {
          const a = n.expression,
            c = Et(Gl(a, -1, !0, !0, n));
          c && I5(c, a);
        }
      }
      function rge(n) {
        if (!c$(n)) {
          const a =
              ns && O.jsx === 2
                ? f.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found
                : void 0,
            c = qm(n),
            p = ru(n) ? n.tagName : n,
            m = O.jsx !== 1 && O.jsx !== 3;
          let v;
          if (
            ((jm(n) && c === "null") ||
              (v = _t(p, c, m ? 111551 : 111167, a, !0)),
            v &&
              ((v.isReferenced = -1),
              We && v.flags & 2097152 && !Ah(v) && QY(v)),
            jm(n))
          ) {
            const I = Wn(n),
              w = Mye(I);
            if (w) {
              const U = Lu(w).escapedText;
              _t(p, U, m ? 111551 : 111167, a, !0);
            }
          }
        }
      }
      function KFe(n) {
        if (G < 2 && cc(n) & 2) {
          const a = kp(n);
          Fpt(a);
        }
      }
      function XFe(n) {
        di(n, 32) && QFe(n);
      }
      function YFe(n) {
        if (
          !n.parent.parent.moduleSpecifier &&
          !n.isTypeOnly &&
          !n.parent.parent.isTypeOnly
        ) {
          const a = n.propertyName || n.name;
          if (a.kind === 11) return;
          const c = _t(a, a.escapedText, 2998271, void 0, !0);
          if (
            !(
              c &&
              (c === ce ||
                c === Re ||
                (c.declarations && ev(Pt(c.declarations[0]))))
            )
          ) {
            const p = c && (c.flags & 2097152 ? ud(c) : c);
            (!p || dp(p) & 111551) && (QFe(n), $Y(a));
          }
          return;
        }
      }
      function $Fe(n) {
        if (O.emitDecoratorMetadata) {
          const a = hn(n.modifiers, Wc);
          if (!a) return;
          switch (($c(a, 16), n.kind)) {
            case 264:
              const c = yg(n);
              if (c) for (const I of c.parameters) YC(N$(I));
              break;
            case 178:
            case 179:
              const p = n.kind === 178 ? 179 : 178,
                m = al(Wr(n), p);
              YC(TE(n) || (m && TE(m)));
              break;
            case 175:
              for (const I of n.parameters) YC(N$(I));
              YC(kp(n));
              break;
            case 173:
              YC(xc(n));
              break;
            case 170:
              YC(N$(n));
              const v = n.parent;
              for (const I of v.parameters) YC(N$(I));
              YC(kp(v));
              break;
          }
        }
      }
      function I5(n, a) {
        if (We && iA(n, 111551) && !EI(a)) {
          const c = ud(n);
          dp(n, !0) & 1160127 &&
            (ym(O) || (Ib(O) && HFe(a)) || !y8(Et(c))) &&
            QY(n);
        }
      }
      function QY(n) {
        C.assert(We);
        const a = Jr(n);
        if (!a.referenced) {
          a.referenced = !0;
          const c = cp(n);
          if (!c) return C.fail();
          if (r1(c) && dp(mc(n)) & 111551) {
            const p = Lu(c.moduleReference);
            $Y(p);
          }
        }
      }
      function QFe(n) {
        const a = Wr(n),
          c = ud(a);
        c && (c === ne || (dp(a, !0) & 111551 && !y8(c))) && QY(a);
      }
      function ZFe(n, a) {
        if (!n) return;
        const c = Lu(n),
          p = (n.kind === 80 ? 788968 : 1920) | 2097152,
          m = _t(c, c.escapedText, p, void 0, !0);
        if (m && m.flags & 2097152) {
          if (We && An(m) && !y8(ud(m)) && !Ah(m)) QY(m);
          else if (
            a &&
            ym(O) &&
            bu(O) >= 5 &&
            !An(m) &&
            !yt(m.declarations, Qy)
          ) {
            const v = Qe(
                n,
                f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled,
              ),
              I = hn(m.declarations || ae, Dv);
            I && pa(v, Ar(I, f._0_was_imported_here, Kr(c)));
          }
        }
      }
      function Fpt(n) {
        ZFe(n && ck(n), !1);
      }
      function YC(n) {
        const a = cye(n);
        a && Mu(a) && ZFe(a, !0);
      }
      function zpt(n, a) {
        var c;
        const p = _r(n),
          m = n.valueDeclaration;
        if (m) {
          if (
            Ha(m) &&
            !m.initializer &&
            !m.dotDotDotToken &&
            m.parent.elements.length >= 2
          ) {
            const v = m.parent.parent,
              I = Jh(v);
            if ((I.kind === 261 && wE(I) & 6) || I.kind === 170) {
              const w = Vr(v);
              if (!(w.flags & 4194304)) {
                w.flags |= 4194304;
                const U = Si(v, 0),
                  H = U && Tl(U, v_);
                if (
                  ((w.flags &= -4194305),
                  H && H.flags & 1048576 && !(I.kind === 170 && tge(I)))
                ) {
                  const Q = m.parent,
                    Ie = Vy(Q, H, H, void 0, a.flowNode);
                  return Ie.flags & 131072 ? yn : sT(m, Ie, !0);
                }
              }
            }
          }
          if (to(m) && !m.type && !m.initializer && !m.dotDotDotToken) {
            const v = m.parent;
            if (v.parameters.length >= 2 && EY(v)) {
              const I = ZW(v);
              if (I && I.parameters.length === 1 && su(I)) {
                const w = vL(
                  io(
                    _r(I.parameters[0]),
                    (c = PE(v)) == null ? void 0 : c.nonFixingMapper,
                  ),
                );
                if (w.flags & 1048576 && Ep(w, Ka) && !yt(v.parameters, tge)) {
                  const U = Vy(v, w, w, void 0, a.flowNode),
                    H = v.parameters.indexOf(m) - (CS(v) ? 1 : 0);
                  return Xp(U, Ch(H));
                }
              }
            }
          }
        }
        return p;
      }
      function e6e(n, a) {
        if (NS(n)) return;
        if (a === _e) {
          if (xge(n, !0)) {
            Qe(
              n,
              f.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks,
            );
            return;
          }
          let v = df(n);
          if (v)
            for (
              G < 2 &&
                (v.kind === 220
                  ? Qe(
                      n,
                      f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression,
                    )
                  : di(v, 1024) &&
                    Qe(
                      n,
                      f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method,
                    )),
                Vr(v).flags |= 512;
              v && Xs(v);
            )
              ((v = df(v)), v && (Vr(v).flags |= 512));
          return;
        }
        const c = Et(a),
          p = Sye(c, n);
        xu(p) &&
          Zhe(n, p) &&
          p.declarations &&
          Cm(n, p.declarations, n.escapedText);
        const m = c.valueDeclaration;
        if (m && c.flags & 32 && ui(m) && m.name !== n) {
          let v = vu(n, !1, !1);
          for (; v.kind !== 308 && v.parent !== m; ) v = vu(v, !1, !1);
          v.kind !== 308 &&
            ((Vr(m).flags |= 262144),
            (Vr(v).flags |= 262144),
            (Vr(n).flags |= 536870912));
        }
        Upt(n, a);
      }
      function Bpt(n, a) {
        if (NS(n)) return x5(n);
        const c = fu(n);
        if (c === ne) return nt;
        if ((e6e(n, c), c === _e)) return xge(n) ? nt : _r(c);
        t6e(n) && cR(n, 1);
        const p = Et(c);
        let m = p.valueDeclaration;
        const v = m;
        if (
          m &&
          m.kind === 209 &&
          jn(Rm, m.parent) &&
          Dn(n, (vn) => vn === m.parent)
        )
          return Tr;
        let I = zpt(p, n);
        const w = bb(n);
        if (w) {
          if (!(p.flags & 3) && !(Ir(n) && p.flags & 512)) {
            const vn =
              p.flags & 384
                ? f.Cannot_assign_to_0_because_it_is_an_enum
                : p.flags & 32
                  ? f.Cannot_assign_to_0_because_it_is_a_class
                  : p.flags & 1536
                    ? f.Cannot_assign_to_0_because_it_is_a_namespace
                    : p.flags & 16
                      ? f.Cannot_assign_to_0_because_it_is_a_function
                      : p.flags & 2097152
                        ? f.Cannot_assign_to_0_because_it_is_an_import
                        : f.Cannot_assign_to_0_because_it_is_not_a_variable;
            return (Qe(n, vn, uo(c)), nt);
          }
          if (wh(p))
            return (
              p.flags & 3
                ? Qe(n, f.Cannot_assign_to_0_because_it_is_a_constant, uo(c))
                : Qe(
                    n,
                    f.Cannot_assign_to_0_because_it_is_a_read_only_property,
                    uo(c),
                  ),
              nt
            );
        }
        const U = p.flags & 2097152;
        if (p.flags & 3) {
          if (w === 1) return BG(n) ? zy(I) : I;
        } else if (U) m = cp(c);
        else return I;
        if (!m) return I;
        I = nge(I, n, a);
        const H = Jh(m).kind === 170,
          Q = LL(m);
        let Ie = LL(n);
        const Te = Ie !== Q,
          Ze =
            n.parent && n.parent.parent && xg(n.parent) && Q_e(n.parent.parent),
          Tt = c.flags & 134217728,
          Dt = I === Rt || I === ld,
          $t = Dt && n.parent.kind === 236;
        for (
          ;
          Ie !== Q &&
          (Ie.kind === 219 || Ie.kind === 220 || HF(Ie)) &&
          ((lR(p) && I !== ld) || ($W(p) && zFe(p, n)));
        )
          Ie = LL(Ie);
        const Tn =
            v &&
            yi(v) &&
            !v.initializer &&
            !v.exclamationToken &&
            VFe(v) &&
            !Mpt(c),
          nr =
            H ||
            U ||
            (Te && !Tn) ||
            Ze ||
            Tt ||
            Gpt(n, m) ||
            (I !== Rt &&
              I !== ld &&
              (!ie ||
                (I.flags & 16387) !== 0 ||
                EI(n) ||
                H_e(n) ||
                n.parent.kind === 282)) ||
            n.parent.kind === 236 ||
            (m.kind === 261 && m.exclamationToken) ||
            m.flags & 33554432,
          yr = $t ? he : nr ? (H ? wpt(I, m) : I) : Dt ? he : hT(I),
          Sn = $t ? By(Vy(n, I, yr, Ie)) : Vy(n, I, yr, Ie);
        if (!WFe(n) && (I === Rt || I === ld)) {
          if (Sn === Rt || Sn === ld)
            return (
              ve &&
                (Qe(
                  Oo(m),
                  f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,
                  uo(c),
                  ar(Sn),
                ),
                Qe(n, f.Variable_0_implicitly_has_an_1_type, uo(c), ar(Sn))),
              _8(Sn)
            );
        } else if (!nr && !qC(I) && qC(Sn))
          return (Qe(n, f.Variable_0_is_used_before_being_assigned, uo(c)), I);
        return w ? zy(Sn) : Sn;
      }
      function Gpt(n, a) {
        if (Ha(a)) {
          const c = Dn(n, Ha);
          return c && Jh(c) === Jh(a);
        }
      }
      function t6e(n) {
        var a;
        const c = n.parent;
        if (c) {
          if ((qr(c) && c.expression === n) || (ou(c) && c.isTypeOnly))
            return !1;
          const p = (a = c.parent) == null ? void 0 : a.parent;
          if (p && pc(p) && p.isTypeOnly) return !1;
        }
        return !0;
      }
      function Vpt(n, a) {
        return !!Dn(n, (c) =>
          c === a
            ? "quit"
            : Yo(c) ||
              (c.parent &&
                Po(c.parent) &&
                !wc(c.parent) &&
                c.parent.initializer === c),
        );
      }
      function jpt(n, a) {
        return Dn(n, (c) =>
          c === a
            ? "quit"
            : c === a.initializer ||
              c === a.condition ||
              c === a.incrementor ||
              c === a.statement,
        );
      }
      function ige(n) {
        return Dn(n, (a) => (!a || XG(a) ? "quit" : mb(a, !1)));
      }
      function Upt(n, a) {
        if (
          G >= 2 ||
          (a.flags & 34) === 0 ||
          !a.valueDeclaration ||
          Yi(a.valueDeclaration) ||
          a.valueDeclaration.parent.kind === 300
        )
          return;
        const c = sh(a.valueDeclaration),
          p = Vpt(n, c),
          m = ige(c);
        if (m) {
          if (p) {
            let v = !0;
            if (QT(c)) {
              const I = VT(a.valueDeclaration, 262);
              if (I && I.parent === c) {
                const w = jpt(n.parent, c);
                if (w) {
                  const U = Vr(w);
                  U.flags |= 8192;
                  const H =
                    U.capturedBlockScopeBindings ||
                    (U.capturedBlockScopeBindings = []);
                  (kf(H, a), w === c.initializer && (v = !1));
                }
              }
            }
            v && (Vr(m).flags |= 4096);
          }
          if (QT(c)) {
            const v = VT(a.valueDeclaration, 262);
            v &&
              v.parent === c &&
              qpt(n, c) &&
              (Vr(a.valueDeclaration).flags |= 65536);
          }
          Vr(a.valueDeclaration).flags |= 32768;
        }
        p && (Vr(a.valueDeclaration).flags |= 16384);
      }
      function Hpt(n, a) {
        const c = Vr(n);
        return !!c && jn(c.capturedBlockScopeBindings, Wr(a));
      }
      function qpt(n, a) {
        let c = n;
        for (; c.parent.kind === 218; ) c = c.parent;
        let p = !1;
        if (Tb(c)) p = !0;
        else if (c.parent.kind === 225 || c.parent.kind === 226) {
          const m = c.parent;
          p = m.operator === 46 || m.operator === 47;
        }
        return p ? !!Dn(c, (m) => (m === a ? "quit" : m === a.statement)) : !1;
      }
      function oge(n, a) {
        if (((Vr(n).flags |= 2), a.kind === 173 || a.kind === 177)) {
          const c = a.parent;
          Vr(c).flags |= 4;
        } else Vr(a).flags |= 4;
      }
      function n6e(n) {
        return n1(n) ? n : Yo(n) ? void 0 : Jo(n, n6e);
      }
      function age(n) {
        const a = Wr(n),
          c = qs(a);
        return Py(c) === Pe;
      }
      function r6e(n, a, c) {
        const p = a.parent;
        RS(p) &&
          !age(p) &&
          eD(n) &&
          n.flowNode &&
          !XY(n.flowNode, !1) &&
          Qe(n, c);
      }
      function Jpt(n, a) {
        Po(a) &&
          wc(a) &&
          J &&
          a.initializer &&
          N2(a.initializer, n.pos) &&
          pf(a.parent) &&
          Qe(
            n,
            f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class,
          );
      }
      function x5(n) {
        const a = EI(n);
        let c = vu(n, !0, !0),
          p = !1,
          m = !1;
        for (
          c.kind === 177 &&
          r6e(
            n,
            c,
            f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class,
          );
          ;
        ) {
          if (
            (c.kind === 220 && ((c = vu(c, !1, !m)), (p = !0)), c.kind === 168)
          ) {
            ((c = vu(c, !p, !1)), (m = !0));
            continue;
          }
          break;
        }
        if ((Jpt(n, c), m))
          Qe(n, f.this_cannot_be_referenced_in_a_computed_property_name);
        else
          switch (c.kind) {
            case 268:
              Qe(n, f.this_cannot_be_referenced_in_a_module_or_namespace_body);
              break;
            case 267:
              Qe(n, f.this_cannot_be_referenced_in_current_location);
              break;
          }
        !a && p && G < 2 && oge(n, c);
        const v = sge(n, !0, c);
        if (xe) {
          const I = _r(Re);
          if (v === I && p)
            Qe(
              n,
              f.The_containing_arrow_function_captures_the_global_value_of_this,
            );
          else if (!v) {
            const w = Qe(
              n,
              f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation,
            );
            if (!Yi(c)) {
              const U = sge(c);
              U &&
                U !== I &&
                pa(
                  w,
                  Ar(c, f.An_outer_value_of_this_is_shadowed_by_this_container),
                );
            }
          }
        }
        return v || Ue;
      }
      function sge(n, a = !0, c = vu(n, !1, !1)) {
        const p = Ir(n);
        if (Yo(c) && (!dge(n) || CS(c))) {
          let m = JX(c) || (p && Ypt(c));
          if (!m) {
            const v = Xpt(c);
            if (p && v) {
              const I = _o(v).symbol;
              I && I.members && I.flags & 16 && (m = qs(I).thisType);
            } else E_(c) && (m = qs(os(c.symbol)).thisType);
            m || (m = lge(c));
          }
          if (m) return Vy(n, m);
        }
        if (ui(c.parent)) {
          const m = Wr(c.parent),
            v = ua(c) ? _r(m) : qs(m).thisType;
          return Vy(n, v);
        }
        if (Yi(c))
          if (c.commonJsModuleIndicator) {
            const m = Wr(c);
            return m && _r(m);
          } else {
            if (c.externalModuleIndicator) return he;
            if (a) return _r(Re);
          }
      }
      function Kpt(n) {
        const a = vu(n, !1, !1);
        if (Yo(a)) {
          const c = Df(a);
          if (c.thisParameter) return JY(c.thisParameter);
        }
        if (ui(a.parent)) {
          const c = Wr(a.parent);
          return ua(a) ? _r(c) : qs(c).thisType;
        }
      }
      function Xpt(n) {
        if (n.kind === 219 && Nr(n.parent) && oc(n.parent) === 3)
          return n.parent.left.expression.expression;
        if (
          n.kind === 175 &&
          n.parent.kind === 211 &&
          Nr(n.parent.parent) &&
          oc(n.parent.parent) === 6
        )
          return n.parent.parent.left.expression;
        if (
          n.kind === 219 &&
          n.parent.kind === 304 &&
          n.parent.parent.kind === 211 &&
          Nr(n.parent.parent.parent) &&
          oc(n.parent.parent.parent) === 6
        )
          return n.parent.parent.parent.left.expression;
        if (
          n.kind === 219 &&
          Cc(n.parent) &&
          He(n.parent.name) &&
          (n.parent.name.escapedText === "value" ||
            n.parent.name.escapedText === "get" ||
            n.parent.name.escapedText === "set") &&
          Wa(n.parent.parent) &&
          Zo(n.parent.parent.parent) &&
          n.parent.parent.parent.arguments[2] === n.parent.parent &&
          oc(n.parent.parent.parent) === 9
        )
          return n.parent.parent.parent.arguments[0].expression;
        if (
          Nl(n) &&
          He(n.name) &&
          (n.name.escapedText === "value" ||
            n.name.escapedText === "get" ||
            n.name.escapedText === "set") &&
          Wa(n.parent) &&
          Zo(n.parent.parent) &&
          n.parent.parent.arguments[2] === n.parent &&
          oc(n.parent.parent) === 9
        )
          return n.parent.parent.arguments[0].expression;
      }
      function Ypt(n) {
        const a = uF(n);
        if (a && a.typeExpression) return Ji(a.typeExpression);
        const c = TL(n);
        if (c) return J0(c);
      }
      function $pt(n, a) {
        return !!Dn(n, (c) =>
          Ms(c) ? "quit" : c.kind === 170 && c.parent === a,
        );
      }
      function ZY(n) {
        const a = n.parent.kind === 214 && n.parent.expression === n,
          c = sk(n, !0);
        let p = c,
          m = !1,
          v = !1;
        if (!a) {
          for (; p && p.kind === 220; )
            (di(p, 1024) && (v = !0), (p = sk(p, !0)), (m = G < 2));
          p && di(p, 1024) && (v = !0);
        }
        let I = 0;
        if (!p || !Q(p)) {
          const Ie = Dn(n, (Te) => (Te === p ? "quit" : Te.kind === 168));
          return (
            Ie && Ie.kind === 168
              ? Qe(n, f.super_cannot_be_referenced_in_a_computed_property_name)
              : a
                ? Qe(
                    n,
                    f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors,
                  )
                : !p || !p.parent || !(ui(p.parent) || p.parent.kind === 211)
                  ? Qe(
                      n,
                      f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions,
                    )
                  : Qe(
                      n,
                      f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class,
                    ),
            nt
          );
        }
        if (
          (!a &&
            c.kind === 177 &&
            r6e(
              n,
              p,
              f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class,
            ),
          ua(p) || a
            ? ((I = 32),
              !a &&
                G >= 2 &&
                G <= 8 &&
                (Po(p) || Ql(p)) &&
                Vte(n.parent, (Ie) => {
                  (!Yi(Ie) || Pp(Ie)) && (Vr(Ie).flags |= 2097152);
                }))
            : (I = 16),
          (Vr(n).flags |= I),
          p.kind === 175 &&
            v &&
            (mp(n.parent) && Tb(n.parent)
              ? (Vr(p).flags |= 256)
              : (Vr(p).flags |= 128)),
          m && oge(n.parent, p),
          p.parent.kind === 211)
        )
          return G < 2
            ? (Qe(
                n,
                f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher,
              ),
              nt)
            : Ue;
        const w = p.parent;
        if (!RS(w))
          return (Qe(n, f.super_can_only_be_referenced_in_a_derived_class), nt);
        if (age(w)) return a ? nt : Pe;
        const U = qs(Wr(w)),
          H = U && Zm(U)[0];
        if (!H) return nt;
        if (p.kind === 177 && $pt(n, p))
          return (
            Qe(n, f.super_cannot_be_referenced_in_constructor_arguments),
            nt
          );
        return I === 32 ? Py(U) : Kp(H, U.thisType);
        function Q(Ie) {
          return a
            ? Ie.kind === 177
            : ui(Ie.parent) || Ie.parent.kind === 211
              ? ua(Ie)
                ? Ie.kind === 175 ||
                  Ie.kind === 174 ||
                  Ie.kind === 178 ||
                  Ie.kind === 179 ||
                  Ie.kind === 173 ||
                  Ie.kind === 176
                : Ie.kind === 175 ||
                  Ie.kind === 174 ||
                  Ie.kind === 178 ||
                  Ie.kind === 179 ||
                  Ie.kind === 173 ||
                  Ie.kind === 172 ||
                  Ie.kind === 177
              : !1;
        }
      }
      function i6e(n) {
        return (n.kind === 175 || n.kind === 178 || n.kind === 179) &&
          n.parent.kind === 211
          ? n.parent
          : n.kind === 219 && n.parent.kind === 304
            ? n.parent.parent
            : void 0;
      }
      function o6e(n) {
        return Hr(n) & 4 && n.target === rf ? rl(n)[0] : void 0;
      }
      function Qpt(n) {
        return Tl(n, (a) => (a.flags & 2097152 ? Ye(a.types, o6e) : o6e(a)));
      }
      function a6e(n, a) {
        let c = n,
          p = a;
        for (; p; ) {
          const m = Qpt(p);
          if (m) return m;
          if (c.parent.kind !== 304) break;
          ((c = c.parent.parent), (p = nS(c, void 0)));
        }
      }
      function lge(n) {
        if (n.kind === 220) return;
        if (EY(n)) {
          const c = ZW(n);
          if (c) {
            const p = c.thisParameter;
            if (p) return _r(p);
          }
        }
        const a = Ir(n);
        if (xe || a) {
          const c = i6e(n);
          if (c) {
            const m = nS(c, void 0),
              v = a6e(c, m);
            return v ? io(v, O_e(PE(c))) : $p(m ? By(m) : Vl(c));
          }
          const p = zm(n.parent);
          if (id(p)) {
            const m = p.left;
            if (Ks(m)) {
              const { expression: v } = m;
              if (a && He(v)) {
                const I = Wn(p);
                if (I.commonJsModuleIndicator && fu(v) === I.symbol) return;
              }
              return $p(Vl(v));
            }
          }
        }
      }
      function s6e(n) {
        const a = n.parent;
        if (!EY(a)) return;
        const c = WT(a);
        if (c && c.arguments) {
          const m = g$(c),
            v = a.parameters.indexOf(n);
          if (n.dotDotDotToken) return kge(m, v, m.length, Ue, void 0, 0);
          const I = Vr(c),
            w = I.resolvedSignature;
          I.resolvedSignature = ur;
          const U = v < m.length ? Z0(_o(m[v])) : n.initializer ? void 0 : B;
          return ((I.resolvedSignature = w), U);
        }
        const p = ZW(a);
        if (p) {
          const m = a.parameters.indexOf(n) - (CS(a) ? 1 : 0);
          return n.dotDotDotToken && Zs(a.parameters) === n
            ? B5(p, m)
            : kE(p, m);
        }
      }
      function cge(n, a) {
        const c = xc(n) || (Ir(n) ? t4(n) : void 0);
        if (c) return Ji(c);
        switch (n.kind) {
          case 170:
            return s6e(n);
          case 209:
            return Zpt(n, a);
          case 173:
            if (ua(n)) return eft(n, a);
        }
      }
      function Zpt(n, a) {
        const c = n.parent.parent,
          p = n.propertyName || n.name,
          m =
            cge(c, a) ||
            (c.kind !== 209 &&
              c.initializer &&
              wL(c, n.dotDotDotToken ? 32 : 0));
        if (!m || Qo(p) || ek(p)) return;
        if (c.name.kind === 208) {
          const I = UR(n.parent.elements, n);
          return I < 0 ? void 0 : hge(m, I);
        }
        const v = ky(p);
        if (jf(v)) {
          const I = Uf(v);
          return _n(m, I);
        }
      }
      function eft(n, a) {
        const c = St(n.parent) && Hu(n.parent, a);
        if (c) return tS(c, Wr(n).escapedName);
      }
      function tft(n, a) {
        const c = n.parent;
        if (Zy(c) && n === c.initializer) {
          const p = cge(c, a);
          if (p) return p;
          if (!(a & 8) && Qo(c.name) && c.name.elements.length > 0)
            return fL(c.name, !0, !1);
        }
      }
      function nft(n, a) {
        const c = df(n);
        if (c) {
          let p = e$(c, a);
          if (p) {
            const m = cc(c);
            if (m & 1) {
              const v = (m & 2) !== 0;
              p.flags & 1048576 && (p = Ec(p, (w) => !!qv(1, w, v)));
              const I = qv(1, p, (m & 2) !== 0);
              if (!I) return;
              p = I;
            }
            if (m & 2) {
              const v = Tl(p, jy);
              return v && pi([v, R4e(v)]);
            }
            return p;
          }
        }
      }
      function rft(n, a) {
        const c = Hu(n, a);
        if (c) {
          const p = jy(c);
          return p && pi([p, R4e(p)]);
        }
      }
      function ift(n, a) {
        const c = df(n);
        if (c) {
          const p = cc(c);
          let m = e$(c, a);
          if (m) {
            const v = (p & 2) !== 0;
            if (
              (!n.asteriskToken &&
                m.flags & 1048576 &&
                (m = Ec(m, (I) => !!qv(1, I, v))),
              n.asteriskToken)
            ) {
              const I = bye(m, v),
                w = I?.yieldType ?? wt,
                U = Hu(n, a) ?? wt,
                H = I?.nextType ?? Nt,
                Q = S$(w, U, H, !1);
              if (v) {
                const Ie = S$(w, U, H, !0);
                return pi([Q, Ie]);
              }
              return Q;
            }
            return qv(0, m, v);
          }
        }
      }
      function dge(n) {
        let a = !1;
        for (; n.parent && !Yo(n.parent); ) {
          if (to(n.parent) && (a || n.parent.initializer === n)) return !0;
          (Ha(n.parent) && n.parent.initializer === n && (a = !0),
            (n = n.parent));
        }
        return !1;
      }
      function l6e(n, a) {
        const c = !!(cc(a) & 2),
          p = e$(a, void 0);
        if (p) return qv(n, p, c) || void 0;
      }
      function e$(n, a) {
        const c = BC(n);
        if (c) return c;
        const p = o$(n);
        if (p && !rY(p)) {
          const v = fs(p),
            I = cc(n);
          return I & 1
            ? Ec(v, (w) => !!(w.flags & 58998787) || iye(w, I, void 0))
            : I & 2
              ? Ec(v, (w) => !!(w.flags & 58998787) || !!FL(w))
              : v;
        }
        const m = WT(n);
        if (m) return Hu(m, a);
      }
      function c6e(n, a) {
        const p = g$(n).indexOf(a);
        return p === -1 ? void 0 : uge(n, p);
      }
      function uge(n, a) {
        if (Qu(n)) return a === 0 ? gt : a === 1 ? zWe(!1) : Ue;
        const c = Vr(n).resolvedSignature === Dr ? Dr : ZC(n);
        if (ru(n) && a === 0) return i$(c, n);
        const p = c.parameters.length - 1;
        return su(c) && a >= p
          ? Xp(_r(c.parameters[p]), Ch(a - p), 256)
          : Lh(c, a);
      }
      function oft(n) {
        const a = Kge(n);
        return a ? TA(a) : void 0;
      }
      function aft(n, a) {
        if (n.parent.kind === 216) return c6e(n.parent, a);
      }
      function sft(n, a) {
        const c = n.parent,
          { left: p, operatorToken: m, right: v } = c;
        switch (m.kind) {
          case 64:
          case 77:
          case 76:
          case 78:
            return n === v ? cft(c) : void 0;
          case 57:
          case 61:
            const I = Hu(c, a);
            return n === v && ((I && I.pattern) || (!I && !dne(c))) ? wd(p) : I;
          case 56:
          case 28:
            return n === v ? Hu(c, a) : void 0;
          default:
            return;
        }
      }
      function lft(n) {
        if (ah(n) && n.symbol) return n.symbol;
        if (He(n)) return fu(n);
        if (qr(n)) {
          const c = wd(n.expression);
          return eo(n.name) ? a(c, n.name) : Ea(c, n.name.escapedText);
        }
        if (Ws(n)) {
          const c = Vl(n.argumentExpression);
          if (!jf(c)) return;
          const p = wd(n.expression);
          return Ea(p, Uf(c));
        }
        return;
        function a(c, p) {
          const m = L5(p.escapedText, p);
          return m && f$(c, m);
        }
      }
      function cft(n) {
        var a, c;
        const p = oc(n);
        switch (p) {
          case 0:
          case 4:
            const m = lft(n.left),
              v = m && m.valueDeclaration;
            if (v && (Po(v) || Su(v))) {
              const U = xc(v);
              return (
                (U && io(Ji(U), Jr(m).mapper)) ||
                (Po(v) ? v.initializer && wd(n.left) : void 0)
              );
            }
            return p === 0 ? wd(n.left) : d6e(n);
          case 5:
            if (t$(n, p)) return d6e(n);
            if (!ah(n.left) || !n.left.symbol) return wd(n.left);
            {
              const U = n.left.symbol.valueDeclaration;
              if (!U) return;
              const H = ma(n.left, Ks),
                Q = xc(U);
              if (Q) return Ji(Q);
              if (He(H.expression)) {
                const Ie = H.expression,
                  Te = _t(Ie, Ie.escapedText, 111551, void 0, !0);
                if (Te) {
                  const Ze = Te.valueDeclaration && xc(Te.valueDeclaration);
                  if (Ze) {
                    const Tt = iy(H);
                    if (Tt !== void 0) return tS(Ji(Ze), Tt);
                  }
                  return;
                }
              }
              return Ir(U) || U === n.left ? void 0 : wd(n.left);
            }
          case 1:
          case 6:
          case 3:
          case 2:
            let I;
            (p !== 2 &&
              (I = ah(n.left)
                ? (a = n.left.symbol) == null
                  ? void 0
                  : a.valueDeclaration
                : void 0),
              I || (I = (c = n.symbol) == null ? void 0 : c.valueDeclaration));
            const w = I && xc(I);
            return w ? Ji(w) : void 0;
          case 7:
          case 8:
          case 9:
            return C.fail("Does not apply");
          default:
            return C.assertNever(p);
        }
      }
      function t$(n, a = oc(n)) {
        if (a === 4) return !0;
        if (!Ir(n) || a !== 5 || !He(n.left.expression)) return !1;
        const c = n.left.expression.escapedText,
          p = _t(n.left, c, 111551, void 0, !0, !0);
        return YF(p?.valueDeclaration);
      }
      function d6e(n) {
        if (!n.symbol) return wd(n.left);
        if (n.symbol.valueDeclaration) {
          const m = xc(n.symbol.valueDeclaration);
          if (m) {
            const v = Ji(m);
            if (v) return v;
          }
        }
        const a = ma(n.left, Ks);
        if (!mm(vu(a.expression, !1, !1))) return;
        const c = x5(a.expression),
          p = iy(a);
        return (p !== void 0 && tS(c, p)) || void 0;
      }
      function dft(n) {
        return !!(Wl(n) & 262144 && !n.links.type && ee(n, 0) >= 0);
      }
      function pge(n, a) {
        if (n.flags & 16777216) {
          const c = n;
          return (
            !!(Pm(pT(c)).flags & 131072) &&
            Oy(fT(c)) === Oy(c.checkType) &&
            aa(a, c.extendsType)
          );
        }
        return n.flags & 2097152 ? yt(n.types, (c) => pge(c, a)) : !1;
      }
      function tS(n, a, c) {
        return Tl(
          n,
          (p) => {
            if (p.flags & 2097152) {
              let m,
                v,
                I = !1;
              for (const w of p.types) {
                if (!(w.flags & 524288)) continue;
                if (up(w) && DW(w) !== 2) {
                  const H = u6e(w, a, c);
                  m = fge(m, H);
                  continue;
                }
                const U = p6e(w, a);
                if (!U) {
                  I || (v = Bn(v, w));
                  continue;
                }
                ((I = !0), (v = void 0), (m = fge(m, U)));
              }
              if (v)
                for (const w of v) {
                  const U = f6e(w, a, c);
                  m = fge(m, U);
                }
              return m ? (m.length === 1 ? m[0] : Ma(m)) : void 0;
            }
            if (p.flags & 524288)
              return up(p) && DW(p) !== 2
                ? u6e(p, a, c)
                : (p6e(p, a) ?? f6e(p, a, c));
          },
          !0,
        );
      }
      function fge(n, a) {
        return a ? Bn(n, a.flags & 1 ? Nt : a) : n;
      }
      function u6e(n, a, c) {
        const p = c || Sp(Gi(a)),
          m = Rf(n);
        if ((n.nameType && pge(n.nameType, p)) || pge(m, p)) return;
        const v = Ld(m) || m;
        if (aa(p, v)) return gY(n, p);
      }
      function p6e(n, a) {
        const c = Ea(n, a);
        if (!(!c || dft(c))) return Gy(_r(c), !!(c.flags & 16777216));
      }
      function f6e(n, a, c) {
        var p;
        if (Ka(n) && Eg(a) && +a >= 0) {
          const m = CL(n, n.target.fixedLength, 0, !1, !0);
          if (m) return m;
        }
        return (p = xhe(Rhe(n), c || Sp(Gi(a)))) == null ? void 0 : p.type;
      }
      function m6e(n, a) {
        if ((C.assert(mm(n)), !(n.flags & 67108864))) return mge(n, a);
      }
      function mge(n, a) {
        const c = n.parent,
          p = Cc(n) && cge(n, a);
        if (p) return p;
        const m = nS(c, a);
        if (m) {
          if (FC(n)) {
            const v = Wr(n);
            return tS(m, v.escapedName, Jr(v).nameType);
          }
          if (oy(n)) {
            const v = Oo(n);
            if (v && va(v)) {
              const I = _o(v.expression),
                w = jf(I) && tS(m, Uf(I));
              if (w) return w;
            }
          }
          if (n.name) {
            const v = ky(n.name);
            return Tl(
              m,
              (I) => {
                var w;
                return (w = xhe(Rhe(I), v)) == null ? void 0 : w.type;
              },
              !0,
            );
          }
        }
      }
      function uft(n) {
        let a, c;
        for (let p = 0; p < n.length; p++) qf(n[p]) && (a ?? (a = p), (c = p));
        return { first: a, last: c };
      }
      function hge(n, a, c, p, m) {
        return (
          n &&
          Tl(
            n,
            (v) => {
              if (Ka(v)) {
                if ((p === void 0 || a < p) && a < v.target.fixedLength)
                  return Gy(rl(v)[a], !!v.target.elementFlags[a]);
                const I = c !== void 0 && (m === void 0 || a > m) ? c - a : 0,
                  w =
                    I > 0 && v.target.combinedFlags & 12 ? kW(v.target, 3) : 0;
                return I > 0 && I <= w
                  ? rl(v)[Gv(v) - I]
                  : CL(
                      v,
                      p === void 0
                        ? v.target.fixedLength
                        : Math.min(v.target.fixedLength, p),
                      c === void 0 || m === void 0 ? w : Math.min(w, c - m),
                      !1,
                      !0,
                    );
              }
              return (
                ((!p || a < p) && tS(v, "" + a)) || hye(1, v, he, void 0, !1)
              );
            },
            !0,
          )
        );
      }
      function pft(n, a) {
        const c = n.parent;
        return n === c.whenTrue || n === c.whenFalse ? Hu(c, a) : void 0;
      }
      function fft(n, a, c) {
        const p = nS(n.openingElement.attributes, c),
          m = N5(OA(n));
        if (!(p && !wr(p) && m && m !== "")) return;
        const v = iD(n.children),
          I = v.indexOf(a),
          w = tS(p, m);
        return (
          w &&
          (v.length === 1 ? w : Tl(w, (U) => (jv(U) ? Xp(U, Ch(I)) : U), !0))
        );
      }
      function mft(n, a) {
        const c = n.parent;
        return EF(c) ? Hu(n, a) : r_(c) ? fft(c, n, a) : void 0;
      }
      function h6e(n, a) {
        if (i_(n)) {
          const c = nS(n.parent, a);
          return !c || wr(c) ? void 0 : tS(c, PM(n.name));
        } else return Hu(n.parent, a);
      }
      function R5(n) {
        switch (n.kind) {
          case 11:
          case 9:
          case 10:
          case 15:
          case 229:
          case 112:
          case 97:
          case 106:
          case 80:
          case 157:
            return !0;
          case 212:
          case 218:
            return R5(n.expression);
          case 295:
            return !n.expression || R5(n.expression);
        }
        return !1;
      }
      function hft(n, a) {
        const c = `D${ls(n)},${pd(a)}`;
        return (
          Gu(c) ??
          Dm(
            c,
            opt(a, n) ??
              b_e(
                a,
                so(
                  Vt(
                    Un(n.properties, (p) =>
                      p.symbol
                        ? p.kind === 304
                          ? R5(p.initializer) && NL(a, p.symbol.escapedName)
                          : p.kind === 305
                            ? NL(a, p.symbol.escapedName)
                            : !1
                        : !1,
                    ),
                    (p) => [
                      () => J5(p.kind === 304 ? p.initializer : p.name),
                      p.symbol.escapedName,
                    ],
                  ),
                  Vt(
                    Un(bs(a), (p) => {
                      var m;
                      return (
                        !!(p.flags & 16777216) &&
                        !!((m = n?.symbol) != null && m.members) &&
                        !n.symbol.members.has(p.escapedName) &&
                        NL(a, p.escapedName)
                      );
                    }),
                    (p) => [() => he, p.escapedName],
                  ),
                ),
                aa,
              ),
          )
        );
      }
      function _ft(n, a) {
        const c = `D${ls(n)},${pd(a)}`,
          p = Gu(c);
        if (p) return p;
        const m = N5(OA(n));
        return Dm(
          c,
          b_e(
            a,
            so(
              Vt(
                Un(
                  n.properties,
                  (v) =>
                    !!v.symbol &&
                    v.kind === 292 &&
                    NL(a, v.symbol.escapedName) &&
                    (!v.initializer || R5(v.initializer)),
                ),
                (v) => [
                  v.initializer ? () => J5(v.initializer) : () => ft,
                  v.symbol.escapedName,
                ],
              ),
              Vt(
                Un(bs(a), (v) => {
                  var I;
                  if (
                    !(v.flags & 16777216) ||
                    !((I = n?.symbol) != null && I.members)
                  )
                    return !1;
                  const w = n.parent.parent;
                  return v.escapedName === m && r_(w) && iD(w.children).length
                    ? !1
                    : !n.symbol.members.has(v.escapedName) &&
                        NL(a, v.escapedName);
                }),
                (v) => [() => he, v.escapedName],
              ),
            ),
            aa,
          ),
        );
      }
      function nS(n, a) {
        const c = mm(n) ? m6e(n, a) : Hu(n, a),
          p = n$(c, n, a);
        if (p && !(a && a & 2 && p.flags & 8650752)) {
          const m = Tl(p, (v) => (Hr(v) & 32 ? v : Du(v)), !0);
          return m.flags & 1048576 && Wa(n)
            ? hft(n, m)
            : m.flags & 1048576 && jS(n)
              ? _ft(n, m)
              : m;
        }
      }
      function n$(n, a, c) {
        if (n && tc(n, 465829888)) {
          const p = PE(a);
          if (p && c & 1 && yt(p.inferences, p_t))
            return r$(n, p.nonFixingMapper);
          if (p?.returnMapper) {
            const m = r$(n, p.returnMapper);
            return m.flags & 1048576 && Ug(m.types, Jn) && Ug(m.types, Mt)
              ? Ec(m, (v) => v !== Jn && v !== Mt)
              : m;
          }
        }
        return n;
      }
      function r$(n, a) {
        return n.flags & 465829888
          ? io(n, a)
          : n.flags & 1048576
            ? pi(
                Vt(n.types, (c) => r$(c, a)),
                0,
              )
            : n.flags & 2097152
              ? Ma(Vt(n.types, (c) => r$(c, a)))
              : n;
      }
      function Hu(n, a) {
        var c;
        if (n.flags & 67108864) return;
        const p = g6e(n, !a);
        if (p >= 0) return sp[p];
        const { parent: m } = n;
        switch (m.kind) {
          case 261:
          case 170:
          case 173:
          case 172:
          case 209:
            return tft(n, a);
          case 220:
          case 254:
            return nft(n, a);
          case 230:
            return ift(m, a);
          case 224:
            return rft(m, a);
          case 214:
          case 215:
            return c6e(m, n);
          case 171:
            return oft(m);
          case 217:
          case 235:
            return Om(m.type) ? Hu(m, a) : Ji(m.type);
          case 227:
            return sft(n, a);
          case 304:
          case 305:
            return mge(m, a);
          case 306:
            return Hu(m.parent, a);
          case 210: {
            const v = m,
              I = nS(v, a),
              w = UR(v.elements, n),
              U =
                (c = Vr(v)).spreadIndices ??
                (c.spreadIndices = uft(v.elements));
            return hge(I, w, v.elements.length, U.first, U.last);
          }
          case 228:
            return pft(n, a);
          case 240:
            return (C.assert(m.parent.kind === 229), aft(m.parent, n));
          case 218: {
            if (Ir(m)) {
              if (KV(m)) return Ji(XV(m));
              const v = LT(m);
              if (v && !Om(v.typeExpression.type))
                return Ji(v.typeExpression.type);
            }
            return Hu(m, a);
          }
          case 236:
            return Hu(m, a);
          case 239:
            return Ji(m.type);
          case 278:
            return cT(m);
          case 295:
            return mft(m, a);
          case 292:
          case 294:
            return h6e(m, a);
          case 287:
          case 286:
            return Aft(m, a);
          case 302:
            return Eft(m);
        }
      }
      function _6e(n) {
        D5(n, Hu(n, void 0), !0);
      }
      function D5(n, a, c) {
        ((hl[Td] = n), (sp[Td] = a), (xm[Td] = c), Td++);
      }
      function QW() {
        (Td--, (hl[Td] = void 0), (sp[Td] = void 0), (xm[Td] = void 0));
      }
      function g6e(n, a) {
        for (let c = Td - 1; c >= 0; c--)
          if (n === hl[c] && (a || !xm[c])) return c;
        return -1;
      }
      function gft(n, a) {
        ((Hp[f_] = n), (b0[f_] = a), f_++);
      }
      function yft() {
        (f_--, (Hp[f_] = void 0), (b0[f_] = void 0));
      }
      function PE(n) {
        for (let a = f_ - 1; a >= 0; a--) if (xS(n, Hp[a])) return b0[a];
      }
      function vft(n) {
        ((j_[U_] = n), T0[U_] ?? (T0[U_] = new Map()), U_++);
      }
      function bft() {
        (U_--, (j_[U_] = void 0), T0[U_].clear());
      }
      function Tft(n) {
        for (let a = U_ - 1; a >= 0; a--) if (n === j_[a]) return a;
        return -1;
      }
      function Sft() {
        for (let n = U_ - 1; n >= 0; n--) T0[n].clear();
      }
      function Eft(n) {
        return tS(zhe(!1), n4(n));
      }
      function Aft(n, a) {
        if (ph(n) && a !== 4) {
          const c = g6e(n.parent, !a);
          if (c >= 0) return sp[c];
        }
        return uge(n, 0);
      }
      function i$(n, a) {
        return jm(a) || t4e(a) !== 0 ? Ift(n, a) : Dft(n, a);
      }
      function Ift(n, a) {
        let c = qge(n, Nt);
        c = y6e(a, OA(a), c);
        const p = LE(_f.IntrinsicAttributes, a);
        return (pr(p) || (c = jz(p, c)), c);
      }
      function xft(n, a) {
        if (n.compositeSignatures) {
          const p = [];
          for (const m of n.compositeSignatures) {
            const v = fs(m);
            if (wr(v)) return v;
            const I = _n(v, a);
            if (!I) return;
            p.push(I);
          }
          return Ma(p);
        }
        const c = fs(n);
        return wr(c) ? c : _n(c, a);
      }
      function Rft(n) {
        if (jm(n)) return u4e(n);
        if (uR(n.tagName)) {
          const c = D6e(n),
            p = y$(n, c);
          return TA(p);
        }
        const a = Vl(n.tagName);
        if (a.flags & 128) {
          const c = R6e(a, n);
          if (!c) return nt;
          const p = y$(n, c);
          return TA(p);
        }
        return a;
      }
      function y6e(n, a, c) {
        const p = $ft(a);
        if (p) {
          const m = Rft(n),
            v = M6e(p, Ir(n), m, c);
          if (v) return v;
        }
        return c;
      }
      function Dft(n, a) {
        const c = OA(a),
          p = Zft(c);
        let m = p === void 0 ? qge(n, Nt) : p === "" ? fs(n) : xft(n, p);
        if (!m)
          return (
            p &&
              et(a.attributes.properties) &&
              Qe(
                a,
                f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,
                Gi(p),
              ),
            Nt
          );
        if (((m = y6e(a, c, m)), wr(m))) return m;
        {
          let v = m;
          const I = LE(_f.IntrinsicClassAttributes, a);
          if (!pr(I)) {
            const U = Na(I.symbol),
              H = fs(n);
            let Q;
            if (U) {
              const Ie = Bv([H], U, Z_(U), Ir(a));
              Q = io(I, Yp(U, Ie));
            } else Q = I;
            v = jz(Q, v);
          }
          const w = LE(_f.IntrinsicAttributes, a);
          return (pr(w) || (v = jz(w, v)), v);
        }
      }
      function Cft(n) {
        return Vd(O, "noImplicitAny")
          ? gu(n, (a, c) =>
              a === c || !a
                ? a
                : ZOe(a.typeParameters, c.typeParameters)
                  ? Pft(a, c)
                  : void 0,
            )
          : void 0;
      }
      function Nft(n, a, c) {
        if (!n || !a) return n || a;
        const p = pi([_r(n), io(_r(a), c)]);
        return NA(n, p);
      }
      function Mft(n, a, c) {
        const p = Ap(n),
          m = Ap(a),
          v = p >= m ? n : a,
          I = v === n ? a : n,
          w = v === n ? p : m,
          U = ng(n) || ng(a),
          H = U && !ng(v),
          Q = new Array(w + (H ? 1 : 0));
        for (let Ie = 0; Ie < w; Ie++) {
          let Te = kE(v, Ie);
          v === a && (Te = io(Te, c));
          let Ze = kE(I, Ie) || Nt;
          I === a && (Ze = io(Ze, c));
          const Tt = pi([Te, Ze]),
            Dt = U && !H && Ie === w - 1,
            $t = Ie >= kh(v) && Ie >= kh(I),
            Tn = Ie >= p ? void 0 : kL(n, Ie),
            nr = Ie >= m ? void 0 : kL(a, Ie),
            yr = Tn === nr ? Tn : Tn ? (nr ? void 0 : Tn) : nr,
            Sn = ja(
              1 | ($t && !Dt ? 16777216 : 0),
              yr || `arg${Ie}`,
              Dt ? 32768 : $t ? 16384 : 0,
            );
          ((Sn.links.type = Dt ? Yd(Tt) : Tt), (Q[Ie] = Sn));
        }
        if (H) {
          const Ie = ja(1, "args", 32768);
          ((Ie.links.type = Yd(Lh(I, w))),
            I === a && (Ie.links.type = io(Ie.links.type, c)),
            (Q[w] = Ie));
        }
        return Q;
      }
      function Pft(n, a) {
        const c = n.typeParameters || a.typeParameters;
        let p;
        n.typeParameters &&
          a.typeParameters &&
          (p = Yp(a.typeParameters, n.typeParameters));
        let m = (n.flags | a.flags) & 166;
        const v = n.declaration,
          I = Mft(n, a, p),
          w = Zs(I);
        w && Wl(w) & 32768 && (m |= 1);
        const U = Nft(n.thisParameter, a.thisParameter, p),
          H = Math.max(n.minArgumentCount, a.minArgumentCount),
          Q = y_(v, c, U, I, void 0, void 0, H, m);
        return (
          (Q.compositeKind = 2097152),
          (Q.compositeSignatures = so(
            (n.compositeKind === 2097152 && n.compositeSignatures) || [n],
            [a],
          )),
          p &&
            (Q.mapper =
              n.compositeKind === 2097152 && n.mapper && n.compositeSignatures
                ? Y0(n.mapper, p)
                : p),
          Q
        );
      }
      function _ge(n, a) {
        const c = na(n, 0),
          p = Un(c, (m) => !Lft(m, a));
        return p.length === 1 ? p[0] : Cft(p);
      }
      function Lft(n, a) {
        let c = 0;
        for (; c < a.parameters.length; c++) {
          const p = a.parameters[c];
          if (p.initializer || p.questionToken || p.dotDotDotToken || e4(p))
            break;
        }
        return (
          a.parameters.length && Sb(a.parameters[0]) && c--,
          !ng(n) && Ap(n) < c
        );
      }
      function o$(n) {
        return Rb(n) || mm(n) ? ZW(n) : void 0;
      }
      function ZW(n) {
        C.assert(n.kind !== 175 || mm(n));
        const a = TL(n);
        if (a) return a;
        const c = nS(n, 1);
        if (!c) return;
        if (!(c.flags & 1048576)) return _ge(c, n);
        let p;
        const m = c.types;
        for (const v of m) {
          const I = _ge(v, n);
          if (I)
            if (!p) p = [I];
            else if (p5(p[0], I, !1, !0, !0, BW)) p.push(I);
            else return;
        }
        if (p) return p.length === 1 ? p[0] : $Oe(p[0], p);
      }
      function kft(n) {
        const a = Wn(n);
        if (!vT(a) && !n.isUnterminated) {
          let c;
          (o ?? (o = cg(99, !0)),
            o.setScriptTarget(a.languageVersion),
            o.setLanguageVariant(a.languageVariant),
            o.setOnError((p, m, v) => {
              const I = o.getTokenEnd();
              if (p.category === 3 && c && I === c.start && m === c.length) {
                const w = CI(a.fileName, a.text, I, m, p, v);
                pa(c, w);
              } else
                (!c || I !== c.start) && ((c = Oc(a, I, m, p, v)), ns.add(c));
            }),
            o.setText(a.text, n.pos, n.end - n.pos));
          try {
            return (
              o.scan(),
              C.assert(
                o.reScanSlashToken(!0) === 14,
                "Expected scanner to rescan RegularExpressionLiteral",
              ),
              !!c
            );
          } finally {
            (o.setText(""), o.setOnError(void 0));
          }
        }
        return !1;
      }
      function wft(n) {
        const a = Vr(n);
        return (a.flags & 1 || ((a.flags |= 1), r(() => kft(n))), ql);
      }
      function Oft(n, a) {
        G < ed.SpreadElements && $c(n, O.downlevelIteration ? 1536 : 1024);
        const c = _o(n.expression, a);
        return Hv(33, c, he, n.expression);
      }
      function Wft(n) {
        return n.isSpread ? Xp(n.type, Bt) : n.type;
      }
      function dR(n) {
        return (
          (n.kind === 209 && !!n.initializer) ||
          (n.kind === 304 && dR(n.initializer)) ||
          (n.kind === 305 && !!n.objectAssignmentInitializer) ||
          (n.kind === 227 && n.operatorToken.kind === 64)
        );
      }
      function Fft(n) {
        const a = zm(n.parent);
        return qf(a) && Gh(a.parent);
      }
      function v6e(n, a, c) {
        const p = n.elements,
          m = p.length,
          v = [],
          I = [];
        _6e(n);
        const w = Tb(n),
          U = OL(n),
          H = nS(n, void 0),
          Q =
            Fft(n) ||
            (!!H &&
              am(
                H,
                (Te) =>
                  DL(Te) || (up(Te) && !Te.nameType && !!FW(Te.target || Te)),
              ));
        let Ie = !1;
        for (let Te = 0; Te < m; Te++) {
          const Ze = p[Te];
          if (Ze.kind === 231) {
            G < ed.SpreadElements && $c(Ze, O.downlevelIteration ? 1536 : 1024);
            const Tt = _o(Ze.expression, a, c);
            if (jv(Tt)) (v.push(Tt), I.push(8));
            else if (w) {
              const Dt = q0(Tt, Bt) || hye(65, Tt, he, void 0, !1) || Nt;
              (v.push(Dt), I.push(4));
            } else (v.push(Hv(33, Tt, he, Ze.expression)), I.push(4));
          } else if (Ce && Ze.kind === 233) ((Ie = !0), v.push(te), I.push(2));
          else {
            const Tt = WL(Ze, a, c);
            if (
              (v.push(pu(Tt, !0, Ie)),
              I.push(Ie ? 2 : 1),
              Q && a && a & 2 && !(a & 4) && Cf(Ze))
            ) {
              const Dt = PE(n);
              (C.assert(Dt), k_e(Dt, Ze, Tt));
            }
          }
        }
        return (
          QW(),
          w
            ? eg(v, I)
            : b6e(
                c || U || Q
                  ? eg(v, I, U && !(H && am(H, I_e)))
                  : Yd(
                      v.length
                        ? pi(
                            Zi(v, (Te, Ze) =>
                              I[Ze] & 8 ? uT(Te, Bt) || Ue : Te,
                            ),
                            2,
                          )
                        : ie
                          ? En
                          : B,
                      U,
                    ),
              )
        );
      }
      function b6e(n) {
        if (!(Hr(n) & 4)) return n;
        let a = n.literalType;
        return (
          a || ((a = n.literalType = xWe(n)), (a.objectFlags |= 147456)),
          a
        );
      }
      function zft(n) {
        switch (n.kind) {
          case 168:
            return Bft(n);
          case 80:
            return Eg(n.escapedText);
          case 9:
          case 11:
            return Eg(n.text);
          default:
            return !1;
        }
      }
      function Bft(n) {
        return kd(th(n), 296);
      }
      function th(n) {
        const a = Vr(n.expression);
        if (!a.resolvedType) {
          if (
            (wu(n.parent.parent) ||
              ui(n.parent.parent) ||
              gd(n.parent.parent)) &&
            Nr(n.expression) &&
            n.expression.operatorToken.kind === 103 &&
            n.parent.kind !== 178 &&
            n.parent.kind !== 179
          )
            return (a.resolvedType = nt);
          if (
            ((a.resolvedType = _o(n.expression)),
            Po(n.parent) && !wc(n.parent) && dc(n.parent.parent))
          ) {
            const c = sh(n.parent.parent),
              p = ige(c);
            p &&
              ((Vr(p).flags |= 4096),
              (Vr(n).flags |= 32768),
              (Vr(n.parent.parent).flags |= 32768));
          }
          (a.resolvedType.flags & 98304 ||
            (!kd(a.resolvedType, 402665900) && !aa(a.resolvedType, Ii))) &&
            Qe(
              n,
              f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any,
            );
        }
        return a.resolvedType;
      }
      function Gft(n) {
        var a;
        const c = (a = n.declarations) == null ? void 0 : a[0];
        return Eg(n.escapedName) || (c && nd(c) && zft(c.name));
      }
      function T6e(n) {
        var a;
        const c = (a = n.declarations) == null ? void 0 : a[0];
        return sM(n) || (c && nd(c) && va(c.name) && kd(th(c.name), 4096));
      }
      function Vft(n) {
        var a;
        const c = (a = n.declarations) == null ? void 0 : a[0];
        return c && nd(c) && va(c.name);
      }
      function e8(n, a, c, p) {
        var m;
        const v = [];
        let I;
        for (let U = a; U < c.length; U++) {
          const H = c[U];
          ((p === gt && !T6e(H)) ||
            (p === Bt && Gft(H)) ||
            (p === Qt && T6e(H))) &&
            (v.push(_r(c[U])),
            Vft(c[U]) &&
              (I = Bn(I, (m = c[U].declarations) == null ? void 0 : m[0])));
        }
        const w = v.length ? pi(v, 2) : he;
        return jg(p, w, n, void 0, I);
      }
      function a$(n) {
        C.assert((n.flags & 2097152) !== 0, "Should only get Alias here.");
        const a = Jr(n);
        if (!a.immediateTarget) {
          const c = cp(n);
          if (!c) return C.fail();
          a.immediateTarget = W0(c, !0);
        }
        return a.immediateTarget;
      }
      function jft(n, a = 0) {
        const c = Tb(n);
        nbt(n, c);
        const p = ie ? da() : void 0;
        let m = da(),
          v = [],
          I = Ra;
        _6e(n);
        const w = nS(n, void 0),
          U =
            w &&
            w.pattern &&
            (w.pattern.kind === 207 || w.pattern.kind === 211),
          H = OL(n),
          Q = H ? 8 : 0,
          Ie = Ir(n) && !e6(n),
          Te = Ie ? V9(n) : void 0,
          Ze = !w && Ie && !Te;
        let Tt = 8192,
          Dt = !1,
          $t = !1,
          Tn = !1,
          nr = !1;
        for (const vn of n.properties) vn.name && va(vn.name) && th(vn.name);
        let yr = 0;
        for (const vn of n.properties) {
          let Sr = Wr(vn);
          const fi = vn.name && vn.name.kind === 168 ? th(vn.name) : void 0;
          if (vn.kind === 304 || vn.kind === 305 || mm(vn)) {
            let oo =
              vn.kind === 304
                ? V4e(vn, a)
                : vn.kind === 305
                  ? WL(
                      !c && vn.objectAssignmentInitializer
                        ? vn.objectAssignmentInitializer
                        : vn.name,
                      a,
                    )
                  : j4e(vn, a);
            if (Ie) {
              const Ko = cs(vn);
              Ko
                ? ($d(oo, Ko, vn), (oo = Ko))
                : Te && Te.typeExpression && $d(oo, Ji(Te.typeExpression), vn);
            }
            Tt |= Hr(oo) & 458752;
            const ii = fi && jf(fi) ? fi : void 0,
              zi = ii
                ? ja(4 | Sr.flags, Uf(ii), Q | 4096)
                : ja(4 | Sr.flags, Sr.escapedName, Q);
            if ((ii && (zi.links.nameType = ii), c && dR(vn)))
              zi.flags |= 16777216;
            else if (U && !(Hr(w) & 512)) {
              const Ko = Ea(w, Sr.escapedName);
              Ko
                ? (zi.flags |= Ko.flags & 16777216)
                : Vg(w, gt) ||
                  Qe(
                    vn.name,
                    f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,
                    uo(Sr),
                    ar(w),
                  );
            }
            if (
              ((zi.declarations = Sr.declarations),
              (zi.parent = Sr.parent),
              Sr.valueDeclaration &&
                (zi.valueDeclaration = Sr.valueDeclaration),
              (zi.links.type = oo),
              (zi.links.target = Sr),
              (Sr = zi),
              p?.set(zi.escapedName, zi),
              w &&
                a & 2 &&
                !(a & 4) &&
                (vn.kind === 304 || vn.kind === 175) &&
                Cf(vn))
            ) {
              const Ko = PE(n);
              C.assert(Ko);
              const ms = vn.kind === 304 ? vn.initializer : vn;
              k_e(Ko, ms, oo);
            }
          } else if (vn.kind === 306) {
            (G < ed.ObjectAssign && $c(vn, 2),
              v.length > 0 &&
                ((I = xE(I, Sn(), n.symbol, Tt, H)),
                (v = []),
                (m = da()),
                ($t = !1),
                (Tn = !1),
                (nr = !1)));
            const oo = Pm(_o(vn.expression, a & 2));
            if (C5(oo)) {
              const ii = o_e(oo, H);
              if ((p && A6e(ii, p, vn), (yr = v.length), pr(I))) continue;
              I = xE(I, ii, n.symbol, Tt, H);
            } else
              (Qe(vn, f.Spread_types_may_only_be_created_from_object_types),
                (I = nt));
            continue;
          } else (C.assert(vn.kind === 178 || vn.kind === 179), fR(vn));
          (fi && !(fi.flags & 8576)
            ? aa(fi, Ii) &&
              (aa(fi, Bt) ? (Tn = !0) : aa(fi, Qt) ? (nr = !0) : ($t = !0),
              c && (Dt = !0))
            : m.set(Sr.escapedName, Sr),
            v.push(Sr));
        }
        if ((QW(), pr(I))) return nt;
        if (I !== Ra)
          return (
            v.length > 0 &&
              ((I = xE(I, Sn(), n.symbol, Tt, H)),
              (v = []),
              (m = da()),
              ($t = !1),
              (Tn = !1)),
            Tl(I, (vn) => (vn === Ra ? Sn() : vn))
          );
        return Sn();
        function Sn() {
          const vn = [],
            Sr = OL(n);
          ($t && vn.push(e8(Sr, yr, v, gt)),
            Tn && vn.push(e8(Sr, yr, v, Bt)),
            nr && vn.push(e8(Sr, yr, v, Qt)));
          const fi = bl(n.symbol, m, ae, ae, vn);
          return (
            (fi.objectFlags |= Tt | 128 | 131072),
            Ze && (fi.objectFlags |= 4096),
            Dt && (fi.objectFlags |= 512),
            c && (fi.pattern = n),
            fi
          );
        }
      }
      function C5(n) {
        const a = oFe(Tl(n, v_));
        return !!(
          a.flags & 126615553 ||
          (a.flags & 3145728 && Vn(a.types, C5))
        );
      }
      function Uft(n) {
        yge(n);
      }
      function Hft(n, a) {
        return (fR(n), M5(n) || Ue);
      }
      function qft(n) {
        (yge(n.openingElement),
          uR(n.closingElement.tagName)
            ? l$(n.closingElement)
            : _o(n.closingElement.tagName),
          s$(n));
      }
      function Jft(n, a) {
        return (fR(n), M5(n) || Ue);
      }
      function Kft(n) {
        yge(n.openingFragment);
        const a = Wn(n);
        (z6(O) &&
          (O.jsxFactory || a.pragmas.has("jsx")) &&
          !O.jsxFragmentFactory &&
          !a.pragmas.has("jsxfrag") &&
          Qe(
            n,
            O.jsxFactory
              ? f.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option
              : f.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments,
          ),
          s$(n));
        const c = M5(n);
        return pr(c) ? Ue : c;
      }
      function gge(n) {
        return n.includes("-");
      }
      function uR(n) {
        return (He(n) && oD(n.escapedText)) || fh(n);
      }
      function S6e(n, a) {
        return n.initializer ? WL(n.initializer, a) : ft;
      }
      function E6e(n, a = 0) {
        const c = ie ? da() : void 0;
        let p = da(),
          m = ec,
          v = !1,
          I,
          w = !1,
          U = 2048;
        const H = N5(OA(n)),
          Q = jm(n);
        let Ie,
          Te = n;
        if (!Q) {
          const Dt = n.attributes;
          ((Ie = Dt.symbol), (Te = Dt));
          const $t = Hu(Dt, 0);
          for (const Tn of Dt.properties) {
            const nr = Tn.symbol;
            if (i_(Tn)) {
              const yr = S6e(Tn, a);
              U |= Hr(yr) & 458752;
              const Sn = ja(4 | nr.flags, nr.escapedName);
              if (
                ((Sn.declarations = nr.declarations),
                (Sn.parent = nr.parent),
                nr.valueDeclaration &&
                  (Sn.valueDeclaration = nr.valueDeclaration),
                (Sn.links.type = yr),
                (Sn.links.target = nr),
                p.set(Sn.escapedName, Sn),
                c?.set(Sn.escapedName, Sn),
                PM(Tn.name) === H && (w = !0),
                $t)
              ) {
                const vn = Ea($t, nr.escapedName);
                vn &&
                  vn.declarations &&
                  xu(vn) &&
                  He(Tn.name) &&
                  Cm(Tn.name, vn.declarations, Tn.name.escapedText);
              }
              if ($t && a & 2 && !(a & 4) && Cf(Tn)) {
                const vn = PE(Dt);
                C.assert(vn);
                const Sr = Tn.initializer.expression;
                k_e(vn, Sr, yr);
              }
            } else {
              (C.assert(Tn.kind === 294),
                p.size > 0 &&
                  ((m = xE(m, Tt(), Dt.symbol, U, !1)), (p = da())));
              const yr = Pm(_o(Tn.expression, a & 2));
              (wr(yr) && (v = !0),
                C5(yr)
                  ? ((m = xE(m, yr, Dt.symbol, U, !1)), c && A6e(yr, c, Tn))
                  : (Qe(
                      Tn.expression,
                      f.Spread_types_may_only_be_created_from_object_types,
                    ),
                    (I = I ? Ma([I, yr]) : yr)));
            }
          }
          v || (p.size > 0 && (m = xE(m, Tt(), Dt.symbol, U, !1)));
        }
        const Ze = n.parent;
        if (
          ((r_(Ze) && Ze.openingElement === n) ||
            (e0(Ze) && Ze.openingFragment === n)) &&
          iD(Ze.children).length > 0
        ) {
          const Dt = s$(Ze, a);
          if (!v && H && H !== "") {
            w &&
              Qe(
                Te,
                f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,
                Gi(H),
              );
            const $t = ph(n) ? nS(n.attributes, void 0) : void 0,
              Tn = $t && tS($t, H),
              nr = ja(4, H);
            ((nr.links.type =
              Dt.length === 1 ? Dt[0] : Tn && am(Tn, DL) ? eg(Dt) : Yd(pi(Dt))),
              (nr.valueDeclaration = L.createPropertySignature(
                void 0,
                Gi(H),
                void 0,
                void 0,
              )),
              ps(nr.valueDeclaration, Te),
              (nr.valueDeclaration.symbol = nr));
            const yr = da();
            (yr.set(H, nr), (m = xE(m, bl(Ie, yr, ae, ae, ae), Ie, U, !1)));
          }
        }
        if (v) return Ue;
        if (I && m !== ec) return Ma([I, m]);
        return I || (m === ec ? Tt() : m);
        function Tt() {
          return ((U |= 8192), Xft(U, Ie, p));
        }
      }
      function Xft(n, a, c) {
        const p = bl(a, c, ae, ae, ae);
        return ((p.objectFlags |= n | 8192 | 128 | 131072), p);
      }
      function s$(n, a) {
        const c = [];
        for (const p of n.children)
          if (p.kind === 12) p.containsOnlyTriviaWhiteSpaces || c.push(gt);
          else {
            if (p.kind === 295 && !p.expression) continue;
            c.push(WL(p, a));
          }
        return c;
      }
      function A6e(n, a, c) {
        for (const p of bs(n))
          if (!(p.flags & 16777216)) {
            const m = a.get(p.escapedName);
            if (m) {
              const v = Qe(
                m.valueDeclaration,
                f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,
                Gi(m.escapedName),
              );
              pa(v, Ar(c, f.This_spread_always_overwrites_this_property));
            }
          }
      }
      function Yft(n, a) {
        return E6e(n.parent, a);
      }
      function LE(n, a) {
        const c = OA(a),
          p = c && qp(c),
          m = p && Sd(p, n, 788968);
        return m ? qs(m) : nt;
      }
      function l$(n) {
        const a = Vr(n);
        if (!a.resolvedSymbol) {
          const c = LE(_f.IntrinsicElements, n);
          if (pr(c))
            return (
              ve &&
                Qe(
                  n,
                  f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,
                  Gi(_f.IntrinsicElements),
                ),
              (a.resolvedSymbol = ne)
            );
          {
            if (!He(n.tagName) && !fh(n.tagName)) return C.fail();
            const p = fh(n.tagName) ? OI(n.tagName) : n.tagName.escapedText,
              m = Ea(c, p);
            if (m) return ((a.jsxFlags |= 1), (a.resolvedSymbol = m));
            const v = Y3e(c, Sp(Gi(p)));
            return v
              ? ((a.jsxFlags |= 2), (a.resolvedSymbol = v))
              : ei(c, p)
                ? ((a.jsxFlags |= 2), (a.resolvedSymbol = c.symbol))
                : (Qe(
                    n,
                    f.Property_0_does_not_exist_on_type_1,
                    YV(n.tagName),
                    "JSX." + _f.IntrinsicElements,
                  ),
                  (a.resolvedSymbol = ne));
          }
        }
        return a.resolvedSymbol;
      }
      function c$(n) {
        const a = n && Wn(n),
          c = a && Vr(a);
        if (c && c.jsxImplicitImportContainer === !1) return;
        if (c && c.jsxImplicitImportContainer)
          return c.jsxImplicitImportContainer;
        const p = B6(Xk(O, a), O);
        if (!p) return;
        const v =
            iu(O) === 1
              ? f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option
              : f.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,
          I = Pbt(a, p),
          w = aA(I || n, p, v, n),
          U = w && w !== ne ? os(mc(w)) : void 0;
        return (c && (c.jsxImplicitImportContainer = U || !1), U);
      }
      function OA(n) {
        const a = n && Vr(n);
        if (a && a.jsxNamespace) return a.jsxNamespace;
        if (!a || a.jsxNamespace !== !1) {
          let p = c$(n);
          if (!p || p === ne) {
            const m = qm(n);
            p = _t(n, m, 1920, void 0, !1);
          }
          if (p) {
            const m = mc(Sd(qp(mc(p)), _f.JSX, 1920));
            if (m && m !== ne) return (a && (a.jsxNamespace = m), m);
          }
          a && (a.jsxNamespace = !1);
        }
        const c = mc(UC(_f.JSX, 1920, void 0));
        if (c !== ne) return c;
      }
      function I6e(n, a) {
        const c = a && Sd(a.exports, n, 788968),
          p = c && qs(c),
          m = p && bs(p);
        if (m) {
          if (m.length === 0) return "";
          if (m.length === 1) return m[0].escapedName;
          m.length > 1 &&
            c.declarations &&
            Qe(
              c.declarations[0],
              f.The_global_type_JSX_0_may_not_have_more_than_one_property,
              Gi(n),
            );
        }
      }
      function $ft(n) {
        return n && Sd(n.exports, _f.LibraryManagedAttributes, 788968);
      }
      function Qft(n) {
        return n && Sd(n.exports, _f.ElementType, 788968);
      }
      function Zft(n) {
        return I6e(_f.ElementAttributesPropertyNameContainer, n);
      }
      function N5(n) {
        return O.jsx === 4 || O.jsx === 5
          ? "children"
          : I6e(_f.ElementChildrenAttributeNameContainer, n);
      }
      function x6e(n, a) {
        if (n.flags & 4) return [ur];
        if (n.flags & 128) {
          const m = R6e(n, a);
          return m
            ? [y$(a, m)]
            : (Qe(
                a,
                f.Property_0_does_not_exist_on_type_1,
                n.value,
                "JSX." + _f.IntrinsicElements,
              ),
              ae);
        }
        const c = Du(n);
        let p = na(c, 1);
        return (
          p.length === 0 && (p = na(c, 0)),
          p.length === 0 &&
            c.flags & 1048576 &&
            (p = _he(Vt(c.types, (m) => x6e(m, a)))),
          p
        );
      }
      function R6e(n, a) {
        const c = LE(_f.IntrinsicElements, a);
        if (!pr(c)) {
          const p = n.value,
            m = Ea(c, Cl(p));
          if (m) return _r(m);
          const v = q0(c, gt);
          return v || void 0;
        }
        return Ue;
      }
      function emt(n, a, c) {
        if (n === 1) {
          const m = N6e(c);
          m &&
            rm(
              a,
              m,
              qd,
              c.tagName,
              f.Its_return_type_0_is_not_a_valid_JSX_element,
              p,
            );
        } else if (n === 0) {
          const m = C6e(c);
          m &&
            rm(
              a,
              m,
              qd,
              c.tagName,
              f.Its_instance_type_0_is_not_a_valid_JSX_element,
              p,
            );
        } else {
          const m = N6e(c),
            v = C6e(c);
          if (!m || !v) return;
          const I = pi([m, v]);
          rm(
            a,
            I,
            qd,
            c.tagName,
            f.Its_element_type_0_is_not_a_valid_JSX_element,
            p,
          );
        }
        function p() {
          const m = Al(c.tagName);
          return qo(void 0, f._0_cannot_be_used_as_a_JSX_component, m);
        }
      }
      function D6e(n) {
        var a;
        C.assert(uR(n.tagName));
        const c = Vr(n);
        if (!c.resolvedJsxElementAttributesType) {
          const p = l$(n);
          if (c.jsxFlags & 1)
            return (c.resolvedJsxElementAttributesType = _r(p) || nt);
          if (c.jsxFlags & 2) {
            const m = fh(n.tagName) ? OI(n.tagName) : n.tagName.escapedText;
            return (c.resolvedJsxElementAttributesType =
              ((a = tR(LE(_f.IntrinsicElements, n), m)) == null
                ? void 0
                : a.type) || nt);
          } else return (c.resolvedJsxElementAttributesType = nt);
        }
        return c.resolvedJsxElementAttributesType;
      }
      function C6e(n) {
        const a = LE(_f.ElementClass, n);
        if (!pr(a)) return a;
      }
      function M5(n) {
        return LE(_f.Element, n);
      }
      function N6e(n) {
        const a = M5(n);
        if (a) return pi([a, Xt]);
      }
      function tmt(n) {
        const a = OA(n);
        if (!a) return;
        const c = Qft(a);
        if (!c) return;
        const p = M6e(c, Ir(n));
        if (!(!p || pr(p))) return p;
      }
      function M6e(n, a, ...c) {
        const p = qs(n);
        if (n.flags & 524288) {
          const m = Jr(n).typeParameters;
          if (et(m) >= c.length) {
            const v = Bv(c, m, c.length, a);
            return et(v) === 0 ? p : VC(n, v);
          }
        }
        if (et(p.typeParameters) >= c.length) {
          const m = Bv(c, p.typeParameters, c.length, a);
          return Ly(p, m);
        }
      }
      function nmt(n) {
        const a = LE(_f.IntrinsicElements, n);
        return a ? bs(a) : ae;
      }
      function rmt(n) {
        ((O.jsx || 0) === 0 &&
          Qe(n, f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),
          M5(n) === void 0 &&
            ve &&
            Qe(
              n,
              f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist,
            ));
      }
      function yge(n) {
        const a = ru(n);
        (a && rbt(n), rmt(n), rge(n));
        const c = ZC(n);
        if ((b$(c, n), a)) {
          const p = n,
            m = tmt(p);
          if (m !== void 0) {
            const v = p.tagName,
              I = uR(v) ? Sp(YV(v)) : _o(v);
            rm(
              I,
              m,
              qd,
              v,
              f.Its_type_0_is_not_a_valid_JSX_element_type,
              () => {
                const w = Al(v);
                return qo(void 0, f._0_cannot_be_used_as_a_JSX_component, w);
              },
            );
          } else emt(t4e(p), fs(c), p);
        }
      }
      function d$(n, a, c) {
        if (
          n.flags & 524288 &&
          (SE(n, a) || tR(n, a) || (xW(a) && Vg(n, gt)) || (c && gge(a)))
        )
          return !0;
        if (n.flags & 33554432) return d$(n.baseType, a, c);
        if (n.flags & 3145728 && t8(n)) {
          for (const p of n.types) if (d$(p, a, c)) return !0;
        }
        return !1;
      }
      function t8(n) {
        return !!(
          (n.flags & 524288 && !(Hr(n) & 512)) ||
          n.flags & 67108864 ||
          (n.flags & 33554432 && t8(n.baseType)) ||
          (n.flags & 1048576 && yt(n.types, t8)) ||
          (n.flags & 2097152 && Vn(n.types, t8))
        );
      }
      function imt(n, a) {
        if ((obt(n), n.expression)) {
          const c = _o(n.expression, a);
          return (
            n.dotDotDotToken &&
              c !== Ue &&
              !im(c) &&
              Qe(n, f.JSX_spread_child_must_be_an_array_type),
            c
          );
        } else return nt;
      }
      function vge(n) {
        return n.valueDeclaration ? wE(n.valueDeclaration) : 0;
      }
      function bge(n) {
        if (n.flags & 8192 || Wl(n) & 4) return !0;
        if (Ir(n.valueDeclaration)) {
          const a = n.valueDeclaration.parent;
          return a && Nr(a) && oc(a) === 3;
        }
      }
      function Tge(n, a, c, p, m, v = !0) {
        const I = v
          ? n.kind === 167
            ? n.right
            : n.kind === 206
              ? n
              : n.kind === 209 && n.propertyName
                ? n.propertyName
                : n.name
          : void 0;
        return P6e(n, a, c, p, m, I);
      }
      function P6e(n, a, c, p, m, v) {
        var I;
        const w = Vf(m, c);
        if (a) {
          if (G < 2 && L6e(m))
            return (
              v &&
                Qe(
                  v,
                  f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword,
                ),
              !1
            );
          if (w & 64)
            return (
              v &&
                Qe(
                  v,
                  f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,
                  uo(m),
                  ar(aR(m)),
                ),
              !1
            );
          if (!(w & 256) && (I = m.declarations) != null && I.some(ste))
            return (
              v &&
                Qe(
                  v,
                  f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,
                  uo(m),
                ),
              !1
            );
        }
        if (
          w & 64 &&
          L6e(m) &&
          (lk(n) || sne(n) || (ff(n.parent) && YF(n.parent.parent)))
        ) {
          const H = cy(Yc(m));
          if (H && tvt(n))
            return (
              v &&
                Qe(
                  v,
                  f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,
                  uo(m),
                  zf(H.name),
                ),
              !1
            );
        }
        if (!(w & 6)) return !0;
        if (w & 2) {
          const H = cy(Yc(m));
          return xye(n, H)
            ? !0
            : (v &&
                Qe(
                  v,
                  f.Property_0_is_private_and_only_accessible_within_class_1,
                  uo(m),
                  ar(aR(m)),
                ),
              !1);
        }
        if (a) return !0;
        let U = K3e(n, (H) => {
          const Q = qs(Wr(H));
          return X8e(Q, m, c);
        });
        return !U && ((U = omt(n)), (U = U && X8e(U, m, c)), w & 256 || !U)
          ? (v &&
              Qe(
                v,
                f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,
                uo(m),
                ar(aR(m) || p),
              ),
            !1)
          : w & 256
            ? !0
            : (p.flags & 262144 && (p = p.isThisType ? Uu(p) : Ld(p)),
              !p || !Ur(p, U)
                ? (v &&
                    Qe(
                      v,
                      f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,
                      uo(m),
                      ar(U),
                      ar(p),
                    ),
                  !1)
                : !0);
      }
      function omt(n) {
        const a = amt(n);
        let c = a?.type && Ji(a.type);
        if (c) c.flags & 262144 && (c = Uu(c));
        else {
          const p = vu(n, !1, !1);
          Yo(p) && (c = lge(p));
        }
        if (c && Hr(c) & 7) return zn(c);
      }
      function amt(n) {
        const a = vu(n, !1, !1);
        return a && Yo(a) ? CS(a) : void 0;
      }
      function L6e(n) {
        return !!u5(n, (a) => !(a.flags & 8192));
      }
      function $C(n) {
        return S_(_o(n), n);
      }
      function P5(n) {
        return Mh(n, 50331648);
      }
      function Sge(n) {
        return P5(n) ? By(n) : n;
      }
      function smt(n, a) {
        const c = Ds(n) ? Mp(n) : void 0;
        if (n.kind === 106) {
          Qe(n, f.The_value_0_cannot_be_used_here, "null");
          return;
        }
        if (c !== void 0 && c.length < 100) {
          if (He(n) && c === "undefined") {
            Qe(n, f.The_value_0_cannot_be_used_here, "undefined");
            return;
          }
          Qe(
            n,
            a & 16777216
              ? a & 33554432
                ? f._0_is_possibly_null_or_undefined
                : f._0_is_possibly_undefined
              : f._0_is_possibly_null,
            c,
          );
        } else
          Qe(
            n,
            a & 16777216
              ? a & 33554432
                ? f.Object_is_possibly_null_or_undefined
                : f.Object_is_possibly_undefined
              : f.Object_is_possibly_null,
          );
      }
      function lmt(n, a) {
        Qe(
          n,
          a & 16777216
            ? a & 33554432
              ? f.Cannot_invoke_an_object_which_is_possibly_null_or_undefined
              : f.Cannot_invoke_an_object_which_is_possibly_undefined
            : f.Cannot_invoke_an_object_which_is_possibly_null,
        );
      }
      function k6e(n, a, c) {
        if (ie && n.flags & 2) {
          if (Ds(a)) {
            const m = Mp(a);
            if (m.length < 100) return (Qe(a, f._0_is_of_type_unknown, m), nt);
          }
          return (Qe(a, f.Object_is_of_type_unknown), nt);
        }
        const p = JC(n, 50331648);
        if (p & 50331648) {
          c(a, p);
          const m = By(n);
          return m.flags & 229376 ? nt : m;
        }
        return n;
      }
      function S_(n, a) {
        return k6e(n, a, smt);
      }
      function w6e(n, a) {
        const c = S_(n, a);
        if (c.flags & 16384) {
          if (Ds(a)) {
            const p = Mp(a);
            if (He(a) && p === "undefined")
              return (Qe(a, f.The_value_0_cannot_be_used_here, p), c);
            if (p.length < 100)
              return (Qe(a, f._0_is_possibly_undefined, p), c);
          }
          Qe(a, f.Object_is_possibly_undefined);
        }
        return c;
      }
      function u$(n, a, c) {
        return n.flags & 64
          ? cmt(n, a)
          : Age(n, n.expression, $C(n.expression), n.name, a, c);
      }
      function cmt(n, a) {
        const c = _o(n.expression),
          p = UW(c, n.expression);
        return OY(
          Age(n, n.expression, S_(p, n.expression), n.name, a),
          n,
          p !== c,
        );
      }
      function O6e(n, a) {
        const c = ZF(n) && Eb(n.left) ? S_(x5(n.left), n.left) : $C(n.left);
        return Age(n, n.left, c, n.right, a);
      }
      function Ege(n) {
        for (; n.parent.kind === 218; ) n = n.parent;
        return Gh(n.parent) && n.parent.expression === n;
      }
      function L5(n, a) {
        for (let c = KF(a); c; c = hd(c)) {
          const { symbol: p } = c,
            m = Ck(p, n),
            v =
              (p.members && p.members.get(m)) ||
              (p.exports && p.exports.get(m));
          if (v) return v;
        }
      }
      function dmt(n) {
        if (!hd(n))
          return Cn(
            n,
            f.Private_identifiers_are_not_allowed_outside_class_bodies,
          );
        if (!T4(n.parent)) {
          if (!P_(n))
            return Cn(
              n,
              f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression,
            );
          const a = Nr(n.parent) && n.parent.operatorToken.kind === 103;
          if (!p$(n) && !a) return Cn(n, f.Cannot_find_name_0, Kr(n));
        }
        return !1;
      }
      function umt(n) {
        dmt(n);
        const a = p$(n);
        return (a && w5(a, void 0, !1), Ue);
      }
      function p$(n) {
        if (!P_(n)) return;
        const a = Vr(n);
        return (
          a.resolvedSymbol === void 0 &&
            (a.resolvedSymbol = L5(n.escapedText, n)),
          a.resolvedSymbol
        );
      }
      function f$(n, a) {
        return Ea(n, a.escapedName);
      }
      function pmt(n, a, c) {
        let p;
        const m = bs(n);
        m &&
          Ye(m, (I) => {
            const w = I.valueDeclaration;
            if (
              w &&
              nd(w) &&
              eo(w.name) &&
              w.name.escapedText === a.escapedText
            )
              return ((p = I), !0);
          });
        const v = vp(a);
        if (p) {
          const I = C.checkDefined(p.valueDeclaration),
            w = C.checkDefined(hd(I));
          if (c?.valueDeclaration) {
            const U = c.valueDeclaration,
              H = hd(U);
            if ((C.assert(!!H), Dn(H, (Q) => w === Q))) {
              const Q = Qe(
                a,
                f.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,
                v,
                ar(n),
              );
              return (
                pa(
                  Q,
                  Ar(U, f.The_shadowing_declaration_of_0_is_defined_here, v),
                  Ar(
                    I,
                    f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,
                    v,
                  ),
                ),
                !0
              );
            }
          }
          return (
            Qe(
              a,
              f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,
              v,
              vp(w.name || PU),
            ),
            !0
          );
        }
        return !1;
      }
      function W6e(n, a) {
        return (zg(a) || (lk(n) && Y_(a))) && vu(n, !0, !1) === br(a);
      }
      function Age(n, a, c, p, m, v) {
        const I = Vr(a).resolvedSymbol,
          w = bb(n),
          U = Du(w !== 0 || Ege(n) ? $p(c) : c),
          H = wr(U) || U === wt;
        let Q;
        if (eo(p)) {
          (G < ed.PrivateNamesAndClassStaticBlocks ||
            G < ed.ClassAndClassElementDecorators ||
            !Z) &&
            (w !== 0 && $c(n, 1048576), w !== 1 && $c(n, 524288));
          const Te = L5(p.escapedText, p);
          if (
            (w &&
              Te &&
              Te.valueDeclaration &&
              Nl(Te.valueDeclaration) &&
              Cn(
                p,
                f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,
                Kr(p),
              ),
            H)
          ) {
            if (Te) return pr(U) ? nt : U;
            if (KF(p) === void 0)
              return (
                Cn(
                  p,
                  f.Private_identifiers_are_not_allowed_outside_class_bodies,
                ),
                Ue
              );
          }
          if (((Q = Te && f$(c, Te)), Q === void 0)) {
            if (pmt(c, p, Te)) return nt;
            const Ze = KF(p);
            Ze &&
              VN(Wn(Ze), O.checkJs) &&
              Cn(
                p,
                f.Private_field_0_must_be_declared_in_an_enclosing_class,
                Kr(p),
              );
          } else
            Q.flags & 65536 &&
              !(Q.flags & 32768) &&
              w !== 1 &&
              Qe(n, f.Private_accessor_was_defined_without_a_getter);
        } else {
          if (H) return (He(a) && I && cR(n, 2, void 0, c), pr(U) ? nt : U);
          Q = Ea(U, p.escapedText, A$(U), n.kind === 167);
        }
        cR(n, 2, Q, c);
        let Ie;
        if (Q) {
          const Te = Sye(Q, p);
          if (
            (xu(Te) &&
              Zhe(n, Te) &&
              Te.declarations &&
              Cm(p, Te.declarations, p.escapedText),
            fmt(Q, n, p),
            w5(Q, n, H6e(a, I)),
            (Vr(n).resolvedSymbol = Q),
            Tge(n, a.kind === 108, RI(n), U, Q),
            L4e(n, Q, w))
          )
            return (
              Qe(
                p,
                f.Cannot_assign_to_0_because_it_is_a_read_only_property,
                Kr(p),
              ),
              nt
            );
          Ie = W6e(n, Q) ? Rt : v || C6(n) ? Wv(Q) : _r(Q);
        } else {
          const Te =
            !eo(p) && (w === 0 || !IA(c) || MM(c))
              ? tR(U, p.escapedText)
              : void 0;
          if (!(Te && Te.type)) {
            const Ze = Ige(n, c.symbol, !0);
            return !Ze && wW(c)
              ? Ue
              : c.symbol === Re
                ? (Re.exports.has(p.escapedText) &&
                  Re.exports.get(p.escapedText).flags & 418
                    ? Qe(
                        p,
                        f.Property_0_does_not_exist_on_type_1,
                        Gi(p.escapedText),
                        ar(c),
                      )
                    : ve &&
                      Qe(
                        p,
                        f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,
                        ar(c),
                      ),
                  Ue)
                : (p.escapedText && !Yb(n) && z6e(p, MM(c) ? U : c, Ze), nt);
          }
          (Te.isReadonly &&
            (Tb(n) || GG(n)) &&
            Qe(n, f.Index_signature_in_type_0_only_permits_reading, ar(U)),
            (Ie = Te.type),
            O.noUncheckedIndexedAccess && bb(n) !== 1 && (Ie = pi([Ie, Ae])),
            O.noPropertyAccessFromIndexSignature &&
              qr(n) &&
              Qe(
                p,
                f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,
                Gi(p.escapedText),
              ),
            Te.declaration &&
              Sh(Te.declaration) &&
              Cm(p, [Te.declaration], p.escapedText));
        }
        return F6e(n, Q, Ie, p, m);
      }
      function Ige(n, a, c) {
        var p;
        const m = Wn(n);
        if (
          m &&
          O.checkJs === void 0 &&
          m.checkJsDirective === void 0 &&
          (m.scriptKind === 1 || m.scriptKind === 2)
        ) {
          const v = Ye(a?.declarations, Wn),
            I =
              !a?.valueDeclaration ||
              !ui(a.valueDeclaration) ||
              ((p = a.valueDeclaration.heritageClauses) == null
                ? void 0
                : p.length) ||
              tv(!1, a.valueDeclaration);
          return (
            !(m !== v && v && ev(v)) &&
            !(c && a && a.flags & 32 && I) &&
            !(n && c && qr(n) && n.expression.kind === 110 && I)
          );
        }
        return !1;
      }
      function F6e(n, a, c, p, m) {
        const v = bb(n);
        if (v === 1) return Gy(c, !!(a && a.flags & 16777216));
        if (
          a &&
          !(a.flags & 98311) &&
          !(a.flags & 8192 && c.flags & 1048576) &&
          !G$(a.declarations)
        )
          return c;
        if (c === Rt) return ue(n, a);
        c = nge(c, n, m);
        let I = !1;
        if (ie && de && Ks(n) && n.expression.kind === 110) {
          const U = a && a.valueDeclaration;
          if (U && w3e(U) && !ua(U)) {
            const H = LL(n);
            H.kind === 177 &&
              H.parent === U.parent &&
              !(U.flags & 33554432) &&
              (I = !0);
          }
        } else
          ie &&
            a &&
            a.valueDeclaration &&
            qr(a.valueDeclaration) &&
            yk(a.valueDeclaration) &&
            LL(n) === LL(a.valueDeclaration) &&
            (I = !0);
        const w = Vy(n, c, I ? hT(c) : c);
        return I && !qC(c) && qC(w)
          ? (Qe(p, f.Property_0_is_used_before_being_assigned, uo(a)), c)
          : v
            ? zy(w)
            : w;
      }
      function fmt(n, a, c) {
        const { valueDeclaration: p } = n;
        if (!p || Wn(a).isDeclarationFile) return;
        let m;
        const v = Kr(c);
        (xge(a) &&
        !jlt(p) &&
        !(Ks(a) && Ks(a.expression)) &&
        !Dy(p, c) &&
        !(Nl(p) && $$(p) & 256) &&
        (Z || !mmt(n))
          ? (m = Qe(c, f.Property_0_is_used_before_its_initialization, v))
          : p.kind === 264 &&
            a.parent.kind !== 184 &&
            !(p.flags & 33554432) &&
            !Dy(p, c) &&
            (m = Qe(c, f.Class_0_used_before_its_declaration, v)),
          m && pa(m, Ar(p, f._0_is_declared_here, v)));
      }
      function xge(n, a) {
        return !!Dn(n, (c) => {
          switch (c.kind) {
            case 173:
            case 176:
              return !0;
            case 187:
            case 288:
              return "quit";
            case 220:
              return a ? !1 : "quit";
            case 242:
              return Ms(c.parent) && c.parent.kind !== 220 ? "quit" : !1;
            default:
              return !1;
          }
        });
      }
      function mmt(n) {
        if (!(n.parent.flags & 32)) return !1;
        let a = _r(n.parent);
        for (;;) {
          if (((a = a.symbol && hmt(a)), !a)) return !1;
          const c = Ea(a, n.escapedName);
          if (c && c.valueDeclaration) return !0;
        }
      }
      function hmt(n) {
        const a = Zm(n);
        if (a.length !== 0) return Ma(a);
      }
      function z6e(n, a, c) {
        const p = Vr(n),
          m =
            p.nonExistentPropCheckCache ||
            (p.nonExistentPropCheckCache = new Set()),
          v = `${pd(a)}|${c}`;
        if (m.has(v)) return;
        m.add(v);
        let I, w;
        if (!eo(n) && a.flags & 1048576 && !(a.flags & 402784252)) {
          for (const H of a.types)
            if (!Ea(H, n.escapedText) && !tR(H, n.escapedText)) {
              I = qo(I, f.Property_0_does_not_exist_on_type_1, ws(n), ar(H));
              break;
            }
        }
        if (B6e(n.escapedText, a)) {
          const H = ws(n),
            Q = ar(a);
          I = qo(
            I,
            f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,
            H,
            Q,
            Q + "." + H,
          );
        } else {
          const H = p8(a);
          if (H && Ea(H, n.escapedText))
            ((I = qo(I, f.Property_0_does_not_exist_on_type_1, ws(n), ar(a))),
              (w = Ar(n, f.Did_you_forget_to_use_await)));
          else {
            const Q = ws(n),
              Ie = ar(a),
              Te = ymt(Q, a);
            if (Te !== void 0)
              I = qo(
                I,
                f.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,
                Q,
                Ie,
                Te,
              );
            else {
              const Ze = Rge(n, a);
              if (Ze !== void 0) {
                const Tt = wl(Ze),
                  Dt = c
                    ? f.Property_0_may_not_exist_on_type_1_Did_you_mean_2
                    : f.Property_0_does_not_exist_on_type_1_Did_you_mean_2;
                ((I = qo(I, Dt, Q, Ie, Tt)),
                  (w =
                    Ze.valueDeclaration &&
                    Ar(Ze.valueDeclaration, f._0_is_declared_here, Tt)));
              } else {
                const Tt = _mt(a)
                  ? f.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom
                  : f.Property_0_does_not_exist_on_type_1;
                I = qo(Ihe(I, a), Tt, Q, Ie);
              }
            }
          }
        }
        const U = hg(Wn(n), n, I);
        (w && pa(U, w),
          Pg(
            !c ||
              I.code !==
                f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,
            U,
          ));
      }
      function _mt(n) {
        return (
          O.lib &&
          !O.lib.includes("lib.dom.d.ts") &&
          bpt(
            n,
            (a) =>
              a.symbol &&
              /^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(
                Gi(a.symbol.escapedName),
              ),
          ) &&
          Fy(n)
        );
      }
      function B6e(n, a) {
        const c = a.symbol && Ea(_r(a.symbol), n);
        return c !== void 0 && !!c.valueDeclaration && ua(c.valueDeclaration);
      }
      function gmt(n) {
        const a = vp(n),
          p = mG().get(a);
        return p && zB(p.keys());
      }
      function ymt(n, a) {
        const c = Du(a).symbol;
        if (!c) return;
        const p = wl(c),
          v = mG().get(p);
        if (v) {
          for (const [I, w] of v) if (jn(w, n)) return I;
        }
      }
      function G6e(n, a) {
        return k5(n, bs(a), 106500);
      }
      function Rge(n, a) {
        let c = bs(a);
        if (typeof n != "string") {
          const p = n.parent;
          (qr(p) && (c = Un(c, (m) => q6e(p, a, m))), (n = Kr(n)));
        }
        return k5(n, c, 111551);
      }
      function V6e(n, a) {
        const c = Bo(n) ? n : Kr(n),
          p = bs(a);
        return (
          (c === "for"
            ? hn(p, (v) => wl(v) === "htmlFor")
            : c === "class"
              ? hn(p, (v) => wl(v) === "className")
              : void 0) ?? k5(c, p, 111551)
        );
      }
      function j6e(n, a) {
        const c = Rge(n, a);
        return c && wl(c);
      }
      function vmt(n, a, c) {
        const p = Sd(n, a, c);
        if (p) return p;
        let m;
        return (
          n === lt
            ? (m = Ui(
                ["string", "number", "boolean", "object", "bigint", "symbol"],
                (I) =>
                  n.has(I.charAt(0).toUpperCase() + I.slice(1))
                    ? ja(524288, I)
                    : void 0,
              ).concat(Co(n.values())))
            : (m = Co(n.values())),
          k5(Gi(a), m, c)
        );
      }
      function U6e(n, a, c) {
        return (
          C.assert(a !== void 0, "outername should always be defined"),
          en(n, a, c, void 0, !1, !1)
        );
      }
      function Dge(n, a) {
        return a.exports && k5(Kr(n), jx(a), 2623475);
      }
      function bmt(n, a, c) {
        function p(I) {
          const w = SE(n, I);
          if (w) {
            const U = FA(_r(w));
            return !!U && kh(U) >= 1 && aa(c, Lh(U, 0));
          }
          return !1;
        }
        const m = Tb(a) ? "set" : "get";
        if (!p(m)) return;
        let v = zk(a.expression);
        return (v === void 0 ? (v = m) : (v += "." + m), v);
      }
      function Tmt(n, a) {
        const c = a.types.filter((p) => !!(p.flags & 128));
        return fS(n.value, c, (p) => p.value);
      }
      function k5(n, a, c) {
        return fS(n, a, p);
        function p(m) {
          const v = wl(m);
          if (!po(v, '"')) {
            if (m.flags & c) return v;
            if (m.flags & 2097152) {
              const I = zx(m);
              if (I && I.flags & c) return v;
            }
          }
        }
      }
      function w5(n, a, c) {
        const p = n && n.flags & 106500 && n.valueDeclaration;
        if (!p) return;
        const m = wp(p, 2),
          v =
            n.valueDeclaration &&
            nd(n.valueDeclaration) &&
            eo(n.valueDeclaration.name);
        if (!(!m && !v) && !(a && C6(a) && !(n.flags & 65536))) {
          if (c) {
            const I = Dn(a, Ms);
            if (I && I.symbol === n) return;
          }
          (Wl(n) & 1 ? Jr(n).target : n).isReferenced = -1;
        }
      }
      function H6e(n, a) {
        return n.kind === 110 || (!!a && Ds(n) && a === fu(Lu(n)));
      }
      function Smt(n, a) {
        switch (n.kind) {
          case 212:
            return Cge(n, n.expression.kind === 108, a, $p(_o(n.expression)));
          case 167:
            return Cge(n, !1, a, $p(_o(n.left)));
          case 206:
            return Cge(n, !1, a, Ji(n));
        }
      }
      function q6e(n, a, c) {
        return Nge(n, n.kind === 212 && n.expression.kind === 108, !1, a, c);
      }
      function Cge(n, a, c, p) {
        if (wr(p)) return !0;
        const m = Ea(p, c);
        return !!m && Nge(n, a, !1, p, m);
      }
      function Nge(n, a, c, p, m) {
        if (wr(p)) return !0;
        if (m.valueDeclaration && nu(m.valueDeclaration)) {
          const v = hd(m.valueDeclaration);
          return !tu(n) && !!Dn(n, (I) => I === v);
        }
        return P6e(n, a, c, p, m);
      }
      function Emt(n) {
        const a = n.initializer;
        if (a.kind === 262) {
          const c = a.declarations[0];
          if (c && !Qo(c.name)) return Wr(c);
        } else if (a.kind === 80) return fu(a);
      }
      function Amt(n) {
        return Xd(n).length === 1 && !!Vg(n, Bt);
      }
      function Imt(n) {
        const a = us(n);
        if (a.kind === 80) {
          const c = fu(a);
          if (c.flags & 3) {
            let p = n,
              m = n.parent;
            for (; m; ) {
              if (
                m.kind === 250 &&
                p === m.statement &&
                Emt(m) === c &&
                Amt(wd(m.expression))
              )
                return !0;
              ((p = m), (m = m.parent));
            }
          }
        }
        return !1;
      }
      function xmt(n, a) {
        return n.flags & 64 ? Rmt(n, a) : J6e(n, $C(n.expression), a);
      }
      function Rmt(n, a) {
        const c = _o(n.expression),
          p = UW(c, n.expression);
        return OY(J6e(n, S_(p, n.expression), a), n, p !== c);
      }
      function J6e(n, a, c) {
        const p = bb(n) !== 0 || Ege(n) ? $p(a) : a,
          m = n.argumentExpression,
          v = _o(m);
        if (pr(p) || p === wt) return p;
        if (A$(p) && !ds(m))
          return (
            Qe(
              m,
              f.A_const_enum_member_can_only_be_accessed_using_a_string_literal,
            ),
            nt
          );
        const I = Imt(m) ? Bt : v,
          w = bb(n);
        let U;
        w === 0
          ? (U = 32)
          : ((U = 4 | (IA(p) && !MM(p) ? 2 : 0)), w === 2 && (U |= 32));
        const H = uT(p, I, U, n) || nt;
        return n3e(F6e(n, Vr(n).resolvedSymbol, H, m, c), n);
      }
      function K6e(n) {
        return Gh(n) || XT(n) || ru(n);
      }
      function WA(n) {
        return (
          K6e(n) && Ye(n.typeArguments, wa),
          n.kind === 216
            ? _o(n.template)
            : ru(n)
              ? _o(n.attributes)
              : Nr(n)
                ? _o(n.left)
                : Gh(n) &&
                  Ye(n.arguments, (a) => {
                    _o(a);
                  }),
          ur
        );
      }
      function Ph(n) {
        return (WA(n), si);
      }
      function Dmt(n, a, c) {
        let p,
          m,
          v = 0,
          I,
          w = -1,
          U;
        C.assert(!a.length);
        for (const H of n) {
          const Q = H.declaration && Wr(H.declaration),
            Ie = H.declaration && H.declaration.parent;
          (!m || Q === m
            ? p && Ie === p
              ? (I = I + 1)
              : ((p = Ie), (I = v))
            : ((I = v = a.length), (p = Ie)),
            (m = Q),
            V1e(H) ? (w++, (U = w), v++) : (U = I),
            a.splice(U, 0, c ? ult(H, c) : H));
        }
      }
      function m$(n) {
        return !!n && (n.kind === 231 || (n.kind === 238 && n.isSpread));
      }
      function Mge(n) {
        return ho(n, m$);
      }
      function X6e(n) {
        return !!(n.flags & 16384);
      }
      function Cmt(n) {
        return !!(n.flags & 49155);
      }
      function h$(n, a, c, p = !1) {
        if (jm(n)) return !0;
        let m,
          v = !1,
          I = Ap(c),
          w = kh(c);
        if (n.kind === 216)
          if (((m = a.length), n.template.kind === 229)) {
            const U = Ba(n.template.templateSpans);
            v = Ol(U.literal) || !!U.literal.isUnterminated;
          } else {
            const U = n.template;
            (C.assert(U.kind === 15), (v = !!U.isUnterminated));
          }
        else if (n.kind === 171) m = r4e(n, c);
        else if (n.kind === 227) m = 1;
        else if (ru(n)) {
          if (((v = n.attributes.end === n.end), v)) return !0;
          ((m = w === 0 ? a.length : 1),
            (I = a.length === 0 ? I : 1),
            (w = Math.min(w, 1)));
        } else if (n.arguments) {
          ((m = p ? a.length + 1 : a.length), (v = n.arguments.end === n.end));
          const U = Mge(a);
          if (U >= 0) return U >= kh(c) && (ng(c) || U < Ap(c));
        } else return (C.assert(n.kind === 215), kh(c) === 0);
        if (!ng(c) && m > I) return !1;
        if (v || m >= w) return !0;
        for (let U = m; U < w; U++) {
          const H = Lh(c, U);
          if (Ec(H, Ir(n) && !ie ? Cmt : X6e).flags & 131072) return !1;
        }
        return !0;
      }
      function Pge(n, a) {
        const c = et(n.typeParameters),
          p = Z_(n.typeParameters);
        return !yt(a) || (a.length >= p && a.length <= c);
      }
      function Y6e(n, a) {
        let c;
        return !!(n.target && (c = kE(n.target, a)) && X0(c));
      }
      function FA(n) {
        return n8(n, 0, !1);
      }
      function $6e(n) {
        return n8(n, 0, !1) || n8(n, 1, !1);
      }
      function n8(n, a, c) {
        if (n.flags & 524288) {
          const p = Dh(n);
          if (c || (p.properties.length === 0 && p.indexInfos.length === 0)) {
            if (
              a === 0 &&
              p.callSignatures.length === 1 &&
              p.constructSignatures.length === 0
            )
              return p.callSignatures[0];
            if (
              a === 1 &&
              p.constructSignatures.length === 1 &&
              p.callSignatures.length === 0
            )
              return p.constructSignatures[0];
          }
        }
      }
      function Q6e(n, a, c, p) {
        const m = JW(SWe(n), n, 0, p),
          v = o8(a),
          I = c && (v && v.flags & 262144 ? c.nonFixingMapper : c.mapper),
          w = I ? DA(a, I) : a;
        return (
          M_e(w, n, (U, H) => {
            qg(m.inferences, U, H);
          }),
          c ||
            P_e(a, n, (U, H) => {
              qg(m.inferences, U, H, 128);
            }),
          PW(n, U_e(m), Ir(a.declaration))
        );
      }
      function Nmt(n, a, c, p) {
        const m = i$(a, n),
          v = eN(n.attributes, m, p, c);
        return (qg(p.inferences, v, m), U_e(p));
      }
      function Z6e(n) {
        if (!n) return In;
        const a = _o(n);
        return jne(n) ? a : PN(n.parent) ? By(a) : tu(n.parent) ? wY(a) : a;
      }
      function Lge(n, a, c, p, m) {
        if (ru(n)) return Nmt(n, a, p, m);
        if (n.kind !== 171 && n.kind !== 227) {
          const U = Vn(a.typeParameters, (Q) => !!EE(Q)),
            H = Hu(n, U ? 8 : 0);
          if (H) {
            const Q = fs(a);
            if (_T(Q)) {
              const Ie = PE(n);
              if (!(!U && Hu(n, 8) !== H)) {
                const Dt = O_e(cFe(Ie, 1)),
                  $t = io(H, Dt),
                  Tn = FA($t),
                  nr =
                    Tn && Tn.typeParameters
                      ? TA(Mhe(Tn, Tn.typeParameters))
                      : $t;
                qg(m.inferences, nr, Q, 128);
              }
              const Ze = JW(a.typeParameters, a, m.flags),
                Tt = io(H, Ie && Cdt(Ie));
              (qg(Ze.inferences, Tt, Q),
                (m.returnMapper = yt(Ze.inferences, tN)
                  ? O_e(zut(Ze))
                  : void 0));
            }
          }
        }
        const v = a8(a),
          I = v ? Math.min(Ap(a) - 1, c.length) : c.length;
        if (v && v.flags & 262144) {
          const U = hn(m.inferences, (H) => H.typeParameter === v);
          U && (U.impliedArity = ho(c, m$, I) < 0 ? c.length - I : void 0);
        }
        const w = J0(a);
        if (w && _T(w)) {
          const U = n4e(n);
          qg(m.inferences, Z6e(U), w);
        }
        for (let U = 0; U < I; U++) {
          const H = c[U];
          if (H.kind !== 233) {
            const Q = Lh(a, U);
            if (_T(Q)) {
              const Ie = eN(H, Q, m, p);
              qg(m.inferences, Ie, Q);
            }
          }
        }
        if (v && _T(v)) {
          const U = kge(c, I, c.length, v, m, p);
          qg(m.inferences, U, v);
        }
        return U_e(m);
      }
      function e4e(n) {
        return n.flags & 1048576
          ? Tl(n, e4e)
          : n.flags & 1 || f5(Ld(n) || n)
            ? n
            : Ka(n)
              ? eg(
                  IE(n),
                  n.target.elementFlags,
                  !1,
                  n.target.labeledElementDeclarations,
                )
              : eg([n], [8]);
      }
      function kge(n, a, c, p, m, v) {
        const I = bA(p);
        if (a >= c - 1) {
          const Q = n[c - 1];
          if (m$(Q)) {
            const Ie = Q.kind === 238 ? Q.type : eN(Q.expression, p, m, v);
            return jv(Ie)
              ? e4e(Ie)
              : Yd(Hv(33, Ie, he, Q.kind === 231 ? Q.expression : Q), I);
          }
        }
        const w = [],
          U = [],
          H = [];
        for (let Q = a; Q < c; Q++) {
          const Ie = n[Q];
          if (m$(Ie)) {
            const Te = Ie.kind === 238 ? Ie.type : _o(Ie.expression);
            jv(Te)
              ? (w.push(Te), U.push(8))
              : (w.push(Hv(33, Te, he, Ie.kind === 231 ? Ie.expression : Ie)),
                U.push(4));
          } else {
            const Te = Ka(p)
                ? hge(p, Q - a, c - a) || Nt
                : Xp(p, Ch(Q - a), 256),
              Ze = eN(Ie, Te, m, v),
              Tt = I || tc(Te, 406978556);
            (w.push(Tt ? Cu(Ze) : Z0(Ze)), U.push(1));
          }
          Ie.kind === 238 && Ie.tupleNameSource
            ? H.push(Ie.tupleNameSource)
            : H.push(void 0);
        }
        return eg(w, U, I && !am(p, I_e), H);
      }
      function wge(n, a, c, p) {
        const m = Ir(n.declaration),
          v = n.typeParameters,
          I = Bv(Vt(a, Ji), v, Z_(v), m);
        let w;
        for (let U = 0; U < a.length; U++) {
          C.assert(
            v[U] !== void 0,
            "Should not call checkTypeArguments with too many type arguments",
          );
          const H = Uu(v[U]);
          if (H) {
            const Q =
                c && p
                  ? () => qo(void 0, f.Type_0_does_not_satisfy_the_constraint_1)
                  : void 0,
              Ie = p || f.Type_0_does_not_satisfy_the_constraint_1;
            w || (w = Yp(v, I));
            const Te = I[U];
            if (!$d(Te, Kp(io(H, w), Te), c ? a[U] : void 0, Ie, Q)) return;
          }
        }
        return I;
      }
      function t4e(n) {
        if (uR(n.tagName)) return 2;
        const a = Du(_o(n.tagName));
        return et(na(a, 1)) ? 0 : et(na(a, 0)) ? 1 : 2;
      }
      function Mmt(n, a, c, p, m, v, I) {
        const w = i$(a, n),
          U = jm(n) ? E6e(n) : eN(n.attributes, w, void 0, p),
          H = p & 4 ? qW(U) : U;
        return (
          Q() &&
          h_e(
            H,
            w,
            c,
            m ? (jm(n) ? n : n.tagName) : void 0,
            jm(n) ? void 0 : n.attributes,
            void 0,
            v,
            I,
          )
        );
        function Q() {
          var Ie;
          if (c$(n)) return !0;
          const Te =
            (ph(n) || I1(n)) && !(uR(n.tagName) || fh(n.tagName))
              ? _o(n.tagName)
              : void 0;
          if (!Te) return !0;
          const Ze = na(Te, 0);
          if (!et(Ze)) return !0;
          const Tt = Mye(n);
          if (!Tt) return !0;
          const Dt = Gl(Tt, 111551, !0, !1, n);
          if (!Dt) return !0;
          const $t = _r(Dt),
            Tn = na($t, 0);
          if (!et(Tn)) return !0;
          let nr = !1,
            yr = 0;
          for (const vn of Tn) {
            const Sr = Lh(vn, 0),
              fi = na(Sr, 0);
            if (et(fi))
              for (const oo of fi) {
                if (((nr = !0), ng(oo))) return !0;
                const ii = Ap(oo);
                ii > yr && (yr = ii);
              }
          }
          if (!nr) return !0;
          let Sn = 1 / 0;
          for (const vn of Ze) {
            const Sr = kh(vn);
            Sr < Sn && (Sn = Sr);
          }
          if (Sn <= yr) return !0;
          if (m) {
            const vn = n.tagName,
              Sr = Ar(
                vn,
                f.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,
                Mp(vn),
                Sn,
                Mp(Tt),
                yr,
              ),
              fi = (Ie = sm(vn)) == null ? void 0 : Ie.valueDeclaration;
            (fi && pa(Sr, Ar(fi, f._0_is_declared_here, Mp(vn))),
              I && I.skipLogging && (I.errors || (I.errors = [])).push(Sr),
              I.skipLogging || ns.add(Sr));
          }
          return !1;
        }
      }
      function _$(n) {
        const a = Ir(n) ? -2147483615 : 33;
        return Ul(n, a);
      }
      function O5(n, a, c, p, m, v, I) {
        const w = { errors: void 0, skipLogging: !0 };
        if (Tte(n))
          return Mmt(n, c, p, m, v, I, w)
            ? void 0
            : (C.assert(
                !v || !!w.errors,
                "jsx should have errors when reporting errors",
              ),
              w.errors || ae);
        const U = J0(c);
        if (U && U !== In && !(GS(n) || (Zo(n) && mp(n.expression)))) {
          const Ze = n4e(n),
            Tt = Z6e(Ze),
            Dt = v ? Ze || n : void 0,
            $t =
              f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;
          if (!rm(Tt, U, p, Dt, $t, I, w))
            return (
              C.assert(
                !v || !!w.errors,
                "this parameter should have errors when reporting errors",
              ),
              w.errors || ae
            );
        }
        const H = f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,
          Q = a8(c),
          Ie = Q ? Math.min(Ap(c) - 1, a.length) : a.length;
        for (let Ze = 0; Ze < Ie; Ze++) {
          const Tt = a[Ze];
          if (Tt.kind !== 233) {
            const Dt = Lh(c, Ze),
              $t = eN(Tt, Dt, void 0, m),
              Tn = m & 4 ? qW($t) : $t,
              nr = _$(Tt);
            if (!h_e(Tn, Dt, p, v ? nr : void 0, nr, H, I, w))
              return (
                C.assert(
                  !v || !!w.errors,
                  "parameter should have errors when reporting errors",
                ),
                Te(Tt, Tn, Dt),
                w.errors || ae
              );
          }
        }
        if (Q) {
          const Ze = kge(a, Ie, a.length, Q, void 0, m),
            Tt = a.length - Ie,
            Dt = v
              ? Tt === 0
                ? n
                : Tt === 1
                  ? _$(a[Ie])
                  : uh(r8(n, Ze), a[Ie].pos, a[a.length - 1].end)
              : void 0;
          if (!rm(Ze, Q, p, Dt, H, void 0, w))
            return (
              C.assert(
                !v || !!w.errors,
                "rest parameter should have errors when reporting errors",
              ),
              Te(Dt, Ze, Q),
              w.errors || ae
            );
        }
        return;
        function Te(Ze, Tt, Dt) {
          if (Ze && v && w.errors && w.errors.length) {
            if (FL(Dt)) return;
            const $t = FL(Tt);
            $t &&
              T_($t, Dt, p) &&
              pa(w.errors[0], Ar(Ze, f.Did_you_forget_to_use_await));
          }
        }
      }
      function n4e(n) {
        if (n.kind === 227) return n.right;
        const a =
          n.kind === 214
            ? n.expression
            : n.kind === 216
              ? n.tag
              : n.kind === 171 && !J
                ? n.expression
                : void 0;
        if (a) {
          const c = Ul(a);
          if (Ks(c)) return c.expression;
        }
      }
      function r8(n, a, c, p) {
        const m = i0.createSyntheticExpression(a, c, p);
        return (vt(m, n), ps(m, n), m);
      }
      function g$(n) {
        if (jm(n)) return [r8(n, bf)];
        if (n.kind === 216) {
          const p = n.template,
            m = [r8(p, act())];
          return (
            p.kind === 229 &&
              Ye(p.templateSpans, (v) => {
                m.push(v.expression);
              }),
            m
          );
        }
        if (n.kind === 171) return Pmt(n);
        if (n.kind === 227) return [n.left];
        if (ru(n))
          return n.attributes.properties.length > 0 ||
            (ph(n) && n.parent.children.length > 0)
            ? [n.attributes]
            : ae;
        const a = n.arguments || ae,
          c = Mge(a);
        if (c >= 0) {
          const p = a.slice(0, c);
          for (let m = c; m < a.length; m++) {
            const v = a[m],
              I = v.kind === 231 && (Yn ? _o(v.expression) : Vl(v.expression));
            I && Ka(I)
              ? Ye(IE(I), (w, U) => {
                  var H;
                  const Q = I.target.elementFlags[U],
                    Ie = r8(
                      v,
                      Q & 4 ? Yd(w) : w,
                      !!(Q & 12),
                      (H = I.target.labeledElementDeclarations) == null
                        ? void 0
                        : H[U],
                    );
                  p.push(Ie);
                })
              : p.push(v);
          }
          return p;
        }
        return a;
      }
      function Pmt(n) {
        const a = n.expression,
          c = Kge(n);
        if (c) {
          const p = [];
          for (const m of c.parameters) {
            const v = _r(m);
            p.push(r8(a, v));
          }
          return p;
        }
        return C.fail();
      }
      function r4e(n, a) {
        return O.experimentalDecorators
          ? Lmt(n, a)
          : Math.min(Math.max(Ap(a), 1), 2);
      }
      function Lmt(n, a) {
        switch (n.parent.kind) {
          case 264:
          case 232:
            return 1;
          case 173:
            return Kh(n.parent) ? 3 : 2;
          case 175:
          case 178:
          case 179:
            return a.parameters.length <= 2 ? 2 : 3;
          case 170:
            return 3;
          default:
            return C.fail();
        }
      }
      function i4e(n) {
        const a = Wn(n),
          { start: c, length: p } = t1(
            a,
            qr(n.expression) ? n.expression.name : n.expression,
          );
        return { start: c, length: p, sourceFile: a };
      }
      function i8(n, a, ...c) {
        if (Zo(n)) {
          const { sourceFile: p, start: m, length: v } = i4e(n);
          return "message" in a ? Oc(p, m, v, a, ...c) : IG(p, a);
        } else return "message" in a ? Ar(n, a, ...c) : hg(Wn(n), n, a);
      }
      function kmt(n) {
        return Gh(n)
          ? qr(n.expression)
            ? n.expression.name
            : n.expression
          : XT(n)
            ? qr(n.tag)
              ? n.tag.name
              : n.tag
            : ru(n)
              ? n.tagName
              : n;
      }
      function wmt(n) {
        if (!Zo(n) || !He(n.expression)) return !1;
        const a = _t(
            n.expression,
            n.expression.escapedText,
            111551,
            void 0,
            !1,
          ),
          c = a?.valueDeclaration;
        if (
          !c ||
          !to(c) ||
          !Rb(c.parent) ||
          !GS(c.parent.parent) ||
          !He(c.parent.parent.expression)
        )
          return !1;
        const p = Bhe(!1);
        return p ? sm(c.parent.parent.expression, !0) === p : !1;
      }
      function o4e(n, a, c, p) {
        var m;
        const v = Mge(c);
        if (v > -1)
          return Ar(
            c[v],
            f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter,
          );
        let I = Number.POSITIVE_INFINITY,
          w = Number.NEGATIVE_INFINITY,
          U = Number.NEGATIVE_INFINITY,
          H = Number.POSITIVE_INFINITY,
          Q;
        for (const Dt of a) {
          const $t = kh(Dt),
            Tn = Ap(Dt);
          ($t < I && ((I = $t), (Q = Dt)),
            (w = Math.max(w, Tn)),
            $t < c.length && $t > U && (U = $t),
            c.length < Tn && Tn < H && (H = Tn));
        }
        const Ie = yt(a, ng),
          Te = Ie ? I : I < w ? I + "-" + w : I,
          Ze = !Ie && Te === 1 && c.length === 0 && wmt(n);
        if (Ze && Ir(n))
          return i8(
            n,
            f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments,
          );
        const Tt = Wc(n)
          ? Ie
            ? f.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0
            : f.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0
          : Ie
            ? f.Expected_at_least_0_arguments_but_got_1
            : Ze
              ? f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise
              : f.Expected_0_arguments_but_got_1;
        if (I < c.length && c.length < w) {
          if (p) {
            let Dt = qo(
              void 0,
              f.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,
              c.length,
              U,
              H,
            );
            return ((Dt = qo(Dt, p)), i8(n, Dt));
          }
          return i8(
            n,
            f.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,
            c.length,
            U,
            H,
          );
        } else if (c.length < I) {
          let Dt;
          if (p) {
            let Tn = qo(void 0, Tt, Te, c.length);
            ((Tn = qo(Tn, p)), (Dt = i8(n, Tn)));
          } else Dt = i8(n, Tt, Te, c.length);
          const $t =
            (m = Q?.declaration) == null
              ? void 0
              : m.parameters[Q.thisParameter ? c.length + 1 : c.length];
          if ($t) {
            const Tn = Qo($t.name)
                ? [f.An_argument_matching_this_binding_pattern_was_not_provided]
                : C_($t)
                  ? [
                      f.Arguments_for_the_rest_parameter_0_were_not_provided,
                      Kr(Lu($t.name)),
                    ]
                  : [
                      f.An_argument_for_0_was_not_provided,
                      $t.name ? Kr(Lu($t.name)) : c.length,
                    ],
              nr = Ar($t, ...Tn);
            return pa(Dt, nr);
          }
          return Dt;
        } else {
          const Dt = L.createNodeArray(c.slice(w)),
            $t = $a(Dt).pos;
          let Tn = Ba(Dt).end;
          if ((Tn === $t && Tn++, uh(Dt, $t, Tn), p)) {
            let nr = qo(void 0, Tt, Te, c.length);
            return ((nr = qo(nr, p)), tk(Wn(n), Dt, nr));
          }
          return qR(Wn(n), Dt, Tt, Te, c.length);
        }
      }
      function Omt(n, a, c, p) {
        const m = c.length;
        if (a.length === 1) {
          const w = a[0],
            U = Z_(w.typeParameters),
            H = et(w.typeParameters);
          if (p) {
            let Q = qo(
              void 0,
              f.Expected_0_type_arguments_but_got_1,
              U < H ? U + "-" + H : U,
              m,
            );
            return ((Q = qo(Q, p)), tk(Wn(n), c, Q));
          }
          return qR(
            Wn(n),
            c,
            f.Expected_0_type_arguments_but_got_1,
            U < H ? U + "-" + H : U,
            m,
          );
        }
        let v = -1 / 0,
          I = 1 / 0;
        for (const w of a) {
          const U = Z_(w.typeParameters),
            H = et(w.typeParameters);
          U > m ? (I = Math.min(I, U)) : H < m && (v = Math.max(v, H));
        }
        if (v !== -1 / 0 && I !== 1 / 0) {
          if (p) {
            let w = qo(
              void 0,
              f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,
              m,
              v,
              I,
            );
            return ((w = qo(w, p)), tk(Wn(n), c, w));
          }
          return qR(
            Wn(n),
            c,
            f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,
            m,
            v,
            I,
          );
        }
        if (p) {
          let w = qo(
            void 0,
            f.Expected_0_type_arguments_but_got_1,
            v === -1 / 0 ? I : v,
            m,
          );
          return ((w = qo(w, p)), tk(Wn(n), c, w));
        }
        return qR(
          Wn(n),
          c,
          f.Expected_0_type_arguments_but_got_1,
          v === -1 / 0 ? I : v,
          m,
        );
      }
      function QC(n, a, c, p, m, v) {
        const I = n.kind === 216,
          w = n.kind === 171,
          U = ru(n),
          H = jm(n),
          Q = n.kind === 227,
          Ie = !P && !c;
        let Te,
          Ze,
          Tt,
          Dt,
          $t = 0,
          Tn = [],
          nr;
        if (
          (!w &&
            !Q &&
            !n1(n) &&
            !H &&
            ((nr = n.typeArguments),
            (I || U || n.expression.kind !== 108) && Ye(nr, wa)),
          (Tn = c || []),
          Dmt(a, Tn, m),
          !H && !Tn.length)
        )
          return (
            Ie && ns.add(i8(n, f.Call_target_does_not_contain_any_signatures)),
            Ph(n)
          );
        const yr = g$(n),
          Sn = Tn.length === 1 && !Tn[0].typeParameters;
        !w && !Sn && yt(yr, Cf) && ($t = 4);
        const vn = !!(p & 16) && n.kind === 214 && n.arguments.hasTrailingComma;
        (Tn.length > 1 && (Dt = oo(Tn, H_, Sn, vn)),
          Dt || (Dt = oo(Tn, qd, Sn, vn)));
        const Sr = Vr(n);
        if (Sr.resolvedSignature !== Dr && !c)
          return (C.assert(Sr.resolvedSignature), Sr.resolvedSignature);
        if (Dt) return Dt;
        if (((Dt = Wmt(n, Tn, yr, !!c, p)), (Sr.resolvedSignature = Dt), Ie)) {
          if (
            (!v &&
              Q &&
              (v =
                f.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),
            Te)
          )
            if (Te.length === 1 || Te.length > 3) {
              const ii = Te[Te.length - 1];
              let zi;
              (Te.length > 3 &&
                ((zi = qo(zi, f.The_last_overload_gave_the_following_error)),
                (zi = qo(zi, f.No_overload_matches_this_call))),
                v && (zi = qo(zi, v)));
              const Ko = O5(n, yr, ii, qd, 0, !0, () => zi);
              if (Ko)
                for (const ms of Ko)
                  (ii.declaration &&
                    Te.length > 3 &&
                    pa(
                      ms,
                      Ar(ii.declaration, f.The_last_overload_is_declared_here),
                    ),
                    fi(ii, ms),
                    ns.add(ms));
              else C.fail("No error for last overload signature");
            } else {
              const ii = [];
              let zi = 0,
                Ko = Number.MAX_VALUE,
                ms = 0,
                fo = 0;
              for (const rr of Te) {
                const vr = O5(n, yr, rr, qd, 0, !0, () =>
                  qo(
                    void 0,
                    f.Overload_0_of_1_2_gave_the_following_error,
                    fo + 1,
                    Tn.length,
                    aT(rr),
                  ),
                );
                (vr
                  ? (vr.length <= Ko && ((Ko = vr.length), (ms = fo)),
                    (zi = Math.max(zi, vr.length)),
                    ii.push(vr))
                  : C.fail("No error for 3 or fewer overload signatures"),
                  fo++);
              }
              const dl = zi > 1 ? ii[ms] : la(ii);
              C.assert(
                dl.length > 0,
                "No errors reported for 3 or fewer overload signatures",
              );
              let Kl = qo(Vt(dl, Hte), f.No_overload_matches_this_call);
              v && (Kl = qo(Kl, v));
              const mu = [...Ki(dl, (rr) => rr.relatedInformation)];
              let qn;
              if (
                Vn(
                  dl,
                  (rr) =>
                    rr.start === dl[0].start &&
                    rr.length === dl[0].length &&
                    rr.file === dl[0].file,
                )
              ) {
                const { file: rr, start: Hi, length: vr } = dl[0];
                qn = {
                  file: rr,
                  start: Hi,
                  length: vr,
                  code: Kl.code,
                  category: Kl.category,
                  messageText: Kl,
                  relatedInformation: mu,
                };
              } else qn = hg(Wn(n), kmt(n), Kl, mu);
              (fi(Te[0], qn), ns.add(qn));
            }
          else if (Ze) ns.add(o4e(n, [Ze], yr, v));
          else if (Tt) wge(Tt, n.typeArguments, !0, v);
          else if (!H) {
            const ii = Un(a, (zi) => Pge(zi, nr));
            ii.length === 0
              ? ns.add(Omt(n, a, nr, v))
              : ns.add(o4e(n, ii, yr, v));
          }
        }
        return Dt;
        function fi(ii, zi) {
          var Ko, ms;
          const fo = Te,
            dl = Ze,
            Kl = Tt,
            mu =
              ((ms = (Ko = ii.declaration) == null ? void 0 : Ko.symbol) == null
                ? void 0
                : ms.declarations) || ae,
            rr = mu.length > 1 ? hn(mu, (Hi) => Ms(Hi) && fm(Hi.body)) : void 0;
          if (rr) {
            const Hi = Df(rr),
              vr = !Hi.typeParameters;
            oo([Hi], qd, vr) &&
              pa(
                zi,
                Ar(
                  rr,
                  f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible,
                ),
              );
          }
          ((Te = fo), (Ze = dl), (Tt = Kl));
        }
        function oo(ii, zi, Ko, ms = !1) {
          if (((Te = void 0), (Ze = void 0), (Tt = void 0), Ko)) {
            const fo = ii[0];
            if (yt(nr) || !h$(n, yr, fo, ms)) return;
            if (O5(n, yr, fo, zi, 0, !1, void 0)) {
              Te = [fo];
              return;
            }
            return fo;
          }
          for (let fo = 0; fo < ii.length; fo++) {
            const dl = ii[fo];
            if (!Pge(dl, nr) || !h$(n, yr, dl, ms)) continue;
            let Kl, mu;
            if (dl.typeParameters) {
              let qn;
              if (yt(nr)) {
                if (((qn = wge(dl, nr, !1)), !qn)) {
                  Tt = dl;
                  continue;
                }
              } else
                ((mu = JW(dl.typeParameters, dl, Ir(n) ? 2 : 0)),
                  (qn = Lge(n, dl, yr, $t | 8, mu)),
                  ($t |= mu.flags & 4 ? 8 : 0));
              if (
                ((Kl = PW(
                  dl,
                  qn,
                  Ir(dl.declaration),
                  mu && mu.inferredTypeParameters,
                )),
                a8(dl) && !h$(n, yr, Kl, ms))
              ) {
                Ze = Kl;
                continue;
              }
            } else Kl = dl;
            if (O5(n, yr, Kl, zi, $t, !1, void 0)) {
              (Te || (Te = [])).push(Kl);
              continue;
            }
            if ($t) {
              if ((($t = 0), mu)) {
                const qn = Lge(n, dl, yr, $t, mu);
                if (
                  ((Kl = PW(
                    dl,
                    qn,
                    Ir(dl.declaration),
                    mu.inferredTypeParameters,
                  )),
                  a8(dl) && !h$(n, yr, Kl, ms))
                ) {
                  Ze = Kl;
                  continue;
                }
              }
              if (O5(n, yr, Kl, zi, $t, !1, void 0)) {
                (Te || (Te = [])).push(Kl);
                continue;
              }
            }
            return ((ii[fo] = Kl), Kl);
          }
        }
      }
      function Wmt(n, a, c, p, m) {
        return (
          C.assert(a.length > 0),
          fR(n),
          p || a.length === 1 || a.some((v) => !!v.typeParameters)
            ? Bmt(n, a, c, m)
            : Fmt(a)
        );
      }
      function Fmt(n) {
        const a = Ui(n, (U) => U.thisParameter);
        let c;
        a.length && (c = a4e(a, a.map(z5)));
        const { min: p, max: m } = Rre(n, zmt),
          v = [];
        for (let U = 0; U < m; U++) {
          const H = Ui(n, (Q) =>
            su(Q)
              ? U < Q.parameters.length - 1
                ? Q.parameters[U]
                : Ba(Q.parameters)
              : U < Q.parameters.length
                ? Q.parameters[U]
                : void 0,
          );
          (C.assert(H.length !== 0),
            v.push(
              a4e(
                H,
                Ui(n, (Q) => kE(Q, U)),
              ),
            ));
        }
        const I = Ui(n, (U) => (su(U) ? Ba(U.parameters) : void 0));
        let w = 128;
        if (I.length !== 0) {
          const U = Yd(pi(Ui(n, TWe), 2));
          (v.push(s4e(I, U)), (w |= 1));
        }
        return (
          n.some(V1e) && (w |= 2),
          y_(n[0].declaration, void 0, c, v, Ma(n.map(fs)), void 0, p, w)
        );
      }
      function zmt(n) {
        const a = n.parameters.length;
        return su(n) ? a - 1 : a;
      }
      function a4e(n, a) {
        return s4e(n, pi(a, 2));
      }
      function s4e(n, a) {
        return NA($a(n), a);
      }
      function Bmt(n, a, c, p) {
        const m = jmt(a, at === void 0 ? c.length : at),
          v = a[m],
          { typeParameters: I } = v;
        if (!I) return v;
        const w = K6e(n) ? n.typeArguments : void 0,
          U = w ? iY(v, Gmt(w, I, Ir(n))) : Vmt(n, I, v, c, p);
        return ((a[m] = U), U);
      }
      function Gmt(n, a, c) {
        const p = n.map(mR);
        for (; p.length > a.length; ) p.pop();
        for (; p.length < a.length; )
          p.push(EE(a[p.length]) || Uu(a[p.length]) || j_e(c));
        return p;
      }
      function Vmt(n, a, c, p, m) {
        const v = JW(a, c, Ir(n) ? 2 : 0),
          I = Lge(n, c, p, m | 4 | 8, v);
        return iY(c, I);
      }
      function jmt(n, a) {
        let c = -1,
          p = -1;
        for (let m = 0; m < n.length; m++) {
          const v = n[m],
            I = Ap(v);
          if (ng(v) || I >= a) return m;
          I > p && ((p = I), (c = m));
        }
        return c;
      }
      function Umt(n, a, c) {
        if (n.expression.kind === 108) {
          const U = ZY(n.expression);
          if (wr(U)) {
            for (const H of n.arguments) _o(H);
            return ur;
          }
          if (!pr(U)) {
            const H = lh(hd(n));
            if (H) {
              const Q = Bg(U, H.typeArguments, H);
              return QC(n, Q, a, c, 0);
            }
          }
          return WA(n);
        }
        let p,
          m = _o(n.expression);
        if (KE(n)) {
          const U = UW(m, n.expression);
          ((p = U === m ? 0 : LN(n) ? 16 : 8), (m = U));
        } else p = 0;
        if (((m = k6e(m, n.expression, lmt)), m === wt)) return Fn;
        const v = Du(m);
        if (pr(v)) return Ph(n);
        const I = na(v, 0),
          w = na(v, 1).length;
        if (W5(m, v, I.length, w))
          return (
            !pr(m) &&
              n.typeArguments &&
              Qe(n, f.Untyped_function_calls_may_not_accept_type_arguments),
            WA(n)
          );
        if (!I.length) {
          if (w)
            Qe(
              n,
              f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,
              ar(m),
            );
          else {
            let U;
            if (n.arguments.length === 1) {
              const H = Wn(n).text;
              eu(H.charCodeAt(La(H, n.expression.end, !0) - 1)) &&
                (U = Ar(n.expression, f.Are_you_missing_a_semicolon));
            }
            Wge(n.expression, v, 0, U);
          }
          return Ph(n);
        }
        return c & 8 && !n.typeArguments && I.some(Hmt)
          ? (H4e(n, c), Dr)
          : I.some((U) => Ir(U.declaration) && !!B9(U.declaration))
            ? (Qe(
                n,
                f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,
                ar(m),
              ),
              Ph(n))
            : QC(n, I, a, c, p);
      }
      function Hmt(n) {
        return !!(n.typeParameters && Cye(fs(n)));
      }
      function W5(n, a, c, p) {
        return (
          wr(n) ||
          (wr(a) && !!(n.flags & 262144)) ||
          (!c &&
            !p &&
            !(a.flags & 1048576) &&
            !(Pm(a).flags & 131072) &&
            aa(n, er))
        );
      }
      function qmt(n, a, c) {
        let p = $C(n.expression);
        if (p === wt) return Fn;
        if (((p = Du(p)), pr(p))) return Ph(n);
        if (wr(p))
          return (
            n.typeArguments &&
              Qe(n, f.Untyped_function_calls_may_not_accept_type_arguments),
            WA(n)
          );
        const m = na(p, 1);
        if (m.length) {
          if (!Jmt(n, m[0])) return Ph(n);
          if (l4e(m, (w) => !!(w.flags & 4)))
            return (
              Qe(n, f.Cannot_create_an_instance_of_an_abstract_class),
              Ph(n)
            );
          const I = p.symbol && cy(p.symbol);
          return I && di(I, 64)
            ? (Qe(n, f.Cannot_create_an_instance_of_an_abstract_class), Ph(n))
            : QC(n, m, a, c, 0);
        }
        const v = na(p, 0);
        if (v.length) {
          const I = QC(n, v, a, c, 0);
          return (
            ve ||
              (I.declaration &&
                !E_(I.declaration) &&
                fs(I) !== In &&
                Qe(
                  n,
                  f.Only_a_void_function_can_be_called_with_the_new_keyword,
                ),
              J0(I) === In &&
                Qe(
                  n,
                  f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void,
                )),
            I
          );
        }
        return (Wge(n.expression, p, 1), Ph(n));
      }
      function l4e(n, a) {
        return Mo(n)
          ? yt(n, (c) => l4e(c, a))
          : n.compositeKind === 1048576
            ? yt(n.compositeSignatures, a)
            : a(n);
      }
      function Oge(n, a) {
        const c = Zm(a);
        if (!et(c)) return !1;
        const p = c[0];
        if (p.flags & 2097152) {
          const m = p.types,
            v = tWe(m);
          let I = 0;
          for (const w of p.types) {
            if (!v[I] && Hr(w) & 3 && (w.symbol === n || Oge(n, w))) return !0;
            I++;
          }
          return !1;
        }
        return p.symbol === n ? !0 : Oge(n, p);
      }
      function Jmt(n, a) {
        if (!a || !a.declaration) return !0;
        const c = a.declaration,
          p = AI(c, 6);
        if (!p || c.kind !== 177) return !0;
        const m = cy(c.parent.symbol),
          v = qs(c.parent.symbol);
        if (!xye(n, m)) {
          const I = hd(n);
          if (I && p & 4) {
            const w = mR(I);
            if (Oge(c.parent.symbol, w)) return !0;
          }
          return (
            p & 2 &&
              Qe(
                n,
                f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,
                ar(v),
              ),
            p & 4 &&
              Qe(
                n,
                f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,
                ar(v),
              ),
            !1
          );
        }
        return !0;
      }
      function c4e(n, a, c) {
        let p;
        const m = c === 0,
          v = pR(a),
          I = v && na(v, c).length > 0;
        if (a.flags & 1048576) {
          const U = a.types;
          let H = !1;
          for (const Q of U)
            if (na(Q, c).length !== 0) {
              if (((H = !0), p)) break;
            } else if (
              (p ||
                ((p = qo(
                  p,
                  m
                    ? f.Type_0_has_no_call_signatures
                    : f.Type_0_has_no_construct_signatures,
                  ar(Q),
                )),
                (p = qo(
                  p,
                  m
                    ? f.Not_all_constituents_of_type_0_are_callable
                    : f.Not_all_constituents_of_type_0_are_constructable,
                  ar(a),
                ))),
              H)
            )
              break;
          (H ||
            (p = qo(
              void 0,
              m
                ? f.No_constituent_of_type_0_is_callable
                : f.No_constituent_of_type_0_is_constructable,
              ar(a),
            )),
            p ||
              (p = qo(
                p,
                m
                  ? f.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other
                  : f.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,
                ar(a),
              )));
        } else
          p = qo(
            p,
            m
              ? f.Type_0_has_no_call_signatures
              : f.Type_0_has_no_construct_signatures,
            ar(a),
          );
        let w = m
          ? f.This_expression_is_not_callable
          : f.This_expression_is_not_constructable;
        if (Zo(n.parent) && n.parent.arguments.length === 0) {
          const { resolvedSymbol: U } = Vr(n);
          U &&
            U.flags & 32768 &&
            (w =
              f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without);
        }
        return {
          messageChain: qo(p, w),
          relatedMessage: I ? f.Did_you_forget_to_use_await : void 0,
        };
      }
      function Wge(n, a, c, p) {
        const { messageChain: m, relatedMessage: v } = c4e(n, a, c),
          I = hg(Wn(n), n, m);
        if ((v && pa(I, Ar(n, v)), Zo(n.parent))) {
          const { start: w, length: U } = i4e(n.parent);
          ((I.start = w), (I.length = U));
        }
        (ns.add(I), d4e(a, c, p ? pa(I, p) : I));
      }
      function d4e(n, a, c) {
        if (!n.symbol) return;
        const p = Jr(n.symbol).originatingImport;
        if (p && !Qu(p)) {
          const m = na(_r(Jr(n.symbol).target), a);
          if (!m || !m.length) return;
          pa(
            c,
            Ar(
              p,
              f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead,
            ),
          );
        }
      }
      function Kmt(n, a, c) {
        const p = _o(n.tag),
          m = Du(p);
        if (pr(m)) return Ph(n);
        const v = na(m, 0),
          I = na(m, 1).length;
        if (W5(p, m, v.length, I)) return WA(n);
        if (!v.length) {
          if (Cd(n.parent)) {
            const w = Ar(
              n.tag,
              f.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked,
            );
            return (ns.add(w), Ph(n));
          }
          return (Wge(n.tag, m, 0), Ph(n));
        }
        return QC(n, v, a, c, 0);
      }
      function Xmt(n) {
        switch (n.parent.kind) {
          case 264:
          case 232:
            return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;
          case 170:
            return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;
          case 173:
            return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;
          case 175:
          case 178:
          case 179:
            return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;
          default:
            return C.fail();
        }
      }
      function Ymt(n, a, c) {
        const p = _o(n.expression),
          m = Du(p);
        if (pr(m)) return Ph(n);
        const v = na(m, 0),
          I = na(m, 1).length;
        if (W5(p, m, v.length, I)) return WA(n);
        if (Zmt(n, v) && !Ou(n.expression)) {
          const U = Al(n.expression, !1);
          return (
            Qe(
              n,
              f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,
              U,
            ),
            Ph(n)
          );
        }
        const w = Xmt(n);
        if (!v.length) {
          const U = c4e(n.expression, m, 0),
            H = qo(U.messageChain, w),
            Q = hg(Wn(n.expression), n.expression, H);
          return (
            U.relatedMessage && pa(Q, Ar(n.expression, U.relatedMessage)),
            ns.add(Q),
            d4e(m, 0, Q),
            Ph(n)
          );
        }
        return QC(n, v, a, c, 0, w);
      }
      function y$(n, a) {
        const c = OA(n),
          p = c && qp(c),
          m = p && Sd(p, _f.Element, 788968),
          v = m && be.symbolToEntityName(m, 788968, n),
          I = L.createFunctionTypeNode(
            void 0,
            [
              L.createParameterDeclaration(
                void 0,
                void 0,
                "props",
                void 0,
                be.typeToTypeNode(a, n),
              ),
            ],
            v
              ? L.createTypeReferenceNode(v, void 0)
              : L.createKeywordTypeNode(133),
          ),
          w = ja(1, "props");
        return (
          (w.links.type = a),
          y_(I, void 0, void 0, [w], m ? qs(m) : nt, void 0, 1, 0)
        );
      }
      function u4e(n) {
        const a = Vr(Wn(n));
        if (a.jsxFragmentType !== void 0) return a.jsxFragmentType;
        const c = qm(n);
        if (!((O.jsx === 2 || O.jsxFragmentFactory !== void 0) && c !== "null"))
          return (a.jsxFragmentType = Ue);
        const m = O.jsx !== 1 && O.jsx !== 3,
          v = ns
            ? f.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found
            : void 0,
          I = c$(n) ?? _t(n, c, m ? 111551 : 111167, v, !0);
        if (I === void 0) return (a.jsxFragmentType = nt);
        if (I.escapedName === FU.Fragment) return (a.jsxFragmentType = _r(I));
        const w = (I.flags & 2097152) === 0 ? I : ud(I),
          U = I && qp(w),
          H = U && Sd(U, FU.Fragment, 2),
          Q = H && _r(H);
        return (a.jsxFragmentType = Q === void 0 ? nt : Q);
      }
      function $mt(n, a, c) {
        const p = jm(n);
        let m;
        if (p) m = u4e(n);
        else {
          if (uR(n.tagName)) {
            const w = D6e(n),
              U = y$(n, w);
            return (
              NE(
                eN(n.attributes, i$(U, n), void 0, 0),
                w,
                n.tagName,
                n.attributes,
              ),
              et(n.typeArguments) &&
                (Ye(n.typeArguments, wa),
                ns.add(
                  qR(
                    Wn(n),
                    n.typeArguments,
                    f.Expected_0_type_arguments_but_got_1,
                    0,
                    et(n.typeArguments),
                  ),
                )),
              U
            );
          }
          m = _o(n.tagName);
        }
        const v = Du(m);
        if (pr(v)) return Ph(n);
        const I = x6e(m, n);
        return W5(m, v, I.length, 0)
          ? WA(n)
          : I.length === 0
            ? (p
                ? Qe(
                    n,
                    f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,
                    Al(n),
                  )
                : Qe(
                    n.tagName,
                    f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,
                    Al(n.tagName),
                  ),
              Ph(n))
            : QC(n, I, a, c, 0);
      }
      function Qmt(n, a, c) {
        const p = _o(n.right);
        if (!wr(p)) {
          const m = Zge(p);
          if (m) {
            const v = Du(m);
            if (pr(v)) return Ph(n);
            const I = na(v, 0),
              w = na(v, 1);
            if (W5(m, v, I.length, w.length)) return WA(n);
            if (I.length) return QC(n, I, a, c, 0);
          } else if (!(U$(p) || CE(p, er)))
            return (
              Qe(
                n.right,
                f.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method,
              ),
              Ph(n)
            );
        }
        return ur;
      }
      function Zmt(n, a) {
        return (
          a.length &&
          Vn(
            a,
            (c) =>
              c.minArgumentCount === 0 &&
              !su(c) &&
              c.parameters.length < r4e(n, c),
          )
        );
      }
      function eht(n, a, c) {
        switch (n.kind) {
          case 214:
            return Umt(n, a, c);
          case 215:
            return qmt(n, a, c);
          case 216:
            return Kmt(n, a, c);
          case 171:
            return Ymt(n, a, c);
          case 290:
          case 287:
          case 286:
            return $mt(n, a, c);
          case 227:
            return Qmt(n, a, c);
        }
        C.assertNever(n, "Branch in 'resolveSignature' should be unreachable.");
      }
      function ZC(n, a, c) {
        const p = Vr(n),
          m = p.resolvedSignature;
        if (m && m !== Dr && !a) return m;
        const v = Sv;
        (m || (Sv = Mg.length), (p.resolvedSignature = Dr));
        const I = eht(n, a, c || 0);
        return (
          (Sv = v),
          I !== Dr && (p.resolvedSignature = Lr === Yn ? I : m),
          I
        );
      }
      function E_(n) {
        var a;
        if (!n || !Ir(n)) return !1;
        const c =
          Zl(n) || Us(n)
            ? n
            : (yi(n) || Cc(n)) && n.initializer && Us(n.initializer)
              ? n.initializer
              : void 0;
        if (c) {
          if (B9(n)) return !0;
          if (Cc(zm(c.parent))) return !1;
          const p = Wr(c);
          return !!((a = p?.members) != null && a.size);
        }
        return !1;
      }
      function Fge(n, a) {
        var c, p;
        if (a) {
          const m = Jr(a);
          if (!m.inferredClassSymbol || !m.inferredClassSymbol.has(Ta(n))) {
            const v = pg(n) ? n : uE(n);
            return (
              (v.exports = v.exports || da()),
              (v.members = v.members || da()),
              (v.flags |= a.flags & 32),
              (c = a.exports) != null && c.size && m_(v.exports, a.exports),
              (p = a.members) != null && p.size && m_(v.members, a.members),
              (
                m.inferredClassSymbol || (m.inferredClassSymbol = new Map())
              ).set(Ta(v), v),
              v
            );
          }
          return m.inferredClassSymbol.get(Ta(n));
        }
      }
      function tht(n) {
        var a;
        const c = n && v$(n, !0),
          p = (a = c?.exports) == null ? void 0 : a.get("prototype"),
          m = p?.valueDeclaration && nht(p.valueDeclaration);
        return m ? Wr(m) : void 0;
      }
      function v$(n, a) {
        if (!n.parent) return;
        let c, p;
        if (yi(n.parent) && n.parent.initializer === n) {
          if (!Ir(n) && !(b8(n.parent) && Ms(n))) return;
          ((c = n.parent.name), (p = n.parent));
        } else if (Nr(n.parent)) {
          const m = n.parent,
            v = n.parent.operatorToken.kind;
          if (v === 64 && (a || m.right === n)) ((c = m.left), (p = c));
          else if (
            (v === 57 || v === 61) &&
            (yi(m.parent) && m.parent.initializer === m
              ? ((c = m.parent.name), (p = m.parent))
              : Nr(m.parent) &&
                m.parent.operatorToken.kind === 64 &&
                (a || m.parent.right === m) &&
                ((c = m.parent.left), (p = c)),
            !c || !a1(c) || !QR(c, m.left))
          )
            return;
        } else a && Zl(n) && ((c = n.name), (p = n));
        if (!(!p || !c || (!a && !zT(n, Ab(c))))) return If(p);
      }
      function nht(n) {
        if (!n.parent) return !1;
        let a = n.parent;
        for (; a && a.kind === 212; ) a = a.parent;
        if (a && Nr(a) && Ab(a.left) && a.operatorToken.kind === 64) {
          const c = OG(a);
          return Wa(c) && c;
        }
      }
      function rht(n, a) {
        var c, p, m;
        aB(n, n.typeArguments);
        const v = ZC(n, void 0, a);
        if (v === Dr) return wt;
        if ((b$(v, n), n.expression.kind === 108)) return In;
        if (n.kind === 215) {
          const w = v.declaration;
          if (
            w &&
            w.kind !== 177 &&
            w.kind !== 181 &&
            w.kind !== 186 &&
            !(
              fv(w) &&
              ((p = (c = tD(w)) == null ? void 0 : c.parent) == null
                ? void 0
                : p.kind) === 177
            ) &&
            !bI(w) &&
            !E_(w)
          )
            return (
              ve &&
                Qe(
                  n,
                  f.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type,
                ),
              Ue
            );
        }
        if (Ir(n) && h4e(n)) return vWe(n.arguments[0]);
        const I = fs(v);
        if (I.flags & 12288 && p4e(n)) return s_e(zm(n.parent));
        if (
          n.kind === 214 &&
          !n.questionDotToken &&
          n.parent.kind === 245 &&
          I.flags & 16384 &&
          nm(v)
        ) {
          if (!Wk(n.expression))
            Qe(
              n.expression,
              f.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name,
            );
          else if (!S5(n)) {
            const w = Qe(
              n.expression,
              f.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation,
            );
            T5(n.expression, w);
          }
        }
        if (Ir(n)) {
          const w = v$(n, !1);
          if ((m = w?.exports) != null && m.size) {
            const U = bl(w, w.exports, ae, ae, ae);
            return ((U.objectFlags |= 4096), Ma([I, U]));
          }
        }
        return I;
      }
      function b$(n, a) {
        if (
          !(n.flags & 128) &&
          n.declaration &&
          n.declaration.flags & 536870912
        ) {
          const c = F5(a),
            p = zk($F(a));
          C0(c, n.declaration, p, aT(n));
        }
      }
      function F5(n) {
        switch (((n = us(n)), n.kind)) {
          case 214:
          case 171:
          case 215:
            return F5(n.expression);
          case 216:
            return F5(n.tag);
          case 287:
          case 286:
            return F5(n.tagName);
          case 213:
            return n.argumentExpression;
          case 212:
            return n.name;
          case 184:
            const a = n;
            return ku(a.typeName) ? a.typeName.right : a;
          default:
            return n;
        }
      }
      function p4e(n) {
        if (!Zo(n)) return !1;
        let a = n.expression;
        if (
          (qr(a) && a.name.escapedText === "for" && (a = a.expression),
          !He(a) || a.escapedText !== "Symbol")
        )
          return !1;
        const c = BWe(!1);
        return c ? c === _t(a, "Symbol", 111551, void 0, !1) : !1;
      }
      function iht(n) {
        if ((xbt(n), n.arguments.length === 0)) return j5(n, Ue);
        const a = n.arguments[0],
          c = Vl(a),
          p = n.arguments.length > 1 ? Vl(n.arguments[1]) : void 0;
        for (let v = 2; v < n.arguments.length; ++v) Vl(n.arguments[v]);
        if (
          ((c.flags & 32768 || c.flags & 65536 || !aa(c, gt)) &&
            Qe(
              a,
              f.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,
              ar(c),
            ),
          p)
        ) {
          const v = zWe(!0);
          v !== Ra && $d(p, h5(v, 32768), n.arguments[1]);
        }
        const m = uu(n, a);
        if (m) {
          const v = Wg(m, a, !0, !1);
          if (v) return j5(n, f4e(_r(v), v, m, a) || m4e(_r(v), v, m, a));
        }
        return j5(n, Ue);
      }
      function zge(n, a, c) {
        const p = da(),
          m = ja(2097152, "default");
        return (
          (m.parent = a),
          (m.links.nameType = Sp("default")),
          (m.links.aliasTarget = mc(n)),
          p.set("default", m),
          bl(c, p, ae, ae, ae)
        );
      }
      function f4e(n, a, c, p) {
        if (eT(p) && n && !pr(n)) {
          const v = n;
          if (!v.defaultOnlyType) {
            const I = zge(a, c);
            v.defaultOnlyType = I;
          }
          return v.defaultOnlyType;
        }
      }
      function m4e(n, a, c, p) {
        var m;
        if (ye && n && !pr(n)) {
          const v = n;
          if (!v.syntheticType) {
            const I = (m = c.declarations) == null ? void 0 : m.find(Yi);
            if (k0(I, c, !1, p)) {
              const U = ja(2048, "__type"),
                H = zge(a, c, U);
              ((U.links.type = H),
                (v.syntheticType = C5(n) ? xE(n, H, U, 0, !1) : H));
            } else v.syntheticType = n;
          }
          return v.syntheticType;
        }
        return n;
      }
      function h4e(n) {
        if (!Zu(n, !0)) return !1;
        if (!He(n.expression)) return C.fail();
        const a = _t(
          n.expression,
          n.expression.escapedText,
          111551,
          void 0,
          !0,
        );
        if (a === je) return !0;
        if (a.flags & 2097152) return !1;
        const c = a.flags & 16 ? 263 : a.flags & 3 ? 261 : 0;
        if (c !== 0) {
          const p = al(a, c);
          return !!p && !!(p.flags & 33554432);
        }
        return !1;
      }
      function oht(n) {
        (Zvt(n) || aB(n, n.typeArguments),
          G < ed.TaggedTemplates && $c(n, 262144));
        const a = ZC(n);
        return (b$(a, n), fs(a));
      }
      function aht(n, a) {
        if (n.kind === 217) {
          const c = Wn(n);
          if (
            (c &&
              $l(c.fileName, [".cts", ".mts"]) &&
              Cn(
                n,
                f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead,
              ),
            O.erasableSyntaxOnly)
          ) {
            const p = La(c.text, n.pos),
              m = n.expression.pos;
            ns.add(
              Oc(
                c,
                p,
                m - p,
                f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled,
              ),
            );
          }
        }
        return _4e(n, a);
      }
      function Bge(n) {
        switch (n.kind) {
          case 11:
          case 15:
          case 9:
          case 10:
          case 112:
          case 97:
          case 210:
          case 211:
          case 229:
            return !0;
          case 218:
            return Bge(n.expression);
          case 225:
            const a = n.operator,
              c = n.operand;
            return (
              (a === 41 && (c.kind === 9 || c.kind === 10)) ||
              (a === 40 && c.kind === 9)
            );
          case 212:
          case 213:
            const p = us(n.expression),
              m = Ds(p) ? Gl(p, 111551, !0) : void 0;
            return !!(m && m.flags & 384);
        }
        return !1;
      }
      function _4e(n, a) {
        const { type: c, expression: p } = g4e(n),
          m = _o(p, a);
        if (Om(c))
          return (
            Bge(p) ||
              Qe(
                p,
                f.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals,
              ),
            Cu(m)
          );
        const v = Vr(n);
        return ((v.assertionExpressionType = m), wa(c), fR(n), Ji(c));
      }
      function g4e(n) {
        let a, c;
        switch (n.kind) {
          case 235:
          case 217:
            ((a = n.type), (c = n.expression));
            break;
          case 218:
            ((a = MD(n)), (c = n.expression));
            break;
        }
        return { type: a, expression: c };
      }
      function sht(n) {
        const { type: a } = g4e(n),
          c = Ou(n) ? a : n,
          p = Vr(n);
        C.assertIsDefined(p.assertionExpressionType);
        const m = qW(zy(p.assertionExpressionType)),
          v = Ji(a);
        pr(v) ||
          r(() => {
            const I = $p(m);
            AY(v, I) ||
              V8e(
                m,
                v,
                c,
                f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first,
              );
          });
      }
      function lht(n) {
        const a = _o(n.expression),
          c = UW(a, n.expression);
        return OY(By(c), n, c !== a);
      }
      function cht(n) {
        return n.flags & 64 ? lht(n) : By(_o(n.expression));
      }
      function y4e(n) {
        if ((d7e(n), Ye(n.typeArguments, wa), n.kind === 234)) {
          const c = zm(n.parent);
          c.kind === 227 &&
            c.operatorToken.kind === 104 &&
            xS(n, c.right) &&
            Qe(
              n,
              f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression,
            );
        }
        const a =
          n.kind === 234
            ? _o(n.expression)
            : Eb(n.exprName)
              ? x5(n.exprName)
              : _o(n.exprName);
        return v4e(a, n);
      }
      function v4e(n, a) {
        const c = a.typeArguments;
        if (n === wt || pr(n) || !yt(c)) return n;
        const p = Vr(a);
        if (
          (p.instantiationExpressionTypes ||
            (p.instantiationExpressionTypes = new Map()),
          p.instantiationExpressionTypes.has(n.id))
        )
          return p.instantiationExpressionTypes.get(n.id);
        let m = !1,
          v;
        const I = U(n);
        p.instantiationExpressionTypes.set(n.id, I);
        const w = m ? v : n;
        return (
          w &&
            ns.add(
              qR(
                Wn(a),
                c,
                f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,
                ar(w),
              ),
            ),
          I
        );
        function U(Q) {
          let Ie = !1,
            Te = !1;
          const Ze = Tt(Q);
          return (m || (m = Te), Ie && !Te && (v ?? (v = Q)), Ze);
          function Tt(Dt) {
            if (Dt.flags & 524288) {
              const $t = Dh(Dt),
                Tn = H($t.callSignatures),
                nr = H($t.constructSignatures);
              if (
                (Ie ||
                  (Ie =
                    $t.callSignatures.length !== 0 ||
                    $t.constructSignatures.length !== 0),
                Te || (Te = Tn.length !== 0 || nr.length !== 0),
                Tn !== $t.callSignatures || nr !== $t.constructSignatures)
              ) {
                const yr = bl(
                  ja(0, "__instantiationExpression"),
                  $t.members,
                  Tn,
                  nr,
                  $t.indexInfos,
                );
                return ((yr.objectFlags |= 8388608), (yr.node = a), yr);
              }
            } else if (Dt.flags & 58982400) {
              const $t = Ld(Dt);
              if ($t) {
                const Tn = Tt($t);
                if (Tn !== $t) return Tn;
              }
            } else {
              if (Dt.flags & 1048576) return Tl(Dt, U);
              if (Dt.flags & 2097152) return Ma(Zi(Dt.types, Tt));
            }
            return Dt;
          }
        }
        function H(Q) {
          const Ie = Un(Q, (Te) => !!Te.typeParameters && Pge(Te, c));
          return Zi(Ie, (Te) => {
            const Ze = wge(Te, c, !0);
            return Ze ? PW(Te, Ze, Ir(Te.declaration)) : Te;
          });
        }
      }
      function dht(n) {
        return (wa(n.type), Gge(n.expression, n.type));
      }
      function Gge(n, a, c) {
        const p = _o(n, c),
          m = Ji(a);
        if (pr(m)) return m;
        const v = Dn(a.parent, (I) => I.kind === 239 || I.kind === 351);
        return (
          NE(p, m, v, n, f.Type_0_does_not_satisfy_the_expected_type_1),
          p
        );
      }
      function uht(n) {
        return (
          hbt(n),
          n.keywordToken === 105
            ? Vge(n)
            : n.keywordToken === 102
              ? n.name.escapedText === "defer"
                ? (C.assert(
                    !Zo(n.parent) || n.parent.expression !== n,
                    "Trying to get the type of `import.defer` in `import.defer(...)`",
                  ),
                  nt)
                : pht(n)
              : C.assertNever(n.keywordToken)
        );
      }
      function b4e(n) {
        switch (n.keywordToken) {
          case 102:
            return FWe();
          case 105:
            const a = Vge(n);
            return pr(a) ? nt : Cht(a);
          default:
            C.assertNever(n.keywordToken);
        }
      }
      function Vge(n) {
        const a = ane(n);
        if (a)
          if (a.kind === 177) {
            const c = Wr(a.parent);
            return _r(c);
          } else {
            const c = Wr(a);
            return _r(c);
          }
        else
          return (
            Qe(
              n,
              f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,
              "new.target",
            ),
            nt
          );
      }
      function pht(n) {
        100 <= j && j <= 199
          ? Wn(n).impliedNodeFormat !== 99 &&
            Qe(
              n,
              f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output,
            )
          : j < 6 &&
            j !== 4 &&
            Qe(
              n,
              f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext,
            );
        const a = Wn(n);
        return (
          C.assert(
            !!(a.flags & 8388608),
            "Containing file is missing import meta node flag.",
          ),
          n.name.escapedText === "meta" ? WWe() : nt
        );
      }
      function z5(n) {
        const a = n.valueDeclaration;
        return pu(_r(n), !1, !!a && (Zy(a) || wI(a)));
      }
      function jge(n, a, c) {
        switch (n.name.kind) {
          case 80: {
            const p = n.name.escapedText;
            return n.dotDotDotToken
              ? c & 12
                ? p
                : `${p}_${a}`
              : c & 3
                ? p
                : `${p}_n`;
          }
          case 208: {
            if (n.dotDotDotToken) {
              const p = n.name.elements,
                m = ni(Zs(p), Ha),
                v = p.length - (m?.dotDotDotToken ? 1 : 0);
              if (a < v) {
                const I = p[a];
                if (Ha(I)) return jge(I, a, c);
              } else if (m?.dotDotDotToken) return jge(m, a - v, c);
            }
            break;
          }
        }
        return `arg_${a}`;
      }
      function Uge(n, a = 0, c = 3, p) {
        if (!n) {
          const m = ni(p?.valueDeclaration, to);
          return m ? jge(m, a, c) : `${p?.escapedName ?? "arg"}_${a}`;
        }
        return (C.assert(He(n.name)), n.name.escapedText);
      }
      function kL(n, a, c) {
        var p;
        const m = n.parameters.length - (su(n) ? 1 : 0);
        if (a < m) return n.parameters[a].escapedName;
        const v = n.parameters[m] || ne,
          I = c || _r(v);
        if (Ka(I)) {
          const w = I.target,
            U = a - m,
            H = (p = w.labeledElementDeclarations) == null ? void 0 : p[U],
            Q = w.elementFlags[U];
          return Uge(H, U, Q, v);
        }
        return v.escapedName;
      }
      function fht(n, a) {
        var c;
        if (((c = n.declaration) == null ? void 0 : c.kind) === 318) return;
        const p = n.parameters.length - (su(n) ? 1 : 0);
        if (a < p) {
          const w = n.parameters[a],
            U = T4e(w);
          return U
            ? {
                parameter: U,
                parameterName: w.escapedName,
                isRestParameter: !1,
              }
            : void 0;
        }
        const m = n.parameters[p] || ne,
          v = T4e(m);
        if (!v) return;
        const I = _r(m);
        if (Ka(I)) {
          const w = I.target.labeledElementDeclarations,
            U = a - p,
            H = w?.[U],
            Q = !!H?.dotDotDotToken;
          return H
            ? (C.assert(He(H.name)),
              {
                parameter: H.name,
                parameterName: H.name.escapedText,
                isRestParameter: Q,
              })
            : void 0;
        }
        if (a === p)
          return {
            parameter: v,
            parameterName: m.escapedName,
            isRestParameter: !0,
          };
      }
      function T4e(n) {
        return (
          n.valueDeclaration &&
          to(n.valueDeclaration) &&
          He(n.valueDeclaration.name) &&
          n.valueDeclaration.name
        );
      }
      function S4e(n) {
        return n.kind === 203 || (to(n) && n.name && He(n.name));
      }
      function mht(n, a) {
        const c = n.parameters.length - (su(n) ? 1 : 0);
        if (a < c) {
          const v = n.parameters[a].valueDeclaration;
          return v && S4e(v) ? v : void 0;
        }
        const p = n.parameters[c] || ne,
          m = _r(p);
        if (Ka(m)) {
          const v = m.target.labeledElementDeclarations,
            I = a - c;
          return v && v[I];
        }
        return p.valueDeclaration && S4e(p.valueDeclaration)
          ? p.valueDeclaration
          : void 0;
      }
      function Lh(n, a) {
        return kE(n, a) || Ue;
      }
      function kE(n, a) {
        const c = n.parameters.length - (su(n) ? 1 : 0);
        if (a < c) return z5(n.parameters[a]);
        if (su(n)) {
          const p = _r(n.parameters[c]),
            m = a - c;
          if (!Ka(p) || p.target.combinedFlags & 12 || m < p.target.fixedLength)
            return Xp(p, Ch(m));
        }
      }
      function B5(n, a, c) {
        const p = Ap(n),
          m = kh(n),
          v = o8(n);
        if (v && a >= p - 1) return a === p - 1 ? v : Yd(Xp(v, Bt));
        const I = [],
          w = [],
          U = [];
        for (let H = a; H < p; H++)
          (!v || H < p - 1
            ? (I.push(Lh(n, H)), w.push(H < m ? 1 : 2))
            : (I.push(v), w.push(8)),
            U.push(mht(n, H)));
        return eg(I, w, c, U);
      }
      function E4e(n, a) {
        const c = B5(n, a),
          p = c && m5(c);
        return p && wr(p) ? Ue : c;
      }
      function Ap(n) {
        const a = n.parameters.length;
        if (su(n)) {
          const c = _r(n.parameters[a - 1]);
          if (Ka(c))
            return (
              a + c.target.fixedLength - (c.target.combinedFlags & 12 ? 0 : 1)
            );
        }
        return a;
      }
      function kh(n, a) {
        const c = a & 1,
          p = a & 2;
        if (p || n.resolvedMinArgumentCount === void 0) {
          let m;
          if (su(n)) {
            const v = _r(n.parameters[n.parameters.length - 1]);
            if (Ka(v)) {
              const I = ho(v.target.elementFlags, (U) => !(U & 1)),
                w = I < 0 ? v.target.fixedLength : I;
              w > 0 && (m = n.parameters.length - 1 + w);
            }
          }
          if (m === void 0) {
            if (!c && n.flags & 32) return 0;
            m = n.minArgumentCount;
          }
          if (p) return m;
          for (let v = m - 1; v >= 0; v--) {
            const I = Lh(n, v);
            if (Ec(I, X6e).flags & 131072) break;
            m = v;
          }
          n.resolvedMinArgumentCount = m;
        }
        return n.resolvedMinArgumentCount;
      }
      function ng(n) {
        if (su(n)) {
          const a = _r(n.parameters[n.parameters.length - 1]);
          return !Ka(a) || !!(a.target.combinedFlags & 12);
        }
        return !1;
      }
      function o8(n) {
        if (su(n)) {
          const a = _r(n.parameters[n.parameters.length - 1]);
          if (!Ka(a)) return wr(a) ? bd : a;
          if (a.target.combinedFlags & 12) return IL(a, a.target.fixedLength);
        }
      }
      function a8(n) {
        const a = o8(n);
        return a && !im(a) && !wr(a) ? a : void 0;
      }
      function Hge(n) {
        return qge(n, yn);
      }
      function qge(n, a) {
        return n.parameters.length > 0 ? Lh(n, 0) : a;
      }
      function A4e(n, a, c) {
        const p = n.parameters.length - (su(n) ? 1 : 0);
        for (let v = 0; v < p; v++) {
          const I = n.parameters[v].valueDeclaration,
            w = xc(I);
          if (w) {
            const U = pu(Ji(w), !1, wI(I)),
              H = Lh(a, v);
            qg(c.inferences, U, H);
          }
        }
        const m = n.declaration && kp(n.declaration);
        if (m) {
          const v = Ji(m),
            I = fs(a);
          qg(c.inferences, v, I);
        }
      }
      function hht(n, a) {
        if (a.typeParameters)
          if (!n.typeParameters) n.typeParameters = a.typeParameters;
          else return;
        if (a.thisParameter) {
          const p = n.thisParameter;
          (!p || (p.valueDeclaration && !p.valueDeclaration.type)) &&
            (p || (n.thisParameter = NA(a.thisParameter, void 0)),
            G5(n.thisParameter, _r(a.thisParameter)));
        }
        const c = n.parameters.length - (su(n) ? 1 : 0);
        for (let p = 0; p < c; p++) {
          const m = n.parameters[p],
            v = m.valueDeclaration;
          if (!xc(v)) {
            let I = kE(a, p);
            if (I && v.initializer) {
              let w = wL(v, 0);
              !aa(w, I) && aa(I, (w = tye(v, w))) && (I = w);
            }
            G5(m, I);
          }
        }
        if (su(n)) {
          const p = Ba(n.parameters);
          if (p.valueDeclaration ? !xc(p.valueDeclaration) : Wl(p) & 65536) {
            const m = B5(a, c);
            G5(p, m);
          }
        }
      }
      function _ht(n) {
        n.thisParameter && G5(n.thisParameter);
        for (const a of n.parameters) G5(a);
      }
      function G5(n, a) {
        const c = Jr(n);
        if (c.type)
          a &&
            C.assertEqual(
              c.type,
              a,
              "Parameter symbol already has a cached type which differs from newly assigned type",
            );
        else {
          const p = n.valueDeclaration;
          ((c.type = pu(
            a || (p ? Qx(p, !0) : _r(n)),
            !1,
            !!p && !p.initializer && wI(p),
          )),
            p &&
              p.name.kind !== 80 &&
              (c.type === Nt && (c.type = fL(p.name)), I4e(p.name, c.type)));
        }
      }
      function I4e(n, a) {
        for (const c of n.elements)
          if (!Jc(c)) {
            const p = sT(c, a, !1);
            c.name.kind === 80 ? (Jr(Wr(c)).type = p) : I4e(c.name, p);
          }
      }
      function ght(n) {
        return GC(Ect(!0), [n]);
      }
      function yht(n, a) {
        return GC(Act(!0), [n, a]);
      }
      function vht(n, a) {
        return GC(Ict(!0), [n, a]);
      }
      function bht(n, a) {
        return GC(xct(!0), [n, a]);
      }
      function Tht(n, a) {
        return GC(Rct(!0), [n, a]);
      }
      function Sht(n, a) {
        return GC(Nct(!0), [n, a]);
      }
      function Eht(n, a, c) {
        const p = `${a ? "p" : "P"}${c ? "s" : "S"}${n.id}`;
        let m = Uo.get(p);
        if (!m) {
          const v = da();
          (v.set("name", xv("name", n)),
            v.set("private", xv("private", a ? ft : tr)),
            v.set("static", xv("static", c ? ft : tr)),
            (m = bl(void 0, v, ae, ae, ae)),
            Uo.set(p, m));
        }
        return m;
      }
      function x4e(n, a, c) {
        const p = wc(n),
          m = eo(n.name),
          v = m ? Sp(Kr(n.name)) : ky(n.name),
          I = Nl(n)
            ? yht(a, c)
            : Hf(n)
              ? vht(a, c)
              : gp(n)
                ? bht(a, c)
                : Yu(n)
                  ? Tht(a, c)
                  : Po(n)
                    ? Sht(a, c)
                    : C.failBadSyntaxKind(n),
          w = Eht(v, m, p);
        return Ma([I, w]);
      }
      function Aht(n, a) {
        return GC(Dct(!0), [n, a]);
      }
      function Iht(n, a) {
        return GC(Cct(!0), [n, a]);
      }
      function xht(n, a) {
        const c = Ef("this", n),
          p = Ef("value", a);
        return lye(void 0, c, [p], a, void 0, 1);
      }
      function Jge(n, a, c) {
        const p = Ef("target", n),
          m = Ef("context", a),
          v = pi([c, In]);
        return f8(void 0, void 0, [p, m], v);
      }
      function Rht(n) {
        const { parent: a } = n,
          c = Vr(a);
        if (!c.decoratorSignature)
          switch (((c.decoratorSignature = ur), a.kind)) {
            case 264:
            case 232: {
              const m = _r(Wr(a)),
                v = ght(m);
              c.decoratorSignature = Jge(m, v, m);
              break;
            }
            case 175:
            case 178:
            case 179: {
              const p = a;
              if (!ui(p.parent)) break;
              const m = Nl(p) ? TA(Df(p)) : mR(p),
                v = wc(p) ? _r(Wr(p.parent)) : tm(Wr(p.parent)),
                I = Hf(p) ? o3e(m) : gp(p) ? a3e(m) : m,
                w = x4e(p, v, m),
                U = Hf(p) ? o3e(m) : gp(p) ? a3e(m) : m;
              c.decoratorSignature = Jge(I, w, U);
              break;
            }
            case 173: {
              const p = a;
              if (!ui(p.parent)) break;
              const m = mR(p),
                v = wc(p) ? _r(Wr(p.parent)) : tm(Wr(p.parent)),
                I = Kh(p) ? Aht(v, m) : he,
                w = x4e(p, v, m),
                U = Kh(p) ? Iht(v, m) : xht(v, m);
              c.decoratorSignature = Jge(I, w, U);
              break;
            }
          }
        return c.decoratorSignature === ur ? void 0 : c.decoratorSignature;
      }
      function Dht(n) {
        const { parent: a } = n,
          c = Vr(a);
        if (!c.decoratorSignature)
          switch (((c.decoratorSignature = ur), a.kind)) {
            case 264:
            case 232: {
              const m = _r(Wr(a)),
                v = Ef("target", m);
              c.decoratorSignature = f8(void 0, void 0, [v], pi([m, In]));
              break;
            }
            case 170: {
              const p = a;
              if (
                (!Ml(p.parent) &&
                  !(Nl(p.parent) || (gp(p.parent) && ui(p.parent.parent)))) ||
                CS(p.parent) === p
              )
                break;
              const m = CS(p.parent)
                ? p.parent.parameters.indexOf(p) - 1
                : p.parent.parameters.indexOf(p);
              C.assert(m >= 0);
              const v = Ml(p.parent) ? _r(Wr(p.parent.parent)) : Q3e(p.parent),
                I = Ml(p.parent) ? he : Z3e(p.parent),
                w = Ch(m),
                U = Ef("target", v),
                H = Ef("propertyKey", I),
                Q = Ef("parameterIndex", w);
              c.decoratorSignature = f8(void 0, void 0, [U, H, Q], In);
              break;
            }
            case 175:
            case 178:
            case 179:
            case 173: {
              const p = a;
              if (!ui(p.parent)) break;
              const m = Q3e(p),
                v = Ef("target", m),
                I = Z3e(p),
                w = Ef("propertyKey", I),
                U = Po(p) ? In : JWe(mR(p));
              if (!Po(a) || Kh(a)) {
                const Q = JWe(mR(p)),
                  Ie = Ef("descriptor", Q);
                c.decoratorSignature = f8(
                  void 0,
                  void 0,
                  [v, w, Ie],
                  pi([U, In]),
                );
              } else
                c.decoratorSignature = f8(void 0, void 0, [v, w], pi([U, In]));
              break;
            }
          }
        return c.decoratorSignature === ur ? void 0 : c.decoratorSignature;
      }
      function Kge(n) {
        return J ? Dht(n) : Rht(n);
      }
      function V5(n) {
        const a = $z(!0);
        return a !== Zt ? ((n = jy(zL(n)) || Nt), Ly(a, [n])) : Nt;
      }
      function R4e(n) {
        const a = VWe(!0);
        return a !== Zt ? ((n = jy(zL(n)) || Nt), Ly(a, [n])) : Nt;
      }
      function j5(n, a) {
        const c = V5(a);
        return c === Nt
          ? (Qe(
              n,
              Qu(n)
                ? f.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option
                : f.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option,
            ),
            nt)
          : (Bhe(!0) ||
              Qe(
                n,
                Qu(n)
                  ? f.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option
                  : f.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option,
              ),
            c);
      }
      function Cht(n) {
        const a = ja(0, "NewTargetExpression"),
          c = ja(4, "target", 8);
        ((c.parent = a), (c.links.type = n));
        const p = da([c]);
        return ((a.members = p), bl(a, p, ae, ae, ae));
      }
      function T$(n, a) {
        if (!n.body) return nt;
        const c = cc(n),
          p = (c & 2) !== 0,
          m = (c & 1) !== 0;
        let v,
          I,
          w,
          U = In;
        if (n.body.kind !== 242)
          ((v = Vl(n.body, a && a & -9)),
            p &&
              (v = zL(
                X5(
                  v,
                  !1,
                  n,
                  f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member,
                ),
              )));
        else if (m) {
          const H = M4e(n, a);
          H ? H.length > 0 && (v = pi(H, 2)) : (U = yn);
          const { yieldTypes: Q, nextTypes: Ie } = Nht(n, a);
          ((I = yt(Q) ? pi(Q, 2) : void 0), (w = yt(Ie) ? Ma(Ie) : void 0));
        } else {
          const H = M4e(n, a);
          if (!H) return c & 2 ? j5(n, yn) : yn;
          if (H.length === 0) {
            const Q = e$(n, void 0),
              Ie = Q && (tB(Q, c) || In).flags & 32768 ? he : In;
            return c & 2 ? j5(n, Ie) : Ie;
          }
          v = pi(H, 2);
        }
        if (v || I || w) {
          if (
            (I && BY(n, I, 3),
            v && BY(n, v, 1),
            w && BY(n, w, 2),
            (v && Nh(v)) || (I && Nh(I)) || (w && Nh(w)))
          ) {
            const H = o$(n),
              Q = H
                ? H === Df(n)
                  ? m
                    ? void 0
                    : v
                  : n$(fs(H), n, void 0)
                : void 0;
            m
              ? ((I = C_e(I, Q, 0, p)),
                (v = C_e(v, Q, 1, p)),
                (w = C_e(w, Q, 2, p)))
              : (v = Eut(v, Q, p));
          }
          (I && (I = $p(I)), v && (v = $p(v)), w && (w = $p(w)));
        }
        return m
          ? S$(I || yn, v || U, w || l6e(2, n) || Nt, p)
          : p
            ? V5(v || U)
            : v || U;
      }
      function S$(n, a, c, p) {
        const m = p ? fc : Hs,
          v = m.getGlobalGeneratorType(!1);
        if (
          ((n = m.resolveIterationType(n, void 0) || Nt),
          (a = m.resolveIterationType(a, void 0) || Nt),
          v === Zt)
        ) {
          const I = m.getGlobalIterableIteratorType(!1);
          return I !== Zt
            ? AL(I, [n, a, c])
            : (m.getGlobalIterableIteratorType(!0), Ra);
        }
        return AL(v, [n, a, c]);
      }
      function Nht(n, a) {
        const c = [],
          p = [],
          m = (cc(n) & 2) !== 0;
        return (
          Yte(n.body, (v) => {
            const I = v.expression ? _o(v.expression, a) : B;
            kf(c, D4e(v, I, Ue, m));
            let w;
            if (v.asteriskToken) {
              const U = k$(I, m ? 19 : 17, v.expression);
              w = U && U.nextType;
            } else w = Hu(v, void 0);
            w && kf(p, w);
          }),
          { yieldTypes: c, nextTypes: p }
        );
      }
      function D4e(n, a, c, p) {
        if (a === wt) return wt;
        const m = n.expression || n,
          v = n.asteriskToken ? Hv(p ? 19 : 17, a, c, m) : a;
        return p
          ? pR(
              v,
              m,
              n.asteriskToken
                ? f.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
                : f.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member,
            )
          : v;
      }
      function C4e(n, a, c) {
        let p = 0;
        for (let m = 0; m < c.length; m++) {
          const v = m < n || m >= a ? c[m] : void 0;
          p |= v !== void 0 ? cae.get(v) || 32768 : 0;
        }
        return p;
      }
      function N4e(n) {
        const a = Vr(n);
        if (a.isExhaustive === void 0) {
          a.isExhaustive = 0;
          const c = Mht(n);
          a.isExhaustive === 0 && (a.isExhaustive = c);
        } else a.isExhaustive === 0 && (a.isExhaustive = !1);
        return a.isExhaustive;
      }
      function Mht(n) {
        if (n.expression.kind === 222) {
          const p = LFe(n);
          if (!p) return !1;
          const m = v_(Vl(n.expression.expression)),
            v = C4e(0, 0, p);
          return m.flags & 3
            ? (556800 & v) === 556800
            : !am(m, (I) => JC(I, v) === v);
        }
        const a = v_(Vl(n.expression));
        if (!jW(a)) return !1;
        const c = HY(n);
        return !c.length || yt(c, but) ? !1 : ypt(Tl(a, Cu), c);
      }
      function Xge(n) {
        return n.endFlowNode && E5(n.endFlowNode);
      }
      function M4e(n, a) {
        const c = cc(n),
          p = [];
        let m = Xge(n),
          v = !1;
        if (
          (vb(n.body, (I) => {
            let w = I.expression;
            if (w) {
              if (
                ((w = us(w, !0)),
                c & 2 && w.kind === 224 && (w = us(w.expression, !0)),
                w.kind === 214 &&
                  w.expression.kind === 80 &&
                  Vl(w.expression).symbol === os(n.symbol) &&
                  (!Rb(n.symbol.valueDeclaration) || ege(w.expression)))
              ) {
                v = !0;
                return;
              }
              let U = Vl(w, a && a & -9);
              (c & 2 &&
                (U = zL(
                  X5(
                    U,
                    !1,
                    n,
                    f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member,
                  ),
                )),
                U.flags & 131072 && (v = !0),
                kf(p, U));
            } else m = !0;
          }),
          !(p.length === 0 && !m && (v || Pht(n))))
        )
          return (
            ie &&
              p.length &&
              m &&
              !(E_(n) && p.some((I) => I.symbol === n.symbol)) &&
              kf(p, he),
            p
          );
      }
      function Pht(n) {
        switch (n.kind) {
          case 219:
          case 220:
            return !0;
          case 175:
            return n.parent.kind === 211;
          default:
            return !1;
        }
      }
      function Lht(n) {
        switch (n.kind) {
          case 177:
          case 178:
          case 179:
            return;
        }
        if (cc(n) !== 0) return;
        let c;
        if (n.body && n.body.kind !== 242) c = n.body;
        else if (
          vb(n.body, (m) => {
            if (c || !m.expression) return !0;
            c = m.expression;
          }) ||
          !c ||
          Xge(n)
        )
          return;
        return kht(n, c);
      }
      function kht(n, a) {
        if (((a = us(a, !0)), !!(Vl(a).flags & 16)))
          return Ye(n.parameters, (p, m) => {
            const v = _r(p.symbol);
            if (!v || v.flags & 16 || !He(p.name) || YW(p.symbol) || C_(p))
              return;
            const I = wht(n, a, p, v);
            if (I) return MW(1, Gi(p.name.escapedText), m, I);
          });
      }
      function wht(n, a, c, p) {
        const m =
            (eD(a) && a.flowNode) ||
            (a.parent.kind === 254 && a.parent.flowNode) ||
            F_(2, void 0, void 0),
          v = F_(32, a, m),
          I = Vy(c.name, p, p, n, v);
        if (I === p) return;
        const w = F_(64, a, m);
        return Pm(Vy(c.name, p, I, n, w)).flags & 131072 ? I : void 0;
      }
      function Yge(n, a) {
        r(c);
        return;
        function c() {
          const p = cc(n),
            m = a && tB(a, p);
          if (
            (m && (tc(m, 16384) || m.flags & 32769)) ||
            n.kind === 174 ||
            Ol(n.body) ||
            n.body.kind !== 242 ||
            !Xge(n)
          )
            return;
          const v = n.flags & 1024,
            I = kp(n) || n;
          if (m && m.flags & 131072)
            Qe(
              I,
              f.A_function_returning_never_cannot_have_a_reachable_end_point,
            );
          else if (m && !v)
            Qe(
              I,
              f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value,
            );
          else if (m && ie && !aa(he, m))
            Qe(
              I,
              f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined,
            );
          else if (O.noImplicitReturns) {
            if (!m) {
              if (!v) return;
              const w = fs(Df(n));
              if (I3e(n, w)) return;
            }
            Qe(I, f.Not_all_code_paths_return_a_value);
          }
        }
      }
      function P4e(n, a) {
        if (
          (C.assert(n.kind !== 175 || mm(n)),
          fR(n),
          Us(n) && BL(n, n.name),
          a && a & 4 && Cf(n))
        ) {
          if (!kp(n) && !Q6(n)) {
            const p = ZW(n);
            if (p && _T(fs(p))) {
              const m = Vr(n);
              if (m.contextFreeType) return m.contextFreeType;
              const v = T$(n, a),
                I = y_(void 0, void 0, void 0, ae, v, void 0, 0, 64),
                w = bl(n.symbol, k, [I], ae, ae);
              return ((w.objectFlags |= 262144), (m.contextFreeType = w));
            }
          }
          return As;
        }
        return (!K$(n) && n.kind === 219 && kye(n), Oht(n, a), _r(Wr(n)));
      }
      function Oht(n, a) {
        const c = Vr(n);
        if (!(c.flags & 64)) {
          const p = ZW(n);
          if (!(c.flags & 64)) {
            c.flags |= 64;
            const m = Ac(na(_r(Wr(n)), 0));
            if (!m) return;
            if (Cf(n))
              if (p) {
                const v = PE(n);
                let I;
                if (a && a & 2) {
                  A4e(m, p, v);
                  const w = o8(p);
                  w && w.flags & 262144 && (I = DA(p, v.nonFixingMapper));
                }
                (I || (I = v ? DA(p, v.mapper) : p), hht(m, I));
              } else _ht(m);
            else if (
              p &&
              !n.typeParameters &&
              p.parameters.length > n.parameters.length
            ) {
              const v = PE(n);
              a && a & 2 && A4e(m, p, v);
            }
            if (p && !BC(n) && !m.resolvedReturnType) {
              const v = T$(n, a);
              m.resolvedReturnType || (m.resolvedReturnType = v);
            }
            c8(n);
          }
        }
      }
      function Wht(n) {
        C.assert(n.kind !== 175 || mm(n));
        const a = cc(n),
          c = BC(n);
        if ((Yge(n, c), n.body))
          if ((kp(n) || fs(Df(n)), n.body.kind === 242)) wa(n.body);
          else {
            const p = _o(n.body),
              m = c && tB(c, a);
            m && w$(n, m, n.body, n.body, p);
          }
      }
      function E$(n, a, c, p = !1) {
        if (!aa(a, ra)) {
          const m = p && FL(a);
          return (Iv(n, !!m && aa(m, ra), c), !1);
        }
        return !0;
      }
      function Fht(n) {
        if (!Zo(n) || !o1(n)) return !1;
        const a = Vl(n.arguments[2]);
        if (_n(a, "value")) {
          const m = Ea(a, "writable"),
            v = m && _r(m);
          if (!v || v === tr || v === Jn) return !0;
          if (m && m.valueDeclaration && Cc(m.valueDeclaration)) {
            const I = m.valueDeclaration.initializer,
              w = _o(I);
            if (w === tr || w === Jn) return !0;
          }
          return !1;
        }
        return !Ea(a, "set");
      }
      function wh(n) {
        return !!(
          Wl(n) & 8 ||
          (n.flags & 4 && Vf(n) & 8) ||
          (n.flags & 3 && vge(n) & 6) ||
          (n.flags & 98304 && !(n.flags & 65536)) ||
          n.flags & 8 ||
          yt(n.declarations, Fht)
        );
      }
      function L4e(n, a, c) {
        var p, m;
        if (c === 0) return !1;
        if (wh(a)) {
          if (a.flags & 4 && Ks(n) && n.expression.kind === 110) {
            const v = LL(n);
            if (!(v && (v.kind === 177 || E_(v)))) return !0;
            if (a.valueDeclaration) {
              const I = Nr(a.valueDeclaration),
                w = v.parent === a.valueDeclaration.parent,
                U = v === a.valueDeclaration.parent,
                H =
                  I &&
                  ((p = a.parent) == null ? void 0 : p.valueDeclaration) ===
                    v.parent,
                Q =
                  I &&
                  ((m = a.parent) == null ? void 0 : m.valueDeclaration) === v;
              return !(w || U || H || Q);
            }
          }
          return !0;
        }
        if (Ks(n)) {
          const v = us(n.expression);
          if (v.kind === 80) {
            const I = Vr(v).resolvedSymbol;
            if (I.flags & 2097152) {
              const w = cp(I);
              return !!w && w.kind === 275;
            }
          }
        }
        return !1;
      }
      function s8(n, a, c) {
        const p = Ul(n, 39);
        return p.kind !== 80 && !Ks(p)
          ? (Qe(n, a), !1)
          : p.flags & 64
            ? (Qe(n, c), !1)
            : !0;
      }
      function zht(n) {
        _o(n.expression);
        const a = us(n.expression);
        if (!Ks(a))
          return (
            Qe(
              a,
              f.The_operand_of_a_delete_operator_must_be_a_property_reference,
            ),
            jt
          );
        qr(a) &&
          eo(a.name) &&
          Qe(
            a,
            f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier,
          );
        const c = Vr(a),
          p = Et(c.resolvedSymbol);
        return (
          p &&
            (wh(p)
              ? Qe(
                  a,
                  f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property,
                )
              : Bht(a, p)),
          jt
        );
      }
      function Bht(n, a) {
        const c = _r(a);
        ie &&
          !(c.flags & 131075) &&
          !(Ce ? a.flags & 16777216 : Mh(c, 16777216)) &&
          Qe(n, f.The_operand_of_a_delete_operator_must_be_optional);
      }
      function Ght(n) {
        return (_o(n.expression), AC);
      }
      function Vht(n) {
        return (fR(n), B);
      }
      function k4e(n) {
        let a = !1;
        const c = JF(n);
        if (c && Ql(c)) {
          const p = Pb(n)
            ? f.await_expression_cannot_be_used_inside_a_class_static_block
            : f.await_using_statements_cannot_be_used_inside_a_class_static_block;
          (Qe(n, p), (a = !0));
        } else if (!(n.flags & 65536))
          if (XF(n)) {
            const p = Wn(n);
            if (!vT(p)) {
              let m;
              if (!HR(p, O)) {
                m ?? (m = jh(p, n.pos));
                const v = Pb(n)
                    ? f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module
                    : f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,
                  I = Oc(p, m.start, m.length, v);
                (ns.add(I), (a = !0));
              }
              switch (j) {
                case 100:
                case 101:
                case 102:
                case 199:
                  if (p.impliedNodeFormat === 1) {
                    (m ?? (m = jh(p, n.pos)),
                      ns.add(
                        Oc(
                          p,
                          m.start,
                          m.length,
                          f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level,
                        ),
                      ),
                      (a = !0));
                    break;
                  }
                case 7:
                case 99:
                case 200:
                case 4:
                  if (G >= 4) break;
                default:
                  m ?? (m = jh(p, n.pos));
                  const v = Pb(n)
                    ? f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher
                    : f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;
                  (ns.add(Oc(p, m.start, m.length, v)), (a = !0));
                  break;
              }
            }
          } else {
            const p = Wn(n);
            if (!vT(p)) {
              const m = jh(p, n.pos),
                v = Pb(n)
                  ? f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules
                  : f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,
                I = Oc(p, m.start, m.length, v);
              if (c && c.kind !== 177 && (cc(c) & 2) === 0) {
                const w = Ar(c, f.Did_you_mean_to_mark_this_function_as_async);
                pa(I, w);
              }
              (ns.add(I), (a = !0));
            }
          }
        return (
          Pb(n) &&
            dge(n) &&
            (Qe(
              n,
              f.await_expressions_cannot_be_used_in_a_parameter_initializer,
            ),
            (a = !0)),
          a
        );
      }
      function jht(n) {
        r(() => k4e(n));
        const a = _o(n.expression),
          c = X5(
            a,
            !0,
            n,
            f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member,
          );
        return (
          c === a &&
            !pr(c) &&
            !(a.flags & 3) &&
            Pg(!1, Ar(n, f.await_has_no_effect_on_the_type_of_this_expression)),
          c
        );
      }
      function Uht(n) {
        const a = _o(n.operand);
        if (a === wt) return wt;
        switch (n.operand.kind) {
          case 9:
            switch (n.operator) {
              case 41:
                return oR(Ch(-n.operand.text));
              case 40:
                return oR(Ch(+n.operand.text));
            }
            break;
          case 10:
            if (n.operator === 41)
              return oR(r5({ negative: !0, base10Value: RM(n.operand.text) }));
        }
        switch (n.operator) {
          case 40:
          case 41:
          case 55:
            return (
              S_(a, n.operand),
              U5(a, 12288) &&
                Qe(
                  n.operand,
                  f.The_0_operator_cannot_be_applied_to_type_symbol,
                  _a(n.operator),
                ),
              n.operator === 40
                ? (U5(a, 2112) &&
                    Qe(
                      n.operand,
                      f.Operator_0_cannot_be_applied_to_type_1,
                      _a(n.operator),
                      ar(zy(a)),
                    ),
                  Bt)
                : $ge(a)
            );
          case 54:
            fye(a, n.operand);
            const c = JC(a, 12582912);
            return c === 4194304 ? tr : c === 8388608 ? ft : jt;
          case 46:
          case 47:
            return (
              E$(
                n.operand,
                S_(a, n.operand),
                f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type,
              ) &&
                s8(
                  n.operand,
                  f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,
                  f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access,
                ),
              $ge(a)
            );
        }
        return nt;
      }
      function Hht(n) {
        const a = _o(n.operand);
        return a === wt
          ? wt
          : (E$(
              n.operand,
              S_(a, n.operand),
              f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type,
            ) &&
              s8(
                n.operand,
                f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,
                f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access,
              ),
            $ge(a));
      }
      function $ge(n) {
        return tc(n, 2112) ? (kd(n, 3) || tc(n, 296) ? ra : gr) : Bt;
      }
      function U5(n, a) {
        if (tc(n, a)) return !0;
        const c = v_(n);
        return !!c && tc(c, a);
      }
      function tc(n, a) {
        if (n.flags & a) return !0;
        if (n.flags & 3145728) {
          const c = n.types;
          for (const p of c) if (tc(p, a)) return !0;
        }
        return !1;
      }
      function kd(n, a, c) {
        return n.flags & a
          ? !0
          : c && n.flags & 114691
            ? !1
            : (!!(a & 296) && aa(n, Bt)) ||
              (!!(a & 2112) && aa(n, gr)) ||
              (!!(a & 402653316) && aa(n, gt)) ||
              (!!(a & 528) && aa(n, jt)) ||
              (!!(a & 16384) && aa(n, In)) ||
              (!!(a & 131072) && aa(n, yn)) ||
              (!!(a & 65536) && aa(n, Xt)) ||
              (!!(a & 32768) && aa(n, he)) ||
              (!!(a & 4096) && aa(n, Qt)) ||
              (!!(a & 67108864) && aa(n, Ln));
      }
      function l8(n, a, c) {
        return n.flags & 1048576
          ? Vn(n.types, (p) => l8(p, a, c))
          : kd(n, a, c);
      }
      function A$(n) {
        return !!(Hr(n) & 16) && !!n.symbol && Qge(n.symbol);
      }
      function Qge(n) {
        return (n.flags & 128) !== 0;
      }
      function Zge(n) {
        const a = T3e("hasInstance");
        if (l8(n, 67108864)) {
          const c = Ea(n, a);
          if (c) {
            const p = _r(c);
            if (p && na(p, 0).length !== 0) return p;
          }
        }
      }
      function qht(n, a, c, p, m) {
        if (c === wt || p === wt) return wt;
        (!wr(c) &&
          l8(c, 402784252) &&
          Qe(
            n,
            f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter,
          ),
          C.assert(I6(n.parent)));
        const v = ZC(n.parent, void 0, m);
        if (v === Dr) return wt;
        const I = fs(v);
        return (
          $d(
            I,
            jt,
            a,
            f.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression,
          ),
          jt
        );
      }
      function Jht(n) {
        return am(n, (a) => a === is || (!!(a.flags & 2097152) && tg(v_(a))));
      }
      function Kht(n, a, c, p) {
        if (c === wt || p === wt) return wt;
        if (eo(n)) {
          if (
            ((G < ed.PrivateNamesAndClassStaticBlocks ||
              G < ed.ClassAndClassElementDecorators ||
              !Z) &&
              $c(n, 2097152),
            !Vr(n).resolvedSymbol && hd(n))
          ) {
            const m = Ige(n, p.symbol, !0);
            z6e(n, p, m);
          }
        } else $d(S_(c, n), Ii, n);
        return (
          $d(S_(p, a), Ln, a) &&
            Jht(p) &&
            Qe(
              a,
              f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,
              ar(p),
            ),
          jt
        );
      }
      function Xht(n, a, c) {
        const p = n.properties;
        if (ie && p.length === 0) return S_(a, n);
        for (let m = 0; m < p.length; m++) w4e(n, a, m, p, c);
        return a;
      }
      function w4e(n, a, c, p, m = !1) {
        const v = n.properties,
          I = v[c];
        if (I.kind === 304 || I.kind === 305) {
          const w = I.name,
            U = ky(w);
          if (jf(U)) {
            const Ie = Uf(U),
              Te = Ea(a, Ie);
            Te && (w5(Te, I, m), Tge(I, !1, !0, a, Te));
          }
          const H = Xp(a, U, 32 | (dR(I) ? 16 : 0), w),
            Q = as(I, H);
          return zA(I.kind === 305 ? I : I.initializer, Q);
        } else if (I.kind === 306)
          if (c < v.length - 1)
            Qe(I, f.A_rest_element_must_be_last_in_a_destructuring_pattern);
          else {
            G < ed.ObjectSpreadRest && $c(I, 4);
            const w = [];
            if (p) for (const H of p) xg(H) || w.push(H.name);
            const U = ao(a, w, a.symbol);
            return (
              _R(
                p,
                f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma,
              ),
              zA(I.expression, U)
            );
          }
        else Qe(I, f.Property_assignment_expected);
      }
      function Yht(n, a, c) {
        const p = n.elements;
        G < ed.DestructuringAssignment && O.downlevelIteration && $c(n, 512);
        const m = Hv(193, a, he, n) || nt;
        let v = O.noUncheckedIndexedAccess ? void 0 : m;
        for (let I = 0; I < p.length; I++) {
          let w = m;
          (n.elements[I].kind === 231 &&
            (w = v = v ?? (Hv(65, a, he, n) || nt)),
            O4e(n, a, I, w, c));
        }
        return a;
      }
      function O4e(n, a, c, p, m) {
        const v = n.elements,
          I = v[c];
        if (I.kind !== 233) {
          if (I.kind !== 231) {
            const w = Ch(c);
            if (jv(a)) {
              const U = 32 | (dR(I) ? 16 : 0),
                H = uT(a, w, U, r8(I, w)) || nt,
                Q = dR(I) ? om(H, 524288) : H,
                Ie = as(I, Q);
              return zA(I, Ie, m);
            }
            return zA(I, p, m);
          }
          if (c < v.length - 1)
            Qe(I, f.A_rest_element_must_be_last_in_a_destructuring_pattern);
          else {
            const w = I.expression;
            if (w.kind === 227 && w.operatorToken.kind === 64)
              Qe(w.operatorToken, f.A_rest_element_cannot_have_an_initializer);
            else {
              _R(
                n.elements,
                f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma,
              );
              const U = Ep(a, Ka) ? Tl(a, (H) => IL(H, c)) : Yd(p);
              return zA(w, U, m);
            }
          }
        }
      }
      function zA(n, a, c, p) {
        let m;
        if (n.kind === 305) {
          const v = n;
          (v.objectAssignmentInitializer &&
            (ie &&
              !Mh(_o(v.objectAssignmentInitializer), 16777216) &&
              (a = om(a, 524288)),
            r_t(v.name, v.equalsToken, v.objectAssignmentInitializer, c)),
            (m = n.name));
        } else m = n;
        return (
          m.kind === 227 &&
            m.operatorToken.kind === 64 &&
            (Se(m, c), (m = m.left), ie && (a = om(a, 524288))),
          m.kind === 211
            ? Xht(m, a, p)
            : m.kind === 210
              ? Yht(m, a, c)
              : $ht(m, a, c)
        );
      }
      function $ht(n, a, c) {
        const p = _o(n, c),
          m =
            n.parent.kind === 306
              ? f.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access
              : f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,
          v =
            n.parent.kind === 306
              ? f.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access
              : f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;
        return (
          s8(n, m, v) && NE(a, p, n, n),
          zR(n) && $c(n.parent, 1048576),
          a
        );
      }
      function H5(n) {
        switch (((n = us(n)), n.kind)) {
          case 80:
          case 11:
          case 14:
          case 216:
          case 229:
          case 15:
          case 9:
          case 10:
          case 112:
          case 97:
          case 106:
          case 157:
          case 219:
          case 232:
          case 220:
          case 210:
          case 211:
          case 222:
          case 236:
          case 286:
          case 285:
            return !0;
          case 228:
            return H5(n.whenTrue) && H5(n.whenFalse);
          case 227:
            return sy(n.operatorToken.kind) ? !1 : H5(n.left) && H5(n.right);
          case 225:
          case 226:
            switch (n.operator) {
              case 54:
              case 40:
              case 41:
              case 55:
                return !0;
            }
            return !1;
          case 223:
          case 217:
          case 235:
          default:
            return !1;
        }
      }
      function eye(n, a) {
        return (a.flags & 98304) !== 0 || AY(n, a);
      }
      function Qht() {
        const n = k4(a, c, p, m, v, I);
        return (Te, Ze) => {
          const Tt = n(Te, Ze);
          return (C.assertIsDefined(Tt), Tt);
        };
        function a(Te, Ze, Tt) {
          return (
            Ze
              ? (Ze.stackIndex++, (Ze.skip = !1), H(Ze, void 0), Ie(Ze, void 0))
              : (Ze = {
                  checkMode: Tt,
                  skip: !1,
                  stackIndex: 0,
                  typeStack: [void 0, void 0],
                }),
            Ir(Te) && _I(Te)
              ? ((Ze.skip = !0), Ie(Ze, _o(Te.right, Tt)), Ze)
              : (Zht(Te),
                Te.operatorToken.kind === 64 &&
                  (Te.left.kind === 211 || Te.left.kind === 210) &&
                  ((Ze.skip = !0),
                  Ie(
                    Ze,
                    zA(Te.left, _o(Te.right, Tt), Tt, Te.right.kind === 110),
                  )),
                Ze)
          );
        }
        function c(Te, Ze, Tt) {
          if (!Ze.skip) return w(Ze, Te);
        }
        function p(Te, Ze, Tt) {
          if (!Ze.skip) {
            const Dt = Q(Ze);
            (C.assertIsDefined(Dt), H(Ze, Dt), Ie(Ze, void 0));
            const $t = Te.kind;
            if (E6($t)) {
              let Tn = Tt.parent;
              for (; Tn.kind === 218 || Ok(Tn); ) Tn = Tn.parent;
              (($t === 56 || $T(Tn)) &&
                pye(Tt.left, Dt, $T(Tn) ? Tn.thenStatement : void 0),
                wk($t) && fye(Dt, Tt.left));
            }
          }
        }
        function m(Te, Ze, Tt) {
          if (!Ze.skip) return w(Ze, Te);
        }
        function v(Te, Ze) {
          let Tt;
          if (Ze.skip) Tt = Q(Ze);
          else {
            const Dt = U(Ze);
            C.assertIsDefined(Dt);
            const $t = Q(Ze);
            (C.assertIsDefined($t),
              (Tt = W4e(
                Te.left,
                Te.operatorToken,
                Te.right,
                Dt,
                $t,
                Ze.checkMode,
                Te,
              )));
          }
          return (
            (Ze.skip = !1),
            H(Ze, void 0),
            Ie(Ze, void 0),
            Ze.stackIndex--,
            Tt
          );
        }
        function I(Te, Ze, Tt) {
          return (Ie(Te, Ze), Te);
        }
        function w(Te, Ze) {
          if (Nr(Ze)) return Ze;
          Ie(Te, _o(Ze, Te.checkMode));
        }
        function U(Te) {
          return Te.typeStack[Te.stackIndex];
        }
        function H(Te, Ze) {
          Te.typeStack[Te.stackIndex] = Ze;
        }
        function Q(Te) {
          return Te.typeStack[Te.stackIndex + 1];
        }
        function Ie(Te, Ze) {
          Te.typeStack[Te.stackIndex + 1] = Ze;
        }
      }
      function Zht(n) {
        if (n.operatorToken.kind === 61) {
          if (Nr(n.parent)) {
            const { left: a, operatorToken: c } = n.parent;
            Nr(a) &&
              c.kind === 57 &&
              Cn(
                a,
                f._0_and_1_operations_cannot_be_mixed_without_parentheses,
                _a(61),
                _a(c.kind),
              );
          } else if (Nr(n.left)) {
            const { operatorToken: a } = n.left;
            (a.kind === 57 || a.kind === 56) &&
              Cn(
                n.left,
                f._0_and_1_operations_cannot_be_mixed_without_parentheses,
                _a(a.kind),
                _a(61),
              );
          } else if (Nr(n.right)) {
            const { operatorToken: a } = n.right;
            a.kind === 56 &&
              Cn(
                n.right,
                f._0_and_1_operations_cannot_be_mixed_without_parentheses,
                _a(61),
                _a(a.kind),
              );
          }
          (e_t(n), t_t(n));
        }
      }
      function e_t(n) {
        const a = Ul(n.left, 63),
          c = q5(a);
        c !== 3 &&
          (c === 1
            ? Qe(a, f.This_expression_is_always_nullish)
            : Qe(
                a,
                f.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish,
              ));
      }
      function t_t(n) {
        const a = Ul(n.right, 63),
          c = q5(a);
        n_t(n) ||
          (c === 1
            ? Qe(a, f.This_expression_is_always_nullish)
            : c === 2 && Qe(a, f.This_expression_is_never_nullish));
      }
      function n_t(n) {
        return !Nr(n.parent) || n.parent.operatorToken.kind !== 61;
      }
      function q5(n) {
        switch (((n = Ul(n)), n.kind)) {
          case 224:
          case 214:
          case 216:
          case 213:
          case 237:
          case 215:
          case 212:
          case 230:
          case 110:
            return 3;
          case 227:
            switch (n.operatorToken.kind) {
              case 64:
              case 61:
              case 78:
              case 57:
              case 76:
              case 56:
              case 77:
                return 3;
              case 28:
                return q5(n.right);
            }
            return 2;
          case 228:
            return q5(n.whenTrue) | q5(n.whenFalse);
          case 106:
            return 1;
          case 80:
            return fu(n) === ce ? 1 : 3;
        }
        return 2;
      }
      function r_t(n, a, c, p, m) {
        const v = a.kind;
        if (v === 64 && (n.kind === 211 || n.kind === 210))
          return zA(n, _o(c, p), p, c.kind === 110);
        let I;
        wk(v) ? (I = g8(n, p)) : (I = _o(n, p));
        const w = _o(c, p);
        return W4e(n, a, c, I, w, p, m);
      }
      function W4e(n, a, c, p, m, v, I) {
        const w = a.kind;
        switch (w) {
          case 42:
          case 43:
          case 67:
          case 68:
          case 44:
          case 69:
          case 45:
          case 70:
          case 41:
          case 66:
          case 48:
          case 71:
          case 49:
          case 72:
          case 50:
          case 73:
          case 52:
          case 75:
          case 53:
          case 79:
          case 51:
          case 74:
            if (p === wt || m === wt) return wt;
            ((p = S_(p, n)), (m = S_(m, c)));
            let Sn;
            if (p.flags & 528 && m.flags & 528 && (Sn = Te(a.kind)) !== void 0)
              return (
                Qe(
                  I || a,
                  f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,
                  _a(a.kind),
                  _a(Sn),
                ),
                Bt
              );
            {
              const fi = E$(
                  n,
                  p,
                  f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,
                  !0,
                ),
                oo = E$(
                  c,
                  m,
                  f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,
                  !0,
                );
              let ii;
              if ((kd(p, 3) && kd(m, 3)) || !(tc(p, 2112) || tc(m, 2112)))
                ii = Bt;
              else if (U(p, m)) {
                switch (w) {
                  case 50:
                  case 73:
                    $t();
                    break;
                  case 43:
                  case 68:
                    G < 3 &&
                      Qe(
                        I,
                        f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later,
                      );
                }
                ii = gr;
              } else ($t(U), (ii = nt));
              if (fi && oo)
                switch ((Ze(ii), w)) {
                  case 48:
                  case 71:
                  case 49:
                  case 72:
                  case 50:
                  case 73:
                    const zi = Be(c);
                    typeof zi.value == "number" &&
                      Math.abs(zi.value) >= 32 &&
                      Jm(
                        py(zm(c.parent.parent)),
                        I || a,
                        f.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,
                        Al(n),
                        _a(w),
                        zi.value % 32,
                      );
                    break;
                }
              return ii;
            }
          case 40:
          case 65:
            if (p === wt || m === wt) return wt;
            !kd(p, 402653316) &&
              !kd(m, 402653316) &&
              ((p = S_(p, n)), (m = S_(m, c)));
            let vn;
            return (
              kd(p, 296, !0) && kd(m, 296, !0)
                ? (vn = Bt)
                : kd(p, 2112, !0) && kd(m, 2112, !0)
                  ? (vn = gr)
                  : kd(p, 402653316, !0) || kd(m, 402653316, !0)
                    ? (vn = gt)
                    : (wr(p) || wr(m)) && (vn = pr(p) || pr(m) ? nt : Ue),
              vn && !Ie(w)
                ? vn
                : vn
                  ? (w === 65 && Ze(vn), vn)
                  : ($t((oo, ii) => kd(oo, 402655727) && kd(ii, 402655727)), Ue)
            );
          case 30:
          case 32:
          case 33:
          case 34:
            return (
              Ie(w) &&
                ((p = R_e(S_(p, n))),
                (m = R_e(S_(m, c))),
                Dt((fi, oo) => {
                  if (wr(fi) || wr(oo)) return !0;
                  const ii = aa(fi, ra),
                    zi = aa(oo, ra);
                  return (ii && zi) || (!ii && !zi && s5(fi, oo));
                })),
              jt
            );
          case 35:
          case 36:
          case 37:
          case 38:
            if (!(v && v & 64)) {
              if ((K9(n) || K9(c)) && (!Ir(n) || w === 37 || w === 38)) {
                const fi = w === 35 || w === 37;
                Qe(
                  I,
                  f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,
                  fi ? "false" : "true",
                );
              }
              (nr(I, w, n, c), Dt((fi, oo) => eye(fi, oo) || eye(oo, fi)));
            }
            return jt;
          case 104:
            return qht(n, c, p, m, v);
          case 103:
            return Kht(n, c, p, m);
          case 56:
          case 77: {
            const fi = Mh(p, 4194304) ? pi([xut(ie ? p : zy(m)), m]) : p;
            return (w === 77 && Ze(m), fi);
          }
          case 57:
          case 76: {
            const fi = Mh(p, 8388608) ? pi([By(oFe(p)), m], 2) : p;
            return (w === 76 && Ze(m), fi);
          }
          case 61:
          case 78: {
            const fi = Mh(p, 262144) ? pi([By(p), m], 2) : p;
            return (w === 78 && Ze(m), fi);
          }
          case 64:
            const Sr = Nr(n.parent) ? oc(n.parent) : 0;
            return (
              H(Sr, m),
              Tt(Sr)
                ? ((!(m.flags & 524288) ||
                    (Sr !== 2 &&
                      Sr !== 6 &&
                      !Fy(m) &&
                      !K_e(m) &&
                      !(Hr(m) & 1))) &&
                    Ze(m),
                  p)
                : (Ze(m), m)
            );
          case 28:
            if (!O.allowUnreachableCode && H5(n) && !Q(n.parent)) {
              const fi = Wn(n),
                oo = fi.text,
                ii = La(oo, n.pos);
              fi.parseDiagnostics.some((Ko) =>
                Ko.code !== f.JSX_expressions_must_have_one_parent_element.code
                  ? !1
                  : k9(Ko, ii),
              ) ||
                Qe(
                  n,
                  f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects,
                );
            }
            return m;
          default:
            return C.fail();
        }
        function U(Sn, vn) {
          return kd(Sn, 2112) && kd(vn, 2112);
        }
        function H(Sn, vn) {
          if (Sn === 2)
            for (const Sr of zv(vn)) {
              const fi = _r(Sr);
              if (fi.symbol && fi.symbol.flags & 32) {
                const oo = Sr.escapedName,
                  ii = _t(Sr.valueDeclaration, oo, 788968, void 0, !1);
                ii?.declarations &&
                  ii.declarations.some(R1) &&
                  (Lg(ii, f.Duplicate_identifier_0, Gi(oo), Sr),
                  Lg(Sr, f.Duplicate_identifier_0, Gi(oo), ii));
              }
            }
        }
        function Q(Sn) {
          return (
            Sn.parent.kind === 218 &&
            np(Sn.left) &&
            Sn.left.text === "0" &&
            ((Zo(Sn.parent.parent) &&
              Sn.parent.parent.expression === Sn.parent) ||
              Sn.parent.parent.kind === 216) &&
            (Ks(Sn.right) || (He(Sn.right) && Sn.right.escapedText === "eval"))
          );
        }
        function Ie(Sn) {
          const vn = U5(p, 12288) ? n : U5(m, 12288) ? c : void 0;
          return vn
            ? (Qe(
                vn,
                f.The_0_operator_cannot_be_applied_to_type_symbol,
                _a(Sn),
              ),
              !1)
            : !0;
        }
        function Te(Sn) {
          switch (Sn) {
            case 52:
            case 75:
              return 57;
            case 53:
            case 79:
              return 38;
            case 51:
            case 74:
              return 56;
            default:
              return;
          }
        }
        function Ze(Sn) {
          sy(w) && r(vn);
          function vn() {
            let Sr = p;
            if (
              (cP(a.kind) && n.kind === 212 && (Sr = u$(n, void 0, !0)),
              s8(
                n,
                f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,
                f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access,
              ))
            ) {
              let fi;
              if (Ce && qr(n) && tc(Sn, 32768)) {
                const oo = _n(wd(n.expression), n.name.escapedText);
                xY(Sn, oo) &&
                  (fi =
                    f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target);
              }
              NE(Sn, Sr, n, c, fi);
            }
          }
        }
        function Tt(Sn) {
          var vn;
          switch (Sn) {
            case 2:
              return !0;
            case 1:
            case 5:
            case 6:
            case 3:
            case 4:
              const Sr = If(n),
                fi = _I(c);
              return (
                !!fi && Wa(fi) && !!((vn = Sr?.exports) != null && vn.size)
              );
            default:
              return !1;
          }
        }
        function Dt(Sn) {
          return Sn(p, m) ? !1 : ($t(Sn), !0);
        }
        function $t(Sn) {
          let vn = !1;
          const Sr = I || a;
          if (Sn) {
            const Ko = jy(p),
              ms = jy(m);
            vn = !(Ko === p && ms === m) && !!(Ko && ms) && Sn(Ko, ms);
          }
          let fi = p,
            oo = m;
          !vn && Sn && ([fi, oo] = i_t(p, m, Sn));
          const [ii, zi] = dL(fi, oo);
          Tn(Sr, vn, ii, zi) ||
            Iv(
              Sr,
              vn,
              f.Operator_0_cannot_be_applied_to_types_1_and_2,
              _a(a.kind),
              ii,
              zi,
            );
        }
        function Tn(Sn, vn, Sr, fi) {
          switch (a.kind) {
            case 37:
            case 35:
            case 38:
            case 36:
              return Iv(
                Sn,
                vn,
                f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,
                Sr,
                fi,
              );
            default:
              return;
          }
        }
        function nr(Sn, vn, Sr, fi) {
          const oo = yr(us(Sr)),
            ii = yr(us(fi));
          if (oo || ii) {
            const zi = Qe(
              Sn,
              f.This_condition_will_always_return_0,
              _a(vn === 37 || vn === 35 ? 97 : 112),
            );
            if (oo && ii) return;
            const Ko = vn === 38 || vn === 36 ? _a(54) : "",
              ms = oo ? fi : Sr,
              fo = us(ms);
            pa(
              zi,
              Ar(
                ms,
                f.Did_you_mean_0,
                `${Ko}Number.isNaN(${Ds(fo) ? Mp(fo) : "..."})`,
              ),
            );
          }
        }
        function yr(Sn) {
          if (He(Sn) && Sn.escapedText === "NaN") {
            const vn = Mct();
            return !!vn && vn === fu(Sn);
          }
          return !1;
        }
      }
      function i_t(n, a, c) {
        let p = n,
          m = a;
        const v = zy(n),
          I = zy(a);
        return (c(v, I) || ((p = v), (m = I)), [p, m]);
      }
      function o_t(n) {
        r(Ie);
        const a = df(n);
        if (!a) return Ue;
        const c = cc(a);
        if (!(c & 1)) return Ue;
        const p = (c & 2) !== 0;
        n.asteriskToken &&
          (p && G < ed.AsyncGenerators && $c(n, 26624),
          !p && G < ed.Generators && O.downlevelIteration && $c(n, 256));
        let m = BC(a);
        m && m.flags & 1048576 && (m = Ec(m, (Te) => iye(Te, c, void 0)));
        const v = m && bye(m, p),
          I = (v && v.yieldType) || Ue,
          w = (v && v.nextType) || Ue,
          U = n.expression ? _o(n.expression) : B,
          H = D4e(n, U, w, p);
        if (
          (m && H && NE(H, I, n.expression || n, n.expression), n.asteriskToken)
        )
          return _ye(p ? 19 : 17, 1, U, n.expression) || Ue;
        if (m) return qv(2, m, p) || Ue;
        let Q = l6e(2, a);
        return (
          Q ||
            ((Q = Ue),
            r(() => {
              if (ve && !Lre(n)) {
                const Te = Hu(n, void 0);
                (!Te || wr(Te)) &&
                  Qe(
                    n,
                    f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation,
                  );
              }
            })),
          Q
        );
        function Ie() {
          (n.flags & 16384 ||
            fd(n, f.A_yield_expression_is_only_allowed_in_a_generator_body),
            dge(n) &&
              Qe(
                n,
                f.yield_expressions_cannot_be_used_in_a_parameter_initializer,
              ));
        }
      }
      function a_t(n, a) {
        const c = g8(n.condition, a);
        pye(n.condition, c, n.whenTrue);
        const p = _o(n.whenTrue, a),
          m = _o(n.whenFalse, a);
        return pi([p, m], 2);
      }
      function F4e(n) {
        const a = n.parent;
        return (Ou(a) && F4e(a)) || (Ws(a) && a.argumentExpression === n);
      }
      function s_t(n) {
        const a = [n.head.text],
          c = [];
        for (const m of n.templateSpans) {
          const v = _o(m.expression);
          (U5(v, 12288) &&
            Qe(
              m.expression,
              f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String,
            ),
            a.push(m.literal.text),
            c.push(aa(v, sa) ? v : gt));
        }
        const p = n.parent.kind !== 216 && Be(n).value;
        return p
          ? oR(Sp(p))
          : OL(n) || F4e(n) || am(Hu(n, void 0) || Nt, l_t)
            ? EA(a, c)
            : gt;
      }
      function l_t(n) {
        return !!(
          n.flags & 134217856 ||
          (n.flags & 58982400 && tc(Ld(n) || Nt, 402653316))
        );
      }
      function c_t(n) {
        return jS(n) && !I1(n.parent) ? n.parent.parent : n;
      }
      function eN(n, a, c, p) {
        const m = c_t(n);
        (D5(m, a, !1), gft(m, c));
        const v = _o(n, p | 1 | (c ? 2 : 0));
        c &&
          c.intraExpressionInferenceSites &&
          (c.intraExpressionInferenceSites = void 0);
        const I = tc(v, 2944) && I$(v, n$(a, n, void 0)) ? Cu(v) : v;
        return (yft(), QW(), I);
      }
      function Vl(n, a) {
        if (a) return _o(n, a);
        const c = Vr(n);
        if (!c.resolvedType) {
          const p = Lr,
            m = Qi;
          ((Lr = Yn),
            (Qi = void 0),
            (c.resolvedType = _o(n, a)),
            (Qi = m),
            (Lr = p));
        }
        return c.resolvedType;
      }
      function z4e(n) {
        return ((n = us(n, !0)), n.kind === 217 || n.kind === 235 || HS(n));
      }
      function wL(n, a, c) {
        const p = hk(n);
        if (Ir(n)) {
          const v = t4(n);
          if (v) return Gge(p, v, a);
        }
        const m = rye(p) || (c ? eN(p, c, void 0, a || 0) : Vl(p, a));
        if (to(Ha(n) ? qE(n) : n)) {
          if (n.name.kind === 207 && Uv(m)) return d_t(m, n.name);
          if (n.name.kind === 208 && Ka(m)) return u_t(m, n.name);
        }
        return m;
      }
      function d_t(n, a) {
        let c;
        for (const v of a.elements)
          if (v.initializer) {
            const I = B4e(v);
            I && !Ea(n, I) && (c = Bn(c, v));
          }
        if (!c) return n;
        const p = da();
        for (const v of zv(n)) p.set(v.escapedName, v);
        for (const v of c) {
          const I = ja(16777220, B4e(v));
          ((I.links.type = Ih(v, !1, !1)), p.set(I.escapedName, I));
        }
        const m = bl(n.symbol, p, ae, ae, Xd(n));
        return ((m.objectFlags = n.objectFlags), m);
      }
      function B4e(n) {
        const a = ky(n.propertyName || n.name);
        return jf(a) ? Uf(a) : void 0;
      }
      function u_t(n, a) {
        if (n.target.combinedFlags & 12 || Gv(n) >= a.elements.length) return n;
        const c = a.elements,
          p = IE(n).slice(),
          m = n.target.elementFlags.slice();
        for (let v = Gv(n); v < c.length; v++) {
          const I = c[v];
          (v < c.length - 1 || !(I.kind === 209 && I.dotDotDotToken)) &&
            (p.push(!Jc(I) && dR(I) ? Ih(I, !1, !1) : Ue),
            m.push(2),
            !Jc(I) && !dR(I) && eS(I, Ue));
        }
        return eg(p, m, n.target.readonly);
      }
      function tye(n, a) {
        const c = G4e(n, a);
        if (Ir(n)) {
          if (Z8e(c)) return (eS(n, Ue), Ue);
          if (PY(c)) return (eS(n, bd), bd);
        }
        return c;
      }
      function G4e(n, a) {
        return wE(n) & 6 || nk(n) ? a : Z0(a);
      }
      function I$(n, a) {
        if (a) {
          if (a.flags & 3145728) {
            const c = a.types;
            return yt(c, (p) => I$(n, p));
          }
          if (a.flags & 58982400) {
            const c = Ld(a) || Nt;
            return (
              (tc(c, 4) && tc(n, 128)) ||
              (tc(c, 8) && tc(n, 256)) ||
              (tc(c, 64) && tc(n, 2048)) ||
              (tc(c, 4096) && tc(n, 8192)) ||
              I$(n, c)
            );
          }
          return !!(
            (a.flags & 406847616 && tc(n, 128)) ||
            (a.flags & 256 && tc(n, 256)) ||
            (a.flags & 2048 && tc(n, 2048)) ||
            (a.flags & 512 && tc(n, 512)) ||
            (a.flags & 8192 && tc(n, 8192))
          );
        }
        return !1;
      }
      function OL(n) {
        const a = n.parent;
        return (
          (yS(a) && Om(a.type)) ||
          (HS(a) && Om(MD(a))) ||
          (Bge(n) && bA(Hu(n, 0))) ||
          ((Ou(a) || Cd(a) || qf(a)) && OL(a)) ||
          ((Cc(a) || Ud(a) || AD(a)) && OL(a.parent))
        );
      }
      function WL(n, a, c) {
        const p = _o(n, a, c);
        return OL(n) || Qte(n)
          ? Cu(p)
          : z4e(n)
            ? p
            : D_e(p, n$(Hu(n, void 0), n, void 0));
      }
      function V4e(n, a) {
        return (n.name.kind === 168 && th(n.name), WL(n.initializer, a));
      }
      function j4e(n, a) {
        (f7e(n), n.name.kind === 168 && th(n.name));
        const c = P4e(n, a);
        return U4e(n, c, a);
      }
      function U4e(n, a, c) {
        if (c && c & 10) {
          const p = n8(a, 0, !0),
            m = n8(a, 1, !0),
            v = p || m;
          if (v && v.typeParameters) {
            const I = nS(n, 2);
            if (I) {
              const w = n8(By(I), p ? 0 : 1, !1);
              if (w && !w.typeParameters) {
                if (c & 8) return (H4e(n, c), As);
                const U = PE(n),
                  H = U.signature && fs(U.signature),
                  Q = H && $6e(H);
                if (Q && !Q.typeParameters && !Vn(U.inferences, tN)) {
                  const Ie = h_t(U, v.typeParameters),
                    Te = Mhe(v, Ie),
                    Ze = Vt(U.inferences, (Tt) => w_e(Tt.typeParameter));
                  if (
                    (M_e(Te, w, (Tt, Dt) => {
                      qg(Ze, Tt, Dt, 0, !0);
                    }),
                    yt(Ze, tN) &&
                      (P_e(Te, w, (Tt, Dt) => {
                        qg(Ze, Tt, Dt);
                      }),
                      !f_t(U.inferences, Ze)))
                  )
                    return (
                      m_t(U.inferences, Ze),
                      (U.inferredTypeParameters = so(
                        U.inferredTypeParameters,
                        Ie,
                      )),
                      TA(Te)
                    );
                }
                return TA(Q6e(v, w, U));
              }
            }
          }
        }
        return a;
      }
      function H4e(n, a) {
        if (a & 2) {
          const c = PE(n);
          c.flags |= 4;
        }
      }
      function tN(n) {
        return !!(n.candidates || n.contraCandidates);
      }
      function p_t(n) {
        return !!(n.candidates || n.contraCandidates || cWe(n.typeParameter));
      }
      function f_t(n, a) {
        for (let c = 0; c < n.length; c++) if (tN(n[c]) && tN(a[c])) return !0;
        return !1;
      }
      function m_t(n, a) {
        for (let c = 0; c < n.length; c++)
          !tN(n[c]) && tN(a[c]) && (n[c] = a[c]);
      }
      function h_t(n, a) {
        const c = [];
        let p, m;
        for (const v of a) {
          const I = v.symbol.escapedName;
          if (nye(n.inferredTypeParameters, I) || nye(c, I)) {
            const w = __t(so(n.inferredTypeParameters, c), I),
              U = ja(262144, w),
              H = Vu(U);
            ((H.target = v), (p = Bn(p, v)), (m = Bn(m, H)), c.push(H));
          } else c.push(v);
        }
        if (m) {
          const v = Yp(p, m);
          for (const I of m) I.mapper = v;
        }
        return c;
      }
      function nye(n, a) {
        return yt(n, (c) => c.symbol.escapedName === a);
      }
      function __t(n, a) {
        let c = a.length;
        for (
          ;
          c > 1 && a.charCodeAt(c - 1) >= 48 && a.charCodeAt(c - 1) <= 57;
        )
          c--;
        const p = a.slice(0, c);
        for (let m = 1; ; m++) {
          const v = p + m;
          if (!nye(n, v)) return v;
        }
      }
      function q4e(n) {
        const a = FA(n);
        if (a && !a.typeParameters) return fs(a);
      }
      function g_t(n) {
        const a = _o(n.expression),
          c = UW(a, n.expression),
          p = q4e(a);
        return p && OY(p, n, c !== a);
      }
      function wd(n) {
        const a = rye(n);
        if (a) return a;
        if (n.flags & 268435456 && Qi) {
          const m = Qi[ls(n)];
          if (m) return m;
        }
        const c = Ro,
          p = _o(n, 64);
        if (Ro !== c) {
          const m = Qi || (Qi = []);
          ((m[ls(n)] = p), Pre(n, n.flags | 268435456));
        }
        return p;
      }
      function rye(n) {
        let a = us(n, !0);
        if (HS(a)) {
          const c = MD(a);
          if (!Om(c)) return Ji(c);
        }
        if (((a = us(n)), Pb(a))) {
          const c = rye(a.expression);
          return c ? pR(c) : void 0;
        }
        if (
          Zo(a) &&
          a.expression.kind !== 108 &&
          !Zu(a, !0) &&
          !p4e(a) &&
          !Qu(a)
        )
          return KE(a) ? g_t(a) : q4e($C(a.expression));
        if (yS(a) && !Om(a.type)) return Ji(a.type);
        if (XE(n) || FN(n)) return _o(n);
      }
      function J5(n) {
        const a = Vr(n);
        if (a.contextFreeType) return a.contextFreeType;
        D5(n, Ue, !1);
        const c = (a.contextFreeType = _o(n, 4));
        return (QW(), c);
      }
      function _o(n, a, c) {
        var p, m;
        (p = xr) == null ||
          p.push(xr.Phase.Check, "checkExpression", {
            kind: n.kind,
            pos: n.pos,
            end: n.end,
            path: n.tracingPath,
          });
        const v = R;
        ((R = n), (g = 0));
        const I = b_t(n, a, c),
          w = U4e(n, I, a);
        return (A$(w) && y_t(n, w), (R = v), (m = xr) == null || m.pop(), w);
      }
      function y_t(n, a) {
        var c;
        const p =
          (n.parent.kind === 212 && n.parent.expression === n) ||
          (n.parent.kind === 213 && n.parent.expression === n) ||
          ((n.kind === 80 || n.kind === 167) && V$(n)) ||
          (n.parent.kind === 187 && n.parent.exprName === n) ||
          n.parent.kind === 282;
        if (
          (p ||
            Qe(
              n,
              f.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query,
            ),
          O.isolatedModules ||
            (O.verbatimModuleSyntax &&
              p &&
              !_t(n, Lu(n), 2097152, void 0, !1, !0)))
        ) {
          C.assert(!!(a.symbol.flags & 128));
          const m = a.symbol.valueDeclaration,
            v =
              (c = e.getRedirectFromOutput(Wn(m).resolvedPath)) == null
                ? void 0
                : c.resolvedRef;
          m.flags & 33554432 &&
            !HT(n) &&
            (!v || !Ib(v.commandLine.options)) &&
            Qe(n, f.Cannot_access_ambient_const_enums_when_0_is_enabled, Ge);
        }
      }
      function v_t(n, a) {
        if (ef(n)) {
          if (KV(n)) return Gge(n.expression, XV(n), a);
          if (HS(n)) return _4e(n, a);
        }
        return _o(n.expression, a);
      }
      function b_t(n, a, c) {
        const p = n.kind;
        if (i)
          switch (p) {
            case 232:
            case 219:
            case 220:
              i.throwIfCancellationRequested();
          }
        switch (p) {
          case 80:
            return Bpt(n, a);
          case 81:
            return umt(n);
          case 110:
            return x5(n);
          case 108:
            return ZY(n);
          case 106:
            return Pe;
          case 15:
          case 11:
            return B_e(n) ? Ot : oR(Sp(n.text));
          case 9:
            return (v7e(n), oR(Ch(+n.text)));
          case 10:
            return (Sbt(n), oR(r5({ negative: !1, base10Value: RM(n.text) })));
          case 112:
            return ft;
          case 97:
            return tr;
          case 229:
            return s_t(n);
          case 14:
            return wft(n);
          case 210:
            return v6e(n, a, c);
          case 211:
            return jft(n, a);
          case 212:
            return u$(n, a);
          case 167:
            return O6e(n, a);
          case 213:
            return xmt(n, a);
          case 214:
            if (Qu(n)) return iht(n);
          case 215:
            return rht(n, a);
          case 216:
            return oht(n);
          case 218:
            return v_t(n, a);
          case 232:
            return dyt(n);
          case 219:
          case 220:
            return P4e(n, a);
          case 222:
            return Ght(n);
          case 217:
          case 235:
            return aht(n, a);
          case 236:
            return cht(n);
          case 234:
            return y4e(n);
          case 239:
            return dht(n);
          case 237:
            return uht(n);
          case 221:
            return zht(n);
          case 223:
            return Vht(n);
          case 224:
            return jht(n);
          case 225:
            return Uht(n);
          case 226:
            return Hht(n);
          case 227:
            return Se(n, a);
          case 228:
            return a_t(n, a);
          case 231:
            return Oft(n, a);
          case 233:
            return B;
          case 230:
            return o_t(n);
          case 238:
            return Wft(n);
          case 295:
            return imt(n, a);
          case 285:
            return Jft(n);
          case 286:
            return Hft(n);
          case 289:
            return Kft(n);
          case 293:
            return Yft(n, a);
          case 287:
            C.fail("Shouldn't ever directly check a JsxOpeningElement");
        }
        return nt;
      }
      function J4e(n) {
        (Kg(n),
          n.expression && fd(n.expression, f.Type_expected),
          wa(n.constraint),
          wa(n.default));
        const a = U0(Wr(n));
        (Ld(a),
          Olt(a) ||
            Qe(n.default, f.Type_parameter_0_has_a_circular_default, ar(a)));
        const c = Uu(a),
          p = EE(a);
        (c &&
          p &&
          $d(
            p,
            Kp(io(c, DE(a, p)), p),
            n.default,
            f.Type_0_does_not_satisfy_the_constraint_1,
          ),
          fR(n),
          r(() => GL(n.name, f.Type_parameter_name_cannot_be_0)));
      }
      function T_t(n) {
        var a, c;
        if (gd(n.parent) || ui(n.parent) || vm(n.parent)) {
          const p = U0(Wr(n)),
            m = E_e(p) & 24576;
          if (m) {
            const v = Wr(n.parent);
            if (vm(n.parent) && !(Hr(qs(v)) & 48))
              Qe(
                n,
                f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types,
              );
            else if (m === 8192 || m === 16384) {
              (a = xr) == null ||
                a.push(xr.Phase.CheckTypes, "checkTypeParameterDeferred", {
                  parent: pd(qs(v)),
                  id: pd(p),
                });
              const I = d5(v, p, m === 16384 ? qt : pt),
                w = d5(v, p, m === 16384 ? pt : qt),
                U = p;
              ((N = p),
                $d(
                  I,
                  w,
                  n,
                  f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation,
                ),
                (N = U),
                (c = xr) == null || c.pop());
            }
          }
        }
      }
      function K4e(n) {
        (Kg(n), Z5(n));
        const a = df(n);
        (di(n, 31) &&
          (O.erasableSyntaxOnly &&
            Qe(
              n,
              f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled,
            ),
          (a.kind === 177 && fm(a.body)) ||
            Qe(
              n,
              f.A_parameter_property_is_only_allowed_in_a_constructor_implementation,
            ),
          a.kind === 177 &&
            He(n.name) &&
            n.name.escapedText === "constructor" &&
            Qe(
              n.name,
              f.constructor_cannot_be_used_as_a_parameter_property_name,
            )),
          !n.initializer &&
            wI(n) &&
            Qo(n.name) &&
            a.body &&
            Qe(
              n,
              f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature,
            ),
          n.name &&
            He(n.name) &&
            (n.name.escapedText === "this" || n.name.escapedText === "new") &&
            (a.parameters.indexOf(n) !== 0 &&
              Qe(
                n,
                f.A_0_parameter_must_be_the_first_parameter,
                n.name.escapedText,
              ),
            (a.kind === 177 || a.kind === 181 || a.kind === 186) &&
              Qe(n, f.A_constructor_cannot_have_a_this_parameter),
            a.kind === 220 &&
              Qe(n, f.An_arrow_function_cannot_have_a_this_parameter),
            (a.kind === 178 || a.kind === 179) &&
              Qe(n, f.get_and_set_accessors_cannot_declare_this_parameters)),
          n.dotDotDotToken &&
            !Qo(n.name) &&
            !aa(Pm(_r(n.symbol)), jp) &&
            Qe(n, f.A_rest_parameter_must_be_of_an_array_type));
      }
      function S_t(n) {
        const a = E_t(n);
        if (!a) {
          Qe(
            n,
            f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods,
          );
          return;
        }
        const c = Df(a),
          p = nm(c);
        if (!p) return;
        wa(n.type);
        const { parameterName: m } = n;
        if (p.kind !== 0 && p.kind !== 2) {
          if (p.parameterIndex >= 0) {
            if (su(c) && p.parameterIndex === c.parameters.length - 1)
              Qe(m, f.A_type_predicate_cannot_reference_a_rest_parameter);
            else if (p.type) {
              const v = () =>
                qo(
                  void 0,
                  f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type,
                );
              $d(p.type, _r(c.parameters[p.parameterIndex]), n.type, void 0, v);
            }
          } else if (m) {
            let v = !1;
            for (const { name: I } of a.parameters)
              if (Qo(I) && X4e(I, m, p.parameterName)) {
                v = !0;
                break;
              }
            v ||
              Qe(n.parameterName, f.Cannot_find_parameter_0, p.parameterName);
          }
        }
      }
      function E_t(n) {
        switch (n.parent.kind) {
          case 220:
          case 180:
          case 263:
          case 219:
          case 185:
          case 175:
          case 174:
            const a = n.parent;
            if (n === a.type) return a;
        }
      }
      function X4e(n, a, c) {
        for (const p of n.elements) {
          if (Jc(p)) continue;
          const m = p.name;
          if (m.kind === 80 && m.escapedText === c)
            return (
              Qe(
                a,
                f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,
                c,
              ),
              !0
            );
          if ((m.kind === 208 || m.kind === 207) && X4e(m, a, c)) return !0;
        }
      }
      function c8(n) {
        n.kind === 182
          ? $vt(n)
          : (n.kind === 185 ||
              n.kind === 263 ||
              n.kind === 186 ||
              n.kind === 180 ||
              n.kind === 177 ||
              n.kind === 181) &&
            K$(n);
        const a = cc(n);
        (a & 4 ||
          ((a & 3) === 3 && G < ed.AsyncGenerators && $c(n, 6144),
          (a & 3) === 2 && G < ed.AsyncFunctions && $c(n, 64),
          (a & 3) !== 0 && G < ed.Generators && $c(n, 128)),
          nB(cb(n)),
          syt(n),
          Ye(n.parameters, K4e),
          n.type && wa(n.type),
          r(c));
        function c() {
          Sgt(n);
          let p = kp(n),
            m = p;
          if (Ir(n)) {
            const v = LT(n);
            if (v && v.typeExpression && Wp(v.typeExpression.type)) {
              const I = FA(Ji(v.typeExpression));
              I &&
                I.declaration &&
                ((p = kp(I.declaration)), (m = v.typeExpression.type));
            }
          }
          if (ve && !p)
            switch (n.kind) {
              case 181:
                Qe(
                  n,
                  f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type,
                );
                break;
              case 180:
                Qe(
                  n,
                  f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type,
                );
                break;
            }
          if (p && m) {
            const v = cc(n);
            if ((v & 5) === 1) {
              const I = Ji(p);
              I === In
                ? Qe(m, f.A_generator_cannot_have_a_void_type_annotation)
                : iye(I, v, m);
            } else (v & 3) === 2 && egt(n, p, m);
          }
          n.kind !== 182 && n.kind !== 318 && gT(n);
        }
      }
      function iye(n, a, c) {
        const p = qv(0, n, (a & 2) !== 0) || Ue,
          m = qv(1, n, (a & 2) !== 0) || p,
          v = qv(2, n, (a & 2) !== 0) || Nt,
          I = S$(p, m, v, !!(a & 2));
        return $d(I, n, c);
      }
      function A_t(n) {
        const a = new Map(),
          c = new Map(),
          p = new Map();
        for (const v of n.members)
          if (v.kind === 177)
            for (const I of v.parameters)
              Np(I, v) && !Qo(I.name) && m(a, I.name, I.name.escapedText, 3);
          else {
            const I = ua(v),
              w = v.name;
            if (!w) continue;
            const U = eo(w),
              H = U && I ? 16 : 0,
              Q = U ? p : I ? c : a,
              Ie = w && Fye(w);
            if (Ie)
              switch (v.kind) {
                case 178:
                  m(Q, w, Ie, 1 | H);
                  break;
                case 179:
                  m(Q, w, Ie, 2 | H);
                  break;
                case 173:
                  m(Q, w, Ie, 3 | H);
                  break;
                case 175:
                  m(Q, w, Ie, 8 | H);
                  break;
              }
          }
        function m(v, I, w, U) {
          const H = v.get(w);
          if (H)
            if ((H & 16) !== (U & 16))
              Qe(
                I,
                f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,
                Al(I),
              );
            else {
              const Q = !!(H & 8),
                Ie = !!(U & 8);
              Q || Ie
                ? Q !== Ie && Qe(I, f.Duplicate_identifier_0, Al(I))
                : H & U & -17
                  ? Qe(I, f.Duplicate_identifier_0, Al(I))
                  : v.set(w, H | U);
            }
          else v.set(w, U);
        }
      }
      function I_t(n) {
        for (const a of n.members) {
          const c = a.name;
          if (ua(a) && c) {
            const m = Fye(c);
            switch (m) {
              case "name":
              case "length":
              case "caller":
              case "arguments":
                if (Z) break;
              case "prototype":
                const v =
                    f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,
                  I = j0(Wr(n));
                Qe(c, v, m, I);
                break;
            }
          }
        }
      }
      function Y4e(n) {
        const a = new Map();
        for (const c of n.members)
          if (c.kind === 172) {
            let p;
            const m = c.name;
            switch (m.kind) {
              case 11:
              case 9:
                p = m.text;
                break;
              case 80:
                p = Kr(m);
                break;
              default:
                continue;
            }
            a.get(p)
              ? (Qe(Oo(c.symbol.valueDeclaration), f.Duplicate_identifier_0, p),
                Qe(c.name, f.Duplicate_identifier_0, p))
              : a.set(p, !0);
          }
      }
      function oye(n) {
        if (n.kind === 265) {
          const c = Wr(n);
          if (
            c.declarations &&
            c.declarations.length > 0 &&
            c.declarations[0] !== n
          )
            return;
        }
        const a = oY(Wr(n));
        if (a?.declarations) {
          const c = new Map();
          for (const p of a.declarations)
            Mb(p) &&
              p.parameters.length === 1 &&
              p.parameters[0].type &&
              kA(Ji(p.parameters[0].type), (m) => {
                const v = c.get(pd(m));
                v
                  ? v.declarations.push(p)
                  : c.set(pd(m), { type: m, declarations: [p] });
              });
          c.forEach((p) => {
            if (p.declarations.length > 1)
              for (const m of p.declarations)
                Qe(m, f.Duplicate_index_signature_for_type_0, ar(p.type));
          });
        }
      }
      function $4e(n) {
        (!Kg(n) && !vbt(n) && X$(n.name),
          Z5(n),
          x$(n),
          di(n, 64) &&
            n.kind === 173 &&
            n.initializer &&
            Qe(
              n,
              f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,
              ws(n.name),
            ));
      }
      function x_t(n) {
        return (
          eo(n.name) &&
            Qe(n, f.Private_identifiers_are_not_allowed_outside_class_bodies),
          $4e(n)
        );
      }
      function R_t(n) {
        (f7e(n) || X$(n.name),
          Nl(n) &&
            n.asteriskToken &&
            He(n.name) &&
            Kr(n.name) === "constructor" &&
            Qe(n.name, f.Class_constructor_may_not_be_a_generator),
          c3e(n),
          di(n, 64) &&
            n.kind === 175 &&
            n.body &&
            Qe(
              n,
              f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,
              ws(n.name),
            ),
          eo(n.name) &&
            !hd(n) &&
            Qe(n, f.Private_identifiers_are_not_allowed_outside_class_bodies),
          x$(n));
      }
      function x$(n) {
        if (
          eo(n.name) &&
          (G < ed.PrivateNamesAndClassStaticBlocks ||
            G < ed.ClassAndClassElementDecorators ||
            !Z)
        ) {
          for (let a = sh(n); a; a = sh(a)) Vr(a).flags |= 1048576;
          if (dc(n.parent)) {
            const a = ige(n.parent);
            a && ((Vr(n.name).flags |= 32768), (Vr(a).flags |= 4096));
          }
        }
      }
      function D_t(n) {
        (Kg(n), Jo(n, wa));
      }
      function C_t(n) {
        (c8(n), gbt(n) || ybt(n), wa(n.body));
        const a = Wr(n),
          c = al(a, n.kind);
        if ((n === c && D$(a), Ol(n.body))) return;
        r(m);
        return;
        function p(v) {
          return nu(v) ? !0 : v.kind === 173 && !ua(v) && !!v.initializer;
        }
        function m() {
          const v = n.parent;
          if (RS(v)) {
            oge(n.parent, v);
            const I = age(v),
              w = n6e(n.body);
            if (w) {
              if (
                (I &&
                  Qe(
                    w,
                    f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null,
                  ),
                !q &&
                  (yt(n.parent.members, p) ||
                    yt(n.parameters, (H) => di(H, 31))))
              )
                if (!N_t(w, n.body))
                  Qe(
                    w,
                    f.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers,
                  );
                else {
                  let H;
                  for (const Q of n.body.statements) {
                    if (od(Q) && n1(Ul(Q.expression))) {
                      H = Q;
                      break;
                    }
                    if (Q4e(Q)) break;
                  }
                  H === void 0 &&
                    Qe(
                      n,
                      f.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers,
                    );
                }
            } else
              I ||
                Qe(
                  n,
                  f.Constructors_for_derived_classes_must_contain_a_super_call,
                );
          }
        }
      }
      function N_t(n, a) {
        const c = zm(n.parent);
        return od(c) && c.parent === a;
      }
      function Q4e(n) {
        return n.kind === 108 || n.kind === 110
          ? !0
          : one(n)
            ? !1
            : !!Jo(n, Q4e);
      }
      function Z4e(n) {
        (He(n.name) &&
          Kr(n.name) === "constructor" &&
          ui(n.parent) &&
          Qe(n.name, f.Class_constructor_may_not_be_an_accessor),
          r(a),
          wa(n.body),
          x$(n));
        function a() {
          if (
            (!K$(n) && !abt(n) && X$(n.name),
            Y5(n),
            c8(n),
            n.kind === 178 &&
              !(n.flags & 33554432) &&
              fm(n.body) &&
              n.flags & 512 &&
              (n.flags & 1024 ||
                Qe(n.name, f.A_get_accessor_must_return_a_value)),
            n.name.kind === 168 && th(n.name),
            FC(n))
          ) {
            const p = Wr(n),
              m = al(p, 178),
              v = al(p, 179);
            if (m && v && !(hR(m) & 1)) {
              Vr(m).flags |= 1;
              const I = Gd(m),
                w = Gd(v);
              ((I & 64) !== (w & 64) &&
                (Qe(m.name, f.Accessors_must_both_be_abstract_or_non_abstract),
                Qe(v.name, f.Accessors_must_both_be_abstract_or_non_abstract)),
                ((I & 4 && !(w & 6)) || (I & 2 && !(w & 2))) &&
                  (Qe(
                    m.name,
                    f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter,
                  ),
                  Qe(
                    v.name,
                    f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter,
                  )));
            }
          }
          const c = hL(Wr(n));
          n.kind === 178 && Yge(n, c);
        }
      }
      function M_t(n) {
        Y5(n);
      }
      function P_t(n, a, c) {
        return n.typeArguments && c < n.typeArguments.length
          ? Ji(n.typeArguments[c])
          : R$(n, a)[c];
      }
      function R$(n, a) {
        return Bv(Vt(n.typeArguments, Ji), a, Z_(a), Ir(n));
      }
      function e3e(n, a) {
        let c,
          p,
          m = !0;
        for (let v = 0; v < a.length; v++) {
          const I = Uu(a[v]);
          I &&
            (c || ((c = R$(n, a)), (p = Yp(a, c))),
            (m =
              m &&
              $d(
                c[v],
                io(I, p),
                n.typeArguments[v],
                f.Type_0_does_not_satisfy_the_constraint_1,
              )));
        }
        return m;
      }
      function L_t(n, a) {
        if (!pr(n))
          return (
            (a.flags & 524288 && Jr(a).typeParameters) ||
            (Hr(n) & 4 ? n.target.localTypeParameters : void 0)
          );
      }
      function aye(n) {
        const a = Ji(n);
        if (!pr(a)) {
          const c = Vr(n).resolvedSymbol;
          if (c) return L_t(a, c);
        }
      }
      function sye(n) {
        if (
          (aB(n, n.typeArguments),
          n.kind === 184 &&
            !Ir(n) &&
            !YN(n) &&
            n.typeArguments &&
            n.typeName.end !== n.typeArguments.pos)
        ) {
          const a = Wn(n);
          Kte(a, n.typeName.end) === 25 &&
            rS(
              n,
              La(a.text, n.typeName.end),
              1,
              f.JSDoc_types_can_only_be_used_inside_documentation_comments,
            );
        }
        (Ye(n.typeArguments, wa), t3e(n));
      }
      function t3e(n) {
        const a = Ji(n);
        if (!pr(a)) {
          n.typeArguments &&
            r(() => {
              const p = aye(n);
              p && e3e(n, p);
            });
          const c = Vr(n).resolvedSymbol;
          c &&
            yt(c.declarations, (p) => kI(p) && !!(p.flags & 536870912)) &&
            Cm(F5(n), c.declarations, c.escapedName);
        }
      }
      function k_t(n) {
        const a = ni(n.parent, RF);
        if (!a) return;
        const c = aye(a);
        if (!c) return;
        const p = Uu(c[a.typeArguments.indexOf(n)]);
        return p && io(p, Yp(c, R$(a, c)));
      }
      function w_t(n) {
        kWe(n);
      }
      function O_t(n) {
        (Ye(n.members, wa), r(a));
        function a() {
          const c = A8e(n);
          (O$(c, c.symbol), oye(n), Y4e(n));
        }
      }
      function W_t(n) {
        wa(n.elementType);
      }
      function F_t(n) {
        let a = !1,
          c = !1;
        for (const p of n.elements) {
          let m = jhe(p);
          if (m & 8) {
            const v = Ji(p.type);
            if (!jv(v)) {
              Qe(p, f.A_rest_element_type_must_be_an_array_type);
              break;
            }
            (im(v) || (Ka(v) && v.target.combinedFlags & 4)) && (m |= 4);
          }
          if (m & 4) {
            if (c) {
              Cn(p, f.A_rest_element_cannot_follow_another_rest_element);
              break;
            }
            c = !0;
          } else if (m & 2) {
            if (c) {
              Cn(p, f.An_optional_element_cannot_follow_a_rest_element);
              break;
            }
            a = !0;
          } else if (m & 1 && a) {
            Cn(p, f.A_required_element_cannot_follow_an_optional_element);
            break;
          }
        }
        (Ye(n.elements, wa), Ji(n));
      }
      function z_t(n) {
        (Ye(n.types, wa), Ji(n));
      }
      function n3e(n, a) {
        if (!(n.flags & 8388608)) return n;
        const c = n.objectType,
          p = n.indexType,
          m = up(c) && DW(c) === 2 ? l8e(c, 0) : b_(c, 0),
          v = !!Vg(c, Bt);
        if (Ep(p, (I) => aa(I, m) || (v && eR(I, Bt))))
          return (
            a.kind === 213 &&
              Tb(a) &&
              Hr(c) & 32 &&
              Q_(c) & 1 &&
              Qe(a, f.Index_signature_in_type_0_only_permits_reading, ar(c)),
            n
          );
        if (IA(c)) {
          const I = _Y(p, a);
          if (I) {
            const w = kA(Du(c), (U) => Ea(U, I));
            if (w && Vf(w) & 6)
              return (
                Qe(
                  a,
                  f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,
                  Gi(I),
                ),
                nt
              );
          }
        }
        return (
          Qe(a, f.Type_0_cannot_be_used_to_index_type_1, ar(p), ar(c)),
          nt
        );
      }
      function B_t(n) {
        (wa(n.objectType), wa(n.indexType), n3e(y8e(n), n));
      }
      function G_t(n) {
        (V_t(n),
          wa(n.typeParameter),
          wa(n.nameType),
          wa(n.type),
          n.type || eS(n, Ue));
        const a = t_e(n),
          c = Fv(a);
        if (c) $d(c, Ii, n.nameType);
        else {
          const p = Rf(a);
          $d(p, Ii, WR(n.typeParameter));
        }
      }
      function V_t(n) {
        var a;
        if ((a = n.members) != null && a.length)
          return Cn(
            n.members[0],
            f.A_mapped_type_may_not_declare_properties_or_methods,
          );
      }
      function j_t(n) {
        l_e(n);
      }
      function U_t(n) {
        (lbt(n), wa(n.type));
      }
      function H_t(n) {
        Jo(n, wa);
      }
      function q_t(n) {
        (Dn(
          n,
          (c) =>
            c.parent && c.parent.kind === 195 && c.parent.extendsType === c,
        ) ||
          Cn(
            n,
            f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type,
          ),
          wa(n.typeParameter));
        const a = Wr(n.typeParameter);
        if (a.declarations && a.declarations.length > 1) {
          const c = Jr(a);
          if (!c.typeParametersChecked) {
            c.typeParametersChecked = !0;
            const p = U0(a),
              m = Ite(a, 169);
            if (!D3e(m, [p], (v) => [v])) {
              const v = uo(a);
              for (const I of m)
                Qe(
                  I.name,
                  f.All_declarations_of_0_must_have_identical_constraints,
                  v,
                );
            }
          }
        }
        gT(n);
      }
      function J_t(n) {
        for (const a of n.templateSpans) {
          wa(a.type);
          const c = Ji(a.type);
          $d(c, sa, a.type);
        }
        Ji(n);
      }
      function K_t(n) {
        (wa(n.argument), n.attributes && HD(n.attributes, Cn), t3e(n));
      }
      function X_t(n) {
        (n.dotDotDotToken &&
          n.questionToken &&
          Cn(n, f.A_tuple_member_cannot_be_both_optional_and_rest),
          n.type.kind === 191 &&
            Cn(
              n.type,
              f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type,
            ),
          n.type.kind === 192 &&
            Cn(
              n.type,
              f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type,
            ),
          wa(n.type),
          Ji(n));
      }
      function K5(n) {
        return (wp(n, 2) || nu(n)) && !!(n.flags & 33554432);
      }
      function d8(n, a) {
        let c = $$(n);
        if (
          n.parent.kind !== 265 &&
          n.parent.kind !== 264 &&
          n.parent.kind !== 232 &&
          n.flags & 33554432
        ) {
          const p = zF(n);
          (p &&
            p.flags & 128 &&
            !(c & 128) &&
            !(t_(n.parent) && uc(n.parent.parent) && M_(n.parent.parent)) &&
            (c |= 32),
            (c |= 128));
        }
        return c & a;
      }
      function D$(n) {
        r(() => Y_t(n));
      }
      function Y_t(n) {
        function a(Sn, vn) {
          return vn !== void 0 && vn.parent === Sn[0].parent ? vn : Sn[0];
        }
        function c(Sn, vn, Sr, fi, oo) {
          if ((fi ^ oo) !== 0) {
            const zi = d8(a(Sn, vn), Sr);
            IR(Sn, (Ko) => Wn(Ko).fileName).forEach((Ko) => {
              const ms = d8(a(Ko, vn), Sr);
              for (const fo of Ko) {
                const dl = d8(fo, Sr) ^ zi,
                  Kl = d8(fo, Sr) ^ ms;
                Kl & 32
                  ? Qe(
                      Oo(fo),
                      f.Overload_signatures_must_all_be_exported_or_non_exported,
                    )
                  : Kl & 128
                    ? Qe(
                        Oo(fo),
                        f.Overload_signatures_must_all_be_ambient_or_non_ambient,
                      )
                    : dl & 6
                      ? Qe(
                          Oo(fo) || fo,
                          f.Overload_signatures_must_all_be_public_private_or_protected,
                        )
                      : dl & 64 &&
                        Qe(
                          Oo(fo),
                          f.Overload_signatures_must_all_be_abstract_or_non_abstract,
                        );
              }
            });
          }
        }
        function p(Sn, vn, Sr, fi) {
          if (Sr !== fi) {
            const oo = vI(a(Sn, vn));
            Ye(Sn, (ii) => {
              vI(ii) !== oo &&
                Qe(
                  Oo(ii),
                  f.Overload_signatures_must_all_be_optional_or_required,
                );
            });
          }
        }
        const m = 230;
        let v = 0,
          I = m,
          w = !1,
          U = !0,
          H = !1,
          Q,
          Ie,
          Te;
        const Ze = n.declarations,
          Tt = (n.flags & 16384) !== 0;
        function Dt(Sn) {
          if (Sn.name && Ol(Sn.name)) return;
          let vn = !1;
          const Sr = Jo(Sn.parent, (oo) => {
            if (vn) return oo;
            vn = oo === Sn;
          });
          if (Sr && Sr.pos === Sn.end && Sr.kind === Sn.kind) {
            const oo = Sr.name || Sr,
              ii = Sr.name;
            if (
              Sn.name &&
              ii &&
              ((eo(Sn.name) &&
                eo(ii) &&
                Sn.name.escapedText === ii.escapedText) ||
                (va(Sn.name) && va(ii) && Hg(th(Sn.name), th(ii))) ||
                (qh(Sn.name) && qh(ii) && aM(Sn.name) === aM(ii)))
            ) {
              if ((Sn.kind === 175 || Sn.kind === 174) && ua(Sn) !== ua(Sr)) {
                const Ko = ua(Sn)
                  ? f.Function_overload_must_be_static
                  : f.Function_overload_must_not_be_static;
                Qe(oo, Ko);
              }
              return;
            }
            if (fm(Sr.body)) {
              Qe(oo, f.Function_implementation_name_must_be_0, ws(Sn.name));
              return;
            }
          }
          const fi = Sn.name || Sn;
          Tt
            ? Qe(fi, f.Constructor_implementation_is_missing)
            : di(Sn, 64)
              ? Qe(
                  fi,
                  f.All_declarations_of_an_abstract_method_must_be_consecutive,
                )
              : Qe(
                  fi,
                  f.Function_implementation_is_missing_or_not_immediately_following_the_declaration,
                );
        }
        let $t = !1,
          Tn = !1,
          nr = !1;
        const yr = [];
        if (Ze)
          for (const Sn of Ze) {
            const vn = Sn,
              Sr = vn.flags & 33554432,
              fi =
                (vn.parent &&
                  (vn.parent.kind === 265 || vn.parent.kind === 188)) ||
                Sr;
            if (
              (fi && (Te = void 0),
              (vn.kind === 264 || vn.kind === 232) && !Sr && (nr = !0),
              vn.kind === 263 ||
                vn.kind === 175 ||
                vn.kind === 174 ||
                vn.kind === 177)
            ) {
              yr.push(vn);
              const oo = d8(vn, m);
              ((v |= oo), (I &= oo), (w = w || vI(vn)), (U = U && vI(vn)));
              const ii = fm(vn.body);
              (ii && Q
                ? Tt
                  ? (Tn = !0)
                  : ($t = !0)
                : Te?.parent === vn.parent && Te.end !== vn.pos && Dt(Te),
                ii ? Q || (Q = vn) : (H = !0),
                (Te = vn),
                fi || (Ie = vn));
            }
            Ir(Sn) && Yo(Sn) && Sn.jsDoc && (H = et(zG(Sn)) > 0);
          }
        if (
          (Tn &&
            Ye(yr, (Sn) => {
              Qe(Sn, f.Multiple_constructor_implementations_are_not_allowed);
            }),
          $t &&
            Ye(yr, (Sn) => {
              Qe(Oo(Sn) || Sn, f.Duplicate_function_implementation);
            }),
          nr && !Tt && n.flags & 16 && Ze)
        ) {
          const Sn = Un(Ze, (vn) => vn.kind === 264).map((vn) =>
            Ar(vn, f.Consider_adding_a_declare_modifier_to_this_class),
          );
          Ye(Ze, (vn) => {
            const Sr =
              vn.kind === 264
                ? f.Class_declaration_cannot_implement_overload_list_for_0
                : vn.kind === 263
                  ? f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient
                  : void 0;
            Sr && pa(Qe(Oo(vn) || vn, Sr, wl(n)), ...Sn);
          });
        }
        if (
          (Ie && !Ie.body && !di(Ie, 64) && !Ie.questionToken && Dt(Ie),
          H && (Ze && (c(Ze, Q, m, v, I), p(Ze, Q, w, U)), Q))
        ) {
          const Sn = AE(n),
            vn = Df(Q);
          for (const Sr of Sn)
            if (!Qdt(vn, Sr)) {
              const fi =
                Sr.declaration && fv(Sr.declaration)
                  ? Sr.declaration.parent.tagName
                  : Sr.declaration;
              pa(
                Qe(
                  fi,
                  f.This_overload_signature_is_not_compatible_with_its_implementation_signature,
                ),
                Ar(Q, f.The_implementation_signature_is_declared_here),
              );
              break;
            }
        }
      }
      function u8(n) {
        r(() => $_t(n));
      }
      function $_t(n) {
        let a = n.localSymbol;
        if ((!a && ((a = Wr(n)), !a.exportSymbol)) || al(a, n.kind) !== n)
          return;
        let c = 0,
          p = 0,
          m = 0;
        for (const H of a.declarations) {
          const Q = U(H),
            Ie = d8(H, 2080);
          Ie & 32 ? (Ie & 2048 ? (m |= Q) : (c |= Q)) : (p |= Q);
        }
        const v = c | p,
          I = c & p,
          w = m & v;
        if (I || w)
          for (const H of a.declarations) {
            const Q = U(H),
              Ie = Oo(H);
            Q & w
              ? Qe(
                  Ie,
                  f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,
                  ws(Ie),
                )
              : Q & I &&
                Qe(
                  Ie,
                  f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,
                  ws(Ie),
                );
          }
        function U(H) {
          let Q = H;
          switch (Q.kind) {
            case 265:
            case 266:
            case 347:
            case 339:
            case 341:
              return 2;
            case 268:
              return yu(Q) || my(Q) !== 0 ? 5 : 4;
            case 264:
            case 267:
            case 307:
              return 3;
            case 308:
              return 7;
            case 278:
            case 227:
              const Ie = Q,
                Te = ll(Ie) ? Ie.expression : Ie.right;
              if (!Ds(Te)) return 1;
              Q = Te;
            case 272:
            case 275:
            case 274:
              let Ze = 0;
              const Tt = ud(Wr(Q));
              return (
                Ye(Tt.declarations, (Dt) => {
                  Ze |= U(Dt);
                }),
                Ze
              );
            case 261:
            case 209:
            case 263:
            case 277:
            case 80:
              return 1;
            case 174:
            case 172:
              return 2;
            default:
              return C.failBadSyntaxKind(Q);
          }
        }
      }
      function FL(n, a, c, ...p) {
        const m = p8(n, a);
        return m && pR(m, a, c, ...p);
      }
      function p8(n, a, c) {
        if (wr(n)) return;
        const p = n;
        if (p.promisedTypeOfPromise) return p.promisedTypeOfPromise;
        if (Jp(n, $z(!1))) return (p.promisedTypeOfPromise = rl(n)[0]);
        if (l8(v_(n), 402915324)) return;
        const m = _n(n, "then");
        if (wr(m)) return;
        const v = m ? na(m, 0) : ae;
        if (v.length === 0) {
          a && Qe(a, f.A_promise_must_have_a_then_method);
          return;
        }
        let I, w;
        for (const Q of v) {
          const Ie = J0(Q);
          Ie && Ie !== In && !T_(n, Ie, H_) ? (I = Ie) : (w = Bn(w, Q));
        }
        if (!w) {
          (C.assertIsDefined(I),
            c && (c.value = I),
            a &&
              Qe(
                a,
                f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,
                ar(n),
                ar(I),
              ));
          return;
        }
        const U = om(pi(Vt(w, Hge)), 2097152);
        if (wr(U)) return;
        const H = na(U, 0);
        if (H.length === 0) {
          a &&
            Qe(
              a,
              f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback,
            );
          return;
        }
        return (p.promisedTypeOfPromise = pi(Vt(H, Hge), 2));
      }
      function X5(n, a, c, p, ...m) {
        return (a ? pR(n, c, p, ...m) : jy(n, c, p, ...m)) || nt;
      }
      function r3e(n) {
        if (l8(v_(n), 402915324)) return !1;
        const a = _n(n, "then");
        return !!a && na(om(a, 2097152), 0).length > 0;
      }
      function C$(n) {
        var a;
        if (n.flags & 16777216) {
          const c = Vhe(!1);
          return (
            !!c &&
            n.aliasSymbol === c &&
            ((a = n.aliasTypeArguments) == null ? void 0 : a.length) === 1
          );
        }
        return !1;
      }
      function zL(n) {
        return n.flags & 1048576
          ? Tl(n, zL)
          : C$(n)
            ? n.aliasTypeArguments[0]
            : n;
      }
      function i3e(n) {
        if (wr(n) || C$(n)) return !1;
        if (IA(n)) {
          const a = Ld(n);
          if (a ? a.flags & 3 || Fy(a) || am(a, r3e) : tc(n, 8650752))
            return !0;
        }
        return !1;
      }
      function Q_t(n) {
        const a = Vhe(!0);
        if (a) return VC(a, [zL(n)]);
      }
      function Z_t(n) {
        return i3e(n)
          ? (Q_t(n) ?? n)
          : (C.assert(
              C$(n) || p8(n) === void 0,
              "type provided should not be a non-generic 'promise'-like.",
            ),
            n);
      }
      function pR(n, a, c, ...p) {
        const m = jy(n, a, c, ...p);
        return m && Z_t(m);
      }
      function jy(n, a, c, ...p) {
        if (wr(n) || C$(n)) return n;
        const m = n;
        if (m.awaitedTypeOfType) return m.awaitedTypeOfType;
        if (n.flags & 1048576) {
          if (Kb.lastIndexOf(n.id) >= 0) {
            a &&
              Qe(
                a,
                f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method,
              );
            return;
          }
          const w = a ? (H) => jy(H, a, c, ...p) : jy;
          Kb.push(n.id);
          const U = Tl(n, w);
          return (Kb.pop(), (m.awaitedTypeOfType = U));
        }
        if (i3e(n)) return (m.awaitedTypeOfType = n);
        const v = { value: void 0 },
          I = p8(n, void 0, v);
        if (I) {
          if (n.id === I.id || Kb.lastIndexOf(I.id) >= 0) {
            a &&
              Qe(
                a,
                f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method,
              );
            return;
          }
          Kb.push(n.id);
          const w = jy(I, a, c, ...p);
          return (Kb.pop(), w ? (m.awaitedTypeOfType = w) : void 0);
        }
        if (r3e(n)) {
          if (a) {
            C.assertIsDefined(c);
            let w;
            (v.value &&
              (w = qo(
                w,
                f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,
                ar(n),
                ar(v.value),
              )),
              (w = qo(w, c, ...p)),
              ns.add(hg(Wn(a), a, w)));
          }
          return;
        }
        return (m.awaitedTypeOfType = n);
      }
      function egt(n, a, c) {
        const p = Ji(a);
        if (G >= 2) {
          if (pr(p)) return;
          const v = $z(!0);
          if (v !== Zt && !Jp(p, v)) {
            m(
              f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,
              a,
              c,
              ar(jy(p) || In),
            );
            return;
          }
        } else {
          if ((cR(n, 5), pr(p))) return;
          const v = ck(a);
          if (v === void 0) {
            m(
              f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,
              a,
              c,
              ar(p),
            );
            return;
          }
          const I = Gl(v, 111551, !0),
            w = I ? _r(I) : nt;
          if (pr(w)) {
            v.kind === 80 && v.escapedText === "Promise" && zn(p) === $z(!1)
              ? Qe(
                  c,
                  f.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option,
                )
              : m(
                  f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,
                  a,
                  c,
                  Mp(v),
                );
            return;
          }
          const U = lct(!0);
          if (U === Ra) {
            m(
              f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,
              a,
              c,
              Mp(v),
            );
            return;
          }
          const H =
            f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;
          if (
            !$d(w, U, c, H, () =>
              a === c
                ? void 0
                : qo(
                    void 0,
                    f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type,
                  ),
            )
          )
            return;
          const Ie = v && Lu(v),
            Te = Sd(n.locals, Ie.escapedText, 111551);
          if (Te) {
            Qe(
              Te.valueDeclaration,
              f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,
              Kr(Ie),
              Mp(v),
            );
            return;
          }
        }
        X5(
          p,
          !1,
          n,
          f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member,
        );
        function m(v, I, w, U) {
          if (I === w) Qe(w, v, U);
          else {
            const H = Qe(
              w,
              f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type,
            );
            pa(H, Ar(I, v, U));
          }
        }
      }
      function tgt(n) {
        const a = Wn(n);
        if (!vT(a)) {
          let c = n.expression;
          if (Ou(c)) return !1;
          let p = !0,
            m;
          for (;;) {
            if (dy(c) || XI(c)) {
              c = c.expression;
              continue;
            }
            if (Zo(c)) {
              (p || (m = c),
                c.questionDotToken && (m = c.questionDotToken),
                (c = c.expression),
                (p = !1));
              continue;
            }
            if (qr(c)) {
              (c.questionDotToken && (m = c.questionDotToken),
                (c = c.expression),
                (p = !1));
              continue;
            }
            He(c) || (m = c);
            break;
          }
          if (m)
            return (
              pa(
                Qe(
                  n.expression,
                  f.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator,
                ),
                Ar(m, f.Invalid_syntax_in_decorator),
              ),
              !0
            );
        }
        return !1;
      }
      function ngt(n) {
        tgt(n);
        const a = ZC(n);
        b$(a, n);
        const c = fs(a);
        if (c.flags & 1) return;
        const p = Kge(n);
        if (!p?.resolvedReturnType) return;
        let m;
        const v = p.resolvedReturnType;
        switch (n.parent.kind) {
          case 264:
          case 232:
            m = f.Decorator_function_return_type_0_is_not_assignable_to_type_1;
            break;
          case 173:
            if (!J) {
              m =
                f.Decorator_function_return_type_0_is_not_assignable_to_type_1;
              break;
            }
          case 170:
            m =
              f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;
            break;
          case 175:
          case 178:
          case 179:
            m = f.Decorator_function_return_type_0_is_not_assignable_to_type_1;
            break;
          default:
            return C.failBadSyntaxKind(n.parent);
        }
        $d(c, v, n.expression, m);
      }
      function f8(n, a, c, p, m, v = c.length, I = 0) {
        const w = L.createFunctionTypeNode(
          void 0,
          ae,
          L.createKeywordTypeNode(133),
        );
        return y_(w, n, a, c, p, m, v, I);
      }
      function lye(n, a, c, p, m, v, I) {
        const w = f8(n, a, c, p, m, v, I);
        return TA(w);
      }
      function o3e(n) {
        return lye(void 0, void 0, ae, n);
      }
      function a3e(n) {
        const a = Ef("value", n);
        return lye(void 0, void 0, [a], In);
      }
      function cye(n) {
        if (n)
          switch (n.kind) {
            case 194:
            case 193:
              return s3e(n.types);
            case 195:
              return s3e([n.trueType, n.falseType]);
            case 197:
            case 203:
              return cye(n.type);
            case 184:
              return n.typeName;
          }
      }
      function s3e(n) {
        let a;
        for (let c of n) {
          for (; c.kind === 197 || c.kind === 203; ) c = c.type;
          if (
            c.kind === 146 ||
            (!ie &&
              ((c.kind === 202 && c.literal.kind === 106) || c.kind === 157))
          )
            continue;
          const p = cye(c);
          if (!p) return;
          if (a) {
            if (!He(a) || !He(p) || a.escapedText !== p.escapedText) return;
          } else a = p;
        }
        return a;
      }
      function N$(n) {
        const a = xc(n);
        return C_(n) ? DG(a) : a;
      }
      function Y5(n) {
        if (
          !qS(n) ||
          !pf(n) ||
          !n.modifiers ||
          !dk(J, n, n.parent, n.parent.parent)
        )
          return;
        const a = hn(n.modifiers, Wc);
        if (a) {
          (J
            ? ($c(a, 8), n.kind === 170 && $c(a, 32))
            : G < ed.ClassAndClassElementDecorators &&
              ($c(a, 8),
              Dc(n)
                ? n.name
                  ? C3e(n) && $c(a, 4194304)
                  : $c(a, 4194304)
                : dc(n) ||
                  (eo(n.name) && (Nl(n) || fb(n) || Yu(n)) && $c(a, 4194304),
                  va(n.name) && $c(a, 8388608))),
            cR(n, 8));
          for (const c of n.modifiers) Wc(c) && ngt(c);
        }
      }
      function rgt(n) {
        r(a);
        function a() {
          (c3e(n), kye(n), BL(n, n.name));
        }
      }
      function igt(n) {
        (n.typeExpression ||
          Qe(
            n.name,
            f.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags,
          ),
          n.name && GL(n.name, f.Type_alias_name_cannot_be_0),
          wa(n.typeExpression),
          nB(cb(n)));
      }
      function ogt(n) {
        wa(n.constraint);
        for (const a of n.typeParameters) wa(a);
      }
      function agt(n) {
        wa(n.typeExpression);
      }
      function sgt(n) {
        wa(n.typeExpression);
        const a = GT(n);
        if (a) {
          const c = fF(a, D4);
          if (et(c) > 1)
            for (let p = 1; p < et(c); p++) {
              const m = c[p].tagName;
              Qe(m, f._0_tag_already_specified, Kr(m));
            }
        }
      }
      function lgt(n) {
        n.name && iB(n.name, !0);
      }
      function cgt(n) {
        wa(n.typeExpression);
      }
      function dgt(n) {
        wa(n.typeExpression);
      }
      function ugt(n) {
        (r(a), c8(n));
        function a() {
          !n.type && !bI(n) && eS(n, Ue);
        }
      }
      function pgt(n) {
        const a = GT(n);
        a &&
          Xs(a) &&
          Qe(n.tagName, f.An_arrow_function_cannot_have_a_this_parameter);
      }
      function fgt(n) {
        Eye(n);
      }
      function mgt(n) {
        const a = GT(n);
        (!a || (!Dc(a) && !dc(a))) &&
          Qe(a, f.JSDoc_0_is_not_attached_to_a_class, Kr(n.tagName));
      }
      function hgt(n) {
        const a = GT(n);
        if (!a || (!Dc(a) && !dc(a))) {
          Qe(a, f.JSDoc_0_is_not_attached_to_a_class, Kr(n.tagName));
          return;
        }
        const c = kT(a).filter(QI);
        (C.assert(c.length > 0),
          c.length > 1 &&
            Qe(
              c[1],
              f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag,
            ));
        const p = l3e(n.class.expression),
          m = RS(a);
        if (m) {
          const v = l3e(m.expression);
          v &&
            p.escapedText !== v.escapedText &&
            Qe(
              p,
              f.JSDoc_0_1_does_not_match_the_extends_2_clause,
              Kr(n.tagName),
              Kr(p),
              Kr(v),
            );
        }
      }
      function _gt(n) {
        const a = IS(n);
        a &&
          nu(a) &&
          Qe(
            n,
            f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier,
          );
      }
      function l3e(n) {
        switch (n.kind) {
          case 80:
            return n;
          case 212:
            return n.name;
          default:
            return;
        }
      }
      function c3e(n) {
        var a;
        (Y5(n), c8(n));
        const c = cc(n);
        if ((n.name && n.name.kind === 168 && th(n.name), FC(n))) {
          const v = Wr(n),
            I = n.localSymbol || v,
            w =
              (a = I.declarations) == null
                ? void 0
                : a.find((U) => U.kind === n.kind && !(U.flags & 524288));
          (n === w && D$(I), v.parent && D$(v));
        }
        const p = n.kind === 174 ? void 0 : n.body;
        if ((wa(p), Yge(n, BC(n)), r(m), Ir(n))) {
          const v = LT(n);
          v &&
            v.typeExpression &&
            !_ge(Ji(v.typeExpression), n) &&
            Qe(
              v.typeExpression.type,
              f.The_type_of_a_function_declaration_must_match_the_function_s_signature,
            );
        }
        function m() {
          kp(n) || (Ol(p) && !K5(n) && eS(n, Ue), c & 1 && fm(p) && fs(Df(n)));
        }
      }
      function gT(n) {
        r(a);
        function a() {
          const c = Wn(n);
          let p = Qn.get(c.path);
          (p || ((p = []), Qn.set(c.path, p)), p.push(n));
        }
      }
      function d3e(n, a) {
        for (const c of n)
          switch (c.kind) {
            case 264:
            case 232:
              (ggt(c, a), dye(c, a));
              break;
            case 308:
            case 268:
            case 242:
            case 270:
            case 249:
            case 250:
            case 251:
              f3e(c, a);
              break;
            case 177:
            case 219:
            case 263:
            case 220:
            case 175:
            case 178:
            case 179:
              (c.body && f3e(c, a), dye(c, a));
              break;
            case 174:
            case 180:
            case 181:
            case 185:
            case 186:
            case 266:
            case 265:
              dye(c, a);
              break;
            case 196:
              ygt(c, a);
              break;
            default:
              C.assertNever(
                c,
                "Node should not have been registered for unused identifiers check",
              );
          }
      }
      function u3e(n, a, c) {
        const p = Oo(n) || n,
          m = kI(n)
            ? f._0_is_declared_but_never_used
            : f._0_is_declared_but_its_value_is_never_read;
        c(n, 0, Ar(p, m, a));
      }
      function m8(n) {
        return He(n) && Kr(n).charCodeAt(0) === 95;
      }
      function ggt(n, a) {
        for (const c of n.members)
          switch (c.kind) {
            case 175:
            case 173:
            case 178:
            case 179:
              if (c.kind === 179 && c.symbol.flags & 32768) break;
              const p = Wr(c);
              !p.isReferenced &&
                (wp(c, 2) || (nd(c) && eo(c.name))) &&
                !(c.flags & 33554432) &&
                a(
                  c,
                  0,
                  Ar(
                    c.name,
                    f._0_is_declared_but_its_value_is_never_read,
                    uo(p),
                  ),
                );
              break;
            case 177:
              for (const m of c.parameters)
                !m.symbol.isReferenced &&
                  di(m, 2) &&
                  a(
                    m,
                    0,
                    Ar(
                      m.name,
                      f.Property_0_is_declared_but_its_value_is_never_read,
                      wl(m.symbol),
                    ),
                  );
              break;
            case 182:
            case 241:
            case 176:
              break;
            default:
              C.fail("Unexpected class member");
          }
      }
      function ygt(n, a) {
        const { typeParameter: c } = n;
        uye(c) &&
          a(
            n,
            1,
            Ar(n, f._0_is_declared_but_its_value_is_never_read, Kr(c.name)),
          );
      }
      function dye(n, a) {
        const c = Wr(n).declarations;
        if (!c || Ba(c) !== n) return;
        const p = cb(n),
          m = new Set();
        for (const v of p) {
          if (!uye(v)) continue;
          const I = Kr(v.name),
            { parent: w } = v;
          if (w.kind !== 196 && w.typeParameters.every(uye)) {
            if (rh(m, w)) {
              const U = Wn(w),
                H = bm(w) ? VV(w) : jV(U, w.typeParameters),
                Ie =
                  w.typeParameters.length === 1
                    ? [f._0_is_declared_but_its_value_is_never_read, I]
                    : [f.All_type_parameters_are_unused];
              a(v, 1, Oc(U, H.pos, H.end - H.pos, ...Ie));
            }
          } else
            a(v, 1, Ar(v, f._0_is_declared_but_its_value_is_never_read, I));
        }
      }
      function uye(n) {
        return !(os(n.symbol).isReferenced & 262144) && !m8(n.name);
      }
      function $5(n, a, c, p) {
        const m = String(p(a)),
          v = n.get(m);
        v ? v[1].push(c) : n.set(m, [a, [c]]);
      }
      function p3e(n) {
        return ni(Jh(n), to);
      }
      function vgt(n) {
        return Ha(n)
          ? ff(n.parent)
            ? !!(n.propertyName && m8(n.name))
            : m8(n.name)
          : yu(n) || (((yi(n) && QE(n.parent.parent)) || m3e(n)) && m8(n.name));
      }
      function f3e(n, a) {
        const c = new Map(),
          p = new Map(),
          m = new Map();
        (n.locals.forEach((v) => {
          if (
            !(v.flags & 262144
              ? !(v.flags & 3 && !(v.isReferenced & 3))
              : v.isReferenced || v.exportSymbol) &&
            v.declarations
          ) {
            for (const I of v.declarations)
              if (!vgt(I))
                if (m3e(I)) $5(c, Tgt(I), I, ls);
                else if (Ha(I) && ff(I.parent)) {
                  const w = Ba(I.parent.elements);
                  (I === w || !Ba(I.parent.elements).dotDotDotToken) &&
                    $5(p, I.parent, I, ls);
                } else if (yi(I)) {
                  const w = wE(I) & 7,
                    U = Oo(I);
                  ((w !== 4 && w !== 6) || !U || !m8(U)) &&
                    $5(m, I.parent, I, ls);
                } else {
                  const w = v.valueDeclaration && p3e(v.valueDeclaration),
                    U = v.valueDeclaration && Oo(v.valueDeclaration);
                  w && U
                    ? !Np(w, w.parent) &&
                      !Sb(w) &&
                      !m8(U) &&
                      (Ha(I) && pv(I.parent)
                        ? $5(p, I.parent, I, ls)
                        : a(
                            w,
                            1,
                            Ar(
                              U,
                              f._0_is_declared_but_its_value_is_never_read,
                              wl(v),
                            ),
                          ))
                    : u3e(I, wl(v), a);
                }
          }
        }),
          c.forEach(([v, I]) => {
            const w = v.parent;
            if (
              (v.name ? 1 : 0) +
                (v.namedBindings
                  ? v.namedBindings.kind === 275
                    ? 1
                    : v.namedBindings.elements.length
                  : 0) ===
              I.length
            )
              a(
                w,
                0,
                I.length === 1
                  ? Ar(
                      w,
                      f._0_is_declared_but_its_value_is_never_read,
                      Kr($a(I).name),
                    )
                  : Ar(w, f.All_imports_in_import_declaration_are_unused),
              );
            else for (const H of I) u3e(H, Kr(H.name), a);
          }),
          p.forEach(([v, I]) => {
            const w = p3e(v.parent) ? 1 : 0;
            if (v.elements.length === I.length)
              I.length === 1 &&
              v.parent.kind === 261 &&
              v.parent.parent.kind === 262
                ? $5(m, v.parent.parent, v.parent, ls)
                : a(
                    v,
                    w,
                    I.length === 1
                      ? Ar(
                          v,
                          f._0_is_declared_but_its_value_is_never_read,
                          Q5($a(I).name),
                        )
                      : Ar(v, f.All_destructured_elements_are_unused),
                  );
            else
              for (const U of I)
                a(
                  U,
                  w,
                  Ar(
                    U,
                    f._0_is_declared_but_its_value_is_never_read,
                    Q5(U.name),
                  ),
                );
          }),
          m.forEach(([v, I]) => {
            if (v.declarations.length === I.length)
              a(
                v,
                0,
                I.length === 1
                  ? Ar(
                      $a(I).name,
                      f._0_is_declared_but_its_value_is_never_read,
                      Q5($a(I).name),
                    )
                  : Ar(
                      v.parent.kind === 244 ? v.parent : v,
                      f.All_variables_are_unused,
                    ),
              );
            else
              for (const w of I)
                a(
                  w,
                  0,
                  Ar(
                    w,
                    f._0_is_declared_but_its_value_is_never_read,
                    Q5(w.name),
                  ),
                );
          }));
      }
      function bgt() {
        var n;
        for (const a of Ay)
          if (!((n = Wr(a)) != null && n.isReferenced)) {
            const c = qE(a);
            C.assert(
              jT(c),
              "Only parameter declaration should be checked here",
            );
            const p = Ar(
              a.name,
              f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,
              ws(a.name),
              ws(a.propertyName),
            );
            (c.type ||
              pa(
                p,
                Oc(
                  Wn(c),
                  c.end,
                  0,
                  f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,
                  ws(a.propertyName),
                ),
              ),
              ns.add(p));
          }
      }
      function Q5(n) {
        switch (n.kind) {
          case 80:
            return Kr(n);
          case 208:
          case 207:
            return Q5(ma($a(n.elements), Ha).name);
          default:
            return C.assertNever(n);
        }
      }
      function m3e(n) {
        return n.kind === 274 || n.kind === 277 || n.kind === 275;
      }
      function Tgt(n) {
        return n.kind === 274 ? n : n.kind === 275 ? n.parent : n.parent.parent;
      }
      function M$(n) {
        if ((n.kind === 242 && Uy(n), $9(n))) {
          const a = Oi;
          (Ye(n.statements, wa), (Oi = a));
        } else Ye(n.statements, wa);
        n.locals && gT(n);
      }
      function Sgt(n) {
        G >= 2 ||
          !oG(n) ||
          n.flags & 33554432 ||
          Ol(n.body) ||
          Ye(n.parameters, (a) => {
            a.name &&
              !Qo(a.name) &&
              a.name.escapedText === _e.escapedName &&
              Av(
                "noEmit",
                a,
                f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters,
              );
          });
      }
      function h8(n, a, c) {
        if (
          a?.escapedText !== c ||
          n.kind === 173 ||
          n.kind === 172 ||
          n.kind === 175 ||
          n.kind === 174 ||
          n.kind === 178 ||
          n.kind === 179 ||
          n.kind === 304 ||
          n.flags & 33554432 ||
          ((Vm(n) || Fc(n) || Eu(n)) && Qy(n))
        )
          return !1;
        const p = Jh(n);
        return !(to(p) && Ol(p.parent.body));
      }
      function Egt(n) {
        Dn(n, (a) =>
          hR(a) & 4
            ? (n.kind !== 80
                ? Qe(
                    Oo(n),
                    f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference,
                  )
                : Qe(
                    n,
                    f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference,
                  ),
              !0)
            : !1,
        );
      }
      function Agt(n) {
        Dn(n, (a) =>
          hR(a) & 8
            ? (n.kind !== 80
                ? Qe(
                    Oo(n),
                    f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference,
                  )
                : Qe(
                    n,
                    f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference,
                  ),
              !0)
            : !1,
        );
      }
      function Igt(n, a) {
        if (
          e.getEmitModuleFormatOfFile(Wn(n)) >= 5 ||
          !a ||
          (!h8(n, a, "require") && !h8(n, a, "exports")) ||
          (uc(n) && my(n) !== 1)
        )
          return;
        const c = Pt(n);
        c.kind === 308 &&
          Pp(c) &&
          Av(
            "noEmit",
            a,
            f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,
            ws(a),
            ws(a),
          );
      }
      function xgt(n, a) {
        if (!a || G >= 4 || !h8(n, a, "Promise") || (uc(n) && my(n) !== 1))
          return;
        const c = Pt(n);
        c.kind === 308 &&
          Pp(c) &&
          c.flags & 4096 &&
          Av(
            "noEmit",
            a,
            f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,
            ws(a),
            ws(a),
          );
      }
      function Rgt(n, a) {
        G <= 8 && (h8(n, a, "WeakMap") || h8(n, a, "WeakSet")) && Sy.push(n);
      }
      function Dgt(n) {
        const a = sh(n);
        hR(a) & 1048576 &&
          (C.assert(
            nd(n) && He(n.name) && typeof n.name.escapedText == "string",
            "The target of a WeakMap/WeakSet collision check should be an identifier",
          ),
          Av(
            "noEmit",
            n,
            f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,
            n.name.escapedText,
          ));
      }
      function Cgt(n, a) {
        a && G >= 2 && G <= 8 && h8(n, a, "Reflect") && Ey.push(n);
      }
      function Ngt(n) {
        let a = !1;
        if (dc(n)) {
          for (const c of n.members)
            if (hR(c) & 2097152) {
              a = !0;
              break;
            }
        } else if (Us(n)) hR(n) & 2097152 && (a = !0);
        else {
          const c = sh(n);
          c && hR(c) & 2097152 && (a = !0);
        }
        a &&
          (C.assert(
            nd(n) && He(n.name),
            "The target of a Reflect collision check should be an identifier",
          ),
          Av(
            "noEmit",
            n,
            f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,
            ws(n.name),
            "Reflect",
          ));
      }
      function BL(n, a) {
        a &&
          (Igt(n, a),
          xgt(n, a),
          Rgt(n, a),
          Cgt(n, a),
          ui(n)
            ? (GL(a, f.Class_name_cannot_be_0), n.flags & 33554432 || ayt(a))
            : ZT(n) && GL(a, f.Enum_name_cannot_be_0));
      }
      function Mgt(n) {
        if ((wE(n) & 7) !== 0 || jT(n)) return;
        const a = Wr(n);
        if (a.flags & 1) {
          if (!He(n.name)) return C.fail();
          const c = _t(n, n.name.escapedText, 3, void 0, !1);
          if (c && c !== a && c.flags & 2 && vge(c) & 7) {
            const p = VT(c.valueDeclaration, 262),
              m =
                p.parent.kind === 244 && p.parent.parent
                  ? p.parent.parent
                  : void 0;
            if (
              !(
                m &&
                ((m.kind === 242 && Yo(m.parent)) ||
                  m.kind === 269 ||
                  m.kind === 268 ||
                  m.kind === 308)
              )
            ) {
              const I = uo(c);
              Qe(
                n,
                f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,
                I,
                I,
              );
            }
          }
        }
      }
      function _8(n) {
        return n === Rt ? Ue : n === ld ? bd : n;
      }
      function Z5(n) {
        var a;
        if ((Y5(n), Ha(n) || wa(n.type), !n.name)) return;
        if (
          (n.name.kind === 168 &&
            (th(n.name), ZE(n) && n.initializer && Vl(n.initializer)),
          Ha(n))
        ) {
          if (n.propertyName && He(n.name) && jT(n) && Ol(df(n).body)) {
            Ay.push(n);
            return;
          }
          (ff(n.parent) &&
            n.dotDotDotToken &&
            G < ed.ObjectSpreadRest &&
            $c(n, 4),
            n.propertyName &&
              n.propertyName.kind === 168 &&
              th(n.propertyName));
          const m = n.parent.parent,
            v = n.dotDotDotToken ? 32 : 0,
            I = Si(m, v),
            w = n.propertyName || n.name;
          if (I && !Qo(w)) {
            const U = ky(w);
            if (jf(U)) {
              const H = Uf(U),
                Q = Ea(I, H);
              Q &&
                (w5(Q, void 0, !1),
                Tge(
                  n,
                  !!m.initializer && m.initializer.kind === 108,
                  !1,
                  I,
                  Q,
                ));
            }
          }
        }
        if (
          (Qo(n.name) &&
            (n.name.kind === 208 &&
              G < ed.BindingPatterns &&
              O.downlevelIteration &&
              $c(n, 512),
            Ye(n.name.elements, wa)),
          n.initializer && jT(n) && Ol(df(n).body))
        ) {
          Qe(
            n,
            f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation,
          );
          return;
        }
        if (Qo(n.name)) {
          if (H_e(n)) return;
          const m = ZE(n) && n.initializer && n.parent.parent.kind !== 250,
            v = !yt(n.name.elements, U8(Jc));
          if (m || v) {
            const I = Qx(n);
            if (m) {
              const w = Vl(n.initializer);
              ie && v ? w6e(w, n) : NE(w, Qx(n), n, n.initializer);
            }
            v && (pv(n.name) ? Hv(65, I, he, n) : ie && w6e(I, n));
          }
          return;
        }
        const c = Wr(n);
        if (c.flags & 2097152 && (ES(n) || cne(n))) {
          z$(n);
          return;
        }
        n.name.kind === 10 &&
          Qe(n.name, f.A_bigint_literal_cannot_be_used_as_a_property_name);
        const p = _8(_r(c));
        if (n === c.valueDeclaration) {
          const m = ZE(n) && hk(n);
          if (
            m &&
            !(
              Ir(n) &&
              Wa(m) &&
              (m.properties.length === 0 || Ab(n.name)) &&
              !!((a = c.exports) != null && a.size)
            ) &&
            n.parent.parent.kind !== 250
          ) {
            const I = Vl(m);
            NE(I, p, n, m, void 0);
            const w = wE(n) & 7;
            if (w === 6) {
              const U = vct(!0),
                H = HWe(!0);
              if (U !== Ra && H !== Ra) {
                const Q = pi([U, H, Xt, he]);
                $d(
                  AW(I, n),
                  Q,
                  m,
                  f.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined,
                );
              }
            } else if (w === 4) {
              const U = HWe(!0);
              if (U !== Ra) {
                const H = pi([U, Xt, he]);
                $d(
                  AW(I, n),
                  H,
                  m,
                  f.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined,
                );
              }
            }
          }
          c.declarations &&
            c.declarations.length > 1 &&
            yt(c.declarations, (v) => v !== n && HN(v) && !_3e(v, n)) &&
            Qe(
              n.name,
              f.All_declarations_of_0_must_have_identical_modifiers,
              ws(n.name),
            );
        } else {
          const m = _8(Qx(n));
          (!pr(p) &&
            !pr(m) &&
            !Hg(p, m) &&
            !(c.flags & 67108864) &&
            h3e(c.valueDeclaration, p, n, m),
            ZE(n) &&
              n.initializer &&
              NE(Vl(n.initializer), m, n, n.initializer, void 0),
            c.valueDeclaration &&
              !_3e(n, c.valueDeclaration) &&
              Qe(
                n.name,
                f.All_declarations_of_0_must_have_identical_modifiers,
                ws(n.name),
              ));
        }
        n.kind !== 173 &&
          n.kind !== 172 &&
          (u8(n), (n.kind === 261 || n.kind === 209) && Mgt(n), BL(n, n.name));
      }
      function h3e(n, a, c, p) {
        const m = Oo(c),
          v =
            c.kind === 173 || c.kind === 172
              ? f.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2
              : f.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,
          I = ws(m),
          w = Qe(m, v, I, ar(a), ar(p));
        n && pa(w, Ar(n, f._0_was_also_declared_here, I));
      }
      function _3e(n, a) {
        if (
          (n.kind === 170 && a.kind === 261) ||
          (n.kind === 261 && a.kind === 170)
        )
          return !0;
        if (vI(n) !== vI(a)) return !1;
        const c = 1358;
        return AI(n, c) === AI(a, c);
      }
      function Pgt(n) {
        var a, c;
        ((a = xr) == null ||
          a.push(xr.Phase.Check, "checkVariableDeclaration", {
            kind: n.kind,
            pos: n.pos,
            end: n.end,
            path: n.tracingPath,
          }),
          fbt(n),
          Z5(n),
          (c = xr) == null || c.pop());
      }
      function Lgt(n) {
        return (dbt(n), Z5(n));
      }
      function P$(n) {
        const a = ty(n) & 7;
        ((a === 4 || a === 6) && G < ed.UsingAndAwaitUsing && $c(n, 16777216),
          Ye(n.declarations, wa));
      }
      function kgt(n) {
        (!Kg(n) && !Wye(n.declarationList) && mbt(n), P$(n.declarationList));
      }
      function wgt(n) {
        (Uy(n), _o(n.expression));
      }
      function Ogt(n) {
        Uy(n);
        const a = g8(n.expression);
        (pye(n.expression, a, n.thenStatement),
          wa(n.thenStatement),
          n.thenStatement.kind === 243 &&
            Qe(
              n.thenStatement,
              f.The_body_of_an_if_statement_cannot_be_the_empty_statement,
            ),
          wa(n.elseStatement));
      }
      function pye(n, a, c) {
        if (!ie) return;
        p(n, c);
        function p(v, I) {
          for (
            v = us(v), m(v, I);
            Nr(v) &&
            (v.operatorToken.kind === 57 || v.operatorToken.kind === 61);
          )
            ((v = us(v.left)), m(v, I));
        }
        function m(v, I) {
          const w = Ok(v) ? us(v.right) : v;
          if (gg(w)) return;
          if (Ok(w)) {
            p(w, I);
            return;
          }
          const U = w === v ? a : _o(w);
          if (
            U.flags & 1024 &&
            qr(w) &&
            (Vr(w.expression).resolvedSymbol ?? ne).flags & 384
          ) {
            Qe(
              w,
              f.This_condition_will_always_return_0,
              U.value ? "true" : "false",
            );
            return;
          }
          const H = qr(w) && z4e(w.expression);
          if (!Mh(U, 4194304) || H) return;
          const Q = na(U, 0),
            Ie = !!FL(U);
          if (Q.length === 0 && !Ie) return;
          const Te = He(w) ? w : qr(w) ? w.name : void 0,
            Ze = Te && sm(Te);
          if (!Ze && !Ie) return;
          (Ze && Nr(v.parent) && Fgt(v.parent, Ze)) ||
            (Ze && I && Wgt(v, I, Te, Ze)) ||
            (Ie
              ? Iv(
                  w,
                  !0,
                  f.This_condition_will_always_return_true_since_this_0_is_always_defined,
                  PC(U),
                )
              : Qe(
                  w,
                  f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead,
                ));
        }
      }
      function Wgt(n, a, c, p) {
        return !!Jo(a, function m(v) {
          if (He(v)) {
            const I = sm(v);
            if (I && I === p) {
              if (He(n) || (He(c) && Nr(c.parent))) return !0;
              let w = c.parent,
                U = v.parent;
              for (; w && U; ) {
                if ((He(w) && He(U)) || (w.kind === 110 && U.kind === 110))
                  return sm(w) === sm(U);
                if (qr(w) && qr(U)) {
                  if (sm(w.name) !== sm(U.name)) return !1;
                  ((U = U.expression), (w = w.expression));
                } else if (Zo(w) && Zo(U))
                  ((U = U.expression), (w = w.expression));
                else return !1;
              }
            }
          }
          return Jo(v, m);
        });
      }
      function Fgt(n, a) {
        for (; Nr(n) && n.operatorToken.kind === 56; ) {
          if (
            Jo(n.right, function p(m) {
              if (He(m)) {
                const v = sm(m);
                if (v && v === a) return !0;
              }
              return Jo(m, p);
            })
          )
            return !0;
          n = n.parent;
        }
        return !1;
      }
      function zgt(n) {
        (Uy(n), wa(n.statement), g8(n.expression));
      }
      function Bgt(n) {
        (Uy(n), g8(n.expression), wa(n.statement));
      }
      function fye(n, a) {
        if (n.flags & 16384)
          Qe(a, f.An_expression_of_type_void_cannot_be_tested_for_truthiness);
        else {
          const c = mye(a);
          c !== 3 &&
            Qe(
              a,
              c === 1
                ? f.This_kind_of_expression_is_always_truthy
                : f.This_kind_of_expression_is_always_falsy,
            );
        }
        return n;
      }
      function mye(n) {
        switch (((n = Ul(n)), n.kind)) {
          case 9:
            return n.text === "0" || n.text === "1" ? 3 : 1;
          case 210:
          case 220:
          case 10:
          case 232:
          case 219:
          case 285:
          case 286:
          case 211:
          case 14:
            return 1;
          case 223:
          case 106:
            return 2;
          case 15:
          case 11:
            return n.text ? 1 : 2;
          case 228:
            return mye(n.whenTrue) | mye(n.whenFalse);
          case 80:
            return fu(n) === ce ? 2 : 3;
        }
        return 3;
      }
      function g8(n, a) {
        return fye(_o(n, a), n);
      }
      function Ggt(n) {
        (Uy(n) ||
          (n.initializer && n.initializer.kind === 262 && Wye(n.initializer)),
          n.initializer &&
            (n.initializer.kind === 262
              ? P$(n.initializer)
              : _o(n.initializer)),
          n.condition && g8(n.condition),
          n.incrementor && _o(n.incrementor),
          wa(n.statement),
          n.locals && gT(n));
      }
      function Vgt(n) {
        p7e(n);
        const a = JF(n);
        if (
          (n.awaitModifier
            ? a && Ql(a)
              ? Cn(
                  n.awaitModifier,
                  f.for_await_loops_cannot_be_used_inside_a_class_static_block,
                )
              : (cc(a) & 6) === 2 && G < ed.ForAwaitOf && $c(n, 16384)
            : O.downlevelIteration && G < ed.ForOf && $c(n, 256),
          n.initializer.kind === 262)
        )
          P$(n.initializer);
        else {
          const c = n.initializer,
            p = eB(n);
          if (c.kind === 210 || c.kind === 211) zA(c, p || nt);
          else {
            const m = _o(c);
            (s8(
              c,
              f.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,
              f.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access,
            ),
              p && NE(p, m, c, n.expression));
          }
        }
        (wa(n.statement), n.locals && gT(n));
      }
      function jgt(n) {
        p7e(n);
        const a = Sge(_o(n.expression));
        if (n.initializer.kind === 262) {
          const c = n.initializer.declarations[0];
          (c &&
            Qo(c.name) &&
            Qe(
              c.name,
              f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern,
            ),
            P$(n.initializer));
        } else {
          const c = n.initializer,
            p = _o(c);
          c.kind === 210 || c.kind === 211
            ? Qe(
                c,
                f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern,
              )
            : aa(adt(a), p)
              ? s8(
                  c,
                  f.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,
                  f.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access,
                )
              : Qe(
                  c,
                  f.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any,
                );
        }
        ((a === yn || !kd(a, 126091264)) &&
          Qe(
            n.expression,
            f.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,
            ar(a),
          ),
          wa(n.statement),
          n.locals && gT(n));
      }
      function eB(n) {
        const a = n.awaitModifier ? 15 : 13;
        return Hv(a, $C(n.expression), he, n.expression);
      }
      function Hv(n, a, c, p) {
        return wr(a) ? a : hye(n, a, c, p, !0) || Ue;
      }
      function hye(n, a, c, p, m) {
        const v = (n & 2) !== 0;
        if (a === yn) {
          p && yye(p, a, v);
          return;
        }
        const I = G >= 2,
          w = !I && O.downlevelIteration,
          U = O.noUncheckedIndexedAccess && !!(n & 128);
        if (I || w || v) {
          const Ze = k$(a, n, I ? p : void 0);
          if (m && Ze) {
            const Tt =
              n & 8
                ? f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0
                : n & 32
                  ? f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0
                  : n & 64
                    ? f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0
                    : n & 16
                      ? f.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0
                      : void 0;
            Tt && $d(c, Ze.nextType, p, Tt);
          }
          if (Ze || I) return U ? XW(Ze && Ze.yieldType) : Ze && Ze.yieldType;
        }
        let H = a,
          Q = !1;
        if (n & 4) {
          if (H.flags & 1048576) {
            const Ze = a.types,
              Tt = Un(Ze, (Dt) => !(Dt.flags & 402653316));
            Tt !== Ze && (H = pi(Tt, 2));
          } else H.flags & 402653316 && (H = yn);
          if (((Q = H !== a), Q && H.flags & 131072)) return U ? XW(gt) : gt;
        }
        if (!jv(H)) {
          if (p) {
            const Ze = !!(n & 4) && !Q,
              [Tt, Dt] = Te(Ze, w);
            Iv(p, Dt && !!FL(H), Tt, ar(H));
          }
          return Q ? (U ? XW(gt) : gt) : void 0;
        }
        const Ie = q0(H, Bt);
        if (Q && Ie)
          return Ie.flags & 402653316 && !O.noUncheckedIndexedAccess
            ? gt
            : pi(U ? [Ie, gt, he] : [Ie, gt], 2);
        return n & 128 ? XW(Ie) : Ie;
        function Te(Ze, Tt) {
          var Dt;
          return Tt
            ? Ze
              ? [
                  f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,
                  !0,
                ]
              : [
                  f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,
                  !0,
                ]
            : _ye(n, 0, a, void 0)
              ? [
                  f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,
                  !1,
                ]
              : Ugt((Dt = a.symbol) == null ? void 0 : Dt.escapedName)
                ? [
                    f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,
                    !0,
                  ]
                : Ze
                  ? [f.Type_0_is_not_an_array_type_or_a_string_type, !0]
                  : [f.Type_0_is_not_an_array_type, !0];
        }
      }
      function Ugt(n) {
        switch (n) {
          case "Float32Array":
          case "Float64Array":
          case "Int16Array":
          case "Int32Array":
          case "Int8Array":
          case "NodeList":
          case "Uint16Array":
          case "Uint32Array":
          case "Uint8Array":
          case "Uint8ClampedArray":
            return !0;
        }
        return !1;
      }
      function _ye(n, a, c, p) {
        if (wr(c)) return;
        const m = k$(c, n, p);
        return m && m[G1e(a)];
      }
      function yT(n = yn, a = yn, c = Nt) {
        if (n.flags & 67359327 && a.flags & 180227 && c.flags & 180227) {
          const p = Lm([n, a, c]);
          let m = Ns.get(p);
          return (
            m ||
              ((m = { yieldType: n, returnType: a, nextType: c }),
              Ns.set(p, m)),
            m
          );
        }
        return { yieldType: n, returnType: a, nextType: c };
      }
      function g3e(n) {
        let a, c, p;
        for (const m of n)
          if (!(m === void 0 || m === Da)) {
            if (m === Qs) return Qs;
            ((a = Bn(a, m.yieldType)),
              (c = Bn(c, m.returnType)),
              (p = Bn(p, m.nextType)));
          }
        return a || c || p ? yT(a && pi(a), c && pi(c), p && Ma(p)) : Da;
      }
      function L$(n, a) {
        return n[a];
      }
      function Jg(n, a, c) {
        return (n[a] = c);
      }
      function k$(n, a, c) {
        var p, m;
        if (n === wt) return Sc;
        if (wr(n)) return Qs;
        if (!(n.flags & 1048576)) {
          const H = c ? { errors: void 0, skipLogging: !0 } : void 0,
            Q = y3e(n, a, c, H);
          if (Q === Da) {
            if (c) {
              const Ie = yye(c, n, !!(a & 2));
              H?.errors && pa(Ie, ...H.errors);
            }
            return;
          } else if ((p = H?.errors) != null && p.length)
            for (const Ie of H.errors) ns.add(Ie);
          return Q;
        }
        const v =
            a & 2
              ? "iterationTypesOfAsyncIterable"
              : "iterationTypesOfIterable",
          I = L$(n, v);
        if (I) return I === Da ? void 0 : I;
        let w;
        for (const H of n.types) {
          const Q = c ? { errors: void 0 } : void 0,
            Ie = y3e(H, a, c, Q);
          if (Ie === Da) {
            if (c) {
              const Te = yye(c, n, !!(a & 2));
              Q?.errors && pa(Te, ...Q.errors);
            }
            Jg(n, v, Da);
            return;
          } else if ((m = Q?.errors) != null && m.length)
            for (const Te of Q.errors) ns.add(Te);
          w = Bn(w, Ie);
        }
        const U = w ? g3e(w) : Da;
        return (Jg(n, v, U), U === Da ? void 0 : U);
      }
      function gye(n, a) {
        if (n === Da) return Da;
        if (n === Qs) return Qs;
        const { yieldType: c, returnType: p, nextType: m } = n;
        return (a && Vhe(!0), yT(pR(c, a) || Ue, pR(p, a) || Ue, m));
      }
      function y3e(n, a, c, p) {
        if (wr(n)) return Qs;
        let m = !1;
        if (a & 2) {
          const v = v3e(n, fc) || b3e(n, fc);
          if (v)
            if (v === Da && c) m = !0;
            else return a & 8 ? gye(v, c) : v;
        }
        if (a & 1) {
          let v = v3e(n, Hs) || b3e(n, Hs);
          if (v)
            if (v === Da && c) m = !0;
            else if (a & 2) {
              if (v !== Da)
                return (
                  (v = gye(v, c)),
                  m ? v : Jg(n, "iterationTypesOfAsyncIterable", v)
                );
            } else return v;
        }
        if (a & 2) {
          const v = S3e(n, fc, c, p, m);
          if (v !== Da) return v;
        }
        if (a & 1) {
          let v = S3e(n, Hs, c, p, m);
          if (v !== Da)
            return a & 2
              ? ((v = gye(v, c)),
                m ? v : Jg(n, "iterationTypesOfAsyncIterable", v))
              : v;
        }
        return Da;
      }
      function v3e(n, a) {
        return L$(n, a.iterableCacheKey);
      }
      function b3e(n, a) {
        if (
          Jp(n, a.getGlobalIterableType(!1)) ||
          Jp(n, a.getGlobalIteratorObjectType(!1)) ||
          Jp(n, a.getGlobalIterableIteratorType(!1)) ||
          Jp(n, a.getGlobalGeneratorType(!1))
        ) {
          const [c, p, m] = rl(n);
          return Jg(
            n,
            a.iterableCacheKey,
            yT(
              a.resolveIterationType(c, void 0) || c,
              a.resolveIterationType(p, void 0) || p,
              m,
            ),
          );
        }
        if (QX(n, a.getGlobalBuiltinIteratorTypes())) {
          const [c] = rl(n),
            p = Ghe(),
            m = Nt;
          return Jg(
            n,
            a.iterableCacheKey,
            yT(
              a.resolveIterationType(c, void 0) || c,
              a.resolveIterationType(p, void 0) || p,
              m,
            ),
          );
        }
      }
      function T3e(n) {
        const a = BWe(!1),
          c = a && _n(_r(a), Cl(n));
        return c && jf(c) ? Uf(c) : `__@${n}`;
      }
      function S3e(n, a, c, p, m) {
        const v = Ea(n, T3e(a.iteratorSymbolName)),
          I = v && !(v.flags & 16777216) ? _r(v) : void 0;
        if (wr(I)) return m ? Qs : Jg(n, a.iterableCacheKey, Qs);
        const w = I ? na(I, 0) : void 0,
          U = Un(w, (Ie) => kh(Ie) === 0);
        if (!yt(U))
          return (
            c &&
              yt(w) &&
              $d(n, a.getGlobalIterableType(!0), c, void 0, void 0, p),
            m ? Da : Jg(n, a.iterableCacheKey, Da)
          );
        const H = Ma(Vt(U, fs)),
          Q = E3e(H, a, c, p, m) ?? Da;
        return m ? Q : Jg(n, a.iterableCacheKey, Q);
      }
      function yye(n, a, c) {
        const p = c
            ? f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator
            : f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,
          m =
            !!FL(a) ||
            (!c &&
              gw(n.parent) &&
              n.parent.expression === n &&
              Qz(!1) !== Zt &&
              aa(a, AL(Qz(!1), [Ue, Ue, Ue])));
        return Iv(n, m, p, ar(a));
      }
      function Hgt(n, a, c, p) {
        return E3e(n, a, c, p, !1);
      }
      function E3e(n, a, c, p, m) {
        if (wr(n)) return Qs;
        let v = qgt(n, a) || Jgt(n, a);
        return (
          v === Da && c && ((v = void 0), (m = !0)),
          v ?? (v = $gt(n, a, c, p, m)),
          v === Da ? void 0 : v
        );
      }
      function qgt(n, a) {
        return L$(n, a.iteratorCacheKey);
      }
      function Jgt(n, a) {
        if (
          Jp(n, a.getGlobalIterableIteratorType(!1)) ||
          Jp(n, a.getGlobalIteratorType(!1)) ||
          Jp(n, a.getGlobalIteratorObjectType(!1)) ||
          Jp(n, a.getGlobalGeneratorType(!1))
        ) {
          const [c, p, m] = rl(n);
          return Jg(n, a.iteratorCacheKey, yT(c, p, m));
        }
        if (QX(n, a.getGlobalBuiltinIteratorTypes())) {
          const [c] = rl(n),
            p = Ghe(),
            m = Nt;
          return Jg(n, a.iteratorCacheKey, yT(c, p, m));
        }
      }
      function A3e(n, a) {
        const c = _n(n, "done") || tr;
        return aa(a === 0 ? tr : ft, c);
      }
      function Kgt(n) {
        return A3e(n, 0);
      }
      function Xgt(n) {
        return A3e(n, 1);
      }
      function Ygt(n) {
        if (wr(n)) return Qs;
        const a = L$(n, "iterationTypesOfIteratorResult");
        if (a) return a;
        if (Jp(n, gct(!1))) {
          const I = rl(n)[0];
          return Jg(n, "iterationTypesOfIteratorResult", yT(I, void 0, void 0));
        }
        if (Jp(n, yct(!1))) {
          const I = rl(n)[0];
          return Jg(n, "iterationTypesOfIteratorResult", yT(void 0, I, void 0));
        }
        const c = Ec(n, Kgt),
          p = c !== yn ? _n(c, "value") : void 0,
          m = Ec(n, Xgt),
          v = m !== yn ? _n(m, "value") : void 0;
        return !p && !v
          ? Jg(n, "iterationTypesOfIteratorResult", Da)
          : Jg(n, "iterationTypesOfIteratorResult", yT(p, v || In, void 0));
      }
      function vye(n, a, c, p, m) {
        var v, I, w, U;
        const H = Ea(n, c);
        if (!H && c !== "next") return;
        const Q =
          H && !(c === "next" && H.flags & 16777216)
            ? c === "next"
              ? _r(H)
              : om(_r(H), 2097152)
            : void 0;
        if (wr(Q)) return Qs;
        const Ie = Q ? na(Q, 0) : ae;
        if (Ie.length === 0) {
          if (p) {
            const Sn =
              c === "next"
                ? a.mustHaveANextMethodDiagnostic
                : a.mustBeAMethodDiagnostic;
            m
              ? (m.errors ?? (m.errors = []), m.errors.push(Ar(p, Sn, c)))
              : Qe(p, Sn, c);
          }
          return c === "next" ? Da : void 0;
        }
        if (Q?.symbol && Ie.length === 1) {
          const Sn = a.getGlobalGeneratorType(!1),
            vn = a.getGlobalIteratorType(!1),
            Sr =
              ((I = (v = Sn.symbol) == null ? void 0 : v.members) == null
                ? void 0
                : I.get(c)) === Q.symbol,
            fi =
              !Sr &&
              ((U = (w = vn.symbol) == null ? void 0 : w.members) == null
                ? void 0
                : U.get(c)) === Q.symbol;
          if (Sr || fi) {
            const oo = Sr ? Sn : vn,
              { mapper: ii } = Q;
            return yT(
              Vv(oo.typeParameters[0], ii),
              Vv(oo.typeParameters[1], ii),
              c === "next" ? Vv(oo.typeParameters[2], ii) : void 0,
            );
          }
        }
        let Te, Ze;
        for (const Sn of Ie)
          (c !== "throw" && yt(Sn.parameters) && (Te = Bn(Te, Lh(Sn, 0))),
            (Ze = Bn(Ze, fs(Sn))));
        let Tt, Dt;
        if (c !== "throw") {
          const Sn = Te ? pi(Te) : Nt;
          if (c === "next") Dt = Sn;
          else if (c === "return") {
            const vn = a.resolveIterationType(Sn, p) || Ue;
            Tt = Bn(Tt, vn);
          }
        }
        let $t;
        const Tn = Ze ? Ma(Ze) : yn,
          nr = a.resolveIterationType(Tn, p) || Ue,
          yr = Ygt(nr);
        return (
          yr === Da
            ? (p &&
                (m
                  ? (m.errors ?? (m.errors = []),
                    m.errors.push(Ar(p, a.mustHaveAValueDiagnostic, c)))
                  : Qe(p, a.mustHaveAValueDiagnostic, c)),
              ($t = Ue),
              (Tt = Bn(Tt, Ue)))
            : (($t = yr.yieldType), (Tt = Bn(Tt, yr.returnType))),
          yT($t, pi(Tt), Dt)
        );
      }
      function $gt(n, a, c, p, m) {
        const v = g3e([
          vye(n, a, "next", c, p),
          vye(n, a, "return", c, p),
          vye(n, a, "throw", c, p),
        ]);
        return m ? v : Jg(n, a.iteratorCacheKey, v);
      }
      function qv(n, a, c) {
        if (wr(a)) return;
        const p = bye(a, c);
        return p && p[G1e(n)];
      }
      function bye(n, a) {
        if (wr(n)) return Qs;
        const c = a ? 2 : 1,
          p = a ? fc : Hs;
        return k$(n, c, void 0) || Hgt(n, p, void 0, void 0);
      }
      function Qgt(n) {
        Uy(n) || cbt(n);
      }
      function tB(n, a) {
        const c = !!(a & 1),
          p = !!(a & 2);
        if (c) {
          const m = qv(1, n, p);
          return m ? (p ? jy(zL(m)) : m) : nt;
        }
        return p ? jy(n) || nt : n;
      }
      function I3e(n, a) {
        const c = tB(a, cc(n));
        return !!(c && (tc(c, 16384) || c.flags & 32769));
      }
      function Zgt(n) {
        if (Uy(n)) return;
        const a = JF(n);
        if (a && Ql(a)) {
          fd(
            n,
            f.A_return_statement_cannot_be_used_inside_a_class_static_block,
          );
          return;
        }
        if (!a) {
          fd(n, f.A_return_statement_can_only_be_used_within_a_function_body);
          return;
        }
        const c = Df(a),
          p = fs(c);
        if (ie || n.expression || p.flags & 131072) {
          const m = n.expression ? Vl(n.expression) : he;
          if (a.kind === 179)
            n.expression && Qe(n, f.Setters_cannot_return_a_value);
          else if (a.kind === 177) {
            const v = n.expression ? Vl(n.expression) : he;
            n.expression &&
              !NE(v, p, n, n.expression) &&
              Qe(
                n,
                f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class,
              );
          } else if (BC(a)) {
            const v = tB(p, cc(a)) ?? p;
            w$(a, v, n, n.expression, m);
          }
        } else
          a.kind !== 177 &&
            O.noImplicitReturns &&
            !I3e(a, p) &&
            Qe(n, f.Not_all_code_paths_return_a_value);
      }
      function w$(n, a, c, p, m, v = !1) {
        const I = Ir(c),
          w = cc(n);
        if (p) {
          const Te = us(p, I);
          if (T1(Te)) {
            (w$(n, a, c, Te.whenTrue, _o(Te.whenTrue), !0),
              w$(n, a, c, Te.whenFalse, _o(Te.whenFalse), !0));
            return;
          }
        }
        const U = c.kind === 254,
          H =
            w & 2
              ? X5(
                  m,
                  !1,
                  c,
                  f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member,
                )
              : m,
          Q = p && _$(p);
        NE(H, a, U && !v ? c : Q, Q);
      }
      function eyt(n) {
        (Uy(n) ||
          (n.flags & 65536 &&
            fd(
              n,
              f.with_statements_are_not_allowed_in_an_async_function_block,
            )),
          _o(n.expression));
        const a = Wn(n);
        if (!vT(a)) {
          const c = jh(a, n.pos).start,
            p = n.statement.pos;
          rS(
            a,
            c,
            p - c,
            f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any,
          );
        }
      }
      function tyt(n) {
        Uy(n);
        let a,
          c = !1;
        const p = _o(n.expression);
        (Ye(n.caseBlock.clauses, (m) => {
          (m.kind === 298 &&
            !c &&
            (a === void 0
              ? (a = m)
              : (Cn(
                  m,
                  f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement,
                ),
                (c = !0))),
            m.kind === 297 && r(v(m)),
            Ye(m.statements, wa),
            O.noFallthroughCasesInSwitch &&
              m.fallthroughFlowNode &&
              E5(m.fallthroughFlowNode) &&
              Qe(m, f.Fallthrough_case_in_switch));
          function v(I) {
            return () => {
              const w = _o(I.expression);
              eye(p, w) || V8e(w, p, I.expression, void 0);
            };
          }
        }),
          n.caseBlock.locals && gT(n.caseBlock));
      }
      function nyt(n) {
        (Uy(n) ||
          Dn(n.parent, (a) =>
            Yo(a)
              ? "quit"
              : a.kind === 257 && a.label.escapedText === n.label.escapedText
                ? (Cn(n.label, f.Duplicate_label_0, Al(n.label)), !0)
                : !1,
          ),
          wa(n.statement));
      }
      function ryt(n) {
        (Uy(n) ||
          (He(n.expression) &&
            !n.expression.escapedText &&
            Ebt(n, f.Line_break_not_permitted_here)),
          n.expression && _o(n.expression));
      }
      function iyt(n) {
        (Uy(n), M$(n.tryBlock));
        const a = n.catchClause;
        if (a) {
          if (a.variableDeclaration) {
            const c = a.variableDeclaration;
            Z5(c);
            const p = xc(c);
            if (p) {
              const m = Ji(p);
              m &&
                !(m.flags & 3) &&
                fd(
                  p,
                  f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified,
                );
            } else if (c.initializer)
              fd(
                c.initializer,
                f.Catch_clause_variable_cannot_have_an_initializer,
              );
            else {
              const m = a.block.locals;
              m &&
                fg(a.locals, (v) => {
                  const I = m.get(v);
                  I?.valueDeclaration &&
                    (I.flags & 2) !== 0 &&
                    Cn(
                      I.valueDeclaration,
                      f.Cannot_redeclare_identifier_0_in_catch_clause,
                      Gi(v),
                    );
                });
            }
          }
          M$(a.block);
        }
        n.finallyBlock && M$(n.finallyBlock);
      }
      function O$(n, a, c) {
        const p = Xd(n);
        if (p.length === 0) return;
        for (const v of zv(n))
          (c && v.flags & 4194304) || x3e(n, v, nR(v, 8576, !0), xh(v));
        const m = a.valueDeclaration;
        if (m && ui(m)) {
          for (const v of m.members)
            if (((!c && !ua(v)) || (c && ua(v))) && !FC(v)) {
              const I = Wr(v);
              x3e(n, I, wd(v.name.expression), xh(I));
            }
        }
        if (p.length > 1) for (const v of p) oyt(n, v);
      }
      function x3e(n, a, c, p) {
        const m = a.valueDeclaration,
          v = Oo(m);
        if (v && eo(v)) return;
        const I = Dhe(n, c),
          w = Hr(n) & 2 ? al(n.symbol, 265) : void 0,
          U = (m && m.kind === 227) || (v && v.kind === 168) ? m : void 0,
          H = Yc(a) === n.symbol ? m : void 0;
        for (const Q of I) {
          const Ie =
              Q.declaration && Yc(Wr(Q.declaration)) === n.symbol
                ? Q.declaration
                : void 0,
            Te =
              H ||
              Ie ||
              (w &&
              !yt(Zm(n), (Ze) => !!SE(Ze, a.escapedName) && !!q0(Ze, Q.keyType))
                ? w
                : void 0);
          if (Te && !aa(p, Q.type)) {
            const Ze = dE(
              Te,
              f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,
              uo(a),
              ar(p),
              ar(Q.keyType),
              ar(Q.type),
            );
            (U && Te !== U && pa(Ze, Ar(U, f._0_is_declared_here, uo(a))),
              ns.add(Ze));
          }
        }
      }
      function oyt(n, a) {
        const c = a.declaration,
          p = Dhe(n, a.keyType),
          m = Hr(n) & 2 ? al(n.symbol, 265) : void 0,
          v = c && Yc(Wr(c)) === n.symbol ? c : void 0;
        for (const I of p) {
          if (I === a) continue;
          const w =
              I.declaration && Yc(Wr(I.declaration)) === n.symbol
                ? I.declaration
                : void 0,
            U =
              v ||
              w ||
              (m && !yt(Zm(n), (H) => !!Vg(H, a.keyType) && !!q0(H, I.keyType))
                ? m
                : void 0);
          U &&
            !aa(a.type, I.type) &&
            Qe(
              U,
              f._0_index_type_1_is_not_assignable_to_2_index_type_3,
              ar(a.keyType),
              ar(a.type),
              ar(I.keyType),
              ar(I.type),
            );
        }
      }
      function GL(n, a) {
        switch (n.escapedText) {
          case "any":
          case "unknown":
          case "never":
          case "number":
          case "bigint":
          case "boolean":
          case "string":
          case "symbol":
          case "void":
          case "object":
          case "undefined":
            Qe(n, a, n.escapedText);
        }
      }
      function ayt(n) {
        G >= 1 &&
          n.escapedText === "Object" &&
          e.getEmitModuleFormatOfFile(Wn(n)) < 5 &&
          Qe(
            n,
            f.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,
            CR[j],
          );
      }
      function syt(n) {
        const a = Un(kT(n), mf);
        if (!et(a)) return;
        const c = Ir(n),
          p = new Set(),
          m = new Set();
        if (
          (Ye(n.parameters, ({ name: I }, w) => {
            (He(I) && p.add(I.escapedText), Qo(I) && m.add(w));
          }),
          Nhe(n))
        ) {
          const I = a.length - 1,
            w = a[I];
          c &&
            w &&
            He(w.name) &&
            w.typeExpression &&
            w.typeExpression.type &&
            !p.has(w.name.escapedText) &&
            !m.has(I) &&
            !im(Ji(w.typeExpression.type)) &&
            Qe(
              w.name,
              f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,
              Kr(w.name),
            );
        } else
          Ye(a, ({ name: I, isNameFirst: w }, U) => {
            m.has(U) ||
              (He(I) && p.has(I.escapedText)) ||
              (ku(I)
                ? c &&
                  Qe(
                    I,
                    f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,
                    Mp(I),
                    Mp(I.left),
                  )
                : w ||
                  Jm(
                    c,
                    I,
                    f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,
                    Kr(I),
                  ));
          });
      }
      function nB(n) {
        let a = !1;
        if (n)
          for (let p = 0; p < n.length; p++) {
            const m = n[p];
            (J4e(m), r(c(m, p)));
          }
        function c(p, m) {
          return () => {
            p.default
              ? ((a = !0), lyt(p.default, n, m))
              : a &&
                Qe(
                  p,
                  f.Required_type_parameters_may_not_follow_optional_type_parameters,
                );
            for (let v = 0; v < m; v++)
              n[v].symbol === p.symbol &&
                Qe(p.name, f.Duplicate_identifier_0, ws(p.name));
          };
        }
      }
      function lyt(n, a, c) {
        p(n);
        function p(m) {
          if (m.kind === 184) {
            const v = fY(m);
            if (v.flags & 262144)
              for (let I = c; I < a.length; I++)
                v.symbol === Wr(a[I]) &&
                  Qe(
                    m,
                    f.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters,
                  );
          }
          Jo(m, p);
        }
      }
      function R3e(n) {
        if (n.declarations && n.declarations.length === 1) return;
        const a = Jr(n);
        if (!a.typeParametersChecked) {
          a.typeParametersChecked = !0;
          const c = _yt(n);
          if (!c || c.length <= 1) return;
          const p = qs(n);
          if (!D3e(c, p.localTypeParameters, cb)) {
            const m = uo(n);
            for (const v of c)
              Qe(
                v.name,
                f.All_declarations_of_0_must_have_identical_type_parameters,
                m,
              );
          }
        }
      }
      function D3e(n, a, c) {
        const p = et(a),
          m = Z_(a);
        for (const v of n) {
          const I = c(v),
            w = I.length;
          if (w < m || w > p) return !1;
          for (let U = 0; U < w; U++) {
            const H = I[U],
              Q = a[U];
            if (H.name.escapedText !== Q.symbol.escapedName) return !1;
            const Ie = WR(H),
              Te = Ie && Ji(Ie),
              Ze = Uu(Q);
            if (Te && Ze && !Hg(Te, Ze)) return !1;
            const Tt = H.default && Ji(H.default),
              Dt = EE(Q);
            if (Tt && Dt && !Hg(Tt, Dt)) return !1;
          }
        }
        return !0;
      }
      function C3e(n) {
        const a = !J && G < ed.ClassAndClassElementDecorators && tv(!1, n),
          c =
            G < ed.PrivateNamesAndClassStaticBlocks ||
            G < ed.ClassAndClassElementDecorators,
          p = !q;
        if (a || c)
          for (const m of n.members) {
            if (a && NG(!1, m, n)) return Ac(lb(n)) ?? n;
            if (c) {
              if (Ql(m)) return m;
              if (ua(m) && (nu(m) || (p && Hw(m)))) return m;
            }
          }
      }
      function cyt(n) {
        if (n.name) return;
        const a = qie(n);
        if (!JG(a)) return;
        const c = !J && G < ed.ClassAndClassElementDecorators;
        let p;
        (c && tv(!1, n) ? (p = Ac(lb(n)) ?? n) : (p = C3e(n)),
          p &&
            ($c(p, 4194304),
            (Cc(a) || Po(a) || Ha(a)) && va(a.name) && $c(p, 8388608)));
      }
      function dyt(n) {
        return (N3e(n), fR(n), cyt(n), _r(Wr(n)));
      }
      function uyt(n) {
        (Ye(n.members, wa), gT(n));
      }
      function pyt(n) {
        const a = hn(n.modifiers, Wc);
        (J &&
          a &&
          yt(n.members, (c) => wc(c) && nu(c)) &&
          Cn(
            a,
            f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator,
          ),
          !n.name &&
            !di(n, 2048) &&
            fd(
              n,
              f.A_class_declaration_without_the_default_modifier_must_have_a_name,
            ),
          N3e(n),
          Ye(n.members, wa),
          gT(n));
      }
      function N3e(n) {
        (Kvt(n), Y5(n), BL(n, n.name), nB(cb(n)), u8(n));
        const a = Wr(n),
          c = qs(a),
          p = Kp(c),
          m = _r(a);
        (R3e(a), D$(a), A_t(n), !!(n.flags & 33554432) || I_t(n));
        const I = lh(n);
        if (I) {
          (Ye(I.typeArguments, wa), G < ed.Classes && $c(I.parent, 1));
          const H = RS(n);
          H && H !== I && _o(H.expression);
          const Q = Zm(c);
          Q.length &&
            r(() => {
              const Ie = Q[0],
                Te = Py(c),
                Ze = Du(Te);
              if ((myt(Ze, I), wa(I.expression), yt(I.typeArguments))) {
                Ye(I.typeArguments, wa);
                for (const Dt of Qm(Ze, I.typeArguments, I))
                  if (!e3e(I, Dt.typeParameters)) break;
              }
              const Tt = Kp(Ie, c.thisType);
              if (
                ($d(p, Tt, void 0)
                  ? $d(
                      m,
                      O8e(Ze),
                      n.name || n,
                      f.Class_static_side_0_incorrectly_extends_base_class_static_side_1,
                    )
                  : L3e(n, p, Tt, f.Class_0_incorrectly_extends_base_class_1),
                Te.flags & 8650752 &&
                  (Ed(m)
                    ? na(Te, 1).some(($t) => $t.flags & 4) &&
                      !di(n, 64) &&
                      Qe(
                        n.name || n,
                        f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract,
                      )
                    : Qe(
                        n.name || n,
                        f.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any,
                      )),
                !(Ze.symbol && Ze.symbol.flags & 32) && !(Te.flags & 8650752))
              ) {
                const Dt = Bg(Ze, I.typeArguments, I);
                Ye(Dt, ($t) => !E_($t.declaration) && !Hg(fs($t), Ie)) &&
                  Qe(
                    I.expression,
                    f.Base_constructors_must_all_have_the_same_return_type,
                  );
              }
              gyt(c, Ie);
            });
        }
        fyt(n, c, p, m);
        const w = nD(n);
        if (w)
          for (const H of w)
            ((!Ds(H.expression) || tu(H.expression)) &&
              Qe(
                H.expression,
                f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments,
              ),
              sye(H),
              r(U(H)));
        r(() => {
          (O$(c, a), O$(m, a, !0), oye(n), byt(n));
        });
        function U(H) {
          return () => {
            const Q = Pm(Ji(H));
            if (!pr(Q))
              if (Gz(Q)) {
                const Ie =
                    Q.symbol && Q.symbol.flags & 32
                      ? f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass
                      : f.Class_0_incorrectly_implements_interface_1,
                  Te = Kp(Q, c.thisType);
                $d(p, Te, void 0) || L3e(n, p, Te, Ie);
              } else
                Qe(
                  H,
                  f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members,
                );
          };
        }
      }
      function fyt(n, a, c, p) {
        const v = lh(n) && Zm(a),
          I = v?.length ? Kp($a(v), a.thisType) : void 0,
          w = Py(a);
        for (const U of n.members)
          dV(U) ||
            (Ml(U) &&
              Ye(U.parameters, (H) => {
                Np(H, U) && M3e(n, p, w, I, a, c, H, !0);
              }),
            M3e(n, p, w, I, a, c, U, !1));
      }
      function M3e(n, a, c, p, m, v, I, w, U = !0) {
        const H = (I.name && sm(I.name)) || sm(I);
        return H
          ? P3e(n, a, c, p, m, v, S6(I), PS(I), ua(I), w, H, U ? I : void 0)
          : 0;
      }
      function P3e(n, a, c, p, m, v, I, w, U, H, Q, Ie) {
        const Te = Ir(n),
          Ze = !!(n.flags & 33554432);
        if (
          I &&
          Q?.valueDeclaration &&
          bc(Q.valueDeclaration) &&
          Q.valueDeclaration.name &&
          KOe(Q.valueDeclaration.name)
        )
          return (
            Qe(
              Ie,
              Te
                ? f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic
                : f.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic,
            ),
            2
          );
        if (p && (I || O.noImplicitOverride)) {
          const Tt = U ? a : v,
            Dt = U ? c : p,
            $t = Ea(Tt, Q.escapedName),
            Tn = Ea(Dt, Q.escapedName),
            nr = ar(p);
          if ($t && !Tn && I) {
            if (Ie) {
              const yr = G6e(wl(Q), Dt);
              yr
                ? Qe(
                    Ie,
                    Te
                      ? f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1
                      : f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,
                    nr,
                    uo(yr),
                  )
                : Qe(
                    Ie,
                    Te
                      ? f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0
                      : f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,
                    nr,
                  );
            }
            return 2;
          } else if ($t && Tn?.declarations && O.noImplicitOverride && !Ze) {
            const yr = yt(Tn.declarations, PS);
            if (I) return 0;
            if (yr) {
              if (w && yr)
                return (
                  Ie &&
                    Qe(
                      Ie,
                      f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,
                      nr,
                    ),
                  1
                );
            } else {
              if (Ie) {
                const Sn = H
                  ? Te
                    ? f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0
                    : f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0
                  : Te
                    ? f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0
                    : f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;
                Qe(Ie, Sn, nr);
              }
              return 1;
            }
          }
        } else if (I) {
          if (Ie) {
            const Tt = ar(m);
            Qe(
              Ie,
              Te
                ? f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class
                : f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,
              Tt,
            );
          }
          return 2;
        }
        return 0;
      }
      function L3e(n, a, c, p) {
        let m = !1;
        for (const v of n.members) {
          if (ua(v)) continue;
          const I = (v.name && sm(v.name)) || sm(v);
          if (I) {
            const w = Ea(a, I.escapedName),
              U = Ea(c, I.escapedName);
            if (w && U) {
              const H = () =>
                qo(
                  void 0,
                  f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,
                  uo(I),
                  ar(a),
                  ar(c),
                );
              $d(_r(w), _r(U), v.name || v, void 0, H) || (m = !0);
            }
          }
        }
        m || $d(a, c, n.name || n, p);
      }
      function myt(n, a) {
        const c = na(n, 1);
        if (c.length) {
          const p = c[0].declaration;
          if (p && wp(p, 2)) {
            const m = cy(n.symbol);
            xye(a, m) ||
              Qe(
                a,
                f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,
                Nv(n.symbol),
              );
          }
        }
      }
      function hyt(n, a, c) {
        if (!a.name) return 0;
        const p = Wr(n),
          m = qs(p),
          v = Kp(m),
          I = _r(p),
          U = lh(n) && Zm(m),
          H = U?.length ? Kp($a(U), m.thisType) : void 0,
          Q = Py(m),
          Ie = a.parent ? S6(a) : di(a, 16);
        return P3e(n, I, Q, H, m, v, Ie, PS(a), ua(a), !1, c);
      }
      function nN(n) {
        return Wl(n) & 1 ? n.links.target : n;
      }
      function _yt(n) {
        return Un(n.declarations, (a) => a.kind === 264 || a.kind === 265);
      }
      function gyt(n, a) {
        var c, p, m, v, I;
        const w = bs(a),
          U = new Map();
        e: for (const H of w) {
          const Q = nN(H);
          if (Q.flags & 4194304) continue;
          const Ie = SE(n, Q.escapedName);
          if (!Ie) continue;
          const Te = nN(Ie),
            Ze = Vf(Q);
          if (
            (C.assert(
              !!Te,
              "derived should point to something, even if it is the base class' declaration.",
            ),
            Te === Q)
          ) {
            const Tt = cy(n.symbol);
            if (Ze & 64 && (!Tt || !di(Tt, 64))) {
              for (const yr of Zm(n)) {
                if (yr === a) continue;
                const Sn = SE(yr, Q.escapedName),
                  vn = Sn && nN(Sn);
                if (vn && vn !== Q) continue e;
              }
              const Dt = ar(a),
                $t = ar(n),
                Tn = uo(H),
                nr = Bn(
                  (c = U.get(Tt)) == null ? void 0 : c.missedProperties,
                  Tn,
                );
              U.set(Tt, {
                baseTypeName: Dt,
                typeName: $t,
                missedProperties: nr,
              });
            }
          } else {
            const Tt = Vf(Te);
            if (Ze & 2 || Tt & 2) continue;
            let Dt;
            const $t = Q.flags & 98308,
              Tn = Te.flags & 98308;
            if ($t && Tn) {
              if (
                (Wl(Q) & 6
                  ? (p = Q.declarations) != null && p.some((Sn) => k3e(Sn, Ze))
                  : (m = Q.declarations) != null &&
                    m.every((Sn) => k3e(Sn, Ze))) ||
                Wl(Q) & 262144 ||
                (Te.valueDeclaration && Nr(Te.valueDeclaration))
              )
                continue;
              const nr = $t !== 4 && Tn === 4;
              if (nr || ($t === 4 && Tn !== 4)) {
                const Sn = nr
                  ? f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property
                  : f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;
                Qe(
                  Oo(Te.valueDeclaration) || Te.valueDeclaration,
                  Sn,
                  uo(Q),
                  ar(a),
                  ar(n),
                );
              } else if (Z) {
                const Sn =
                  (v = Te.declarations) == null
                    ? void 0
                    : v.find((vn) => vn.kind === 173 && !vn.initializer);
                if (
                  Sn &&
                  !(Te.flags & 33554432) &&
                  !(Ze & 64) &&
                  !(Tt & 64) &&
                  !(
                    (I = Te.declarations) != null &&
                    I.some((vn) => !!(vn.flags & 33554432))
                  )
                ) {
                  const vn = ow(cy(n.symbol)),
                    Sr = Sn.name;
                  if (
                    Sn.exclamationToken ||
                    !vn ||
                    !He(Sr) ||
                    !ie ||
                    !O3e(Sr, n, vn)
                  ) {
                    const fi =
                      f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;
                    Qe(
                      Oo(Te.valueDeclaration) || Te.valueDeclaration,
                      fi,
                      uo(Q),
                      ar(a),
                    );
                  }
                }
              }
              continue;
            } else if (bge(Q)) {
              if (bge(Te) || Te.flags & 4) continue;
              (C.assert(!!(Te.flags & 98304)),
                (Dt =
                  f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor));
            } else
              Q.flags & 98304
                ? (Dt =
                    f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function)
                : (Dt =
                    f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function);
            Qe(
              Oo(Te.valueDeclaration) || Te.valueDeclaration,
              Dt,
              ar(a),
              uo(Q),
              ar(n),
            );
          }
        }
        for (const [H, Q] of U)
          if (et(Q.missedProperties) === 1)
            dc(H)
              ? Qe(
                  H,
                  f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,
                  $a(Q.missedProperties),
                  Q.baseTypeName,
                )
              : Qe(
                  H,
                  f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,
                  Q.typeName,
                  $a(Q.missedProperties),
                  Q.baseTypeName,
                );
          else if (et(Q.missedProperties) > 5) {
            const Ie = Vt(
                Q.missedProperties.slice(0, 4),
                (Ze) => `'${Ze}'`,
              ).join(", "),
              Te = et(Q.missedProperties) - 4;
            dc(H)
              ? Qe(
                  H,
                  f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,
                  Q.baseTypeName,
                  Ie,
                  Te,
                )
              : Qe(
                  H,
                  f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,
                  Q.typeName,
                  Q.baseTypeName,
                  Ie,
                  Te,
                );
          } else {
            const Ie = Vt(Q.missedProperties, (Te) => `'${Te}'`).join(", ");
            dc(H)
              ? Qe(
                  H,
                  f.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,
                  Q.baseTypeName,
                  Ie,
                )
              : Qe(
                  H,
                  f.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,
                  Q.typeName,
                  Q.baseTypeName,
                  Ie,
                );
          }
      }
      function k3e(n, a) {
        return (a & 64 && (!Po(n) || !n.initializer)) || gd(n.parent);
      }
      function yyt(n, a, c) {
        if (!et(a)) return c;
        const p = new Map();
        Ye(c, (m) => {
          p.set(m.escapedName, m);
        });
        for (const m of a) {
          const v = bs(Kp(m, n.thisType));
          for (const I of v) {
            const w = p.get(I.escapedName);
            w && I.parent === w.parent && p.delete(I.escapedName);
          }
        }
        return Co(p.values());
      }
      function vyt(n, a) {
        const c = Zm(n);
        if (c.length < 2) return !0;
        const p = new Map();
        Ye(fhe(n).declaredProperties, (v) => {
          p.set(v.escapedName, { prop: v, containingType: n });
        });
        let m = !0;
        for (const v of c) {
          const I = bs(Kp(v, n.thisType));
          for (const w of I) {
            const U = p.get(w.escapedName);
            if (!U) p.set(w.escapedName, { prop: w, containingType: v });
            else if (U.containingType !== n && !put(U.prop, w)) {
              m = !1;
              const Q = ar(U.containingType),
                Ie = ar(v);
              let Te = qo(
                void 0,
                f.Named_property_0_of_types_1_and_2_are_not_identical,
                uo(w),
                Q,
                Ie,
              );
              ((Te = qo(
                Te,
                f.Interface_0_cannot_simultaneously_extend_types_1_and_2,
                ar(n),
                Q,
                Ie,
              )),
                ns.add(hg(Wn(a), a, Te)));
            }
          }
        }
        return m;
      }
      function byt(n) {
        if (!ie || !de || n.flags & 33554432) return;
        const a = ow(n);
        for (const c of n.members)
          if (!(Gd(c) & 128) && !ua(c) && w3e(c)) {
            const p = c.name;
            if (He(p) || eo(p) || va(p)) {
              const m = _r(Wr(c));
              m.flags & 3 ||
                qC(m) ||
                ((!a || !O3e(p, m, a)) &&
                  Qe(
                    c.name,
                    f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,
                    ws(p),
                  ));
            }
          }
      }
      function w3e(n) {
        return (
          n.kind === 173 && !PS(n) && !n.exclamationToken && !n.initializer
        );
      }
      function Tyt(n, a, c, p, m) {
        for (const v of c)
          if (v.pos >= p && v.pos <= m) {
            const I = L.createPropertyAccessExpression(L.createThis(), n);
            (ps(I.expression, I), ps(I, v), (I.flowNode = v.returnFlowNode));
            const w = Vy(I, a, hT(a));
            if (!qC(w)) return !0;
          }
        return !1;
      }
      function O3e(n, a, c) {
        const p = va(n)
          ? L.createElementAccessExpression(L.createThis(), n.expression)
          : L.createPropertyAccessExpression(L.createThis(), n);
        (ps(p.expression, p), ps(p, c), (p.flowNode = c.returnFlowNode));
        const m = Vy(p, a, hT(a));
        return !qC(m);
      }
      function Syt(n) {
        (Kg(n) || tbt(n),
          Y$(n.parent) ||
            Cn(
              n,
              f._0_declarations_can_only_be_declared_inside_a_block,
              "interface",
            ),
          nB(n.typeParameters),
          r(() => {
            (GL(n.name, f.Interface_name_cannot_be_0), u8(n));
            const a = Wr(n);
            R3e(a);
            const c = al(a, 265);
            if (n === c) {
              const p = qs(a),
                m = Kp(p);
              if (vyt(p, n.name)) {
                for (const v of Zm(p))
                  $d(
                    m,
                    Kp(v, p.thisType),
                    n.name,
                    f.Interface_0_incorrectly_extends_interface_1,
                  );
                O$(p, a);
              }
            }
            Y4e(n);
          }),
          Ye(iM(n), (a) => {
            ((!Ds(a.expression) || tu(a.expression)) &&
              Qe(
                a.expression,
                f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments,
              ),
              sye(a));
          }),
          Ye(n.members, wa),
          r(() => {
            (oye(n), gT(n));
          }));
      }
      function Eyt(n) {
        if (
          (Kg(n),
          GL(n.name, f.Type_alias_name_cannot_be_0),
          Y$(n.parent) ||
            Cn(
              n,
              f._0_declarations_can_only_be_declared_inside_a_block,
              "type",
            ),
          u8(n),
          nB(n.typeParameters),
          n.type.kind === 141)
        ) {
          const a = et(n.typeParameters);
          (a === 0
            ? n.name.escapedText === "BuiltinIteratorReturn"
            : a === 1 && OU.has(n.name.escapedText)) ||
            Qe(
              n.type,
              f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types,
            );
        } else (wa(n.type), gT(n));
      }
      function W3e(n) {
        const a = Vr(n);
        if (!(a.flags & 1024)) {
          a.flags |= 1024;
          let c = 0,
            p;
          for (const m of n.members) {
            const v = Ayt(m, c, p);
            ((Vr(m).enumMemberValue = v),
              (c = typeof v.value == "number" ? v.value + 1 : void 0),
              (p = m));
          }
        }
      }
      function Ayt(n, a, c) {
        if (ek(n.name))
          Qe(n.name, f.Computed_property_names_are_not_allowed_in_enums);
        else if (yD(n.name))
          Qe(n.name, f.An_enum_member_cannot_have_a_numeric_name);
        else {
          const p = hI(n.name);
          Eg(p) &&
            !NM(p) &&
            Qe(n.name, f.An_enum_member_cannot_have_a_numeric_name);
        }
        if (n.initializer) return Iyt(n);
        if (n.parent.flags & 33554432 && !OT(n.parent)) return qc(void 0);
        if (a === void 0)
          return (Qe(n.name, f.Enum_member_must_have_initializer), qc(void 0));
        if (ym(O) && c?.initializer) {
          const p = BA(c);
          (typeof p.value == "number" && !p.resolvedOtherFiles) ||
            Qe(
              n.name,
              f.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled,
            );
        }
        return qc(a);
      }
      function Iyt(n) {
        const a = OT(n.parent),
          c = n.initializer,
          p = Be(c, n);
        return (
          p.value !== void 0
            ? a && typeof p.value == "number" && !isFinite(p.value)
              ? Qe(
                  c,
                  isNaN(p.value)
                    ? f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN
                    : f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value,
                )
              : ym(O) &&
                typeof p.value == "string" &&
                !p.isSyntacticallyString &&
                Qe(
                  c,
                  f._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,
                  `${Kr(n.parent.name)}.${hI(n.name)}`,
                )
            : a
              ? Qe(
                  c,
                  f.const_enum_member_initializers_must_be_constant_expressions,
                )
              : n.parent.flags & 33554432
                ? Qe(
                    c,
                    f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression,
                  )
                : $d(
                    _o(c),
                    Bt,
                    c,
                    f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values,
                  ),
          p
        );
      }
      function F3e(n, a) {
        const c = Gl(n, 111551, !0);
        if (!c) return qc(void 0);
        if (n.kind === 80) {
          const p = n;
          if (NM(p.escapedText) && c === UC(p.escapedText, 111551, void 0))
            return qc(+p.escapedText, !1);
        }
        if (c.flags & 8) return a ? z3e(n, c, a) : BA(c.valueDeclaration);
        if (lR(c)) {
          const p = c.valueDeclaration;
          if (
            p &&
            yi(p) &&
            !p.type &&
            p.initializer &&
            (!a || (p !== a && Dy(p, a)))
          ) {
            const m = Be(p.initializer, p);
            return a && Wn(a) !== Wn(p)
              ? qc(m.value, !1, !0, !0)
              : qc(m.value, m.isSyntacticallyString, m.resolvedOtherFiles, !0);
          }
        }
        return qc(void 0);
      }
      function xyt(n, a) {
        const c = n.expression;
        if (Ds(c) && ds(n.argumentExpression)) {
          const p = Gl(c, 111551, !0);
          if (p && p.flags & 384) {
            const m = Cl(n.argumentExpression.text),
              v = p.exports.get(m);
            if (v)
              return (
                C.assert(Wn(v.valueDeclaration) === Wn(p.valueDeclaration)),
                a ? z3e(n, v, a) : BA(v.valueDeclaration)
              );
          }
        }
        return qc(void 0);
      }
      function z3e(n, a, c) {
        const p = a.valueDeclaration;
        if (!p || p === c)
          return (
            Qe(n, f.Property_0_is_used_before_being_assigned, uo(a)),
            qc(void 0)
          );
        if (!Dy(p, c))
          return (
            Qe(
              n,
              f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums,
            ),
            qc(0)
          );
        const m = BA(p);
        return c.parent !== p.parent
          ? qc(m.value, m.isSyntacticallyString, m.resolvedOtherFiles, !0)
          : m;
      }
      function Ryt(n) {
        r(() => Dyt(n));
      }
      function Dyt(n) {
        (Kg(n),
          BL(n, n.name),
          u8(n),
          n.members.forEach(wa),
          O.erasableSyntaxOnly &&
            !(n.flags & 33554432) &&
            Qe(
              n,
              f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled,
            ),
          W3e(n));
        const a = Wr(n),
          c = al(a, n.kind);
        if (n === c) {
          if (a.declarations && a.declarations.length > 1) {
            const m = OT(n);
            Ye(a.declarations, (v) => {
              ZT(v) &&
                OT(v) !== m &&
                Qe(Oo(v), f.Enum_declarations_must_all_be_const_or_non_const);
            });
          }
          let p = !1;
          Ye(a.declarations, (m) => {
            if (m.kind !== 267) return !1;
            const v = m;
            if (!v.members.length) return !1;
            const I = v.members[0];
            I.initializer ||
              (p
                ? Qe(
                    I.name,
                    f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element,
                  )
                : (p = !0));
          });
        }
      }
      function Cyt(n) {
        (eo(n.name) &&
          Qe(n, f.An_enum_member_cannot_be_named_with_a_private_identifier),
          n.initializer && _o(n.initializer));
      }
      function Nyt(n) {
        const a = n.declarations;
        if (a) {
          for (const c of a)
            if (
              (c.kind === 264 || (c.kind === 263 && fm(c.body))) &&
              !(c.flags & 33554432)
            )
              return c;
        }
      }
      function Myt(n, a) {
        const c = sh(n),
          p = sh(a);
        return ev(c) ? ev(p) : ev(p) ? !1 : c === p;
      }
      function Pyt(n) {
        (n.body && (wa(n.body), M_(n) || gT(n)), r(a));
        function a() {
          var c, p;
          const m = M_(n),
            v = n.flags & 33554432;
          m &&
            !v &&
            Qe(
              n.name,
              f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context,
            );
          const I = yu(n),
            w = I
              ? f.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file
              : f.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;
          if (rB(n, w)) return;
          if (
            (Kg(n) ||
              (!v &&
                n.name.kind === 11 &&
                Cn(n.name, f.Only_ambient_modules_can_use_quoted_names)),
            He(n.name) && (BL(n, n.name), !(n.flags & 2080)))
          ) {
            const H = Wn(n),
              Q = Lte(n),
              Ie = jh(H, Q);
            $1.add(
              Oc(
                H,
                Ie.start,
                Ie.length,
                f.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead,
              ),
            );
          }
          u8(n);
          const U = Wr(n);
          if (U.flags & 512 && !v && WU(n, Ib(O))) {
            if (
              (O.erasableSyntaxOnly &&
                Qe(
                  n.name,
                  f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled,
                ),
              ym(O) &&
                !Wn(n).externalModuleIndicator &&
                Qe(
                  n.name,
                  f.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,
                  Ge,
                ),
              ((c = U.declarations) == null ? void 0 : c.length) > 1)
            ) {
              const H = Nyt(U);
              H &&
                (Wn(n) !== Wn(H)
                  ? Qe(
                      n.name,
                      f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged,
                    )
                  : n.pos < H.pos &&
                    Qe(
                      n.name,
                      f.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged,
                    ));
              const Q = al(U, 264);
              Q && Myt(n, Q) && (Vr(n).flags |= 2048);
            }
            if (
              O.verbatimModuleSyntax &&
              n.parent.kind === 308 &&
              e.getEmitModuleFormatOfFile(n.parent) === 1
            ) {
              const H =
                (p = n.modifiers) == null
                  ? void 0
                  : p.find((Q) => Q.kind === 95);
              H &&
                Qe(
                  H,
                  f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled,
                );
            }
          }
          if (I)
            if (TS(n)) {
              if ((m || Wr(n).flags & 33554432) && n.body)
                for (const Q of n.body.statements) Tye(Q, m);
            } else
              ev(n.parent)
                ? m
                  ? Qe(
                      n.name,
                      f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations,
                    )
                  : td(zf(n.name)) &&
                    Qe(
                      n.name,
                      f.Ambient_module_declaration_cannot_specify_relative_module_name,
                    )
                : m
                  ? Qe(
                      n.name,
                      f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations,
                    )
                  : Qe(
                      n.name,
                      f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces,
                    );
        }
      }
      function Tye(n, a) {
        switch (n.kind) {
          case 244:
            for (const p of n.declarationList.declarations) Tye(p, a);
            break;
          case 278:
          case 279:
            fd(
              n,
              f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations,
            );
            break;
          case 272:
            if (r1(n)) break;
          case 273:
            fd(
              n,
              f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module,
            );
            break;
          case 209:
          case 261:
            const c = n.name;
            if (Qo(c)) {
              for (const p of c.elements) Tye(p, a);
              break;
            }
          case 264:
          case 267:
          case 263:
          case 265:
          case 268:
          case 266:
            if (a) return;
            break;
        }
      }
      function Lyt(n) {
        switch (n.kind) {
          case 80:
            return n;
          case 167:
            do n = n.left;
            while (n.kind !== 80);
            return n;
          case 212:
            do {
              if (gg(n.expression) && !eo(n.name)) return n.name;
              n = n.expression;
            } while (n.kind !== 80);
            return n;
        }
      }
      function W$(n) {
        const a = yI(n);
        if (!a || Ol(a)) return !1;
        if (!ka(a)) return (Qe(a, f.String_literal_expected), !1);
        const c = n.parent.kind === 269 && yu(n.parent.parent);
        if (n.parent.kind !== 308 && !c)
          return (
            Qe(
              a,
              n.kind === 279
                ? f.Export_declarations_are_not_permitted_in_a_namespace
                : f.Import_declarations_in_a_namespace_cannot_reference_a_module,
            ),
            !1
          );
        if (c && td(a.text) && !uL(n))
          return (
            Qe(
              n,
              f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name,
            ),
            !1
          );
        if (!Fc(n) && n.attributes) {
          const p =
            n.attributes.token === 118
              ? f.Import_attribute_values_must_be_string_literal_expressions
              : f.Import_assertion_values_must_be_string_literal_expressions;
          let m = !1;
          for (const v of n.attributes.elements)
            ka(v.value) || ((m = !0), Qe(v.value, p));
          return !m;
        }
        return !0;
      }
      function F$(n, a = !0) {
        n === void 0 ||
          n.kind !== 11 ||
          (a
            ? (j === 5 || j === 6) &&
              Cn(
                n,
                f.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020,
              )
            : Cn(n, f.Identifier_expected));
      }
      function z$(n) {
        var a, c, p, m, v;
        let I = Wr(n);
        const w = ud(I);
        if (w !== ne) {
          if (
            ((I = os(I.exportSymbol || I)),
            Ir(n) && !(w.flags & 111551) && !Qy(n))
          ) {
            const Q = ub(n) ? n.propertyName || n.name : nd(n) ? n.name : n;
            if ((C.assert(n.kind !== 281), n.kind === 282)) {
              const Ie = Qe(
                  Q,
                  f.Types_cannot_appear_in_export_declarations_in_JavaScript_files,
                ),
                Te =
                  (c = (a = Wn(n).symbol) == null ? void 0 : a.exports) == null
                    ? void 0
                    : c.get(bS(n.propertyName || n.name));
              if (Te === w) {
                const Ze = (p = Te.declarations) == null ? void 0 : p.find(GR);
                Ze &&
                  pa(
                    Ie,
                    Ar(
                      Ze,
                      f._0_is_automatically_exported_here,
                      Gi(Te.escapedName),
                    ),
                  );
              }
            } else {
              C.assert(n.kind !== 261);
              const Ie = Dn(n, Rp(vl, Fc)),
                Te = (Ie && ((m = gI(Ie)) == null ? void 0 : m.text)) ?? "...",
                Ze = Gi(He(Q) ? Q.escapedText : I.escapedName);
              Qe(
                Q,
                f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,
                Ze,
                `import("${Te}").${Ze}`,
              );
            }
            return;
          }
          const U = dp(w),
            H =
              (I.flags & 1160127 ? 111551 : 0) |
              (I.flags & 788968 ? 788968 : 0) |
              (I.flags & 1920 ? 1920 : 0);
          if (U & H) {
            const Q =
              n.kind === 282
                ? f.Export_declaration_conflicts_with_exported_declaration_of_0
                : f.Import_declaration_conflicts_with_local_declaration_of_0;
            Qe(n, Q, uo(I));
          } else
            n.kind !== 282 &&
              O.isolatedModules &&
              !Dn(n, Qy) &&
              I.flags & 1160127 &&
              Qe(
                n,
                f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,
                uo(I),
                Ge,
              );
          if (ym(O) && !Qy(n) && !(n.flags & 33554432)) {
            const Q = Ah(I),
              Ie = !(U & 111551);
            if (Ie || Q)
              switch (n.kind) {
                case 274:
                case 277:
                case 272: {
                  if (O.verbatimModuleSyntax) {
                    C.assertIsDefined(
                      n.name,
                      "An ImportClause with a symbol should have a name",
                    );
                    const Te =
                        O.verbatimModuleSyntax && r1(n)
                          ? f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled
                          : Ie
                            ? f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled
                            : f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,
                      Ze = yb((n.kind === 277 && n.propertyName) || n.name);
                    Wo(Qe(n, Te, Ze), Ie ? void 0 : Q, Ze);
                  }
                  Ie &&
                    n.kind === 272 &&
                    wp(n, 32) &&
                    Qe(
                      n,
                      f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,
                      Ge,
                    );
                  break;
                }
                case 282:
                  if (O.verbatimModuleSyntax || Wn(Q) !== Wn(n)) {
                    const Te = yb(n.propertyName || n.name),
                      Ze = Ie
                        ? Qe(
                            n,
                            f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,
                            Ge,
                          )
                        : Qe(
                            n,
                            f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,
                            Te,
                            Ge,
                          );
                    Wo(Ze, Ie ? void 0 : Q, Te);
                    break;
                  }
              }
            if (
              (O.verbatimModuleSyntax &&
              n.kind !== 272 &&
              !Ir(n) &&
              e.getEmitModuleFormatOfFile(Wn(n)) === 1
                ? Qe(n, Q1(n))
                : j === 200 &&
                  n.kind !== 272 &&
                  n.kind !== 261 &&
                  e.getEmitModuleFormatOfFile(Wn(n)) === 1 &&
                  Qe(
                    n,
                    f.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve,
                  ),
              O.verbatimModuleSyntax &&
                !Qy(n) &&
                !(n.flags & 33554432) &&
                U & 128)
            ) {
              const Te = w.valueDeclaration,
                Ze =
                  (v = e.getRedirectFromOutput(Wn(Te).resolvedPath)) == null
                    ? void 0
                    : v.resolvedRef;
              Te.flags & 33554432 &&
                (!Ze || !Ib(Ze.commandLine.options)) &&
                Qe(
                  n,
                  f.Cannot_access_ambient_const_enums_when_0_is_enabled,
                  Ge,
                );
            }
          }
          if (Eu(n)) {
            const Q = Sye(I, n);
            xu(Q) && Q.declarations && Cm(n, Q.declarations, Q.escapedName);
          }
        }
      }
      function Sye(n, a) {
        if (!(n.flags & 2097152) || xu(n) || !cp(n)) return n;
        const c = ud(n);
        if (c === ne) return c;
        for (; n.flags & 2097152; ) {
          const p = a$(n);
          if (p) {
            if (p === c) break;
            if (p.declarations && et(p.declarations))
              if (xu(p)) {
                Cm(a, p.declarations, p.escapedName);
                break;
              } else {
                if (n === c) break;
                n = p;
              }
          } else break;
        }
        return c;
      }
      function B$(n) {
        (BL(n, n.name),
          z$(n),
          n.kind === 277 &&
            (F$(n.propertyName),
            N_(n.propertyName || n.name) &&
              $h(O) &&
              e.getEmitModuleFormatOfFile(Wn(n)) < 4 &&
              $c(n, 131072)));
      }
      function Eye(n) {
        var a;
        const c = n.attributes;
        if (c) {
          const p = zhe(!0);
          p !== Ra && $d(ihe(c), h5(p, 32768), c);
          const m = bH(n),
            v = HD(c, m ? Cn : void 0),
            I = n.attributes.token === 118;
          if (m && v) return;
          if (!pre(j))
            return Cn(
              c,
              I
                ? f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve
                : f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve,
            );
          if (102 <= j && j <= 199 && !I)
            return fd(
              c,
              f.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert,
            );
          if (n.moduleSpecifier && Cy(n.moduleSpecifier) === 1)
            return Cn(
              c,
              I
                ? f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls
                : f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls,
            );
          if (
            o_(n) ||
            (vl(n)
              ? (a = n.importClause) == null
                ? void 0
                : a.isTypeOnly
              : n.isTypeOnly)
          )
            return Cn(
              c,
              I
                ? f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports
                : f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports,
            );
          if (v)
            return Cn(
              c,
              f.resolution_mode_can_only_be_set_for_type_only_imports,
            );
        }
      }
      function kyt(n) {
        return Cu(Vl(n.value));
      }
      function wyt(n) {
        if (
          !rB(
            n,
            Ir(n)
              ? f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module
              : f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module,
          )
        ) {
          if (
            (!Kg(n) &&
              n.modifiers &&
              fd(n, f.An_import_declaration_cannot_have_modifiers),
            W$(n))
          ) {
            let a;
            const c = n.importClause;
            c && !Ibt(c)
              ? (c.name && B$(c),
                c.namedBindings &&
                  (c.namedBindings.kind === 275
                    ? (B$(c.namedBindings),
                      e.getEmitModuleFormatOfFile(Wn(n)) < 4 &&
                        $h(O) &&
                        $c(n, 65536))
                    : ((a = uu(n, n.moduleSpecifier)),
                      a && Ye(c.namedBindings.elements, B$))),
                !c.isTypeOnly &&
                  101 <= j &&
                  j <= 199 &&
                  eT(n.moduleSpecifier, a) &&
                  !Oyt(n) &&
                  Qe(
                    n.moduleSpecifier,
                    f.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,
                    CR[j],
                  ))
              : Je && !c && uu(n, n.moduleSpecifier);
          }
          Eye(n);
        }
      }
      function Oyt(n) {
        return (
          !!n.attributes &&
          n.attributes.elements.some((a) => {
            var c;
            return (
              zf(a.name) === "type" &&
              ((c = ni(a.value, ds)) == null ? void 0 : c.text) === "json"
            );
          })
        );
      }
      function Wyt(n) {
        if (
          !rB(
            n,
            Ir(n)
              ? f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module
              : f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module,
          ) &&
          (Kg(n),
          O.erasableSyntaxOnly &&
            !(n.flags & 33554432) &&
            Qe(
              n,
              f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled,
            ),
          r1(n) || W$(n))
        )
          if ((B$(n), cR(n, 6), n.moduleReference.kind !== 284)) {
            const a = ud(Wr(n));
            if (a !== ne) {
              const c = dp(a);
              if (c & 111551) {
                const p = Lu(n.moduleReference);
                Gl(p, 112575).flags & 1920 ||
                  Qe(
                    p,
                    f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,
                    ws(p),
                  );
              }
              c & 788968 && GL(n.name, f.Import_name_cannot_be_0);
            }
            n.isTypeOnly && Cn(n, f.An_import_alias_cannot_use_import_type);
          } else
            5 <= j &&
              j <= 99 &&
              !n.isTypeOnly &&
              !(n.flags & 33554432) &&
              Cn(
                n,
                f.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead,
              );
      }
      function Fyt(n) {
        if (
          !rB(
            n,
            Ir(n)
              ? f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module
              : f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module,
          )
        ) {
          if (
            (!Kg(n) &&
              One(n) &&
              fd(n, f.An_export_declaration_cannot_have_modifiers),
            zyt(n),
            !n.moduleSpecifier || W$(n))
          )
            if (n.exportClause && !O_(n.exportClause)) {
              Ye(n.exportClause.elements, Byt);
              const a = n.parent.kind === 269 && yu(n.parent.parent),
                c =
                  !a &&
                  n.parent.kind === 269 &&
                  !n.moduleSpecifier &&
                  n.flags & 33554432;
              n.parent.kind !== 308 &&
                !a &&
                !c &&
                Qe(n, f.Export_declarations_are_not_permitted_in_a_namespace);
            } else {
              const a = uu(n, n.moduleSpecifier);
              (a && Ym(a)
                ? Qe(
                    n.moduleSpecifier,
                    f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,
                    uo(a),
                  )
                : n.exportClause &&
                  (z$(n.exportClause), F$(n.exportClause.name)),
                e.getEmitModuleFormatOfFile(Wn(n)) < 4 &&
                  (n.exportClause ? $h(O) && $c(n, 65536) : $c(n, 32768)));
            }
          Eye(n);
        }
      }
      function zyt(n) {
        var a;
        return n.isTypeOnly &&
          ((a = n.exportClause) == null ? void 0 : a.kind) === 280
          ? b7e(n.exportClause)
          : !1;
      }
      function rB(n, a) {
        const c =
          n.parent.kind === 308 ||
          n.parent.kind === 269 ||
          n.parent.kind === 268;
        return (c || fd(n, a), !c);
      }
      function Byt(n) {
        z$(n);
        const a = n.parent.parent.moduleSpecifier !== void 0;
        if (
          (F$(n.propertyName, a),
          F$(n.name),
          _p(O) && wC(n.propertyName || n.name, !0),
          a)
        )
          $h(O) &&
            e.getEmitModuleFormatOfFile(Wn(n)) < 4 &&
            N_(n.propertyName || n.name) &&
            $c(n, 131072);
        else {
          const c = n.propertyName || n.name;
          if (c.kind === 11) return;
          const p = _t(c, c.escapedText, 2998271, void 0, !0);
          p &&
          (p === ce ||
            p === Re ||
            (p.declarations && ev(Pt(p.declarations[0]))))
            ? Qe(
                c,
                f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,
                Kr(c),
              )
            : cR(n, 7);
        }
      }
      function Gyt(n) {
        const a = n.isExportEquals
          ? f.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration
          : f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;
        if (rB(n, a)) return;
        O.erasableSyntaxOnly &&
          n.isExportEquals &&
          !(n.flags & 33554432) &&
          Qe(
            n,
            f.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled,
          );
        const c = n.parent.kind === 308 ? n.parent : n.parent.parent;
        if (c.kind === 268 && !yu(c)) {
          n.isExportEquals
            ? Qe(n, f.An_export_assignment_cannot_be_used_in_a_namespace)
            : Qe(
                n,
                f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module,
              );
          return;
        }
        !Kg(n) && cV(n) && fd(n, f.An_export_assignment_cannot_have_modifiers);
        const p = xc(n);
        p && $d(Vl(n.expression), Ji(p), n.expression);
        const m =
          !n.isExportEquals &&
          !(n.flags & 33554432) &&
          O.verbatimModuleSyntax &&
          e.getEmitModuleFormatOfFile(Wn(n)) === 1;
        if (n.expression.kind === 80) {
          const v = n.expression,
            I = Et(Gl(v, -1, !0, !0, n));
          if (I) {
            cR(n, 3);
            const w = Ah(I, 111551);
            if (
              (dp(I) & 111551
                ? (Vl(v),
                  !m &&
                    !(n.flags & 33554432) &&
                    O.verbatimModuleSyntax &&
                    w &&
                    Qe(
                      v,
                      n.isExportEquals
                        ? f.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration
                        : f.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,
                      Kr(v),
                    ))
                : !m &&
                  !(n.flags & 33554432) &&
                  O.verbatimModuleSyntax &&
                  Qe(
                    v,
                    n.isExportEquals
                      ? f.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type
                      : f.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,
                    Kr(v),
                  ),
              !m && !(n.flags & 33554432) && ym(O) && !(I.flags & 111551))
            ) {
              const U = dp(I, !1, !0);
              I.flags & 2097152 &&
              U & 788968 &&
              !(U & 111551) &&
              (!w || Wn(w) !== Wn(n))
                ? Qe(
                    v,
                    n.isExportEquals
                      ? f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported
                      : f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,
                    Kr(v),
                    Ge,
                  )
                : w &&
                  Wn(w) !== Wn(n) &&
                  Wo(
                    Qe(
                      v,
                      n.isExportEquals
                        ? f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported
                        : f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,
                      Kr(v),
                      Ge,
                    ),
                    w,
                    Kr(v),
                  );
            }
          } else Vl(v);
          _p(O) && wC(v, !0);
        } else Vl(n.expression);
        (m && Qe(n, Q1(n)),
          B3e(c),
          n.flags & 33554432 &&
            !Ds(n.expression) &&
            Cn(
              n.expression,
              f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context,
            ),
          n.isExportEquals &&
            (j >= 5 &&
            j !== 200 &&
            ((n.flags & 33554432 &&
              e.getImpliedNodeFormatForEmit(Wn(n)) === 99) ||
              (!(n.flags & 33554432) &&
                e.getImpliedNodeFormatForEmit(Wn(n)) !== 1))
              ? Cn(
                  n,
                  f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead,
                )
              : j === 4 &&
                !(n.flags & 33554432) &&
                Cn(
                  n,
                  f.Export_assignment_is_not_supported_when_module_flag_is_system,
                )));
      }
      function Vyt(n) {
        return Hc(n.exports, (a, c) => c !== "export=");
      }
      function B3e(n) {
        const a = Wr(n),
          c = Jr(a);
        if (!c.exportsChecked) {
          const p = a.exports.get("export=");
          if (p && Vyt(a)) {
            const v = cp(p) || p.valueDeclaration;
            v &&
              !uL(v) &&
              !Ir(v) &&
              Qe(
                v,
                f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements,
              );
          }
          const m = __(a);
          (m &&
            m.forEach(({ declarations: v, flags: I }, w) => {
              if (w === "__export" || I & 1920) return;
              const U = Io(v, j8(fHe, U8(gd)));
              if (!(I & 524288 && U <= 2) && U > 1 && !G$(v))
                for (const H of v)
                  z1e(H) &&
                    ns.add(
                      Ar(H, f.Cannot_redeclare_exported_variable_0, Gi(w)),
                    );
            }),
            (c.exportsChecked = !0));
        }
      }
      function G$(n) {
        return (
          n &&
          n.length > 1 &&
          n.every(
            (a) => Ir(a) && Ks(a) && (i1(a.expression) || gg(a.expression)),
          )
        );
      }
      function wa(n) {
        if (n) {
          const a = R;
          ((R = n), (g = 0), jyt(n), (R = a));
        }
      }
      function jyt(n) {
        if (hR(n) & 8388608) return;
        Ek(n) &&
          Ye(n.jsDoc, ({ comment: c, tags: p }) => {
            (G3e(c),
              Ye(p, (m) => {
                (G3e(m.comment), Ir(n) && wa(m));
              }));
          });
        const a = n.kind;
        if (i)
          switch (a) {
            case 268:
            case 264:
            case 265:
            case 263:
              i.throwIfCancellationRequested();
          }
        switch (
          (a >= 244 &&
            a <= 260 &&
            eD(n) &&
            n.flowNode &&
            !E5(n.flowNode) &&
            Jm(O.allowUnreachableCode === !1, n, f.Unreachable_code_detected),
          a)
        ) {
          case 169:
            return J4e(n);
          case 170:
            return K4e(n);
          case 173:
            return $4e(n);
          case 172:
            return x_t(n);
          case 186:
          case 185:
          case 180:
          case 181:
          case 182:
            return c8(n);
          case 175:
          case 174:
            return R_t(n);
          case 176:
            return D_t(n);
          case 177:
            return C_t(n);
          case 178:
          case 179:
            return Z4e(n);
          case 184:
            return sye(n);
          case 183:
            return S_t(n);
          case 187:
            return w_t(n);
          case 188:
            return O_t(n);
          case 189:
            return W_t(n);
          case 190:
            return F_t(n);
          case 193:
          case 194:
            return z_t(n);
          case 197:
          case 191:
          case 192:
            return wa(n.type);
          case 198:
            return j_t(n);
          case 199:
            return U_t(n);
          case 195:
            return H_t(n);
          case 196:
            return q_t(n);
          case 204:
            return J_t(n);
          case 206:
            return K_t(n);
          case 203:
            return X_t(n);
          case 329:
            return hgt(n);
          case 330:
            return mgt(n);
          case 347:
          case 339:
          case 341:
            return igt(n);
          case 346:
            return ogt(n);
          case 345:
            return agt(n);
          case 325:
          case 326:
          case 327:
            return lgt(n);
          case 342:
            return cgt(n);
          case 349:
            return dgt(n);
          case 318:
            ugt(n);
          case 316:
          case 315:
          case 313:
          case 314:
          case 323:
            (V3e(n), Jo(n, wa));
            return;
          case 319:
            Uyt(n);
            return;
          case 310:
            return wa(n.type);
          case 334:
          case 336:
          case 335:
            return _gt(n);
          case 351:
            return sgt(n);
          case 344:
            return pgt(n);
          case 352:
            return fgt(n);
          case 200:
            return B_t(n);
          case 201:
            return G_t(n);
          case 263:
            return rgt(n);
          case 242:
          case 269:
            return M$(n);
          case 244:
            return kgt(n);
          case 245:
            return wgt(n);
          case 246:
            return Ogt(n);
          case 247:
            return zgt(n);
          case 248:
            return Bgt(n);
          case 249:
            return Ggt(n);
          case 250:
            return jgt(n);
          case 251:
            return Vgt(n);
          case 252:
          case 253:
            return Qgt(n);
          case 254:
            return Zgt(n);
          case 255:
            return eyt(n);
          case 256:
            return tyt(n);
          case 257:
            return nyt(n);
          case 258:
            return ryt(n);
          case 259:
            return iyt(n);
          case 261:
            return Pgt(n);
          case 209:
            return Lgt(n);
          case 264:
            return pyt(n);
          case 265:
            return Syt(n);
          case 266:
            return Eyt(n);
          case 267:
            return Ryt(n);
          case 307:
            return Cyt(n);
          case 268:
            return Pyt(n);
          case 273:
            return wyt(n);
          case 272:
            return Wyt(n);
          case 279:
            return Fyt(n);
          case 278:
            return Gyt(n);
          case 243:
          case 260:
            Uy(n);
            return;
          case 283:
            return M_t(n);
        }
      }
      function G3e(n) {
        Mo(n) &&
          Ye(n, (a) => {
            cI(a) && wa(a);
          });
      }
      function V3e(n) {
        if (!Ir(n))
          if (E4(n) || RD(n)) {
            const a = _a(E4(n) ? 54 : 58),
              c = n.postfix
                ? f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1
                : f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,
              p = n.type,
              m = Ji(p);
            Cn(
              n,
              c,
              a,
              ar(
                RD(n) && !(m === yn || m === In)
                  ? pi(Bn([m, he], n.postfix ? void 0 : Xt))
                  : m,
              ),
            );
          } else
            Cn(n, f.JSDoc_types_can_only_be_used_inside_documentation_comments);
      }
      function Uyt(n) {
        (V3e(n), wa(n.type));
        const { parent: a } = n;
        if (to(a) && DD(a.parent)) {
          Ba(a.parent.parameters) !== a &&
            Qe(n, f.A_rest_parameter_must_be_last_in_a_parameter_list);
          return;
        }
        t0(a) ||
          Qe(n, f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);
        const c = n.parent.parent;
        if (!mf(c)) {
          Qe(n, f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);
          return;
        }
        const p = Ak(c);
        if (!p) return;
        const m = BT(c);
        (!m || Ba(m.parameters).symbol !== p) &&
          Qe(n, f.A_rest_parameter_must_be_last_in_a_parameter_list);
      }
      function Hyt(n) {
        const a = Ji(n.type),
          { parent: c } = n,
          p = n.parent.parent;
        if (t0(n.parent) && mf(p)) {
          const m = BT(p),
            v = xj(p.parent.parent);
          if (m || v) {
            const I = Zs(
                v ? p.parent.parent.typeExpression.parameters : m.parameters,
              ),
              w = Ak(p);
            if (!I || (w && I.symbol === w && C_(I))) return Yd(a);
          }
        }
        return to(c) && DD(c.parent) ? Yd(a) : pu(a);
      }
      function fR(n) {
        const a = Wn(n),
          c = Vr(a);
        c.flags & 1
          ? C.assert(
              !c.deferredNodes,
              "A type-checked file should have no deferred nodes.",
            )
          : (c.deferredNodes || (c.deferredNodes = new Set()),
            c.deferredNodes.add(n));
      }
      function j3e(n) {
        const a = Vr(n);
        (a.deferredNodes && a.deferredNodes.forEach(qyt),
          (a.deferredNodes = void 0));
      }
      function qyt(n) {
        var a, c;
        (a = xr) == null ||
          a.push(xr.Phase.Check, "checkDeferredNode", {
            kind: n.kind,
            pos: n.pos,
            end: n.end,
            path: n.tracingPath,
          });
        const p = R;
        switch (((R = n), (g = 0), n.kind)) {
          case 214:
          case 215:
          case 216:
          case 171:
          case 287:
            WA(n);
            break;
          case 219:
          case 220:
          case 175:
          case 174:
            Wht(n);
            break;
          case 178:
          case 179:
            Z4e(n);
            break;
          case 232:
            uyt(n);
            break;
          case 169:
            T_t(n);
            break;
          case 286:
            Uft(n);
            break;
          case 285:
            qft(n);
            break;
          case 217:
          case 235:
          case 218:
            sht(n);
            break;
          case 223:
            _o(n.expression);
            break;
          case 227:
            I6(n) && WA(n);
            break;
        }
        ((R = p), (c = xr) == null || c.pop());
      }
      function Jyt(n, a) {
        var c, p;
        (c = xr) == null ||
          c.push(
            xr.Phase.Check,
            a ? "checkSourceFileNodes" : "checkSourceFile",
            { path: n.path },
            !0,
          );
        const m = a ? "beforeCheckNodes" : "beforeCheck",
          v = a ? "afterCheckNodes" : "afterCheck";
        (Rl(m),
          a ? Xyt(n, a) : Kyt(n),
          Rl(v),
          wf("Check", m, v),
          (p = xr) == null || p.pop());
      }
      function U3e(n, a) {
        if (a) return !1;
        switch (n) {
          case 0:
            return !!O.noUnusedLocals;
          case 1:
            return !!O.noUnusedParameters;
          default:
            return C.assertNever(n);
        }
      }
      function H3e(n) {
        return Qn.get(n.path) || ae;
      }
      function Kyt(n) {
        const a = Vr(n);
        if (!(a.flags & 1)) {
          if (mD(n, O, e)) return;
          (y7e(n),
            hi(Jb),
            hi(Ev),
            hi(Sy),
            hi(Ey),
            hi(Ay),
            a.flags & 8388608 &&
              ((Jb = a.potentialThisCollisions),
              (Ev = a.potentialNewTargetCollisions),
              (Sy = a.potentialWeakMapSetCollisions),
              (Ey = a.potentialReflectCollisions),
              (Ay = a.potentialUnusedRenamedBindingElementsInTypes)),
            Ye(n.statements, wa),
            wa(n.endOfFileToken),
            j3e(n),
            Pp(n) && gT(n),
            r(() => {
              (!n.isDeclarationFile &&
                (O.noUnusedLocals || O.noUnusedParameters) &&
                d3e(H3e(n), (c, p, m) => {
                  !fI(c) && U3e(p, !!(c.flags & 33554432)) && ns.add(m);
                }),
                n.isDeclarationFile || bgt());
            }),
            Pp(n) && B3e(n),
            Jb.length && (Ye(Jb, Egt), hi(Jb)),
            Ev.length && (Ye(Ev, Agt), hi(Ev)),
            Sy.length && (Ye(Sy, Dgt), hi(Sy)),
            Ey.length && (Ye(Ey, Ngt), hi(Ey)),
            (a.flags |= 1));
        }
      }
      function Xyt(n, a) {
        const c = Vr(n);
        if (!(c.flags & 1)) {
          if (mD(n, O, e)) return;
          (y7e(n),
            hi(Jb),
            hi(Ev),
            hi(Sy),
            hi(Ey),
            hi(Ay),
            Ye(a, wa),
            j3e(n),
            (
              c.potentialThisCollisions || (c.potentialThisCollisions = [])
            ).push(...Jb),
            (
              c.potentialNewTargetCollisions ||
              (c.potentialNewTargetCollisions = [])
            ).push(...Ev),
            (
              c.potentialWeakMapSetCollisions ||
              (c.potentialWeakMapSetCollisions = [])
            ).push(...Sy),
            (
              c.potentialReflectCollisions ||
              (c.potentialReflectCollisions = [])
            ).push(...Ey),
            (
              c.potentialUnusedRenamedBindingElementsInTypes ||
              (c.potentialUnusedRenamedBindingElementsInTypes = [])
            ).push(...Ay),
            (c.flags |= 8388608));
          for (const p of a) {
            const m = Vr(p);
            m.flags |= 8388608;
          }
        }
      }
      function q3e(n, a, c) {
        try {
          return ((i = a), Yyt(n, c));
        } finally {
          i = void 0;
        }
      }
      function Aye() {
        for (const n of t) n();
        t = [];
      }
      function Iye(n, a) {
        Aye();
        const c = r;
        ((r = (p) => p()), Jyt(n, a), (r = c));
      }
      function Yyt(n, a) {
        if (n) {
          Aye();
          const c = ns.getGlobalDiagnostics(),
            p = c.length;
          Iye(n, a);
          const m = ns.getDiagnostics(n.fileName);
          if (a) return m;
          const v = ns.getGlobalDiagnostics();
          if (v !== c) {
            const I = VQ(c, v, vM);
            return so(I, m);
          } else if (p === 0 && v.length > 0) return so(v, m);
          return m;
        }
        return (Ye(e.getSourceFiles(), (c) => Iye(c)), ns.getDiagnostics());
      }
      function $yt() {
        return (Aye(), ns.getGlobalDiagnostics());
      }
      function Qyt(n, a) {
        if (n.flags & 67108864) return [];
        const c = da();
        let p = !1;
        return (m(), c.delete("this"), Che(c));
        function m() {
          for (; n; ) {
            switch ((D_(n) && n.locals && !ev(n) && I(n.locals, a), n.kind)) {
              case 308:
                if (!zc(n)) break;
              case 268:
                w(Wr(n).exports, a & 2623475);
                break;
              case 267:
                I(Wr(n).exports, a & 8);
                break;
              case 232:
                n.name && v(n.symbol, a);
              case 264:
              case 265:
                p || I($_(Wr(n)), a & 788968);
                break;
              case 219:
                n.name && v(n.symbol, a);
                break;
            }
            (ene(n) && v(_e, a), (p = ua(n)), (n = n.parent));
          }
          I(lt, a);
        }
        function v(U, H) {
          if (cD(U) & H) {
            const Q = U.escapedName;
            c.has(Q) || c.set(Q, U);
          }
        }
        function I(U, H) {
          H &&
            U.forEach((Q) => {
              v(Q, H);
            });
        }
        function w(U, H) {
          H &&
            U.forEach((Q) => {
              !al(Q, 282) &&
                !al(Q, 281) &&
                Q.escapedName !== "default" &&
                v(Q, H);
            });
        }
      }
      function Zyt(n) {
        return n.kind === 80 && kI(n.parent) && Oo(n.parent) === n;
      }
      function J3e(n) {
        for (; n.parent.kind === 167; ) n = n.parent;
        return n.parent.kind === 184;
      }
      function evt(n) {
        for (; n.parent.kind === 212; ) n = n.parent;
        return n.parent.kind === 234;
      }
      function K3e(n, a) {
        let c,
          p = hd(n);
        for (; p && !(c = a(p)); ) p = hd(p);
        return c;
      }
      function tvt(n) {
        return !!Dn(n, (a) =>
          (Ml(a) && fm(a.body)) || Po(a) ? !0 : ui(a) || Ms(a) ? "quit" : !1,
        );
      }
      function xye(n, a) {
        return !!K3e(n, (c) => c === a);
      }
      function nvt(n) {
        for (; n.parent.kind === 167; ) n = n.parent;
        if (n.parent.kind === 272)
          return n.parent.moduleReference === n ? n.parent : void 0;
        if (n.parent.kind === 278)
          return n.parent.expression === n ? n.parent : void 0;
      }
      function V$(n) {
        return nvt(n) !== void 0;
      }
      function rvt(n) {
        switch (oc(n.parent.parent)) {
          case 1:
          case 3:
            return If(n.parent);
          case 5:
            if (qr(n.parent) && dD(n.parent) === n) return;
          case 4:
          case 2:
            return Wr(n.parent.parent);
        }
      }
      function ivt(n) {
        let a = n.parent;
        for (; ku(a); ) ((n = a), (a = a.parent));
        if (a && a.kind === 206 && a.qualifier === n) return a;
      }
      function ovt(n) {
        if (n.expression.kind === 110) {
          const a = vu(n, !1, !1);
          if (Yo(a)) {
            const c = i6e(a);
            if (c) {
              const p = nS(c, void 0),
                m = a6e(c, p);
              return m && !wr(m);
            }
          }
        }
      }
      function X3e(n) {
        if (L_(n)) return If(n.parent);
        if (
          Ir(n) &&
          n.parent.kind === 212 &&
          n.parent === n.parent.parent.left &&
          !eo(n) &&
          !n0(n) &&
          !ovt(n.parent)
        ) {
          const a = rvt(n);
          if (a) return a;
        }
        if (n.parent.kind === 278 && Ds(n)) {
          const a = Gl(n, 2998271, !0);
          if (a && a !== ne) return a;
        } else if (Mu(n) && V$(n)) {
          const a = VT(n, 272);
          return (C.assert(a !== void 0), rT(n, !0));
        }
        if (Mu(n)) {
          const a = ivt(n);
          if (a) {
            Ji(a);
            const c = Vr(n).resolvedSymbol;
            return c === ne ? void 0 : c;
          }
        }
        for (; Vne(n); ) n = n.parent;
        if (evt(n)) {
          let a = 0;
          (n.parent.kind === 234
            ? ((a = Hh(n) ? 788968 : 111551), A6(n.parent) && (a |= 111551))
            : (a = 1920),
            (a |= 2097152));
          const c = Ds(n) ? Gl(n, a, !0) : void 0;
          if (c) return c;
        }
        if (n.parent.kind === 342) return Ak(n.parent);
        if (n.parent.kind === 169 && n.parent.parent.kind === 346) {
          C.assert(!Ir(n));
          const a = _ne(n.parent);
          return a && a.symbol;
        }
        if (P_(n)) {
          if (Ol(n)) return;
          const a = Dn(n, Rp(cI, JM, n0)),
            c = a ? 901119 : 111551;
          if (n.kind === 80) {
            if ($R(n) && uR(n)) {
              const m = l$(n.parent);
              return m === ne ? void 0 : m;
            }
            const p = Gl(n, c, !0, !0, BT(n));
            if (!p && a) {
              const m = Dn(n, Rp(ui, gd));
              if (m) return iB(n, !0, Wr(m));
            }
            if (p && a) {
              const m = IS(n);
              if (m && py(m) && m === p.valueDeclaration)
                return Gl(n, c, !0, !0, Wn(m)) || p;
            }
            return p;
          } else {
            if (eo(n)) return p$(n);
            if (n.kind === 212 || n.kind === 167) {
              const p = Vr(n);
              return p.resolvedSymbol
                ? p.resolvedSymbol
                : (n.kind === 212
                    ? (u$(n, 0),
                      p.resolvedSymbol ||
                        (p.resolvedSymbol = Y3e(Vl(n.expression), ky(n.name))))
                    : O6e(n, 0),
                  !p.resolvedSymbol && a && ku(n) ? iB(n) : p.resolvedSymbol);
            } else if (n0(n)) return iB(n);
          }
        } else if (Mu(n) && J3e(n)) {
          const a = n.parent.kind === 184 ? 788968 : 1920,
            c = Gl(n, a, !0, !0);
          return c && c !== ne ? c : dY(n);
        }
        if (n.parent.kind === 183) return Gl(n, 1, !0);
      }
      function Y3e(n, a) {
        const c = Dhe(n, a);
        if (c.length && n.members) {
          const p = aY(Dh(n).members);
          if (c === Xd(n)) return p;
          if (p) {
            const m = Jr(p),
              v = Ui(c, (w) => w.declaration),
              I = Vt(v, ls).join(",");
            if (
              (m.filteredIndexSymbolCache ||
                (m.filteredIndexSymbolCache = new Map()),
              m.filteredIndexSymbolCache.has(I))
            )
              return m.filteredIndexSymbolCache.get(I);
            {
              const w = ja(131072, "__index");
              return (
                (w.declarations = Ui(c, (U) => U.declaration)),
                (w.parent = n.aliasSymbol
                  ? n.aliasSymbol
                  : n.symbol
                    ? n.symbol
                    : sm(w.declarations[0].parent)),
                m.filteredIndexSymbolCache.set(I, w),
                w
              );
            }
          }
        }
      }
      function iB(n, a, c) {
        if (Mu(n)) {
          let I = Gl(n, 901119, a, !0, BT(n));
          if (
            (!I && He(n) && c && (I = os(Sd(qp(c), n.escapedText, 901119))), I)
          )
            return I;
        }
        const p = He(n) ? c : iB(n.left, a, c),
          m = He(n) ? n.escapedText : n.right.escapedText;
        if (p) {
          const v = p.flags & 111551 && Ea(_r(p), "prototype"),
            I = v ? _r(v) : qs(p);
          return Ea(I, m);
        }
      }
      function sm(n, a) {
        if (Yi(n)) return zc(n) ? os(n.symbol) : void 0;
        const { parent: c } = n,
          p = c.parent;
        if (!(n.flags & 67108864)) {
          if (B1e(n)) {
            const m = Wr(c);
            return ub(n.parent) && n.parent.propertyName === n ? a$(m) : m;
          } else if (xk(n)) return Wr(c.parent);
          if (n.kind === 80) {
            if (V$(n)) return X3e(n);
            if (c.kind === 209 && p.kind === 207 && n === c.propertyName) {
              const m = mR(p),
                v = Ea(m, n.escapedText);
              if (v) return v;
            } else if (S1(c) && c.name === n)
              return c.keywordToken === 105 && Kr(n) === "target"
                ? Vge(c).symbol
                : c.keywordToken === 102 && Kr(n) === "meta"
                  ? FWe().members.get("meta")
                  : void 0;
          }
          switch (n.kind) {
            case 80:
            case 81:
            case 212:
            case 167:
              if (!NS(n)) return X3e(n);
            case 110:
              const m = vu(n, !1, !1);
              if (Yo(m)) {
                const w = Df(m);
                if (w.thisParameter) return w.thisParameter;
              }
              if (QF(n)) return _o(n).symbol;
            case 198:
              return l_e(n).symbol;
            case 108:
              return _o(n).symbol;
            case 137:
              const v = n.parent;
              return v && v.kind === 177 ? v.parent.symbol : void 0;
            case 11:
            case 15:
              if (
                (FT(n.parent.parent) && XN(n.parent.parent) === n) ||
                ((n.parent.kind === 273 || n.parent.kind === 279) &&
                  n.parent.moduleSpecifier === n) ||
                (Ir(n) && o_(n.parent) && n.parent.moduleSpecifier === n) ||
                (Ir(n) && Zu(n.parent, !1)) ||
                Qu(n.parent) ||
                (uv(n.parent) &&
                  ry(n.parent.parent) &&
                  n.parent.parent.argument === n.parent)
              )
                return uu(n, n, a);
              if (Zo(c) && o1(c) && c.arguments[1] === n) return Wr(c);
            case 9:
              const I = Ws(c)
                ? c.argumentExpression === n
                  ? wd(c.expression)
                  : void 0
                : uv(c) && BS(p)
                  ? Ji(p.objectType)
                  : void 0;
              return I && Ea(I, Cl(n.text));
            case 90:
            case 100:
            case 39:
            case 86:
              return If(n.parent);
            case 206:
              return ry(n) ? sm(n.argument.literal, a) : void 0;
            case 95:
              return ll(n.parent) ? C.checkDefined(n.parent.symbol) : void 0;
            case 102:
              if (S1(n.parent) && n.parent.name.escapedText === "defer") return;
            case 105:
              return S1(n.parent) ? b4e(n.parent).symbol : void 0;
            case 104:
              if (Nr(n.parent)) {
                const w = wd(n.parent.right),
                  U = Zge(w);
                return U?.symbol ?? w.symbol;
              }
              return;
            case 237:
              return _o(n).symbol;
            case 296:
              if ($R(n) && uR(n)) {
                const w = l$(n.parent);
                return w === ne ? void 0 : w;
              }
            default:
              return;
          }
        }
      }
      function avt(n) {
        if (He(n) && qr(n.parent) && n.parent.name === n) {
          const a = ky(n),
            c = wd(n.parent.expression),
            p = c.flags & 1048576 ? c.types : [c];
          return Ki(p, (m) => Un(Xd(m), (v) => eR(a, v.keyType)));
        }
      }
      function svt(n) {
        if (n && n.kind === 305) return Gl(n.name, 2208703, !0);
      }
      function lvt(n) {
        if (ou(n)) {
          const a = n.propertyName || n.name;
          return n.parent.parent.moduleSpecifier
            ? w0(n.parent.parent, n)
            : a.kind === 11
              ? void 0
              : Gl(a, 2998271, !0);
        } else return Gl(n, 2998271, !0);
      }
      function mR(n) {
        if ((Yi(n) && !zc(n)) || n.flags & 67108864) return nt;
        const a = mV(n),
          c = a && tm(Wr(a.class));
        if (Hh(n)) {
          const p = Ji(n);
          return c ? Kp(p, c.thisType) : p;
        }
        if (P_(n)) return $3e(n);
        if (c && !a.isImplements) {
          const p = Ac(Zm(c));
          return p ? Kp(p, c.thisType) : nt;
        }
        if (kI(n)) {
          const p = Wr(n);
          return qs(p);
        }
        if (Zyt(n)) {
          const p = sm(n);
          return p ? qs(p) : nt;
        }
        if (Ha(n)) return Yx(n, !0, 0) || nt;
        if (rd(n)) {
          const p = Wr(n);
          return p ? _r(p) : nt;
        }
        if (B1e(n)) {
          const p = sm(n);
          return p ? _r(p) : nt;
        }
        if (Qo(n)) return Yx(n.parent, !0, 0) || nt;
        if (V$(n)) {
          const p = sm(n);
          if (p) {
            const m = qs(p);
            return pr(m) ? _r(p) : m;
          }
        }
        return S1(n.parent) && n.parent.keywordToken === n.kind
          ? b4e(n.parent)
          : A1(n)
            ? zhe(!1)
            : nt;
      }
      function j$(n) {
        if (
          (C.assert(n.kind === 211 || n.kind === 210), n.parent.kind === 251)
        ) {
          const m = eB(n.parent);
          return zA(n, m || nt);
        }
        if (n.parent.kind === 227) {
          const m = wd(n.parent.right);
          return zA(n, m || nt);
        }
        if (n.parent.kind === 304) {
          const m = ma(n.parent.parent, Wa),
            v = j$(m) || nt,
            I = UR(m.properties, n.parent);
          return w4e(m, v, I);
        }
        const a = ma(n.parent, Cd),
          c = j$(a) || nt,
          p = Hv(65, c, he, n.parent) || nt;
        return O4e(a, c, a.elements.indexOf(n), p);
      }
      function cvt(n) {
        const a = j$(ma(n.parent.parent, zN));
        return a && Ea(a, n.escapedText);
      }
      function $3e(n) {
        return (fM(n) && (n = n.parent), Cu(wd(n)));
      }
      function Q3e(n) {
        const a = If(n.parent);
        return ua(n) ? _r(a) : qs(a);
      }
      function Z3e(n) {
        const a = n.name;
        switch (a.kind) {
          case 80:
            return Sp(Kr(a));
          case 9:
          case 11:
            return Sp(a.text);
          case 168:
            const c = th(a);
            return kd(c, 12288) ? c : gt;
          default:
            return C.fail("Unsupported property name.");
        }
      }
      function Rye(n) {
        n = Du(n);
        const a = da(bs(n)),
          c = na(n, 0).length ? go : na(n, 1).length ? Za : void 0;
        return (
          c &&
            Ye(bs(c), (p) => {
              a.has(p.escapedName) || a.set(p.escapedName, p);
            }),
          ju(a)
        );
      }
      function U$(n) {
        return na(n, 0).length !== 0 || na(n, 1).length !== 0;
      }
      function e7e(n) {
        const a = dvt(n);
        return a ? Ki(a, e7e) : [n];
      }
      function dvt(n) {
        if (Wl(n) & 6)
          return Ui(Jr(n).containingType.types, (a) => Ea(a, n.escapedName));
        if (n.flags & 33554432) {
          const {
            links: { leftSpread: a, rightSpread: c, syntheticOrigin: p },
          } = n;
          return a ? [a, c] : p ? [p] : eI(uvt(n));
        }
      }
      function uvt(n) {
        let a,
          c = n;
        for (; (c = Jr(c).target); ) a = c;
        return a;
      }
      function pvt(n) {
        if (pl(n)) return !1;
        const a = jo(n, He);
        if (!a) return !1;
        const c = a.parent;
        return c ? !((qr(c) || Cc(c)) && c.name === a) && v8(a) === _e : !1;
      }
      function fvt(n) {
        return H2(n.parent) && n === n.parent.name;
      }
      function mvt(n, a) {
        var c;
        const p = jo(n, He);
        if (p) {
          let m = v8(p, fvt(p));
          if (m) {
            if (m.flags & 1048576) {
              const I = os(m.exportSymbol);
              if (!a && I.flags & 944 && !(I.flags & 3)) return;
              m = I;
            }
            const v = Yc(m);
            if (v) {
              if (
                v.flags & 512 &&
                ((c = v.valueDeclaration) == null ? void 0 : c.kind) === 308
              ) {
                const I = v.valueDeclaration,
                  w = Wn(p);
                return I !== w ? void 0 : I;
              }
              return Dn(p.parent, (I) => H2(I) && Wr(I) === v);
            }
          }
        }
      }
      function hvt(n) {
        const a = cie(n);
        if (a) return a;
        const c = jo(n, He);
        if (c) {
          const p = Nvt(c);
          if (iA(p, 111551) && !Ah(p, 111551)) return cp(p);
        }
      }
      function _vt(n) {
        return (
          n.valueDeclaration &&
          Ha(n.valueDeclaration) &&
          qE(n.valueDeclaration).parent.kind === 300
        );
      }
      function t7e(n) {
        if (n.flags & 418 && n.valueDeclaration && !Yi(n.valueDeclaration)) {
          const a = Jr(n);
          if (a.isDeclarationWithCollidingName === void 0) {
            const c = sh(n.valueDeclaration);
            if (Nte(c) || _vt(n))
              if (_t(c.parent, n.escapedName, 111551, void 0, !1))
                a.isDeclarationWithCollidingName = !0;
              else if (Dye(n.valueDeclaration, 16384)) {
                const p = Dye(n.valueDeclaration, 32768),
                  m = mb(c, !1),
                  v = c.kind === 242 && mb(c.parent, !1);
                a.isDeclarationWithCollidingName =
                  !Fte(c) && (!p || (!m && !v));
              } else a.isDeclarationWithCollidingName = !1;
          }
          return a.isDeclarationWithCollidingName;
        }
        return !1;
      }
      function gvt(n) {
        if (!pl(n)) {
          const a = jo(n, He);
          if (a) {
            const c = v8(a);
            if (c && t7e(c)) return c.valueDeclaration;
          }
        }
      }
      function yvt(n) {
        const a = jo(n, rd);
        if (a) {
          const c = Wr(a);
          if (c) return t7e(c);
        }
        return !1;
      }
      function n7e(n) {
        switch ((C.assert(We), n.kind)) {
          case 272:
            return H$(Wr(n));
          case 274:
          case 275:
          case 277:
          case 282:
            const a = Wr(n);
            return !!a && H$(a, !0);
          case 279:
            const c = n.exportClause;
            return !!c && (O_(c) || yt(c.elements, n7e));
          case 278:
            return n.expression && n.expression.kind === 80
              ? H$(Wr(n), !0)
              : !0;
        }
        return !1;
      }
      function vvt(n) {
        const a = jo(n, Fc);
        return a === void 0 || a.parent.kind !== 308 || !r1(a)
          ? !1
          : H$(Wr(a)) && a.moduleReference && !Ol(a.moduleReference);
      }
      function H$(n, a) {
        if (!n) return !1;
        const c = Wn(n.valueDeclaration),
          p = c && Wr(c);
        Tp(p);
        const m = Et(ud(n));
        return m === ne
          ? !a || !Ah(n)
          : !!(dp(n, a, !0) & 111551) && (Ib(O) || !y8(m));
      }
      function y8(n) {
        return Qge(n) || !!n.constEnumOnlyModule;
      }
      function r7e(n, a) {
        if ((C.assert(We), Dv(n))) {
          const c = Wr(n),
            p = c && Jr(c);
          if (p?.referenced) return !0;
          const m = Jr(c).aliasTarget;
          if (m && Gd(n) & 32 && dp(m) & 111551 && (Ib(O) || !y8(m))) return !0;
        }
        return a ? !!Jo(n, (c) => r7e(c, a)) : !1;
      }
      function i7e(n) {
        if (fm(n.body)) {
          if (ug(n) || Vh(n)) return !1;
          const a = Wr(n),
            c = AE(a);
          return c.length > 1 || (c.length === 1 && c[0].declaration !== n);
        }
        return !1;
      }
      function bvt(n) {
        const a = s7e(n);
        if (!a) return !1;
        const c = Ji(a);
        return pr(c) || qC(c);
      }
      function oB(n, a) {
        return (Tvt(n, a) || Svt(n)) && !bvt(n);
      }
      function Tvt(n, a) {
        return !ie || NW(n) || mf(n) || !n.initializer
          ? !1
          : di(n, 31)
            ? !!a && Ms(a)
            : !0;
      }
      function Svt(n) {
        return ie && NW(n) && (mf(n) || !n.initializer) && di(n, 31);
      }
      function o7e(n) {
        const a = jo(n, (p) => Zl(p) || yi(p));
        if (!a) return !1;
        let c;
        if (yi(a)) {
          if (a.type || (!Ir(a) && !b8(a))) return !1;
          const p = QN(a);
          if (!p || !ah(p)) return !1;
          c = Wr(p);
        } else c = Wr(a);
        return !c || !((c.flags & 16) | 3)
          ? !1
          : !!Hc(qp(c), (p) => p.flags & 111551 && WI(p.valueDeclaration));
      }
      function Evt(n) {
        const a = jo(n, Zl);
        if (!a) return ae;
        const c = Wr(a);
        return (c && bs(_r(c))) || ae;
      }
      function hR(n) {
        var a;
        const c = n.id || 0;
        return c < 0 || c >= E0.length
          ? 0
          : ((a = E0[c]) == null ? void 0 : a.flags) || 0;
      }
      function Dye(n, a) {
        return (Avt(n, a), !!(hR(n) & a));
      }
      function Avt(n, a) {
        if ((!O.noCheck && xM(Wn(n), O)) || Vr(n).calculatedFlags & a) return;
        switch (a) {
          case 16:
          case 32:
            return I(n);
          case 128:
          case 256:
          case 2097152:
            return v(n);
          case 512:
          case 8192:
          case 65536:
          case 262144:
            return U(n);
          case 536870912:
            return Q(n);
          case 4096:
          case 32768:
          case 16384:
            return Te(n);
          default:
            return C.assertNever(
              a,
              `Unhandled node check flag calculation: ${C.formatNodeCheckFlags(a)}`,
            );
        }
        function p(Tt, Dt) {
          const $t = Dt(Tt, Tt.parent);
          if ($t !== "skip") return $t || ex(Tt, Dt);
        }
        function m(Tt) {
          const Dt = Vr(Tt);
          if (Dt.calculatedFlags & a) return "skip";
          ((Dt.calculatedFlags |= 2097536), I(Tt));
        }
        function v(Tt) {
          p(Tt, m);
        }
        function I(Tt) {
          const Dt = Vr(Tt);
          ((Dt.calculatedFlags |= 48), Tt.kind === 108 && ZY(Tt));
        }
        function w(Tt) {
          const Dt = Vr(Tt);
          if (Dt.calculatedFlags & a) return "skip";
          ((Dt.calculatedFlags |= 336384), Q(Tt));
        }
        function U(Tt) {
          p(Tt, w);
        }
        function H(Tt) {
          return (
            P_(Tt) ||
            (Ud(Tt.parent) &&
              (Tt.parent.objectAssignmentInitializer ?? Tt.parent.name) === Tt)
          );
        }
        function Q(Tt) {
          const Dt = Vr(Tt);
          if (
            ((Dt.calculatedFlags |= 536870912),
            He(Tt) &&
              ((Dt.calculatedFlags |= 49152),
              H(Tt) && !(qr(Tt.parent) && Tt.parent.name === Tt)))
          ) {
            const $t = fu(Tt);
            $t && $t !== ne && e6e(Tt, $t);
          }
        }
        function Ie(Tt) {
          const Dt = Vr(Tt);
          if (Dt.calculatedFlags & a) return "skip";
          ((Dt.calculatedFlags |= 53248), Ze(Tt));
        }
        function Te(Tt) {
          const Dt = sh(L_(Tt) ? Tt.parent : Tt);
          p(Dt, Ie);
        }
        function Ze(Tt) {
          (Q(Tt), va(Tt) && th(Tt), eo(Tt) && bc(Tt.parent) && x$(Tt.parent));
        }
      }
      function BA(n) {
        return (W3e(n.parent), Vr(n).enumMemberValue ?? qc(void 0));
      }
      function a7e(n) {
        switch (n.kind) {
          case 307:
          case 212:
          case 213:
            return !0;
        }
        return !1;
      }
      function q$(n) {
        if (n.kind === 307) return BA(n).value;
        Vr(n).resolvedSymbol || Vl(n);
        const a = Vr(n).resolvedSymbol || (Ds(n) ? Gl(n, 111551, !0) : void 0);
        if (a && a.flags & 8) {
          const c = a.valueDeclaration;
          if (OT(c.parent)) return BA(c).value;
        }
      }
      function Cye(n) {
        return !!(n.flags & 524288) && na(n, 0).length > 0;
      }
      function Ivt(n, a) {
        var c;
        const p = jo(n, Mu);
        if (!p || (a && ((a = jo(a)), !a))) return 0;
        let m = !1;
        if (ku(p)) {
          const Q = Gl(Lu(p), 111551, !0, !0, a);
          m = !!((c = Q?.declarations) != null && c.every(Qy));
        }
        const v = Gl(p, 111551, !0, !0, a),
          I = v && v.flags & 2097152 ? ud(v) : v;
        m || (m = !!(v && Ah(v, 111551)));
        const w = Gl(p, 788968, !0, !0, a),
          U = w && w.flags & 2097152 ? ud(w) : w;
        if ((v || m || (m = !!(w && Ah(w, 788968))), I && I === U)) {
          const Q = Bhe(!1);
          if (Q && I === Q) return 9;
          const Ie = _r(I);
          if (Ie && Rh(Ie)) return m ? 10 : 1;
        }
        if (!U) return m ? 11 : 0;
        const H = qs(U);
        return pr(H)
          ? m
            ? 11
            : 0
          : H.flags & 3
            ? 11
            : kd(H, 245760)
              ? 2
              : kd(H, 528)
                ? 6
                : kd(H, 296)
                  ? 3
                  : kd(H, 2112)
                    ? 4
                    : kd(H, 402653316)
                      ? 5
                      : Ka(H)
                        ? 7
                        : kd(H, 12288)
                          ? 8
                          : Cye(H)
                            ? 10
                            : im(H)
                              ? 7
                              : 11;
      }
      function xvt(n, a, c, p, m) {
        const v = jo(n, i4);
        if (!v) return L.createToken(133);
        const I = Wr(v);
        return be.serializeTypeForDeclaration(v, I, a, c | 1024, p, m);
      }
      function Nye(n) {
        n = jo(n, W2);
        const a = n.kind === 179 ? 178 : 179,
          c = al(Wr(n), a),
          p = c && c.pos < n.pos ? c : n,
          m = c && c.pos < n.pos ? n : c,
          v = n.kind === 179 ? n : c,
          I = n.kind === 178 ? n : c;
        return {
          firstAccessor: p,
          secondAccessor: m,
          setAccessor: v,
          getAccessor: I,
        };
      }
      function Rvt(n, a, c, p, m) {
        const v = jo(n, Yo);
        return v
          ? be.serializeReturnTypeForSignature(v, a, c | 1024, p, m)
          : L.createToken(133);
      }
      function Dvt(n, a, c, p, m) {
        const v = jo(n, St);
        return v
          ? be.serializeTypeForExpression(v, a, c | 1024, p, m)
          : L.createToken(133);
      }
      function Cvt(n) {
        return lt.has(Cl(n));
      }
      function v8(n, a) {
        const c = Vr(n).resolvedSymbol;
        if (c) return c;
        let p = n;
        if (a) {
          const m = n.parent;
          rd(m) && n === m.name && (p = Pt(m));
        }
        return _t(p, n.escapedText, 3257279, void 0, !0);
      }
      function Nvt(n) {
        const a = Vr(n).resolvedSymbol;
        return a && a !== ne
          ? a
          : _t(n, n.escapedText, 3257279, void 0, !0, void 0);
      }
      function Mvt(n) {
        if (!pl(n)) {
          const a = jo(n, He);
          if (a) {
            const c = v8(a);
            if (c) return Et(c).valueDeclaration;
          }
        }
      }
      function Pvt(n) {
        if (!pl(n)) {
          const a = jo(n, He);
          if (a) {
            const c = v8(a);
            if (c)
              return Un(Et(c).declarations, (p) => {
                switch (p.kind) {
                  case 261:
                  case 170:
                  case 209:
                  case 173:
                  case 304:
                  case 305:
                  case 307:
                  case 211:
                  case 263:
                  case 219:
                  case 220:
                  case 264:
                  case 232:
                  case 267:
                  case 175:
                  case 178:
                  case 179:
                  case 268:
                    return !0;
                }
                return !1;
              });
          }
        }
      }
      function Lvt(n) {
        return nk(n) || (yi(n) && b8(n)) ? RE(_r(Wr(n))) : !1;
      }
      function kvt(n, a, c) {
        const p =
          n.flags & 1056
            ? be.symbolToExpression(n.symbol, 111551, a, void 0, void 0, c)
            : n === ft
              ? L.createTrue()
              : n === tr && L.createFalse();
        if (p) return p;
        const m = n.value;
        return typeof m == "object"
          ? L.createBigIntLiteral(m)
          : typeof m == "string"
            ? L.createStringLiteral(m)
            : m < 0
              ? L.createPrefixUnaryExpression(41, L.createNumericLiteral(-m))
              : L.createNumericLiteral(m);
      }
      function wvt(n, a) {
        const c = _r(Wr(n));
        return kvt(c, n, a);
      }
      function Mye(n) {
        return n ? (qm(n), Wn(n).localJsxFactory || xy) : xy;
      }
      function Pye(n) {
        if (n) {
          const a = Wn(n);
          if (a) {
            if (a.localJsxFragmentFactory) return a.localJsxFragmentFactory;
            const c = a.pragmas.get("jsxfrag"),
              p = Mo(c) ? c[0] : c;
            if (p)
              return (
                (a.localJsxFragmentFactory = nx(p.arguments.factory, G)),
                a.localJsxFragmentFactory
              );
          }
        }
        if (O.jsxFragmentFactory) return nx(O.jsxFragmentFactory, G);
      }
      function s7e(n) {
        const a = xc(n);
        if (a) return a;
        if (n.kind === 170 && n.parent.kind === 179) {
          const c = Nye(n.parent).getAccessor;
          if (c) return kp(c);
        }
      }
      function Ovt() {
        return {
          getReferencedExportContainer: mvt,
          getReferencedImportDeclaration: hvt,
          getReferencedDeclarationWithCollidingName: gvt,
          isDeclarationWithCollidingName: yvt,
          isValueAliasDeclaration: (a) => {
            const c = jo(a);
            return c && We ? n7e(c) : !0;
          },
          hasGlobalName: Cvt,
          isReferencedAliasDeclaration: (a, c) => {
            const p = jo(a);
            return p && We ? r7e(p, c) : !0;
          },
          hasNodeCheckFlag: (a, c) => {
            const p = jo(a);
            return p ? Dye(p, c) : !1;
          },
          isTopLevelValueImportEqualsWithEntityName: vvt,
          isDeclarationVisible: X_,
          isImplementationOfOverload: i7e,
          requiresAddingImplicitUndefined: oB,
          isExpandoFunctionDeclaration: o7e,
          getPropertiesOfContainerFunction: Evt,
          createTypeOfDeclaration: xvt,
          createReturnTypeOfSignatureDeclaration: Rvt,
          createTypeOfExpression: Dvt,
          createLiteralConstValue: wvt,
          isSymbolAccessible: oT,
          isEntityNameVisible: Xx,
          getConstantValue: (a) => {
            const c = jo(a, a7e);
            return c ? q$(c) : void 0;
          },
          getEnumMemberValue: (a) => {
            const c = jo(a, py);
            return c ? BA(c) : void 0;
          },
          collectLinkedAliases: wC,
          markLinkedReferences: (a) => {
            const c = jo(a);
            return c && cR(c, 0);
          },
          getReferencedValueDeclaration: Mvt,
          getReferencedValueDeclarations: Pvt,
          getTypeReferenceSerializationKind: Ivt,
          isOptionalParameter: NW,
          isArgumentsLocalBinding: pvt,
          getExternalModuleFileFromDeclaration: (a) => {
            const c = jo(a, Gte);
            return c && Lye(c);
          },
          isLiteralConstDeclaration: Lvt,
          isLateBound: (a) => {
            const c = jo(a, rd),
              p = c && Wr(c);
            return !!(p && Wl(p) & 4096);
          },
          getJsxFactoryEntity: Mye,
          getJsxFragmentFactoryEntity: Pye,
          isBindingCapturedByNode: (a, c) => {
            const p = jo(a),
              m = jo(c);
            return !!p && !!m && (yi(m) || Ha(m)) && Hpt(p, m);
          },
          getDeclarationStatementsForSourceFile: (a, c, p, m) => {
            const v = jo(a);
            C.assert(
              v && v.kind === 308,
              "Non-sourcefile node passed into getDeclarationsForSourceFile",
            );
            const I = Wr(a);
            return I
              ? (Tp(I),
                I.exports
                  ? be.symbolTableToDeclarationStatements(I.exports, a, c, p, m)
                  : [])
              : a.locals
                ? be.symbolTableToDeclarationStatements(a.locals, a, c, p, m)
                : [];
          },
          isImportRequiredByAugmentation: n,
          isDefinitelyReferenceToGlobalSymbolObject: q_,
          createLateBoundIndexSignatures: (a, c, p, m, v) => {
            const I = a.symbol,
              w = Xd(_r(I)),
              U = oY(I),
              H = U && sY(U, Co($_(I).values()));
            let Q;
            for (const Te of [w, H])
              if (et(Te)) {
                Q || (Q = []);
                for (const Ze of Te) {
                  if (Ze.declaration || Ze === So) continue;
                  if (
                    Ze.components &&
                    Vn(Ze.components, ($t) => {
                      var Tn;
                      return !!(
                        $t.name &&
                        va($t.name) &&
                        Ds($t.name.expression) &&
                        c &&
                        ((Tn = Xx($t.name.expression, c, !1)) == null
                          ? void 0
                          : Tn.accessibility) === 0
                      );
                    })
                  ) {
                    const $t = Un(Ze.components, (Tn) => !WC(Tn));
                    Q.push(
                      ...Vt($t, (Tn) => {
                        Ie(Tn.name.expression);
                        const nr = Te === w ? [L.createModifier(126)] : void 0;
                        return L.createPropertyDeclaration(
                          Bn(
                            nr,
                            Ze.isReadonly ? L.createModifier(148) : void 0,
                          ),
                          Tn.name,
                          (Su(Tn) ||
                            Po(Tn) ||
                            Gm(Tn) ||
                            Nl(Tn) ||
                            ug(Tn) ||
                            Vh(Tn)) &&
                            Tn.questionToken
                            ? L.createToken(58)
                            : void 0,
                          be.typeToTypeNode(_r(Tn.symbol), c, p, m, v),
                          void 0,
                        );
                      }),
                    );
                    continue;
                  }
                  const Tt = be.indexInfoToIndexSignatureDeclaration(
                    Ze,
                    c,
                    p,
                    m,
                    v,
                  );
                  (Tt &&
                    Te === w &&
                    (
                      Tt.modifiers || (Tt.modifiers = L.createNodeArray())
                    ).unshift(L.createModifier(126)),
                    Tt && Q.push(Tt));
                }
              }
            return Q;
            function Ie(Te) {
              if (!v.trackSymbol) return;
              const Ze = Lu(Te),
                Tt = _t(Ze, Ze.escapedText, 1160127, void 0, !0);
              Tt && v.trackSymbol(Tt, c, 111551);
            }
          },
          symbolToDeclarations: (a, c, p, m, v, I) =>
            be.symbolToDeclarations(a, c, p, m, v, I),
        };
        function n(a) {
          const c = Wn(a);
          if (!c.symbol) return !1;
          const p = Lye(a);
          if (!p || p === c) return !1;
          const m = __(c.symbol);
          for (const v of Co(m.values()))
            if (v.mergeId) {
              const I = os(v);
              if (I.declarations) {
                for (const w of I.declarations) if (Wn(w) === p) return !0;
              }
            }
          return !1;
        }
      }
      function Lye(n) {
        const a = n.kind === 268 ? ni(n.name, ka) : yI(n),
          c = bp(a, a, void 0);
        if (c) return al(c, 308);
      }
      function Wvt() {
        for (const a of e.getSourceFiles()) nae(a, O);
        Pl = new Map();
        let n;
        for (const a of e.getSourceFiles())
          if (!a.redirectInfo) {
            if (!Pp(a)) {
              const c = a.locals.get("globalThis");
              if (c?.declarations)
                for (const p of c.declarations)
                  ns.add(
                    Ar(
                      p,
                      f.Declaration_name_conflicts_with_built_in_global_identifier_0,
                      "globalThis",
                    ),
                  );
              m_(lt, a.locals);
            }
            (a.jsGlobalAugmentations && m_(lt, a.jsGlobalAugmentations),
              a.patternAmbientModules &&
                a.patternAmbientModules.length &&
                (op = so(op, a.patternAmbientModules)),
              a.moduleAugmentations.length &&
                (n || (n = [])).push(a.moduleAugmentations),
              a.symbol &&
                a.symbol.globalExports &&
                a.symbol.globalExports.forEach((p, m) => {
                  lt.has(m) || lt.set(m, p);
                }));
          }
        if (n) for (const a of n) for (const c of a) M_(c.parent) && pE(c);
        if (
          (M0(),
          (Jr(ce).type = B),
          (Jr(_e).type = Jl("IArguments", 0, !0)),
          (Jr(ne).type = nt),
          (Jr(Re).type = hc(16, Re)),
          (es = Jl("Array", 1, !0)),
          (Jt = Jl("Object", 0, !0)),
          (er = Jl("Function", 0, !0)),
          (go = (pe && Jl("CallableFunction", 0, !0)) || er),
          (Za = (pe && Jl("NewableFunction", 0, !0)) || er),
          (Mc = Jl("String", 0, !0)),
          (tl = Jl("Number", 0, !0)),
          (Ll = Jl("Boolean", 0, !0)),
          (ql = Jl("RegExp", 0, !0)),
          (bd = Yd(Ue)),
          (ld = Yd(Rt)),
          ld === Ra && (ld = bl(void 0, k, ae, ae, ae)),
          (Va = qWe("ReadonlyArray", 1) || es),
          (jp = Va ? AL(Va, [Ue]) : bd),
          (rf = qWe("ThisType", 1)),
          n)
        )
          for (const a of n) for (const c of a) M_(c.parent) || pE(c);
        (Pl.forEach(
          ({ firstFile: a, secondFile: c, conflictingSymbols: p }) => {
            if (p.size < 8)
              p.forEach(
                (
                  {
                    isBlockScoped: m,
                    firstFileLocations: v,
                    secondFileLocations: I,
                  },
                  w,
                ) => {
                  const U = m
                    ? f.Cannot_redeclare_block_scoped_variable_0
                    : f.Duplicate_identifier_0;
                  for (const H of v) N0(H, U, w, I);
                  for (const H of I) N0(H, U, w, v);
                },
              );
            else {
              const m = Co(p.keys()).join(", ");
              (ns.add(
                pa(
                  Ar(
                    a,
                    f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,
                    m,
                  ),
                  Ar(c, f.Conflicts_are_in_this_file),
                ),
              ),
                ns.add(
                  pa(
                    Ar(
                      c,
                      f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,
                      m,
                    ),
                    Ar(a, f.Conflicts_are_in_this_file),
                  ),
                ));
            }
          },
        ),
          (Pl = void 0));
      }
      function $c(n, a) {
        if (O.importHelpers) {
          const c = Wn(n);
          if (HR(c, O) && !(n.flags & 33554432)) {
            const p = zvt(c, n);
            if (p !== ne) {
              const m = Jr(p);
              if (
                (m.requestedExternalEmitHelpers ??
                  (m.requestedExternalEmitHelpers = 0),
                (m.requestedExternalEmitHelpers & a) !== a)
              ) {
                const v = a & ~m.requestedExternalEmitHelpers;
                for (let I = 1; I <= 16777216; I <<= 1)
                  if (v & I)
                    for (const w of Fvt(I)) {
                      const U = mc(Sd(__(p), Cl(w), 111551));
                      U
                        ? I & 524288
                          ? yt(AE(U), (H) => Ap(H) > 3) ||
                            Qe(
                              n,
                              f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,
                              hb,
                              w,
                              4,
                            )
                          : I & 1048576
                            ? yt(AE(U), (H) => Ap(H) > 4) ||
                              Qe(
                                n,
                                f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,
                                hb,
                                w,
                                5,
                              )
                            : I & 1024 &&
                              (yt(AE(U), (H) => Ap(H) > 2) ||
                                Qe(
                                  n,
                                  f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,
                                  hb,
                                  w,
                                  3,
                                ))
                        : Qe(
                            n,
                            f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,
                            hb,
                            w,
                          );
                    }
              }
              m.requestedExternalEmitHelpers |= a;
            }
          }
        }
      }
      function Fvt(n) {
        switch (n) {
          case 1:
            return ["__extends"];
          case 2:
            return ["__assign"];
          case 4:
            return ["__rest"];
          case 8:
            return J ? ["__decorate"] : ["__esDecorate", "__runInitializers"];
          case 16:
            return ["__metadata"];
          case 32:
            return ["__param"];
          case 64:
            return ["__awaiter"];
          case 128:
            return ["__generator"];
          case 256:
            return ["__values"];
          case 512:
            return ["__read"];
          case 1024:
            return ["__spreadArray"];
          case 2048:
            return ["__await"];
          case 4096:
            return ["__asyncGenerator"];
          case 8192:
            return ["__asyncDelegator"];
          case 16384:
            return ["__asyncValues"];
          case 32768:
            return ["__exportStar"];
          case 65536:
            return ["__importStar"];
          case 131072:
            return ["__importDefault"];
          case 262144:
            return ["__makeTemplateObject"];
          case 524288:
            return ["__classPrivateFieldGet"];
          case 1048576:
            return ["__classPrivateFieldSet"];
          case 2097152:
            return ["__classPrivateFieldIn"];
          case 4194304:
            return ["__setFunctionName"];
          case 8388608:
            return ["__propKey"];
          case 16777216:
            return ["__addDisposableResource", "__disposeResources"];
          case 33554432:
            return ["__rewriteRelativeImportExtension"];
          default:
            return C.fail("Unrecognized helper");
        }
      }
      function zvt(n, a) {
        const c = Vr(n);
        return (
          c.externalHelpersModule ||
            (c.externalHelpersModule =
              aA(
                Lbt(n),
                hb,
                f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,
                a,
              ) || ne),
          c.externalHelpersModule
        );
      }
      function Kg(n) {
        var a;
        const c = Vvt(n) || Bvt(n);
        if (c !== void 0) return c;
        if (to(n) && Sb(n))
          return fd(
            n,
            f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters,
          );
        const p = ac(n) ? n.declarationList.flags & 7 : 0;
        let m,
          v,
          I,
          w,
          U,
          H = 0,
          Q = !1,
          Ie = !1;
        for (const Te of n.modifiers)
          if (Wc(Te)) {
            if (dk(J, n, n.parent, n.parent.parent)) {
              if (J && (n.kind === 178 || n.kind === 179)) {
                const Ze = Nye(n);
                if (pf(Ze.firstAccessor) && n === Ze.secondAccessor)
                  return fd(
                    n,
                    f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name,
                  );
              }
            } else
              return n.kind === 175 && !fm(n.body)
                ? fd(
                    n,
                    f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload,
                  )
                : fd(n, f.Decorators_are_not_valid_here);
            if (H & -34849) return Cn(Te, f.Decorators_are_not_valid_here);
            if (Ie && H & 98303) {
              C.assertIsDefined(U);
              const Ze = Wn(Te);
              return vT(Ze)
                ? !1
                : (pa(
                    Qe(
                      Te,
                      f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export,
                    ),
                    Ar(U, f.Decorator_used_before_export_here),
                  ),
                  !0);
            }
            ((H |= 32768),
              H & 98303 ? H & 32 && (Q = !0) : (Ie = !0),
              U ?? (U = Te));
          } else {
            if (Te.kind !== 148) {
              if (n.kind === 172 || n.kind === 174)
                return Cn(
                  Te,
                  f._0_modifier_cannot_appear_on_a_type_member,
                  _a(Te.kind),
                );
              if (n.kind === 182 && (Te.kind !== 126 || !ui(n.parent)))
                return Cn(
                  Te,
                  f._0_modifier_cannot_appear_on_an_index_signature,
                  _a(Te.kind),
                );
            }
            if (
              Te.kind !== 103 &&
              Te.kind !== 147 &&
              Te.kind !== 87 &&
              n.kind === 169
            )
              return Cn(
                Te,
                f._0_modifier_cannot_appear_on_a_type_parameter,
                _a(Te.kind),
              );
            switch (Te.kind) {
              case 87: {
                if (n.kind !== 267 && n.kind !== 169)
                  return Cn(
                    n,
                    f.A_class_member_cannot_have_the_0_keyword,
                    _a(87),
                  );
                const Dt = (bm(n.parent) && GT(n.parent)) || n.parent;
                if (
                  n.kind === 169 &&
                  !(
                    Ms(Dt) ||
                    ui(Dt) ||
                    w_(Dt) ||
                    vD(Dt) ||
                    UI(Dt) ||
                    GM(Dt) ||
                    Gm(Dt)
                  )
                )
                  return Cn(
                    Te,
                    f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,
                    _a(Te.kind),
                  );
                break;
              }
              case 164:
                if (H & 16)
                  return Cn(Te, f._0_modifier_already_seen, "override");
                if (H & 128)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_with_1_modifier,
                    "override",
                    "declare",
                  );
                if (H & 8)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "override",
                    "readonly",
                  );
                if (H & 512)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "override",
                    "accessor",
                  );
                if (H & 1024)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "override",
                    "async",
                  );
                ((H |= 16), (w = Te));
                break;
              case 125:
              case 124:
              case 123:
                const Ze = V0(II(Te.kind));
                if (H & 7) return Cn(Te, f.Accessibility_modifier_already_seen);
                if (H & 16)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    Ze,
                    "override",
                  );
                if (H & 256)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    Ze,
                    "static",
                  );
                if (H & 512)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    Ze,
                    "accessor",
                  );
                if (H & 8)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    Ze,
                    "readonly",
                  );
                if (H & 1024)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    Ze,
                    "async",
                  );
                if (n.parent.kind === 269 || n.parent.kind === 308)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_a_module_or_namespace_element,
                    Ze,
                  );
                if (H & 64)
                  return Te.kind === 123
                    ? Cn(
                        Te,
                        f._0_modifier_cannot_be_used_with_1_modifier,
                        Ze,
                        "abstract",
                      )
                    : Cn(
                        Te,
                        f._0_modifier_must_precede_1_modifier,
                        Ze,
                        "abstract",
                      );
                if (nu(n))
                  return Cn(
                    Te,
                    f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier,
                  );
                H |= II(Te.kind);
                break;
              case 126:
                if (H & 256)
                  return Cn(Te, f._0_modifier_already_seen, "static");
                if (H & 8)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "static",
                    "readonly",
                  );
                if (H & 1024)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "static",
                    "async",
                  );
                if (H & 512)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "static",
                    "accessor",
                  );
                if (n.parent.kind === 269 || n.parent.kind === 308)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_a_module_or_namespace_element,
                    "static",
                  );
                if (n.kind === 170)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_a_parameter,
                    "static",
                  );
                if (H & 64)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_with_1_modifier,
                    "static",
                    "abstract",
                  );
                if (H & 16)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "static",
                    "override",
                  );
                ((H |= 256), (m = Te));
                break;
              case 129:
                if (H & 512)
                  return Cn(Te, f._0_modifier_already_seen, "accessor");
                if (H & 8)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_with_1_modifier,
                    "accessor",
                    "readonly",
                  );
                if (H & 128)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_with_1_modifier,
                    "accessor",
                    "declare",
                  );
                if (n.kind !== 173)
                  return Cn(
                    Te,
                    f.accessor_modifier_can_only_appear_on_a_property_declaration,
                  );
                H |= 512;
                break;
              case 148:
                if (H & 8)
                  return Cn(Te, f._0_modifier_already_seen, "readonly");
                if (
                  n.kind !== 173 &&
                  n.kind !== 172 &&
                  n.kind !== 182 &&
                  n.kind !== 170
                )
                  return Cn(
                    Te,
                    f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature,
                  );
                if (H & 512)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_with_1_modifier,
                    "readonly",
                    "accessor",
                  );
                H |= 8;
                break;
              case 95:
                if (
                  O.verbatimModuleSyntax &&
                  !(n.flags & 33554432) &&
                  n.kind !== 266 &&
                  n.kind !== 265 &&
                  n.kind !== 268 &&
                  n.parent.kind === 308 &&
                  e.getEmitModuleFormatOfFile(Wn(n)) === 1
                )
                  return Cn(
                    Te,
                    f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled,
                  );
                if (H & 32) return Cn(Te, f._0_modifier_already_seen, "export");
                if (H & 128)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "export",
                    "declare",
                  );
                if (H & 64)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "export",
                    "abstract",
                  );
                if (H & 1024)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "export",
                    "async",
                  );
                if (ui(n.parent))
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_class_elements_of_this_kind,
                    "export",
                  );
                if (n.kind === 170)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_a_parameter,
                    "export",
                  );
                if (p === 4)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_a_using_declaration,
                    "export",
                  );
                if (p === 6)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_an_await_using_declaration,
                    "export",
                  );
                H |= 32;
                break;
              case 90:
                const Tt = n.parent.kind === 308 ? n.parent : n.parent.parent;
                if (Tt.kind === 268 && !yu(Tt))
                  return Cn(
                    Te,
                    f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module,
                  );
                if (p === 4)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_a_using_declaration,
                    "default",
                  );
                if (p === 6)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_an_await_using_declaration,
                    "default",
                  );
                if (H & 32) {
                  if (Q) return Cn(U, f.Decorators_are_not_valid_here);
                } else
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "export",
                    "default",
                  );
                H |= 2048;
                break;
              case 138:
                if (H & 128)
                  return Cn(Te, f._0_modifier_already_seen, "declare");
                if (H & 1024)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_in_an_ambient_context,
                    "async",
                  );
                if (H & 16)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_in_an_ambient_context,
                    "override",
                  );
                if (ui(n.parent) && !Po(n))
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_class_elements_of_this_kind,
                    "declare",
                  );
                if (n.kind === 170)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_a_parameter,
                    "declare",
                  );
                if (p === 4)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_a_using_declaration,
                    "declare",
                  );
                if (p === 6)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_an_await_using_declaration,
                    "declare",
                  );
                if (n.parent.flags & 33554432 && n.parent.kind === 269)
                  return Cn(
                    Te,
                    f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context,
                  );
                if (nu(n))
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_with_a_private_identifier,
                    "declare",
                  );
                if (H & 512)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_with_1_modifier,
                    "declare",
                    "accessor",
                  );
                ((H |= 128), (v = Te));
                break;
              case 128:
                if (H & 64)
                  return Cn(Te, f._0_modifier_already_seen, "abstract");
                if (n.kind !== 264 && n.kind !== 186) {
                  if (
                    n.kind !== 175 &&
                    n.kind !== 173 &&
                    n.kind !== 178 &&
                    n.kind !== 179
                  )
                    return Cn(
                      Te,
                      f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration,
                    );
                  if (!(n.parent.kind === 264 && di(n.parent, 64))) {
                    const Dt =
                      n.kind === 173
                        ? f.Abstract_properties_can_only_appear_within_an_abstract_class
                        : f.Abstract_methods_can_only_appear_within_an_abstract_class;
                    return Cn(Te, Dt);
                  }
                  if (H & 256)
                    return Cn(
                      Te,
                      f._0_modifier_cannot_be_used_with_1_modifier,
                      "static",
                      "abstract",
                    );
                  if (H & 2)
                    return Cn(
                      Te,
                      f._0_modifier_cannot_be_used_with_1_modifier,
                      "private",
                      "abstract",
                    );
                  if (H & 1024 && I)
                    return Cn(
                      I,
                      f._0_modifier_cannot_be_used_with_1_modifier,
                      "async",
                      "abstract",
                    );
                  if (H & 16)
                    return Cn(
                      Te,
                      f._0_modifier_must_precede_1_modifier,
                      "abstract",
                      "override",
                    );
                  if (H & 512)
                    return Cn(
                      Te,
                      f._0_modifier_must_precede_1_modifier,
                      "abstract",
                      "accessor",
                    );
                }
                if (nd(n) && n.name.kind === 81)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_with_a_private_identifier,
                    "abstract",
                  );
                H |= 64;
                break;
              case 134:
                if (H & 1024)
                  return Cn(Te, f._0_modifier_already_seen, "async");
                if (H & 128 || n.parent.flags & 33554432)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_in_an_ambient_context,
                    "async",
                  );
                if (n.kind === 170)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_appear_on_a_parameter,
                    "async",
                  );
                if (H & 64)
                  return Cn(
                    Te,
                    f._0_modifier_cannot_be_used_with_1_modifier,
                    "async",
                    "abstract",
                  );
                ((H |= 1024), (I = Te));
                break;
              case 103:
              case 147: {
                const Dt = Te.kind === 103 ? 8192 : 16384,
                  $t = Te.kind === 103 ? "in" : "out",
                  Tn =
                    (bm(n.parent) &&
                      (GT(n.parent) ||
                        hn(
                          (a = tD(n.parent)) == null ? void 0 : a.tags,
                          R1,
                        ))) ||
                    n.parent;
                if (
                  n.kind !== 169 ||
                  (Tn && !(gd(Tn) || ui(Tn) || vm(Tn) || R1(Tn)))
                )
                  return Cn(
                    Te,
                    f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,
                    $t,
                  );
                if (H & Dt) return Cn(Te, f._0_modifier_already_seen, $t);
                if (Dt & 8192 && H & 16384)
                  return Cn(
                    Te,
                    f._0_modifier_must_precede_1_modifier,
                    "in",
                    "out",
                  );
                H |= Dt;
                break;
              }
            }
          }
        return n.kind === 177
          ? H & 256
            ? Cn(
                m,
                f._0_modifier_cannot_appear_on_a_constructor_declaration,
                "static",
              )
            : H & 16
              ? Cn(
                  w,
                  f._0_modifier_cannot_appear_on_a_constructor_declaration,
                  "override",
                )
              : H & 1024
                ? Cn(
                    I,
                    f._0_modifier_cannot_appear_on_a_constructor_declaration,
                    "async",
                  )
                : !1
          : (n.kind === 273 || n.kind === 272) && H & 128
            ? Cn(
                v,
                f.A_0_modifier_cannot_be_used_with_an_import_declaration,
                "declare",
              )
            : n.kind === 170 && H & 31 && Qo(n.name)
              ? Cn(
                  n,
                  f.A_parameter_property_may_not_be_declared_using_a_binding_pattern,
                )
              : n.kind === 170 && H & 31 && n.dotDotDotToken
                ? Cn(
                    n,
                    f.A_parameter_property_cannot_be_declared_using_a_rest_parameter,
                  )
                : H & 1024
                  ? Uvt(n, I)
                  : !1;
      }
      function Bvt(n) {
        if (!n.modifiers) return !1;
        const a = Gvt(n);
        return a && fd(a, f.Modifiers_cannot_appear_here);
      }
      function J$(n, a) {
        const c = hn(n.modifiers, Aa);
        return c && c.kind !== a ? c : void 0;
      }
      function Gvt(n) {
        switch (n.kind) {
          case 178:
          case 179:
          case 177:
          case 173:
          case 172:
          case 175:
          case 174:
          case 182:
          case 268:
          case 273:
          case 272:
          case 279:
          case 278:
          case 219:
          case 220:
          case 170:
          case 169:
            return;
          case 176:
          case 304:
          case 305:
          case 271:
          case 283:
            return hn(n.modifiers, Aa);
          default:
            if (n.parent.kind === 269 || n.parent.kind === 308) return;
            switch (n.kind) {
              case 263:
                return J$(n, 134);
              case 264:
              case 186:
                return J$(n, 128);
              case 232:
              case 265:
              case 266:
                return hn(n.modifiers, Aa);
              case 244:
                return n.declarationList.flags & 4
                  ? J$(n, 135)
                  : hn(n.modifiers, Aa);
              case 267:
                return J$(n, 87);
              default:
                C.assertNever(n);
            }
        }
      }
      function Vvt(n) {
        const a = jvt(n);
        return a && fd(a, f.Decorators_are_not_valid_here);
      }
      function jvt(n) {
        return jj(n) ? hn(n.modifiers, Wc) : void 0;
      }
      function Uvt(n, a) {
        switch (n.kind) {
          case 175:
          case 263:
          case 219:
          case 220:
            return !1;
        }
        return Cn(a, f._0_modifier_cannot_be_used_here, "async");
      }
      function _R(n, a = f.Trailing_comma_not_allowed) {
        return n && n.hasTrailingComma ? rS(n[0], n.end - 1, 1, a) : !1;
      }
      function l7e(n, a) {
        if (n && n.length === 0) {
          const c = n.pos - 1,
            p = La(a.text, n.end) + 1;
          return rS(a, c, p - c, f.Type_parameter_list_cannot_be_empty);
        }
        return !1;
      }
      function Hvt(n) {
        let a = !1;
        const c = n.length;
        for (let p = 0; p < c; p++) {
          const m = n[p];
          if (m.dotDotDotToken) {
            if (p !== c - 1)
              return Cn(
                m.dotDotDotToken,
                f.A_rest_parameter_must_be_last_in_a_parameter_list,
              );
            if (
              (m.flags & 33554432 ||
                _R(
                  n,
                  f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma,
                ),
              m.questionToken)
            )
              return Cn(m.questionToken, f.A_rest_parameter_cannot_be_optional);
            if (m.initializer)
              return Cn(m.name, f.A_rest_parameter_cannot_have_an_initializer);
          } else if (nY(m)) {
            if (((a = !0), m.questionToken && m.initializer))
              return Cn(
                m.name,
                f.Parameter_cannot_have_question_mark_and_initializer,
              );
          } else if (a && !m.initializer)
            return Cn(
              m.name,
              f.A_required_parameter_cannot_follow_an_optional_parameter,
            );
        }
      }
      function qvt(n) {
        return Un(n, (a) => !!a.initializer || Qo(a.name) || C_(a));
      }
      function Jvt(n) {
        if (G >= 3) {
          const a = n.body && ea(n.body) && zj(n.body.statements);
          if (a) {
            const c = qvt(n.parameters);
            if (et(c)) {
              Ye(c, (m) => {
                pa(
                  Qe(
                    m,
                    f.This_parameter_is_not_allowed_with_use_strict_directive,
                  ),
                  Ar(a, f.use_strict_directive_used_here),
                );
              });
              const p = c.map((m, v) =>
                v === 0
                  ? Ar(m, f.Non_simple_parameter_declared_here)
                  : Ar(m, f.and_here),
              );
              return (
                pa(
                  Qe(
                    a,
                    f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list,
                  ),
                  ...p,
                ),
                !0
              );
            }
          }
        }
        return !1;
      }
      function K$(n) {
        const a = Wn(n);
        return (
          Kg(n) ||
          l7e(n.typeParameters, a) ||
          Hvt(n.parameters) ||
          Xvt(n, a) ||
          (Ms(n) && Jvt(n))
        );
      }
      function Kvt(n) {
        const a = Wn(n);
        return ebt(n) || l7e(n.typeParameters, a);
      }
      function Xvt(n, a) {
        if (!Xs(n)) return !1;
        n.typeParameters &&
          !(
            et(n.typeParameters) > 1 ||
            n.typeParameters.hasTrailingComma ||
            n.typeParameters[0].constraint
          ) &&
          a &&
          $l(a.fileName, [".mts", ".cts"]) &&
          Cn(
            n.typeParameters[0],
            f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint,
          );
        const { equalsGreaterThanToken: c } = n,
          p = ca(a, c.pos).line,
          m = ca(a, c.end).line;
        return p !== m && Cn(c, f.Line_terminator_not_permitted_before_arrow);
      }
      function Yvt(n) {
        const a = n.parameters[0];
        if (n.parameters.length !== 1)
          return Cn(
            a ? a.name : n,
            f.An_index_signature_must_have_exactly_one_parameter,
          );
        if (
          (_R(n.parameters, f.An_index_signature_cannot_have_a_trailing_comma),
          a.dotDotDotToken)
        )
          return Cn(
            a.dotDotDotToken,
            f.An_index_signature_cannot_have_a_rest_parameter,
          );
        if (cV(a))
          return Cn(
            a.name,
            f.An_index_signature_parameter_cannot_have_an_accessibility_modifier,
          );
        if (a.questionToken)
          return Cn(
            a.questionToken,
            f.An_index_signature_parameter_cannot_have_a_question_mark,
          );
        if (a.initializer)
          return Cn(
            a.name,
            f.An_index_signature_parameter_cannot_have_an_initializer,
          );
        if (!a.type)
          return Cn(
            a.name,
            f.An_index_signature_parameter_must_have_a_type_annotation,
          );
        const c = Ji(a.type);
        return am(c, (p) => !!(p.flags & 8576)) || X0(c)
          ? Cn(
              a.name,
              f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead,
            )
          : Ep(c, lY)
            ? n.type
              ? !1
              : Cn(n, f.An_index_signature_must_have_a_type_annotation)
            : Cn(
                a.name,
                f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type,
              );
      }
      function $vt(n) {
        return Kg(n) || Yvt(n);
      }
      function Qvt(n, a) {
        if (a && a.length === 0) {
          const c = Wn(n),
            p = a.pos - 1,
            m = La(c.text, a.end) + 1;
          return rS(c, p, m - p, f.Type_argument_list_cannot_be_empty);
        }
        return !1;
      }
      function aB(n, a) {
        return _R(a) || Qvt(n, a);
      }
      function Zvt(n) {
        return n.questionDotToken || n.flags & 64
          ? Cn(
              n.template,
              f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain,
            )
          : !1;
      }
      function c7e(n) {
        const a = n.types;
        if (_R(a)) return !0;
        if (a && a.length === 0) {
          const c = _a(n.token);
          return rS(n, a.pos, 0, f._0_list_cannot_be_empty, c);
        }
        return yt(a, d7e);
      }
      function d7e(n) {
        return dy(n) && BM(n.expression) && n.typeArguments
          ? Cn(
              n,
              f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments,
            )
          : aB(n, n.typeArguments);
      }
      function ebt(n) {
        let a = !1,
          c = !1;
        if (!Kg(n) && n.heritageClauses)
          for (const p of n.heritageClauses) {
            if (p.token === 96) {
              if (a) return fd(p, f.extends_clause_already_seen);
              if (c)
                return fd(p, f.extends_clause_must_precede_implements_clause);
              if (p.types.length > 1)
                return fd(p.types[1], f.Classes_can_only_extend_a_single_class);
              a = !0;
            } else {
              if ((C.assert(p.token === 119), c))
                return fd(p, f.implements_clause_already_seen);
              c = !0;
            }
            c7e(p);
          }
      }
      function tbt(n) {
        let a = !1;
        if (n.heritageClauses)
          for (const c of n.heritageClauses) {
            if (c.token === 96) {
              if (a) return fd(c, f.extends_clause_already_seen);
              a = !0;
            } else
              return (
                C.assert(c.token === 119),
                fd(c, f.Interface_declaration_cannot_have_implements_clause)
              );
            c7e(c);
          }
        return !1;
      }
      function X$(n) {
        if (n.kind !== 168) return !1;
        const a = n;
        return a.expression.kind === 227 &&
          a.expression.operatorToken.kind === 28
          ? Cn(
              a.expression,
              f.A_comma_expression_is_not_allowed_in_a_computed_property_name,
            )
          : !1;
      }
      function kye(n) {
        if (n.asteriskToken) {
          if (
            (C.assert(n.kind === 263 || n.kind === 219 || n.kind === 175),
            n.flags & 33554432)
          )
            return Cn(
              n.asteriskToken,
              f.Generators_are_not_allowed_in_an_ambient_context,
            );
          if (!n.body)
            return Cn(
              n.asteriskToken,
              f.An_overload_signature_cannot_be_declared_as_a_generator,
            );
        }
      }
      function wye(n, a) {
        return !!n && Cn(n, a);
      }
      function u7e(n, a) {
        return !!n && Cn(n, a);
      }
      function nbt(n, a) {
        const c = new Map();
        for (const p of n.properties) {
          if (p.kind === 306) {
            if (a) {
              const I = us(p.expression);
              if (Cd(I) || Wa(I))
                return Cn(
                  p.expression,
                  f.A_rest_element_cannot_contain_a_binding_pattern,
                );
            }
            continue;
          }
          const m = p.name;
          if (
            (m.kind === 168 && X$(m),
            p.kind === 305 &&
              !a &&
              p.objectAssignmentInitializer &&
              Cn(
                p.equalsToken,
                f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern,
              ),
            m.kind === 81 &&
              Cn(m, f.Private_identifiers_are_not_allowed_outside_class_bodies),
            Tm(p) && p.modifiers)
          )
            for (const I of p.modifiers)
              Aa(I) &&
                (I.kind !== 134 || p.kind !== 175) &&
                Cn(I, f._0_modifier_cannot_be_used_here, Al(I));
          else if (Xie(p) && p.modifiers)
            for (const I of p.modifiers)
              Aa(I) && Cn(I, f._0_modifier_cannot_be_used_here, Al(I));
          let v;
          switch (p.kind) {
            case 305:
            case 304:
              (u7e(
                p.exclamationToken,
                f.A_definite_assignment_assertion_is_not_permitted_in_this_context,
              ),
                wye(
                  p.questionToken,
                  f.An_object_member_cannot_be_declared_optional,
                ),
                m.kind === 9 && v7e(m),
                m.kind === 10 &&
                  Pg(
                    !0,
                    Ar(m, f.A_bigint_literal_cannot_be_used_as_a_property_name),
                  ),
                (v = 4));
              break;
            case 175:
              v = 8;
              break;
            case 178:
              v = 1;
              break;
            case 179:
              v = 2;
              break;
            default:
              C.assertNever(p, "Unexpected syntax kind:" + p.kind);
          }
          if (!a) {
            const I = Fye(m);
            if (I === void 0) continue;
            const w = c.get(I);
            if (!w) c.set(I, v);
            else if (v & 8 && w & 8) Cn(m, f.Duplicate_identifier_0, Al(m));
            else if (v & 4 && w & 4)
              Cn(
                m,
                f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,
                Al(m),
              );
            else if (v & 3 && w & 3)
              if (w !== 3 && v !== w) c.set(I, v | w);
              else
                return Cn(
                  m,
                  f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name,
                );
            else
              return Cn(
                m,
                f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name,
              );
          }
        }
      }
      function rbt(n) {
        (ibt(n.tagName), aB(n, n.typeArguments));
        const a = new Map();
        for (const c of n.attributes.properties) {
          if (c.kind === 294) continue;
          const { name: p, initializer: m } = c,
            v = PM(p);
          if (!a.get(v)) a.set(v, !0);
          else
            return Cn(
              p,
              f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name,
            );
          if (m && m.kind === 295 && !m.expression)
            return Cn(
              m,
              f.JSX_attributes_must_only_be_assigned_a_non_empty_expression,
            );
        }
      }
      function ibt(n) {
        if (qr(n) && fh(n.expression))
          return Cn(
            n.expression,
            f.JSX_property_access_expressions_cannot_include_JSX_namespace_names,
          );
        if (fh(n) && z6(O) && !oD(n.namespace.escapedText))
          return Cn(n, f.React_components_cannot_include_JSX_namespace_names);
      }
      function obt(n) {
        if (n.expression && YM(n.expression))
          return Cn(
            n.expression,
            f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array,
          );
      }
      function p7e(n) {
        if (Uy(n)) return !0;
        if (n.kind === 251 && n.awaitModifier && !(n.flags & 65536)) {
          const a = Wn(n);
          if (XF(n)) {
            if (!vT(a))
              switch (
                (HR(a, O) ||
                  ns.add(
                    Ar(
                      n.awaitModifier,
                      f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,
                    ),
                  ),
                j)
              ) {
                case 100:
                case 101:
                case 102:
                case 199:
                  if (a.impliedNodeFormat === 1) {
                    ns.add(
                      Ar(
                        n.awaitModifier,
                        f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level,
                      ),
                    );
                    break;
                  }
                case 7:
                case 99:
                case 200:
                case 4:
                  if (G >= 4) break;
                default:
                  ns.add(
                    Ar(
                      n.awaitModifier,
                      f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher,
                    ),
                  );
                  break;
              }
          } else if (!vT(a)) {
            const c = Ar(
                n.awaitModifier,
                f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,
              ),
              p = df(n);
            if (p && p.kind !== 177) {
              C.assert(
                (cc(p) & 2) === 0,
                "Enclosing function should never be an async function.",
              );
              const m = Ar(p, f.Did_you_mean_to_mark_this_function_as_async);
              pa(c, m);
            }
            return (ns.add(c), !0);
          }
        }
        if (
          gw(n) &&
          !(n.flags & 65536) &&
          He(n.initializer) &&
          n.initializer.escapedText === "async"
        )
          return (
            Cn(
              n.initializer,
              f.The_left_hand_side_of_a_for_of_statement_may_not_be_async,
            ),
            !1
          );
        if (n.initializer.kind === 262) {
          const a = n.initializer;
          if (!Wye(a)) {
            const c = a.declarations;
            if (!c.length) return !1;
            if (c.length > 1) {
              const m =
                n.kind === 250
                  ? f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement
                  : f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;
              return fd(a.declarations[1], m);
            }
            const p = c[0];
            if (p.initializer) {
              const m =
                n.kind === 250
                  ? f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer
                  : f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;
              return Cn(p.name, m);
            }
            if (p.type) {
              const m =
                n.kind === 250
                  ? f.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation
                  : f.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;
              return Cn(p, m);
            }
          }
        }
        return !1;
      }
      function abt(n) {
        if (
          !(n.flags & 33554432) &&
          n.parent.kind !== 188 &&
          n.parent.kind !== 265
        ) {
          if (G < 2 && eo(n.name))
            return Cn(
              n.name,
              f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher,
            );
          if (n.body === void 0 && !di(n, 64))
            return rS(n, n.end - 1, 1, f._0_expected, "{");
        }
        if (n.body) {
          if (di(n, 64))
            return Cn(n, f.An_abstract_accessor_cannot_have_an_implementation);
          if (n.parent.kind === 188 || n.parent.kind === 265)
            return Cn(
              n.body,
              f.An_implementation_cannot_be_declared_in_ambient_contexts,
            );
        }
        if (n.typeParameters)
          return Cn(n.name, f.An_accessor_cannot_have_type_parameters);
        if (!sbt(n))
          return Cn(
            n.name,
            n.kind === 178
              ? f.A_get_accessor_cannot_have_parameters
              : f.A_set_accessor_must_have_exactly_one_parameter,
          );
        if (n.kind === 179) {
          if (n.type)
            return Cn(
              n.name,
              f.A_set_accessor_cannot_have_a_return_type_annotation,
            );
          const a = C.checkDefined(
            uM(n),
            "Return value does not match parameter count assertion.",
          );
          if (a.dotDotDotToken)
            return Cn(
              a.dotDotDotToken,
              f.A_set_accessor_cannot_have_rest_parameter,
            );
          if (a.questionToken)
            return Cn(
              a.questionToken,
              f.A_set_accessor_cannot_have_an_optional_parameter,
            );
          if (a.initializer)
            return Cn(
              n.name,
              f.A_set_accessor_parameter_cannot_have_an_initializer,
            );
        }
        return !1;
      }
      function sbt(n) {
        return Oye(n) || n.parameters.length === (n.kind === 178 ? 0 : 1);
      }
      function Oye(n) {
        if (n.parameters.length === (n.kind === 178 ? 1 : 2)) return CS(n);
      }
      function lbt(n) {
        if (n.operator === 158) {
          if (n.type.kind !== 155) return Cn(n.type, f._0_expected, _a(155));
          let a = Ik(n.parent);
          if (Ir(a) && t0(a)) {
            const c = IS(a);
            c && (a = TI(c) || c);
          }
          switch (a.kind) {
            case 261:
              const c = a;
              if (c.name.kind !== 80)
                return Cn(
                  n,
                  f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name,
                );
              if (!qN(c))
                return Cn(
                  n,
                  f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement,
                );
              if (!(c.parent.flags & 2))
                return Cn(
                  a.name,
                  f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const,
                );
              break;
            case 173:
              if (!ua(a) || !u1(a))
                return Cn(
                  a.name,
                  f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly,
                );
              break;
            case 172:
              if (!di(a, 8))
                return Cn(
                  a.name,
                  f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly,
                );
              break;
            default:
              return Cn(n, f.unique_symbol_types_are_not_allowed_here);
          }
        } else if (
          n.operator === 148 &&
          n.type.kind !== 189 &&
          n.type.kind !== 190
        )
          return fd(
            n,
            f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,
            _a(155),
          );
      }
      function VL(n, a) {
        if (KOe(n) && !Ds(Ws(n) ? us(n.argumentExpression) : n.expression))
          return Cn(n, a);
      }
      function f7e(n) {
        if (K$(n)) return !0;
        if (n.kind === 175) {
          if (n.parent.kind === 211) {
            if (
              n.modifiers &&
              !(n.modifiers.length === 1 && $a(n.modifiers).kind === 134)
            )
              return fd(n, f.Modifiers_cannot_appear_here);
            if (
              wye(
                n.questionToken,
                f.An_object_member_cannot_be_declared_optional,
              )
            )
              return !0;
            if (
              u7e(
                n.exclamationToken,
                f.A_definite_assignment_assertion_is_not_permitted_in_this_context,
              )
            )
              return !0;
            if (n.body === void 0)
              return rS(n, n.end - 1, 1, f._0_expected, "{");
          }
          if (kye(n)) return !0;
        }
        if (ui(n.parent)) {
          if (G < 2 && eo(n.name))
            return Cn(
              n.name,
              f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher,
            );
          if (n.flags & 33554432)
            return VL(
              n.name,
              f.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type,
            );
          if (n.kind === 175 && !n.body)
            return VL(
              n.name,
              f.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type,
            );
        } else {
          if (n.parent.kind === 265)
            return VL(
              n.name,
              f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type,
            );
          if (n.parent.kind === 188)
            return VL(
              n.name,
              f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type,
            );
        }
      }
      function cbt(n) {
        let a = n;
        for (; a; ) {
          if (BR(a)) return Cn(n, f.Jump_target_cannot_cross_function_boundary);
          switch (a.kind) {
            case 257:
              if (n.label && a.label.escapedText === n.label.escapedText)
                return n.kind === 252 && !mb(a.statement, !0)
                  ? Cn(
                      n,
                      f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement,
                    )
                  : !1;
              break;
            case 256:
              if (n.kind === 253 && !n.label) return !1;
              break;
            default:
              if (mb(a, !1) && !n.label) return !1;
              break;
          }
          a = a.parent;
        }
        if (n.label) {
          const c =
            n.kind === 253
              ? f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement
              : f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;
          return Cn(n, c);
        } else {
          const c =
            n.kind === 253
              ? f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement
              : f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;
          return Cn(n, c);
        }
      }
      function dbt(n) {
        if (n.dotDotDotToken) {
          const a = n.parent.elements;
          if (n !== Ba(a))
            return Cn(
              n,
              f.A_rest_element_must_be_last_in_a_destructuring_pattern,
            );
          if (
            (_R(
              a,
              f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma,
            ),
            n.propertyName)
          )
            return Cn(n.name, f.A_rest_element_cannot_have_a_property_name);
        }
        if (n.dotDotDotToken && n.initializer)
          return rS(
            n,
            n.initializer.pos - 1,
            1,
            f.A_rest_element_cannot_have_an_initializer,
          );
      }
      function m7e(n) {
        return (
          uf(n) || (n.kind === 225 && n.operator === 41 && n.operand.kind === 9)
        );
      }
      function ubt(n) {
        return (
          n.kind === 10 ||
          (n.kind === 225 && n.operator === 41 && n.operand.kind === 10)
        );
      }
      function pbt(n) {
        if ((qr(n) || (Ws(n) && m7e(n.argumentExpression))) && Ds(n.expression))
          return !!(Vl(n).flags & 1056);
      }
      function h7e(n) {
        const a = n.initializer;
        if (a) {
          const c = !(
            m7e(a) ||
            pbt(a) ||
            a.kind === 112 ||
            a.kind === 97 ||
            ubt(a)
          );
          if ((nk(n) || (yi(n) && b8(n))) && !n.type) {
            if (c)
              return Cn(
                a,
                f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference,
              );
          } else
            return Cn(a, f.Initializers_are_not_allowed_in_ambient_contexts);
        }
      }
      function fbt(n) {
        const a = wE(n),
          c = a & 7;
        if (Qo(n.name))
          switch (c) {
            case 6:
              return Cn(
                n,
                f._0_declarations_may_not_have_binding_patterns,
                "await using",
              );
            case 4:
              return Cn(
                n,
                f._0_declarations_may_not_have_binding_patterns,
                "using",
              );
          }
        if (n.parent.parent.kind !== 250 && n.parent.parent.kind !== 251) {
          if (a & 33554432) h7e(n);
          else if (!n.initializer) {
            if (Qo(n.name) && !Qo(n.parent))
              return Cn(
                n,
                f.A_destructuring_declaration_must_have_an_initializer,
              );
            switch (c) {
              case 6:
                return Cn(
                  n,
                  f._0_declarations_must_be_initialized,
                  "await using",
                );
              case 4:
                return Cn(n, f._0_declarations_must_be_initialized, "using");
              case 2:
                return Cn(n, f._0_declarations_must_be_initialized, "const");
            }
          }
        }
        if (
          n.exclamationToken &&
          (n.parent.parent.kind !== 244 ||
            !n.type ||
            n.initializer ||
            a & 33554432)
        ) {
          const p = n.initializer
            ? f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions
            : n.type
              ? f.A_definite_assignment_assertion_is_not_permitted_in_this_context
              : f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;
          return Cn(n.exclamationToken, p);
        }
        return (
          e.getEmitModuleFormatOfFile(Wn(n)) < 4 &&
            !(n.parent.parent.flags & 33554432) &&
            di(n.parent.parent, 32) &&
            _7e(n.name),
          !!c && g7e(n.name)
        );
      }
      function _7e(n) {
        if (n.kind === 80) {
          if (Kr(n) === "__esModule")
            return _bt(
              "noEmit",
              n,
              f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,
            );
        } else {
          const a = n.elements;
          for (const c of a) if (!Jc(c)) return _7e(c.name);
        }
        return !1;
      }
      function g7e(n) {
        if (n.kind === 80) {
          if (n.escapedText === "let")
            return Cn(
              n,
              f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations,
            );
        } else {
          const a = n.elements;
          for (const c of a) Jc(c) || g7e(c.name);
        }
        return !1;
      }
      function Wye(n) {
        const a = n.declarations;
        if (_R(n.declarations)) return !0;
        if (!n.declarations.length)
          return rS(
            n,
            a.pos,
            a.end - a.pos,
            f.Variable_declaration_list_cannot_be_empty,
          );
        const c = n.flags & 7;
        if (c === 4 || c === 6) {
          if (T4(n.parent))
            return Cn(
              n,
              c === 4
                ? f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration
                : f.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration,
            );
          if (n.flags & 33554432)
            return Cn(
              n,
              c === 4
                ? f.using_declarations_are_not_allowed_in_ambient_contexts
                : f.await_using_declarations_are_not_allowed_in_ambient_contexts,
            );
          if (c === 6) return k4e(n);
        }
        return !1;
      }
      function Y$(n) {
        switch (n.kind) {
          case 246:
          case 247:
          case 248:
          case 255:
          case 249:
          case 250:
          case 251:
            return !1;
          case 257:
            return Y$(n.parent);
        }
        return !0;
      }
      function mbt(n) {
        if (!Y$(n.parent)) {
          const a = wE(n.declarationList) & 7;
          if (a) {
            const c =
              a === 1
                ? "let"
                : a === 2
                  ? "const"
                  : a === 4
                    ? "using"
                    : a === 6
                      ? "await using"
                      : C.fail("Unknown BlockScope flag");
            Qe(n, f._0_declarations_can_only_be_declared_inside_a_block, c);
          }
        }
      }
      function hbt(n) {
        const a = n.name.escapedText;
        switch (n.keywordToken) {
          case 105:
            if (a !== "target")
              return Cn(
                n.name,
                f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,
                Gi(n.name.escapedText),
                _a(n.keywordToken),
                "target",
              );
            break;
          case 102:
            if (a !== "meta") {
              const c = Zo(n.parent) && n.parent.expression === n;
              if (a === "defer") {
                if (!c) return rS(n, n.end, 0, f._0_expected, "(");
              } else
                return c
                  ? Cn(
                      n.name,
                      f._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer,
                      Gi(n.name.escapedText),
                    )
                  : Cn(
                      n.name,
                      f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,
                      Gi(n.name.escapedText),
                      _a(n.keywordToken),
                      "meta",
                    );
            }
            break;
        }
      }
      function vT(n) {
        return n.parseDiagnostics.length > 0;
      }
      function fd(n, a, ...c) {
        const p = Wn(n);
        if (!vT(p)) {
          const m = jh(p, n.pos);
          return (ns.add(Oc(p, m.start, m.length, a, ...c)), !0);
        }
        return !1;
      }
      function rS(n, a, c, p, ...m) {
        const v = Wn(n);
        return vT(v) ? !1 : (ns.add(Oc(v, a, c, p, ...m)), !0);
      }
      function _bt(n, a, c, ...p) {
        const m = Wn(a);
        return vT(m) ? !1 : (Av(n, a, c, ...p), !0);
      }
      function Cn(n, a, ...c) {
        const p = Wn(n);
        return vT(p) ? !1 : (Qe(n, a, ...c), !0);
      }
      function gbt(n) {
        const a = Ir(n) ? T6(n) : void 0,
          c = n.typeParameters || (a && Ac(a));
        if (c) {
          const p = c.pos === c.end ? c.pos : La(Wn(n).text, c.pos);
          return rS(
            n,
            p,
            c.end - p,
            f.Type_parameters_cannot_appear_on_a_constructor_declaration,
          );
        }
      }
      function ybt(n) {
        const a = n.type || kp(n);
        if (a)
          return Cn(
            a,
            f.Type_annotation_cannot_appear_on_a_constructor_declaration,
          );
      }
      function vbt(n) {
        if (
          va(n.name) &&
          Nr(n.name.expression) &&
          n.name.expression.operatorToken.kind === 103
        )
          return Cn(
            n.parent.members[0],
            f.A_mapped_type_may_not_declare_properties_or_methods,
          );
        if (ui(n.parent)) {
          if (ka(n.name) && n.name.text === "constructor")
            return Cn(n.name, f.Classes_may_not_have_a_field_named_constructor);
          if (
            VL(
              n.name,
              f.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type,
            )
          )
            return !0;
          if (G < 2 && eo(n.name))
            return Cn(
              n.name,
              f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher,
            );
          if (G < 2 && Yu(n) && !(n.flags & 33554432))
            return Cn(
              n.name,
              f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher,
            );
          if (
            Yu(n) &&
            wye(
              n.questionToken,
              f.An_accessor_property_cannot_be_declared_optional,
            )
          )
            return !0;
        } else if (n.parent.kind === 265) {
          if (
            VL(
              n.name,
              f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type,
            )
          )
            return !0;
          if ((C.assertNode(n, Su), n.initializer))
            return Cn(
              n.initializer,
              f.An_interface_property_cannot_have_an_initializer,
            );
        } else if (wu(n.parent)) {
          if (
            VL(
              n.name,
              f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type,
            )
          )
            return !0;
          if ((C.assertNode(n, Su), n.initializer))
            return Cn(
              n.initializer,
              f.A_type_literal_property_cannot_have_an_initializer,
            );
        }
        if (
          (n.flags & 33554432 && h7e(n),
          Po(n) &&
            n.exclamationToken &&
            (!ui(n.parent) ||
              !n.type ||
              n.initializer ||
              n.flags & 33554432 ||
              ua(n) ||
              PS(n)))
        ) {
          const a = n.initializer
            ? f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions
            : n.type
              ? f.A_definite_assignment_assertion_is_not_permitted_in_this_context
              : f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;
          return Cn(n.exclamationToken, a);
        }
      }
      function bbt(n) {
        return n.kind === 265 ||
          n.kind === 266 ||
          n.kind === 273 ||
          n.kind === 272 ||
          n.kind === 279 ||
          n.kind === 278 ||
          n.kind === 271 ||
          di(n, 2208)
          ? !1
          : fd(
              n,
              f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier,
            );
      }
      function Tbt(n) {
        for (const a of n.statements)
          if ((rd(a) || a.kind === 244) && bbt(a)) return !0;
        return !1;
      }
      function y7e(n) {
        return !!(n.flags & 33554432) && Tbt(n);
      }
      function Uy(n) {
        if (n.flags & 33554432) {
          if (
            !Vr(n).hasReportedStatementInAmbientContext &&
            (Yo(n.parent) || fb(n.parent))
          )
            return (Vr(n).hasReportedStatementInAmbientContext = fd(
              n,
              f.An_implementation_cannot_be_declared_in_ambient_contexts,
            ));
          if (
            n.parent.kind === 242 ||
            n.parent.kind === 269 ||
            n.parent.kind === 308
          ) {
            const c = Vr(n.parent);
            if (!c.hasReportedStatementInAmbientContext)
              return (c.hasReportedStatementInAmbientContext = fd(
                n,
                f.Statements_are_not_allowed_in_ambient_contexts,
              ));
          }
        }
        return !1;
      }
      function v7e(n) {
        const a = Al(n).includes("."),
          c = n.numericLiteralFlags & 16;
        a ||
          c ||
          +n.text <= 2 ** 53 - 1 ||
          Pg(
            !1,
            Ar(
              n,
              f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers,
            ),
          );
      }
      function Sbt(n) {
        return !!(
          !(uv(n.parent) || (YT(n.parent) && uv(n.parent.parent))) &&
          !(n.flags & 33554432) &&
          G < 7 &&
          Cn(
            n,
            f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020,
          )
        );
      }
      function Ebt(n, a, ...c) {
        const p = Wn(n);
        if (!vT(p)) {
          const m = jh(p, n.pos);
          return (ns.add(Oc(p, Dl(m), 0, a, ...c)), !0);
        }
        return !1;
      }
      function Abt() {
        return (
          nf ||
            ((nf = []),
            lt.forEach((n, a) => {
              lae.test(a) && nf.push(n);
            })),
          nf
        );
      }
      function Ibt(n) {
        var a, c;
        if (n.phaseModifier === 156) {
          if (n.name && n.namedBindings)
            return Cn(
              n,
              f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both,
            );
          if (((a = n.namedBindings) == null ? void 0 : a.kind) === 276)
            return b7e(n.namedBindings);
        } else if (n.phaseModifier === 166) {
          if (n.name)
            return Cn(
              n,
              f.Default_imports_are_not_allowed_in_a_deferred_import,
            );
          if (((c = n.namedBindings) == null ? void 0 : c.kind) === 276)
            return Cn(n, f.Named_imports_are_not_allowed_in_a_deferred_import);
          if (j !== 99 && j !== 200)
            return Cn(
              n,
              f.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve,
            );
        }
        return !1;
      }
      function b7e(n) {
        return !!Ye(n.elements, (a) => {
          if (a.isTypeOnly)
            return fd(
              a,
              a.kind === 277
                ? f.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement
                : f.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement,
            );
        });
      }
      function xbt(n) {
        if (O.verbatimModuleSyntax && j === 1) return Cn(n, Q1(n));
        if (n.expression.kind === 237) {
          if (j !== 99 && j !== 200)
            return Cn(
              n,
              f.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve,
            );
        } else if (j === 5)
          return Cn(
            n,
            f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext,
          );
        if (n.typeArguments)
          return Cn(
            n,
            f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments,
          );
        const a = n.arguments;
        if (
          !(100 <= j && j <= 199) &&
          j !== 99 &&
          j !== 200 &&
          (_R(a), a.length > 1)
        ) {
          const p = a[1];
          return Cn(
            p,
            f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve,
          );
        }
        if (a.length === 0 || a.length > 2)
          return Cn(
            n,
            f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments,
          );
        const c = hn(a, qf);
        return c
          ? Cn(c, f.Argument_of_dynamic_import_cannot_be_spread_element)
          : !1;
      }
      function Rbt(n, a) {
        const c = Hr(n);
        if (c & 20 && a.flags & 1048576)
          return hn(a.types, (p) => {
            if (p.flags & 524288) {
              const m = c & Hr(p);
              if (m & 4) return n.target === p.target;
              if (m & 16)
                return !!n.aliasSymbol && n.aliasSymbol === p.aliasSymbol;
            }
            return !1;
          });
      }
      function Dbt(n, a) {
        if (Hr(n) & 128 && am(a, jv)) return hn(a.types, (c) => !jv(c));
      }
      function Cbt(n, a) {
        let c = 0;
        if (na(n, c).length > 0 || ((c = 1), na(n, c).length > 0))
          return hn(a.types, (m) => na(m, c).length > 0);
      }
      function Nbt(n, a) {
        let c;
        if (!(n.flags & 406978556)) {
          let p = 0;
          for (const m of a.types)
            if (!(m.flags & 406978556)) {
              const v = Ma([b_(n), b_(m)]);
              if (v.flags & 4194304) return m;
              if (Nh(v) || v.flags & 1048576) {
                const I = v.flags & 1048576 ? Io(v.types, Nh) : 1;
                I >= p && ((c = m), (p = I));
              }
            }
        }
        return c;
      }
      function Mbt(n) {
        if (tc(n, 67108864)) {
          const a = Ec(n, (c) => !(c.flags & 402784252));
          if (!(a.flags & 131072)) return a;
        }
        return n;
      }
      function T7e(n, a, c) {
        if (a.flags & 1048576 && n.flags & 2621440) {
          const p = SFe(a, n);
          if (p) return p;
          const m = bs(n);
          if (m) {
            const v = TFe(m, a);
            if (v) {
              const I = b_e(
                a,
                Vt(v, (w) => [() => _r(w), w.escapedName]),
                c,
              );
              if (I !== a) return I;
            }
          }
        }
      }
      function Fye(n) {
        const a = c1(n);
        return a || (va(n) ? q_e(wd(n.expression)) : void 0);
      }
      function $$(n) {
        return (gn === n || ((gn = n), (Kn = PT(n))), Kn);
      }
      function wE(n) {
        return (Wt === n || ((Wt = n), (cn = ty(n))), cn);
      }
      function b8(n) {
        const a = wE(n) & 7;
        return a === 2 || a === 4 || a === 6;
      }
      function Pbt(n, a) {
        const c = O.importHelpers ? 1 : 0,
          p = n?.imports[c];
        return (
          p &&
            C.assert(
              Os(p) && p.text === a,
              `Expected sourceFile.imports[${c}] to be the synthesized JSX runtime import`,
            ),
          p
        );
      }
      function Lbt(n) {
        C.assert(O.importHelpers, "Expected importHelpers to be enabled");
        const a = n.imports[0];
        return (
          C.assert(
            a && Os(a) && a.text === "tslib",
            "Expected sourceFile.imports[0] to be the synthesized tslib import",
          ),
          a
        );
      }
    }
    function hHe(e) {
      return !fb(e);
    }
    function z1e(e) {
      return (e.kind !== 263 && e.kind !== 175) || !!e.body;
    }
    function B1e(e) {
      switch (e.parent.kind) {
        case 277:
        case 282:
          return He(e) || e.kind === 11;
        default:
          return L_(e);
      }
    }
    var _f;
    ((e) => {
      ((e.JSX = "JSX"),
        (e.IntrinsicElements = "IntrinsicElements"),
        (e.ElementClass = "ElementClass"),
        (e.ElementAttributesPropertyNameContainer =
          "ElementAttributesProperty"),
        (e.ElementChildrenAttributeNameContainer = "ElementChildrenAttribute"),
        (e.Element = "Element"),
        (e.ElementType = "ElementType"),
        (e.IntrinsicAttributes = "IntrinsicAttributes"),
        (e.IntrinsicClassAttributes = "IntrinsicClassAttributes"),
        (e.LibraryManagedAttributes = "LibraryManagedAttributes"));
    })(_f || (_f = {}));
    var FU;
    ((e) => {
      e.Fragment = "Fragment";
    })(FU || (FU = {}));
    function G1e(e) {
      switch (e) {
        case 0:
          return "yieldType";
        case 1:
          return "returnType";
        case 2:
          return "nextType";
      }
    }
    function su(e) {
      return !!(e.flags & 1);
    }
    function V1e(e) {
      return !!(e.flags & 2);
    }
    function _He(e) {
      return {
        getCommonSourceDirectory: e.getCommonSourceDirectory
          ? () => e.getCommonSourceDirectory()
          : () => "",
        getCurrentDirectory: () => e.getCurrentDirectory(),
        getSymlinkCache: ia(e, e.getSymlinkCache),
        getPackageJsonInfoCache: () => {
          var t;
          return (t = e.getPackageJsonInfoCache) == null ? void 0 : t.call(e);
        },
        useCaseSensitiveFileNames: () => e.useCaseSensitiveFileNames(),
        redirectTargetsMap: e.redirectTargetsMap,
        getRedirectFromSourceFile: (t) => e.getRedirectFromSourceFile(t),
        isSourceOfProjectReferenceRedirect: (t) =>
          e.isSourceOfProjectReferenceRedirect(t),
        fileExists: (t) => e.fileExists(t),
        getFileIncludeReasons: () => e.getFileIncludeReasons(),
        readFile: e.readFile ? (t) => e.readFile(t) : void 0,
        getDefaultResolutionModeForFile: (t) =>
          e.getDefaultResolutionModeForFile(t),
        getModeForResolutionAtIndex: (t, r) =>
          e.getModeForResolutionAtIndex(t, r),
        getGlobalTypingsCacheLocation: ia(e, e.getGlobalTypingsCacheLocation),
      };
    }
    var uae = class D7e {
      constructor(t, r, i) {
        ((this.moduleResolverHost = void 0),
          (this.inner = void 0),
          (this.disableTrackSymbol = !1));
        for (var o; r instanceof D7e; ) r = r.inner;
        ((this.inner = r),
          (this.moduleResolverHost = i),
          (this.context = t),
          (this.canTrackSymbol = !!(
            (o = this.inner) != null && o.trackSymbol
          )));
      }
      trackSymbol(t, r, i) {
        var o, s;
        if (
          (o = this.inner) != null &&
          o.trackSymbol &&
          !this.disableTrackSymbol
        ) {
          if (this.inner.trackSymbol(t, r, i))
            return (this.onDiagnosticReported(), !0);
          t.flags & 262144 ||
            ((s = this.context).trackedSymbols ?? (s.trackedSymbols = [])).push(
              [t, r, i],
            );
        }
        return !1;
      }
      reportInaccessibleThisError() {
        var t;
        (t = this.inner) != null &&
          t.reportInaccessibleThisError &&
          (this.onDiagnosticReported(),
          this.inner.reportInaccessibleThisError());
      }
      reportPrivateInBaseOfClassExpression(t) {
        var r;
        (r = this.inner) != null &&
          r.reportPrivateInBaseOfClassExpression &&
          (this.onDiagnosticReported(),
          this.inner.reportPrivateInBaseOfClassExpression(t));
      }
      reportInaccessibleUniqueSymbolError() {
        var t;
        (t = this.inner) != null &&
          t.reportInaccessibleUniqueSymbolError &&
          (this.onDiagnosticReported(),
          this.inner.reportInaccessibleUniqueSymbolError());
      }
      reportCyclicStructureError() {
        var t;
        (t = this.inner) != null &&
          t.reportCyclicStructureError &&
          (this.onDiagnosticReported(),
          this.inner.reportCyclicStructureError());
      }
      reportLikelyUnsafeImportRequiredError(t) {
        var r;
        (r = this.inner) != null &&
          r.reportLikelyUnsafeImportRequiredError &&
          (this.onDiagnosticReported(),
          this.inner.reportLikelyUnsafeImportRequiredError(t));
      }
      reportTruncationError() {
        var t;
        (t = this.inner) != null &&
          t.reportTruncationError &&
          (this.onDiagnosticReported(), this.inner.reportTruncationError());
      }
      reportNonlocalAugmentation(t, r, i) {
        var o;
        (o = this.inner) != null &&
          o.reportNonlocalAugmentation &&
          (this.onDiagnosticReported(),
          this.inner.reportNonlocalAugmentation(t, r, i));
      }
      reportNonSerializableProperty(t) {
        var r;
        (r = this.inner) != null &&
          r.reportNonSerializableProperty &&
          (this.onDiagnosticReported(),
          this.inner.reportNonSerializableProperty(t));
      }
      onDiagnosticReported() {
        this.context.reportedDiagnostic = !0;
      }
      reportInferenceFallback(t) {
        var r;
        (r = this.inner) != null &&
          r.reportInferenceFallback &&
          !this.context.suppressReportInferenceFallback &&
          (this.onDiagnosticReported(), this.inner.reportInferenceFallback(t));
      }
      pushErrorFallbackNode(t) {
        var r, i;
        return (i =
          (r = this.inner) == null ? void 0 : r.pushErrorFallbackNode) == null
          ? void 0
          : i.call(r, t);
      }
      popErrorFallbackNode() {
        var t, r;
        return (r =
          (t = this.inner) == null ? void 0 : t.popErrorFallbackNode) == null
          ? void 0
          : r.call(t);
      }
    };
    function st(e, t, r, i) {
      if (e === void 0) return e;
      const o = t(e);
      let s;
      if (o !== void 0)
        return (Mo(o) ? (s = (i || SHe)(o)) : (s = o), C.assertNode(s, r), s);
    }
    function Xn(e, t, r, i, o) {
      if (e === void 0) return e;
      const s = e.length;
      ((i === void 0 || i < 0) && (i = 0),
        (o === void 0 || o > s - i) && (o = s - i));
      let l,
        u = -1,
        d = -1;
      i > 0 || o < s
        ? (l = e.hasTrailingComma && i + o === s)
        : ((u = e.pos), (d = e.end), (l = e.hasTrailingComma));
      const _ = j1e(e, t, r, i, o);
      if (_ !== e) {
        const h = L.createNodeArray(_, l);
        return (uh(h, u, d), h);
      }
      return e;
    }
    function sP(e, t, r, i, o) {
      if (e === void 0) return e;
      const s = e.length;
      return (
        (i === void 0 || i < 0) && (i = 0),
        (o === void 0 || o > s - i) && (o = s - i),
        j1e(e, t, r, i, o)
      );
    }
    function j1e(e, t, r, i, o) {
      let s;
      const l = e.length;
      (i > 0 || o < l) && (s = []);
      for (let u = 0; u < o; u++) {
        const d = e[u + i],
          _ = d !== void 0 ? (t ? t(d) : d) : void 0;
        if (
          (s !== void 0 || _ === void 0 || _ !== d) &&
          (s === void 0 && ((s = e.slice(0, u)), C.assertEachNode(s, r)), _)
        )
          if (Mo(_)) for (const h of _) (C.assertNode(h, r), s.push(h));
          else (C.assertNode(_, r), s.push(_));
      }
      return s || (C.assertEachNode(e, r), e);
    }
    function zU(e, t, r, i, o, s = Xn) {
      return (
        r.startLexicalEnvironment(),
        (e = s(e, t, Vi, i)),
        o && (e = r.factory.ensureUseStrict(e)),
        L.mergeLexicalEnvironment(e, r.endLexicalEnvironment())
      );
    }
    function Fl(e, t, r, i = Xn) {
      let o;
      return (
        r.startLexicalEnvironment(),
        e &&
          (r.setLexicalEnvironmentFlags(1, !0),
          (o = i(e, t, to)),
          r.getLexicalEnvironmentFlags() & 2 &&
            Ga(r.getCompilerOptions()) >= 2 &&
            (o = gHe(o, r)),
          r.setLexicalEnvironmentFlags(1, !1)),
        r.suspendLexicalEnvironment(),
        o
      );
    }
    function gHe(e, t) {
      let r;
      for (let i = 0; i < e.length; i++) {
        const o = e[i],
          s = yHe(o, t);
        (r || s !== o) && (r || (r = e.slice(0, i)), (r[i] = s));
      }
      return r ? vt(t.factory.createNodeArray(r, e.hasTrailingComma), e) : e;
    }
    function yHe(e, t) {
      return e.dotDotDotToken
        ? e
        : Qo(e.name)
          ? vHe(e, t)
          : e.initializer
            ? bHe(e, e.name, e.initializer, t)
            : e;
    }
    function vHe(e, t) {
      const { factory: r } = t;
      return (
        t.addInitializationStatement(
          r.createVariableStatement(
            void 0,
            r.createVariableDeclarationList([
              r.createVariableDeclaration(
                e.name,
                void 0,
                e.type,
                e.initializer
                  ? r.createConditionalExpression(
                      r.createStrictEquality(
                        r.getGeneratedNameForNode(e),
                        r.createVoidZero(),
                      ),
                      void 0,
                      e.initializer,
                      void 0,
                      r.getGeneratedNameForNode(e),
                    )
                  : r.getGeneratedNameForNode(e),
              ),
            ]),
          ),
        ),
        r.updateParameterDeclaration(
          e,
          e.modifiers,
          e.dotDotDotToken,
          r.getGeneratedNameForNode(e),
          e.questionToken,
          e.type,
          void 0,
        )
      );
    }
    function bHe(e, t, r, i) {
      const o = i.factory;
      return (
        i.addInitializationStatement(
          o.createIfStatement(
            o.createTypeCheck(o.cloneNode(t), "undefined"),
            Cr(
              vt(
                o.createBlock([
                  o.createExpressionStatement(
                    Cr(
                      vt(
                        o.createAssignment(
                          Cr(o.cloneNode(t), 96),
                          Cr(r, 96 | Qa(r) | 3072),
                        ),
                        e,
                      ),
                      3072,
                    ),
                  ),
                ]),
                e,
              ),
              3905,
            ),
          ),
        ),
        o.updateParameterDeclaration(
          e,
          e.modifiers,
          e.dotDotDotToken,
          e.name,
          e.questionToken,
          e.type,
          void 0,
        )
      );
    }
    function gf(e, t, r, i = st) {
      r.resumeLexicalEnvironment();
      const o = i(e, t, SF),
        s = r.endLexicalEnvironment();
      if (yt(s)) {
        if (!o) return r.factory.createBlock(s);
        const l = r.factory.converters.convertToFunctionBlock(o),
          u = L.mergeLexicalEnvironment(l.statements, s);
        return r.factory.updateBlock(l, u);
      }
      return o;
    }
    function Wu(e, t, r, i = st) {
      r.startBlockScope();
      const o = i(e, t, Vi, r.factory.liftToBlock);
      C.assert(o);
      const s = r.endBlockScope();
      return yt(s)
        ? ea(o)
          ? (s.push(...o.statements), r.factory.updateBlock(o, s))
          : (s.push(o), r.factory.createBlock(s))
        : o;
    }
    function f3(e, t, r = t) {
      if (r === t || e.length <= 1) return Xn(e, t, St);
      let i = 0;
      const o = e.length;
      return Xn(
        e,
        (s) => {
          const l = i < o - 1;
          return (i++, l ? r(s) : t(s));
        },
        St,
      );
    }
    function kn(e, t, r = Qw, i = Xn, o, s = st) {
      if (e === void 0) return;
      const l = THe[e.kind];
      return l === void 0 ? e : l(e, t, r, i, s, o);
    }
    var THe = {
      167: function (t, r, i, o, s, l) {
        return i.factory.updateQualifiedName(
          t,
          C.checkDefined(s(t.left, r, Mu)),
          C.checkDefined(s(t.right, r, He)),
        );
      },
      168: function (t, r, i, o, s, l) {
        return i.factory.updateComputedPropertyName(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      169: function (t, r, i, o, s, l) {
        return i.factory.updateTypeParameterDeclaration(
          t,
          o(t.modifiers, r, Aa),
          C.checkDefined(s(t.name, r, He)),
          s(t.constraint, r, Ri),
          s(t.default, r, Ri),
        );
      },
      170: function (t, r, i, o, s, l) {
        return i.factory.updateParameterDeclaration(
          t,
          o(t.modifiers, r, fl),
          l ? s(t.dotDotDotToken, l, m4) : t.dotDotDotToken,
          C.checkDefined(s(t.name, r, $E)),
          l ? s(t.questionToken, l, Nb) : t.questionToken,
          s(t.type, r, Ri),
          s(t.initializer, r, St),
        );
      },
      171: function (t, r, i, o, s, l) {
        return i.factory.updateDecorator(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      172: function (t, r, i, o, s, l) {
        return i.factory.updatePropertySignature(
          t,
          o(t.modifiers, r, Aa),
          C.checkDefined(s(t.name, r, vc)),
          l ? s(t.questionToken, l, Nb) : t.questionToken,
          s(t.type, r, Ri),
        );
      },
      173: function (t, r, i, o, s, l) {
        return i.factory.updatePropertyDeclaration(
          t,
          o(t.modifiers, r, fl),
          C.checkDefined(s(t.name, r, vc)),
          l
            ? s(t.questionToken ?? t.exclamationToken, l, Yie)
            : (t.questionToken ?? t.exclamationToken),
          s(t.type, r, Ri),
          s(t.initializer, r, St),
        );
      },
      174: function (t, r, i, o, s, l) {
        return i.factory.updateMethodSignature(
          t,
          o(t.modifiers, r, Aa),
          C.checkDefined(s(t.name, r, vc)),
          l ? s(t.questionToken, l, Nb) : t.questionToken,
          o(t.typeParameters, r, sl),
          o(t.parameters, r, to),
          s(t.type, r, Ri),
        );
      },
      175: function (t, r, i, o, s, l) {
        return i.factory.updateMethodDeclaration(
          t,
          o(t.modifiers, r, fl),
          l ? s(t.asteriskToken, l, fw) : t.asteriskToken,
          C.checkDefined(s(t.name, r, vc)),
          l ? s(t.questionToken, l, Nb) : t.questionToken,
          o(t.typeParameters, r, sl),
          Fl(t.parameters, r, i, o),
          s(t.type, r, Ri),
          gf(t.body, r, i, s),
        );
      },
      177: function (t, r, i, o, s, l) {
        return i.factory.updateConstructorDeclaration(
          t,
          o(t.modifiers, r, fl),
          Fl(t.parameters, r, i, o),
          gf(t.body, r, i, s),
        );
      },
      178: function (t, r, i, o, s, l) {
        return i.factory.updateGetAccessorDeclaration(
          t,
          o(t.modifiers, r, fl),
          C.checkDefined(s(t.name, r, vc)),
          Fl(t.parameters, r, i, o),
          s(t.type, r, Ri),
          gf(t.body, r, i, s),
        );
      },
      179: function (t, r, i, o, s, l) {
        return i.factory.updateSetAccessorDeclaration(
          t,
          o(t.modifiers, r, fl),
          C.checkDefined(s(t.name, r, vc)),
          Fl(t.parameters, r, i, o),
          gf(t.body, r, i, s),
        );
      },
      176: function (t, r, i, o, s, l) {
        return (
          i.startLexicalEnvironment(),
          i.suspendLexicalEnvironment(),
          i.factory.updateClassStaticBlockDeclaration(t, gf(t.body, r, i, s))
        );
      },
      180: function (t, r, i, o, s, l) {
        return i.factory.updateCallSignature(
          t,
          o(t.typeParameters, r, sl),
          o(t.parameters, r, to),
          s(t.type, r, Ri),
        );
      },
      181: function (t, r, i, o, s, l) {
        return i.factory.updateConstructSignature(
          t,
          o(t.typeParameters, r, sl),
          o(t.parameters, r, to),
          s(t.type, r, Ri),
        );
      },
      182: function (t, r, i, o, s, l) {
        return i.factory.updateIndexSignature(
          t,
          o(t.modifiers, r, fl),
          o(t.parameters, r, to),
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      183: function (t, r, i, o, s, l) {
        return i.factory.updateTypePredicateNode(
          t,
          s(t.assertsModifier, r, gie),
          C.checkDefined(s(t.parameterName, r, $ie)),
          s(t.type, r, Ri),
        );
      },
      184: function (t, r, i, o, s, l) {
        return i.factory.updateTypeReferenceNode(
          t,
          C.checkDefined(s(t.typeName, r, Mu)),
          o(t.typeArguments, r, Ri),
        );
      },
      185: function (t, r, i, o, s, l) {
        return i.factory.updateFunctionTypeNode(
          t,
          o(t.typeParameters, r, sl),
          o(t.parameters, r, to),
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      186: function (t, r, i, o, s, l) {
        return i.factory.updateConstructorTypeNode(
          t,
          o(t.modifiers, r, Aa),
          o(t.typeParameters, r, sl),
          o(t.parameters, r, to),
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      187: function (t, r, i, o, s, l) {
        return i.factory.updateTypeQueryNode(
          t,
          C.checkDefined(s(t.exprName, r, Mu)),
          o(t.typeArguments, r, Ri),
        );
      },
      188: function (t, r, i, o, s, l) {
        return i.factory.updateTypeLiteralNode(t, o(t.members, r, _S));
      },
      189: function (t, r, i, o, s, l) {
        return i.factory.updateArrayTypeNode(
          t,
          C.checkDefined(s(t.elementType, r, Ri)),
        );
      },
      190: function (t, r, i, o, s, l) {
        return i.factory.updateTupleTypeNode(t, o(t.elements, r, Ri));
      },
      191: function (t, r, i, o, s, l) {
        return i.factory.updateOptionalTypeNode(
          t,
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      192: function (t, r, i, o, s, l) {
        return i.factory.updateRestTypeNode(
          t,
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      193: function (t, r, i, o, s, l) {
        return i.factory.updateUnionTypeNode(t, o(t.types, r, Ri));
      },
      194: function (t, r, i, o, s, l) {
        return i.factory.updateIntersectionTypeNode(t, o(t.types, r, Ri));
      },
      195: function (t, r, i, o, s, l) {
        return i.factory.updateConditionalTypeNode(
          t,
          C.checkDefined(s(t.checkType, r, Ri)),
          C.checkDefined(s(t.extendsType, r, Ri)),
          C.checkDefined(s(t.trueType, r, Ri)),
          C.checkDefined(s(t.falseType, r, Ri)),
        );
      },
      196: function (t, r, i, o, s, l) {
        return i.factory.updateInferTypeNode(
          t,
          C.checkDefined(s(t.typeParameter, r, sl)),
        );
      },
      206: function (t, r, i, o, s, l) {
        return i.factory.updateImportTypeNode(
          t,
          C.checkDefined(s(t.argument, r, Ri)),
          s(t.attributes, r, A1),
          s(t.qualifier, r, Mu),
          o(t.typeArguments, r, Ri),
          t.isTypeOf,
        );
      },
      303: function (t, r, i, o, s, l) {
        return i.factory.updateImportTypeAssertionContainer(
          t,
          C.checkDefined(s(t.assertClause, r, Rie)),
          t.multiLine,
        );
      },
      203: function (t, r, i, o, s, l) {
        return i.factory.updateNamedTupleMember(
          t,
          l ? s(t.dotDotDotToken, l, m4) : t.dotDotDotToken,
          C.checkDefined(s(t.name, r, He)),
          l ? s(t.questionToken, l, Nb) : t.questionToken,
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      197: function (t, r, i, o, s, l) {
        return i.factory.updateParenthesizedType(
          t,
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      199: function (t, r, i, o, s, l) {
        return i.factory.updateTypeOperatorNode(
          t,
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      200: function (t, r, i, o, s, l) {
        return i.factory.updateIndexedAccessTypeNode(
          t,
          C.checkDefined(s(t.objectType, r, Ri)),
          C.checkDefined(s(t.indexType, r, Ri)),
        );
      },
      201: function (t, r, i, o, s, l) {
        return i.factory.updateMappedTypeNode(
          t,
          l ? s(t.readonlyToken, l, Qie) : t.readonlyToken,
          C.checkDefined(s(t.typeParameter, r, sl)),
          s(t.nameType, r, Ri),
          l ? s(t.questionToken, l, Zie) : t.questionToken,
          s(t.type, r, Ri),
          o(t.members, r, _S),
        );
      },
      202: function (t, r, i, o, s, l) {
        return i.factory.updateLiteralTypeNode(
          t,
          C.checkDefined(s(t.literal, r, pte)),
        );
      },
      204: function (t, r, i, o, s, l) {
        return i.factory.updateTemplateLiteralType(
          t,
          C.checkDefined(s(t.head, r, GI)),
          o(t.templateSpans, r, bj),
        );
      },
      205: function (t, r, i, o, s, l) {
        return i.factory.updateTemplateLiteralTypeSpan(
          t,
          C.checkDefined(s(t.type, r, Ri)),
          C.checkDefined(s(t.literal, r, yF)),
        );
      },
      207: function (t, r, i, o, s, l) {
        return i.factory.updateObjectBindingPattern(t, o(t.elements, r, Ha));
      },
      208: function (t, r, i, o, s, l) {
        return i.factory.updateArrayBindingPattern(t, o(t.elements, r, bF));
      },
      209: function (t, r, i, o, s, l) {
        return i.factory.updateBindingElement(
          t,
          l ? s(t.dotDotDotToken, l, m4) : t.dotDotDotToken,
          s(t.propertyName, r, vc),
          C.checkDefined(s(t.name, r, $E)),
          s(t.initializer, r, St),
        );
      },
      210: function (t, r, i, o, s, l) {
        return i.factory.updateArrayLiteralExpression(t, o(t.elements, r, St));
      },
      211: function (t, r, i, o, s, l) {
        return i.factory.updateObjectLiteralExpression(
          t,
          o(t.properties, r, ny),
        );
      },
      212: function (t, r, i, o, s, l) {
        return mF(t)
          ? i.factory.updatePropertyAccessChain(
              t,
              C.checkDefined(s(t.expression, r, St)),
              l ? s(t.questionDotToken, l, h4) : t.questionDotToken,
              C.checkDefined(s(t.name, r, dg)),
            )
          : i.factory.updatePropertyAccessExpression(
              t,
              C.checkDefined(s(t.expression, r, St)),
              C.checkDefined(s(t.name, r, dg)),
            );
      },
      213: function (t, r, i, o, s, l) {
        return U9(t)
          ? i.factory.updateElementAccessChain(
              t,
              C.checkDefined(s(t.expression, r, St)),
              l ? s(t.questionDotToken, l, h4) : t.questionDotToken,
              C.checkDefined(s(t.argumentExpression, r, St)),
            )
          : i.factory.updateElementAccessExpression(
              t,
              C.checkDefined(s(t.expression, r, St)),
              C.checkDefined(s(t.argumentExpression, r, St)),
            );
      },
      214: function (t, r, i, o, s, l) {
        return KE(t)
          ? i.factory.updateCallChain(
              t,
              C.checkDefined(s(t.expression, r, St)),
              l ? s(t.questionDotToken, l, h4) : t.questionDotToken,
              o(t.typeArguments, r, Ri),
              o(t.arguments, r, St),
            )
          : i.factory.updateCallExpression(
              t,
              C.checkDefined(s(t.expression, r, St)),
              o(t.typeArguments, r, Ri),
              o(t.arguments, r, St),
            );
      },
      215: function (t, r, i, o, s, l) {
        return i.factory.updateNewExpression(
          t,
          C.checkDefined(s(t.expression, r, St)),
          o(t.typeArguments, r, Ri),
          o(t.arguments, r, St),
        );
      },
      216: function (t, r, i, o, s, l) {
        return i.factory.updateTaggedTemplateExpression(
          t,
          C.checkDefined(s(t.tag, r, St)),
          o(t.typeArguments, r, Ri),
          C.checkDefined(s(t.template, r, lI)),
        );
      },
      217: function (t, r, i, o, s, l) {
        return i.factory.updateTypeAssertion(
          t,
          C.checkDefined(s(t.type, r, Ri)),
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      218: function (t, r, i, o, s, l) {
        return i.factory.updateParenthesizedExpression(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      219: function (t, r, i, o, s, l) {
        return i.factory.updateFunctionExpression(
          t,
          o(t.modifiers, r, Aa),
          l ? s(t.asteriskToken, l, fw) : t.asteriskToken,
          s(t.name, r, He),
          o(t.typeParameters, r, sl),
          Fl(t.parameters, r, i, o),
          s(t.type, r, Ri),
          gf(t.body, r, i, s),
        );
      },
      220: function (t, r, i, o, s, l) {
        return i.factory.updateArrowFunction(
          t,
          o(t.modifiers, r, Aa),
          o(t.typeParameters, r, sl),
          Fl(t.parameters, r, i, o),
          s(t.type, r, Ri),
          l
            ? C.checkDefined(s(t.equalsGreaterThanToken, l, _ie))
            : t.equalsGreaterThanToken,
          gf(t.body, r, i, s),
        );
      },
      221: function (t, r, i, o, s, l) {
        return i.factory.updateDeleteExpression(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      222: function (t, r, i, o, s, l) {
        return i.factory.updateTypeOfExpression(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      223: function (t, r, i, o, s, l) {
        return i.factory.updateVoidExpression(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      224: function (t, r, i, o, s, l) {
        return i.factory.updateAwaitExpression(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      225: function (t, r, i, o, s, l) {
        return i.factory.updatePrefixUnaryExpression(
          t,
          C.checkDefined(s(t.operand, r, St)),
        );
      },
      226: function (t, r, i, o, s, l) {
        return i.factory.updatePostfixUnaryExpression(
          t,
          C.checkDefined(s(t.operand, r, St)),
        );
      },
      227: function (t, r, i, o, s, l) {
        return i.factory.updateBinaryExpression(
          t,
          C.checkDefined(s(t.left, r, St)),
          l ? C.checkDefined(s(t.operatorToken, l, toe)) : t.operatorToken,
          C.checkDefined(s(t.right, r, St)),
        );
      },
      228: function (t, r, i, o, s, l) {
        return i.factory.updateConditionalExpression(
          t,
          C.checkDefined(s(t.condition, r, St)),
          l ? C.checkDefined(s(t.questionToken, l, Nb)) : t.questionToken,
          C.checkDefined(s(t.whenTrue, r, St)),
          l ? C.checkDefined(s(t.colonToken, l, hie)) : t.colonToken,
          C.checkDefined(s(t.whenFalse, r, St)),
        );
      },
      229: function (t, r, i, o, s, l) {
        return i.factory.updateTemplateExpression(
          t,
          C.checkDefined(s(t.head, r, GI)),
          o(t.templateSpans, r, AD),
        );
      },
      230: function (t, r, i, o, s, l) {
        return i.factory.updateYieldExpression(
          t,
          l ? s(t.asteriskToken, l, fw) : t.asteriskToken,
          s(t.expression, r, St),
        );
      },
      231: function (t, r, i, o, s, l) {
        return i.factory.updateSpreadElement(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      232: function (t, r, i, o, s, l) {
        return i.factory.updateClassExpression(
          t,
          o(t.modifiers, r, fl),
          s(t.name, r, He),
          o(t.typeParameters, r, sl),
          o(t.heritageClauses, r, Fp),
          o(t.members, r, bc),
        );
      },
      234: function (t, r, i, o, s, l) {
        return i.factory.updateExpressionWithTypeArguments(
          t,
          C.checkDefined(s(t.expression, r, St)),
          o(t.typeArguments, r, Ri),
        );
      },
      235: function (t, r, i, o, s, l) {
        return i.factory.updateAsExpression(
          t,
          C.checkDefined(s(t.expression, r, St)),
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      239: function (t, r, i, o, s, l) {
        return i.factory.updateSatisfiesExpression(
          t,
          C.checkDefined(s(t.expression, r, St)),
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      236: function (t, r, i, o, s, l) {
        return tu(t)
          ? i.factory.updateNonNullChain(
              t,
              C.checkDefined(s(t.expression, r, St)),
            )
          : i.factory.updateNonNullExpression(
              t,
              C.checkDefined(s(t.expression, r, St)),
            );
      },
      237: function (t, r, i, o, s, l) {
        return i.factory.updateMetaProperty(
          t,
          C.checkDefined(s(t.name, r, He)),
        );
      },
      240: function (t, r, i, o, s, l) {
        return i.factory.updateTemplateSpan(
          t,
          C.checkDefined(s(t.expression, r, St)),
          C.checkDefined(s(t.literal, r, yF)),
        );
      },
      242: function (t, r, i, o, s, l) {
        return i.factory.updateBlock(t, o(t.statements, r, Vi));
      },
      244: function (t, r, i, o, s, l) {
        return i.factory.updateVariableStatement(
          t,
          o(t.modifiers, r, fl),
          C.checkDefined(s(t.declarationList, r, _d)),
        );
      },
      245: function (t, r, i, o, s, l) {
        return i.factory.updateExpressionStatement(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      246: function (t, r, i, o, s, l) {
        return i.factory.updateIfStatement(
          t,
          C.checkDefined(s(t.expression, r, St)),
          C.checkDefined(s(t.thenStatement, r, Vi, i.factory.liftToBlock)),
          s(t.elseStatement, r, Vi, i.factory.liftToBlock),
        );
      },
      247: function (t, r, i, o, s, l) {
        return i.factory.updateDoStatement(
          t,
          Wu(t.statement, r, i, s),
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      248: function (t, r, i, o, s, l) {
        return i.factory.updateWhileStatement(
          t,
          C.checkDefined(s(t.expression, r, St)),
          Wu(t.statement, r, i, s),
        );
      },
      249: function (t, r, i, o, s, l) {
        return i.factory.updateForStatement(
          t,
          s(t.initializer, r, Of),
          s(t.condition, r, St),
          s(t.incrementor, r, St),
          Wu(t.statement, r, i, s),
        );
      },
      250: function (t, r, i, o, s, l) {
        return i.factory.updateForInStatement(
          t,
          C.checkDefined(s(t.initializer, r, Of)),
          C.checkDefined(s(t.expression, r, St)),
          Wu(t.statement, r, i, s),
        );
      },
      251: function (t, r, i, o, s, l) {
        return i.factory.updateForOfStatement(
          t,
          l ? s(t.awaitModifier, l, yj) : t.awaitModifier,
          C.checkDefined(s(t.initializer, r, Of)),
          C.checkDefined(s(t.expression, r, St)),
          Wu(t.statement, r, i, s),
        );
      },
      252: function (t, r, i, o, s, l) {
        return i.factory.updateContinueStatement(t, s(t.label, r, He));
      },
      253: function (t, r, i, o, s, l) {
        return i.factory.updateBreakStatement(t, s(t.label, r, He));
      },
      254: function (t, r, i, o, s, l) {
        return i.factory.updateReturnStatement(t, s(t.expression, r, St));
      },
      255: function (t, r, i, o, s, l) {
        return i.factory.updateWithStatement(
          t,
          C.checkDefined(s(t.expression, r, St)),
          C.checkDefined(s(t.statement, r, Vi, i.factory.liftToBlock)),
        );
      },
      256: function (t, r, i, o, s, l) {
        return i.factory.updateSwitchStatement(
          t,
          C.checkDefined(s(t.expression, r, St)),
          C.checkDefined(s(t.caseBlock, r, HM)),
        );
      },
      257: function (t, r, i, o, s, l) {
        return i.factory.updateLabeledStatement(
          t,
          C.checkDefined(s(t.label, r, He)),
          C.checkDefined(s(t.statement, r, Vi, i.factory.liftToBlock)),
        );
      },
      258: function (t, r, i, o, s, l) {
        return i.factory.updateThrowStatement(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      259: function (t, r, i, o, s, l) {
        return i.factory.updateTryStatement(
          t,
          C.checkDefined(s(t.tryBlock, r, ea)),
          s(t.catchClause, r, US),
          s(t.finallyBlock, r, ea),
        );
      },
      261: function (t, r, i, o, s, l) {
        return i.factory.updateVariableDeclaration(
          t,
          C.checkDefined(s(t.name, r, $E)),
          l ? s(t.exclamationToken, l, mw) : t.exclamationToken,
          s(t.type, r, Ri),
          s(t.initializer, r, St),
        );
      },
      262: function (t, r, i, o, s, l) {
        return i.factory.updateVariableDeclarationList(
          t,
          o(t.declarations, r, yi),
        );
      },
      263: function (t, r, i, o, s, l) {
        return i.factory.updateFunctionDeclaration(
          t,
          o(t.modifiers, r, Aa),
          l ? s(t.asteriskToken, l, fw) : t.asteriskToken,
          s(t.name, r, He),
          o(t.typeParameters, r, sl),
          Fl(t.parameters, r, i, o),
          s(t.type, r, Ri),
          gf(t.body, r, i, s),
        );
      },
      264: function (t, r, i, o, s, l) {
        return i.factory.updateClassDeclaration(
          t,
          o(t.modifiers, r, fl),
          s(t.name, r, He),
          o(t.typeParameters, r, sl),
          o(t.heritageClauses, r, Fp),
          o(t.members, r, bc),
        );
      },
      265: function (t, r, i, o, s, l) {
        return i.factory.updateInterfaceDeclaration(
          t,
          o(t.modifiers, r, fl),
          C.checkDefined(s(t.name, r, He)),
          o(t.typeParameters, r, sl),
          o(t.heritageClauses, r, Fp),
          o(t.members, r, _S),
        );
      },
      266: function (t, r, i, o, s, l) {
        return i.factory.updateTypeAliasDeclaration(
          t,
          o(t.modifiers, r, fl),
          C.checkDefined(s(t.name, r, He)),
          o(t.typeParameters, r, sl),
          C.checkDefined(s(t.type, r, Ri)),
        );
      },
      267: function (t, r, i, o, s, l) {
        return i.factory.updateEnumDeclaration(
          t,
          o(t.modifiers, r, fl),
          C.checkDefined(s(t.name, r, He)),
          o(t.members, r, py),
        );
      },
      268: function (t, r, i, o, s, l) {
        return i.factory.updateModuleDeclaration(
          t,
          o(t.modifiers, r, fl),
          C.checkDefined(s(t.name, r, eoe)),
          s(t.body, r, mte),
        );
      },
      269: function (t, r, i, o, s, l) {
        return i.factory.updateModuleBlock(t, o(t.statements, r, Vi));
      },
      270: function (t, r, i, o, s, l) {
        return i.factory.updateCaseBlock(t, o(t.clauses, r, AF));
      },
      271: function (t, r, i, o, s, l) {
        return i.factory.updateNamespaceExportDeclaration(
          t,
          C.checkDefined(s(t.name, r, He)),
        );
      },
      272: function (t, r, i, o, s, l) {
        return i.factory.updateImportEqualsDeclaration(
          t,
          o(t.modifiers, r, fl),
          t.isTypeOnly,
          C.checkDefined(s(t.name, r, He)),
          C.checkDefined(s(t.moduleReference, r, vte)),
        );
      },
      273: function (t, r, i, o, s, l) {
        return i.factory.updateImportDeclaration(
          t,
          o(t.modifiers, r, fl),
          s(t.importClause, r, Vm),
          C.checkDefined(s(t.moduleSpecifier, r, St)),
          s(t.attributes, r, A1),
        );
      },
      301: function (t, r, i, o, s, l) {
        return i.factory.updateImportAttributes(
          t,
          o(t.elements, r, Die),
          t.multiLine,
        );
      },
      302: function (t, r, i, o, s, l) {
        return i.factory.updateImportAttribute(
          t,
          C.checkDefined(s(t.name, r, ate)),
          C.checkDefined(s(t.value, r, St)),
        );
      },
      274: function (t, r, i, o, s, l) {
        return i.factory.updateImportClause(
          t,
          t.phaseModifier,
          s(t.name, r, He),
          s(t.namedBindings, r, rG),
        );
      },
      275: function (t, r, i, o, s, l) {
        return i.factory.updateNamespaceImport(
          t,
          C.checkDefined(s(t.name, r, He)),
        );
      },
      281: function (t, r, i, o, s, l) {
        return i.factory.updateNamespaceExport(
          t,
          C.checkDefined(s(t.name, r, He)),
        );
      },
      276: function (t, r, i, o, s, l) {
        return i.factory.updateNamedImports(t, o(t.elements, r, Eu));
      },
      277: function (t, r, i, o, s, l) {
        return i.factory.updateImportSpecifier(
          t,
          t.isTypeOnly,
          s(t.propertyName, r, S4),
          C.checkDefined(s(t.name, r, He)),
        );
      },
      278: function (t, r, i, o, s, l) {
        return i.factory.updateExportAssignment(
          t,
          o(t.modifiers, r, fl),
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      279: function (t, r, i, o, s, l) {
        return i.factory.updateExportDeclaration(
          t,
          o(t.modifiers, r, fl),
          t.isTypeOnly,
          s(t.exportClause, r, q9),
          s(t.moduleSpecifier, r, St),
          s(t.attributes, r, A1),
        );
      },
      280: function (t, r, i, o, s, l) {
        return i.factory.updateNamedExports(t, o(t.elements, r, ou));
      },
      282: function (t, r, i, o, s, l) {
        return i.factory.updateExportSpecifier(
          t,
          t.isTypeOnly,
          s(t.propertyName, r, S4),
          C.checkDefined(s(t.name, r, S4)),
        );
      },
      284: function (t, r, i, o, s, l) {
        return i.factory.updateExternalModuleReference(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      285: function (t, r, i, o, s, l) {
        return i.factory.updateJsxElement(
          t,
          C.checkDefined(s(t.openingElement, r, ph)),
          o(t.children, r, J2),
          C.checkDefined(s(t.closingElement, r, VS)),
        );
      },
      286: function (t, r, i, o, s, l) {
        return i.factory.updateJsxSelfClosingElement(
          t,
          C.checkDefined(s(t.tagName, r, BN)),
          o(t.typeArguments, r, Ri),
          C.checkDefined(s(t.attributes, r, jS)),
        );
      },
      287: function (t, r, i, o, s, l) {
        return i.factory.updateJsxOpeningElement(
          t,
          C.checkDefined(s(t.tagName, r, BN)),
          o(t.typeArguments, r, Ri),
          C.checkDefined(s(t.attributes, r, jS)),
        );
      },
      288: function (t, r, i, o, s, l) {
        return i.factory.updateJsxClosingElement(
          t,
          C.checkDefined(s(t.tagName, r, BN)),
        );
      },
      296: function (t, r, i, o, s, l) {
        return i.factory.updateJsxNamespacedName(
          t,
          C.checkDefined(s(t.namespace, r, He)),
          C.checkDefined(s(t.name, r, He)),
        );
      },
      289: function (t, r, i, o, s, l) {
        return i.factory.updateJsxFragment(
          t,
          C.checkDefined(s(t.openingFragment, r, jm)),
          o(t.children, r, J2),
          C.checkDefined(s(t.closingFragment, r, Nie)),
        );
      },
      292: function (t, r, i, o, s, l) {
        return i.factory.updateJsxAttribute(
          t,
          C.checkDefined(s(t.name, r, Fre)),
          s(t.initializer, r, bte),
        );
      },
      293: function (t, r, i, o, s, l) {
        return i.factory.updateJsxAttributes(t, o(t.properties, r, EF));
      },
      294: function (t, r, i, o, s, l) {
        return i.factory.updateJsxSpreadAttribute(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      295: function (t, r, i, o, s, l) {
        return i.factory.updateJsxExpression(t, s(t.expression, r, St));
      },
      297: function (t, r, i, o, s, l) {
        return i.factory.updateCaseClause(
          t,
          C.checkDefined(s(t.expression, r, St)),
          o(t.statements, r, Vi),
        );
      },
      298: function (t, r, i, o, s, l) {
        return i.factory.updateDefaultClause(t, o(t.statements, r, Vi));
      },
      299: function (t, r, i, o, s, l) {
        return i.factory.updateHeritageClause(t, o(t.types, r, dy));
      },
      300: function (t, r, i, o, s, l) {
        return i.factory.updateCatchClause(
          t,
          s(t.variableDeclaration, r, yi),
          C.checkDefined(s(t.block, r, ea)),
        );
      },
      304: function (t, r, i, o, s, l) {
        return i.factory.updatePropertyAssignment(
          t,
          C.checkDefined(s(t.name, r, vc)),
          C.checkDefined(s(t.initializer, r, St)),
        );
      },
      305: function (t, r, i, o, s, l) {
        return i.factory.updateShorthandPropertyAssignment(
          t,
          C.checkDefined(s(t.name, r, He)),
          s(t.objectAssignmentInitializer, r, St),
        );
      },
      306: function (t, r, i, o, s, l) {
        return i.factory.updateSpreadAssignment(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      307: function (t, r, i, o, s, l) {
        return i.factory.updateEnumMember(
          t,
          C.checkDefined(s(t.name, r, vc)),
          s(t.initializer, r, St),
        );
      },
      308: function (t, r, i, o, s, l) {
        return i.factory.updateSourceFile(t, zU(t.statements, r, i));
      },
      356: function (t, r, i, o, s, l) {
        return i.factory.updatePartiallyEmittedExpression(
          t,
          C.checkDefined(s(t.expression, r, St)),
        );
      },
      357: function (t, r, i, o, s, l) {
        return i.factory.updateCommaListExpression(t, o(t.elements, r, St));
      },
    };
    function SHe(e) {
      return (
        C.assert(e.length <= 1, "Too many nodes written to output."),
        og(e)
      );
    }
    function pae(e, t, r, i, o) {
      var { enter: s, exit: l } = o.extendedDiagnostics
          ? t9("Source Map", "beforeSourcemap", "afterSourcemap")
          : dZ,
        u = [],
        d = [],
        _ = new Map(),
        h,
        g = [],
        E,
        A = [],
        R = "",
        N = 0,
        P = 0,
        k = 0,
        W = 0,
        O = 0,
        G = 0,
        j = !1,
        J = 0,
        Z = 0,
        q = 0,
        ye = 0,
        ie = 0,
        K = 0,
        pe = !1,
        de = !1,
        fe = !1;
      return {
        getSources: () => u,
        addSource: ve,
        setSourceContent: xe,
        addName: X,
        addMapping: Se,
        appendSourceMap: re,
        toJSON: ce,
        toString: () => JSON.stringify(ce()),
      };
      function ve(_e) {
        s();
        const je = PR(
          i,
          _e,
          e.getCurrentDirectory(),
          e.getCanonicalFileName,
          !0,
        );
        let Ge = _.get(je);
        return (
          Ge === void 0 &&
            ((Ge = d.length), d.push(je), u.push(_e), _.set(je, Ge)),
          l(),
          Ge
        );
      }
      function xe(_e, je) {
        if ((s(), je !== null)) {
          for (h || (h = []); h.length < _e; ) h.push(null);
          h[_e] = je;
        }
        l();
      }
      function X(_e) {
        (s(), E || (E = new Map()));
        let je = E.get(_e);
        return (
          je === void 0 && ((je = g.length), g.push(_e), E.set(_e, je)),
          l(),
          je
        );
      }
      function Ce(_e, je) {
        return !pe || J !== _e || Z !== je;
      }
      function Je(_e, je, Ge) {
        return (
          _e !== void 0 &&
          je !== void 0 &&
          Ge !== void 0 &&
          q === _e &&
          (ye > je || (ye === je && ie > Ge))
        );
      }
      function Se(_e, je, Ge, We, at, Wt) {
        (C.assert(_e >= J, "generatedLine cannot backtrack"),
          C.assert(je >= 0, "generatedCharacter cannot be negative"),
          C.assert(Ge === void 0 || Ge >= 0, "sourceIndex cannot be negative"),
          C.assert(We === void 0 || We >= 0, "sourceLine cannot be negative"),
          C.assert(
            at === void 0 || at >= 0,
            "sourceCharacter cannot be negative",
          ),
          s(),
          (Ce(_e, je) || Je(Ge, We, at)) &&
            (Be(), (J = _e), (Z = je), (de = !1), (fe = !1), (pe = !0)),
          Ge !== void 0 &&
            We !== void 0 &&
            at !== void 0 &&
            ((q = Ge),
            (ye = We),
            (ie = at),
            (de = !0),
            Wt !== void 0 && ((K = Wt), (fe = !0))),
          l());
      }
      function re(_e, je, Ge, We, at, Wt) {
        (C.assert(_e >= J, "generatedLine cannot backtrack"),
          C.assert(je >= 0, "generatedCharacter cannot be negative"),
          s());
        const cn = [];
        let gn;
        const Kn = jU(Ge.mappings);
        for (const _t of Kn) {
          if (
            Wt &&
            (_t.generatedLine > Wt.line ||
              (_t.generatedLine === Wt.line &&
                _t.generatedCharacter > Wt.character))
          )
            break;
          if (
            at &&
            (_t.generatedLine < at.line ||
              (at.line === _t.generatedLine &&
                _t.generatedCharacter < at.character))
          )
            continue;
          let en, ir, Di, lo;
          if (_t.sourceIndex !== void 0) {
            if (((en = cn[_t.sourceIndex]), en === void 0)) {
              const Pr = Ge.sources[_t.sourceIndex],
                Ci = Ge.sourceRoot ? Qr(Ge.sourceRoot, Pr) : Pr,
                $e = Qr(ci(We), Ci);
              ((cn[_t.sourceIndex] = en = ve($e)),
                Ge.sourcesContent &&
                  typeof Ge.sourcesContent[_t.sourceIndex] == "string" &&
                  xe(en, Ge.sourcesContent[_t.sourceIndex]));
            }
            ((ir = _t.sourceLine),
              (Di = _t.sourceCharacter),
              Ge.names &&
                _t.nameIndex !== void 0 &&
                (gn || (gn = []),
                (lo = gn[_t.nameIndex]),
                lo === void 0 &&
                  (gn[_t.nameIndex] = lo = X(Ge.names[_t.nameIndex]))));
          }
          const zt = _t.generatedLine - (at ? at.line : 0),
            Zr = zt + _e,
            Ai =
              at && at.line === _t.generatedLine
                ? _t.generatedCharacter - at.character
                : _t.generatedCharacter,
            Ni = zt === 0 ? Ai + je : Ai;
          Se(Zr, Ni, en, ir, Di, lo);
        }
        l();
      }
      function be() {
        return (
          !j || N !== J || P !== Z || k !== q || W !== ye || O !== ie || G !== K
        );
      }
      function Ne(_e) {
        (A.push(_e), A.length >= 1024 && lt());
      }
      function Be() {
        if (!(!pe || !be())) {
          if ((s(), N < J)) {
            do (Ne(59), N++);
            while (N < J);
            P = 0;
          } else
            (C.assertEqual(N, J, "generatedLine cannot backtrack"),
              j && Ne(44));
          (Re(Z - P),
            (P = Z),
            de &&
              (Re(q - k),
              (k = q),
              Re(ye - W),
              (W = ye),
              Re(ie - O),
              (O = ie),
              fe && (Re(K - G), (G = K))),
            (j = !0),
            l());
        }
      }
      function lt() {
        A.length > 0 &&
          ((R += String.fromCharCode.apply(void 0, A)), (A.length = 0));
      }
      function ce() {
        return (
          Be(),
          lt(),
          {
            version: 3,
            file: t,
            sourceRoot: r,
            sources: d,
            names: g,
            mappings: R,
            sourcesContent: h,
          }
        );
      }
      function Re(_e) {
        _e < 0 ? (_e = (-_e << 1) + 1) : (_e = _e << 1);
        do {
          let je = _e & 31;
          ((_e = _e >> 5), _e > 0 && (je = je | 32), Ne(IHe(je)));
        } while (_e > 0);
      }
    }
    var fae = /\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,
      BU = /^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,
      GU = /^\s*(\/\/[@#] .*)?$/;
    function VU(e, t) {
      return {
        getLineCount: () => t.length,
        getLineText: (r) => e.substring(t[r], t[r + 1]),
      };
    }
    function mae(e) {
      for (let t = e.getLineCount() - 1; t >= 0; t--) {
        const r = e.getLineText(t),
          i = BU.exec(r);
        if (i) return i[1].trimEnd();
        if (!r.match(GU)) break;
      }
    }
    function EHe(e) {
      return typeof e == "string" || e === null;
    }
    function AHe(e) {
      return (
        e !== null &&
        typeof e == "object" &&
        e.version === 3 &&
        typeof e.file == "string" &&
        typeof e.mappings == "string" &&
        Mo(e.sources) &&
        Vn(e.sources, Bo) &&
        (e.sourceRoot === void 0 ||
          e.sourceRoot === null ||
          typeof e.sourceRoot == "string") &&
        (e.sourcesContent === void 0 ||
          e.sourcesContent === null ||
          (Mo(e.sourcesContent) && Vn(e.sourcesContent, EHe))) &&
        (e.names === void 0 ||
          e.names === null ||
          (Mo(e.names) && Vn(e.names, Bo)))
      );
    }
    function hae(e) {
      try {
        const t = JSON.parse(e);
        if (AHe(t)) return t;
      } catch {}
    }
    function jU(e) {
      let t = !1,
        r = 0,
        i = 0,
        o = 0,
        s = 0,
        l = 0,
        u = 0,
        d = 0,
        _;
      return {
        get pos() {
          return r;
        },
        get error() {
          return _;
        },
        get state() {
          return h(!0, !0);
        },
        next() {
          for (; !t && r < e.length; ) {
            const k = e.charCodeAt(r);
            if (k === 59) {
              (i++, (o = 0), r++);
              continue;
            }
            if (k === 44) {
              r++;
              continue;
            }
            let W = !1,
              O = !1;
            if (((o += P()), R())) return g();
            if (o < 0) return A("Invalid generatedCharacter found");
            if (!N()) {
              if (((W = !0), (s += P()), R())) return g();
              if (s < 0) return A("Invalid sourceIndex found");
              if (N())
                return A("Unsupported Format: No entries after sourceIndex");
              if (((l += P()), R())) return g();
              if (l < 0) return A("Invalid sourceLine found");
              if (N())
                return A("Unsupported Format: No entries after sourceLine");
              if (((u += P()), R())) return g();
              if (u < 0) return A("Invalid sourceCharacter found");
              if (!N()) {
                if (((O = !0), (d += P()), R())) return g();
                if (d < 0) return A("Invalid nameIndex found");
                if (!N())
                  return A("Unsupported Error Format: Entries after nameIndex");
              }
            }
            return { value: h(W, O), done: t };
          }
          return g();
        },
        [Symbol.iterator]() {
          return this;
        },
      };
      function h(k, W) {
        return {
          generatedLine: i,
          generatedCharacter: o,
          sourceIndex: k ? s : void 0,
          sourceLine: k ? l : void 0,
          sourceCharacter: k ? u : void 0,
          nameIndex: W ? d : void 0,
        };
      }
      function g() {
        return ((t = !0), { value: void 0, done: !0 });
      }
      function E(k) {
        _ === void 0 && (_ = k);
      }
      function A(k) {
        return (E(k), g());
      }
      function R() {
        return _ !== void 0;
      }
      function N() {
        return (
          r === e.length || e.charCodeAt(r) === 44 || e.charCodeAt(r) === 59
        );
      }
      function P() {
        let k = !0,
          W = 0,
          O = 0;
        for (; k; r++) {
          if (r >= e.length)
            return (
              E(
                "Error in decoding base64VLQFormatDecode, past the mapping string",
              ),
              -1
            );
          const G = xHe(e.charCodeAt(r));
          if (G === -1) return (E("Invalid character in VLQ"), -1);
          ((k = (G & 32) !== 0), (O = O | ((G & 31) << W)), (W += 5));
        }
        return ((O & 1) === 0 ? (O = O >> 1) : ((O = O >> 1), (O = -O)), O);
      }
    }
    function U1e(e, t) {
      return (
        e === t ||
        (e.generatedLine === t.generatedLine &&
          e.generatedCharacter === t.generatedCharacter &&
          e.sourceIndex === t.sourceIndex &&
          e.sourceLine === t.sourceLine &&
          e.sourceCharacter === t.sourceCharacter &&
          e.nameIndex === t.nameIndex)
      );
    }
    function _ae(e) {
      return (
        e.sourceIndex !== void 0 &&
        e.sourceLine !== void 0 &&
        e.sourceCharacter !== void 0
      );
    }
    function IHe(e) {
      return e >= 0 && e < 26
        ? 65 + e
        : e >= 26 && e < 52
          ? 97 + e - 26
          : e >= 52 && e < 62
            ? 48 + e - 52
            : e === 62
              ? 43
              : e === 63
                ? 47
                : C.fail(`${e}: not a base64 value`);
    }
    function xHe(e) {
      return e >= 65 && e <= 90
        ? e - 65
        : e >= 97 && e <= 122
          ? e - 97 + 26
          : e >= 48 && e <= 57
            ? e - 48 + 52
            : e === 43
              ? 62
              : e === 47
                ? 63
                : -1;
    }
    function H1e(e) {
      return e.sourceIndex !== void 0 && e.sourcePosition !== void 0;
    }
    function q1e(e, t) {
      return (
        e.generatedPosition === t.generatedPosition &&
        e.sourceIndex === t.sourceIndex &&
        e.sourcePosition === t.sourcePosition
      );
    }
    function RHe(e, t) {
      return (
        C.assert(e.sourceIndex === t.sourceIndex),
        js(e.sourcePosition, t.sourcePosition)
      );
    }
    function DHe(e, t) {
      return js(e.generatedPosition, t.generatedPosition);
    }
    function CHe(e) {
      return e.sourcePosition;
    }
    function NHe(e) {
      return e.generatedPosition;
    }
    function gae(e, t, r) {
      const i = ci(r),
        o = t.sourceRoot ? To(t.sourceRoot, i) : i,
        s = To(t.file, i),
        l = e.getSourceFileLike(s),
        u = t.sources.map((W) => To(W, o)),
        d = new Map(u.map((W, O) => [e.getCanonicalFileName(W), O]));
      let _, h, g;
      return { getSourcePosition: k, getGeneratedPosition: P };
      function E(W) {
        const O =
          l !== void 0 ? A2(l, W.generatedLine, W.generatedCharacter, !0) : -1;
        let G, j;
        if (_ae(W)) {
          const J = e.getSourceFileLike(u[W.sourceIndex]);
          ((G = t.sources[W.sourceIndex]),
            (j =
              J !== void 0 ? A2(J, W.sourceLine, W.sourceCharacter, !0) : -1));
        }
        return {
          generatedPosition: O,
          source: G,
          sourceIndex: W.sourceIndex,
          sourcePosition: j,
          nameIndex: W.nameIndex,
        };
      }
      function A() {
        if (_ === void 0) {
          const W = jU(t.mappings),
            O = Co(W, E);
          W.error !== void 0
            ? (e.log &&
                e.log(`Encountered error while decoding sourcemap: ${W.error}`),
              (_ = ae))
            : (_ = O);
        }
        return _;
      }
      function R(W) {
        if (g === void 0) {
          const O = [];
          for (const G of A()) {
            if (!H1e(G)) continue;
            let j = O[G.sourceIndex];
            (j || (O[G.sourceIndex] = j = []), j.push(G));
          }
          g = O.map((G) => fN(G, RHe, q1e));
        }
        return g[W];
      }
      function N() {
        if (h === void 0) {
          const W = [];
          for (const O of A()) W.push(O);
          h = fN(W, DHe, q1e);
        }
        return h;
      }
      function P(W) {
        const O = d.get(e.getCanonicalFileName(W.fileName));
        if (O === void 0) return W;
        const G = R(O);
        if (!yt(G)) return W;
        let j = YA(G, W.pos, CHe, js);
        j < 0 && (j = ~j);
        const J = G[j];
        return J === void 0 || J.sourceIndex !== O
          ? W
          : { fileName: s, pos: J.generatedPosition };
      }
      function k(W) {
        const O = N();
        if (!yt(O)) return W;
        let G = YA(O, W.pos, NHe, js);
        G < 0 && (G = ~G);
        const j = O[G];
        return j === void 0 || !H1e(j)
          ? W
          : { fileName: u[j.sourceIndex], pos: j.sourcePosition };
      }
    }
    var UU = { getSourcePosition: Vs, getGeneratedPosition: Vs };
    function Fu(e) {
      return ((e = yl(e)), e ? ls(e) : 0);
    }
    function J1e(e) {
      return !e || (!n_(e) && !Jf(e)) ? !1 : yt(e.elements, K1e);
    }
    function K1e(e) {
      return N_(e.propertyName || e.name);
    }
    function hh(e, t) {
      return r;
      function r(o) {
        return o.kind === 308 ? t(o) : i(o);
      }
      function i(o) {
        return e.factory.createBundle(Vt(o.sourceFiles, t));
      }
    }
    function yae(e) {
      return !!ZR(e);
    }
    function m3(e) {
      if (ZR(e)) return !0;
      const t = e.importClause && e.importClause.namedBindings;
      if (!t || !n_(t)) return !1;
      let r = 0;
      for (const i of t.elements) K1e(i) && r++;
      return (
        (r > 0 && r !== t.elements.length) ||
        (!!(t.elements.length - r) && s1(e))
      );
    }
    function HU(e) {
      return (
        !m3(e) &&
        (s1(e) ||
          (!!e.importClause &&
            n_(e.importClause.namedBindings) &&
            J1e(e.importClause.namedBindings)))
      );
    }
    function qU(e, t) {
      const r = e.getEmitResolver(),
        i = e.getCompilerOptions(),
        o = [],
        s = new MHe(),
        l = [],
        u = new Map(),
        d = new Set();
      let _,
        h = !1,
        g,
        E = !1,
        A = !1,
        R = !1;
      for (const W of t.statements)
        switch (W.kind) {
          case 273:
            (o.push(W), !A && m3(W) && (A = !0), !R && HU(W) && (R = !0));
            break;
          case 272:
            W.moduleReference.kind === 284 && o.push(W);
            break;
          case 279:
            if (W.moduleSpecifier)
              if (!W.exportClause) (o.push(W), (E = !0));
              else if ((o.push(W), Jf(W.exportClause)))
                (P(W), R || (R = J1e(W.exportClause)));
              else {
                const O = W.exportClause.name,
                  G = yb(O);
                (u.get(G) || (lP(l, Fu(W), O), u.set(G, !0), (_ = Bn(_, O))),
                  (A = !0));
              }
            else P(W);
            break;
          case 278:
            W.isExportEquals && !g && (g = W);
            break;
          case 244:
            if (di(W, 32))
              for (const O of W.declarationList.declarations)
                _ = X1e(O, u, _, l);
            break;
          case 263:
            di(W, 32) && k(W, void 0, di(W, 2048));
            break;
          case 264:
            if (di(W, 32))
              if (di(W, 2048))
                h || (lP(l, Fu(W), e.factory.getDeclarationName(W)), (h = !0));
              else {
                const O = W.name;
                O &&
                  !u.get(Kr(O)) &&
                  (lP(l, Fu(W), O), u.set(Kr(O), !0), (_ = Bn(_, O)));
              }
            break;
        }
      const N = Bj(e.factory, e.getEmitHelperFactory(), t, i, E, A, R);
      return (
        N && o.unshift(N),
        {
          externalImports: o,
          exportSpecifiers: s,
          exportEquals: g,
          hasExportStarsToExportValues: E,
          exportedBindings: l,
          exportedNames: _,
          exportedFunctions: d,
          externalHelpersImportDeclaration: N,
        }
      );
      function P(W) {
        for (const O of ma(W.exportClause, Jf).elements) {
          const G = yb(O.name);
          if (!u.get(G)) {
            const j = O.propertyName || O.name;
            if (j.kind !== 11) {
              W.moduleSpecifier || s.add(j, O);
              const J =
                r.getReferencedImportDeclaration(j) ||
                r.getReferencedValueDeclaration(j);
              if (J) {
                if (J.kind === 263) {
                  k(J, O.name, N_(O.name));
                  continue;
                }
                lP(l, Fu(J), O.name);
              }
            }
            (u.set(G, !0), (_ = Bn(_, O.name)));
          }
        }
      }
      function k(W, O, G) {
        if ((d.add(yl(W, Zl)), G))
          h || (lP(l, Fu(W), O ?? e.factory.getDeclarationName(W)), (h = !0));
        else {
          O ?? (O = W.name);
          const j = yb(O);
          u.get(j) || (lP(l, Fu(W), O), u.set(j, !0));
        }
      }
    }
    function X1e(e, t, r, i) {
      if (Qo(e.name))
        for (const o of e.name.elements) Jc(o) || (r = X1e(o, t, r, i));
      else if (!pl(e.name)) {
        const o = Kr(e.name);
        t.get(o) ||
          (t.set(o, !0),
          (r = Bn(r, e.name)),
          fy(e.name) && lP(i, Fu(e), e.name));
      }
      return r;
    }
    function lP(e, t, r) {
      let i = e[t];
      return (i ? i.push(r) : (e[t] = i = [r]), i);
    }
    var jD = class iN {
        constructor() {
          this._map = new Map();
        }
        get size() {
          return this._map.size;
        }
        has(t) {
          return this._map.has(iN.toKey(t));
        }
        get(t) {
          return this._map.get(iN.toKey(t));
        }
        set(t, r) {
          return (this._map.set(iN.toKey(t), r), this);
        }
        delete(t) {
          var r;
          return (
            ((r = this._map) == null ? void 0 : r.delete(iN.toKey(t))) ?? !1
          );
        }
        clear() {
          this._map.clear();
        }
        values() {
          return this._map.values();
        }
        static toKey(t) {
          if (YE(t) || pl(t)) {
            const r = t.emitNode.autoGenerate;
            if ((r.flags & 7) === 4) {
              const i = Rw(t),
                o = dg(i) && i !== t ? iN.toKey(i) : `(generated@${ls(i)})`;
              return r0(!1, r.prefix, o, r.suffix, iN.toKey);
            } else {
              const i = `(auto@${r.id})`;
              return r0(!1, r.prefix, i, r.suffix, iN.toKey);
            }
          }
          return eo(t) ? Kr(t).slice(1) : Kr(t);
        }
      },
      MHe = class extends jD {
        add(e, t) {
          let r = this.get(e);
          return (r ? r.push(t) : this.set(e, (r = [t])), r);
        }
        remove(e, t) {
          const r = this.get(e);
          r && (ZA(r, t), r.length || this.delete(e));
        }
      };
    function KS(e) {
      return ds(e) || e.kind === 9 || ep(e.kind) || He(e);
    }
    function z_(e) {
      return !He(e) && KS(e);
    }
    function cP(e) {
      return e >= 65 && e <= 79;
    }
    function dP(e) {
      switch (e) {
        case 65:
          return 40;
        case 66:
          return 41;
        case 67:
          return 42;
        case 68:
          return 43;
        case 69:
          return 44;
        case 70:
          return 45;
        case 71:
          return 48;
        case 72:
          return 49;
        case 73:
          return 50;
        case 74:
          return 51;
        case 75:
          return 52;
        case 79:
          return 53;
        case 76:
          return 57;
        case 77:
          return 56;
        case 78:
          return 61;
      }
    }
    function h3(e) {
      if (!od(e)) return;
      const t = us(e.expression);
      return n1(t) ? t : void 0;
    }
    function Y1e(e, t, r) {
      for (let i = t; i < e.length; i += 1) {
        const o = e[i];
        if (h3(o)) return (r.unshift(i), !0);
        if (E1(o) && Y1e(o.tryBlock.statements, 0, r))
          return (r.unshift(i), !0);
      }
      return !1;
    }
    function _3(e, t) {
      const r = [];
      return (Y1e(e, t, r), r);
    }
    function JU(e, t, r) {
      return Un(e.members, (i) => LHe(i, t, r));
    }
    function PHe(e) {
      return kHe(e) || Ql(e);
    }
    function g3(e) {
      return Un(e.members, PHe);
    }
    function LHe(e, t, r) {
      return Po(e) && (!!e.initializer || !t) && wc(e) === r;
    }
    function kHe(e) {
      return Po(e) && wc(e);
    }
    function Hw(e) {
      return e.kind === 173 && e.initializer !== void 0;
    }
    function vae(e) {
      return !ua(e) && (sI(e) || Yu(e)) && eo(e.name);
    }
    function bae(e) {
      let t;
      if (e) {
        const r = e.parameters,
          i = r.length > 0 && Sb(r[0]),
          o = i ? 1 : 0,
          s = i ? r.length - 1 : r.length;
        for (let l = 0; l < s; l++) {
          const u = r[l + o];
          (t || pf(u)) && (t || (t = new Array(s)), (t[l] = lb(u)));
        }
      }
      return t;
    }
    function KU(e, t) {
      const r = lb(e),
        i = t ? bae(yg(e)) : void 0;
      if (!(!yt(r) && !yt(i))) return { decorators: r, parameters: i };
    }
    function y3(e, t, r) {
      switch (e.kind) {
        case 178:
        case 179:
          return r ? wHe(e, t) : $1e(e, !1);
        case 175:
          return $1e(e, r);
        case 173:
          return OHe(e);
        default:
          return;
      }
    }
    function wHe(e, t, r) {
      if (!e.body) return;
      const {
          firstAccessor: i,
          secondAccessor: o,
          getAccessor: s,
          setAccessor: l,
        } = MS(t.members, e),
        u = pf(i) ? i : o && pf(o) ? o : void 0;
      if (!u || e !== u) return;
      const d = lb(u),
        _ = bae(l);
      if (!(!yt(d) && !yt(_)))
        return {
          decorators: d,
          parameters: _,
          getDecorators: s && lb(s),
          setDecorators: l && lb(l),
        };
    }
    function $1e(e, t) {
      if (!e.body) return;
      const r = lb(e),
        i = t ? bae(e) : void 0;
      if (!(!yt(r) && !yt(i))) return { decorators: r, parameters: i };
    }
    function OHe(e) {
      const t = lb(e);
      if (yt(t)) return { decorators: t };
    }
    function WHe(e, t) {
      for (; e; ) {
        const r = t(e);
        if (r !== void 0) return r;
        e = e.previous;
      }
    }
    function Tae(e) {
      return { data: e };
    }
    function XU(e, t) {
      var r, i;
      return YE(t)
        ? (r = e?.generatedIdentifiers) == null
          ? void 0
          : r.get(Rw(t))
        : (i = e?.identifiers) == null
          ? void 0
          : i.get(t.escapedText);
    }
    function L1(e, t, r) {
      YE(t)
        ? (e.generatedIdentifiers ?? (e.generatedIdentifiers = new Map()),
          e.generatedIdentifiers.set(Rw(t), r))
        : (e.identifiers ?? (e.identifiers = new Map()),
          e.identifiers.set(t.escapedText, r));
    }
    function Sae(e, t) {
      return WHe(e, (r) => XU(r.privateEnv, t));
    }
    function FHe(e) {
      return !e.initializer && He(e.name);
    }
    function qw(e) {
      return Vn(e, FHe);
    }
    function ax(e, t) {
      if (!e || !ka(e) || !Tk(e.text, t)) return e;
      const r = av(e.text, Zw(e.text, t));
      return r !== e.text
        ? jr(vt(L.createStringLiteral(r, e.singleQuote), e), e)
        : e;
    }
    var Eae = ((e) => (
      (e[(e.All = 0)] = "All"),
      (e[(e.ObjectRest = 1)] = "ObjectRest"),
      e
    ))(Eae || {});
    function k1(e, t, r, i, o, s) {
      let l = e,
        u;
      if (rv(e))
        for (u = e.right; Une(e.left) || _V(e.left); )
          if (rv(u)) ((l = e = u), (u = e.right));
          else return C.checkDefined(st(u, t, St));
      let d;
      const _ = {
        context: r,
        level: i,
        downlevelIteration: !!r.getCompilerOptions().downlevelIteration,
        hoistTempVariables: !0,
        emitExpression: h,
        emitBindingOrAssignment: g,
        createArrayBindingOrAssignmentPattern: (E) => qHe(r.factory, E),
        createObjectBindingOrAssignmentPattern: (E) => KHe(r.factory, E),
        createArrayBindingOrAssignmentElement: YHe,
        visitor: t,
      };
      if (
        (u &&
          ((u = st(u, t, St)),
          C.assert(u),
          (He(u) && Aae(e, u.escapedText)) || Iae(e)
            ? (u = sx(_, u, !1, l))
            : o
              ? (u = sx(_, u, !0, l))
              : Os(e) && (l = u)),
        uP(_, e, u, l, rv(e)),
        u && o)
      ) {
        if (!yt(d)) return u;
        d.push(u);
      }
      return (
        r.factory.inlineExpressions(d) || r.factory.createOmittedExpression()
      );
      function h(E) {
        d = Bn(d, E);
      }
      function g(E, A, R, N) {
        C.assertNode(E, s ? He : St);
        const P = s
          ? s(E, A, R)
          : vt(r.factory.createAssignment(C.checkDefined(st(E, t, St)), A), R);
        ((P.original = N), h(P));
      }
    }
    function Aae(e, t) {
      const r = kb(e);
      return B2(r) ? zHe(r, t) : He(r) ? r.escapedText === t : !1;
    }
    function zHe(e, t) {
      const r = LD(e);
      for (const i of r) if (Aae(i, t)) return !0;
      return !1;
    }
    function Iae(e) {
      const t = L4(e);
      if (t && va(t) && !XE(t.expression)) return !0;
      const r = kb(e);
      return !!r && B2(r) && BHe(r);
    }
    function BHe(e) {
      return !!Ye(LD(e), Iae);
    }
    function XS(e, t, r, i, o, s = !1, l) {
      let u;
      const d = [],
        _ = [],
        h = {
          context: r,
          level: i,
          downlevelIteration: !!r.getCompilerOptions().downlevelIteration,
          hoistTempVariables: s,
          emitExpression: g,
          emitBindingOrAssignment: E,
          createArrayBindingOrAssignmentPattern: (A) => HHe(r.factory, A),
          createObjectBindingOrAssignmentPattern: (A) => JHe(r.factory, A),
          createArrayBindingOrAssignmentElement: (A) => XHe(r.factory, A),
          visitor: t,
        };
      if (yi(e)) {
        let A = Iw(e);
        A &&
          ((He(A) && Aae(e, A.escapedText)) || Iae(e)) &&
          ((A = sx(h, C.checkDefined(st(A, h.visitor, St)), !1, A)),
          (e = r.factory.updateVariableDeclaration(
            e,
            e.name,
            void 0,
            void 0,
            A,
          )));
      }
      if ((uP(h, e, o, e, l), u)) {
        const A = r.factory.createTempVariable(void 0);
        if (s) {
          const R = r.factory.inlineExpressions(u);
          ((u = void 0), E(A, R, void 0, void 0));
        } else {
          r.hoistVariableDeclaration(A);
          const R = Ba(d);
          ((R.pendingExpressions = Bn(
            R.pendingExpressions,
            r.factory.createAssignment(A, R.value),
          )),
            Xr(R.pendingExpressions, u),
            (R.value = A));
        }
      }
      for (const {
        pendingExpressions: A,
        name: R,
        value: N,
        location: P,
        original: k,
      } of d) {
        const W = r.factory.createVariableDeclaration(
          R,
          void 0,
          void 0,
          A ? r.factory.inlineExpressions(Bn(A, N)) : N,
        );
        ((W.original = k), vt(W, P), _.push(W));
      }
      return _;
      function g(A) {
        u = Bn(u, A);
      }
      function E(A, R, N, P) {
        (C.assertNode(A, $E),
          u && ((R = r.factory.inlineExpressions(Bn(u, R))), (u = void 0)),
          d.push({
            pendingExpressions: u,
            name: A,
            value: R,
            location: N,
            original: P,
          }));
      }
    }
    function uP(e, t, r, i, o) {
      const s = kb(t);
      if (!o) {
        const l = st(Iw(t), e.visitor, St);
        l
          ? r
            ? ((r = jHe(e, r, l, i)), !z_(l) && B2(s) && (r = sx(e, r, !0, i)))
            : (r = l)
          : r || (r = e.context.factory.createVoidZero());
      }
      Q9(s)
        ? GHe(e, t, s, r, i)
        : Z9(s)
          ? VHe(e, t, s, r, i)
          : e.emitBindingOrAssignment(s, r, i, t);
    }
    function GHe(e, t, r, i, o) {
      const s = LD(r),
        l = s.length;
      if (l !== 1) {
        const _ = !z2(t) || l !== 0;
        i = sx(e, i, _, o);
      }
      let u, d;
      for (let _ = 0; _ < l; _++) {
        const h = s[_];
        if (P4(h)) {
          if (_ === l - 1) {
            u &&
              (e.emitBindingOrAssignment(
                e.createObjectBindingOrAssignmentPattern(u),
                i,
                o,
                r,
              ),
              (u = void 0));
            const g = e.context
              .getEmitHelperFactory()
              .createRestHelper(i, s, d, r);
            uP(e, h, g, h);
          }
        } else {
          const g = Gj(h);
          if (
            e.level >= 1 &&
            !(h.transformFlags & 98304) &&
            !(kb(h).transformFlags & 98304) &&
            !va(g)
          )
            u = Bn(u, st(h, e.visitor, cte));
          else {
            u &&
              (e.emitBindingOrAssignment(
                e.createObjectBindingOrAssignmentPattern(u),
                i,
                o,
                r,
              ),
              (u = void 0));
            const E = UHe(e, i, g);
            (va(g) && (d = Bn(d, E.argumentExpression)), uP(e, h, E, h));
          }
        }
      }
      u &&
        e.emitBindingOrAssignment(
          e.createObjectBindingOrAssignmentPattern(u),
          i,
          o,
          r,
        );
    }
    function VHe(e, t, r, i, o) {
      const s = LD(r),
        l = s.length;
      if (e.level < 1 && e.downlevelIteration)
        i = sx(
          e,
          vt(
            e.context
              .getEmitHelperFactory()
              .createReadHelper(i, l > 0 && P4(s[l - 1]) ? void 0 : l),
            o,
          ),
          !1,
          o,
        );
      else if ((l !== 1 && (e.level < 1 || l === 0)) || Vn(s, Jc)) {
        const _ = !z2(t) || l !== 0;
        i = sx(e, i, _, o);
      }
      let u, d;
      for (let _ = 0; _ < l; _++) {
        const h = s[_];
        if (e.level >= 1)
          if (
            h.transformFlags & 65536 ||
            (e.hasTransformedPriorElement && !Q1e(h))
          ) {
            e.hasTransformedPriorElement = !0;
            const g = e.context.factory.createTempVariable(void 0);
            (e.hoistTempVariables && e.context.hoistVariableDeclaration(g),
              (d = Bn(d, [g, h])),
              (u = Bn(u, e.createArrayBindingOrAssignmentElement(g))));
          } else u = Bn(u, h);
        else {
          if (Jc(h)) continue;
          if (P4(h)) {
            if (_ === l - 1) {
              const g = e.context.factory.createArraySliceCall(i, _);
              uP(e, h, g, h);
            }
          } else {
            const g = e.context.factory.createElementAccessExpression(i, _);
            uP(e, h, g, h);
          }
        }
      }
      if (
        (u &&
          e.emitBindingOrAssignment(
            e.createArrayBindingOrAssignmentPattern(u),
            i,
            o,
            r,
          ),
        d)
      )
        for (const [_, h] of d) uP(e, h, _, h);
    }
    function Q1e(e) {
      const t = kb(e);
      if (!t || Jc(t)) return !0;
      const r = L4(e);
      if (r && !qh(r)) return !1;
      const i = Iw(e);
      return i && !z_(i) ? !1 : B2(t) ? Vn(LD(t), Q1e) : He(t);
    }
    function jHe(e, t, r, i) {
      return (
        (t = sx(e, t, !0, i)),
        e.context.factory.createConditionalExpression(
          e.context.factory.createTypeCheck(t, "undefined"),
          void 0,
          r,
          void 0,
          t,
        )
      );
    }
    function UHe(e, t, r) {
      const { factory: i } = e.context;
      if (va(r)) {
        const o = sx(e, C.checkDefined(st(r.expression, e.visitor, St)), !1, r);
        return e.context.factory.createElementAccessExpression(t, o);
      } else if (uf(r) || yD(r)) {
        const o = i.cloneNode(r);
        return e.context.factory.createElementAccessExpression(t, o);
      } else {
        const o = e.context.factory.createIdentifier(Kr(r));
        return e.context.factory.createPropertyAccessExpression(t, o);
      }
    }
    function sx(e, t, r, i) {
      if (He(t) && r) return t;
      {
        const o = e.context.factory.createTempVariable(void 0);
        return (
          e.hoistTempVariables
            ? (e.context.hoistVariableDeclaration(o),
              e.emitExpression(vt(e.context.factory.createAssignment(o, t), i)))
            : e.emitBindingOrAssignment(o, t, i, void 0),
          o
        );
      }
    }
    function HHe(e, t) {
      return (C.assertEachNode(t, bF), e.createArrayBindingPattern(t));
    }
    function qHe(e, t) {
      return (
        C.assertEachNode(t, V2),
        e.createArrayLiteralExpression(
          Vt(t, e.converters.convertToArrayAssignmentElement),
        )
      );
    }
    function JHe(e, t) {
      return (C.assertEachNode(t, Ha), e.createObjectBindingPattern(t));
    }
    function KHe(e, t) {
      return (
        C.assertEachNode(t, G2),
        e.createObjectLiteralExpression(
          Vt(t, e.converters.convertToObjectAssignmentElement),
        )
      );
    }
    function XHe(e, t) {
      return e.createBindingElement(void 0, void 0, t);
    }
    function YHe(e) {
      return e;
    }
    function $He(e, t, r = e.createThis()) {
      const i = e.createAssignment(t, r),
        o = e.createExpressionStatement(i),
        s = e.createBlock([o], !1),
        l = e.createClassStaticBlockDeclaration(s);
      return ((jd(l).classThis = t), l);
    }
    function pP(e) {
      var t;
      if (!Ql(e) || e.body.statements.length !== 1) return !1;
      const r = e.body.statements[0];
      return (
        od(r) &&
        id(r.expression, !0) &&
        He(r.expression.left) &&
        ((t = e.emitNode) == null ? void 0 : t.classThis) ===
          r.expression.left &&
        r.expression.right.kind === 110
      );
    }
    function YU(e) {
      var t;
      return !!((t = e.emitNode) != null && t.classThis) && yt(e.members, pP);
    }
    function xae(e, t, r, i) {
      if (YU(t)) return t;
      const o = $He(e, r, i);
      t.name && Ua(o.body.statements[0], t.name);
      const s = e.createNodeArray([o, ...t.members]);
      vt(s, t.members);
      const l = Dc(t)
        ? e.updateClassDeclaration(
            t,
            t.modifiers,
            t.name,
            t.typeParameters,
            t.heritageClauses,
            s,
          )
        : e.updateClassExpression(
            t,
            t.modifiers,
            t.name,
            t.typeParameters,
            t.heritageClauses,
            s,
          );
      return ((jd(l).classThis = r), l);
    }
    function v3(e, t, r) {
      const i = yl(Ul(r));
      return (Dc(i) || Zl(i)) && !i.name && di(i, 2048)
        ? e.createStringLiteral("default")
        : e.createStringLiteralFromNode(t);
    }
    function Z1e(e, t, r) {
      const { factory: i } = e;
      if (r !== void 0)
        return { assignedName: i.createStringLiteral(r), name: t };
      if (qh(t) || eo(t))
        return { assignedName: i.createStringLiteralFromNode(t), name: t };
      if (qh(t.expression) && !He(t.expression))
        return {
          assignedName: i.createStringLiteralFromNode(t.expression),
          name: t,
        };
      const o = i.getGeneratedNameForNode(t);
      e.hoistVariableDeclaration(o);
      const s = e.getEmitHelperFactory().createPropKeyHelper(t.expression),
        l = i.createAssignment(o, s),
        u = i.updateComputedPropertyName(t, l);
      return { assignedName: o, name: u };
    }
    function QHe(e, t, r = e.factory.createThis()) {
      const { factory: i } = e,
        o = e.getEmitHelperFactory().createSetFunctionNameHelper(r, t),
        s = i.createExpressionStatement(o),
        l = i.createBlock([s], !1),
        u = i.createClassStaticBlockDeclaration(l);
      return ((jd(u).assignedName = t), u);
    }
    function lx(e) {
      var t;
      if (!Ql(e) || e.body.statements.length !== 1) return !1;
      const r = e.body.statements[0];
      return (
        od(r) &&
        WM(r.expression, "___setFunctionName") &&
        r.expression.arguments.length >= 2 &&
        r.expression.arguments[1] ===
          ((t = e.emitNode) == null ? void 0 : t.assignedName)
      );
    }
    function b3(e) {
      var t;
      return (
        !!((t = e.emitNode) != null && t.assignedName) && yt(e.members, lx)
      );
    }
    function $U(e) {
      return !!e.name || b3(e);
    }
    function T3(e, t, r, i) {
      if (b3(t)) return t;
      const { factory: o } = e,
        s = QHe(e, r, i);
      t.name && Ua(s.body.statements[0], t.name);
      const l = ho(t.members, pP) + 1,
        u = t.members.slice(0, l),
        d = t.members.slice(l),
        _ = o.createNodeArray([...u, s, ...d]);
      return (
        vt(_, t.members),
        (t = Dc(t)
          ? o.updateClassDeclaration(
              t,
              t.modifiers,
              t.name,
              t.typeParameters,
              t.heritageClauses,
              _,
            )
          : o.updateClassExpression(
              t,
              t.modifiers,
              t.name,
              t.typeParameters,
              t.heritageClauses,
              _,
            )),
        (jd(t).assignedName = r),
        t
      );
    }
    function UD(e, t, r, i) {
      if (i && ka(r) && MG(r)) return t;
      const { factory: o } = e,
        s = Ul(t),
        l = dc(s)
          ? ma(T3(e, s, r), dc)
          : e.getEmitHelperFactory().createSetFunctionNameHelper(s, r);
      return o.restoreOuterExpressions(t, l);
    }
    function ZHe(e, t, r, i) {
      const { factory: o } = e,
        { assignedName: s, name: l } = Z1e(e, t.name, i),
        u = UD(e, t.initializer, s, r);
      return o.updatePropertyAssignment(t, l, u);
    }
    function eqe(e, t, r, i) {
      const { factory: o } = e,
        s =
          i !== void 0
            ? o.createStringLiteral(i)
            : v3(o, t.name, t.objectAssignmentInitializer),
        l = UD(e, t.objectAssignmentInitializer, s, r);
      return o.updateShorthandPropertyAssignment(t, t.name, l);
    }
    function tqe(e, t, r, i) {
      const { factory: o } = e,
        s =
          i !== void 0
            ? o.createStringLiteral(i)
            : v3(o, t.name, t.initializer),
        l = UD(e, t.initializer, s, r);
      return o.updateVariableDeclaration(
        t,
        t.name,
        t.exclamationToken,
        t.type,
        l,
      );
    }
    function nqe(e, t, r, i) {
      const { factory: o } = e,
        s =
          i !== void 0
            ? o.createStringLiteral(i)
            : v3(o, t.name, t.initializer),
        l = UD(e, t.initializer, s, r);
      return o.updateParameterDeclaration(
        t,
        t.modifiers,
        t.dotDotDotToken,
        t.name,
        t.questionToken,
        t.type,
        l,
      );
    }
    function rqe(e, t, r, i) {
      const { factory: o } = e,
        s =
          i !== void 0
            ? o.createStringLiteral(i)
            : v3(o, t.name, t.initializer),
        l = UD(e, t.initializer, s, r);
      return o.updateBindingElement(
        t,
        t.dotDotDotToken,
        t.propertyName,
        t.name,
        l,
      );
    }
    function iqe(e, t, r, i) {
      const { factory: o } = e,
        { assignedName: s, name: l } = Z1e(e, t.name, i),
        u = UD(e, t.initializer, s, r);
      return o.updatePropertyDeclaration(
        t,
        t.modifiers,
        l,
        t.questionToken ?? t.exclamationToken,
        t.type,
        u,
      );
    }
    function oqe(e, t, r, i) {
      const { factory: o } = e,
        s = i !== void 0 ? o.createStringLiteral(i) : v3(o, t.left, t.right),
        l = UD(e, t.right, s, r);
      return o.updateBinaryExpression(t, t.left, t.operatorToken, l);
    }
    function aqe(e, t, r, i) {
      const { factory: o } = e,
        s =
          i !== void 0
            ? o.createStringLiteral(i)
            : o.createStringLiteral(t.isExportEquals ? "" : "default"),
        l = UD(e, t.expression, s, r);
      return o.updateExportAssignment(t, t.modifiers, l);
    }
    function zp(e, t, r, i) {
      switch (t.kind) {
        case 304:
          return ZHe(e, t, r, i);
        case 305:
          return eqe(e, t, r, i);
        case 261:
          return tqe(e, t, r, i);
        case 170:
          return nqe(e, t, r, i);
        case 209:
          return rqe(e, t, r, i);
        case 173:
          return iqe(e, t, r, i);
        case 227:
          return oqe(e, t, r, i);
        case 278:
          return aqe(e, t, r, i);
      }
    }
    var Rae = ((e) => (
      (e[(e.LiftRestriction = 0)] = "LiftRestriction"),
      (e[(e.All = 1)] = "All"),
      e
    ))(Rae || {});
    function QU(e, t, r, i, o, s) {
      const l = st(t.tag, r, St);
      C.assert(l);
      const u = [void 0],
        d = [],
        _ = [],
        h = t.template;
      if (s === 0 && !ZG(h)) return kn(t, r, e);
      const { factory: g } = e;
      if (g1(h)) (d.push(Dae(g, h)), _.push(Cae(g, h, i)));
      else {
        (d.push(Dae(g, h.head)), _.push(Cae(g, h.head, i)));
        for (const A of h.templateSpans)
          (d.push(Dae(g, A.literal)),
            _.push(Cae(g, A.literal, i)),
            u.push(C.checkDefined(st(A.expression, r, St))));
      }
      const E = e
        .getEmitHelperFactory()
        .createTemplateObjectHelper(
          g.createArrayLiteralExpression(d),
          g.createArrayLiteralExpression(_),
        );
      if (zc(i)) {
        const A = g.createUniqueName("templateObject");
        (o(A), (u[0] = g.createLogicalOr(A, g.createAssignment(A, E))));
      } else u[0] = E;
      return g.createCallExpression(l, void 0, u);
    }
    function Dae(e, t) {
      return t.templateFlags & 26656
        ? e.createVoidZero()
        : e.createStringLiteral(t.text);
    }
    function Cae(e, t, r) {
      let i = t.rawText;
      if (i === void 0) {
        (C.assertIsDefined(
          r,
          "Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform.",
        ),
          (i = vS(r, t)));
        const o = t.kind === 15 || t.kind === 18;
        i = i.substring(1, i.length - (o ? 1 : 2));
      }
      return (
        (i = i.replace(
          /\r\n?/g,
          `
`,
        )),
        vt(e.createStringLiteral(i), t)
      );
    }
    function Nae(e) {
      const {
          factory: t,
          getEmitHelperFactory: r,
          startLexicalEnvironment: i,
          resumeLexicalEnvironment: o,
          endLexicalEnvironment: s,
          hoistVariableDeclaration: l,
        } = e,
        u = e.getEmitResolver(),
        d = e.getCompilerOptions(),
        _ = Ga(d),
        h = bu(d),
        g = !!d.experimentalDecorators,
        E = d.emitDecoratorMetadata ? Pae(e) : void 0,
        A = e.onEmitNode,
        R = e.onSubstituteNode;
      ((e.onEmitNode = ec),
        (e.onSubstituteNode = bf),
        e.enableSubstitution(212),
        e.enableSubstitution(213));
      let N,
        P,
        k,
        W,
        O,
        G = 0,
        j;
      return J;
      function J(Ee) {
        return Ee.kind === 309 ? Z(Ee) : q(Ee);
      }
      function Z(Ee) {
        return t.createBundle(Ee.sourceFiles.map(q));
      }
      function q(Ee) {
        if (Ee.isDeclarationFile) return Ee;
        N = Ee;
        const Y = ye(Ee, Re);
        return (Ag(Y, e.readEmitHelpers()), (N = void 0), Y);
      }
      function ye(Ee, Y) {
        const pt = W,
          qt = O;
        ie(Ee);
        const fn = Y(Ee);
        return (W !== pt && (O = qt), (W = pt), fn);
      }
      function ie(Ee) {
        switch (Ee.kind) {
          case 308:
          case 270:
          case 269:
          case 242:
            ((W = Ee), (O = void 0));
            break;
          case 264:
          case 263:
            if (di(Ee, 128)) break;
            Ee.name ? B(Ee) : C.assert(Ee.kind === 264 || di(Ee, 2048));
            break;
        }
      }
      function K(Ee) {
        return ye(Ee, pe);
      }
      function pe(Ee) {
        return Ee.transformFlags & 1 ? ce(Ee) : Ee;
      }
      function de(Ee) {
        return ye(Ee, fe);
      }
      function fe(Ee) {
        switch (Ee.kind) {
          case 273:
          case 272:
          case 278:
          case 279:
            return xe(Ee);
          default:
            return pe(Ee);
        }
      }
      function ve(Ee) {
        const Y = jo(Ee);
        if (Y === Ee || ll(Ee)) return !1;
        if (!Y || Y.kind !== Ee.kind) return !0;
        switch (Ee.kind) {
          case 273:
            if (
              (C.assertNode(Y, vl),
              Ee.importClause !== Y.importClause ||
                Ee.attributes !== Y.attributes)
            )
              return !0;
            break;
          case 272:
            if (
              (C.assertNode(Y, Fc),
              Ee.name !== Y.name ||
                Ee.isTypeOnly !== Y.isTypeOnly ||
                (Ee.moduleReference !== Y.moduleReference &&
                  (Mu(Ee.moduleReference) || Mu(Y.moduleReference))))
            )
              return !0;
            break;
          case 279:
            if (
              (C.assertNode(Y, pc),
              Ee.exportClause !== Y.exportClause ||
                Ee.attributes !== Y.attributes)
            )
              return !0;
            break;
        }
        return !1;
      }
      function xe(Ee) {
        if (ve(Ee)) return Ee.transformFlags & 1 ? kn(Ee, K, e) : Ee;
        switch (Ee.kind) {
          case 273:
            return Bt(Ee);
          case 272:
            return En(Ee);
          case 278:
            return ft(Ee);
          case 279:
            return Mt(Ee);
          default:
            C.fail("Unhandled ellided statement");
        }
      }
      function X(Ee) {
        return ye(Ee, Ce);
      }
      function Ce(Ee) {
        if (
          !(
            Ee.kind === 279 ||
            Ee.kind === 273 ||
            Ee.kind === 274 ||
            (Ee.kind === 272 && Ee.moduleReference.kind === 284)
          )
        )
          return Ee.transformFlags & 1 || di(Ee, 32) ? ce(Ee) : Ee;
      }
      function Je(Ee) {
        return (Y) => ye(Y, (pt) => Se(pt, Ee));
      }
      function Se(Ee, Y) {
        switch (Ee.kind) {
          case 177:
            return $e(Ee);
          case 173:
            return Ci(Ee, Y);
          case 178:
            return qi(Ee, Y);
          case 179:
            return $o(Ee, Y);
          case 175:
            return ri(Ee, Y);
          case 176:
            return kn(Ee, K, e);
          case 241:
            return Ee;
          case 182:
            return;
          default:
            return C.failBadSyntaxKind(Ee);
        }
      }
      function re(Ee) {
        return (Y) => ye(Y, (pt) => be(pt, Ee));
      }
      function be(Ee, Y) {
        switch (Ee.kind) {
          case 304:
          case 305:
          case 306:
            return K(Ee);
          case 178:
            return qi(Ee, Y);
          case 179:
            return $o(Ee, Y);
          case 175:
            return ri(Ee, Y);
          default:
            return C.failBadSyntaxKind(Ee);
        }
      }
      function Ne(Ee) {
        return Wc(Ee) ? void 0 : K(Ee);
      }
      function Be(Ee) {
        return Aa(Ee) ? void 0 : K(Ee);
      }
      function lt(Ee) {
        if (!Wc(Ee) && !(II(Ee.kind) & 28895) && !(P && Ee.kind === 95))
          return Ee;
      }
      function ce(Ee) {
        if (Vi(Ee) && di(Ee, 128)) return t.createNotEmittedStatement(Ee);
        switch (Ee.kind) {
          case 95:
          case 90:
            return P ? void 0 : Ee;
          case 125:
          case 123:
          case 124:
          case 128:
          case 164:
          case 87:
          case 138:
          case 148:
          case 103:
          case 147:
          case 189:
          case 190:
          case 191:
          case 192:
          case 188:
          case 183:
          case 169:
          case 133:
          case 159:
          case 136:
          case 154:
          case 150:
          case 146:
          case 116:
          case 155:
          case 186:
          case 185:
          case 187:
          case 184:
          case 193:
          case 194:
          case 195:
          case 197:
          case 198:
          case 199:
          case 200:
          case 201:
          case 202:
          case 182:
            return;
          case 266:
            return t.createNotEmittedStatement(Ee);
          case 271:
            return;
          case 265:
            return t.createNotEmittedStatement(Ee);
          case 264:
            return at(Ee);
          case 232:
            return Wt(Ee);
          case 299:
            return Ai(Ee);
          case 234:
            return Ni(Ee);
          case 211:
            return _e(Ee);
          case 177:
          case 173:
          case 175:
          case 178:
          case 179:
          case 176:
            return C.fail(
              "Class and object literal elements must be visited with their respective visitors",
            );
          case 263:
            return Ia(Ee);
          case 219:
            return Mn(Ee);
          case 220:
            return Uo(Ee);
          case 170:
            return ot(Ee);
          case 218:
            return ne(Ee);
          case 217:
          case 235:
            return Fe(Ee);
          case 239:
            return dt(Ee);
          case 214:
            return Lt(Ee);
          case 215:
            return Ue(Ee);
          case 216:
            return Rt(Ee);
          case 236:
            return it(Ee);
          case 267:
            return Kt(Ee);
          case 244:
            return Ft(Ee);
          case 261:
            return ht(Ee);
          case 268:
            return Xt(Ee);
          case 272:
            return En(Ee);
          case 286:
            return It(Ee);
          case 287:
            return Ot(Ee);
          default:
            return kn(Ee, K, e);
        }
      }
      function Re(Ee) {
        const Y = Vd(d, "alwaysStrict") && !(zc(Ee) && h >= 5) && !Ff(Ee);
        return t.updateSourceFile(Ee, zU(Ee.statements, de, e, 0, Y));
      }
      function _e(Ee) {
        return t.updateObjectLiteralExpression(
          Ee,
          Xn(Ee.properties, re(Ee), ny),
        );
      }
      function je(Ee) {
        let Y = 0;
        yt(JU(Ee, !0, !0)) && (Y |= 1);
        const pt = lh(Ee);
        return (
          pt && Ul(pt.expression).kind !== 106 && (Y |= 64),
          tv(g, Ee) && (Y |= 2),
          KN(g, Ee) && (Y |= 4),
          xn(Ee) ? (Y |= 8) : Ii(Ee) ? (Y |= 32) : ln(Ee) && (Y |= 16),
          Y
        );
      }
      function Ge(Ee) {
        return !!(Ee.transformFlags & 8192);
      }
      function We(Ee) {
        return (
          pf(Ee) ||
          yt(Ee.typeParameters) ||
          yt(Ee.heritageClauses, Ge) ||
          yt(Ee.members, Ge)
        );
      }
      function at(Ee) {
        const Y = je(Ee),
          pt = _ <= 1 && !!(Y & 7);
        if (!We(Ee) && !tv(g, Ee) && !xn(Ee))
          return t.updateClassDeclaration(
            Ee,
            Xn(Ee.modifiers, lt, Aa),
            Ee.name,
            void 0,
            Xn(Ee.heritageClauses, K, Fp),
            Xn(Ee.members, Je(Ee), bc),
          );
        pt && e.startLexicalEnvironment();
        const qt = pt || Y & 8;
        let fn = qt ? Xn(Ee.modifiers, Be, fl) : Xn(Ee.modifiers, K, fl);
        Y & 2 && (fn = gn(fn, Ee));
        const si =
            (qt && !Ee.name) || Y & 4 || Y & 1
              ? (Ee.name ?? t.getGeneratedNameForNode(Ee))
              : Ee.name,
          Dr = t.updateClassDeclaration(
            Ee,
            fn,
            si,
            void 0,
            Xn(Ee.heritageClauses, K, Fp),
            cn(Ee),
          );
        let Fn = Qa(Ee);
        (Y & 1 && (Fn |= 64), Cr(Dr, Fn));
        let ro;
        if (pt) {
          const So = [Dr],
            Ns = yV(La(N.text, Ee.members.end), 20),
            Da = t.getInternalName(Ee),
            Qs = t.createPartiallyEmittedExpression(Da);
          (hD(Qs, Ns.end), Cr(Qs, 3072));
          const Sc = t.createReturnStatement(Qs);
          (DM(Sc, Ns.pos),
            Cr(Sc, 3840),
            So.push(Sc),
            mg(So, e.endLexicalEnvironment()));
          const fc = t.createImmediatelyInvokedArrowFunction(So);
          dw(fc, 1);
          const Hs = t.createVariableDeclaration(
            t.getLocalName(Ee, !1, !1),
            void 0,
            void 0,
            fc,
          );
          jr(Hs, Ee);
          const Pl = t.createVariableStatement(
            void 0,
            t.createVariableDeclarationList([Hs], 1),
          );
          (jr(Pl, Ee), Rc(Pl, Ee), Ua(Pl, ly(Ee)), au(Pl), (ro = Pl));
        } else ro = Dr;
        if (qt) {
          if (Y & 8) return [ro, ra(Ee)];
          if (Y & 32)
            return [ro, t.createExportDefault(t.getLocalName(Ee, !1, !0))];
          if (Y & 16)
            return [
              ro,
              t.createExternalModuleExport(t.getDeclarationName(Ee, !1, !0)),
            ];
        }
        return ro;
      }
      function Wt(Ee) {
        let Y = Xn(Ee.modifiers, Be, fl);
        return (
          tv(g, Ee) && (Y = gn(Y, Ee)),
          t.updateClassExpression(
            Ee,
            Y,
            Ee.name,
            void 0,
            Xn(Ee.heritageClauses, K, Fp),
            cn(Ee),
          )
        );
      }
      function cn(Ee) {
        const Y = Xn(Ee.members, Je(Ee), bc);
        let pt;
        const qt = yg(Ee),
          fn = qt && Un(qt.parameters, (ur) => Np(ur, qt));
        if (fn)
          for (const ur of fn) {
            const si = t.createPropertyDeclaration(
              void 0,
              ur.name,
              void 0,
              void 0,
              void 0,
            );
            (jr(si, ur), (pt = Bn(pt, si)));
          }
        return pt
          ? ((pt = Xr(pt, Y)), vt(t.createNodeArray(pt), Ee.members))
          : Y;
      }
      function gn(Ee, Y) {
        const pt = _t(Y, Y);
        if (yt(pt)) {
          const qt = [];
          (Xr(qt, ZB(Ee, xw)),
            Xr(qt, Un(Ee, Wc)),
            Xr(qt, pt),
            Xr(qt, Un(rZ(Ee, xw), Aa)),
            (Ee = vt(t.createNodeArray(qt), Ee)));
        }
        return Ee;
      }
      function Kn(Ee, Y, pt) {
        if (ui(pt) && NG(g, Y, pt)) {
          const qt = _t(Y, pt);
          if (yt(qt)) {
            const fn = [];
            (Xr(fn, Un(Ee, Wc)),
              Xr(fn, qt),
              Xr(fn, Un(Ee, Aa)),
              (Ee = vt(t.createNodeArray(fn), Ee)));
          }
        }
        return Ee;
      }
      function _t(Ee, Y) {
        if (g) return en(Ee, Y);
      }
      function en(Ee, Y) {
        if (E) {
          let pt;
          if (ir(Ee)) {
            const qt = r().createMetadataHelper(
              "design:type",
              E.serializeTypeOfNode(
                { currentLexicalScope: W, currentNameScope: Y },
                Ee,
                Y,
              ),
            );
            pt = Bn(pt, t.createDecorator(qt));
          }
          if (lo(Ee)) {
            const qt = r().createMetadataHelper(
              "design:paramtypes",
              E.serializeParameterTypesOfNode(
                { currentLexicalScope: W, currentNameScope: Y },
                Ee,
                Y,
              ),
            );
            pt = Bn(pt, t.createDecorator(qt));
          }
          if (Di(Ee)) {
            const qt = r().createMetadataHelper(
              "design:returntype",
              E.serializeReturnTypeOfNode(
                { currentLexicalScope: W, currentNameScope: Y },
                Ee,
              ),
            );
            pt = Bn(pt, t.createDecorator(qt));
          }
          return pt;
        }
      }
      function ir(Ee) {
        const Y = Ee.kind;
        return Y === 175 || Y === 178 || Y === 179 || Y === 173;
      }
      function Di(Ee) {
        return Ee.kind === 175;
      }
      function lo(Ee) {
        switch (Ee.kind) {
          case 264:
          case 232:
            return yg(Ee) !== void 0;
          case 175:
          case 178:
          case 179:
            return !0;
        }
        return !1;
      }
      function zt(Ee, Y) {
        const pt = Ee.name;
        return eo(pt)
          ? t.createIdentifier("")
          : va(pt)
            ? pt.expression
            : He(pt)
              ? t.createStringLiteral(Kr(pt))
              : t.cloneNode(pt);
      }
      function Zr(Ee) {
        const Y = Ee.name;
        if (g && va(Y) && pf(Ee)) {
          const pt = st(Y.expression, K, St);
          C.assert(pt);
          const qt = Wm(pt);
          if (!z_(qt)) {
            const fn = t.getGeneratedNameForNode(Y);
            return (
              l(fn),
              t.updateComputedPropertyName(Y, t.createAssignment(fn, pt))
            );
          }
        }
        return C.checkDefined(st(Y, K, vc));
      }
      function Ai(Ee) {
        if (Ee.token !== 119) return kn(Ee, K, e);
      }
      function Ni(Ee) {
        return t.updateExpressionWithTypeArguments(
          Ee,
          C.checkDefined(st(Ee.expression, K, $u)),
          void 0,
        );
      }
      function Pr(Ee) {
        return !Ol(Ee.body);
      }
      function Ci(Ee, Y) {
        const pt = Ee.flags & 33554432 || di(Ee, 64);
        if (pt && !(g && pf(Ee))) return;
        let qt = ui(Y)
          ? pt
            ? Xn(Ee.modifiers, Be, fl)
            : Xn(Ee.modifiers, K, fl)
          : Xn(Ee.modifiers, Ne, fl);
        return (
          (qt = Kn(qt, Ee, Y)),
          pt
            ? t.updatePropertyDeclaration(
                Ee,
                so(qt, t.createModifiersFromModifierFlags(128)),
                C.checkDefined(st(Ee.name, K, vc)),
                void 0,
                void 0,
                void 0,
              )
            : t.updatePropertyDeclaration(
                Ee,
                qt,
                Zr(Ee),
                void 0,
                void 0,
                st(Ee.initializer, K, St),
              )
        );
      }
      function $e(Ee) {
        if (Pr(Ee))
          return t.updateConstructorDeclaration(
            Ee,
            void 0,
            Fl(Ee.parameters, K, e),
            mn(Ee.body, Ee),
          );
      }
      function At(Ee, Y, pt, qt, fn, ur) {
        const si = qt[fn],
          Dr = Y[si];
        if ((Xr(Ee, Xn(Y, K, Vi, pt, si - pt)), E1(Dr))) {
          const Fn = [];
          At(Fn, Dr.tryBlock.statements, 0, qt, fn + 1, ur);
          const ro = t.createNodeArray(Fn);
          (vt(ro, Dr.tryBlock.statements),
            Ee.push(
              t.updateTryStatement(
                Dr,
                t.updateBlock(Dr.tryBlock, Fn),
                st(Dr.catchClause, K, US),
                st(Dr.finallyBlock, K, ea),
              ),
            ));
        } else (Xr(Ee, Xn(Y, K, Vi, si, 1)), Xr(Ee, ur));
        Xr(Ee, Xn(Y, K, Vi, si + 1));
      }
      function mn(Ee, Y) {
        const pt = Y && Un(Y.parameters, (Fn) => Np(Fn, Y));
        if (!yt(pt)) return gf(Ee, K, e);
        let qt = [];
        o();
        const fn = t.copyPrologue(Ee.statements, qt, !1, K),
          ur = _3(Ee.statements, fn),
          si = Ui(pt, dr);
        (ur.length
          ? At(qt, Ee.statements, fn, ur, 0, si)
          : (Xr(qt, si), Xr(qt, Xn(Ee.statements, K, Vi, fn))),
          (qt = t.mergeLexicalEnvironment(qt, s())));
        const Dr = t.createBlock(vt(t.createNodeArray(qt), Ee.statements), !0);
        return (vt(Dr, Ee), jr(Dr, Ee), Dr);
      }
      function dr(Ee) {
        const Y = Ee.name;
        if (!He(Y)) return;
        const pt = ps(vt(t.cloneNode(Y), Y), Y.parent);
        Cr(pt, 3168);
        const qt = ps(vt(t.cloneNode(Y), Y), Y.parent);
        return (
          Cr(qt, 3072),
          au(
            cw(
              vt(
                jr(
                  t.createExpressionStatement(
                    t.createAssignment(
                      vt(
                        t.createPropertyAccessExpression(t.createThis(), pt),
                        Ee.name,
                      ),
                      qt,
                    ),
                  ),
                  Ee,
                ),
                UT(Ee, -1),
              ),
            ),
          )
        );
      }
      function ri(Ee, Y) {
        if (!(Ee.transformFlags & 1)) return Ee;
        if (!Pr(Ee)) return;
        let pt = ui(Y) ? Xn(Ee.modifiers, K, fl) : Xn(Ee.modifiers, Ne, fl);
        return (
          (pt = Kn(pt, Ee, Y)),
          t.updateMethodDeclaration(
            Ee,
            pt,
            Ee.asteriskToken,
            Zr(Ee),
            void 0,
            void 0,
            Fl(Ee.parameters, K, e),
            void 0,
            gf(Ee.body, K, e),
          )
        );
      }
      function ai(Ee) {
        return !(Ol(Ee.body) && di(Ee, 64));
      }
      function qi(Ee, Y) {
        if (!(Ee.transformFlags & 1)) return Ee;
        if (!ai(Ee)) return;
        let pt = ui(Y) ? Xn(Ee.modifiers, K, fl) : Xn(Ee.modifiers, Ne, fl);
        return (
          (pt = Kn(pt, Ee, Y)),
          t.updateGetAccessorDeclaration(
            Ee,
            pt,
            Zr(Ee),
            Fl(Ee.parameters, K, e),
            void 0,
            gf(Ee.body, K, e) || t.createBlock([]),
          )
        );
      }
      function $o(Ee, Y) {
        if (!(Ee.transformFlags & 1)) return Ee;
        if (!ai(Ee)) return;
        let pt = ui(Y) ? Xn(Ee.modifiers, K, fl) : Xn(Ee.modifiers, Ne, fl);
        return (
          (pt = Kn(pt, Ee, Y)),
          t.updateSetAccessorDeclaration(
            Ee,
            pt,
            Zr(Ee),
            Fl(Ee.parameters, K, e),
            gf(Ee.body, K, e) || t.createBlock([]),
          )
        );
      }
      function Ia(Ee) {
        if (!Pr(Ee)) return t.createNotEmittedStatement(Ee);
        const Y = t.updateFunctionDeclaration(
          Ee,
          Xn(Ee.modifiers, lt, Aa),
          Ee.asteriskToken,
          Ee.name,
          void 0,
          Fl(Ee.parameters, K, e),
          void 0,
          gf(Ee.body, K, e) || t.createBlock([]),
        );
        if (xn(Ee)) {
          const pt = [Y];
          return (sa(pt, Ee), pt);
        }
        return Y;
      }
      function Mn(Ee) {
        return Pr(Ee)
          ? t.updateFunctionExpression(
              Ee,
              Xn(Ee.modifiers, lt, Aa),
              Ee.asteriskToken,
              Ee.name,
              void 0,
              Fl(Ee.parameters, K, e),
              void 0,
              gf(Ee.body, K, e) || t.createBlock([]),
            )
          : t.createOmittedExpression();
      }
      function Uo(Ee) {
        return t.updateArrowFunction(
          Ee,
          Xn(Ee.modifiers, lt, Aa),
          void 0,
          Fl(Ee.parameters, K, e),
          void 0,
          Ee.equalsGreaterThanToken,
          gf(Ee.body, K, e),
        );
      }
      function ot(Ee) {
        if (Sb(Ee)) return;
        const Y = t.updateParameterDeclaration(
          Ee,
          Xn(Ee.modifiers, (pt) => (Wc(pt) ? K(pt) : void 0), fl),
          Ee.dotDotDotToken,
          C.checkDefined(st(Ee.name, K, $E)),
          void 0,
          void 0,
          st(Ee.initializer, K, St),
        );
        return (
          Y !== Ee && (Rc(Y, Ee), vt(Y, Yh(Ee)), Ua(Y, Yh(Ee)), Cr(Y.name, 64)),
          Y
        );
      }
      function Ft(Ee) {
        if (xn(Ee)) {
          const Y = _M(Ee.declarationList);
          return Y.length === 0
            ? void 0
            : vt(
                t.createExpressionStatement(t.inlineExpressions(Vt(Y, le))),
                Ee,
              );
        } else return kn(Ee, K, e);
      }
      function le(Ee) {
        const Y = Ee.name;
        return Qo(Y)
          ? k1(Ee, K, e, 0, !1, Bl)
          : vt(
              t.createAssignment(
                xl(Y),
                C.checkDefined(st(Ee.initializer, K, St)),
              ),
              Ee,
            );
      }
      function ht(Ee) {
        const Y = t.updateVariableDeclaration(
          Ee,
          C.checkDefined(st(Ee.name, K, $E)),
          void 0,
          void 0,
          st(Ee.initializer, K, St),
        );
        return (Ee.type && aie(Y.name, Ee.type), Y);
      }
      function ne(Ee) {
        const Y = Ul(Ee.expression, -55);
        if (yS(Y) || ED(Y)) {
          const pt = st(Ee.expression, K, St);
          return (C.assert(pt), t.createPartiallyEmittedExpression(pt, Ee));
        }
        return kn(Ee, K, e);
      }
      function Fe(Ee) {
        const Y = st(Ee.expression, K, St);
        return (C.assert(Y), t.createPartiallyEmittedExpression(Y, Ee));
      }
      function it(Ee) {
        const Y = st(Ee.expression, K, $u);
        return (C.assert(Y), t.createPartiallyEmittedExpression(Y, Ee));
      }
      function dt(Ee) {
        const Y = st(Ee.expression, K, St);
        return (C.assert(Y), t.createPartiallyEmittedExpression(Y, Ee));
      }
      function Lt(Ee) {
        return t.updateCallExpression(
          Ee,
          C.checkDefined(st(Ee.expression, K, St)),
          void 0,
          Xn(Ee.arguments, K, St),
        );
      }
      function Ue(Ee) {
        return t.updateNewExpression(
          Ee,
          C.checkDefined(st(Ee.expression, K, St)),
          void 0,
          Xn(Ee.arguments, K, St),
        );
      }
      function Rt(Ee) {
        return t.updateTaggedTemplateExpression(
          Ee,
          C.checkDefined(st(Ee.tag, K, St)),
          void 0,
          C.checkDefined(st(Ee.template, K, lI)),
        );
      }
      function It(Ee) {
        return t.updateJsxSelfClosingElement(
          Ee,
          C.checkDefined(st(Ee.tagName, K, BN)),
          void 0,
          C.checkDefined(st(Ee.attributes, K, jS)),
        );
      }
      function Ot(Ee) {
        return t.updateJsxOpeningElement(
          Ee,
          C.checkDefined(st(Ee.tagName, K, BN)),
          void 0,
          C.checkDefined(st(Ee.attributes, K, jS)),
        );
      }
      function nt(Ee) {
        return !OT(Ee) || Ib(d);
      }
      function Kt(Ee) {
        if (!nt(Ee)) return t.createNotEmittedStatement(Ee);
        const Y = [];
        let pt = 4;
        const qt = xt(Y, Ee);
        qt && (h !== 4 || W !== N) && (pt |= 1024);
        const fn = Ps(Ee),
          ur = co(Ee),
          si = xn(Ee)
            ? t.getExternalModuleOrNamespaceExportName(k, Ee, !1, !0)
            : t.getDeclarationName(Ee, !1, !0);
        let Dr = t.createLogicalOr(
          si,
          t.createAssignment(si, t.createObjectLiteralExpression()),
        );
        if (xn(Ee)) {
          const ro = t.getLocalName(Ee, !1, !0);
          Dr = t.createAssignment(ro, Dr);
        }
        const Fn = t.createExpressionStatement(
          t.createCallExpression(
            t.createFunctionExpression(
              void 0,
              void 0,
              void 0,
              void 0,
              [t.createParameterDeclaration(void 0, void 0, fn)],
              void 0,
              Tr(Ee, ur),
            ),
            void 0,
            [Dr],
          ),
        );
        return (
          jr(Fn, Ee),
          qt && (JT(Fn, void 0), FI(Fn, void 0)),
          vt(Fn, Ee),
          Qh(Fn, pt),
          Y.push(Fn),
          Y
        );
      }
      function Tr(Ee, Y) {
        const pt = k;
        k = Y;
        const qt = [];
        i();
        const fn = Vt(Ee.members, Oe);
        return (
          mg(qt, s()),
          Xr(qt, fn),
          (k = pt),
          t.createBlock(vt(t.createNodeArray(qt), Ee.members), !0)
        );
      }
      function Oe(Ee) {
        const Y = zt(Ee),
          pt = u.getEnumMemberValue(Ee),
          qt = Nt(Ee, pt?.value),
          fn = t.createAssignment(t.createElementAccessExpression(k, Y), qt),
          ur =
            typeof pt?.value == "string" || pt?.isSyntacticallyString
              ? fn
              : t.createAssignment(t.createElementAccessExpression(k, fn), Y);
        return vt(t.createExpressionStatement(vt(ur, Ee)), Ee);
      }
      function Nt(Ee, Y) {
        return Y !== void 0
          ? typeof Y == "string"
            ? t.createStringLiteral(Y)
            : Y < 0
              ? t.createPrefixUnaryExpression(41, t.createNumericLiteral(-Y))
              : t.createNumericLiteral(Y)
          : (Go(),
            Ee.initializer
              ? C.checkDefined(st(Ee.initializer, K, St))
              : t.createVoidZero());
      }
      function he(Ee) {
        const Y = jo(Ee, uc);
        return Y ? WU(Y, Ib(d)) : !0;
      }
      function B(Ee) {
        O || (O = new Map());
        const Y = te(Ee);
        O.has(Y) || O.set(Y, Ee);
      }
      function Ae(Ee) {
        if (O) {
          const Y = te(Ee);
          return O.get(Y) === Ee;
        }
        return !0;
      }
      function te(Ee) {
        return (C.assertNode(Ee.name, He), Ee.name.escapedText);
      }
      function xt(Ee, Y) {
        const pt = t.createVariableDeclaration(t.getLocalName(Y, !1, !0)),
          qt = W.kind === 308 ? 0 : 1,
          fn = t.createVariableStatement(
            Xn(Y.modifiers, lt, Aa),
            t.createVariableDeclarationList([pt], qt),
          );
        return (
          jr(pt, Y),
          JT(pt, void 0),
          FI(pt, void 0),
          jr(fn, Y),
          B(Y),
          Ae(Y)
            ? (Y.kind === 267 ? Ua(fn.declarationList, Y) : Ua(fn, Y),
              Rc(fn, Y),
              Qh(fn, 2048),
              Ee.push(fn),
              !0)
            : !1
        );
      }
      function Xt(Ee) {
        if (!he(Ee)) return t.createNotEmittedStatement(Ee);
        (C.assertNode(
          Ee.name,
          He,
          "A TypeScript namespace should have an Identifier name.",
        ),
          Tc());
        const Y = [];
        let pt = 4;
        const qt = xt(Y, Ee);
        qt && (h !== 4 || W !== N) && (pt |= 1024);
        const fn = Ps(Ee),
          ur = co(Ee),
          si = xn(Ee)
            ? t.getExternalModuleOrNamespaceExportName(k, Ee, !1, !0)
            : t.getDeclarationName(Ee, !1, !0);
        let Dr = t.createLogicalOr(
          si,
          t.createAssignment(si, t.createObjectLiteralExpression()),
        );
        if (xn(Ee)) {
          const ro = t.getLocalName(Ee, !1, !0);
          Dr = t.createAssignment(ro, Dr);
        }
        const Fn = t.createExpressionStatement(
          t.createCallExpression(
            t.createFunctionExpression(
              void 0,
              void 0,
              void 0,
              void 0,
              [t.createParameterDeclaration(void 0, void 0, fn)],
              void 0,
              Pe(Ee, ur),
            ),
            void 0,
            [Dr],
          ),
        );
        return (
          jr(Fn, Ee),
          qt && (JT(Fn, void 0), FI(Fn, void 0)),
          vt(Fn, Ee),
          Qh(Fn, pt),
          Y.push(Fn),
          Y
        );
      }
      function Pe(Ee, Y) {
        const pt = k,
          qt = P,
          fn = O;
        ((k = Y), (P = Ee), (O = void 0));
        const ur = [];
        i();
        let si, Dr;
        if (Ee.body)
          if (Ee.body.kind === 269)
            (ye(Ee.body, (ro) => Xr(ur, Xn(ro.statements, X, Vi))),
              (si = Ee.body.statements),
              (Dr = Ee.body));
          else {
            const ro = Xt(Ee.body);
            ro && (Mo(ro) ? Xr(ur, ro) : ur.push(ro));
            const So = gt(Ee).body;
            si = UT(So.statements, -1);
          }
        (mg(ur, s()), (k = pt), (P = qt), (O = fn));
        const Fn = t.createBlock(vt(t.createNodeArray(ur), si), !0);
        return (
          vt(Fn, Dr),
          (!Ee.body || Ee.body.kind !== 269) && Cr(Fn, Qa(Fn) | 3072),
          Fn
        );
      }
      function gt(Ee) {
        if (Ee.body.kind === 268) return gt(Ee.body) || Ee.body;
      }
      function Bt(Ee) {
        if (!Ee.importClause) return Ee;
        if (Ee.importClause.isTypeOnly) return;
        const Y = st(Ee.importClause, gr, Vm);
        return Y
          ? t.updateImportDeclaration(
              Ee,
              void 0,
              Y,
              Ee.moduleSpecifier,
              Ee.attributes,
            )
          : void 0;
      }
      function gr(Ee) {
        C.assert(Ee.phaseModifier !== 156);
        const Y = Fs(Ee) ? Ee.name : void 0,
          pt = st(Ee.namedBindings, tr, rG);
        return Y || pt
          ? t.updateImportClause(Ee, Ee.phaseModifier, Y, pt)
          : void 0;
      }
      function tr(Ee) {
        if (Ee.kind === 275) return Fs(Ee) ? Ee : void 0;
        {
          const Y = d.verbatimModuleSyntax,
            pt = Xn(Ee.elements, Jn, Eu);
          return Y || yt(pt) ? t.updateNamedImports(Ee, pt) : void 0;
        }
      }
      function Jn(Ee) {
        return !Ee.isTypeOnly && Fs(Ee) ? Ee : void 0;
      }
      function ft(Ee) {
        return d.verbatimModuleSyntax || u.isValueAliasDeclaration(Ee)
          ? kn(Ee, K, e)
          : void 0;
      }
      function Mt(Ee) {
        if (Ee.isTypeOnly) return;
        if (!Ee.exportClause || O_(Ee.exportClause))
          return t.updateExportDeclaration(
            Ee,
            Ee.modifiers,
            Ee.isTypeOnly,
            Ee.exportClause,
            Ee.moduleSpecifier,
            Ee.attributes,
          );
        const Y = !!d.verbatimModuleSyntax,
          pt = st(Ee.exportClause, (qt) => In(qt, Y), q9);
        return pt
          ? t.updateExportDeclaration(
              Ee,
              void 0,
              Ee.isTypeOnly,
              pt,
              Ee.moduleSpecifier,
              Ee.attributes,
            )
          : void 0;
      }
      function jt(Ee, Y) {
        const pt = Xn(Ee.elements, yn, ou);
        return Y || yt(pt) ? t.updateNamedExports(Ee, pt) : void 0;
      }
      function Qt(Ee) {
        return t.updateNamespaceExport(Ee, C.checkDefined(st(Ee.name, K, He)));
      }
      function In(Ee, Y) {
        return O_(Ee) ? Qt(Ee) : jt(Ee, Y);
      }
      function yn(Ee) {
        return !Ee.isTypeOnly &&
          (d.verbatimModuleSyntax || u.isValueAliasDeclaration(Ee))
          ? Ee
          : void 0;
      }
      function wt(Ee) {
        return (
          Fs(Ee) || (!zc(N) && u.isTopLevelValueImportEqualsWithEntityName(Ee))
        );
      }
      function En(Ee) {
        if (Ee.isTypeOnly) return;
        if (FT(Ee)) return Fs(Ee) ? kn(Ee, K, e) : void 0;
        if (!wt(Ee)) return;
        const Y = Tw(t, Ee.moduleReference);
        return (
          Cr(Y, 7168),
          ln(Ee) || !xn(Ee)
            ? jr(
                vt(
                  t.createVariableStatement(
                    Xn(Ee.modifiers, lt, Aa),
                    t.createVariableDeclarationList([
                      jr(
                        t.createVariableDeclaration(Ee.name, void 0, void 0, Y),
                        Ee,
                      ),
                    ]),
                  ),
                  Ee,
                ),
                Ee,
              )
            : jr(zo(Ee.name, Y, Ee), Ee)
        );
      }
      function xn(Ee) {
        return P !== void 0 && di(Ee, 32);
      }
      function Ln(Ee) {
        return P === void 0 && di(Ee, 32);
      }
      function ln(Ee) {
        return Ln(Ee) && !di(Ee, 2048);
      }
      function Ii(Ee) {
        return Ln(Ee) && di(Ee, 2048);
      }
      function ra(Ee) {
        const Y = t.createAssignment(
          t.getExternalModuleOrNamespaceExportName(k, Ee, !1, !0),
          t.getLocalName(Ee),
        );
        Ua(Y, Bf(Ee.name ? Ee.name.pos : Ee.pos, Ee.end));
        const pt = t.createExpressionStatement(Y);
        return (Ua(pt, Bf(-1, Ee.end)), pt);
      }
      function sa(Ee, Y) {
        Ee.push(ra(Y));
      }
      function zo(Ee, Y, pt) {
        return vt(
          t.createExpressionStatement(
            t.createAssignment(t.getNamespaceMemberName(k, Ee, !1, !0), Y),
          ),
          pt,
        );
      }
      function Bl(Ee, Y, pt) {
        return vt(t.createAssignment(xl(Ee), Y), pt);
      }
      function xl(Ee) {
        return t.getNamespaceMemberName(k, Ee, !1, !0);
      }
      function Ps(Ee) {
        const Y = t.getGeneratedNameForNode(Ee);
        return (Ua(Y, Ee.name), Y);
      }
      function co(Ee) {
        return t.getGeneratedNameForNode(Ee);
      }
      function Go() {
        (G & 8) === 0 && ((G |= 8), e.enableSubstitution(80));
      }
      function Tc() {
        (G & 2) === 0 &&
          ((G |= 2),
          e.enableSubstitution(80),
          e.enableSubstitution(305),
          e.enableEmitNotification(268));
      }
      function $s(Ee) {
        return yl(Ee).kind === 268;
      }
      function Ra(Ee) {
        return yl(Ee).kind === 267;
      }
      function ec(Ee, Y, pt) {
        const qt = j,
          fn = N;
        (Yi(Y) && (N = Y),
          G & 2 && $s(Y) && (j |= 2),
          G & 8 && Ra(Y) && (j |= 8),
          A(Ee, Y, pt),
          (j = qt),
          (N = fn));
      }
      function bf(Ee, Y) {
        return ((Y = R(Ee, Y)), Ee === 1 ? fa(Y) : Ud(Y) ? Lo(Y) : Y);
      }
      function Lo(Ee) {
        if (G & 2) {
          const Y = Ee.name,
            pt = qa(Y);
          if (pt) {
            if (Ee.objectAssignmentInitializer) {
              const qt = t.createAssignment(pt, Ee.objectAssignmentInitializer);
              return vt(t.createPropertyAssignment(Y, qt), Ee);
            }
            return vt(t.createPropertyAssignment(Y, pt), Ee);
          }
        }
        return Ee;
      }
      function fa(Ee) {
        switch (Ee.kind) {
          case 80:
            return is(Ee);
          case 212:
            return Zt(Ee);
          case 213:
            return As(Ee);
        }
        return Ee;
      }
      function is(Ee) {
        return qa(Ee) || Ee;
      }
      function qa(Ee) {
        if (G & j && !pl(Ee) && !fy(Ee)) {
          const Y = u.getReferencedExportContainer(Ee, !1);
          if (
            Y &&
            Y.kind !== 308 &&
            ((j & 2 && Y.kind === 268) || (j & 8 && Y.kind === 267))
          )
            return vt(
              t.createPropertyAccessExpression(
                t.getGeneratedNameForNode(Y),
                Ee,
              ),
              Ee,
            );
        }
      }
      function Zt(Ee) {
        return sc(Ee);
      }
      function As(Ee) {
        return sc(Ee);
      }
      function Hl(Ee) {
        return Ee.replace(/\*\//g, "*_/");
      }
      function sc(Ee) {
        const Y = vd(Ee);
        if (Y !== void 0) {
          iie(Ee, Y);
          const pt =
            typeof Y == "string"
              ? t.createStringLiteral(Y)
              : Y < 0
                ? t.createPrefixUnaryExpression(41, t.createNumericLiteral(-Y))
                : t.createNumericLiteral(Y);
          if (!d.removeComments) {
            const qt = yl(Ee, Ks);
            OM(pt, 3, ` ${Hl(Al(qt))} `);
          }
          return pt;
        }
        return Ee;
      }
      function vd(Ee) {
        if (!ym(d)) return qr(Ee) || Ws(Ee) ? u.getConstantValue(Ee) : void 0;
      }
      function Fs(Ee) {
        return (
          d.verbatimModuleSyntax || Ir(Ee) || u.isReferencedAliasDeclaration(Ee)
        );
      }
    }
    function Mae(e) {
      const {
          factory: t,
          getEmitHelperFactory: r,
          hoistVariableDeclaration: i,
          endLexicalEnvironment: o,
          startLexicalEnvironment: s,
          resumeLexicalEnvironment: l,
          addBlockScopedVariable: u,
        } = e,
        d = e.getEmitResolver(),
        _ = e.getCompilerOptions(),
        h = Ga(_),
        g = Jk(_),
        E = !!_.experimentalDecorators,
        A = !g,
        R = g && h < 9,
        N = A || R,
        P = h < 9,
        k = h < 99 ? -1 : g ? 0 : 3,
        W = h < 9,
        O = W && h >= 2,
        G = N || P || k === -1,
        j = e.onSubstituteNode;
      e.onSubstituteNode = Hl;
      const J = e.onEmitNode;
      e.onEmitNode = As;
      let Z = !1,
        q = 0,
        ye,
        ie,
        K,
        pe;
      const de = new Map(),
        fe = new Set();
      let ve,
        xe,
        X = !1,
        Ce = !1;
      return hh(e, Je);
      function Je(Y) {
        if (
          Y.isDeclarationFile ||
          ((pe = void 0), (Z = !!(Fm(Y) & 32)), !G && !Z)
        )
          return Y;
        const pt = kn(Y, re, e);
        return (Ag(pt, e.readEmitHelpers()), pt);
      }
      function Se(Y) {
        switch (Y.kind) {
          case 129:
            return At() ? void 0 : Y;
          default:
            return ni(Y, Aa);
        }
      }
      function re(Y) {
        if (!(Y.transformFlags & 16777216) && !(Y.transformFlags & 134234112))
          return Y;
        switch (Y.kind) {
          case 264:
            return Kt(Y);
          case 232:
            return Oe(Y);
          case 176:
          case 173:
            return C.fail("Use `classElementVisitor` instead.");
          case 304:
            return We(Y);
          case 244:
            return at(Y);
          case 261:
            return Wt(Y);
          case 170:
            return cn(Y);
          case 209:
            return gn(Y);
          case 278:
            return Kn(Y);
          case 81:
            return je(Y);
          case 212:
            return $o(Y);
          case 213:
            return Ia(Y);
          case 225:
          case 226:
            return Mn(Y, !1);
          case 227:
            return it(Y, !1);
          case 218:
            return Lt(Y, !1);
          case 214:
            return le(Y);
          case 245:
            return ot(Y);
          case 216:
            return ht(Y);
          case 249:
            return Uo(Y);
          case 110:
            return B(Y);
          case 263:
          case 219:
            return zt(void 0, be, Y);
          case 177:
          case 175:
          case 178:
          case 179:
            return zt(Y, be, Y);
          default:
            return be(Y);
        }
      }
      function be(Y) {
        return kn(Y, re, e);
      }
      function Ne(Y) {
        switch (Y.kind) {
          case 225:
          case 226:
            return Mn(Y, !0);
          case 227:
            return it(Y, !0);
          case 357:
            return dt(Y);
          case 218:
            return Lt(Y, !0);
          default:
            return re(Y);
        }
      }
      function Be(Y) {
        switch (Y.kind) {
          case 299:
            return kn(Y, Be, e);
          case 234:
            return Ot(Y);
          default:
            return re(Y);
        }
      }
      function lt(Y) {
        switch (Y.kind) {
          case 211:
          case 210:
            return Zt(Y);
          default:
            return re(Y);
        }
      }
      function ce(Y) {
        switch (Y.kind) {
          case 177:
            return zt(Y, ir, Y);
          case 178:
          case 179:
          case 175:
            return zt(Y, lo, Y);
          case 173:
            return zt(Y, mn, Y);
          case 176:
            return zt(Y, he, Y);
          case 168:
            return en(Y);
          case 241:
            return Y;
          default:
            return fl(Y) ? Se(Y) : re(Y);
        }
      }
      function Re(Y) {
        switch (Y.kind) {
          case 168:
            return en(Y);
          default:
            return re(Y);
        }
      }
      function _e(Y) {
        switch (Y.kind) {
          case 173:
            return $e(Y);
          case 178:
          case 179:
            return ce(Y);
          default:
            C.assertMissingNode(
              Y,
              "Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration",
            );
            break;
        }
      }
      function je(Y) {
        return !P || Vi(Y.parent) ? Y : jr(t.createIdentifier(""), Y);
      }
      function Ge(Y) {
        const pt = Go(Y.left);
        if (pt) {
          const qt = st(Y.right, re, St);
          return jr(
            r().createClassPrivateFieldInHelper(pt.brandCheckIdentifier, qt),
            Y,
          );
        }
        return kn(Y, re, e);
      }
      function We(Y) {
        return (Lp(Y, Fe) && (Y = zp(e, Y)), kn(Y, re, e));
      }
      function at(Y) {
        const pt = K;
        K = [];
        const qt = kn(Y, re, e),
          fn = yt(K) ? [qt, ...K] : qt;
        return ((K = pt), fn);
      }
      function Wt(Y) {
        return (Lp(Y, Fe) && (Y = zp(e, Y)), kn(Y, re, e));
      }
      function cn(Y) {
        return (Lp(Y, Fe) && (Y = zp(e, Y)), kn(Y, re, e));
      }
      function gn(Y) {
        return (Lp(Y, Fe) && (Y = zp(e, Y)), kn(Y, re, e));
      }
      function Kn(Y) {
        return (
          Lp(Y, Fe) && (Y = zp(e, Y, !0, Y.isExportEquals ? "" : "default")),
          kn(Y, re, e)
        );
      }
      function _t(Y) {
        return (
          yt(ie) &&
            (Ou(Y)
              ? (ie.push(Y.expression),
                (Y = t.updateParenthesizedExpression(
                  Y,
                  t.inlineExpressions(ie),
                )))
              : (ie.push(Y), (Y = t.inlineExpressions(ie))),
            (ie = void 0)),
          Y
        );
      }
      function en(Y) {
        const pt = st(Y.expression, re, St);
        return t.updateComputedPropertyName(Y, _t(pt));
      }
      function ir(Y) {
        return ve ? xt(Y, ve) : be(Y);
      }
      function Di(Y) {
        return !!(P || (wc(Y) && Fm(Y) & 32));
      }
      function lo(Y) {
        if ((C.assert(!pf(Y)), !nu(Y) || !Di(Y))) return kn(Y, ce, e);
        const pt = Go(Y.name);
        if (
          (C.assert(pt, "Undeclared private name for property declaration."),
          !pt.isValid)
        )
          return Y;
        const qt = Zr(Y);
        qt &&
          Ln().push(
            t.createAssignment(
              qt,
              t.createFunctionExpression(
                Un(Y.modifiers, (fn) => Aa(fn) && !jI(fn) && !vj(fn)),
                Y.asteriskToken,
                qt,
                void 0,
                Fl(Y.parameters, re, e),
                void 0,
                gf(Y.body, re, e),
              ),
            ),
          );
      }
      function zt(Y, pt, qt) {
        if (Y !== xe) {
          const fn = xe;
          xe = Y;
          const ur = pt(qt);
          return ((xe = fn), ur);
        }
        return pt(qt);
      }
      function Zr(Y) {
        C.assert(eo(Y.name));
        const pt = Go(Y.name);
        if (
          (C.assert(pt, "Undeclared private name for property declaration."),
          pt.kind === "m")
        )
          return pt.methodName;
        if (pt.kind === "a") {
          if (ug(Y)) return pt.getterName;
          if (Vh(Y)) return pt.setterName;
        }
      }
      function Ai() {
        const Y = En();
        return Y.classThis ?? Y.classConstructor ?? ve?.name;
      }
      function Ni(Y) {
        const pt = Zh(Y),
          qt = lv(Y),
          fn = Y.name;
        let ur = fn,
          si = fn;
        if (va(fn) && !z_(fn.expression)) {
          const Qs = w4(fn);
          if (Qs)
            ((ur = t.updateComputedPropertyName(fn, st(fn.expression, re, St))),
              (si = t.updateComputedPropertyName(fn, Qs.left)));
          else {
            const Sc = t.createTempVariable(i);
            Ua(Sc, fn.expression);
            const fc = st(fn.expression, re, St),
              Hs = t.createAssignment(Sc, fc);
            (Ua(Hs, fn.expression),
              (ur = t.updateComputedPropertyName(fn, Hs)),
              (si = t.updateComputedPropertyName(fn, Sc)));
          }
        }
        const Dr = Xn(Y.modifiers, Se, Aa),
          Fn = qj(t, Y, Dr, Y.initializer);
        (jr(Fn, Y), Cr(Fn, 3072), Ua(Fn, qt));
        const ro = ua(Y) ? (Ai() ?? t.createThis()) : t.createThis(),
          So = roe(t, Y, Dr, ur, ro);
        (jr(So, Y), Rc(So, pt), Ua(So, qt));
        const Ns = t.createModifiersFromModifierFlags(Xh(Dr)),
          Da = ioe(t, Y, Ns, si, ro);
        return (jr(Da, Y), Cr(Da, 3072), Ua(Da, qt), sP([Fn, So, Da], _e, bc));
      }
      function Pr(Y) {
        if (Di(Y)) {
          const pt = Go(Y.name);
          if (
            (C.assert(pt, "Undeclared private name for property declaration."),
            !pt.isValid)
          )
            return Y;
          if (pt.isStatic && !P) {
            const qt = Bt(Y, t.createThis());
            if (qt)
              return t.createClassStaticBlockDeclaration(
                t.createBlock([qt], !0),
              );
          }
          return;
        }
        return A && !ua(Y) && pe?.data && pe.data.facts & 16
          ? t.updatePropertyDeclaration(
              Y,
              Xn(Y.modifiers, re, fl),
              Y.name,
              void 0,
              void 0,
              void 0,
            )
          : (Lp(Y, Fe) && (Y = zp(e, Y)),
            t.updatePropertyDeclaration(
              Y,
              Xn(Y.modifiers, Se, Aa),
              st(Y.name, Re, vc),
              void 0,
              void 0,
              st(Y.initializer, re, St),
            ));
      }
      function Ci(Y) {
        if (N && !Yu(Y)) {
          const pt = In(Y.name, !!Y.initializer || g);
          if ((pt && Ln().push(...ooe(pt)), ua(Y) && !P)) {
            const qt = Bt(Y, t.createThis());
            if (qt) {
              const fn = t.createClassStaticBlockDeclaration(
                t.createBlock([qt]),
              );
              return (
                jr(fn, Y),
                Rc(fn, Y),
                Rc(qt, { pos: -1, end: -1 }),
                JT(qt, void 0),
                FI(qt, void 0),
                fn
              );
            }
          }
          return;
        }
        return t.updatePropertyDeclaration(
          Y,
          Xn(Y.modifiers, Se, Aa),
          st(Y.name, Re, vc),
          void 0,
          void 0,
          st(Y.initializer, re, St),
        );
      }
      function $e(Y) {
        return (
          C.assert(
            !pf(Y),
            "Decorators should already have been transformed and elided.",
          ),
          nu(Y) ? Pr(Y) : Ci(Y)
        );
      }
      function At() {
        return k === -1 || (k === 3 && !!pe?.data && !!(pe.data.facts & 16));
      }
      function mn(Y) {
        return Yu(Y) && (At() || (wc(Y) && Fm(Y) & 32)) ? Ni(Y) : $e(Y);
      }
      function dr() {
        return !!xe && wc(xe) && fb(xe) && Yu(yl(xe));
      }
      function ri(Y) {
        if (dr()) {
          const pt = Ul(Y);
          pt.kind === 110 && fe.add(pt);
        }
      }
      function ai(Y, pt) {
        return ((pt = st(pt, re, St)), ri(pt), qi(Y, pt));
      }
      function qi(Y, pt) {
        switch ((Rc(pt, UT(pt, -1)), Y.kind)) {
          case "a":
            return r().createClassPrivateFieldGetHelper(
              pt,
              Y.brandCheckIdentifier,
              Y.kind,
              Y.getterName,
            );
          case "m":
            return r().createClassPrivateFieldGetHelper(
              pt,
              Y.brandCheckIdentifier,
              Y.kind,
              Y.methodName,
            );
          case "f":
            return r().createClassPrivateFieldGetHelper(
              pt,
              Y.brandCheckIdentifier,
              Y.kind,
              Y.isStatic ? Y.variableName : void 0,
            );
          case "untransformed":
            return C.fail(
              "Access helpers should not be created for untransformed private elements",
            );
          default:
            C.assertNever(Y, "Unknown private element type");
        }
      }
      function $o(Y) {
        if (eo(Y.name)) {
          const pt = Go(Y.name);
          if (pt) return vt(jr(ai(pt, Y.expression), Y), Y);
        }
        if (O && xe && mp(Y) && He(Y.name) && fP(xe) && pe?.data) {
          const {
            classConstructor: pt,
            superClassReference: qt,
            facts: fn,
          } = pe.data;
          if (fn & 1) return Qt(Y);
          if (pt && qt) {
            const ur = t.createReflectGetCall(
              qt,
              t.createStringLiteralFromNode(Y.name),
              pt,
            );
            return (jr(ur, Y.expression), vt(ur, Y.expression), ur);
          }
        }
        return kn(Y, re, e);
      }
      function Ia(Y) {
        if (O && xe && mp(Y) && fP(xe) && pe?.data) {
          const {
            classConstructor: pt,
            superClassReference: qt,
            facts: fn,
          } = pe.data;
          if (fn & 1) return Qt(Y);
          if (pt && qt) {
            const ur = t.createReflectGetCall(
              qt,
              st(Y.argumentExpression, re, St),
              pt,
            );
            return (jr(ur, Y.expression), vt(ur, Y.expression), ur);
          }
        }
        return kn(Y, re, e);
      }
      function Mn(Y, pt) {
        if (Y.operator === 46 || Y.operator === 47) {
          const qt = us(Y.operand);
          if (zR(qt)) {
            let fn;
            if ((fn = Go(qt.name))) {
              const ur = st(qt.expression, re, St);
              ri(ur);
              const { readExpression: si, initializeExpression: Dr } = Ft(ur);
              let Fn = ai(fn, si);
              const ro = YT(Y) || pt ? void 0 : t.createTempVariable(i);
              return (
                (Fn = C4(t, Y, Fn, i, ro)),
                (Fn = Ue(fn, Dr || si, Fn, 64)),
                jr(Fn, Y),
                vt(Fn, Y),
                ro && ((Fn = t.createComma(Fn, ro)), vt(Fn, Y)),
                Fn
              );
            }
          } else if (O && xe && mp(qt) && fP(xe) && pe?.data) {
            const {
              classConstructor: fn,
              superClassReference: ur,
              facts: si,
            } = pe.data;
            if (si & 1) {
              const Dr = Qt(qt);
              return YT(Y)
                ? t.updatePrefixUnaryExpression(Y, Dr)
                : t.updatePostfixUnaryExpression(Y, Dr);
            }
            if (fn && ur) {
              let Dr, Fn;
              if (
                (qr(qt)
                  ? He(qt.name) &&
                    (Fn = Dr = t.createStringLiteralFromNode(qt.name))
                  : z_(qt.argumentExpression)
                    ? (Fn = Dr = qt.argumentExpression)
                    : ((Fn = t.createTempVariable(i)),
                      (Dr = t.createAssignment(
                        Fn,
                        st(qt.argumentExpression, re, St),
                      ))),
                Dr && Fn)
              ) {
                let ro = t.createReflectGetCall(ur, Fn, fn);
                vt(ro, qt);
                const So = pt ? void 0 : t.createTempVariable(i);
                return (
                  (ro = C4(t, Y, ro, i, So)),
                  (ro = t.createReflectSetCall(ur, Dr, ro, fn)),
                  jr(ro, Y),
                  vt(ro, Y),
                  So && ((ro = t.createComma(ro, So)), vt(ro, Y)),
                  ro
                );
              }
            }
          }
        }
        return kn(Y, re, e);
      }
      function Uo(Y) {
        return t.updateForStatement(
          Y,
          st(Y.initializer, Ne, Of),
          st(Y.condition, re, St),
          st(Y.incrementor, Ne, St),
          Wu(Y.statement, re, e),
        );
      }
      function ot(Y) {
        return t.updateExpressionStatement(Y, st(Y.expression, Ne, St));
      }
      function Ft(Y) {
        const pt = Os(Y) ? Y : t.cloneNode(Y);
        if ((Y.kind === 110 && fe.has(Y) && fe.add(pt), z_(Y)))
          return { readExpression: pt, initializeExpression: void 0 };
        const qt = t.createTempVariable(i),
          fn = t.createAssignment(qt, pt);
        return { readExpression: qt, initializeExpression: fn };
      }
      function le(Y) {
        var pt;
        if (zR(Y.expression) && Go(Y.expression.name)) {
          const { thisArg: qt, target: fn } = t.createCallBinding(
            Y.expression,
            i,
            h,
          );
          return KE(Y)
            ? t.updateCallChain(
                Y,
                t.createPropertyAccessChain(
                  st(fn, re, St),
                  Y.questionDotToken,
                  "call",
                ),
                void 0,
                void 0,
                [st(qt, re, St), ...Xn(Y.arguments, re, St)],
              )
            : t.updateCallExpression(
                Y,
                t.createPropertyAccessExpression(st(fn, re, St), "call"),
                void 0,
                [st(qt, re, St), ...Xn(Y.arguments, re, St)],
              );
        }
        if (
          O &&
          xe &&
          mp(Y.expression) &&
          fP(xe) &&
          (pt = pe?.data) != null &&
          pt.classConstructor
        ) {
          const qt = t.createFunctionCallCall(
            st(Y.expression, re, St),
            pe.data.classConstructor,
            Xn(Y.arguments, re, St),
          );
          return (jr(qt, Y), vt(qt, Y), qt);
        }
        return kn(Y, re, e);
      }
      function ht(Y) {
        var pt;
        if (zR(Y.tag) && Go(Y.tag.name)) {
          const { thisArg: qt, target: fn } = t.createCallBinding(Y.tag, i, h);
          return t.updateTaggedTemplateExpression(
            Y,
            t.createCallExpression(
              t.createPropertyAccessExpression(st(fn, re, St), "bind"),
              void 0,
              [st(qt, re, St)],
            ),
            void 0,
            st(Y.template, re, lI),
          );
        }
        if (
          O &&
          xe &&
          mp(Y.tag) &&
          fP(xe) &&
          (pt = pe?.data) != null &&
          pt.classConstructor
        ) {
          const qt = t.createFunctionBindCall(
            st(Y.tag, re, St),
            pe.data.classConstructor,
            [],
          );
          return (
            jr(qt, Y),
            vt(qt, Y),
            t.updateTaggedTemplateExpression(
              Y,
              qt,
              void 0,
              st(Y.template, re, lI),
            )
          );
        }
        return kn(Y, re, e);
      }
      function ne(Y) {
        if ((pe && de.set(yl(Y), pe), P)) {
          if (pP(Y)) {
            const fn = st(Y.body.statements[0].expression, re, St);
            return id(fn, !0) && fn.left === fn.right ? void 0 : fn;
          }
          if (lx(Y)) return st(Y.body.statements[0].expression, re, St);
          s();
          let pt = zt(Y, (fn) => Xn(fn, re, Vi), Y.body.statements);
          pt = t.mergeLexicalEnvironment(pt, o());
          const qt = t.createImmediatelyInvokedArrowFunction(pt);
          return (
            jr(us(qt.expression), Y),
            Qh(us(qt.expression), 4),
            jr(qt, Y),
            vt(qt, Y),
            qt
          );
        }
      }
      function Fe(Y) {
        if (dc(Y) && !Y.name) {
          const pt = g3(Y);
          return yt(pt, lx)
            ? !1
            : (P || !!Fm(Y)) &&
                yt(pt, (fn) => Ql(fn) || nu(fn) || (N && Hw(fn)));
        }
        return !1;
      }
      function it(Y, pt) {
        if (rv(Y)) {
          const qt = ie;
          ((ie = void 0),
            (Y = t.updateBinaryExpression(
              Y,
              st(Y.left, lt, St),
              Y.operatorToken,
              st(Y.right, re, St),
            )));
          const fn = yt(ie) ? t.inlineExpressions(m2([...ie, Y])) : Y;
          return ((ie = qt), fn);
        }
        if (id(Y)) {
          Lp(Y, Fe) && ((Y = zp(e, Y)), C.assertNode(Y, id));
          const qt = Ul(Y.left, 9);
          if (zR(qt)) {
            const fn = Go(qt.name);
            if (fn)
              return vt(
                jr(Ue(fn, qt.expression, Y.right, Y.operatorToken.kind), Y),
                Y,
              );
          } else if (O && xe && mp(Y.left) && fP(xe) && pe?.data) {
            const {
              classConstructor: fn,
              superClassReference: ur,
              facts: si,
            } = pe.data;
            if (si & 1)
              return t.updateBinaryExpression(
                Y,
                Qt(Y.left),
                Y.operatorToken,
                st(Y.right, re, St),
              );
            if (fn && ur) {
              let Dr = Ws(Y.left)
                ? st(Y.left.argumentExpression, re, St)
                : He(Y.left.name)
                  ? t.createStringLiteralFromNode(Y.left.name)
                  : void 0;
              if (Dr) {
                let Fn = st(Y.right, re, St);
                if (cP(Y.operatorToken.kind)) {
                  let So = Dr;
                  z_(Dr) ||
                    ((So = t.createTempVariable(i)),
                    (Dr = t.createAssignment(So, Dr)));
                  const Ns = t.createReflectGetCall(ur, So, fn);
                  (jr(Ns, Y.left),
                    vt(Ns, Y.left),
                    (Fn = t.createBinaryExpression(
                      Ns,
                      dP(Y.operatorToken.kind),
                      Fn,
                    )),
                    vt(Fn, Y));
                }
                const ro = pt ? void 0 : t.createTempVariable(i);
                return (
                  ro && ((Fn = t.createAssignment(ro, Fn)), vt(ro, Y)),
                  (Fn = t.createReflectSetCall(ur, Dr, Fn, fn)),
                  jr(Fn, Y),
                  vt(Fn, Y),
                  ro && ((Fn = t.createComma(Fn, ro)), vt(Fn, Y)),
                  Fn
                );
              }
            }
          }
        }
        return uqe(Y) ? Ge(Y) : kn(Y, re, e);
      }
      function dt(Y, pt) {
        const qt = f3(Y.elements, Ne);
        return t.updateCommaListExpression(Y, qt);
      }
      function Lt(Y, pt) {
        const qt = pt ? Ne : re,
          fn = st(Y.expression, qt, St);
        return t.updateParenthesizedExpression(Y, fn);
      }
      function Ue(Y, pt, qt, fn) {
        if (((pt = st(pt, re, St)), (qt = st(qt, re, St)), ri(pt), cP(fn))) {
          const { readExpression: ur, initializeExpression: si } = Ft(pt);
          ((pt = si || ur),
            (qt = t.createBinaryExpression(qi(Y, ur), dP(fn), qt)));
        }
        switch ((Rc(pt, UT(pt, -1)), Y.kind)) {
          case "a":
            return r().createClassPrivateFieldSetHelper(
              pt,
              Y.brandCheckIdentifier,
              qt,
              Y.kind,
              Y.setterName,
            );
          case "m":
            return r().createClassPrivateFieldSetHelper(
              pt,
              Y.brandCheckIdentifier,
              qt,
              Y.kind,
              void 0,
            );
          case "f":
            return r().createClassPrivateFieldSetHelper(
              pt,
              Y.brandCheckIdentifier,
              qt,
              Y.kind,
              Y.isStatic ? Y.variableName : void 0,
            );
          case "untransformed":
            return C.fail(
              "Access helpers should not be created for untransformed private elements",
            );
          default:
            C.assertNever(Y, "Unknown private element type");
        }
      }
      function Rt(Y) {
        return Un(Y.members, vae);
      }
      function It(Y) {
        var pt;
        let qt = 0;
        const fn = yl(Y);
        (ui(fn) && tv(E, fn) && (qt |= 1), P && (YU(Y) || b3(Y)) && (qt |= 2));
        let ur = !1,
          si = !1,
          Dr = !1,
          Fn = !1;
        for (const So of Y.members)
          ua(So)
            ? (((So.name && (eo(So.name) || Yu(So)) && P) ||
                (Yu(So) &&
                  k === -1 &&
                  !Y.name &&
                  !((pt = Y.emitNode) != null && pt.classThis))) &&
                (qt |= 2),
              (Po(So) || Ql(So)) &&
                (W &&
                  So.transformFlags & 16384 &&
                  ((qt |= 8), qt & 1 || (qt |= 2)),
                O && So.transformFlags & 134217728 && (qt & 1 || (qt |= 6))))
            : PS(yl(So)) ||
              (Yu(So)
                ? ((Fn = !0), Dr || (Dr = nu(So)))
                : nu(So)
                  ? ((Dr = !0), d.hasNodeCheckFlag(So, 262144) && (qt |= 2))
                  : Po(So) && ((ur = !0), si || (si = !!So.initializer)));
        return (
          ((R && ur) || (A && si) || (P && Dr) || (P && Fn && k === -1)) &&
            (qt |= 16),
          qt
        );
      }
      function Ot(Y) {
        var pt;
        if ((((pt = pe?.data) == null ? void 0 : pt.facts) || 0) & 4) {
          const fn = t.createTempVariable(i, !0);
          return (
            (En().superClassReference = fn),
            t.updateExpressionWithTypeArguments(
              Y,
              t.createAssignment(fn, st(Y.expression, re, St)),
              void 0,
            )
          );
        }
        return kn(Y, re, e);
      }
      function nt(Y, pt) {
        var qt;
        const fn = ve,
          ur = ie,
          si = pe;
        ((ve = Y), (ie = void 0), yn());
        const Dr = Fm(Y) & 32;
        if (P || Dr) {
          const So = Oo(Y);
          if (So && He(So)) xn().data.className = So;
          else if (
            (qt = Y.emitNode) != null &&
            qt.assignedName &&
            ka(Y.emitNode.assignedName)
          ) {
            if (
              Y.emitNode.assignedName.textSourceNode &&
              He(Y.emitNode.assignedName.textSourceNode)
            )
              xn().data.className = Y.emitNode.assignedName.textSourceNode;
            else if (fp(Y.emitNode.assignedName.text, h)) {
              const Ns = t.createIdentifier(Y.emitNode.assignedName.text);
              xn().data.className = Ns;
            }
          }
        }
        if (P) {
          const So = Rt(Y);
          yt(So) && (xn().data.weakSetName = Ps("instances", So[0].name));
        }
        const Fn = It(Y);
        (Fn && (En().facts = Fn), Fn & 8 && Mt());
        const ro = pt(Y, Fn);
        return (wt(), C.assert(pe === si), (ve = fn), (ie = ur), ro);
      }
      function Kt(Y) {
        return nt(Y, Tr);
      }
      function Tr(Y, pt) {
        var qt, fn;
        let ur;
        if (pt & 2)
          if (P && (qt = Y.emitNode) != null && qt.classThis)
            ((En().classConstructor = Y.emitNode.classThis),
              (ur = t.createAssignment(
                Y.emitNode.classThis,
                t.getInternalName(Y),
              )));
          else {
            const Hs = t.createTempVariable(i, !0);
            ((En().classConstructor = t.cloneNode(Hs)),
              (ur = t.createAssignment(Hs, t.getInternalName(Y))));
          }
        (fn = Y.emitNode) != null &&
          fn.classThis &&
          (En().classThis = Y.emitNode.classThis);
        const si = d.hasNodeCheckFlag(Y, 262144),
          Dr = di(Y, 32),
          Fn = di(Y, 2048);
        let ro = Xn(Y.modifiers, Se, Aa);
        const So = Xn(Y.heritageClauses, Be, Fp),
          { members: Ns, prologue: Da } = Ae(Y),
          Qs = [];
        if (
          (ur && Ln().unshift(ur),
          yt(ie) &&
            Qs.push(t.createExpressionStatement(t.inlineExpressions(ie))),
          A || P || Fm(Y) & 32)
        ) {
          const Hs = g3(Y);
          yt(Hs) && gt(Qs, Hs, t.getInternalName(Y));
        }
        Qs.length > 0 &&
          Dr &&
          Fn &&
          ((ro = Xn(ro, (Hs) => (xw(Hs) ? void 0 : Hs), Aa)),
          Qs.push(
            t.createExportAssignment(void 0, !1, t.getLocalName(Y, !1, !0)),
          ));
        const Sc = En().classConstructor;
        si && Sc && (ft(), (ye[Fu(Y)] = Sc));
        const fc = t.updateClassDeclaration(Y, ro, Y.name, void 0, So, Ns);
        return (
          Qs.unshift(fc),
          Da && Qs.unshift(t.createExpressionStatement(Da)),
          Qs
        );
      }
      function Oe(Y) {
        return nt(Y, Nt);
      }
      function Nt(Y, pt) {
        var qt, fn, ur;
        const si = !!(pt & 1),
          Dr = g3(Y),
          Fn = d.hasNodeCheckFlag(Y, 262144),
          ro = d.hasNodeCheckFlag(Y, 32768);
        let So;
        function Ns() {
          var Pd;
          if (P && (Pd = Y.emitNode) != null && Pd.classThis)
            return (En().classConstructor = Y.emitNode.classThis);
          const nf = t.createTempVariable(ro ? u : i, !0);
          return ((En().classConstructor = t.cloneNode(nf)), nf);
        }
        ((qt = Y.emitNode) != null &&
          qt.classThis &&
          (En().classThis = Y.emitNode.classThis),
          pt & 2 && (So ?? (So = Ns())));
        const Da = Xn(Y.modifiers, Se, Aa),
          Qs = Xn(Y.heritageClauses, Be, Fp),
          { members: Sc, prologue: fc } = Ae(Y),
          Hs = t.updateClassExpression(Y, Da, Y.name, void 0, Qs, Sc),
          Pl = [];
        if (
          (fc && Pl.push(fc),
          ((P || Fm(Y) & 32) &&
            yt(Dr, (Pd) => Ql(Pd) || nu(Pd) || (N && Hw(Pd)))) ||
            yt(ie))
        )
          if (si)
            (C.assertIsDefined(
              K,
              "Decorated classes transformed by TypeScript are expected to be within a variable declaration.",
            ),
              yt(ie) && Xr(K, Vt(ie, t.createExpressionStatement)),
              yt(Dr) &&
                gt(
                  K,
                  Dr,
                  ((fn = Y.emitNode) == null ? void 0 : fn.classThis) ??
                    t.getInternalName(Y),
                ),
              So
                ? Pl.push(t.createAssignment(So, Hs))
                : P && (ur = Y.emitNode) != null && ur.classThis
                  ? Pl.push(t.createAssignment(Y.emitNode.classThis, Hs))
                  : Pl.push(Hs));
          else {
            if ((So ?? (So = Ns()), Fn)) {
              ft();
              const Pd = t.cloneNode(So);
              ((Pd.emitNode.autoGenerate.flags &= -9), (ye[Fu(Y)] = Pd));
            }
            (Pl.push(t.createAssignment(So, Hs)),
              Xr(Pl, ie),
              Xr(Pl, gr(Dr, So)),
              Pl.push(t.cloneNode(So)));
          }
        else Pl.push(Hs);
        return (
          Pl.length > 1 && (Qh(Hs, 131072), Pl.forEach(au)),
          t.inlineExpressions(Pl)
        );
      }
      function he(Y) {
        if (!P) return kn(Y, re, e);
      }
      function B(Y) {
        if (W && xe && Ql(xe) && pe?.data) {
          const { classThis: pt, classConstructor: qt } = pe.data;
          return pt ?? qt ?? Y;
        }
        return Y;
      }
      function Ae(Y) {
        const pt = !!(Fm(Y) & 32);
        if (P || Z) {
          for (const Dr of Y.members)
            if (nu(Dr))
              if (Di(Dr)) xl(Dr, Dr.name, ln);
              else {
                const Fn = xn();
                L1(Fn, Dr.name, { kind: "untransformed" });
              }
          if ((P && yt(Rt(Y)) && te(), At())) {
            for (const Dr of Y.members)
              if (Yu(Dr)) {
                const Fn = t.getGeneratedPrivateNameForNode(
                  Dr.name,
                  void 0,
                  "_accessor_storage",
                );
                if (P || (pt && wc(Dr))) xl(Dr, Fn, Ii);
                else {
                  const ro = xn();
                  L1(ro, Fn, { kind: "untransformed" });
                }
              }
          }
        }
        let qt = Xn(Y.members, ce, bc),
          fn;
        yt(qt, Ml) || (fn = xt(void 0, Y));
        let ur, si;
        if (!P && yt(ie)) {
          let Dr = t.createExpressionStatement(t.inlineExpressions(ie));
          if (Dr.transformFlags & 134234112) {
            const ro = t.createTempVariable(i),
              So = t.createArrowFunction(
                void 0,
                void 0,
                [],
                void 0,
                void 0,
                t.createBlock([Dr]),
              );
            ((ur = t.createAssignment(ro, So)),
              (Dr = t.createExpressionStatement(
                t.createCallExpression(ro, void 0, []),
              )));
          }
          const Fn = t.createBlock([Dr]);
          ((si = t.createClassStaticBlockDeclaration(Fn)), (ie = void 0));
        }
        if (fn || si) {
          let Dr;
          const Fn = hn(qt, pP),
            ro = hn(qt, lx);
          ((Dr = Bn(Dr, Fn)),
            (Dr = Bn(Dr, ro)),
            (Dr = Bn(Dr, fn)),
            (Dr = Bn(Dr, si)));
          const So = Fn || ro ? Un(qt, (Ns) => Ns !== Fn && Ns !== ro) : qt;
          ((Dr = Xr(Dr, So)), (qt = vt(t.createNodeArray(Dr), Y.members)));
        }
        return { members: qt, prologue: ur };
      }
      function te() {
        const { weakSetName: Y } = xn().data;
        (C.assert(
          Y,
          "weakSetName should be set in private identifier environment",
        ),
          Ln().push(
            t.createAssignment(
              Y,
              t.createNewExpression(t.createIdentifier("WeakSet"), void 0, []),
            ),
          ));
      }
      function xt(Y, pt) {
        if (((Y = st(Y, re, Ml)), !pe?.data || !(pe.data.facts & 16))) return Y;
        const qt = lh(pt),
          fn = !!(qt && Ul(qt.expression).kind !== 106),
          ur = Fl(Y ? Y.parameters : void 0, re, e),
          si = Pe(pt, Y, fn);
        return si
          ? Y
            ? (C.assert(ur), t.updateConstructorDeclaration(Y, void 0, ur, si))
            : au(
                jr(
                  vt(
                    t.createConstructorDeclaration(void 0, ur ?? [], si),
                    Y || pt,
                  ),
                  Y,
                ),
              )
          : Y;
      }
      function Xt(Y, pt, qt, fn, ur, si, Dr) {
        const Fn = fn[ur],
          ro = pt[Fn];
        if ((Xr(Y, Xn(pt, re, Vi, qt, Fn - qt)), (qt = Fn + 1), E1(ro))) {
          const So = [];
          Xt(So, ro.tryBlock.statements, 0, fn, ur + 1, si, Dr);
          const Ns = t.createNodeArray(So);
          (vt(Ns, ro.tryBlock.statements),
            Y.push(
              t.updateTryStatement(
                ro,
                t.updateBlock(ro.tryBlock, So),
                st(ro.catchClause, re, US),
                st(ro.finallyBlock, re, ea),
              ),
            ));
        } else {
          for (Xr(Y, Xn(pt, re, Vi, Fn, 1)); qt < pt.length; ) {
            const So = pt[qt];
            if (Np(yl(So), Dr)) qt++;
            else break;
          }
          Xr(Y, si);
        }
        Xr(Y, Xn(pt, re, Vi, qt));
      }
      function Pe(Y, pt, qt) {
        var fn;
        const ur = JU(Y, !1, !1);
        let si = ur;
        g || (si = Un(si, (fc) => !!fc.initializer || eo(fc.name) || Kh(fc)));
        const Dr = Rt(Y),
          Fn = yt(si) || yt(Dr);
        if (!pt && !Fn) return gf(void 0, re, e);
        l();
        const ro = !pt && qt;
        let So = 0,
          Ns = [];
        const Da = [],
          Qs = t.createThis();
        if ((jt(Da, Dr, Qs), pt)) {
          const fc = Un(ur, (Pl) => Np(yl(Pl), pt)),
            Hs = Un(si, (Pl) => !Np(yl(Pl), pt));
          (gt(Da, fc, Qs), gt(Da, Hs, Qs));
        } else gt(Da, si, Qs);
        if (pt?.body) {
          So = t.copyPrologue(pt.body.statements, Ns, !1, re);
          const fc = _3(pt.body.statements, So);
          if (fc.length) Xt(Ns, pt.body.statements, So, fc, 0, Da, pt);
          else {
            for (; So < pt.body.statements.length; ) {
              const Hs = pt.body.statements[So];
              if (Np(yl(Hs), pt)) So++;
              else break;
            }
            (Xr(Ns, Da), Xr(Ns, Xn(pt.body.statements, re, Vi, So)));
          }
        } else
          (ro &&
            Ns.push(
              t.createExpressionStatement(
                t.createCallExpression(t.createSuper(), void 0, [
                  t.createSpreadElement(t.createIdentifier("arguments")),
                ]),
              ),
            ),
            Xr(Ns, Da));
        if (((Ns = t.mergeLexicalEnvironment(Ns, o())), Ns.length === 0 && !pt))
          return;
        const Sc =
          pt?.body && pt.body.statements.length >= Ns.length
            ? (pt.body.multiLine ?? Ns.length > 0)
            : Ns.length > 0;
        return vt(
          t.createBlock(
            vt(
              t.createNodeArray(Ns),
              ((fn = pt?.body) == null ? void 0 : fn.statements) ?? Y.members,
            ),
            Sc,
          ),
          pt?.body,
        );
      }
      function gt(Y, pt, qt) {
        for (const fn of pt) {
          if (ua(fn) && !P) continue;
          const ur = Bt(fn, qt);
          ur && Y.push(ur);
        }
      }
      function Bt(Y, pt) {
        const qt = Ql(Y) ? zt(Y, ne, Y) : tr(Y, pt);
        if (!qt) return;
        const fn = t.createExpressionStatement(qt);
        (jr(fn, Y), Qh(fn, Qa(Y) & 3072), Rc(fn, Y));
        const ur = yl(Y);
        return (
          to(ur) ? (Ua(fn, ur), cw(fn)) : Ua(fn, Yh(Y)),
          JT(qt, void 0),
          FI(qt, void 0),
          Kh(ur) && Qh(fn, 3072),
          fn
        );
      }
      function gr(Y, pt) {
        const qt = [];
        for (const fn of Y) {
          const ur = Ql(fn) ? zt(fn, ne, fn) : zt(fn, () => tr(fn, pt), void 0);
          ur &&
            (au(ur),
            jr(ur, fn),
            Qh(ur, Qa(fn) & 3072),
            Ua(ur, Yh(fn)),
            Rc(ur, fn),
            qt.push(ur));
        }
        return qt;
      }
      function tr(Y, pt) {
        var qt;
        const fn = xe,
          ur = Jn(Y, pt);
        return (
          ur &&
            wc(Y) &&
            (qt = pe?.data) != null &&
            qt.facts &&
            (jr(ur, Y), Qh(ur, 4), Ua(ur, lv(Y.name)), de.set(yl(Y), pe)),
          (xe = fn),
          ur
        );
      }
      function Jn(Y, pt) {
        const qt = !g;
        Lp(Y, Fe) && (Y = zp(e, Y));
        const fn = Kh(Y)
          ? t.getGeneratedPrivateNameForNode(Y.name)
          : va(Y.name) && !z_(Y.name.expression)
            ? t.updateComputedPropertyName(
                Y.name,
                t.getGeneratedNameForNode(Y.name),
              )
            : Y.name;
        if ((wc(Y) && (xe = Y), eo(fn) && Di(Y))) {
          const Dr = Go(fn);
          if (Dr)
            return Dr.kind === "f"
              ? Dr.isStatic
                ? sqe(t, Dr.variableName, st(Y.initializer, re, St))
                : lqe(t, pt, st(Y.initializer, re, St), Dr.brandCheckIdentifier)
              : void 0;
          C.fail("Undeclared private name for property declaration.");
        }
        if ((eo(fn) || wc(Y)) && !Y.initializer) return;
        const ur = yl(Y);
        if (di(ur, 64)) return;
        let si = st(Y.initializer, re, St);
        if (Np(ur, ur.parent) && He(fn)) {
          const Dr = t.cloneNode(fn);
          (si
            ? (Ou(si) &&
                Sw(si.expression) &&
                WM(si.expression.left, "___runInitializers") &&
                KI(si.expression.right) &&
                np(si.expression.right.expression) &&
                (si = si.expression.left),
              (si = t.inlineExpressions([si, Dr])))
            : (si = Dr),
            Cr(fn, 3168),
            Ua(Dr, ur.name),
            Cr(Dr, 3072));
        } else si ?? (si = t.createVoidZero());
        if (qt || eo(fn)) {
          const Dr = D1(t, pt, fn, fn);
          return (Qh(Dr, 1024), t.createAssignment(Dr, si));
        } else {
          const Dr = va(fn)
              ? fn.expression
              : He(fn)
                ? t.createStringLiteral(Gi(fn.escapedText))
                : fn,
            Fn = t.createPropertyDescriptor({
              value: si,
              configurable: !0,
              writable: !0,
              enumerable: !0,
            });
          return t.createObjectDefinePropertyCall(pt, Dr, Fn);
        }
      }
      function ft() {
        (q & 1) === 0 && ((q |= 1), e.enableSubstitution(80), (ye = []));
      }
      function Mt() {
        (q & 2) === 0 &&
          ((q |= 2),
          e.enableSubstitution(110),
          e.enableEmitNotification(263),
          e.enableEmitNotification(219),
          e.enableEmitNotification(177),
          e.enableEmitNotification(178),
          e.enableEmitNotification(179),
          e.enableEmitNotification(175),
          e.enableEmitNotification(173),
          e.enableEmitNotification(168));
      }
      function jt(Y, pt, qt) {
        if (!P || !yt(pt)) return;
        const { weakSetName: fn } = xn().data;
        (C.assert(
          fn,
          "weakSetName should be set in private identifier environment",
        ),
          Y.push(t.createExpressionStatement(cqe(t, qt, fn))));
      }
      function Qt(Y) {
        return qr(Y)
          ? t.updatePropertyAccessExpression(Y, t.createVoidZero(), Y.name)
          : t.updateElementAccessExpression(
              Y,
              t.createVoidZero(),
              st(Y.argumentExpression, re, St),
            );
      }
      function In(Y, pt) {
        if (va(Y)) {
          const qt = w4(Y),
            fn = st(Y.expression, re, St),
            ur = Wm(fn),
            si = z_(ur);
          if (!(!!qt || (id(ur) && pl(ur.left))) && !si && pt) {
            const Fn = t.getGeneratedNameForNode(Y);
            return (
              d.hasNodeCheckFlag(Y, 32768) ? u(Fn) : i(Fn),
              t.createAssignment(Fn, fn)
            );
          }
          return si || He(ur) ? void 0 : fn;
        }
      }
      function yn() {
        pe = { previous: pe, data: void 0 };
      }
      function wt() {
        pe = pe?.previous;
      }
      function En() {
        return (
          C.assert(pe),
          pe.data ??
            (pe.data = {
              facts: 0,
              classConstructor: void 0,
              classThis: void 0,
              superClassReference: void 0,
            })
        );
      }
      function xn() {
        return (
          C.assert(pe),
          pe.privateEnv ??
            (pe.privateEnv = Tae({ className: void 0, weakSetName: void 0 }))
        );
      }
      function Ln() {
        return ie ?? (ie = []);
      }
      function ln(Y, pt, qt, fn, ur, si, Dr) {
        Yu(Y)
          ? Bl(Y, pt, qt, fn, ur, si)
          : Po(Y)
            ? Ii(Y, pt, qt, fn, ur, si)
            : Nl(Y)
              ? ra(Y, pt, qt, fn, ur, si)
              : Hf(Y)
                ? sa(Y, pt, qt, fn, ur, si, Dr)
                : gp(Y) && zo(Y, pt, qt, fn, ur, si, Dr);
      }
      function Ii(Y, pt, qt, fn, ur, si, Dr) {
        if (ur) {
          const Fn = C.checkDefined(
              qt.classThis ?? qt.classConstructor,
              "classConstructor should be set in private identifier environment",
            ),
            ro = co(pt);
          L1(fn, pt, {
            kind: "f",
            isStatic: !0,
            brandCheckIdentifier: Fn,
            variableName: ro,
            isValid: si,
          });
        } else {
          const Fn = co(pt);
          (L1(fn, pt, {
            kind: "f",
            isStatic: !1,
            brandCheckIdentifier: Fn,
            isValid: si,
          }),
            Ln().push(
              t.createAssignment(
                Fn,
                t.createNewExpression(
                  t.createIdentifier("WeakMap"),
                  void 0,
                  [],
                ),
              ),
            ));
        }
      }
      function ra(Y, pt, qt, fn, ur, si, Dr) {
        const Fn = co(pt),
          ro = ur
            ? C.checkDefined(
                qt.classThis ?? qt.classConstructor,
                "classConstructor should be set in private identifier environment",
              )
            : C.checkDefined(
                fn.data.weakSetName,
                "weakSetName should be set in private identifier environment",
              );
        L1(fn, pt, {
          kind: "m",
          methodName: Fn,
          brandCheckIdentifier: ro,
          isStatic: ur,
          isValid: si,
        });
      }
      function sa(Y, pt, qt, fn, ur, si, Dr) {
        const Fn = co(pt, "_get"),
          ro = ur
            ? C.checkDefined(
                qt.classThis ?? qt.classConstructor,
                "classConstructor should be set in private identifier environment",
              )
            : C.checkDefined(
                fn.data.weakSetName,
                "weakSetName should be set in private identifier environment",
              );
        Dr?.kind === "a" && Dr.isStatic === ur && !Dr.getterName
          ? (Dr.getterName = Fn)
          : L1(fn, pt, {
              kind: "a",
              getterName: Fn,
              setterName: void 0,
              brandCheckIdentifier: ro,
              isStatic: ur,
              isValid: si,
            });
      }
      function zo(Y, pt, qt, fn, ur, si, Dr) {
        const Fn = co(pt, "_set"),
          ro = ur
            ? C.checkDefined(
                qt.classThis ?? qt.classConstructor,
                "classConstructor should be set in private identifier environment",
              )
            : C.checkDefined(
                fn.data.weakSetName,
                "weakSetName should be set in private identifier environment",
              );
        Dr?.kind === "a" && Dr.isStatic === ur && !Dr.setterName
          ? (Dr.setterName = Fn)
          : L1(fn, pt, {
              kind: "a",
              getterName: void 0,
              setterName: Fn,
              brandCheckIdentifier: ro,
              isStatic: ur,
              isValid: si,
            });
      }
      function Bl(Y, pt, qt, fn, ur, si, Dr) {
        const Fn = co(pt, "_get"),
          ro = co(pt, "_set"),
          So = ur
            ? C.checkDefined(
                qt.classThis ?? qt.classConstructor,
                "classConstructor should be set in private identifier environment",
              )
            : C.checkDefined(
                fn.data.weakSetName,
                "weakSetName should be set in private identifier environment",
              );
        L1(fn, pt, {
          kind: "a",
          getterName: Fn,
          setterName: ro,
          brandCheckIdentifier: So,
          isStatic: ur,
          isValid: si,
        });
      }
      function xl(Y, pt, qt) {
        const fn = En(),
          ur = xn(),
          si = XU(ur, pt),
          Dr = wc(Y),
          Fn = !dqe(pt) && si === void 0;
        qt(Y, pt, fn, ur, Dr, Fn, si);
      }
      function Ps(Y, pt, qt) {
        const { className: fn } = xn().data,
          ur = fn ? { prefix: "_", node: fn, suffix: "_" } : "_",
          si =
            typeof Y == "object"
              ? t.getGeneratedNameForNode(Y, 24, ur, qt)
              : typeof Y == "string"
                ? t.createUniqueName(Y, 16, ur, qt)
                : t.createTempVariable(void 0, !0, ur, qt);
        return (d.hasNodeCheckFlag(pt, 32768) ? u(si) : i(si), si);
      }
      function co(Y, pt) {
        const qt = UN(Y);
        return Ps(qt?.substring(1) ?? Y, Y, pt);
      }
      function Go(Y) {
        const pt = Sae(pe, Y);
        return pt?.kind === "untransformed" ? void 0 : pt;
      }
      function Tc(Y) {
        const pt = t.getGeneratedNameForNode(Y),
          qt = Go(Y.name);
        if (!qt) return kn(Y, re, e);
        let fn = Y.expression;
        return (
          (lk(Y) || mp(Y) || !KS(Y.expression)) &&
            ((fn = t.createTempVariable(i, !0)),
            Ln().push(
              t.createBinaryExpression(fn, 64, st(Y.expression, re, St)),
            )),
          t.createAssignmentTargetWrapper(pt, Ue(qt, fn, pt, 64))
        );
      }
      function $s(Y) {
        if (Wa(Y) || Cd(Y)) return Zt(Y);
        if (zR(Y)) return Tc(Y);
        if (O && xe && mp(Y) && fP(xe) && pe?.data) {
          const {
            classConstructor: pt,
            superClassReference: qt,
            facts: fn,
          } = pe.data;
          if (fn & 1) return Qt(Y);
          if (pt && qt) {
            const ur = Ws(Y)
              ? st(Y.argumentExpression, re, St)
              : He(Y.name)
                ? t.createStringLiteralFromNode(Y.name)
                : void 0;
            if (ur) {
              const si = t.createTempVariable(void 0);
              return t.createAssignmentTargetWrapper(
                si,
                t.createReflectSetCall(qt, ur, si, pt),
              );
            }
          }
        }
        return kn(Y, re, e);
      }
      function Ra(Y) {
        if ((Lp(Y, Fe) && (Y = zp(e, Y)), id(Y, !0))) {
          const pt = $s(Y.left),
            qt = st(Y.right, re, St);
          return t.updateBinaryExpression(Y, pt, Y.operatorToken, qt);
        }
        return $s(Y);
      }
      function ec(Y) {
        if ($u(Y.expression)) {
          const pt = $s(Y.expression);
          return t.updateSpreadElement(Y, pt);
        }
        return kn(Y, re, e);
      }
      function bf(Y) {
        if (V2(Y)) {
          if (qf(Y)) return ec(Y);
          if (!Jc(Y)) return Ra(Y);
        }
        return kn(Y, re, e);
      }
      function Lo(Y) {
        const pt = st(Y.name, re, vc);
        if (id(Y.initializer, !0)) {
          const qt = Ra(Y.initializer);
          return t.updatePropertyAssignment(Y, pt, qt);
        }
        if ($u(Y.initializer)) {
          const qt = $s(Y.initializer);
          return t.updatePropertyAssignment(Y, pt, qt);
        }
        return kn(Y, re, e);
      }
      function fa(Y) {
        return (Lp(Y, Fe) && (Y = zp(e, Y)), kn(Y, re, e));
      }
      function is(Y) {
        if ($u(Y.expression)) {
          const pt = $s(Y.expression);
          return t.updateSpreadAssignment(Y, pt);
        }
        return kn(Y, re, e);
      }
      function qa(Y) {
        return (
          C.assertNode(Y, G2),
          xg(Y) ? is(Y) : Ud(Y) ? fa(Y) : Cc(Y) ? Lo(Y) : kn(Y, re, e)
        );
      }
      function Zt(Y) {
        return Cd(Y)
          ? t.updateArrayLiteralExpression(Y, Xn(Y.elements, bf, St))
          : t.updateObjectLiteralExpression(Y, Xn(Y.properties, qa, ny));
      }
      function As(Y, pt, qt) {
        const fn = yl(pt),
          ur = de.get(fn);
        if (ur) {
          const si = pe,
            Dr = Ce;
          ((pe = ur),
            (Ce = X),
            (X = !Ql(fn) || !(Fm(fn) & 32)),
            J(Y, pt, qt),
            (X = Ce),
            (Ce = Dr),
            (pe = si));
          return;
        }
        switch (pt.kind) {
          case 219:
            if (Xs(fn) || Qa(pt) & 524288) break;
          case 263:
          case 177:
          case 178:
          case 179:
          case 175:
          case 173: {
            const si = pe,
              Dr = Ce;
            ((pe = void 0),
              (Ce = X),
              (X = !1),
              J(Y, pt, qt),
              (X = Ce),
              (Ce = Dr),
              (pe = si));
            return;
          }
          case 168: {
            const si = pe,
              Dr = X;
            ((pe = pe?.previous), (X = Ce), J(Y, pt, qt), (X = Dr), (pe = si));
            return;
          }
        }
        J(Y, pt, qt);
      }
      function Hl(Y, pt) {
        return ((pt = j(Y, pt)), Y === 1 ? sc(pt) : pt);
      }
      function sc(Y) {
        switch (Y.kind) {
          case 80:
            return Fs(Y);
          case 110:
            return vd(Y);
        }
        return Y;
      }
      function vd(Y) {
        if (q & 2 && pe?.data && !fe.has(Y)) {
          const { facts: pt, classConstructor: qt, classThis: fn } = pe.data,
            ur = X ? (fn ?? qt) : qt;
          if (ur) return vt(jr(t.cloneNode(ur), Y), Y);
          if (pt & 1 && E)
            return t.createParenthesizedExpression(t.createVoidZero());
        }
        return Y;
      }
      function Fs(Y) {
        return Ee(Y) || Y;
      }
      function Ee(Y) {
        if (q & 1 && d.hasNodeCheckFlag(Y, 536870912)) {
          const pt = d.getReferencedValueDeclaration(Y);
          if (pt) {
            const qt = ye[pt.id];
            if (qt) {
              const fn = t.cloneNode(qt);
              return (Ua(fn, Y), Rc(fn, Y), fn);
            }
          }
        }
      }
    }
    function sqe(e, t, r) {
      return e.createAssignment(
        t,
        e.createObjectLiteralExpression([
          e.createPropertyAssignment("value", r || e.createVoidZero()),
        ]),
      );
    }
    function lqe(e, t, r, i) {
      return e.createCallExpression(
        e.createPropertyAccessExpression(i, "set"),
        void 0,
        [t, r || e.createVoidZero()],
      );
    }
    function cqe(e, t, r) {
      return e.createCallExpression(
        e.createPropertyAccessExpression(r, "add"),
        void 0,
        [t],
      );
    }
    function dqe(e) {
      return !YE(e) && e.escapedText === "#constructor";
    }
    function uqe(e) {
      return eo(e.left) && e.operatorToken.kind === 103;
    }
    function pqe(e) {
      return Po(e) && wc(e);
    }
    function fP(e) {
      return Ql(e) || pqe(e);
    }
    function Pae(e) {
      const { factory: t, hoistVariableDeclaration: r } = e,
        i = e.getEmitResolver(),
        o = e.getCompilerOptions(),
        s = Ga(o),
        l = Vd(o, "strictNullChecks");
      let u, d;
      return {
        serializeTypeNode: (ie, K) => _(ie, N, K),
        serializeTypeOfNode: (ie, K, pe) => _(ie, g, K, pe),
        serializeParameterTypesOfNode: (ie, K, pe) => _(ie, E, K, pe),
        serializeReturnTypeOfNode: (ie, K) => _(ie, R, K),
      };
      function _(ie, K, pe, de) {
        const fe = u,
          ve = d;
        ((u = ie.currentLexicalScope), (d = ie.currentNameScope));
        const xe = de === void 0 ? K(pe) : K(pe, de);
        return ((u = fe), (d = ve), xe);
      }
      function h(ie, K) {
        const pe = MS(K.members, ie);
        return (
          (pe.setAccessor && Pne(pe.setAccessor)) ||
          (pe.getAccessor && kp(pe.getAccessor))
        );
      }
      function g(ie, K) {
        switch (ie.kind) {
          case 173:
          case 170:
            return N(ie.type);
          case 179:
          case 178:
            return N(h(ie, K));
          case 264:
          case 232:
          case 175:
            return t.createIdentifier("Function");
          default:
            return t.createVoidZero();
        }
      }
      function E(ie, K) {
        const pe = ui(ie) ? yg(ie) : Yo(ie) && fm(ie.body) ? ie : void 0,
          de = [];
        if (pe) {
          const fe = A(pe, K),
            ve = fe.length;
          for (let xe = 0; xe < ve; xe++) {
            const X = fe[xe];
            (xe === 0 && He(X.name) && X.name.escapedText === "this") ||
              (X.dotDotDotToken ? de.push(N(DG(X.type))) : de.push(g(X, K)));
          }
        }
        return t.createArrayLiteralExpression(de);
      }
      function A(ie, K) {
        if (K && ie.kind === 178) {
          const { setAccessor: pe } = MS(K.members, ie);
          if (pe) return pe.parameters;
        }
        return ie.parameters;
      }
      function R(ie) {
        return Yo(ie) && ie.type
          ? N(ie.type)
          : oM(ie)
            ? t.createIdentifier("Promise")
            : t.createVoidZero();
      }
      function N(ie) {
        if (ie === void 0) return t.createIdentifier("Object");
        switch (((ie = tM(ie)), ie.kind)) {
          case 116:
          case 157:
          case 146:
            return t.createVoidZero();
          case 185:
          case 186:
            return t.createIdentifier("Function");
          case 189:
          case 190:
            return t.createIdentifier("Array");
          case 183:
            return ie.assertsModifier
              ? t.createVoidZero()
              : t.createIdentifier("Boolean");
          case 136:
            return t.createIdentifier("Boolean");
          case 204:
          case 154:
            return t.createIdentifier("String");
          case 151:
            return t.createIdentifier("Object");
          case 202:
            return P(ie.literal);
          case 150:
            return t.createIdentifier("Number");
          case 163:
            return ye("BigInt", 7);
          case 155:
            return ye("Symbol", 2);
          case 184:
            return O(ie);
          case 194:
            return k(ie.types, !0);
          case 193:
            return k(ie.types, !1);
          case 195:
            return k([ie.trueType, ie.falseType], !1);
          case 199:
            if (ie.operator === 148) return N(ie.type);
            break;
          case 187:
          case 200:
          case 201:
          case 188:
          case 133:
          case 159:
          case 198:
          case 206:
            break;
          case 313:
          case 314:
          case 318:
          case 319:
          case 320:
            break;
          case 315:
          case 316:
          case 317:
            return N(ie.type);
          default:
            return C.failBadSyntaxKind(ie);
        }
        return t.createIdentifier("Object");
      }
      function P(ie) {
        switch (ie.kind) {
          case 11:
          case 15:
            return t.createIdentifier("String");
          case 225: {
            const K = ie.operand;
            switch (K.kind) {
              case 9:
              case 10:
                return P(K);
              default:
                return C.failBadSyntaxKind(K);
            }
          }
          case 9:
            return t.createIdentifier("Number");
          case 10:
            return ye("BigInt", 7);
          case 112:
          case 97:
            return t.createIdentifier("Boolean");
          case 106:
            return t.createVoidZero();
          default:
            return C.failBadSyntaxKind(ie);
        }
      }
      function k(ie, K) {
        let pe;
        for (let de of ie) {
          if (((de = tM(de)), de.kind === 146)) {
            if (K) return t.createVoidZero();
            continue;
          }
          if (de.kind === 159) {
            if (!K) return t.createIdentifier("Object");
            continue;
          }
          if (de.kind === 133) return t.createIdentifier("Object");
          if (!l && ((uv(de) && de.literal.kind === 106) || de.kind === 157))
            continue;
          const fe = N(de);
          if (He(fe) && fe.escapedText === "Object") return fe;
          if (pe) {
            if (!W(pe, fe)) return t.createIdentifier("Object");
          } else pe = fe;
        }
        return pe ?? t.createVoidZero();
      }
      function W(ie, K) {
        return pl(ie)
          ? pl(K)
          : He(ie)
            ? He(K) && ie.escapedText === K.escapedText
            : qr(ie)
              ? qr(K) && W(ie.expression, K.expression) && W(ie.name, K.name)
              : KI(ie)
                ? KI(K) &&
                  np(ie.expression) &&
                  ie.expression.text === "0" &&
                  np(K.expression) &&
                  K.expression.text === "0"
                : ka(ie)
                  ? ka(K) && ie.text === K.text
                  : TD(ie)
                    ? TD(K) && W(ie.expression, K.expression)
                    : Ou(ie)
                      ? Ou(K) && W(ie.expression, K.expression)
                      : T1(ie)
                        ? T1(K) &&
                          W(ie.condition, K.condition) &&
                          W(ie.whenTrue, K.whenTrue) &&
                          W(ie.whenFalse, K.whenFalse)
                        : Nr(ie)
                          ? Nr(K) &&
                            ie.operatorToken.kind === K.operatorToken.kind &&
                            W(ie.left, K.left) &&
                            W(ie.right, K.right)
                          : !1;
      }
      function O(ie) {
        const K = i.getTypeReferenceSerializationKind(ie.typeName, d ?? u);
        switch (K) {
          case 0:
            if (
              Dn(
                ie,
                (fe) =>
                  fe.parent &&
                  zS(fe.parent) &&
                  (fe.parent.trueType === fe || fe.parent.falseType === fe),
              )
            )
              return t.createIdentifier("Object");
            const pe = j(ie.typeName),
              de = t.createTempVariable(r);
            return t.createConditionalExpression(
              t.createTypeCheck(t.createAssignment(de, pe), "function"),
              void 0,
              de,
              void 0,
              t.createIdentifier("Object"),
            );
          case 1:
            return J(ie.typeName);
          case 2:
            return t.createVoidZero();
          case 4:
            return ye("BigInt", 7);
          case 6:
            return t.createIdentifier("Boolean");
          case 3:
            return t.createIdentifier("Number");
          case 5:
            return t.createIdentifier("String");
          case 7:
            return t.createIdentifier("Array");
          case 8:
            return ye("Symbol", 2);
          case 10:
            return t.createIdentifier("Function");
          case 9:
            return t.createIdentifier("Promise");
          case 11:
            return t.createIdentifier("Object");
          default:
            return C.assertNever(K);
        }
      }
      function G(ie, K) {
        return t.createLogicalAnd(
          t.createStrictInequality(
            t.createTypeOfExpression(ie),
            t.createStringLiteral("undefined"),
          ),
          K,
        );
      }
      function j(ie) {
        if (ie.kind === 80) {
          const de = J(ie);
          return G(de, de);
        }
        if (ie.left.kind === 80) return G(J(ie.left), J(ie));
        const K = j(ie.left),
          pe = t.createTempVariable(r);
        return t.createLogicalAnd(
          t.createLogicalAnd(
            K.left,
            t.createStrictInequality(
              t.createAssignment(pe, K.right),
              t.createVoidZero(),
            ),
          ),
          t.createPropertyAccessExpression(pe, ie.right),
        );
      }
      function J(ie) {
        switch (ie.kind) {
          case 80:
            const K = ps(vt(i0.cloneNode(ie), ie), ie.parent);
            return ((K.original = void 0), ps(K, jo(u)), K);
          case 167:
            return Z(ie);
        }
      }
      function Z(ie) {
        return t.createPropertyAccessExpression(J(ie.left), ie.right);
      }
      function q(ie) {
        return t.createConditionalExpression(
          t.createTypeCheck(t.createIdentifier(ie), "function"),
          void 0,
          t.createIdentifier(ie),
          void 0,
          t.createIdentifier("Object"),
        );
      }
      function ye(ie, K) {
        return s < K ? q(ie) : t.createIdentifier(ie);
      }
    }
    function Lae(e) {
      const {
          factory: t,
          getEmitHelperFactory: r,
          hoistVariableDeclaration: i,
        } = e,
        o = e.getEmitResolver(),
        s = e.getCompilerOptions(),
        l = Ga(s),
        u = e.onSubstituteNode;
      e.onSubstituteNode = Re;
      let d;
      return hh(e, _);
      function _(We) {
        const at = kn(We, g, e);
        return (Ag(at, e.readEmitHelpers()), at);
      }
      function h(We) {
        return Wc(We) ? void 0 : We;
      }
      function g(We) {
        if (!(We.transformFlags & 33554432)) return We;
        switch (We.kind) {
          case 171:
            return;
          case 264:
            return E(We);
          case 232:
            return O(We);
          case 177:
            return G(We);
          case 175:
            return J(We);
          case 179:
            return q(We);
          case 178:
            return Z(We);
          case 173:
            return ye(We);
          case 170:
            return ie(We);
          default:
            return kn(We, g, e);
        }
      }
      function E(We) {
        if (!(tv(!0, We) || KN(!0, We))) return kn(We, g, e);
        const at = tv(!0, We) ? W(We, We.name) : k(We, We.name);
        return I_(at);
      }
      function A(We) {
        return !!(We.transformFlags & 536870912);
      }
      function R(We) {
        return yt(We, A);
      }
      function N(We) {
        for (const at of We.members) {
          if (!qS(at)) continue;
          const Wt = y3(at, We, !0);
          if (yt(Wt?.decorators, A) || yt(Wt?.parameters, R)) return !0;
        }
        return !1;
      }
      function P(We, at) {
        let Wt = [];
        return (
          de(Wt, We, !1),
          de(Wt, We, !0),
          N(We) &&
            ((at = vt(
              t.createNodeArray([
                ...at,
                t.createClassStaticBlockDeclaration(t.createBlock(Wt, !0)),
              ]),
              at,
            )),
            (Wt = void 0)),
          { decorationStatements: Wt, members: at }
        );
      }
      function k(We, at) {
        const Wt = Xn(We.modifiers, h, Aa),
          cn = Xn(We.heritageClauses, g, Fp);
        let gn = Xn(We.members, g, bc),
          Kn = [];
        ({ members: gn, decorationStatements: Kn } = P(We, gn));
        const _t = t.updateClassDeclaration(We, Wt, at, void 0, cn, gn);
        return Xr([_t], Kn);
      }
      function W(We, at) {
        const Wt = di(We, 32),
          cn = di(We, 2048),
          gn = Xn(We.modifiers, (At) => (xw(At) || Wc(At) ? void 0 : At), fl),
          Kn = Yh(We),
          _t = Be(We),
          en =
            l < 2 ? t.getInternalName(We, !1, !0) : t.getLocalName(We, !1, !0),
          ir = Xn(We.heritageClauses, g, Fp);
        let Di = Xn(We.members, g, bc),
          lo = [];
        ({ members: Di, decorationStatements: lo } = P(We, Di));
        const zt =
          l >= 9 && !!_t && yt(Di, (At) => (Po(At) && di(At, 256)) || Ql(At));
        zt &&
          (Di = vt(
            t.createNodeArray([
              t.createClassStaticBlockDeclaration(
                t.createBlock([
                  t.createExpressionStatement(
                    t.createAssignment(_t, t.createThis()),
                  ),
                ]),
              ),
              ...Di,
            ]),
            Di,
          ));
        const Zr = t.createClassExpression(
          gn,
          at && pl(at) ? void 0 : at,
          void 0,
          ir,
          Di,
        );
        (jr(Zr, We), vt(Zr, Kn));
        const Ai = _t && !zt ? t.createAssignment(_t, Zr) : Zr,
          Ni = t.createVariableDeclaration(en, void 0, void 0, Ai);
        jr(Ni, We);
        const Pr = t.createVariableDeclarationList([Ni], 1),
          Ci = t.createVariableStatement(void 0, Pr);
        (jr(Ci, We), vt(Ci, Kn), Rc(Ci, We));
        const $e = [Ci];
        if ((Xr($e, lo), Ce($e, We), Wt))
          if (cn) {
            const At = t.createExportDefault(en);
            $e.push(At);
          } else {
            const At = t.createExternalModuleExport(t.getDeclarationName(We));
            $e.push(At);
          }
        return $e;
      }
      function O(We) {
        return t.updateClassExpression(
          We,
          Xn(We.modifiers, h, Aa),
          We.name,
          void 0,
          Xn(We.heritageClauses, g, Fp),
          Xn(We.members, g, bc),
        );
      }
      function G(We) {
        return t.updateConstructorDeclaration(
          We,
          Xn(We.modifiers, h, Aa),
          Xn(We.parameters, g, to),
          st(We.body, g, ea),
        );
      }
      function j(We, at) {
        return (We !== at && (Rc(We, at), Ua(We, Yh(at))), We);
      }
      function J(We) {
        return j(
          t.updateMethodDeclaration(
            We,
            Xn(We.modifiers, h, Aa),
            We.asteriskToken,
            C.checkDefined(st(We.name, g, vc)),
            void 0,
            void 0,
            Xn(We.parameters, g, to),
            void 0,
            st(We.body, g, ea),
          ),
          We,
        );
      }
      function Z(We) {
        return j(
          t.updateGetAccessorDeclaration(
            We,
            Xn(We.modifiers, h, Aa),
            C.checkDefined(st(We.name, g, vc)),
            Xn(We.parameters, g, to),
            void 0,
            st(We.body, g, ea),
          ),
          We,
        );
      }
      function q(We) {
        return j(
          t.updateSetAccessorDeclaration(
            We,
            Xn(We.modifiers, h, Aa),
            C.checkDefined(st(We.name, g, vc)),
            Xn(We.parameters, g, to),
            st(We.body, g, ea),
          ),
          We,
        );
      }
      function ye(We) {
        if (!(We.flags & 33554432 || di(We, 128)))
          return j(
            t.updatePropertyDeclaration(
              We,
              Xn(We.modifiers, h, Aa),
              C.checkDefined(st(We.name, g, vc)),
              void 0,
              void 0,
              st(We.initializer, g, St),
            ),
            We,
          );
      }
      function ie(We) {
        const at = t.updateParameterDeclaration(
          We,
          noe(t, We.modifiers),
          We.dotDotDotToken,
          C.checkDefined(st(We.name, g, $E)),
          void 0,
          void 0,
          st(We.initializer, g, St),
        );
        return (
          at !== We &&
            (Rc(at, We), vt(at, Yh(We)), Ua(at, Yh(We)), Cr(at.name, 64)),
          at
        );
      }
      function K(We) {
        return WM(We.expression, "___metadata");
      }
      function pe(We) {
        if (!We) return;
        const { false: at, true: Wt } = VB(We.decorators, K),
          cn = [];
        return (
          Xr(cn, Vt(at, Se)),
          Xr(cn, Ki(We.parameters, re)),
          Xr(cn, Vt(Wt, Se)),
          cn
        );
      }
      function de(We, at, Wt) {
        Xr(
          We,
          Vt(xe(at, Wt), (cn) => t.createExpressionStatement(cn)),
        );
      }
      function fe(We, at, Wt) {
        return uk(!0, We, Wt) && at === ua(We);
      }
      function ve(We, at) {
        return Un(We.members, (Wt) => fe(Wt, at, We));
      }
      function xe(We, at) {
        const Wt = ve(We, at);
        let cn;
        for (const gn of Wt) cn = Bn(cn, X(We, gn));
        return cn;
      }
      function X(We, at) {
        const Wt = y3(at, We, !0),
          cn = pe(Wt);
        if (!cn) return;
        const gn = ce(We, at),
          Kn = be(at, !di(at, 128)),
          _t = Po(at) && !Kh(at) ? t.createVoidZero() : t.createNull(),
          en = r().createDecorateHelper(cn, gn, Kn, _t);
        return (Cr(en, 3072), Ua(en, Yh(at)), en);
      }
      function Ce(We, at) {
        const Wt = Je(at);
        Wt && We.push(jr(t.createExpressionStatement(Wt), at));
      }
      function Je(We) {
        const at = KU(We, !0),
          Wt = pe(at);
        if (!Wt) return;
        const cn = d && d[Fu(We)],
          gn =
            l < 2
              ? t.getInternalName(We, !1, !0)
              : t.getDeclarationName(We, !1, !0),
          Kn = r().createDecorateHelper(Wt, gn),
          _t = t.createAssignment(gn, cn ? t.createAssignment(cn, Kn) : Kn);
        return (Cr(_t, 3072), Ua(_t, Yh(We)), _t);
      }
      function Se(We) {
        return C.checkDefined(st(We.expression, g, St));
      }
      function re(We, at) {
        let Wt;
        if (We) {
          Wt = [];
          for (const cn of We) {
            const gn = r().createParamHelper(Se(cn), at);
            (vt(gn, cn.expression), Cr(gn, 3072), Wt.push(gn));
          }
        }
        return Wt;
      }
      function be(We, at) {
        const Wt = We.name;
        return eo(Wt)
          ? t.createIdentifier("")
          : va(Wt)
            ? at && !z_(Wt.expression)
              ? t.getGeneratedNameForNode(Wt)
              : Wt.expression
            : He(Wt)
              ? t.createStringLiteral(Kr(Wt))
              : t.cloneNode(Wt);
      }
      function Ne() {
        d || (e.enableSubstitution(80), (d = []));
      }
      function Be(We) {
        if (o.hasNodeCheckFlag(We, 262144)) {
          Ne();
          const at = t.createUniqueName(
            We.name && !pl(We.name) ? Kr(We.name) : "default",
          );
          return ((d[Fu(We)] = at), i(at), at);
        }
      }
      function lt(We) {
        return t.createPropertyAccessExpression(
          t.getDeclarationName(We),
          "prototype",
        );
      }
      function ce(We, at) {
        return ua(at) ? t.getDeclarationName(We) : lt(We);
      }
      function Re(We, at) {
        return ((at = u(We, at)), We === 1 ? _e(at) : at);
      }
      function _e(We) {
        switch (We.kind) {
          case 80:
            return je(We);
        }
        return We;
      }
      function je(We) {
        return Ge(We) ?? We;
      }
      function Ge(We) {
        if (d && o.hasNodeCheckFlag(We, 536870912)) {
          const at = o.getReferencedValueDeclaration(We);
          if (at) {
            const Wt = d[at.id];
            if (Wt) {
              const cn = t.cloneNode(Wt);
              return (Ua(cn, We), Rc(cn, We), cn);
            }
          }
        }
      }
    }
    function kae(e) {
      const {
          factory: t,
          getEmitHelperFactory: r,
          startLexicalEnvironment: i,
          endLexicalEnvironment: o,
          hoistVariableDeclaration: s,
        } = e,
        l = Ga(e.getCompilerOptions());
      let u, d, _, h, g, E;
      return hh(e, A);
      function A(B) {
        ((u = void 0), (E = !1));
        const Ae = kn(B, q, e);
        return (Ag(Ae, e.readEmitHelpers()), E && (h1(Ae, 32), (E = !1)), Ae);
      }
      function R() {
        switch (((d = void 0), (_ = void 0), (h = void 0), u?.kind)) {
          case "class":
            d = u.classInfo;
            break;
          case "class-element":
            ((d = u.next.classInfo), (_ = u.classThis), (h = u.classSuper));
            break;
          case "name":
            const B = u.next.next.next;
            B?.kind === "class-element" &&
              ((d = B.next.classInfo), (_ = B.classThis), (h = B.classSuper));
            break;
        }
      }
      function N(B) {
        ((u = {
          kind: "class",
          next: u,
          classInfo: B,
          savedPendingExpressions: g,
        }),
          (g = void 0),
          R());
      }
      function P() {
        (C.assert(
          u?.kind === "class",
          "Incorrect value for top.kind.",
          () => `Expected top.kind to be 'class' but got '${u?.kind}' instead.`,
        ),
          (g = u.savedPendingExpressions),
          (u = u.next),
          R());
      }
      function k(B) {
        var Ae, te;
        (C.assert(
          u?.kind === "class",
          "Incorrect value for top.kind.",
          () => `Expected top.kind to be 'class' but got '${u?.kind}' instead.`,
        ),
          (u = { kind: "class-element", next: u }),
          (Ql(B) || (Po(B) && wc(B))) &&
            ((u.classThis =
              (Ae = u.next.classInfo) == null ? void 0 : Ae.classThis),
            (u.classSuper =
              (te = u.next.classInfo) == null ? void 0 : te.classSuper)),
          R());
      }
      function W() {
        var B;
        (C.assert(
          u?.kind === "class-element",
          "Incorrect value for top.kind.",
          () =>
            `Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`,
        ),
          C.assert(
            ((B = u.next) == null ? void 0 : B.kind) === "class",
            "Incorrect value for top.next.kind.",
            () => {
              var Ae;
              return `Expected top.next.kind to be 'class' but got '${(Ae = u.next) == null ? void 0 : Ae.kind}' instead.`;
            },
          ),
          (u = u.next),
          R());
      }
      function O() {
        (C.assert(
          u?.kind === "class-element",
          "Incorrect value for top.kind.",
          () =>
            `Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`,
        ),
          (u = { kind: "name", next: u }),
          R());
      }
      function G() {
        (C.assert(
          u?.kind === "name",
          "Incorrect value for top.kind.",
          () => `Expected top.kind to be 'name' but got '${u?.kind}' instead.`,
        ),
          (u = u.next),
          R());
      }
      function j() {
        u?.kind === "other"
          ? (C.assert(!g), u.depth++)
          : ((u = {
              kind: "other",
              next: u,
              depth: 0,
              savedPendingExpressions: g,
            }),
            (g = void 0),
            R());
      }
      function J() {
        (C.assert(
          u?.kind === "other",
          "Incorrect value for top.kind.",
          () => `Expected top.kind to be 'other' but got '${u?.kind}' instead.`,
        ),
          u.depth > 0
            ? (C.assert(!g), u.depth--)
            : ((g = u.savedPendingExpressions), (u = u.next), R()));
      }
      function Z(B) {
        return (
          !!(B.transformFlags & 33554432) ||
          (!!_ && !!(B.transformFlags & 16384)) ||
          (!!_ && !!h && !!(B.transformFlags & 134217728))
        );
      }
      function q(B) {
        if (!Z(B)) return B;
        switch (B.kind) {
          case 171:
            return C.fail("Use `modifierVisitor` instead.");
          case 264:
            return Je(B);
          case 232:
            return Se(B);
          case 177:
          case 173:
          case 176:
            return C.fail(
              "Not supported outside of a class. Use 'classElementVisitor' instead.",
            );
          case 170:
            return Kn(B);
          case 227:
            return lo(B, !1);
          case 304:
            return Ci(B);
          case 261:
            return $e(B);
          case 209:
            return At(B);
          case 278:
            return ot(B);
          case 110:
            return We(B);
          case 249:
            return ir(B);
          case 245:
            return Di(B);
          case 357:
            return Zr(B, !1);
          case 218:
            return Ft(B, !1);
          case 356:
            return le(B);
          case 214:
            return at(B);
          case 216:
            return Wt(B);
          case 225:
          case 226:
            return zt(B, !1);
          case 212:
            return cn(B);
          case 213:
            return gn(B);
          case 168:
            return Pr(B);
          case 175:
          case 179:
          case 178:
          case 219:
          case 263: {
            j();
            const Ae = kn(B, ye, e);
            return (J(), Ae);
          }
          default:
            return kn(B, ye, e);
        }
      }
      function ye(B) {
        switch (B.kind) {
          case 171:
            return;
          default:
            return q(B);
        }
      }
      function ie(B) {
        switch (B.kind) {
          case 171:
            return;
          default:
            return B;
        }
      }
      function K(B) {
        switch (B.kind) {
          case 177:
            return Ne(B);
          case 175:
            return ce(B);
          case 178:
            return Re(B);
          case 179:
            return _e(B);
          case 173:
            return Ge(B);
          case 176:
            return je(B);
          default:
            return q(B);
        }
      }
      function pe(B) {
        switch (B.kind) {
          case 225:
          case 226:
            return zt(B, !0);
          case 227:
            return lo(B, !0);
          case 357:
            return Zr(B, !0);
          case 218:
            return Ft(B, !0);
          default:
            return q(B);
        }
      }
      function de(B) {
        let Ae =
          B.name && He(B.name) && !pl(B.name)
            ? Kr(B.name)
            : B.name && eo(B.name) && !pl(B.name)
              ? Kr(B.name).slice(1)
              : B.name && ka(B.name) && fp(B.name.text, 99)
                ? B.name.text
                : ui(B)
                  ? "class"
                  : "member";
        return (
          ug(B) && (Ae = `get_${Ae}`),
          Vh(B) && (Ae = `set_${Ae}`),
          B.name && eo(B.name) && (Ae = `private_${Ae}`),
          ua(B) && (Ae = `static_${Ae}`),
          "_" + Ae
        );
      }
      function fe(B, Ae) {
        return t.createUniqueName(`${de(B)}_${Ae}`, 24);
      }
      function ve(B, Ae) {
        return t.createVariableStatement(
          void 0,
          t.createVariableDeclarationList(
            [t.createVariableDeclaration(B, void 0, void 0, Ae)],
            1,
          ),
        );
      }
      function xe(B) {
        const Ae = t.createUniqueName("_metadata", 48);
        let te,
          xt,
          Xt = !1,
          Pe = !1,
          gt = !1,
          Bt,
          gr,
          tr;
        if (YR(!1, B)) {
          const Jn = yt(B.members, (ft) => (nu(ft) || Yu(ft)) && wc(ft));
          Bt = t.createUniqueName("_classThis", Jn ? 24 : 48);
        }
        for (const Jn of B.members) {
          if (sI(Jn) && uk(!1, Jn, B))
            if (wc(Jn)) {
              if (!xt) {
                xt = t.createUniqueName("_staticExtraInitializers", 48);
                const ft = r().createRunInitializersHelper(
                  Bt ?? t.createThis(),
                  xt,
                );
                (Ua(ft, B.name ?? ly(B)), gr ?? (gr = []), gr.push(ft));
              }
            } else {
              if (!te) {
                te = t.createUniqueName("_instanceExtraInitializers", 48);
                const ft = r().createRunInitializersHelper(t.createThis(), te);
                (Ua(ft, B.name ?? ly(B)), tr ?? (tr = []), tr.push(ft));
              }
              te ?? (te = t.createUniqueName("_instanceExtraInitializers", 48));
            }
          if (
            (Ql(Jn)
              ? lx(Jn) || (Xt = !0)
              : Po(Jn) &&
                (wc(Jn)
                  ? Xt || (Xt = !!Jn.initializer || pf(Jn))
                  : Pe || (Pe = !TG(Jn))),
            (nu(Jn) || Yu(Jn)) && wc(Jn) && (gt = !0),
            xt && te && Xt && Pe && gt)
          )
            break;
        }
        return {
          class: B,
          classThis: Bt,
          metadataReference: Ae,
          instanceMethodExtraInitializersName: te,
          staticMethodExtraInitializersName: xt,
          hasStaticInitializers: Xt,
          hasNonAmbientInstanceFields: Pe,
          hasStaticPrivateClassElements: gt,
          pendingStaticInitializers: gr,
          pendingInstanceInitializers: tr,
        };
      }
      function X(B) {
        (i(), !$U(B) && tv(!1, B) && (B = T3(e, B, t.createStringLiteral(""))));
        const Ae = t.getLocalName(B, !1, !1, !0),
          te = xe(B),
          xt = [];
        let Xt,
          Pe,
          gt,
          Bt,
          gr = !1;
        const tr = it(KU(B, !1));
        tr &&
          ((te.classDecoratorsName = t.createUniqueName(
            "_classDecorators",
            48,
          )),
          (te.classDescriptorName = t.createUniqueName("_classDescriptor", 48)),
          (te.classExtraInitializersName = t.createUniqueName(
            "_classExtraInitializers",
            48,
          )),
          C.assertIsDefined(te.classThis),
          xt.push(
            ve(te.classDecoratorsName, t.createArrayLiteralExpression(tr)),
            ve(te.classDescriptorName),
            ve(te.classExtraInitializersName, t.createArrayLiteralExpression()),
            ve(te.classThis),
          ),
          te.hasStaticPrivateClassElements && ((gr = !0), (E = !0)));
        const Jn = Dk(B.heritageClauses, 96),
          ft = Jn && Ac(Jn.types),
          Mt = ft && st(ft.expression, q, St);
        if (Mt) {
          te.classSuper = t.createUniqueName("_classSuper", 48);
          const xn = Ul(Mt),
            Ln =
              (dc(xn) && !xn.name) || (Us(xn) && !xn.name) || Xs(xn)
                ? t.createComma(t.createNumericLiteral(0), Mt)
                : Mt;
          xt.push(ve(te.classSuper, Ln));
          const ln = t.updateExpressionWithTypeArguments(
              ft,
              te.classSuper,
              void 0,
            ),
            Ii = t.updateHeritageClause(Jn, [ln]);
          Bt = t.createNodeArray([Ii]);
        }
        const jt = te.classThis ?? t.createThis();
        (N(te), (Xt = Bn(Xt, Oe(te.metadataReference, te.classSuper))));
        let Qt = B.members;
        if (
          ((Qt = Xn(Qt, (xn) => (Ml(xn) ? xn : K(xn)), bc)),
          (Qt = Xn(Qt, (xn) => (Ml(xn) ? K(xn) : xn), bc)),
          g)
        ) {
          let xn;
          for (let Ln of g) {
            Ln = st(
              Ln,
              function Ii(ra) {
                if (!(ra.transformFlags & 16384)) return ra;
                switch (ra.kind) {
                  case 110:
                    return (
                      xn ||
                        ((xn = t.createUniqueName("_outerThis", 16)),
                        xt.unshift(ve(xn, t.createThis()))),
                      xn
                    );
                  default:
                    return kn(ra, Ii, e);
                }
              },
              St,
            );
            const ln = t.createExpressionStatement(Ln);
            Xt = Bn(Xt, ln);
          }
          g = void 0;
        }
        if ((P(), yt(te.pendingInstanceInitializers) && !yg(B))) {
          const xn = re(B, te);
          if (xn) {
            const Ln = lh(B),
              ln = !!(Ln && Ul(Ln.expression).kind !== 106),
              Ii = [];
            if (ln) {
              const sa = t.createSpreadElement(t.createIdentifier("arguments")),
                zo = t.createCallExpression(t.createSuper(), void 0, [sa]);
              Ii.push(t.createExpressionStatement(zo));
            }
            Xr(Ii, xn);
            const ra = t.createBlock(Ii, !0);
            gt = t.createConstructorDeclaration(void 0, [], ra);
          }
        }
        if (
          (te.staticMethodExtraInitializersName &&
            xt.push(
              ve(
                te.staticMethodExtraInitializersName,
                t.createArrayLiteralExpression(),
              ),
            ),
          te.instanceMethodExtraInitializersName &&
            xt.push(
              ve(
                te.instanceMethodExtraInitializersName,
                t.createArrayLiteralExpression(),
              ),
            ),
          te.memberInfos &&
            Hc(te.memberInfos, (xn, Ln) => {
              ua(Ln) &&
                (xt.push(ve(xn.memberDecoratorsName)),
                xn.memberInitializersName &&
                  xt.push(
                    ve(
                      xn.memberInitializersName,
                      t.createArrayLiteralExpression(),
                    ),
                  ),
                xn.memberExtraInitializersName &&
                  xt.push(
                    ve(
                      xn.memberExtraInitializersName,
                      t.createArrayLiteralExpression(),
                    ),
                  ),
                xn.memberDescriptorName &&
                  xt.push(ve(xn.memberDescriptorName)));
            }),
          te.memberInfos &&
            Hc(te.memberInfos, (xn, Ln) => {
              ua(Ln) ||
                (xt.push(ve(xn.memberDecoratorsName)),
                xn.memberInitializersName &&
                  xt.push(
                    ve(
                      xn.memberInitializersName,
                      t.createArrayLiteralExpression(),
                    ),
                  ),
                xn.memberExtraInitializersName &&
                  xt.push(
                    ve(
                      xn.memberExtraInitializersName,
                      t.createArrayLiteralExpression(),
                    ),
                  ),
                xn.memberDescriptorName &&
                  xt.push(ve(xn.memberDescriptorName)));
            }),
          (Xt = Xr(Xt, te.staticNonFieldDecorationStatements)),
          (Xt = Xr(Xt, te.nonStaticNonFieldDecorationStatements)),
          (Xt = Xr(Xt, te.staticFieldDecorationStatements)),
          (Xt = Xr(Xt, te.nonStaticFieldDecorationStatements)),
          te.classDescriptorName &&
            te.classDecoratorsName &&
            te.classExtraInitializersName &&
            te.classThis)
        ) {
          Xt ?? (Xt = []);
          const xn = t.createPropertyAssignment("value", jt),
            Ln = t.createObjectLiteralExpression([xn]),
            ln = t.createAssignment(te.classDescriptorName, Ln),
            Ii = t.createPropertyAccessExpression(jt, "name"),
            ra = r().createESDecorateHelper(
              t.createNull(),
              ln,
              te.classDecoratorsName,
              { kind: "class", name: Ii, metadata: te.metadataReference },
              t.createNull(),
              te.classExtraInitializersName,
            ),
            sa = t.createExpressionStatement(ra);
          (Ua(sa, ly(B)), Xt.push(sa));
          const zo = t.createPropertyAccessExpression(
              te.classDescriptorName,
              "value",
            ),
            Bl = t.createAssignment(te.classThis, zo),
            xl = t.createAssignment(Ae, Bl);
          Xt.push(t.createExpressionStatement(xl));
        }
        if (
          (Xt.push(Nt(jt, te.metadataReference)),
          yt(te.pendingStaticInitializers))
        ) {
          for (const xn of te.pendingStaticInitializers) {
            const Ln = t.createExpressionStatement(xn);
            (Ua(Ln, lv(xn)), (Pe = Bn(Pe, Ln)));
          }
          te.pendingStaticInitializers = void 0;
        }
        if (te.classExtraInitializersName) {
          const xn = r().createRunInitializersHelper(
              jt,
              te.classExtraInitializersName,
            ),
            Ln = t.createExpressionStatement(xn);
          (Ua(Ln, B.name ?? ly(B)), (Pe = Bn(Pe, Ln)));
        }
        Xt && Pe && !te.hasStaticInitializers && (Xr(Xt, Pe), (Pe = void 0));
        const In =
          Xt && t.createClassStaticBlockDeclaration(t.createBlock(Xt, !0));
        In && gr && dw(In, 32);
        const yn =
          Pe && t.createClassStaticBlockDeclaration(t.createBlock(Pe, !0));
        if (In || gt || yn) {
          const xn = [],
            Ln = Qt.findIndex(lx);
          (In
            ? (Xr(xn, Qt, 0, Ln + 1), xn.push(In), Xr(xn, Qt, Ln + 1))
            : Xr(xn, Qt),
            gt && xn.push(gt),
            yn && xn.push(yn),
            (Qt = vt(t.createNodeArray(xn), Qt)));
        }
        const wt = o();
        let En;
        if (tr) {
          ((En = t.createClassExpression(void 0, void 0, void 0, Bt, Qt)),
            te.classThis && (En = xae(t, En, te.classThis)));
          const xn = t.createVariableDeclaration(Ae, void 0, void 0, En),
            Ln = t.createVariableDeclarationList([xn]),
            ln = te.classThis ? t.createAssignment(Ae, te.classThis) : Ae;
          xt.push(
            t.createVariableStatement(void 0, Ln),
            t.createReturnStatement(ln),
          );
        } else
          ((En = t.createClassExpression(void 0, B.name, void 0, Bt, Qt)),
            xt.push(t.createReturnStatement(En)));
        if (gr) {
          h1(En, 32);
          for (const xn of En.members)
            (nu(xn) || Yu(xn)) && wc(xn) && h1(xn, 32);
        }
        return (
          jr(En, B),
          t.createImmediatelyInvokedArrowFunction(
            t.mergeLexicalEnvironment(xt, wt),
          )
        );
      }
      function Ce(B) {
        return tv(!1, B) || KN(!1, B);
      }
      function Je(B) {
        if (Ce(B)) {
          const Ae = [],
            te = yl(B, ui) ?? B,
            xt = te.name
              ? t.createStringLiteralFromNode(te.name)
              : t.createStringLiteral("default"),
            Xt = di(B, 32),
            Pe = di(B, 2048);
          if ((B.name || (B = T3(e, B, xt)), Xt && Pe)) {
            const gt = X(B);
            if (B.name) {
              const Bt = t.createVariableDeclaration(
                t.getLocalName(B),
                void 0,
                void 0,
                gt,
              );
              jr(Bt, B);
              const gr = t.createVariableDeclarationList([Bt], 1),
                tr = t.createVariableStatement(void 0, gr);
              Ae.push(tr);
              const Jn = t.createExportDefault(t.getDeclarationName(B));
              (jr(Jn, B), Rc(Jn, Zh(B)), Ua(Jn, ly(B)), Ae.push(Jn));
            } else {
              const Bt = t.createExportDefault(gt);
              (jr(Bt, B), Rc(Bt, Zh(B)), Ua(Bt, ly(B)), Ae.push(Bt));
            }
          } else {
            C.assertIsDefined(
              B.name,
              "A class declaration that is not a default export must have a name.",
            );
            const gt = X(B),
              Bt = Xt ? (jt) => (VI(jt) ? void 0 : ie(jt)) : ie,
              gr = Xn(B.modifiers, Bt, Aa),
              tr = t.getLocalName(B, !1, !0),
              Jn = t.createVariableDeclaration(tr, void 0, void 0, gt);
            jr(Jn, B);
            const ft = t.createVariableDeclarationList([Jn], 1),
              Mt = t.createVariableStatement(gr, ft);
            if ((jr(Mt, B), Rc(Mt, Zh(B)), Ae.push(Mt), Xt)) {
              const jt = t.createExternalModuleExport(tr);
              (jr(jt, B), Ae.push(jt));
            }
          }
          return I_(Ae);
        } else {
          const Ae = Xn(B.modifiers, ie, Aa),
            te = Xn(B.heritageClauses, q, Fp);
          N(void 0);
          const xt = Xn(B.members, K, bc);
          return (P(), t.updateClassDeclaration(B, Ae, B.name, void 0, te, xt));
        }
      }
      function Se(B) {
        if (Ce(B)) {
          const Ae = X(B);
          return (jr(Ae, B), Ae);
        } else {
          const Ae = Xn(B.modifiers, ie, Aa),
            te = Xn(B.heritageClauses, q, Fp);
          N(void 0);
          const xt = Xn(B.members, K, bc);
          return (P(), t.updateClassExpression(B, Ae, B.name, void 0, te, xt));
        }
      }
      function re(B, Ae) {
        if (yt(Ae.pendingInstanceInitializers)) {
          const te = [];
          return (
            te.push(
              t.createExpressionStatement(
                t.inlineExpressions(Ae.pendingInstanceInitializers),
              ),
            ),
            (Ae.pendingInstanceInitializers = void 0),
            te
          );
        }
      }
      function be(B, Ae, te, xt, Xt, Pe) {
        const gt = xt[Xt],
          Bt = Ae[gt];
        if ((Xr(B, Xn(Ae, q, Vi, te, gt - te)), E1(Bt))) {
          const gr = [];
          be(gr, Bt.tryBlock.statements, 0, xt, Xt + 1, Pe);
          const tr = t.createNodeArray(gr);
          (vt(tr, Bt.tryBlock.statements),
            B.push(
              t.updateTryStatement(
                Bt,
                t.updateBlock(Bt.tryBlock, gr),
                st(Bt.catchClause, q, US),
                st(Bt.finallyBlock, q, ea),
              ),
            ));
        } else (Xr(B, Xn(Ae, q, Vi, gt, 1)), Xr(B, Pe));
        Xr(B, Xn(Ae, q, Vi, gt + 1));
      }
      function Ne(B) {
        k(B);
        const Ae = Xn(B.modifiers, ie, Aa),
          te = Xn(B.parameters, q, to);
        let xt;
        if (B.body && d) {
          const Xt = re(d.class, d);
          if (Xt) {
            const Pe = [],
              gt = t.copyPrologue(B.body.statements, Pe, !1, q),
              Bt = _3(B.body.statements, gt);
            (Bt.length > 0
              ? be(Pe, B.body.statements, gt, Bt, 0, Xt)
              : (Xr(Pe, Xt), Xr(Pe, Xn(B.body.statements, q, Vi))),
              (xt = t.createBlock(Pe, !0)),
              jr(xt, B.body),
              vt(xt, B.body));
          }
        }
        return (
          xt ?? (xt = st(B.body, q, ea)),
          W(),
          t.updateConstructorDeclaration(B, Ae, te, xt)
        );
      }
      function Be(B, Ae) {
        return (B !== Ae && (Rc(B, Ae), Ua(B, ly(Ae))), B);
      }
      function lt(B, Ae, te) {
        let xt, Xt, Pe, gt, Bt, gr;
        if (!Ae) {
          const ft = Xn(B.modifiers, ie, Aa);
          return (
            O(),
            (Xt = Ni(B.name)),
            G(),
            {
              modifiers: ft,
              referencedName: xt,
              name: Xt,
              initializersName: Pe,
              descriptorName: gr,
              thisArg: Bt,
            }
          );
        }
        const tr = it(y3(B, Ae.class, !1)),
          Jn = Xn(B.modifiers, ie, Aa);
        if (tr) {
          const ft = fe(B, "decorators"),
            Mt = t.createArrayLiteralExpression(tr),
            jt = t.createAssignment(ft, Mt),
            Qt = { memberDecoratorsName: ft };
          (Ae.memberInfos ?? (Ae.memberInfos = new Map()),
            Ae.memberInfos.set(B, Qt),
            g ?? (g = []),
            g.push(jt));
          const In =
              sI(B) || Yu(B)
                ? ua(B)
                  ? (Ae.staticNonFieldDecorationStatements ??
                    (Ae.staticNonFieldDecorationStatements = []))
                  : (Ae.nonStaticNonFieldDecorationStatements ??
                    (Ae.nonStaticNonFieldDecorationStatements = []))
                : Po(B) && !Yu(B)
                  ? ua(B)
                    ? (Ae.staticFieldDecorationStatements ??
                      (Ae.staticFieldDecorationStatements = []))
                    : (Ae.nonStaticFieldDecorationStatements ??
                      (Ae.nonStaticFieldDecorationStatements = []))
                  : C.fail(),
            yn = Hf(B)
              ? "getter"
              : gp(B)
                ? "setter"
                : Nl(B)
                  ? "method"
                  : Yu(B)
                    ? "accessor"
                    : Po(B)
                      ? "field"
                      : C.fail();
          let wt;
          if (He(B.name) || eo(B.name)) wt = { computed: !1, name: B.name };
          else if (qh(B.name))
            wt = { computed: !0, name: t.createStringLiteralFromNode(B.name) };
          else {
            const xn = B.name.expression;
            qh(xn) && !He(xn)
              ? (wt = { computed: !0, name: t.createStringLiteralFromNode(xn) })
              : (O(),
                ({ referencedName: xt, name: Xt } = Ai(B.name)),
                (wt = { computed: !0, name: xt }),
                G());
          }
          const En = {
            kind: yn,
            name: wt,
            static: ua(B),
            private: eo(B.name),
            access: { get: Po(B) || Hf(B) || Nl(B), set: Po(B) || gp(B) },
            metadata: Ae.metadataReference,
          };
          if (sI(B)) {
            const xn = ua(B)
              ? Ae.staticMethodExtraInitializersName
              : Ae.instanceMethodExtraInitializersName;
            C.assertIsDefined(xn);
            let Ln;
            nu(B) &&
              te &&
              ((Ln = te(
                B,
                Xn(Jn, (ra) => ni(ra, FM), Aa),
              )),
              (Qt.memberDescriptorName = gr = fe(B, "descriptor")),
              (Ln = t.createAssignment(gr, Ln)));
            const ln = r().createESDecorateHelper(
                t.createThis(),
                Ln ?? t.createNull(),
                ft,
                En,
                t.createNull(),
                xn,
              ),
              Ii = t.createExpressionStatement(ln);
            (Ua(Ii, ly(B)), In.push(Ii));
          } else if (Po(B)) {
            ((Pe =
              Qt.memberInitializersName ??
              (Qt.memberInitializersName = fe(B, "initializers"))),
              (gt =
                Qt.memberExtraInitializersName ??
                (Qt.memberExtraInitializersName = fe(B, "extraInitializers"))),
              ua(B) && (Bt = Ae.classThis));
            let xn;
            nu(B) &&
              Kh(B) &&
              te &&
              ((xn = te(B, void 0)),
              (Qt.memberDescriptorName = gr = fe(B, "descriptor")),
              (xn = t.createAssignment(gr, xn)));
            const Ln = r().createESDecorateHelper(
                Yu(B) ? t.createThis() : t.createNull(),
                xn ?? t.createNull(),
                ft,
                En,
                Pe,
                gt,
              ),
              ln = t.createExpressionStatement(Ln);
            (Ua(ln, ly(B)), In.push(ln));
          }
        }
        return (
          Xt === void 0 && (O(), (Xt = Ni(B.name)), G()),
          !yt(Jn) && (Nl(B) || Po(B)) && Cr(Xt, 1024),
          {
            modifiers: Jn,
            referencedName: xt,
            name: Xt,
            initializersName: Pe,
            extraInitializersName: gt,
            descriptorName: gr,
            thisArg: Bt,
          }
        );
      }
      function ce(B) {
        k(B);
        const { modifiers: Ae, name: te, descriptorName: xt } = lt(B, d, Ue);
        if (xt) return (W(), Be(nt(Ae, te, xt), B));
        {
          const Xt = Xn(B.parameters, q, to),
            Pe = st(B.body, q, ea);
          return (
            W(),
            Be(
              t.updateMethodDeclaration(
                B,
                Ae,
                B.asteriskToken,
                te,
                void 0,
                void 0,
                Xt,
                void 0,
                Pe,
              ),
              B,
            )
          );
        }
      }
      function Re(B) {
        k(B);
        const { modifiers: Ae, name: te, descriptorName: xt } = lt(B, d, Rt);
        if (xt) return (W(), Be(Kt(Ae, te, xt), B));
        {
          const Xt = Xn(B.parameters, q, to),
            Pe = st(B.body, q, ea);
          return (
            W(),
            Be(t.updateGetAccessorDeclaration(B, Ae, te, Xt, void 0, Pe), B)
          );
        }
      }
      function _e(B) {
        k(B);
        const { modifiers: Ae, name: te, descriptorName: xt } = lt(B, d, It);
        if (xt) return (W(), Be(Tr(Ae, te, xt), B));
        {
          const Xt = Xn(B.parameters, q, to),
            Pe = st(B.body, q, ea);
          return (
            W(),
            Be(t.updateSetAccessorDeclaration(B, Ae, te, Xt, Pe), B)
          );
        }
      }
      function je(B) {
        k(B);
        let Ae;
        if (lx(B)) Ae = kn(B, q, e);
        else if (pP(B)) {
          const te = _;
          ((_ = void 0), (Ae = kn(B, q, e)), (_ = te));
        } else if (
          ((B = kn(B, q, e)),
          (Ae = B),
          d &&
            ((d.hasStaticInitializers = !0), yt(d.pendingStaticInitializers)))
        ) {
          const te = [];
          for (const Pe of d.pendingStaticInitializers) {
            const gt = t.createExpressionStatement(Pe);
            (Ua(gt, lv(Pe)), te.push(gt));
          }
          const xt = t.createBlock(te, !0);
          ((Ae = [t.createClassStaticBlockDeclaration(xt), Ae]),
            (d.pendingStaticInitializers = void 0));
        }
        return (W(), Ae);
      }
      function Ge(B) {
        (Lp(B, _t) && (B = zp(e, B, en(B.initializer))),
          k(B),
          C.assert(!TG(B), "Not yet implemented."));
        const {
          modifiers: Ae,
          name: te,
          initializersName: xt,
          extraInitializersName: Xt,
          descriptorName: Pe,
          thisArg: gt,
        } = lt(B, d, Kh(B) ? Ot : void 0);
        i();
        let Bt = st(B.initializer, q, St);
        (xt &&
          (Bt = r().createRunInitializersHelper(
            gt ?? t.createThis(),
            xt,
            Bt ?? t.createVoidZero(),
          )),
          ua(B) && d && Bt && (d.hasStaticInitializers = !0));
        const gr = o();
        if (
          (yt(gr) &&
            (Bt = t.createImmediatelyInvokedArrowFunction([
              ...gr,
              t.createReturnStatement(Bt),
            ])),
          d &&
            (ua(B)
              ? ((Bt = Fe(d, !0, Bt)),
                Xt &&
                  (d.pendingStaticInitializers ??
                    (d.pendingStaticInitializers = []),
                  d.pendingStaticInitializers.push(
                    r().createRunInitializersHelper(
                      d.classThis ?? t.createThis(),
                      Xt,
                    ),
                  )))
              : ((Bt = Fe(d, !1, Bt)),
                Xt &&
                  (d.pendingInstanceInitializers ??
                    (d.pendingInstanceInitializers = []),
                  d.pendingInstanceInitializers.push(
                    r().createRunInitializersHelper(t.createThis(), Xt),
                  )))),
          W(),
          Kh(B) && Pe)
        ) {
          const tr = Zh(B),
            Jn = lv(B),
            ft = B.name;
          let Mt = ft,
            jt = ft;
          if (va(ft) && !z_(ft.expression)) {
            const En = w4(ft);
            if (En)
              ((Mt = t.updateComputedPropertyName(
                ft,
                st(ft.expression, q, St),
              )),
                (jt = t.updateComputedPropertyName(ft, En.left)));
            else {
              const xn = t.createTempVariable(s);
              Ua(xn, ft.expression);
              const Ln = st(ft.expression, q, St),
                ln = t.createAssignment(xn, Ln);
              (Ua(ln, ft.expression),
                (Mt = t.updateComputedPropertyName(ft, ln)),
                (jt = t.updateComputedPropertyName(ft, xn)));
            }
          }
          const Qt = Xn(Ae, (En) => (En.kind !== 129 ? En : void 0), Aa),
            In = qj(t, B, Qt, Bt);
          (jr(In, B), Cr(In, 3072), Ua(In, Jn), Ua(In.name, B.name));
          const yn = Kt(Qt, Mt, Pe);
          (jr(yn, B), Rc(yn, tr), Ua(yn, Jn));
          const wt = Tr(Qt, jt, Pe);
          return (jr(wt, B), Cr(wt, 3072), Ua(wt, Jn), [In, yn, wt]);
        }
        return Be(
          t.updatePropertyDeclaration(B, Ae, te, void 0, void 0, Bt),
          B,
        );
      }
      function We(B) {
        return _ ?? B;
      }
      function at(B) {
        if (mp(B.expression) && _) {
          const Ae = st(B.expression, q, St),
            te = Xn(B.arguments, q, St),
            xt = t.createFunctionCallCall(Ae, _, te);
          return (jr(xt, B), vt(xt, B), xt);
        }
        return kn(B, q, e);
      }
      function Wt(B) {
        if (mp(B.tag) && _) {
          const Ae = st(B.tag, q, St),
            te = t.createFunctionBindCall(Ae, _, []);
          (jr(te, B), vt(te, B));
          const xt = st(B.template, q, lI);
          return t.updateTaggedTemplateExpression(B, te, void 0, xt);
        }
        return kn(B, q, e);
      }
      function cn(B) {
        if (mp(B) && He(B.name) && _ && h) {
          const Ae = t.createStringLiteralFromNode(B.name),
            te = t.createReflectGetCall(h, Ae, _);
          return (jr(te, B.expression), vt(te, B.expression), te);
        }
        return kn(B, q, e);
      }
      function gn(B) {
        if (mp(B) && _ && h) {
          const Ae = st(B.argumentExpression, q, St),
            te = t.createReflectGetCall(h, Ae, _);
          return (jr(te, B.expression), vt(te, B.expression), te);
        }
        return kn(B, q, e);
      }
      function Kn(B) {
        Lp(B, _t) && (B = zp(e, B, en(B.initializer)));
        const Ae = t.updateParameterDeclaration(
          B,
          void 0,
          B.dotDotDotToken,
          st(B.name, q, $E),
          void 0,
          void 0,
          st(B.initializer, q, St),
        );
        return (
          Ae !== B &&
            (Rc(Ae, B), vt(Ae, Yh(B)), Ua(Ae, Yh(B)), Cr(Ae.name, 64)),
          Ae
        );
      }
      function _t(B) {
        return dc(B) && !B.name && Ce(B);
      }
      function en(B) {
        const Ae = Ul(B);
        return dc(Ae) && !Ae.name && !tv(!1, Ae);
      }
      function ir(B) {
        return t.updateForStatement(
          B,
          st(B.initializer, pe, Of),
          st(B.condition, q, St),
          st(B.incrementor, pe, St),
          Wu(B.statement, q, e),
        );
      }
      function Di(B) {
        return kn(B, pe, e);
      }
      function lo(B, Ae) {
        if (rv(B)) {
          const te = Uo(B.left),
            xt = st(B.right, q, St);
          return t.updateBinaryExpression(B, te, B.operatorToken, xt);
        }
        if (id(B)) {
          if (Lp(B, _t)) return ((B = zp(e, B, en(B.right))), kn(B, q, e));
          if (mp(B.left) && _ && h) {
            let te = Ws(B.left)
              ? st(B.left.argumentExpression, q, St)
              : He(B.left.name)
                ? t.createStringLiteralFromNode(B.left.name)
                : void 0;
            if (te) {
              let xt = st(B.right, q, St);
              if (cP(B.operatorToken.kind)) {
                let Pe = te;
                z_(te) ||
                  ((Pe = t.createTempVariable(s)),
                  (te = t.createAssignment(Pe, te)));
                const gt = t.createReflectGetCall(h, Pe, _);
                (jr(gt, B.left),
                  vt(gt, B.left),
                  (xt = t.createBinaryExpression(
                    gt,
                    dP(B.operatorToken.kind),
                    xt,
                  )),
                  vt(xt, B));
              }
              const Xt = Ae ? void 0 : t.createTempVariable(s);
              return (
                Xt && ((xt = t.createAssignment(Xt, xt)), vt(Xt, B)),
                (xt = t.createReflectSetCall(h, te, xt, _)),
                jr(xt, B),
                vt(xt, B),
                Xt && ((xt = t.createComma(xt, Xt)), vt(xt, B)),
                xt
              );
            }
          }
        }
        if (B.operatorToken.kind === 28) {
          const te = st(B.left, pe, St),
            xt = st(B.right, Ae ? pe : q, St);
          return t.updateBinaryExpression(B, te, B.operatorToken, xt);
        }
        return kn(B, q, e);
      }
      function zt(B, Ae) {
        if (B.operator === 46 || B.operator === 47) {
          const te = us(B.operand);
          if (mp(te) && _ && h) {
            let xt = Ws(te)
              ? st(te.argumentExpression, q, St)
              : He(te.name)
                ? t.createStringLiteralFromNode(te.name)
                : void 0;
            if (xt) {
              let Xt = xt;
              z_(xt) ||
                ((Xt = t.createTempVariable(s)),
                (xt = t.createAssignment(Xt, xt)));
              let Pe = t.createReflectGetCall(h, Xt, _);
              (jr(Pe, B), vt(Pe, B));
              const gt = Ae ? void 0 : t.createTempVariable(s);
              return (
                (Pe = C4(t, B, Pe, s, gt)),
                (Pe = t.createReflectSetCall(h, xt, Pe, _)),
                jr(Pe, B),
                vt(Pe, B),
                gt && ((Pe = t.createComma(Pe, gt)), vt(Pe, B)),
                Pe
              );
            }
          }
        }
        return kn(B, q, e);
      }
      function Zr(B, Ae) {
        const te = Ae ? f3(B.elements, pe) : f3(B.elements, q, pe);
        return t.updateCommaListExpression(B, te);
      }
      function Ai(B) {
        if (qh(B) || eo(B)) {
          const Pe = t.createStringLiteralFromNode(B),
            gt = st(B, q, vc);
          return { referencedName: Pe, name: gt };
        }
        if (qh(B.expression) && !He(B.expression)) {
          const Pe = t.createStringLiteralFromNode(B.expression),
            gt = st(B, q, vc);
          return { referencedName: Pe, name: gt };
        }
        const Ae = t.getGeneratedNameForNode(B);
        s(Ae);
        const te = r().createPropKeyHelper(st(B.expression, q, St)),
          xt = t.createAssignment(Ae, te),
          Xt = t.updateComputedPropertyName(B, ne(xt));
        return { referencedName: Ae, name: Xt };
      }
      function Ni(B) {
        return va(B) ? Pr(B) : st(B, q, vc);
      }
      function Pr(B) {
        let Ae = st(B.expression, q, St);
        return (z_(Ae) || (Ae = ne(Ae)), t.updateComputedPropertyName(B, Ae));
      }
      function Ci(B) {
        return (Lp(B, _t) && (B = zp(e, B, en(B.initializer))), kn(B, q, e));
      }
      function $e(B) {
        return (Lp(B, _t) && (B = zp(e, B, en(B.initializer))), kn(B, q, e));
      }
      function At(B) {
        return (Lp(B, _t) && (B = zp(e, B, en(B.initializer))), kn(B, q, e));
      }
      function mn(B) {
        if (Wa(B) || Cd(B)) return Uo(B);
        if (mp(B) && _ && h) {
          const Ae = Ws(B)
            ? st(B.argumentExpression, q, St)
            : He(B.name)
              ? t.createStringLiteralFromNode(B.name)
              : void 0;
          if (Ae) {
            const te = t.createTempVariable(void 0),
              xt = t.createAssignmentTargetWrapper(
                te,
                t.createReflectSetCall(h, Ae, te, _),
              );
            return (jr(xt, B), vt(xt, B), xt);
          }
        }
        return kn(B, q, e);
      }
      function dr(B) {
        if (id(B, !0)) {
          Lp(B, _t) && (B = zp(e, B, en(B.right)));
          const Ae = mn(B.left),
            te = st(B.right, q, St);
          return t.updateBinaryExpression(B, Ae, B.operatorToken, te);
        } else return mn(B);
      }
      function ri(B) {
        if ($u(B.expression)) {
          const Ae = mn(B.expression);
          return t.updateSpreadElement(B, Ae);
        }
        return kn(B, q, e);
      }
      function ai(B) {
        return (
          C.assertNode(B, V2),
          qf(B) ? ri(B) : Jc(B) ? kn(B, q, e) : dr(B)
        );
      }
      function qi(B) {
        const Ae = st(B.name, q, vc);
        if (id(B.initializer, !0)) {
          const te = dr(B.initializer);
          return t.updatePropertyAssignment(B, Ae, te);
        }
        if ($u(B.initializer)) {
          const te = mn(B.initializer);
          return t.updatePropertyAssignment(B, Ae, te);
        }
        return kn(B, q, e);
      }
      function $o(B) {
        return (
          Lp(B, _t) && (B = zp(e, B, en(B.objectAssignmentInitializer))),
          kn(B, q, e)
        );
      }
      function Ia(B) {
        if ($u(B.expression)) {
          const Ae = mn(B.expression);
          return t.updateSpreadAssignment(B, Ae);
        }
        return kn(B, q, e);
      }
      function Mn(B) {
        return (
          C.assertNode(B, G2),
          xg(B) ? Ia(B) : Ud(B) ? $o(B) : Cc(B) ? qi(B) : kn(B, q, e)
        );
      }
      function Uo(B) {
        if (Cd(B)) {
          const Ae = Xn(B.elements, ai, St);
          return t.updateArrayLiteralExpression(B, Ae);
        } else {
          const Ae = Xn(B.properties, Mn, ny);
          return t.updateObjectLiteralExpression(B, Ae);
        }
      }
      function ot(B) {
        return (Lp(B, _t) && (B = zp(e, B, en(B.expression))), kn(B, q, e));
      }
      function Ft(B, Ae) {
        const te = Ae ? pe : q,
          xt = st(B.expression, te, St);
        return t.updateParenthesizedExpression(B, xt);
      }
      function le(B, Ae) {
        const te = q,
          xt = st(B.expression, te, St);
        return t.updatePartiallyEmittedExpression(B, xt);
      }
      function ht(B, Ae) {
        return (
          yt(B) &&
            (Ae
              ? Ou(Ae)
                ? (B.push(Ae.expression),
                  (Ae = t.updateParenthesizedExpression(
                    Ae,
                    t.inlineExpressions(B),
                  )))
                : (B.push(Ae), (Ae = t.inlineExpressions(B)))
              : (Ae = t.inlineExpressions(B))),
          Ae
        );
      }
      function ne(B) {
        const Ae = ht(g, B);
        return (C.assertIsDefined(Ae), Ae !== B && (g = void 0), Ae);
      }
      function Fe(B, Ae, te) {
        const xt = ht(
          Ae ? B.pendingStaticInitializers : B.pendingInstanceInitializers,
          te,
        );
        return (
          xt !== te &&
            (Ae
              ? (B.pendingStaticInitializers = void 0)
              : (B.pendingInstanceInitializers = void 0)),
          xt
        );
      }
      function it(B) {
        if (!B) return;
        const Ae = [];
        return (Xr(Ae, Vt(B.decorators, dt)), Ae);
      }
      function dt(B) {
        const Ae = st(B.expression, q, St);
        Cr(Ae, 3072);
        const te = Ul(Ae);
        if (Ks(te)) {
          const { target: xt, thisArg: Xt } = t.createCallBinding(Ae, s, l, !0);
          return t.restoreOuterExpressions(
            Ae,
            t.createFunctionBindCall(xt, Xt, []),
          );
        }
        return Ae;
      }
      function Lt(B, Ae, te, xt, Xt, Pe, gt) {
        const Bt = t.createFunctionExpression(
          te,
          xt,
          void 0,
          void 0,
          Pe,
          void 0,
          gt ?? t.createBlock([]),
        );
        (jr(Bt, B), Ua(Bt, ly(B)), Cr(Bt, 3072));
        const gr = Xt === "get" || Xt === "set" ? Xt : void 0,
          tr = t.createStringLiteralFromNode(Ae, void 0),
          Jn = r().createSetFunctionNameHelper(Bt, tr, gr),
          ft = t.createPropertyAssignment(t.createIdentifier(Xt), Jn);
        return (jr(ft, B), Ua(ft, ly(B)), Cr(ft, 3072), ft);
      }
      function Ue(B, Ae) {
        return t.createObjectLiteralExpression([
          Lt(
            B,
            B.name,
            Ae,
            B.asteriskToken,
            "value",
            Xn(B.parameters, q, to),
            st(B.body, q, ea),
          ),
        ]);
      }
      function Rt(B, Ae) {
        return t.createObjectLiteralExpression([
          Lt(B, B.name, Ae, void 0, "get", [], st(B.body, q, ea)),
        ]);
      }
      function It(B, Ae) {
        return t.createObjectLiteralExpression([
          Lt(
            B,
            B.name,
            Ae,
            void 0,
            "set",
            Xn(B.parameters, q, to),
            st(B.body, q, ea),
          ),
        ]);
      }
      function Ot(B, Ae) {
        return t.createObjectLiteralExpression([
          Lt(
            B,
            B.name,
            Ae,
            void 0,
            "get",
            [],
            t.createBlock([
              t.createReturnStatement(
                t.createPropertyAccessExpression(
                  t.createThis(),
                  t.getGeneratedPrivateNameForNode(B.name),
                ),
              ),
            ]),
          ),
          Lt(
            B,
            B.name,
            Ae,
            void 0,
            "set",
            [t.createParameterDeclaration(void 0, void 0, "value")],
            t.createBlock([
              t.createExpressionStatement(
                t.createAssignment(
                  t.createPropertyAccessExpression(
                    t.createThis(),
                    t.getGeneratedPrivateNameForNode(B.name),
                  ),
                  t.createIdentifier("value"),
                ),
              ),
            ]),
          ),
        ]);
      }
      function nt(B, Ae, te) {
        return (
          (B = Xn(B, (xt) => (jI(xt) ? xt : void 0), Aa)),
          t.createGetAccessorDeclaration(
            B,
            Ae,
            [],
            void 0,
            t.createBlock([
              t.createReturnStatement(
                t.createPropertyAccessExpression(
                  te,
                  t.createIdentifier("value"),
                ),
              ),
            ]),
          )
        );
      }
      function Kt(B, Ae, te) {
        return (
          (B = Xn(B, (xt) => (jI(xt) ? xt : void 0), Aa)),
          t.createGetAccessorDeclaration(
            B,
            Ae,
            [],
            void 0,
            t.createBlock([
              t.createReturnStatement(
                t.createFunctionCallCall(
                  t.createPropertyAccessExpression(
                    te,
                    t.createIdentifier("get"),
                  ),
                  t.createThis(),
                  [],
                ),
              ),
            ]),
          )
        );
      }
      function Tr(B, Ae, te) {
        return (
          (B = Xn(B, (xt) => (jI(xt) ? xt : void 0), Aa)),
          t.createSetAccessorDeclaration(
            B,
            Ae,
            [t.createParameterDeclaration(void 0, void 0, "value")],
            t.createBlock([
              t.createReturnStatement(
                t.createFunctionCallCall(
                  t.createPropertyAccessExpression(
                    te,
                    t.createIdentifier("set"),
                  ),
                  t.createThis(),
                  [t.createIdentifier("value")],
                ),
              ),
            ]),
          )
        );
      }
      function Oe(B, Ae) {
        const te = t.createVariableDeclaration(
          B,
          void 0,
          void 0,
          t.createConditionalExpression(
            t.createLogicalAnd(
              t.createTypeCheck(t.createIdentifier("Symbol"), "function"),
              t.createPropertyAccessExpression(
                t.createIdentifier("Symbol"),
                "metadata",
              ),
            ),
            t.createToken(58),
            t.createCallExpression(
              t.createPropertyAccessExpression(
                t.createIdentifier("Object"),
                "create",
              ),
              void 0,
              [Ae ? he(Ae) : t.createNull()],
            ),
            t.createToken(59),
            t.createVoidZero(),
          ),
        );
        return t.createVariableStatement(
          void 0,
          t.createVariableDeclarationList([te], 2),
        );
      }
      function Nt(B, Ae) {
        const te = t.createObjectDefinePropertyCall(
          B,
          t.createPropertyAccessExpression(
            t.createIdentifier("Symbol"),
            "metadata",
          ),
          t.createPropertyDescriptor(
            { configurable: !0, writable: !0, enumerable: !0, value: Ae },
            !0,
          ),
        );
        return Cr(t.createIfStatement(Ae, t.createExpressionStatement(te)), 1);
      }
      function he(B) {
        return t.createBinaryExpression(
          t.createElementAccessExpression(
            B,
            t.createPropertyAccessExpression(
              t.createIdentifier("Symbol"),
              "metadata",
            ),
          ),
          61,
          t.createNull(),
        );
      }
    }
    function wae(e) {
      const {
          factory: t,
          getEmitHelperFactory: r,
          resumeLexicalEnvironment: i,
          endLexicalEnvironment: o,
          hoistVariableDeclaration: s,
        } = e,
        l = e.getEmitResolver(),
        u = e.getCompilerOptions(),
        d = Ga(u);
      let _ = 0,
        h = 0,
        g,
        E,
        A,
        R;
      const N = [];
      let P = 0;
      const k = e.onEmitNode,
        W = e.onSubstituteNode;
      return ((e.onEmitNode = Di), (e.onSubstituteNode = lo), hh(e, O));
      function O($e) {
        if ($e.isDeclarationFile) return $e;
        (G(1, !1), G(2, !bG($e, u)));
        const At = kn($e, K, e);
        return (Ag(At, e.readEmitHelpers()), At);
      }
      function G($e, At) {
        P = At ? P | $e : P & ~$e;
      }
      function j($e) {
        return (P & $e) !== 0;
      }
      function J() {
        return !j(1);
      }
      function Z() {
        return j(2);
      }
      function q($e, At, mn) {
        const dr = $e & ~P;
        if (dr) {
          G(dr, !0);
          const ri = At(mn);
          return (G(dr, !1), ri);
        }
        return At(mn);
      }
      function ye($e) {
        return kn($e, K, e);
      }
      function ie($e) {
        switch ($e.kind) {
          case 219:
          case 263:
          case 175:
          case 178:
          case 179:
          case 177:
            return $e;
          case 170:
          case 209:
          case 261:
            break;
          case 80:
            if (R && l.isArgumentsLocalBinding($e)) return R;
            break;
        }
        return kn($e, ie, e);
      }
      function K($e) {
        if (($e.transformFlags & 256) === 0) return R ? ie($e) : $e;
        switch ($e.kind) {
          case 134:
            return;
          case 224:
            return Ce($e);
          case 175:
            return q(3, Se, $e);
          case 263:
            return q(3, Ne, $e);
          case 219:
            return q(3, Be, $e);
          case 220:
            return q(1, lt, $e);
          case 212:
            return (
              E &&
                qr($e) &&
                $e.expression.kind === 108 &&
                E.add($e.name.escapedText),
              kn($e, K, e)
            );
          case 213:
            return (E && $e.expression.kind === 108 && (A = !0), kn($e, K, e));
          case 178:
            return q(3, re, $e);
          case 179:
            return q(3, be, $e);
          case 177:
            return q(3, Je, $e);
          case 264:
          case 232:
            return q(3, ye, $e);
          default:
            return kn($e, K, e);
        }
      }
      function pe($e) {
        if (vne($e))
          switch ($e.kind) {
            case 244:
              return fe($e);
            case 249:
              return X($e);
            case 250:
              return ve($e);
            case 251:
              return xe($e);
            case 300:
              return de($e);
            case 242:
            case 256:
            case 270:
            case 297:
            case 298:
            case 259:
            case 247:
            case 248:
            case 246:
            case 255:
            case 257:
              return kn($e, pe, e);
            default:
              return C.assertNever($e, "Unhandled node.");
          }
        return K($e);
      }
      function de($e) {
        const At = new Set();
        ce($e.variableDeclaration, At);
        let mn;
        if (
          (At.forEach((dr, ri) => {
            g.has(ri) && (mn || (mn = new Set(g)), mn.delete(ri));
          }),
          mn)
        ) {
          const dr = g;
          g = mn;
          const ri = kn($e, pe, e);
          return ((g = dr), ri);
        } else return kn($e, pe, e);
      }
      function fe($e) {
        if (Re($e.declarationList)) {
          const At = _e($e.declarationList, !1);
          return At ? t.createExpressionStatement(At) : void 0;
        }
        return kn($e, K, e);
      }
      function ve($e) {
        return t.updateForInStatement(
          $e,
          Re($e.initializer)
            ? _e($e.initializer, !0)
            : C.checkDefined(st($e.initializer, K, Of)),
          C.checkDefined(st($e.expression, K, St)),
          Wu($e.statement, pe, e),
        );
      }
      function xe($e) {
        return t.updateForOfStatement(
          $e,
          st($e.awaitModifier, K, yj),
          Re($e.initializer)
            ? _e($e.initializer, !0)
            : C.checkDefined(st($e.initializer, K, Of)),
          C.checkDefined(st($e.expression, K, St)),
          Wu($e.statement, pe, e),
        );
      }
      function X($e) {
        const At = $e.initializer;
        return t.updateForStatement(
          $e,
          Re(At) ? _e(At, !1) : st($e.initializer, K, Of),
          st($e.condition, K, St),
          st($e.incrementor, K, St),
          Wu($e.statement, pe, e),
        );
      }
      function Ce($e) {
        return J()
          ? kn($e, K, e)
          : jr(
              vt(t.createYieldExpression(void 0, st($e.expression, K, St)), $e),
              $e,
            );
      }
      function Je($e) {
        const At = R;
        R = void 0;
        const mn = t.updateConstructorDeclaration(
          $e,
          Xn($e.modifiers, K, Aa),
          Fl($e.parameters, K, e),
          Wt($e),
        );
        return ((R = At), mn);
      }
      function Se($e) {
        let At;
        const mn = cc($e),
          dr = R;
        R = void 0;
        const ri = t.updateMethodDeclaration(
          $e,
          Xn($e.modifiers, K, fl),
          $e.asteriskToken,
          $e.name,
          void 0,
          void 0,
          (At = mn & 2 ? gn($e) : Fl($e.parameters, K, e)),
          void 0,
          mn & 2 ? Kn($e, At) : Wt($e),
        );
        return ((R = dr), ri);
      }
      function re($e) {
        const At = R;
        R = void 0;
        const mn = t.updateGetAccessorDeclaration(
          $e,
          Xn($e.modifiers, K, fl),
          $e.name,
          Fl($e.parameters, K, e),
          void 0,
          Wt($e),
        );
        return ((R = At), mn);
      }
      function be($e) {
        const At = R;
        R = void 0;
        const mn = t.updateSetAccessorDeclaration(
          $e,
          Xn($e.modifiers, K, fl),
          $e.name,
          Fl($e.parameters, K, e),
          Wt($e),
        );
        return ((R = At), mn);
      }
      function Ne($e) {
        let At;
        const mn = R;
        R = void 0;
        const dr = cc($e),
          ri = t.updateFunctionDeclaration(
            $e,
            Xn($e.modifiers, K, fl),
            $e.asteriskToken,
            $e.name,
            void 0,
            (At = dr & 2 ? gn($e) : Fl($e.parameters, K, e)),
            void 0,
            dr & 2 ? Kn($e, At) : gf($e.body, K, e),
          );
        return ((R = mn), ri);
      }
      function Be($e) {
        let At;
        const mn = R;
        R = void 0;
        const dr = cc($e),
          ri = t.updateFunctionExpression(
            $e,
            Xn($e.modifiers, K, Aa),
            $e.asteriskToken,
            $e.name,
            void 0,
            (At = dr & 2 ? gn($e) : Fl($e.parameters, K, e)),
            void 0,
            dr & 2 ? Kn($e, At) : gf($e.body, K, e),
          );
        return ((R = mn), ri);
      }
      function lt($e) {
        let At;
        const mn = cc($e);
        return t.updateArrowFunction(
          $e,
          Xn($e.modifiers, K, Aa),
          void 0,
          (At = mn & 2 ? gn($e) : Fl($e.parameters, K, e)),
          void 0,
          $e.equalsGreaterThanToken,
          mn & 2 ? Kn($e, At) : gf($e.body, K, e),
        );
      }
      function ce({ name: $e }, At) {
        if (He($e)) At.add($e.escapedText);
        else for (const mn of $e.elements) Jc(mn) || ce(mn, At);
      }
      function Re($e) {
        return !!$e && _d($e) && !($e.flags & 7) && $e.declarations.some(at);
      }
      function _e($e, At) {
        je($e);
        const mn = _M($e);
        return mn.length === 0
          ? At
            ? st(
                t.converters.convertToAssignmentElementTarget(
                  $e.declarations[0].name,
                ),
                K,
                St,
              )
            : void 0
          : t.inlineExpressions(Vt(mn, We));
      }
      function je($e) {
        Ye($e.declarations, Ge);
      }
      function Ge({ name: $e }) {
        if (He($e)) s($e);
        else for (const At of $e.elements) Jc(At) || Ge(At);
      }
      function We($e) {
        const At = Ua(
          t.createAssignment(
            t.converters.convertToAssignmentElementTarget($e.name),
            $e.initializer,
          ),
          $e,
        );
        return C.checkDefined(st(At, K, St));
      }
      function at({ name: $e }) {
        if (He($e)) return g.has($e.escapedText);
        for (const At of $e.elements) if (!Jc(At) && at(At)) return !0;
        return !1;
      }
      function Wt($e) {
        C.assertIsDefined($e.body);
        const At = E,
          mn = A;
        ((E = new Set()), (A = !1));
        let dr = gf($e.body, K, e);
        const ri = yl($e, Ms);
        if (
          d >= 2 &&
          (l.hasNodeCheckFlag($e, 256) || l.hasNodeCheckFlag($e, 128)) &&
          (cc(ri) & 3) !== 3
        ) {
          if ((ir(), E.size)) {
            const qi = S3(t, l, $e, E);
            N[ls(qi)] = !0;
            const $o = dr.statements.slice();
            (mg($o, [qi]), (dr = t.updateBlock(dr, $o)));
          }
          A &&
            (l.hasNodeCheckFlag($e, 256)
              ? zI(dr, p4)
              : l.hasNodeCheckFlag($e, 128) && zI(dr, u4));
        }
        return ((E = At), (A = mn), dr);
      }
      function cn() {
        C.assert(R);
        const $e = t.createVariableDeclaration(
            R,
            void 0,
            void 0,
            t.createIdentifier("arguments"),
          ),
          At = t.createVariableStatement(void 0, [$e]);
        return (au(At), Qh(At, 2097152), At);
      }
      function gn($e) {
        if (qw($e.parameters)) return Fl($e.parameters, K, e);
        const At = [];
        for (const dr of $e.parameters) {
          if (dr.initializer || dr.dotDotDotToken) {
            if ($e.kind === 220) {
              const ai = t.createParameterDeclaration(
                void 0,
                t.createToken(26),
                t.createUniqueName("args", 8),
              );
              At.push(ai);
            }
            break;
          }
          const ri = t.createParameterDeclaration(
            void 0,
            void 0,
            t.getGeneratedNameForNode(dr.name, 8),
          );
          At.push(ri);
        }
        const mn = t.createNodeArray(At);
        return (vt(mn, $e.parameters), mn);
      }
      function Kn($e, At) {
        const mn = qw($e.parameters) ? void 0 : Fl($e.parameters, K, e);
        i();
        const ri = yl($e, Yo).type,
          ai = d < 2 ? en(ri) : void 0,
          qi = $e.kind === 220,
          $o = R,
          Mn = l.hasNodeCheckFlag($e, 512) && !R;
        Mn && (R = t.createUniqueName("arguments"));
        let Uo;
        if (mn)
          if (qi) {
            const it = [];
            C.assert(At.length <= $e.parameters.length);
            for (let dt = 0; dt < $e.parameters.length; dt++) {
              C.assert(dt < At.length);
              const Lt = $e.parameters[dt],
                Ue = At[dt];
              if (
                (C.assertNode(Ue.name, He), Lt.initializer || Lt.dotDotDotToken)
              ) {
                (C.assert(dt === At.length - 1),
                  it.push(t.createSpreadElement(Ue.name)));
                break;
              }
              it.push(Ue.name);
            }
            Uo = t.createArrayLiteralExpression(it);
          } else Uo = t.createIdentifier("arguments");
        const ot = g;
        g = new Set();
        for (const it of $e.parameters) ce(it, g);
        const Ft = E,
          le = A;
        qi || ((E = new Set()), (A = !1));
        const ht = Z();
        let ne = _t($e.body);
        ne = t.updateBlock(ne, t.mergeLexicalEnvironment(ne.statements, o()));
        let Fe;
        if (qi) {
          if (((Fe = r().createAwaiterHelper(ht, Uo, ai, mn, ne)), Mn)) {
            const it = t.converters.convertToFunctionBlock(Fe);
            Fe = t.updateBlock(
              it,
              t.mergeLexicalEnvironment(it.statements, [cn()]),
            );
          }
        } else {
          const it = [];
          it.push(
            t.createReturnStatement(
              r().createAwaiterHelper(ht, Uo, ai, mn, ne),
            ),
          );
          const dt =
            d >= 2 &&
            (l.hasNodeCheckFlag($e, 256) || l.hasNodeCheckFlag($e, 128));
          if (dt && (ir(), E.size)) {
            const Ue = S3(t, l, $e, E);
            ((N[ls(Ue)] = !0), mg(it, [Ue]));
          }
          Mn && mg(it, [cn()]);
          const Lt = t.createBlock(it, !0);
          (vt(Lt, $e.body),
            dt &&
              A &&
              (l.hasNodeCheckFlag($e, 256)
                ? zI(Lt, p4)
                : l.hasNodeCheckFlag($e, 128) && zI(Lt, u4)),
            (Fe = Lt));
        }
        return ((g = ot), qi || ((E = Ft), (A = le), (R = $o)), Fe);
      }
      function _t($e, At) {
        return ea($e)
          ? t.updateBlock($e, Xn($e.statements, pe, Vi, At))
          : t.converters.convertToFunctionBlock(C.checkDefined(st($e, pe, SF)));
      }
      function en($e) {
        const At = $e && ck($e);
        if (At && Mu(At)) {
          const mn = l.getTypeReferenceSerializationKind(At);
          if (mn === 1 || mn === 0) return At;
        }
      }
      function ir() {
        (_ & 1) === 0 &&
          ((_ |= 1),
          e.enableSubstitution(214),
          e.enableSubstitution(212),
          e.enableSubstitution(213),
          e.enableEmitNotification(264),
          e.enableEmitNotification(175),
          e.enableEmitNotification(178),
          e.enableEmitNotification(179),
          e.enableEmitNotification(177),
          e.enableEmitNotification(244));
      }
      function Di($e, At, mn) {
        if (_ & 1 && Pr(At)) {
          const dr =
            (l.hasNodeCheckFlag(At, 128) ? 128 : 0) |
            (l.hasNodeCheckFlag(At, 256) ? 256 : 0);
          if (dr !== h) {
            const ri = h;
            ((h = dr), k($e, At, mn), (h = ri));
            return;
          }
        } else if (_ && N[ls(At)]) {
          const dr = h;
          ((h = 0), k($e, At, mn), (h = dr));
          return;
        }
        k($e, At, mn);
      }
      function lo($e, At) {
        return ((At = W($e, At)), $e === 1 && h ? zt(At) : At);
      }
      function zt($e) {
        switch ($e.kind) {
          case 212:
            return Zr($e);
          case 213:
            return Ai($e);
          case 214:
            return Ni($e);
        }
        return $e;
      }
      function Zr($e) {
        return $e.expression.kind === 108
          ? vt(
              t.createPropertyAccessExpression(
                t.createUniqueName("_super", 48),
                $e.name,
              ),
              $e,
            )
          : $e;
      }
      function Ai($e) {
        return $e.expression.kind === 108 ? Ci($e.argumentExpression, $e) : $e;
      }
      function Ni($e) {
        const At = $e.expression;
        if (mp(At)) {
          const mn = qr(At) ? Zr(At) : Ai(At);
          return t.createCallExpression(
            t.createPropertyAccessExpression(mn, "call"),
            void 0,
            [t.createThis(), ...$e.arguments],
          );
        }
        return $e;
      }
      function Pr($e) {
        const At = $e.kind;
        return (
          At === 264 || At === 177 || At === 175 || At === 178 || At === 179
        );
      }
      function Ci($e, At) {
        return h & 256
          ? vt(
              t.createPropertyAccessExpression(
                t.createCallExpression(
                  t.createUniqueName("_superIndex", 48),
                  void 0,
                  [$e],
                ),
                "value",
              ),
              At,
            )
          : vt(
              t.createCallExpression(
                t.createUniqueName("_superIndex", 48),
                void 0,
                [$e],
              ),
              At,
            );
      }
    }
    function S3(e, t, r, i) {
      const o = t.hasNodeCheckFlag(r, 256),
        s = [];
      return (
        i.forEach((l, u) => {
          const d = Gi(u),
            _ = [];
          (_.push(
            e.createPropertyAssignment(
              "get",
              e.createArrowFunction(
                void 0,
                void 0,
                [],
                void 0,
                void 0,
                Cr(
                  e.createPropertyAccessExpression(Cr(e.createSuper(), 8), d),
                  8,
                ),
              ),
            ),
          ),
            o &&
              _.push(
                e.createPropertyAssignment(
                  "set",
                  e.createArrowFunction(
                    void 0,
                    void 0,
                    [
                      e.createParameterDeclaration(
                        void 0,
                        void 0,
                        "v",
                        void 0,
                        void 0,
                        void 0,
                      ),
                    ],
                    void 0,
                    void 0,
                    e.createAssignment(
                      Cr(
                        e.createPropertyAccessExpression(
                          Cr(e.createSuper(), 8),
                          d,
                        ),
                        8,
                      ),
                      e.createIdentifier("v"),
                    ),
                  ),
                ),
              ),
            s.push(
              e.createPropertyAssignment(d, e.createObjectLiteralExpression(_)),
            ));
        }),
        e.createVariableStatement(
          void 0,
          e.createVariableDeclarationList(
            [
              e.createVariableDeclaration(
                e.createUniqueName("_super", 48),
                void 0,
                void 0,
                e.createCallExpression(
                  e.createPropertyAccessExpression(
                    e.createIdentifier("Object"),
                    "create",
                  ),
                  void 0,
                  [e.createNull(), e.createObjectLiteralExpression(s, !0)],
                ),
              ),
            ],
            2,
          ),
        )
      );
    }
    function Oae(e) {
      const {
          factory: t,
          getEmitHelperFactory: r,
          resumeLexicalEnvironment: i,
          endLexicalEnvironment: o,
          hoistVariableDeclaration: s,
        } = e,
        l = e.getEmitResolver(),
        u = e.getCompilerOptions(),
        d = Ga(u),
        _ = e.onEmitNode;
      e.onEmitNode = $o;
      const h = e.onSubstituteNode;
      e.onSubstituteNode = Ia;
      let g = !1,
        E = 0,
        A,
        R,
        N = 0,
        P = 0,
        k,
        W,
        O,
        G;
      const j = [];
      return hh(e, ie);
      function J(ne, Fe) {
        return P !== ((P & ~ne) | Fe);
      }
      function Z(ne, Fe) {
        const it = P;
        return ((P = ((P & ~ne) | Fe) & 3), it);
      }
      function q(ne) {
        P = ne;
      }
      function ye(ne) {
        W = Bn(W, t.createVariableDeclaration(ne));
      }
      function ie(ne) {
        if (ne.isDeclarationFile) return ne;
        k = ne;
        const Fe = lt(ne);
        return (Ag(Fe, e.readEmitHelpers()), (k = void 0), (W = void 0), Fe);
      }
      function K(ne) {
        return xe(ne, !1);
      }
      function pe(ne) {
        return xe(ne, !0);
      }
      function de(ne) {
        if (ne.kind !== 134) return ne;
      }
      function fe(ne, Fe, it, dt) {
        if (J(it, dt)) {
          const Lt = Z(it, dt),
            Ue = ne(Fe);
          return (q(Lt), Ue);
        }
        return ne(Fe);
      }
      function ve(ne) {
        return kn(ne, K, e);
      }
      function xe(ne, Fe) {
        if ((ne.transformFlags & 128) === 0) return ne;
        switch (ne.kind) {
          case 224:
            return X(ne);
          case 230:
            return Ce(ne);
          case 254:
            return Je(ne);
          case 257:
            return Se(ne);
          case 211:
            return be(ne);
          case 227:
            return Re(ne, Fe);
          case 357:
            return _e(ne, Fe);
          case 300:
            return je(ne);
          case 244:
            return Ge(ne);
          case 261:
            return We(ne);
          case 247:
          case 248:
          case 250:
            return fe(ve, ne, 0, 2);
          case 251:
            return gn(ne, void 0);
          case 249:
            return fe(Wt, ne, 0, 2);
          case 223:
            return cn(ne);
          case 177:
            return fe(Zr, ne, 2, 1);
          case 175:
            return fe(Pr, ne, 2, 1);
          case 178:
            return fe(Ai, ne, 2, 1);
          case 179:
            return fe(Ni, ne, 2, 1);
          case 263:
            return fe(Ci, ne, 2, 1);
          case 219:
            return fe(At, ne, 2, 1);
          case 220:
            return fe($e, ne, 2, 0);
          case 170:
            return lo(ne);
          case 245:
            return Ne(ne);
          case 218:
            return Be(ne, Fe);
          case 216:
            return ce(ne);
          case 212:
            return (
              O &&
                qr(ne) &&
                ne.expression.kind === 108 &&
                O.add(ne.name.escapedText),
              kn(ne, K, e)
            );
          case 213:
            return (O && ne.expression.kind === 108 && (G = !0), kn(ne, K, e));
          case 264:
          case 232:
            return fe(ve, ne, 2, 1);
          default:
            return kn(ne, K, e);
        }
      }
      function X(ne) {
        return A & 2 && A & 1
          ? jr(
              vt(
                t.createYieldExpression(
                  void 0,
                  r().createAwaitHelper(st(ne.expression, K, St)),
                ),
                ne,
              ),
              ne,
            )
          : kn(ne, K, e);
      }
      function Ce(ne) {
        if (A & 2 && A & 1) {
          if (ne.asteriskToken) {
            const Fe = st(C.checkDefined(ne.expression), K, St);
            return jr(
              vt(
                t.createYieldExpression(
                  void 0,
                  r().createAwaitHelper(
                    t.updateYieldExpression(
                      ne,
                      ne.asteriskToken,
                      vt(
                        r().createAsyncDelegatorHelper(
                          vt(r().createAsyncValuesHelper(Fe), Fe),
                        ),
                        Fe,
                      ),
                    ),
                  ),
                ),
                ne,
              ),
              ne,
            );
          }
          return jr(
            vt(
              t.createYieldExpression(
                void 0,
                en(
                  ne.expression ? st(ne.expression, K, St) : t.createVoidZero(),
                ),
              ),
              ne,
            ),
            ne,
          );
        }
        return kn(ne, K, e);
      }
      function Je(ne) {
        return A & 2 && A & 1
          ? t.updateReturnStatement(
              ne,
              en(ne.expression ? st(ne.expression, K, St) : t.createVoidZero()),
            )
          : kn(ne, K, e);
      }
      function Se(ne) {
        if (A & 2) {
          const Fe = CG(ne);
          return Fe.kind === 251 && Fe.awaitModifier
            ? gn(Fe, ne)
            : t.restoreEnclosingLabel(st(Fe, K, Vi, t.liftToBlock), ne);
        }
        return kn(ne, K, e);
      }
      function re(ne) {
        let Fe;
        const it = [];
        for (const dt of ne)
          if (dt.kind === 306) {
            Fe && (it.push(t.createObjectLiteralExpression(Fe)), (Fe = void 0));
            const Lt = dt.expression;
            it.push(st(Lt, K, St));
          } else
            Fe = Bn(
              Fe,
              dt.kind === 304
                ? t.createPropertyAssignment(dt.name, st(dt.initializer, K, St))
                : st(dt, K, ny),
            );
        return (Fe && it.push(t.createObjectLiteralExpression(Fe)), it);
      }
      function be(ne) {
        if (ne.transformFlags & 65536) {
          const Fe = re(ne.properties);
          Fe.length &&
            Fe[0].kind !== 211 &&
            Fe.unshift(t.createObjectLiteralExpression());
          let it = Fe[0];
          if (Fe.length > 1) {
            for (let dt = 1; dt < Fe.length; dt++)
              it = r().createAssignHelper([it, Fe[dt]]);
            return it;
          } else return r().createAssignHelper(Fe);
        }
        return kn(ne, K, e);
      }
      function Ne(ne) {
        return kn(ne, pe, e);
      }
      function Be(ne, Fe) {
        return kn(ne, Fe ? pe : K, e);
      }
      function lt(ne) {
        const Fe = Z(2, bG(ne, u) ? 0 : 1);
        g = !1;
        const it = kn(ne, K, e),
          dt = so(
            it.statements,
            W && [
              t.createVariableStatement(
                void 0,
                t.createVariableDeclarationList(W),
              ),
            ],
          ),
          Lt = t.updateSourceFile(it, vt(t.createNodeArray(dt), ne.statements));
        return (q(Fe), Lt);
      }
      function ce(ne) {
        return QU(e, ne, K, k, ye, 0);
      }
      function Re(ne, Fe) {
        return rv(ne) && Dw(ne.left)
          ? k1(ne, K, e, 1, !Fe)
          : ne.operatorToken.kind === 28
            ? t.updateBinaryExpression(
                ne,
                st(ne.left, pe, St),
                ne.operatorToken,
                st(ne.right, Fe ? pe : K, St),
              )
            : kn(ne, K, e);
      }
      function _e(ne, Fe) {
        if (Fe) return kn(ne, pe, e);
        let it;
        for (let Lt = 0; Lt < ne.elements.length; Lt++) {
          const Ue = ne.elements[Lt],
            Rt = st(Ue, Lt < ne.elements.length - 1 ? pe : K, St);
          (it || Rt !== Ue) &&
            (it || (it = ne.elements.slice(0, Lt)), it.push(Rt));
        }
        const dt = it ? vt(t.createNodeArray(it), ne.elements) : ne.elements;
        return t.updateCommaListExpression(ne, dt);
      }
      function je(ne) {
        if (
          ne.variableDeclaration &&
          Qo(ne.variableDeclaration.name) &&
          ne.variableDeclaration.name.transformFlags & 65536
        ) {
          const Fe = t.getGeneratedNameForNode(ne.variableDeclaration.name),
            it = t.updateVariableDeclaration(
              ne.variableDeclaration,
              ne.variableDeclaration.name,
              void 0,
              void 0,
              Fe,
            ),
            dt = XS(it, K, e, 1);
          let Lt = st(ne.block, K, ea);
          return (
            yt(dt) &&
              (Lt = t.updateBlock(Lt, [
                t.createVariableStatement(void 0, dt),
                ...Lt.statements,
              ])),
            t.updateCatchClause(
              ne,
              t.updateVariableDeclaration(
                ne.variableDeclaration,
                Fe,
                void 0,
                void 0,
                void 0,
              ),
              Lt,
            )
          );
        }
        return kn(ne, K, e);
      }
      function Ge(ne) {
        if (di(ne, 32)) {
          const Fe = g;
          g = !0;
          const it = kn(ne, K, e);
          return ((g = Fe), it);
        }
        return kn(ne, K, e);
      }
      function We(ne) {
        if (g) {
          const Fe = g;
          g = !1;
          const it = at(ne, !0);
          return ((g = Fe), it);
        }
        return at(ne, !1);
      }
      function at(ne, Fe) {
        return Qo(ne.name) && ne.name.transformFlags & 65536
          ? XS(ne, K, e, 1, void 0, Fe)
          : kn(ne, K, e);
      }
      function Wt(ne) {
        return t.updateForStatement(
          ne,
          st(ne.initializer, pe, Of),
          st(ne.condition, K, St),
          st(ne.incrementor, pe, St),
          Wu(ne.statement, K, e),
        );
      }
      function cn(ne) {
        return kn(ne, pe, e);
      }
      function gn(ne, Fe) {
        const it = Z(0, 2);
        (ne.initializer.transformFlags & 65536 ||
          (zN(ne.initializer) && Dw(ne.initializer))) &&
          (ne = Kn(ne));
        const dt = ne.awaitModifier
          ? ir(ne, Fe, it)
          : t.restoreEnclosingLabel(kn(ne, K, e), Fe);
        return (q(it), dt);
      }
      function Kn(ne) {
        const Fe = us(ne.initializer);
        if (_d(Fe) || zN(Fe)) {
          let it, dt;
          const Lt = t.createTempVariable(void 0),
            Ue = [Oj(t, Fe, Lt)];
          return (
            ea(ne.statement)
              ? (Xr(Ue, ne.statement.statements),
                (it = ne.statement),
                (dt = ne.statement.statements))
              : ne.statement &&
                (Bn(Ue, ne.statement),
                (it = ne.statement),
                (dt = ne.statement)),
            t.updateForOfStatement(
              ne,
              ne.awaitModifier,
              vt(
                t.createVariableDeclarationList(
                  [vt(t.createVariableDeclaration(Lt), ne.initializer)],
                  1,
                ),
                ne.initializer,
              ),
              ne.expression,
              vt(t.createBlock(vt(t.createNodeArray(Ue), dt), !0), it),
            )
          );
        }
        return ne;
      }
      function _t(ne, Fe, it) {
        const dt = t.createTempVariable(s),
          Lt = t.createAssignment(dt, Fe),
          Ue = t.createExpressionStatement(Lt);
        Ua(Ue, ne.expression);
        const Rt = t.createAssignment(it, t.createFalse()),
          It = t.createExpressionStatement(Rt);
        Ua(It, ne.expression);
        const Ot = [Ue, It],
          nt = Oj(t, ne.initializer, dt);
        Ot.push(st(nt, K, Vi));
        let Kt, Tr;
        const Oe = Wu(ne.statement, K, e);
        return (
          ea(Oe)
            ? (Xr(Ot, Oe.statements), (Kt = Oe), (Tr = Oe.statements))
            : Ot.push(Oe),
          vt(t.createBlock(vt(t.createNodeArray(Ot), Tr), !0), Kt)
        );
      }
      function en(ne) {
        return A & 1
          ? t.createYieldExpression(void 0, r().createAwaitHelper(ne))
          : t.createAwaitExpression(ne);
      }
      function ir(ne, Fe, it) {
        const dt = st(ne.expression, K, St),
          Lt = He(dt)
            ? t.getGeneratedNameForNode(dt)
            : t.createTempVariable(void 0),
          Ue = He(dt)
            ? t.getGeneratedNameForNode(Lt)
            : t.createTempVariable(void 0),
          Rt = t.createTempVariable(void 0),
          It = t.createTempVariable(s),
          Ot = t.createUniqueName("e"),
          nt = t.getGeneratedNameForNode(Ot),
          Kt = t.createTempVariable(void 0),
          Tr = vt(r().createAsyncValuesHelper(dt), ne.expression),
          Oe = t.createCallExpression(
            t.createPropertyAccessExpression(Lt, "next"),
            void 0,
            [],
          ),
          Nt = t.createPropertyAccessExpression(Ue, "done"),
          he = t.createPropertyAccessExpression(Ue, "value"),
          B = t.createFunctionCallCall(Kt, Lt, []);
        (s(Ot), s(Kt));
        const Ae =
            it & 2
              ? t.inlineExpressions([
                  t.createAssignment(Ot, t.createVoidZero()),
                  Tr,
                ])
              : Tr,
          te = Cr(
            vt(
              t.createForStatement(
                Cr(
                  vt(
                    t.createVariableDeclarationList([
                      t.createVariableDeclaration(
                        Rt,
                        void 0,
                        void 0,
                        t.createTrue(),
                      ),
                      vt(
                        t.createVariableDeclaration(Lt, void 0, void 0, Ae),
                        ne.expression,
                      ),
                      t.createVariableDeclaration(Ue),
                    ]),
                    ne.expression,
                  ),
                  4194304,
                ),
                t.inlineExpressions([
                  t.createAssignment(Ue, en(Oe)),
                  t.createAssignment(It, Nt),
                  t.createLogicalNot(It),
                ]),
                t.createAssignment(Rt, t.createTrue()),
                _t(ne, he, Rt),
              ),
              ne,
            ),
            512,
          );
        return (
          jr(te, ne),
          t.createTryStatement(
            t.createBlock([t.restoreEnclosingLabel(te, Fe)]),
            t.createCatchClause(
              t.createVariableDeclaration(nt),
              Cr(
                t.createBlock([
                  t.createExpressionStatement(
                    t.createAssignment(
                      Ot,
                      t.createObjectLiteralExpression([
                        t.createPropertyAssignment("error", nt),
                      ]),
                    ),
                  ),
                ]),
                1,
              ),
            ),
            t.createBlock([
              t.createTryStatement(
                t.createBlock([
                  Cr(
                    t.createIfStatement(
                      t.createLogicalAnd(
                        t.createLogicalAnd(
                          t.createLogicalNot(Rt),
                          t.createLogicalNot(It),
                        ),
                        t.createAssignment(
                          Kt,
                          t.createPropertyAccessExpression(Lt, "return"),
                        ),
                      ),
                      t.createExpressionStatement(en(B)),
                    ),
                    1,
                  ),
                ]),
                void 0,
                Cr(
                  t.createBlock([
                    Cr(
                      t.createIfStatement(
                        Ot,
                        t.createThrowStatement(
                          t.createPropertyAccessExpression(Ot, "error"),
                        ),
                      ),
                      1,
                    ),
                  ]),
                  1,
                ),
              ),
            ]),
          )
        );
      }
      function Di(ne) {
        return (C.assertNode(ne, to), lo(ne));
      }
      function lo(ne) {
        return R?.has(ne)
          ? t.updateParameterDeclaration(
              ne,
              void 0,
              ne.dotDotDotToken,
              Qo(ne.name) ? t.getGeneratedNameForNode(ne) : ne.name,
              void 0,
              void 0,
              void 0,
            )
          : ne.transformFlags & 65536
            ? t.updateParameterDeclaration(
                ne,
                void 0,
                ne.dotDotDotToken,
                t.getGeneratedNameForNode(ne),
                void 0,
                void 0,
                st(ne.initializer, K, St),
              )
            : kn(ne, K, e);
      }
      function zt(ne) {
        let Fe;
        for (const it of ne.parameters)
          Fe ? Fe.add(it) : it.transformFlags & 65536 && (Fe = new Set());
        return Fe;
      }
      function Zr(ne) {
        const Fe = A,
          it = R;
        ((A = cc(ne)), (R = zt(ne)));
        const dt = t.updateConstructorDeclaration(
          ne,
          ne.modifiers,
          Fl(ne.parameters, Di, e),
          ri(ne),
        );
        return ((A = Fe), (R = it), dt);
      }
      function Ai(ne) {
        const Fe = A,
          it = R;
        ((A = cc(ne)), (R = zt(ne)));
        const dt = t.updateGetAccessorDeclaration(
          ne,
          ne.modifiers,
          st(ne.name, K, vc),
          Fl(ne.parameters, Di, e),
          void 0,
          ri(ne),
        );
        return ((A = Fe), (R = it), dt);
      }
      function Ni(ne) {
        const Fe = A,
          it = R;
        ((A = cc(ne)), (R = zt(ne)));
        const dt = t.updateSetAccessorDeclaration(
          ne,
          ne.modifiers,
          st(ne.name, K, vc),
          Fl(ne.parameters, Di, e),
          ri(ne),
        );
        return ((A = Fe), (R = it), dt);
      }
      function Pr(ne) {
        const Fe = A,
          it = R;
        ((A = cc(ne)), (R = zt(ne)));
        const dt = t.updateMethodDeclaration(
          ne,
          A & 1 ? Xn(ne.modifiers, de, fl) : ne.modifiers,
          A & 2 ? void 0 : ne.asteriskToken,
          st(ne.name, K, vc),
          st(void 0, K, Nb),
          void 0,
          A & 2 && A & 1 ? mn(ne) : Fl(ne.parameters, Di, e),
          void 0,
          A & 2 && A & 1 ? dr(ne) : ri(ne),
        );
        return ((A = Fe), (R = it), dt);
      }
      function Ci(ne) {
        const Fe = A,
          it = R;
        ((A = cc(ne)), (R = zt(ne)));
        const dt = t.updateFunctionDeclaration(
          ne,
          A & 1 ? Xn(ne.modifiers, de, Aa) : ne.modifiers,
          A & 2 ? void 0 : ne.asteriskToken,
          ne.name,
          void 0,
          A & 2 && A & 1 ? mn(ne) : Fl(ne.parameters, Di, e),
          void 0,
          A & 2 && A & 1 ? dr(ne) : ri(ne),
        );
        return ((A = Fe), (R = it), dt);
      }
      function $e(ne) {
        const Fe = A,
          it = R;
        ((A = cc(ne)), (R = zt(ne)));
        const dt = t.updateArrowFunction(
          ne,
          ne.modifiers,
          void 0,
          Fl(ne.parameters, Di, e),
          void 0,
          ne.equalsGreaterThanToken,
          ri(ne),
        );
        return ((A = Fe), (R = it), dt);
      }
      function At(ne) {
        const Fe = A,
          it = R;
        ((A = cc(ne)), (R = zt(ne)));
        const dt = t.updateFunctionExpression(
          ne,
          A & 1 ? Xn(ne.modifiers, de, Aa) : ne.modifiers,
          A & 2 ? void 0 : ne.asteriskToken,
          ne.name,
          void 0,
          A & 2 && A & 1 ? mn(ne) : Fl(ne.parameters, Di, e),
          void 0,
          A & 2 && A & 1 ? dr(ne) : ri(ne),
        );
        return ((A = Fe), (R = it), dt);
      }
      function mn(ne) {
        if (qw(ne.parameters)) return Fl(ne.parameters, K, e);
        const Fe = [];
        for (const dt of ne.parameters) {
          if (dt.initializer || dt.dotDotDotToken) break;
          const Lt = t.createParameterDeclaration(
            void 0,
            void 0,
            t.getGeneratedNameForNode(dt.name, 8),
          );
          Fe.push(Lt);
        }
        const it = t.createNodeArray(Fe);
        return (vt(it, ne.parameters), it);
      }
      function dr(ne) {
        const Fe = qw(ne.parameters) ? void 0 : Fl(ne.parameters, K, e);
        i();
        const it = O,
          dt = G;
        ((O = new Set()), (G = !1));
        const Lt = [];
        let Ue = t.updateBlock(ne.body, Xn(ne.body.statements, K, Vi));
        Ue = t.updateBlock(
          Ue,
          t.mergeLexicalEnvironment(Ue.statements, ai(o(), ne)),
        );
        const Rt = t.createReturnStatement(
            r().createAsyncGeneratorHelper(
              t.createFunctionExpression(
                void 0,
                t.createToken(42),
                ne.name && t.getGeneratedNameForNode(ne.name),
                void 0,
                Fe ?? [],
                void 0,
                Ue,
              ),
              !!(P & 1),
            ),
          ),
          It =
            d >= 2 &&
            (l.hasNodeCheckFlag(ne, 256) || l.hasNodeCheckFlag(ne, 128));
        if (It) {
          qi();
          const nt = S3(t, l, ne, O);
          ((j[ls(nt)] = !0), mg(Lt, [nt]));
        }
        Lt.push(Rt);
        const Ot = t.updateBlock(ne.body, Lt);
        return (
          It &&
            G &&
            (l.hasNodeCheckFlag(ne, 256)
              ? zI(Ot, p4)
              : l.hasNodeCheckFlag(ne, 128) && zI(Ot, u4)),
          (O = it),
          (G = dt),
          Ot
        );
      }
      function ri(ne) {
        i();
        let Fe = 0;
        const it = [],
          dt = st(ne.body, K, SF) ?? t.createBlock([]);
        (ea(dt) && (Fe = t.copyPrologue(dt.statements, it, !1, K)),
          Xr(it, ai(void 0, ne)));
        const Lt = o();
        if (Fe > 0 || yt(it) || yt(Lt)) {
          const Ue = t.converters.convertToFunctionBlock(dt, !0);
          return (
            mg(it, Lt),
            Xr(it, Ue.statements.slice(Fe)),
            t.updateBlock(Ue, vt(t.createNodeArray(it), Ue.statements))
          );
        }
        return dt;
      }
      function ai(ne, Fe) {
        let it = !1;
        for (const dt of Fe.parameters)
          if (it) {
            if (Qo(dt.name)) {
              if (dt.name.elements.length > 0) {
                const Lt = XS(dt, K, e, 0, t.getGeneratedNameForNode(dt));
                if (yt(Lt)) {
                  const Ue = t.createVariableDeclarationList(Lt),
                    Rt = t.createVariableStatement(void 0, Ue);
                  (Cr(Rt, 2097152), (ne = Bn(ne, Rt)));
                }
              } else if (dt.initializer) {
                const Lt = t.getGeneratedNameForNode(dt),
                  Ue = st(dt.initializer, K, St),
                  Rt = t.createAssignment(Lt, Ue),
                  It = t.createExpressionStatement(Rt);
                (Cr(It, 2097152), (ne = Bn(ne, It)));
              }
            } else if (dt.initializer) {
              const Lt = t.cloneNode(dt.name);
              (vt(Lt, dt.name), Cr(Lt, 96));
              const Ue = st(dt.initializer, K, St);
              Qh(Ue, 3168);
              const Rt = t.createAssignment(Lt, Ue);
              (vt(Rt, dt), Cr(Rt, 3072));
              const It = t.createBlock([t.createExpressionStatement(Rt)]);
              (vt(It, dt), Cr(It, 3905));
              const Ot = t.createTypeCheck(t.cloneNode(dt.name), "undefined"),
                nt = t.createIfStatement(Ot, It);
              (au(nt), vt(nt, dt), Cr(nt, 2101056), (ne = Bn(ne, nt)));
            }
          } else if (dt.transformFlags & 65536) {
            it = !0;
            const Lt = XS(dt, K, e, 1, t.getGeneratedNameForNode(dt), !1, !0);
            if (yt(Lt)) {
              const Ue = t.createVariableDeclarationList(Lt),
                Rt = t.createVariableStatement(void 0, Ue);
              (Cr(Rt, 2097152), (ne = Bn(ne, Rt)));
            }
          }
        return ne;
      }
      function qi() {
        (E & 1) === 0 &&
          ((E |= 1),
          e.enableSubstitution(214),
          e.enableSubstitution(212),
          e.enableSubstitution(213),
          e.enableEmitNotification(264),
          e.enableEmitNotification(175),
          e.enableEmitNotification(178),
          e.enableEmitNotification(179),
          e.enableEmitNotification(177),
          e.enableEmitNotification(244));
      }
      function $o(ne, Fe, it) {
        if (E & 1 && le(Fe)) {
          const dt =
            (l.hasNodeCheckFlag(Fe, 128) ? 128 : 0) |
            (l.hasNodeCheckFlag(Fe, 256) ? 256 : 0);
          if (dt !== N) {
            const Lt = N;
            ((N = dt), _(ne, Fe, it), (N = Lt));
            return;
          }
        } else if (E && j[ls(Fe)]) {
          const dt = N;
          ((N = 0), _(ne, Fe, it), (N = dt));
          return;
        }
        _(ne, Fe, it);
      }
      function Ia(ne, Fe) {
        return ((Fe = h(ne, Fe)), ne === 1 && N ? Mn(Fe) : Fe);
      }
      function Mn(ne) {
        switch (ne.kind) {
          case 212:
            return Uo(ne);
          case 213:
            return ot(ne);
          case 214:
            return Ft(ne);
        }
        return ne;
      }
      function Uo(ne) {
        return ne.expression.kind === 108
          ? vt(
              t.createPropertyAccessExpression(
                t.createUniqueName("_super", 48),
                ne.name,
              ),
              ne,
            )
          : ne;
      }
      function ot(ne) {
        return ne.expression.kind === 108 ? ht(ne.argumentExpression, ne) : ne;
      }
      function Ft(ne) {
        const Fe = ne.expression;
        if (mp(Fe)) {
          const it = qr(Fe) ? Uo(Fe) : ot(Fe);
          return t.createCallExpression(
            t.createPropertyAccessExpression(it, "call"),
            void 0,
            [t.createThis(), ...ne.arguments],
          );
        }
        return ne;
      }
      function le(ne) {
        const Fe = ne.kind;
        return (
          Fe === 264 || Fe === 177 || Fe === 175 || Fe === 178 || Fe === 179
        );
      }
      function ht(ne, Fe) {
        return N & 256
          ? vt(
              t.createPropertyAccessExpression(
                t.createCallExpression(
                  t.createIdentifier("_superIndex"),
                  void 0,
                  [ne],
                ),
                "value",
              ),
              Fe,
            )
          : vt(
              t.createCallExpression(
                t.createIdentifier("_superIndex"),
                void 0,
                [ne],
              ),
              Fe,
            );
      }
    }
    function Wae(e) {
      const t = e.factory;
      return hh(e, r);
      function r(s) {
        return s.isDeclarationFile ? s : kn(s, i, e);
      }
      function i(s) {
        if ((s.transformFlags & 64) === 0) return s;
        switch (s.kind) {
          case 300:
            return o(s);
          default:
            return kn(s, i, e);
        }
      }
      function o(s) {
        return s.variableDeclaration
          ? kn(s, i, e)
          : t.updateCatchClause(
              s,
              t.createVariableDeclaration(t.createTempVariable(void 0)),
              st(s.block, i, ea),
            );
      }
    }
    function Fae(e) {
      const { factory: t, hoistVariableDeclaration: r } = e;
      return hh(e, i);
      function i(R) {
        return R.isDeclarationFile ? R : kn(R, o, e);
      }
      function o(R) {
        if ((R.transformFlags & 32) === 0) return R;
        switch (R.kind) {
          case 214: {
            const N = d(R, !1);
            return (C.assertNotNode(N, YI), N);
          }
          case 212:
          case 213:
            if (tu(R)) {
              const N = h(R, !1, !1);
              return (C.assertNotNode(N, YI), N);
            }
            return kn(R, o, e);
          case 227:
            return R.operatorToken.kind === 61 ? E(R) : kn(R, o, e);
          case 221:
            return A(R);
          default:
            return kn(R, o, e);
        }
      }
      function s(R) {
        C.assertNotNode(R, _F);
        const N = [R];
        for (; !R.questionDotToken && !XT(R); )
          ((R = ma(Wm(R.expression), tu)),
            C.assertNotNode(R, _F),
            N.unshift(R));
        return { expression: R.expression, chain: N };
      }
      function l(R, N, P) {
        const k = _(R.expression, N, P);
        return YI(k)
          ? t.createSyntheticReferenceExpression(
              t.updateParenthesizedExpression(R, k.expression),
              k.thisArg,
            )
          : t.updateParenthesizedExpression(R, k);
      }
      function u(R, N, P) {
        if (tu(R)) return h(R, N, P);
        let k = st(R.expression, o, St);
        C.assertNotNode(k, YI);
        let W;
        return (
          N &&
            (KS(k)
              ? (W = k)
              : ((W = t.createTempVariable(r)),
                (k = t.createAssignment(W, k)))),
          (k =
            R.kind === 212
              ? t.updatePropertyAccessExpression(R, k, st(R.name, o, He))
              : t.updateElementAccessExpression(
                  R,
                  k,
                  st(R.argumentExpression, o, St),
                )),
          W ? t.createSyntheticReferenceExpression(k, W) : k
        );
      }
      function d(R, N) {
        if (tu(R)) return h(R, N, !1);
        if (Ou(R.expression) && tu(us(R.expression))) {
          const P = l(R.expression, !0, !1),
            k = Xn(R.arguments, o, St);
          return YI(P)
            ? vt(t.createFunctionCallCall(P.expression, P.thisArg, k), R)
            : t.updateCallExpression(R, P, void 0, k);
        }
        return kn(R, o, e);
      }
      function _(R, N, P) {
        switch (R.kind) {
          case 218:
            return l(R, N, P);
          case 212:
          case 213:
            return u(R, N, P);
          case 214:
            return d(R, N);
          default:
            return st(R, o, St);
        }
      }
      function h(R, N, P) {
        const { expression: k, chain: W } = s(R),
          O = _(Wm(k), KE(W[0]), !1);
        let G = YI(O) ? O.thisArg : void 0,
          j = YI(O) ? O.expression : O,
          J = t.restoreOuterExpressions(k, j, 8);
        KS(j) ||
          ((j = t.createTempVariable(r)), (J = t.createAssignment(j, J)));
        let Z = j,
          q;
        for (let ie = 0; ie < W.length; ie++) {
          const K = W[ie];
          switch (K.kind) {
            case 212:
            case 213:
              (ie === W.length - 1 &&
                N &&
                (KS(Z)
                  ? (q = Z)
                  : ((q = t.createTempVariable(r)),
                    (Z = t.createAssignment(q, Z)))),
                (Z =
                  K.kind === 212
                    ? t.createPropertyAccessExpression(Z, st(K.name, o, He))
                    : t.createElementAccessExpression(
                        Z,
                        st(K.argumentExpression, o, St),
                      )));
              break;
            case 214:
              ie === 0 && G
                ? (pl(G) || ((G = t.cloneNode(G)), Qh(G, 3072)),
                  (Z = t.createFunctionCallCall(
                    Z,
                    G.kind === 108 ? t.createThis() : G,
                    Xn(K.arguments, o, St),
                  )))
                : (Z = t.createCallExpression(
                    Z,
                    void 0,
                    Xn(K.arguments, o, St),
                  ));
              break;
          }
          jr(Z, K);
        }
        const ye = P
          ? t.createConditionalExpression(
              g(J, j, !0),
              void 0,
              t.createTrue(),
              void 0,
              t.createDeleteExpression(Z),
            )
          : t.createConditionalExpression(
              g(J, j, !0),
              void 0,
              t.createVoidZero(),
              void 0,
              Z,
            );
        return (
          vt(ye, R),
          q ? t.createSyntheticReferenceExpression(ye, q) : ye
        );
      }
      function g(R, N, P) {
        return t.createBinaryExpression(
          t.createBinaryExpression(
            R,
            t.createToken(P ? 37 : 38),
            t.createNull(),
          ),
          t.createToken(P ? 57 : 56),
          t.createBinaryExpression(
            N,
            t.createToken(P ? 37 : 38),
            t.createVoidZero(),
          ),
        );
      }
      function E(R) {
        let N = st(R.left, o, St),
          P = N;
        return (
          KS(N) ||
            ((P = t.createTempVariable(r)), (N = t.createAssignment(P, N))),
          vt(
            t.createConditionalExpression(
              g(N, P),
              void 0,
              P,
              void 0,
              st(R.right, o, St),
            ),
            R,
          )
        );
      }
      function A(R) {
        return tu(us(R.expression))
          ? jr(_(R.expression, !1, !0), R)
          : t.updateDeleteExpression(R, st(R.expression, o, St));
      }
    }
    function zae(e) {
      const { hoistVariableDeclaration: t, factory: r } = e;
      return hh(e, i);
      function i(l) {
        return l.isDeclarationFile ? l : kn(l, o, e);
      }
      function o(l) {
        return (l.transformFlags & 16) === 0 ? l : pV(l) ? s(l) : kn(l, o, e);
      }
      function s(l) {
        const u = l.operatorToken,
          d = dP(u.kind);
        let _ = us(st(l.left, o, $u)),
          h = _;
        const g = us(st(l.right, o, St));
        if (Ks(_)) {
          const E = KS(_.expression),
            A = E ? _.expression : r.createTempVariable(t),
            R = E ? _.expression : r.createAssignment(A, _.expression);
          if (qr(_))
            ((h = r.createPropertyAccessExpression(A, _.name)),
              (_ = r.createPropertyAccessExpression(R, _.name)));
          else {
            const N = KS(_.argumentExpression),
              P = N ? _.argumentExpression : r.createTempVariable(t);
            ((h = r.createElementAccessExpression(A, P)),
              (_ = r.createElementAccessExpression(
                R,
                N
                  ? _.argumentExpression
                  : r.createAssignment(P, _.argumentExpression),
              )));
          }
        }
        return r.createBinaryExpression(
          _,
          d,
          r.createParenthesizedExpression(r.createAssignment(h, g)),
        );
      }
    }
    function Bae(e) {
      const {
        factory: t,
        getEmitHelperFactory: r,
        hoistVariableDeclaration: i,
        startLexicalEnvironment: o,
        endLexicalEnvironment: s,
      } = e;
      let l, u, d, _;
      return hh(e, h);
      function h(fe) {
        if (fe.isDeclarationFile) return fe;
        const ve = st(fe, g, Yi);
        return (
          Ag(ve, e.readEmitHelpers()),
          (u = void 0),
          (l = void 0),
          (d = void 0),
          ve
        );
      }
      function g(fe) {
        if ((fe.transformFlags & 4) === 0) return fe;
        switch (fe.kind) {
          case 308:
            return E(fe);
          case 242:
            return A(fe);
          case 249:
            return R(fe);
          case 251:
            return N(fe);
          case 256:
            return k(fe);
          default:
            return kn(fe, g, e);
        }
      }
      function E(fe) {
        const ve = ZU(fe.statements);
        if (ve) {
          (o(), (l = new jD()), (u = []));
          const xe = eAe(fe.statements),
            X = [];
          Xr(X, sP(fe.statements, g, Vi, 0, xe));
          let Ce = xe;
          for (; Ce < fe.statements.length; ) {
            const re = fe.statements[Ce];
            if (Vae(re) !== 0) {
              Ce > xe && Xr(X, Xn(fe.statements, g, Vi, xe, Ce - xe));
              break;
            }
            Ce++;
          }
          C.assert(
            Ce < fe.statements.length,
            "Should have encountered at least one 'using' statement.",
          );
          const Je = pe(),
            Se = W(fe.statements, Ce, fe.statements.length, Je, X);
          return (
            l.size &&
              Bn(
                X,
                t.createExportDeclaration(
                  void 0,
                  !1,
                  t.createNamedExports(Co(l.values())),
                ),
              ),
            Xr(X, s()),
            u.length &&
              X.push(
                t.createVariableStatement(
                  t.createModifiersFromModifierFlags(32),
                  t.createVariableDeclarationList(u, 1),
                ),
              ),
            Xr(X, de(Se, Je, ve === 2)),
            _ && X.push(t.createExportAssignment(void 0, !0, _)),
            t.updateSourceFile(fe, X)
          );
        }
        return kn(fe, g, e);
      }
      function A(fe) {
        const ve = ZU(fe.statements);
        if (ve) {
          const xe = eAe(fe.statements),
            X = pe();
          return t.updateBlock(fe, [
            ...sP(fe.statements, g, Vi, 0, xe),
            ...de(
              W(fe.statements, xe, fe.statements.length, X, void 0),
              X,
              ve === 2,
            ),
          ]);
        }
        return kn(fe, g, e);
      }
      function R(fe) {
        return fe.initializer && tAe(fe.initializer)
          ? st(
              t.createBlock([
                t.createVariableStatement(void 0, fe.initializer),
                t.updateForStatement(
                  fe,
                  void 0,
                  fe.condition,
                  fe.incrementor,
                  fe.statement,
                ),
              ]),
              g,
              Vi,
            )
          : kn(fe, g, e);
      }
      function N(fe) {
        if (tAe(fe.initializer)) {
          const ve = fe.initializer,
            xe =
              Ac(ve.declarations) ||
              t.createVariableDeclaration(t.createTempVariable(void 0)),
            X = Gae(ve) === 2,
            Ce = t.getGeneratedNameForNode(xe.name),
            Je = t.updateVariableDeclaration(xe, xe.name, void 0, void 0, Ce),
            Se = t.createVariableDeclarationList([Je], X ? 6 : 4),
            re = t.createVariableStatement(void 0, Se);
          return st(
            t.updateForOfStatement(
              fe,
              fe.awaitModifier,
              t.createVariableDeclarationList(
                [t.createVariableDeclaration(Ce)],
                2,
              ),
              fe.expression,
              ea(fe.statement)
                ? t.updateBlock(fe.statement, [re, ...fe.statement.statements])
                : t.createBlock([re, fe.statement], !0),
            ),
            g,
            Vi,
          );
        }
        return kn(fe, g, e);
      }
      function P(fe, ve) {
        return ZU(fe.statements) !== 0
          ? xD(fe)
            ? t.updateCaseClause(
                fe,
                st(fe.expression, g, St),
                W(fe.statements, 0, fe.statements.length, ve, void 0),
              )
            : t.updateDefaultClause(
                fe,
                W(fe.statements, 0, fe.statements.length, ve, void 0),
              )
          : kn(fe, g, e);
      }
      function k(fe) {
        const ve = mqe(fe.caseBlock.clauses);
        if (ve) {
          const xe = pe();
          return de(
            [
              t.updateSwitchStatement(
                fe,
                st(fe.expression, g, St),
                t.updateCaseBlock(
                  fe.caseBlock,
                  fe.caseBlock.clauses.map((X) => P(X, xe)),
                ),
              ),
            ],
            xe,
            ve === 2,
          );
        }
        return kn(fe, g, e);
      }
      function W(fe, ve, xe, X, Ce) {
        const Je = [];
        for (let be = ve; be < xe; be++) {
          const Ne = fe[be],
            Be = Vae(Ne);
          if (Be) {
            C.assertNode(Ne, ac);
            const ce = [];
            for (let Re of Ne.declarationList.declarations) {
              if (!He(Re.name)) {
                ce.length = 0;
                break;
              }
              Lp(Re) && (Re = zp(e, Re));
              const _e = st(Re.initializer, g, St) ?? t.createVoidZero();
              ce.push(
                t.updateVariableDeclaration(
                  Re,
                  Re.name,
                  void 0,
                  void 0,
                  r().createAddDisposableResourceHelper(X, _e, Be === 2),
                ),
              );
            }
            if (ce.length) {
              const Re = t.createVariableDeclarationList(ce, 2);
              (jr(Re, Ne.declarationList),
                vt(Re, Ne.declarationList),
                Se(t.updateVariableStatement(Ne, void 0, Re)));
              continue;
            }
          }
          const lt = g(Ne);
          Mo(lt) ? lt.forEach(Se) : lt && Se(lt);
        }
        return Je;
        function Se(be) {
          (C.assertNode(be, Vi), Bn(Je, re(be)));
        }
        function re(be) {
          if (!Ce) return be;
          switch (be.kind) {
            case 273:
            case 272:
            case 279:
            case 263:
              return O(be, Ce);
            case 278:
              return G(be);
            case 264:
              return Z(be);
            case 244:
              return q(be);
          }
          return be;
        }
      }
      function O(fe, ve) {
        ve.push(fe);
      }
      function G(fe) {
        return fe.isExportEquals ? J(fe) : j(fe);
      }
      function j(fe) {
        if (d) return fe;
        ((d = t.createUniqueName("_default", 56)), K(d, !0, "default", fe));
        let ve = fe.expression,
          xe = Ul(ve);
        Lp(xe) &&
          ((xe = zp(e, xe, !1, "default")),
          (ve = t.restoreOuterExpressions(ve, xe)));
        const X = t.createAssignment(d, ve);
        return t.createExpressionStatement(X);
      }
      function J(fe) {
        if (_) return fe;
        ((_ = t.createUniqueName("_default", 56)), i(_));
        const ve = t.createAssignment(_, fe.expression);
        return t.createExpressionStatement(ve);
      }
      function Z(fe) {
        if (!fe.name && d) return fe;
        const ve = di(fe, 32),
          xe = di(fe, 2048);
        let X = t.converters.convertToClassExpression(fe);
        return (
          fe.name &&
            (K(t.getLocalName(fe), ve && !xe, void 0, fe),
            (X = t.createAssignment(t.getDeclarationName(fe), X)),
            Lp(X) && (X = zp(e, X, !1)),
            jr(X, fe),
            Ua(X, fe),
            Rc(X, fe)),
          xe &&
            !d &&
            ((d = t.createUniqueName("_default", 56)),
            K(d, !0, "default", fe),
            (X = t.createAssignment(d, X)),
            Lp(X) && (X = zp(e, X, !1, "default")),
            jr(X, fe)),
          t.createExpressionStatement(X)
        );
      }
      function q(fe) {
        let ve;
        const xe = di(fe, 32);
        for (const X of fe.declarationList.declarations)
          (ie(X, xe, X), X.initializer && (ve = Bn(ve, ye(X))));
        if (ve) {
          const X = t.createExpressionStatement(t.inlineExpressions(ve));
          return (jr(X, fe), Rc(X, fe), Ua(X, fe), X);
        }
      }
      function ye(fe) {
        C.assertIsDefined(fe.initializer);
        let ve;
        He(fe.name)
          ? ((ve = t.cloneNode(fe.name)), Cr(ve, Qa(ve) & -114689))
          : (ve = t.converters.convertToAssignmentPattern(fe.name));
        const xe = t.createAssignment(ve, fe.initializer);
        return (jr(xe, fe), Rc(xe, fe), Ua(xe, fe), xe);
      }
      function ie(fe, ve, xe) {
        if (Qo(fe.name))
          for (const X of fe.name.elements) Jc(X) || ie(X, ve, xe);
        else K(fe.name, ve, void 0, xe);
      }
      function K(fe, ve, xe, X) {
        const Ce = pl(fe) ? fe : t.cloneNode(fe);
        if (ve) {
          if (xe === void 0 && !fy(Ce)) {
            const be = t.createVariableDeclaration(Ce);
            (X && jr(be, X), u.push(be));
            return;
          }
          const Je = xe !== void 0 ? Ce : void 0,
            Se = xe !== void 0 ? xe : Ce,
            re = t.createExportSpecifier(!1, Je, Se);
          (X && jr(re, X), l.set(Ce, re));
        }
        i(Ce);
      }
      function pe() {
        return t.createUniqueName("env");
      }
      function de(fe, ve, xe) {
        const X = [],
          Ce = t.createObjectLiteralExpression([
            t.createPropertyAssignment(
              "stack",
              t.createArrayLiteralExpression(),
            ),
            t.createPropertyAssignment("error", t.createVoidZero()),
            t.createPropertyAssignment("hasError", t.createFalse()),
          ]),
          Je = t.createVariableDeclaration(ve, void 0, void 0, Ce),
          Se = t.createVariableDeclarationList([Je], 2),
          re = t.createVariableStatement(void 0, Se);
        X.push(re);
        const be = t.createBlock(fe, !0),
          Ne = t.createUniqueName("e"),
          Be = t.createCatchClause(
            Ne,
            t.createBlock(
              [
                t.createExpressionStatement(
                  t.createAssignment(
                    t.createPropertyAccessExpression(ve, "error"),
                    Ne,
                  ),
                ),
                t.createExpressionStatement(
                  t.createAssignment(
                    t.createPropertyAccessExpression(ve, "hasError"),
                    t.createTrue(),
                  ),
                ),
              ],
              !0,
            ),
          );
        let lt;
        if (xe) {
          const Re = t.createUniqueName("result");
          lt = t.createBlock(
            [
              t.createVariableStatement(
                void 0,
                t.createVariableDeclarationList(
                  [
                    t.createVariableDeclaration(
                      Re,
                      void 0,
                      void 0,
                      r().createDisposeResourcesHelper(ve),
                    ),
                  ],
                  2,
                ),
              ),
              t.createIfStatement(
                Re,
                t.createExpressionStatement(t.createAwaitExpression(Re)),
              ),
            ],
            !0,
          );
        } else
          lt = t.createBlock(
            [t.createExpressionStatement(r().createDisposeResourcesHelper(ve))],
            !0,
          );
        const ce = t.createTryStatement(be, Be, lt);
        return (X.push(ce), X);
      }
    }
    function eAe(e) {
      for (let t = 0; t < e.length; t++) if (!Uh(e[t]) && !ok(e[t])) return t;
      return 0;
    }
    function tAe(e) {
      return _d(e) && Gae(e) !== 0;
    }
    function Gae(e) {
      return (e.flags & 7) === 6 ? 2 : (e.flags & 7) === 4 ? 1 : 0;
    }
    function fqe(e) {
      return Gae(e.declarationList);
    }
    function Vae(e) {
      return ac(e) ? fqe(e) : 0;
    }
    function ZU(e) {
      let t = 0;
      for (const r of e) {
        const i = Vae(r);
        if (i === 2) return 2;
        i > t && (t = i);
      }
      return t;
    }
    function mqe(e) {
      let t = 0;
      for (const r of e) {
        const i = ZU(r.statements);
        if (i === 2) return 2;
        i > t && (t = i);
      }
      return t;
    }
    function jae(e) {
      const { factory: t, getEmitHelperFactory: r } = e,
        i = e.getCompilerOptions();
      let o, s;
      return hh(e, g);
      function l() {
        if (s.filenameDeclaration) return s.filenameDeclaration.name;
        const ce = t.createVariableDeclaration(
          t.createUniqueName("_jsxFileName", 48),
          void 0,
          void 0,
          t.createStringLiteral(o.fileName),
        );
        return ((s.filenameDeclaration = ce), s.filenameDeclaration.name);
      }
      function u(ce) {
        return i.jsx === 5 ? "jsxDEV" : ce ? "jsxs" : "jsx";
      }
      function d(ce) {
        const Re = u(ce);
        return h(Re);
      }
      function _() {
        return h("Fragment");
      }
      function h(ce) {
        var Re, _e;
        const je =
            ce === "createElement"
              ? s.importSpecifier
              : B6(s.importSpecifier, i),
          Ge =
            (_e =
              (Re = s.utilizedImplicitRuntimeImports) == null
                ? void 0
                : Re.get(je)) == null
              ? void 0
              : _e.get(ce);
        if (Ge) return Ge.name;
        s.utilizedImplicitRuntimeImports ||
          (s.utilizedImplicitRuntimeImports = new Map());
        let We = s.utilizedImplicitRuntimeImports.get(je);
        We || ((We = new Map()), s.utilizedImplicitRuntimeImports.set(je, We));
        const at = t.createUniqueName(`_${ce}`, 112),
          Wt = t.createImportSpecifier(!1, t.createIdentifier(ce), at);
        return (lie(at, Wt), We.set(ce, Wt), at);
      }
      function g(ce) {
        if (ce.isDeclarationFile) return ce;
        ((o = ce), (s = {}), (s.importSpecifier = Xk(i, ce)));
        let Re = kn(ce, E, e);
        Ag(Re, e.readEmitHelpers());
        let _e = Re.statements;
        if (
          (s.filenameDeclaration &&
            (_e = e1(
              _e.slice(),
              t.createVariableStatement(
                void 0,
                t.createVariableDeclarationList([s.filenameDeclaration], 2),
              ),
            )),
          s.utilizedImplicitRuntimeImports)
        ) {
          for (const [je, Ge] of Co(s.utilizedImplicitRuntimeImports.entries()))
            if (zc(ce)) {
              const We = t.createImportDeclaration(
                void 0,
                t.createImportClause(
                  void 0,
                  void 0,
                  t.createNamedImports(Co(Ge.values())),
                ),
                t.createStringLiteral(je),
                void 0,
              );
              (qT(We, !1), (_e = e1(_e.slice(), We)));
            } else if (Pp(ce)) {
              const We = t.createVariableStatement(
                void 0,
                t.createVariableDeclarationList(
                  [
                    t.createVariableDeclaration(
                      t.createObjectBindingPattern(
                        Co(Ge.values(), (at) =>
                          t.createBindingElement(
                            void 0,
                            at.propertyName,
                            at.name,
                          ),
                        ),
                      ),
                      void 0,
                      void 0,
                      t.createCallExpression(
                        t.createIdentifier("require"),
                        void 0,
                        [t.createStringLiteral(je)],
                      ),
                    ),
                  ],
                  2,
                ),
              );
              (qT(We, !1), (_e = e1(_e.slice(), We)));
            }
        }
        return (
          _e !== Re.statements && (Re = t.updateSourceFile(Re, _e)),
          (s = void 0),
          Re
        );
      }
      function E(ce) {
        return ce.transformFlags & 2 ? A(ce) : ce;
      }
      function A(ce) {
        switch (ce.kind) {
          case 285:
            return W(ce, !1);
          case 286:
            return O(ce, !1);
          case 289:
            return G(ce, !1);
          case 295:
            return lt(ce);
          default:
            return kn(ce, E, e);
        }
      }
      function R(ce) {
        switch (ce.kind) {
          case 12:
            return Ce(ce);
          case 295:
            return lt(ce);
          case 285:
            return W(ce, !0);
          case 286:
            return O(ce, !0);
          case 289:
            return G(ce, !0);
          default:
            return C.failBadSyntaxKind(ce);
        }
      }
      function N(ce) {
        return ce.properties.some(
          (Re) =>
            Cc(Re) &&
            ((He(Re.name) && Kr(Re.name) === "__proto__") ||
              (ka(Re.name) && Re.name.text === "__proto__")),
        );
      }
      function P(ce) {
        let Re = !1;
        for (const _e of ce.attributes.properties)
          if (
            $I(_e) &&
            (!Wa(_e.expression) || _e.expression.properties.some(xg))
          )
            Re = !0;
          else if (Re && i_(_e) && He(_e.name) && _e.name.escapedText === "key")
            return !0;
        return !1;
      }
      function k(ce) {
        return s.importSpecifier === void 0 || P(ce);
      }
      function W(ce, Re) {
        return (k(ce.openingElement) ? ye : Z)(
          ce.openingElement,
          ce.children,
          Re,
          ce,
        );
      }
      function O(ce, Re) {
        return (k(ce) ? ye : Z)(ce, void 0, Re, ce);
      }
      function G(ce, Re) {
        return (s.importSpecifier === void 0 ? K : ie)(
          ce.openingFragment,
          ce.children,
          Re,
          ce,
        );
      }
      function j(ce) {
        const Re = J(ce);
        return Re && t.createObjectLiteralExpression([Re]);
      }
      function J(ce) {
        const Re = iD(ce);
        if (et(Re) === 1 && !Re[0].dotDotDotToken) {
          const je = R(Re[0]);
          return je && t.createPropertyAssignment("children", je);
        }
        const _e = Ui(ce, R);
        return et(_e)
          ? t.createPropertyAssignment(
              "children",
              t.createArrayLiteralExpression(_e),
            )
          : void 0;
      }
      function Z(ce, Re, _e, je) {
        const Ge = Ne(ce),
          We = Re && Re.length ? J(Re) : void 0,
          at = hn(
            ce.attributes.properties,
            (gn) => !!gn.name && He(gn.name) && gn.name.escapedText === "key",
          ),
          Wt = at
            ? Un(ce.attributes.properties, (gn) => gn !== at)
            : ce.attributes.properties,
          cn = et(Wt)
            ? de(Wt, We)
            : t.createObjectLiteralExpression(We ? [We] : ae);
        return q(Ge, cn, at, Re || ae, _e, je);
      }
      function q(ce, Re, _e, je, Ge, We) {
        var at;
        const Wt = iD(je),
          cn = et(Wt) > 1 || !!((at = Wt[0]) != null && at.dotDotDotToken),
          gn = [ce, Re];
        if ((_e && gn.push(X(_e.initializer)), i.jsx === 5)) {
          const _t = yl(o);
          if (_t && Yi(_t)) {
            (_e === void 0 && gn.push(t.createVoidZero()),
              gn.push(cn ? t.createTrue() : t.createFalse()));
            const en = ca(_t, We.pos);
            (gn.push(
              t.createObjectLiteralExpression([
                t.createPropertyAssignment("fileName", l()),
                t.createPropertyAssignment(
                  "lineNumber",
                  t.createNumericLiteral(en.line + 1),
                ),
                t.createPropertyAssignment(
                  "columnNumber",
                  t.createNumericLiteral(en.character + 1),
                ),
              ]),
            ),
              gn.push(t.createThis()));
          }
        }
        const Kn = vt(t.createCallExpression(d(cn), void 0, gn), We);
        return (Ge && au(Kn), Kn);
      }
      function ye(ce, Re, _e, je) {
        const Ge = Ne(ce),
          We = ce.attributes.properties,
          at = et(We) ? de(We) : t.createNull(),
          Wt =
            s.importSpecifier === void 0
              ? wj(
                  t,
                  e.getEmitResolver().getJsxFactoryEntity(o),
                  i.reactNamespace,
                  ce,
                )
              : h("createElement"),
          cn = Vie(t, Wt, Ge, at, Ui(Re, R), je);
        return (_e && au(cn), cn);
      }
      function ie(ce, Re, _e, je) {
        let Ge;
        if (Re && Re.length) {
          const We = j(Re);
          We && (Ge = We);
        }
        return q(
          _(),
          Ge || t.createObjectLiteralExpression([]),
          void 0,
          Re,
          _e,
          je,
        );
      }
      function K(ce, Re, _e, je) {
        const Ge = jie(
          t,
          e.getEmitResolver().getJsxFactoryEntity(o),
          e.getEmitResolver().getJsxFragmentFactoryEntity(o),
          i.reactNamespace,
          Ui(Re, R),
          ce,
          je,
        );
        return (_e && au(Ge), Ge);
      }
      function pe(ce) {
        return Wa(ce.expression) && !N(ce.expression)
          ? Zi(ce.expression.properties, (Re) => C.checkDefined(st(Re, E, ny)))
          : t.createSpreadAssignment(C.checkDefined(st(ce.expression, E, St)));
      }
      function de(ce, Re) {
        const _e = Ga(i);
        return _e && _e >= 5
          ? t.createObjectLiteralExpression(fe(ce, Re))
          : ve(ce, Re);
      }
      function fe(ce, Re) {
        const _e = la(
          f2(ce, $I, (je, Ge) => la(Vt(je, (We) => (Ge ? pe(We) : xe(We))))),
        );
        return (Re && _e.push(Re), _e);
      }
      function ve(ce, Re) {
        const _e = [];
        let je = [];
        for (const We of ce) {
          if ($I(We)) {
            if (Wa(We.expression) && !N(We.expression)) {
              for (const at of We.expression.properties) {
                if (xg(at)) {
                  (Ge(), _e.push(C.checkDefined(st(at.expression, E, St))));
                  continue;
                }
                je.push(C.checkDefined(st(at, E)));
              }
              continue;
            }
            (Ge(), _e.push(C.checkDefined(st(We.expression, E, St))));
            continue;
          }
          je.push(xe(We));
        }
        return (
          Re && je.push(Re),
          Ge(),
          _e.length &&
            !Wa(_e[0]) &&
            _e.unshift(t.createObjectLiteralExpression()),
          og(_e) || r().createAssignHelper(_e)
        );
        function Ge() {
          je.length &&
            (_e.push(t.createObjectLiteralExpression(je)), (je = []));
        }
      }
      function xe(ce) {
        const Re = Be(ce),
          _e = X(ce.initializer);
        return t.createPropertyAssignment(Re, _e);
      }
      function X(ce) {
        if (ce === void 0) return t.createTrue();
        if (ce.kind === 11) {
          const Re = ce.singleQuote !== void 0 ? ce.singleQuote : !r6(ce, o),
            _e = t.createStringLiteral(be(ce.text) || ce.text, Re);
          return vt(_e, ce);
        }
        return ce.kind === 295
          ? ce.expression === void 0
            ? t.createTrue()
            : C.checkDefined(st(ce.expression, E, St))
          : r_(ce)
            ? W(ce, !1)
            : I1(ce)
              ? O(ce, !1)
              : e0(ce)
                ? G(ce, !1)
                : C.failBadSyntaxKind(ce);
      }
      function Ce(ce) {
        const Re = Je(ce.text);
        return Re === void 0 ? void 0 : t.createStringLiteral(Re);
      }
      function Je(ce) {
        let Re,
          _e = 0,
          je = -1;
        for (let Ge = 0; Ge < ce.length; Ge++) {
          const We = ce.charCodeAt(Ge);
          eu(We)
            ? (_e !== -1 &&
                je !== -1 &&
                (Re = Se(Re, ce.substr(_e, je - _e + 1))),
              (_e = -1))
            : Bh(We) || ((je = Ge), _e === -1 && (_e = Ge));
        }
        return _e !== -1 ? Se(Re, ce.substr(_e)) : Re;
      }
      function Se(ce, Re) {
        const _e = re(Re);
        return ce === void 0 ? _e : ce + " " + _e;
      }
      function re(ce) {
        return ce.replace(
          /&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,
          (Re, _e, je, Ge, We, at, Wt) => {
            if (We) return CN(parseInt(We, 10));
            if (at) return CN(parseInt(at, 16));
            {
              const cn = hqe.get(Wt);
              return cn ? CN(cn) : Re;
            }
          },
        );
      }
      function be(ce) {
        const Re = re(ce);
        return Re === ce ? void 0 : Re;
      }
      function Ne(ce) {
        if (ce.kind === 285) return Ne(ce.openingElement);
        {
          const Re = ce.tagName;
          return He(Re) && oD(Re.escapedText)
            ? t.createStringLiteral(Kr(Re))
            : fh(Re)
              ? t.createStringLiteral(Kr(Re.namespace) + ":" + Kr(Re.name))
              : Tw(t, Re);
        }
      }
      function Be(ce) {
        const Re = ce.name;
        if (He(Re)) {
          const _e = Kr(Re);
          return /^[A-Z_]\w*$/i.test(_e) ? Re : t.createStringLiteral(_e);
        }
        return t.createStringLiteral(Kr(Re.namespace) + ":" + Kr(Re.name));
      }
      function lt(ce) {
        const Re = st(ce.expression, E, St);
        return ce.dotDotDotToken ? t.createSpreadElement(Re) : Re;
      }
    }
    var hqe = new Map(
      Object.entries({
        quot: 34,
        amp: 38,
        apos: 39,
        lt: 60,
        gt: 62,
        nbsp: 160,
        iexcl: 161,
        cent: 162,
        pound: 163,
        curren: 164,
        yen: 165,
        brvbar: 166,
        sect: 167,
        uml: 168,
        copy: 169,
        ordf: 170,
        laquo: 171,
        not: 172,
        shy: 173,
        reg: 174,
        macr: 175,
        deg: 176,
        plusmn: 177,
        sup2: 178,
        sup3: 179,
        acute: 180,
        micro: 181,
        para: 182,
        middot: 183,
        cedil: 184,
        sup1: 185,
        ordm: 186,
        raquo: 187,
        frac14: 188,
        frac12: 189,
        frac34: 190,
        iquest: 191,
        Agrave: 192,
        Aacute: 193,
        Acirc: 194,
        Atilde: 195,
        Auml: 196,
        Aring: 197,
        AElig: 198,
        Ccedil: 199,
        Egrave: 200,
        Eacute: 201,
        Ecirc: 202,
        Euml: 203,
        Igrave: 204,
        Iacute: 205,
        Icirc: 206,
        Iuml: 207,
        ETH: 208,
        Ntilde: 209,
        Ograve: 210,
        Oacute: 211,
        Ocirc: 212,
        Otilde: 213,
        Ouml: 214,
        times: 215,
        Oslash: 216,
        Ugrave: 217,
        Uacute: 218,
        Ucirc: 219,
        Uuml: 220,
        Yacute: 221,
        THORN: 222,
        szlig: 223,
        agrave: 224,
        aacute: 225,
        acirc: 226,
        atilde: 227,
        auml: 228,
        aring: 229,
        aelig: 230,
        ccedil: 231,
        egrave: 232,
        eacute: 233,
        ecirc: 234,
        euml: 235,
        igrave: 236,
        iacute: 237,
        icirc: 238,
        iuml: 239,
        eth: 240,
        ntilde: 241,
        ograve: 242,
        oacute: 243,
        ocirc: 244,
        otilde: 245,
        ouml: 246,
        divide: 247,
        oslash: 248,
        ugrave: 249,
        uacute: 250,
        ucirc: 251,
        uuml: 252,
        yacute: 253,
        thorn: 254,
        yuml: 255,
        OElig: 338,
        oelig: 339,
        Scaron: 352,
        scaron: 353,
        Yuml: 376,
        fnof: 402,
        circ: 710,
        tilde: 732,
        Alpha: 913,
        Beta: 914,
        Gamma: 915,
        Delta: 916,
        Epsilon: 917,
        Zeta: 918,
        Eta: 919,
        Theta: 920,
        Iota: 921,
        Kappa: 922,
        Lambda: 923,
        Mu: 924,
        Nu: 925,
        Xi: 926,
        Omicron: 927,
        Pi: 928,
        Rho: 929,
        Sigma: 931,
        Tau: 932,
        Upsilon: 933,
        Phi: 934,
        Chi: 935,
        Psi: 936,
        Omega: 937,
        alpha: 945,
        beta: 946,
        gamma: 947,
        delta: 948,
        epsilon: 949,
        zeta: 950,
        eta: 951,
        theta: 952,
        iota: 953,
        kappa: 954,
        lambda: 955,
        mu: 956,
        nu: 957,
        xi: 958,
        omicron: 959,
        pi: 960,
        rho: 961,
        sigmaf: 962,
        sigma: 963,
        tau: 964,
        upsilon: 965,
        phi: 966,
        chi: 967,
        psi: 968,
        omega: 969,
        thetasym: 977,
        upsih: 978,
        piv: 982,
        ensp: 8194,
        emsp: 8195,
        thinsp: 8201,
        zwnj: 8204,
        zwj: 8205,
        lrm: 8206,
        rlm: 8207,
        ndash: 8211,
        mdash: 8212,
        lsquo: 8216,
        rsquo: 8217,
        sbquo: 8218,
        ldquo: 8220,
        rdquo: 8221,
        bdquo: 8222,
        dagger: 8224,
        Dagger: 8225,
        bull: 8226,
        hellip: 8230,
        permil: 8240,
        prime: 8242,
        Prime: 8243,
        lsaquo: 8249,
        rsaquo: 8250,
        oline: 8254,
        frasl: 8260,
        euro: 8364,
        image: 8465,
        weierp: 8472,
        real: 8476,
        trade: 8482,
        alefsym: 8501,
        larr: 8592,
        uarr: 8593,
        rarr: 8594,
        darr: 8595,
        harr: 8596,
        crarr: 8629,
        lArr: 8656,
        uArr: 8657,
        rArr: 8658,
        dArr: 8659,
        hArr: 8660,
        forall: 8704,
        part: 8706,
        exist: 8707,
        empty: 8709,
        nabla: 8711,
        isin: 8712,
        notin: 8713,
        ni: 8715,
        prod: 8719,
        sum: 8721,
        minus: 8722,
        lowast: 8727,
        radic: 8730,
        prop: 8733,
        infin: 8734,
        ang: 8736,
        and: 8743,
        or: 8744,
        cap: 8745,
        cup: 8746,
        int: 8747,
        there4: 8756,
        sim: 8764,
        cong: 8773,
        asymp: 8776,
        ne: 8800,
        equiv: 8801,
        le: 8804,
        ge: 8805,
        sub: 8834,
        sup: 8835,
        nsub: 8836,
        sube: 8838,
        supe: 8839,
        oplus: 8853,
        otimes: 8855,
        perp: 8869,
        sdot: 8901,
        lceil: 8968,
        rceil: 8969,
        lfloor: 8970,
        rfloor: 8971,
        lang: 9001,
        rang: 9002,
        loz: 9674,
        spades: 9824,
        clubs: 9827,
        hearts: 9829,
        diams: 9830,
      }),
    );
    function Uae(e) {
      const { factory: t, hoistVariableDeclaration: r } = e;
      return hh(e, i);
      function i(d) {
        return d.isDeclarationFile ? d : kn(d, o, e);
      }
      function o(d) {
        if ((d.transformFlags & 512) === 0) return d;
        switch (d.kind) {
          case 227:
            return s(d);
          default:
            return kn(d, o, e);
        }
      }
      function s(d) {
        switch (d.operatorToken.kind) {
          case 68:
            return l(d);
          case 43:
            return u(d);
          default:
            return kn(d, o, e);
        }
      }
      function l(d) {
        let _, h;
        const g = st(d.left, o, St),
          E = st(d.right, o, St);
        if (Ws(g)) {
          const A = t.createTempVariable(r),
            R = t.createTempVariable(r);
          ((_ = vt(
            t.createElementAccessExpression(
              vt(t.createAssignment(A, g.expression), g.expression),
              vt(
                t.createAssignment(R, g.argumentExpression),
                g.argumentExpression,
              ),
            ),
            g,
          )),
            (h = vt(t.createElementAccessExpression(A, R), g)));
        } else if (qr(g)) {
          const A = t.createTempVariable(r);
          ((_ = vt(
            t.createPropertyAccessExpression(
              vt(t.createAssignment(A, g.expression), g.expression),
              g.name,
            ),
            g,
          )),
            (h = vt(t.createPropertyAccessExpression(A, g.name), g)));
        } else ((_ = g), (h = g));
        return vt(
          t.createAssignment(
            _,
            vt(t.createGlobalMethodCall("Math", "pow", [h, E]), d),
          ),
          d,
        );
      }
      function u(d) {
        const _ = st(d.left, o, St),
          h = st(d.right, o, St);
        return vt(t.createGlobalMethodCall("Math", "pow", [_, h]), d);
      }
    }
    function nAe(e, t) {
      return { kind: e, expression: t };
    }
    function Hae(e) {
      const {
          factory: t,
          getEmitHelperFactory: r,
          startLexicalEnvironment: i,
          resumeLexicalEnvironment: o,
          endLexicalEnvironment: s,
          hoistVariableDeclaration: l,
        } = e,
        u = e.getCompilerOptions(),
        d = e.getEmitResolver(),
        _ = e.onSubstituteNode,
        h = e.onEmitNode;
      ((e.onEmitNode = ld), (e.onSubstituteNode = Xf));
      let g, E, A, R;
      function N(oe) {
        R = Bn(R, t.createVariableDeclaration(oe));
      }
      let P,
        k = 0;
      return hh(e, W);
      function W(oe) {
        if (oe.isDeclarationFile) return oe;
        ((g = oe), (E = oe.text));
        const ut = de(oe);
        return (
          Ag(ut, e.readEmitHelpers()),
          (g = void 0),
          (E = void 0),
          (R = void 0),
          (A = 0),
          ut
        );
      }
      function O(oe, ut) {
        const tn = A;
        return ((A = ((A & ~oe) | ut) & 32767), tn);
      }
      function G(oe, ut, tn) {
        A = (((A & ~ut) | tn) & -32768) | oe;
      }
      function j(oe) {
        return (A & 8192) !== 0 && oe.kind === 254 && !oe.expression;
      }
      function J(oe) {
        return (
          oe.transformFlags & 4194304 &&
          (tf(oe) ||
            $T(oe) ||
            xie(oe) ||
            UM(oe) ||
            HM(oe) ||
            xD(oe) ||
            qM(oe) ||
            E1(oe) ||
            US(oe) ||
            Lb(oe) ||
            mb(oe, !1) ||
            ea(oe))
        );
      }
      function Z(oe) {
        return (
          (oe.transformFlags & 1024) !== 0 ||
          P !== void 0 ||
          (A & 8192 && J(oe)) ||
          (mb(oe, !1) && co(oe)) ||
          (Fm(oe) & 1) !== 0
        );
      }
      function q(oe) {
        return Z(oe) ? pe(oe, !1) : oe;
      }
      function ye(oe) {
        return Z(oe) ? pe(oe, !0) : oe;
      }
      function ie(oe) {
        if (Z(oe)) {
          const ut = yl(oe);
          if (Po(ut) && wc(ut)) {
            const tn = O(32670, 16449),
              an = pe(oe, !1);
            return (G(tn, 229376, 0), an);
          }
          return pe(oe, !1);
        }
        return oe;
      }
      function K(oe) {
        return oe.kind === 108 ? rf(oe, !0) : q(oe);
      }
      function pe(oe, ut) {
        switch (oe.kind) {
          case 126:
            return;
          case 264:
            return Ne(oe);
          case 232:
            return Be(oe);
          case 170:
            return Ia(oe);
          case 263:
            return Kt(oe);
          case 220:
            return Ot(oe);
          case 219:
            return nt(oe);
          case 261:
            return tr(oe);
          case 80:
            return re(oe);
          case 262:
            return Pe(oe);
          case 256:
            return fe(oe);
          case 270:
            return ve(oe);
          case 242:
            return Nt(oe);
          case 253:
          case 252:
            return be(oe);
          case 257:
            return Mt(oe);
          case 247:
          case 248:
            return In(oe, void 0);
          case 249:
            return yn(oe, void 0);
          case 250:
            return En(oe, void 0);
          case 251:
            return xn(oe, void 0);
          case 245:
            return he(oe);
          case 211:
            return sa(oe);
          case 300:
            return ro(oe);
          case 305:
            return Qs(oe);
          case 168:
            return Sc(oe);
          case 210:
            return Hs(oe);
          case 214:
            return Pl(oe);
          case 215:
            return nf(oe);
          case 218:
            return B(oe, ut);
          case 227:
            return Ae(oe, ut);
          case 357:
            return te(oe, ut);
          case 15:
          case 16:
          case 17:
          case 18:
            return es(oe);
          case 11:
            return Va(oe);
          case 9:
            return Mc(oe);
          case 216:
            return tl(oe);
          case 229:
            return Ll(oe);
          case 230:
            return fc(oe);
          case 231:
            return Za(oe);
          case 108:
            return rf(oe, !1);
          case 110:
            return Je(oe);
          case 237:
            return bd(oe);
          case 175:
            return Ns(oe);
          case 178:
          case 179:
            return Da(oe);
          case 244:
            return Xt(oe);
          case 254:
            return Ce(oe);
          case 223:
            return Se(oe);
          default:
            return kn(oe, q, e);
        }
      }
      function de(oe) {
        const ut = O(8064, 64),
          tn = [],
          an = [];
        i();
        const wn = t.copyPrologue(oe.statements, tn, !1, q);
        return (
          Xr(an, Xn(oe.statements, q, Vi, wn)),
          R &&
            an.push(
              t.createVariableStatement(
                void 0,
                t.createVariableDeclarationList(R),
              ),
            ),
          t.mergeLexicalEnvironment(tn, s()),
          ne(tn, oe),
          G(ut, 0, 0),
          t.updateSourceFile(
            oe,
            vt(t.createNodeArray(so(tn, an)), oe.statements),
          )
        );
      }
      function fe(oe) {
        if (P !== void 0) {
          const ut = P.allowedNonLabeledJumps;
          P.allowedNonLabeledJumps |= 2;
          const tn = kn(oe, q, e);
          return ((P.allowedNonLabeledJumps = ut), tn);
        }
        return kn(oe, q, e);
      }
      function ve(oe) {
        const ut = O(7104, 0),
          tn = kn(oe, q, e);
        return (G(ut, 0, 0), tn);
      }
      function xe(oe) {
        return jr(t.createReturnStatement(X()), oe);
      }
      function X() {
        return t.createUniqueName("_this", 48);
      }
      function Ce(oe) {
        return P
          ? ((P.nonLocalJumps |= 8),
            j(oe) && (oe = xe(oe)),
            t.createReturnStatement(
              t.createObjectLiteralExpression([
                t.createPropertyAssignment(
                  t.createIdentifier("value"),
                  oe.expression
                    ? C.checkDefined(st(oe.expression, q, St))
                    : t.createVoidZero(),
                ),
              ]),
            ))
          : j(oe)
            ? xe(oe)
            : kn(oe, q, e);
      }
      function Je(oe) {
        return (
          (A |= 65536),
          A & 2 && !(A & 16384) && (A |= 131072),
          P
            ? A & 2
              ? ((P.containsLexicalThis = !0), oe)
              : P.thisName || (P.thisName = t.createUniqueName("this"))
            : oe
        );
      }
      function Se(oe) {
        return kn(oe, ye, e);
      }
      function re(oe) {
        return P && d.isArgumentsLocalBinding(oe)
          ? P.argumentsName ||
              (P.argumentsName = t.createUniqueName("arguments"))
          : oe.flags & 256
            ? jr(vt(t.createIdentifier(Gi(oe.escapedText)), oe), oe)
            : oe;
      }
      function be(oe) {
        if (P) {
          const ut = oe.kind === 253 ? 2 : 4;
          if (
            !(
              (oe.label && P.labels && P.labels.get(Kr(oe.label))) ||
              (!oe.label && P.allowedNonLabeledJumps & ut)
            )
          ) {
            let an;
            const wn = oe.label;
            wn
              ? oe.kind === 253
                ? ((an = `break-${wn.escapedText}`), pt(P, !0, Kr(wn), an))
                : ((an = `continue-${wn.escapedText}`), pt(P, !1, Kr(wn), an))
              : oe.kind === 253
                ? ((P.nonLocalJumps |= 2), (an = "break"))
                : ((P.nonLocalJumps |= 4), (an = "continue"));
            let or = t.createStringLiteral(an);
            if (P.loopOutParameters.length) {
              const ti = P.loopOutParameters;
              let Ti;
              for (let $i = 0; $i < ti.length; $i++) {
                const z = vd(ti[$i], 1);
                $i === 0
                  ? (Ti = z)
                  : (Ti = t.createBinaryExpression(Ti, 28, z));
              }
              or = t.createBinaryExpression(Ti, 28, or);
            }
            return t.createReturnStatement(or);
          }
        }
        return kn(oe, q, e);
      }
      function Ne(oe) {
        const ut = t.createVariableDeclaration(
          t.getLocalName(oe, !0),
          void 0,
          void 0,
          lt(oe),
        );
        jr(ut, oe);
        const tn = [],
          an = t.createVariableStatement(
            void 0,
            t.createVariableDeclarationList([ut]),
          );
        if ((jr(an, oe), vt(an, oe), au(an), tn.push(an), di(oe, 32))) {
          const wn = di(oe, 2048)
            ? t.createExportDefault(t.getLocalName(oe))
            : t.createExternalModuleExport(t.getLocalName(oe));
          (jr(wn, an), tn.push(wn));
        }
        return I_(tn);
      }
      function Be(oe) {
        return lt(oe);
      }
      function lt(oe) {
        oe.name && jp();
        const ut = RS(oe),
          tn = t.createFunctionExpression(
            void 0,
            void 0,
            void 0,
            void 0,
            ut ? [t.createParameterDeclaration(void 0, void 0, ql())] : [],
            void 0,
            ce(oe, ut),
          );
        Cr(tn, (Qa(oe) & 131072) | 1048576);
        const an = t.createPartiallyEmittedExpression(tn);
        (hD(an, oe.end), Cr(an, 3072));
        const wn = t.createPartiallyEmittedExpression(an);
        (hD(wn, La(E, oe.pos)), Cr(wn, 3072));
        const or = t.createParenthesizedExpression(
          t.createCallExpression(
            wn,
            void 0,
            ut ? [C.checkDefined(st(ut.expression, q, St))] : [],
          ),
        );
        return (Cb(or, 3, "* @class "), or);
      }
      function ce(oe, ut) {
        const tn = [],
          an = t.getInternalName(oe),
          wn = qG(an) ? t.getGeneratedNameForNode(an) : an;
        (i(), Re(tn, oe, ut), _e(tn, oe, wn, ut), dt(tn, oe));
        const or = yV(La(E, oe.members.end), 20),
          ti = t.createPartiallyEmittedExpression(wn);
        (hD(ti, or.end), Cr(ti, 3072));
        const Ti = t.createReturnStatement(ti);
        (DM(Ti, or.pos), Cr(Ti, 3840), tn.push(Ti), mg(tn, s()));
        const $i = t.createBlock(vt(t.createNodeArray(tn), oe.members), !0);
        return (Cr($i, 3072), $i);
      }
      function Re(oe, ut, tn) {
        tn &&
          oe.push(
            vt(
              t.createExpressionStatement(
                r().createExtendsHelper(t.getInternalName(ut)),
              ),
              tn,
            ),
          );
      }
      function _e(oe, ut, tn, an) {
        const wn = P;
        P = void 0;
        const or = O(32662, 73),
          ti = yg(ut),
          Ti = p_(ti, an !== void 0),
          $i = t.createFunctionDeclaration(
            void 0,
            void 0,
            tn,
            void 0,
            je(ti, Ti),
            void 0,
            Wt(ti, ut, an, Ti),
          );
        (vt($i, ti || ut),
          an && Cr($i, 16),
          oe.push($i),
          G(or, 229376, 0),
          (P = wn));
      }
      function je(oe, ut) {
        return Fl(oe && !ut ? oe.parameters : void 0, q, e) || [];
      }
      function Ge(oe, ut) {
        const tn = [];
        (o(),
          t.mergeLexicalEnvironment(tn, s()),
          ut && tn.push(t.createReturnStatement($o())));
        const an = t.createNodeArray(tn);
        vt(an, oe.members);
        const wn = t.createBlock(an, !0);
        return (vt(wn, oe), Cr(wn, 3072), wn);
      }
      function We(oe) {
        return (
          ac(oe) &&
          Vn(
            oe.declarationList.declarations,
            (ut) => He(ut.name) && !ut.initializer,
          )
        );
      }
      function at(oe) {
        if (n1(oe)) return !0;
        if (!(oe.transformFlags & 134217728)) return !1;
        switch (oe.kind) {
          case 220:
          case 219:
          case 263:
          case 177:
          case 176:
            return !1;
          case 178:
          case 179:
          case 175:
          case 173: {
            const ut = oe;
            return va(ut.name) ? !!Jo(ut.name, at) : !1;
          }
        }
        return !!Jo(oe, at);
      }
      function Wt(oe, ut, tn, an) {
        const wn = !!tn && Ul(tn.expression).kind !== 106;
        if (!oe) return Ge(ut, wn);
        const or = [],
          ti = [];
        o();
        const Ti = t.copyStandardPrologue(oe.body.statements, or, 0);
        ((an || at(oe.body)) && (A |= 8192),
          Xr(ti, Xn(oe.body.statements, q, Vi, Ti)));
        const $i = wn || A & 8192;
        (Uo(or, oe),
          ht(or, oe, an),
          it(or, oe),
          $i ? Fe(or, oe, qi()) : ne(or, oe),
          t.mergeLexicalEnvironment(or, s()),
          $i && !ai(oe.body) && ti.push(t.createReturnStatement(X())));
        const z = t.createBlock(
          vt(t.createNodeArray([...or, ...ti]), oe.body.statements),
          !0,
        );
        return (vt(z, oe.body), ri(z, oe.body, an));
      }
      function cn(oe) {
        return pl(oe) && Kr(oe) === "_this";
      }
      function gn(oe) {
        return pl(oe) && Kr(oe) === "_super";
      }
      function Kn(oe) {
        return (
          ac(oe) &&
          oe.declarationList.declarations.length === 1 &&
          _t(oe.declarationList.declarations[0])
        );
      }
      function _t(oe) {
        return yi(oe) && cn(oe.name) && !!oe.initializer;
      }
      function en(oe) {
        return id(oe, !0) && cn(oe.left);
      }
      function ir(oe) {
        return (
          Zo(oe) &&
          qr(oe.expression) &&
          gn(oe.expression.expression) &&
          He(oe.expression.name) &&
          (Kr(oe.expression.name) === "call" ||
            Kr(oe.expression.name) === "apply") &&
          oe.arguments.length >= 1 &&
          oe.arguments[0].kind === 110
        );
      }
      function Di(oe) {
        return (
          Nr(oe) &&
          oe.operatorToken.kind === 57 &&
          oe.right.kind === 110 &&
          ir(oe.left)
        );
      }
      function lo(oe) {
        return (
          Nr(oe) &&
          oe.operatorToken.kind === 56 &&
          Nr(oe.left) &&
          oe.left.operatorToken.kind === 38 &&
          gn(oe.left.left) &&
          oe.left.right.kind === 106 &&
          ir(oe.right) &&
          Kr(oe.right.expression.name) === "apply"
        );
      }
      function zt(oe) {
        return (
          Nr(oe) &&
          oe.operatorToken.kind === 57 &&
          oe.right.kind === 110 &&
          lo(oe.left)
        );
      }
      function Zr(oe) {
        return en(oe) && Di(oe.right);
      }
      function Ai(oe) {
        return en(oe) && zt(oe.right);
      }
      function Ni(oe) {
        return ir(oe) || Di(oe) || Zr(oe) || lo(oe) || zt(oe) || Ai(oe);
      }
      function Pr(oe) {
        for (let ut = 0; ut < oe.statements.length - 1; ut++) {
          const tn = oe.statements[ut];
          if (!Kn(tn)) continue;
          const an = tn.declarationList.declarations[0];
          if (an.initializer.kind !== 110) continue;
          const wn = ut;
          let or = ut + 1;
          for (; or < oe.statements.length; ) {
            const On = oe.statements[or];
            if (od(On) && Ni(Ul(On.expression))) break;
            if (We(On)) {
              or++;
              continue;
            }
            return oe;
          }
          const ti = oe.statements[or];
          let Ti = ti.expression;
          en(Ti) && (Ti = Ti.right);
          const $i = t.updateVariableDeclaration(
              an,
              an.name,
              void 0,
              void 0,
              Ti,
            ),
            z = t.updateVariableDeclarationList(tn.declarationList, [$i]),
            Ve = t.createVariableStatement(tn.modifiers, z);
          (jr(Ve, ti), vt(Ve, ti));
          const kt = t.createNodeArray([
            ...oe.statements.slice(0, wn),
            ...oe.statements.slice(wn + 1, or),
            Ve,
            ...oe.statements.slice(or + 1),
          ]);
          return (vt(kt, oe.statements), t.updateBlock(oe, kt));
        }
        return oe;
      }
      function Ci(oe, ut) {
        for (const an of ut.statements)
          if (an.transformFlags & 134217728 && !h3(an)) return oe;
        const tn =
          !(ut.transformFlags & 16384) && !(A & 65536) && !(A & 131072);
        for (let an = oe.statements.length - 1; an > 0; an--) {
          const wn = oe.statements[an];
          if (tf(wn) && wn.expression && cn(wn.expression)) {
            const or = oe.statements[an - 1];
            let ti;
            if (od(or) && Zr(Ul(or.expression))) ti = or.expression;
            else if (tn && Kn(or)) {
              const z = or.declarationList.declarations[0];
              Ni(Ul(z.initializer)) &&
                (ti = t.createAssignment(X(), z.initializer));
            }
            if (!ti) break;
            const Ti = t.createReturnStatement(ti);
            (jr(Ti, or), vt(Ti, or));
            const $i = t.createNodeArray([
              ...oe.statements.slice(0, an - 1),
              Ti,
              ...oe.statements.slice(an + 1),
            ]);
            return (vt($i, oe.statements), t.updateBlock(oe, $i));
          }
        }
        return oe;
      }
      function $e(oe) {
        if (Kn(oe)) {
          if (oe.declarationList.declarations[0].initializer.kind === 110)
            return;
        } else if (en(oe))
          return t.createPartiallyEmittedExpression(oe.right, oe);
        switch (oe.kind) {
          case 220:
          case 219:
          case 263:
          case 177:
          case 176:
            return oe;
          case 178:
          case 179:
          case 175:
          case 173: {
            const ut = oe;
            return va(ut.name)
              ? t.replacePropertyName(ut, kn(ut.name, $e, void 0))
              : oe;
          }
        }
        return kn(oe, $e, void 0);
      }
      function At(oe, ut) {
        if (ut.transformFlags & 16384 || A & 65536 || A & 131072) return oe;
        for (const tn of ut.statements)
          if (tn.transformFlags & 134217728 && !h3(tn)) return oe;
        return t.updateBlock(oe, Xn(oe.statements, $e, Vi));
      }
      function mn(oe) {
        if (
          ir(oe) &&
          oe.arguments.length === 2 &&
          He(oe.arguments[1]) &&
          Kr(oe.arguments[1]) === "arguments"
        )
          return t.createLogicalAnd(
            t.createStrictInequality(ql(), t.createNull()),
            oe,
          );
        switch (oe.kind) {
          case 220:
          case 219:
          case 263:
          case 177:
          case 176:
            return oe;
          case 178:
          case 179:
          case 175:
          case 173: {
            const ut = oe;
            return va(ut.name)
              ? t.replacePropertyName(ut, kn(ut.name, mn, void 0))
              : oe;
          }
        }
        return kn(oe, mn, void 0);
      }
      function dr(oe) {
        return t.updateBlock(oe, Xn(oe.statements, mn, Vi));
      }
      function ri(oe, ut, tn) {
        const an = oe;
        return (
          (oe = Pr(oe)),
          (oe = Ci(oe, ut)),
          oe !== an && (oe = At(oe, ut)),
          tn && (oe = dr(oe)),
          oe
        );
      }
      function ai(oe) {
        if (oe.kind === 254) return !0;
        if (oe.kind === 246) {
          const ut = oe;
          if (ut.elseStatement)
            return ai(ut.thenStatement) && ai(ut.elseStatement);
        } else if (oe.kind === 242) {
          const ut = Zs(oe.statements);
          if (ut && ai(ut)) return !0;
        }
        return !1;
      }
      function qi() {
        return Cr(t.createThis(), 8);
      }
      function $o() {
        return t.createLogicalOr(
          t.createLogicalAnd(
            t.createStrictInequality(ql(), t.createNull()),
            t.createFunctionApplyCall(
              ql(),
              qi(),
              t.createIdentifier("arguments"),
            ),
          ),
          qi(),
        );
      }
      function Ia(oe) {
        if (!oe.dotDotDotToken)
          return Qo(oe.name)
            ? jr(
                vt(
                  t.createParameterDeclaration(
                    void 0,
                    void 0,
                    t.getGeneratedNameForNode(oe),
                    void 0,
                    void 0,
                    void 0,
                  ),
                  oe,
                ),
                oe,
              )
            : oe.initializer
              ? jr(
                  vt(
                    t.createParameterDeclaration(
                      void 0,
                      void 0,
                      oe.name,
                      void 0,
                      void 0,
                      void 0,
                    ),
                    oe,
                  ),
                  oe,
                )
              : oe;
      }
      function Mn(oe) {
        return oe.initializer !== void 0 || Qo(oe.name);
      }
      function Uo(oe, ut) {
        if (!yt(ut.parameters, Mn)) return !1;
        let tn = !1;
        for (const an of ut.parameters) {
          const { name: wn, initializer: or, dotDotDotToken: ti } = an;
          ti ||
            (Qo(wn)
              ? (tn = ot(oe, an, wn, or) || tn)
              : or && (Ft(oe, an, wn, or), (tn = !0)));
        }
        return tn;
      }
      function ot(oe, ut, tn, an) {
        return tn.elements.length > 0
          ? (e1(
              oe,
              Cr(
                t.createVariableStatement(
                  void 0,
                  t.createVariableDeclarationList(
                    XS(ut, q, e, 0, t.getGeneratedNameForNode(ut)),
                  ),
                ),
                2097152,
              ),
            ),
            !0)
          : an
            ? (e1(
                oe,
                Cr(
                  t.createExpressionStatement(
                    t.createAssignment(
                      t.getGeneratedNameForNode(ut),
                      C.checkDefined(st(an, q, St)),
                    ),
                  ),
                  2097152,
                ),
              ),
              !0)
            : !1;
      }
      function Ft(oe, ut, tn, an) {
        an = C.checkDefined(st(an, q, St));
        const wn = t.createIfStatement(
          t.createTypeCheck(t.cloneNode(tn), "undefined"),
          Cr(
            vt(
              t.createBlock([
                t.createExpressionStatement(
                  Cr(
                    vt(
                      t.createAssignment(
                        Cr(ps(vt(t.cloneNode(tn), tn), tn.parent), 96),
                        Cr(an, 96 | Qa(an) | 3072),
                      ),
                      ut,
                    ),
                    3072,
                  ),
                ),
              ]),
              ut,
            ),
            3905,
          ),
        );
        (au(wn), vt(wn, ut), Cr(wn, 2101056), e1(oe, wn));
      }
      function le(oe, ut) {
        return !!(oe && oe.dotDotDotToken && !ut);
      }
      function ht(oe, ut, tn) {
        const an = [],
          wn = Zs(ut.parameters);
        if (!le(wn, tn)) return !1;
        const or =
          wn.name.kind === 80
            ? ps(vt(t.cloneNode(wn.name), wn.name), wn.name.parent)
            : t.createTempVariable(void 0);
        Cr(or, 96);
        const ti = wn.name.kind === 80 ? t.cloneNode(wn.name) : or,
          Ti = ut.parameters.length - 1,
          $i = t.createLoopVariable();
        an.push(
          Cr(
            vt(
              t.createVariableStatement(
                void 0,
                t.createVariableDeclarationList([
                  t.createVariableDeclaration(
                    or,
                    void 0,
                    void 0,
                    t.createArrayLiteralExpression([]),
                  ),
                ]),
              ),
              wn,
            ),
            2097152,
          ),
        );
        const z = t.createForStatement(
          vt(
            t.createVariableDeclarationList([
              t.createVariableDeclaration(
                $i,
                void 0,
                void 0,
                t.createNumericLiteral(Ti),
              ),
            ]),
            wn,
          ),
          vt(
            t.createLessThan(
              $i,
              t.createPropertyAccessExpression(
                t.createIdentifier("arguments"),
                "length",
              ),
            ),
            wn,
          ),
          vt(t.createPostfixIncrement($i), wn),
          t.createBlock([
            au(
              vt(
                t.createExpressionStatement(
                  t.createAssignment(
                    t.createElementAccessExpression(
                      ti,
                      Ti === 0
                        ? $i
                        : t.createSubtract($i, t.createNumericLiteral(Ti)),
                    ),
                    t.createElementAccessExpression(
                      t.createIdentifier("arguments"),
                      $i,
                    ),
                  ),
                ),
                wn,
              ),
            ),
          ]),
        );
        return (
          Cr(z, 2097152),
          au(z),
          an.push(z),
          wn.name.kind !== 80 &&
            an.push(
              Cr(
                vt(
                  t.createVariableStatement(
                    void 0,
                    t.createVariableDeclarationList(XS(wn, q, e, 0, ti)),
                  ),
                  wn,
                ),
                2097152,
              ),
            ),
          uG(oe, an),
          !0
        );
      }
      function ne(oe, ut) {
        return A & 131072 && ut.kind !== 220
          ? (Fe(oe, ut, t.createThis()), !0)
          : !1;
      }
      function Fe(oe, ut, tn) {
        Au();
        const an = t.createVariableStatement(
          void 0,
          t.createVariableDeclarationList([
            t.createVariableDeclaration(X(), void 0, void 0, tn),
          ]),
        );
        (Cr(an, 2100224), Ua(an, ut), e1(oe, an));
      }
      function it(oe, ut) {
        if (A & 32768) {
          let tn;
          switch (ut.kind) {
            case 220:
              return oe;
            case 175:
            case 178:
            case 179:
              tn = t.createVoidZero();
              break;
            case 177:
              tn = t.createPropertyAccessExpression(
                Cr(t.createThis(), 8),
                "constructor",
              );
              break;
            case 263:
            case 219:
              tn = t.createConditionalExpression(
                t.createLogicalAnd(
                  Cr(t.createThis(), 8),
                  t.createBinaryExpression(
                    Cr(t.createThis(), 8),
                    104,
                    t.getLocalName(ut),
                  ),
                ),
                void 0,
                t.createPropertyAccessExpression(
                  Cr(t.createThis(), 8),
                  "constructor",
                ),
                void 0,
                t.createVoidZero(),
              );
              break;
            default:
              return C.failBadSyntaxKind(ut);
          }
          const an = t.createVariableStatement(
            void 0,
            t.createVariableDeclarationList([
              t.createVariableDeclaration(
                t.createUniqueName("_newTarget", 48),
                void 0,
                void 0,
                tn,
              ),
            ]),
          );
          (Cr(an, 2100224), e1(oe, an));
        }
        return oe;
      }
      function dt(oe, ut) {
        for (const tn of ut.members)
          switch (tn.kind) {
            case 241:
              oe.push(Lt(tn));
              break;
            case 175:
              oe.push(Ue(Tf(ut, tn), tn, ut));
              break;
            case 178:
            case 179:
              const an = MS(ut.members, tn);
              tn === an.firstAccessor && oe.push(Rt(Tf(ut, tn), an, ut));
              break;
            case 177:
            case 176:
              break;
            default:
              C.failBadSyntaxKind(tn, g && g.fileName);
              break;
          }
      }
      function Lt(oe) {
        return vt(t.createEmptyStatement(), oe);
      }
      function Ue(oe, ut, tn) {
        const an = Zh(ut),
          wn = lv(ut),
          or = Tr(ut, ut, void 0, tn),
          ti = st(ut.name, q, vc);
        C.assert(ti);
        let Ti;
        if (!eo(ti) && Jk(e.getCompilerOptions())) {
          const z = va(ti)
            ? ti.expression
            : He(ti)
              ? t.createStringLiteral(Gi(ti.escapedText))
              : ti;
          Ti = t.createObjectDefinePropertyCall(
            oe,
            z,
            t.createPropertyDescriptor({
              value: or,
              enumerable: !1,
              writable: !0,
              configurable: !0,
            }),
          );
        } else {
          const z = D1(t, oe, ti, ut.name);
          Ti = t.createAssignment(z, or);
        }
        (Cr(or, 3072), Ua(or, wn));
        const $i = vt(t.createExpressionStatement(Ti), ut);
        return (jr($i, ut), Rc($i, an), Cr($i, 96), $i);
      }
      function Rt(oe, ut, tn) {
        const an = t.createExpressionStatement(It(oe, ut, tn, !1));
        return (Cr(an, 3072), Ua(an, lv(ut.firstAccessor)), an);
      }
      function It(
        oe,
        { firstAccessor: ut, getAccessor: tn, setAccessor: an },
        wn,
        or,
      ) {
        const ti = ps(vt(t.cloneNode(oe), oe), oe.parent);
        (Cr(ti, 3136), Ua(ti, ut.name));
        const Ti = st(ut.name, q, vc);
        if ((C.assert(Ti), eo(Ti)))
          return C.failBadSyntaxKind(
            Ti,
            "Encountered unhandled private identifier while transforming ES2015.",
          );
        const $i = Wj(t, Ti);
        (Cr($i, 3104), Ua($i, ut.name));
        const z = [];
        if (tn) {
          const kt = Tr(tn, void 0, void 0, wn);
          (Ua(kt, lv(tn)), Cr(kt, 1024));
          const On = t.createPropertyAssignment("get", kt);
          (Rc(On, Zh(tn)), z.push(On));
        }
        if (an) {
          const kt = Tr(an, void 0, void 0, wn);
          (Ua(kt, lv(an)), Cr(kt, 1024));
          const On = t.createPropertyAssignment("set", kt);
          (Rc(On, Zh(an)), z.push(On));
        }
        z.push(
          t.createPropertyAssignment(
            "enumerable",
            tn || an ? t.createFalse() : t.createTrue(),
          ),
          t.createPropertyAssignment("configurable", t.createTrue()),
        );
        const Ve = t.createCallExpression(
          t.createPropertyAccessExpression(
            t.createIdentifier("Object"),
            "defineProperty",
          ),
          void 0,
          [ti, $i, t.createObjectLiteralExpression(z, !0)],
        );
        return (or && au(Ve), Ve);
      }
      function Ot(oe) {
        oe.transformFlags & 16384 && !(A & 16384) && (A |= 131072);
        const ut = P;
        P = void 0;
        const tn = O(15232, 66),
          an = t.createFunctionExpression(
            void 0,
            void 0,
            void 0,
            void 0,
            Fl(oe.parameters, q, e),
            void 0,
            Oe(oe),
          );
        return (vt(an, oe), jr(an, oe), Cr(an, 16), G(tn, 0, 0), (P = ut), an);
      }
      function nt(oe) {
        const ut = Qa(oe) & 524288 ? O(32662, 69) : O(32670, 65),
          tn = P;
        P = void 0;
        const an = Fl(oe.parameters, q, e),
          wn = Oe(oe),
          or = A & 32768 ? t.getLocalName(oe) : oe.name;
        return (
          G(ut, 229376, 0),
          (P = tn),
          t.updateFunctionExpression(
            oe,
            void 0,
            oe.asteriskToken,
            or,
            void 0,
            an,
            void 0,
            wn,
          )
        );
      }
      function Kt(oe) {
        const ut = P;
        P = void 0;
        const tn = O(32670, 65),
          an = Fl(oe.parameters, q, e),
          wn = Oe(oe),
          or = A & 32768 ? t.getLocalName(oe) : oe.name;
        return (
          G(tn, 229376, 0),
          (P = ut),
          t.updateFunctionDeclaration(
            oe,
            Xn(oe.modifiers, q, Aa),
            oe.asteriskToken,
            or,
            void 0,
            an,
            void 0,
            wn,
          )
        );
      }
      function Tr(oe, ut, tn, an) {
        const wn = P;
        P = void 0;
        const or = an && ui(an) && !ua(oe) ? O(32670, 73) : O(32670, 65),
          ti = Fl(oe.parameters, q, e),
          Ti = Oe(oe);
        return (
          A & 32768 &&
            !tn &&
            (oe.kind === 263 || oe.kind === 219) &&
            (tn = t.getGeneratedNameForNode(oe)),
          G(or, 229376, 0),
          (P = wn),
          jr(
            vt(
              t.createFunctionExpression(
                void 0,
                oe.asteriskToken,
                tn,
                void 0,
                ti,
                void 0,
                Ti,
              ),
              ut,
            ),
            oe,
          )
        );
      }
      function Oe(oe) {
        let ut = !1,
          tn = !1,
          an,
          wn;
        const or = [],
          ti = [],
          Ti = oe.body;
        let $i;
        if (
          (o(),
          ea(Ti) &&
            (($i = t.copyStandardPrologue(Ti.statements, or, 0, !1)),
            ($i = t.copyCustomPrologue(Ti.statements, ti, $i, q, VF)),
            ($i = t.copyCustomPrologue(Ti.statements, ti, $i, q, jF))),
          (ut = Uo(ti, oe) || ut),
          (ut = ht(ti, oe, !1) || ut),
          ea(Ti))
        )
          (($i = t.copyCustomPrologue(Ti.statements, ti, $i, q)),
            (an = Ti.statements),
            Xr(ti, Xn(Ti.statements, q, Vi, $i)),
            !ut && Ti.multiLine && (ut = !0));
        else {
          (C.assert(oe.kind === 220), (an = R6(Ti, -1)));
          const Ve = oe.equalsGreaterThanToken;
          !Os(Ve) && !Os(Ti) && (Gk(Ve, Ti, g) ? (tn = !0) : (ut = !0));
          const kt = st(Ti, q, St),
            On = t.createReturnStatement(kt);
          (vt(On, Ti), nie(On, Ti), Cr(On, 2880), ti.push(On), (wn = Ti));
        }
        if (
          (t.mergeLexicalEnvironment(or, s()),
          it(or, oe),
          ne(or, oe),
          yt(or) && (ut = !0),
          ti.unshift(...or),
          ea(Ti) && Qp(ti, Ti.statements))
        )
          return Ti;
        const z = t.createBlock(vt(t.createNodeArray(ti), an), ut);
        return (
          vt(z, oe.body),
          !ut && tn && Cr(z, 1),
          wn && tie(z, 20, wn),
          jr(z, oe.body),
          z
        );
      }
      function Nt(oe, ut) {
        const tn = A & 256 ? O(7104, 512) : O(6976, 128),
          an = kn(oe, q, e);
        return (G(tn, 0, 0), an);
      }
      function he(oe) {
        return kn(oe, ye, e);
      }
      function B(oe, ut) {
        return kn(oe, ut ? ye : q, e);
      }
      function Ae(oe, ut) {
        return rv(oe)
          ? k1(oe, q, e, 0, !ut)
          : oe.operatorToken.kind === 28
            ? t.updateBinaryExpression(
                oe,
                C.checkDefined(st(oe.left, ye, St)),
                oe.operatorToken,
                C.checkDefined(st(oe.right, ut ? ye : q, St)),
              )
            : kn(oe, q, e);
      }
      function te(oe, ut) {
        if (ut) return kn(oe, ye, e);
        let tn;
        for (let wn = 0; wn < oe.elements.length; wn++) {
          const or = oe.elements[wn],
            ti = st(or, wn < oe.elements.length - 1 ? ye : q, St);
          (tn || ti !== or) &&
            (tn || (tn = oe.elements.slice(0, wn)), C.assert(ti), tn.push(ti));
        }
        const an = tn ? vt(t.createNodeArray(tn), oe.elements) : oe.elements;
        return t.updateCommaListExpression(oe, an);
      }
      function xt(oe) {
        return (
          oe.declarationList.declarations.length === 1 &&
          !!oe.declarationList.declarations[0].initializer &&
          !!(Fm(oe.declarationList.declarations[0].initializer) & 1)
        );
      }
      function Xt(oe) {
        const ut = O(0, di(oe, 32) ? 32 : 0);
        let tn;
        if (P && (oe.declarationList.flags & 7) === 0 && !xt(oe)) {
          let an;
          for (const wn of oe.declarationList.declarations)
            if ((Tc(P, wn), wn.initializer)) {
              let or;
              (Qo(wn.name)
                ? (or = k1(wn, q, e, 0))
                : ((or = t.createBinaryExpression(
                    wn.name,
                    64,
                    C.checkDefined(st(wn.initializer, q, St)),
                  )),
                  vt(or, wn)),
                (an = Bn(an, or)));
            }
          an
            ? (tn = vt(
                t.createExpressionStatement(t.inlineExpressions(an)),
                oe,
              ))
            : (tn = void 0);
        } else tn = kn(oe, q, e);
        return (G(ut, 0, 0), tn);
      }
      function Pe(oe) {
        if (oe.flags & 7 || oe.transformFlags & 524288) {
          oe.flags & 7 && jp();
          const ut = Xn(oe.declarations, oe.flags & 1 ? gr : tr, yi),
            tn = t.createVariableDeclarationList(ut);
          return (
            jr(tn, oe),
            vt(tn, oe),
            Rc(tn, oe),
            oe.transformFlags & 524288 &&
              (Qo(oe.declarations[0].name) || Qo(Ba(oe.declarations).name)) &&
              Ua(tn, gt(ut)),
            tn
          );
        }
        return kn(oe, q, e);
      }
      function gt(oe) {
        let ut = -1,
          tn = -1;
        for (const an of oe)
          ((ut =
            ut === -1 ? an.pos : an.pos === -1 ? ut : Math.min(ut, an.pos)),
            (tn = Math.max(tn, an.end)));
        return Bf(ut, tn);
      }
      function Bt(oe) {
        const ut = d.hasNodeCheckFlag(oe, 16384),
          tn = d.hasNodeCheckFlag(oe, 32768);
        return (
          !((A & 64) !== 0 || (ut && tn && (A & 512) !== 0)) &&
          (A & 4096) === 0 &&
          (!d.isDeclarationWithCollidingName(oe) ||
            (tn && !ut && (A & 6144) === 0))
        );
      }
      function gr(oe) {
        const ut = oe.name;
        return Qo(ut)
          ? tr(oe)
          : !oe.initializer && Bt(oe)
            ? t.updateVariableDeclaration(
                oe,
                oe.name,
                void 0,
                void 0,
                t.createVoidZero(),
              )
            : kn(oe, q, e);
      }
      function tr(oe) {
        const ut = O(32, 0);
        let tn;
        return (
          Qo(oe.name)
            ? (tn = XS(oe, q, e, 0, void 0, (ut & 32) !== 0))
            : (tn = kn(oe, q, e)),
          G(ut, 0, 0),
          tn
        );
      }
      function Jn(oe) {
        P.labels.set(Kr(oe.label), !0);
      }
      function ft(oe) {
        P.labels.set(Kr(oe.label), !1);
      }
      function Mt(oe) {
        P && !P.labels && (P.labels = new Map());
        const ut = CG(oe, P && Jn);
        return mb(ut, !1)
          ? jt(ut, oe)
          : t.restoreEnclosingLabel(
              st(ut, q, Vi, t.liftToBlock) ?? vt(t.createEmptyStatement(), ut),
              oe,
              P && ft,
            );
      }
      function jt(oe, ut) {
        switch (oe.kind) {
          case 247:
          case 248:
            return In(oe, ut);
          case 249:
            return yn(oe, ut);
          case 250:
            return En(oe, ut);
          case 251:
            return xn(oe, ut);
        }
      }
      function Qt(oe, ut, tn, an, wn) {
        const or = O(oe, ut),
          ti = $s(tn, an, or, wn);
        return (G(or, 0, 0), ti);
      }
      function In(oe, ut) {
        return Qt(0, 1280, oe, ut);
      }
      function yn(oe, ut) {
        return Qt(5056, 3328, oe, ut);
      }
      function wt(oe) {
        return t.updateForStatement(
          oe,
          st(oe.initializer, ye, Of),
          st(oe.condition, q, St),
          st(oe.incrementor, ye, St),
          C.checkDefined(st(oe.statement, q, Vi, t.liftToBlock)),
        );
      }
      function En(oe, ut) {
        return Qt(3008, 5376, oe, ut);
      }
      function xn(oe, ut) {
        return Qt(3008, 5376, oe, ut, u.downlevelIteration ? ra : Ii);
      }
      function Ln(oe, ut, tn) {
        const an = [],
          wn = oe.initializer;
        if (_d(wn)) {
          oe.initializer.flags & 7 && jp();
          const or = Ac(wn.declarations);
          if (or && Qo(or.name)) {
            const ti = XS(or, q, e, 0, ut),
              Ti = vt(t.createVariableDeclarationList(ti), oe.initializer);
            (jr(Ti, oe.initializer),
              Ua(Ti, Bf(ti[0].pos, Ba(ti).end)),
              an.push(t.createVariableStatement(void 0, Ti)));
          } else
            an.push(
              vt(
                t.createVariableStatement(
                  void 0,
                  jr(
                    vt(
                      t.createVariableDeclarationList([
                        t.createVariableDeclaration(
                          or ? or.name : t.createTempVariable(void 0),
                          void 0,
                          void 0,
                          ut,
                        ),
                      ]),
                      UT(wn, -1),
                    ),
                    wn,
                  ),
                ),
                R6(wn, -1),
              ),
            );
        } else {
          const or = t.createAssignment(wn, ut);
          rv(or)
            ? an.push(t.createExpressionStatement(Ae(or, !0)))
            : (hD(or, wn.end),
              an.push(
                vt(
                  t.createExpressionStatement(C.checkDefined(st(or, q, St))),
                  R6(wn, -1),
                ),
              ));
        }
        if (tn) return ln(Xr(an, tn));
        {
          const or = st(oe.statement, q, Vi, t.liftToBlock);
          return (
            C.assert(or),
            ea(or)
              ? t.updateBlock(
                  or,
                  vt(t.createNodeArray(so(an, or.statements)), or.statements),
                )
              : (an.push(or), ln(an))
          );
        }
      }
      function ln(oe) {
        return Cr(t.createBlock(t.createNodeArray(oe), !0), 864);
      }
      function Ii(oe, ut, tn) {
        const an = st(oe.expression, q, St);
        C.assert(an);
        const wn = t.createLoopVariable(),
          or = He(an)
            ? t.getGeneratedNameForNode(an)
            : t.createTempVariable(void 0);
        Cr(an, 96 | Qa(an));
        const ti = vt(
          t.createForStatement(
            Cr(
              vt(
                t.createVariableDeclarationList([
                  vt(
                    t.createVariableDeclaration(
                      wn,
                      void 0,
                      void 0,
                      t.createNumericLiteral(0),
                    ),
                    UT(oe.expression, -1),
                  ),
                  vt(
                    t.createVariableDeclaration(or, void 0, void 0, an),
                    oe.expression,
                  ),
                ]),
                oe.expression,
              ),
              4194304,
            ),
            vt(
              t.createLessThan(
                wn,
                t.createPropertyAccessExpression(or, "length"),
              ),
              oe.expression,
            ),
            vt(t.createPostfixIncrement(wn), oe.expression),
            Ln(oe, t.createElementAccessExpression(or, wn), tn),
          ),
          oe,
        );
        return (
          Cr(ti, 512),
          vt(ti, oe),
          t.restoreEnclosingLabel(ti, ut, P && ft)
        );
      }
      function ra(oe, ut, tn, an) {
        const wn = st(oe.expression, q, St);
        C.assert(wn);
        const or = He(wn)
            ? t.getGeneratedNameForNode(wn)
            : t.createTempVariable(void 0),
          ti = He(wn)
            ? t.getGeneratedNameForNode(or)
            : t.createTempVariable(void 0),
          Ti = t.createUniqueName("e"),
          $i = t.getGeneratedNameForNode(Ti),
          z = t.createTempVariable(void 0),
          Ve = vt(r().createValuesHelper(wn), oe.expression),
          kt = t.createCallExpression(
            t.createPropertyAccessExpression(or, "next"),
            void 0,
            [],
          );
        (l(Ti), l(z));
        const On =
            an & 1024
              ? t.inlineExpressions([
                  t.createAssignment(Ti, t.createVoidZero()),
                  Ve,
                ])
              : Ve,
          yo = Cr(
            vt(
              t.createForStatement(
                Cr(
                  vt(
                    t.createVariableDeclarationList([
                      vt(
                        t.createVariableDeclaration(or, void 0, void 0, On),
                        oe.expression,
                      ),
                      t.createVariableDeclaration(ti, void 0, void 0, kt),
                    ]),
                    oe.expression,
                  ),
                  4194304,
                ),
                t.createLogicalNot(
                  t.createPropertyAccessExpression(ti, "done"),
                ),
                t.createAssignment(ti, kt),
                Ln(oe, t.createPropertyAccessExpression(ti, "value"), tn),
              ),
              oe,
            ),
            512,
          );
        return t.createTryStatement(
          t.createBlock([t.restoreEnclosingLabel(yo, ut, P && ft)]),
          t.createCatchClause(
            t.createVariableDeclaration($i),
            Cr(
              t.createBlock([
                t.createExpressionStatement(
                  t.createAssignment(
                    Ti,
                    t.createObjectLiteralExpression([
                      t.createPropertyAssignment("error", $i),
                    ]),
                  ),
                ),
              ]),
              1,
            ),
          ),
          t.createBlock([
            t.createTryStatement(
              t.createBlock([
                Cr(
                  t.createIfStatement(
                    t.createLogicalAnd(
                      t.createLogicalAnd(
                        ti,
                        t.createLogicalNot(
                          t.createPropertyAccessExpression(ti, "done"),
                        ),
                      ),
                      t.createAssignment(
                        z,
                        t.createPropertyAccessExpression(or, "return"),
                      ),
                    ),
                    t.createExpressionStatement(
                      t.createFunctionCallCall(z, or, []),
                    ),
                  ),
                  1,
                ),
              ]),
              void 0,
              Cr(
                t.createBlock([
                  Cr(
                    t.createIfStatement(
                      Ti,
                      t.createThrowStatement(
                        t.createPropertyAccessExpression(Ti, "error"),
                      ),
                    ),
                    1,
                  ),
                ]),
                1,
              ),
            ),
          ]),
        );
      }
      function sa(oe) {
        const ut = oe.properties;
        let tn = -1,
          an = !1;
        for (let Ti = 0; Ti < ut.length; Ti++) {
          const $i = ut[Ti];
          if (
            ($i.transformFlags & 1048576 && A & 4) ||
            (an = C.checkDefined($i.name).kind === 168)
          ) {
            tn = Ti;
            break;
          }
        }
        if (tn < 0) return kn(oe, q, e);
        const wn = t.createTempVariable(l),
          or = [],
          ti = t.createAssignment(
            wn,
            Cr(
              t.createObjectLiteralExpression(
                Xn(ut, q, ny, 0, tn),
                oe.multiLine,
              ),
              an ? 131072 : 0,
            ),
          );
        return (
          oe.multiLine && au(ti),
          or.push(ti),
          ur(or, oe, wn, tn),
          or.push(
            oe.multiLine ? au(ps(vt(t.cloneNode(wn), wn), wn.parent)) : wn,
          ),
          t.inlineExpressions(or)
        );
      }
      function zo(oe) {
        return d.hasNodeCheckFlag(oe, 8192);
      }
      function Bl(oe) {
        return QT(oe) && !!oe.initializer && zo(oe.initializer);
      }
      function xl(oe) {
        return QT(oe) && !!oe.condition && zo(oe.condition);
      }
      function Ps(oe) {
        return QT(oe) && !!oe.incrementor && zo(oe.incrementor);
      }
      function co(oe) {
        return Go(oe) || Bl(oe);
      }
      function Go(oe) {
        return d.hasNodeCheckFlag(oe, 4096);
      }
      function Tc(oe, ut) {
        (oe.hoistedLocalVariables || (oe.hoistedLocalVariables = []),
          tn(ut.name));
        function tn(an) {
          if (an.kind === 80) oe.hoistedLocalVariables.push(an);
          else for (const wn of an.elements) Jc(wn) || tn(wn.name);
        }
      }
      function $s(oe, ut, tn, an) {
        if (!co(oe)) {
          let Ve;
          P &&
            ((Ve = P.allowedNonLabeledJumps), (P.allowedNonLabeledJumps = 6));
          const kt = an
            ? an(oe, ut, void 0, tn)
            : t.restoreEnclosingLabel(
                QT(oe) ? wt(oe) : kn(oe, q, e),
                ut,
                P && ft,
              );
          return (P && (P.allowedNonLabeledJumps = Ve), kt);
        }
        const wn = qa(oe),
          or = [],
          ti = P;
        P = wn;
        const Ti = Bl(oe) ? Hl(oe, wn) : void 0,
          $i = Go(oe) ? sc(oe, wn, ti) : void 0;
        ((P = ti),
          Ti && or.push(Ti.functionDeclaration),
          $i && or.push($i.functionDeclaration),
          Zt(or, wn, ti),
          Ti && or.push(Ee(Ti.functionName, Ti.containsYield)));
        let z;
        if ($i)
          if (an) z = an(oe, ut, $i.part, tn);
          else {
            const Ve = Ra(oe, Ti, t.createBlock($i.part, !0));
            z = t.restoreEnclosingLabel(Ve, ut, P && ft);
          }
        else {
          const Ve = Ra(
            oe,
            Ti,
            C.checkDefined(st(oe.statement, q, Vi, t.liftToBlock)),
          );
          z = t.restoreEnclosingLabel(Ve, ut, P && ft);
        }
        return (or.push(z), or);
      }
      function Ra(oe, ut, tn) {
        switch (oe.kind) {
          case 249:
            return ec(oe, ut, tn);
          case 250:
            return Lo(oe, tn);
          case 251:
            return bf(oe, tn);
          case 247:
            return fa(oe, tn);
          case 248:
            return is(oe, tn);
          default:
            return C.failBadSyntaxKind(oe, "IterationStatement expected");
        }
      }
      function ec(oe, ut, tn) {
        const an = oe.condition && zo(oe.condition),
          wn = an || (oe.incrementor && zo(oe.incrementor));
        return t.updateForStatement(
          oe,
          st(ut ? ut.part : oe.initializer, ye, Of),
          st(an ? void 0 : oe.condition, q, St),
          st(wn ? void 0 : oe.incrementor, ye, St),
          tn,
        );
      }
      function bf(oe, ut) {
        return t.updateForOfStatement(
          oe,
          void 0,
          C.checkDefined(st(oe.initializer, q, Of)),
          C.checkDefined(st(oe.expression, q, St)),
          ut,
        );
      }
      function Lo(oe, ut) {
        return t.updateForInStatement(
          oe,
          C.checkDefined(st(oe.initializer, q, Of)),
          C.checkDefined(st(oe.expression, q, St)),
          ut,
        );
      }
      function fa(oe, ut) {
        return t.updateDoStatement(
          oe,
          ut,
          C.checkDefined(st(oe.expression, q, St)),
        );
      }
      function is(oe, ut) {
        return t.updateWhileStatement(
          oe,
          C.checkDefined(st(oe.expression, q, St)),
          ut,
        );
      }
      function qa(oe) {
        let ut;
        switch (oe.kind) {
          case 249:
          case 250:
          case 251:
            const or = oe.initializer;
            or && or.kind === 262 && (ut = or);
            break;
        }
        const tn = [],
          an = [];
        if (ut && ty(ut) & 7) {
          const or = Bl(oe) || xl(oe) || Ps(oe);
          for (const ti of ut.declarations) fn(oe, ti, tn, an, or);
        }
        const wn = { loopParameters: tn, loopOutParameters: an };
        return (
          P &&
            (P.argumentsName && (wn.argumentsName = P.argumentsName),
            P.thisName && (wn.thisName = P.thisName),
            P.hoistedLocalVariables &&
              (wn.hoistedLocalVariables = P.hoistedLocalVariables)),
          wn
        );
      }
      function Zt(oe, ut, tn) {
        let an;
        if (
          (ut.argumentsName &&
            (tn
              ? (tn.argumentsName = ut.argumentsName)
              : (an || (an = [])).push(
                  t.createVariableDeclaration(
                    ut.argumentsName,
                    void 0,
                    void 0,
                    t.createIdentifier("arguments"),
                  ),
                )),
          ut.thisName &&
            (tn
              ? (tn.thisName = ut.thisName)
              : (an || (an = [])).push(
                  t.createVariableDeclaration(
                    ut.thisName,
                    void 0,
                    void 0,
                    t.createIdentifier("this"),
                  ),
                )),
          ut.hoistedLocalVariables)
        )
          if (tn) tn.hoistedLocalVariables = ut.hoistedLocalVariables;
          else {
            an || (an = []);
            for (const wn of ut.hoistedLocalVariables)
              an.push(t.createVariableDeclaration(wn));
          }
        if (ut.loopOutParameters.length) {
          an || (an = []);
          for (const wn of ut.loopOutParameters)
            an.push(t.createVariableDeclaration(wn.outParamName));
        }
        (ut.conditionVariable &&
          (an || (an = []),
          an.push(
            t.createVariableDeclaration(
              ut.conditionVariable,
              void 0,
              void 0,
              t.createFalse(),
            ),
          )),
          an &&
            oe.push(
              t.createVariableStatement(
                void 0,
                t.createVariableDeclarationList(an),
              ),
            ));
      }
      function As(oe) {
        return t.createVariableDeclaration(
          oe.originalName,
          void 0,
          void 0,
          oe.outParamName,
        );
      }
      function Hl(oe, ut) {
        const tn = t.createUniqueName("_loop_init"),
          an = (oe.initializer.transformFlags & 1048576) !== 0;
        let wn = 0;
        (ut.containsLexicalThis && (wn |= 16), an && A & 4 && (wn |= 524288));
        const or = [];
        (or.push(t.createVariableStatement(void 0, oe.initializer)),
          Fs(ut.loopOutParameters, 2, 1, or));
        const ti = t.createVariableStatement(
            void 0,
            Cr(
              t.createVariableDeclarationList([
                t.createVariableDeclaration(
                  tn,
                  void 0,
                  void 0,
                  Cr(
                    t.createFunctionExpression(
                      void 0,
                      an ? t.createToken(42) : void 0,
                      void 0,
                      void 0,
                      void 0,
                      void 0,
                      C.checkDefined(st(t.createBlock(or, !0), q, ea)),
                    ),
                    wn,
                  ),
                ),
              ]),
              4194304,
            ),
          ),
          Ti = t.createVariableDeclarationList(Vt(ut.loopOutParameters, As));
        return {
          functionName: tn,
          containsYield: an,
          functionDeclaration: ti,
          part: Ti,
        };
      }
      function sc(oe, ut, tn) {
        const an = t.createUniqueName("_loop");
        i();
        const wn = st(oe.statement, q, Vi, t.liftToBlock),
          or = s(),
          ti = [];
        ((xl(oe) || Ps(oe)) &&
          ((ut.conditionVariable = t.createUniqueName("inc")),
          oe.incrementor
            ? ti.push(
                t.createIfStatement(
                  ut.conditionVariable,
                  t.createExpressionStatement(
                    C.checkDefined(st(oe.incrementor, q, St)),
                  ),
                  t.createExpressionStatement(
                    t.createAssignment(ut.conditionVariable, t.createTrue()),
                  ),
                ),
              )
            : ti.push(
                t.createIfStatement(
                  t.createLogicalNot(ut.conditionVariable),
                  t.createExpressionStatement(
                    t.createAssignment(ut.conditionVariable, t.createTrue()),
                  ),
                ),
              ),
          xl(oe) &&
            ti.push(
              t.createIfStatement(
                t.createPrefixUnaryExpression(
                  54,
                  C.checkDefined(st(oe.condition, q, St)),
                ),
                C.checkDefined(st(t.createBreakStatement(), q, Vi)),
              ),
            )),
          C.assert(wn),
          ea(wn) ? Xr(ti, wn.statements) : ti.push(wn),
          Fs(ut.loopOutParameters, 1, 1, ti),
          mg(ti, or));
        const Ti = t.createBlock(ti, !0);
        ea(wn) && jr(Ti, wn);
        const $i = (oe.statement.transformFlags & 1048576) !== 0;
        let z = 1048576;
        (ut.containsLexicalThis && (z |= 16),
          $i && (A & 4) !== 0 && (z |= 524288));
        const Ve = t.createVariableStatement(
            void 0,
            Cr(
              t.createVariableDeclarationList([
                t.createVariableDeclaration(
                  an,
                  void 0,
                  void 0,
                  Cr(
                    t.createFunctionExpression(
                      void 0,
                      $i ? t.createToken(42) : void 0,
                      void 0,
                      void 0,
                      ut.loopParameters,
                      void 0,
                      Ti,
                    ),
                    z,
                  ),
                ),
              ]),
              4194304,
            ),
          ),
          kt = Y(an, ut, tn, $i);
        return {
          functionName: an,
          containsYield: $i,
          functionDeclaration: Ve,
          part: kt,
        };
      }
      function vd(oe, ut) {
        const tn = ut === 0 ? oe.outParamName : oe.originalName,
          an = ut === 0 ? oe.originalName : oe.outParamName;
        return t.createBinaryExpression(an, 64, tn);
      }
      function Fs(oe, ut, tn, an) {
        for (const wn of oe)
          wn.flags & ut && an.push(t.createExpressionStatement(vd(wn, tn)));
      }
      function Ee(oe, ut) {
        const tn = t.createCallExpression(oe, void 0, []),
          an = ut
            ? t.createYieldExpression(t.createToken(42), Cr(tn, 8388608))
            : tn;
        return t.createExpressionStatement(an);
      }
      function Y(oe, ut, tn, an) {
        const wn = [],
          or =
            !(ut.nonLocalJumps & -5) &&
            !ut.labeledNonLocalBreaks &&
            !ut.labeledNonLocalContinues,
          ti = t.createCallExpression(
            oe,
            void 0,
            Vt(ut.loopParameters, ($i) => $i.name),
          ),
          Ti = an
            ? t.createYieldExpression(t.createToken(42), Cr(ti, 8388608))
            : ti;
        if (or)
          (wn.push(t.createExpressionStatement(Ti)),
            Fs(ut.loopOutParameters, 1, 0, wn));
        else {
          const $i = t.createUniqueName("state"),
            z = t.createVariableStatement(
              void 0,
              t.createVariableDeclarationList([
                t.createVariableDeclaration($i, void 0, void 0, Ti),
              ]),
            );
          if (
            (wn.push(z),
            Fs(ut.loopOutParameters, 1, 0, wn),
            ut.nonLocalJumps & 8)
          ) {
            let Ve;
            (tn
              ? ((tn.nonLocalJumps |= 8), (Ve = t.createReturnStatement($i)))
              : (Ve = t.createReturnStatement(
                  t.createPropertyAccessExpression($i, "value"),
                )),
              wn.push(
                t.createIfStatement(t.createTypeCheck($i, "object"), Ve),
              ));
          }
          if (
            (ut.nonLocalJumps & 2 &&
              wn.push(
                t.createIfStatement(
                  t.createStrictEquality($i, t.createStringLiteral("break")),
                  t.createBreakStatement(),
                ),
              ),
            ut.labeledNonLocalBreaks || ut.labeledNonLocalContinues)
          ) {
            const Ve = [];
            (qt(ut.labeledNonLocalBreaks, !0, $i, tn, Ve),
              qt(ut.labeledNonLocalContinues, !1, $i, tn, Ve),
              wn.push(t.createSwitchStatement($i, t.createCaseBlock(Ve))));
          }
        }
        return wn;
      }
      function pt(oe, ut, tn, an) {
        ut
          ? (oe.labeledNonLocalBreaks || (oe.labeledNonLocalBreaks = new Map()),
            oe.labeledNonLocalBreaks.set(tn, an))
          : (oe.labeledNonLocalContinues ||
              (oe.labeledNonLocalContinues = new Map()),
            oe.labeledNonLocalContinues.set(tn, an));
      }
      function qt(oe, ut, tn, an, wn) {
        oe &&
          oe.forEach((or, ti) => {
            const Ti = [];
            if (!an || (an.labels && an.labels.get(ti))) {
              const $i = t.createIdentifier(ti);
              Ti.push(
                ut ? t.createBreakStatement($i) : t.createContinueStatement($i),
              );
            } else (pt(an, ut, ti, or), Ti.push(t.createReturnStatement(tn)));
            wn.push(t.createCaseClause(t.createStringLiteral(or), Ti));
          });
      }
      function fn(oe, ut, tn, an, wn) {
        const or = ut.name;
        if (Qo(or))
          for (const ti of or.elements) Jc(ti) || fn(oe, ti, tn, an, wn);
        else {
          tn.push(t.createParameterDeclaration(void 0, void 0, or));
          const ti = d.hasNodeCheckFlag(ut, 65536);
          if (ti || wn) {
            const Ti = t.createUniqueName("out_" + Kr(or));
            let $i = 0;
            (ti && ($i |= 1),
              QT(oe) &&
                (oe.initializer &&
                  d.isBindingCapturedByNode(oe.initializer, ut) &&
                  ($i |= 2),
                ((oe.condition &&
                  d.isBindingCapturedByNode(oe.condition, ut)) ||
                  (oe.incrementor &&
                    d.isBindingCapturedByNode(oe.incrementor, ut))) &&
                  ($i |= 1)),
              an.push({ flags: $i, originalName: or, outParamName: Ti }));
          }
        }
      }
      function ur(oe, ut, tn, an) {
        const wn = ut.properties,
          or = wn.length;
        for (let ti = an; ti < or; ti++) {
          const Ti = wn[ti];
          switch (Ti.kind) {
            case 178:
            case 179:
              const $i = MS(ut.properties, Ti);
              Ti === $i.firstAccessor &&
                oe.push(It(tn, $i, ut, !!ut.multiLine));
              break;
            case 175:
              oe.push(Fn(Ti, tn, ut, ut.multiLine));
              break;
            case 304:
              oe.push(si(Ti, tn, ut.multiLine));
              break;
            case 305:
              oe.push(Dr(Ti, tn, ut.multiLine));
              break;
            default:
              C.failBadSyntaxKind(ut);
              break;
          }
        }
      }
      function si(oe, ut, tn) {
        const an = t.createAssignment(
          D1(t, ut, C.checkDefined(st(oe.name, q, vc))),
          C.checkDefined(st(oe.initializer, q, St)),
        );
        return (vt(an, oe), tn && au(an), an);
      }
      function Dr(oe, ut, tn) {
        const an = t.createAssignment(
          D1(t, ut, C.checkDefined(st(oe.name, q, vc))),
          t.cloneNode(oe.name),
        );
        return (vt(an, oe), tn && au(an), an);
      }
      function Fn(oe, ut, tn, an) {
        const wn = t.createAssignment(
          D1(t, ut, C.checkDefined(st(oe.name, q, vc))),
          Tr(oe, oe, void 0, tn),
        );
        return (vt(wn, oe), an && au(wn), wn);
      }
      function ro(oe) {
        const ut = O(7104, 0);
        let tn;
        if (
          (C.assert(
            !!oe.variableDeclaration,
            "Catch clause variable should always be present when downleveling ES2015.",
          ),
          Qo(oe.variableDeclaration.name))
        ) {
          const an = t.createTempVariable(void 0),
            wn = t.createVariableDeclaration(an);
          vt(wn, oe.variableDeclaration);
          const or = XS(oe.variableDeclaration, q, e, 0, an),
            ti = t.createVariableDeclarationList(or);
          vt(ti, oe.variableDeclaration);
          const Ti = t.createVariableStatement(void 0, ti);
          tn = t.updateCatchClause(oe, wn, So(oe.block, Ti));
        } else tn = kn(oe, q, e);
        return (G(ut, 0, 0), tn);
      }
      function So(oe, ut) {
        const tn = Xn(oe.statements, q, Vi);
        return t.updateBlock(oe, [ut, ...tn]);
      }
      function Ns(oe) {
        C.assert(!va(oe.name));
        const ut = Tr(oe, UT(oe, -1), void 0, void 0);
        return (
          Cr(ut, 1024 | Qa(ut)),
          vt(t.createPropertyAssignment(oe.name, ut), oe)
        );
      }
      function Da(oe) {
        C.assert(!va(oe.name));
        const ut = P;
        P = void 0;
        const tn = O(32670, 65);
        let an;
        const wn = Fl(oe.parameters, q, e),
          or = Oe(oe);
        return (
          oe.kind === 178
            ? (an = t.updateGetAccessorDeclaration(
                oe,
                oe.modifiers,
                oe.name,
                wn,
                oe.type,
                or,
              ))
            : (an = t.updateSetAccessorDeclaration(
                oe,
                oe.modifiers,
                oe.name,
                wn,
                or,
              )),
          G(tn, 229376, 0),
          (P = ut),
          an
        );
      }
      function Qs(oe) {
        return vt(
          t.createPropertyAssignment(oe.name, re(t.cloneNode(oe.name))),
          oe,
        );
      }
      function Sc(oe) {
        return kn(oe, q, e);
      }
      function fc(oe) {
        return kn(oe, q, e);
      }
      function Hs(oe) {
        return yt(oe.elements, qf)
          ? op(oe.elements, !1, !!oe.multiLine, !!oe.elements.hasTrailingComma)
          : kn(oe, q, e);
      }
      function Pl(oe) {
        if (Fm(oe) & 1) return vh(oe);
        const ut = Ul(oe.expression);
        return ut.kind === 108 || mp(ut) || yt(oe.arguments, qf)
          ? Pd(oe)
          : t.updateCallExpression(
              oe,
              C.checkDefined(st(oe.expression, K, St)),
              void 0,
              Xn(oe.arguments, q, St),
            );
      }
      function vh(oe) {
        const ut = ma(ma(Ul(oe.expression), Xs).body, ea),
          tn = (Ca) =>
            ac(Ca) && !!$a(Ca.declarationList.declarations).initializer,
          an = P;
        P = void 0;
        const wn = Xn(ut.statements, ie, Vi);
        P = an;
        const or = Un(wn, tn),
          ti = Un(wn, (Ca) => !tn(Ca)),
          $i = ma($a(or), ac).declarationList.declarations[0],
          z = Ul($i.initializer);
        let Ve = ni(z, id);
        !Ve && Nr(z) && z.operatorToken.kind === 28 && (Ve = ni(z.left, id));
        const kt = ma(Ve ? Ul(Ve.right) : z, Zo),
          On = ma(Ul(kt.expression), Us),
          yo = On.body.statements;
        let ta = 0,
          Eo = -1;
        const Vo = [];
        if (Ve) {
          const Ca = ni(yo[ta], od);
          (Ca && (Vo.push(Ca), ta++),
            Vo.push(yo[ta]),
            ta++,
            Vo.push(
              t.createExpressionStatement(
                t.createAssignment(Ve.left, ma($i.name, He)),
              ),
            ));
        }
        for (; !tf(Qv(yo, Eo)); ) Eo--;
        (Xr(Vo, yo, ta, Eo), Eo < -1 && Xr(Vo, yo, Eo + 1));
        const ml = ni(Qv(yo, Eo), tf);
        for (const Ca of ti)
          tf(Ca) && ml?.expression && !He(ml.expression)
            ? Vo.push(ml)
            : Vo.push(Ca);
        return (
          Xr(Vo, or, 1),
          t.restoreOuterExpressions(
            oe.expression,
            t.restoreOuterExpressions(
              $i.initializer,
              t.restoreOuterExpressions(
                Ve && Ve.right,
                t.updateCallExpression(
                  kt,
                  t.restoreOuterExpressions(
                    kt.expression,
                    t.updateFunctionExpression(
                      On,
                      void 0,
                      void 0,
                      void 0,
                      void 0,
                      On.parameters,
                      void 0,
                      t.updateBlock(On.body, Vo),
                    ),
                  ),
                  void 0,
                  kt.arguments,
                ),
              ),
            ),
          )
        );
      }
      function Pd(oe, ut) {
        if (
          oe.transformFlags & 32768 ||
          oe.expression.kind === 108 ||
          mp(Ul(oe.expression))
        ) {
          const { target: tn, thisArg: an } = t.createCallBinding(
            oe.expression,
            l,
          );
          oe.expression.kind === 108 && Cr(an, 8);
          let wn;
          if (
            (oe.transformFlags & 32768
              ? (wn = t.createFunctionApplyCall(
                  C.checkDefined(st(tn, K, St)),
                  oe.expression.kind === 108
                    ? an
                    : C.checkDefined(st(an, q, St)),
                  op(oe.arguments, !0, !1, !1),
                ))
              : (wn = vt(
                  t.createFunctionCallCall(
                    C.checkDefined(st(tn, K, St)),
                    oe.expression.kind === 108
                      ? an
                      : C.checkDefined(st(an, q, St)),
                    Xn(oe.arguments, q, St),
                  ),
                  oe,
                )),
            oe.expression.kind === 108)
          ) {
            const or = t.createLogicalOr(wn, qi());
            wn = t.createAssignment(X(), or);
          }
          return jr(wn, oe);
        }
        return (n1(oe) && (A |= 131072), kn(oe, q, e));
      }
      function nf(oe) {
        if (yt(oe.arguments, qf)) {
          const { target: ut, thisArg: tn } = t.createCallBinding(
            t.createPropertyAccessExpression(oe.expression, "bind"),
            l,
          );
          return t.createNewExpression(
            t.createFunctionApplyCall(
              C.checkDefined(st(ut, q, St)),
              tn,
              op(
                t.createNodeArray([t.createVoidZero(), ...oe.arguments]),
                !0,
                !1,
                !1,
              ),
            ),
            void 0,
            [],
          );
        }
        return kn(oe, q, e);
      }
      function op(oe, ut, tn, an) {
        const wn = oe.length,
          or = la(f2(oe, ze, (z, Ve, kt, On) => Ve(z, tn, an && On === wn)));
        if (or.length === 1) {
          const z = or[0];
          if (
            (ut && !u.downlevelIteration) ||
            qV(z.expression) ||
            WM(z.expression, "___spreadArray")
          )
            return z.expression;
        }
        const ti = r(),
          Ti = or[0].kind !== 0;
        let $i = Ti ? t.createArrayLiteralExpression() : or[0].expression;
        for (let z = Ti ? 0 : 1; z < or.length; z++) {
          const Ve = or[z];
          $i = ti.createSpreadArrayHelper(
            $i,
            Ve.expression,
            Ve.kind === 1 && !ut,
          );
        }
        return $i;
      }
      function ze(oe) {
        return qf(oe) ? Jt : go;
      }
      function Jt(oe) {
        return Vt(oe, er);
      }
      function er(oe) {
        C.assertNode(oe, qf);
        let ut = st(oe.expression, q, St);
        C.assert(ut);
        const tn = WM(ut, "___read");
        let an = tn || qV(ut) ? 2 : 1;
        return (
          u.downlevelIteration &&
            an === 1 &&
            !Cd(ut) &&
            !tn &&
            ((ut = r().createReadHelper(ut, void 0)), (an = 2)),
          nAe(an, ut)
        );
      }
      function go(oe, ut, tn) {
        const an = t.createArrayLiteralExpression(
          Xn(t.createNodeArray(oe, tn), q, St),
          ut,
        );
        return nAe(0, an);
      }
      function Za(oe) {
        return st(oe.expression, q, St);
      }
      function es(oe) {
        return vt(t.createStringLiteral(oe.text), oe);
      }
      function Va(oe) {
        return oe.hasExtendedUnicodeEscape
          ? vt(t.createStringLiteral(oe.text), oe)
          : oe;
      }
      function Mc(oe) {
        return oe.numericLiteralFlags & 384
          ? vt(t.createNumericLiteral(oe.text), oe)
          : oe;
      }
      function tl(oe) {
        return QU(e, oe, q, g, N, 1);
      }
      function Ll(oe) {
        let ut = t.createStringLiteral(oe.head.text);
        for (const tn of oe.templateSpans) {
          const an = [C.checkDefined(st(tn.expression, q, St))];
          (tn.literal.text.length > 0 &&
            an.push(t.createStringLiteral(tn.literal.text)),
            (ut = t.createCallExpression(
              t.createPropertyAccessExpression(ut, "concat"),
              void 0,
              an,
            )));
        }
        return vt(ut, oe);
      }
      function ql() {
        return t.createUniqueName("_super", 48);
      }
      function rf(oe, ut) {
        const tn =
          A & 8 && !ut
            ? t.createPropertyAccessExpression(jr(ql(), oe), "prototype")
            : ql();
        return (jr(tn, oe), Rc(tn, oe), Ua(tn, oe), tn);
      }
      function bd(oe) {
        return oe.keywordToken === 105 && oe.name.escapedText === "target"
          ? ((A |= 32768), t.createUniqueName("_newTarget", 48))
          : oe;
      }
      function ld(oe, ut, tn) {
        if (k & 1 && Yo(ut)) {
          const an = O(32670, Qa(ut) & 16 ? 81 : 65);
          (h(oe, ut, tn), G(an, 0, 0));
          return;
        }
        h(oe, ut, tn);
      }
      function jp() {
        (k & 2) === 0 && ((k |= 2), e.enableSubstitution(80));
      }
      function Au() {
        (k & 1) === 0 &&
          ((k |= 1),
          e.enableSubstitution(110),
          e.enableEmitNotification(177),
          e.enableEmitNotification(175),
          e.enableEmitNotification(178),
          e.enableEmitNotification(179),
          e.enableEmitNotification(220),
          e.enableEmitNotification(219),
          e.enableEmitNotification(263));
      }
      function Xf(oe, ut) {
        return ((ut = _(oe, ut)), oe === 1 ? Ng(ut) : He(ut) ? G_(ut) : ut);
      }
      function G_(oe) {
        if (k & 2 && !Fj(oe)) {
          const ut = jo(oe, He);
          if (ut && Cg(ut)) return vt(t.getGeneratedNameForNode(ut), oe);
        }
        return oe;
      }
      function Cg(oe) {
        switch (oe.parent.kind) {
          case 209:
          case 264:
          case 267:
          case 261:
            return (
              oe.parent.name === oe &&
              d.isDeclarationWithCollidingName(oe.parent)
            );
        }
        return !1;
      }
      function Ng(oe) {
        switch (oe.kind) {
          case 80:
            return ap(oe);
          case 110:
            return bh(oe);
        }
        return oe;
      }
      function ap(oe) {
        if (k & 2 && !Fj(oe)) {
          const ut = d.getReferencedDeclarationWithCollidingName(oe);
          if (ut && !(ui(ut) && Xc(ut, oe)))
            return vt(t.getGeneratedNameForNode(Oo(ut)), oe);
        }
        return oe;
      }
      function Xc(oe, ut) {
        let tn = jo(ut);
        if (!tn || tn === oe || tn.end <= oe.pos || tn.pos >= oe.end) return !1;
        const an = sh(oe);
        for (; tn; ) {
          if (tn === an || tn === oe) return !1;
          if (bc(tn) && tn.parent === oe) return !0;
          tn = tn.parent;
        }
        return !1;
      }
      function bh(oe) {
        return k & 1 && A & 16 ? vt(X(), oe) : oe;
      }
      function Tf(oe, ut) {
        return ua(ut)
          ? t.getInternalName(oe)
          : t.createPropertyAccessExpression(
              t.getInternalName(oe),
              "prototype",
            );
      }
      function p_(oe, ut) {
        if (!oe || !ut || yt(oe.parameters)) return !1;
        const tn = Ac(oe.body.statements);
        if (!tn || !Os(tn) || tn.kind !== 245) return !1;
        const an = tn.expression;
        if (!Os(an) || an.kind !== 214) return !1;
        const wn = an.expression;
        if (!Os(wn) || wn.kind !== 108) return !1;
        const or = og(an.arguments);
        if (!or || !Os(or) || or.kind !== 231) return !1;
        const ti = or.expression;
        return He(ti) && ti.escapedText === "arguments";
      }
    }
    function _qe(e) {
      switch (e) {
        case 2:
          return "return";
        case 3:
          return "break";
        case 4:
          return "yield";
        case 5:
          return "yield*";
        case 7:
          return "endfinally";
        default:
          return;
      }
    }
    function qae(e) {
      const {
          factory: t,
          getEmitHelperFactory: r,
          resumeLexicalEnvironment: i,
          endLexicalEnvironment: o,
          hoistFunctionDeclaration: s,
          hoistVariableDeclaration: l,
        } = e,
        u = e.getCompilerOptions(),
        d = Ga(u),
        _ = e.getEmitResolver(),
        h = e.onSubstituteNode;
      e.onSubstituteNode = he;
      let g,
        E,
        A,
        R,
        N,
        P,
        k,
        W,
        O,
        G,
        j = 1,
        J,
        Z,
        q,
        ye,
        ie = 0,
        K = 0,
        pe,
        de,
        fe,
        ve,
        xe,
        X,
        Ce,
        Je;
      return hh(e, Se);
      function Se(ze) {
        if (ze.isDeclarationFile || (ze.transformFlags & 2048) === 0) return ze;
        const Jt = kn(ze, re, e);
        return (Ag(Jt, e.readEmitHelpers()), Jt);
      }
      function re(ze) {
        const Jt = ze.transformFlags;
        return R
          ? be(ze)
          : A
            ? Ne(ze)
            : Ms(ze) && ze.asteriskToken
              ? lt(ze)
              : Jt & 2048
                ? kn(ze, re, e)
                : ze;
      }
      function be(ze) {
        switch (ze.kind) {
          case 247:
            return $o(ze);
          case 248:
            return Mn(ze);
          case 256:
            return It(ze);
          case 257:
            return nt(ze);
          default:
            return Ne(ze);
        }
      }
      function Ne(ze) {
        switch (ze.kind) {
          case 263:
            return ce(ze);
          case 219:
            return Re(ze);
          case 178:
          case 179:
            return _e(ze);
          case 244:
            return Ge(ze);
          case 249:
            return ot(ze);
          case 250:
            return le(ze);
          case 253:
            return it(ze);
          case 252:
            return ne(ze);
          case 254:
            return Lt(ze);
          default:
            return ze.transformFlags & 1048576
              ? Be(ze)
              : ze.transformFlags & 4196352
                ? kn(ze, re, e)
                : ze;
        }
      }
      function Be(ze) {
        switch (ze.kind) {
          case 227:
            return We(ze);
          case 357:
            return gn(ze);
          case 228:
            return _t(ze);
          case 230:
            return en(ze);
          case 210:
            return ir(ze);
          case 211:
            return lo(ze);
          case 213:
            return zt(ze);
          case 214:
            return Zr(ze);
          case 215:
            return Ai(ze);
          default:
            return kn(ze, re, e);
        }
      }
      function lt(ze) {
        switch (ze.kind) {
          case 263:
            return ce(ze);
          case 219:
            return Re(ze);
          default:
            return C.failBadSyntaxKind(ze);
        }
      }
      function ce(ze) {
        if (ze.asteriskToken)
          ze = jr(
            vt(
              t.createFunctionDeclaration(
                ze.modifiers,
                void 0,
                ze.name,
                void 0,
                Fl(ze.parameters, re, e),
                void 0,
                je(ze.body),
              ),
              ze,
            ),
            ze,
          );
        else {
          const Jt = A,
            er = R;
          ((A = !1), (R = !1), (ze = kn(ze, re, e)), (A = Jt), (R = er));
        }
        if (A) {
          s(ze);
          return;
        } else return ze;
      }
      function Re(ze) {
        if (ze.asteriskToken)
          ze = jr(
            vt(
              t.createFunctionExpression(
                void 0,
                void 0,
                ze.name,
                void 0,
                Fl(ze.parameters, re, e),
                void 0,
                je(ze.body),
              ),
              ze,
            ),
            ze,
          );
        else {
          const Jt = A,
            er = R;
          ((A = !1), (R = !1), (ze = kn(ze, re, e)), (A = Jt), (R = er));
        }
        return ze;
      }
      function _e(ze) {
        const Jt = A,
          er = R;
        return (
          (A = !1),
          (R = !1),
          (ze = kn(ze, re, e)),
          (A = Jt),
          (R = er),
          ze
        );
      }
      function je(ze) {
        const Jt = [],
          er = A,
          go = R,
          Za = N,
          es = P,
          Va = k,
          Mc = W,
          tl = O,
          Ll = G,
          ql = j,
          rf = J,
          bd = Z,
          ld = q,
          jp = ye;
        ((A = !0),
          (R = !1),
          (N = void 0),
          (P = void 0),
          (k = void 0),
          (W = void 0),
          (O = void 0),
          (G = void 0),
          (j = 1),
          (J = void 0),
          (Z = void 0),
          (q = void 0),
          (ye = t.createTempVariable(void 0)),
          i());
        const Au = t.copyPrologue(ze.statements, Jt, !1, re);
        Ni(ze.statements, Au);
        const Xf = pt();
        return (
          mg(Jt, o()),
          Jt.push(t.createReturnStatement(Xf)),
          (A = er),
          (R = go),
          (N = Za),
          (P = es),
          (k = Va),
          (W = Mc),
          (O = tl),
          (G = Ll),
          (j = ql),
          (J = rf),
          (Z = bd),
          (q = ld),
          (ye = jp),
          vt(t.createBlock(Jt, ze.multiLine), ze)
        );
      }
      function Ge(ze) {
        if (ze.transformFlags & 1048576) {
          dr(ze.declarationList);
          return;
        } else {
          if (Qa(ze) & 2097152) return ze;
          for (const er of ze.declarationList.declarations) l(er.name);
          const Jt = _M(ze.declarationList);
          return Jt.length === 0
            ? void 0
            : Ua(
                t.createExpressionStatement(t.inlineExpressions(Vt(Jt, ri))),
                ze,
              );
        }
      }
      function We(ze) {
        const Jt = YG(ze);
        switch (Jt) {
          case 0:
            return Wt(ze);
          case 1:
            return at(ze);
          default:
            return C.assertNever(Jt);
        }
      }
      function at(ze) {
        const { left: Jt, right: er } = ze;
        if (Oe(er)) {
          let go;
          switch (Jt.kind) {
            case 212:
              go = t.updatePropertyAccessExpression(
                Jt,
                te(C.checkDefined(st(Jt.expression, re, $u))),
                Jt.name,
              );
              break;
            case 213:
              go = t.updateElementAccessExpression(
                Jt,
                te(C.checkDefined(st(Jt.expression, re, $u))),
                te(C.checkDefined(st(Jt.argumentExpression, re, St))),
              );
              break;
            default:
              go = C.checkDefined(st(Jt, re, St));
              break;
          }
          const Za = ze.operatorToken.kind;
          return cP(Za)
            ? vt(
                t.createAssignment(
                  go,
                  vt(
                    t.createBinaryExpression(
                      te(go),
                      dP(Za),
                      C.checkDefined(st(er, re, St)),
                    ),
                    ze,
                  ),
                ),
                ze,
              )
            : t.updateBinaryExpression(
                ze,
                go,
                ze.operatorToken,
                C.checkDefined(st(er, re, St)),
              );
        }
        return kn(ze, re, e);
      }
      function Wt(ze) {
        return Oe(ze.right)
          ? Gne(ze.operatorToken.kind)
            ? Kn(ze)
            : ze.operatorToken.kind === 28
              ? cn(ze)
              : t.updateBinaryExpression(
                  ze,
                  te(C.checkDefined(st(ze.left, re, St))),
                  ze.operatorToken,
                  C.checkDefined(st(ze.right, re, St)),
                )
          : kn(ze, re, e);
      }
      function cn(ze) {
        let Jt = [];
        return (er(ze.left), er(ze.right), t.inlineExpressions(Jt));
        function er(go) {
          Nr(go) && go.operatorToken.kind === 28
            ? (er(go.left), er(go.right))
            : (Oe(go) &&
                Jt.length > 0 &&
                (Y(1, [t.createExpressionStatement(t.inlineExpressions(Jt))]),
                (Jt = [])),
              Jt.push(C.checkDefined(st(go, re, St))));
        }
      }
      function gn(ze) {
        let Jt = [];
        for (const er of ze.elements)
          Nr(er) && er.operatorToken.kind === 28
            ? Jt.push(cn(er))
            : (Oe(er) &&
                Jt.length > 0 &&
                (Y(1, [t.createExpressionStatement(t.inlineExpressions(Jt))]),
                (Jt = [])),
              Jt.push(C.checkDefined(st(er, re, St))));
        return t.inlineExpressions(Jt);
      }
      function Kn(ze) {
        const Jt = Xt(),
          er = xt();
        return (
          is(er, C.checkDefined(st(ze.left, re, St)), ze.left),
          ze.operatorToken.kind === 56
            ? As(Jt, er, ze.left)
            : Zt(Jt, er, ze.left),
          is(er, C.checkDefined(st(ze.right, re, St)), ze.right),
          Pe(Jt),
          er
        );
      }
      function _t(ze) {
        if (Oe(ze.whenTrue) || Oe(ze.whenFalse)) {
          const Jt = Xt(),
            er = Xt(),
            go = xt();
          return (
            As(Jt, C.checkDefined(st(ze.condition, re, St)), ze.condition),
            is(go, C.checkDefined(st(ze.whenTrue, re, St)), ze.whenTrue),
            qa(er),
            Pe(Jt),
            is(go, C.checkDefined(st(ze.whenFalse, re, St)), ze.whenFalse),
            Pe(er),
            go
          );
        }
        return kn(ze, re, e);
      }
      function en(ze) {
        const Jt = Xt(),
          er = st(ze.expression, re, St);
        if (ze.asteriskToken) {
          const go =
            (Qa(ze.expression) & 8388608) === 0
              ? vt(r().createValuesHelper(er), ze)
              : er;
          Hl(go, ze);
        } else sc(er, ze);
        return (Pe(Jt), bf(ze));
      }
      function ir(ze) {
        return Di(ze.elements, void 0, void 0, ze.multiLine);
      }
      function Di(ze, Jt, er, go) {
        const Za = Nt(ze);
        let es;
        if (Za > 0) {
          es = xt();
          const tl = Xn(ze, re, St, 0, Za);
          (is(es, t.createArrayLiteralExpression(Jt ? [Jt, ...tl] : tl)),
            (Jt = void 0));
        }
        const Va = gu(ze, Mc, [], Za);
        return es
          ? t.createArrayConcatCall(es, [
              t.createArrayLiteralExpression(Va, go),
            ])
          : vt(t.createArrayLiteralExpression(Jt ? [Jt, ...Va] : Va, go), er);
        function Mc(tl, Ll) {
          if (Oe(Ll) && tl.length > 0) {
            const ql = es !== void 0;
            (es || (es = xt()),
              is(
                es,
                ql
                  ? t.createArrayConcatCall(es, [
                      t.createArrayLiteralExpression(tl, go),
                    ])
                  : t.createArrayLiteralExpression(Jt ? [Jt, ...tl] : tl, go),
              ),
              (Jt = void 0),
              (tl = []));
          }
          return (tl.push(C.checkDefined(st(Ll, re, St))), tl);
        }
      }
      function lo(ze) {
        const Jt = ze.properties,
          er = ze.multiLine,
          go = Nt(Jt),
          Za = xt();
        is(Za, t.createObjectLiteralExpression(Xn(Jt, re, ny, 0, go), er));
        const es = gu(Jt, Va, [], go);
        return (
          es.push(er ? au(ps(vt(t.cloneNode(Za), Za), Za.parent)) : Za),
          t.inlineExpressions(es)
        );
        function Va(Mc, tl) {
          Oe(tl) &&
            Mc.length > 0 &&
            (fa(t.createExpressionStatement(t.inlineExpressions(Mc))),
            (Mc = []));
          const Ll = Uie(t, ze, tl, Za),
            ql = st(Ll, re, St);
          return (ql && (er && au(ql), Mc.push(ql)), Mc);
        }
      }
      function zt(ze) {
        return Oe(ze.argumentExpression)
          ? t.updateElementAccessExpression(
              ze,
              te(C.checkDefined(st(ze.expression, re, $u))),
              C.checkDefined(st(ze.argumentExpression, re, St)),
            )
          : kn(ze, re, e);
      }
      function Zr(ze) {
        if (!Qu(ze) && Ye(ze.arguments, Oe)) {
          const { target: Jt, thisArg: er } = t.createCallBinding(
            ze.expression,
            l,
            d,
            !0,
          );
          return jr(
            vt(
              t.createFunctionApplyCall(
                te(C.checkDefined(st(Jt, re, $u))),
                er,
                Di(ze.arguments),
              ),
              ze,
            ),
            ze,
          );
        }
        return kn(ze, re, e);
      }
      function Ai(ze) {
        if (Ye(ze.arguments, Oe)) {
          const { target: Jt, thisArg: er } = t.createCallBinding(
            t.createPropertyAccessExpression(ze.expression, "bind"),
            l,
          );
          return jr(
            vt(
              t.createNewExpression(
                t.createFunctionApplyCall(
                  te(C.checkDefined(st(Jt, re, St))),
                  er,
                  Di(ze.arguments, t.createVoidZero()),
                ),
                void 0,
                [],
              ),
              ze,
            ),
            ze,
          );
        }
        return kn(ze, re, e);
      }
      function Ni(ze, Jt = 0) {
        const er = ze.length;
        for (let go = Jt; go < er; go++) Ci(ze[go]);
      }
      function Pr(ze) {
        ea(ze) ? Ni(ze.statements) : Ci(ze);
      }
      function Ci(ze) {
        const Jt = R;
        (R || (R = Oe(ze)), $e(ze), (R = Jt));
      }
      function $e(ze) {
        switch (ze.kind) {
          case 242:
            return At(ze);
          case 245:
            return mn(ze);
          case 246:
            return ai(ze);
          case 247:
            return qi(ze);
          case 248:
            return Ia(ze);
          case 249:
            return Uo(ze);
          case 250:
            return Ft(ze);
          case 252:
            return ht(ze);
          case 253:
            return Fe(ze);
          case 254:
            return dt(ze);
          case 255:
            return Ue(ze);
          case 256:
            return Rt(ze);
          case 257:
            return Ot(ze);
          case 258:
            return Kt(ze);
          case 259:
            return Tr(ze);
          default:
            return fa(st(ze, re, Vi));
        }
      }
      function At(ze) {
        Oe(ze) ? Ni(ze.statements) : fa(st(ze, re, Vi));
      }
      function mn(ze) {
        fa(st(ze, re, Vi));
      }
      function dr(ze) {
        for (const es of ze.declarations) {
          const Va = t.cloneNode(es.name);
          (Rc(Va, es.name), l(Va));
        }
        const Jt = _M(ze),
          er = Jt.length;
        let go = 0,
          Za = [];
        for (; go < er; ) {
          for (let es = go; es < er; es++) {
            const Va = Jt[es];
            if (Oe(Va.initializer) && Za.length > 0) break;
            Za.push(ri(Va));
          }
          Za.length &&
            (fa(t.createExpressionStatement(t.inlineExpressions(Za))),
            (go += Za.length),
            (Za = []));
        }
      }
      function ri(ze) {
        return Ua(
          t.createAssignment(
            Ua(t.cloneNode(ze.name), ze.name),
            C.checkDefined(st(ze.initializer, re, St)),
          ),
          ze,
        );
      }
      function ai(ze) {
        if (Oe(ze))
          if (Oe(ze.thenStatement) || Oe(ze.elseStatement)) {
            const Jt = Xt(),
              er = ze.elseStatement ? Xt() : void 0;
            (As(
              ze.elseStatement ? er : Jt,
              C.checkDefined(st(ze.expression, re, St)),
              ze.expression,
            ),
              Pr(ze.thenStatement),
              ze.elseStatement && (qa(Jt), Pe(er), Pr(ze.elseStatement)),
              Pe(Jt));
          } else fa(st(ze, re, Vi));
        else fa(st(ze, re, Vi));
      }
      function qi(ze) {
        if (Oe(ze)) {
          const Jt = Xt(),
            er = Xt();
          (wt(Jt),
            Pe(er),
            Pr(ze.statement),
            Pe(Jt),
            Zt(er, C.checkDefined(st(ze.expression, re, St))),
            En());
        } else fa(st(ze, re, Vi));
      }
      function $o(ze) {
        return R ? (yn(), (ze = kn(ze, re, e)), En(), ze) : kn(ze, re, e);
      }
      function Ia(ze) {
        if (Oe(ze)) {
          const Jt = Xt(),
            er = wt(Jt);
          (Pe(Jt),
            As(er, C.checkDefined(st(ze.expression, re, St))),
            Pr(ze.statement),
            qa(Jt),
            En());
        } else fa(st(ze, re, Vi));
      }
      function Mn(ze) {
        return R ? (yn(), (ze = kn(ze, re, e)), En(), ze) : kn(ze, re, e);
      }
      function Uo(ze) {
        if (Oe(ze)) {
          const Jt = Xt(),
            er = Xt(),
            go = wt(er);
          if (ze.initializer) {
            const Za = ze.initializer;
            _d(Za)
              ? dr(Za)
              : fa(
                  vt(
                    t.createExpressionStatement(C.checkDefined(st(Za, re, St))),
                    Za,
                  ),
                );
          }
          (Pe(Jt),
            ze.condition && As(go, C.checkDefined(st(ze.condition, re, St))),
            Pr(ze.statement),
            Pe(er),
            ze.incrementor &&
              fa(
                vt(
                  t.createExpressionStatement(
                    C.checkDefined(st(ze.incrementor, re, St)),
                  ),
                  ze.incrementor,
                ),
              ),
            qa(Jt),
            En());
        } else fa(st(ze, re, Vi));
      }
      function ot(ze) {
        R && yn();
        const Jt = ze.initializer;
        if (Jt && _d(Jt)) {
          for (const go of Jt.declarations) l(go.name);
          const er = _M(Jt);
          ze = t.updateForStatement(
            ze,
            er.length > 0 ? t.inlineExpressions(Vt(er, ri)) : void 0,
            st(ze.condition, re, St),
            st(ze.incrementor, re, St),
            Wu(ze.statement, re, e),
          );
        } else ze = kn(ze, re, e);
        return (R && En(), ze);
      }
      function Ft(ze) {
        if (Oe(ze)) {
          const Jt = xt(),
            er = xt(),
            go = xt(),
            Za = t.createLoopVariable(),
            es = ze.initializer;
          (l(Za),
            is(Jt, C.checkDefined(st(ze.expression, re, St))),
            is(er, t.createArrayLiteralExpression()),
            fa(
              t.createForInStatement(
                go,
                Jt,
                t.createExpressionStatement(
                  t.createCallExpression(
                    t.createPropertyAccessExpression(er, "push"),
                    void 0,
                    [go],
                  ),
                ),
              ),
            ),
            is(Za, t.createNumericLiteral(0)));
          const Va = Xt(),
            Mc = Xt(),
            tl = wt(Mc);
          (Pe(Va),
            As(
              tl,
              t.createLessThan(
                Za,
                t.createPropertyAccessExpression(er, "length"),
              ),
            ),
            is(go, t.createElementAccessExpression(er, Za)),
            As(Mc, t.createBinaryExpression(go, 103, Jt)));
          let Ll;
          if (_d(es)) {
            for (const ql of es.declarations) l(ql.name);
            Ll = t.cloneNode(es.declarations[0].name);
          } else ((Ll = C.checkDefined(st(es, re, St))), C.assert($u(Ll)));
          (is(Ll, go),
            Pr(ze.statement),
            Pe(Mc),
            fa(t.createExpressionStatement(t.createPostfixIncrement(Za))),
            qa(Va),
            En());
        } else fa(st(ze, re, Vi));
      }
      function le(ze) {
        R && yn();
        const Jt = ze.initializer;
        if (_d(Jt)) {
          for (const er of Jt.declarations) l(er.name);
          ze = t.updateForInStatement(
            ze,
            Jt.declarations[0].name,
            C.checkDefined(st(ze.expression, re, St)),
            C.checkDefined(st(ze.statement, re, Vi, t.liftToBlock)),
          );
        } else ze = kn(ze, re, e);
        return (R && En(), ze);
      }
      function ht(ze) {
        const Jt = Go(ze.label ? Kr(ze.label) : void 0);
        Jt > 0 ? qa(Jt, ze) : fa(ze);
      }
      function ne(ze) {
        if (R) {
          const Jt = Go(ze.label && Kr(ze.label));
          if (Jt > 0) return Ra(Jt, ze);
        }
        return kn(ze, re, e);
      }
      function Fe(ze) {
        const Jt = co(ze.label ? Kr(ze.label) : void 0);
        Jt > 0 ? qa(Jt, ze) : fa(ze);
      }
      function it(ze) {
        if (R) {
          const Jt = co(ze.label && Kr(ze.label));
          if (Jt > 0) return Ra(Jt, ze);
        }
        return kn(ze, re, e);
      }
      function dt(ze) {
        vd(st(ze.expression, re, St), ze);
      }
      function Lt(ze) {
        return ec(st(ze.expression, re, St), ze);
      }
      function Ue(ze) {
        Oe(ze)
          ? (Jn(te(C.checkDefined(st(ze.expression, re, St)))),
            Pr(ze.statement),
            ft())
          : fa(st(ze, re, Vi));
      }
      function Rt(ze) {
        if (Oe(ze.caseBlock)) {
          const Jt = ze.caseBlock,
            er = Jt.clauses.length,
            go = Ln(),
            Za = te(C.checkDefined(st(ze.expression, re, St))),
            es = [];
          let Va = -1;
          for (let Ll = 0; Ll < er; Ll++) {
            const ql = Jt.clauses[Ll];
            (es.push(Xt()), ql.kind === 298 && Va === -1 && (Va = Ll));
          }
          let Mc = 0,
            tl = [];
          for (; Mc < er; ) {
            let Ll = 0;
            for (let ql = Mc; ql < er; ql++) {
              const rf = Jt.clauses[ql];
              if (rf.kind === 297) {
                if (Oe(rf.expression) && tl.length > 0) break;
                tl.push(
                  t.createCaseClause(
                    C.checkDefined(st(rf.expression, re, St)),
                    [Ra(es[ql], rf.expression)],
                  ),
                );
              } else Ll++;
            }
            (tl.length &&
              (fa(t.createSwitchStatement(Za, t.createCaseBlock(tl))),
              (Mc += tl.length),
              (tl = [])),
              Ll > 0 && ((Mc += Ll), (Ll = 0)));
          }
          Va >= 0 ? qa(es[Va]) : qa(go);
          for (let Ll = 0; Ll < er; Ll++)
            (Pe(es[Ll]), Ni(Jt.clauses[Ll].statements));
          ln();
        } else fa(st(ze, re, Vi));
      }
      function It(ze) {
        return (R && xn(), (ze = kn(ze, re, e)), R && ln(), ze);
      }
      function Ot(ze) {
        Oe(ze)
          ? (ra(Kr(ze.label)), Pr(ze.statement), sa())
          : fa(st(ze, re, Vi));
      }
      function nt(ze) {
        return (R && Ii(Kr(ze.label)), (ze = kn(ze, re, e)), R && sa(), ze);
      }
      function Kt(ze) {
        Fs(C.checkDefined(st(ze.expression ?? t.createVoidZero(), re, St)), ze);
      }
      function Tr(ze) {
        Oe(ze)
          ? (Mt(),
            Pr(ze.tryBlock),
            ze.catchClause &&
              (jt(ze.catchClause.variableDeclaration),
              Pr(ze.catchClause.block)),
            ze.finallyBlock && (Qt(), Pr(ze.finallyBlock)),
            In())
          : fa(kn(ze, re, e));
      }
      function Oe(ze) {
        return !!ze && (ze.transformFlags & 1048576) !== 0;
      }
      function Nt(ze) {
        const Jt = ze.length;
        for (let er = 0; er < Jt; er++) if (Oe(ze[er])) return er;
        return -1;
      }
      function he(ze, Jt) {
        return ((Jt = h(ze, Jt)), ze === 1 ? B(Jt) : Jt);
      }
      function B(ze) {
        return He(ze) ? Ae(ze) : ze;
      }
      function Ae(ze) {
        if (!pl(ze) && g && g.has(Kr(ze))) {
          const Jt = yl(ze);
          if (He(Jt) && Jt.parent) {
            const er = _.getReferencedValueDeclaration(Jt);
            if (er) {
              const go = E[Fu(er)];
              if (go) {
                const Za = ps(vt(t.cloneNode(go), go), go.parent);
                return (Ua(Za, ze), Rc(Za, ze), Za);
              }
            }
          }
        }
        return ze;
      }
      function te(ze) {
        if (pl(ze) || Qa(ze) & 8192) return ze;
        const Jt = t.createTempVariable(l);
        return (is(Jt, ze, ze), Jt);
      }
      function xt(ze) {
        const Jt = ze ? t.createUniqueName(ze) : t.createTempVariable(void 0);
        return (l(Jt), Jt);
      }
      function Xt() {
        O || (O = []);
        const ze = j;
        return (j++, (O[ze] = -1), ze);
      }
      function Pe(ze) {
        (C.assert(O !== void 0, "No labels were defined."),
          (O[ze] = J ? J.length : 0));
      }
      function gt(ze) {
        N || ((N = []), (k = []), (P = []), (W = []));
        const Jt = k.length;
        return (
          (k[Jt] = 0),
          (P[Jt] = J ? J.length : 0),
          (N[Jt] = ze),
          W.push(ze),
          Jt
        );
      }
      function Bt() {
        const ze = gr();
        if (ze === void 0) return C.fail("beginBlock was never called.");
        const Jt = k.length;
        return (
          (k[Jt] = 1),
          (P[Jt] = J ? J.length : 0),
          (N[Jt] = ze),
          W.pop(),
          ze
        );
      }
      function gr() {
        return Zs(W);
      }
      function tr() {
        const ze = gr();
        return ze && ze.kind;
      }
      function Jn(ze) {
        const Jt = Xt(),
          er = Xt();
        (Pe(Jt), gt({ kind: 1, expression: ze, startLabel: Jt, endLabel: er }));
      }
      function ft() {
        C.assert(tr() === 1);
        const ze = Bt();
        Pe(ze.endLabel);
      }
      function Mt() {
        const ze = Xt(),
          Jt = Xt();
        return (
          Pe(ze),
          gt({ kind: 0, state: 0, startLabel: ze, endLabel: Jt }),
          Lo(),
          Jt
        );
      }
      function jt(ze) {
        C.assert(tr() === 0);
        let Jt;
        if (pl(ze.name)) ((Jt = ze.name), l(ze.name));
        else {
          const es = Kr(ze.name);
          ((Jt = xt(es)),
            g || ((g = new Map()), (E = []), e.enableSubstitution(80)),
            g.set(es, !0),
            (E[Fu(ze)] = Jt));
        }
        const er = gr();
        C.assert(er.state < 1);
        const go = er.endLabel;
        qa(go);
        const Za = Xt();
        (Pe(Za),
          (er.state = 1),
          (er.catchVariable = Jt),
          (er.catchLabel = Za),
          is(
            Jt,
            t.createCallExpression(
              t.createPropertyAccessExpression(ye, "sent"),
              void 0,
              [],
            ),
          ),
          Lo());
      }
      function Qt() {
        C.assert(tr() === 0);
        const ze = gr();
        C.assert(ze.state < 2);
        const Jt = ze.endLabel;
        qa(Jt);
        const er = Xt();
        (Pe(er), (ze.state = 2), (ze.finallyLabel = er));
      }
      function In() {
        C.assert(tr() === 0);
        const ze = Bt();
        (ze.state < 2 ? qa(ze.endLabel) : Ee(),
          Pe(ze.endLabel),
          Lo(),
          (ze.state = 3));
      }
      function yn() {
        gt({ kind: 3, isScript: !0, breakLabel: -1, continueLabel: -1 });
      }
      function wt(ze) {
        const Jt = Xt();
        return (
          gt({ kind: 3, isScript: !1, breakLabel: Jt, continueLabel: ze }),
          Jt
        );
      }
      function En() {
        C.assert(tr() === 3);
        const ze = Bt(),
          Jt = ze.breakLabel;
        ze.isScript || Pe(Jt);
      }
      function xn() {
        gt({ kind: 2, isScript: !0, breakLabel: -1 });
      }
      function Ln() {
        const ze = Xt();
        return (gt({ kind: 2, isScript: !1, breakLabel: ze }), ze);
      }
      function ln() {
        C.assert(tr() === 2);
        const ze = Bt(),
          Jt = ze.breakLabel;
        ze.isScript || Pe(Jt);
      }
      function Ii(ze) {
        gt({ kind: 4, isScript: !0, labelText: ze, breakLabel: -1 });
      }
      function ra(ze) {
        const Jt = Xt();
        gt({ kind: 4, isScript: !1, labelText: ze, breakLabel: Jt });
      }
      function sa() {
        C.assert(tr() === 4);
        const ze = Bt();
        ze.isScript || Pe(ze.breakLabel);
      }
      function zo(ze) {
        return ze.kind === 2 || ze.kind === 3;
      }
      function Bl(ze) {
        return ze.kind === 4;
      }
      function xl(ze) {
        return ze.kind === 3;
      }
      function Ps(ze, Jt) {
        for (let er = Jt; er >= 0; er--) {
          const go = W[er];
          if (Bl(go)) {
            if (go.labelText === ze) return !0;
          } else break;
        }
        return !1;
      }
      function co(ze) {
        if (W)
          if (ze)
            for (let Jt = W.length - 1; Jt >= 0; Jt--) {
              const er = W[Jt];
              if (Bl(er) && er.labelText === ze) return er.breakLabel;
              if (zo(er) && Ps(ze, Jt - 1)) return er.breakLabel;
            }
          else
            for (let Jt = W.length - 1; Jt >= 0; Jt--) {
              const er = W[Jt];
              if (zo(er)) return er.breakLabel;
            }
        return 0;
      }
      function Go(ze) {
        if (W)
          if (ze)
            for (let Jt = W.length - 1; Jt >= 0; Jt--) {
              const er = W[Jt];
              if (xl(er) && Ps(ze, Jt - 1)) return er.continueLabel;
            }
          else
            for (let Jt = W.length - 1; Jt >= 0; Jt--) {
              const er = W[Jt];
              if (xl(er)) return er.continueLabel;
            }
        return 0;
      }
      function Tc(ze) {
        if (ze !== void 0 && ze > 0) {
          G === void 0 && (G = []);
          const Jt = t.createNumericLiteral(Number.MAX_SAFE_INTEGER);
          return (G[ze] === void 0 ? (G[ze] = [Jt]) : G[ze].push(Jt), Jt);
        }
        return t.createOmittedExpression();
      }
      function $s(ze) {
        const Jt = t.createNumericLiteral(ze);
        return (OM(Jt, 3, _qe(ze)), Jt);
      }
      function Ra(ze, Jt) {
        return (
          C.assertLessThan(0, ze, "Invalid label"),
          vt(
            t.createReturnStatement(
              t.createArrayLiteralExpression([$s(3), Tc(ze)]),
            ),
            Jt,
          )
        );
      }
      function ec(ze, Jt) {
        return vt(
          t.createReturnStatement(
            t.createArrayLiteralExpression(ze ? [$s(2), ze] : [$s(2)]),
          ),
          Jt,
        );
      }
      function bf(ze) {
        return vt(
          t.createCallExpression(
            t.createPropertyAccessExpression(ye, "sent"),
            void 0,
            [],
          ),
          ze,
        );
      }
      function Lo() {
        Y(0);
      }
      function fa(ze) {
        ze ? Y(1, [ze]) : Lo();
      }
      function is(ze, Jt, er) {
        Y(2, [ze, Jt], er);
      }
      function qa(ze, Jt) {
        Y(3, [ze], Jt);
      }
      function Zt(ze, Jt, er) {
        Y(4, [ze, Jt], er);
      }
      function As(ze, Jt, er) {
        Y(5, [ze, Jt], er);
      }
      function Hl(ze, Jt) {
        Y(7, [ze], Jt);
      }
      function sc(ze, Jt) {
        Y(6, [ze], Jt);
      }
      function vd(ze, Jt) {
        Y(8, [ze], Jt);
      }
      function Fs(ze, Jt) {
        Y(9, [ze], Jt);
      }
      function Ee() {
        Y(10);
      }
      function Y(ze, Jt, er) {
        (J === void 0 && ((J = []), (Z = []), (q = [])),
          O === void 0 && Pe(Xt()));
        const go = J.length;
        ((J[go] = ze), (Z[go] = Jt), (q[go] = er));
      }
      function pt() {
        ((ie = 0),
          (K = 0),
          (pe = void 0),
          (de = !1),
          (fe = !1),
          (ve = void 0),
          (xe = void 0),
          (X = void 0),
          (Ce = void 0),
          (Je = void 0));
        const ze = qt();
        return r().createGeneratorHelper(
          Cr(
            t.createFunctionExpression(
              void 0,
              void 0,
              void 0,
              void 0,
              [t.createParameterDeclaration(void 0, void 0, ye)],
              void 0,
              t.createBlock(ze, ze.length > 0),
            ),
            1048576,
          ),
        );
      }
      function qt() {
        if (J) {
          for (let ze = 0; ze < J.length; ze++) Ns(ze);
          ur(J.length);
        } else ur(0);
        if (ve) {
          const ze = t.createPropertyAccessExpression(ye, "label"),
            Jt = t.createSwitchStatement(ze, t.createCaseBlock(ve));
          return [au(Jt)];
        }
        return xe || [];
      }
      function fn() {
        xe && (Dr(!de), (de = !1), (fe = !1), K++);
      }
      function ur(ze) {
        (si(ze) && (Fn(ze), (Je = void 0), fc(void 0, void 0)),
          xe && ve && Dr(!1),
          ro());
      }
      function si(ze) {
        if (!fe) return !0;
        if (!O || !G) return !1;
        for (let Jt = 0; Jt < O.length; Jt++)
          if (O[Jt] === ze && G[Jt]) return !0;
        return !1;
      }
      function Dr(ze) {
        if ((ve || (ve = []), xe)) {
          if (Je)
            for (let Jt = Je.length - 1; Jt >= 0; Jt--) {
              const er = Je[Jt];
              xe = [t.createWithStatement(er.expression, t.createBlock(xe))];
            }
          if (Ce) {
            const {
              startLabel: Jt,
              catchLabel: er,
              finallyLabel: go,
              endLabel: Za,
            } = Ce;
            (xe.unshift(
              t.createExpressionStatement(
                t.createCallExpression(
                  t.createPropertyAccessExpression(
                    t.createPropertyAccessExpression(ye, "trys"),
                    "push",
                  ),
                  void 0,
                  [
                    t.createArrayLiteralExpression([
                      Tc(Jt),
                      Tc(er),
                      Tc(go),
                      Tc(Za),
                    ]),
                  ],
                ),
              ),
            ),
              (Ce = void 0));
          }
          ze &&
            xe.push(
              t.createExpressionStatement(
                t.createAssignment(
                  t.createPropertyAccessExpression(ye, "label"),
                  t.createNumericLiteral(K + 1),
                ),
              ),
            );
        }
        (ve.push(t.createCaseClause(t.createNumericLiteral(K), xe || [])),
          (xe = void 0));
      }
      function Fn(ze) {
        if (O)
          for (let Jt = 0; Jt < O.length; Jt++)
            O[Jt] === ze &&
              (fn(),
              pe === void 0 && (pe = []),
              pe[K] === void 0 ? (pe[K] = [Jt]) : pe[K].push(Jt));
      }
      function ro() {
        if (G !== void 0 && pe !== void 0)
          for (let ze = 0; ze < pe.length; ze++) {
            const Jt = pe[ze];
            if (Jt !== void 0)
              for (const er of Jt) {
                const go = G[er];
                if (go !== void 0) for (const Za of go) Za.text = String(ze);
              }
          }
      }
      function So(ze) {
        if (N)
          for (; ie < k.length && P[ie] <= ze; ie++) {
            const Jt = N[ie],
              er = k[ie];
            switch (Jt.kind) {
              case 0:
                er === 0
                  ? (X || (X = []), xe || (xe = []), X.push(Ce), (Ce = Jt))
                  : er === 1 && (Ce = X.pop());
                break;
              case 1:
                er === 0
                  ? (Je || (Je = []), Je.push(Jt))
                  : er === 1 && Je.pop();
                break;
            }
          }
      }
      function Ns(ze) {
        if ((Fn(ze), So(ze), de)) return;
        ((de = !1), (fe = !1));
        const Jt = J[ze];
        if (Jt === 0) return;
        if (Jt === 10) return op();
        const er = Z[ze];
        if (Jt === 1) return Da(er[0]);
        const go = q[ze];
        switch (Jt) {
          case 2:
            return Qs(er[0], er[1], go);
          case 3:
            return Hs(er[0], go);
          case 4:
            return Pl(er[0], er[1], go);
          case 5:
            return vh(er[0], er[1], go);
          case 6:
            return Pd(er[0], go);
          case 7:
            return nf(er[0], go);
          case 8:
            return fc(er[0], go);
          case 9:
            return Sc(er[0], go);
        }
      }
      function Da(ze) {
        ze && (xe ? xe.push(ze) : (xe = [ze]));
      }
      function Qs(ze, Jt, er) {
        Da(vt(t.createExpressionStatement(t.createAssignment(ze, Jt)), er));
      }
      function Sc(ze, Jt) {
        ((de = !0), (fe = !0), Da(vt(t.createThrowStatement(ze), Jt)));
      }
      function fc(ze, Jt) {
        ((de = !0),
          (fe = !0),
          Da(
            Cr(
              vt(
                t.createReturnStatement(
                  t.createArrayLiteralExpression(ze ? [$s(2), ze] : [$s(2)]),
                ),
                Jt,
              ),
              768,
            ),
          ));
      }
      function Hs(ze, Jt) {
        ((de = !0),
          Da(
            Cr(
              vt(
                t.createReturnStatement(
                  t.createArrayLiteralExpression([$s(3), Tc(ze)]),
                ),
                Jt,
              ),
              768,
            ),
          ));
      }
      function Pl(ze, Jt, er) {
        Da(
          Cr(
            t.createIfStatement(
              Jt,
              Cr(
                vt(
                  t.createReturnStatement(
                    t.createArrayLiteralExpression([$s(3), Tc(ze)]),
                  ),
                  er,
                ),
                768,
              ),
            ),
            1,
          ),
        );
      }
      function vh(ze, Jt, er) {
        Da(
          Cr(
            t.createIfStatement(
              t.createLogicalNot(Jt),
              Cr(
                vt(
                  t.createReturnStatement(
                    t.createArrayLiteralExpression([$s(3), Tc(ze)]),
                  ),
                  er,
                ),
                768,
              ),
            ),
            1,
          ),
        );
      }
      function Pd(ze, Jt) {
        ((de = !0),
          Da(
            Cr(
              vt(
                t.createReturnStatement(
                  t.createArrayLiteralExpression(ze ? [$s(4), ze] : [$s(4)]),
                ),
                Jt,
              ),
              768,
            ),
          ));
      }
      function nf(ze, Jt) {
        ((de = !0),
          Da(
            Cr(
              vt(
                t.createReturnStatement(
                  t.createArrayLiteralExpression([$s(5), ze]),
                ),
                Jt,
              ),
              768,
            ),
          ));
      }
      function op() {
        ((de = !0),
          Da(t.createReturnStatement(t.createArrayLiteralExpression([$s(7)]))));
      }
    }
    function eH(e) {
      function t(he) {
        switch (he) {
          case 2:
            return Z;
          case 3:
            return q;
          default:
            return J;
        }
      }
      const {
          factory: r,
          getEmitHelperFactory: i,
          startLexicalEnvironment: o,
          endLexicalEnvironment: s,
          hoistVariableDeclaration: l,
        } = e,
        u = e.getCompilerOptions(),
        d = e.getEmitResolver(),
        _ = e.getEmitHost(),
        h = Ga(u),
        g = bu(u),
        E = e.onSubstituteNode,
        A = e.onEmitNode;
      ((e.onSubstituteNode = Rt),
        (e.onEmitNode = Ue),
        e.enableSubstitution(214),
        e.enableSubstitution(216),
        e.enableSubstitution(80),
        e.enableSubstitution(227),
        e.enableSubstitution(305),
        e.enableEmitNotification(308));
      const R = [];
      let N, P, k;
      const W = [];
      let O;
      return hh(e, G);
      function G(he) {
        if (
          he.isDeclarationFile ||
          !(
            HR(he, u) ||
            he.transformFlags & 8388608 ||
            (Ff(he) && O6(u) && u.outFile)
          )
        )
          return he;
        ((N = he),
          (P = qU(e, he)),
          (R[Fu(he)] = P),
          u.rewriteRelativeImportExtensions &&
            a4(he, !1, !1, (te) => {
              (!ds(te.arguments[0]) || Tk(te.arguments[0].text, u)) &&
                (k = Bn(k, te));
            }));
        const Ae = t(g)(he);
        return ((N = void 0), (P = void 0), (O = !1), Ae);
      }
      function j() {
        return Tg(N.fileName) &&
          N.commonJsModuleIndicator &&
          (!N.externalModuleIndicator || N.externalModuleIndicator === !0)
          ? !1
          : !!(!P.exportEquals && zc(N));
      }
      function J(he) {
        o();
        const B = [],
          Ae = Vd(u, "alwaysStrict") || zc(N),
          te = r.copyPrologue(he.statements, B, Ae && !Ff(he), de);
        if ((j() && Bn(B, Fe()), yt(P.exportedNames)))
          for (let Pe = 0; Pe < P.exportedNames.length; Pe += 50)
            Bn(
              B,
              r.createExpressionStatement(
                gu(
                  P.exportedNames.slice(Pe, Pe + 50),
                  (gt, Bt) =>
                    Bt.kind === 11
                      ? r.createAssignment(
                          r.createElementAccessExpression(
                            r.createIdentifier("exports"),
                            r.createStringLiteral(Bt.text),
                          ),
                          gt,
                        )
                      : r.createAssignment(
                          r.createPropertyAccessExpression(
                            r.createIdentifier("exports"),
                            r.createIdentifier(Kr(Bt)),
                          ),
                          gt,
                        ),
                  r.createVoidZero(),
                ),
              ),
            );
        for (const Xt of P.exportedFunctions) le(B, Xt);
        (Bn(B, st(P.externalHelpersImportDeclaration, de, Vi)),
          Xr(B, Xn(he.statements, de, Vi, te)),
          pe(B, !1),
          mg(B, s()));
        const xt = r.updateSourceFile(
          he,
          vt(r.createNodeArray(B), he.statements),
        );
        return (Ag(xt, e.readEmitHelpers()), xt);
      }
      function Z(he) {
        const B = r.createIdentifier("define"),
          Ae = Aw(r, he, _, u),
          te = Ff(he) && he,
          {
            aliasedModuleNames: xt,
            unaliasedModuleNames: Xt,
            importAliasNames: Pe,
          } = ye(he, !0),
          gt = r.updateSourceFile(
            he,
            vt(
              r.createNodeArray([
                r.createExpressionStatement(
                  r.createCallExpression(B, void 0, [
                    ...(Ae ? [Ae] : []),
                    r.createArrayLiteralExpression(
                      te
                        ? ae
                        : [
                            r.createStringLiteral("require"),
                            r.createStringLiteral("exports"),
                            ...xt,
                            ...Xt,
                          ],
                    ),
                    te
                      ? te.statements.length
                        ? te.statements[0].expression
                        : r.createObjectLiteralExpression()
                      : r.createFunctionExpression(
                          void 0,
                          void 0,
                          void 0,
                          void 0,
                          [
                            r.createParameterDeclaration(
                              void 0,
                              void 0,
                              "require",
                            ),
                            r.createParameterDeclaration(
                              void 0,
                              void 0,
                              "exports",
                            ),
                            ...Pe,
                          ],
                          void 0,
                          K(he),
                        ),
                  ]),
                ),
              ]),
              he.statements,
            ),
          );
        return (Ag(gt, e.readEmitHelpers()), gt);
      }
      function q(he) {
        const {
            aliasedModuleNames: B,
            unaliasedModuleNames: Ae,
            importAliasNames: te,
          } = ye(he, !1),
          xt = Aw(r, he, _, u),
          Xt = r.createFunctionExpression(
            void 0,
            void 0,
            void 0,
            void 0,
            [r.createParameterDeclaration(void 0, void 0, "factory")],
            void 0,
            vt(
              r.createBlock(
                [
                  r.createIfStatement(
                    r.createLogicalAnd(
                      r.createTypeCheck(r.createIdentifier("module"), "object"),
                      r.createTypeCheck(
                        r.createPropertyAccessExpression(
                          r.createIdentifier("module"),
                          "exports",
                        ),
                        "object",
                      ),
                    ),
                    r.createBlock([
                      r.createVariableStatement(void 0, [
                        r.createVariableDeclaration(
                          "v",
                          void 0,
                          void 0,
                          r.createCallExpression(
                            r.createIdentifier("factory"),
                            void 0,
                            [
                              r.createIdentifier("require"),
                              r.createIdentifier("exports"),
                            ],
                          ),
                        ),
                      ]),
                      Cr(
                        r.createIfStatement(
                          r.createStrictInequality(
                            r.createIdentifier("v"),
                            r.createIdentifier("undefined"),
                          ),
                          r.createExpressionStatement(
                            r.createAssignment(
                              r.createPropertyAccessExpression(
                                r.createIdentifier("module"),
                                "exports",
                              ),
                              r.createIdentifier("v"),
                            ),
                          ),
                        ),
                        1,
                      ),
                    ]),
                    r.createIfStatement(
                      r.createLogicalAnd(
                        r.createTypeCheck(
                          r.createIdentifier("define"),
                          "function",
                        ),
                        r.createPropertyAccessExpression(
                          r.createIdentifier("define"),
                          "amd",
                        ),
                      ),
                      r.createBlock([
                        r.createExpressionStatement(
                          r.createCallExpression(
                            r.createIdentifier("define"),
                            void 0,
                            [
                              ...(xt ? [xt] : []),
                              r.createArrayLiteralExpression([
                                r.createStringLiteral("require"),
                                r.createStringLiteral("exports"),
                                ...B,
                                ...Ae,
                              ]),
                              r.createIdentifier("factory"),
                            ],
                          ),
                        ),
                      ]),
                    ),
                  ),
                ],
                !0,
              ),
              void 0,
            ),
          ),
          Pe = r.updateSourceFile(
            he,
            vt(
              r.createNodeArray([
                r.createExpressionStatement(
                  r.createCallExpression(Xt, void 0, [
                    r.createFunctionExpression(
                      void 0,
                      void 0,
                      void 0,
                      void 0,
                      [
                        r.createParameterDeclaration(void 0, void 0, "require"),
                        r.createParameterDeclaration(void 0, void 0, "exports"),
                        ...te,
                      ],
                      void 0,
                      K(he),
                    ),
                  ]),
                ),
              ]),
              he.statements,
            ),
          );
        return (Ag(Pe, e.readEmitHelpers()), Pe);
      }
      function ye(he, B) {
        const Ae = [],
          te = [],
          xt = [];
        for (const Xt of he.amdDependencies)
          Xt.name
            ? (Ae.push(r.createStringLiteral(Xt.path)),
              xt.push(r.createParameterDeclaration(void 0, void 0, Xt.name)))
            : te.push(r.createStringLiteral(Xt.path));
        for (const Xt of P.externalImports) {
          const Pe = ZI(r, Xt, N, _, d, u),
            gt = PD(r, Xt, N);
          Pe &&
            (B && gt
              ? (Cr(gt, 8),
                Ae.push(Pe),
                xt.push(r.createParameterDeclaration(void 0, void 0, gt)))
              : te.push(Pe));
        }
        return {
          aliasedModuleNames: Ae,
          unaliasedModuleNames: te,
          importAliasNames: xt,
        };
      }
      function ie(he) {
        if (Fc(he) || pc(he) || !ZI(r, he, N, _, d, u)) return;
        const B = PD(r, he, N),
          Ae = Ni(he, B);
        if (Ae !== B)
          return r.createExpressionStatement(r.createAssignment(B, Ae));
      }
      function K(he) {
        o();
        const B = [],
          Ae = r.copyPrologue(he.statements, B, !0, de);
        (j() && Bn(B, Fe()),
          yt(P.exportedNames) &&
            Bn(
              B,
              r.createExpressionStatement(
                gu(
                  P.exportedNames,
                  (xt, Xt) =>
                    Xt.kind === 11
                      ? r.createAssignment(
                          r.createElementAccessExpression(
                            r.createIdentifier("exports"),
                            r.createStringLiteral(Xt.text),
                          ),
                          xt,
                        )
                      : r.createAssignment(
                          r.createPropertyAccessExpression(
                            r.createIdentifier("exports"),
                            r.createIdentifier(Kr(Xt)),
                          ),
                          xt,
                        ),
                  r.createVoidZero(),
                ),
              ),
            ));
        for (const xt of P.exportedFunctions) le(B, xt);
        (Bn(B, st(P.externalHelpersImportDeclaration, de, Vi)),
          g === 2 && Xr(B, Ui(P.externalImports, ie)),
          Xr(B, Xn(he.statements, de, Vi, Ae)),
          pe(B, !0),
          mg(B, s()));
        const te = r.createBlock(B, !0);
        return (O && zI(te, gqe), te);
      }
      function pe(he, B) {
        if (P.exportEquals) {
          const Ae = st(P.exportEquals.expression, xe, St);
          if (Ae)
            if (B) {
              const te = r.createReturnStatement(Ae);
              (vt(te, P.exportEquals), Cr(te, 3840), he.push(te));
            } else {
              const te = r.createExpressionStatement(
                r.createAssignment(
                  r.createPropertyAccessExpression(
                    r.createIdentifier("module"),
                    "exports",
                  ),
                  Ae,
                ),
              );
              (vt(te, P.exportEquals), Cr(te, 3072), he.push(te));
            }
        }
      }
      function de(he) {
        switch (he.kind) {
          case 273:
            return Pr(he);
          case 272:
            return $e(he);
          case 279:
            return At(he);
          case 278:
            return mn(he);
          default:
            return fe(he);
        }
      }
      function fe(he) {
        switch (he.kind) {
          case 244:
            return ai(he);
          case 263:
            return dr(he);
          case 264:
            return ri(he);
          case 249:
            return Se(he, !0);
          case 250:
            return re(he);
          case 251:
            return be(he);
          case 247:
            return Ne(he);
          case 248:
            return Be(he);
          case 257:
            return lt(he);
          case 255:
            return ce(he);
          case 246:
            return Re(he);
          case 256:
            return _e(he);
          case 270:
            return je(he);
          case 297:
            return Ge(he);
          case 298:
            return We(he);
          case 259:
            return at(he);
          case 300:
            return Wt(he);
          case 242:
            return cn(he);
          default:
            return xe(he);
        }
      }
      function ve(he, B) {
        if (!(he.transformFlags & 276828160) && !k?.length) return he;
        switch (he.kind) {
          case 249:
            return Se(he, !1);
          case 245:
            return gn(he);
          case 218:
            return Kn(he, B);
          case 356:
            return _t(he, B);
          case 214:
            const Ae = he === Ac(k);
            if ((Ae && k.shift(), Qu(he) && _.shouldTransformImportCall(N)))
              return Di(he, Ae);
            if (Ae) return ir(he);
            break;
          case 227:
            if (rv(he)) return Je(he, B);
            break;
          case 225:
          case 226:
            return en(he, B);
        }
        return kn(he, xe, e);
      }
      function xe(he) {
        return ve(he, !1);
      }
      function X(he) {
        return ve(he, !0);
      }
      function Ce(he) {
        if (Wa(he))
          for (const B of he.properties)
            switch (B.kind) {
              case 304:
                if (Ce(B.initializer)) return !0;
                break;
              case 305:
                if (Ce(B.name)) return !0;
                break;
              case 306:
                if (Ce(B.expression)) return !0;
                break;
              case 175:
              case 178:
              case 179:
                return !1;
              default:
                C.assertNever(B, "Unhandled object member kind");
            }
        else if (Cd(he)) {
          for (const B of he.elements)
            if (qf(B)) {
              if (Ce(B.expression)) return !0;
            } else if (Ce(B)) return !0;
        } else if (He(he)) return et(Nt(he)) > (N4(he) ? 1 : 0);
        return !1;
      }
      function Je(he, B) {
        return Ce(he.left) ? k1(he, xe, e, 0, !B, qi) : kn(he, xe, e);
      }
      function Se(he, B) {
        if (
          B &&
          he.initializer &&
          _d(he.initializer) &&
          !(he.initializer.flags & 7)
        ) {
          const Ae = ot(void 0, he.initializer, !1);
          if (Ae) {
            const te = [],
              xt = st(he.initializer, X, _d),
              Xt = r.createVariableStatement(void 0, xt);
            (te.push(Xt), Xr(te, Ae));
            const Pe = st(he.condition, xe, St),
              gt = st(he.incrementor, X, St),
              Bt = Wu(he.statement, B ? fe : xe, e);
            return (te.push(r.updateForStatement(he, void 0, Pe, gt, Bt)), te);
          }
        }
        return r.updateForStatement(
          he,
          st(he.initializer, X, Of),
          st(he.condition, xe, St),
          st(he.incrementor, X, St),
          Wu(he.statement, B ? fe : xe, e),
        );
      }
      function re(he) {
        if (_d(he.initializer) && !(he.initializer.flags & 7)) {
          const B = ot(void 0, he.initializer, !0);
          if (yt(B)) {
            const Ae = st(he.initializer, X, Of),
              te = st(he.expression, xe, St),
              xt = Wu(he.statement, fe, e),
              Xt = ea(xt)
                ? r.updateBlock(xt, [...B, ...xt.statements])
                : r.createBlock([...B, xt], !0);
            return r.updateForInStatement(he, Ae, te, Xt);
          }
        }
        return r.updateForInStatement(
          he,
          st(he.initializer, X, Of),
          st(he.expression, xe, St),
          Wu(he.statement, fe, e),
        );
      }
      function be(he) {
        if (_d(he.initializer) && !(he.initializer.flags & 7)) {
          const B = ot(void 0, he.initializer, !0),
            Ae = st(he.initializer, X, Of),
            te = st(he.expression, xe, St);
          let xt = Wu(he.statement, fe, e);
          return (
            yt(B) &&
              (xt = ea(xt)
                ? r.updateBlock(xt, [...B, ...xt.statements])
                : r.createBlock([...B, xt], !0)),
            r.updateForOfStatement(he, he.awaitModifier, Ae, te, xt)
          );
        }
        return r.updateForOfStatement(
          he,
          he.awaitModifier,
          st(he.initializer, X, Of),
          st(he.expression, xe, St),
          Wu(he.statement, fe, e),
        );
      }
      function Ne(he) {
        return r.updateDoStatement(
          he,
          Wu(he.statement, fe, e),
          st(he.expression, xe, St),
        );
      }
      function Be(he) {
        return r.updateWhileStatement(
          he,
          st(he.expression, xe, St),
          Wu(he.statement, fe, e),
        );
      }
      function lt(he) {
        return r.updateLabeledStatement(
          he,
          he.label,
          st(he.statement, fe, Vi, r.liftToBlock) ??
            vt(r.createEmptyStatement(), he.statement),
        );
      }
      function ce(he) {
        return r.updateWithStatement(
          he,
          st(he.expression, xe, St),
          C.checkDefined(st(he.statement, fe, Vi, r.liftToBlock)),
        );
      }
      function Re(he) {
        return r.updateIfStatement(
          he,
          st(he.expression, xe, St),
          st(he.thenStatement, fe, Vi, r.liftToBlock) ?? r.createBlock([]),
          st(he.elseStatement, fe, Vi, r.liftToBlock),
        );
      }
      function _e(he) {
        return r.updateSwitchStatement(
          he,
          st(he.expression, xe, St),
          C.checkDefined(st(he.caseBlock, fe, HM)),
        );
      }
      function je(he) {
        return r.updateCaseBlock(he, Xn(he.clauses, fe, AF));
      }
      function Ge(he) {
        return r.updateCaseClause(
          he,
          st(he.expression, xe, St),
          Xn(he.statements, fe, Vi),
        );
      }
      function We(he) {
        return kn(he, fe, e);
      }
      function at(he) {
        return kn(he, fe, e);
      }
      function Wt(he) {
        return r.updateCatchClause(
          he,
          he.variableDeclaration,
          C.checkDefined(st(he.block, fe, ea)),
        );
      }
      function cn(he) {
        return ((he = kn(he, fe, e)), he);
      }
      function gn(he) {
        return r.updateExpressionStatement(he, st(he.expression, X, St));
      }
      function Kn(he, B) {
        return r.updateParenthesizedExpression(
          he,
          st(he.expression, B ? X : xe, St),
        );
      }
      function _t(he, B) {
        return r.updatePartiallyEmittedExpression(
          he,
          st(he.expression, B ? X : xe, St),
        );
      }
      function en(he, B) {
        if (
          (he.operator === 46 || he.operator === 47) &&
          He(he.operand) &&
          !pl(he.operand) &&
          !fy(he.operand) &&
          !TV(he.operand)
        ) {
          const Ae = Nt(he.operand);
          if (Ae) {
            let te,
              xt = st(he.operand, xe, St);
            YT(he)
              ? (xt = r.updatePrefixUnaryExpression(he, xt))
              : ((xt = r.updatePostfixUnaryExpression(he, xt)),
                B ||
                  ((te = r.createTempVariable(l)),
                  (xt = r.createAssignment(te, xt)),
                  vt(xt, he)),
                (xt = r.createComma(xt, r.cloneNode(he.operand))),
                vt(xt, he));
            for (const Xt of Ae)
              ((W[ls(xt)] = !0), (xt = dt(Xt, xt)), vt(xt, he));
            return (
              te &&
                ((W[ls(xt)] = !0), (xt = r.createComma(xt, te)), vt(xt, he)),
              xt
            );
          }
        }
        return kn(he, xe, e);
      }
      function ir(he) {
        return r.updateCallExpression(
          he,
          he.expression,
          void 0,
          Xn(
            he.arguments,
            (B) =>
              B === he.arguments[0]
                ? ds(B)
                  ? ax(B, u)
                  : i().createRewriteRelativeImportExtensionsHelper(B)
                : xe(B),
            St,
          ),
        );
      }
      function Di(he, B) {
        if (g === 0 && h >= 7) return kn(he, xe, e);
        const Ae = ZI(r, he, N, _, d, u),
          te = st(Ac(he.arguments), xe, St),
          xt =
            Ae && (!te || !ka(te) || te.text !== Ae.text)
              ? Ae
              : te && B
                ? ka(te)
                  ? ax(te, u)
                  : i().createRewriteRelativeImportExtensionsHelper(te)
                : te,
          Xt = !!(he.transformFlags & 16384);
        switch (u.module) {
          case 2:
            return zt(xt, Xt);
          case 3:
            return lo(xt ?? r.createVoidZero(), Xt);
          case 1:
          default:
            return Zr(xt);
        }
      }
      function lo(he, B) {
        if (((O = !0), KS(he))) {
          const Ae = pl(he)
            ? he
            : ka(he)
              ? r.createStringLiteralFromNode(he)
              : Cr(vt(r.cloneNode(he), he), 3072);
          return r.createConditionalExpression(
            r.createIdentifier("__syncRequire"),
            void 0,
            Zr(he),
            void 0,
            zt(Ae, B),
          );
        } else {
          const Ae = r.createTempVariable(l);
          return r.createComma(
            r.createAssignment(Ae, he),
            r.createConditionalExpression(
              r.createIdentifier("__syncRequire"),
              void 0,
              Zr(Ae, !0),
              void 0,
              zt(Ae, B),
            ),
          );
        }
      }
      function zt(he, B) {
        const Ae = r.createUniqueName("resolve"),
          te = r.createUniqueName("reject"),
          xt = [
            r.createParameterDeclaration(void 0, void 0, Ae),
            r.createParameterDeclaration(void 0, void 0, te),
          ],
          Xt = r.createBlock([
            r.createExpressionStatement(
              r.createCallExpression(r.createIdentifier("require"), void 0, [
                r.createArrayLiteralExpression([
                  he || r.createOmittedExpression(),
                ]),
                Ae,
                te,
              ]),
            ),
          ]);
        let Pe;
        h >= 2
          ? (Pe = r.createArrowFunction(void 0, void 0, xt, void 0, void 0, Xt))
          : ((Pe = r.createFunctionExpression(
              void 0,
              void 0,
              void 0,
              void 0,
              xt,
              void 0,
              Xt,
            )),
            B && Cr(Pe, 16));
        const gt = r.createNewExpression(
          r.createIdentifier("Promise"),
          void 0,
          [Pe],
        );
        return $h(u)
          ? r.createCallExpression(
              r.createPropertyAccessExpression(gt, r.createIdentifier("then")),
              void 0,
              [i().createImportStarCallbackHelper()],
            )
          : gt;
      }
      function Zr(he, B) {
        const Ae = he && !z_(he) && !B,
          te = r.createCallExpression(
            r.createPropertyAccessExpression(
              r.createIdentifier("Promise"),
              "resolve",
            ),
            void 0,
            Ae
              ? h >= 2
                ? [
                    r.createTemplateExpression(r.createTemplateHead(""), [
                      r.createTemplateSpan(he, r.createTemplateTail("")),
                    ]),
                  ]
                : [
                    r.createCallExpression(
                      r.createPropertyAccessExpression(
                        r.createStringLiteral(""),
                        "concat",
                      ),
                      void 0,
                      [he],
                    ),
                  ]
              : [],
          );
        let xt = r.createCallExpression(
          r.createIdentifier("require"),
          void 0,
          Ae ? [r.createIdentifier("s")] : he ? [he] : [],
        );
        $h(u) && (xt = i().createImportStarHelper(xt));
        const Xt = Ae
          ? [r.createParameterDeclaration(void 0, void 0, "s")]
          : [];
        let Pe;
        return (
          h >= 2
            ? (Pe = r.createArrowFunction(
                void 0,
                void 0,
                Xt,
                void 0,
                void 0,
                xt,
              ))
            : (Pe = r.createFunctionExpression(
                void 0,
                void 0,
                void 0,
                void 0,
                Xt,
                void 0,
                r.createBlock([r.createReturnStatement(xt)]),
              )),
          r.createCallExpression(
            r.createPropertyAccessExpression(te, "then"),
            void 0,
            [Pe],
          )
        );
      }
      function Ai(he, B) {
        return !$h(u) || Fm(he) & 2
          ? B
          : yae(he)
            ? i().createImportStarHelper(B)
            : B;
      }
      function Ni(he, B) {
        return !$h(u) || Fm(he) & 2
          ? B
          : m3(he)
            ? i().createImportStarHelper(B)
            : HU(he)
              ? i().createImportDefaultHelper(B)
              : B;
      }
      function Pr(he) {
        let B;
        const Ae = ZR(he);
        if (g !== 2)
          if (he.importClause) {
            const te = [];
            (Ae && !s1(he)
              ? te.push(
                  r.createVariableDeclaration(
                    r.cloneNode(Ae.name),
                    void 0,
                    void 0,
                    Ni(he, Ci(he)),
                  ),
                )
              : (te.push(
                  r.createVariableDeclaration(
                    r.getGeneratedNameForNode(he),
                    void 0,
                    void 0,
                    Ni(he, Ci(he)),
                  ),
                ),
                Ae &&
                  s1(he) &&
                  te.push(
                    r.createVariableDeclaration(
                      r.cloneNode(Ae.name),
                      void 0,
                      void 0,
                      r.getGeneratedNameForNode(he),
                    ),
                  )),
              (B = Bn(
                B,
                jr(
                  vt(
                    r.createVariableStatement(
                      void 0,
                      r.createVariableDeclarationList(te, h >= 2 ? 2 : 0),
                    ),
                    he,
                  ),
                  he,
                ),
              )));
          } else return jr(vt(r.createExpressionStatement(Ci(he)), he), he);
        else
          Ae &&
            s1(he) &&
            (B = Bn(
              B,
              r.createVariableStatement(
                void 0,
                r.createVariableDeclarationList(
                  [
                    jr(
                      vt(
                        r.createVariableDeclaration(
                          r.cloneNode(Ae.name),
                          void 0,
                          void 0,
                          r.getGeneratedNameForNode(he),
                        ),
                        he,
                      ),
                      he,
                    ),
                  ],
                  h >= 2 ? 2 : 0,
                ),
              ),
            ));
        return ((B = Ia(B, he)), I_(B));
      }
      function Ci(he) {
        const B = ZI(r, he, N, _, d, u),
          Ae = [];
        return (
          B && Ae.push(ax(B, u)),
          r.createCallExpression(r.createIdentifier("require"), void 0, Ae)
        );
      }
      function $e(he) {
        C.assert(
          FT(he),
          "import= for internal module references should be handled in an earlier transformer.",
        );
        let B;
        return (
          g !== 2
            ? di(he, 32)
              ? (B = Bn(
                  B,
                  jr(
                    vt(r.createExpressionStatement(dt(he.name, Ci(he))), he),
                    he,
                  ),
                ))
              : (B = Bn(
                  B,
                  jr(
                    vt(
                      r.createVariableStatement(
                        void 0,
                        r.createVariableDeclarationList(
                          [
                            r.createVariableDeclaration(
                              r.cloneNode(he.name),
                              void 0,
                              void 0,
                              Ci(he),
                            ),
                          ],
                          h >= 2 ? 2 : 0,
                        ),
                      ),
                      he,
                    ),
                    he,
                  ),
                ))
            : di(he, 32) &&
              (B = Bn(
                B,
                jr(
                  vt(
                    r.createExpressionStatement(
                      dt(r.getExportName(he), r.getLocalName(he)),
                    ),
                    he,
                  ),
                  he,
                ),
              )),
          (B = Mn(B, he)),
          I_(B)
        );
      }
      function At(he) {
        if (!he.moduleSpecifier) return;
        const B = r.getGeneratedNameForNode(he);
        if (he.exportClause && Jf(he.exportClause)) {
          const Ae = [];
          g !== 2 &&
            Ae.push(
              jr(
                vt(
                  r.createVariableStatement(
                    void 0,
                    r.createVariableDeclarationList([
                      r.createVariableDeclaration(B, void 0, void 0, Ci(he)),
                    ]),
                  ),
                  he,
                ),
                he,
              ),
            );
          for (const te of he.exportClause.elements) {
            const xt = te.propertyName || te.name,
              Pe =
                !!$h(u) && !(Fm(he) & 2) && N_(xt)
                  ? i().createImportDefaultHelper(B)
                  : B,
              gt =
                xt.kind === 11
                  ? r.createElementAccessExpression(Pe, xt)
                  : r.createPropertyAccessExpression(Pe, xt);
            Ae.push(
              jr(
                vt(
                  r.createExpressionStatement(
                    dt(
                      te.name.kind === 11
                        ? r.cloneNode(te.name)
                        : r.getExportName(te),
                      gt,
                      void 0,
                      !0,
                    ),
                  ),
                  te,
                ),
                te,
              ),
            );
          }
          return I_(Ae);
        } else if (he.exportClause) {
          const Ae = [];
          return (
            Ae.push(
              jr(
                vt(
                  r.createExpressionStatement(
                    dt(
                      r.cloneNode(he.exportClause.name),
                      Ai(
                        he,
                        g !== 2
                          ? Ci(he)
                          : OF(he) || he.exportClause.name.kind === 11
                            ? B
                            : r.createIdentifier(Kr(he.exportClause.name)),
                      ),
                    ),
                  ),
                  he,
                ),
                he,
              ),
            ),
            I_(Ae)
          );
        } else
          return jr(
            vt(
              r.createExpressionStatement(
                i().createExportStarHelper(g !== 2 ? Ci(he) : B),
              ),
              he,
            ),
            he,
          );
      }
      function mn(he) {
        if (!he.isExportEquals)
          return it(
            r.createIdentifier("default"),
            st(he.expression, xe, St),
            he,
            !0,
          );
      }
      function dr(he) {
        let B;
        return (
          di(he, 32)
            ? (B = Bn(
                B,
                jr(
                  vt(
                    r.createFunctionDeclaration(
                      Xn(he.modifiers, Lt, Aa),
                      he.asteriskToken,
                      r.getDeclarationName(he, !0, !0),
                      void 0,
                      Xn(he.parameters, xe, to),
                      void 0,
                      kn(he.body, xe, e),
                    ),
                    he,
                  ),
                  he,
                ),
              ))
            : (B = Bn(B, kn(he, xe, e))),
          I_(B)
        );
      }
      function ri(he) {
        let B;
        return (
          di(he, 32)
            ? (B = Bn(
                B,
                jr(
                  vt(
                    r.createClassDeclaration(
                      Xn(he.modifiers, Lt, fl),
                      r.getDeclarationName(he, !0, !0),
                      void 0,
                      Xn(he.heritageClauses, xe, Fp),
                      Xn(he.members, xe, bc),
                    ),
                    he,
                  ),
                  he,
                ),
              ))
            : (B = Bn(B, kn(he, xe, e))),
          (B = le(B, he)),
          I_(B)
        );
      }
      function ai(he) {
        let B, Ae, te;
        if (di(he, 32)) {
          let xt,
            Xt = !1;
          for (const Pe of he.declarationList.declarations)
            if (He(Pe.name) && fy(Pe.name))
              if ((xt || (xt = Xn(he.modifiers, Lt, Aa)), Pe.initializer)) {
                const gt = r.updateVariableDeclaration(
                  Pe,
                  Pe.name,
                  void 0,
                  void 0,
                  dt(Pe.name, st(Pe.initializer, xe, St)),
                );
                Ae = Bn(Ae, gt);
              } else Ae = Bn(Ae, Pe);
            else if (Pe.initializer)
              if (
                !Qo(Pe.name) &&
                (Xs(Pe.initializer) || Us(Pe.initializer) || dc(Pe.initializer))
              ) {
                const gt = r.createAssignment(
                    vt(
                      r.createPropertyAccessExpression(
                        r.createIdentifier("exports"),
                        Pe.name,
                      ),
                      Pe.name,
                    ),
                    r.createIdentifier(zf(Pe.name)),
                  ),
                  Bt = r.createVariableDeclaration(
                    Pe.name,
                    Pe.exclamationToken,
                    Pe.type,
                    st(Pe.initializer, xe, St),
                  );
                ((Ae = Bn(Ae, Bt)), (te = Bn(te, gt)), (Xt = !0));
              } else te = Bn(te, $o(Pe));
          if (
            (Ae &&
              (B = Bn(
                B,
                r.updateVariableStatement(
                  he,
                  xt,
                  r.updateVariableDeclarationList(he.declarationList, Ae),
                ),
              )),
            te)
          ) {
            const Pe = jr(
              vt(r.createExpressionStatement(r.inlineExpressions(te)), he),
              he,
            );
            (Xt && cw(Pe), (B = Bn(B, Pe)));
          }
        } else B = Bn(B, kn(he, xe, e));
        return ((B = Uo(B, he)), I_(B));
      }
      function qi(he, B, Ae) {
        const te = Nt(he);
        if (te) {
          let xt = N4(he) ? B : r.createAssignment(he, B);
          for (const Xt of te) (Cr(xt, 8), (xt = dt(Xt, xt, Ae)));
          return xt;
        }
        return r.createAssignment(he, B);
      }
      function $o(he) {
        return Qo(he.name)
          ? k1(st(he, xe, Vk), xe, e, 0, !1, qi)
          : r.createAssignment(
              vt(
                r.createPropertyAccessExpression(
                  r.createIdentifier("exports"),
                  he.name,
                ),
                he.name,
              ),
              he.initializer ? st(he.initializer, xe, St) : r.createVoidZero(),
            );
      }
      function Ia(he, B) {
        if (P.exportEquals) return he;
        const Ae = B.importClause;
        if (!Ae) return he;
        const te = new jD();
        Ae.name && (he = ht(he, te, Ae));
        const xt = Ae.namedBindings;
        if (xt)
          switch (xt.kind) {
            case 275:
              he = ht(he, te, xt);
              break;
            case 276:
              for (const Xt of xt.elements) he = ht(he, te, Xt, !0);
              break;
          }
        return he;
      }
      function Mn(he, B) {
        return P.exportEquals ? he : ht(he, new jD(), B);
      }
      function Uo(he, B) {
        return ot(he, B.declarationList, !1);
      }
      function ot(he, B, Ae) {
        if (P.exportEquals) return he;
        for (const te of B.declarations) he = Ft(he, te, Ae);
        return he;
      }
      function Ft(he, B, Ae) {
        if (P.exportEquals) return he;
        if (Qo(B.name))
          for (const te of B.name.elements) Jc(te) || (he = Ft(he, te, Ae));
        else
          !pl(B.name) &&
            (!yi(B) || B.initializer || Ae) &&
            (he = ht(he, new jD(), B));
        return he;
      }
      function le(he, B) {
        if (P.exportEquals) return he;
        const Ae = new jD();
        if (di(B, 32)) {
          const te = di(B, 2048)
            ? r.createIdentifier("default")
            : r.getDeclarationName(B);
          he = ne(he, Ae, te, r.getLocalName(B), B);
        }
        return (B.name && (he = ht(he, Ae, B)), he);
      }
      function ht(he, B, Ae, te) {
        const xt = r.getDeclarationName(Ae),
          Xt = P.exportSpecifiers.get(xt);
        if (Xt)
          for (const Pe of Xt) he = ne(he, B, Pe.name, xt, Pe.name, void 0, te);
        return he;
      }
      function ne(he, B, Ae, te, xt, Xt, Pe) {
        if (Ae.kind !== 11) {
          if (B.has(Ae)) return he;
          B.set(Ae, !0);
        }
        return ((he = Bn(he, it(Ae, te, xt, Xt, Pe))), he);
      }
      function Fe() {
        const he = r.createExpressionStatement(
          r.createCallExpression(
            r.createPropertyAccessExpression(
              r.createIdentifier("Object"),
              "defineProperty",
            ),
            void 0,
            [
              r.createIdentifier("exports"),
              r.createStringLiteral("__esModule"),
              r.createObjectLiteralExpression([
                r.createPropertyAssignment("value", r.createTrue()),
              ]),
            ],
          ),
        );
        return (Cr(he, 2097152), he);
      }
      function it(he, B, Ae, te, xt) {
        const Xt = vt(r.createExpressionStatement(dt(he, B, void 0, xt)), Ae);
        return (au(Xt), te || Cr(Xt, 3072), Xt);
      }
      function dt(he, B, Ae, te) {
        return vt(
          te
            ? r.createCallExpression(
                r.createPropertyAccessExpression(
                  r.createIdentifier("Object"),
                  "defineProperty",
                ),
                void 0,
                [
                  r.createIdentifier("exports"),
                  r.createStringLiteralFromNode(he),
                  r.createObjectLiteralExpression([
                    r.createPropertyAssignment("enumerable", r.createTrue()),
                    r.createPropertyAssignment(
                      "get",
                      r.createFunctionExpression(
                        void 0,
                        void 0,
                        void 0,
                        void 0,
                        [],
                        void 0,
                        r.createBlock([r.createReturnStatement(B)]),
                      ),
                    ),
                  ]),
                ],
              )
            : r.createAssignment(
                he.kind === 11
                  ? r.createElementAccessExpression(
                      r.createIdentifier("exports"),
                      r.cloneNode(he),
                    )
                  : r.createPropertyAccessExpression(
                      r.createIdentifier("exports"),
                      r.cloneNode(he),
                    ),
                B,
              ),
          Ae,
        );
      }
      function Lt(he) {
        switch (he.kind) {
          case 95:
          case 90:
            return;
        }
        return he;
      }
      function Ue(he, B, Ae) {
        B.kind === 308
          ? ((N = B), (P = R[Fu(N)]), A(he, B, Ae), (N = void 0), (P = void 0))
          : A(he, B, Ae);
      }
      function Rt(he, B) {
        return (
          (B = E(he, B)),
          B.id && W[B.id] ? B : he === 1 ? Ot(B) : Ud(B) ? It(B) : B
        );
      }
      function It(he) {
        const B = he.name,
          Ae = Tr(B);
        if (Ae !== B) {
          if (he.objectAssignmentInitializer) {
            const te = r.createAssignment(Ae, he.objectAssignmentInitializer);
            return vt(r.createPropertyAssignment(B, te), he);
          }
          return vt(r.createPropertyAssignment(B, Ae), he);
        }
        return he;
      }
      function Ot(he) {
        switch (he.kind) {
          case 80:
            return Tr(he);
          case 214:
            return nt(he);
          case 216:
            return Kt(he);
          case 227:
            return Oe(he);
        }
        return he;
      }
      function nt(he) {
        if (He(he.expression)) {
          const B = Tr(he.expression);
          if (((W[ls(B)] = !0), !He(B) && !(Qa(he.expression) & 8192)))
            return h1(r.updateCallExpression(he, B, void 0, he.arguments), 16);
        }
        return he;
      }
      function Kt(he) {
        if (He(he.tag)) {
          const B = Tr(he.tag);
          if (((W[ls(B)] = !0), !He(B) && !(Qa(he.tag) & 8192)))
            return h1(
              r.updateTaggedTemplateExpression(he, B, void 0, he.template),
              16,
            );
        }
        return he;
      }
      function Tr(he) {
        var B, Ae;
        if (Qa(he) & 8192) {
          const te = Ew(N);
          return te ? r.createPropertyAccessExpression(te, he) : he;
        } else if (
          !(pl(he) && !(he.emitNode.autoGenerate.flags & 64)) &&
          !fy(he)
        ) {
          const te = d.getReferencedExportContainer(he, N4(he));
          if (te && te.kind === 308)
            return vt(
              r.createPropertyAccessExpression(
                r.createIdentifier("exports"),
                r.cloneNode(he),
              ),
              he,
            );
          const xt = d.getReferencedImportDeclaration(he);
          if (xt) {
            if (Vm(xt))
              return vt(
                r.createPropertyAccessExpression(
                  r.getGeneratedNameForNode(xt.parent),
                  r.createIdentifier("default"),
                ),
                he,
              );
            if (Eu(xt)) {
              const Xt = xt.propertyName || xt.name,
                Pe = r.getGeneratedNameForNode(
                  ((Ae = (B = xt.parent) == null ? void 0 : B.parent) == null
                    ? void 0
                    : Ae.parent) || xt,
                );
              return vt(
                Xt.kind === 11
                  ? r.createElementAccessExpression(Pe, r.cloneNode(Xt))
                  : r.createPropertyAccessExpression(Pe, r.cloneNode(Xt)),
                he,
              );
            }
          }
        }
        return he;
      }
      function Oe(he) {
        if (
          sy(he.operatorToken.kind) &&
          He(he.left) &&
          (!pl(he.left) || F2(he.left)) &&
          !fy(he.left)
        ) {
          const B = Nt(he.left);
          if (B) {
            let Ae = he;
            for (const te of B) ((W[ls(Ae)] = !0), (Ae = dt(te, Ae, he)));
            return Ae;
          }
        }
        return he;
      }
      function Nt(he) {
        if (pl(he)) {
          if (F2(he)) {
            const B = P?.exportSpecifiers.get(he);
            if (B) {
              const Ae = [];
              for (const te of B) Ae.push(te.name);
              return Ae;
            }
          }
        } else {
          const B = d.getReferencedImportDeclaration(he);
          if (B) return P?.exportedBindings[Fu(B)];
          const Ae = new Set(),
            te = d.getReferencedValueDeclarations(he);
          if (te) {
            for (const xt of te) {
              const Xt = P?.exportedBindings[Fu(xt)];
              if (Xt) for (const Pe of Xt) Ae.add(Pe);
            }
            if (Ae.size) return Co(Ae);
          }
        }
      }
    }
    var gqe = {
      name: "typescript:dynamicimport-sync-require",
      scoped: !0,
      text: `
            var __syncRequire = typeof module === "object" && typeof module.exports === "object";`,
    };
    function Jae(e) {
      const {
          factory: t,
          startLexicalEnvironment: r,
          endLexicalEnvironment: i,
          hoistVariableDeclaration: o,
        } = e,
        s = e.getCompilerOptions(),
        l = e.getEmitResolver(),
        u = e.getEmitHost(),
        d = e.onSubstituteNode,
        _ = e.onEmitNode;
      ((e.onSubstituteNode = Fe),
        (e.onEmitNode = ne),
        e.enableSubstitution(80),
        e.enableSubstitution(305),
        e.enableSubstitution(227),
        e.enableSubstitution(237),
        e.enableEmitNotification(308));
      const h = [],
        g = [],
        E = [],
        A = [];
      let R, N, P, k, W, O, G;
      return hh(e, j);
      function j(Oe) {
        if (Oe.isDeclarationFile || !(HR(Oe, s) || Oe.transformFlags & 8388608))
          return Oe;
        const Nt = Fu(Oe);
        ((R = Oe),
          (O = Oe),
          (N = h[Nt] = qU(e, Oe)),
          (P = t.createUniqueName("exports")),
          (g[Nt] = P),
          (k = A[Nt] = t.createUniqueName("context")));
        const he = J(N.externalImports),
          B = Z(Oe, he),
          Ae = t.createFunctionExpression(
            void 0,
            void 0,
            void 0,
            void 0,
            [
              t.createParameterDeclaration(void 0, void 0, P),
              t.createParameterDeclaration(void 0, void 0, k),
            ],
            void 0,
            B,
          ),
          te = Aw(t, Oe, u, s),
          xt = t.createArrayLiteralExpression(Vt(he, (Pe) => Pe.name)),
          Xt = Cr(
            t.updateSourceFile(
              Oe,
              vt(
                t.createNodeArray([
                  t.createExpressionStatement(
                    t.createCallExpression(
                      t.createPropertyAccessExpression(
                        t.createIdentifier("System"),
                        "register",
                      ),
                      void 0,
                      te ? [te, xt, Ae] : [xt, Ae],
                    ),
                  ),
                ]),
                Oe.statements,
              ),
            ),
            2048,
          );
        return (
          s.outFile || oie(Xt, B, (Pe) => !Pe.scoped),
          G && ((E[Nt] = G), (G = void 0)),
          (R = void 0),
          (N = void 0),
          (P = void 0),
          (k = void 0),
          (W = void 0),
          (O = void 0),
          Xt
        );
      }
      function J(Oe) {
        const Nt = new Map(),
          he = [];
        for (const B of Oe) {
          const Ae = ZI(t, B, R, u, l, s);
          if (Ae) {
            const te = Ae.text,
              xt = Nt.get(te);
            xt !== void 0
              ? he[xt].externalImports.push(B)
              : (Nt.set(te, he.length),
                he.push({ name: Ae, externalImports: [B] }));
          }
        }
        return he;
      }
      function Z(Oe, Nt) {
        const he = [];
        r();
        const B = Vd(s, "alwaysStrict") || zc(R),
          Ae = t.copyPrologue(Oe.statements, he, B, K);
        (he.push(
          t.createVariableStatement(
            void 0,
            t.createVariableDeclarationList([
              t.createVariableDeclaration(
                "__moduleName",
                void 0,
                void 0,
                t.createLogicalAnd(
                  k,
                  t.createPropertyAccessExpression(k, "id"),
                ),
              ),
            ]),
          ),
        ),
          st(N.externalHelpersImportDeclaration, K, Vi));
        const te = Xn(Oe.statements, K, Vi, Ae);
        (Xr(he, W), mg(he, i()));
        const xt = q(he),
          Xt =
            Oe.transformFlags & 2097152
              ? t.createModifiersFromModifierFlags(1024)
              : void 0,
          Pe = t.createObjectLiteralExpression(
            [
              t.createPropertyAssignment("setters", ie(xt, Nt)),
              t.createPropertyAssignment(
                "execute",
                t.createFunctionExpression(
                  Xt,
                  void 0,
                  void 0,
                  void 0,
                  [],
                  void 0,
                  t.createBlock(te, !0),
                ),
              ),
            ],
            !0,
          );
        return (he.push(t.createReturnStatement(Pe)), t.createBlock(he, !0));
      }
      function q(Oe) {
        if (!N.hasExportStarsToExportValues) return;
        if (
          !yt(N.exportedNames) &&
          N.exportedFunctions.size === 0 &&
          N.exportSpecifiers.size === 0
        ) {
          let Ae = !1;
          for (const te of N.externalImports)
            if (te.kind === 279 && te.exportClause) {
              Ae = !0;
              break;
            }
          if (!Ae) {
            const te = ye(void 0);
            return (Oe.push(te), te.name);
          }
        }
        const Nt = [];
        if (N.exportedNames)
          for (const Ae of N.exportedNames)
            N_(Ae) ||
              Nt.push(
                t.createPropertyAssignment(
                  t.createStringLiteralFromNode(Ae),
                  t.createTrue(),
                ),
              );
        for (const Ae of N.exportedFunctions)
          di(Ae, 2048) ||
            (C.assert(!!Ae.name),
            Nt.push(
              t.createPropertyAssignment(
                t.createStringLiteralFromNode(Ae.name),
                t.createTrue(),
              ),
            ));
        const he = t.createUniqueName("exportedNames");
        Oe.push(
          t.createVariableStatement(
            void 0,
            t.createVariableDeclarationList([
              t.createVariableDeclaration(
                he,
                void 0,
                void 0,
                t.createObjectLiteralExpression(Nt, !0),
              ),
            ]),
          ),
        );
        const B = ye(he);
        return (Oe.push(B), B.name);
      }
      function ye(Oe) {
        const Nt = t.createUniqueName("exportStar"),
          he = t.createIdentifier("m"),
          B = t.createIdentifier("n"),
          Ae = t.createIdentifier("exports");
        let te = t.createStrictInequality(B, t.createStringLiteral("default"));
        return (
          Oe &&
            (te = t.createLogicalAnd(
              te,
              t.createLogicalNot(
                t.createCallExpression(
                  t.createPropertyAccessExpression(Oe, "hasOwnProperty"),
                  void 0,
                  [B],
                ),
              ),
            )),
          t.createFunctionDeclaration(
            void 0,
            void 0,
            Nt,
            void 0,
            [t.createParameterDeclaration(void 0, void 0, he)],
            void 0,
            t.createBlock(
              [
                t.createVariableStatement(
                  void 0,
                  t.createVariableDeclarationList([
                    t.createVariableDeclaration(
                      Ae,
                      void 0,
                      void 0,
                      t.createObjectLiteralExpression([]),
                    ),
                  ]),
                ),
                t.createForInStatement(
                  t.createVariableDeclarationList([
                    t.createVariableDeclaration(B),
                  ]),
                  he,
                  t.createBlock([
                    Cr(
                      t.createIfStatement(
                        te,
                        t.createExpressionStatement(
                          t.createAssignment(
                            t.createElementAccessExpression(Ae, B),
                            t.createElementAccessExpression(he, B),
                          ),
                        ),
                      ),
                      1,
                    ),
                  ]),
                ),
                t.createExpressionStatement(
                  t.createCallExpression(P, void 0, [Ae]),
                ),
              ],
              !0,
            ),
          )
        );
      }
      function ie(Oe, Nt) {
        const he = [];
        for (const B of Nt) {
          const Ae = Ye(B.externalImports, (Xt) => PD(t, Xt, R)),
            te = Ae ? t.getGeneratedNameForNode(Ae) : t.createUniqueName(""),
            xt = [];
          for (const Xt of B.externalImports) {
            const Pe = PD(t, Xt, R);
            switch (Xt.kind) {
              case 273:
                if (!Xt.importClause) break;
              case 272:
                (C.assert(Pe !== void 0),
                  xt.push(
                    t.createExpressionStatement(t.createAssignment(Pe, te)),
                  ),
                  di(Xt, 32) &&
                    xt.push(
                      t.createExpressionStatement(
                        t.createCallExpression(P, void 0, [
                          t.createStringLiteral(Kr(Pe)),
                          te,
                        ]),
                      ),
                    ));
                break;
              case 279:
                if ((C.assert(Pe !== void 0), Xt.exportClause))
                  if (Jf(Xt.exportClause)) {
                    const gt = [];
                    for (const Bt of Xt.exportClause.elements)
                      gt.push(
                        t.createPropertyAssignment(
                          t.createStringLiteral(yb(Bt.name)),
                          t.createElementAccessExpression(
                            te,
                            t.createStringLiteral(
                              yb(Bt.propertyName || Bt.name),
                            ),
                          ),
                        ),
                      );
                    xt.push(
                      t.createExpressionStatement(
                        t.createCallExpression(P, void 0, [
                          t.createObjectLiteralExpression(gt, !0),
                        ]),
                      ),
                    );
                  } else
                    xt.push(
                      t.createExpressionStatement(
                        t.createCallExpression(P, void 0, [
                          t.createStringLiteral(yb(Xt.exportClause.name)),
                          te,
                        ]),
                      ),
                    );
                else
                  xt.push(
                    t.createExpressionStatement(
                      t.createCallExpression(Oe, void 0, [te]),
                    ),
                  );
                break;
            }
          }
          he.push(
            t.createFunctionExpression(
              void 0,
              void 0,
              void 0,
              void 0,
              [t.createParameterDeclaration(void 0, void 0, te)],
              void 0,
              t.createBlock(xt, !0),
            ),
          );
        }
        return t.createArrayLiteralExpression(he, !0);
      }
      function K(Oe) {
        switch (Oe.kind) {
          case 273:
            return pe(Oe);
          case 272:
            return fe(Oe);
          case 279:
            return de(Oe);
          case 278:
            return ve(Oe);
          default:
            return cn(Oe);
        }
      }
      function pe(Oe) {
        let Nt;
        return (Oe.importClause && o(PD(t, Oe, R)), I_(lt(Nt, Oe)));
      }
      function de(Oe) {
        C.assertIsDefined(Oe);
      }
      function fe(Oe) {
        C.assert(
          FT(Oe),
          "import= for internal module references should be handled in an earlier transformer.",
        );
        let Nt;
        return (o(PD(t, Oe, R)), I_(ce(Nt, Oe)));
      }
      function ve(Oe) {
        if (Oe.isExportEquals) return;
        const Nt = st(Oe.expression, ai, St);
        return at(t.createIdentifier("default"), Nt, !0);
      }
      function xe(Oe) {
        (di(Oe, 32)
          ? (W = Bn(
              W,
              t.updateFunctionDeclaration(
                Oe,
                Xn(Oe.modifiers, ht, fl),
                Oe.asteriskToken,
                t.getDeclarationName(Oe, !0, !0),
                void 0,
                Xn(Oe.parameters, ai, to),
                void 0,
                st(Oe.body, ai, ea),
              ),
            ))
          : (W = Bn(W, kn(Oe, ai, e))),
          (W = je(W, Oe)));
      }
      function X(Oe) {
        let Nt;
        const he = t.getLocalName(Oe);
        return (
          o(he),
          (Nt = Bn(
            Nt,
            vt(
              t.createExpressionStatement(
                t.createAssignment(
                  he,
                  vt(
                    t.createClassExpression(
                      Xn(Oe.modifiers, ht, fl),
                      Oe.name,
                      void 0,
                      Xn(Oe.heritageClauses, ai, Fp),
                      Xn(Oe.members, ai, bc),
                    ),
                    Oe,
                  ),
                ),
              ),
              Oe,
            ),
          )),
          (Nt = je(Nt, Oe)),
          I_(Nt)
        );
      }
      function Ce(Oe) {
        if (!Se(Oe.declarationList)) return st(Oe, ai, Vi);
        let Nt;
        if (ik(Oe.declarationList) || rk(Oe.declarationList)) {
          const he = Xn(Oe.modifiers, ht, fl),
            B = [];
          for (const te of Oe.declarationList.declarations)
            B.push(
              t.updateVariableDeclaration(
                te,
                t.getGeneratedNameForNode(te.name),
                void 0,
                void 0,
                re(te, !1),
              ),
            );
          const Ae = t.updateVariableDeclarationList(Oe.declarationList, B);
          Nt = Bn(Nt, t.updateVariableStatement(Oe, he, Ae));
        } else {
          let he;
          const B = di(Oe, 32);
          for (const Ae of Oe.declarationList.declarations)
            Ae.initializer ? (he = Bn(he, re(Ae, B))) : Je(Ae);
          he &&
            (Nt = Bn(
              Nt,
              vt(t.createExpressionStatement(t.inlineExpressions(he)), Oe),
            ));
        }
        return ((Nt = Re(Nt, Oe, !1)), I_(Nt));
      }
      function Je(Oe) {
        if (Qo(Oe.name)) for (const Nt of Oe.name.elements) Jc(Nt) || Je(Nt);
        else o(t.cloneNode(Oe.name));
      }
      function Se(Oe) {
        return (
          (Qa(Oe) & 4194304) === 0 &&
          (O.kind === 308 || (yl(Oe).flags & 7) === 0)
        );
      }
      function re(Oe, Nt) {
        const he = Nt ? be : Ne;
        return Qo(Oe.name)
          ? k1(Oe, ai, e, 0, !1, he)
          : Oe.initializer
            ? he(Oe.name, st(Oe.initializer, ai, St))
            : Oe.name;
      }
      function be(Oe, Nt, he) {
        return Be(Oe, Nt, he, !0);
      }
      function Ne(Oe, Nt, he) {
        return Be(Oe, Nt, he, !1);
      }
      function Be(Oe, Nt, he, B) {
        return (
          o(t.cloneNode(Oe)),
          B
            ? Wt(Oe, Kt(vt(t.createAssignment(Oe, Nt), he)))
            : Kt(vt(t.createAssignment(Oe, Nt), he))
        );
      }
      function lt(Oe, Nt) {
        if (N.exportEquals) return Oe;
        const he = Nt.importClause;
        if (!he) return Oe;
        he.name && (Oe = Ge(Oe, he));
        const B = he.namedBindings;
        if (B)
          switch (B.kind) {
            case 275:
              Oe = Ge(Oe, B);
              break;
            case 276:
              for (const Ae of B.elements) Oe = Ge(Oe, Ae);
              break;
          }
        return Oe;
      }
      function ce(Oe, Nt) {
        return N.exportEquals ? Oe : Ge(Oe, Nt);
      }
      function Re(Oe, Nt, he) {
        if (N.exportEquals) return Oe;
        for (const B of Nt.declarationList.declarations)
          (B.initializer || he) && (Oe = _e(Oe, B));
        return Oe;
      }
      function _e(Oe, Nt, he) {
        if (N.exportEquals) return Oe;
        if (Qo(Nt.name))
          for (const B of Nt.name.elements) Jc(B) || (Oe = _e(Oe, B));
        else pl(Nt.name) || (Oe = Ge(Oe, Nt, void 0));
        return Oe;
      }
      function je(Oe, Nt) {
        if (N.exportEquals) return Oe;
        let he;
        if (di(Nt, 32)) {
          const B = di(Nt, 2048) ? t.createStringLiteral("default") : Nt.name;
          ((Oe = We(Oe, B, t.getLocalName(Nt))), (he = zf(B)));
        }
        return (Nt.name && (Oe = Ge(Oe, Nt, he)), Oe);
      }
      function Ge(Oe, Nt, he) {
        if (N.exportEquals) return Oe;
        const B = t.getDeclarationName(Nt),
          Ae = N.exportSpecifiers.get(B);
        if (Ae)
          for (const te of Ae) yb(te.name) !== he && (Oe = We(Oe, te.name, B));
        return Oe;
      }
      function We(Oe, Nt, he, B) {
        return ((Oe = Bn(Oe, at(Nt, he, B))), Oe);
      }
      function at(Oe, Nt, he) {
        const B = t.createExpressionStatement(Wt(Oe, Nt));
        return (au(B), he || Cr(B, 3072), B);
      }
      function Wt(Oe, Nt) {
        const he = He(Oe) ? t.createStringLiteralFromNode(Oe) : Oe;
        return (
          Cr(Nt, Qa(Nt) | 3072),
          Rc(t.createCallExpression(P, void 0, [he, Nt]), Nt)
        );
      }
      function cn(Oe) {
        switch (Oe.kind) {
          case 244:
            return Ce(Oe);
          case 263:
            return xe(Oe);
          case 264:
            return X(Oe);
          case 249:
            return gn(Oe, !0);
          case 250:
            return Kn(Oe);
          case 251:
            return _t(Oe);
          case 247:
            return Di(Oe);
          case 248:
            return lo(Oe);
          case 257:
            return zt(Oe);
          case 255:
            return Zr(Oe);
          case 246:
            return Ai(Oe);
          case 256:
            return Ni(Oe);
          case 270:
            return Pr(Oe);
          case 297:
            return Ci(Oe);
          case 298:
            return $e(Oe);
          case 259:
            return At(Oe);
          case 300:
            return mn(Oe);
          case 242:
            return dr(Oe);
          default:
            return ai(Oe);
        }
      }
      function gn(Oe, Nt) {
        const he = O;
        return (
          (O = Oe),
          (Oe = t.updateForStatement(
            Oe,
            st(Oe.initializer, Nt ? ir : qi, Of),
            st(Oe.condition, ai, St),
            st(Oe.incrementor, qi, St),
            Wu(Oe.statement, Nt ? cn : ai, e),
          )),
          (O = he),
          Oe
        );
      }
      function Kn(Oe) {
        const Nt = O;
        return (
          (O = Oe),
          (Oe = t.updateForInStatement(
            Oe,
            ir(Oe.initializer),
            st(Oe.expression, ai, St),
            Wu(Oe.statement, cn, e),
          )),
          (O = Nt),
          Oe
        );
      }
      function _t(Oe) {
        const Nt = O;
        return (
          (O = Oe),
          (Oe = t.updateForOfStatement(
            Oe,
            Oe.awaitModifier,
            ir(Oe.initializer),
            st(Oe.expression, ai, St),
            Wu(Oe.statement, cn, e),
          )),
          (O = Nt),
          Oe
        );
      }
      function en(Oe) {
        return _d(Oe) && Se(Oe);
      }
      function ir(Oe) {
        if (en(Oe)) {
          let Nt;
          for (const he of Oe.declarations)
            ((Nt = Bn(Nt, re(he, !1))), he.initializer || Je(he));
          return Nt ? t.inlineExpressions(Nt) : t.createOmittedExpression();
        } else return st(Oe, qi, Of);
      }
      function Di(Oe) {
        return t.updateDoStatement(
          Oe,
          Wu(Oe.statement, cn, e),
          st(Oe.expression, ai, St),
        );
      }
      function lo(Oe) {
        return t.updateWhileStatement(
          Oe,
          st(Oe.expression, ai, St),
          Wu(Oe.statement, cn, e),
        );
      }
      function zt(Oe) {
        return t.updateLabeledStatement(
          Oe,
          Oe.label,
          st(Oe.statement, cn, Vi, t.liftToBlock) ??
            t.createExpressionStatement(t.createIdentifier("")),
        );
      }
      function Zr(Oe) {
        return t.updateWithStatement(
          Oe,
          st(Oe.expression, ai, St),
          C.checkDefined(st(Oe.statement, cn, Vi, t.liftToBlock)),
        );
      }
      function Ai(Oe) {
        return t.updateIfStatement(
          Oe,
          st(Oe.expression, ai, St),
          st(Oe.thenStatement, cn, Vi, t.liftToBlock) ?? t.createBlock([]),
          st(Oe.elseStatement, cn, Vi, t.liftToBlock),
        );
      }
      function Ni(Oe) {
        return t.updateSwitchStatement(
          Oe,
          st(Oe.expression, ai, St),
          C.checkDefined(st(Oe.caseBlock, cn, HM)),
        );
      }
      function Pr(Oe) {
        const Nt = O;
        return (
          (O = Oe),
          (Oe = t.updateCaseBlock(Oe, Xn(Oe.clauses, cn, AF))),
          (O = Nt),
          Oe
        );
      }
      function Ci(Oe) {
        return t.updateCaseClause(
          Oe,
          st(Oe.expression, ai, St),
          Xn(Oe.statements, cn, Vi),
        );
      }
      function $e(Oe) {
        return kn(Oe, cn, e);
      }
      function At(Oe) {
        return kn(Oe, cn, e);
      }
      function mn(Oe) {
        const Nt = O;
        return (
          (O = Oe),
          (Oe = t.updateCatchClause(
            Oe,
            Oe.variableDeclaration,
            C.checkDefined(st(Oe.block, cn, ea)),
          )),
          (O = Nt),
          Oe
        );
      }
      function dr(Oe) {
        const Nt = O;
        return ((O = Oe), (Oe = kn(Oe, cn, e)), (O = Nt), Oe);
      }
      function ri(Oe, Nt) {
        if (!(Oe.transformFlags & 276828160)) return Oe;
        switch (Oe.kind) {
          case 249:
            return gn(Oe, !1);
          case 245:
            return $o(Oe);
          case 218:
            return Ia(Oe, Nt);
          case 356:
            return Mn(Oe, Nt);
          case 227:
            if (rv(Oe)) return ot(Oe, Nt);
            break;
          case 214:
            if (Qu(Oe)) return Uo(Oe);
            break;
          case 225:
          case 226:
            return le(Oe, Nt);
        }
        return kn(Oe, ai, e);
      }
      function ai(Oe) {
        return ri(Oe, !1);
      }
      function qi(Oe) {
        return ri(Oe, !0);
      }
      function $o(Oe) {
        return t.updateExpressionStatement(Oe, st(Oe.expression, qi, St));
      }
      function Ia(Oe, Nt) {
        return t.updateParenthesizedExpression(
          Oe,
          st(Oe.expression, Nt ? qi : ai, St),
        );
      }
      function Mn(Oe, Nt) {
        return t.updatePartiallyEmittedExpression(
          Oe,
          st(Oe.expression, Nt ? qi : ai, St),
        );
      }
      function Uo(Oe) {
        const Nt = ZI(t, Oe, R, u, l, s),
          he = st(Ac(Oe.arguments), ai, St),
          B = Nt && (!he || !ka(he) || he.text !== Nt.text) ? Nt : he;
        return t.createCallExpression(
          t.createPropertyAccessExpression(k, t.createIdentifier("import")),
          void 0,
          B ? [B] : [],
        );
      }
      function ot(Oe, Nt) {
        return Ft(Oe.left) ? k1(Oe, ai, e, 0, !Nt) : kn(Oe, ai, e);
      }
      function Ft(Oe) {
        if (id(Oe, !0)) return Ft(Oe.left);
        if (qf(Oe)) return Ft(Oe.expression);
        if (Wa(Oe)) return yt(Oe.properties, Ft);
        if (Cd(Oe)) return yt(Oe.elements, Ft);
        if (Ud(Oe)) return Ft(Oe.name);
        if (Cc(Oe)) return Ft(Oe.initializer);
        if (He(Oe)) {
          const Nt = l.getReferencedExportContainer(Oe);
          return Nt !== void 0 && Nt.kind === 308;
        } else return !1;
      }
      function le(Oe, Nt) {
        if (
          (Oe.operator === 46 || Oe.operator === 47) &&
          He(Oe.operand) &&
          !pl(Oe.operand) &&
          !fy(Oe.operand) &&
          !TV(Oe.operand)
        ) {
          const he = Ot(Oe.operand);
          if (he) {
            let B,
              Ae = st(Oe.operand, ai, St);
            YT(Oe)
              ? (Ae = t.updatePrefixUnaryExpression(Oe, Ae))
              : ((Ae = t.updatePostfixUnaryExpression(Oe, Ae)),
                Nt ||
                  ((B = t.createTempVariable(o)),
                  (Ae = t.createAssignment(B, Ae)),
                  vt(Ae, Oe)),
                (Ae = t.createComma(Ae, t.cloneNode(Oe.operand))),
                vt(Ae, Oe));
            for (const te of he) Ae = Wt(te, Kt(Ae));
            return (B && ((Ae = t.createComma(Ae, B)), vt(Ae, Oe)), Ae);
          }
        }
        return kn(Oe, ai, e);
      }
      function ht(Oe) {
        switch (Oe.kind) {
          case 95:
          case 90:
            return;
        }
        return Oe;
      }
      function ne(Oe, Nt, he) {
        if (Nt.kind === 308) {
          const B = Fu(Nt);
          ((R = Nt),
            (N = h[B]),
            (P = g[B]),
            (G = E[B]),
            (k = A[B]),
            G && delete E[B],
            _(Oe, Nt, he),
            (R = void 0),
            (N = void 0),
            (P = void 0),
            (k = void 0),
            (G = void 0));
        } else _(Oe, Nt, he);
      }
      function Fe(Oe, Nt) {
        return (
          (Nt = d(Oe, Nt)),
          Tr(Nt) ? Nt : Oe === 1 ? Lt(Nt) : Oe === 4 ? it(Nt) : Nt
        );
      }
      function it(Oe) {
        switch (Oe.kind) {
          case 305:
            return dt(Oe);
        }
        return Oe;
      }
      function dt(Oe) {
        var Nt, he;
        const B = Oe.name;
        if (!pl(B) && !fy(B)) {
          const Ae = l.getReferencedImportDeclaration(B);
          if (Ae) {
            if (Vm(Ae))
              return vt(
                t.createPropertyAssignment(
                  t.cloneNode(B),
                  t.createPropertyAccessExpression(
                    t.getGeneratedNameForNode(Ae.parent),
                    t.createIdentifier("default"),
                  ),
                ),
                Oe,
              );
            if (Eu(Ae)) {
              const te = Ae.propertyName || Ae.name,
                xt = t.getGeneratedNameForNode(
                  ((he = (Nt = Ae.parent) == null ? void 0 : Nt.parent) == null
                    ? void 0
                    : he.parent) || Ae,
                );
              return vt(
                t.createPropertyAssignment(
                  t.cloneNode(B),
                  te.kind === 11
                    ? t.createElementAccessExpression(xt, t.cloneNode(te))
                    : t.createPropertyAccessExpression(xt, t.cloneNode(te)),
                ),
                Oe,
              );
            }
          }
        }
        return Oe;
      }
      function Lt(Oe) {
        switch (Oe.kind) {
          case 80:
            return Ue(Oe);
          case 227:
            return Rt(Oe);
          case 237:
            return It(Oe);
        }
        return Oe;
      }
      function Ue(Oe) {
        var Nt, he;
        if (Qa(Oe) & 8192) {
          const B = Ew(R);
          return B ? t.createPropertyAccessExpression(B, Oe) : Oe;
        }
        if (!pl(Oe) && !fy(Oe)) {
          const B = l.getReferencedImportDeclaration(Oe);
          if (B) {
            if (Vm(B))
              return vt(
                t.createPropertyAccessExpression(
                  t.getGeneratedNameForNode(B.parent),
                  t.createIdentifier("default"),
                ),
                Oe,
              );
            if (Eu(B)) {
              const Ae = B.propertyName || B.name,
                te = t.getGeneratedNameForNode(
                  ((he = (Nt = B.parent) == null ? void 0 : Nt.parent) == null
                    ? void 0
                    : he.parent) || B,
                );
              return vt(
                Ae.kind === 11
                  ? t.createElementAccessExpression(te, t.cloneNode(Ae))
                  : t.createPropertyAccessExpression(te, t.cloneNode(Ae)),
                Oe,
              );
            }
          }
        }
        return Oe;
      }
      function Rt(Oe) {
        if (
          sy(Oe.operatorToken.kind) &&
          He(Oe.left) &&
          (!pl(Oe.left) || F2(Oe.left)) &&
          !fy(Oe.left)
        ) {
          const Nt = Ot(Oe.left);
          if (Nt) {
            let he = Oe;
            for (const B of Nt) he = Wt(B, Kt(he));
            return he;
          }
        }
        return Oe;
      }
      function It(Oe) {
        return KR(Oe)
          ? t.createPropertyAccessExpression(k, t.createIdentifier("meta"))
          : Oe;
      }
      function Ot(Oe) {
        let Nt;
        const he = nt(Oe);
        if (he) {
          const B = l.getReferencedExportContainer(Oe, !1);
          (B && B.kind === 308 && (Nt = Bn(Nt, t.getDeclarationName(he))),
            (Nt = Xr(Nt, N?.exportedBindings[Fu(he)])));
        } else if (pl(Oe) && F2(Oe)) {
          const B = N?.exportSpecifiers.get(Oe);
          if (B) {
            const Ae = [];
            for (const te of B) Ae.push(te.name);
            return Ae;
          }
        }
        return Nt;
      }
      function nt(Oe) {
        if (!pl(Oe)) {
          const Nt = l.getReferencedImportDeclaration(Oe);
          if (Nt) return Nt;
          const he = l.getReferencedValueDeclaration(Oe);
          if (he && N?.exportedBindings[Fu(he)]) return he;
          const B = l.getReferencedValueDeclarations(Oe);
          if (B) {
            for (const Ae of B)
              if (Ae !== he && N?.exportedBindings[Fu(Ae)]) return Ae;
          }
          return he;
        }
      }
      function Kt(Oe) {
        return (G === void 0 && (G = []), (G[ls(Oe)] = !0), Oe);
      }
      function Tr(Oe) {
        return G && Oe.id && G[Oe.id];
      }
    }
    function tH(e) {
      const { factory: t, getEmitHelperFactory: r } = e,
        i = e.getEmitHost(),
        o = e.getEmitResolver(),
        s = e.getCompilerOptions(),
        l = Ga(s),
        u = e.onEmitNode,
        d = e.onSubstituteNode;
      ((e.onEmitNode = q),
        (e.onSubstituteNode = ye),
        e.enableEmitNotification(308),
        e.enableSubstitution(80));
      const _ = new Set();
      let h, g, E, A;
      return hh(e, R);
      function R(K) {
        if (K.isDeclarationFile) return K;
        if (zc(K) || ym(s)) {
          ((E = K),
            (A = void 0),
            s.rewriteRelativeImportExtensions &&
              (E.flags & 4194304 || Ir(K)) &&
              a4(K, !1, !1, (de) => {
                (!ds(de.arguments[0]) || Tk(de.arguments[0].text, s)) &&
                  (h = Bn(h, de));
              }));
          let pe = N(K);
          return (
            Ag(pe, e.readEmitHelpers()),
            (E = void 0),
            A &&
              (pe = t.updateSourceFile(
                pe,
                vt(
                  t.createNodeArray(uG(pe.statements.slice(), A)),
                  pe.statements,
                ),
              )),
            !zc(K) || bu(s) === 200 || yt(pe.statements, U2)
              ? pe
              : t.updateSourceFile(
                  pe,
                  vt(
                    t.createNodeArray([...pe.statements, bw(t)]),
                    pe.statements,
                  ),
                )
          );
        }
        return K;
      }
      function N(K) {
        const pe = Bj(t, r(), K, s);
        if (pe) {
          const de = [],
            fe = t.copyPrologue(K.statements, de);
          return (
            Xr(de, sP([pe], P, Vi)),
            Xr(de, Xn(K.statements, P, Vi, fe)),
            t.updateSourceFile(K, vt(t.createNodeArray(de), K.statements))
          );
        } else return kn(K, P, e);
      }
      function P(K) {
        switch (K.kind) {
          case 272:
            return bu(s) >= 100 ? G(K) : void 0;
          case 278:
            return J(K);
          case 279:
            return Z(K);
          case 273:
            return k(K);
          case 214:
            if (K === h?.[0]) return W(h.shift());
          default:
            if (h?.length && tp(K, h[0])) return kn(K, P, e);
        }
        return K;
      }
      function k(K) {
        if (!s.rewriteRelativeImportExtensions) return K;
        const pe = ax(K.moduleSpecifier, s);
        return pe === K.moduleSpecifier
          ? K
          : t.updateImportDeclaration(
              K,
              K.modifiers,
              K.importClause,
              pe,
              K.attributes,
            );
      }
      function W(K) {
        return t.updateCallExpression(K, K.expression, K.typeArguments, [
          ds(K.arguments[0])
            ? ax(K.arguments[0], s)
            : r().createRewriteRelativeImportExtensionsHelper(K.arguments[0]),
          ...K.arguments.slice(1),
        ]);
      }
      function O(K) {
        const pe = ZI(t, K, C.checkDefined(E), i, o, s),
          de = [];
        if ((pe && de.push(ax(pe, s)), bu(s) === 200))
          return t.createCallExpression(
            t.createIdentifier("require"),
            void 0,
            de,
          );
        if (!A) {
          const ve = t.createUniqueName("_createRequire", 48),
            xe = t.createImportDeclaration(
              void 0,
              t.createImportClause(
                void 0,
                void 0,
                t.createNamedImports([
                  t.createImportSpecifier(
                    !1,
                    t.createIdentifier("createRequire"),
                    ve,
                  ),
                ]),
              ),
              t.createStringLiteral("module"),
              void 0,
            ),
            X = t.createUniqueName("__require", 48),
            Ce = t.createVariableStatement(
              void 0,
              t.createVariableDeclarationList(
                [
                  t.createVariableDeclaration(
                    X,
                    void 0,
                    void 0,
                    t.createCallExpression(t.cloneNode(ve), void 0, [
                      t.createPropertyAccessExpression(
                        t.createMetaProperty(102, t.createIdentifier("meta")),
                        t.createIdentifier("url"),
                      ),
                    ]),
                  ),
                ],
                l >= 2 ? 2 : 0,
              ),
            );
          A = [xe, Ce];
        }
        const fe = A[1].declarationList.declarations[0].name;
        return (
          C.assertNode(fe, He),
          t.createCallExpression(t.cloneNode(fe), void 0, de)
        );
      }
      function G(K) {
        C.assert(
          FT(K),
          "import= for internal module references should be handled in an earlier transformer.",
        );
        let pe;
        return (
          (pe = Bn(
            pe,
            jr(
              vt(
                t.createVariableStatement(
                  void 0,
                  t.createVariableDeclarationList(
                    [
                      t.createVariableDeclaration(
                        t.cloneNode(K.name),
                        void 0,
                        void 0,
                        O(K),
                      ),
                    ],
                    l >= 2 ? 2 : 0,
                  ),
                ),
                K,
              ),
              K,
            ),
          )),
          (pe = j(pe, K)),
          I_(pe)
        );
      }
      function j(K, pe) {
        return (
          di(pe, 32) &&
            (K = Bn(
              K,
              t.createExportDeclaration(
                void 0,
                pe.isTypeOnly,
                t.createNamedExports([
                  t.createExportSpecifier(!1, void 0, Kr(pe.name)),
                ]),
              ),
            )),
          K
        );
      }
      function J(K) {
        return K.isExportEquals
          ? bu(s) === 200
            ? jr(
                t.createExpressionStatement(
                  t.createAssignment(
                    t.createPropertyAccessExpression(
                      t.createIdentifier("module"),
                      "exports",
                    ),
                    K.expression,
                  ),
                ),
                K,
              )
            : void 0
          : K;
      }
      function Z(K) {
        const pe = ax(K.moduleSpecifier, s);
        if (
          (s.module !== void 0 && s.module > 5) ||
          !K.exportClause ||
          !O_(K.exportClause) ||
          !K.moduleSpecifier
        )
          return !K.moduleSpecifier || pe === K.moduleSpecifier
            ? K
            : t.updateExportDeclaration(
                K,
                K.modifiers,
                K.isTypeOnly,
                K.exportClause,
                pe,
                K.attributes,
              );
        const de = K.exportClause.name,
          fe = t.getGeneratedNameForNode(de),
          ve = t.createImportDeclaration(
            void 0,
            t.createImportClause(void 0, void 0, t.createNamespaceImport(fe)),
            pe,
            K.attributes,
          );
        jr(ve, K.exportClause);
        const xe = OF(K)
          ? t.createExportDefault(fe)
          : t.createExportDeclaration(
              void 0,
              !1,
              t.createNamedExports([t.createExportSpecifier(!1, fe, de)]),
            );
        return (jr(xe, K), [ve, xe]);
      }
      function q(K, pe, de) {
        Yi(pe)
          ? ((zc(pe) || ym(s)) && s.importHelpers && (g = new Map()),
            (E = pe),
            u(K, pe, de),
            (E = void 0),
            (g = void 0))
          : u(K, pe, de);
      }
      function ye(K, pe) {
        return (
          (pe = d(K, pe)),
          pe.id && _.has(pe.id) ? pe : He(pe) && Qa(pe) & 8192 ? ie(pe) : pe
        );
      }
      function ie(K) {
        const pe = E && Ew(E);
        if (pe) return (_.add(ls(K)), t.createPropertyAccessExpression(pe, K));
        if (g) {
          const de = Kr(K);
          let fe = g.get(de);
          return (fe || g.set(de, (fe = t.createUniqueName(de, 48))), fe);
        }
        return K;
      }
    }
    function Kae(e) {
      const t = e.onSubstituteNode,
        r = e.onEmitNode,
        i = tH(e),
        o = e.onSubstituteNode,
        s = e.onEmitNode;
      ((e.onSubstituteNode = t), (e.onEmitNode = r));
      const l = eH(e),
        u = e.onSubstituteNode,
        d = e.onEmitNode,
        _ = (k) => e.getEmitHost().getEmitModuleFormatOfFile(k);
      ((e.onSubstituteNode = g),
        (e.onEmitNode = E),
        e.enableSubstitution(308),
        e.enableEmitNotification(308));
      let h;
      return N;
      function g(k, W) {
        return Yi(W)
          ? ((h = W), t(k, W))
          : h
            ? _(h) >= 5
              ? o(k, W)
              : u(k, W)
            : t(k, W);
      }
      function E(k, W, O) {
        return (
          Yi(W) && (h = W),
          h ? (_(h) >= 5 ? s(k, W, O) : d(k, W, O)) : r(k, W, O)
        );
      }
      function A(k) {
        return _(k) >= 5 ? i : l;
      }
      function R(k) {
        if (k.isDeclarationFile) return k;
        h = k;
        const W = A(k)(k);
        return ((h = void 0), C.assert(Yi(W)), W);
      }
      function N(k) {
        return k.kind === 308 ? R(k) : P(k);
      }
      function P(k) {
        return e.factory.createBundle(Vt(k.sourceFiles, R));
      }
    }
    function Jw(e) {
      return (
        yi(e) ||
        Po(e) ||
        Su(e) ||
        Ha(e) ||
        Vh(e) ||
        ug(e) ||
        GM(e) ||
        UI(e) ||
        Nl(e) ||
        Gm(e) ||
        Zl(e) ||
        to(e) ||
        sl(e) ||
        dy(e) ||
        Fc(e) ||
        vm(e) ||
        Ml(e) ||
        Mb(e) ||
        qr(e) ||
        Ws(e) ||
        Nr(e) ||
        hm(e)
      );
    }
    function Xae(e) {
      if (Vh(e) || ug(e)) return t;
      return Gm(e) || Nl(e) ? i : l0(e);
      function t(s) {
        const l = r(s);
        return l !== void 0
          ? { diagnosticMessage: l, errorNode: e, typeName: e.name }
          : void 0;
      }
      function r(s) {
        return ua(e)
          ? s.errorModuleName
            ? s.accessibility === 2
              ? f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
              : f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2
            : f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1
          : e.parent.kind === 264
            ? s.errorModuleName
              ? s.accessibility === 2
                ? f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                : f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2
              : f.Public_property_0_of_exported_class_has_or_is_using_private_name_1
            : s.errorModuleName
              ? f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2
              : f.Property_0_of_exported_interface_has_or_is_using_private_name_1;
      }
      function i(s) {
        const l = o(s);
        return l !== void 0
          ? { diagnosticMessage: l, errorNode: e, typeName: e.name }
          : void 0;
      }
      function o(s) {
        return ua(e)
          ? s.errorModuleName
            ? s.accessibility === 2
              ? f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
              : f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2
            : f.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1
          : e.parent.kind === 264
            ? s.errorModuleName
              ? s.accessibility === 2
                ? f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                : f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2
              : f.Public_method_0_of_exported_class_has_or_is_using_private_name_1
            : s.errorModuleName
              ? f.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2
              : f.Method_0_of_exported_interface_has_or_is_using_private_name_1;
      }
    }
    function l0(e) {
      if (yi(e) || Po(e) || Su(e) || qr(e) || Ws(e) || Nr(e) || Ha(e) || Ml(e))
        return r;
      return Vh(e) || ug(e)
        ? i
        : GM(e) || UI(e) || Nl(e) || Gm(e) || Zl(e) || Mb(e)
          ? o
          : to(e)
            ? Np(e, e.parent) && di(e.parent, 2)
              ? r
              : s
            : sl(e)
              ? u
              : dy(e)
                ? d
                : Fc(e)
                  ? _
                  : vm(e) || hm(e)
                    ? h
                    : C.assertNever(
                        e,
                        `Attempted to set a declaration diagnostic context for unhandled node kind: ${C.formatSyntaxKind(e.kind)}`,
                      );
      function t(g) {
        if (e.kind === 261 || e.kind === 209)
          return g.errorModuleName
            ? g.accessibility === 2
              ? f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
              : f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2
            : f.Exported_variable_0_has_or_is_using_private_name_1;
        if (
          e.kind === 173 ||
          e.kind === 212 ||
          e.kind === 213 ||
          e.kind === 227 ||
          e.kind === 172 ||
          (e.kind === 170 && di(e.parent, 2))
        )
          return ua(e)
            ? g.errorModuleName
              ? g.accessibility === 2
                ? f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                : f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2
              : f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1
            : e.parent.kind === 264 || e.kind === 170
              ? g.errorModuleName
                ? g.accessibility === 2
                  ? f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                  : f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2
                : f.Public_property_0_of_exported_class_has_or_is_using_private_name_1
              : g.errorModuleName
                ? f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2
                : f.Property_0_of_exported_interface_has_or_is_using_private_name_1;
      }
      function r(g) {
        const E = t(g);
        return E !== void 0
          ? { diagnosticMessage: E, errorNode: e, typeName: e.name }
          : void 0;
      }
      function i(g) {
        let E;
        return (
          e.kind === 179
            ? ua(e)
              ? (E = g.errorModuleName
                  ? f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2
                  : f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1)
              : (E = g.errorModuleName
                  ? f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2
                  : f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1)
            : ua(e)
              ? (E = g.errorModuleName
                  ? g.accessibility === 2
                    ? f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                    : f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2
                  : f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1)
              : (E = g.errorModuleName
                  ? g.accessibility === 2
                    ? f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                    : f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2
                  : f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1),
          { diagnosticMessage: E, errorNode: e.name, typeName: e.name }
        );
      }
      function o(g) {
        let E;
        switch (e.kind) {
          case 181:
            E = g.errorModuleName
              ? f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1
              : f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;
            break;
          case 180:
            E = g.errorModuleName
              ? f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1
              : f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;
            break;
          case 182:
            E = g.errorModuleName
              ? f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1
              : f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;
            break;
          case 175:
          case 174:
            ua(e)
              ? (E = g.errorModuleName
                  ? g.accessibility === 2
                    ? f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named
                    : f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1
                  : f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0)
              : e.parent.kind === 264
                ? (E = g.errorModuleName
                    ? g.accessibility === 2
                      ? f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named
                      : f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1
                    : f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0)
                : (E = g.errorModuleName
                    ? f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1
                    : f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0);
            break;
          case 263:
            E = g.errorModuleName
              ? g.accessibility === 2
                ? f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named
                : f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1
              : f.Return_type_of_exported_function_has_or_is_using_private_name_0;
            break;
          default:
            return C.fail("This is unknown kind for signature: " + e.kind);
        }
        return { diagnosticMessage: E, errorNode: e.name || e };
      }
      function s(g) {
        const E = l(g);
        return E !== void 0
          ? { diagnosticMessage: E, errorNode: e, typeName: e.name }
          : void 0;
      }
      function l(g) {
        switch (e.parent.kind) {
          case 177:
            return g.errorModuleName
              ? g.accessibility === 2
                ? f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                : f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2
              : f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;
          case 181:
          case 186:
            return g.errorModuleName
              ? f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
              : f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;
          case 180:
            return g.errorModuleName
              ? f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
              : f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;
          case 182:
            return g.errorModuleName
              ? f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2
              : f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;
          case 175:
          case 174:
            return ua(e.parent)
              ? g.errorModuleName
                ? g.accessibility === 2
                  ? f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                  : f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2
                : f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1
              : e.parent.parent.kind === 264
                ? g.errorModuleName
                  ? g.accessibility === 2
                    ? f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                    : f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2
                  : f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1
                : g.errorModuleName
                  ? f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2
                  : f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;
          case 263:
          case 185:
            return g.errorModuleName
              ? g.accessibility === 2
                ? f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                : f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2
              : f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;
          case 179:
          case 178:
            return g.errorModuleName
              ? g.accessibility === 2
                ? f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named
                : f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2
              : f.Parameter_0_of_accessor_has_or_is_using_private_name_1;
          default:
            return C.fail(
              `Unknown parent for parameter: ${C.formatSyntaxKind(e.parent.kind)}`,
            );
        }
      }
      function u() {
        let g;
        switch (e.parent.kind) {
          case 264:
            g =
              f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;
            break;
          case 265:
            g =
              f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;
            break;
          case 201:
            g =
              f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;
            break;
          case 186:
          case 181:
            g =
              f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;
            break;
          case 180:
            g =
              f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;
            break;
          case 175:
          case 174:
            ua(e.parent)
              ? (g =
                  f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1)
              : e.parent.parent.kind === 264
                ? (g =
                    f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1)
                : (g =
                    f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1);
            break;
          case 185:
          case 263:
            g =
              f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;
            break;
          case 196:
            g =
              f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;
            break;
          case 266:
            g =
              f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;
            break;
          default:
            return C.fail(
              "This is unknown parent for type parameter: " + e.parent.kind,
            );
        }
        return { diagnosticMessage: g, errorNode: e, typeName: e.name };
      }
      function d() {
        let g;
        return (
          Dc(e.parent.parent)
            ? (g =
                Fp(e.parent) && e.parent.token === 119
                  ? f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1
                  : e.parent.parent.name
                    ? f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1
                    : f.extends_clause_of_exported_class_has_or_is_using_private_name_0)
            : (g =
                f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1),
          { diagnosticMessage: g, errorNode: e, typeName: Oo(e.parent.parent) }
        );
      }
      function _() {
        return {
          diagnosticMessage: f.Import_declaration_0_is_using_private_name_1,
          errorNode: e,
          typeName: e.name,
        };
      }
      function h(g) {
        return {
          diagnosticMessage: g.errorModuleName
            ? f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2
            : f.Exported_type_alias_0_has_or_is_using_private_name_1,
          errorNode: hm(e) ? C.checkDefined(e.typeExpression) : e.type,
          typeName: hm(e) ? Oo(e) : e.name,
        };
      }
    }
    function Yae(e) {
      const t = {
          220: f.Add_a_return_type_to_the_function_expression,
          219: f.Add_a_return_type_to_the_function_expression,
          175: f.Add_a_return_type_to_the_method,
          178: f.Add_a_return_type_to_the_get_accessor_declaration,
          179: f.Add_a_type_to_parameter_of_the_set_accessor_declaration,
          263: f.Add_a_return_type_to_the_function_declaration,
          181: f.Add_a_return_type_to_the_function_declaration,
          170: f.Add_a_type_annotation_to_the_parameter_0,
          261: f.Add_a_type_annotation_to_the_variable_0,
          173: f.Add_a_type_annotation_to_the_property_0,
          172: f.Add_a_type_annotation_to_the_property_0,
          278: f.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it,
        },
        r = {
          219: f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,
          263: f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,
          220: f.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,
          175: f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,
          181: f.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,
          178: f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,
          179: f.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,
          170: f.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,
          261: f.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,
          173: f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,
          172: f.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,
          168: f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,
          306: f.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,
          305: f.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,
          210: f.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,
          278: f.Default_exports_can_t_be_inferred_with_isolatedDeclarations,
          231: f.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations,
        };
      return i;
      function i(P) {
        if (Dn(P, Fp))
          return Ar(
            P,
            f.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations,
          );
        if ((Hh(P) || FS(P.parent)) && (Mu(P) || Ds(P))) return R(P);
        switch ((C.type(P), P.kind)) {
          case 178:
          case 179:
            return s(P);
          case 168:
          case 305:
          case 306:
            return u(P);
          case 210:
          case 231:
            return d(P);
          case 175:
          case 181:
          case 219:
          case 220:
          case 263:
            return _(P);
          case 209:
            return h(P);
          case 173:
          case 261:
            return g(P);
          case 170:
            return E(P);
          case 304:
            return N(P.initializer);
          case 232:
            return A(P);
          default:
            return N(P);
        }
      }
      function o(P) {
        const k = Dn(P, (W) => ll(W) || Vi(W) || yi(W) || Po(W) || to(W));
        if (k)
          return ll(k)
            ? k
            : tf(k)
              ? Dn(k, (W) => Ms(W) && !Ml(W))
              : Vi(k)
                ? void 0
                : k;
      }
      function s(P) {
        const { getAccessor: k, setAccessor: W } = MS(P.symbol.declarations, P),
          O = (Vh(P) ? P.parameters[0] : P) ?? P,
          G = Ar(O, r[P.kind]);
        return (W && pa(G, Ar(W, t[W.kind])), k && pa(G, Ar(k, t[k.kind])), G);
      }
      function l(P, k) {
        const W = o(P);
        if (W) {
          const O = ll(W) || !W.name ? "" : Al(W.name, !1);
          pa(k, Ar(W, t[W.kind], O));
        }
        return k;
      }
      function u(P) {
        const k = Ar(P, r[P.kind]);
        return (l(P, k), k);
      }
      function d(P) {
        const k = Ar(P, r[P.kind]);
        return (l(P, k), k);
      }
      function _(P) {
        const k = Ar(P, r[P.kind]);
        return (l(P, k), pa(k, Ar(P, t[P.kind])), k);
      }
      function h(P) {
        return Ar(
          P,
          f.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations,
        );
      }
      function g(P) {
        const k = Ar(P, r[P.kind]),
          W = Al(P.name, !1);
        return (pa(k, Ar(P, t[P.kind], W)), k);
      }
      function E(P) {
        if (Vh(P.parent)) return s(P.parent);
        const k = e.requiresAddingImplicitUndefined(P, P.parent);
        if (!k && P.initializer) return N(P.initializer);
        const W = k
            ? f.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations
            : r[P.kind],
          O = Ar(P, W),
          G = Al(P.name, !1);
        return (pa(O, Ar(P, t[P.kind], G)), O);
      }
      function A(P) {
        return N(
          P,
          f.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations,
        );
      }
      function R(P) {
        const k = Ar(
          P,
          f.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,
          Al(P, !1),
        );
        return (l(P, k), k);
      }
      function N(P, k) {
        const W = o(P);
        let O;
        if (W) {
          const G = ll(W) || !W.name ? "" : Al(W.name, !1),
            j = Dn(
              P.parent,
              (J) => ll(J) || (Vi(J) ? "quit" : !Ou(J) && !v4(J) && !SD(J)),
            );
          W === j
            ? ((O = Ar(P, k ?? r[W.kind])), pa(O, Ar(W, t[W.kind], G)))
            : ((O = Ar(
                P,
                k ??
                  f.Expression_type_can_t_be_inferred_with_isolatedDeclarations,
              )),
              pa(O, Ar(W, t[W.kind], G)),
              pa(
                O,
                Ar(
                  P,
                  f.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit,
                ),
              ));
        } else
          O = Ar(
            P,
            k ?? f.Expression_type_can_t_be_inferred_with_isolatedDeclarations,
          );
        return O;
      }
    }
    function $ae(e, t, r) {
      const i = e.getCompilerOptions(),
        o = Un(y6(e, r), t6);
      return jn(o, r) ? $w(t, e, L, i, [r], [nH], !1).diagnostics : void 0;
    }
    var Kw = 531469,
      Xw = 8;
    function nH(e) {
      const t = () => C.fail("Diagnostic emitted without context");
      let r = t,
        i = !0,
        o = !1,
        s = !1,
        l = !1,
        u = !1,
        d,
        _,
        h,
        g;
      const { factory: E } = e,
        A = e.getEmitHost();
      let R = () => {};
      const N = {
        trackSymbol: fe,
        reportInaccessibleThisError: Je,
        reportInaccessibleUniqueSymbolError: X,
        reportCyclicStructureError: Ce,
        reportPrivateInBaseOfClassExpression: ve,
        reportLikelyUnsafeImportRequiredError: Se,
        reportTruncationError: re,
        moduleResolverHost: A,
        reportNonlocalAugmentation: be,
        reportNonSerializableProperty: Ne,
        reportInferenceFallback: pe,
        pushErrorFallbackNode(le) {
          const ht = k,
            ne = R;
          ((R = () => {
            ((R = ne), (k = ht));
          }),
            (k = le));
        },
        popErrorFallbackNode() {
          R();
        },
      };
      let P, k, W, O, G, j;
      const J = e.getEmitResolver(),
        Z = e.getCompilerOptions(),
        q = Yae(J),
        { stripInternal: ye, isolatedDeclarations: ie } = Z;
      return lt;
      function K(le) {
        J.getPropertiesOfContainerFunction(le).forEach((ht) => {
          if (WI(ht.valueDeclaration)) {
            const ne = Nr(ht.valueDeclaration)
              ? ht.valueDeclaration.left
              : ht.valueDeclaration;
            e.addDiagnostic(
              Ar(
                ne,
                f.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function,
              ),
            );
          }
        });
      }
      function pe(le) {
        !ie ||
          Pu(W) ||
          (Wn(le) === W &&
            (yi(le) && J.isExpandoFunctionDeclaration(le)
              ? K(le)
              : e.addDiagnostic(q(le))));
      }
      function de(le) {
        if (le.accessibility === 0) {
          if (le.aliasesToMakeVisible)
            if (!_) _ = le.aliasesToMakeVisible;
            else for (const ht of le.aliasesToMakeVisible) kf(_, ht);
        } else if (le.accessibility !== 3) {
          const ht = r(le);
          if (ht)
            return (
              ht.typeName
                ? e.addDiagnostic(
                    Ar(
                      le.errorNode || ht.errorNode,
                      ht.diagnosticMessage,
                      Al(ht.typeName),
                      le.errorSymbolName,
                      le.errorModuleName,
                    ),
                  )
                : e.addDiagnostic(
                    Ar(
                      le.errorNode || ht.errorNode,
                      ht.diagnosticMessage,
                      le.errorSymbolName,
                      le.errorModuleName,
                    ),
                  ),
              !0
            );
        }
        return !1;
      }
      function fe(le, ht, ne) {
        return le.flags & 262144
          ? !1
          : de(J.isSymbolAccessible(le, ht, ne, !0));
      }
      function ve(le) {
        (P || k) &&
          e.addDiagnostic(
            pa(
              Ar(
                P || k,
                f.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,
                le,
              ),
              ...(yi((P || k).parent)
                ? [Ar(P || k, f.Add_a_type_annotation_to_the_variable_0, xe())]
                : []),
            ),
          );
      }
      function xe() {
        return P
          ? ws(P)
          : k && Oo(k)
            ? ws(Oo(k))
            : k && ll(k)
              ? k.isExportEquals
                ? "export="
                : "default"
              : "(Missing)";
      }
      function X() {
        (P || k) &&
          e.addDiagnostic(
            Ar(
              P || k,
              f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,
              xe(),
              "unique symbol",
            ),
          );
      }
      function Ce() {
        (P || k) &&
          e.addDiagnostic(
            Ar(
              P || k,
              f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,
              xe(),
            ),
          );
      }
      function Je() {
        (P || k) &&
          e.addDiagnostic(
            Ar(
              P || k,
              f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,
              xe(),
              "this",
            ),
          );
      }
      function Se(le) {
        (P || k) &&
          e.addDiagnostic(
            Ar(
              P || k,
              f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,
              xe(),
              le,
            ),
          );
      }
      function re() {
        (P || k) &&
          e.addDiagnostic(
            Ar(
              P || k,
              f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed,
            ),
          );
      }
      function be(le, ht, ne) {
        var Fe;
        const it =
            (Fe = ht.declarations) == null
              ? void 0
              : Fe.find((Lt) => Wn(Lt) === le),
          dt = Un(ne.declarations, (Lt) => Wn(Lt) !== le);
        if (it && dt)
          for (const Lt of dt)
            e.addDiagnostic(
              pa(
                Ar(
                  Lt,
                  f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized,
                ),
                Ar(
                  it,
                  f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file,
                ),
              ),
            );
      }
      function Ne(le) {
        (P || k) &&
          e.addDiagnostic(
            Ar(
              P || k,
              f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,
              le,
            ),
          );
      }
      function Be(le) {
        const ht = r;
        r = (Fe) =>
          Fe.errorNode && Jw(Fe.errorNode)
            ? l0(Fe.errorNode)(Fe)
            : {
                diagnosticMessage: Fe.errorModuleName
                  ? f.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit
                  : f.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,
                errorNode: Fe.errorNode || le,
              };
        const ne = J.getDeclarationStatementsForSourceFile(le, Kw, Xw, N);
        return ((r = ht), ne);
      }
      function lt(le) {
        if (le.kind === 308 && le.isDeclarationFile) return le;
        if (le.kind === 309) {
          ((o = !0), (O = []), (G = []), (j = []));
          let Rt = !1;
          const It = E.createBundle(
              Vt(le.sourceFiles, (nt) => {
                if (nt.isDeclarationFile) return;
                if (
                  ((Rt = Rt || nt.hasNoDefaultLib),
                  (W = nt),
                  (d = nt),
                  (_ = void 0),
                  (g = !1),
                  (h = new Map()),
                  (r = t),
                  (l = !1),
                  (u = !1),
                  Fe(nt),
                  Pp(nt) || Ff(nt))
                ) {
                  ((s = !1), (i = !1));
                  const Tr = Pu(nt)
                    ? E.createNodeArray(Be(nt))
                    : Xn(nt.statements, Ci, Vi);
                  return E.updateSourceFile(
                    nt,
                    [
                      E.createModuleDeclaration(
                        [E.createModifier(138)],
                        E.createStringLiteral(nV(e.getEmitHost(), nt)),
                        E.createModuleBlock(
                          vt(E.createNodeArray(Ai(Tr)), nt.statements),
                        ),
                      ),
                    ],
                    !0,
                    [],
                    [],
                    !1,
                    [],
                  );
                }
                i = !0;
                const Kt = Pu(nt)
                  ? E.createNodeArray(Be(nt))
                  : Xn(nt.statements, Ci, Vi);
                return E.updateSourceFile(nt, Ai(Kt), !0, [], [], !1, []);
              }),
            ),
            Ot = ci(Bd(hP(le, A, !0).declarationFilePath));
          return (
            (It.syntheticFileReferences = Ue(Ot)),
            (It.syntheticTypeReferences = dt()),
            (It.syntheticLibReferences = Lt()),
            (It.hasNoDefaultLib = Rt),
            It
          );
        }
        ((i = !0),
          (l = !1),
          (u = !1),
          (d = le),
          (W = le),
          (r = t),
          (o = !1),
          (s = !1),
          (g = !1),
          (_ = void 0),
          (h = new Map()),
          (O = []),
          (G = []),
          (j = []),
          Fe(W));
        let ht;
        if (Pu(W)) ht = E.createNodeArray(Be(le));
        else {
          const Rt = Xn(le.statements, Ci, Vi);
          ((ht = vt(E.createNodeArray(Ai(Rt)), le.statements)),
            zc(le) &&
              (!s || (l && !u)) &&
              (ht = vt(E.createNodeArray([...ht, bw(E)]), ht)));
        }
        const ne = ci(Bd(hP(le, A, !0).declarationFilePath));
        return E.updateSourceFile(
          le,
          ht,
          !0,
          Ue(ne),
          dt(),
          le.hasNoDefaultLib,
          Lt(),
        );
        function Fe(Rt) {
          ((O = so(
            O,
            Vt(Rt.referencedFiles, (It) => [Rt, It]),
          )),
            (G = so(G, Rt.typeReferenceDirectives)),
            (j = so(j, Rt.libReferenceDirectives)));
        }
        function it(Rt) {
          const It = { ...Rt };
          return ((It.pos = -1), (It.end = -1), It);
        }
        function dt() {
          return Ui(G, (Rt) => {
            if (Rt.preserve) return it(Rt);
          });
        }
        function Lt() {
          return Ui(j, (Rt) => {
            if (Rt.preserve) return it(Rt);
          });
        }
        function Ue(Rt) {
          return Ui(O, ([It, Ot]) => {
            if (!Ot.preserve) return;
            const nt = A.getSourceFileFromReference(It, Ot);
            if (!nt) return;
            let Kt;
            if (nt.isDeclarationFile) Kt = nt.fileName;
            else {
              if (o && jn(le.sourceFiles, nt)) return;
              const Nt = hP(nt, A, !0);
              Kt = Nt.declarationFilePath || Nt.jsFilePath || nt.fileName;
            }
            if (!Kt) return;
            const Tr = PR(
                Rt,
                Kt,
                A.getCurrentDirectory(),
                A.getCanonicalFileName,
                !1,
              ),
              Oe = it(Ot);
            return ((Oe.fileName = Tr), Oe);
          });
        }
      }
      function ce(le) {
        if (le.kind === 80) return le;
        return le.kind === 208
          ? E.updateArrayBindingPattern(le, Xn(le.elements, ht, bF))
          : E.updateObjectBindingPattern(le, Xn(le.elements, ht, Ha));
        function ht(ne) {
          return ne.kind === 233
            ? ne
            : (ne.propertyName &&
                va(ne.propertyName) &&
                Ds(ne.propertyName.expression) &&
                en(ne.propertyName.expression, d),
              E.updateBindingElement(
                ne,
                ne.dotDotDotToken,
                ne.propertyName,
                ce(ne.name),
                void 0,
              ));
        }
      }
      function Re(le, ht) {
        let ne;
        g || ((ne = r), (r = l0(le)));
        const Fe = E.updateParameterDeclaration(
          le,
          vqe(E, le, ht),
          le.dotDotDotToken,
          ce(le.name),
          J.isOptionalParameter(le)
            ? le.questionToken || E.createToken(58)
            : void 0,
          Ge(le, !0),
          je(le),
        );
        return (g || (r = ne), Fe);
      }
      function _e(le) {
        return (
          iAe(le) && !!le.initializer && J.isLiteralConstDeclaration(jo(le))
        );
      }
      function je(le) {
        if (_e(le)) {
          const ht = Vre(le.initializer);
          return (r4(ht) || pe(le), J.createLiteralConstValue(jo(le, iAe), N));
        }
      }
      function Ge(le, ht) {
        if ((!ht && wp(le, 2)) || _e(le)) return;
        if (
          !ll(le) &&
          !Ha(le) &&
          le.type &&
          (!to(le) || !J.requiresAddingImplicitUndefined(le, d))
        )
          return st(le.type, Ni, Ri);
        const ne = P;
        P = le.name;
        let Fe;
        g || ((Fe = r), Jw(le) && (r = l0(le)));
        let it;
        return (
          i4(le)
            ? (it = J.createTypeOfDeclaration(le, d, Kw, Xw, N))
            : Yo(le)
              ? (it = J.createReturnTypeOfSignatureDeclaration(
                  le,
                  d,
                  Kw,
                  Xw,
                  N,
                ))
              : C.assertNever(le),
          (P = ne),
          g || (r = Fe),
          it ?? E.createKeywordTypeNode(133)
        );
      }
      function We(le) {
        switch (((le = jo(le)), le.kind)) {
          case 263:
          case 268:
          case 265:
          case 264:
          case 266:
          case 267:
            return !J.isDeclarationVisible(le);
          case 261:
            return !Wt(le);
          case 272:
          case 273:
          case 279:
          case 278:
            return !1;
          case 176:
            return !0;
        }
        return !1;
      }
      function at(le) {
        var ht;
        if (le.body) return !0;
        const ne =
          (ht = le.symbol.declarations) == null
            ? void 0
            : ht.filter((Fe) => Zl(Fe) && !Fe.body);
        return !ne || ne.indexOf(le) === ne.length - 1;
      }
      function Wt(le) {
        return Jc(le)
          ? !1
          : Qo(le.name)
            ? yt(le.name.elements, Wt)
            : J.isDeclarationVisible(le);
      }
      function cn(le, ht, ne) {
        if (wp(le, 2)) return E.createNodeArray();
        const Fe = Vt(ht, (it) => Re(it, ne));
        return Fe
          ? E.createNodeArray(Fe, ht.hasTrailingComma)
          : E.createNodeArray();
      }
      function gn(le, ht) {
        let ne;
        if (!ht) {
          const Fe = CS(le);
          Fe && (ne = [Re(Fe)]);
        }
        if (gp(le)) {
          let Fe;
          if (!ht) {
            const it = uM(le);
            it && (Fe = Re(it));
          }
          (Fe || (Fe = E.createParameterDeclaration(void 0, void 0, "value")),
            (ne = Bn(ne, Fe)));
        }
        return E.createNodeArray(ne || ae);
      }
      function Kn(le, ht) {
        return wp(le, 2) ? void 0 : Xn(ht, Ni, sl);
      }
      function _t(le) {
        return (
          Yi(le) ||
          vm(le) ||
          uc(le) ||
          Dc(le) ||
          gd(le) ||
          Yo(le) ||
          Mb(le) ||
          b1(le)
        );
      }
      function en(le, ht) {
        const ne = J.isEntityNameVisible(le, ht);
        de(ne);
      }
      function ir(le, ht) {
        return (ef(le) && ef(ht) && (le.jsDoc = ht.jsDoc), Rc(le, Zh(ht)));
      }
      function Di(le, ht) {
        if (ht) {
          if (((s = s || (le.kind !== 268 && le.kind !== 206)), ds(ht) && o)) {
            const ne = Dne(e.getEmitHost(), J, le);
            if (ne) return E.createStringLiteral(ne);
          }
          return ht;
        }
      }
      function lo(le) {
        if (J.isDeclarationVisible(le))
          if (le.moduleReference.kind === 284) {
            const ht = XN(le);
            return E.updateImportEqualsDeclaration(
              le,
              le.modifiers,
              le.isTypeOnly,
              le.name,
              E.updateExternalModuleReference(le.moduleReference, Di(le, ht)),
            );
          } else {
            const ht = r;
            return ((r = l0(le)), en(le.moduleReference, d), (r = ht), le);
          }
      }
      function zt(le) {
        if (!le.importClause)
          return E.updateImportDeclaration(
            le,
            le.modifiers,
            le.importClause,
            Di(le, le.moduleSpecifier),
            Zr(le.attributes),
          );
        const ht =
            le.importClause.phaseModifier === 166
              ? void 0
              : le.importClause.phaseModifier,
          ne =
            le.importClause &&
            le.importClause.name &&
            J.isDeclarationVisible(le.importClause)
              ? le.importClause.name
              : void 0;
        if (!le.importClause.namedBindings)
          return (
            ne &&
            E.updateImportDeclaration(
              le,
              le.modifiers,
              E.updateImportClause(le.importClause, ht, ne, void 0),
              Di(le, le.moduleSpecifier),
              Zr(le.attributes),
            )
          );
        if (le.importClause.namedBindings.kind === 275) {
          const it = J.isDeclarationVisible(le.importClause.namedBindings)
            ? le.importClause.namedBindings
            : void 0;
          return ne || it
            ? E.updateImportDeclaration(
                le,
                le.modifiers,
                E.updateImportClause(le.importClause, ht, ne, it),
                Di(le, le.moduleSpecifier),
                Zr(le.attributes),
              )
            : void 0;
        }
        const Fe = Ui(le.importClause.namedBindings.elements, (it) =>
          J.isDeclarationVisible(it) ? it : void 0,
        );
        if ((Fe && Fe.length) || ne)
          return E.updateImportDeclaration(
            le,
            le.modifiers,
            E.updateImportClause(
              le.importClause,
              ht,
              ne,
              Fe && Fe.length
                ? E.updateNamedImports(le.importClause.namedBindings, Fe)
                : void 0,
            ),
            Di(le, le.moduleSpecifier),
            Zr(le.attributes),
          );
        if (J.isImportRequiredByAugmentation(le))
          return (
            ie &&
              e.addDiagnostic(
                Ar(
                  le,
                  f.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations,
                ),
              ),
            E.updateImportDeclaration(
              le,
              le.modifiers,
              void 0,
              Di(le, le.moduleSpecifier),
              Zr(le.attributes),
            )
          );
      }
      function Zr(le) {
        const ht = HD(le);
        return le && ht !== void 0 ? le : void 0;
      }
      function Ai(le) {
        for (; et(_); ) {
          const ne = _.shift();
          if (!FF(ne))
            return C.fail(
              `Late replaced statement was found which is not handled by the declaration transformer!: ${C.formatSyntaxKind(ne.kind)}`,
            );
          const Fe = i;
          i = ne.parent && Yi(ne.parent) && !(zc(ne.parent) && o);
          const it = mn(ne);
          ((i = Fe), h.set(Fu(ne), it));
        }
        return Xn(le, ht, Vi);
        function ht(ne) {
          if (FF(ne)) {
            const Fe = Fu(ne);
            if (h.has(Fe)) {
              const it = h.get(Fe);
              return (
                h.delete(Fe),
                it &&
                  ((Mo(it) ? yt(it, TF) : TF(it)) && (l = !0),
                  Yi(ne.parent) && (Mo(it) ? yt(it, U2) : U2(it)) && (s = !0)),
                it
              );
            }
          }
          return ne;
        }
      }
      function Ni(le) {
        if ($o(le)) return;
        if (rd(le)) {
          if (We(le)) return;
          if (oy(le)) {
            if (ie) {
              if (
                !J.isDefinitelyReferenceToGlobalSymbolObject(le.name.expression)
              ) {
                if (Dc(le.parent) || Wa(le.parent)) {
                  e.addDiagnostic(
                    Ar(
                      le,
                      f.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,
                    ),
                  );
                  return;
                } else if (
                  (gd(le.parent) || wu(le.parent)) &&
                  !Ds(le.name.expression)
                ) {
                  e.addDiagnostic(
                    Ar(
                      le,
                      f.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations,
                    ),
                  );
                  return;
                }
              }
            } else if (!J.isLateBound(jo(le)) || !Ds(le.name.expression))
              return;
          }
        }
        if ((Yo(le) && J.isImplementationOfOverload(le)) || Iie(le)) return;
        let ht;
        _t(le) && ((ht = d), (d = le));
        const ne = r,
          Fe = Jw(le),
          it = g;
        let dt = (le.kind === 188 || le.kind === 201) && le.parent.kind !== 266;
        if ((Nl(le) || Gm(le)) && wp(le, 2))
          return le.symbol &&
            le.symbol.declarations &&
            le.symbol.declarations[0] !== le
            ? void 0
            : Lt(
                E.createPropertyDeclaration(
                  Uo(le),
                  le.name,
                  void 0,
                  void 0,
                  void 0,
                ),
              );
        if (
          (Fe && !g && (r = l0(le)),
          FS(le) && en(le.exprName, d),
          dt && (g = !0),
          Tqe(le))
        )
          switch (le.kind) {
            case 234: {
              (Mu(le.expression) || Ds(le.expression)) && en(le.expression, d);
              const Ue = kn(le, Ni, e);
              return Lt(
                E.updateExpressionWithTypeArguments(
                  Ue,
                  Ue.expression,
                  Ue.typeArguments,
                ),
              );
            }
            case 184: {
              en(le.typeName, d);
              const Ue = kn(le, Ni, e);
              return Lt(
                E.updateTypeReferenceNode(Ue, Ue.typeName, Ue.typeArguments),
              );
            }
            case 181:
              return Lt(
                E.updateConstructSignature(
                  le,
                  Kn(le, le.typeParameters),
                  cn(le, le.parameters),
                  Ge(le),
                ),
              );
            case 177: {
              const Ue = E.createConstructorDeclaration(
                Uo(le),
                cn(le, le.parameters, 0),
                void 0,
              );
              return Lt(Ue);
            }
            case 175: {
              if (eo(le.name)) return Lt(void 0);
              const Ue = E.createMethodDeclaration(
                Uo(le),
                void 0,
                le.name,
                le.questionToken,
                Kn(le, le.typeParameters),
                cn(le, le.parameters),
                Ge(le),
                void 0,
              );
              return Lt(Ue);
            }
            case 178:
              return eo(le.name)
                ? Lt(void 0)
                : Lt(
                    E.updateGetAccessorDeclaration(
                      le,
                      Uo(le),
                      le.name,
                      gn(le, wp(le, 2)),
                      Ge(le),
                      void 0,
                    ),
                  );
            case 179:
              return eo(le.name)
                ? Lt(void 0)
                : Lt(
                    E.updateSetAccessorDeclaration(
                      le,
                      Uo(le),
                      le.name,
                      gn(le, wp(le, 2)),
                      void 0,
                    ),
                  );
            case 173:
              return eo(le.name)
                ? Lt(void 0)
                : Lt(
                    E.updatePropertyDeclaration(
                      le,
                      Uo(le),
                      le.name,
                      le.questionToken,
                      Ge(le),
                      je(le),
                    ),
                  );
            case 172:
              return eo(le.name)
                ? Lt(void 0)
                : Lt(
                    E.updatePropertySignature(
                      le,
                      Uo(le),
                      le.name,
                      le.questionToken,
                      Ge(le),
                    ),
                  );
            case 174:
              return eo(le.name)
                ? Lt(void 0)
                : Lt(
                    E.updateMethodSignature(
                      le,
                      Uo(le),
                      le.name,
                      le.questionToken,
                      Kn(le, le.typeParameters),
                      cn(le, le.parameters),
                      Ge(le),
                    ),
                  );
            case 180:
              return Lt(
                E.updateCallSignature(
                  le,
                  Kn(le, le.typeParameters),
                  cn(le, le.parameters),
                  Ge(le),
                ),
              );
            case 182:
              return Lt(
                E.updateIndexSignature(
                  le,
                  Uo(le),
                  cn(le, le.parameters),
                  st(le.type, Ni, Ri) || E.createKeywordTypeNode(133),
                ),
              );
            case 261:
              return Qo(le.name)
                ? ri(le.name)
                : ((dt = !0),
                  (g = !0),
                  Lt(
                    E.updateVariableDeclaration(
                      le,
                      le.name,
                      void 0,
                      Ge(le),
                      je(le),
                    ),
                  ));
            case 169:
              return Pr(le) && (le.default || le.constraint)
                ? Lt(
                    E.updateTypeParameterDeclaration(
                      le,
                      le.modifiers,
                      le.name,
                      void 0,
                      void 0,
                    ),
                  )
                : Lt(kn(le, Ni, e));
            case 195: {
              const Ue = st(le.checkType, Ni, Ri),
                Rt = st(le.extendsType, Ni, Ri),
                It = d;
              d = le.trueType;
              const Ot = st(le.trueType, Ni, Ri);
              d = It;
              const nt = st(le.falseType, Ni, Ri);
              return (
                C.assert(Ue),
                C.assert(Rt),
                C.assert(Ot),
                C.assert(nt),
                Lt(E.updateConditionalTypeNode(le, Ue, Rt, Ot, nt))
              );
            }
            case 185:
              return Lt(
                E.updateFunctionTypeNode(
                  le,
                  Xn(le.typeParameters, Ni, sl),
                  cn(le, le.parameters),
                  C.checkDefined(st(le.type, Ni, Ri)),
                ),
              );
            case 186:
              return Lt(
                E.updateConstructorTypeNode(
                  le,
                  Uo(le),
                  Xn(le.typeParameters, Ni, sl),
                  cn(le, le.parameters),
                  C.checkDefined(st(le.type, Ni, Ri)),
                ),
              );
            case 206:
              return ry(le)
                ? Lt(
                    E.updateImportTypeNode(
                      le,
                      E.updateLiteralTypeNode(
                        le.argument,
                        Di(le, le.argument.literal),
                      ),
                      le.attributes,
                      le.qualifier,
                      Xn(le.typeArguments, Ni, Ri),
                      le.isTypeOf,
                    ),
                  )
                : Lt(le);
            default:
              C.assertNever(
                le,
                `Attempted to process unhandled node kind: ${C.formatSyntaxKind(le.kind)}`,
              );
          }
        return (
          qI(le) && ca(W, le.pos).line === ca(W, le.end).line && Cr(le, 1),
          Lt(kn(le, Ni, e))
        );
        function Lt(Ue) {
          return (
            Ue && Fe && oy(le) && qi(le),
            _t(le) && (d = ht),
            Fe && !g && (r = ne),
            dt && (g = it),
            Ue === le ? Ue : Ue && jr(ir(Ue, le), le)
          );
        }
      }
      function Pr(le) {
        return le.parent.kind === 175 && wp(le.parent, 2);
      }
      function Ci(le) {
        if (!bqe(le) || $o(le)) return;
        switch (le.kind) {
          case 279:
            return (
              Yi(le.parent) && (s = !0),
              (u = !0),
              E.updateExportDeclaration(
                le,
                le.modifiers,
                le.isTypeOnly,
                le.exportClause,
                Di(le, le.moduleSpecifier),
                Zr(le.attributes),
              )
            );
          case 278: {
            if (
              (Yi(le.parent) && (s = !0), (u = !0), le.expression.kind === 80)
            )
              return le;
            {
              const ne = E.createUniqueName("_default", 16);
              ((r = () => ({
                diagnosticMessage:
                  f.Default_export_of_the_module_has_or_is_using_private_name_0,
                errorNode: le,
              })),
                (k = le));
              const Fe = Ge(le),
                it = E.createVariableDeclaration(ne, void 0, Fe, void 0);
              k = void 0;
              const dt = E.createVariableStatement(
                i ? [E.createModifier(138)] : [],
                E.createVariableDeclarationList([it], 2),
              );
              return (
                ir(dt, le),
                cw(le),
                [dt, E.updateExportAssignment(le, le.modifiers, ne)]
              );
            }
          }
        }
        const ht = mn(le);
        return (h.set(Fu(le), ht), le);
      }
      function $e(le) {
        if (Fc(le) || wp(le, 2048) || !Tm(le)) return le;
        const ht = E.createModifiersFromModifierFlags(Gd(le) & 131039);
        return E.replaceModifiers(le, ht);
      }
      function At(le, ht, ne, Fe) {
        const it = E.updateModuleDeclaration(le, ht, ne, Fe);
        if (yu(it) || it.flags & 32) return it;
        const dt = E.createModuleDeclaration(
          it.modifiers,
          it.name,
          it.body,
          it.flags | 32,
        );
        return (jr(dt, it), vt(dt, it), dt);
      }
      function mn(le) {
        if (_) for (; mN(_, le); );
        if ($o(le)) return;
        switch (le.kind) {
          case 272:
            return lo(le);
          case 273:
            return zt(le);
        }
        if (
          (rd(le) && We(le)) ||
          o_(le) ||
          (Yo(le) && J.isImplementationOfOverload(le))
        )
          return;
        let ht;
        _t(le) && ((ht = d), (d = le));
        const ne = Jw(le),
          Fe = r;
        ne && (r = l0(le));
        const it = i;
        switch (le.kind) {
          case 266: {
            i = !1;
            const Lt = dt(
              E.updateTypeAliasDeclaration(
                le,
                Uo(le),
                le.name,
                Xn(le.typeParameters, Ni, sl),
                C.checkDefined(st(le.type, Ni, Ri)),
              ),
            );
            return ((i = it), Lt);
          }
          case 265:
            return dt(
              E.updateInterfaceDeclaration(
                le,
                Uo(le),
                le.name,
                Kn(le, le.typeParameters),
                Ft(le.heritageClauses),
                Xn(le.members, Ni, _S),
              ),
            );
          case 263: {
            const Lt = dt(
              E.updateFunctionDeclaration(
                le,
                Uo(le),
                void 0,
                le.name,
                Kn(le, le.typeParameters),
                cn(le, le.parameters),
                Ge(le),
                void 0,
              ),
            );
            if (Lt && J.isExpandoFunctionDeclaration(le) && at(le)) {
              const Ue = J.getPropertiesOfContainerFunction(le);
              ie && K(le);
              const Rt = i0.createModuleDeclaration(
                void 0,
                Lt.name || E.createIdentifier("_default"),
                E.createModuleBlock([]),
                32,
              );
              (ps(Rt, d), (Rt.locals = da(Ue)), (Rt.symbol = Ue[0].parent));
              const It = [];
              let Ot = Ui(Ue, (he) => {
                if (!WI(he.valueDeclaration)) return;
                const B = Gi(he.escapedName);
                if (!fp(B, 99)) return;
                r = l0(he.valueDeclaration);
                const Ae = J.createTypeOfDeclaration(
                  he.valueDeclaration,
                  Rt,
                  Kw,
                  Xw | 2,
                  N,
                );
                r = Fe;
                const te = SI(B),
                  xt = te
                    ? E.getGeneratedNameForNode(he.valueDeclaration)
                    : E.createIdentifier(B);
                te && It.push([xt, B]);
                const Xt = E.createVariableDeclaration(xt, void 0, Ae, void 0);
                return E.createVariableStatement(
                  te ? void 0 : [E.createToken(95)],
                  E.createVariableDeclarationList([Xt]),
                );
              });
              It.length
                ? Ot.push(
                    E.createExportDeclaration(
                      void 0,
                      !1,
                      E.createNamedExports(
                        Vt(It, ([he, B]) => E.createExportSpecifier(!1, he, B)),
                      ),
                    ),
                  )
                : (Ot = Ui(Ot, (he) => E.replaceModifiers(he, 0)));
              const nt = E.createModuleDeclaration(
                Uo(le),
                le.name,
                E.createModuleBlock(Ot),
                32,
              );
              if (!wp(Lt, 2048)) return [Lt, nt];
              const Kt = E.createModifiersFromModifierFlags(
                  (Gd(Lt) & -2081) | 128,
                ),
                Tr = E.updateFunctionDeclaration(
                  Lt,
                  Kt,
                  void 0,
                  Lt.name,
                  Lt.typeParameters,
                  Lt.parameters,
                  Lt.type,
                  void 0,
                ),
                Oe = E.updateModuleDeclaration(nt, Kt, nt.name, nt.body),
                Nt = E.createExportAssignment(void 0, !1, nt.name);
              return (Yi(le.parent) && (s = !0), (u = !0), [Tr, Oe, Nt]);
            } else return Lt;
          }
          case 268: {
            i = !1;
            const Lt = le.body;
            if (Lt && Lt.kind === 269) {
              const Ue = l,
                Rt = u;
              ((u = !1), (l = !1));
              const It = Xn(Lt.statements, Ci, Vi);
              let Ot = Ai(It);
              (le.flags & 33554432 && (l = !1),
                !M_(le) &&
                  !Mn(Ot) &&
                  !u &&
                  (l
                    ? (Ot = E.createNodeArray([...Ot, bw(E)]))
                    : (Ot = Xn(Ot, $e, Vi))));
              const nt = E.updateModuleBlock(Lt, Ot);
              ((i = it), (l = Ue), (u = Rt));
              const Kt = Uo(le);
              return dt(At(le, Kt, TS(le) ? Di(le, le.name) : le.name, nt));
            } else {
              i = it;
              const Ue = Uo(le);
              ((i = !1), st(Lt, Ci));
              const Rt = Fu(Lt),
                It = h.get(Rt);
              return (h.delete(Rt), dt(At(le, Ue, le.name, It)));
            }
          }
          case 264: {
            ((P = le.name), (k = le));
            const Lt = E.createNodeArray(Uo(le)),
              Ue = Kn(le, le.typeParameters),
              Rt = yg(le);
            let It;
            if (Rt) {
              const he = r;
              ((It = m2(
                Ki(Rt.parameters, (B) => {
                  if (!di(B, 31) || $o(B)) return;
                  if (((r = l0(B)), B.name.kind === 80))
                    return ir(
                      E.createPropertyDeclaration(
                        Uo(B),
                        B.name,
                        B.questionToken,
                        Ge(B),
                        je(B),
                      ),
                      B,
                    );
                  return Ae(B.name);
                  function Ae(te) {
                    let xt;
                    for (const Xt of te.elements)
                      Jc(Xt) ||
                        (Qo(Xt.name) && (xt = so(xt, Ae(Xt.name))),
                        (xt = xt || []),
                        xt.push(
                          E.createPropertyDeclaration(
                            Uo(B),
                            Xt.name,
                            void 0,
                            Ge(Xt),
                            void 0,
                          ),
                        ));
                    return xt;
                  }
                }),
              )),
                (r = he));
            }
            const nt = yt(le.members, (he) => !!he.name && eo(he.name))
                ? [
                    E.createPropertyDeclaration(
                      void 0,
                      E.createPrivateIdentifier("#private"),
                      void 0,
                      void 0,
                      void 0,
                    ),
                  ]
                : void 0,
              Kt = J.createLateBoundIndexSignatures(le, d, Kw, Xw, N),
              Tr = so(so(so(nt, Kt), It), Xn(le.members, Ni, bc)),
              Oe = E.createNodeArray(Tr),
              Nt = lh(le);
            if (Nt && !Ds(Nt.expression) && Nt.expression.kind !== 106) {
              const he = le.name ? Gi(le.name.escapedText) : "default",
                B = E.createUniqueName(`${he}_base`, 16);
              r = () => ({
                diagnosticMessage:
                  f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,
                errorNode: Nt,
                typeName: le.name,
              });
              const Ae = E.createVariableDeclaration(
                  B,
                  void 0,
                  J.createTypeOfExpression(Nt.expression, le, Kw, Xw, N),
                  void 0,
                ),
                te = E.createVariableStatement(
                  i ? [E.createModifier(138)] : [],
                  E.createVariableDeclarationList([Ae], 2),
                ),
                xt = E.createNodeArray(
                  Vt(le.heritageClauses, (Xt) => {
                    if (Xt.token === 96) {
                      const Pe = r;
                      r = l0(Xt.types[0]);
                      const gt = E.updateHeritageClause(
                        Xt,
                        Vt(Xt.types, (Bt) =>
                          E.updateExpressionWithTypeArguments(
                            Bt,
                            B,
                            Xn(Bt.typeArguments, Ni, Ri),
                          ),
                        ),
                      );
                      return ((r = Pe), gt);
                    }
                    return E.updateHeritageClause(
                      Xt,
                      Xn(
                        E.createNodeArray(
                          Un(
                            Xt.types,
                            (Pe) =>
                              Ds(Pe.expression) || Pe.expression.kind === 106,
                          ),
                        ),
                        Ni,
                        dy,
                      ),
                    );
                  }),
                );
              return [
                te,
                dt(E.updateClassDeclaration(le, Lt, le.name, Ue, xt, Oe)),
              ];
            } else {
              const he = Ft(le.heritageClauses);
              return dt(E.updateClassDeclaration(le, Lt, le.name, Ue, he, Oe));
            }
          }
          case 244:
            return dt(dr(le));
          case 267:
            return dt(
              E.updateEnumDeclaration(
                le,
                E.createNodeArray(Uo(le)),
                le.name,
                E.createNodeArray(
                  Ui(le.members, (Lt) => {
                    if ($o(Lt)) return;
                    const Ue = J.getEnumMemberValue(Lt),
                      Rt = Ue?.value;
                    ie &&
                      Lt.initializer &&
                      Ue?.hasExternalReferences &&
                      !va(Lt.name) &&
                      e.addDiagnostic(
                        Ar(
                          Lt,
                          f.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations,
                        ),
                      );
                    const It =
                      Rt === void 0
                        ? void 0
                        : typeof Rt == "string"
                          ? E.createStringLiteral(Rt)
                          : Rt < 0
                            ? E.createPrefixUnaryExpression(
                                41,
                                E.createNumericLiteral(-Rt),
                              )
                            : E.createNumericLiteral(Rt);
                    return ir(E.updateEnumMember(Lt, Lt.name, It), Lt);
                  }),
                ),
              ),
            );
        }
        return C.assertNever(
          le,
          `Unhandled top-level node in declaration emit: ${C.formatSyntaxKind(le.kind)}`,
        );
        function dt(Lt) {
          return (
            _t(le) && (d = ht),
            ne && (r = Fe),
            le.kind === 268 && (i = it),
            Lt === le
              ? Lt
              : ((k = void 0), (P = void 0), Lt && jr(ir(Lt, le), le))
          );
        }
      }
      function dr(le) {
        if (!Ye(le.declarationList.declarations, Wt)) return;
        const ht = Xn(le.declarationList.declarations, Ni, yi);
        if (!et(ht)) return;
        const ne = E.createNodeArray(Uo(le));
        let Fe;
        return (
          ik(le.declarationList) || rk(le.declarationList)
            ? ((Fe = E.createVariableDeclarationList(ht, 2)),
              jr(Fe, le.declarationList),
              vt(Fe, le.declarationList),
              Rc(Fe, le.declarationList))
            : (Fe = E.updateVariableDeclarationList(le.declarationList, ht)),
          E.updateVariableStatement(le, ne, Fe)
        );
      }
      function ri(le) {
        return la(Ui(le.elements, (ht) => ai(ht)));
      }
      function ai(le) {
        if (le.kind !== 233 && le.name)
          return Wt(le)
            ? Qo(le.name)
              ? ri(le.name)
              : E.createVariableDeclaration(le.name, void 0, Ge(le), void 0)
            : void 0;
      }
      function qi(le) {
        let ht;
        (g || ((ht = r), (r = Xae(le))), (P = le.name), C.assert(oy(le)));
        const Fe = le.name.expression;
        (en(Fe, d), g || (r = ht), (P = void 0));
      }
      function $o(le) {
        return !!ye && !!le && Ete(le, W);
      }
      function Ia(le) {
        return ll(le) || pc(le);
      }
      function Mn(le) {
        return yt(le, Ia);
      }
      function Uo(le) {
        const ht = Gd(le),
          ne = ot(le);
        return ht === ne
          ? sP(le.modifiers, (Fe) => ni(Fe, Aa), Aa)
          : E.createModifiersFromModifierFlags(ne);
      }
      function ot(le) {
        let ht = 130030,
          ne = i && !yqe(le) ? 128 : 0;
        const Fe = le.parent.kind === 308;
        return (
          (!Fe || (o && Fe && zc(le.parent))) && ((ht ^= 128), (ne = 0)),
          rAe(le, ht, ne)
        );
      }
      function Ft(le) {
        return E.createNodeArray(
          Un(
            Vt(le, (ht) =>
              E.updateHeritageClause(
                ht,
                Xn(
                  E.createNodeArray(
                    Un(
                      ht.types,
                      (ne) =>
                        Ds(ne.expression) ||
                        (ht.token === 96 && ne.expression.kind === 106),
                    ),
                  ),
                  Ni,
                  dy,
                ),
              ),
            ),
            (ht) => ht.types && !!ht.types.length,
          ),
        );
      }
    }
    function yqe(e) {
      return e.kind === 265;
    }
    function vqe(e, t, r, i) {
      return e.createModifiersFromModifierFlags(rAe(t, r, i));
    }
    function rAe(e, t = 131070, r = 0) {
      let i = (Gd(e) & t) | r;
      return (
        i & 2048 && !(i & 32) && (i ^= 32),
        i & 2048 && i & 128 && (i ^= 128),
        i
      );
    }
    function iAe(e) {
      switch (e.kind) {
        case 173:
        case 172:
          return !wp(e, 2);
        case 170:
        case 261:
          return !0;
      }
      return !1;
    }
    function bqe(e) {
      switch (e.kind) {
        case 263:
        case 268:
        case 272:
        case 265:
        case 264:
        case 266:
        case 267:
        case 244:
        case 273:
        case 279:
        case 278:
          return !0;
      }
      return !1;
    }
    function Tqe(e) {
      switch (e.kind) {
        case 181:
        case 177:
        case 175:
        case 178:
        case 179:
        case 173:
        case 172:
        case 174:
        case 180:
        case 182:
        case 261:
        case 169:
        case 234:
        case 184:
        case 195:
        case 185:
        case 186:
        case 206:
          return !0;
      }
      return !1;
    }
    function Sqe(e) {
      switch (e) {
        case 200:
          return tH;
        case 99:
        case 7:
        case 6:
        case 5:
        case 100:
        case 101:
        case 102:
        case 199:
        case 1:
          return Kae;
        case 4:
          return Jae;
        default:
          return eH;
      }
    }
    var Qae = { scriptTransformers: ae, declarationTransformers: ae };
    function Zae(e, t, r) {
      return {
        scriptTransformers: Eqe(e, t, r),
        declarationTransformers: Aqe(t),
      };
    }
    function Eqe(e, t, r) {
      if (r) return ae;
      const i = Ga(e),
        o = bu(e),
        s = Jk(e),
        l = [];
      return (
        Xr(l, t && Vt(t.before, aAe)),
        l.push(Nae),
        e.experimentalDecorators && l.push(Lae),
        z6(e) && l.push(jae),
        i < 99 && l.push(Bae),
        !e.experimentalDecorators && (i < 99 || !s) && l.push(kae),
        l.push(Mae),
        i < 8 && l.push(zae),
        i < 7 && l.push(Fae),
        i < 6 && l.push(Wae),
        i < 5 && l.push(Oae),
        i < 4 && l.push(wae),
        i < 3 && l.push(Uae),
        i < 2 && (l.push(Hae), l.push(qae)),
        l.push(Sqe(o)),
        Xr(l, t && Vt(t.after, aAe)),
        l
      );
    }
    function Aqe(e) {
      const t = [];
      return (t.push(nH), Xr(t, e && Vt(e.afterDeclarations, xqe)), t);
    }
    function Iqe(e) {
      return (t) => (Mie(t) ? e.transformBundle(t) : e.transformSourceFile(t));
    }
    function oAe(e, t) {
      return (r) => {
        const i = e(r);
        return typeof i == "function" ? t(r, i) : Iqe(i);
      };
    }
    function aAe(e) {
      return oAe(e, hh);
    }
    function xqe(e) {
      return oAe(e, (t, r) => r);
    }
    function mP(e, t) {
      return t;
    }
    function Yw(e, t, r) {
      r(e, t);
    }
    function $w(e, t, r, i, o, s, l) {
      var u, d;
      const _ = new Array(359);
      let h,
        g,
        E,
        A = 0,
        R = [],
        N = [],
        P = [],
        k = [],
        W = 0,
        O = !1,
        G = [],
        j = 0,
        J,
        Z,
        q = mP,
        ye = Yw,
        ie = 0;
      const K = [],
        pe = {
          factory: r,
          getCompilerOptions: () => i,
          getEmitResolver: () => e,
          getEmitHost: () => t,
          getEmitHelperFactory: Nu(() => uie(pe)),
          startLexicalEnvironment: ce,
          suspendLexicalEnvironment: Re,
          resumeLexicalEnvironment: _e,
          endLexicalEnvironment: je,
          setLexicalEnvironmentFlags: Ge,
          getLexicalEnvironmentFlags: We,
          hoistVariableDeclaration: Ne,
          hoistFunctionDeclaration: Be,
          addInitializationStatement: lt,
          startBlockScope: at,
          endBlockScope: Wt,
          addBlockScopedVariable: cn,
          requestEmitHelper: gn,
          readEmitHelpers: Kn,
          enableSubstitution: X,
          enableEmitNotification: Se,
          isSubstitutionEnabled: Ce,
          isEmitNotificationEnabled: re,
          get onSubstituteNode() {
            return q;
          },
          set onSubstituteNode(en) {
            (C.assert(
              ie < 1,
              "Cannot modify transformation hooks after initialization has completed.",
            ),
              C.assert(en !== void 0, "Value must not be 'undefined'"),
              (q = en));
          },
          get onEmitNode() {
            return ye;
          },
          set onEmitNode(en) {
            (C.assert(
              ie < 1,
              "Cannot modify transformation hooks after initialization has completed.",
            ),
              C.assert(en !== void 0, "Value must not be 'undefined'"),
              (ye = en));
          },
          addDiagnostic(en) {
            K.push(en);
          },
        };
      for (const en of o) cj(Wn(jo(en)));
      Rl("beforeTransform");
      const de = s.map((en) => en(pe)),
        fe = (en) => {
          for (const ir of de) en = ir(en);
          return en;
        };
      ie = 1;
      const ve = [];
      for (const en of o)
        ((u = xr) == null ||
          u.push(
            xr.Phase.Emit,
            "transformNodes",
            en.kind === 308
              ? { path: en.path }
              : { kind: en.kind, pos: en.pos, end: en.end },
          ),
          ve.push((l ? fe : xe)(en)),
          (d = xr) == null || d.pop());
      return (
        (ie = 2),
        Rl("afterTransform"),
        wf("transformTime", "beforeTransform", "afterTransform"),
        {
          transformed: ve,
          substituteNode: Je,
          emitNodeWithNotification: be,
          isEmitNotificationEnabled: re,
          dispose: _t,
          diagnostics: K,
        }
      );
      function xe(en) {
        return en && (!Yi(en) || !en.isDeclarationFile) ? fe(en) : en;
      }
      function X(en) {
        (C.assert(
          ie < 2,
          "Cannot modify the transformation context after transformation has completed.",
        ),
          (_[en] |= 1));
      }
      function Ce(en) {
        return (_[en.kind] & 1) !== 0 && (Qa(en) & 8) === 0;
      }
      function Je(en, ir) {
        return (
          C.assert(
            ie < 3,
            "Cannot substitute a node after the result is disposed.",
          ),
          (ir && Ce(ir) && q(en, ir)) || ir
        );
      }
      function Se(en) {
        (C.assert(
          ie < 2,
          "Cannot modify the transformation context after transformation has completed.",
        ),
          (_[en] |= 2));
      }
      function re(en) {
        return (_[en.kind] & 2) !== 0 || (Qa(en) & 4) !== 0;
      }
      function be(en, ir, Di) {
        (C.assert(
          ie < 3,
          "Cannot invoke TransformationResult callbacks after the result is disposed.",
        ),
          ir && (re(ir) ? ye(en, ir, Di) : Di(en, ir)));
      }
      function Ne(en) {
        (C.assert(
          ie > 0,
          "Cannot modify the lexical environment during initialization.",
        ),
          C.assert(
            ie < 2,
            "Cannot modify the lexical environment after transformation has completed.",
          ));
        const ir = Cr(r.createVariableDeclaration(en), 128);
        (h ? h.push(ir) : (h = [ir]), A & 1 && (A |= 2));
      }
      function Be(en) {
        (C.assert(
          ie > 0,
          "Cannot modify the lexical environment during initialization.",
        ),
          C.assert(
            ie < 2,
            "Cannot modify the lexical environment after transformation has completed.",
          ),
          Cr(en, 2097152),
          g ? g.push(en) : (g = [en]));
      }
      function lt(en) {
        (C.assert(
          ie > 0,
          "Cannot modify the lexical environment during initialization.",
        ),
          C.assert(
            ie < 2,
            "Cannot modify the lexical environment after transformation has completed.",
          ),
          Cr(en, 2097152),
          E ? E.push(en) : (E = [en]));
      }
      function ce() {
        (C.assert(
          ie > 0,
          "Cannot modify the lexical environment during initialization.",
        ),
          C.assert(
            ie < 2,
            "Cannot modify the lexical environment after transformation has completed.",
          ),
          C.assert(!O, "Lexical environment is suspended."),
          (R[W] = h),
          (N[W] = g),
          (P[W] = E),
          (k[W] = A),
          W++,
          (h = void 0),
          (g = void 0),
          (E = void 0),
          (A = 0));
      }
      function Re() {
        (C.assert(
          ie > 0,
          "Cannot modify the lexical environment during initialization.",
        ),
          C.assert(
            ie < 2,
            "Cannot modify the lexical environment after transformation has completed.",
          ),
          C.assert(!O, "Lexical environment is already suspended."),
          (O = !0));
      }
      function _e() {
        (C.assert(
          ie > 0,
          "Cannot modify the lexical environment during initialization.",
        ),
          C.assert(
            ie < 2,
            "Cannot modify the lexical environment after transformation has completed.",
          ),
          C.assert(O, "Lexical environment is not suspended."),
          (O = !1));
      }
      function je() {
        (C.assert(
          ie > 0,
          "Cannot modify the lexical environment during initialization.",
        ),
          C.assert(
            ie < 2,
            "Cannot modify the lexical environment after transformation has completed.",
          ),
          C.assert(!O, "Lexical environment is suspended."));
        let en;
        if (h || g || E) {
          if ((g && (en = [...g]), h)) {
            const ir = r.createVariableStatement(
              void 0,
              r.createVariableDeclarationList(h),
            );
            (Cr(ir, 2097152), en ? en.push(ir) : (en = [ir]));
          }
          E && (en ? (en = [...en, ...E]) : (en = [...E]));
        }
        return (
          W--,
          (h = R[W]),
          (g = N[W]),
          (E = P[W]),
          (A = k[W]),
          W === 0 && ((R = []), (N = []), (P = []), (k = [])),
          en
        );
      }
      function Ge(en, ir) {
        A = ir ? A | en : A & ~en;
      }
      function We() {
        return A;
      }
      function at() {
        (C.assert(ie > 0, "Cannot start a block scope during initialization."),
          C.assert(
            ie < 2,
            "Cannot start a block scope after transformation has completed.",
          ),
          (G[j] = J),
          j++,
          (J = void 0));
      }
      function Wt() {
        (C.assert(ie > 0, "Cannot end a block scope during initialization."),
          C.assert(
            ie < 2,
            "Cannot end a block scope after transformation has completed.",
          ));
        const en = yt(J)
          ? [
              r.createVariableStatement(
                void 0,
                r.createVariableDeclarationList(
                  J.map((ir) => r.createVariableDeclaration(ir)),
                  1,
                ),
              ),
            ]
          : void 0;
        return (j--, (J = G[j]), j === 0 && (G = []), en);
      }
      function cn(en) {
        (C.assert(
          j > 0,
          "Cannot add a block scoped variable outside of an iteration body.",
        ),
          (J || (J = [])).push(en));
      }
      function gn(en) {
        if (
          (C.assert(
            ie > 0,
            "Cannot modify the transformation context during initialization.",
          ),
          C.assert(
            ie < 2,
            "Cannot modify the transformation context after transformation has completed.",
          ),
          C.assert(!en.scoped, "Cannot request a scoped emit helper."),
          en.dependencies)
        )
          for (const ir of en.dependencies) gn(ir);
        Z = Bn(Z, en);
      }
      function Kn() {
        (C.assert(
          ie > 0,
          "Cannot modify the transformation context during initialization.",
        ),
          C.assert(
            ie < 2,
            "Cannot modify the transformation context after transformation has completed.",
          ));
        const en = Z;
        return ((Z = void 0), en);
      }
      function _t() {
        if (ie < 3) {
          for (const en of o) cj(Wn(jo(en)));
          ((h = void 0),
            (R = void 0),
            (g = void 0),
            (N = void 0),
            (q = void 0),
            (ye = void 0),
            (Z = void 0),
            (ie = 3));
        }
      }
    }
    var Qw = {
        factory: L,
        getCompilerOptions: () => ({}),
        getEmitResolver: ha,
        getEmitHost: ha,
        getEmitHelperFactory: ha,
        startLexicalEnvironment: gs,
        resumeLexicalEnvironment: gs,
        suspendLexicalEnvironment: gs,
        endLexicalEnvironment: uS,
        setLexicalEnvironmentFlags: gs,
        getLexicalEnvironmentFlags: () => 0,
        hoistVariableDeclaration: gs,
        hoistFunctionDeclaration: gs,
        addInitializationStatement: gs,
        startBlockScope: gs,
        endBlockScope: uS,
        addBlockScopedVariable: gs,
        requestEmitHelper: gs,
        readEmitHelpers: ha,
        enableSubstitution: gs,
        enableEmitNotification: gs,
        isSubstitutionEnabled: ha,
        isEmitNotificationEnabled: ha,
        onSubstituteNode: mP,
        onEmitNode: Yw,
        addDiagnostic: gs,
      },
      sAe = Dqe();
    function ese(e) {
      return El(e, ".tsbuildinfo");
    }
    function rH(e, t, r, i = !1, o, s) {
      const l = Mo(r) ? r : y6(e, r, i),
        u = e.getCompilerOptions();
      if (!o)
        if (u.outFile) {
          if (l.length) {
            const d = L.createBundle(l),
              _ = t(hP(d, e, i), d);
            if (_) return _;
          }
        } else
          for (const d of l) {
            const _ = t(hP(d, e, i), d);
            if (_) return _;
          }
      if (s) {
        const d = c0(u);
        if (d) return t({ buildInfoPath: d }, void 0);
      }
    }
    function c0(e) {
      const t = e.configFilePath;
      if (!Rqe(e)) return;
      if (e.tsBuildInfoFile) return e.tsBuildInfoFile;
      const r = e.outFile;
      let i;
      if (r) i = Tu(r);
      else {
        if (!t) return;
        const o = Tu(t);
        i = e.outDir
          ? e.rootDir
            ? ab(e.outDir, cf(e.rootDir, o, !0))
            : Qr(e.outDir, Ic(o))
          : o;
      }
      return i + ".tsbuildinfo";
    }
    function Rqe(e) {
      return kS(e) || !!e.tscBuild;
    }
    function tse(e, t) {
      const r = e.outFile,
        i = e.emitDeclarationOnly ? void 0 : r,
        o = i && lAe(i, e),
        s = t || _p(e) ? Tu(r) + ".d.ts" : void 0,
        l = s && w6(e) ? s + ".map" : void 0;
      return {
        jsFilePath: i,
        sourceMapFilePath: o,
        declarationFilePath: s,
        declarationMapPath: l,
      };
    }
    function hP(e, t, r) {
      const i = t.getCompilerOptions();
      if (e.kind === 309) return tse(i, r);
      {
        const o = Cne(e.fileName, t, Zw(e.fileName, i)),
          s = Ff(e),
          l =
            s &&
            Zg(
              e.fileName,
              o,
              t.getCurrentDirectory(),
              !t.useCaseSensitiveFileNames(),
            ) === 0,
          u = i.emitDeclarationOnly || l ? void 0 : o,
          d = !u || Ff(e) ? void 0 : lAe(u, i),
          _ = r || (_p(i) && !s) ? Nne(e.fileName, t) : void 0,
          h = _ && w6(i) ? _ + ".map" : void 0;
        return {
          jsFilePath: u,
          sourceMapFilePath: d,
          declarationFilePath: _,
          declarationMapPath: h,
        };
      }
    }
    function lAe(e, t) {
      return t.sourceMap && !t.inlineSourceMap ? e + ".map" : void 0;
    }
    function Zw(e, t) {
      return El(e, ".json")
        ? ".json"
        : t.jsx === 1 && $l(e, [".jsx", ".tsx"])
          ? ".jsx"
          : $l(e, [".mts", ".mjs"])
            ? ".mjs"
            : $l(e, [".cts", ".cjs"])
              ? ".cjs"
              : ".js";
    }
    function cAe(e, t, r, i) {
      return r ? ab(r, cf(i(), e, t)) : e;
    }
    function _P(e, t, r, i = () => w1(t, r)) {
      return iH(e, t.options, r, i);
    }
    function iH(e, t, r, i) {
      return av(cAe(e, r, t.declarationDir || t.outDir, i), _6(e));
    }
    function dAe(e, t, r, i = () => w1(t, r)) {
      if (t.options.emitDeclarationOnly) return;
      const o = El(e, ".json"),
        s = oH(e, t.options, r, i);
      return !o || Zg(e, s, C.checkDefined(t.options.configFilePath), r) !== 0
        ? s
        : void 0;
    }
    function oH(e, t, r, i) {
      return av(cAe(e, r, t.outDir, i), Zw(e, t));
    }
    function uAe() {
      let e;
      return { addOutput: t, getOutputs: r };
      function t(i) {
        i && (e || (e = [])).push(i);
      }
      function r() {
        return e || ae;
      }
    }
    function pAe(e, t) {
      const {
        jsFilePath: r,
        sourceMapFilePath: i,
        declarationFilePath: o,
        declarationMapPath: s,
      } = tse(e.options, !1);
      (t(r), t(i), t(o), t(s));
    }
    function fAe(e, t, r, i, o) {
      if (ad(t)) return;
      const s = dAe(t, e, r, o);
      if (
        (i(s),
        !El(t, ".json") &&
          (s && e.options.sourceMap && i(`${s}.map`), _p(e.options)))
      ) {
        const l = _P(t, e, r, o);
        (i(l), e.options.declarationMap && i(`${l}.map`));
      }
    }
    function gP(e, t, r, i, o) {
      let s;
      return (
        e.rootDir
          ? ((s = To(e.rootDir, r)), o?.(e.rootDir))
          : e.composite && e.configFilePath
            ? ((s = ci(Bd(e.configFilePath))), o?.(s))
            : (s = cse(t(), r, i)),
        s && s[s.length - 1] !== Js && (s += Js),
        s
      );
    }
    function w1({ options: e, fileNames: t }, r) {
      return gP(
        e,
        () => Un(t, (i) => !(e.noEmitForJsFiles && $l(i, fD)) && !ad(i)),
        ci(Bd(C.checkDefined(e.configFilePath))),
        Fd(!r),
      );
    }
    function E3(e, t) {
      const { addOutput: r, getOutputs: i } = uAe();
      if (e.options.outFile) pAe(e, r);
      else {
        const o = Nu(() => w1(e, t));
        for (const s of e.fileNames) fAe(e, s, t, r, o);
      }
      return (r(c0(e.options)), i());
    }
    function mAe(e, t, r) {
      ((t = ya(t)),
        C.assert(
          jn(e.fileNames, t),
          "Expected fileName to be present in command line",
        ));
      const { addOutput: i, getOutputs: o } = uAe();
      return (e.options.outFile ? pAe(e, i) : fAe(e, t, r, i), o());
    }
    function aH(e, t) {
      if (e.options.outFile) {
        const { jsFilePath: o, declarationFilePath: s } = tse(e.options, !1);
        return C.checkDefined(
          o || s,
          `project ${e.options.configFilePath} expected to have at least one output`,
        );
      }
      const r = Nu(() => w1(e, t));
      for (const o of e.fileNames) {
        if (ad(o)) continue;
        const s = dAe(o, e, t, r);
        if (s) return s;
        if (!El(o, ".json") && _p(e.options)) return _P(o, e, t, r);
      }
      const i = c0(e.options);
      return (
        i ||
        C.fail(
          `project ${e.options.configFilePath} expected to have at least one output`,
        )
      );
    }
    function sH(e, t) {
      return !!t && !!e;
    }
    function lH(
      e,
      t,
      r,
      { scriptTransformers: i, declarationTransformers: o },
      s,
      l,
      u,
      d,
    ) {
      var _ = t.getCompilerOptions(),
        h = _.sourceMap || _.inlineSourceMap || w6(_) ? [] : void 0,
        g = _.listEmittedFiles ? [] : void 0,
        E = cM(),
        A = iv(_),
        R = kk(A),
        { enter: N, exit: P } = t9("printTime", "beforePrint", "afterPrint"),
        k = !1;
      return (
        N(),
        rH(t, W, y6(t, r, u), u, l, !r && !d),
        P(),
        {
          emitSkipped: k,
          diagnostics: E.getDiagnostics(),
          emittedFiles: g,
          sourceMaps: h,
        }
      );
      function W(
        {
          jsFilePath: de,
          sourceMapFilePath: fe,
          declarationFilePath: ve,
          declarationMapPath: xe,
          buildInfoPath: X,
        },
        Ce,
      ) {
        var Je, Se, re, be, Ne, Be;
        ((Je = xr) == null ||
          Je.push(xr.Phase.Emit, "emitJsFileOrBundle", { jsFilePath: de }),
          G(Ce, de, fe),
          (Se = xr) == null || Se.pop(),
          (re = xr) == null ||
            re.push(xr.Phase.Emit, "emitDeclarationFileOrBundle", {
              declarationFilePath: ve,
            }),
          j(Ce, ve, xe),
          (be = xr) == null || be.pop(),
          (Ne = xr) == null ||
            Ne.push(xr.Phase.Emit, "emitBuildInfo", { buildInfoPath: X }),
          O(X),
          (Be = xr) == null || Be.pop());
      }
      function O(de) {
        if (!de || r) return;
        if (t.isEmitBlocked(de)) {
          k = !0;
          return;
        }
        const fe = t.getBuildInfo() || { version: Le };
        (b6(t, E, de, nse(fe), !1, void 0, { buildInfo: fe }), g?.push(de));
      }
      function G(de, fe, ve) {
        if (!de || s || !fe) return;
        if (t.isEmitBlocked(fe) || _.noEmit) {
          k = !0;
          return;
        }
        (Yi(de) ? [de] : Un(de.sourceFiles, t6)).forEach((Je) => {
          (_.noCheck || !xM(Je, _)) && Z(Je);
        });
        const xe = $w(e, t, L, _, [de], i, !1),
          X = {
            removeComments: _.removeComments,
            newLine: _.newLine,
            noEmitHelpers: _.noEmitHelpers,
            module: bu(_),
            moduleResolution: iu(_),
            target: Ga(_),
            sourceMap: _.sourceMap,
            inlineSourceMap: _.inlineSourceMap,
            inlineSources: _.inlineSources,
            extendedDiagnostics: _.extendedDiagnostics,
          },
          Ce = zb(X, {
            hasGlobalName: e.hasGlobalName,
            onEmitNode: xe.emitNodeWithNotification,
            isEmitNotificationEnabled: xe.isEmitNotificationEnabled,
            substituteNode: xe.substituteNode,
          });
        (C.assert(
          xe.transformed.length === 1,
          "Should only see one output from the transform",
        ),
          q(fe, ve, xe, Ce, _),
          xe.dispose(),
          g && (g.push(fe), ve && g.push(ve)));
      }
      function j(de, fe, ve) {
        if (!de || s === 0) return;
        if (!fe) {
          (s || _.emitDeclarationOnly) && (k = !0);
          return;
        }
        const xe = Yi(de) ? [de] : de.sourceFiles,
          X = u ? xe : Un(xe, t6),
          Ce = _.outFile ? [L.createBundle(X)] : X;
        X.forEach((re) => {
          ((s && !_p(_)) || _.noCheck || sH(s, u) || !xM(re, _)) && J(re);
        });
        const Je = $w(e, t, L, _, Ce, o, !1);
        if (et(Je.diagnostics)) for (const re of Je.diagnostics) E.add(re);
        const Se =
          (!!Je.diagnostics && !!Je.diagnostics.length) ||
          !!t.isEmitBlocked(fe) ||
          !!_.noEmit;
        if (((k = k || Se), !Se || u)) {
          C.assert(
            Je.transformed.length === 1,
            "Should only see one output from the decl transform",
          );
          const re = {
              removeComments: _.removeComments,
              newLine: _.newLine,
              noEmitHelpers: !0,
              module: _.module,
              moduleResolution: _.moduleResolution,
              target: _.target,
              sourceMap: s !== 2 && _.declarationMap,
              inlineSourceMap: _.inlineSourceMap,
              extendedDiagnostics: _.extendedDiagnostics,
              onlyPrintJsDocStyle: !0,
              omitBraceSourceMapPositions: !0,
            },
            be = zb(re, {
              hasGlobalName: e.hasGlobalName,
              onEmitNode: Je.emitNodeWithNotification,
              isEmitNotificationEnabled: Je.isEmitNotificationEnabled,
              substituteNode: Je.substituteNode,
            }),
            Ne = q(fe, ve, Je, be, {
              sourceMap: re.sourceMap,
              sourceRoot: _.sourceRoot,
              mapRoot: _.mapRoot,
              extendedDiagnostics: _.extendedDiagnostics,
            });
          g && (Ne && g.push(fe), ve && g.push(ve));
        }
        Je.dispose();
      }
      function J(de) {
        if (ll(de)) {
          de.expression.kind === 80 &&
            e.collectLinkedAliases(de.expression, !0);
          return;
        } else if (ou(de)) {
          e.collectLinkedAliases(de.propertyName || de.name, !0);
          return;
        }
        Jo(de, J);
      }
      function Z(de) {
        Pu(de) ||
          ex(de, (fe) => {
            if ((Fc(fe) && !(nv(fe) & 32)) || vl(fe)) return "skip";
            e.markLinkedReferences(fe);
          });
      }
      function q(de, fe, ve, xe, X) {
        const Ce = ve.transformed[0],
          Je = Ce.kind === 309 ? Ce : void 0,
          Se = Ce.kind === 308 ? Ce : void 0,
          re = Je ? Je.sourceFiles : [Se];
        let be;
        (ye(X, Ce) && (be = pae(t, Ic(Bd(de)), ie(X), K(X, de, Se), X)),
          Je ? xe.writeBundle(Je, R, be) : xe.writeFile(Se, R, be));
        let Ne;
        if (be) {
          h &&
            h.push({
              inputSourceFileNames: be.getSources(),
              sourceMap: be.toJSON(),
            });
          const ce = pe(X, be, de, fe, Se);
          if (
            (ce &&
              (R.isAtStartOfLine() || R.rawWrite(A),
              (Ne = R.getTextPos()),
              R.writeComment(`//# sourceMappingURL=${ce}`)),
            fe)
          ) {
            const Re = be.toString();
            b6(t, E, fe, Re, !1, re);
          }
        } else R.writeLine();
        const Be = R.getText(),
          lt = { sourceMapUrlPos: Ne, diagnostics: ve.diagnostics };
        return (
          b6(t, E, de, Be, !!_.emitBOM, re, lt),
          R.clear(),
          !lt.skippedDtsWrite
        );
      }
      function ye(de, fe) {
        return (
          (de.sourceMap || de.inlineSourceMap) &&
          (fe.kind !== 308 || !El(fe.fileName, ".json"))
        );
      }
      function ie(de) {
        const fe = Bd(de.sourceRoot || "");
        return fe && Uc(fe);
      }
      function K(de, fe, ve) {
        if (de.sourceRoot) return t.getCommonSourceDirectory();
        if (de.mapRoot) {
          let xe = Bd(de.mapRoot);
          return (
            ve && (xe = ci(v6(ve.fileName, t, xe))),
            zh(xe) === 0 && (xe = Qr(t.getCommonSourceDirectory(), xe)),
            xe
          );
        }
        return ci(ya(fe));
      }
      function pe(de, fe, ve, xe, X) {
        if (de.inlineSourceMap) {
          const Je = fe.toString();
          return `data:application/json;base64,${qne(jc, Je)}`;
        }
        const Ce = Ic(Bd(C.checkDefined(xe)));
        if (de.mapRoot) {
          let Je = Bd(de.mapRoot);
          return (
            X && (Je = ci(v6(X.fileName, t, Je))),
            zh(Je) === 0
              ? ((Je = Qr(t.getCommonSourceDirectory(), Je)),
                encodeURI(
                  PR(
                    ci(ya(ve)),
                    Qr(Je, Ce),
                    t.getCurrentDirectory(),
                    t.getCanonicalFileName,
                    !0,
                  ),
                ))
              : encodeURI(Qr(Je, Ce))
          );
        }
        return encodeURI(Ce);
      }
    }
    function nse(e) {
      return JSON.stringify(e);
    }
    function cH(e, t) {
      return gV(e, t);
    }
    var rse = {
        hasGlobalName: ha,
        getReferencedExportContainer: ha,
        getReferencedImportDeclaration: ha,
        getReferencedDeclarationWithCollidingName: ha,
        isDeclarationWithCollidingName: ha,
        isValueAliasDeclaration: ha,
        isReferencedAliasDeclaration: ha,
        isTopLevelValueImportEqualsWithEntityName: ha,
        hasNodeCheckFlag: ha,
        isDeclarationVisible: ha,
        isLateBound: (e) => !1,
        collectLinkedAliases: ha,
        markLinkedReferences: ha,
        isImplementationOfOverload: ha,
        requiresAddingImplicitUndefined: ha,
        isExpandoFunctionDeclaration: ha,
        getPropertiesOfContainerFunction: ha,
        createTypeOfDeclaration: ha,
        createReturnTypeOfSignatureDeclaration: ha,
        createTypeOfExpression: ha,
        createLiteralConstValue: ha,
        isSymbolAccessible: ha,
        isEntityNameVisible: ha,
        getConstantValue: ha,
        getEnumMemberValue: ha,
        getReferencedValueDeclaration: ha,
        getReferencedValueDeclarations: ha,
        getTypeReferenceSerializationKind: ha,
        isOptionalParameter: ha,
        isArgumentsLocalBinding: ha,
        getExternalModuleFileFromDeclaration: ha,
        isLiteralConstDeclaration: ha,
        getJsxFactoryEntity: ha,
        getJsxFragmentFactoryEntity: ha,
        isBindingCapturedByNode: ha,
        getDeclarationStatementsForSourceFile: ha,
        isImportRequiredByAugmentation: ha,
        isDefinitelyReferenceToGlobalSymbolObject: ha,
        createLateBoundIndexSignatures: ha,
        symbolToDeclarations: ha,
      },
      ise = Nu(() => zb({})),
      YS = Nu(() => zb({ removeComments: !0 })),
      ose = Nu(() => zb({ removeComments: !0, neverAsciiEscape: !0 })),
      dH = Nu(() => zb({ removeComments: !0, omitTrailingSemicolon: !0 }));
    function zb(e = {}, t = {}) {
      var {
          hasGlobalName: r,
          onEmitNode: i = Yw,
          isEmitNotificationEnabled: o,
          substituteNode: s = mP,
          onBeforeEmitNode: l,
          onAfterEmitNode: u,
          onBeforeEmitNodeArray: d,
          onAfterEmitNodeArray: _,
          onBeforeEmitToken: h,
          onAfterEmitToken: g,
        } = t,
        E = !!e.extendedDiagnostics,
        A = !!e.omitBraceSourceMapPositions,
        R = iv(e),
        N = bu(e),
        P = new Map(),
        k,
        W,
        O,
        G,
        j,
        J,
        Z,
        q,
        ye,
        ie,
        K,
        pe,
        de,
        fe,
        ve,
        xe = e.preserveSourceNewlines,
        X,
        Ce,
        Je,
        Se = xC,
        re,
        be = !0,
        Ne,
        Be,
        lt = -1,
        ce,
        Re = -1,
        _e = -1,
        je = -1,
        Ge = -1,
        We,
        at,
        Wt = !1,
        cn = !!e.removeComments,
        gn,
        Kn,
        { enter: _t, exit: en } = yTe(
          E,
          "commentTime",
          "beforeComment",
          "afterComment",
        ),
        ir = L.parenthesizer,
        Di = {
          select: (D) =>
            D === 0 ? ir.parenthesizeLeadingTypeArgument : void 0,
        },
        lo = Mc();
      return (
        $o(),
        {
          printNode: zt,
          printList: Zr,
          printFile: Ni,
          printBundle: Ai,
          writeNode: Pr,
          writeList: Ci,
          writeFile: At,
          writeBundle: $e,
        }
      );
      function zt(D, me, Et) {
        switch (D) {
          case 0:
            C.assert(Yi(me), "Expected a SourceFile node.");
            break;
          case 2:
            C.assert(He(me), "Expected an Identifier node.");
            break;
          case 1:
            C.assert(St(me), "Expected an Expression node.");
            break;
        }
        switch (me.kind) {
          case 308:
            return Ni(me);
          case 309:
            return Ai(me);
        }
        return (Pr(D, me, Et, mn()), dr());
      }
      function Zr(D, me, Et) {
        return (Ci(D, me, Et, mn()), dr());
      }
      function Ai(D) {
        return ($e(D, mn(), void 0), dr());
      }
      function Ni(D) {
        return (At(D, mn(), void 0), dr());
      }
      function Pr(D, me, Et, An) {
        const vi = Ce;
        (qi(An, void 0), ri(D, me, Et), $o(), (Ce = vi));
      }
      function Ci(D, me, Et, An) {
        const vi = Ce;
        (qi(An, void 0), Et && ai(Et), Jr(void 0, me, D), $o(), (Ce = vi));
      }
      function $e(D, me, Et) {
        re = !1;
        const An = Ce;
        (qi(me, Et), Iv(D), Jm(D), Kt(D), rL(D));
        for (const vi of D.sourceFiles) ri(0, vi, vi);
        ($o(), (Ce = An));
      }
      function At(D, me, Et) {
        re = !0;
        const An = Ce;
        (qi(me, Et), Iv(D), Jm(D), ri(0, D, D), $o(), (Ce = An));
      }
      function mn() {
        return Je || (Je = kk(R));
      }
      function dr() {
        const D = Je.getText();
        return (Je.clear(), D);
      }
      function ri(D, me, Et) {
        (Et && ai(Et), ne(D, me, void 0));
      }
      function ai(D) {
        ((k = D), (We = void 0), (at = void 0), D && gE(D));
      }
      function qi(D, me) {
        (D && e.omitTrailingSemicolon && (D = tV(D)),
          (Ce = D),
          (Ne = me),
          (be = !Ce || !Ne));
      }
      function $o() {
        ((W = []),
          (O = []),
          (G = []),
          (j = new Set()),
          (J = []),
          (Z = new Map()),
          (q = []),
          (ye = 0),
          (ie = []),
          (K = 0),
          (pe = []),
          (de = void 0),
          (fe = []),
          (ve = void 0),
          (k = void 0),
          (We = void 0),
          (at = void 0),
          qi(void 0, void 0));
      }
      function Ia() {
        return We || (We = ag(C.checkDefined(k)));
      }
      function Mn(D, me) {
        D !== void 0 && ne(4, D, me);
      }
      function Uo(D) {
        D !== void 0 && ne(2, D, void 0);
      }
      function ot(D, me) {
        D !== void 0 && ne(1, D, me);
      }
      function Ft(D) {
        ne(ka(D) ? 6 : 4, D);
      }
      function le(D) {
        xe && Fm(D) & 4 && (xe = !1);
      }
      function ht(D) {
        xe = D;
      }
      function ne(D, me, Et) {
        ((Kn = Et), dt(0, D, me)(D, me), (Kn = void 0));
      }
      function Fe(D) {
        return !cn && !Yi(D);
      }
      function it(D) {
        return !be && !Yi(D) && !e6(D);
      }
      function dt(D, me, Et) {
        switch (D) {
          case 0:
            if (i !== Yw && (!o || o(Et))) return Ue;
          case 1:
            if (s !== mP && (gn = s(me, Et) || Et) !== Et)
              return (Kn && (gn = Kn(gn)), nt);
          case 2:
            if (Fe(Et)) return hE;
          case 3:
            if (it(Et)) return uA;
          case 4:
            return Rt;
          default:
            return C.assertNever(D);
        }
      }
      function Lt(D, me, Et) {
        return dt(D + 1, me, Et);
      }
      function Ue(D, me) {
        const Et = Lt(0, D, me);
        i(D, me, Et);
      }
      function Rt(D, me) {
        if ((l?.(me), xe)) {
          const Et = xe;
          (le(me), It(D, me), ht(Et));
        } else It(D, me);
        (u?.(me), (Kn = void 0));
      }
      function It(D, me, Et = !0) {
        if (Et) {
          const An = uj(me);
          if (An) return he(D, me, An);
        }
        if (D === 0) return D0(ma(me, Yi));
        if (D === 2) return te(ma(me, He));
        if (D === 6) return Nt(ma(me, ka), !0);
        if (D === 3) return Ot(ma(me, sl));
        if (D === 7) return f_(ma(me, A1));
        if (D === 5) return (C.assertNode(me, Sj), bh(!0));
        if (D === 4) {
          switch (me.kind) {
            case 16:
            case 17:
            case 18:
              return Nt(me, !1);
            case 80:
              return te(me);
            case 81:
              return xt(me);
            case 167:
              return Xt(me);
            case 168:
              return gt(me);
            case 169:
              return Bt(me);
            case 170:
              return gr(me);
            case 171:
              return tr(me);
            case 172:
              return Jn(me);
            case 173:
              return ft(me);
            case 174:
              return Mt(me);
            case 175:
              return jt(me);
            case 176:
              return Qt(me);
            case 177:
              return In(me);
            case 178:
            case 179:
              return yn(me);
            case 180:
              return wt(me);
            case 181:
              return En(me);
            case 182:
              return xn(me);
            case 183:
              return Ii(me);
            case 184:
              return ra(me);
            case 185:
              return sa(me);
            case 186:
              return Tc(me);
            case 187:
              return $s(me);
            case 188:
              return Ra(me);
            case 189:
              return ec(me);
            case 190:
              return Lo(me);
            case 191:
              return is(me);
            case 193:
              return qa(me);
            case 194:
              return Zt(me);
            case 195:
              return As(me);
            case 196:
              return Hl(me);
            case 197:
              return sc(me);
            case 234:
              return ld(me);
            case 198:
              return vd();
            case 199:
              return Fs(me);
            case 200:
              return Ee(me);
            case 201:
              return Y(me);
            case 202:
              return pt(me);
            case 203:
              return fa(me);
            case 204:
              return qt(me);
            case 205:
              return Ln(me);
            case 206:
              return fn(me);
            case 207:
              return ur(me);
            case 208:
              return si(me);
            case 209:
              return Dr(me);
            case 240:
              return Cg(me);
            case 241:
              return ln();
            case 242:
              return Ng(me);
            case 244:
              return Xc(me);
            case 243:
              return bh(!1);
            case 245:
              return Tf(me);
            case 246:
              return p_(me);
            case 247:
              return ut(me);
            case 248:
              return tn(me);
            case 249:
              return an(me);
            case 250:
              return wn(me);
            case 251:
              return or(me);
            case 252:
              return Ti(me);
            case 253:
              return $i(me);
            case 254:
              return ta(me);
            case 255:
              return Eo(me);
            case 256:
              return Vo(me);
            case 257:
              return ml(me);
            case 258:
              return Ca(me);
            case 259:
              return cd(me);
            case 260:
              return Up(me);
            case 261:
              return Sf(me);
            case 262:
              return Yf(me);
            case 263:
              return Ty(me);
            case 264:
              return Rn(me);
            case 265:
              return Lr(me);
            case 266:
              return Yn(me);
            case 267:
              return lr(me);
            case 268:
              return Oi(me);
            case 269:
              return Ro(me);
            case 270:
              return _i(me);
            case 271:
              return U_(me);
            case 272:
              return Do(me);
            case 273:
              return hl(me);
            case 274:
              return sp(me);
            case 275:
              return xm(me);
            case 281:
              return TC(me);
            case 276:
              return Td(me);
            case 277:
              return Rm(me);
            case 278:
              return Hp(me);
            case 279:
              return b0(me);
            case 280:
              return tL(me);
            case 282:
              return SC(me);
            case 301:
              return j_(me);
            case 302:
              return T0(me);
            case 283:
              return;
            case 284:
              return q1(me);
            case 12:
              return K1(me);
            case 287:
            case 290:
              return nL(me);
            case 288:
            case 291:
              return Cx(me);
            case 292:
              return EC(me);
            case 293:
              return E0(me);
            case 294:
              return X1(me);
            case 295:
              return Mx(me);
            case 296:
              return Px(me);
            case 297:
              return Jb(me);
            case 298:
              return Ev(me);
            case 299:
              return Ey(me);
            case 300:
              return Ay(me);
            case 304:
              return Kb(me);
            case 305:
              return A0(me);
            case 306:
              return Y1(me);
            case 307:
              return I0(me);
            case 308:
              return D0(me);
            case 309:
              return C.fail("Bundles should be printed using printBundle");
            case 310:
              return R0(me);
            case 311:
              return xy(me);
            case 313:
              return zr("*");
            case 314:
              return zr("?");
            case 315:
              return Ps(me);
            case 316:
              return co(me);
            case 317:
              return Go(me);
            case 318:
              return xl(me);
            case 192:
            case 319:
              return bf(me);
            case 320:
              return;
            case 321:
              return ns(me);
            case 323:
              return Iu(me);
            case 324:
              return q_(me);
            case 328:
            case 333:
            case 338:
              return x0(me);
            case 329:
            case 330:
              return H_(me);
            case 331:
            case 332:
              return;
            case 334:
            case 335:
            case 336:
            case 337:
              return;
            case 339:
              return lp(me);
            case 340:
              return Jd(me);
            case 342:
            case 349:
              return Gu(me);
            case 341:
            case 343:
            case 344:
            case 345:
            case 350:
            case 351:
              return $1(me);
            case 346:
              return cl(me);
            case 347:
              return qd(me);
            case 348:
              return AC(me);
            case 352:
              return Iy(me);
            case 354:
            case 355:
              return;
          }
          if (St(me) && ((D = 1), s !== mP)) {
            const An = s(D, me) || me;
            An !== me && ((me = An), Kn && (me = Kn(me)));
          }
        }
        if (D === 1)
          switch (me.kind) {
            case 9:
            case 10:
              return Oe(me);
            case 11:
            case 14:
            case 15:
              return Nt(me, !1);
            case 80:
              return te(me);
            case 81:
              return xt(me);
            case 210:
              return Fn(me);
            case 211:
              return ro(me);
            case 212:
              return So(me);
            case 213:
              return Da(me);
            case 214:
              return Qs(me);
            case 215:
              return Sc(me);
            case 216:
              return fc(me);
            case 217:
              return Hs(me);
            case 218:
              return Pl(me);
            case 219:
              return vh(me);
            case 220:
              return Pd(me);
            case 221:
              return ze(me);
            case 222:
              return Jt(me);
            case 223:
              return er(me);
            case 224:
              return go(me);
            case 225:
              return Za(me);
            case 226:
              return Va(me);
            case 227:
              return lo(me);
            case 228:
              return tl(me);
            case 229:
              return Ll(me);
            case 230:
              return ql(me);
            case 231:
              return rf(me);
            case 232:
              return bd(me);
            case 233:
              return;
            case 235:
              return jp(me);
            case 236:
              return Au(me);
            case 234:
              return ld(me);
            case 239:
              return Xf(me);
            case 237:
              return G_(me);
            case 238:
              return C.fail("SyntheticExpression should never be printed.");
            case 283:
              return;
            case 285:
              return Sv(me);
            case 286:
              return J1(me);
            case 289:
              return Dx(me);
            case 353:
              return C.fail("SyntaxList should not be printed");
            case 354:
              return;
            case 356:
              return Qe(me);
            case 357:
              return Q1(me);
            case 358:
              return C.fail(
                "SyntheticReferenceExpression should not be printed",
              );
          }
        if (ep(me.kind)) return nA(me, Wo);
        if (J9(me.kind)) return nA(me, zr);
        C.fail(`Unhandled SyntaxKind: ${C.formatSyntaxKind(me.kind)}.`);
      }
      function Ot(D) {
        (Mn(D.name), Mr(), Wo("in"), Mr(), Mn(D.constraint));
      }
      function nt(D, me) {
        const Et = Lt(1, D, me);
        (C.assertIsDefined(gn), (me = gn), (gn = void 0), Et(D, me));
      }
      function Kt(D) {
        let me = !1;
        const Et = D.kind === 309 ? D : void 0;
        if (Et && N === 0) return;
        const An = Et ? Et.sourceFiles.length : 1;
        for (let vi = 0; vi < An; vi++) {
          const wi = Et ? Et.sourceFiles[vi] : D,
            Ao = Yi(wi) ? wi : k,
            Li = e.noEmitHelpers || (!!Ao && Jie(Ao)),
            Ja = Yi(wi) && !re,
            hc = Tr(wi);
          if (hc)
            for (const Kd of hc) {
              if (Kd.scoped) {
                if (Et) continue;
              } else {
                if (Li) continue;
                if (Ja) {
                  if (P.get(Kd.name)) continue;
                  P.set(Kd.name, !0);
                }
              }
              (typeof Kd.text == "string" ? Km(Kd.text) : Km(Kd.text(CC)),
                (me = !0));
            }
        }
        return me;
      }
      function Tr(D) {
        const me = dj(D);
        return me && xp(me, pie);
      }
      function Oe(D) {
        Nt(D, !1);
      }
      function Nt(D, me) {
        const Et = tT(D, void 0, e.neverAsciiEscape, me);
        (e.sourceMap || e.inlineSourceMap) && (D.kind === 11 || db(D.kind))
          ? Dy(Et)
          : fE(Et);
      }
      function he(D, me, Et) {
        switch (Et.kind) {
          case 1:
            B(D, me, Et);
            break;
          case 0:
            Ae(D, me, Et);
            break;
        }
      }
      function B(D, me, Et) {
        (Lx(`\${${Et.order}:`), It(D, me, !1), Lx("}"));
      }
      function Ae(D, me, Et) {
        (C.assert(
          me.kind === 243,
          `A tab stop cannot be attached to a node of kind ${C.formatSyntaxKind(me.kind)}.`,
        ),
          C.assert(
            D !== 5,
            "A tab stop cannot be attached to an embedded statement.",
          ),
          Lx(`$${Et.order}`));
      }
      function te(D) {
        ((D.symbol ? iL : Se)(Cv(D, !1), D.symbol), Jr(D, _1(D), 53776));
      }
      function xt(D) {
        Se(Cv(D, !1));
      }
      function Xt(D) {
        (Pe(D.left), zr("."), Mn(D.right));
      }
      function Pe(D) {
        D.kind === 80 ? ot(D) : Mn(D);
      }
      function gt(D) {
        (zr("["),
          ot(D.expression, ir.parenthesizeExpressionOfComputedPropertyName),
          zr("]"));
      }
      function Bt(D) {
        (Sh(D, D.modifiers),
          Mn(D.name),
          D.constraint && (Mr(), Wo("extends"), Mr(), Mn(D.constraint)),
          D.default && (Mr(), vp("="), Mr(), Mn(D.default)));
      }
      function gr(D) {
        (xu(D, D.modifiers, !0),
          Mn(D.dotDotDotToken),
          Xb(D.name, tA),
          Mn(D.questionToken),
          D.parent && D.parent.kind === 318 && !D.name
            ? Mn(D.type)
            : Cm(D.type),
          C0(
            D.initializer,
            D.type
              ? D.type.end
              : D.questionToken
                ? D.questionToken.end
                : D.name
                  ? D.name.end
                  : D.modifiers
                    ? D.modifiers.end
                    : D.pos,
            D,
            ir.parenthesizeExpressionForDisallowedComma,
          ));
      }
      function tr(D) {
        (zr("@"), ot(D.expression, ir.parenthesizeLeftSideOfAccess));
      }
      function Jn(D) {
        (Sh(D, D.modifiers),
          Xb(D.name, RC),
          Mn(D.questionToken),
          Cm(D.type),
          Ru());
      }
      function ft(D) {
        (xu(D, D.modifiers, !0),
          Mn(D.name),
          Mn(D.questionToken),
          Mn(D.exclamationToken),
          Cm(D.type),
          C0(
            D.initializer,
            D.type
              ? D.type.end
              : D.questionToken
                ? D.questionToken.end
                : D.name.end,
            D,
          ),
          Ru());
      }
      function Mt(D) {
        (Sh(D, D.modifiers), Mn(D.name), Mn(D.questionToken), Bu(D, Im, Th));
      }
      function jt(D) {
        (xu(D, D.modifiers, !0),
          Mn(D.asteriskToken),
          Mn(D.name),
          Mn(D.questionToken),
          Bu(D, Im, V_));
      }
      function Qt(D) {
        (Wo("static"), Xm(D), Xe(D.body), Ny(D));
      }
      function In(D) {
        (xu(D, D.modifiers, !1), Wo("constructor"), Bu(D, Im, V_));
      }
      function yn(D) {
        const me = xu(D, D.modifiers, !0),
          Et = D.kind === 178 ? 139 : 153;
        (z(Et, me, Wo, D), Mr(), Mn(D.name), Bu(D, Im, V_));
      }
      function wt(D) {
        Bu(D, Im, Th);
      }
      function En(D) {
        (Wo("new"), Mr(), Bu(D, Im, Th));
      }
      function xn(D) {
        (xu(D, D.modifiers, !1), pE(D, D.parameters), Cm(D.type), Ru());
      }
      function Ln(D) {
        (Mn(D.type), Mn(D.literal));
      }
      function ln() {
        Ru();
      }
      function Ii(D) {
        (D.assertsModifier && (Mn(D.assertsModifier), Mr()),
          Mn(D.parameterName),
          D.type && (Mr(), Wo("is"), Mr(), Mn(D.type)));
      }
      function ra(D) {
        (Mn(D.typeName), $f(D, D.typeArguments));
      }
      function sa(D) {
        Bu(D, zo, Bl);
      }
      function zo(D) {
        (Lg(D, D.typeParameters), m_(D, D.parameters), Mr(), zr("=>"));
      }
      function Bl(D) {
        (Mr(), Mn(D.type));
      }
      function xl(D) {
        (Wo("function"), N0(D, D.parameters), zr(":"), Mn(D.type));
      }
      function Ps(D) {
        (zr("?"), Mn(D.type));
      }
      function co(D) {
        (zr("!"), Mn(D.type));
      }
      function Go(D) {
        (Mn(D.type), zr("="));
      }
      function Tc(D) {
        (Sh(D, D.modifiers), Wo("new"), Mr(), Bu(D, zo, Bl));
      }
      function $s(D) {
        (Wo("typeof"), Mr(), Mn(D.exprName), $f(D, D.typeArguments));
      }
      function Ra(D) {
        (Xm(D), Ye(D.members, mE), zr("{"));
        const me = Qa(D) & 1 ? 768 : 32897;
        (Jr(D, D.members, me | 524288), zr("}"), Ny(D));
      }
      function ec(D) {
        (Mn(D.elementType, ir.parenthesizeNonArrayTypeOfPostfixType),
          zr("["),
          zr("]"));
      }
      function bf(D) {
        (zr("..."), Mn(D.type));
      }
      function Lo(D) {
        z(23, D.pos, zr, D);
        const me = Qa(D) & 1 ? 528 : 657;
        (Jr(D, D.elements, me | 524288, ir.parenthesizeElementTypeOfTupleType),
          z(24, D.elements.end, zr, D));
      }
      function fa(D) {
        (Mn(D.dotDotDotToken),
          Mn(D.name),
          Mn(D.questionToken),
          z(59, D.name.end, zr, D),
          Mr(),
          Mn(D.type));
      }
      function is(D) {
        (Mn(D.type, ir.parenthesizeTypeOfOptionalType), zr("?"));
      }
      function qa(D) {
        Jr(D, D.types, 516, ir.parenthesizeConstituentTypeOfUnionType);
      }
      function Zt(D) {
        Jr(D, D.types, 520, ir.parenthesizeConstituentTypeOfIntersectionType);
      }
      function As(D) {
        (Mn(D.checkType, ir.parenthesizeCheckTypeOfConditionalType),
          Mr(),
          Wo("extends"),
          Mr(),
          Mn(D.extendsType, ir.parenthesizeExtendsTypeOfConditionalType),
          Mr(),
          zr("?"),
          Mr(),
          Mn(D.trueType),
          Mr(),
          zr(":"),
          Mr(),
          Mn(D.falseType));
      }
      function Hl(D) {
        (Wo("infer"), Mr(), Mn(D.typeParameter));
      }
      function sc(D) {
        (zr("("), Mn(D.type), zr(")"));
      }
      function vd() {
        Wo("this");
      }
      function Fs(D) {
        (Qb(D.operator, Wo), Mr());
        const me =
          D.operator === 148
            ? ir.parenthesizeOperandOfReadonlyTypeOperator
            : ir.parenthesizeOperandOfTypeOperator;
        Mn(D.type, me);
      }
      function Ee(D) {
        (Mn(D.objectType, ir.parenthesizeNonArrayTypeOfPostfixType),
          zr("["),
          Mn(D.indexType),
          zr("]"));
      }
      function Y(D) {
        const me = Qa(D);
        (zr("{"),
          me & 1 ? Mr() : (du(), J_()),
          D.readonlyToken &&
            (Mn(D.readonlyToken),
            D.readonlyToken.kind !== 148 && Wo("readonly"),
            Mr()),
          zr("["),
          ne(3, D.typeParameter),
          D.nameType && (Mr(), Wo("as"), Mr(), Mn(D.nameType)),
          zr("]"),
          D.questionToken &&
            (Mn(D.questionToken), D.questionToken.kind !== 58 && zr("?")),
          zr(":"),
          Mr(),
          Mn(D.type),
          Ru(),
          me & 1 ? Mr() : (du(), Eh()),
          Jr(D, D.members, 2),
          zr("}"));
      }
      function pt(D) {
        ot(D.literal);
      }
      function qt(D) {
        (Mn(D.head), Jr(D, D.templateSpans, 262144));
      }
      function fn(D) {
        (D.isTypeOf && (Wo("typeof"), Mr()),
          Wo("import"),
          zr("("),
          Mn(D.argument),
          D.attributes && (zr(","), Mr(), ne(7, D.attributes)),
          zr(")"),
          D.qualifier && (zr("."), Mn(D.qualifier)),
          $f(D, D.typeArguments));
      }
      function ur(D) {
        (zr("{"), Jr(D, D.elements, 525136), zr("}"));
      }
      function si(D) {
        (zr("["), Jr(D, D.elements, 524880), zr("]"));
      }
      function Dr(D) {
        (Mn(D.dotDotDotToken),
          D.propertyName && (Mn(D.propertyName), zr(":"), Mr()),
          Mn(D.name),
          C0(
            D.initializer,
            D.name.end,
            D,
            ir.parenthesizeExpressionForDisallowedComma,
          ));
      }
      function Fn(D) {
        const me = D.elements,
          Et = D.multiLine ? 65536 : 0;
        Vr(D, me, 8914 | Et, ir.parenthesizeExpressionForDisallowedComma);
      }
      function ro(D) {
        (Xm(D), Ye(D.properties, mE));
        const me = Qa(D) & 131072;
        me && J_();
        const Et = D.multiLine ? 65536 : 0,
          An = k && k.languageVersion >= 1 && !Ff(k) ? 64 : 0;
        (Jr(D, D.properties, 526226 | An | Et), me && Eh(), Ny(D));
      }
      function So(D) {
        ot(D.expression, ir.parenthesizeLeftSideOfAccess);
        const me =
            D.questionDotToken ||
            uh(L.createToken(25), D.expression.end, D.name.pos),
          Et = h_(D, D.expression, me),
          An = h_(D, me, D.name);
        (Qf(Et, !1),
          me.kind !== 29 &&
            Ns(D.expression) &&
            !Ce.hasTrailingComment() &&
            !Ce.hasTrailingWhitespace() &&
            zr("."),
          D.questionDotToken ? Mn(me) : z(me.kind, D.expression.end, zr, D),
          Qf(An, !1),
          Mn(D.name),
          cp(Et, An));
      }
      function Ns(D) {
        if (((D = Wm(D)), np(D))) {
          const me = tT(D, void 0, !0, !1);
          return (
            !(D.numericLiteralFlags & 448) &&
            !me.includes(_a(25)) &&
            !me.includes("E") &&
            !me.includes("e")
          );
        } else if (Ks(D)) {
          const me = rie(D);
          return (
            typeof me == "number" &&
            isFinite(me) &&
            me >= 0 &&
            Math.floor(me) === me
          );
        }
      }
      function Da(D) {
        (ot(D.expression, ir.parenthesizeLeftSideOfAccess),
          Mn(D.questionDotToken),
          z(23, D.expression.end, zr, D),
          ot(D.argumentExpression),
          z(24, D.argumentExpression.end, zr, D));
      }
      function Qs(D) {
        const me = Fm(D) & 16;
        (me && (zr("("), Dy("0"), zr(","), Mr()),
          ot(D.expression, ir.parenthesizeLeftSideOfAccess),
          me && zr(")"),
          Mn(D.questionDotToken),
          $f(D, D.typeArguments),
          Vr(
            D,
            D.arguments,
            2576,
            ir.parenthesizeExpressionForDisallowedComma,
          ));
      }
      function Sc(D) {
        (z(105, D.pos, Wo, D),
          Mr(),
          ot(D.expression, ir.parenthesizeExpressionOfNew),
          $f(D, D.typeArguments),
          Vr(
            D,
            D.arguments,
            18960,
            ir.parenthesizeExpressionForDisallowedComma,
          ));
      }
      function fc(D) {
        const me = Fm(D) & 16;
        (me && (zr("("), Dy("0"), zr(","), Mr()),
          ot(D.tag, ir.parenthesizeLeftSideOfAccess),
          me && zr(")"),
          $f(D, D.typeArguments),
          Mr(),
          ot(D.template));
      }
      function Hs(D) {
        (zr("<"),
          Mn(D.type),
          zr(">"),
          ot(D.expression, ir.parenthesizeOperandOfPrefixUnary));
      }
      function Pl(D) {
        const me = z(21, D.pos, zr, D),
          Et = Zb(D.expression, D);
        (ot(D.expression, void 0),
          wx(D.expression, D),
          cp(Et),
          z(22, D.expression ? D.expression.end : me, zr, D));
      }
      function vh(D) {
        (wg(D.name), Tv(D));
      }
      function Pd(D) {
        (Sh(D, D.modifiers), Bu(D, nf, op));
      }
      function nf(D) {
        (Lg(D, D.typeParameters),
          m_(D, D.parameters),
          Cm(D.type),
          Mr(),
          Mn(D.equalsGreaterThanToken));
      }
      function op(D) {
        ea(D.body)
          ? Xe(D.body)
          : (Mr(), ot(D.body, ir.parenthesizeConciseBodyOfArrowFunction));
      }
      function ze(D) {
        (z(91, D.pos, Wo, D),
          Mr(),
          ot(D.expression, ir.parenthesizeOperandOfPrefixUnary));
      }
      function Jt(D) {
        (z(114, D.pos, Wo, D),
          Mr(),
          ot(D.expression, ir.parenthesizeOperandOfPrefixUnary));
      }
      function er(D) {
        (z(116, D.pos, Wo, D),
          Mr(),
          ot(D.expression, ir.parenthesizeOperandOfPrefixUnary));
      }
      function go(D) {
        (z(135, D.pos, Wo, D),
          Mr(),
          ot(D.expression, ir.parenthesizeOperandOfPrefixUnary));
      }
      function Za(D) {
        (Qb(D.operator, vp),
          es(D) && Mr(),
          ot(D.operand, ir.parenthesizeOperandOfPrefixUnary));
      }
      function es(D) {
        const me = D.operand;
        return (
          me.kind === 225 &&
          ((D.operator === 40 && (me.operator === 40 || me.operator === 46)) ||
            (D.operator === 41 && (me.operator === 41 || me.operator === 47)))
        );
      }
      function Va(D) {
        (ot(D.operand, ir.parenthesizeOperandOfPostfixUnary),
          Qb(D.operator, vp));
      }
      function Mc() {
        return k4(D, me, Et, An, vi, void 0);
        function D(Ao, Li) {
          if (Li) {
            (Li.stackIndex++,
              (Li.preserveSourceNewlinesStack[Li.stackIndex] = xe),
              (Li.containerPosStack[Li.stackIndex] = _e),
              (Li.containerEndStack[Li.stackIndex] = je),
              (Li.declarationListContainerEndStack[Li.stackIndex] = Ge));
            const Ja = (Li.shouldEmitCommentsStack[Li.stackIndex] = Fe(Ao)),
              hc = (Li.shouldEmitSourceMapsStack[Li.stackIndex] = it(Ao));
            (l?.(Ao), Ja && Ah(Ao), hc && os(Ao), le(Ao));
          } else
            Li = {
              stackIndex: 0,
              preserveSourceNewlinesStack: [void 0],
              containerPosStack: [-1],
              containerEndStack: [-1],
              declarationListContainerEndStack: [-1],
              shouldEmitCommentsStack: [!1],
              shouldEmitSourceMapsStack: [!1],
            };
          return Li;
        }
        function me(Ao, Li, Ja) {
          return wi(Ao, Ja, "left");
        }
        function Et(Ao, Li, Ja) {
          const hc = Ao.kind !== 28,
            Kd = h_(Ja, Ja.left, Ao),
            Vu = h_(Ja, Ao, Ja.right);
          (Qf(Kd, hc),
            Wg(Ao.pos),
            nA(Ao, Ao.kind === 103 ? Wo : vp),
            Ym(Ao.end, !0),
            Qf(Vu, !0));
        }
        function An(Ao, Li, Ja) {
          return wi(Ao, Ja, "right");
        }
        function vi(Ao, Li) {
          const Ja = h_(Ao, Ao.left, Ao.operatorToken),
            hc = h_(Ao, Ao.operatorToken, Ao.right);
          if ((cp(Ja, hc), Li.stackIndex > 0)) {
            const Kd = Li.preserveSourceNewlinesStack[Li.stackIndex],
              Vu = Li.containerPosStack[Li.stackIndex],
              G0 = Li.containerEndStack[Li.stackIndex],
              ju = Li.declarationListContainerEndStack[Li.stackIndex],
              iT = Li.shouldEmitCommentsStack[Li.stackIndex],
              qx = Li.shouldEmitSourceMapsStack[Li.stackIndex];
            (ht(Kd),
              qx && Wr(Ao),
              iT && rT(Ao, Vu, G0, ju),
              u?.(Ao),
              Li.stackIndex--);
          }
        }
        function wi(Ao, Li, Ja) {
          const hc =
            Ja === "left"
              ? ir.getParenthesizeLeftSideOfBinaryForOperator(
                  Li.operatorToken.kind,
                )
              : ir.getParenthesizeRightSideOfBinaryForOperator(
                  Li.operatorToken.kind,
                );
          let Kd = dt(0, 1, Ao);
          if (
            (Kd === nt &&
              (C.assertIsDefined(gn),
              (Ao = hc(ma(gn, St))),
              (Kd = Lt(1, 1, Ao)),
              (gn = void 0)),
            (Kd === hE || Kd === uA || Kd === Rt) && Nr(Ao))
          )
            return Ao;
          ((Kn = hc), Kd(1, Ao));
        }
      }
      function tl(D) {
        const me = h_(D, D.condition, D.questionToken),
          Et = h_(D, D.questionToken, D.whenTrue),
          An = h_(D, D.whenTrue, D.colonToken),
          vi = h_(D, D.colonToken, D.whenFalse);
        (ot(D.condition, ir.parenthesizeConditionOfConditionalExpression),
          Qf(me, !0),
          Mn(D.questionToken),
          Qf(Et, !0),
          ot(D.whenTrue, ir.parenthesizeBranchOfConditionalExpression),
          cp(me, Et),
          Qf(An, !0),
          Mn(D.colonToken),
          Qf(vi, !0),
          ot(D.whenFalse, ir.parenthesizeBranchOfConditionalExpression),
          cp(An, vi));
      }
      function Ll(D) {
        (Mn(D.head), Jr(D, D.templateSpans, 262144));
      }
      function ql(D) {
        (z(127, D.pos, Wo, D),
          Mn(D.asteriskToken),
          xv(D.expression && On(D.expression), yo));
      }
      function rf(D) {
        (z(26, D.pos, zr, D),
          ot(D.expression, ir.parenthesizeExpressionForDisallowedComma));
      }
      function bd(D) {
        (wg(D.name), Qn(D));
      }
      function ld(D) {
        (ot(D.expression, ir.parenthesizeLeftSideOfAccess),
          $f(D, D.typeArguments));
      }
      function jp(D) {
        (ot(D.expression, void 0),
          D.type && (Mr(), Wo("as"), Mr(), Mn(D.type)));
      }
      function Au(D) {
        (ot(D.expression, ir.parenthesizeLeftSideOfAccess), vp("!"));
      }
      function Xf(D) {
        (ot(D.expression, void 0),
          D.type && (Mr(), Wo("satisfies"), Mr(), Mn(D.type)));
      }
      function G_(D) {
        ($b(D.keywordToken, D.pos, zr), zr("."), Mn(D.name));
      }
      function Cg(D) {
        (ot(D.expression), Mn(D.literal));
      }
      function Ng(D) {
        ap(D, !D.multiLine && eT(D));
      }
      function ap(D, me) {
        z(19, D.pos, zr, D);
        const Et = me || Qa(D) & 1 ? 768 : 129;
        (Jr(D, D.statements, Et), z(20, D.statements.end, zr, D, !!(Et & 1)));
      }
      function Xc(D) {
        (xu(D, D.modifiers, !1), Mn(D.declarationList), Ru());
      }
      function bh(D) {
        D ? zr(";") : Ru();
      }
      function Tf(D) {
        (ot(D.expression, ir.parenthesizeExpressionOfExpressionStatement),
          (!k || !Ff(k) || Os(D.expression)) && Ru());
      }
      function p_(D) {
        const me = z(101, D.pos, Wo, D);
        (Mr(),
          z(21, me, zr, D),
          ot(D.expression),
          z(22, D.expression.end, zr, D),
          Ry(D, D.thenStatement),
          D.elseStatement &&
            (Af(D, D.thenStatement, D.elseStatement),
            z(93, D.thenStatement.end, Wo, D),
            D.elseStatement.kind === 246
              ? (Mr(), Mn(D.elseStatement))
              : Ry(D, D.elseStatement)));
      }
      function oe(D, me) {
        const Et = z(117, me, Wo, D);
        (Mr(),
          z(21, Et, zr, D),
          ot(D.expression),
          z(22, D.expression.end, zr, D));
      }
      function ut(D) {
        (z(92, D.pos, Wo, D),
          Ry(D, D.statement),
          ea(D.statement) && !xe ? Mr() : Af(D, D.statement, D.expression),
          oe(D, D.statement.end),
          Ru());
      }
      function tn(D) {
        (oe(D, D.pos), Ry(D, D.statement));
      }
      function an(D) {
        const me = z(99, D.pos, Wo, D);
        Mr();
        let Et = z(21, me, zr, D);
        (ti(D.initializer),
          (Et = z(27, D.initializer ? D.initializer.end : Et, zr, D)),
          xv(D.condition),
          (Et = z(27, D.condition ? D.condition.end : Et, zr, D)),
          xv(D.incrementor),
          z(22, D.incrementor ? D.incrementor.end : Et, zr, D),
          Ry(D, D.statement));
      }
      function wn(D) {
        const me = z(99, D.pos, Wo, D);
        (Mr(),
          z(21, me, zr, D),
          ti(D.initializer),
          Mr(),
          z(103, D.initializer.end, Wo, D),
          Mr(),
          ot(D.expression),
          z(22, D.expression.end, zr, D),
          Ry(D, D.statement));
      }
      function or(D) {
        const me = z(99, D.pos, Wo, D);
        (Mr(),
          Z1(D.awaitModifier),
          z(21, me, zr, D),
          ti(D.initializer),
          Mr(),
          z(165, D.initializer.end, Wo, D),
          Mr(),
          ot(D.expression),
          z(22, D.expression.end, zr, D),
          Ry(D, D.statement));
      }
      function ti(D) {
        D !== void 0 && (D.kind === 262 ? Mn(D) : ot(D));
      }
      function Ti(D) {
        (z(88, D.pos, Wo, D), Ef(D.label), Ru());
      }
      function $i(D) {
        (z(83, D.pos, Wo, D), Ef(D.label), Ru());
      }
      function z(D, me, Et, An, vi) {
        const wi = jo(An),
          Ao = wi && wi.kind === An.kind,
          Li = me;
        if ((Ao && k && (me = La(k.text, me)), Ao && An.pos !== Li)) {
          const Ja = vi && k && !Gf(Li, me, k);
          (Ja && J_(), Wg(Li), Ja && Eh());
        }
        if (
          (!A && (D === 19 || D === 20)
            ? (me = $b(D, me, Et, An))
            : (me = Qb(D, Et, me)),
          Ao && An.end !== me)
        ) {
          const Ja = An.kind === 295;
          Ym(me, !Ja, Ja);
        }
        return me;
      }
      function Ve(D) {
        return D.kind === 2 || !!D.hasTrailingNewLine;
      }
      function kt(D) {
        if (!k) return !1;
        const me = lg(k.text, D.pos);
        if (me) {
          const Et = jo(D);
          if (Et && Ou(Et.parent)) return !0;
        }
        return yt(me, Ve) || yt(gD(D), Ve)
          ? !0
          : Aie(D)
            ? D.pos !== D.expression.pos && yt(sb(k.text, D.expression.pos), Ve)
              ? !0
              : kt(D.expression)
            : !1;
      }
      function On(D) {
        if (!cn)
          switch (D.kind) {
            case 356:
              if (kt(D)) {
                const me = jo(D);
                if (me && Ou(me)) {
                  const Et = L.createParenthesizedExpression(D.expression);
                  return (jr(Et, D), vt(Et, me), Et);
                }
                return L.createParenthesizedExpression(D);
              }
              return L.updatePartiallyEmittedExpression(D, On(D.expression));
            case 212:
              return L.updatePropertyAccessExpression(
                D,
                On(D.expression),
                D.name,
              );
            case 213:
              return L.updateElementAccessExpression(
                D,
                On(D.expression),
                D.argumentExpression,
              );
            case 214:
              return L.updateCallExpression(
                D,
                On(D.expression),
                D.typeArguments,
                D.arguments,
              );
            case 216:
              return L.updateTaggedTemplateExpression(
                D,
                On(D.tag),
                D.typeArguments,
                D.template,
              );
            case 226:
              return L.updatePostfixUnaryExpression(D, On(D.operand));
            case 227:
              return L.updateBinaryExpression(
                D,
                On(D.left),
                D.operatorToken,
                D.right,
              );
            case 228:
              return L.updateConditionalExpression(
                D,
                On(D.condition),
                D.questionToken,
                D.whenTrue,
                D.colonToken,
                D.whenFalse,
              );
            case 235:
              return L.updateAsExpression(D, On(D.expression), D.type);
            case 239:
              return L.updateSatisfiesExpression(D, On(D.expression), D.type);
            case 236:
              return L.updateNonNullExpression(D, On(D.expression));
          }
        return D;
      }
      function yo(D) {
        return On(ir.parenthesizeExpressionForDisallowedComma(D));
      }
      function ta(D) {
        (z(107, D.pos, Wo, D), xv(D.expression && On(D.expression), On), Ru());
      }
      function Eo(D) {
        const me = z(118, D.pos, Wo, D);
        (Mr(),
          z(21, me, zr, D),
          ot(D.expression),
          z(22, D.expression.end, zr, D),
          Ry(D, D.statement));
      }
      function Vo(D) {
        const me = z(109, D.pos, Wo, D);
        (Mr(),
          z(21, me, zr, D),
          ot(D.expression),
          z(22, D.expression.end, zr, D),
          Mr(),
          Mn(D.caseBlock));
      }
      function ml(D) {
        (Mn(D.label), z(59, D.label.end, zr, D), Mr(), Mn(D.statement));
      }
      function Ca(D) {
        (z(111, D.pos, Wo, D), xv(On(D.expression), On), Ru());
      }
      function cd(D) {
        (z(113, D.pos, Wo, D),
          Mr(),
          Mn(D.tryBlock),
          D.catchClause &&
            (Af(D, D.tryBlock, D.catchClause), Mn(D.catchClause)),
          D.finallyBlock &&
            (Af(D, D.catchClause || D.tryBlock, D.finallyBlock),
            z(98, (D.catchClause || D.tryBlock).end, Wo, D),
            Mr(),
            Mn(D.finallyBlock)));
      }
      function Up(D) {
        ($b(89, D.pos, Wo), Ru());
      }
      function Sf(D) {
        var me, Et, An;
        (Mn(D.name),
          Mn(D.exclamationToken),
          Cm(D.type),
          C0(
            D.initializer,
            ((me = D.type) == null ? void 0 : me.end) ??
              ((An = (Et = D.name.emitNode) == null ? void 0 : Et.typeNode) ==
              null
                ? void 0
                : An.end) ??
              D.name.end,
            D,
            ir.parenthesizeExpressionForDisallowedComma,
          ));
      }
      function Yf(D) {
        if (rk(D)) (Wo("await"), Mr(), Wo("using"));
        else {
          const me = GF(D) ? "let" : JR(D) ? "const" : ik(D) ? "using" : "var";
          Wo(me);
        }
        (Mr(), Jr(D, D.declarations, 528));
      }
      function Ty(D) {
        Tv(D);
      }
      function Tv(D) {
        (xu(D, D.modifiers, !1),
          Wo("function"),
          Mn(D.asteriskToken),
          Mr(),
          Uo(D.name),
          Bu(D, Im, V_));
      }
      function Bu(D, me, Et) {
        const An = Qa(D) & 131072;
        (An && J_(),
          Xm(D),
          Ye(D.parameters, dd),
          me(D),
          Et(D),
          Ny(D),
          An && Eh());
      }
      function V_(D) {
        const me = D.body;
        me ? Xe(me) : Ru();
      }
      function Th(D) {
        Ru();
      }
      function Im(D) {
        (Lg(D, D.typeParameters), N0(D, D.parameters), Cm(D.type));
      }
      function Hb(D) {
        if (Qa(D) & 1) return !0;
        if (
          D.multiLine ||
          (!Os(D) && k && !p1(D, k)) ||
          Dv(D, Ac(D.statements), 2) ||
          kx(D, Zs(D.statements), 2, D.statements)
        )
          return !1;
        let me;
        for (const Et of D.statements) {
          if (P0(me, Et, 2) > 0) return !1;
          me = Et;
        }
        return !0;
      }
      function Xe(D) {
        (dd(D), l?.(D), Mr(), zr("{"), J_());
        const me = Hb(D) ? mt : Yt;
        (_E(D, D.statements, me),
          Eh(),
          $b(20, D.statements.end, zr, D),
          u?.(D));
      }
      function mt(D) {
        Yt(D, !0);
      }
      function Yt(D, me) {
        const Et = Pg(D.statements),
          An = Ce.getTextPos();
        (Kt(D),
          Et === 0 && An === Ce.getTextPos() && me
            ? (Eh(), Jr(D, D.statements, 768), J_())
            : Jr(D, D.statements, 1, void 0, Et));
      }
      function Rn(D) {
        Qn(D);
      }
      function Qn(D) {
        (xu(D, D.modifiers, !0),
          z(86, Yh(D).pos, Wo, D),
          D.name && (Mr(), Uo(D.name)));
        const me = Qa(D) & 131072;
        (me && J_(),
          Lg(D, D.typeParameters),
          Jr(D, D.heritageClauses, 0),
          Mr(),
          zr("{"),
          Xm(D),
          Ye(D.members, mE),
          Jr(D, D.members, 129),
          Ny(D),
          zr("}"),
          me && Eh());
      }
      function Lr(D) {
        (xu(D, D.modifiers, !1),
          Wo("interface"),
          Mr(),
          Mn(D.name),
          Lg(D, D.typeParameters),
          Jr(D, D.heritageClauses, 512),
          Mr(),
          zr("{"),
          Xm(D),
          Ye(D.members, mE),
          Jr(D, D.members, 129),
          Ny(D),
          zr("}"));
      }
      function Yn(D) {
        (xu(D, D.modifiers, !1),
          Wo("type"),
          Mr(),
          Mn(D.name),
          Lg(D, D.typeParameters),
          Mr(),
          zr("="),
          Mr(),
          Mn(D.type),
          Ru());
      }
      function lr(D) {
        (xu(D, D.modifiers, !1),
          Wo("enum"),
          Mr(),
          Mn(D.name),
          Mr(),
          zr("{"),
          Jr(D, D.members, 145),
          zr("}"));
      }
      function Oi(D) {
        (xu(D, D.modifiers, !1),
          ~D.flags & 2048 && (Wo(D.flags & 32 ? "namespace" : "module"), Mr()),
          Mn(D.name));
        let me = D.body;
        if (!me) return Ru();
        for (; me && uc(me); ) (zr("."), Mn(me.name), (me = me.body));
        (Mr(), Mn(me));
      }
      function Ro(D) {
        (Xm(D), Ye(D.statements, dd), ap(D, eT(D)), Ny(D));
      }
      function _i(D) {
        (z(19, D.pos, zr, D),
          Jr(D, D.clauses, 129),
          z(20, D.clauses.end, zr, D, !0));
      }
      function Do(D) {
        (xu(D, D.modifiers, !1),
          z(102, D.modifiers ? D.modifiers.end : D.pos, Wo, D),
          Mr(),
          D.isTypeOnly && (z(156, D.pos, Wo, D), Mr()),
          Mn(D.name),
          Mr(),
          z(64, D.name.end, zr, D),
          Mr(),
          Qi(D.moduleReference),
          Ru());
      }
      function Qi(D) {
        D.kind === 80 ? ot(D) : Mn(D);
      }
      function hl(D) {
        (xu(D, D.modifiers, !1),
          z(102, D.modifiers ? D.modifiers.end : D.pos, Wo, D),
          Mr(),
          D.importClause &&
            (Mn(D.importClause), Mr(), z(161, D.importClause.end, Wo, D), Mr()),
          ot(D.moduleSpecifier),
          D.attributes && Ef(D.attributes),
          Ru());
      }
      function sp(D) {
        (D.phaseModifier !== void 0 && (z(D.phaseModifier, D.pos, Wo, D), Mr()),
          Mn(D.name),
          D.name && D.namedBindings && (z(28, D.name.end, zr, D), Mr()),
          Mn(D.namedBindings));
      }
      function xm(D) {
        const me = z(42, D.pos, zr, D);
        (Mr(), z(130, me, Wo, D), Mr(), Mn(D.name));
      }
      function Td(D) {
        Mg(D);
      }
      function Rm(D) {
        S0(D);
      }
      function Hp(D) {
        const me = z(95, D.pos, Wo, D);
        (Mr(),
          D.isExportEquals ? z(64, me, vp, D) : z(90, me, Wo, D),
          Mr(),
          ot(
            D.expression,
            D.isExportEquals
              ? ir.getParenthesizeRightSideOfBinaryForOperator(64)
              : ir.parenthesizeExpressionOfExportDefault,
          ),
          Ru());
      }
      function b0(D) {
        xu(D, D.modifiers, !1);
        let me = z(95, D.pos, Wo, D);
        if (
          (Mr(),
          D.isTypeOnly && ((me = z(156, me, Wo, D)), Mr()),
          D.exportClause ? Mn(D.exportClause) : (me = z(42, me, zr, D)),
          D.moduleSpecifier)
        ) {
          Mr();
          const Et = D.exportClause ? D.exportClause.end : me;
          (z(161, Et, Wo, D), Mr(), ot(D.moduleSpecifier));
        }
        (D.attributes && Ef(D.attributes), Ru());
      }
      function f_(D) {
        (zr("{"), Mr(), Wo(D.token === 132 ? "assert" : "with"), zr(":"), Mr());
        const me = D.elements;
        (Jr(D, me, 526226), Mr(), zr("}"));
      }
      function j_(D) {
        (z(D.token, D.pos, Wo, D), Mr());
        const me = D.elements;
        Jr(D, me, 526226);
      }
      function T0(D) {
        (Mn(D.name), zr(":"), Mr());
        const me = D.value;
        if ((Qa(me) & 1024) === 0) {
          const Et = Zh(me);
          Ym(Et.pos);
        }
        Mn(me);
      }
      function U_(D) {
        let me = z(95, D.pos, Wo, D);
        (Mr(),
          (me = z(130, me, Wo, D)),
          Mr(),
          (me = z(145, me, Wo, D)),
          Mr(),
          Mn(D.name),
          Ru());
      }
      function TC(D) {
        const me = z(42, D.pos, zr, D);
        (Mr(), z(130, me, Wo, D), Mr(), Mn(D.name));
      }
      function tL(D) {
        Mg(D);
      }
      function SC(D) {
        S0(D);
      }
      function Mg(D) {
        (zr("{"), Jr(D, D.elements, 525136), zr("}"));
      }
      function S0(D) {
        (D.isTypeOnly && (Wo("type"), Mr()),
          D.propertyName &&
            (Mn(D.propertyName), Mr(), z(130, D.propertyName.end, Wo, D), Mr()),
          Mn(D.name));
      }
      function q1(D) {
        (Wo("require"), zr("("), ot(D.expression), zr(")"));
      }
      function Sv(D) {
        (Mn(D.openingElement), Jr(D, D.children, 262144), Mn(D.closingElement));
      }
      function J1(D) {
        (zr("<"),
          cE(D.tagName),
          $f(D, D.typeArguments),
          Mr(),
          Mn(D.attributes),
          zr("/>"));
      }
      function Dx(D) {
        (Mn(D.openingFragment),
          Jr(D, D.children, 262144),
          Mn(D.closingFragment));
      }
      function nL(D) {
        if ((zr("<"), ph(D))) {
          const me = Zb(D.tagName, D);
          (cE(D.tagName),
            $f(D, D.typeArguments),
            D.attributes.properties &&
              D.attributes.properties.length > 0 &&
              Mr(),
            Mn(D.attributes),
            wx(D.attributes, D),
            cp(me));
        }
        zr(">");
      }
      function K1(D) {
        Ce.writeLiteral(D.text);
      }
      function Cx(D) {
        (zr("</"), VS(D) && cE(D.tagName), zr(">"));
      }
      function E0(D) {
        Jr(D, D.properties, 262656);
      }
      function EC(D) {
        (Mn(D.name), ja("=", zr, D.initializer, Ft));
      }
      function X1(D) {
        (zr("{..."), ot(D.expression), zr("}"));
      }
      function Nx(D) {
        let me = !1;
        return (R2(k?.text || "", D + 1, () => (me = !0)), me);
      }
      function lE(D) {
        let me = !1;
        return (x2(k?.text || "", D + 1, () => (me = !0)), me);
      }
      function qb(D) {
        return Nx(D) || lE(D);
      }
      function Mx(D) {
        var me;
        if (D.expression || (!cn && !Os(D) && qb(D.pos))) {
          const Et = k && !Os(D) && ca(k, D.pos).line !== ca(k, D.end).line;
          Et && Ce.increaseIndent();
          const An = z(19, D.pos, zr, D);
          (Mn(D.dotDotDotToken),
            ot(D.expression),
            z(20, ((me = D.expression) == null ? void 0 : me.end) || An, zr, D),
            Et && Ce.decreaseIndent());
        }
      }
      function Px(D) {
        (Uo(D.namespace), zr(":"), Uo(D.name));
      }
      function cE(D) {
        D.kind === 80 ? ot(D) : Mn(D);
      }
      function Jb(D) {
        (z(84, D.pos, Wo, D),
          Mr(),
          ot(D.expression, ir.parenthesizeExpressionForDisallowedComma),
          Sy(D, D.statements, D.expression.end));
      }
      function Ev(D) {
        const me = z(90, D.pos, Wo, D);
        Sy(D, D.statements, me);
      }
      function Sy(D, me, Et) {
        const An =
          me.length === 1 && (!k || Os(D) || Os(me[0]) || D6(D, me[0], k));
        let vi = 163969;
        (An ? ($b(59, Et, zr, D), Mr(), (vi &= -130)) : z(59, Et, zr, D),
          Jr(D, me, vi));
      }
      function Ey(D) {
        (Mr(), Qb(D.token, Wo), Mr(), Jr(D, D.types, 528));
      }
      function Ay(D) {
        const me = z(85, D.pos, Wo, D);
        (Mr(),
          D.variableDeclaration &&
            (z(21, me, zr, D),
            Mn(D.variableDeclaration),
            z(22, D.variableDeclaration.end, zr, D),
            Mr()),
          Mn(D.block));
      }
      function Kb(D) {
        (Mn(D.name), zr(":"), Mr());
        const me = D.initializer;
        if ((Qa(me) & 1024) === 0) {
          const Et = Zh(me);
          Ym(Et.pos);
        }
        ot(me, ir.parenthesizeExpressionForDisallowedComma);
      }
      function A0(D) {
        (Mn(D.name),
          D.objectAssignmentInitializer &&
            (Mr(),
            zr("="),
            Mr(),
            ot(
              D.objectAssignmentInitializer,
              ir.parenthesizeExpressionForDisallowedComma,
            )));
      }
      function Y1(D) {
        D.expression &&
          (z(26, D.pos, zr, D),
          ot(D.expression, ir.parenthesizeExpressionForDisallowedComma));
      }
      function I0(D) {
        (Mn(D.name),
          C0(
            D.initializer,
            D.name.end,
            D,
            ir.parenthesizeExpressionForDisallowedComma,
          ));
      }
      function ns(D) {
        if ((Se("/**"), D.comment)) {
          const me = O2(D.comment);
          if (me) {
            const Et = me.split(/\r\n?|\n/);
            for (const An of Et) (du(), Mr(), zr("*"), Mr(), Se(An));
          }
        }
        (D.tags &&
          (D.tags.length === 1 && D.tags[0].kind === 345 && !D.comment
            ? (Mr(), Mn(D.tags[0]))
            : Jr(D, D.tags, 33)),
          Mr(),
          Se("*/"));
      }
      function $1(D) {
        (Dm(D.tagName), R0(D.typeExpression), qm(D.comment));
      }
      function AC(D) {
        (Dm(D.tagName), Mn(D.name), qm(D.comment));
      }
      function Iy(D) {
        (Dm(D.tagName),
          Mr(),
          D.importClause &&
            (Mn(D.importClause), Mr(), z(161, D.importClause.end, Wo, D), Mr()),
          ot(D.moduleSpecifier),
          D.attributes && Ef(D.attributes),
          qm(D.comment));
      }
      function xy(D) {
        (Mr(), zr("{"), Mn(D.name), zr("}"));
      }
      function H_(D) {
        (Dm(D.tagName), Mr(), zr("{"), Mn(D.class), zr("}"), qm(D.comment));
      }
      function cl(D) {
        (Dm(D.tagName),
          R0(D.constraint),
          Mr(),
          Jr(D, D.typeParameters, 528),
          qm(D.comment));
      }
      function qd(D) {
        (Dm(D.tagName),
          D.typeExpression &&
            (D.typeExpression.kind === 310
              ? R0(D.typeExpression)
              : (Mr(),
                zr("{"),
                Se("Object"),
                D.typeExpression.isArrayType && (zr("["), zr("]")),
                zr("}"))),
          D.fullName && (Mr(), Mn(D.fullName)),
          qm(D.comment),
          D.typeExpression &&
            D.typeExpression.kind === 323 &&
            Iu(D.typeExpression));
      }
      function lp(D) {
        (Dm(D.tagName),
          D.name && (Mr(), Mn(D.name)),
          qm(D.comment),
          q_(D.typeExpression));
      }
      function Jd(D) {
        (qm(D.comment), q_(D.typeExpression));
      }
      function x0(D) {
        (Dm(D.tagName), qm(D.comment));
      }
      function Iu(D) {
        Jr(D, L.createNodeArray(D.jsDocPropertyTags), 33);
      }
      function q_(D) {
        (D.typeParameters && Jr(D, L.createNodeArray(D.typeParameters), 33),
          D.parameters && Jr(D, L.createNodeArray(D.parameters), 33),
          D.type && (du(), Mr(), zr("*"), Mr(), Mn(D.type)));
      }
      function Gu(D) {
        (Dm(D.tagName),
          R0(D.typeExpression),
          Mr(),
          D.isBracketed && zr("["),
          Mn(D.name),
          D.isBracketed && zr("]"),
          qm(D.comment));
      }
      function Dm(D) {
        (zr("@"), Mn(D));
      }
      function qm(D) {
        const me = O2(D);
        me && (Mr(), Se(me));
      }
      function R0(D) {
        D && (Mr(), zr("{"), Mn(D.type), zr("}"));
      }
      function D0(D) {
        du();
        const me = D.statements;
        if (me.length === 0 || !Uh(me[0]) || Os(me[0])) {
          _E(D, me, dE);
          return;
        }
        dE(D);
      }
      function rL(D) {
        Av(
          !!D.hasNoDefaultLib,
          D.syntheticFileReferences || [],
          D.syntheticTypeReferences || [],
          D.syntheticLibReferences || [],
        );
      }
      function IC(D) {
        D.isDeclarationFile &&
          Av(
            D.hasNoDefaultLib,
            D.referencedFiles,
            D.typeReferenceDirectives,
            D.libReferenceDirectives,
          );
      }
      function Av(D, me, Et, An) {
        if (
          (D && (Yb('/// <reference no-default-lib="true"/>'), du()),
          k &&
            k.moduleName &&
            (Yb(`/// <amd-module name="${k.moduleName}" />`), du()),
          k && k.amdDependencies)
        )
          for (const wi of k.amdDependencies)
            (wi.name
              ? Yb(`/// <amd-dependency name="${wi.name}" path="${wi.path}" />`)
              : Yb(`/// <amd-dependency path="${wi.path}" />`),
              du());
        function vi(wi, Ao) {
          for (const Li of Ao) {
            const Ja = Li.resolutionMode
                ? `resolution-mode="${Li.resolutionMode === 99 ? "import" : "require"}" `
                : "",
              hc = Li.preserve ? 'preserve="true" ' : "";
            (Yb(`/// <reference ${wi}="${Li.fileName}" ${Ja}${hc}/>`), du());
          }
        }
        (vi("path", me), vi("types", Et), vi("lib", An));
      }
      function dE(D) {
        const me = D.statements;
        (Xm(D), Ye(D.statements, dd), Kt(D));
        const Et = ho(me, (An) => !Uh(An));
        (IC(D), Jr(D, me, 1, void 0, Et === -1 ? me.length : Et), Ny(D));
      }
      function Qe(D) {
        const me = Qa(D);
        (!(me & 1024) && D.pos !== D.expression.pos && Ym(D.expression.pos),
          ot(D.expression),
          !(me & 2048) && D.end !== D.expression.end && Wg(D.expression.end));
      }
      function Q1(D) {
        Vr(D, D.elements, 528, void 0);
      }
      function Pg(D, me, Et) {
        let An = !!me;
        for (let vi = 0; vi < D.length; vi++) {
          const wi = D[vi];
          if (Uh(wi))
            (Et ? !Et.has(wi.expression.text) : !0) &&
              (An && ((An = !1), ai(me)),
              du(),
              Mn(wi),
              Et && Et.add(wi.expression.text));
          else return vi;
        }
        return D.length;
      }
      function Jm(D) {
        if (Yi(D)) Pg(D.statements, D);
        else {
          const me = new Set();
          for (const Et of D.sourceFiles) Pg(Et.statements, Et, me);
          ai(void 0);
        }
      }
      function Iv(D) {
        if (Yi(D)) {
          const me = sF(D.text);
          if (me) return (Yb(me), du(), !0);
        } else for (const me of D.sourceFiles) if (Iv(me)) return !0;
      }
      function Xb(D, me) {
        if (!D) return;
        const Et = Se;
        ((Se = me), Mn(D), (Se = Et));
      }
      function xu(D, me, Et) {
        if (me?.length) {
          if (Vn(me, Aa)) return Sh(D, me);
          if (Vn(me, Wc)) return Et ? uE(D, me) : D.pos;
          d?.(me);
          let An,
            vi,
            wi = 0,
            Ao = 0,
            Li;
          for (; wi < me.length; ) {
            for (; Ao < me.length; ) {
              if (
                ((Li = me[Ao]),
                (vi = Wc(Li) ? "decorators" : "modifiers"),
                An === void 0)
              )
                An = vi;
              else if (vi !== An) break;
              Ao++;
            }
            const Ja = { pos: -1, end: -1 };
            (wi === 0 && (Ja.pos = me.pos),
              Ao === me.length - 1 && (Ja.end = me.end),
              (An === "modifiers" || Et) &&
                eA(
                  Mn,
                  D,
                  me,
                  An === "modifiers" ? 2359808 : 2146305,
                  void 0,
                  wi,
                  Ao - wi,
                  !1,
                  Ja,
                ),
              (wi = Ao),
              (An = vi),
              Ao++);
          }
          if ((_?.(me), Li && !dh(Li.end))) return Li.end;
        }
        return D.pos;
      }
      function Sh(D, me) {
        Jr(D, me, 2359808);
        const Et = Zs(me);
        return Et && !dh(Et.end) ? Et.end : D.pos;
      }
      function Cm(D) {
        D && (zr(":"), Mr(), Mn(D));
      }
      function C0(D, me, Et, An) {
        D && (Mr(), z(64, me, vp, Et), Mr(), ot(D, An));
      }
      function ja(D, me, Et, An) {
        Et && (me(D), An(Et));
      }
      function Ef(D) {
        D && (Mr(), Mn(D));
      }
      function xv(D, me) {
        D && (Mr(), ot(D, me));
      }
      function Z1(D) {
        D && (Mn(D), Mr());
      }
      function Ry(D, me) {
        ea(me) || Qa(D) & 1 || (xe && !Dv(D, me, 0))
          ? (Mr(), Mn(me))
          : (du(), J_(), Sj(me) ? ne(5, me) : Mn(me), Eh());
      }
      function uE(D, me) {
        Jr(D, me, 2146305);
        const Et = Zs(me);
        return Et && !dh(Et.end) ? Et.end : D.pos;
      }
      function $f(D, me) {
        Jr(D, me, 53776, Di);
      }
      function Lg(D, me) {
        if (Yo(D) && D.typeArguments) return $f(D, D.typeArguments);
        Jr(D, me, 53776 | (Xs(D) ? 64 : 0));
      }
      function N0(D, me) {
        Jr(D, me, 2576);
      }
      function Rv(D, me) {
        const Et = og(me);
        return (
          Et &&
          Et.pos === D.pos &&
          Xs(D) &&
          !D.type &&
          !yt(D.modifiers) &&
          !yt(D.typeParameters) &&
          !yt(Et.modifiers) &&
          !Et.dotDotDotToken &&
          !Et.questionToken &&
          !Et.type &&
          !Et.initializer &&
          He(Et.name)
        );
      }
      function m_(D, me) {
        Rv(D, me) ? Jr(D, me, 528) : N0(D, me);
      }
      function pE(D, me) {
        Jr(D, me, 8848);
      }
      function M0(D) {
        switch (D & 60) {
          case 0:
            break;
          case 16:
            zr(",");
            break;
          case 4:
            (Mr(), zr("|"));
            break;
          case 32:
            (Mr(), zr("*"), Mr());
            break;
          case 8:
            (Mr(), zr("&"));
            break;
        }
      }
      function Jr(D, me, Et, An, vi, wi) {
        Sd(Mn, D, me, Et | (D && Qa(D) & 2 ? 65536 : 0), An, vi, wi);
      }
      function Vr(D, me, Et, An, vi, wi) {
        Sd(ot, D, me, Et, An, vi, wi);
      }
      function Sd(D, me, Et, An, vi, wi = 0, Ao = Et ? Et.length - wi : 0) {
        if (Et === void 0 && An & 16384) return;
        const Ja = Et === void 0 || wi >= Et.length || Ao === 0;
        if (Ja && An & 32768) {
          (d?.(Et), _?.(Et));
          return;
        }
        (An & 15360 && (zr(Cqe(An)), Ja && Et && Ym(Et.pos, !0)),
          d?.(Et),
          Ja
            ? An & 1 && !(xe && (!me || (k && p1(me, k))))
              ? du()
              : An & 256 && !(An & 524288) && Mr()
            : eA(D, me, Et, An, vi, wi, Ao, Et.hasTrailingComma, Et),
          _?.(Et),
          An & 15360 && (Ja && Et && Wg(Et.end), zr(Nqe(An))));
      }
      function eA(D, me, Et, An, vi, wi, Ao, Li, Ja) {
        const hc = (An & 262144) === 0;
        let Kd = hc;
        const Vu = Dv(me, Et[wi], An);
        (Vu ? (du(Vu), (Kd = !1)) : An & 256 && Mr(), An & 128 && J_());
        const G0 = kqe(D, vi);
        let ju,
          iT = !1;
        for (let Pv = 0; Pv < Ao; Pv++) {
          const $m = Et[wi + Pv];
          if (An & 32) (du(), M0(An));
          else if (ju) {
            (An & 60 &&
              ju.end !== (me ? me.end : -1) &&
              (Qa(ju) & 2048 || Wg(ju.end)),
              M0(An));
            const Lv = P0(ju, $m, An);
            if (Lv > 0) {
              if (
                ((An & 131) === 0 && (J_(), (iT = !0)),
                Kd && An & 60 && !dh($m.pos))
              ) {
                const yE = Zh($m);
                Ym(yE.pos, !!(An & 512), !0);
              }
              (du(Lv), (Kd = !1));
            } else ju && An & 512 && Mr();
          }
          if (Kd) {
            const Lv = Zh($m);
            Ym(Lv.pos);
          } else Kd = hc;
          ((X = $m.pos), G0($m, D, vi, Pv), iT && (Eh(), (iT = !1)), (ju = $m));
        }
        const qx = ju ? Qa(ju) : 0,
          Nm = cn || !!(qx & 2048),
          bl = Li && An & 64 && An & 16;
        (bl && (ju && !Nm ? z(28, ju.end, zr, ju) : zr(",")),
          ju &&
            (me ? me.end : -1) !== ju.end &&
            An & 60 &&
            !Nm &&
            Wg(bl && Ja?.end ? Ja.end : ju.end),
          An & 128 && Eh());
        const mA = kx(me, Et[wi + Ao - 1], An, Ja);
        mA ? du(mA) : An & 2097408 && Mr();
      }
      function Dy(D) {
        Ce.writeLiteral(D);
      }
      function fE(D) {
        Ce.writeStringLiteral(D);
      }
      function xC(D) {
        Ce.write(D);
      }
      function iL(D, me) {
        Ce.writeSymbol(D, me);
      }
      function zr(D) {
        Ce.writePunctuation(D);
      }
      function Ru() {
        Ce.writeTrailingSemicolon(";");
      }
      function Wo(D) {
        Ce.writeKeyword(D);
      }
      function vp(D) {
        Ce.writeOperator(D);
      }
      function tA(D) {
        Ce.writeParameter(D);
      }
      function Yb(D) {
        Ce.writeComment(D);
      }
      function Mr() {
        Ce.writeSpace(" ");
      }
      function RC(D) {
        Ce.writeProperty(D);
      }
      function Lx(D) {
        Ce.nonEscapingWrite ? Ce.nonEscapingWrite(D) : Ce.write(D);
      }
      function du(D = 1) {
        for (let me = 0; me < D; me++) Ce.writeLine(me > 0);
      }
      function J_() {
        Ce.increaseIndent();
      }
      function Eh() {
        Ce.decreaseIndent();
      }
      function $b(D, me, Et, An) {
        return be ? Qb(D, Et, me) : pA(An, D, Et, me, Qb);
      }
      function nA(D, me) {
        (h && h(D), me(_a(D.kind)), g && g(D));
      }
      function Qb(D, me, Et) {
        const An = _a(D);
        return (me(An), Et < 0 ? Et : Et + An.length);
      }
      function Af(D, me, Et) {
        if (Qa(D) & 1) Mr();
        else if (xe) {
          const An = h_(D, me, Et);
          An ? du(An) : Mr();
        } else du();
      }
      function Km(D) {
        const me = D.split(/\r\n?|\n/),
          Et = Ste(me);
        for (const An of me) {
          const vi = Et ? An.slice(Et) : An;
          vi.length && (du(), Se(vi));
        }
      }
      function Qf(D, me) {
        D ? (J_(), du(D)) : me && Mr();
      }
      function cp(D, me) {
        (D && Eh(), me && Eh());
      }
      function Dv(D, me, Et) {
        if (Et & 2 || xe) {
          if (Et & 65536) return 1;
          if (me === void 0) return !D || (k && p1(D, k)) ? 0 : 1;
          if (me.pos === X || me.kind === 12) return 0;
          if (
            k &&
            D &&
            !dh(D.pos) &&
            !Os(me) &&
            (!me.parent || yl(me.parent) === yl(D))
          )
            return xe
              ? L0((An) => $ne(me.pos, D.pos, k, An))
              : D6(D, me, k)
                ? 0
                : 1;
          if (Cy(me, Et)) return 1;
        }
        return Et & 1 ? 1 : 0;
      }
      function P0(D, me, Et) {
        if (Et & 2 || xe) {
          if (D === void 0 || me === void 0 || me.kind === 12) return 0;
          if (k && !Os(D) && !Os(me))
            return xe && uu(D, me)
              ? L0((An) => vV(D, me, k, An))
              : !xe && Gx(D, me)
                ? Gk(D, me, k)
                  ? 0
                  : 1
                : Et & 65536
                  ? 1
                  : 0;
          if (Cy(D, Et) || Cy(me, Et)) return 1;
        } else if (wM(me)) return 1;
        return Et & 1 ? 1 : 0;
      }
      function kx(D, me, Et, An) {
        if (Et & 2 || xe) {
          if (Et & 65536) return 1;
          if (me === void 0) return !D || (k && p1(D, k)) ? 0 : 1;
          if (
            k &&
            D &&
            !dh(D.pos) &&
            !Os(me) &&
            (!me.parent || me.parent === D)
          ) {
            if (xe) {
              const vi = An && !dh(An.end) ? An.end : me.end;
              return L0((wi) => Qne(vi, D.end, k, wi));
            }
            return Kne(D, me, k) ? 0 : 1;
          }
          if (Cy(me, Et)) return 1;
        }
        return Et & 1 && !(Et & 131072) ? 1 : 0;
      }
      function L0(D) {
        C.assert(!!xe);
        const me = D(!0);
        return me === 0 ? D(!1) : me;
      }
      function Zb(D, me) {
        const Et = xe && Dv(me, D, 0);
        return (Et && Qf(Et, !1), !!Et);
      }
      function wx(D, me) {
        const Et = xe && kx(me, D, 0, void 0);
        Et && du(Et);
      }
      function Cy(D, me) {
        if (Os(D)) {
          const Et = wM(D);
          return Et === void 0 ? (me & 65536) !== 0 : Et;
        }
        return (me & 65536) !== 0;
      }
      function h_(D, me, Et) {
        return Qa(D) & 262144
          ? 0
          : ((D = k0(D)),
            (me = k0(me)),
            (Et = k0(Et)),
            wM(Et)
              ? 1
              : k && !Os(D) && !Os(me) && !Os(Et)
                ? xe
                  ? L0((An) => vV(me, Et, k, An))
                  : Gk(me, Et, k)
                    ? 0
                    : 1
                : 0);
      }
      function eT(D) {
        return D.statements.length === 0 && (!k || Gk(D, D, k));
      }
      function k0(D) {
        for (; D.kind === 218 && Os(D); ) D = D.expression;
        return D;
      }
      function Cv(D, me) {
        if (pl(D) || YE(D)) return w0(D);
        if (ka(D) && D.textSourceNode) return Cv(D.textSourceNode, me);
        const Et = k,
          An = !!Et && !!D.parent && !Os(D);
        if (dg(D)) {
          if (!An || Wn(D) !== yl(Et)) return Kr(D);
        } else if (fh(D)) {
          if (!An || Wn(D) !== yl(Et)) return LM(D);
        } else if ((C.assertNode(D, XE), !An)) return D.text;
        return vS(Et, D, me);
      }
      function tT(D, me = k, Et, An) {
        if (D.kind === 11 && D.textSourceNode) {
          const wi = D.textSourceNode;
          if (He(wi) || eo(wi) || np(wi) || fh(wi)) {
            const Ao = np(wi) ? wi.text : Cv(wi);
            return An
              ? `"${eV(Ao)}"`
              : Et || Qa(D) & 16777216
                ? `"${k_(Ao)}"`
                : `"${f6(Ao)}"`;
          } else return tT(wi, Wn(wi), Et, An);
        }
        const vi =
          (Et ? 1 : 0) |
          (An ? 2 : 0) |
          (e.terminateUnterminatedLiterals ? 4 : 0) |
          (e.target && e.target >= 8 ? 8 : 0);
        return wte(D, me, vi);
      }
      function Xm(D) {
        (q.push(ye),
          (ye = 0),
          fe.push(ve),
          !(D && Qa(D) & 1048576) &&
            (ie.push(K), (K = 0), J.push(Z), (Z = void 0), pe.push(de)));
      }
      function Ny(D) {
        ((ye = q.pop()),
          (ve = fe.pop()),
          !(D && Qa(D) & 1048576) &&
            ((K = ie.pop()), (Z = J.pop()), (de = pe.pop())));
      }
      function kg(D) {
        ((!de || de === Zs(pe)) && (de = new Set()), de.add(D));
      }
      function nT(D) {
        ((!ve || ve === Zs(fe)) && (ve = new Set()), ve.add(D));
      }
      function dd(D) {
        if (D)
          switch (D.kind) {
            case 242:
              Ye(D.statements, dd);
              break;
            case 257:
            case 255:
            case 247:
            case 248:
              dd(D.statement);
              break;
            case 246:
              (dd(D.thenStatement), dd(D.elseStatement));
              break;
            case 249:
            case 251:
            case 250:
              (dd(D.initializer), dd(D.statement));
              break;
            case 256:
              dd(D.caseBlock);
              break;
            case 270:
              Ye(D.clauses, dd);
              break;
            case 297:
            case 298:
              Ye(D.statements, dd);
              break;
            case 259:
              (dd(D.tryBlock), dd(D.catchClause), dd(D.finallyBlock));
              break;
            case 300:
              (dd(D.variableDeclaration), dd(D.block));
              break;
            case 244:
              dd(D.declarationList);
              break;
            case 262:
              Ye(D.declarations, dd);
              break;
            case 261:
            case 170:
            case 209:
            case 264:
              wg(D.name);
              break;
            case 263:
              (wg(D.name),
                Qa(D) & 1048576 && (Ye(D.parameters, dd), dd(D.body)));
              break;
            case 207:
            case 208:
              Ye(D.elements, dd);
              break;
            case 273:
              dd(D.importClause);
              break;
            case 274:
              (wg(D.name), dd(D.namedBindings));
              break;
            case 275:
              wg(D.name);
              break;
            case 281:
              wg(D.name);
              break;
            case 276:
              Ye(D.elements, dd);
              break;
            case 277:
              wg(D.propertyName || D.name);
              break;
          }
      }
      function mE(D) {
        if (D)
          switch (D.kind) {
            case 304:
            case 305:
            case 173:
            case 172:
            case 175:
            case 174:
            case 178:
            case 179:
              wg(D.name);
              break;
          }
      }
      function wg(D) {
        D && (pl(D) || YE(D) ? w0(D) : Qo(D) && dd(D));
      }
      function w0(D) {
        const me = D.emitNode.autoGenerate;
        if ((me.flags & 7) === 4)
          return rA(Rw(D), eo(D), me.flags, me.prefix, me.suffix);
        {
          const Et = me.id;
          return G[Et] || (G[Et] = Zf(D));
        }
      }
      function rA(D, me, Et, An, vi) {
        const wi = ls(D),
          Ao = me ? O : W;
        return Ao[wi] || (Ao[wi] = dp(D, me, Et ?? 0, kD(An, w0), kD(vi)));
      }
      function Og(D, me) {
        return Ox(D) && !DC(D, me) && !j.has(D);
      }
      function DC(D, me) {
        let Et, An;
        if ((me ? ((Et = ve), (An = fe)) : ((Et = de), (An = pe)), Et?.has(D)))
          return !0;
        for (let vi = An.length - 1; vi >= 0; vi--)
          if (Et !== An[vi] && ((Et = An[vi]), Et?.has(D))) return !0;
        return !1;
      }
      function Ox(D, me) {
        return k ? kF(k, D, r) : !0;
      }
      function Wx(D, me) {
        for (let Et = me; Et && xS(Et, me); Et = Et.nextContainer)
          if (D_(Et) && Et.locals) {
            const An = Et.locals.get(Cl(D));
            if (An && An.flags & 3257279) return !1;
          }
        return !0;
      }
      function oL(D) {
        switch (D) {
          case "":
            return K;
          case "#":
            return ye;
          default:
            return Z?.get(D) ?? 0;
        }
      }
      function Fx(D, me) {
        switch (D) {
          case "":
            K = me;
            break;
          case "#":
            ye = me;
            break;
          default:
            (Z ?? (Z = new Map()), Z.set(D, me));
            break;
        }
      }
      function O0(D, me, Et, An, vi) {
        An.length > 0 && An.charCodeAt(0) === 35 && (An = An.slice(1));
        const wi = r0(Et, An, "", vi);
        let Ao = oL(wi);
        if (D && !(Ao & D)) {
          const Ja = r0(Et, An, D === 268435456 ? "_i" : "_n", vi);
          if (Og(Ja, Et))
            return ((Ao |= D), Et ? nT(Ja) : me && kg(Ja), Fx(wi, Ao), Ja);
        }
        for (;;) {
          const Li = Ao & 268435455;
          if ((Ao++, Li !== 8 && Li !== 13)) {
            const Ja =
                Li < 26 ? "_" + String.fromCharCode(97 + Li) : "_" + (Li - 26),
              hc = r0(Et, An, Ja, vi);
            if (Og(hc, Et)) return (Et ? nT(hc) : me && kg(hc), Fx(wi, Ao), hc);
          }
        }
      }
      function My(D, me = Og, Et, An, vi, wi, Ao) {
        if (
          (D.length > 0 && D.charCodeAt(0) === 35 && (D = D.slice(1)),
          wi.length > 0 && wi.charCodeAt(0) === 35 && (wi = wi.slice(1)),
          Et)
        ) {
          const Ja = r0(vi, wi, D, Ao);
          if (me(Ja, vi)) return (vi ? nT(Ja) : An ? kg(Ja) : j.add(Ja), Ja);
        }
        D.charCodeAt(D.length - 1) !== 95 && (D += "_");
        let Li = 1;
        for (;;) {
          const Ja = r0(vi, wi, D + Li, Ao);
          if (me(Ja, vi)) return (vi ? nT(Ja) : An ? kg(Ja) : j.add(Ja), Ja);
          Li++;
        }
      }
      function CC(D) {
        return My(D, Ox, !0, !1, !1, "", "");
      }
      function W0(D) {
        const me = Cv(D.name);
        return Wx(me, ni(D, D_)) ? me : My(me, Og, !1, !1, !1, "", "");
      }
      function iA(D) {
        const me = yI(D),
          Et = ka(me) ? Wte(me.text) : "module";
        return My(Et, Og, !1, !1, !1, "", "");
      }
      function mc() {
        return My("default", Og, !1, !1, !1, "", "");
      }
      function ud() {
        return My("class", Og, !1, !1, !1, "", "");
      }
      function zx(D, me, Et, An) {
        return He(D.name) ? rA(D.name, me) : O0(0, !1, me, Et, An);
      }
      function dp(D, me, Et, An, vi) {
        switch (D.kind) {
          case 80:
          case 81:
            return My(Cv(D), Og, !!(Et & 16), !!(Et & 8), me, An, vi);
          case 268:
          case 267:
            return (C.assert(!An && !vi && !me), W0(D));
          case 273:
          case 279:
            return (C.assert(!An && !vi && !me), iA(D));
          case 263:
          case 264: {
            C.assert(!An && !vi && !me);
            const wi = D.name;
            return wi && !pl(wi) ? dp(wi, !1, Et, An, vi) : mc();
          }
          case 278:
            return (C.assert(!An && !vi && !me), mc());
          case 232:
            return (C.assert(!An && !vi && !me), ud());
          case 175:
          case 178:
          case 179:
            return zx(D, me, An, vi);
          case 168:
            return O0(0, !0, me, An, vi);
          default:
            return O0(0, !1, me, An, vi);
        }
      }
      function Zf(D) {
        const me = D.emitNode.autoGenerate,
          Et = kD(me.prefix, w0),
          An = kD(me.suffix);
        switch (me.flags & 7) {
          case 1:
            return O0(0, !!(me.flags & 8), eo(D), Et, An);
          case 2:
            return (
              C.assertNode(D, He),
              O0(268435456, !!(me.flags & 8), !1, Et, An)
            );
          case 3:
            return My(
              Kr(D),
              me.flags & 32 ? Ox : Og,
              !!(me.flags & 16),
              !!(me.flags & 8),
              eo(D),
              Et,
              An,
            );
        }
        return C.fail(
          `Unsupported GeneratedIdentifierKind: ${C.formatEnum(me.flags & 7, l9, !0)}.`,
        );
      }
      function hE(D, me) {
        const Et = Lt(2, D, me),
          An = _e,
          vi = je,
          wi = Ge;
        (Ah(me), Et(D, me), rT(me, An, vi, wi));
      }
      function Ah(D) {
        const me = Qa(D),
          Et = Zh(D);
        (Nv(D, me, Et.pos, Et.end), me & 4096 && (cn = !0));
      }
      function rT(D, me, Et, An) {
        const vi = Qa(D),
          wi = Zh(D);
        (vi & 4096 && (cn = !1), Bx(D, vi, wi.pos, wi.end, me, Et, An));
        const Ao = sie(D);
        Ao && Bx(D, vi, Ao.pos, Ao.end, me, Et, An);
      }
      function Nv(D, me, Et, An) {
        (_t(), (Wt = !1));
        const vi = Et < 0 || (me & 1024) !== 0 || D.kind === 12,
          wi = An < 0 || (me & 2048) !== 0 || D.kind === 12;
        ((Et > 0 || An > 0) &&
          Et !== An &&
          (vi || bp(Et, D.kind !== 354),
          (!vi || (Et >= 0 && (me & 1024) !== 0)) && (_e = Et),
          (!wi || (An >= 0 && (me & 2048) !== 0)) &&
            ((je = An), D.kind === 262 && (Ge = An))),
          Ye(gD(D), aL),
          en());
      }
      function Bx(D, me, Et, An, vi, wi, Ao) {
        _t();
        const Li = An < 0 || (me & 2048) !== 0 || D.kind === 12;
        (Ye(uw(D), Gl),
          (Et > 0 || An > 0) &&
            Et !== An &&
            ((_e = vi), (je = wi), (Ge = Ao), !Li && D.kind !== 354 && Vx(An)),
          en());
      }
      function aL(D) {
        ((D.hasLeadingNewline || D.kind === 2) && Ce.writeLine(),
          NC(D),
          D.hasTrailingNewLine || D.kind === 2
            ? Ce.writeLine()
            : Ce.writeSpace(" "));
      }
      function Gl(D) {
        (Ce.isAtStartOfLine() || Ce.writeSpace(" "),
          NC(D),
          D.hasTrailingNewLine && Ce.writeLine());
      }
      function NC(D) {
        const me = oA(D),
          Et = D.kind === 3 ? iI(me) : void 0;
        sD(me, Et, Ce, 0, me.length, R);
      }
      function oA(D) {
        return D.kind === 3 ? `/*${D.text}*/` : `//${D.text}`;
      }
      function _E(D, me, Et) {
        _t();
        const { pos: An, end: vi } = me,
          wi = Qa(D),
          Ao = An < 0 || (wi & 1024) !== 0,
          Li = cn || vi < 0 || (wi & 2048) !== 0;
        (Ao || qp(me),
          en(),
          wi & 4096 && !cn ? ((cn = !0), Et(D), (cn = !1)) : Et(D),
          _t(),
          Li || (bp(me.end, !0), Wt && !Ce.isAtStartOfLine() && Ce.writeLine()),
          en());
      }
      function Gx(D, me) {
        return ((D = yl(D)), D.parent && D.parent === yl(me).parent);
      }
      function uu(D, me) {
        if (me.pos < D.end) return !1;
        ((D = yl(D)), (me = yl(me)));
        const Et = D.parent;
        if (!Et || Et !== me.parent) return !1;
        const An = kre(D),
          vi = An?.indexOf(D);
        return vi !== void 0 && vi > -1 && An.indexOf(me) === vi + 1;
      }
      function bp(D, me) {
        ((Wt = !1),
          me
            ? D === 0 && k?.isDeclarationFile
              ? Ux(D, F0)
              : Ux(D, sA)
            : D === 0 && Ux(D, aA));
      }
      function aA(D, me, Et, An, vi) {
        dA(D, me) && sA(D, me, Et, An, vi);
      }
      function F0(D, me, Et, An, vi) {
        dA(D, me) || sA(D, me, Et, An, vi);
      }
      function Tp(D, me) {
        return e.onlyPrintJsDocStyle ? Jj(D, me) || wF(D, me) : !0;
      }
      function sA(D, me, Et, An, vi) {
        !k ||
          !Tp(k.text, D) ||
          (Wt || (kne(Ia(), Ce, vi, D), (Wt = !0)),
          Yc(D),
          sD(k.text, Ia(), Ce, D, me, R),
          Yc(me),
          An ? Ce.writeLine() : Et === 3 && Ce.writeSpace(" "));
      }
      function Wg(D) {
        cn || D === -1 || bp(D, !0);
      }
      function Vx(D) {
        cA(D, lA);
      }
      function lA(D, me, Et, An) {
        !k ||
          !Tp(k.text, D) ||
          (Ce.isAtStartOfLine() || Ce.writeSpace(" "),
          Yc(D),
          sD(k.text, Ia(), Ce, D, me, R),
          Yc(me),
          An && Ce.writeLine());
      }
      function Ym(D, me, Et) {
        cn || (_t(), cA(D, me ? lA : Et ? jx : MC), en());
      }
      function jx(D, me, Et) {
        k &&
          (Yc(D),
          sD(k.text, Ia(), Ce, D, me, R),
          Yc(me),
          Et === 2 && Ce.writeLine());
      }
      function MC(D, me, Et, An) {
        k &&
          (Yc(D),
          sD(k.text, Ia(), Ce, D, me, R),
          Yc(me),
          An ? Ce.writeLine() : Ce.writeSpace(" "));
      }
      function Ux(D, me) {
        k && (_e === -1 || D !== _e) && (Hx(D) ? Mv(me) : x2(k.text, D, me, D));
      }
      function cA(D, me) {
        k && (je === -1 || (D !== je && D !== Ge)) && R2(k.text, D, me);
      }
      function Hx(D) {
        return at !== void 0 && Ba(at).nodePos === D;
      }
      function Mv(D) {
        if (!k) return;
        const me = Ba(at).detachedCommentEndPos;
        (at.length - 1 ? at.pop() : (at = void 0), x2(k.text, me, D, me));
      }
      function qp(D) {
        const me = k && wne(k.text, Ia(), Ce, __, D, R, cn);
        me && (at ? at.push(me) : (at = [me]));
      }
      function __(D, me, Et, An, vi, wi) {
        !k || !Tp(k.text, An) || (Yc(An), sD(D, me, Et, An, vi, wi), Yc(vi));
      }
      function dA(D, me) {
        return !!k && pG(k.text, D, me);
      }
      function uA(D, me) {
        const Et = Lt(3, D, me);
        (os(me), Et(D, me), Wr(me));
      }
      function os(D) {
        const me = Qa(D),
          Et = lv(D),
          An = Et.source || Be;
        (D.kind !== 354 &&
          (me & 32) === 0 &&
          Et.pos >= 0 &&
          z0(Et.source || Be, If(An, Et.pos)),
          me & 128 && (be = !0));
      }
      function Wr(D) {
        const me = Qa(D),
          Et = lv(D);
        (me & 128 && (be = !1),
          D.kind !== 354 &&
            (me & 64) === 0 &&
            Et.end >= 0 &&
            z0(Et.source || Be, Et.end));
      }
      function If(D, me) {
        return D.skipTrivia ? D.skipTrivia(me) : La(D.text, me);
      }
      function Yc(D) {
        if (be || dh(D) || fA(Be)) return;
        const { line: me, character: Et } = ca(Be, D);
        Ne.addMapping(Ce.getLine(), Ce.getColumn(), lt, me, Et, void 0);
      }
      function z0(D, me) {
        if (D !== Be) {
          const Et = Be,
            An = lt;
          (gE(D), Yc(me), B0(Et, An));
        } else Yc(me);
      }
      function pA(D, me, Et, An, vi) {
        if (be || (D && e6(D))) return vi(me, Et, An);
        const wi = D && D.emitNode,
          Ao = (wi && wi.flags) || 0,
          Li = wi && wi.tokenSourceMapRanges && wi.tokenSourceMapRanges[me],
          Ja = (Li && Li.source) || Be;
        return (
          (An = If(Ja, Li ? Li.pos : An)),
          (Ao & 256) === 0 && An >= 0 && z0(Ja, An),
          (An = vi(me, Et, An)),
          Li && (An = Li.end),
          (Ao & 512) === 0 && An >= 0 && z0(Ja, An),
          An
        );
      }
      function gE(D) {
        if (!be) {
          if (((Be = D), D === ce)) {
            lt = Re;
            return;
          }
          fA(D) ||
            ((lt = Ne.addSource(D.fileName)),
            e.inlineSources && Ne.setSourceContent(lt, D.text),
            (ce = D),
            (Re = lt));
        }
      }
      function B0(D, me) {
        ((Be = D), (lt = me));
      }
      function fA(D) {
        return El(D.fileName, ".json");
      }
    }
    function Dqe() {
      const e = [];
      return (
        (e[1024] = ["{", "}"]),
        (e[2048] = ["(", ")"]),
        (e[4096] = ["<", ">"]),
        (e[8192] = ["[", "]"]),
        e
      );
    }
    function Cqe(e) {
      return sAe[e & 15360][0];
    }
    function Nqe(e) {
      return sAe[e & 15360][1];
    }
    function Mqe(e, t, r, i) {
      t(e);
    }
    function Pqe(e, t, r, i) {
      t(e, r.select(i));
    }
    function Lqe(e, t, r, i) {
      t(e, r);
    }
    function kqe(e, t) {
      return e.length === 1 ? Mqe : typeof t == "object" ? Pqe : Lqe;
    }
    function A3(e, t, r) {
      if (!e.getDirectories || !e.readDirectory) return;
      const i = new Map(),
        o = Fd(r);
      return {
        useCaseSensitiveFileNames: r,
        fileExists: A,
        readFile: (q, ye) => e.readFile(q, ye),
        directoryExists: e.directoryExists && R,
        getDirectories: P,
        readDirectory: k,
        createDirectory: e.createDirectory && N,
        writeFile: e.writeFile && E,
        addOrDeleteFileOrDirectory: G,
        addOrDeleteFile: j,
        clearCache: Z,
        realpath: e.realpath && W,
      };
      function s(q) {
        return ks(q, t, o);
      }
      function l(q) {
        return i.get(Uc(q));
      }
      function u(q) {
        const ye = l(ci(q));
        return (
          ye &&
          (ye.sortedAndCanonicalizedFiles ||
            ((ye.sortedAndCanonicalizedFiles = ye.files.map(o).sort()),
            (ye.sortedAndCanonicalizedDirectories = ye.directories
              .map(o)
              .sort())),
          ye)
        );
      }
      function d(q) {
        return Ic(ya(q));
      }
      function _(q, ye) {
        var ie;
        if (!e.realpath || Uc(s(e.realpath(q))) === ye) {
          const K = {
            files: Vt(e.readDirectory(q, void 0, void 0, ["*.*"]), d) || [],
            directories: e.getDirectories(q) || [],
          };
          return (i.set(Uc(ye), K), K);
        }
        if ((ie = e.directoryExists) != null && ie.call(e, q))
          return (i.set(ye, !1), !1);
      }
      function h(q, ye) {
        ye = Uc(ye);
        const ie = l(ye);
        if (ie) return ie;
        try {
          return _(q, ye);
        } catch {
          C.assert(!i.has(Uc(ye)));
          return;
        }
      }
      function g(q, ye) {
        return Zv(q, ye, Vs, Wd) >= 0;
      }
      function E(q, ye, ie) {
        const K = s(q),
          pe = u(K);
        return (pe && J(pe, d(q), !0), e.writeFile(q, ye, ie));
      }
      function A(q) {
        const ye = s(q),
          ie = u(ye);
        return (
          (ie && g(ie.sortedAndCanonicalizedFiles, o(d(q)))) || e.fileExists(q)
        );
      }
      function R(q) {
        const ye = s(q);
        return i.has(Uc(ye)) || e.directoryExists(q);
      }
      function N(q) {
        const ye = s(q),
          ie = u(ye);
        if (ie) {
          const K = d(q),
            pe = o(K),
            de = ie.sortedAndCanonicalizedDirectories;
          $v(de, pe, Wd) && ie.directories.push(K);
        }
        e.createDirectory(q);
      }
      function P(q) {
        const ye = s(q),
          ie = h(q, ye);
        return ie ? ie.directories.slice() : e.getDirectories(q);
      }
      function k(q, ye, ie, K, pe) {
        const de = s(q),
          fe = h(q, de);
        let ve;
        if (fe !== void 0) return bre(q, ye, ie, K, r, t, pe, xe, W);
        return e.readDirectory(q, ye, ie, K, pe);
        function xe(Ce) {
          const Je = s(Ce);
          if (Je === de) return fe || X(Ce, Je);
          const Se = h(Ce, Je);
          return Se !== void 0 ? Se || X(Ce, Je) : xre;
        }
        function X(Ce, Je) {
          if (ve && Je === de) return ve;
          const Se = {
            files: Vt(e.readDirectory(Ce, void 0, void 0, ["*.*"]), d) || ae,
            directories: e.getDirectories(Ce) || ae,
          };
          return (Je === de && (ve = Se), Se);
        }
      }
      function W(q) {
        return e.realpath ? e.realpath(q) : q;
      }
      function O(q) {
        AN(ci(q), (ye) => (i.delete(Uc(ye)) ? !0 : void 0));
      }
      function G(q, ye) {
        if (l(ye) !== void 0) {
          Z();
          return;
        }
        const K = u(ye);
        if (!K) {
          O(ye);
          return;
        }
        if (!e.directoryExists) {
          Z();
          return;
        }
        const pe = d(q),
          de = {
            fileExists: e.fileExists(q),
            directoryExists: e.directoryExists(q),
          };
        return (
          de.directoryExists || g(K.sortedAndCanonicalizedDirectories, o(pe))
            ? Z()
            : J(K, pe, de.fileExists),
          de
        );
      }
      function j(q, ye, ie) {
        if (ie === 1) return;
        const K = u(ye);
        K ? J(K, d(q), ie === 0) : O(ye);
      }
      function J(q, ye, ie) {
        const K = q.sortedAndCanonicalizedFiles,
          pe = o(ye);
        if (ie) $v(K, pe, Wd) && q.files.push(ye);
        else {
          const de = Zv(K, pe, Vs, Wd);
          if (de >= 0) {
            K.splice(de, 1);
            const fe = q.files.findIndex((ve) => o(ve) === pe);
            q.files.splice(fe, 1);
          }
        }
      }
      function Z() {
        i.clear();
      }
    }
    var ase = ((e) => (
      (e[(e.Update = 0)] = "Update"),
      (e[(e.RootNamesAndUpdate = 1)] = "RootNamesAndUpdate"),
      (e[(e.Full = 2)] = "Full"),
      e
    ))(ase || {});
    function I3(e, t, r, i, o) {
      var s;
      const l = AR(
        ((s = t?.configFile) == null ? void 0 : s.extendedSourceFiles) || ae,
        o,
      );
      (r.forEach((u, d) => {
        l.has(d) || (u.projects.delete(e), u.close());
      }),
        l.forEach((u, d) => {
          const _ = r.get(d);
          _
            ? _.projects.add(e)
            : r.set(d, {
                projects: new Set([e]),
                watcher: i(u, d),
                close: () => {
                  const h = r.get(d);
                  !h ||
                    h.projects.size !== 0 ||
                    (h.watcher.close(), r.delete(d));
                },
              });
        }));
    }
    function uH(e, t) {
      t.forEach((r) => {
        r.projects.delete(e) && r.close();
      });
    }
    function x3(e, t, r) {
      e.delete(t) &&
        e.forEach(({ extendedResult: i }, o) => {
          var s;
          (s = i.extendedSourceFiles) != null &&
            s.some((l) => r(l) === t) &&
            x3(e, o, r);
        });
    }
    function pH(e, t, r) {
      yM(t, e.getMissingFilePaths(), { createNewValue: r, onDeleteValue: Bm });
    }
    function eO(e, t, r) {
      t
        ? yM(e, new Map(Object.entries(t)), {
            createNewValue: i,
            onDeleteValue: Kf,
            onExistingValue: o,
          })
        : hp(e, Kf);
      function i(s, l) {
        return { watcher: r(s, l), flags: l };
      }
      function o(s, l, u) {
        s.flags !== l && (s.watcher.close(), e.set(u, i(u, l)));
      }
    }
    function tO({
      watchedDirPath: e,
      fileOrDirectory: t,
      fileOrDirectoryPath: r,
      configFileName: i,
      options: o,
      program: s,
      extraFileExtensions: l,
      currentDirectory: u,
      useCaseSensitiveFileNames: d,
      writeLog: _,
      toPath: h,
      getScriptKind: g,
    }) {
      const E = z3(r);
      if (!E) return (_(`Project: ${i} Detected ignored path: ${t}`), !0);
      if (((r = E), r === e)) return !1;
      if (NR(r) && !(zV(t, o, l) || k()))
        return (
          _(
            `Project: ${i} Detected file add/remove of non supported extension: ${t}`,
          ),
          !0
        );
      if (Noe(t, o.configFile.configFileSpecs, To(ci(i), u), d, u))
        return (_(`Project: ${i} Detected excluded file: ${t}`), !0);
      if (!s || o.outFile || o.outDir) return !1;
      if (ad(r)) {
        if (o.declarationDir) return !1;
      } else if (!$l(r, fD)) return !1;
      const A = Tu(r),
        R = Mo(s) ? void 0 : VH(s) ? s.getProgramOrUndefined() : s,
        N = !R && !Mo(s) ? s : void 0;
      if (P(A + ".ts") || P(A + ".tsx"))
        return (_(`Project: ${i} Detected output file: ${t}`), !0);
      return !1;
      function P(W) {
        return R
          ? !!R.getSourceFileByPath(W)
          : N
            ? N.state.fileInfos.has(W)
            : !!hn(s, (O) => h(O) === W);
      }
      function k() {
        if (!g) return !1;
        switch (g(t)) {
          case 3:
          case 4:
          case 7:
          case 5:
            return !0;
          case 1:
          case 2:
            return xb(o);
          case 6:
            return LS(o);
          case 0:
            return !1;
        }
      }
    }
    function sse(e, t) {
      return e ? e.isEmittedFile(t) : !1;
    }
    var lse = ((e) => (
      (e[(e.None = 0)] = "None"),
      (e[(e.TriggerOnly = 1)] = "TriggerOnly"),
      (e[(e.Verbose = 2)] = "Verbose"),
      e
    ))(lse || {});
    function fH(e, t, r, i) {
      _ee(t === 2 ? r : gs);
      const o = {
          watchFile: (N, P, k, W) => e.watchFile(N, P, k, W),
          watchDirectory: (N, P, k, W) =>
            e.watchDirectory(N, P, (k & 1) !== 0, W),
        },
        s =
          t !== 0
            ? { watchFile: A("watchFile"), watchDirectory: A("watchDirectory") }
            : void 0,
        l = t === 2 ? { watchFile: g, watchDirectory: E } : s || o,
        u = t === 2 ? h : SP;
      return { watchFile: d("watchFile"), watchDirectory: d("watchDirectory") };
      function d(N) {
        return (P, k, W, O, G, j) => {
          var J;
          return $4(
            P,
            N === "watchFile" ? O?.excludeFiles : O?.excludeDirectories,
            _(),
            ((J = e.getCurrentDirectory) == null ? void 0 : J.call(e)) || "",
          )
            ? u(P, W, O, G, j)
            : l[N].call(void 0, P, k, W, O, G, j);
        };
      }
      function _() {
        return typeof e.useCaseSensitiveFileNames == "boolean"
          ? e.useCaseSensitiveFileNames
          : e.useCaseSensitiveFileNames();
      }
      function h(N, P, k, W, O) {
        return (
          r(`ExcludeWatcher:: Added:: ${R(N, P, k, W, O, i)}`),
          { close: () => r(`ExcludeWatcher:: Close:: ${R(N, P, k, W, O, i)}`) }
        );
      }
      function g(N, P, k, W, O, G) {
        r(`FileWatcher:: Added:: ${R(N, k, W, O, G, i)}`);
        const j = s.watchFile(N, P, k, W, O, G);
        return {
          close: () => {
            (r(`FileWatcher:: Close:: ${R(N, k, W, O, G, i)}`), j.close());
          },
        };
      }
      function E(N, P, k, W, O, G) {
        const j = `DirectoryWatcher:: Added:: ${R(N, k, W, O, G, i)}`;
        r(j);
        const J = Ls(),
          Z = s.watchDirectory(N, P, k, W, O, G),
          q = Ls() - J;
        return (
          r(`Elapsed:: ${q}ms ${j}`),
          {
            close: () => {
              const ye = `DirectoryWatcher:: Close:: ${R(N, k, W, O, G, i)}`;
              r(ye);
              const ie = Ls();
              Z.close();
              const K = Ls() - ie;
              r(`Elapsed:: ${K}ms ${ye}`);
            },
          }
        );
      }
      function A(N) {
        return (P, k, W, O, G, j) =>
          o[N].call(
            void 0,
            P,
            (...J) => {
              const Z = `${N === "watchFile" ? "FileWatcher" : "DirectoryWatcher"}:: Triggered with ${J[0]} ${J[1] !== void 0 ? J[1] : ""}:: ${R(P, W, O, G, j, i)}`;
              r(Z);
              const q = Ls();
              k.call(void 0, ...J);
              const ye = Ls() - q;
              r(`Elapsed:: ${ye}ms ${Z}`);
            },
            W,
            O,
            G,
            j,
          );
      }
      function R(N, P, k, W, O, G) {
        return `WatchInfo: ${N} ${P} ${JSON.stringify(k)} ${G ? G(W, O) : O === void 0 ? W : `${W} ${O}`}`;
      }
    }
    function nO(e) {
      const t = e?.fallbackPolling;
      return { watchFile: t !== void 0 ? t : 1 };
    }
    function Kf(e) {
      e.watcher.close();
    }
    function mH(e, t, r = "tsconfig.json") {
      return AN(e, (i) => {
        const o = Qr(i, r);
        return t(o) ? o : void 0;
      });
    }
    function hH(e, t) {
      const r = ci(t),
        i = Cp(e) ? e : Qr(r, e);
      return ya(i);
    }
    function cse(e, t, r) {
      let i;
      return Ye(e, (s) => {
        const l = tF(s, t);
        if ((l.pop(), !i)) {
          i = l;
          return;
        }
        const u = Math.min(i.length, l.length);
        for (let d = 0; d < u; d++)
          if (r(i[d]) !== r(l[d])) {
            if (d === 0) return !0;
            i.length = d;
            break;
          }
        l.length < i.length && (i.length = l.length);
      })
        ? ""
        : i
          ? MT(i)
          : t;
    }
    function dse(e, t) {
      return R3(e, t);
    }
    function _H(e, t) {
      return (r, i, o) => {
        let s;
        try {
          (Rl("beforeIORead"),
            (s = e(r)),
            Rl("afterIORead"),
            wf("I/O Read", "beforeIORead", "afterIORead"));
        } catch (l) {
          (o && o(l.message), (s = ""));
        }
        return s !== void 0 ? tx(r, s, i, t) : void 0;
      };
    }
    function gH(e, t, r) {
      return (i, o, s, l) => {
        try {
          (Rl("beforeIOWrite"),
            aV(i, o, s, e, t, r),
            Rl("afterIOWrite"),
            wf("I/O Write", "beforeIOWrite", "afterIOWrite"));
        } catch (u) {
          l && l(u.message);
        }
      };
    }
    function R3(e, t, r = jc) {
      const i = new Map(),
        o = Fd(r.useCaseSensitiveFileNames);
      function s(h) {
        return i.has(h)
          ? !0
          : (_.directoryExists || r.directoryExists)(h)
            ? (i.set(h, !0), !0)
            : !1;
      }
      function l() {
        return ci(ya(r.getExecutingFilePath()));
      }
      const u = iv(e),
        d = r.realpath && ((h) => r.realpath(h)),
        _ = {
          getSourceFile: _H((h) => _.readFile(h), t),
          getDefaultLibLocation: l,
          getDefaultLibFileName: (h) => Qr(l(), C2(h)),
          writeFile: gH(
            (h, g, E) => r.writeFile(h, g, E),
            (h) => (_.createDirectory || r.createDirectory)(h),
            (h) => s(h),
          ),
          getCurrentDirectory: Nu(() => r.getCurrentDirectory()),
          useCaseSensitiveFileNames: () => r.useCaseSensitiveFileNames,
          getCanonicalFileName: o,
          getNewLine: () => u,
          fileExists: (h) => r.fileExists(h),
          readFile: (h) => r.readFile(h),
          trace: (h) => r.write(h + u),
          directoryExists: (h) => r.directoryExists(h),
          getEnvironmentVariable: (h) =>
            r.getEnvironmentVariable ? r.getEnvironmentVariable(h) : "",
          getDirectories: (h) => r.getDirectories(h),
          realpath: d,
          readDirectory: (h, g, E, A, R) => r.readDirectory(h, g, E, A, R),
          createDirectory: (h) => r.createDirectory(h),
          createHash: ia(r, r.createHash),
        };
      return _;
    }
    function yP(e, t, r) {
      const i = e.readFile,
        o = e.fileExists,
        s = e.directoryExists,
        l = e.createDirectory,
        u = e.writeFile,
        d = new Map(),
        _ = new Map(),
        h = new Map(),
        g = new Map(),
        E = (N) => {
          const P = t(N),
            k = d.get(P);
          return k !== void 0 ? (k !== !1 ? k : void 0) : A(P, N);
        },
        A = (N, P) => {
          const k = i.call(e, P);
          return (d.set(N, k !== void 0 ? k : !1), k);
        };
      e.readFile = (N) => {
        const P = t(N),
          k = d.get(P);
        return k !== void 0
          ? k !== !1
            ? k
            : void 0
          : !El(N, ".json") && !ese(N)
            ? i.call(e, N)
            : A(P, N);
      };
      const R = r
        ? (N, P, k, W) => {
            const O = t(N),
              G = typeof P == "object" ? P.impliedNodeFormat : void 0,
              j = g.get(G),
              J = j?.get(O);
            if (J) return J;
            const Z = r(N, P, k, W);
            return (
              Z &&
                (ad(N) || El(N, ".json")) &&
                g.set(G, (j || new Map()).set(O, Z)),
              Z
            );
          }
        : void 0;
      return (
        (e.fileExists = (N) => {
          const P = t(N),
            k = _.get(P);
          if (k !== void 0) return k;
          const W = o.call(e, N);
          return (_.set(P, !!W), W);
        }),
        u &&
          (e.writeFile = (N, P, ...k) => {
            const W = t(N);
            _.delete(W);
            const O = d.get(W);
            (O !== void 0 && O !== P
              ? (d.delete(W), g.forEach((G) => G.delete(W)))
              : R &&
                g.forEach((G) => {
                  const j = G.get(W);
                  j && j.text !== P && G.delete(W);
                }),
              u.call(e, N, P, ...k));
          }),
        s &&
          ((e.directoryExists = (N) => {
            const P = t(N),
              k = h.get(P);
            if (k !== void 0) return k;
            const W = s.call(e, N);
            return (h.set(P, !!W), W);
          }),
          l &&
            (e.createDirectory = (N) => {
              const P = t(N);
              (h.delete(P), l.call(e, N));
            })),
        {
          originalReadFile: i,
          originalFileExists: o,
          originalDirectoryExists: s,
          originalCreateDirectory: l,
          originalWriteFile: u,
          getSourceFileWithCache: R,
          readFileWithCache: E,
        }
      );
    }
    function hAe(e, t, r) {
      let i;
      return (
        (i = Xr(i, e.getConfigFileParsingDiagnostics())),
        (i = Xr(i, e.getOptionsDiagnostics(r))),
        (i = Xr(i, e.getSyntacticDiagnostics(t, r))),
        (i = Xr(i, e.getGlobalDiagnostics(r))),
        (i = Xr(i, e.getSemanticDiagnostics(t, r))),
        _p(e.getCompilerOptions()) &&
          (i = Xr(i, e.getDeclarationDiagnostics(t, r))),
        wR(i || ae)
      );
    }
    function _Ae(e, t) {
      let r = "";
      for (const i of e) r += yH(i, t);
      return r;
    }
    function yH(e, t) {
      const r = `${jE(e)} TS${e.code}: ${a_(e.messageText, t.getNewLine())}${t.getNewLine()}`;
      if (e.file) {
        const { line: i, character: o } = ca(e.file, e.start),
          s = e.file.fileName;
        return (
          `${EN(s, t.getCurrentDirectory(), (u) => t.getCanonicalFileName(u))}(${i + 1},${o + 1}): ` +
          r
        );
      }
      return r;
    }
    var use = ((e) => (
        (e.Grey = "\x1B[90m"),
        (e.Red = "\x1B[91m"),
        (e.Yellow = "\x1B[93m"),
        (e.Blue = "\x1B[94m"),
        (e.Cyan = "\x1B[96m"),
        e
      ))(use || {}),
      pse = "\x1B[7m",
      fse = " ",
      gAe = "\x1B[0m",
      yAe = "...",
      wqe = "  ",
      vAe = "    ";
    function bAe(e) {
      switch (e) {
        case 1:
          return "\x1B[91m";
        case 0:
          return "\x1B[93m";
        case 2:
          return C.fail(
            "Should never get an Info diagnostic on the command line.",
          );
        case 3:
          return "\x1B[94m";
      }
    }
    function $S(e, t) {
      return t + e + gAe;
    }
    function TAe(e, t, r, i, o, s) {
      const { line: l, character: u } = ca(e, t),
        { line: d, character: _ } = ca(e, t + r),
        h = ca(e, e.text.length).line,
        g = d - l >= 4;
      let E = (d + 1 + "").length;
      g && (E = Math.max(yAe.length, E));
      let A = "";
      for (let R = l; R <= d; R++) {
        ((A += s.getNewLine()),
          g &&
            l + 1 < R &&
            R < d - 1 &&
            ((A += i + $S(yAe.padStart(E), pse) + fse + s.getNewLine()),
            (R = d - 1)));
        const N = A2(e, R, 0),
          P = R < h ? A2(e, R + 1, 0) : e.text.length;
        let k = e.text.slice(N, P);
        if (
          ((k = k.trimEnd()),
          (k = k.replace(/\t/g, " ")),
          (A += i + $S((R + 1 + "").padStart(E), pse) + fse),
          (A += k + s.getNewLine()),
          (A += i + $S("".padStart(E), pse) + fse),
          (A += o),
          R === l)
        ) {
          const W = R === d ? _ : void 0;
          ((A += k.slice(0, u).replace(/\S/g, " ")),
            (A += k.slice(u, W).replace(/./g, "~")));
        } else
          R === d
            ? (A += k.slice(0, _).replace(/./g, "~"))
            : (A += k.replace(/./g, "~"));
        A += gAe;
      }
      return A;
    }
    function vH(e, t, r, i = $S) {
      const { line: o, character: s } = ca(e, t),
        l = r
          ? EN(e.fileName, r.getCurrentDirectory(), (d) =>
              r.getCanonicalFileName(d),
            )
          : e.fileName;
      let u = "";
      return (
        (u += i(l, "\x1B[96m")),
        (u += ":"),
        (u += i(`${o + 1}`, "\x1B[93m")),
        (u += ":"),
        (u += i(`${s + 1}`, "\x1B[93m")),
        u
      );
    }
    function mse(e, t) {
      let r = "";
      for (const i of e) {
        if (i.file) {
          const { file: o, start: s } = i;
          ((r += vH(o, s, t)), (r += " - "));
        }
        if (
          ((r += $S(jE(i), bAe(i.category))),
          (r += $S(` TS${i.code}: `, "\x1B[90m")),
          (r += a_(i.messageText, t.getNewLine())),
          i.file &&
            i.code !== f.File_appears_to_be_binary.code &&
            ((r += t.getNewLine()),
            (r += TAe(i.file, i.start, i.length, "", bAe(i.category), t))),
          i.relatedInformation)
        ) {
          r += t.getNewLine();
          for (const {
            file: o,
            start: s,
            length: l,
            messageText: u,
          } of i.relatedInformation)
            (o &&
              ((r += t.getNewLine()),
              (r += wqe + vH(o, s, t)),
              (r += TAe(o, s, l, vAe, "\x1B[96m", t))),
              (r += t.getNewLine()),
              (r += vAe + a_(u, t.getNewLine())));
        }
        r += t.getNewLine();
      }
      return r;
    }
    function a_(e, t, r = 0) {
      if (Bo(e)) return e;
      if (e === void 0) return "";
      let i = "";
      if (r) {
        i += t;
        for (let o = 0; o < r; o++) i += "  ";
      }
      if (((i += e.messageText), r++, e.next))
        for (const o of e.next) i += a_(o, t, r);
      return i;
    }
    function hse(e, t) {
      return (Bo(e) ? t : e.resolutionMode) || t;
    }
    function SAe(e, t, r) {
      return D3(e, aO(e, t), r);
    }
    function bH(e) {
      var t;
      return pc(e)
        ? e.isTypeOnly
        : !!((t = e.importClause) != null && t.isTypeOnly);
    }
    function TH(e, t, r) {
      return D3(e, t, r);
    }
    function D3(e, t, r) {
      if ((vl(t.parent) || pc(t.parent) || o_(t.parent)) && bH(t.parent)) {
        const o = HD(t.parent.attributes);
        if (o) return o;
      }
      if (t.parent.parent && e_(t.parent.parent)) {
        const i = HD(t.parent.parent.attributes);
        if (i) return i;
      }
      if (r && NV(r)) return EAe(e, t, r);
    }
    function EAe(e, t, r) {
      var i;
      if (!r) return;
      const o = (i = zm(t.parent)) == null ? void 0 : i.parent;
      if ((o && Fc(o)) || Zu(t.parent, !1)) return 1;
      if (Qu(zm(t.parent))) return RAe(e, r) ? 1 : 99;
      const s = TP(e, r);
      return s === 1 ? 1 : Kk(s) || s === 200 ? 99 : void 0;
    }
    function HD(e, t) {
      if (!e) return;
      if (et(e.elements) !== 1) {
        t?.(
          e,
          e.token === 118
            ? f.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require
            : f.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require,
        );
        return;
      }
      const r = e.elements[0];
      if (ds(r.name)) {
        if (r.name.text !== "resolution-mode") {
          t?.(
            r.name,
            e.token === 118
              ? f.resolution_mode_is_the_only_valid_key_for_type_import_attributes
              : f.resolution_mode_is_the_only_valid_key_for_type_import_assertions,
          );
          return;
        }
        if (ds(r.value)) {
          if (r.value.text !== "import" && r.value.text !== "require") {
            t?.(r.value, f.resolution_mode_should_be_either_require_or_import);
            return;
          }
          return r.value.text === "import" ? 99 : 1;
        }
      }
    }
    var AAe = {
      resolvedModule: void 0,
      resolvedTypeReferenceDirective: void 0,
    };
    function _se(e) {
      return e.text;
    }
    var C3 = { getName: _se, getMode: (e, t, r) => TH(t, e, r) };
    function SH(e, t, r, i, o) {
      return { nameAndMode: C3, resolve: (s, l) => M1(s, e, r, i, o, t, l) };
    }
    function gse(e) {
      return Bo(e) ? e : e.fileName;
    }
    var IAe = { getName: gse, getMode: (e, t, r) => hse(e, t && L3(t, r)) };
    function N3(e, t, r, i, o) {
      return { nameAndMode: IAe, resolve: (s, l) => zoe(s, e, r, i, t, o, l) };
    }
    function rO(e, t, r, i, o, s, l, u) {
      if (e.length === 0) return ae;
      const d = [],
        _ = new Map(),
        h = u(t, r, i, s, l);
      for (const g of e) {
        const E = h.nameAndMode.getName(g),
          A = h.nameAndMode.getMode(g, o, r?.commandLine.options || i),
          R = rP(E, A);
        let N = _.get(R);
        (N || _.set(R, (N = h.resolve(E, A))), d.push(N));
      }
      return d;
    }
    var vP = "__inferred type names__.ts";
    function M3(e, t, r) {
      const i = e.configFilePath ? ci(e.configFilePath) : t;
      return Qr(i, `__lib_node_modules_lookup_${r}__.ts`);
    }
    function EH(e) {
      const t = e.split(".");
      let r = t[1],
        i = 2;
      for (; t[i] && t[i] !== "d"; ) ((r += (i === 2 ? "/" : "-") + t[i]), i++);
      return "@typescript/lib-" + r;
    }
    function d0(e) {
      switch (e?.kind) {
        case 3:
        case 4:
        case 5:
        case 7:
          return !0;
        default:
          return !1;
      }
    }
    function qD(e) {
      return e.pos !== void 0;
    }
    function bP(e, t) {
      var r, i, o, s;
      const l = C.checkDefined(e.getSourceFileByPath(t.file)),
        { kind: u, index: d } = t;
      let _, h, g;
      switch (u) {
        case 3:
          const E = aO(l, d);
          if (
            ((g =
              (i =
                (r = e.getResolvedModuleFromModuleSpecifier(E, l)) == null
                  ? void 0
                  : r.resolvedModule) == null
                ? void 0
                : i.packageId),
            E.pos === -1)
          )
            return { file: l, packageId: g, text: E.text };
          ((_ = La(l.text, E.pos)), (h = E.end));
          break;
        case 4:
          ({ pos: _, end: h } = l.referencedFiles[d]);
          break;
        case 5:
          (({ pos: _, end: h } = l.typeReferenceDirectives[d]),
            (g =
              (s =
                (o =
                  e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(
                    l.typeReferenceDirectives[d],
                    l,
                  )) == null
                  ? void 0
                  : o.resolvedTypeReferenceDirective) == null
                ? void 0
                : s.packageId));
          break;
        case 7:
          ({ pos: _, end: h } = l.libReferenceDirectives[d]);
          break;
        default:
          return C.assertNever(u);
      }
      return { file: l, pos: _, end: h, packageId: g };
    }
    function AH(e, t, r, i, o, s, l, u, d, _) {
      if (!e || u?.() || !Qp(e.getRootFileNames(), t)) return !1;
      let h;
      if (!Qp(e.getProjectReferences(), _, N) || e.getSourceFiles().some(A))
        return !1;
      const g = e.getMissingFilePaths();
      if (g && Hc(g, o)) return !1;
      const E = e.getCompilerOptions();
      if (
        !EV(E, r) ||
        (e.resolvedLibReferences && Hc(e.resolvedLibReferences, (k, W) => l(W)))
      )
        return !1;
      if (E.configFile && r.configFile)
        return E.configFile.text === r.configFile.text;
      return !0;
      function A(k) {
        return !R(k) || s(k.path);
      }
      function R(k) {
        return k.version === i(k.resolvedPath, k.fileName);
      }
      function N(k, W, O) {
        return lG(k, W) && P(e.getResolvedProjectReferences()[O], k);
      }
      function P(k, W) {
        if (k) {
          if (jn(h, k)) return !0;
          const G = cx(W),
            j = d(G);
          return !j ||
            k.commandLine.options.configFile !== j.options.configFile ||
            !Qp(k.commandLine.fileNames, j.fileNames)
            ? !1
            : ((h || (h = [])).push(k),
              !Ye(
                k.references,
                (J, Z) => !P(J, k.commandLine.projectReferences[Z]),
              ));
        }
        const O = cx(W);
        return !d(O);
      }
    }
    function QS(e) {
      return e.options.configFile
        ? [...e.options.configFile.parseDiagnostics, ...e.errors]
        : e.errors;
    }
    function iO(e, t, r, i) {
      const o = P3(e, t, r, i);
      return typeof o == "object" ? o.impliedNodeFormat : o;
    }
    function P3(e, t, r, i) {
      const o = iu(i),
        s = (3 <= o && o <= 99) || Wb(e);
      return $l(e, [".d.mts", ".mts", ".mjs"])
        ? 99
        : $l(e, [".d.cts", ".cts", ".cjs"])
          ? 1
          : s && $l(e, [".d.ts", ".ts", ".tsx", ".js", ".jsx"])
            ? l()
            : void 0;
      function l() {
        const u = iP(t, r, i),
          d = [];
        ((u.failedLookupLocations = d), (u.affectingLocations = d));
        const _ = oP(ci(e), u);
        return {
          impliedNodeFormat:
            _?.contents.packageJsonContent.type === "module" ? 99 : 1,
          packageJsonLocations: d,
          packageJsonScope: _,
        };
      }
    }
    var xAe = new Set([
      f.Cannot_redeclare_block_scoped_variable_0.code,
      f.A_module_cannot_have_multiple_default_exports.code,
      f.Another_export_default_is_here.code,
      f.The_first_export_default_is_here.code,
      f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module
        .code,
      f
        .Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode
        .code,
      f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,
      f.constructor_is_a_reserved_word.code,
      f.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,
      f
        .Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode
        .code,
      f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,
      f.Invalid_use_of_0_in_strict_mode.code,
      f.A_label_is_not_allowed_here.code,
      f.with_statements_are_not_allowed_in_strict_mode.code,
      f
        .A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement
        .code,
      f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement
        .code,
      f.A_class_declaration_without_the_default_modifier_must_have_a_name.code,
      f.A_class_member_cannot_have_the_0_keyword.code,
      f.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,
      f
        .A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement
        .code,
      f
        .A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement
        .code,
      f
        .A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement
        .code,
      f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement
        .code,
      f
        .A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration
        .code,
      f.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,
      f.A_destructuring_declaration_must_have_an_initializer.code,
      f.A_get_accessor_cannot_have_parameters.code,
      f.A_rest_element_cannot_contain_a_binding_pattern.code,
      f.A_rest_element_cannot_have_a_property_name.code,
      f.A_rest_element_cannot_have_an_initializer.code,
      f.A_rest_element_must_be_last_in_a_destructuring_pattern.code,
      f.A_rest_parameter_cannot_have_an_initializer.code,
      f.A_rest_parameter_must_be_last_in_a_parameter_list.code,
      f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,
      f.A_return_statement_cannot_be_used_inside_a_class_static_block.code,
      f.A_set_accessor_cannot_have_rest_parameter.code,
      f.A_set_accessor_must_have_exactly_one_parameter.code,
      f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module
        .code,
      f.An_export_declaration_cannot_have_modifiers.code,
      f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module
        .code,
      f.An_import_declaration_cannot_have_modifiers.code,
      f.An_object_member_cannot_be_declared_optional.code,
      f.Argument_of_dynamic_import_cannot_be_spread_element.code,
      f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,
      f.Cannot_redeclare_identifier_0_in_catch_clause.code,
      f.Catch_clause_variable_cannot_have_an_initializer.code,
      f
        .Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator
        .code,
      f.Classes_can_only_extend_a_single_class.code,
      f.Classes_may_not_have_a_field_named_constructor.code,
      f
        .Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern
        .code,
      f.Duplicate_label_0.code,
      f
        .Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments
        .code,
      f.for_await_loops_cannot_be_used_inside_a_class_static_block.code,
      f.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,
      f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,
      f
        .JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array
        .code,
      f.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,
      f.Jump_target_cannot_cross_function_boundary.code,
      f.Line_terminator_not_permitted_before_arrow.code,
      f.Modifiers_cannot_appear_here.code,
      f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement
        .code,
      f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement
        .code,
      f.Private_identifiers_are_not_allowed_outside_class_bodies.code,
      f
        .Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression
        .code,
      f
        .Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier
        .code,
      f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,
      f.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,
      f
        .The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer
        .code,
      f
        .The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer
        .code,
      f.Trailing_comma_not_allowed.code,
      f.Variable_declaration_list_cannot_be_empty.code,
      f._0_and_1_operations_cannot_be_mixed_without_parentheses.code,
      f._0_expected.code,
      f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,
      f._0_list_cannot_be_empty.code,
      f._0_modifier_already_seen.code,
      f._0_modifier_cannot_appear_on_a_constructor_declaration.code,
      f._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,
      f._0_modifier_cannot_appear_on_a_parameter.code,
      f._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,
      f._0_modifier_cannot_be_used_here.code,
      f._0_modifier_must_precede_1_modifier.code,
      f._0_declarations_can_only_be_declared_inside_a_block.code,
      f._0_declarations_must_be_initialized.code,
      f.extends_clause_already_seen.code,
      f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations
        .code,
      f.Class_constructor_may_not_be_a_generator.code,
      f.Class_constructor_may_not_be_an_accessor.code,
      f
        .await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules
        .code,
      f
        .await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules
        .code,
      f.Private_field_0_must_be_declared_in_an_enclosing_class.code,
      f
        .This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value
        .code,
    ]);
    function Oqe(e, t) {
      return e ? uI(e.getCompilerOptions(), t, tU) : !1;
    }
    function Wqe(e, t, r, i, o, s) {
      return {
        rootNames: e,
        options: t,
        host: r,
        oldProgram: i,
        configFileParsingDiagnostics: o,
        typeScriptVersion: s,
      };
    }
    function oO(e, t, r, i, o) {
      var s, l, u, d, _, h, g, E, A, R, N, P, k, W, O, G;
      let j = Mo(e) ? Wqe(e, t, r, i, o) : e;
      const {
        rootNames: J,
        options: Z,
        configFileParsingDiagnostics: q,
        projectReferences: ye,
        typeScriptVersion: ie,
        host: K,
      } = j;
      let { oldProgram: pe } = j;
      ((j = void 0), (e = void 0));
      for (const Xe of yoe)
        if (Rs(Z, Xe.name) && typeof Z[Xe.name] == "string")
          throw new Error(
            `${Xe.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`,
          );
      const de = Nu(() =>
        kt("ignoreDeprecations", f.Invalid_value_for_ignoreDeprecations),
      );
      let fe, ve, xe, X, Ce, Je, Se, re, be;
      const Ne = yse(Eo);
      let Be, lt, ce, Re, _e, je, Ge, We, at;
      const Wt =
        typeof Z.maxNodeModuleJsDepth == "number" ? Z.maxNodeModuleJsDepth : 0;
      let cn = 0;
      const gn = new Map(),
        Kn = new Map();
      ((s = xr) == null ||
        s.push(
          xr.Phase.Program,
          "createProgram",
          { configFilePath: Z.configFilePath, rootDir: Z.rootDir },
          !0,
        ),
        Rl("beforeProgram"));
      const _t = K || dse(Z),
        en = w3(_t);
      let ir = Z.noLib;
      const Di = Nu(() => _t.getDefaultLibFileName(Z)),
        lo = _t.getDefaultLibLocation ? _t.getDefaultLibLocation() : ci(Di());
      let zt = !1;
      const Zr = _t.getCurrentDirectory(),
        Ai = SM(Z),
        Ni = $k(Z, Ai),
        Pr = new Map();
      let Ci, $e, At, mn;
      const dr = _t.hasInvalidatedResolutions || Qg;
      _t.resolveModuleNameLiterals
        ? ((mn = _t.resolveModuleNameLiterals.bind(_t)),
          (At =
            (l = _t.getModuleResolutionCache) == null ? void 0 : l.call(_t)))
        : _t.resolveModuleNames
          ? ((mn = (Xe, mt, Yt, Rn, Qn, Lr) =>
              _t
                .resolveModuleNames(Xe.map(_se), mt, Lr?.map(_se), Yt, Rn, Qn)
                .map((Yn) =>
                  Yn
                    ? Yn.extension !== void 0
                      ? { resolvedModule: Yn }
                      : {
                          resolvedModule: {
                            ...Yn,
                            extension: AM(Yn.resolvedFileName),
                          },
                        }
                    : AAe,
                )),
            (At =
              (u = _t.getModuleResolutionCache) == null ? void 0 : u.call(_t)))
          : ((At = zD(Zr, Xc, Z)),
            (mn = (Xe, mt, Yt, Rn, Qn) => rO(Xe, mt, Yt, Rn, Qn, _t, At, SH)));
      let ri;
      if (_t.resolveTypeReferenceDirectiveReferences)
        ri = _t.resolveTypeReferenceDirectiveReferences.bind(_t);
      else if (_t.resolveTypeReferenceDirectives)
        ri = (Xe, mt, Yt, Rn, Qn) =>
          _t
            .resolveTypeReferenceDirectives(
              Xe.map(gse),
              mt,
              Yt,
              Rn,
              Qn?.impliedNodeFormat,
            )
            .map((Lr) => ({ resolvedTypeReferenceDirective: Lr }));
      else {
        const Xe = r3(
          Zr,
          Xc,
          void 0,
          At?.getPackageJsonInfoCache(),
          At?.optionsToRedirectsKey,
        );
        ri = (mt, Yt, Rn, Qn, Lr) => rO(mt, Yt, Rn, Qn, Lr, _t, Xe, N3);
      }
      const ai = _t.hasInvalidatedLibResolutions || Qg;
      let qi;
      if (_t.resolveLibrary) qi = _t.resolveLibrary.bind(_t);
      else {
        const Xe = zD(Zr, Xc, Z, At?.getPackageJsonInfoCache());
        qi = (mt, Yt, Rn) => i3(mt, Yt, Rn, _t, Xe);
      }
      const $o = new Map();
      let Ia = new Map(),
        Mn = cm(),
        Uo;
      const ot = new Map();
      let Ft = new Map();
      const le = _t.useCaseSensitiveFileNames() ? new Map() : void 0;
      let ht, ne, Fe, it;
      const dt =
          !!(
            (d = _t.useSourceOfProjectReferenceRedirect) != null && d.call(_t)
          ) && !Z.disableSourceOfProjectReferenceRedirect,
        {
          onProgramCreateComplete: Lt,
          fileExists: Ue,
          directoryExists: Rt,
        } = Fqe({
          compilerHost: _t,
          getSymlinkCache: Sf,
          useSourceOfProjectReferenceRedirect: dt,
          toPath: jt,
          getResolvedProjectReferences: sa,
          getRedirectFromOutput: ql,
          forEachResolvedProjectReference: Ll,
        }),
        It = _t.readFile.bind(_t);
      (_ = xr) == null ||
        _.push(xr.Phase.Program, "shouldProgramCreateNewSourceFiles", {
          hasOldProgram: !!pe,
        });
      const Ot = Oqe(pe, Z);
      (h = xr) == null || h.pop();
      let nt;
      if (
        ((g = xr) == null ||
          g.push(xr.Phase.Program, "tryReuseStructureFromOldProgram", {}),
        (nt = Ln()),
        (E = xr) == null || E.pop(),
        nt !== 2)
      ) {
        if (
          ((fe = []),
          (ve = []),
          ye &&
            (ht || (ht = ye.map(p_)),
            J.length &&
              ht?.forEach((Xe, mt) => {
                if (!Xe) return;
                const Yt = Xe.commandLine.options.outFile;
                if (dt) {
                  if (Yt || bu(Xe.commandLine.options) === 0)
                    for (const Rn of Xe.commandLine.fileNames)
                      op(Rn, { kind: 1, index: mt });
                } else if (Yt) op(av(Yt, ".d.ts"), { kind: 2, index: mt });
                else if (bu(Xe.commandLine.options) === 0) {
                  const Rn = Nu(() =>
                    w1(Xe.commandLine, !_t.useCaseSensitiveFileNames()),
                  );
                  for (const Qn of Xe.commandLine.fileNames)
                    !ad(Qn) &&
                      !El(Qn, ".json") &&
                      op(
                        _P(
                          Qn,
                          Xe.commandLine,
                          !_t.useCaseSensitiveFileNames(),
                          Rn,
                        ),
                        { kind: 2, index: mt },
                      );
                }
              })),
          (A = xr) == null ||
            A.push(xr.Phase.Program, "processRootFiles", { count: J.length }),
          Ye(J, (Xe, mt) => Da(Xe, !1, !1, { kind: 0, index: mt })),
          (R = xr) == null || R.pop(),
          Be ?? (Be = J.length ? t3(Z, _t) : ae),
          (lt = FD()),
          Be.length)
        ) {
          (N = xr) == null ||
            N.push(xr.Phase.Program, "processTypeReferences", {
              count: Be.length,
            });
          const Xe = Z.configFilePath ? ci(Z.configFilePath) : Zr,
            mt = Qr(Xe, vP),
            Yt = wt(Be, mt);
          for (let Rn = 0; Rn < Be.length; Rn++)
            (lt.set(Be[Rn], void 0, Yt[Rn]),
              Xf(Be[Rn], void 0, Yt[Rn], {
                kind: 8,
                typeReference: Be[Rn],
                packageId:
                  (k =
                    (P = Yt[Rn]) == null
                      ? void 0
                      : P.resolvedTypeReferenceDirective) == null
                    ? void 0
                    : k.packageId,
              }));
          (W = xr) == null || W.pop();
        }
        if (J.length && !ir) {
          const Xe = Di();
          !Z.lib && Xe
            ? Da(Xe, !0, !1, { kind: 6 })
            : Ye(Z.lib, (mt, Yt) => {
                Da(Cg(mt), !0, !1, { kind: 6, index: Yt });
              });
        }
        ((xe = xp(fe, ft).concat(ve)),
          (fe = void 0),
          (ve = void 0),
          (Se = void 0));
      }
      if (pe && _t.onReleaseOldSourceFile) {
        const Xe = pe.getSourceFiles();
        for (const mt of Xe) {
          const Yt = Ra(mt.resolvedPath);
          (Ot ||
            !Yt ||
            Yt.impliedNodeFormat !== mt.impliedNodeFormat ||
            (mt.resolvedPath === mt.path && Yt.resolvedPath !== mt.path)) &&
            _t.onReleaseOldSourceFile(
              mt,
              pe.getCompilerOptions(),
              !!Ra(mt.path),
              Yt,
            );
        }
        _t.getParsedCommandLine ||
          pe.forEachResolvedProjectReference((mt) => {
            bd(mt.sourceFile.path) ||
              _t.onReleaseOldSourceFile(
                mt.sourceFile,
                pe.getCompilerOptions(),
                !1,
                void 0,
              );
          });
      }
      (pe &&
        _t.onReleaseParsedCommandLine &&
        kM(
          pe.getProjectReferences(),
          pe.getResolvedProjectReferences(),
          (Xe, mt, Yt) => {
            const Rn =
                mt?.commandLine.projectReferences[Yt] ||
                pe.getProjectReferences()[Yt],
              Qn = cx(Rn);
            ne?.has(jt(Qn)) ||
              _t.onReleaseParsedCommandLine(Qn, Xe, pe.getCompilerOptions());
          },
        ),
        (pe = void 0),
        (Re = void 0),
        (je = void 0),
        (We = void 0));
      const Kt = {
        getRootFileNames: () => J,
        getSourceFile: $s,
        getSourceFileByPath: Ra,
        getSourceFiles: () => xe,
        getMissingFilePaths: () => Ft,
        getModuleResolutionCache: () => At,
        getFilesByNameMap: () => ot,
        getCompilerOptions: () => Z,
        getSyntacticDiagnostics: bf,
        getOptionsDiagnostics: Fn,
        getGlobalDiagnostics: So,
        getSemanticDiagnostics: Lo,
        getCachedSemanticDiagnostics: fa,
        getSuggestionDiagnostics: pt,
        getDeclarationDiagnostics: Zt,
        getBindAndCheckDiagnostics: is,
        getProgramDiagnostics: qa,
        getTypeChecker: Ps,
        getClassifiableNames: In,
        getCommonSourceDirectory: Qt,
        emit: co,
        getCurrentDirectory: () => Zr,
        getNodeCount: () => Ps().getNodeCount(),
        getIdentifierCount: () => Ps().getIdentifierCount(),
        getSymbolCount: () => Ps().getSymbolCount(),
        getTypeCount: () => Ps().getTypeCount(),
        getInstantiationCount: () => Ps().getInstantiationCount(),
        getRelationCacheSizes: () => Ps().getRelationCacheSizes(),
        getFileProcessingDiagnostics: () => Ne.getFileProcessingDiagnostics(),
        getAutomaticTypeDirectiveNames: () => Be,
        getAutomaticTypeDirectiveResolutions: () => lt,
        isSourceFileFromExternalLibrary: Bl,
        isSourceFileDefaultLibrary: xl,
        getModeForUsageLocation: Yf,
        getEmitSyntaxForUsageLocation: Ty,
        getModeForResolutionAtIndex: Tv,
        getSourceFileFromReference: vh,
        getLibFileFromReference: Pl,
        sourceFileToPackageName: Ia,
        redirectTargetsMap: Mn,
        usesUriStyleNodeCoreModules: Uo,
        resolvedModules: _e,
        resolvedTypeReferenceDirectiveNames: Ge,
        resolvedLibReferences: ce,
        getProgramDiagnosticsContainer: () => Ne,
        getResolvedModule: Tr,
        getResolvedModuleFromModuleSpecifier: Oe,
        getResolvedTypeReferenceDirective: Nt,
        getResolvedTypeReferenceDirectiveFromTypeReferenceDirective: he,
        forEachResolvedModule: B,
        forEachResolvedTypeReferenceDirective: Ae,
        getCurrentPackagesMap: () => at,
        typesPackageExists: Xt,
        packageBundlesTypes: Pe,
        isEmittedFile: cd,
        getConfigFileParsingDiagnostics: Ns,
        getProjectReferences: zo,
        getResolvedProjectReferences: sa,
        getRedirectFromSourceFile: tl,
        getResolvedProjectReferenceByPath: bd,
        forEachResolvedProjectReference: Ll,
        isSourceOfProjectReferenceRedirect: rf,
        getRedirectFromOutput: ql,
        getCompilerOptionsForFile: Au,
        getDefaultResolutionModeForFile: Bu,
        getEmitModuleFormatOfFile: Th,
        getImpliedNodeFormatForEmit: V_,
        shouldTransformImportCall: Im,
        emitBuildInfo: ra,
        fileExists: Ue,
        readFile: It,
        directoryExists: Rt,
        getSymlinkCache: Sf,
        realpath: (O = _t.realpath) == null ? void 0 : O.bind(_t),
        useCaseSensitiveFileNames: () => _t.useCaseSensitiveFileNames(),
        getCanonicalFileName: Xc,
        getFileIncludeReasons: () => Ne.getFileReasons(),
        structureIsReused: nt,
        writeFile: Ii,
        getGlobalTypingsCacheLocation: ia(_t, _t.getGlobalTypingsCacheLocation),
      };
      return (
        Lt(),
        zt || oe(),
        Rl("afterProgram"),
        wf("Program", "beforeProgram", "afterProgram"),
        (G = xr) == null || G.pop(),
        Kt
      );
      function Tr(Xe, mt, Yt) {
        var Rn;
        return (Rn = _e?.get(Xe.path)) == null ? void 0 : Rn.get(mt, Yt);
      }
      function Oe(Xe, mt) {
        return (
          mt ?? (mt = Wn(Xe)),
          C.assertIsDefined(
            mt,
            "`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode.",
          ),
          Tr(mt, Xe.text, Yf(mt, Xe))
        );
      }
      function Nt(Xe, mt, Yt) {
        var Rn;
        return (Rn = Ge?.get(Xe.path)) == null ? void 0 : Rn.get(mt, Yt);
      }
      function he(Xe, mt) {
        return Nt(mt, Xe.fileName, Hb(Xe, mt));
      }
      function B(Xe, mt) {
        te(_e, Xe, mt);
      }
      function Ae(Xe, mt) {
        te(Ge, Xe, mt);
      }
      function te(Xe, mt, Yt) {
        var Rn;
        Yt
          ? (Rn = Xe?.get(Yt.path)) == null ||
            Rn.forEach((Qn, Lr, Yn) => mt(Qn, Lr, Yn, Yt.path))
          : Xe?.forEach((Qn, Lr) =>
              Qn.forEach((Yn, lr, Oi) => mt(Yn, lr, Oi, Lr)),
            );
      }
      function xt() {
        return (
          at ||
          ((at = new Map()),
          B(({ resolvedModule: Xe }) => {
            Xe?.packageId &&
              at.set(
                Xe.packageId.name,
                Xe.extension === ".d.ts" || !!at.get(Xe.packageId.name),
              );
          }),
          at)
        );
      }
      function Xt(Xe) {
        return xt().has(s3(Xe));
      }
      function Pe(Xe) {
        return !!xt().get(Xe);
      }
      function gt(Xe) {
        var mt;
        (mt = Xe.resolutionDiagnostics) != null &&
          mt.length &&
          Ne.addFileProcessingDiagnostic({
            kind: 2,
            diagnostics: Xe.resolutionDiagnostics,
          });
      }
      function Bt(Xe, mt, Yt, Rn) {
        if (_t.resolveModuleNameLiterals || !_t.resolveModuleNames)
          return gt(Yt);
        if (!At || td(mt)) return;
        const Qn = To(Xe.originalFileName, Zr),
          Lr = ci(Qn),
          Yn = Jn(Xe),
          lr = At.getFromNonRelativeNameCache(mt, Rn, Lr, Yn);
        lr && gt(lr);
      }
      function gr(Xe, mt, Yt) {
        var Rn, Qn;
        const Lr = To(mt.originalFileName, Zr),
          Yn = Jn(mt);
        ((Rn = xr) == null ||
          Rn.push(xr.Phase.Program, "resolveModuleNamesWorker", {
            containingFileName: Lr,
          }),
          Rl("beforeResolveModule"));
        const lr = mn(Xe, Lr, Yn, Z, mt, Yt);
        return (
          Rl("afterResolveModule"),
          wf("ResolveModule", "beforeResolveModule", "afterResolveModule"),
          (Qn = xr) == null || Qn.pop(),
          lr
        );
      }
      function tr(Xe, mt, Yt) {
        var Rn, Qn;
        const Lr = Bo(mt) ? void 0 : mt,
          Yn = Bo(mt) ? mt : To(mt.originalFileName, Zr),
          lr = Lr && Jn(Lr);
        ((Rn = xr) == null ||
          Rn.push(
            xr.Phase.Program,
            "resolveTypeReferenceDirectiveNamesWorker",
            { containingFileName: Yn },
          ),
          Rl("beforeResolveTypeReference"));
        const Oi = ri(Xe, Yn, lr, Z, Lr, Yt);
        return (
          Rl("afterResolveTypeReference"),
          wf(
            "ResolveTypeReference",
            "beforeResolveTypeReference",
            "afterResolveTypeReference",
          ),
          (Qn = xr) == null || Qn.pop(),
          Oi
        );
      }
      function Jn(Xe) {
        var mt, Yt;
        const Rn = tl(Xe.originalFileName);
        if (Rn || !ad(Xe.originalFileName)) return Rn?.resolvedRef;
        const Qn = (mt = ql(Xe.path)) == null ? void 0 : mt.resolvedRef;
        if (Qn) return Qn;
        if (
          !_t.realpath ||
          !Z.preserveSymlinks ||
          !Xe.originalFileName.includes(Rg)
        )
          return;
        const Lr = jt(_t.realpath(Xe.originalFileName));
        return Lr === Xe.path || (Yt = ql(Lr)) == null
          ? void 0
          : Yt.resolvedRef;
      }
      function ft(Xe, mt) {
        return js(Mt(Xe), Mt(mt));
      }
      function Mt(Xe) {
        if (um(lo, Xe.fileName, !1)) {
          const mt = Ic(Xe.fileName);
          if (mt === "lib.d.ts" || mt === "lib.es6.d.ts") return 0;
          const Yt = RR(hN(mt, "lib."), ".d.ts"),
            Rn = F4.indexOf(Yt);
          if (Rn !== -1) return Rn + 1;
        }
        return F4.length + 2;
      }
      function jt(Xe) {
        return ks(Xe, Zr, Xc);
      }
      function Qt() {
        let Xe = Ne.getCommonSourceDirectory();
        if (Xe !== void 0) return Xe;
        const mt = Un(xe, (Yt) => DS(Yt, Kt));
        return (
          (Xe = gP(
            Z,
            () => Ui(mt, (Yt) => (Yt.isDeclarationFile ? void 0 : Yt.fileName)),
            Zr,
            Xc,
            (Yt) => Tf(mt, Yt),
          )),
          Ne.setCommonSourceDirectory(Xe),
          Xe
        );
      }
      function In() {
        var Xe;
        if (!Je) {
          (Ps(), (Je = new Set()));
          for (const mt of xe)
            (Xe = mt.classifiableNames) == null ||
              Xe.forEach((Yt) => Je.add(Yt));
        }
        return Je;
      }
      function yn(Xe, mt) {
        return En({
          entries: Xe,
          containingFile: mt,
          containingSourceFile: mt,
          redirectedReference: Jn(mt),
          nameAndModeGetter: C3,
          resolutionWorker: gr,
          getResolutionFromOldProgram: (Yt, Rn) =>
            pe?.getResolvedModule(mt, Yt, Rn),
          getResolved: pI,
          canReuseResolutionsInFile: () =>
            mt === pe?.getSourceFile(mt.fileName) && !dr(mt.path),
          resolveToOwnAmbientModule: !0,
        });
      }
      function wt(Xe, mt) {
        const Yt = Bo(mt) ? void 0 : mt;
        return En({
          entries: Xe,
          containingFile: mt,
          containingSourceFile: Yt,
          redirectedReference: Yt && Jn(Yt),
          nameAndModeGetter: IAe,
          resolutionWorker: tr,
          getResolutionFromOldProgram: (Rn, Qn) => {
            var Lr;
            return Yt
              ? pe?.getResolvedTypeReferenceDirective(Yt, Rn, Qn)
              : (Lr = pe?.getAutomaticTypeDirectiveResolutions()) == null
                ? void 0
                : Lr.get(Rn, Qn);
          },
          getResolved: MF,
          canReuseResolutionsInFile: () =>
            Yt
              ? Yt === pe?.getSourceFile(Yt.fileName) && !dr(Yt.path)
              : !dr(jt(mt)),
        });
      }
      function En({
        entries: Xe,
        containingFile: mt,
        containingSourceFile: Yt,
        redirectedReference: Rn,
        nameAndModeGetter: Qn,
        resolutionWorker: Lr,
        getResolutionFromOldProgram: Yn,
        getResolved: lr,
        canReuseResolutionsInFile: Oi,
        resolveToOwnAmbientModule: Ro,
      }) {
        if (!Xe.length) return ae;
        if (nt === 0 && (!Ro || !Yt.ambientModuleNames.length))
          return Lr(Xe, mt, void 0);
        let _i, Do, Qi, hl;
        const sp = Oi();
        for (let Td = 0; Td < Xe.length; Td++) {
          const Rm = Xe[Td];
          if (sp) {
            const Hp = Qn.getName(Rm),
              b0 = Qn.getMode(Rm, Yt, Rn?.commandLine.options ?? Z),
              f_ = Yn(Hp, b0),
              j_ = f_ && lr(f_);
            if (j_) {
              (wb(Z, _t) &&
                xo(
                  _t,
                  Lr === gr
                    ? j_.packageId
                      ? f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3
                      : f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2
                    : j_.packageId
                      ? f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3
                      : f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,
                  Hp,
                  Yt ? To(Yt.originalFileName, Zr) : mt,
                  j_.resolvedFileName,
                  j_.packageId && wT(j_.packageId),
                ),
                ((Qi ?? (Qi = new Array(Xe.length)))[Td] = f_),
                (hl ?? (hl = [])).push(Rm));
              continue;
            }
          }
          if (Ro) {
            const Hp = Qn.getName(Rm);
            if (jn(Yt.ambientModuleNames, Hp)) {
              (wb(Z, _t) &&
                xo(
                  _t,
                  f.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,
                  Hp,
                  To(Yt.originalFileName, Zr),
                ),
                ((Qi ?? (Qi = new Array(Xe.length)))[Td] = AAe));
              continue;
            }
          }
          ((_i ?? (_i = [])).push(Rm), (Do ?? (Do = [])).push(Td));
        }
        if (!_i) return Qi;
        const xm = Lr(_i, mt, hl);
        return Qi ? (xm.forEach((Td, Rm) => (Qi[Do[Rm]] = Td)), Qi) : xm;
      }
      function xn() {
        return !kM(
          pe.getProjectReferences(),
          pe.getResolvedProjectReferences(),
          (Xe, mt, Yt) => {
            const Rn = (mt ? mt.commandLine.projectReferences : ye)[Yt],
              Qn = p_(Rn);
            return Xe
              ? !Qn ||
                  Qn.sourceFile !== Xe.sourceFile ||
                  !Qp(Xe.commandLine.fileNames, Qn.commandLine.fileNames)
              : Qn !== void 0;
          },
          (Xe, mt) => {
            const Yt = mt
              ? bd(mt.sourceFile.path).commandLine.projectReferences
              : ye;
            return !Qp(Xe, Yt, lG);
          },
        );
      }
      function Ln() {
        var Xe;
        if (!pe) return 0;
        const mt = pe.getCompilerOptions();
        if (CF(mt, Z)) return 0;
        const Yt = pe.getRootFileNames();
        if (!Qp(Yt, J) || !xn()) return 0;
        ye && (ht = ye.map(p_));
        const Rn = [],
          Qn = [];
        if (((nt = 2), Hc(pe.getMissingFilePaths(), (_i) => _t.fileExists(_i))))
          return 0;
        const Lr = pe.getSourceFiles();
        let Yn;
        ((_i) => {
          ((_i[(_i.Exists = 0)] = "Exists"),
            (_i[(_i.Modified = 1)] = "Modified"));
        })(Yn || (Yn = {}));
        const lr = new Map();
        for (const _i of Lr) {
          const Do = go(_i.fileName, At, _t, Z);
          let Qi = _t.getSourceFileByPath
            ? _t.getSourceFileByPath(
                _i.fileName,
                _i.resolvedPath,
                Do,
                void 0,
                Ot,
              )
            : _t.getSourceFile(_i.fileName, Do, void 0, Ot);
          if (!Qi) return 0;
          ((Qi.packageJsonLocations =
            (Xe = Do.packageJsonLocations) != null && Xe.length
              ? Do.packageJsonLocations
              : void 0),
            (Qi.packageJsonScope = Do.packageJsonScope),
            C.assert(
              !Qi.redirectInfo,
              "Host should not return a redirect source file from `getSourceFile`",
            ));
          let hl;
          if (_i.redirectInfo) {
            if (Qi !== _i.redirectInfo.unredirected) return 0;
            ((hl = !1), (Qi = _i));
          } else if (pe.redirectTargetsMap.has(_i.path)) {
            if (Qi !== _i) return 0;
            hl = !1;
          } else hl = Qi !== _i;
          ((Qi.path = _i.path),
            (Qi.originalFileName = _i.originalFileName),
            (Qi.resolvedPath = _i.resolvedPath),
            (Qi.fileName = _i.fileName));
          const sp = pe.sourceFileToPackageName.get(_i.path);
          if (sp !== void 0) {
            const xm = lr.get(sp),
              Td = hl ? 1 : 0;
            if ((xm !== void 0 && Td === 1) || xm === 1) return 0;
            lr.set(sp, Td);
          }
          (hl
            ? (_i.impliedNodeFormat !== Qi.impliedNodeFormat
                ? (nt = 1)
                : Qp(_i.libReferenceDirectives, Qi.libReferenceDirectives, Qs)
                  ? _i.hasNoDefaultLib !== Qi.hasNoDefaultLib
                    ? (nt = 1)
                    : Qp(_i.referencedFiles, Qi.referencedFiles, Qs)
                      ? (Hs(Qi),
                        Qp(_i.imports, Qi.imports, Sc) &&
                        Qp(_i.moduleAugmentations, Qi.moduleAugmentations, Sc)
                          ? (_i.flags & 12582912) !== (Qi.flags & 12582912)
                            ? (nt = 1)
                            : Qp(
                                _i.typeReferenceDirectives,
                                Qi.typeReferenceDirectives,
                                Qs,
                              ) || (nt = 1)
                          : (nt = 1))
                      : (nt = 1)
                  : (nt = 1),
              Qn.push(Qi))
            : dr(_i.path) && ((nt = 1), Qn.push(Qi)),
            Rn.push(Qi));
        }
        if (nt !== 2) return nt;
        for (const _i of Qn) {
          const Do = DAe(_i),
            Qi = yn(Do, _i);
          (je ?? (je = new Map())).set(_i.path, Qi);
          const hl = Au(_i);
          dG(
            Do,
            Qi,
            (Hp) => pe.getResolvedModule(_i, Hp.text, D3(_i, Hp, hl)),
            Dte,
          ) && (nt = 1);
          const xm = _i.typeReferenceDirectives,
            Td = wt(xm, _i);
          ((We ?? (We = new Map())).set(_i.path, Td),
            dG(
              xm,
              Td,
              (Hp) =>
                pe.getResolvedTypeReferenceDirective(_i, gse(Hp), Hb(Hp, _i)),
              Cte,
            ) && (nt = 1));
        }
        if (nt !== 2) return nt;
        if (
          xte(mt, Z) ||
          (pe.resolvedLibReferences &&
            Hc(
              pe.resolvedLibReferences,
              (_i, Do) => Ng(Do).actual !== _i.actual,
            ))
        )
          return 1;
        if (_t.hasChangedAutomaticTypeDirectiveNames) {
          if (_t.hasChangedAutomaticTypeDirectiveNames()) return 1;
        } else if (
          ((Be = t3(Z, _t)), !Qp(pe.getAutomaticTypeDirectiveNames(), Be))
        )
          return 1;
        ((Ft = pe.getMissingFilePaths()),
          C.assert(Rn.length === pe.getSourceFiles().length));
        for (const _i of Rn) ot.set(_i.path, _i);
        pe.getFilesByNameMap().forEach((_i, Do) => {
          if (!_i) {
            ot.set(Do, _i);
            return;
          }
          if (_i.path === Do) {
            pe.isSourceFileFromExternalLibrary(_i) && Kn.set(_i.path, !0);
            return;
          }
          ot.set(Do, ot.get(_i.path));
        });
        const Ro =
          (mt.configFile && mt.configFile === Z.configFile) ||
          (!mt.configFile && !Z.configFile && !uI(mt, Z, Um));
        return (
          Ne.reuseStateFromOldProgram(pe.getProgramDiagnosticsContainer(), Ro),
          (zt = Ro),
          (xe = Rn),
          (Be = pe.getAutomaticTypeDirectiveNames()),
          (lt = pe.getAutomaticTypeDirectiveResolutions()),
          (Ia = pe.sourceFileToPackageName),
          (Mn = pe.redirectTargetsMap),
          (Uo = pe.usesUriStyleNodeCoreModules),
          (_e = pe.resolvedModules),
          (Ge = pe.resolvedTypeReferenceDirectiveNames),
          (ce = pe.resolvedLibReferences),
          (at = pe.getCurrentPackagesMap()),
          2
        );
      }
      function ln(Xe) {
        return {
          getCanonicalFileName: Xc,
          getCommonSourceDirectory: Kt.getCommonSourceDirectory,
          getCompilerOptions: Kt.getCompilerOptions,
          getCurrentDirectory: () => Zr,
          getSourceFile: Kt.getSourceFile,
          getSourceFileByPath: Kt.getSourceFileByPath,
          getSourceFiles: Kt.getSourceFiles,
          isSourceFileFromExternalLibrary: Bl,
          getRedirectFromSourceFile: tl,
          isSourceOfProjectReferenceRedirect: rf,
          getSymlinkCache: Sf,
          writeFile: Xe || Ii,
          isEmitBlocked: Go,
          shouldTransformImportCall: Im,
          getEmitModuleFormatOfFile: Th,
          getDefaultResolutionModeForFile: Bu,
          getModeForResolutionAtIndex: Tv,
          readFile: (mt) => _t.readFile(mt),
          fileExists: (mt) => {
            const Yt = jt(mt);
            return Ra(Yt) ? !0 : Ft.has(Yt) ? !1 : _t.fileExists(mt);
          },
          realpath: ia(_t, _t.realpath),
          useCaseSensitiveFileNames: () => _t.useCaseSensitiveFileNames(),
          getBuildInfo: () => {
            var mt;
            return (mt = Kt.getBuildInfo) == null ? void 0 : mt.call(Kt);
          },
          getSourceFileFromReference: (mt, Yt) =>
            Kt.getSourceFileFromReference(mt, Yt),
          redirectTargetsMap: Mn,
          getFileIncludeReasons: Kt.getFileIncludeReasons,
          createHash: ia(_t, _t.createHash),
          getModuleResolutionCache: () => Kt.getModuleResolutionCache(),
          trace: ia(_t, _t.trace),
          getGlobalTypingsCacheLocation: Kt.getGlobalTypingsCacheLocation,
        };
      }
      function Ii(Xe, mt, Yt, Rn, Qn, Lr) {
        _t.writeFile(Xe, mt, Yt, Rn, Qn, Lr);
      }
      function ra(Xe) {
        var mt, Yt;
        ((mt = xr) == null || mt.push(xr.Phase.Emit, "emitBuildInfo", {}, !0),
          Rl("beforeEmit"));
        const Rn = lH(rse, ln(Xe), void 0, Qae, !1, !0);
        return (
          Rl("afterEmit"),
          wf("Emit", "beforeEmit", "afterEmit"),
          (Yt = xr) == null || Yt.pop(),
          Rn
        );
      }
      function sa() {
        return ht;
      }
      function zo() {
        return ye;
      }
      function Bl(Xe) {
        return !!Kn.get(Xe.path);
      }
      function xl(Xe) {
        if (!Xe.isDeclarationFile) return !1;
        if (Xe.hasNoDefaultLib) return !0;
        if (Z.noLib) return !1;
        const mt = _t.useCaseSensitiveFileNames() ? pS : rb;
        return Z.lib
          ? yt(Z.lib, (Yt) => {
              const Rn = ce.get(Yt);
              return !!Rn && mt(Xe.fileName, Rn.actual);
            })
          : mt(Xe.fileName, Di());
      }
      function Ps() {
        return Ce || (Ce = dae(Kt));
      }
      function co(Xe, mt, Yt, Rn, Qn, Lr, Yn) {
        var lr, Oi;
        (lr = xr) == null ||
          lr.push(xr.Phase.Emit, "emit", { path: Xe?.path }, !0);
        const Ro = Hl(() => Tc(Kt, Xe, mt, Yt, Rn, Qn, Lr, Yn));
        return ((Oi = xr) == null || Oi.pop(), Ro);
      }
      function Go(Xe) {
        return Pr.has(jt(Xe));
      }
      function Tc(Xe, mt, Yt, Rn, Qn, Lr, Yn, lr) {
        if (!Yn) {
          const Do = xH(Xe, mt, Yt, Rn);
          if (Do) return Do;
        }
        const Oi = Ps(),
          Ro = Oi.getEmitResolver(Z.outFile ? void 0 : mt, Rn, sH(Qn, Yn));
        Rl("beforeEmit");
        const _i = Oi.runWithCancellationToken(Rn, () =>
          lH(Ro, ln(Yt), mt, Zae(Z, Lr, Qn), Qn, !1, Yn, lr),
        );
        return (Rl("afterEmit"), wf("Emit", "beforeEmit", "afterEmit"), _i);
      }
      function $s(Xe) {
        return Ra(jt(Xe));
      }
      function Ra(Xe) {
        return ot.get(Xe) || void 0;
      }
      function ec(Xe, mt, Yt) {
        return wR(
          Xe
            ? mt(Xe, Yt)
            : Ki(
                Kt.getSourceFiles(),
                (Rn) => (Yt && Yt.throwIfCancellationRequested(), mt(Rn, Yt)),
              ),
        );
      }
      function bf(Xe, mt) {
        return ec(Xe, As, mt);
      }
      function Lo(Xe, mt, Yt) {
        return ec(Xe, (Rn, Qn) => sc(Rn, Qn, Yt), mt);
      }
      function fa(Xe) {
        return re?.get(Xe.path);
      }
      function is(Xe, mt) {
        return vd(Xe, mt, void 0);
      }
      function qa(Xe) {
        var mt;
        if (mD(Xe, Z, Kt)) return ae;
        const Yt = Ne.getCombinedDiagnostics(Kt).getDiagnostics(Xe.fileName);
        return (mt = Xe.commentDirectives) != null && mt.length
          ? Y(Xe, Xe.commentDirectives, Yt).diagnostics
          : Yt;
      }
      function Zt(Xe, mt) {
        return ec(Xe, Dr, mt);
      }
      function As(Xe) {
        return Pu(Xe)
          ? (Xe.additionalSyntacticDiagnostics ||
              (Xe.additionalSyntacticDiagnostics = fn(Xe)),
            so(Xe.additionalSyntacticDiagnostics, Xe.parseDiagnostics))
          : Xe.parseDiagnostics;
      }
      function Hl(Xe) {
        try {
          return Xe();
        } catch (mt) {
          throw (mt instanceof TN && (Ce = void 0), mt);
        }
      }
      function sc(Xe, mt, Yt) {
        return so(k3(vd(Xe, mt, Yt), Z), qa(Xe));
      }
      function vd(Xe, mt, Yt) {
        if (Yt) return Fs(Xe, mt, Yt);
        let Rn = re?.get(Xe.path);
        return (
          Rn || (re ?? (re = new Map())).set(Xe.path, (Rn = Fs(Xe, mt))),
          Rn
        );
      }
      function Fs(Xe, mt, Yt) {
        return Hl(() => {
          if (mD(Xe, Z, Kt)) return ae;
          const Rn = Ps();
          C.assert(!!Xe.bindDiagnostics);
          const Qn = Xe.scriptKind === 1 || Xe.scriptKind === 2,
            Lr = VN(Xe, Z.checkJs),
            Yn = Qn && IM(Xe, Z);
          let lr = Xe.bindDiagnostics,
            Oi = Rn.getDiagnostics(Xe, mt, Yt);
          return (
            Lr &&
              ((lr = Un(lr, (Ro) => xAe.has(Ro.code))),
              (Oi = Un(Oi, (Ro) => xAe.has(Ro.code)))),
            Ee(Xe, !Lr, !!Yt, lr, Oi, Yn ? Xe.jsDocDiagnostics : void 0)
          );
        });
      }
      function Ee(Xe, mt, Yt, ...Rn) {
        var Qn;
        const Lr = la(Rn);
        if (!mt || !((Qn = Xe.commentDirectives) != null && Qn.length))
          return Lr;
        const { diagnostics: Yn, directives: lr } = Y(
          Xe,
          Xe.commentDirectives,
          Lr,
        );
        if (Yt) return Yn;
        for (const Oi of lr.getUnusedExpectations())
          Yn.push(qte(Xe, Oi.range, f.Unused_ts_expect_error_directive));
        return Yn;
      }
      function Y(Xe, mt, Yt) {
        const Rn = Pte(Xe, mt);
        return {
          diagnostics: Yt.filter((Lr) => qt(Lr, Rn) === -1),
          directives: Rn,
        };
      }
      function pt(Xe, mt) {
        return Hl(() => Ps().getSuggestionDiagnostics(Xe, mt));
      }
      function qt(Xe, mt) {
        const { file: Yt, start: Rn } = Xe;
        if (!Yt) return -1;
        const Qn = ag(Yt);
        let Lr = LR(Qn, Rn).line - 1;
        for (; Lr >= 0; ) {
          if (mt.markUsed(Lr)) return Lr;
          const Yn = Yt.text.slice(Qn[Lr], Qn[Lr + 1]).trim();
          if (Yn !== "" && !/^\s*\/\/.*$/.test(Yn)) return -1;
          Lr--;
        }
        return -1;
      }
      function fn(Xe) {
        return Hl(() => {
          const mt = [];
          return (Yt(Xe, Xe), ex(Xe, Yt, Rn), mt);
          function Yt(lr, Oi) {
            switch (Oi.kind) {
              case 170:
              case 173:
              case 175:
                if (Oi.questionToken === lr)
                  return (
                    mt.push(
                      Yn(
                        lr,
                        f.The_0_modifier_can_only_be_used_in_TypeScript_files,
                        "?",
                      ),
                    ),
                    "skip"
                  );
              case 174:
              case 177:
              case 178:
              case 179:
              case 219:
              case 263:
              case 220:
              case 261:
                if (Oi.type === lr)
                  return (
                    mt.push(
                      Yn(
                        lr,
                        f.Type_annotations_can_only_be_used_in_TypeScript_files,
                      ),
                    ),
                    "skip"
                  );
            }
            switch (lr.kind) {
              case 274:
                if (lr.isTypeOnly)
                  return (
                    mt.push(
                      Yn(
                        Oi,
                        f._0_declarations_can_only_be_used_in_TypeScript_files,
                        "import type",
                      ),
                    ),
                    "skip"
                  );
                break;
              case 279:
                if (lr.isTypeOnly)
                  return (
                    mt.push(
                      Yn(
                        lr,
                        f._0_declarations_can_only_be_used_in_TypeScript_files,
                        "export type",
                      ),
                    ),
                    "skip"
                  );
                break;
              case 277:
              case 282:
                if (lr.isTypeOnly)
                  return (
                    mt.push(
                      Yn(
                        lr,
                        f._0_declarations_can_only_be_used_in_TypeScript_files,
                        Eu(lr) ? "import...type" : "export...type",
                      ),
                    ),
                    "skip"
                  );
                break;
              case 272:
                return (
                  mt.push(
                    Yn(lr, f.import_can_only_be_used_in_TypeScript_files),
                  ),
                  "skip"
                );
              case 278:
                if (lr.isExportEquals)
                  return (
                    mt.push(
                      Yn(lr, f.export_can_only_be_used_in_TypeScript_files),
                    ),
                    "skip"
                  );
                break;
              case 299:
                if (lr.token === 119)
                  return (
                    mt.push(
                      Yn(
                        lr,
                        f.implements_clauses_can_only_be_used_in_TypeScript_files,
                      ),
                    ),
                    "skip"
                  );
                break;
              case 265:
                const _i = _a(120);
                return (
                  C.assertIsDefined(_i),
                  mt.push(
                    Yn(
                      lr,
                      f._0_declarations_can_only_be_used_in_TypeScript_files,
                      _i,
                    ),
                  ),
                  "skip"
                );
              case 268:
                const Do = lr.flags & 32 ? _a(145) : _a(144);
                return (
                  C.assertIsDefined(Do),
                  mt.push(
                    Yn(
                      lr,
                      f._0_declarations_can_only_be_used_in_TypeScript_files,
                      Do,
                    ),
                  ),
                  "skip"
                );
              case 266:
                return (
                  mt.push(
                    Yn(lr, f.Type_aliases_can_only_be_used_in_TypeScript_files),
                  ),
                  "skip"
                );
              case 177:
              case 175:
              case 263:
                return lr.body
                  ? void 0
                  : (mt.push(
                      Yn(
                        lr,
                        f.Signature_declarations_can_only_be_used_in_TypeScript_files,
                      ),
                    ),
                    "skip");
              case 267:
                const Qi = C.checkDefined(_a(94));
                return (
                  mt.push(
                    Yn(
                      lr,
                      f._0_declarations_can_only_be_used_in_TypeScript_files,
                      Qi,
                    ),
                  ),
                  "skip"
                );
              case 236:
                return (
                  mt.push(
                    Yn(
                      lr,
                      f.Non_null_assertions_can_only_be_used_in_TypeScript_files,
                    ),
                  ),
                  "skip"
                );
              case 235:
                return (
                  mt.push(
                    Yn(
                      lr.type,
                      f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files,
                    ),
                  ),
                  "skip"
                );
              case 239:
                return (
                  mt.push(
                    Yn(
                      lr.type,
                      f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files,
                    ),
                  ),
                  "skip"
                );
              case 217:
                C.fail();
            }
          }
          function Rn(lr, Oi) {
            if (jj(Oi)) {
              const Ro = hn(Oi.modifiers, Wc);
              Ro && mt.push(Yn(Ro, f.Decorators_are_not_valid_here));
            } else if (qS(Oi) && Oi.modifiers) {
              const Ro = ho(Oi.modifiers, Wc);
              if (Ro >= 0) {
                if (to(Oi) && !Z.experimentalDecorators)
                  mt.push(
                    Yn(Oi.modifiers[Ro], f.Decorators_are_not_valid_here),
                  );
                else if (Dc(Oi)) {
                  const _i = ho(Oi.modifiers, VI);
                  if (_i >= 0) {
                    const Do = ho(Oi.modifiers, _4);
                    if (Ro > _i && Do >= 0 && Ro < Do)
                      mt.push(
                        Yn(Oi.modifiers[Ro], f.Decorators_are_not_valid_here),
                      );
                    else if (_i >= 0 && Ro < _i) {
                      const Qi = ho(Oi.modifiers, Wc, _i);
                      Qi >= 0 &&
                        mt.push(
                          pa(
                            Yn(
                              Oi.modifiers[Qi],
                              f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export,
                            ),
                            Yn(
                              Oi.modifiers[Ro],
                              f.Decorator_used_before_export_here,
                            ),
                          ),
                        );
                    }
                  }
                }
              }
            }
            switch (Oi.kind) {
              case 264:
              case 232:
              case 175:
              case 177:
              case 178:
              case 179:
              case 219:
              case 263:
              case 220:
                if (lr === Oi.typeParameters)
                  return (
                    mt.push(
                      Lr(
                        lr,
                        f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files,
                      ),
                    ),
                    "skip"
                  );
              case 244:
                if (lr === Oi.modifiers)
                  return (Qn(Oi.modifiers, Oi.kind === 244), "skip");
                break;
              case 173:
                if (lr === Oi.modifiers) {
                  for (const Ro of lr)
                    Aa(Ro) &&
                      Ro.kind !== 126 &&
                      Ro.kind !== 129 &&
                      mt.push(
                        Yn(
                          Ro,
                          f.The_0_modifier_can_only_be_used_in_TypeScript_files,
                          _a(Ro.kind),
                        ),
                      );
                  return "skip";
                }
                break;
              case 170:
                if (lr === Oi.modifiers && yt(lr, Aa))
                  return (
                    mt.push(
                      Lr(
                        lr,
                        f.Parameter_modifiers_can_only_be_used_in_TypeScript_files,
                      ),
                    ),
                    "skip"
                  );
                break;
              case 214:
              case 215:
              case 234:
              case 286:
              case 287:
              case 216:
                if (lr === Oi.typeArguments)
                  return (
                    mt.push(
                      Lr(
                        lr,
                        f.Type_arguments_can_only_be_used_in_TypeScript_files,
                      ),
                    ),
                    "skip"
                  );
                break;
            }
          }
          function Qn(lr, Oi) {
            for (const Ro of lr)
              switch (Ro.kind) {
                case 87:
                  if (Oi) continue;
                case 125:
                case 123:
                case 124:
                case 148:
                case 138:
                case 128:
                case 164:
                case 103:
                case 147:
                  mt.push(
                    Yn(
                      Ro,
                      f.The_0_modifier_can_only_be_used_in_TypeScript_files,
                      _a(Ro.kind),
                    ),
                  );
                  break;
                case 126:
                case 95:
                case 90:
                case 129:
              }
          }
          function Lr(lr, Oi, ...Ro) {
            const _i = lr.pos;
            return Oc(Xe, _i, lr.end - _i, Oi, ...Ro);
          }
          function Yn(lr, Oi, ...Ro) {
            return Wf(Xe, lr, Oi, ...Ro);
          }
        });
      }
      function ur(Xe, mt) {
        let Yt = be?.get(Xe.path);
        return (
          Yt || (be ?? (be = new Map())).set(Xe.path, (Yt = si(Xe, mt))),
          Yt
        );
      }
      function si(Xe, mt) {
        return Hl(() => {
          const Yt = Ps().getEmitResolver(Xe, mt);
          return $ae(ln(gs), Yt, Xe) || ae;
        });
      }
      function Dr(Xe, mt) {
        return Xe.isDeclarationFile ? ae : ur(Xe, mt);
      }
      function Fn() {
        return wR(
          so(Ne.getCombinedDiagnostics(Kt).getGlobalDiagnostics(), ro()),
        );
      }
      function ro() {
        if (!Z.configFile) return ae;
        let Xe = Ne.getCombinedDiagnostics(Kt).getDiagnostics(
          Z.configFile.fileName,
        );
        return (
          Ll((mt) => {
            Xe = so(
              Xe,
              Ne.getCombinedDiagnostics(Kt).getDiagnostics(
                mt.sourceFile.fileName,
              ),
            );
          }),
          Xe
        );
      }
      function So() {
        return J.length ? wR(Ps().getGlobalDiagnostics().slice()) : ae;
      }
      function Ns() {
        return q || ae;
      }
      function Da(Xe, mt, Yt, Rn) {
        nf(ya(Xe), mt, Yt, void 0, Rn);
      }
      function Qs(Xe, mt) {
        return Xe.fileName === mt.fileName;
      }
      function Sc(Xe, mt) {
        return Xe.kind === 80
          ? mt.kind === 80 && Xe.escapedText === mt.escapedText
          : mt.kind === 11 && Xe.text === mt.text;
      }
      function fc(Xe, mt) {
        const Yt = L.createStringLiteral(Xe),
          Rn = L.createImportDeclaration(void 0, void 0, Yt);
        return (
          h1(Rn, 2),
          ps(Yt, Rn),
          ps(Rn, mt),
          (Yt.flags &= -17),
          (Rn.flags &= -17),
          Yt
        );
      }
      function Hs(Xe) {
        if (Xe.imports) return;
        const mt = Pu(Xe),
          Yt = zc(Xe);
        let Rn, Qn, Lr;
        if (mt || (!Xe.isDeclarationFile && (ym(Z) || zc(Xe)))) {
          Z.importHelpers && (Rn = [fc(hb, Xe)]);
          const lr = B6(Xk(Z, Xe), Z);
          lr && (Rn || (Rn = [])).push(fc(lr, Xe));
        }
        for (const lr of Xe.statements) Yn(lr, !1);
        ((Xe.flags & 4194304 || mt) &&
          a4(Xe, !0, !0, (lr, Oi) => {
            (qT(lr, !1), (Rn = Bn(Rn, Oi)));
          }),
          (Xe.imports = Rn || ae),
          (Xe.moduleAugmentations = Qn || ae),
          (Xe.ambientModuleNames = Lr || ae));
        return;
        function Yn(lr, Oi) {
          if (Z2(lr)) {
            const Ro = yI(lr);
            Ro &&
              ka(Ro) &&
              Ro.text &&
              (!Oi || !td(Ro.text)) &&
              (qT(lr, !1),
              (Rn = Bn(Rn, Ro)),
              !Uo &&
                cn === 0 &&
                !Xe.isDeclarationFile &&
                (po(Ro.text, "node:") && !o4.has(Ro.text)
                  ? (Uo = !0)
                  : Uo === void 0 && Ure.has(Ro.text) && (Uo = !1)));
          } else if (
            uc(lr) &&
            yu(lr) &&
            (Oi || di(lr, 128) || Xe.isDeclarationFile)
          ) {
            lr.name.parent = lr;
            const Ro = zf(lr.name);
            if (Yt || (Oi && !td(Ro))) (Qn || (Qn = [])).push(lr.name);
            else if (!Oi) {
              Xe.isDeclarationFile && (Lr || (Lr = [])).push(Ro);
              const _i = lr.body;
              if (_i) for (const Do of _i.statements) Yn(Do, !0);
            }
          }
        }
      }
      function Pl(Xe) {
        var mt;
        const Yt = tj(Xe),
          Rn = Yt && ((mt = ce?.get(Yt)) == null ? void 0 : mt.actual);
        return Rn !== void 0 ? $s(Rn) : void 0;
      }
      function vh(Xe, mt) {
        return Pd(hH(mt.fileName, Xe.fileName), $s);
      }
      function Pd(Xe, mt, Yt, Rn) {
        if (NR(Xe)) {
          const Qn = _t.getCanonicalFileName(Xe);
          if (!Z.allowNonTsExtensions && !Ye(la(Ni), (Yn) => El(Qn, Yn))) {
            Yt &&
              (Tg(Qn)
                ? Yt(
                    f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,
                    Xe,
                  )
                : Yt(
                    f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,
                    Xe,
                    "'" + la(Ai).join("', '") + "'",
                  ));
            return;
          }
          const Lr = mt(Xe);
          if (Yt)
            if (Lr)
              d0(Rn) &&
                Qn === _t.getCanonicalFileName(Ra(Rn.file).fileName) &&
                Yt(f.A_file_cannot_have_a_reference_to_itself);
            else {
              const Yn = tl(Xe);
              Yn?.outputDts
                ? Yt(
                    f.Output_file_0_has_not_been_built_from_source_file_1,
                    Yn.outputDts,
                    Xe,
                  )
                : Yt(f.File_0_not_found, Xe);
            }
          return Lr;
        } else {
          const Qn = Z.allowNonTsExtensions && mt(Xe);
          if (Qn) return Qn;
          if (Yt && Z.allowNonTsExtensions) {
            Yt(f.File_0_not_found, Xe);
            return;
          }
          const Lr = Ye(Ai[0], (Yn) => mt(Xe + Yn));
          return (
            Yt &&
              !Lr &&
              Yt(
                f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,
                Xe,
                "'" + la(Ai).join("', '") + "'",
              ),
            Lr
          );
        }
      }
      function nf(Xe, mt, Yt, Rn, Qn) {
        Pd(
          Xe,
          (Lr) => er(Lr, mt, Yt, Qn, Rn),
          (Lr, ...Yn) => or(void 0, Qn, Lr, Yn),
          Qn,
        );
      }
      function op(Xe, mt) {
        return nf(Xe, !1, !1, void 0, mt);
      }
      function ze(Xe, mt, Yt) {
        !d0(Yt) && yt(Ne.getFileReasons().get(mt.path), d0)
          ? or(
              mt,
              Yt,
              f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,
              [mt.fileName, Xe],
            )
          : or(
              mt,
              Yt,
              f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,
              [Xe, mt.fileName],
            );
      }
      function Jt(Xe, mt, Yt, Rn, Qn, Lr, Yn) {
        var lr;
        const Oi = i0.createRedirectedSourceFile({
          redirectTarget: Xe,
          unredirected: mt,
        });
        return (
          (Oi.fileName = Yt),
          (Oi.path = Rn),
          (Oi.resolvedPath = Qn),
          (Oi.originalFileName = Lr),
          (Oi.packageJsonLocations =
            (lr = Yn.packageJsonLocations) != null && lr.length
              ? Yn.packageJsonLocations
              : void 0),
          (Oi.packageJsonScope = Yn.packageJsonScope),
          Kn.set(Rn, cn > 0),
          Oi
        );
      }
      function er(Xe, mt, Yt, Rn, Qn) {
        var Lr, Yn;
        (Lr = xr) == null ||
          Lr.push(xr.Phase.Program, "findSourceFile", {
            fileName: Xe,
            isDefaultLib: mt || void 0,
            fileIncludeKind: c9[Rn.kind],
          });
        const lr = Za(Xe, mt, Yt, Rn, Qn);
        return ((Yn = xr) == null || Yn.pop(), lr);
      }
      function go(Xe, mt, Yt, Rn) {
        const Qn = P3(To(Xe, Zr), mt?.getPackageJsonInfoCache(), Yt, Rn),
          Lr = Ga(Rn),
          Yn = Uk(Rn);
        return typeof Qn == "object"
          ? {
              ...Qn,
              languageVersion: Lr,
              setExternalModuleIndicator: Yn,
              jsDocParsingMode: Yt.jsDocParsingMode,
            }
          : {
              languageVersion: Lr,
              impliedNodeFormat: Qn,
              setExternalModuleIndicator: Yn,
              jsDocParsingMode: Yt.jsDocParsingMode,
            };
      }
      function Za(Xe, mt, Yt, Rn, Qn) {
        var Lr, Yn;
        const lr = jt(Xe);
        if (dt) {
          let Qi = ql(lr);
          if (
            !Qi &&
            _t.realpath &&
            Z.preserveSymlinks &&
            ad(Xe) &&
            Xe.includes(Rg)
          ) {
            const hl = jt(_t.realpath(Xe));
            hl !== lr && (Qi = ql(hl));
          }
          if (Qi?.source) {
            const hl = er(Qi.source, mt, Yt, Rn, Qn);
            return (hl && Va(hl, lr, Xe, void 0), hl);
          }
        }
        const Oi = Xe;
        if (ot.has(lr)) {
          const Qi = ot.get(lr),
            hl = es(Qi || void 0, Rn, !0);
          if (Qi && hl && Z.forceConsistentCasingInFileNames !== !1) {
            const sp = Qi.fileName;
            jt(sp) !== jt(Xe) &&
              (Xe = ((Lr = tl(Xe)) == null ? void 0 : Lr.outputDts) || Xe);
            const Td = R9(sp, Zr),
              Rm = R9(Xe, Zr);
            Td !== Rm && ze(Xe, Qi, Rn);
          }
          return (
            Qi && Kn.get(Qi.path) && cn === 0
              ? (Kn.set(Qi.path, !1),
                Z.noResolve || (ld(Qi, mt), jp(Qi)),
                Z.noLib || ap(Qi),
                gn.set(Qi.path, !1),
                bh(Qi))
              : Qi &&
                gn.get(Qi.path) &&
                cn < Wt &&
                (gn.set(Qi.path, !1), bh(Qi)),
            Qi || void 0
          );
        }
        let Ro;
        if (!dt) {
          const Qi = tl(Xe);
          if (Qi?.outputDts) {
            if (Qi.resolvedRef.commandLine.options.outFile) return;
            ((Xe = Qi.outputDts), (Ro = jt(Qi.outputDts)));
          }
        }
        const _i = go(Xe, At, _t, Z),
          Do = _t.getSourceFile(
            Xe,
            _i,
            (Qi) => or(void 0, Rn, f.Cannot_read_file_0_Colon_1, [Xe, Qi]),
            Ot,
          );
        if (Qn) {
          const Qi = wT(Qn),
            hl = $o.get(Qi);
          if (hl) {
            const sp = Jt(hl, Do, Xe, lr, jt(Xe), Oi, _i);
            return (
              Mn.add(hl.path, Xe),
              Va(sp, lr, Xe, Ro),
              es(sp, Rn, !1),
              Ia.set(lr, LF(Qn)),
              ve.push(sp),
              sp
            );
          } else Do && ($o.set(Qi, Do), Ia.set(lr, LF(Qn)));
        }
        if ((Va(Do, lr, Xe, Ro), Do)) {
          if (
            (Kn.set(lr, cn > 0),
            (Do.fileName = Xe),
            (Do.path = lr),
            (Do.resolvedPath = jt(Xe)),
            (Do.originalFileName = Oi),
            (Do.packageJsonLocations =
              (Yn = _i.packageJsonLocations) != null && Yn.length
                ? _i.packageJsonLocations
                : void 0),
            (Do.packageJsonScope = _i.packageJsonScope),
            es(Do, Rn, !1),
            _t.useCaseSensitiveFileNames())
          ) {
            const Qi = tb(lr),
              hl = le.get(Qi);
            hl ? ze(Xe, hl, Rn) : le.set(Qi, Do);
          }
          ((ir = ir || (Do.hasNoDefaultLib && !Yt)),
            Z.noResolve || (ld(Do, mt), jp(Do)),
            Z.noLib || ap(Do),
            bh(Do),
            mt ? fe.push(Do) : ve.push(Do),
            (Se ?? (Se = new Set())).add(Do.path));
        }
        return Do;
      }
      function es(Xe, mt, Yt) {
        return Xe && (!Yt || !d0(mt) || !Se?.has(mt.file))
          ? (Ne.getFileReasons().add(Xe.path, mt), !0)
          : !1;
      }
      function Va(Xe, mt, Yt, Rn) {
        Rn ? (Mc(Yt, Rn, Xe), Mc(Yt, mt, Xe || !1)) : Mc(Yt, mt, Xe);
      }
      function Mc(Xe, mt, Yt) {
        (ot.set(mt, Yt), Yt !== void 0 ? Ft.delete(mt) : Ft.set(mt, Xe));
      }
      function tl(Xe) {
        return Fe?.get(jt(Xe));
      }
      function Ll(Xe) {
        return nj(ht, Xe);
      }
      function ql(Xe) {
        return it?.get(Xe);
      }
      function rf(Xe) {
        return dt && !!tl(Xe);
      }
      function bd(Xe) {
        if (ne) return ne.get(Xe) || void 0;
      }
      function ld(Xe, mt) {
        Ye(Xe.referencedFiles, (Yt, Rn) => {
          nf(hH(Yt.fileName, Xe.fileName), mt, !1, void 0, {
            kind: 4,
            file: Xe.path,
            index: Rn,
          });
        });
      }
      function jp(Xe) {
        const mt = Xe.typeReferenceDirectives;
        if (!mt.length) return;
        const Yt = We?.get(Xe.path) || wt(mt, Xe),
          Rn = FD();
        (Ge ?? (Ge = new Map())).set(Xe.path, Rn);
        for (let Qn = 0; Qn < mt.length; Qn++) {
          const Lr = Xe.typeReferenceDirectives[Qn],
            Yn = Yt[Qn],
            lr = Lr.fileName,
            Oi = Hb(Lr, Xe);
          (Rn.set(lr, Oi, Yn),
            Xf(lr, Oi, Yn, { kind: 5, file: Xe.path, index: Qn }));
        }
      }
      function Au(Xe) {
        var mt;
        return ((mt = Jn(Xe)) == null ? void 0 : mt.commandLine.options) || Z;
      }
      function Xf(Xe, mt, Yt, Rn) {
        var Qn, Lr;
        ((Qn = xr) == null ||
          Qn.push(xr.Phase.Program, "processTypeReferenceDirective", {
            directive: Xe,
            hasResolved: !!Yt.resolvedTypeReferenceDirective,
            refKind: Rn.kind,
            refPath: d0(Rn) ? Rn.file : void 0,
          }),
          G_(Xe, mt, Yt, Rn),
          (Lr = xr) == null || Lr.pop());
      }
      function G_(Xe, mt, Yt, Rn) {
        gt(Yt);
        const { resolvedTypeReferenceDirective: Qn } = Yt;
        Qn
          ? (Qn.isExternalLibraryImport && cn++,
            nf(Qn.resolvedFileName, !1, !1, Qn.packageId, Rn),
            Qn.isExternalLibraryImport && cn--)
          : or(void 0, Rn, f.Cannot_find_type_definition_file_for_0, [Xe]);
      }
      function Cg(Xe) {
        const mt = ce?.get(Xe);
        if (mt) return mt.actual;
        const Yt = Ng(Xe);
        return ((ce ?? (ce = new Map())).set(Xe, Yt), Yt.actual);
      }
      function Ng(Xe) {
        var mt, Yt, Rn, Qn, Lr;
        const Yn = Re?.get(Xe);
        if (Yn) return Yn;
        if (Z.libReplacement === !1) {
          const Do = {
            resolution: { resolvedModule: void 0 },
            actual: Qr(lo, Xe),
          };
          return ((Re ?? (Re = new Map())).set(Xe, Do), Do);
        }
        if (nt !== 0 && pe && !ai(Xe)) {
          const Do =
            (mt = pe.resolvedLibReferences) == null ? void 0 : mt.get(Xe);
          if (Do) {
            if (Do.resolution && wb(Z, _t)) {
              const Qi = EH(Xe),
                hl = M3(Z, Zr, Xe);
              xo(
                _t,
                Do.resolution.resolvedModule
                  ? Do.resolution.resolvedModule.packageId
                    ? f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3
                    : f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2
                  : f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,
                Qi,
                To(hl, Zr),
                (Yt = Do.resolution.resolvedModule) == null
                  ? void 0
                  : Yt.resolvedFileName,
                ((Rn = Do.resolution.resolvedModule) == null
                  ? void 0
                  : Rn.packageId) && wT(Do.resolution.resolvedModule.packageId),
              );
            }
            return ((Re ?? (Re = new Map())).set(Xe, Do), Do);
          }
        }
        const lr = EH(Xe),
          Oi = M3(Z, Zr, Xe);
        ((Qn = xr) == null ||
          Qn.push(xr.Phase.Program, "resolveLibrary", { resolveFrom: Oi }),
          Rl("beforeResolveLibrary"));
        const Ro = qi(lr, Oi, Z, Xe);
        (Rl("afterResolveLibrary"),
          wf("ResolveLibrary", "beforeResolveLibrary", "afterResolveLibrary"),
          (Lr = xr) == null || Lr.pop());
        const _i = {
          resolution: Ro,
          actual: Ro.resolvedModule
            ? Ro.resolvedModule.resolvedFileName
            : Qr(lo, Xe),
        };
        return ((Re ?? (Re = new Map())).set(Xe, _i), _i);
      }
      function ap(Xe) {
        Ye(Xe.libReferenceDirectives, (mt, Yt) => {
          const Rn = tj(mt);
          Rn
            ? Da(Cg(Rn), !0, !0, { kind: 7, file: Xe.path, index: Yt })
            : Ne.addFileProcessingDiagnostic({
                kind: 0,
                reason: { kind: 7, file: Xe.path, index: Yt },
              });
        });
      }
      function Xc(Xe) {
        return _t.getCanonicalFileName(Xe);
      }
      function bh(Xe) {
        if ((Hs(Xe), Xe.imports.length || Xe.moduleAugmentations.length)) {
          const mt = DAe(Xe),
            Yt = je?.get(Xe.path) || yn(mt, Xe);
          C.assert(Yt.length === mt.length);
          const Rn = Au(Xe),
            Qn = FD();
          (_e ?? (_e = new Map())).set(Xe.path, Qn);
          for (let Lr = 0; Lr < mt.length; Lr++) {
            const Yn = Yt[Lr].resolvedModule,
              lr = mt[Lr].text,
              Oi = D3(Xe, mt[Lr], Rn);
            if ((Qn.set(lr, Oi, Yt[Lr]), Bt(Xe, lr, Yt[Lr], Oi), !Yn)) continue;
            const Ro = Yn.isExternalLibraryImport,
              _i = !EM(Yn.extension) && !tl(Yn.resolvedFileName),
              Do = Ro && _i && (!Yn.originalPath || Wb(Yn.resolvedFileName)),
              Qi = Yn.resolvedFileName;
            Ro && cn++;
            const hl = Do && cn > Wt,
              sp =
                Qi &&
                !RH(Rn, Yn, Xe) &&
                !Rn.noResolve &&
                Lr < Xe.imports.length &&
                !hl &&
                !(_i && !xb(Rn)) &&
                (Ir(Xe.imports[Lr]) || !(Xe.imports[Lr].flags & 16777216));
            (hl
              ? gn.set(Xe.path, !0)
              : sp &&
                er(
                  Qi,
                  !1,
                  !1,
                  { kind: 3, file: Xe.path, index: Lr },
                  Yn.packageId,
                ),
              Ro && cn--);
          }
        }
      }
      function Tf(Xe, mt) {
        let Yt = !0;
        const Rn = _t.getCanonicalFileName(To(mt, Zr));
        for (const Qn of Xe)
          Qn.isDeclarationFile ||
            (_t.getCanonicalFileName(To(Qn.fileName, Zr)).indexOf(Rn) !== 0 &&
              (Ne.addLazyConfigDiagnostic(
                Qn,
                f.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,
                Qn.fileName,
                mt,
              ),
              (Yt = !1)));
        return Yt;
      }
      function p_(Xe) {
        ne || (ne = new Map());
        const mt = cx(Xe),
          Yt = jt(mt),
          Rn = ne.get(Yt);
        if (Rn !== void 0) return Rn || void 0;
        let Qn, Lr;
        if (_t.getParsedCommandLine) {
          if (((Qn = _t.getParsedCommandLine(mt)), !Qn)) {
            (Va(void 0, Yt, mt, void 0), ne.set(Yt, !1));
            return;
          }
          ((Lr = C.checkDefined(Qn.options.configFile)),
            C.assert(!Lr.path || Lr.path === Yt),
            Va(Lr, Yt, mt, void 0));
        } else {
          const lr = To(ci(mt), Zr);
          if (
            ((Lr = _t.getSourceFile(mt, 100)),
            Va(Lr, Yt, mt, void 0),
            Lr === void 0)
          ) {
            ne.set(Yt, !1);
            return;
          }
          Qn = Ow(Lr, en, lr, void 0, mt);
        }
        ((Lr.fileName = mt),
          (Lr.path = Yt),
          (Lr.resolvedPath = Yt),
          (Lr.originalFileName = mt));
        const Yn = { commandLine: Qn, sourceFile: Lr };
        if ((ne.set(Yt, Yn), Z.configFile !== Lr)) {
          (Fe ?? (Fe = new Map()), it ?? (it = new Map()));
          let lr;
          Qn.options.outFile &&
            ((lr = av(Qn.options.outFile, ".d.ts")),
            it?.set(jt(lr), { resolvedRef: Yn }));
          const Oi = Nu(() =>
            w1(Yn.commandLine, !_t.useCaseSensitiveFileNames()),
          );
          Qn.fileNames.forEach((Ro) => {
            const _i = jt(Ro);
            let Do;
            (!ad(Ro) &&
              !El(Ro, ".json") &&
              (Qn.options.outFile
                ? (Do = lr)
                : ((Do = _P(
                    Ro,
                    Yn.commandLine,
                    !_t.useCaseSensitiveFileNames(),
                    Oi,
                  )),
                  it.set(jt(Do), { resolvedRef: Yn, source: Ro }))),
              Fe.set(_i, { resolvedRef: Yn, outputDts: Do }));
          });
        }
        return (
          Qn.projectReferences &&
            (Yn.references = Qn.projectReferences.map(p_)),
          Yn
        );
      }
      function oe() {
        (Z.strictPropertyInitialization &&
          !Vd(Z, "strictNullChecks") &&
          Ve(
            f.Option_0_cannot_be_specified_without_specifying_option_1,
            "strictPropertyInitialization",
            "strictNullChecks",
          ),
          Z.exactOptionalPropertyTypes &&
            !Vd(Z, "strictNullChecks") &&
            Ve(
              f.Option_0_cannot_be_specified_without_specifying_option_1,
              "exactOptionalPropertyTypes",
              "strictNullChecks",
            ),
          (Z.isolatedModules || Z.verbatimModuleSyntax) &&
            Z.outFile &&
            Ve(
              f.Option_0_cannot_be_specified_with_option_1,
              "outFile",
              Z.verbatimModuleSyntax
                ? "verbatimModuleSyntax"
                : "isolatedModules",
            ),
          Z.isolatedDeclarations &&
            (xb(Z) &&
              Ve(
                f.Option_0_cannot_be_specified_with_option_1,
                "allowJs",
                "isolatedDeclarations",
              ),
            _p(Z) ||
              Ve(
                f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,
                "isolatedDeclarations",
                "declaration",
                "composite",
              )),
          Z.inlineSourceMap &&
            (Z.sourceMap &&
              Ve(
                f.Option_0_cannot_be_specified_with_option_1,
                "sourceMap",
                "inlineSourceMap",
              ),
            Z.mapRoot &&
              Ve(
                f.Option_0_cannot_be_specified_with_option_1,
                "mapRoot",
                "inlineSourceMap",
              )),
          Z.composite &&
            (Z.declaration === !1 &&
              Ve(
                f.Composite_projects_may_not_disable_declaration_emit,
                "declaration",
              ),
            Z.incremental === !1 &&
              Ve(
                f.Composite_projects_may_not_disable_incremental_compilation,
                "declaration",
              )));
        const Xe = Z.outFile;
        if (
          (!Z.tsBuildInfoFile &&
            Z.incremental &&
            !Xe &&
            !Z.configFilePath &&
            Ne.addConfigDiagnostic(
              Il(
                f.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified,
              ),
            ),
          an(),
          ti(),
          Z.composite)
        ) {
          const Yn = new Set(J.map(jt));
          for (const lr of xe)
            DS(lr, Kt) &&
              !Yn.has(lr.path) &&
              Ne.addLazyConfigDiagnostic(
                lr,
                f.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,
                lr.fileName,
                Z.configFilePath || "",
              );
        }
        if (Z.paths) {
          for (const Yn in Z.paths)
            if (Rs(Z.paths, Yn))
              if (
                (PV(Yn) ||
                  $i(
                    !0,
                    Yn,
                    f.Pattern_0_can_have_at_most_one_Asterisk_character,
                    Yn,
                  ),
                Mo(Z.paths[Yn]))
              ) {
                const lr = Z.paths[Yn].length;
                lr === 0 &&
                  $i(
                    !1,
                    Yn,
                    f.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,
                    Yn,
                  );
                for (let Oi = 0; Oi < lr; Oi++) {
                  const Ro = Z.paths[Yn][Oi],
                    _i = typeof Ro;
                  _i === "string"
                    ? (PV(Ro) ||
                        Ti(
                          Yn,
                          Oi,
                          f.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,
                          Ro,
                          Yn,
                        ),
                      !Z.baseUrl &&
                        !Zp(Ro) &&
                        !SN(Ro) &&
                        Ti(
                          Yn,
                          Oi,
                          f.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash,
                        ))
                    : Ti(
                        Yn,
                        Oi,
                        f.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,
                        Ro,
                        Yn,
                        _i,
                      );
                }
              } else
                $i(
                  !1,
                  Yn,
                  f.Substitutions_for_pattern_0_should_be_an_array,
                  Yn,
                );
        }
        (!Z.sourceMap &&
          !Z.inlineSourceMap &&
          (Z.inlineSources &&
            Ve(
              f.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,
              "inlineSources",
            ),
          Z.sourceRoot &&
            Ve(
              f.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,
              "sourceRoot",
            )),
          Z.mapRoot &&
            !(Z.sourceMap || Z.declarationMap) &&
            Ve(
              f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,
              "mapRoot",
              "sourceMap",
              "declarationMap",
            ),
          Z.declarationDir &&
            (_p(Z) ||
              Ve(
                f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,
                "declarationDir",
                "declaration",
                "composite",
              ),
            Xe &&
              Ve(
                f.Option_0_cannot_be_specified_with_option_1,
                "declarationDir",
                "outFile",
              )),
          Z.declarationMap &&
            !_p(Z) &&
            Ve(
              f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,
              "declarationMap",
              "declaration",
              "composite",
            ),
          Z.lib &&
            Z.noLib &&
            Ve(f.Option_0_cannot_be_specified_with_option_1, "lib", "noLib"));
        const mt = Ga(Z),
          Yt = hn(xe, (Yn) => zc(Yn) && !Yn.isDeclarationFile);
        if (Z.isolatedModules || Z.verbatimModuleSyntax)
          (Z.module === 0 &&
            mt < 2 &&
            Z.isolatedModules &&
            Ve(
              f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,
              "isolatedModules",
              "target",
            ),
            Z.preserveConstEnums === !1 &&
              Ve(
                f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,
                Z.verbatimModuleSyntax
                  ? "verbatimModuleSyntax"
                  : "isolatedModules",
                "preserveConstEnums",
              ));
        else if (Yt && mt < 2 && Z.module === 0) {
          const Yn = t1(
            Yt,
            typeof Yt.externalModuleIndicator == "boolean"
              ? Yt
              : Yt.externalModuleIndicator,
          );
          Ne.addConfigDiagnostic(
            Oc(
              Yt,
              Yn.start,
              Yn.length,
              f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none,
            ),
          );
        }
        if (Xe && !Z.emitDeclarationOnly) {
          if (Z.module && !(Z.module === 2 || Z.module === 4))
            Ve(
              f.Only_amd_and_system_modules_are_supported_alongside_0,
              "outFile",
              "module",
            );
          else if (Z.module === void 0 && Yt) {
            const Yn = t1(
              Yt,
              typeof Yt.externalModuleIndicator == "boolean"
                ? Yt
                : Yt.externalModuleIndicator,
            );
            Ne.addConfigDiagnostic(
              Oc(
                Yt,
                Yn.start,
                Yn.length,
                f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,
                "outFile",
              ),
            );
          }
        }
        if (
          (LS(Z) &&
            (iu(Z) === 1
              ? Ve(
                  f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,
                  "resolveJsonModule",
                )
              : O6(Z) ||
                Ve(
                  f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,
                  "resolveJsonModule",
                  "module",
                )),
          Z.outDir ||
            Z.rootDir ||
            Z.sourceRoot ||
            Z.mapRoot ||
            (_p(Z) && Z.declarationDir))
        ) {
          const Yn = Qt();
          Z.outDir &&
            Yn === "" &&
            xe.some((lr) => zh(lr.fileName) > 1) &&
            Ve(
              f.Cannot_find_the_common_subdirectory_path_for_the_input_files,
              "outDir",
            );
        }
        (Z.checkJs &&
          !xb(Z) &&
          Ve(
            f.Option_0_cannot_be_specified_without_specifying_option_1,
            "checkJs",
            "allowJs",
          ),
          Z.emitDeclarationOnly &&
            (_p(Z) ||
              Ve(
                f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,
                "emitDeclarationOnly",
                "declaration",
                "composite",
              )),
          Z.emitDecoratorMetadata &&
            !Z.experimentalDecorators &&
            Ve(
              f.Option_0_cannot_be_specified_without_specifying_option_1,
              "emitDecoratorMetadata",
              "experimentalDecorators",
            ),
          Z.jsxFactory
            ? (Z.reactNamespace &&
                Ve(
                  f.Option_0_cannot_be_specified_with_option_1,
                  "reactNamespace",
                  "jsxFactory",
                ),
              (Z.jsx === 4 || Z.jsx === 5) &&
                Ve(
                  f.Option_0_cannot_be_specified_when_option_jsx_is_1,
                  "jsxFactory",
                  Mw.get("" + Z.jsx),
                ),
              nx(Z.jsxFactory, mt) ||
                kt(
                  "jsxFactory",
                  f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,
                  Z.jsxFactory,
                ))
            : Z.reactNamespace &&
              !fp(Z.reactNamespace, mt) &&
              kt(
                "reactNamespace",
                f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,
                Z.reactNamespace,
              ),
          Z.jsxFragmentFactory &&
            (Z.jsxFactory ||
              Ve(
                f.Option_0_cannot_be_specified_without_specifying_option_1,
                "jsxFragmentFactory",
                "jsxFactory",
              ),
            (Z.jsx === 4 || Z.jsx === 5) &&
              Ve(
                f.Option_0_cannot_be_specified_when_option_jsx_is_1,
                "jsxFragmentFactory",
                Mw.get("" + Z.jsx),
              ),
            nx(Z.jsxFragmentFactory, mt) ||
              kt(
                "jsxFragmentFactory",
                f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,
                Z.jsxFragmentFactory,
              )),
          Z.reactNamespace &&
            (Z.jsx === 4 || Z.jsx === 5) &&
            Ve(
              f.Option_0_cannot_be_specified_when_option_jsx_is_1,
              "reactNamespace",
              Mw.get("" + Z.jsx),
            ),
          Z.jsxImportSource &&
            Z.jsx === 2 &&
            Ve(
              f.Option_0_cannot_be_specified_when_option_jsx_is_1,
              "jsxImportSource",
              Mw.get("" + Z.jsx),
            ));
        const Rn = bu(Z);
        (Z.verbatimModuleSyntax &&
          (Rn === 2 || Rn === 3 || Rn === 4) &&
          Ve(
            f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,
            "verbatimModuleSyntax",
          ),
          Z.allowImportingTsExtensions &&
            !(
              Z.noEmit ||
              Z.emitDeclarationOnly ||
              Z.rewriteRelativeImportExtensions
            ) &&
            kt(
              "allowImportingTsExtensions",
              f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set,
            ));
        const Qn = iu(Z);
        if (
          (Z.resolvePackageJsonExports &&
            !pD(Qn) &&
            Ve(
              f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,
              "resolvePackageJsonExports",
            ),
          Z.resolvePackageJsonImports &&
            !pD(Qn) &&
            Ve(
              f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,
              "resolvePackageJsonImports",
            ),
          Z.customConditions &&
            !pD(Qn) &&
            Ve(
              f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,
              "customConditions",
            ),
          Qn === 100 &&
            !Kk(Rn) &&
            Rn !== 200 &&
            kt(
              "moduleResolution",
              f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,
              "bundler",
            ),
          CR[Rn] && 100 <= Rn && Rn <= 199 && !(3 <= Qn && Qn <= 99))
        ) {
          const Yn = CR[Rn],
            lr = DR[Yn] ? Yn : "Node16";
          kt(
            "moduleResolution",
            f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,
            lr,
            Yn,
          );
        } else if (DR[Qn] && 3 <= Qn && Qn <= 99 && !(100 <= Rn && Rn <= 199)) {
          const Yn = DR[Qn];
          kt(
            "module",
            f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,
            Yn,
            Yn,
          );
        }
        if (!Z.noEmit && !Z.suppressOutputPathCheck) {
          const Yn = ln(),
            lr = new Set();
          rH(Yn, (Oi) => {
            (Z.emitDeclarationOnly || Lr(Oi.jsFilePath, lr),
              Lr(Oi.declarationFilePath, lr));
          });
        }
        function Lr(Yn, lr) {
          if (Yn) {
            const Oi = jt(Yn);
            if (ot.has(Oi)) {
              let _i;
              (Z.configFilePath ||
                (_i = qo(
                  void 0,
                  f.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig,
                )),
                (_i = qo(
                  _i,
                  f.Cannot_write_file_0_because_it_would_overwrite_input_file,
                  Yn,
                )),
                Ca(Yn, L6(_i)));
            }
            const Ro = _t.useCaseSensitiveFileNames() ? Oi : tb(Oi);
            lr.has(Ro)
              ? Ca(
                  Yn,
                  Il(
                    f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,
                    Yn,
                  ),
                )
              : lr.add(Ro);
          }
        }
      }
      function ut() {
        const Xe = Z.ignoreDeprecations;
        if (Xe) {
          if (Xe === "5.0") return new ih(Xe);
          de();
        }
        return ih.zero;
      }
      function tn(Xe, mt, Yt, Rn) {
        const Qn = new ih(Xe),
          Lr = new ih(mt),
          Yn = new ih(ie || ge),
          lr = ut(),
          Oi = Lr.compareTo(Yn) !== 1,
          Ro = !Oi && lr.compareTo(Qn) === -1;
        (Oi || Ro) &&
          Rn((_i, Do, Qi) => {
            Oi
              ? Do === void 0
                ? Yt(
                    _i,
                    Do,
                    Qi,
                    f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,
                    _i,
                  )
                : Yt(
                    _i,
                    Do,
                    Qi,
                    f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,
                    _i,
                    Do,
                  )
              : Do === void 0
                ? Yt(
                    _i,
                    Do,
                    Qi,
                    f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,
                    _i,
                    mt,
                    Xe,
                  )
                : Yt(
                    _i,
                    Do,
                    Qi,
                    f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,
                    _i,
                    Do,
                    mt,
                    Xe,
                  );
          });
      }
      function an() {
        function Xe(mt, Yt, Rn, Qn, ...Lr) {
          if (Rn) {
            const Yn = qo(void 0, f.Use_0_instead, Rn),
              lr = qo(Yn, Qn, ...Lr);
            yo(!Yt, mt, void 0, lr);
          } else yo(!Yt, mt, void 0, Qn, ...Lr);
        }
        tn("5.0", "5.5", Xe, (mt) => {
          (Z.target === 0 && mt("target", "ES3"),
            Z.noImplicitUseStrict && mt("noImplicitUseStrict"),
            Z.keyofStringsOnly && mt("keyofStringsOnly"),
            Z.suppressExcessPropertyErrors &&
              mt("suppressExcessPropertyErrors"),
            Z.suppressImplicitAnyIndexErrors &&
              mt("suppressImplicitAnyIndexErrors"),
            Z.noStrictGenericChecks && mt("noStrictGenericChecks"),
            Z.charset && mt("charset"),
            Z.out && mt("out", void 0, "outFile"),
            Z.importsNotUsedAsValues &&
              mt("importsNotUsedAsValues", void 0, "verbatimModuleSyntax"),
            Z.preserveValueImports &&
              mt("preserveValueImports", void 0, "verbatimModuleSyntax"));
        });
      }
      function wn(Xe, mt, Yt) {
        function Rn(Qn, Lr, Yn, lr, ...Oi) {
          On(mt, Yt, lr, ...Oi);
        }
        tn("5.0", "5.5", Rn, (Qn) => {
          Xe.prepend && Qn("prepend");
        });
      }
      function or(Xe, mt, Yt, Rn) {
        Ne.addFileProcessingDiagnostic({
          kind: 1,
          file: Xe && Xe.path,
          fileProcessingReason: mt,
          diagnostic: Yt,
          args: Rn,
        });
      }
      function ti() {
        const Xe = Z.suppressOutputPathCheck ? void 0 : c0(Z);
        kM(ye, ht, (mt, Yt, Rn) => {
          const Qn = (Yt ? Yt.commandLine.projectReferences : ye)[Rn],
            Lr = Yt && Yt.sourceFile;
          if ((wn(Qn, Lr, Rn), !mt)) {
            On(Lr, Rn, f.File_0_not_found, Qn.path);
            return;
          }
          const Yn = mt.commandLine.options;
          ((!Yn.composite || Yn.noEmit) &&
            (Yt ? Yt.commandLine.fileNames : J).length &&
            (Yn.composite ||
              On(
                Lr,
                Rn,
                f.Referenced_project_0_must_have_setting_composite_Colon_true,
                Qn.path,
              ),
            Yn.noEmit &&
              On(Lr, Rn, f.Referenced_project_0_may_not_disable_emit, Qn.path)),
            !Yt &&
              Xe &&
              Xe === c0(Yn) &&
              (On(
                Lr,
                Rn,
                f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,
                Xe,
                Qn.path,
              ),
              Pr.set(jt(Xe), !0)));
        });
      }
      function Ti(Xe, mt, Yt, ...Rn) {
        let Qn = !0;
        (z((Lr) => {
          Wa(Lr.initializer) &&
            XR(Lr.initializer, Xe, (Yn) => {
              const lr = Yn.initializer;
              Cd(lr) &&
                lr.elements.length > mt &&
                (Ne.addConfigDiagnostic(
                  Wf(Z.configFile, lr.elements[mt], Yt, ...Rn),
                ),
                (Qn = !1));
            });
        }),
          Qn && ta(Yt, ...Rn));
      }
      function $i(Xe, mt, Yt, ...Rn) {
        let Qn = !0;
        (z((Lr) => {
          Wa(Lr.initializer) &&
            ml(Lr.initializer, Xe, mt, void 0, Yt, ...Rn) &&
            (Qn = !1);
        }),
          Qn && ta(Yt, ...Rn));
      }
      function z(Xe) {
        return ij(Eo(), "paths", Xe);
      }
      function Ve(Xe, mt, Yt, Rn) {
        yo(!0, mt, Yt, Xe, mt, Yt, Rn);
      }
      function kt(Xe, mt, ...Yt) {
        yo(!1, Xe, void 0, mt, ...Yt);
      }
      function On(Xe, mt, Yt, ...Rn) {
        const Qn = ak(Xe || Z.configFile, "references", (Lr) =>
          Cd(Lr.initializer) ? Lr.initializer : void 0,
        );
        Qn && Qn.elements.length > mt
          ? Ne.addConfigDiagnostic(
              Wf(Xe || Z.configFile, Qn.elements[mt], Yt, ...Rn),
            )
          : Ne.addConfigDiagnostic(Il(Yt, ...Rn));
      }
      function yo(Xe, mt, Yt, Rn, ...Qn) {
        const Lr = Eo();
        (!Lr || !ml(Lr, Xe, mt, Yt, Rn, ...Qn)) && ta(Rn, ...Qn);
      }
      function ta(Xe, ...mt) {
        const Yt = Vo();
        Yt
          ? "messageText" in Xe
            ? Ne.addConfigDiagnostic(hg(Z.configFile, Yt.name, Xe))
            : Ne.addConfigDiagnostic(Wf(Z.configFile, Yt.name, Xe, ...mt))
          : "messageText" in Xe
            ? Ne.addConfigDiagnostic(L6(Xe))
            : Ne.addConfigDiagnostic(Il(Xe, ...mt));
      }
      function Eo() {
        if (Ci === void 0) {
          const Xe = Vo();
          Ci = (Xe && ni(Xe.initializer, Wa)) || !1;
        }
        return Ci || void 0;
      }
      function Vo() {
        return (
          $e === void 0 &&
            ($e = XR(JN(Z.configFile), "compilerOptions", Vs) || !1),
          $e || void 0
        );
      }
      function ml(Xe, mt, Yt, Rn, Qn, ...Lr) {
        let Yn = !1;
        return (
          XR(
            Xe,
            Yt,
            (lr) => {
              ("messageText" in Qn
                ? Ne.addConfigDiagnostic(
                    hg(Z.configFile, mt ? lr.name : lr.initializer, Qn),
                  )
                : Ne.addConfigDiagnostic(
                    Wf(Z.configFile, mt ? lr.name : lr.initializer, Qn, ...Lr),
                  ),
                (Yn = !0));
            },
            Rn,
          ),
          Yn
        );
      }
      function Ca(Xe, mt) {
        (Pr.set(jt(Xe), !0), Ne.addConfigDiagnostic(mt));
      }
      function cd(Xe) {
        if (Z.noEmit) return !1;
        const mt = jt(Xe);
        if (Ra(mt)) return !1;
        const Yt = Z.outFile;
        if (Yt) return Up(mt, Yt) || Up(mt, Tu(Yt) + ".d.ts");
        if (
          Z.declarationDir &&
          um(Z.declarationDir, mt, Zr, !_t.useCaseSensitiveFileNames())
        )
          return !0;
        if (Z.outDir)
          return um(Z.outDir, mt, Zr, !_t.useCaseSensitiveFileNames());
        if ($l(mt, fD) || ad(mt)) {
          const Rn = Tu(mt);
          return !!Ra(Rn + ".ts") || !!Ra(Rn + ".tsx");
        }
        return !1;
      }
      function Up(Xe, mt) {
        return Zg(Xe, mt, Zr, !_t.useCaseSensitiveFileNames()) === 0;
      }
      function Sf() {
        return _t.getSymlinkCache
          ? _t.getSymlinkCache()
          : (X || (X = LV(Zr, Xc)),
            xe &&
              !X.hasProcessedResolutions() &&
              X.setSymlinksFromResolutions(B, Ae, lt),
            X);
      }
      function Yf(Xe, mt) {
        return D3(Xe, mt, Au(Xe));
      }
      function Ty(Xe, mt) {
        return EAe(Xe, mt, Au(Xe));
      }
      function Tv(Xe, mt) {
        return Yf(Xe, aO(Xe, mt));
      }
      function Bu(Xe) {
        return L3(Xe, Au(Xe));
      }
      function V_(Xe) {
        return O1(Xe, Au(Xe));
      }
      function Th(Xe) {
        return TP(Xe, Au(Xe));
      }
      function Im(Xe) {
        return RAe(Xe, Au(Xe));
      }
      function Hb(Xe, mt) {
        return Xe.resolutionMode || Bu(mt);
      }
    }
    function RAe(e, t) {
      const r = bu(t);
      return (100 <= r && r <= 199) || r === 200 ? !1 : TP(e, t) < 5;
    }
    function TP(e, t) {
      return O1(e, t) ?? bu(t);
    }
    function O1(e, t) {
      var r, i;
      const o = bu(t);
      if (100 <= o && o <= 199) return e.impliedNodeFormat;
      if (
        e.impliedNodeFormat === 1 &&
        (((r = e.packageJsonScope) == null
          ? void 0
          : r.contents.packageJsonContent.type) === "commonjs" ||
          $l(e.fileName, [".cjs", ".cts"]))
      )
        return 1;
      if (
        e.impliedNodeFormat === 99 &&
        (((i = e.packageJsonScope) == null
          ? void 0
          : i.contents.packageJsonContent.type) === "module" ||
          $l(e.fileName, [".mjs", ".mts"]))
      )
        return 99;
    }
    function L3(e, t) {
      return NV(t) ? O1(e, t) : void 0;
    }
    function Fqe(e) {
      let t;
      const r = e.compilerHost.fileExists,
        i = e.compilerHost.directoryExists,
        o = e.compilerHost.getDirectories,
        s = e.compilerHost.realpath;
      if (!e.useSourceOfProjectReferenceRedirect)
        return { onProgramCreateComplete: gs, fileExists: d };
      e.compilerHost.fileExists = d;
      let l;
      return (
        i &&
          (l = e.compilerHost.directoryExists =
            (A) =>
              i.call(e.compilerHost, A)
                ? (g(A), !0)
                : e.getResolvedProjectReferences()
                  ? (t ||
                      ((t = new Set()),
                      e.forEachResolvedProjectReference((R) => {
                        const N = R.commandLine.options.outFile;
                        if (N) t.add(ci(e.toPath(N)));
                        else {
                          const P =
                            R.commandLine.options.declarationDir ||
                            R.commandLine.options.outDir;
                          P && t.add(e.toPath(P));
                        }
                      })),
                    E(A, !1))
                  : !1),
        o &&
          (e.compilerHost.getDirectories = (A) =>
            !e.getResolvedProjectReferences() ||
            (i && i.call(e.compilerHost, A))
              ? o.call(e.compilerHost, A)
              : []),
        s &&
          (e.compilerHost.realpath = (A) => {
            var R;
            return (
              ((R = e.getSymlinkCache().getSymlinkedFiles()) == null
                ? void 0
                : R.get(e.toPath(A))) || s.call(e.compilerHost, A)
            );
          }),
        { onProgramCreateComplete: u, fileExists: d, directoryExists: l }
      );
      function u() {
        ((e.compilerHost.fileExists = r),
          (e.compilerHost.directoryExists = i),
          (e.compilerHost.getDirectories = o));
      }
      function d(A) {
        return r.call(e.compilerHost, A)
          ? !0
          : !e.getResolvedProjectReferences() || !ad(A)
            ? !1
            : E(A, !0);
      }
      function _(A) {
        const R = e.getRedirectFromOutput(e.toPath(A));
        return R !== void 0
          ? Bo(R.source)
            ? r.call(e.compilerHost, R.source)
            : !0
          : void 0;
      }
      function h(A) {
        const R = e.toPath(A),
          N = `${R}${Js}`;
        return fg(t, (P) => R === P || po(P, N) || po(R, `${P}/`));
      }
      function g(A) {
        var R;
        if (!e.getResolvedProjectReferences() || CM(A) || !s || !A.includes(Rg))
          return;
        const N = e.getSymlinkCache(),
          P = Uc(e.toPath(A));
        if ((R = N.getSymlinkedDirectories()) != null && R.has(P)) return;
        const k = ya(s.call(e.compilerHost, A));
        let W;
        if (k === A || (W = Uc(e.toPath(k))) === P) {
          N.setSymlinkedDirectory(P, !1);
          return;
        }
        N.setSymlinkedDirectory(A, { real: Uc(k), realPath: W });
      }
      function E(A, R) {
        var N;
        const P = R ? _ : h,
          k = P(A);
        if (k !== void 0) return k;
        const W = e.getSymlinkCache(),
          O = W.getSymlinkedDirectories();
        if (!O) return !1;
        const G = e.toPath(A);
        return G.includes(Rg)
          ? R && (N = W.getSymlinkedFiles()) != null && N.has(G)
            ? !0
            : cr(O.entries(), ([j, J]) => {
                if (!J || !po(G, j)) return;
                const Z = P(G.replace(j, J.realPath));
                if (R && Z) {
                  const q = To(A, e.compilerHost.getCurrentDirectory());
                  W.setSymlinkedFile(
                    G,
                    `${J.real}${q.replace(new RegExp(j, "i"), "")}`,
                  );
                }
                return Z;
              }) || !1
          : !1;
      }
    }
    var IH = {
      diagnostics: ae,
      sourceMaps: void 0,
      emittedFiles: void 0,
      emitSkipped: !0,
    };
    function xH(e, t, r, i) {
      const o = e.getCompilerOptions();
      if (o.noEmit) return t ? IH : e.emitBuildInfo(r, i);
      if (!o.noEmitOnError) return;
      let s = [
        ...e.getOptionsDiagnostics(i),
        ...e.getSyntacticDiagnostics(t, i),
        ...e.getGlobalDiagnostics(i),
        ...e.getSemanticDiagnostics(t, i),
      ];
      if (
        (s.length === 0 &&
          _p(e.getCompilerOptions()) &&
          (s = e.getDeclarationDiagnostics(void 0, i)),
        !s.length)
      )
        return;
      let l;
      if (!t) {
        const u = e.emitBuildInfo(r, i);
        (u.diagnostics && (s = [...s, ...u.diagnostics]), (l = u.emittedFiles));
      }
      return {
        diagnostics: s,
        sourceMaps: void 0,
        emittedFiles: l,
        emitSkipped: !0,
      };
    }
    function k3(e, t) {
      return Un(e, (r) => !r.skippedOn || !t[r.skippedOn]);
    }
    function w3(e, t = e) {
      return {
        fileExists: (r) => t.fileExists(r),
        readDirectory(r, i, o, s, l) {
          return (
            C.assertIsDefined(
              t.readDirectory,
              "'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'",
            ),
            t.readDirectory(r, i, o, s, l)
          );
        },
        readFile: (r) => t.readFile(r),
        directoryExists: ia(t, t.directoryExists),
        getDirectories: ia(t, t.getDirectories),
        realpath: ia(t, t.realpath),
        useCaseSensitiveFileNames: e.useCaseSensitiveFileNames(),
        getCurrentDirectory: () => e.getCurrentDirectory(),
        onUnRecoverableConfigFileDiagnostic:
          e.onUnRecoverableConfigFileDiagnostic || uS,
        trace: e.trace ? (r) => e.trace(r) : void 0,
      };
    }
    function cx(e) {
      return nq(e.path);
    }
    function RH(e, { extension: t }, { isDeclarationFile: r }) {
      switch (t) {
        case ".ts":
        case ".d.ts":
        case ".mts":
        case ".d.mts":
        case ".cts":
        case ".d.cts":
          return;
        case ".tsx":
          return i();
        case ".jsx":
          return i() || o();
        case ".js":
        case ".mjs":
        case ".cjs":
          return o();
        case ".json":
          return s();
        default:
          return l();
      }
      function i() {
        return e.jsx ? void 0 : f.Module_0_was_resolved_to_1_but_jsx_is_not_set;
      }
      function o() {
        return xb(e) || !Vd(e, "noImplicitAny")
          ? void 0
          : f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type;
      }
      function s() {
        return LS(e)
          ? void 0
          : f.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;
      }
      function l() {
        return r || e.allowArbitraryExtensions
          ? void 0
          : f.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set;
      }
    }
    function DAe({ imports: e, moduleAugmentations: t }) {
      const r = e.map((i) => i);
      for (const i of t) i.kind === 11 && r.push(i);
      return r;
    }
    function aO({ imports: e, moduleAugmentations: t }, r) {
      if (r < e.length) return e[r];
      let i = e.length;
      for (const o of t)
        if (o.kind === 11) {
          if (r === i) return o;
          i++;
        }
      C.fail(
        "should never ask for module name at index higher than possible module name",
      );
    }
    function yse(e) {
      let t,
        r = cm(),
        i,
        o,
        s,
        l,
        u,
        d;
      return {
        addConfigDiagnostic(A) {
          (C.assert(
            t === void 0,
            "Cannot modify program diagnostic state after requesting combined diagnostics",
          ),
            (s ?? (s = cM())).add(A));
        },
        addLazyConfigDiagnostic(A, R, ...N) {
          (C.assert(
            t === void 0,
            "Cannot modify program diagnostic state after requesting combined diagnostics",
          ),
            (l ?? (l = [])).push({ file: A, diagnostic: R, args: N }));
        },
        addFileProcessingDiagnostic(A) {
          (C.assert(
            t === void 0,
            "Cannot modify program diagnostic state after requesting combined diagnostics",
          ),
            (i ?? (i = [])).push(A));
        },
        setCommonSourceDirectory(A) {
          o = A;
        },
        reuseStateFromOldProgram(A, R) {
          ((r = A.getFileReasons()),
            (i = A.getFileProcessingDiagnostics()),
            R &&
              ((o = A.getCommonSourceDirectory()),
              (s = A.getConfigDiagnostics()),
              (l = A.getLazyConfigDiagnostics())));
        },
        getFileProcessingDiagnostics() {
          return i;
        },
        getFileReasons() {
          return r;
        },
        getCommonSourceDirectory() {
          return o;
        },
        getConfigDiagnostics() {
          return s;
        },
        getLazyConfigDiagnostics() {
          return l;
        },
        getCombinedDiagnostics(A) {
          return (
            t ||
            ((t = cM()),
            s?.getDiagnostics().forEach((R) => t.add(R)),
            i?.forEach((R) => {
              switch (R.kind) {
                case 1:
                  return t.add(
                    h(
                      A,
                      R.file && A.getSourceFileByPath(R.file),
                      R.fileProcessingReason,
                      R.diagnostic,
                      R.args || ae,
                    ),
                  );
                case 0:
                  return t.add(_(A, R));
                case 2:
                  return R.diagnostics.forEach((N) => t.add(N));
                default:
                  C.assertNever(R);
              }
            }),
            l?.forEach(({ file: R, diagnostic: N, args: P }) =>
              t.add(h(A, R, void 0, N, P)),
            ),
            (u = void 0),
            (d = void 0),
            t)
          );
        },
      };
      function _(A, { reason: R }) {
        const { file: N, pos: P, end: k } = bP(A, R),
          W = N.libReferenceDirectives[R.index],
          O = ej(W),
          G = RR(hN(O, "lib."), ".d.ts"),
          j = fS(G, F4, Vs);
        return Oc(
          N,
          C.checkDefined(P),
          C.checkDefined(k) - P,
          j
            ? f.Cannot_find_lib_definition_for_0_Did_you_mean_1
            : f.Cannot_find_lib_definition_for_0,
          O,
          j,
        );
      }
      function h(A, R, N, P, k) {
        let W, O, G, j, J, Z;
        const q = R && r.get(R.path);
        let ye = d0(N) ? N : void 0,
          ie = R && u?.get(R.path);
        (ie
          ? (ie.fileIncludeReasonDetails
              ? ((W = new Set(q)), q?.forEach(fe))
              : q?.forEach(de),
            (J = ie.redirectInfo))
          : (q?.forEach(de), (J = R && UH(R, A.getCompilerOptionsForFile(R)))),
          N && de(N));
        const K = W?.size !== q?.length;
        (ye && W?.size === 1 && (W = void 0),
          W &&
            ie &&
            (ie.details && !K
              ? (Z = qo(ie.details, P, ...(k ?? ae)))
              : ie.fileIncludeReasonDetails &&
                (K
                  ? ve()
                    ? (O = Bn(
                        ie.fileIncludeReasonDetails.next.slice(0, q.length),
                        O[0],
                      ))
                    : (O = [...ie.fileIncludeReasonDetails.next, O[0]])
                  : ve()
                    ? (O = ie.fileIncludeReasonDetails.next.slice(0, q.length))
                    : (j = ie.fileIncludeReasonDetails))),
          Z ||
            (j || (j = W && qo(O, f.The_file_is_in_the_program_because_Colon)),
            (Z = qo(J ? (j ? [j, ...J] : J) : j, P, ...(k || ae)))),
          R &&
            (ie
              ? (!ie.fileIncludeReasonDetails || (!K && j)) &&
                (ie.fileIncludeReasonDetails = j)
              : (u ?? (u = new Map())).set(
                  R.path,
                  (ie = { fileIncludeReasonDetails: j, redirectInfo: J }),
                ),
            !ie.details && !K && (ie.details = Z.next)));
        const pe = ye && bP(A, ye);
        return pe && qD(pe)
          ? BF(pe.file, pe.pos, pe.end - pe.pos, Z, G)
          : L6(Z, G);
        function de(xe) {
          W?.has(xe) ||
            ((W ?? (W = new Set())).add(xe),
            (O ?? (O = [])).push(JH(A, xe)),
            fe(xe));
        }
        function fe(xe) {
          !ye && d0(xe) ? (ye = xe) : ye !== xe && (G = Bn(G, g(A, xe)));
        }
        function ve() {
          var xe;
          return (
            ((xe = ie.fileIncludeReasonDetails.next) == null
              ? void 0
              : xe.length) !== q?.length
          );
        }
      }
      function g(A, R) {
        let N = d?.get(R);
        return (
          N === void 0 && (d ?? (d = new Map())).set(R, (N = E(A, R) ?? !1)),
          N || void 0
        );
      }
      function E(A, R) {
        if (d0(R)) {
          const G = bP(A, R);
          let j;
          switch (R.kind) {
            case 3:
              j = f.File_is_included_via_import_here;
              break;
            case 4:
              j = f.File_is_included_via_reference_here;
              break;
            case 5:
              j = f.File_is_included_via_type_library_reference_here;
              break;
            case 7:
              j = f.File_is_included_via_library_reference_here;
              break;
            default:
              C.assertNever(R);
          }
          return qD(G) ? Oc(G.file, G.pos, G.end - G.pos, j) : void 0;
        }
        const N = A.getCurrentDirectory(),
          P = A.getRootFileNames(),
          k = A.getCompilerOptions();
        if (!k.configFile) return;
        let W, O;
        switch (R.kind) {
          case 0:
            if (!k.configFile.configFileSpecs) return;
            const G = To(P[R.index], N),
              j = HH(A, G);
            if (j) {
              ((W = qF(k.configFile, "files", j)),
                (O = f.File_is_matched_by_files_list_specified_here));
              break;
            }
            const J = qH(A, G);
            if (!J || !Bo(J)) return;
            ((W = qF(k.configFile, "include", J)),
              (O = f.File_is_matched_by_include_pattern_specified_here));
            break;
          case 1:
          case 2:
            const Z = A.getResolvedProjectReferences(),
              q = A.getProjectReferences(),
              ye = C.checkDefined(Z?.[R.index]),
              ie = kM(q, Z, (ve, xe, X) =>
                ve === ye
                  ? { sourceFile: xe?.sourceFile || k.configFile, index: X }
                  : void 0,
              );
            if (!ie) return;
            const { sourceFile: K, index: pe } = ie,
              de = ak(K, "references", (ve) =>
                Cd(ve.initializer) ? ve.initializer : void 0,
              );
            return de && de.elements.length > pe
              ? Wf(
                  K,
                  de.elements[pe],
                  R.kind === 2
                    ? f.File_is_output_from_referenced_project_specified_here
                    : f.File_is_source_from_referenced_project_specified_here,
                )
              : void 0;
          case 8:
            if (!k.types) return;
            ((W = rj(e(), "types", R.typeReference)),
              (O = f.File_is_entry_point_of_type_library_specified_here));
            break;
          case 6:
            if (R.index !== void 0) {
              ((W = rj(e(), "lib", k.lib[R.index])),
                (O = f.File_is_library_specified_here));
              break;
            }
            const fe = W6(Ga(k));
            ((W = fe ? qre(e(), "target", fe) : void 0),
              (O = f.File_is_default_library_for_target_specified_here));
            break;
          default:
            C.assertNever(R);
        }
        return W && Wf(k.configFile, W, O);
      }
    }
    function vse(e, t, r, i, o, s) {
      const l = [],
        { emitSkipped: u, diagnostics: d } = e.emit(t, _, i, r, o, s);
      return { outputFiles: l, emitSkipped: u, diagnostics: d };
      function _(h, g, E) {
        l.push({ name: h, writeByteOrderMark: E, text: g });
      }
    }
    var bse = ((e) => (
        (e[(e.ComputedDts = 0)] = "ComputedDts"),
        (e[(e.StoredSignatureAtEmit = 1)] = "StoredSignatureAtEmit"),
        (e[(e.UsedVersion = 2)] = "UsedVersion"),
        e
      ))(bse || {}),
      _h;
    ((e) => {
      function t() {
        function ie(K, pe, de) {
          const fe = {
            getKeys: (ve) => pe.get(ve),
            getValues: (ve) => K.get(ve),
            keys: () => K.keys(),
            size: () => K.size,
            deleteKey: (ve) => {
              (de || (de = new Set())).add(ve);
              const xe = K.get(ve);
              return xe
                ? (xe.forEach((X) => i(pe, X, ve)), K.delete(ve), !0)
                : !1;
            },
            set: (ve, xe) => {
              de?.delete(ve);
              const X = K.get(ve);
              return (
                K.set(ve, xe),
                X?.forEach((Ce) => {
                  xe.has(Ce) || i(pe, Ce, ve);
                }),
                xe.forEach((Ce) => {
                  X?.has(Ce) || r(pe, Ce, ve);
                }),
                fe
              );
            },
          };
          return fe;
        }
        return ie(new Map(), new Map(), void 0);
      }
      e.createManyToManyPathMap = t;
      function r(ie, K, pe) {
        let de = ie.get(K);
        (de || ((de = new Set()), ie.set(K, de)), de.add(pe));
      }
      function i(ie, K, pe) {
        const de = ie.get(K);
        return de?.delete(pe) ? (de.size || ie.delete(K), !0) : !1;
      }
      function o(ie) {
        return Ui(ie.declarations, (K) => {
          var pe;
          return (pe = Wn(K)) == null ? void 0 : pe.resolvedPath;
        });
      }
      function s(ie, K) {
        const pe = ie.getSymbolAtLocation(K);
        return pe && o(pe);
      }
      function l(ie, K, pe, de) {
        var fe;
        return ks(
          ((fe = ie.getRedirectFromSourceFile(K)) == null
            ? void 0
            : fe.outputDts) || K,
          pe,
          de,
        );
      }
      function u(ie, K, pe) {
        let de;
        if (K.imports && K.imports.length > 0) {
          const X = ie.getTypeChecker();
          for (const Ce of K.imports) {
            const Je = s(X, Ce);
            Je?.forEach(xe);
          }
        }
        const fe = ci(K.resolvedPath);
        if (K.referencedFiles && K.referencedFiles.length > 0)
          for (const X of K.referencedFiles) {
            const Ce = l(ie, X.fileName, fe, pe);
            xe(Ce);
          }
        if (
          (ie.forEachResolvedTypeReferenceDirective(
            ({ resolvedTypeReferenceDirective: X }) => {
              if (!X) return;
              const Ce = X.resolvedFileName,
                Je = l(ie, Ce, fe, pe);
              xe(Je);
            },
            K,
          ),
          K.moduleAugmentations.length)
        ) {
          const X = ie.getTypeChecker();
          for (const Ce of K.moduleAugmentations) {
            if (!ka(Ce)) continue;
            const Je = X.getSymbolAtLocation(Ce);
            Je && ve(Je);
          }
        }
        for (const X of ie.getTypeChecker().getAmbientModules())
          X.declarations && X.declarations.length > 1 && ve(X);
        return de;
        function ve(X) {
          if (X.declarations)
            for (const Ce of X.declarations) {
              const Je = Wn(Ce);
              Je && Je !== K && xe(Je.resolvedPath);
            }
        }
        function xe(X) {
          (de || (de = new Set())).add(X);
        }
      }
      function d(ie, K) {
        return K && !K.referencedMap == !ie;
      }
      e.canReuseOldState = d;
      function _(ie) {
        return ie.module !== 0 && !ie.outFile ? t() : void 0;
      }
      e.createReferencedMap = _;
      function h(ie, K, pe) {
        var de, fe;
        const ve = new Map(),
          xe = ie.getCompilerOptions(),
          X = _(xe),
          Ce = d(X, K);
        ie.getTypeChecker();
        for (const Je of ie.getSourceFiles()) {
          const Se = C.checkDefined(
              Je.version,
              "Program intended to be used with Builder should have source files with versions set",
            ),
            re = Ce
              ? (de = K.oldSignatures) == null
                ? void 0
                : de.get(Je.resolvedPath)
              : void 0,
            be =
              re === void 0
                ? Ce
                  ? (fe = K.fileInfos.get(Je.resolvedPath)) == null
                    ? void 0
                    : fe.signature
                  : void 0
                : re || void 0;
          if (X) {
            const Ne = u(ie, Je, ie.getCanonicalFileName);
            Ne && X.set(Je.resolvedPath, Ne);
          }
          ve.set(Je.resolvedPath, {
            version: Se,
            signature: be,
            affectsGlobalScope: xe.outFile ? void 0 : J(Je) || void 0,
            impliedFormat: Je.impliedNodeFormat,
          });
        }
        return {
          fileInfos: ve,
          referencedMap: X,
          useFileVersionAsSignature: !pe && !Ce,
        };
      }
      e.create = h;
      function g(ie) {
        ((ie.allFilesExcludingDefaultLibraryFile = void 0),
          (ie.allFileNames = void 0));
      }
      e.releaseCache = g;
      function E(ie, K, pe, de, fe) {
        var ve;
        const xe = A(ie, K, pe, de, fe);
        return ((ve = ie.oldSignatures) == null || ve.clear(), xe);
      }
      e.getFilesAffectedBy = E;
      function A(ie, K, pe, de, fe) {
        const ve = K.getSourceFileByPath(pe);
        return ve
          ? P(ie, K, ve, de, fe)
            ? (ie.referencedMap ? ye : q)(ie, K, ve, de, fe)
            : [ve]
          : ae;
      }
      e.getFilesAffectedByWithOldState = A;
      function R(ie, K, pe) {
        ((ie.fileInfos.get(pe).signature = K),
          (
            ie.hasCalledUpdateShapeSignature ||
            (ie.hasCalledUpdateShapeSignature = new Set())
          ).add(pe));
      }
      e.updateSignatureOfFile = R;
      function N(ie, K, pe, de, fe) {
        ie.emit(
          K,
          (ve, xe, X, Ce, Je, Se) => {
            (C.assert(
              ad(ve),
              `File extension for signature expected to be dts: Got:: ${ve}`,
            ),
              fe(NH(ie, K, xe, de, Se), Je));
          },
          pe,
          2,
          void 0,
          !0,
        );
      }
      e.computeDtsSignature = N;
      function P(ie, K, pe, de, fe, ve = ie.useFileVersionAsSignature) {
        var xe;
        if (
          (xe = ie.hasCalledUpdateShapeSignature) != null &&
          xe.has(pe.resolvedPath)
        )
          return !1;
        const X = ie.fileInfos.get(pe.resolvedPath),
          Ce = X.signature;
        let Je;
        return (
          !pe.isDeclarationFile &&
            !ve &&
            N(K, pe, de, fe, (Se) => {
              ((Je = Se),
                fe.storeSignatureInfo &&
                  (ie.signatureInfo ?? (ie.signatureInfo = new Map())).set(
                    pe.resolvedPath,
                    0,
                  ));
            }),
          Je === void 0 &&
            ((Je = pe.version),
            fe.storeSignatureInfo &&
              (ie.signatureInfo ?? (ie.signatureInfo = new Map())).set(
                pe.resolvedPath,
                2,
              )),
          (ie.oldSignatures || (ie.oldSignatures = new Map())).set(
            pe.resolvedPath,
            Ce || !1,
          ),
          (
            ie.hasCalledUpdateShapeSignature ||
            (ie.hasCalledUpdateShapeSignature = new Set())
          ).add(pe.resolvedPath),
          (X.signature = Je),
          Je !== Ce
        );
      }
      e.updateShapeSignature = P;
      function k(ie, K, pe) {
        if (K.getCompilerOptions().outFile || !ie.referencedMap || J(pe))
          return W(ie, K);
        const fe = new Set(),
          ve = [pe.resolvedPath];
        for (; ve.length; ) {
          const xe = ve.pop();
          if (!fe.has(xe)) {
            fe.add(xe);
            const X = ie.referencedMap.getValues(xe);
            if (X) for (const Ce of X.keys()) ve.push(Ce);
          }
        }
        return Co(
          nh(fe.keys(), (xe) => {
            var X;
            return (
              ((X = K.getSourceFileByPath(xe)) == null ? void 0 : X.fileName) ??
              xe
            );
          }),
        );
      }
      e.getAllDependencies = k;
      function W(ie, K) {
        if (!ie.allFileNames) {
          const pe = K.getSourceFiles();
          ie.allFileNames = pe === ae ? ae : pe.map((de) => de.fileName);
        }
        return ie.allFileNames;
      }
      function O(ie, K) {
        const pe = ie.referencedMap.getKeys(K);
        return pe ? Co(pe.keys()) : [];
      }
      e.getReferencedByPaths = O;
      function G(ie) {
        for (const K of ie.statements) if (!WF(K)) return !1;
        return !0;
      }
      function j(ie) {
        return yt(ie.moduleAugmentations, (K) => M_(K.parent));
      }
      function J(ie) {
        return j(ie) || (!Pp(ie) && !Ff(ie) && !G(ie));
      }
      function Z(ie, K, pe) {
        if (ie.allFilesExcludingDefaultLibraryFile)
          return ie.allFilesExcludingDefaultLibraryFile;
        let de;
        pe && fe(pe);
        for (const ve of K.getSourceFiles()) ve !== pe && fe(ve);
        return (
          (ie.allFilesExcludingDefaultLibraryFile = de || ae),
          ie.allFilesExcludingDefaultLibraryFile
        );
        function fe(ve) {
          K.isSourceFileDefaultLibrary(ve) || (de || (de = [])).push(ve);
        }
      }
      e.getAllFilesExcludingDefaultLibraryFile = Z;
      function q(ie, K, pe) {
        const de = K.getCompilerOptions();
        return de && de.outFile ? [pe] : Z(ie, K, pe);
      }
      function ye(ie, K, pe, de, fe) {
        if (J(pe)) return Z(ie, K, pe);
        const ve = K.getCompilerOptions();
        if (ve && (ym(ve) || ve.outFile)) return [pe];
        const xe = new Map();
        xe.set(pe.resolvedPath, pe);
        const X = O(ie, pe.resolvedPath);
        for (; X.length > 0; ) {
          const Ce = X.pop();
          if (!xe.has(Ce)) {
            const Je = K.getSourceFileByPath(Ce);
            (xe.set(Ce, Je),
              Je && P(ie, K, Je, de, fe) && X.push(...O(ie, Je.resolvedPath)));
          }
        }
        return Co(nh(xe.values(), (Ce) => Ce));
      }
    })(_h || (_h = {}));
    var Tse = ((e) => (
      (e[(e.None = 0)] = "None"),
      (e[(e.Js = 1)] = "Js"),
      (e[(e.JsMap = 2)] = "JsMap"),
      (e[(e.JsInlineMap = 4)] = "JsInlineMap"),
      (e[(e.DtsErrors = 8)] = "DtsErrors"),
      (e[(e.DtsEmit = 16)] = "DtsEmit"),
      (e[(e.DtsMap = 32)] = "DtsMap"),
      (e[(e.Dts = 24)] = "Dts"),
      (e[(e.AllJs = 7)] = "AllJs"),
      (e[(e.AllDtsEmit = 48)] = "AllDtsEmit"),
      (e[(e.AllDts = 56)] = "AllDts"),
      (e[(e.All = 63)] = "All"),
      e
    ))(Tse || {});
    function JD(e) {
      return e.program !== void 0;
    }
    function zqe(e) {
      return (C.assert(JD(e)), e);
    }
    function Bb(e) {
      let t = 1;
      return (
        e.sourceMap && (t = t | 2),
        e.inlineSourceMap && (t = t | 4),
        _p(e) && (t = t | 24),
        e.declarationMap && (t = t | 32),
        e.emitDeclarationOnly && (t = t & 56),
        t
      );
    }
    function O3(e, t) {
      const r = t && (eb(t) ? t : Bb(t)),
        i = eb(e) ? e : Bb(e);
      if (r === i) return 0;
      if (!r || !i) return i;
      const o = r ^ i;
      let s = 0;
      return (
        o & 7 && (s = i & 7),
        o & 8 && (s = s | (i & 8)),
        o & 48 && (s = s | (i & 48)),
        s
      );
    }
    function Bqe(e, t) {
      return (
        e === t ||
        (e !== void 0 &&
          t !== void 0 &&
          e.size === t.size &&
          !fg(e, (r) => !t.has(r)))
      );
    }
    function Gqe(e, t) {
      var r, i;
      const o = _h.create(e, t, !1);
      o.program = e;
      const s = e.getCompilerOptions();
      o.compilerOptions = s;
      const l = s.outFile;
      ((o.semanticDiagnosticsPerFile = new Map()),
        l &&
          s.composite &&
          t?.outSignature &&
          l === t.compilerOptions.outFile &&
          (o.outSignature =
            t.outSignature && CAe(s, t.compilerOptions, t.outSignature)),
        (o.changedFilesSet = new Set()),
        (o.latestChangedDtsFile = s.composite
          ? t?.latestChangedDtsFile
          : void 0),
        (o.checkPending = o.compilerOptions.noCheck ? !0 : void 0));
      const u = _h.canReuseOldState(o.referencedMap, t),
        d = u ? t.compilerOptions : void 0;
      let _ = u && !fre(s, d);
      const h =
        s.composite && t?.emitSignatures && !l && !hre(s, t.compilerOptions);
      let g = !0;
      u
        ? ((r = t.changedFilesSet) == null ||
            r.forEach((k) => o.changedFilesSet.add(k)),
          !l &&
            (i = t.affectedFilesPendingEmit) != null &&
            i.size &&
            ((o.affectedFilesPendingEmit = new Map(t.affectedFilesPendingEmit)),
            (o.seenAffectedFiles = new Set())),
          (o.programEmitPending = t.programEmitPending),
          l && o.changedFilesSet.size && ((_ = !1), (g = !1)),
          (o.hasErrorsFromOldState = t.hasErrors))
        : (o.buildInfoEmitPending = kS(s));
      const E = o.referencedMap,
        A = u ? t.referencedMap : void 0,
        R = _ && !s.skipLibCheck == !d.skipLibCheck,
        N = R && !s.skipDefaultLibCheck == !d.skipDefaultLibCheck;
      if (
        (o.fileInfos.forEach((k, W) => {
          var O;
          let G, j;
          if (
            !u ||
            !(G = t.fileInfos.get(W)) ||
            G.version !== k.version ||
            G.impliedFormat !== k.impliedFormat ||
            !Bqe((j = E && E.getValues(W)), A && A.getValues(W)) ||
            (j && fg(j, (J) => !o.fileInfos.has(J) && t.fileInfos.has(J)))
          )
            P(W);
          else {
            const J = e.getSourceFileByPath(W),
              Z = g
                ? (O = t.emitDiagnosticsPerFile) == null
                  ? void 0
                  : O.get(W)
                : void 0;
            if (
              (Z &&
                (
                  o.emitDiagnosticsPerFile ??
                  (o.emitDiagnosticsPerFile = new Map())
                ).set(W, t.hasReusableDiagnostic ? MAe(Z, W, e) : NAe(Z, e)),
              _)
            ) {
              if ((J.isDeclarationFile && !R) || (J.hasNoDefaultLib && !N))
                return;
              const q = t.semanticDiagnosticsPerFile.get(W);
              q &&
                (o.semanticDiagnosticsPerFile.set(
                  W,
                  t.hasReusableDiagnostic ? MAe(q, W, e) : NAe(q, e),
                ),
                (
                  o.semanticDiagnosticsFromOldState ??
                  (o.semanticDiagnosticsFromOldState = new Set())
                ).add(W));
            }
          }
          if (h) {
            const J = t.emitSignatures.get(W);
            J &&
              (o.emitSignatures ?? (o.emitSignatures = new Map())).set(
                W,
                CAe(s, t.compilerOptions, J),
              );
          }
        }),
        u &&
          Hc(t.fileInfos, (k, W) =>
            o.fileInfos.has(W)
              ? !1
              : k.affectsGlobalScope
                ? !0
                : ((o.buildInfoEmitPending = !0), !!l),
          ))
      )
        _h.getAllFilesExcludingDefaultLibraryFile(o, e, void 0).forEach((k) =>
          P(k.resolvedPath),
        );
      else if (d) {
        const k = mre(s, d) ? Bb(s) : O3(s, d);
        k !== 0 &&
          (l
            ? o.changedFilesSet.size ||
              (o.programEmitPending = o.programEmitPending
                ? o.programEmitPending | k
                : k)
            : (e.getSourceFiles().forEach((W) => {
                o.changedFilesSet.has(W.resolvedPath) ||
                  PH(o, W.resolvedPath, k);
              }),
              C.assert(!o.seenAffectedFiles || !o.seenAffectedFiles.size),
              (o.seenAffectedFiles = o.seenAffectedFiles || new Set())),
          (o.buildInfoEmitPending = !0));
      }
      return (
        u &&
          o.semanticDiagnosticsPerFile.size !== o.fileInfos.size &&
          t.checkPending !== o.checkPending &&
          (o.buildInfoEmitPending = !0),
        o
      );
      function P(k) {
        (o.changedFilesSet.add(k),
          l &&
            ((_ = !1),
            (g = !1),
            (o.semanticDiagnosticsFromOldState = void 0),
            o.semanticDiagnosticsPerFile.clear(),
            (o.emitDiagnosticsPerFile = void 0)),
          (o.buildInfoEmitPending = !0),
          (o.programEmitPending = void 0));
      }
    }
    function CAe(e, t, r) {
      return !!e.declarationMap == !!t.declarationMap ? r : Bo(r) ? [r] : r[0];
    }
    function NAe(e, t) {
      return e.length
        ? Zi(e, (r) => {
            if (Bo(r.messageText)) return r;
            const i = Sse(r.messageText, r.file, t, (o) => {
              var s;
              return (s = o.repopulateInfo) == null ? void 0 : s.call(o);
            });
            return i === r.messageText ? r : { ...r, messageText: i };
          })
        : e;
    }
    function Sse(e, t, r, i) {
      const o = i(e);
      if (o === !0) return { ...cG(t), next: Ese(e.next, t, r, i) };
      if (o)
        return {
          ...PF(
            t,
            r,
            o.moduleReference,
            o.mode,
            o.packageName || o.moduleReference,
          ),
          next: Ese(e.next, t, r, i),
        };
      const s = Ese(e.next, t, r, i);
      return s === e.next ? e : { ...e, next: s };
    }
    function Ese(e, t, r, i) {
      return Zi(e, (o) => Sse(o, t, r, i));
    }
    function MAe(e, t, r) {
      if (!e.length) return ae;
      let i;
      return e.map((s) => {
        const l = PAe(s, t, r, o);
        ((l.reportsUnnecessary = s.reportsUnnecessary),
          (l.reportsDeprecated = s.reportDeprecated),
          (l.source = s.source),
          (l.skippedOn = s.skippedOn));
        const { relatedInformation: u } = s;
        return (
          (l.relatedInformation = u
            ? u.length
              ? u.map((d) => PAe(d, t, r, o))
              : []
            : void 0),
          l
        );
      });
      function o(s) {
        return (
          i ??
            (i = ci(To(c0(r.getCompilerOptions()), r.getCurrentDirectory()))),
          ks(s, i, r.getCanonicalFileName)
        );
      }
    }
    function PAe(e, t, r, i) {
      const { file: o } = e,
        s = o !== !1 ? r.getSourceFileByPath(o ? i(o) : t) : void 0;
      return {
        ...e,
        file: s,
        messageText: Bo(e.messageText)
          ? e.messageText
          : Sse(e.messageText, s, r, (l) => l.info),
      };
    }
    function Vqe(e) {
      (_h.releaseCache(e), (e.program = void 0));
    }
    function Ase(e, t) {
      C.assert(
        !t ||
          !e.affectedFiles ||
          e.affectedFiles[e.affectedFilesIndex - 1] !== t ||
          !e.semanticDiagnosticsPerFile.has(t.resolvedPath),
      );
    }
    function LAe(e, t, r) {
      for (var i; ; ) {
        const { affectedFiles: o } = e;
        if (o) {
          const u = e.seenAffectedFiles;
          let d = e.affectedFilesIndex;
          for (; d < o.length; ) {
            const _ = o[d];
            if (!u.has(_.resolvedPath))
              return (
                (e.affectedFilesIndex = d),
                PH(e, _.resolvedPath, Bb(e.compilerOptions)),
                Hqe(e, _, t, r),
                _
              );
            d++;
          }
          (e.changedFilesSet.delete(e.currentChangedFilePath),
            (e.currentChangedFilePath = void 0),
            (i = e.oldSignatures) == null || i.clear(),
            (e.affectedFiles = void 0));
        }
        const s = e.changedFilesSet.keys().next();
        if (s.done) return;
        if (e.program.getCompilerOptions().outFile) return e.program;
        ((e.affectedFiles = _h.getFilesAffectedByWithOldState(
          e,
          e.program,
          s.value,
          t,
          r,
        )),
          (e.currentChangedFilePath = s.value),
          (e.affectedFilesIndex = 0),
          e.seenAffectedFiles || (e.seenAffectedFiles = new Set()));
      }
    }
    function kAe(e, t, r) {
      var i, o;
      if (
        !(
          !((i = e.affectedFilesPendingEmit) != null && i.size) &&
          !e.programEmitPending
        ) &&
        (!t &&
          !r &&
          ((e.affectedFilesPendingEmit = void 0),
          (e.programEmitPending = void 0)),
        (o = e.affectedFilesPendingEmit) == null ||
          o.forEach((s, l) => {
            const u = r ? s & 55 : s & 7;
            u
              ? e.affectedFilesPendingEmit.set(l, u)
              : e.affectedFilesPendingEmit.delete(l);
          }),
        e.programEmitPending)
      ) {
        const s = r ? e.programEmitPending & 55 : e.programEmitPending & 7;
        s ? (e.programEmitPending = s) : (e.programEmitPending = void 0);
      }
    }
    function W3(e, t, r, i) {
      let o = O3(e, t);
      return (r && (o = o & 56), i && (o = o & 8), o);
    }
    function DH(e) {
      return e ? 8 : 56;
    }
    function jqe(e, t, r) {
      var i;
      if ((i = e.affectedFilesPendingEmit) != null && i.size)
        return Hc(e.affectedFilesPendingEmit, (o, s) => {
          var l;
          const u = e.program.getSourceFileByPath(s);
          if (!u || !DS(u, e.program)) {
            e.affectedFilesPendingEmit.delete(s);
            return;
          }
          const d =
              (l = e.seenEmittedFiles) == null ? void 0 : l.get(u.resolvedPath),
            _ = W3(o, d, t, r);
          if (_) return { affectedFile: u, emitKind: _ };
        });
    }
    function Uqe(e, t) {
      var r;
      if ((r = e.emitDiagnosticsPerFile) != null && r.size)
        return Hc(e.emitDiagnosticsPerFile, (i, o) => {
          var s;
          const l = e.program.getSourceFileByPath(o);
          if (!l || !DS(l, e.program)) {
            e.emitDiagnosticsPerFile.delete(o);
            return;
          }
          const u =
            ((s = e.seenEmittedFiles) == null
              ? void 0
              : s.get(l.resolvedPath)) || 0;
          if (!(u & DH(t)))
            return { affectedFile: l, diagnostics: i, seenKind: u };
        });
    }
    function wAe(e) {
      if (!e.cleanedDiagnosticsOfLibFiles) {
        e.cleanedDiagnosticsOfLibFiles = !0;
        const t = e.program.getCompilerOptions();
        Ye(
          e.program.getSourceFiles(),
          (r) =>
            e.program.isSourceFileDefaultLibrary(r) &&
            !Dre(r, t, e.program) &&
            xse(e, r.resolvedPath),
        );
      }
    }
    function Hqe(e, t, r, i) {
      if (
        (xse(e, t.resolvedPath),
        e.allFilesExcludingDefaultLibraryFile === e.affectedFiles)
      ) {
        (wAe(e), _h.updateShapeSignature(e, e.program, t, r, i));
        return;
      }
      e.compilerOptions.assumeChangesOnlyAffectDirectDependencies ||
        qqe(e, t, r, i);
    }
    function Ise(e, t, r, i, o) {
      if ((xse(e, t), !e.changedFilesSet.has(t))) {
        const s = e.program.getSourceFileByPath(t);
        s &&
          (_h.updateShapeSignature(e, e.program, s, i, o, !0),
          r
            ? PH(e, t, Bb(e.compilerOptions))
            : _p(e.compilerOptions) &&
              PH(e, t, e.compilerOptions.declarationMap ? 56 : 24));
      }
    }
    function xse(e, t) {
      return e.semanticDiagnosticsFromOldState
        ? (e.semanticDiagnosticsFromOldState.delete(t),
          e.semanticDiagnosticsPerFile.delete(t),
          !e.semanticDiagnosticsFromOldState.size)
        : !0;
    }
    function OAe(e, t) {
      const r = C.checkDefined(e.oldSignatures).get(t) || void 0;
      return C.checkDefined(e.fileInfos.get(t)).signature !== r;
    }
    function Rse(e, t, r, i, o) {
      var s;
      return (s = e.fileInfos.get(t)) != null && s.affectsGlobalScope
        ? (_h
            .getAllFilesExcludingDefaultLibraryFile(e, e.program, void 0)
            .forEach((l) => Ise(e, l.resolvedPath, r, i, o)),
          wAe(e),
          !0)
        : !1;
    }
    function qqe(e, t, r, i) {
      var o, s;
      if (
        !e.referencedMap ||
        !e.changedFilesSet.has(t.resolvedPath) ||
        !OAe(e, t.resolvedPath)
      )
        return;
      if (ym(e.compilerOptions)) {
        const d = new Map();
        d.set(t.resolvedPath, !0);
        const _ = _h.getReferencedByPaths(e, t.resolvedPath);
        for (; _.length > 0; ) {
          const h = _.pop();
          if (!d.has(h)) {
            if ((d.set(h, !0), Rse(e, h, !1, r, i))) return;
            if ((Ise(e, h, !1, r, i), OAe(e, h))) {
              const g = e.program.getSourceFileByPath(h);
              _.push(..._h.getReferencedByPaths(e, g.resolvedPath));
            }
          }
        }
      }
      const l = new Set(),
        u =
          !!((o = t.symbol) != null && o.exports) &&
          !!Hc(t.symbol.exports, (d) => {
            if ((d.flags & 128) !== 0) return !0;
            const _ = xd(d, e.program.getTypeChecker());
            return _ === d
              ? !1
              : (_.flags & 128) !== 0 && yt(_.declarations, (h) => Wn(h) === t);
          });
      (s = e.referencedMap.getKeys(t.resolvedPath)) == null ||
        s.forEach((d) => {
          if (Rse(e, d, u, r, i)) return !0;
          const _ = e.referencedMap.getKeys(d);
          return _ && fg(_, (h) => WAe(e, h, u, l, r, i));
        });
    }
    function WAe(e, t, r, i, o, s) {
      var l;
      if (rh(i, t)) {
        if (Rse(e, t, r, o, s)) return !0;
        (Ise(e, t, r, o, s),
          (l = e.referencedMap.getKeys(t)) == null ||
            l.forEach((u) => WAe(e, u, r, i, o, s)));
      }
    }
    function CH(e, t, r, i) {
      return e.compilerOptions.noCheck
        ? ae
        : so(Jqe(e, t, r, i), e.program.getProgramDiagnostics(t));
    }
    function Jqe(e, t, r, i) {
      i ?? (i = e.semanticDiagnosticsPerFile);
      const o = t.resolvedPath,
        s = i.get(o);
      if (s) return k3(s, e.compilerOptions);
      const l = e.program.getBindAndCheckDiagnostics(t, r);
      return (
        i.set(o, l),
        (e.buildInfoEmitPending = !0),
        k3(l, e.compilerOptions)
      );
    }
    function Dse(e) {
      var t;
      return !!((t = e.options) != null && t.outFile);
    }
    function sO(e) {
      return !!e.fileNames;
    }
    function Kqe(e) {
      return !sO(e) && !!e.root;
    }
    function FAe(e) {
      e.hasErrors === void 0 &&
        (kS(e.compilerOptions)
          ? (e.hasErrors =
              !yt(e.program.getSourceFiles(), (t) => {
                var r, i;
                const o = e.semanticDiagnosticsPerFile.get(t.resolvedPath);
                return (
                  o === void 0 ||
                  !!o.length ||
                  !!(
                    (i =
                      (r = e.emitDiagnosticsPerFile) == null
                        ? void 0
                        : r.get(t.resolvedPath)) != null && i.length
                  )
                );
              }) &&
              (zAe(e) ||
                yt(
                  e.program.getSourceFiles(),
                  (t) => !!e.program.getProgramDiagnostics(t).length,
                )))
          : (e.hasErrors =
              yt(e.program.getSourceFiles(), (t) => {
                var r, i;
                const o = e.semanticDiagnosticsPerFile.get(t.resolvedPath);
                return (
                  !!o?.length ||
                  !!(
                    (i =
                      (r = e.emitDiagnosticsPerFile) == null
                        ? void 0
                        : r.get(t.resolvedPath)) != null && i.length
                  )
                );
              }) || zAe(e)));
    }
    function zAe(e) {
      return (
        !!e.program.getConfigFileParsingDiagnostics().length ||
        !!e.program.getSyntacticDiagnostics().length ||
        !!e.program.getOptionsDiagnostics().length ||
        !!e.program.getGlobalDiagnostics().length
      );
    }
    function BAe(e) {
      return (
        FAe(e),
        e.buildInfoEmitPending ??
          (e.buildInfoEmitPending = !!e.hasErrorsFromOldState != !!e.hasErrors)
      );
    }
    function Xqe(e) {
      var t, r;
      const i = e.program.getCurrentDirectory(),
        o = ci(To(c0(e.compilerOptions), i)),
        s = e.latestChangedDtsFile ? W(e.latestChangedDtsFile) : void 0,
        l = [],
        u = new Map(),
        d = new Set(
          e.program
            .getRootFileNames()
            .map((X) => ks(X, i, e.program.getCanonicalFileName)),
        );
      if ((FAe(e), !kS(e.compilerOptions)))
        return {
          root: Co(d, (Ce) => O(Ce)),
          errors: e.hasErrors ? !0 : void 0,
          checkPending: e.checkPending,
          version: Le,
        };
      const _ = [];
      if (e.compilerOptions.outFile) {
        const X = Co(e.fileInfos.entries(), ([Je, Se]) => {
          const re = G(Je);
          return (
            J(Je, re),
            Se.impliedFormat
              ? {
                  version: Se.version,
                  impliedFormat: Se.impliedFormat,
                  signature: void 0,
                  affectsGlobalScope: void 0,
                }
              : Se.version
          );
        });
        return {
          fileNames: l,
          fileInfos: X,
          root: _,
          resolvedRoot: Z(),
          options: q(e.compilerOptions),
          semanticDiagnosticsPerFile: e.changedFilesSet.size ? void 0 : ie(),
          emitDiagnosticsPerFile: K(),
          changeFileSet: xe(),
          outSignature: e.outSignature,
          latestChangedDtsFile: s,
          pendingEmit: e.programEmitPending
            ? e.programEmitPending === Bb(e.compilerOptions)
              ? !1
              : e.programEmitPending
            : void 0,
          errors: e.hasErrors ? !0 : void 0,
          checkPending: e.checkPending,
          version: Le,
        };
      }
      let h, g, E;
      const A = Co(e.fileInfos.entries(), ([X, Ce]) => {
        var Je, Se;
        const re = G(X);
        (J(X, re), C.assert(l[re - 1] === O(X)));
        const be = (Je = e.oldSignatures) == null ? void 0 : Je.get(X),
          Ne = be !== void 0 ? be || void 0 : Ce.signature;
        if (e.compilerOptions.composite) {
          const Be = e.program.getSourceFileByPath(X);
          if (!Ff(Be) && DS(Be, e.program)) {
            const lt = (Se = e.emitSignatures) == null ? void 0 : Se.get(X);
            lt !== Ne &&
              (E = Bn(
                E,
                lt === void 0 ? re : [re, !Bo(lt) && lt[0] === Ne ? ae : lt],
              ));
          }
        }
        return Ce.version === Ne
          ? Ce.affectsGlobalScope || Ce.impliedFormat
            ? {
                version: Ce.version,
                signature: void 0,
                affectsGlobalScope: Ce.affectsGlobalScope,
                impliedFormat: Ce.impliedFormat,
              }
            : Ce.version
          : Ne !== void 0
            ? be === void 0
              ? Ce
              : {
                  version: Ce.version,
                  signature: Ne,
                  affectsGlobalScope: Ce.affectsGlobalScope,
                  impliedFormat: Ce.impliedFormat,
                }
            : {
                version: Ce.version,
                signature: !1,
                affectsGlobalScope: Ce.affectsGlobalScope,
                impliedFormat: Ce.impliedFormat,
              };
      });
      let R;
      (t = e.referencedMap) != null &&
        t.size() &&
        (R = Co(e.referencedMap.keys())
          .sort(Wd)
          .map((X) => [G(X), j(e.referencedMap.getValues(X))]));
      const N = ie();
      let P;
      if ((r = e.affectedFilesPendingEmit) != null && r.size) {
        const X = Bb(e.compilerOptions),
          Ce = new Set();
        for (const Je of Co(e.affectedFilesPendingEmit.keys()).sort(Wd))
          if (rh(Ce, Je)) {
            const Se = e.program.getSourceFileByPath(Je);
            if (!Se || !DS(Se, e.program)) continue;
            const re = G(Je),
              be = e.affectedFilesPendingEmit.get(Je);
            P = Bn(P, be === X ? re : be === 24 ? [re] : [re, be]);
          }
      }
      return {
        fileNames: l,
        fileIdsList: h,
        fileInfos: A,
        root: _,
        resolvedRoot: Z(),
        options: q(e.compilerOptions),
        referencedMap: R,
        semanticDiagnosticsPerFile: N,
        emitDiagnosticsPerFile: K(),
        changeFileSet: xe(),
        affectedFilesPendingEmit: P,
        emitSignatures: E,
        latestChangedDtsFile: s,
        errors: e.hasErrors ? !0 : void 0,
        checkPending: e.checkPending,
        version: Le,
      };
      function W(X) {
        return O(To(X, i));
      }
      function O(X) {
        return UE(cf(o, X, e.program.getCanonicalFileName));
      }
      function G(X) {
        let Ce = u.get(X);
        return (Ce === void 0 && (l.push(O(X)), u.set(X, (Ce = l.length))), Ce);
      }
      function j(X) {
        const Ce = Co(X.keys(), G).sort(js),
          Je = Ce.join();
        let Se = g?.get(Je);
        return (
          Se === void 0 &&
            ((h = Bn(h, Ce)), (g ?? (g = new Map())).set(Je, (Se = h.length))),
          Se
        );
      }
      function J(X, Ce) {
        const Je = e.program.getSourceFile(X);
        if (
          !e.program
            .getFileIncludeReasons()
            .get(Je.path)
            .some((Ne) => Ne.kind === 0)
        )
          return;
        if (!_.length) return _.push(Ce);
        const Se = _[_.length - 1],
          re = Mo(Se);
        if (re && Se[1] === Ce - 1) return (Se[1] = Ce);
        if (re || _.length === 1 || Se !== Ce - 1) return _.push(Ce);
        const be = _[_.length - 2];
        return !eb(be) || be !== Se - 1
          ? _.push(Ce)
          : ((_[_.length - 2] = [be, Ce]), (_.length = _.length - 1));
      }
      function Z() {
        let X;
        return (
          d.forEach((Ce) => {
            const Je = e.program.getSourceFileByPath(Ce);
            Je &&
              Ce !== Je.resolvedPath &&
              (X = Bn(X, [G(Je.resolvedPath), G(Ce)]));
          }),
          X
        );
      }
      function q(X) {
        let Ce;
        const { optionsNameMap: Je } = OD();
        for (const Se of Wh(X).sort(Wd)) {
          const re = Je.get(Se.toLowerCase());
          re?.affectsBuildInfo && ((Ce || (Ce = {}))[Se] = ye(re, X[Se]));
        }
        return Ce;
      }
      function ye(X, Ce) {
        if (X) {
          if ((C.assert(X.type !== "listOrElement"), X.type === "list")) {
            const Je = Ce;
            if (X.element.isFilePath && Je.length) return Je.map(W);
          } else if (X.isFilePath) return W(Ce);
        }
        return Ce;
      }
      function ie() {
        let X;
        return (
          e.fileInfos.forEach((Ce, Je) => {
            const Se = e.semanticDiagnosticsPerFile.get(Je);
            Se
              ? Se.length && (X = Bn(X, [G(Je), pe(Se, Je)]))
              : e.changedFilesSet.has(Je) || (X = Bn(X, G(Je)));
          }),
          X
        );
      }
      function K() {
        var X;
        let Ce;
        if (!((X = e.emitDiagnosticsPerFile) != null && X.size)) return Ce;
        for (const Je of Co(e.emitDiagnosticsPerFile.keys()).sort(Wd)) {
          const Se = e.emitDiagnosticsPerFile.get(Je);
          Ce = Bn(Ce, [G(Je), pe(Se, Je)]);
        }
        return Ce;
      }
      function pe(X, Ce) {
        return (
          C.assert(!!X.length),
          X.map((Je) => {
            const Se = de(Je, Ce);
            ((Se.reportsUnnecessary = Je.reportsUnnecessary),
              (Se.reportDeprecated = Je.reportsDeprecated),
              (Se.source = Je.source),
              (Se.skippedOn = Je.skippedOn));
            const { relatedInformation: re } = Je;
            return (
              (Se.relatedInformation = re
                ? re.length
                  ? re.map((be) => de(be, Ce))
                  : []
                : void 0),
              Se
            );
          })
        );
      }
      function de(X, Ce) {
        const { file: Je } = X;
        return {
          ...X,
          file: Je
            ? Je.resolvedPath === Ce
              ? void 0
              : O(Je.resolvedPath)
            : !1,
          messageText: Bo(X.messageText) ? X.messageText : fe(X.messageText),
        };
      }
      function fe(X) {
        if (X.repopulateInfo)
          return { info: X.repopulateInfo(), next: ve(X.next) };
        const Ce = ve(X.next);
        return Ce === X.next ? X : { ...X, next: Ce };
      }
      function ve(X) {
        return (
          X &&
          (Ye(X, (Ce, Je) => {
            const Se = fe(Ce);
            if (Ce === Se) return;
            const re = Je > 0 ? X.slice(0, Je - 1) : [];
            re.push(Se);
            for (let be = Je + 1; be < X.length; be++) re.push(fe(X[be]));
            return re;
          }) ||
            X)
        );
      }
      function xe() {
        let X;
        if (e.changedFilesSet.size)
          for (const Ce of Co(e.changedFilesSet.keys()).sort(Wd))
            X = Bn(X, G(Ce));
        return X;
      }
    }
    var Cse = ((e) => (
      (e[(e.SemanticDiagnosticsBuilderProgram = 0)] =
        "SemanticDiagnosticsBuilderProgram"),
      (e[(e.EmitAndSemanticDiagnosticsBuilderProgram = 1)] =
        "EmitAndSemanticDiagnosticsBuilderProgram"),
      e
    ))(Cse || {});
    function F3(e, t, r, i, o, s) {
      let l, u, d;
      return (
        e === void 0
          ? (C.assert(t === void 0),
            (l = r),
            (d = i),
            C.assert(!!d),
            (u = d.getProgram()))
          : Mo(e)
            ? ((d = i),
              (u = oO({
                rootNames: e,
                options: t,
                host: r,
                oldProgram: d && d.getProgramOrUndefined(),
                configFileParsingDiagnostics: o,
                projectReferences: s,
              })),
              (l = r))
            : ((u = e), (l = t), (d = r), (o = i)),
        {
          host: l,
          newProgram: u,
          oldProgram: d,
          configFileParsingDiagnostics: o || ae,
        }
      );
    }
    function GAe(e, t) {
      return t?.sourceMapUrlPos !== void 0
        ? e.substring(0, t.sourceMapUrlPos)
        : e;
    }
    function NH(e, t, r, i, o) {
      var s;
      r = GAe(r, o);
      let l;
      return (
        (s = o?.diagnostics) != null &&
          s.length &&
          (r += o.diagnostics.map(
            (_) => `${d(_)}${K8[_.category]}${_.code}: ${u(_.messageText)}`,
          ).join(`
`)),
        (i.createHash ?? S2)(r)
      );
      function u(_) {
        return Bo(_)
          ? _
          : _ === void 0
            ? ""
            : _.next
              ? _.messageText +
                _.next.map(u).join(`
`)
              : _.messageText;
      }
      function d(_) {
        return _.file.resolvedPath === t.resolvedPath
          ? `(${_.start},${_.length})`
          : (l === void 0 && (l = ci(t.resolvedPath)),
            `${UE(cf(l, _.file.resolvedPath, e.getCanonicalFileName))}(${_.start},${_.length})`);
      }
    }
    function Yqe(e, t, r) {
      return (t.createHash ?? S2)(GAe(e, r));
    }
    function MH(
      e,
      {
        newProgram: t,
        host: r,
        oldProgram: i,
        configFileParsingDiagnostics: o,
      },
    ) {
      let s = i && i.state;
      if (s && t === s.program && o === t.getConfigFileParsingDiagnostics())
        return ((t = void 0), (s = void 0), i);
      const l = Gqe(t, s);
      ((t.getBuildInfo = () => Xqe(zqe(l))),
        (t = void 0),
        (i = void 0),
        (s = void 0));
      const u = kH(l, o);
      return (
        (u.state = l),
        (u.hasChangedEmitSignature = () => !!l.hasChangedEmitSignature),
        (u.getAllDependencies = (W) =>
          _h.getAllDependencies(l, C.checkDefined(l.program), W)),
        (u.getSemanticDiagnostics = k),
        (u.getDeclarationDiagnostics = N),
        (u.emit = A),
        (u.releaseProgram = () => Vqe(l)),
        e === 0
          ? (u.getSemanticDiagnosticsOfNextAffectedFile = P)
          : e === 1
            ? ((u.getSemanticDiagnosticsOfNextAffectedFile = P),
              (u.emitNextAffectedFile = g),
              (u.emitBuildInfo = d))
            : ha(),
        u
      );
      function d(W, O) {
        if ((C.assert(JD(l)), BAe(l))) {
          const G = l.program.emitBuildInfo(W || ia(r, r.writeFile), O);
          return ((l.buildInfoEmitPending = !1), G);
        }
        return IH;
      }
      function _(W, O, G, j, J) {
        var Z, q, ye, ie;
        C.assert(JD(l));
        let K = LAe(l, O, r);
        const pe = Bb(l.compilerOptions);
        let de = J ? 8 : G ? pe & 56 : pe;
        if (!K) {
          if (l.compilerOptions.outFile) {
            if (
              (l.programEmitPending &&
                ((de = W3(l.programEmitPending, l.seenProgramEmit, G, J)),
                de && (K = l.program)),
              !K && (Z = l.emitDiagnosticsPerFile) != null && Z.size)
            ) {
              const xe = l.seenProgramEmit || 0;
              if (!(xe & DH(J))) {
                l.seenProgramEmit = DH(J) | xe;
                const X = [];
                return (
                  l.emitDiagnosticsPerFile.forEach((Ce) => Xr(X, Ce)),
                  {
                    result: { emitSkipped: !0, diagnostics: X },
                    affected: l.program,
                  }
                );
              }
            }
          } else {
            const xe = jqe(l, G, J);
            if (xe) ({ affectedFile: K, emitKind: de } = xe);
            else {
              const X = Uqe(l, J);
              if (X)
                return (
                  (l.seenEmittedFiles ?? (l.seenEmittedFiles = new Map())).set(
                    X.affectedFile.resolvedPath,
                    X.seenKind | DH(J),
                  ),
                  {
                    result: { emitSkipped: !0, diagnostics: X.diagnostics },
                    affected: X.affectedFile,
                  }
                );
            }
          }
          if (!K) {
            if (J || !BAe(l)) return;
            const xe = l.program,
              X = xe.emitBuildInfo(W || ia(r, r.writeFile), O);
            return ((l.buildInfoEmitPending = !1), { result: X, affected: xe });
          }
        }
        let fe;
        (de & 7 && (fe = 0), de & 56 && (fe = fe === void 0 ? 1 : void 0));
        const ve = J
          ? {
              emitSkipped: !0,
              diagnostics: l.program.getDeclarationDiagnostics(
                K === l.program ? void 0 : K,
                O,
              ),
            }
          : l.program.emit(
              K === l.program ? void 0 : K,
              E(W, j),
              O,
              fe,
              j,
              void 0,
              !0,
            );
        if (K !== l.program) {
          const xe = K;
          (l.seenAffectedFiles.add(xe.resolvedPath),
            l.affectedFilesIndex !== void 0 && l.affectedFilesIndex++,
            (l.buildInfoEmitPending = !0));
          const X =
            ((q = l.seenEmittedFiles) == null
              ? void 0
              : q.get(xe.resolvedPath)) || 0;
          (l.seenEmittedFiles ?? (l.seenEmittedFiles = new Map())).set(
            xe.resolvedPath,
            de | X,
          );
          const Ce =
              ((ye = l.affectedFilesPendingEmit) == null
                ? void 0
                : ye.get(xe.resolvedPath)) || pe,
            Je = O3(Ce, de | X);
          (Je
            ? (
                l.affectedFilesPendingEmit ??
                (l.affectedFilesPendingEmit = new Map())
              ).set(xe.resolvedPath, Je)
            : (ie = l.affectedFilesPendingEmit) == null ||
              ie.delete(xe.resolvedPath),
            ve.diagnostics.length &&
              (
                l.emitDiagnosticsPerFile ??
                (l.emitDiagnosticsPerFile = new Map())
              ).set(xe.resolvedPath, ve.diagnostics));
        } else
          (l.changedFilesSet.clear(),
            (l.programEmitPending = l.changedFilesSet.size
              ? O3(pe, de)
              : l.programEmitPending
                ? O3(l.programEmitPending, de)
                : void 0),
            (l.seenProgramEmit = de | (l.seenProgramEmit || 0)),
            h(ve.diagnostics),
            (l.buildInfoEmitPending = !0));
        return { result: ve, affected: K };
      }
      function h(W) {
        let O;
        (W.forEach((G) => {
          if (!G.file) return;
          let j = O?.get(G.file.resolvedPath);
          (j || (O ?? (O = new Map())).set(G.file.resolvedPath, (j = [])),
            j.push(G));
        }),
          O && (l.emitDiagnosticsPerFile = O));
      }
      function g(W, O, G, j) {
        return _(W, O, G, j, !1);
      }
      function E(W, O) {
        return (
          C.assert(JD(l)),
          _p(l.compilerOptions)
            ? (G, j, J, Z, q, ye) => {
                var ie, K, pe;
                if (ad(G))
                  if (l.compilerOptions.outFile) {
                    if (l.compilerOptions.composite) {
                      const fe = de(l.outSignature, void 0);
                      if (!fe) return (ye.skippedDtsWrite = !0);
                      l.outSignature = fe;
                    }
                  } else {
                    C.assert(q?.length === 1);
                    let fe;
                    if (!O) {
                      const ve = q[0],
                        xe = l.fileInfos.get(ve.resolvedPath);
                      if (xe.signature === ve.version) {
                        const X = NH(l.program, ve, j, r, ye);
                        (((ie = ye?.diagnostics) != null && ie.length) ||
                          (fe = X),
                          X !== ve.version &&
                            (r.storeSignatureInfo &&
                              (
                                l.signatureInfo ?? (l.signatureInfo = new Map())
                              ).set(ve.resolvedPath, 1),
                            l.affectedFiles &&
                              ((K = l.oldSignatures) == null
                                ? void 0
                                : K.get(ve.resolvedPath)) === void 0 &&
                              (
                                l.oldSignatures ?? (l.oldSignatures = new Map())
                              ).set(ve.resolvedPath, xe.signature || !1),
                            (xe.signature = X)));
                      }
                    }
                    if (l.compilerOptions.composite) {
                      const ve = q[0].resolvedPath;
                      if (
                        ((fe = de(
                          (pe = l.emitSignatures) == null ? void 0 : pe.get(ve),
                          fe,
                        )),
                        !fe)
                      )
                        return (ye.skippedDtsWrite = !0);
                      (l.emitSignatures ?? (l.emitSignatures = new Map())).set(
                        ve,
                        fe,
                      );
                    }
                  }
                W
                  ? W(G, j, J, Z, q, ye)
                  : r.writeFile
                    ? r.writeFile(G, j, J, Z, q, ye)
                    : l.program.writeFile(G, j, J, Z, q, ye);
                function de(fe, ve) {
                  const xe = !fe || Bo(fe) ? fe : fe[0];
                  if ((ve ?? (ve = Yqe(j, r, ye)), ve === xe)) {
                    if (fe === xe) return;
                    ye
                      ? (ye.differsOnlyInMap = !0)
                      : (ye = { differsOnlyInMap: !0 });
                  } else
                    ((l.hasChangedEmitSignature = !0),
                      (l.latestChangedDtsFile = G));
                  return ve;
                }
              }
            : W || ia(r, r.writeFile)
        );
      }
      function A(W, O, G, j, J) {
        (C.assert(JD(l)), e === 1 && Ase(l, W));
        const Z = xH(u, W, O, G);
        if (Z) return Z;
        if (!W)
          if (e === 1) {
            let ye = [],
              ie = !1,
              K,
              pe = [],
              de;
            for (; (de = g(O, G, j, J)); )
              ((ie = ie || de.result.emitSkipped),
                (K = Xr(K, de.result.diagnostics)),
                (pe = Xr(pe, de.result.emittedFiles)),
                (ye = Xr(ye, de.result.sourceMaps)));
            return {
              emitSkipped: ie,
              diagnostics: K || ae,
              emittedFiles: pe,
              sourceMaps: ye,
            };
          } else kAe(l, j, !1);
        const q = l.program.emit(W, E(O, J), G, j, J);
        return (R(W, j, !1, q.diagnostics), q);
      }
      function R(W, O, G, j) {
        !W && e !== 1 && (kAe(l, O, G), h(j));
      }
      function N(W, O) {
        var G;
        if ((C.assert(JD(l)), e === 1)) {
          Ase(l, W);
          let j, J;
          for (; (j = _(void 0, O, void 0, void 0, !0)); )
            W || (J = Xr(J, j.result.diagnostics));
          return (
            (W
              ? (G = l.emitDiagnosticsPerFile) == null
                ? void 0
                : G.get(W.resolvedPath)
              : J) || ae
          );
        } else {
          const j = l.program.getDeclarationDiagnostics(W, O);
          return (R(W, void 0, !0, j), j);
        }
      }
      function P(W, O) {
        for (C.assert(JD(l)); ; ) {
          const G = LAe(l, W, r);
          let j;
          if (G)
            if (G !== l.program) {
              const J = G;
              if (
                ((!O || !O(J)) && (j = CH(l, J, W)),
                l.seenAffectedFiles.add(J.resolvedPath),
                l.affectedFilesIndex++,
                (l.buildInfoEmitPending = !0),
                !j)
              )
                continue;
            } else {
              let J;
              const Z = new Map();
              (l.program
                .getSourceFiles()
                .forEach((q) => (J = Xr(J, CH(l, q, W, Z)))),
                (l.semanticDiagnosticsPerFile = Z),
                (j = J || ae),
                l.changedFilesSet.clear(),
                (l.programEmitPending = Bb(l.compilerOptions)),
                l.compilerOptions.noCheck || (l.checkPending = void 0),
                (l.buildInfoEmitPending = !0));
            }
          else {
            l.checkPending &&
              !l.compilerOptions.noCheck &&
              ((l.checkPending = void 0), (l.buildInfoEmitPending = !0));
            return;
          }
          return { result: j, affected: G };
        }
      }
      function k(W, O) {
        if ((C.assert(JD(l)), Ase(l, W), W)) return CH(l, W, O);
        for (;;) {
          const j = P(O);
          if (!j) break;
          if (j.affected === l.program) return j.result;
        }
        let G;
        for (const j of l.program.getSourceFiles()) G = Xr(G, CH(l, j, O));
        return (
          l.checkPending &&
            !l.compilerOptions.noCheck &&
            ((l.checkPending = void 0), (l.buildInfoEmitPending = !0)),
          G || ae
        );
      }
    }
    function PH(e, t, r) {
      var i, o;
      const s =
        ((i = e.affectedFilesPendingEmit) == null ? void 0 : i.get(t)) || 0;
      ((
        e.affectedFilesPendingEmit ?? (e.affectedFilesPendingEmit = new Map())
      ).set(t, s | r),
        (o = e.emitDiagnosticsPerFile) == null || o.delete(t));
    }
    function Nse(e) {
      return Bo(e)
        ? {
            version: e,
            signature: e,
            affectsGlobalScope: void 0,
            impliedFormat: void 0,
          }
        : Bo(e.signature)
          ? e
          : {
              version: e.version,
              signature: e.signature === !1 ? void 0 : e.version,
              affectsGlobalScope: e.affectsGlobalScope,
              impliedFormat: e.impliedFormat,
            };
    }
    function Mse(e, t) {
      return eb(e) ? t : e[1] || 24;
    }
    function Pse(e, t) {
      return e || Bb(t || {});
    }
    function Lse(e, t, r) {
      var i, o, s, l;
      const u = ci(To(t, r.getCurrentDirectory())),
        d = Fd(r.useCaseSensitiveFileNames());
      let _;
      const h = (i = e.fileNames) == null ? void 0 : i.map(N);
      let g;
      const E = e.latestChangedDtsFile ? P(e.latestChangedDtsFile) : void 0,
        A = new Map(),
        R = new Set(Vt(e.changeFileSet, k));
      if (Dse(e))
        (e.fileInfos.forEach((J, Z) => {
          const q = k(Z + 1);
          A.set(
            q,
            Bo(J)
              ? {
                  version: J,
                  signature: void 0,
                  affectsGlobalScope: void 0,
                  impliedFormat: void 0,
                }
              : J,
          );
        }),
          (_ = {
            fileInfos: A,
            compilerOptions: e.options ? J4(e.options, P) : {},
            semanticDiagnosticsPerFile: G(e.semanticDiagnosticsPerFile),
            emitDiagnosticsPerFile: j(e.emitDiagnosticsPerFile),
            hasReusableDiagnostic: !0,
            changedFilesSet: R,
            latestChangedDtsFile: E,
            outSignature: e.outSignature,
            programEmitPending:
              e.pendingEmit === void 0 ? void 0 : Pse(e.pendingEmit, e.options),
            hasErrors: e.errors,
            checkPending: e.checkPending,
          }));
      else {
        g =
          (o = e.fileIdsList) == null
            ? void 0
            : o.map((q) => new Set(q.map(k)));
        const J =
          (s = e.options) != null && s.composite && !e.options.outFile
            ? new Map()
            : void 0;
        (e.fileInfos.forEach((q, ye) => {
          const ie = k(ye + 1),
            K = Nse(q);
          (A.set(ie, K), J && K.signature && J.set(ie, K.signature));
        }),
          (l = e.emitSignatures) == null ||
            l.forEach((q) => {
              if (eb(q)) J.delete(k(q));
              else {
                const ye = k(q[0]);
                J.set(ye, !Bo(q[1]) && !q[1].length ? [J.get(ye)] : q[1]);
              }
            }));
        const Z = e.affectedFilesPendingEmit ? Bb(e.options || {}) : void 0;
        _ = {
          fileInfos: A,
          compilerOptions: e.options ? J4(e.options, P) : {},
          referencedMap: O(e.referencedMap, e.options ?? {}),
          semanticDiagnosticsPerFile: G(e.semanticDiagnosticsPerFile),
          emitDiagnosticsPerFile: j(e.emitDiagnosticsPerFile),
          hasReusableDiagnostic: !0,
          changedFilesSet: R,
          affectedFilesPendingEmit:
            e.affectedFilesPendingEmit &&
            AR(
              e.affectedFilesPendingEmit,
              (q) => k(eb(q) ? q : q[0]),
              (q) => Mse(q, Z),
            ),
          latestChangedDtsFile: E,
          emitSignatures: J?.size ? J : void 0,
          hasErrors: e.errors,
          checkPending: e.checkPending,
        };
      }
      return {
        state: _,
        getProgram: ha,
        getProgramOrUndefined: uS,
        releaseProgram: gs,
        getCompilerOptions: () => _.compilerOptions,
        getSourceFile: ha,
        getSourceFiles: ha,
        getOptionsDiagnostics: ha,
        getGlobalDiagnostics: ha,
        getConfigFileParsingDiagnostics: ha,
        getSyntacticDiagnostics: ha,
        getDeclarationDiagnostics: ha,
        getSemanticDiagnostics: ha,
        emit: ha,
        getAllDependencies: ha,
        getCurrentDirectory: ha,
        emitNextAffectedFile: ha,
        getSemanticDiagnosticsOfNextAffectedFile: ha,
        emitBuildInfo: ha,
        close: gs,
        hasChangedEmitSignature: Qg,
      };
      function N(J) {
        return ks(J, u, d);
      }
      function P(J) {
        return To(J, u);
      }
      function k(J) {
        return h[J - 1];
      }
      function W(J) {
        return g[J - 1];
      }
      function O(J, Z) {
        const q = _h.createReferencedMap(Z);
        return (!q || !J || J.forEach(([ye, ie]) => q.set(k(ye), W(ie))), q);
      }
      function G(J) {
        const Z = new Map(nh(A.keys(), (q) => (R.has(q) ? void 0 : [q, ae])));
        return (
          J?.forEach((q) => {
            eb(q) ? Z.delete(k(q)) : Z.set(k(q[0]), q[1]);
          }),
          Z
        );
      }
      function j(J) {
        return (
          J &&
          AR(
            J,
            (Z) => k(Z[0]),
            (Z) => Z[1],
          )
        );
      }
    }
    function LH(e, t, r) {
      const i = ci(To(t, r.getCurrentDirectory())),
        o = Fd(r.useCaseSensitiveFileNames()),
        s = new Map();
      let l = 0;
      const u = new Map(),
        d = new Map(e.resolvedRoot);
      return (
        e.fileInfos.forEach((h, g) => {
          const E = ks(e.fileNames[g], i, o),
            A = Bo(h) ? h : h.version;
          if ((s.set(E, A), l < e.root.length)) {
            const R = e.root[l],
              N = g + 1;
            Mo(R)
              ? R[0] <= N && N <= R[1] && (_(N, E), R[1] === N && l++)
              : R === N && (_(N, E), l++);
          }
        }),
        { fileInfos: s, roots: u }
      );
      function _(h, g) {
        const E = d.get(h);
        E ? u.set(ks(e.fileNames[E - 1], i, o), g) : u.set(g, void 0);
      }
    }
    function kse(e, t, r) {
      if (!Kqe(e)) return;
      const i = ci(To(t, r.getCurrentDirectory())),
        o = Fd(r.useCaseSensitiveFileNames());
      return e.root.map((s) => ks(s, i, o));
    }
    function kH(e, t) {
      return {
        state: void 0,
        getProgram: r,
        getProgramOrUndefined: () => e.program,
        releaseProgram: () => (e.program = void 0),
        getCompilerOptions: () => e.compilerOptions,
        getSourceFile: (i) => r().getSourceFile(i),
        getSourceFiles: () => r().getSourceFiles(),
        getOptionsDiagnostics: (i) => r().getOptionsDiagnostics(i),
        getGlobalDiagnostics: (i) => r().getGlobalDiagnostics(i),
        getConfigFileParsingDiagnostics: () => t,
        getSyntacticDiagnostics: (i, o) => r().getSyntacticDiagnostics(i, o),
        getDeclarationDiagnostics: (i, o) =>
          r().getDeclarationDiagnostics(i, o),
        getSemanticDiagnostics: (i, o) => r().getSemanticDiagnostics(i, o),
        emit: (i, o, s, l, u) => r().emit(i, o, s, l, u),
        emitBuildInfo: (i, o) => r().emitBuildInfo(i, o),
        getAllDependencies: ha,
        getCurrentDirectory: () => r().getCurrentDirectory(),
        close: gs,
      };
      function r() {
        return C.checkDefined(e.program);
      }
    }
    function VAe(e, t, r, i, o, s) {
      return MH(0, F3(e, t, r, i, o, s));
    }
    function wH(e, t, r, i, o, s) {
      return MH(1, F3(e, t, r, i, o, s));
    }
    function jAe(e, t, r, i, o, s) {
      const { newProgram: l, configFileParsingDiagnostics: u } = F3(
        e,
        t,
        r,
        i,
        o,
        s,
      );
      return kH({ program: l, compilerOptions: l.getCompilerOptions() }, u);
    }
    function z3(e) {
      return el(e, "/node_modules/.staging")
        ? RR(e, "/.staging")
        : yt($8, (t) => e.includes(t))
          ? void 0
          : e;
    }
    function wse(e, t) {
      if (t <= 1) return 1;
      let r = 1,
        i = e[0].search(/[a-z]:/i) === 0;
      if (e[0] !== Js && !i && e[1].search(/[a-z]\$$/i) === 0) {
        if (t === 2) return 2;
        ((r = 2), (i = !0));
      }
      return i && !e[r].match(/^users$/i)
        ? r
        : e[r].match(/^workspaces$/i)
          ? r + 1
          : r + 2;
    }
    function OH(e, t) {
      if ((t === void 0 && (t = e.length), t <= 2)) return !1;
      const r = wse(e, t);
      return t > r + 1;
    }
    function lO(e) {
      return OH(zd(e));
    }
    function Ose(e) {
      return HAe(ci(e));
    }
    function UAe(e, t) {
      if (t.length < e.length) return !1;
      for (let r = 0; r < e.length; r++) if (t[r] !== e[r]) return !1;
      return !0;
    }
    function HAe(e) {
      return lO(e);
    }
    function Wse(e) {
      return HAe(e);
    }
    function WH(e, t, r, i, o, s, l, u) {
      const d = zd(t);
      e = Cp(e) ? ya(e) : To(e, l());
      const _ = zd(e),
        h = wse(d, d.length);
      if (d.length <= h + 1) return;
      const g = d.indexOf("node_modules");
      if (g !== -1 && g + 1 <= h + 1) return;
      const E = d.lastIndexOf("node_modules");
      return s && UAe(o, d)
        ? d.length > o.length + 1
          ? Fse(_, d, Math.max(o.length + 1, h + 1), E)
          : { dir: r, dirPath: i, nonRecursive: !0 }
        : qAe(_, d, d.length - 1, h, g, o, E, u);
    }
    function qAe(e, t, r, i, o, s, l, u) {
      if (o !== -1) return Fse(e, t, o + 1, l);
      let d = !0,
        _ = r;
      if (!u) {
        for (let h = 0; h < r; h++)
          if (t[h] !== s[h]) {
            ((d = !1), (_ = Math.max(h + 1, i + 1)));
            break;
          }
      }
      return Fse(e, t, _, l, d);
    }
    function Fse(e, t, r, i, o) {
      let s;
      return (
        i !== -1 &&
          i + 1 >= r &&
          i + 2 < t.length &&
          (po(t[i + 1], "@") ? i + 3 < t.length && (s = i + 3) : (s = i + 2)),
        {
          dir: MT(e, r),
          dirPath: MT(t, r),
          nonRecursive: o,
          packageDir: s !== void 0 ? MT(e, s) : void 0,
          packageDirPath: s !== void 0 ? MT(t, s) : void 0,
        }
      );
    }
    function zse(e, t, r, i, o, s, l, u) {
      const d = zd(t);
      if (o && UAe(i, d)) return r;
      e = Cp(e) ? ya(e) : To(e, s());
      const _ = qAe(
        zd(e),
        d,
        d.length,
        wse(d, d.length),
        d.indexOf("node_modules"),
        i,
        d.lastIndexOf("node_modules"),
        l,
      );
      return _ && u(_.dirPath) ? _.dirPath : void 0;
    }
    function Bse(e, t) {
      const r = To(e, t());
      return I9(r) ? r : Yy(r);
    }
    function B3(e) {
      var t;
      return ((t = e.getCompilerHost) == null ? void 0 : t.call(e)) || e;
    }
    function Gse(e, t, r, i, o) {
      return { nameAndMode: C3, resolve: (s, l) => $qe(i, o, s, e, r, t, l) };
    }
    function $qe(e, t, r, i, o, s, l) {
      const u = B3(e),
        d = M1(r, i, o, u, t, s, l);
      if (!e.getGlobalTypingsCacheLocation) return d;
      const _ = e.getGlobalTypingsCacheLocation();
      if (
        _ !== void 0 &&
        !td(r) &&
        !(d.resolvedModule && X6(d.resolvedModule.extension))
      ) {
        const {
          resolvedModule: h,
          failedLookupLocations: g,
          affectingLocations: E,
          resolutionDiagnostics: A,
        } = Qoe(
          C.checkDefined(e.globalCacheResolutionModuleName)(r),
          e.projectName,
          o,
          u,
          _,
          t,
        );
        if (h)
          return (
            (d.resolvedModule = h),
            (d.failedLookupLocations = WD(d.failedLookupLocations, g)),
            (d.affectingLocations = WD(d.affectingLocations, E)),
            (d.resolutionDiagnostics = WD(d.resolutionDiagnostics, A)),
            d
          );
      }
      return d;
    }
    function FH(e, t, r) {
      let i, o, s;
      const l = new Set(),
        u = new Set(),
        d = new Set(),
        _ = new Map(),
        h = new Map();
      let g = !1,
        E,
        A,
        R,
        N,
        P,
        k = !1;
      const W = Nu(() => e.getCurrentDirectory()),
        O = e.getCachedDirectoryStructureHost(),
        G = new Map(),
        j = zD(W(), e.getCanonicalFileName, e.getCompilationSettings()),
        J = new Map(),
        Z = r3(
          W(),
          e.getCanonicalFileName,
          e.getCompilationSettings(),
          j.getPackageJsonInfoCache(),
          j.optionsToRedirectsKey,
        ),
        q = new Map(),
        ye = zD(
          W(),
          e.getCanonicalFileName,
          vU(e.getCompilationSettings()),
          j.getPackageJsonInfoCache(),
        ),
        ie = new Map(),
        K = new Map(),
        pe = Bse(t, W),
        de = e.toPath(pe),
        fe = zd(de),
        ve = OH(fe),
        xe = new Map(),
        X = new Map(),
        Ce = new Map(),
        Je = new Map();
      return {
        rootDirForResolution: t,
        resolvedModuleNames: G,
        resolvedTypeReferenceDirectives: J,
        resolvedLibraries: q,
        resolvedFileToResolution: _,
        resolutionsWithFailedLookups: u,
        resolutionsWithOnlyAffectingLocations: d,
        directoryWatchesOfFailedLookups: ie,
        fileWatchesOfAffectingLocations: K,
        packageDirWatchers: X,
        dirPathToSymlinkPackageRefCount: Ce,
        watchFailedLookupLocationsOfExternalModuleResolutions: en,
        getModuleResolutionCache: () => j,
        startRecordingFilesWithChangedResolutions: be,
        finishRecordingFilesWithChangedResolutions: Ne,
        startCachingPerDirectoryResolution: ce,
        finishCachingPerDirectoryResolution: _e,
        resolveModuleNameLiterals: cn,
        resolveTypeReferenceDirectiveReferences: Wt,
        resolveLibrary: gn,
        resolveSingleModuleNameWithoutWatching: Kn,
        removeResolutionsFromProjectReferenceRedirects: ai,
        removeResolutionsOfFile: qi,
        hasChangedAutomaticTypeDirectiveNames: () => g,
        invalidateResolutionOfFile: Ia,
        invalidateResolutionsOfFailedLookupLocations: Ft,
        setFilesWithInvalidatedNonRelativeUnresolvedImports: Mn,
        createHasInvalidatedResolutions: lt,
        isFileWithInvalidatedNonRelativeUnresolvedImports: Be,
        updateTypeRootsWatch: dt,
        closeTypeRootsWatch: Fe,
        clear: Se,
        onChangesAffectModuleResolution: re,
      };
      function Se() {
        (hp(ie, Kf),
          hp(K, Kf),
          xe.clear(),
          X.clear(),
          Ce.clear(),
          l.clear(),
          Fe(),
          G.clear(),
          J.clear(),
          _.clear(),
          u.clear(),
          d.clear(),
          (R = void 0),
          (N = void 0),
          (P = void 0),
          (A = void 0),
          (E = void 0),
          (k = !1),
          j.clear(),
          Z.clear(),
          j.update(e.getCompilationSettings()),
          Z.update(e.getCompilationSettings()),
          ye.clear(),
          h.clear(),
          q.clear(),
          (g = !1));
      }
      function re() {
        ((k = !0),
          j.clearAllExceptPackageJsonInfoCache(),
          Z.clearAllExceptPackageJsonInfoCache(),
          j.update(e.getCompilationSettings()),
          Z.update(e.getCompilationSettings()));
      }
      function be() {
        i = [];
      }
      function Ne() {
        const Ue = i;
        return ((i = void 0), Ue);
      }
      function Be(Ue) {
        if (!s) return !1;
        const Rt = s.get(Ue);
        return !!Rt && !!Rt.length;
      }
      function lt(Ue, Rt) {
        Ft();
        const It = o;
        return (
          (o = void 0),
          {
            hasInvalidatedResolutions: (Ot) =>
              Ue(Ot) || k || !!It?.has(Ot) || Be(Ot),
            hasInvalidatedLibResolutions: (Ot) => {
              var nt;
              return (
                Rt(Ot) || !!((nt = q?.get(Ot)) != null && nt.isInvalidated)
              );
            },
          }
        );
      }
      function ce() {
        ((j.isReadonly = void 0),
          (Z.isReadonly = void 0),
          (ye.isReadonly = void 0),
          (j.getPackageJsonInfoCache().isReadonly = void 0),
          j.clearAllExceptPackageJsonInfoCache(),
          Z.clearAllExceptPackageJsonInfoCache(),
          ye.clearAllExceptPackageJsonInfoCache(),
          Ai(),
          xe.clear());
      }
      function Re(Ue) {
        q.forEach((Rt, It) => {
          var Ot;
          ((Ot = Ue?.resolvedLibReferences) != null && Ot.has(It)) ||
            (At(Rt, e.toPath(M3(e.getCompilationSettings(), W(), It)), pI),
            q.delete(It));
        });
      }
      function _e(Ue, Rt) {
        ((s = void 0),
          (k = !1),
          Ai(),
          Ue !== Rt &&
            (Re(Ue),
            Ue?.getSourceFiles().forEach((It) => {
              var Ot;
              const nt =
                  ((Ot = It.packageJsonLocations) == null
                    ? void 0
                    : Ot.length) ?? 0,
                Kt = h.get(It.resolvedPath) ?? ae;
              for (let Tr = Kt.length; Tr < nt; Tr++)
                zt(It.packageJsonLocations[Tr], !1);
              if (Kt.length > nt)
                for (let Tr = nt; Tr < Kt.length; Tr++) K.get(Kt[Tr]).files--;
              nt
                ? h.set(It.resolvedPath, It.packageJsonLocations)
                : h.delete(It.resolvedPath);
            }),
            h.forEach((It, Ot) => {
              const nt = Ue?.getSourceFileByPath(Ot);
              (!nt || nt.resolvedPath !== Ot) &&
                (It.forEach((Kt) => K.get(Kt).files--), h.delete(Ot));
            })),
          ie.forEach(Ge),
          K.forEach(We),
          X.forEach(je),
          (g = !1),
          (j.isReadonly = !0),
          (Z.isReadonly = !0),
          (ye.isReadonly = !0),
          (j.getPackageJsonInfoCache().isReadonly = !0),
          xe.clear());
      }
      function je(Ue, Rt) {
        Ue.dirPathToWatcher.size === 0 && X.delete(Rt);
      }
      function Ge(Ue, Rt) {
        Ue.refCount === 0 && (ie.delete(Rt), Ue.watcher.close());
      }
      function We(Ue, Rt) {
        var It;
        Ue.files === 0 &&
          Ue.resolutions === 0 &&
          !((It = Ue.symlinks) != null && It.size) &&
          (K.delete(Rt), Ue.watcher.close());
      }
      function at({
        entries: Ue,
        containingFile: Rt,
        containingSourceFile: It,
        redirectedReference: Ot,
        options: nt,
        perFileCache: Kt,
        reusedNames: Tr,
        loader: Oe,
        getResolutionWithResolvedFileName: Nt,
        deferWatchingNonRelativeResolution: he,
        shouldRetryResolution: B,
        logChanges: Ae,
      }) {
        var te;
        const xt = e.toPath(Rt),
          Xt = Kt.get(xt) || Kt.set(xt, FD()).get(xt),
          Pe = [],
          gt = Ae && Be(xt),
          Bt = e.getCurrentProgram(),
          gr =
            Bt &&
            ((te = Bt.getRedirectFromSourceFile(Rt)) == null
              ? void 0
              : te.resolvedRef),
          tr = gr ? !Ot || Ot.sourceFile.path !== gr.sourceFile.path : !!Ot,
          Jn = FD();
        for (const Mt of Ue) {
          const jt = Oe.nameAndMode.getName(Mt),
            Qt = Oe.nameAndMode.getMode(Mt, It, Ot?.commandLine.options || nt);
          let In = Xt.get(jt, Qt);
          if (
            !Jn.has(jt, Qt) &&
            (k || tr || !In || In.isInvalidated || (gt && !td(jt) && B(In)))
          ) {
            const yn = In;
            ((In = Oe.resolve(jt, Qt)),
              e.onDiscoveredSymlink && Qqe(In) && e.onDiscoveredSymlink(),
              Xt.set(jt, Qt, In),
              In !== yn && (en(jt, In, xt, Nt, he), yn && At(yn, xt, Nt)),
              Ae && i && !ft(yn, In) && (i.push(xt), (Ae = !1)));
          } else {
            const yn = B3(e);
            if (wb(nt, yn) && !Jn.has(jt, Qt)) {
              const wt = Nt(In);
              xo(
                yn,
                Kt === G
                  ? wt?.resolvedFileName
                    ? wt.packageId
                      ? f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3
                      : f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2
                    : f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved
                  : wt?.resolvedFileName
                    ? wt.packageId
                      ? f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3
                      : f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2
                    : f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,
                jt,
                Rt,
                wt?.resolvedFileName,
                wt?.packageId && wT(wt.packageId),
              );
            }
          }
          (C.assert(In !== void 0 && !In.isInvalidated),
            Jn.set(jt, Qt, !0),
            Pe.push(In));
        }
        return (
          Tr?.forEach((Mt) =>
            Jn.set(
              Oe.nameAndMode.getName(Mt),
              Oe.nameAndMode.getMode(Mt, It, Ot?.commandLine.options || nt),
              !0,
            ),
          ),
          Xt.size() !== Jn.size() &&
            Xt.forEach((Mt, jt, Qt) => {
              Jn.has(jt, Qt) || (At(Mt, xt, Nt), Xt.delete(jt, Qt));
            }),
          Pe
        );
        function ft(Mt, jt) {
          if (Mt === jt) return !0;
          if (!Mt || !jt) return !1;
          const Qt = Nt(Mt),
            In = Nt(jt);
          return Qt === In
            ? !0
            : !Qt || !In
              ? !1
              : Qt.resolvedFileName === In.resolvedFileName;
        }
      }
      function Wt(Ue, Rt, It, Ot, nt, Kt) {
        return at({
          entries: Ue,
          containingFile: Rt,
          containingSourceFile: nt,
          redirectedReference: It,
          options: Ot,
          reusedNames: Kt,
          perFileCache: J,
          loader: N3(Rt, It, Ot, B3(e), Z),
          getResolutionWithResolvedFileName: MF,
          shouldRetryResolution: (Tr) =>
            Tr.resolvedTypeReferenceDirective === void 0,
          deferWatchingNonRelativeResolution: !1,
        });
      }
      function cn(Ue, Rt, It, Ot, nt, Kt) {
        return at({
          entries: Ue,
          containingFile: Rt,
          containingSourceFile: nt,
          redirectedReference: It,
          options: Ot,
          reusedNames: Kt,
          perFileCache: G,
          loader: Gse(Rt, It, Ot, e, j),
          getResolutionWithResolvedFileName: pI,
          shouldRetryResolution: (Tr) =>
            !Tr.resolvedModule || !EM(Tr.resolvedModule.extension),
          logChanges: r,
          deferWatchingNonRelativeResolution: !0,
        });
      }
      function gn(Ue, Rt, It, Ot) {
        const nt = B3(e);
        let Kt = q?.get(Ot);
        if (!Kt || Kt.isInvalidated) {
          const Tr = Kt;
          Kt = i3(Ue, Rt, It, nt, ye);
          const Oe = e.toPath(Rt);
          (en(Ue, Kt, Oe, pI, !1), q.set(Ot, Kt), Tr && At(Tr, Oe, pI));
        } else if (wb(It, nt)) {
          const Tr = pI(Kt);
          xo(
            nt,
            Tr?.resolvedFileName
              ? Tr.packageId
                ? f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3
                : f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2
              : f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,
            Ue,
            Rt,
            Tr?.resolvedFileName,
            Tr?.packageId && wT(Tr.packageId),
          );
        }
        return Kt;
      }
      function Kn(Ue, Rt) {
        var It, Ot;
        const nt = e.toPath(Rt),
          Kt = G.get(nt),
          Tr = Kt?.get(Ue, void 0);
        if (Tr && !Tr.isInvalidated) return Tr;
        const Oe =
            (It = e.beforeResolveSingleModuleNameWithoutWatching) == null
              ? void 0
              : It.call(e, j),
          Nt = B3(e),
          he = M1(Ue, Rt, e.getCompilationSettings(), Nt, j);
        return (
          (Ot = e.afterResolveSingleModuleNameWithoutWatching) == null ||
            Ot.call(e, j, Ue, Rt, he, Oe),
          he
        );
      }
      function _t(Ue) {
        return el(Ue, "/node_modules/@types");
      }
      function en(Ue, Rt, It, Ot, nt) {
        if (((Rt.files ?? (Rt.files = new Set())).add(It), Rt.files.size !== 1))
          return;
        !nt || td(Ue) ? Di(Rt) : l.add(Rt);
        const Kt = Ot(Rt);
        if (Kt && Kt.resolvedFileName) {
          const Tr = e.toPath(Kt.resolvedFileName);
          let Oe = _.get(Tr);
          (Oe || _.set(Tr, (Oe = new Set())), Oe.add(Rt));
        }
      }
      function ir(Ue, Rt) {
        const It = e.toPath(Ue),
          Ot = WH(Ue, It, pe, de, fe, ve, W, e.preferNonRecursiveWatch);
        if (Ot) {
          const {
            dir: nt,
            dirPath: Kt,
            nonRecursive: Tr,
            packageDir: Oe,
            packageDirPath: Nt,
          } = Ot;
          Kt === de
            ? (C.assert(Tr), C.assert(!Oe), (Rt = !0))
            : Pr(nt, Kt, Oe, Nt, Tr);
        }
        return Rt;
      }
      function Di(Ue) {
        var Rt;
        C.assert(!!((Rt = Ue.files) != null && Rt.size));
        const {
          failedLookupLocations: It,
          affectingLocations: Ot,
          alternateResult: nt,
        } = Ue;
        if (!It?.length && !Ot?.length && !nt) return;
        (It?.length || nt) && u.add(Ue);
        let Kt = !1;
        if (It) for (const Tr of It) Kt = ir(Tr, Kt);
        (nt && (Kt = ir(nt, Kt)),
          Kt && Pr(pe, de, void 0, void 0, !0),
          lo(Ue, !It?.length && !nt));
      }
      function lo(Ue, Rt) {
        var It;
        C.assert(!!((It = Ue.files) != null && It.size));
        const { affectingLocations: Ot } = Ue;
        if (Ot?.length) {
          Rt && d.add(Ue);
          for (const nt of Ot) zt(nt, !0);
        }
      }
      function zt(Ue, Rt) {
        const It = K.get(Ue);
        if (It) {
          Rt ? It.resolutions++ : It.files++;
          return;
        }
        let Ot = Ue,
          nt = !1,
          Kt;
        e.realpath &&
          ((Ot = e.realpath(Ue)), Ue !== Ot && ((nt = !0), (Kt = K.get(Ot))));
        const Tr = Rt ? 1 : 0,
          Oe = Rt ? 0 : 1;
        if (!nt || !Kt) {
          const Nt = {
            watcher: Wse(e.toPath(Ot))
              ? e.watchAffectingFileLocation(Ot, (he, B) => {
                  (O?.addOrDeleteFile(he, e.toPath(Ot), B),
                    Zr(Ot, j.getPackageJsonInfoCache().getInternalMap()),
                    e.scheduleInvalidateResolutionsOfFailedLookupLocations());
                })
              : XD,
            resolutions: nt ? 0 : Tr,
            files: nt ? 0 : Oe,
            symlinks: void 0,
          };
          (K.set(Ot, Nt), nt && (Kt = Nt));
        }
        if (nt) {
          C.assert(!!Kt);
          const Nt = {
            watcher: {
              close: () => {
                var he;
                const B = K.get(Ot);
                (he = B?.symlinks) != null &&
                  he.delete(Ue) &&
                  !B.symlinks.size &&
                  !B.resolutions &&
                  !B.files &&
                  (K.delete(Ot), B.watcher.close());
              },
            },
            resolutions: Tr,
            files: Oe,
            symlinks: void 0,
          };
          (K.set(Ue, Nt), (Kt.symlinks ?? (Kt.symlinks = new Set())).add(Ue));
        }
      }
      function Zr(Ue, Rt) {
        var It;
        const Ot = K.get(Ue);
        (Ot?.resolutions && (A ?? (A = new Set())).add(Ue),
          Ot?.files && (E ?? (E = new Set())).add(Ue),
          (It = Ot?.symlinks) == null || It.forEach((nt) => Zr(nt, Rt)),
          Rt?.delete(e.toPath(Ue)));
      }
      function Ai() {
        (l.forEach(Di), l.clear());
      }
      function Ni(Ue, Rt, It, Ot, nt) {
        C.assert(!nt);
        let Kt = xe.get(Ot),
          Tr = X.get(Ot);
        if (Kt === void 0) {
          const he = e.realpath(It);
          ((Kt = he !== It && e.toPath(he) !== Ot),
            xe.set(Ot, Kt),
            Tr
              ? Tr.isSymlink !== Kt &&
                (Tr.dirPathToWatcher.forEach((B) => {
                  (mn(Tr.isSymlink ? Ot : Rt), (B.watcher = Nt()));
                }),
                (Tr.isSymlink = Kt))
              : X.set(
                  Ot,
                  (Tr = { dirPathToWatcher: new Map(), isSymlink: Kt }),
                ));
        } else (C.assertIsDefined(Tr), C.assert(Kt === Tr.isSymlink));
        const Oe = Tr.dirPathToWatcher.get(Rt);
        Oe
          ? Oe.refCount++
          : (Tr.dirPathToWatcher.set(Rt, { watcher: Nt(), refCount: 1 }),
            Kt && Ce.set(Rt, (Ce.get(Rt) ?? 0) + 1));
        function Nt() {
          return Kt ? Ci(It, Ot, nt) : Ci(Ue, Rt, nt);
        }
      }
      function Pr(Ue, Rt, It, Ot, nt) {
        !Ot || !e.realpath ? Ci(Ue, Rt, nt) : Ni(Ue, Rt, It, Ot, nt);
      }
      function Ci(Ue, Rt, It) {
        let Ot = ie.get(Rt);
        return (
          Ot
            ? (C.assert(!!It == !!Ot.nonRecursive), Ot.refCount++)
            : ie.set(
                Rt,
                (Ot = {
                  watcher: dr(Ue, Rt, It),
                  refCount: 1,
                  nonRecursive: It,
                }),
              ),
          Ot
        );
      }
      function $e(Ue, Rt) {
        const It = e.toPath(Ue),
          Ot = WH(Ue, It, pe, de, fe, ve, W, e.preferNonRecursiveWatch);
        if (Ot) {
          const { dirPath: nt, packageDirPath: Kt } = Ot;
          if (nt === de) Rt = !0;
          else if (Kt && e.realpath) {
            const Tr = X.get(Kt),
              Oe = Tr.dirPathToWatcher.get(nt);
            if (
              (Oe.refCount--,
              Oe.refCount === 0 &&
                (mn(Tr.isSymlink ? Kt : nt),
                Tr.dirPathToWatcher.delete(nt),
                Tr.isSymlink))
            ) {
              const Nt = Ce.get(nt) - 1;
              Nt === 0 ? Ce.delete(nt) : Ce.set(nt, Nt);
            }
          } else mn(nt);
        }
        return Rt;
      }
      function At(Ue, Rt, It) {
        if ((C.checkDefined(Ue.files).delete(Rt), Ue.files.size)) return;
        Ue.files = void 0;
        const Ot = It(Ue);
        if (Ot && Ot.resolvedFileName) {
          const Oe = e.toPath(Ot.resolvedFileName),
            Nt = _.get(Oe);
          Nt?.delete(Ue) && !Nt.size && _.delete(Oe);
        }
        const {
          failedLookupLocations: nt,
          affectingLocations: Kt,
          alternateResult: Tr,
        } = Ue;
        if (u.delete(Ue)) {
          let Oe = !1;
          if (nt) for (const Nt of nt) Oe = $e(Nt, Oe);
          (Tr && (Oe = $e(Tr, Oe)), Oe && mn(de));
        } else Kt?.length && d.delete(Ue);
        if (Kt)
          for (const Oe of Kt) {
            const Nt = K.get(Oe);
            Nt.resolutions--;
          }
      }
      function mn(Ue) {
        const Rt = ie.get(Ue);
        Rt.refCount--;
      }
      function dr(Ue, Rt, It) {
        return e.watchDirectoryOfFailedLookupLocation(
          Ue,
          (Ot) => {
            const nt = e.toPath(Ot);
            (O && O.addOrDeleteFileOrDirectory(Ot, nt), Uo(nt, Rt === nt));
          },
          It ? 0 : 1,
        );
      }
      function ri(Ue, Rt, It) {
        const Ot = Ue.get(Rt);
        Ot && (Ot.forEach((nt) => At(nt, Rt, It)), Ue.delete(Rt));
      }
      function ai(Ue) {
        if (!El(Ue, ".json")) return;
        const Rt = e.getCurrentProgram();
        if (!Rt) return;
        const It = Rt.getResolvedProjectReferenceByPath(Ue);
        It && It.commandLine.fileNames.forEach((Ot) => qi(e.toPath(Ot)));
      }
      function qi(Ue) {
        (ri(G, Ue, pI), ri(J, Ue, MF));
      }
      function $o(Ue, Rt) {
        if (!Ue) return !1;
        let It = !1;
        return (
          Ue.forEach((Ot) => {
            if (!(Ot.isInvalidated || !Rt(Ot))) {
              Ot.isInvalidated = It = !0;
              for (const nt of C.checkDefined(Ot.files))
                ((o ?? (o = new Set())).add(nt), (g = g || el(nt, vP)));
            }
          }),
          It
        );
      }
      function Ia(Ue) {
        qi(Ue);
        const Rt = g;
        $o(_.get(Ue), dS) &&
          g &&
          !Rt &&
          e.onChangedAutomaticTypeDirectiveNames();
      }
      function Mn(Ue) {
        (C.assert(s === Ue || s === void 0), (s = Ue));
      }
      function Uo(Ue, Rt) {
        if (Rt) (P || (P = new Set())).add(Ue);
        else {
          const It = z3(Ue);
          if (!It || ((Ue = It), e.fileIsOpen(Ue))) return !1;
          const Ot = ci(Ue);
          if (_t(Ue) || rF(Ue) || _t(Ot) || rF(Ot))
            ((R || (R = new Set())).add(Ue), (N || (N = new Set())).add(Ue));
          else {
            if (sse(e.getCurrentProgram(), Ue) || El(Ue, ".map")) return !1;
            ((R || (R = new Set())).add(Ue), (N || (N = new Set())).add(Ue));
            const nt = Bw(Ue, !0);
            nt && (N || (N = new Set())).add(nt);
          }
        }
        e.scheduleInvalidateResolutionsOfFailedLookupLocations();
      }
      function ot() {
        const Ue = j.getPackageJsonInfoCache().getInternalMap();
        Ue &&
          (R || N || P) &&
          Ue.forEach((Rt, It) => (ht(It) ? Ue.delete(It) : void 0));
      }
      function Ft() {
        var Ue;
        if (k)
          return (
            (E = void 0),
            ot(),
            (R || N || P || A) && $o(q, le),
            (R = void 0),
            (N = void 0),
            (P = void 0),
            (A = void 0),
            !0
          );
        let Rt = !1;
        return (
          E &&
            ((Ue = e.getCurrentProgram()) == null ||
              Ue.getSourceFiles().forEach((It) => {
                yt(It.packageJsonLocations, (Ot) => E.has(Ot)) &&
                  ((o ?? (o = new Set())).add(It.path), (Rt = !0));
              }),
            (E = void 0)),
          (!R && !N && !P && !A) ||
            ((Rt = $o(u, le) || Rt),
            ot(),
            (R = void 0),
            (N = void 0),
            (P = void 0),
            (Rt = $o(d, ne) || Rt),
            (A = void 0)),
          Rt
        );
      }
      function le(Ue) {
        var Rt;
        return ne(Ue)
          ? !0
          : !R && !N && !P
            ? !1
            : ((Rt = Ue.failedLookupLocations) == null
                ? void 0
                : Rt.some((It) => ht(e.toPath(It)))) ||
              (!!Ue.alternateResult && ht(e.toPath(Ue.alternateResult)));
      }
      function ht(Ue) {
        return (
          R?.has(Ue) ||
          cr(N?.keys() || [], (Rt) => (po(Ue, Rt) ? !0 : void 0)) ||
          cr(P?.keys() || [], (Rt) =>
            Ue.length > Rt.length &&
            po(Ue, Rt) &&
            (I9(Rt) || Ue[Rt.length] === Js)
              ? !0
              : void 0,
          )
        );
      }
      function ne(Ue) {
        var Rt;
        return (
          !!A &&
          ((Rt = Ue.affectingLocations) == null
            ? void 0
            : Rt.some((It) => A.has(It)))
        );
      }
      function Fe() {
        hp(Je, Bm);
      }
      function it(Ue) {
        return Lt(Ue)
          ? e.watchTypeRootsDirectory(
              Ue,
              (Rt) => {
                const It = e.toPath(Rt);
                (O && O.addOrDeleteFileOrDirectory(Rt, It),
                  (g = !0),
                  e.onChangedAutomaticTypeDirectiveNames());
                const Ot = zse(
                  Ue,
                  e.toPath(Ue),
                  de,
                  fe,
                  ve,
                  W,
                  e.preferNonRecursiveWatch,
                  (nt) => ie.has(nt) || Ce.has(nt),
                );
                Ot && Uo(It, Ot === It);
              },
              1,
            )
          : XD;
      }
      function dt() {
        const Ue = e.getCompilationSettings();
        if (Ue.types) {
          Fe();
          return;
        }
        const Rt = nP(Ue, { getCurrentDirectory: W });
        Rt
          ? yM(Je, new Set(Rt), { createNewValue: it, onDeleteValue: Bm })
          : Fe();
      }
      function Lt(Ue) {
        return e.getCompilationSettings().typeRoots ? !0 : Ose(e.toPath(Ue));
      }
    }
    function Qqe(e) {
      var t, r;
      return !!(
        ((t = e.resolvedModule) != null && t.originalPath) ||
        ((r = e.resolvedTypeReferenceDirective) != null && r.originalPath)
      );
    }
    var JAe = jc
      ? {
          getCurrentDirectory: () => jc.getCurrentDirectory(),
          getNewLine: () => jc.newLine,
          getCanonicalFileName: Fd(jc.useCaseSensitiveFileNames),
        }
      : void 0;
    function dx(e, t) {
      const r =
        e === jc && JAe
          ? JAe
          : {
              getCurrentDirectory: () => e.getCurrentDirectory(),
              getNewLine: () => e.newLine,
              getCanonicalFileName: Fd(e.useCaseSensitiveFileNames),
            };
      if (!t) return (o) => e.write(yH(o, r));
      const i = new Array(1);
      return (o) => {
        ((i[0] = o), e.write(mse(i, r) + r.getNewLine()), (i[0] = void 0));
      };
    }
    function KAe(e, t, r) {
      return e.clearScreen &&
        !r.preserveWatchOutput &&
        !r.extendedDiagnostics &&
        !r.diagnostics &&
        jn(XAe, t.code)
        ? (e.clearScreen(), !0)
        : !1;
    }
    var XAe = [
      f.Starting_compilation_in_watch_mode.code,
      f.File_change_detected_Starting_incremental_compilation.code,
    ];
    function Zqe(e, t) {
      return jn(XAe, e.code) ? t + t : t;
    }
    function cO(e) {
      return e.now
        ? e
            .now()
            .toLocaleTimeString("en-US", { timeZone: "UTC" })
            .replace(" ", " ")
        : new Date().toLocaleTimeString();
    }
    function zH(e, t) {
      return t
        ? (r, i, o) => {
            KAe(e, r, o);
            let s = `[${$S(cO(e), "\x1B[90m")}] `;
            ((s += `${a_(r.messageText, e.newLine)}${i + i}`), e.write(s));
          }
        : (r, i, o) => {
            let s = "";
            (KAe(e, r, o) || (s += i),
              (s += `${cO(e)} - `),
              (s += `${a_(r.messageText, e.newLine)}${Zqe(r, i)}`),
              e.write(s));
          };
    }
    function Vse(e, t, r, i, o, s) {
      const l = o;
      l.onUnRecoverableConfigFileDiagnostic = (d) => QAe(o, s, d);
      const u = Lw(e, t, l, r, i);
      return ((l.onUnRecoverableConfigFileDiagnostic = void 0), u);
    }
    function G3(e) {
      return Io(e, (t) => t.category === 1);
    }
    function V3(e) {
      return Un(e, (r) => r.category === 1)
        .map((r) => {
          if (r.file !== void 0) return `${r.file.fileName}`;
        })
        .map((r) => {
          if (r === void 0) return;
          const i = hn(e, (o) => o.file !== void 0 && o.file.fileName === r);
          if (i !== void 0) {
            const { line: o } = ca(i.file, i.start);
            return { fileName: r, line: o + 1 };
          }
        });
    }
    function BH(e) {
      return e === 1
        ? f.Found_1_error_Watching_for_file_changes
        : f.Found_0_errors_Watching_for_file_changes;
    }
    function YAe(e, t) {
      const r = $S(":" + e.line, "\x1B[90m");
      return SN(e.fileName) && SN(t)
        ? cf(t, e.fileName, !1) + r
        : e.fileName + r;
    }
    function GH(e, t, r, i) {
      if (e === 0) return "";
      const o = t.filter((h) => h !== void 0),
        s = o
          .map((h) => `${h.fileName}:${h.line}`)
          .filter((h, g, E) => E.indexOf(h) === g),
        l = o[0] && YAe(o[0], i.getCurrentDirectory());
      let u;
      e === 1
        ? (u = t[0] !== void 0 ? [f.Found_1_error_in_0, l] : [f.Found_1_error])
        : (u =
            s.length === 0
              ? [f.Found_0_errors, e]
              : s.length === 1
                ? [f.Found_0_errors_in_the_same_file_starting_at_Colon_1, e, l]
                : [f.Found_0_errors_in_1_files, e, s.length]);
      const d = Il(...u),
        _ = s.length > 1 ? eJe(o, i) : "";
      return `${r}${a_(d.messageText, r)}${r}${r}${_}`;
    }
    function eJe(e, t) {
      const r = e.filter(
        (g, E, A) => E === A.findIndex((R) => R?.fileName === g?.fileName),
      );
      if (r.length === 0) return "";
      const i = (g) => Math.log(g) * Math.LOG10E + 1,
        o = r.map((g) => [g, Io(e, (E) => E.fileName === g.fileName)]),
        s = qB(o, 0, (g) => g[1]),
        l = f.Errors_Files.message,
        u = l.split(" ")[0].length,
        d = Math.max(u, i(s)),
        _ = Math.max(i(s) - u, 0);
      let h = "";
      return (
        (h +=
          " ".repeat(_) +
          l +
          `
`),
        o.forEach((g) => {
          const [E, A] = g,
            R = (Math.log(A) * Math.LOG10E + 1) | 0,
            N = R < d ? " ".repeat(d - R) : "",
            P = YAe(E, t.getCurrentDirectory());
          h += `${N}${A}  ${P}
`;
        }),
        h
      );
    }
    function VH(e) {
      return !!e.state;
    }
    function tJe(e, t) {
      const r = e.getCompilerOptions();
      r.explainFiles
        ? jH(VH(e) ? e.getProgram() : e, t)
        : (r.listFiles || r.listFilesOnly) &&
          Ye(e.getSourceFiles(), (i) => {
            t(i.fileName);
          });
    }
    function jH(e, t) {
      var r, i;
      const o = e.getFileIncludeReasons(),
        s = (l) => EN(l, e.getCurrentDirectory(), e.getCanonicalFileName);
      for (const l of e.getSourceFiles())
        (t(`${KD(l, s)}`),
          (r = o.get(l.path)) == null ||
            r.forEach((u) => t(`  ${JH(e, u, s).messageText}`)),
          (i = UH(l, e.getCompilerOptionsForFile(l), s)) == null ||
            i.forEach((u) => t(`  ${u.messageText}`)));
    }
    function UH(e, t, r) {
      var i;
      let o;
      if (
        (e.path !== e.resolvedPath &&
          (o ?? (o = [])).push(
            qo(
              void 0,
              f.File_is_output_of_project_reference_source_0,
              KD(e.originalFileName, r),
            ),
          ),
        e.redirectInfo &&
          (o ?? (o = [])).push(
            qo(
              void 0,
              f.File_redirects_to_file_0,
              KD(e.redirectInfo.redirectTarget, r),
            ),
          ),
        Pp(e))
      )
        switch (O1(e, t)) {
          case 99:
            e.packageJsonScope &&
              (o ?? (o = [])).push(
                qo(
                  void 0,
                  f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,
                  KD(Ba(e.packageJsonLocations), r),
                ),
              );
            break;
          case 1:
            e.packageJsonScope
              ? (o ?? (o = [])).push(
                  qo(
                    void 0,
                    e.packageJsonScope.contents.packageJsonContent.type
                      ? f.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module
                      : f.File_is_CommonJS_module_because_0_does_not_have_field_type,
                    KD(Ba(e.packageJsonLocations), r),
                  ),
                )
              : (i = e.packageJsonLocations) != null &&
                i.length &&
                (o ?? (o = [])).push(
                  qo(
                    void 0,
                    f.File_is_CommonJS_module_because_package_json_was_not_found,
                  ),
                );
            break;
        }
      return o;
    }
    function HH(e, t) {
      var r;
      const i = e.getCompilerOptions().configFile;
      if (!((r = i?.configFileSpecs) != null && r.validatedFilesSpec)) return;
      const o = e.getCanonicalFileName(t),
        s = ci(To(i.fileName, e.getCurrentDirectory())),
        l = ho(
          i.configFileSpecs.validatedFilesSpec,
          (u) => e.getCanonicalFileName(To(u, s)) === o,
        );
      return l !== -1
        ? i.configFileSpecs.validatedFilesSpecBeforeSubstitution[l]
        : void 0;
    }
    function qH(e, t) {
      var r, i;
      const o = e.getCompilerOptions().configFile;
      if (!((r = o?.configFileSpecs) != null && r.validatedIncludeSpecs))
        return;
      if (o.configFileSpecs.isDefaultIncludeSpec) return !0;
      const s = El(t, ".json"),
        l = ci(To(o.fileName, e.getCurrentDirectory())),
        u = e.useCaseSensitiveFileNames(),
        d = ho(
          (i = o?.configFileSpecs) == null ? void 0 : i.validatedIncludeSpecs,
          (_) => {
            if (s && !el(_, ".json")) return !1;
            const h = OV(_, l, "files");
            return !!h && ov(`(?:${h})$`, u).test(t);
          },
        );
      return d !== -1
        ? o.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[d]
        : void 0;
    }
    function JH(e, t, r) {
      var i, o;
      const s = e.getCompilerOptions();
      if (d0(t)) {
        const l = bP(e, t),
          u = qD(l) ? l.file.text.substring(l.pos, l.end) : `"${l.text}"`;
        let d;
        switch (
          (C.assert(
            qD(l) || t.kind === 3,
            "Only synthetic references are imports",
          ),
          t.kind)
        ) {
          case 3:
            qD(l)
              ? (d = l.packageId
                  ? f.Imported_via_0_from_file_1_with_packageId_2
                  : f.Imported_via_0_from_file_1)
              : l.text === hb
                ? (d = l.packageId
                    ? f.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions
                    : f.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions)
                : (d = l.packageId
                    ? f.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions
                    : f.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions);
            break;
          case 4:
            (C.assert(!l.packageId), (d = f.Referenced_via_0_from_file_1));
            break;
          case 5:
            d = l.packageId
              ? f.Type_library_referenced_via_0_from_file_1_with_packageId_2
              : f.Type_library_referenced_via_0_from_file_1;
            break;
          case 7:
            (C.assert(!l.packageId),
              (d = f.Library_referenced_via_0_from_file_1));
            break;
          default:
            C.assertNever(t);
        }
        return qo(void 0, d, u, KD(l.file, r), l.packageId && wT(l.packageId));
      }
      switch (t.kind) {
        case 0:
          if (!((i = s.configFile) != null && i.configFileSpecs))
            return qo(void 0, f.Root_file_specified_for_compilation);
          const l = To(e.getRootFileNames()[t.index], e.getCurrentDirectory());
          if (HH(e, l))
            return qo(void 0, f.Part_of_files_list_in_tsconfig_json);
          const d = qH(e, l);
          return Bo(d)
            ? qo(
                void 0,
                f.Matched_by_include_pattern_0_in_1,
                d,
                KD(s.configFile, r),
              )
            : qo(
                void 0,
                d
                  ? f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk
                  : f.Root_file_specified_for_compilation,
              );
        case 1:
        case 2:
          const _ = t.kind === 2,
            h = C.checkDefined(
              (o = e.getResolvedProjectReferences()) == null
                ? void 0
                : o[t.index],
            );
          return qo(
            void 0,
            s.outFile
              ? _
                ? f.Output_from_referenced_project_0_included_because_1_specified
                : f.Source_from_referenced_project_0_included_because_1_specified
              : _
                ? f.Output_from_referenced_project_0_included_because_module_is_specified_as_none
                : f.Source_from_referenced_project_0_included_because_module_is_specified_as_none,
            KD(h.sourceFile.fileName, r),
            s.outFile ? "--outFile" : "--out",
          );
        case 8: {
          const g = s.types
            ? t.packageId
              ? [
                  f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,
                  t.typeReference,
                  wT(t.packageId),
                ]
              : [
                  f.Entry_point_of_type_library_0_specified_in_compilerOptions,
                  t.typeReference,
                ]
            : t.packageId
              ? [
                  f.Entry_point_for_implicit_type_library_0_with_packageId_1,
                  t.typeReference,
                  wT(t.packageId),
                ]
              : [f.Entry_point_for_implicit_type_library_0, t.typeReference];
          return qo(void 0, ...g);
        }
        case 6: {
          if (t.index !== void 0)
            return qo(
              void 0,
              f.Library_0_specified_in_compilerOptions,
              s.lib[t.index],
            );
          const g = W6(Ga(s)),
            E = g ? [f.Default_library_for_target_0, g] : [f.Default_library];
          return qo(void 0, ...E);
        }
        default:
          C.assertNever(t);
      }
    }
    function KD(e, t) {
      const r = Bo(e) ? e : e.fileName;
      return t ? t(r) : r;
    }
    function j3(e, t, r, i, o, s, l, u) {
      const d = e.getCompilerOptions(),
        _ = e.getConfigFileParsingDiagnostics().slice(),
        h = _.length;
      (Xr(_, e.getSyntacticDiagnostics(void 0, s)),
        _.length === h &&
          (Xr(_, e.getOptionsDiagnostics(s)),
          d.listFilesOnly ||
            (Xr(_, e.getGlobalDiagnostics(s)),
            _.length === h && Xr(_, e.getSemanticDiagnostics(void 0, s)),
            d.noEmit &&
              _p(d) &&
              _.length === h &&
              Xr(_, e.getDeclarationDiagnostics(void 0, s)))));
      const g = d.listFilesOnly
        ? { emitSkipped: !0, diagnostics: ae }
        : e.emit(void 0, o, s, l, u);
      Xr(_, g.diagnostics);
      const E = wR(_);
      if ((E.forEach(t), r)) {
        const A = e.getCurrentDirectory();
        (Ye(g.emittedFiles, (R) => {
          const N = To(R, A);
          r(`TSFILE: ${N}`);
        }),
          tJe(e, r));
      }
      return (i && i(G3(E), V3(E)), { emitResult: g, diagnostics: E });
    }
    function KH(e, t, r, i, o, s, l, u) {
      const { emitResult: d, diagnostics: _ } = j3(e, t, r, i, o, s, l, u);
      return d.emitSkipped && _.length > 0 ? 1 : _.length > 0 ? 2 : 0;
    }
    var XD = { close: gs },
      SP = () => XD;
    function XH(e = jc, t) {
      return {
        onWatchStatusChange: t || zH(e),
        watchFile: ia(e, e.watchFile) || SP,
        watchDirectory: ia(e, e.watchDirectory) || SP,
        setTimeout: ia(e, e.setTimeout) || gs,
        clearTimeout: ia(e, e.clearTimeout) || gs,
        preferNonRecursiveWatch: e.preferNonRecursiveWatch,
      };
    }
    var sd = {
      ConfigFile: "Config file",
      ExtendedConfigFile: "Extended config file",
      SourceFile: "Source file",
      MissingFile: "Missing file",
      WildcardDirectory: "Wild card directory",
      FailedLookupLocations: "Failed Lookup Locations",
      AffectingFileLocation: "File location affecting resolution",
      TypeRoots: "Type roots",
      ConfigFileOfReferencedProject: "Config file of referened project",
      ExtendedConfigOfReferencedProject:
        "Extended config file of referenced project",
      WildcardDirectoryOfReferencedProject:
        "Wild card directory of referenced project",
      PackageJson: "package.json file",
      ClosedScriptInfo: "Closed Script info",
      ConfigFileForInferredRoot: "Config file for the inferred project root",
      NodeModules:
        "node_modules for closed script infos and package.jsons affecting module specifier cache",
      MissingSourceMapFile: "Missing source map file",
      NoopConfigFileForInferredRoot:
        "Noop Config file for the inferred project root",
      MissingGeneratedFile: "Missing generated file",
      NodeModulesForModuleSpecifierCache:
        "node_modules for module specifier cache invalidation",
      TypingInstallerLocationFile: "File location for typing installer",
      TypingInstallerLocationDirectory:
        "Directory location for typing installer",
    };
    function YH(e, t) {
      const r = e.trace
          ? t.extendedDiagnostics
            ? 2
            : t.diagnostics
              ? 1
              : 0
          : 0,
        i = r !== 0 ? (s) => e.trace(s) : gs,
        o = fH(e, r, i);
      return ((o.writeLog = i), o);
    }
    function $H(e, t, r = e) {
      const i = e.useCaseSensitiveFileNames(),
        o = {
          getSourceFile: _H(
            (s, l) => (l ? e.readFile(s, l) : o.readFile(s)),
            void 0,
          ),
          getDefaultLibLocation: ia(e, e.getDefaultLibLocation),
          getDefaultLibFileName: (s) => e.getDefaultLibFileName(s),
          writeFile: gH(
            (s, l, u) => e.writeFile(s, l, u),
            (s) => e.createDirectory(s),
            (s) => e.directoryExists(s),
          ),
          getCurrentDirectory: Nu(() => e.getCurrentDirectory()),
          useCaseSensitiveFileNames: () => i,
          getCanonicalFileName: Fd(i),
          getNewLine: () => iv(t()),
          fileExists: (s) => e.fileExists(s),
          readFile: (s) => e.readFile(s),
          trace: ia(e, e.trace),
          directoryExists: ia(r, r.directoryExists),
          getDirectories: ia(r, r.getDirectories),
          realpath: ia(e, e.realpath),
          getEnvironmentVariable: ia(e, e.getEnvironmentVariable) || (() => ""),
          createHash: ia(e, e.createHash),
          readDirectory: ia(e, e.readDirectory),
          storeSignatureInfo: e.storeSignatureInfo,
          jsDocParsingMode: e.jsDocParsingMode,
        };
      return o;
    }
    function U3(e, t) {
      if (t.match(fae)) {
        let r = t.length,
          i = r;
        for (let o = r - 1; o >= 0; o--) {
          const s = t.charCodeAt(o);
          switch (s) {
            case 10:
              o && t.charCodeAt(o - 1) === 13 && o--;
            case 13:
              break;
            default:
              if (s < 127 || !eu(s)) {
                i = o;
                continue;
              }
              break;
          }
          const l = t.substring(i, r);
          if (l.match(BU)) {
            t = t.substring(0, i);
            break;
          } else if (!l.match(GU)) break;
          r = i;
        }
      }
      return (e.createHash || S2)(t);
    }
    function H3(e) {
      const t = e.getSourceFile;
      e.getSourceFile = (...r) => {
        const i = t.call(e, ...r);
        return (i && (i.version = U3(e, i.text)), i);
      };
    }
    function QH(e, t) {
      const r = Nu(() => ci(ya(e.getExecutingFilePath())));
      return {
        useCaseSensitiveFileNames: () => e.useCaseSensitiveFileNames,
        getNewLine: () => e.newLine,
        getCurrentDirectory: Nu(() => e.getCurrentDirectory()),
        getDefaultLibLocation: r,
        getDefaultLibFileName: (i) => Qr(r(), C2(i)),
        fileExists: (i) => e.fileExists(i),
        readFile: (i, o) => e.readFile(i, o),
        directoryExists: (i) => e.directoryExists(i),
        getDirectories: (i) => e.getDirectories(i),
        readDirectory: (i, o, s, l, u) => e.readDirectory(i, o, s, l, u),
        realpath: ia(e, e.realpath),
        getEnvironmentVariable: ia(e, e.getEnvironmentVariable),
        trace: (i) => e.write(i + e.newLine),
        createDirectory: (i) => e.createDirectory(i),
        writeFile: (i, o, s) => e.writeFile(i, o, s),
        createHash: ia(e, e.createHash),
        createProgram: t || wH,
        storeSignatureInfo: e.storeSignatureInfo,
        now: ia(e, e.now),
      };
    }
    function $Ae(e = jc, t, r, i) {
      const o = (l) => e.write(l + e.newLine),
        s = QH(e, t);
      return (
        UB(s, XH(e, i)),
        (s.afterProgramCreate = (l) => {
          const u = l.getCompilerOptions(),
            d = iv(u);
          j3(l, r, o, (_) => s.onWatchStatusChange(Il(BH(_), _), d, u, _));
        }),
        s
      );
    }
    function QAe(e, t, r) {
      (t(r), e.exit(1));
    }
    function ZH({
      configFileName: e,
      optionsToExtend: t,
      watchOptionsToExtend: r,
      extraFileExtensions: i,
      system: o,
      createProgram: s,
      reportDiagnostic: l,
      reportWatchStatus: u,
    }) {
      const d = l || dx(o),
        _ = $Ae(o, s, d, u);
      return (
        (_.onUnRecoverableConfigFileDiagnostic = (h) => QAe(o, d, h)),
        (_.configFileName = e),
        (_.optionsToExtend = t),
        (_.watchOptionsToExtend = r),
        (_.extraFileExtensions = i),
        _
      );
    }
    function eq({
      rootFiles: e,
      options: t,
      watchOptions: r,
      projectReferences: i,
      system: o,
      createProgram: s,
      reportDiagnostic: l,
      reportWatchStatus: u,
    }) {
      const d = $Ae(o, s, l || dx(o), u);
      return (
        (d.rootFiles = e),
        (d.options = t),
        (d.watchOptions = r),
        (d.projectReferences = i),
        d
      );
    }
    function jse(e) {
      const t = e.system || jc,
        r = e.host || (e.host = J3(e.options, t)),
        i = Use(e),
        o = KH(
          i,
          e.reportDiagnostic || dx(t),
          (s) => r.trace && r.trace(s),
          e.reportErrorSummary || e.options.pretty
            ? (s, l) => t.write(GH(s, l, t.newLine, r))
            : void 0,
        );
      return (
        e.afterProgramEmitAndDiagnostics && e.afterProgramEmitAndDiagnostics(i),
        o
      );
    }
    function q3(e, t) {
      const r = c0(e);
      if (!r) return;
      let i;
      if (t.getBuildInfo) i = t.getBuildInfo(r, e.configFilePath);
      else {
        const o = t.readFile(r);
        if (!o) return;
        i = cH(r, o);
      }
      if (!(!i || i.version !== Le || !sO(i))) return Lse(i, r, t);
    }
    function J3(e, t = jc) {
      const r = R3(e, void 0, t);
      return (
        (r.createHash = ia(t, t.createHash)),
        (r.storeSignatureInfo = t.storeSignatureInfo),
        H3(r),
        yP(r, (i) => ks(i, r.getCurrentDirectory(), r.getCanonicalFileName)),
        r
      );
    }
    function Use({
      rootNames: e,
      options: t,
      configFileParsingDiagnostics: r,
      projectReferences: i,
      host: o,
      createProgram: s,
    }) {
      ((o = o || J3(t)), (s = s || wH));
      const l = q3(t, o);
      return s(e, t, o, l, r, i);
    }
    function ZAe(e, t, r, i, o, s, l, u) {
      return Mo(e)
        ? eq({
            rootFiles: e,
            options: t,
            watchOptions: u,
            projectReferences: l,
            system: r,
            createProgram: i,
            reportDiagnostic: o,
            reportWatchStatus: s,
          })
        : ZH({
            configFileName: e,
            optionsToExtend: t,
            watchOptionsToExtend: l,
            extraFileExtensions: u,
            system: r,
            createProgram: i,
            reportDiagnostic: o,
            reportWatchStatus: s,
          });
    }
    function tq(e) {
      let t,
        r,
        i,
        o,
        s = new Map([[void 0, void 0]]),
        l,
        u,
        d,
        _,
        h = e.extendedConfigCache,
        g = !1;
      const E = new Map();
      let A,
        R = !1;
      const N = e.useCaseSensitiveFileNames(),
        P = e.getCurrentDirectory(),
        {
          configFileName: k,
          optionsToExtend: W = {},
          watchOptionsToExtend: O,
          extraFileExtensions: G,
          createProgram: j,
        } = e;
      let {
          rootFiles: J,
          options: Z,
          watchOptions: q,
          projectReferences: ye,
        } = e,
        ie,
        K,
        pe = !1,
        de = !1;
      const fe = k === void 0 ? void 0 : A3(e, P, N),
        ve = fe || e,
        xe = w3(e, ve);
      let X = Kn();
      (k &&
        e.configFileParsingResult &&
        (Mn(e.configFileParsingResult), (X = Kn())),
        Ni(f.Starting_compilation_in_watch_mode),
        k &&
          !e.configFileParsingResult &&
          ((X = iv(W)), C.assert(!J), Ia(), (X = Kn())),
        C.assert(Z),
        C.assert(J));
      const { watchFile: Ce, watchDirectory: Je, writeLog: Se } = YH(e, Z),
        re = Fd(N);
      Se(`Current directory: ${P} CaseSensitiveFileNames: ${N}`);
      let be;
      k && (be = Ce(k, dr, 2e3, q, sd.ConfigFile));
      const Ne = $H(e, () => Z, ve);
      H3(Ne);
      const Be = Ne.getSourceFile;
      ((Ne.getSourceFile = (It, ...Ot) => lo(It, _t(It), ...Ot)),
        (Ne.getSourceFileByPath = lo),
        (Ne.getNewLine = () => X),
        (Ne.fileExists = Di),
        (Ne.onReleaseOldSourceFile = Ai),
        (Ne.onReleaseParsedCommandLine = Ft),
        (Ne.toPath = _t),
        (Ne.getCompilationSettings = () => Z),
        (Ne.useSourceOfProjectReferenceRedirect = ia(
          e,
          e.useSourceOfProjectReferenceRedirect,
        )),
        (Ne.preferNonRecursiveWatch = e.preferNonRecursiveWatch),
        (Ne.watchDirectoryOfFailedLookupLocation = (It, Ot, nt) =>
          Je(It, Ot, nt, q, sd.FailedLookupLocations)),
        (Ne.watchAffectingFileLocation = (It, Ot) =>
          Ce(It, Ot, 2e3, q, sd.AffectingFileLocation)),
        (Ne.watchTypeRootsDirectory = (It, Ot, nt) =>
          Je(It, Ot, nt, q, sd.TypeRoots)),
        (Ne.getCachedDirectoryStructureHost = () => fe),
        (Ne.scheduleInvalidateResolutionsOfFailedLookupLocations = $e),
        (Ne.onInvalidatedResolution = mn),
        (Ne.onChangedAutomaticTypeDirectiveNames = mn),
        (Ne.fileIsOpen = Qg),
        (Ne.getCurrentProgram = at),
        (Ne.writeLog = Se),
        (Ne.getParsedCommandLine = Uo));
      const lt = FH(Ne, k ? ci(To(k, P)) : P, !1);
      ((Ne.resolveModuleNameLiterals = ia(e, e.resolveModuleNameLiterals)),
        (Ne.resolveModuleNames = ia(e, e.resolveModuleNames)),
        !Ne.resolveModuleNameLiterals &&
          !Ne.resolveModuleNames &&
          (Ne.resolveModuleNameLiterals =
            lt.resolveModuleNameLiterals.bind(lt)),
        (Ne.resolveTypeReferenceDirectiveReferences = ia(
          e,
          e.resolveTypeReferenceDirectiveReferences,
        )),
        (Ne.resolveTypeReferenceDirectives = ia(
          e,
          e.resolveTypeReferenceDirectives,
        )),
        !Ne.resolveTypeReferenceDirectiveReferences &&
          !Ne.resolveTypeReferenceDirectives &&
          (Ne.resolveTypeReferenceDirectiveReferences =
            lt.resolveTypeReferenceDirectiveReferences.bind(lt)),
        (Ne.resolveLibrary = e.resolveLibrary
          ? e.resolveLibrary.bind(e)
          : lt.resolveLibrary.bind(lt)),
        (Ne.getModuleResolutionCache =
          e.resolveModuleNameLiterals || e.resolveModuleNames
            ? ia(e, e.getModuleResolutionCache)
            : () => lt.getModuleResolutionCache()));
      const Re =
          !!e.resolveModuleNameLiterals ||
          !!e.resolveTypeReferenceDirectiveReferences ||
          !!e.resolveModuleNames ||
          !!e.resolveTypeReferenceDirectives
            ? ia(e, e.hasInvalidatedResolutions) || dS
            : Qg,
        _e = e.resolveLibrary
          ? ia(e, e.hasInvalidatedLibResolutions) || dS
          : Qg;
      return (
        (t = q3(Z, Ne)),
        Wt(),
        k
          ? {
              getCurrentProgram: We,
              getProgram: ai,
              close: je,
              getResolutionCache: Ge,
            }
          : {
              getCurrentProgram: We,
              getProgram: ai,
              updateRootFileNames: gn,
              close: je,
              getResolutionCache: Ge,
            }
      );
      function je() {
        (Ci(),
          lt.clear(),
          hp(E, (It) => {
            It &&
              It.fileWatcher &&
              (It.fileWatcher.close(), (It.fileWatcher = void 0));
          }),
          be && (be.close(), (be = void 0)),
          h?.clear(),
          (h = void 0),
          _ && (hp(_, Kf), (_ = void 0)),
          o && (hp(o, Kf), (o = void 0)),
          i && (hp(i, Bm), (i = void 0)),
          d &&
            (hp(d, (It) => {
              var Ot;
              ((Ot = It.watcher) == null || Ot.close(),
                (It.watcher = void 0),
                It.watchedDirectories && hp(It.watchedDirectories, Kf),
                (It.watchedDirectories = void 0));
            }),
            (d = void 0)),
          (t = void 0));
      }
      function Ge() {
        return lt;
      }
      function We() {
        return t;
      }
      function at() {
        return t && t.getProgramOrUndefined();
      }
      function Wt() {
        (Se("Synchronizing program"), C.assert(Z), C.assert(J), Ci());
        const It = We();
        R &&
          ((X = Kn()),
          It &&
            CF(It.getCompilerOptions(), Z) &&
            lt.onChangesAffectModuleResolution());
        const {
            hasInvalidatedResolutions: Ot,
            hasInvalidatedLibResolutions: nt,
          } = lt.createHasInvalidatedResolutions(Re, _e),
          {
            originalReadFile: Kt,
            originalFileExists: Tr,
            originalDirectoryExists: Oe,
            originalCreateDirectory: Nt,
            originalWriteFile: he,
            readFileWithCache: B,
          } = yP(Ne, _t);
        return (
          AH(
            at(),
            J,
            Z,
            (Ae) => Zr(Ae, B),
            (Ae) => Ne.fileExists(Ae),
            Ot,
            nt,
            Pr,
            Uo,
            ye,
          )
            ? de &&
              (g && Ni(f.File_change_detected_Starting_incremental_compilation),
              (t = j(void 0, void 0, Ne, t, K, ye)),
              (de = !1))
            : (g && Ni(f.File_change_detected_Starting_incremental_compilation),
              cn(Ot, nt)),
          (g = !1),
          e.afterProgramCreate && It !== t && e.afterProgramCreate(t),
          (Ne.readFile = Kt),
          (Ne.fileExists = Tr),
          (Ne.directoryExists = Oe),
          (Ne.createDirectory = Nt),
          (Ne.writeFile = he),
          s?.forEach((Ae, te) => {
            if (!te) (dt(), k && Ue(_t(k), Z, q, sd.ExtendedConfigFile));
            else {
              const xt = d?.get(te);
              xt && Rt(Ae, te, xt);
            }
          }),
          (s = void 0),
          t
        );
      }
      function cn(It, Ot) {
        (Se("CreatingProgramWith::"),
          Se(`  roots: ${JSON.stringify(J)}`),
          Se(`  options: ${JSON.stringify(Z)}`),
          ye && Se(`  projectReferences: ${JSON.stringify(ye)}`));
        const nt = R || !at();
        ((R = !1),
          (de = !1),
          lt.startCachingPerDirectoryResolution(),
          (Ne.hasInvalidatedResolutions = It),
          (Ne.hasInvalidatedLibResolutions = Ot),
          (Ne.hasChangedAutomaticTypeDirectiveNames = Pr));
        const Kt = at();
        if (
          ((t = j(J, Z, Ne, t, K, ye)),
          lt.finishCachingPerDirectoryResolution(t.getProgram(), Kt),
          pH(t.getProgram(), i || (i = new Map()), Fe),
          nt && lt.updateTypeRootsWatch(),
          A)
        ) {
          for (const Tr of A) i.has(Tr) || E.delete(Tr);
          A = void 0;
        }
      }
      function gn(It) {
        (C.assert(
          !k,
          "Cannot update root file names with config file watch mode",
        ),
          (J = It),
          mn());
      }
      function Kn() {
        return iv(Z || W);
      }
      function _t(It) {
        return ks(It, P, re);
      }
      function en(It) {
        return typeof It == "boolean";
      }
      function ir(It) {
        return typeof It.version == "boolean";
      }
      function Di(It) {
        const Ot = _t(It);
        return en(E.get(Ot)) ? !1 : ve.fileExists(It);
      }
      function lo(It, Ot, nt, Kt, Tr) {
        const Oe = E.get(Ot);
        if (en(Oe)) return;
        const Nt = typeof nt == "object" ? nt.impliedNodeFormat : void 0;
        if (
          Oe === void 0 ||
          Tr ||
          ir(Oe) ||
          Oe.sourceFile.impliedNodeFormat !== Nt
        ) {
          const he = Be(It, nt, Kt);
          if (Oe)
            he
              ? ((Oe.sourceFile = he),
                (Oe.version = he.version),
                Oe.fileWatcher ||
                  (Oe.fileWatcher = le(Ot, It, ht, 250, q, sd.SourceFile)))
              : (Oe.fileWatcher && Oe.fileWatcher.close(), E.set(Ot, !1));
          else if (he) {
            const B = le(Ot, It, ht, 250, q, sd.SourceFile);
            E.set(Ot, { sourceFile: he, version: he.version, fileWatcher: B });
          } else E.set(Ot, !1);
          return he;
        }
        return Oe.sourceFile;
      }
      function zt(It) {
        const Ot = E.get(It);
        Ot !== void 0 &&
          (en(Ot) ? E.set(It, { version: !1 }) : (Ot.version = !1));
      }
      function Zr(It, Ot) {
        const nt = E.get(It);
        if (!nt) return;
        if (nt.version) return nt.version;
        const Kt = Ot(It);
        return Kt !== void 0 ? U3(Ne, Kt) : void 0;
      }
      function Ai(It, Ot, nt) {
        const Kt = E.get(It.resolvedPath);
        Kt !== void 0 &&
          (en(Kt)
            ? (A || (A = [])).push(It.path)
            : Kt.sourceFile === It &&
              (Kt.fileWatcher && Kt.fileWatcher.close(),
              E.delete(It.resolvedPath),
              nt || lt.removeResolutionsOfFile(It.path)));
      }
      function Ni(It) {
        e.onWatchStatusChange && e.onWatchStatusChange(Il(It), X, Z || W);
      }
      function Pr() {
        return lt.hasChangedAutomaticTypeDirectiveNames();
      }
      function Ci() {
        return u ? (e.clearTimeout(u), (u = void 0), !0) : !1;
      }
      function $e() {
        if (!e.setTimeout || !e.clearTimeout)
          return lt.invalidateResolutionsOfFailedLookupLocations();
        const It = Ci();
        (Se(
          `Scheduling invalidateFailedLookup${It ? ", Cancelled earlier one" : ""}`,
        ),
          (u = e.setTimeout(
            At,
            250,
            "timerToInvalidateFailedLookupResolutions",
          )));
      }
      function At() {
        ((u = void 0),
          lt.invalidateResolutionsOfFailedLookupLocations() && mn());
      }
      function mn() {
        !e.setTimeout ||
          !e.clearTimeout ||
          (l && e.clearTimeout(l),
          Se("Scheduling update"),
          (l = e.setTimeout(ri, 250, "timerToUpdateProgram")));
      }
      function dr() {
        (C.assert(!!k), (r = 2), mn());
      }
      function ri() {
        ((l = void 0), (g = !0), ai());
      }
      function ai() {
        switch (r) {
          case 1:
            qi();
            break;
          case 2:
            $o();
            break;
          default:
            Wt();
            break;
        }
        return We();
      }
      function qi() {
        (Se("Reloading new file names and options"),
          C.assert(Z),
          C.assert(k),
          (r = 0),
          (J = eP(Z.configFile.configFileSpecs, To(ci(k), P), Z, xe, G)),
          Y4(J, To(k, P), Z.configFile.configFileSpecs, K, pe) && (de = !0),
          Wt());
      }
      function $o() {
        (C.assert(k),
          Se(`Reloading config file: ${k}`),
          (r = 0),
          fe && fe.clearCache(),
          Ia(),
          (R = !0),
          (s ?? (s = new Map())).set(void 0, void 0),
          Wt());
      }
      function Ia() {
        (C.assert(k), Mn(Lw(k, W, xe, h || (h = new Map()), O, G)));
      }
      function Mn(It) {
        ((J = It.fileNames),
          (Z = It.options),
          (q = It.watchOptions),
          (ye = It.projectReferences),
          (ie = It.wildcardDirectories),
          (K = QS(It).slice()),
          (pe = Fw(It.raw)),
          (de = !0));
      }
      function Uo(It) {
        const Ot = _t(It);
        let nt = d?.get(Ot);
        if (nt) {
          if (!nt.updateLevel) return nt.parsedCommandLine;
          if (
            nt.parsedCommandLine &&
            nt.updateLevel === 1 &&
            !e.getParsedCommandLine
          ) {
            (Se("Reloading new file names and options"), C.assert(Z));
            const Tr = eP(
              nt.parsedCommandLine.options.configFile.configFileSpecs,
              To(ci(It), P),
              Z,
              xe,
            );
            return (
              (nt.parsedCommandLine = {
                ...nt.parsedCommandLine,
                fileNames: Tr,
              }),
              (nt.updateLevel = void 0),
              nt.parsedCommandLine
            );
          }
        }
        Se(`Loading config file: ${It}`);
        const Kt = e.getParsedCommandLine ? e.getParsedCommandLine(It) : ot(It);
        return (
          nt
            ? ((nt.parsedCommandLine = Kt), (nt.updateLevel = void 0))
            : (d || (d = new Map())).set(Ot, (nt = { parsedCommandLine: Kt })),
          (s ?? (s = new Map())).set(Ot, It),
          Kt
        );
      }
      function ot(It) {
        const Ot = xe.onUnRecoverableConfigFileDiagnostic;
        xe.onUnRecoverableConfigFileDiagnostic = gs;
        const nt = Lw(It, void 0, xe, h || (h = new Map()), O);
        return ((xe.onUnRecoverableConfigFileDiagnostic = Ot), nt);
      }
      function Ft(It) {
        var Ot;
        const nt = _t(It),
          Kt = d?.get(nt);
        Kt &&
          (d.delete(nt),
          Kt.watchedDirectories && hp(Kt.watchedDirectories, Kf),
          (Ot = Kt.watcher) == null || Ot.close(),
          uH(nt, _));
      }
      function le(It, Ot, nt, Kt, Tr, Oe) {
        return Ce(Ot, (Nt, he) => nt(Nt, he, It), Kt, Tr, Oe);
      }
      function ht(It, Ot, nt) {
        (ne(It, nt, Ot),
          Ot === 2 && E.has(nt) && lt.invalidateResolutionOfFile(nt),
          zt(nt),
          mn());
      }
      function ne(It, Ot, nt) {
        fe && fe.addOrDeleteFile(It, Ot, nt);
      }
      function Fe(It, Ot) {
        return d?.has(It) ? XD : le(It, Ot, it, 500, q, sd.MissingFile);
      }
      function it(It, Ot, nt) {
        (ne(It, nt, Ot),
          Ot === 0 &&
            i.has(nt) &&
            (i.get(nt).close(), i.delete(nt), zt(nt), mn()));
      }
      function dt() {
        eO(o || (o = new Map()), ie, Lt);
      }
      function Lt(It, Ot) {
        return Je(
          It,
          (nt) => {
            (C.assert(k), C.assert(Z));
            const Kt = _t(nt);
            (fe && fe.addOrDeleteFileOrDirectory(nt, Kt),
              zt(Kt),
              !tO({
                watchedDirPath: _t(It),
                fileOrDirectory: nt,
                fileOrDirectoryPath: Kt,
                configFileName: k,
                extraFileExtensions: G,
                options: Z,
                program: We() || J,
                currentDirectory: P,
                useCaseSensitiveFileNames: N,
                writeLog: Se,
                toPath: _t,
              }) &&
                r !== 2 &&
                ((r = 1), mn()));
          },
          Ot,
          q,
          sd.WildcardDirectory,
        );
      }
      function Ue(It, Ot, nt, Kt) {
        I3(
          It,
          Ot,
          _ || (_ = new Map()),
          (Tr, Oe) =>
            Ce(
              Tr,
              (Nt, he) => {
                var B;
                (ne(Tr, Oe, he), h && x3(h, Oe, _t));
                const Ae = (B = _.get(Oe)) == null ? void 0 : B.projects;
                Ae?.size &&
                  Ae.forEach((te) => {
                    if (k && _t(k) === te) r = 2;
                    else {
                      const xt = d?.get(te);
                      (xt && (xt.updateLevel = 2),
                        lt.removeResolutionsFromProjectReferenceRedirects(te));
                    }
                    mn();
                  });
              },
              2e3,
              nt,
              Kt,
            ),
          _t,
        );
      }
      function Rt(It, Ot, nt) {
        var Kt, Tr, Oe, Nt;
        (nt.watcher ||
          (nt.watcher = Ce(
            It,
            (he, B) => {
              ne(It, Ot, B);
              const Ae = d?.get(Ot);
              (Ae && (Ae.updateLevel = 2),
                lt.removeResolutionsFromProjectReferenceRedirects(Ot),
                mn());
            },
            2e3,
            ((Kt = nt.parsedCommandLine) == null ? void 0 : Kt.watchOptions) ||
              q,
            sd.ConfigFileOfReferencedProject,
          )),
          eO(
            nt.watchedDirectories || (nt.watchedDirectories = new Map()),
            (Tr = nt.parsedCommandLine) == null
              ? void 0
              : Tr.wildcardDirectories,
            (he, B) => {
              var Ae;
              return Je(
                he,
                (te) => {
                  const xt = _t(te);
                  (fe && fe.addOrDeleteFileOrDirectory(te, xt), zt(xt));
                  const Xt = d?.get(Ot);
                  Xt?.parsedCommandLine &&
                    (tO({
                      watchedDirPath: _t(he),
                      fileOrDirectory: te,
                      fileOrDirectoryPath: xt,
                      configFileName: It,
                      options: Xt.parsedCommandLine.options,
                      program: Xt.parsedCommandLine.fileNames,
                      currentDirectory: P,
                      useCaseSensitiveFileNames: N,
                      writeLog: Se,
                      toPath: _t,
                    }) ||
                      (Xt.updateLevel !== 2 && ((Xt.updateLevel = 1), mn())));
                },
                B,
                ((Ae = nt.parsedCommandLine) == null
                  ? void 0
                  : Ae.watchOptions) || q,
                sd.WildcardDirectoryOfReferencedProject,
              );
            },
          ),
          Ue(
            Ot,
            (Oe = nt.parsedCommandLine) == null ? void 0 : Oe.options,
            ((Nt = nt.parsedCommandLine) == null ? void 0 : Nt.watchOptions) ||
              q,
            sd.ExtendedConfigOfReferencedProject,
          ));
      }
    }
    var Hse = ((e) => (
      (e[(e.Unbuildable = 0)] = "Unbuildable"),
      (e[(e.UpToDate = 1)] = "UpToDate"),
      (e[(e.UpToDateWithUpstreamTypes = 2)] = "UpToDateWithUpstreamTypes"),
      (e[(e.OutputMissing = 3)] = "OutputMissing"),
      (e[(e.ErrorReadingFile = 4)] = "ErrorReadingFile"),
      (e[(e.OutOfDateWithSelf = 5)] = "OutOfDateWithSelf"),
      (e[(e.OutOfDateWithUpstream = 6)] = "OutOfDateWithUpstream"),
      (e[(e.OutOfDateBuildInfoWithPendingEmit = 7)] =
        "OutOfDateBuildInfoWithPendingEmit"),
      (e[(e.OutOfDateBuildInfoWithErrors = 8)] =
        "OutOfDateBuildInfoWithErrors"),
      (e[(e.OutOfDateOptions = 9)] = "OutOfDateOptions"),
      (e[(e.OutOfDateRoots = 10)] = "OutOfDateRoots"),
      (e[(e.UpstreamOutOfDate = 11)] = "UpstreamOutOfDate"),
      (e[(e.UpstreamBlocked = 12)] = "UpstreamBlocked"),
      (e[(e.ComputingUpstream = 13)] = "ComputingUpstream"),
      (e[(e.TsVersionOutputOfDate = 14)] = "TsVersionOutputOfDate"),
      (e[(e.UpToDateWithInputFileText = 15)] = "UpToDateWithInputFileText"),
      (e[(e.ContainerOnly = 16)] = "ContainerOnly"),
      (e[(e.ForceBuild = 17)] = "ForceBuild"),
      e
    ))(Hse || {});
    function nq(e) {
      return El(e, ".json") ? e : Qr(e, "tsconfig.json");
    }
    var nJe = new Date(-864e13);
    function rJe(e, t, r) {
      const i = e.get(t);
      let o;
      return (i || ((o = r()), e.set(t, o)), i || o);
    }
    function qse(e, t) {
      return rJe(e, t, () => new Map());
    }
    function rq(e) {
      return e.now ? e.now() : new Date();
    }
    function ux(e) {
      return !!e && !!e.buildOrder;
    }
    function dO(e) {
      return ux(e) ? e.buildOrder : e;
    }
    function K3(e, t) {
      return (r) => {
        let i = t ? `[${$S(cO(e), "\x1B[90m")}] ` : `${cO(e)} - `;
        ((i += `${a_(r.messageText, e.newLine)}${e.newLine + e.newLine}`),
          e.write(i));
      };
    }
    function eIe(e, t, r, i) {
      const o = QH(e, t);
      return (
        (o.getModifiedTime = e.getModifiedTime
          ? (s) => e.getModifiedTime(s)
          : uS),
        (o.setModifiedTime = e.setModifiedTime
          ? (s, l) => e.setModifiedTime(s, l)
          : gs),
        (o.deleteFile = e.deleteFile ? (s) => e.deleteFile(s) : gs),
        (o.reportDiagnostic = r || dx(e)),
        (o.reportSolutionBuilderStatus = i || K3(e)),
        (o.now = ia(e, e.now)),
        o
      );
    }
    function Jse(e = jc, t, r, i, o) {
      const s = eIe(e, t, r, i);
      return ((s.reportErrorSummary = o), s);
    }
    function Kse(e = jc, t, r, i, o) {
      const s = eIe(e, t, r, i),
        l = XH(e, o);
      return (UB(s, l), s);
    }
    function iJe(e) {
      const t = {};
      return (
        z4.forEach((r) => {
          Rs(e, r.name) && (t[r.name] = e[r.name]);
        }),
        (t.tscBuild = !0),
        t
      );
    }
    function Xse(e, t, r) {
      return TIe(!1, e, t, r);
    }
    function Yse(e, t, r, i) {
      return TIe(!0, e, t, r, i);
    }
    function oJe(e, t, r, i, o) {
      const s = t,
        l = t,
        u = iJe(i),
        d = $H(s, () => N.projectCompilerOptions);
      (H3(d),
        (d.getParsedCommandLine = (P) => YD(N, P, B_(N, P))),
        (d.resolveModuleNameLiterals = ia(s, s.resolveModuleNameLiterals)),
        (d.resolveTypeReferenceDirectiveReferences = ia(
          s,
          s.resolveTypeReferenceDirectiveReferences,
        )),
        (d.resolveLibrary = ia(s, s.resolveLibrary)),
        (d.resolveModuleNames = ia(s, s.resolveModuleNames)),
        (d.resolveTypeReferenceDirectives = ia(
          s,
          s.resolveTypeReferenceDirectives,
        )),
        (d.getModuleResolutionCache = ia(s, s.getModuleResolutionCache)));
      let _, h;
      (!d.resolveModuleNameLiterals &&
        !d.resolveModuleNames &&
        ((_ = zD(d.getCurrentDirectory(), d.getCanonicalFileName)),
        (d.resolveModuleNameLiterals = (P, k, W, O, G) =>
          rO(P, k, W, O, G, s, _, SH)),
        (d.getModuleResolutionCache = () => _)),
        !d.resolveTypeReferenceDirectiveReferences &&
          !d.resolveTypeReferenceDirectives &&
          ((h = r3(
            d.getCurrentDirectory(),
            d.getCanonicalFileName,
            void 0,
            _?.getPackageJsonInfoCache(),
            _?.optionsToRedirectsKey,
          )),
          (d.resolveTypeReferenceDirectiveReferences = (P, k, W, O, G) =>
            rO(P, k, W, O, G, s, h, N3))));
      let g;
      (d.resolveLibrary ||
        ((g = zD(
          d.getCurrentDirectory(),
          d.getCanonicalFileName,
          void 0,
          _?.getPackageJsonInfoCache(),
        )),
        (d.resolveLibrary = (P, k, W) => i3(P, k, W, s, g))),
        (d.getBuildInfo = (P, k) => pIe(N, P, B_(N, k), void 0)));
      const { watchFile: E, watchDirectory: A, writeLog: R } = YH(l, i),
        N = {
          host: s,
          hostWithWatch: l,
          parseConfigFileHost: w3(s),
          write: ia(s, s.trace),
          options: i,
          baseCompilerOptions: u,
          rootNames: r,
          baseWatchOptions: o,
          resolvedConfigFilePaths: new Map(),
          configFileCache: new Map(),
          projectStatus: new Map(),
          extendedConfigCache: new Map(),
          buildInfoCache: new Map(),
          outputTimeStamps: new Map(),
          builderPrograms: new Map(),
          diagnostics: new Map(),
          projectPendingBuild: new Map(),
          projectErrorsReported: new Map(),
          compilerHost: d,
          moduleResolutionCache: _,
          typeReferenceDirectiveResolutionCache: h,
          libraryResolutionCache: g,
          buildOrder: void 0,
          readFileWithCache: (P) => s.readFile(P),
          projectCompilerOptions: u,
          cache: void 0,
          allProjectBuildPending: !0,
          needsSummary: !0,
          watchAllProjectsPending: e,
          watch: e,
          allWatchedWildcardDirectories: new Map(),
          allWatchedInputFiles: new Map(),
          allWatchedConfigFiles: new Map(),
          allWatchedExtendedConfigFiles: new Map(),
          allWatchedPackageJsonFiles: new Map(),
          filesWatched: new Map(),
          lastCachedPackageJsonLookups: new Map(),
          timerToBuildInvalidatedProject: void 0,
          reportFileChangeDetected: !1,
          watchFile: E,
          watchDirectory: A,
          writeLog: R,
        };
      return N;
    }
    function Hm(e, t) {
      return ks(
        t,
        e.compilerHost.getCurrentDirectory(),
        e.compilerHost.getCanonicalFileName,
      );
    }
    function B_(e, t) {
      const { resolvedConfigFilePaths: r } = e,
        i = r.get(t);
      if (i !== void 0) return i;
      const o = Hm(e, t);
      return (r.set(t, o), o);
    }
    function tIe(e) {
      return !!e.options;
    }
    function aJe(e, t) {
      const r = e.configFileCache.get(t);
      return r && tIe(r) ? r : void 0;
    }
    function YD(e, t, r) {
      const { configFileCache: i } = e,
        o = i.get(r);
      if (o) return tIe(o) ? o : void 0;
      Rl("SolutionBuilder::beforeConfigFileParsing");
      let s;
      const {
        parseConfigFileHost: l,
        baseCompilerOptions: u,
        baseWatchOptions: d,
        extendedConfigCache: _,
        host: h,
      } = e;
      let g;
      return (
        h.getParsedCommandLine
          ? ((g = h.getParsedCommandLine(t)),
            g || (s = Il(f.File_0_not_found, t)))
          : ((l.onUnRecoverableConfigFileDiagnostic = (E) => (s = E)),
            (g = Lw(t, u, l, _, d)),
            (l.onUnRecoverableConfigFileDiagnostic = gs)),
        i.set(r, g || s),
        Rl("SolutionBuilder::afterConfigFileParsing"),
        wf(
          "SolutionBuilder::Config file parsing",
          "SolutionBuilder::beforeConfigFileParsing",
          "SolutionBuilder::afterConfigFileParsing",
        ),
        g
      );
    }
    function uO(e, t) {
      return nq(ab(e.compilerHost.getCurrentDirectory(), t));
    }
    function nIe(e, t) {
      const r = new Map(),
        i = new Map(),
        o = [];
      let s, l;
      for (const d of t) u(d);
      return l ? { buildOrder: s || ae, circularDiagnostics: l } : s || ae;
      function u(d, _) {
        const h = B_(e, d);
        if (i.has(h)) return;
        if (r.has(h)) {
          _ ||
            (l || (l = [])).push(
              Il(
                f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,
                o.join(`\r
`),
              ),
            );
          return;
        }
        (r.set(h, !0), o.push(d));
        const g = YD(e, d, h);
        if (g && g.projectReferences)
          for (const E of g.projectReferences) {
            const A = uO(e, E.path);
            u(A, _ || E.circular);
          }
        (o.pop(), i.set(h, !0), (s || (s = [])).push(d));
      }
    }
    function X3(e) {
      return e.buildOrder || sJe(e);
    }
    function sJe(e) {
      const t = nIe(
        e,
        e.rootNames.map((o) => uO(e, o)),
      );
      e.resolvedConfigFilePaths.clear();
      const r = new Set(dO(t).map((o) => B_(e, o))),
        i = { onDeleteValue: gs };
      return (
        vg(e.configFileCache, r, i),
        vg(e.projectStatus, r, i),
        vg(e.builderPrograms, r, i),
        vg(e.diagnostics, r, i),
        vg(e.projectPendingBuild, r, i),
        vg(e.projectErrorsReported, r, i),
        vg(e.buildInfoCache, r, i),
        vg(e.outputTimeStamps, r, i),
        vg(e.lastCachedPackageJsonLookups, r, i),
        e.watch &&
          (vg(e.allWatchedConfigFiles, r, { onDeleteValue: Bm }),
          e.allWatchedExtendedConfigFiles.forEach((o) => {
            (o.projects.forEach((s) => {
              r.has(s) || o.projects.delete(s);
            }),
              o.close());
          }),
          vg(e.allWatchedWildcardDirectories, r, {
            onDeleteValue: (o) => o.forEach(Kf),
          }),
          vg(e.allWatchedInputFiles, r, {
            onDeleteValue: (o) => o.forEach(Bm),
          }),
          vg(e.allWatchedPackageJsonFiles, r, {
            onDeleteValue: (o) => o.forEach(Bm),
          })),
        (e.buildOrder = t)
      );
    }
    function rIe(e, t, r) {
      const i = t && uO(e, t),
        o = X3(e);
      if (ux(o)) return o;
      if (i) {
        const l = B_(e, i);
        if (ho(o, (d) => B_(e, d) === l) === -1) return;
      }
      const s = i ? nIe(e, [i]) : o;
      return (
        C.assert(!ux(s)),
        C.assert(!r || i !== void 0),
        C.assert(!r || s[s.length - 1] === i),
        r ? s.slice(0, s.length - 1) : s
      );
    }
    function iIe(e) {
      e.cache && $se(e);
      const { compilerHost: t, host: r } = e,
        i = e.readFileWithCache,
        o = t.getSourceFile,
        {
          originalReadFile: s,
          originalFileExists: l,
          originalDirectoryExists: u,
          originalCreateDirectory: d,
          originalWriteFile: _,
          getSourceFileWithCache: h,
          readFileWithCache: g,
        } = yP(
          r,
          (E) => Hm(e, E),
          (...E) => o.call(t, ...E),
        );
      ((e.readFileWithCache = g),
        (t.getSourceFile = h),
        (e.cache = {
          originalReadFile: s,
          originalFileExists: l,
          originalDirectoryExists: u,
          originalCreateDirectory: d,
          originalWriteFile: _,
          originalReadFileWithCache: i,
          originalGetSourceFile: o,
        }));
    }
    function $se(e) {
      if (!e.cache) return;
      const {
        cache: t,
        host: r,
        compilerHost: i,
        extendedConfigCache: o,
        moduleResolutionCache: s,
        typeReferenceDirectiveResolutionCache: l,
        libraryResolutionCache: u,
      } = e;
      ((r.readFile = t.originalReadFile),
        (r.fileExists = t.originalFileExists),
        (r.directoryExists = t.originalDirectoryExists),
        (r.createDirectory = t.originalCreateDirectory),
        (r.writeFile = t.originalWriteFile),
        (i.getSourceFile = t.originalGetSourceFile),
        (e.readFileWithCache = t.originalReadFileWithCache),
        o.clear(),
        s?.clear(),
        l?.clear(),
        u?.clear(),
        (e.cache = void 0));
    }
    function oIe(e, t) {
      (e.projectStatus.delete(t), e.diagnostics.delete(t));
    }
    function aIe({ projectPendingBuild: e }, t, r) {
      const i = e.get(t);
      (i === void 0 || i < r) && e.set(t, r);
    }
    function sIe(e, t) {
      if (!e.allProjectBuildPending) return;
      ((e.allProjectBuildPending = !1),
        e.options.watch && ale(e, f.Starting_compilation_in_watch_mode),
        iIe(e),
        dO(X3(e)).forEach((i) => e.projectPendingBuild.set(B_(e, i), 0)),
        t && t.throwIfCancellationRequested());
    }
    var Qse = ((e) => (
      (e[(e.Build = 0)] = "Build"),
      (e[(e.UpdateOutputFileStamps = 1)] = "UpdateOutputFileStamps"),
      e
    ))(Qse || {});
    function lIe(e, t) {
      return (e.projectPendingBuild.delete(t), e.diagnostics.has(t) ? 1 : 0);
    }
    function lJe(e, t, r, i, o) {
      let s = !0;
      return {
        kind: 1,
        project: t,
        projectPath: r,
        buildOrder: o,
        getCompilerOptions: () => i.options,
        getCurrentDirectory: () => e.compilerHost.getCurrentDirectory(),
        updateOutputFileStatmps: () => {
          (mIe(e, i, r), (s = !1));
        },
        done: () => (
          s && mIe(e, i, r),
          Rl("SolutionBuilder::Timestamps only updates"),
          lIe(e, r)
        ),
      };
    }
    function cJe(e, t, r, i, o, s, l) {
      let u = 0,
        d,
        _;
      return {
        kind: 0,
        project: t,
        projectPath: r,
        buildOrder: l,
        getCompilerOptions: () => o.options,
        getCurrentDirectory: () => e.compilerHost.getCurrentDirectory(),
        getBuilderProgram: () => g(Vs),
        getProgram: () => g((P) => P.getProgramOrUndefined()),
        getSourceFile: (P) => g((k) => k.getSourceFile(P)),
        getSourceFiles: () => E((P) => P.getSourceFiles()),
        getOptionsDiagnostics: (P) => E((k) => k.getOptionsDiagnostics(P)),
        getGlobalDiagnostics: (P) => E((k) => k.getGlobalDiagnostics(P)),
        getConfigFileParsingDiagnostics: () =>
          E((P) => P.getConfigFileParsingDiagnostics()),
        getSyntacticDiagnostics: (P, k) =>
          E((W) => W.getSyntacticDiagnostics(P, k)),
        getAllDependencies: (P) => E((k) => k.getAllDependencies(P)),
        getSemanticDiagnostics: (P, k) =>
          E((W) => W.getSemanticDiagnostics(P, k)),
        getSemanticDiagnosticsOfNextAffectedFile: (P, k) =>
          g(
            (W) =>
              W.getSemanticDiagnosticsOfNextAffectedFile &&
              W.getSemanticDiagnosticsOfNextAffectedFile(P, k),
          ),
        emit: (P, k, W, O, G) =>
          P || O
            ? g((j) => {
                var J, Z;
                return j.emit(
                  P,
                  k,
                  W,
                  O,
                  G ||
                    ((Z = (J = e.host).getCustomTransformers) == null
                      ? void 0
                      : Z.call(J, t)),
                );
              })
            : (N(0, W), R(k, W, G)),
        done: h,
      };
      function h(P, k, W) {
        return (
          N(3, P, k, W),
          Rl("SolutionBuilder::Projects built"),
          lIe(e, r)
        );
      }
      function g(P) {
        return (N(0), d && P(d));
      }
      function E(P) {
        return g(P) || ae;
      }
      function A() {
        var P, k, W;
        if ((C.assert(d === void 0), e.options.dry)) {
          (Bp(e, f.A_non_dry_build_would_build_project_0, t), (_ = 1), (u = 2));
          return;
        }
        if (
          (e.options.verbose && Bp(e, f.Building_project_0, t),
          o.fileNames.length === 0)
        ) {
          (pO(e, r, QS(o)), (_ = 0), (u = 2));
          return;
        }
        const { host: O, compilerHost: G } = e;
        if (
          ((e.projectCompilerOptions = o.options),
          (P = e.moduleResolutionCache) == null || P.update(o.options),
          (k = e.typeReferenceDirectiveResolutionCache) == null ||
            k.update(o.options),
          (d = O.createProgram(
            o.fileNames,
            o.options,
            G,
            dJe(e, r, o),
            QS(o),
            o.projectReferences,
          )),
          e.watch)
        ) {
          const j =
            (W = e.moduleResolutionCache) == null
              ? void 0
              : W.getPackageJsonInfoCache().getInternalMap();
          (e.lastCachedPackageJsonLookups.set(
            r,
            j &&
              new Set(
                Co(j.values(), (J) =>
                  e.host.realpath && (n3(J) || J.directoryExists)
                    ? e.host.realpath(Qr(J.packageDirectory, "package.json"))
                    : Qr(J.packageDirectory, "package.json"),
                ),
              ),
          ),
            e.builderPrograms.set(r, d));
        }
        u++;
      }
      function R(P, k, W) {
        var O, G, j;
        (C.assertIsDefined(d), C.assert(u === 1));
        const { host: J, compilerHost: Z } = e,
          q = new Map(),
          ye = d.getCompilerOptions(),
          ie = kS(ye);
        let K, pe;
        const { emitResult: de, diagnostics: fe } = j3(
          d,
          (ve) => J.reportDiagnostic(ve),
          e.write,
          void 0,
          (ve, xe, X, Ce, Je, Se) => {
            var re;
            const be = Hm(e, ve);
            if ((q.set(Hm(e, ve), ve), Se?.buildInfo)) {
              pe || (pe = rq(e.host));
              const Be =
                  (re = d.hasChangedEmitSignature) == null
                    ? void 0
                    : re.call(d),
                lt = aq(e, ve, r);
              lt
                ? ((lt.buildInfo = Se.buildInfo),
                  (lt.modifiedTime = pe),
                  Be && (lt.latestChangedDtsTime = pe))
                : e.buildInfoCache.set(r, {
                    path: Hm(e, ve),
                    buildInfo: Se.buildInfo,
                    modifiedTime: pe,
                    latestChangedDtsTime: Be ? pe : void 0,
                  });
            }
            const Ne = Se?.differsOnlyInMap ? tI(e.host, ve) : void 0;
            ((P || Z.writeFile)(ve, xe, X, Ce, Je, Se),
              Se?.differsOnlyInMap
                ? e.host.setModifiedTime(ve, Ne)
                : !ie &&
                  e.watch &&
                  (K || (K = ele(e, r))).set(be, pe || (pe = rq(e.host))));
          },
          k,
          void 0,
          W ||
            ((G = (O = e.host).getCustomTransformers) == null
              ? void 0
              : G.call(O, t)),
        );
        return (
          (!ye.noEmitOnError || !fe.length) &&
            (q.size || s.type !== 8) &&
            fIe(
              e,
              o,
              r,
              f.Updating_unchanged_output_timestamps_of_project_0,
              q,
            ),
          e.projectErrorsReported.set(r, !0),
          (_ = (j = d.hasChangedEmitSignature) != null && j.call(d) ? 0 : 2),
          fe.length
            ? (e.diagnostics.set(r, fe),
              e.projectStatus.set(r, { type: 0, reason: "it had errors" }),
              (_ |= 4))
            : (e.diagnostics.delete(r),
              e.projectStatus.set(r, {
                type: 1,
                oldestOutputFileName:
                  B8(q.values()) ?? aH(o, !J.useCaseSensitiveFileNames()),
              })),
          uJe(e, d),
          (u = 2),
          de
        );
      }
      function N(P, k, W, O) {
        for (; u <= P && u < 3; ) {
          const G = u;
          switch (u) {
            case 0:
              A();
              break;
            case 1:
              R(W, k, O);
              break;
            case 2:
              (hJe(e, t, r, i, o, l, C.checkDefined(_)), u++);
              break;
          }
          C.assert(u > G);
        }
      }
    }
    function cIe(e, t, r) {
      if (!e.projectPendingBuild.size || ux(t)) return;
      const { options: i, projectPendingBuild: o } = e;
      for (let s = 0; s < t.length; s++) {
        const l = t[s],
          u = B_(e, l),
          d = e.projectPendingBuild.get(u);
        if (d === void 0) continue;
        r && ((r = !1), AIe(e, t));
        const _ = YD(e, l, u);
        if (!_) {
          (SIe(e, u), o.delete(u));
          continue;
        }
        d === 2
          ? (yIe(e, l, u, _),
            vIe(e, u, _),
            bIe(e, l, u, _),
            ile(e, l, u, _),
            ole(e, l, u, _))
          : d === 1 &&
            ((_.fileNames = eP(
              _.options.configFile.configFileSpecs,
              ci(l),
              _.options,
              e.parseConfigFileHost,
            )),
            Y4(
              _.fileNames,
              l,
              _.options.configFile.configFileSpecs,
              _.errors,
              Fw(_.raw),
            ),
            ile(e, l, u, _),
            ole(e, l, u, _));
        const h = nle(e, _, u);
        if (!i.force) {
          if (h.type === 1) {
            (lq(e, l, h),
              pO(e, u, QS(_)),
              o.delete(u),
              i.dry && Bp(e, f.Project_0_is_up_to_date, l));
            continue;
          }
          if (h.type === 2 || h.type === 15)
            return (
              pO(e, u, QS(_)),
              {
                kind: 1,
                status: h,
                project: l,
                projectPath: u,
                projectIndex: s,
                config: _,
              }
            );
        }
        if (h.type === 12) {
          (lq(e, l, h),
            pO(e, u, QS(_)),
            o.delete(u),
            i.verbose &&
              Bp(
                e,
                h.upstreamProjectBlocked
                  ? f.Skipping_build_of_project_0_because_its_dependency_1_was_not_built
                  : f.Skipping_build_of_project_0_because_its_dependency_1_has_errors,
                l,
                h.upstreamProjectName,
              ));
          continue;
        }
        if (h.type === 16) {
          (lq(e, l, h), pO(e, u, QS(_)), o.delete(u));
          continue;
        }
        return {
          kind: 0,
          status: h,
          project: l,
          projectPath: u,
          projectIndex: s,
          config: _,
        };
      }
    }
    function dIe(e, t, r) {
      return (
        lq(e, t.project, t.status),
        t.kind !== 1
          ? cJe(
              e,
              t.project,
              t.projectPath,
              t.projectIndex,
              t.config,
              t.status,
              r,
            )
          : lJe(e, t.project, t.projectPath, t.config, r)
      );
    }
    function Zse(e, t, r) {
      const i = cIe(e, t, r);
      return i && dIe(e, i, t);
    }
    function dJe({ options: e, builderPrograms: t, compilerHost: r }, i, o) {
      if (e.force) return;
      const s = t.get(i);
      return s || q3(o.options, r);
    }
    function uJe(e, t) {
      (t &&
        (e.host.afterProgramEmitAndDiagnostics &&
          e.host.afterProgramEmitAndDiagnostics(t),
        t.releaseProgram()),
        (e.projectCompilerOptions = e.baseCompilerOptions));
    }
    function iq(e) {
      return !!e.watcher;
    }
    function uIe(e, t) {
      const r = Hm(e, t),
        i = e.filesWatched.get(r);
      if (e.watch && i) {
        if (!iq(i)) return i;
        if (i.modifiedTime) return i.modifiedTime;
      }
      const o = tI(e.host, t);
      return (
        e.watch && (i ? (i.modifiedTime = o) : e.filesWatched.set(r, o)),
        o
      );
    }
    function oq(e, t, r, i, o, s, l) {
      const u = Hm(e, t),
        d = e.filesWatched.get(u);
      if (d && iq(d)) d.callbacks.push(r);
      else {
        const _ = e.watchFile(
          t,
          (h, g, E) => {
            const A = C.checkDefined(e.filesWatched.get(u));
            (C.assert(iq(A)),
              (A.modifiedTime = E),
              A.callbacks.forEach((R) => R(h, g, E)));
          },
          i,
          o,
          s,
          l,
        );
        e.filesWatched.set(u, { callbacks: [r], watcher: _, modifiedTime: d });
      }
      return {
        close: () => {
          const _ = C.checkDefined(e.filesWatched.get(u));
          (C.assert(iq(_)),
            _.callbacks.length === 1
              ? (e.filesWatched.delete(u), Kf(_))
              : ZA(_.callbacks, r));
        },
      };
    }
    function ele(e, t) {
      if (!e.watch) return;
      let r = e.outputTimeStamps.get(t);
      return (r || e.outputTimeStamps.set(t, (r = new Map())), r);
    }
    function aq(e, t, r) {
      const i = Hm(e, t),
        o = e.buildInfoCache.get(r);
      return o?.path === i ? o : void 0;
    }
    function pIe(e, t, r, i) {
      const o = Hm(e, t),
        s = e.buildInfoCache.get(r);
      if (s !== void 0 && s.path === o) return s.buildInfo || void 0;
      const l = e.readFileWithCache(t),
        u = l ? cH(t, l) : void 0;
      return (
        e.buildInfoCache.set(r, {
          path: o,
          buildInfo: u || !1,
          modifiedTime: i || Dp,
        }),
        u
      );
    }
    function tle(e, t, r, i) {
      const o = uIe(e, t);
      if (r < o)
        return { type: 5, outOfDateOutputFileName: i, newerInputFileName: t };
    }
    function pJe(e, t, r) {
      var i, o, s, l, u;
      if (fU(t)) return { type: 16 };
      let d;
      const _ = !!e.options.force;
      if (t.projectReferences) {
        e.projectStatus.set(r, { type: 13 });
        for (const fe of t.projectReferences) {
          const ve = cx(fe),
            xe = B_(e, ve),
            X = YD(e, ve, xe),
            Ce = nle(e, X, xe);
          if (!(Ce.type === 13 || Ce.type === 16)) {
            if (
              e.options.stopBuildOnErrors &&
              (Ce.type === 0 || Ce.type === 12)
            )
              return {
                type: 12,
                upstreamProjectName: fe.path,
                upstreamProjectBlocked: Ce.type === 12,
              };
            _ ||
              (d || (d = [])).push({
                ref: fe,
                refStatus: Ce,
                resolvedRefPath: xe,
                resolvedConfig: X,
              });
          }
        }
      }
      if (_) return { type: 17 };
      const { host: h } = e,
        g = c0(t.options),
        E = kS(t.options);
      let A = aq(e, g, r);
      const R = A?.modifiedTime || tI(h, g);
      if (R === Dp)
        return (
          A ||
            e.buildInfoCache.set(r, {
              path: Hm(e, g),
              buildInfo: !1,
              modifiedTime: R,
            }),
          { type: 3, missingOutputFileName: g }
        );
      const N = pIe(e, g, r, R);
      if (!N) return { type: 4, fileName: g };
      const P = E && sO(N) ? N : void 0;
      if ((P || !E) && N.version !== Le)
        return { type: 14, version: N.version };
      if (!t.options.noCheck && (N.errors || N.checkPending))
        return { type: 8, buildInfoFile: g };
      if (P) {
        if (
          !t.options.noCheck &&
          (((i = P.changeFileSet) != null && i.length) ||
            ((o = P.semanticDiagnosticsPerFile) != null && o.length) ||
            (_p(t.options) &&
              (s = P.emitDiagnosticsPerFile) != null &&
              s.length))
        )
          return { type: 8, buildInfoFile: g };
        if (
          !t.options.noEmit &&
          (((l = P.changeFileSet) != null && l.length) ||
            ((u = P.affectedFilesPendingEmit) != null && u.length) ||
            P.pendingEmit !== void 0)
        )
          return { type: 7, buildInfoFile: g };
        if (
          (!t.options.noEmit || (t.options.noEmit && _p(t.options))) &&
          W3(t.options, P.options || {}, void 0, !!t.options.noEmit)
        )
          return { type: 9, buildInfoFile: g };
      }
      let k = R,
        W = g,
        O,
        G = nJe,
        j = !1;
      const J = new Set();
      let Z;
      for (const fe of t.fileNames) {
        const ve = uIe(e, fe);
        if (ve === Dp) return { type: 0, reason: `${fe} does not exist` };
        const xe = Hm(e, fe);
        if (R < ve) {
          let X, Ce;
          if (P) {
            Z || (Z = LH(P, g, h));
            const Je = Z.roots.get(xe);
            X = Z.fileInfos.get(Je ?? xe);
            const Se = X ? e.readFileWithCache(Je ?? fe) : void 0;
            ((Ce = Se !== void 0 ? U3(h, Se) : void 0),
              X && X === Ce && (j = !0));
          }
          if (!X || X !== Ce)
            return {
              type: 5,
              outOfDateOutputFileName: g,
              newerInputFileName: fe,
            };
        }
        (ve > G && ((O = fe), (G = ve)), J.add(xe));
      }
      let q;
      if (
        (P
          ? (Z || (Z = LH(P, g, h)),
            (q = Hc(Z.roots, (fe, ve) => (J.has(ve) ? void 0 : ve))))
          : (q = Ye(kse(N, g, h), (fe) => (J.has(fe) ? void 0 : fe))),
        q)
      )
        return { type: 10, buildInfoFile: g, inputFile: q };
      if (!E) {
        const fe = E3(t, !h.useCaseSensitiveFileNames()),
          ve = ele(e, r);
        for (const xe of fe) {
          if (xe === g) continue;
          const X = Hm(e, xe);
          let Ce = ve?.get(X);
          if ((Ce || ((Ce = tI(e.host, xe)), ve?.set(X, Ce)), Ce === Dp))
            return { type: 3, missingOutputFileName: xe };
          if (Ce < G)
            return {
              type: 5,
              outOfDateOutputFileName: xe,
              newerInputFileName: O,
            };
          Ce < k && ((k = Ce), (W = xe));
        }
      }
      let ye = !1;
      if (d)
        for (const {
          ref: fe,
          refStatus: ve,
          resolvedConfig: xe,
          resolvedRefPath: X,
        } of d) {
          if (ve.newestInputFileTime && ve.newestInputFileTime <= k) continue;
          if (fJe(e, A ?? (A = e.buildInfoCache.get(r)), X))
            return {
              type: 6,
              outOfDateOutputFileName: g,
              newerProjectName: fe.path,
            };
          const Ce = mJe(e, xe.options, X);
          if (Ce && Ce <= k) {
            ye = !0;
            continue;
          }
          return (
            C.assert(
              W !== void 0,
              "Should have an oldest output filename here",
            ),
            { type: 6, outOfDateOutputFileName: W, newerProjectName: fe.path }
          );
        }
      const ie = tle(e, t.options.configFilePath, k, W);
      if (ie) return ie;
      const K = Ye(t.options.configFile.extendedSourceFiles || ae, (fe) =>
        tle(e, fe, k, W),
      );
      if (K) return K;
      const pe = e.lastCachedPackageJsonLookups.get(r),
        de = pe && fg(pe, (fe) => tle(e, fe, k, W));
      return (
        de || {
          type: ye ? 2 : j ? 15 : 1,
          newestInputFileTime: G,
          newestInputFileName: O,
          oldestOutputFileName: W,
        }
      );
    }
    function fJe(e, t, r) {
      return e.buildInfoCache.get(r).path === t.path;
    }
    function nle(e, t, r) {
      if (t === void 0)
        return { type: 0, reason: "config file deleted mid-build" };
      const i = e.projectStatus.get(r);
      if (i !== void 0) return i;
      Rl("SolutionBuilder::beforeUpToDateCheck");
      const o = pJe(e, t, r);
      return (
        Rl("SolutionBuilder::afterUpToDateCheck"),
        wf(
          "SolutionBuilder::Up-to-date check",
          "SolutionBuilder::beforeUpToDateCheck",
          "SolutionBuilder::afterUpToDateCheck",
        ),
        e.projectStatus.set(r, o),
        o
      );
    }
    function fIe(e, t, r, i, o) {
      if (t.options.noEmit) return;
      let s;
      const l = c0(t.options),
        u = kS(t.options);
      if (l && u) {
        (o?.has(Hm(e, l)) ||
          (e.options.verbose && Bp(e, i, t.options.configFilePath),
          e.host.setModifiedTime(l, (s = rq(e.host))),
          (aq(e, l, r).modifiedTime = s)),
          e.outputTimeStamps.delete(r));
        return;
      }
      const { host: d } = e,
        _ = E3(t, !d.useCaseSensitiveFileNames()),
        h = ele(e, r),
        g = h ? new Set() : void 0;
      if (!o || _.length !== o.size) {
        let E = !!e.options.verbose;
        for (const A of _) {
          const R = Hm(e, A);
          o?.has(R) ||
            (E && ((E = !1), Bp(e, i, t.options.configFilePath)),
            d.setModifiedTime(A, s || (s = rq(e.host))),
            A === l
              ? (aq(e, l, r).modifiedTime = s)
              : h && (h.set(R, s), g.add(R)));
        }
      }
      h?.forEach((E, A) => {
        !o?.has(A) && !g.has(A) && h.delete(A);
      });
    }
    function mJe(e, t, r) {
      if (!t.composite) return;
      const i = C.checkDefined(e.buildInfoCache.get(r));
      if (i.latestChangedDtsTime !== void 0)
        return i.latestChangedDtsTime || void 0;
      const o =
        i.buildInfo && sO(i.buildInfo) && i.buildInfo.latestChangedDtsFile
          ? e.host.getModifiedTime(
              To(i.buildInfo.latestChangedDtsFile, ci(i.path)),
            )
          : void 0;
      return ((i.latestChangedDtsTime = o || !1), o);
    }
    function mIe(e, t, r) {
      if (e.options.dry)
        return Bp(
          e,
          f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,
          t.options.configFilePath,
        );
      (fIe(e, t, r, f.Updating_output_timestamps_of_project_0),
        e.projectStatus.set(r, {
          type: 1,
          oldestOutputFileName: aH(t, !e.host.useCaseSensitiveFileNames()),
        }));
    }
    function hJe(e, t, r, i, o, s, l) {
      if (!(e.options.stopBuildOnErrors && l & 4) && o.options.composite)
        for (let u = i + 1; u < s.length; u++) {
          const d = s[u],
            _ = B_(e, d);
          if (e.projectPendingBuild.has(_)) continue;
          const h = YD(e, d, _);
          if (!(!h || !h.projectReferences))
            for (const g of h.projectReferences) {
              const E = uO(e, g.path);
              if (B_(e, E) !== r) continue;
              const A = e.projectStatus.get(_);
              if (A)
                switch (A.type) {
                  case 1:
                    if (l & 2) {
                      A.type = 2;
                      break;
                    }
                  case 15:
                  case 2:
                    l & 2 ||
                      e.projectStatus.set(_, {
                        type: 6,
                        outOfDateOutputFileName: A.oldestOutputFileName,
                        newerProjectName: t,
                      });
                    break;
                  case 12:
                    B_(e, uO(e, A.upstreamProjectName)) === r && oIe(e, _);
                    break;
                }
              aIe(e, _, 0);
              break;
            }
        }
    }
    function hIe(e, t, r, i, o, s) {
      Rl("SolutionBuilder::beforeBuild");
      const l = _Je(e, t, r, i, o, s);
      return (
        Rl("SolutionBuilder::afterBuild"),
        wf(
          "SolutionBuilder::Build",
          "SolutionBuilder::beforeBuild",
          "SolutionBuilder::afterBuild",
        ),
        l
      );
    }
    function _Je(e, t, r, i, o, s) {
      const l = rIe(e, t, s);
      if (!l) return 3;
      sIe(e, r);
      let u = !0,
        d = 0;
      for (;;) {
        const _ = Zse(e, l, u);
        if (!_) break;
        ((u = !1),
          _.done(r, i, o?.(_.project)),
          e.diagnostics.has(_.projectPath) || d++);
      }
      return (
        $se(e),
        EIe(e, l),
        bJe(e, l),
        ux(l) ? 4 : l.some((_) => e.diagnostics.has(B_(e, _))) ? (d ? 2 : 1) : 0
      );
    }
    function _Ie(e, t, r) {
      Rl("SolutionBuilder::beforeClean");
      const i = gJe(e, t, r);
      return (
        Rl("SolutionBuilder::afterClean"),
        wf(
          "SolutionBuilder::Clean",
          "SolutionBuilder::beforeClean",
          "SolutionBuilder::afterClean",
        ),
        i
      );
    }
    function gJe(e, t, r) {
      const i = rIe(e, t, r);
      if (!i) return 3;
      if (ux(i)) return (sq(e, i.circularDiagnostics), 4);
      const { options: o, host: s } = e,
        l = o.dry ? [] : void 0;
      for (const u of i) {
        const d = B_(e, u),
          _ = YD(e, u, d);
        if (_ === void 0) {
          SIe(e, d);
          continue;
        }
        const h = E3(_, !s.useCaseSensitiveFileNames());
        if (!h.length) continue;
        const g = new Set(_.fileNames.map((E) => Hm(e, E)));
        for (const E of h)
          g.has(Hm(e, E)) ||
            (s.fileExists(E) &&
              (l ? l.push(E) : (s.deleteFile(E), rle(e, d, 0))));
      }
      return (
        l &&
          Bp(
            e,
            f.A_non_dry_build_would_delete_the_following_files_Colon_0,
            l
              .map(
                (u) => `\r
 * ${u}`,
              )
              .join(""),
          ),
        0
      );
    }
    function rle(e, t, r) {
      (e.host.getParsedCommandLine && r === 1 && (r = 2),
        r === 2 && (e.configFileCache.delete(t), (e.buildOrder = void 0)),
        (e.needsSummary = !0),
        oIe(e, t),
        aIe(e, t, r),
        iIe(e));
    }
    function Y3(e, t, r) {
      ((e.reportFileChangeDetected = !0), rle(e, t, r), gIe(e, 250, !0));
    }
    function gIe(e, t, r) {
      const { hostWithWatch: i } = e;
      !i.setTimeout ||
        !i.clearTimeout ||
        (e.timerToBuildInvalidatedProject &&
          i.clearTimeout(e.timerToBuildInvalidatedProject),
        (e.timerToBuildInvalidatedProject = i.setTimeout(
          yJe,
          t,
          "timerToBuildInvalidatedProject",
          e,
          r,
        )));
    }
    function yJe(e, t, r) {
      Rl("SolutionBuilder::beforeBuild");
      const i = vJe(t, r);
      (Rl("SolutionBuilder::afterBuild"),
        wf(
          "SolutionBuilder::Build",
          "SolutionBuilder::beforeBuild",
          "SolutionBuilder::afterBuild",
        ),
        i && EIe(t, i));
    }
    function vJe(e, t) {
      ((e.timerToBuildInvalidatedProject = void 0),
        e.reportFileChangeDetected &&
          ((e.reportFileChangeDetected = !1),
          e.projectErrorsReported.clear(),
          ale(e, f.File_change_detected_Starting_incremental_compilation)));
      let r = 0;
      const i = X3(e),
        o = Zse(e, i, !1);
      if (o)
        for (o.done(), r++; e.projectPendingBuild.size; ) {
          if (e.timerToBuildInvalidatedProject) return;
          const s = cIe(e, i, !1);
          if (!s) break;
          if (s.kind !== 1 && (t || r === 5)) {
            gIe(e, 100, !1);
            return;
          }
          (dIe(e, s, i).done(), s.kind !== 1 && r++);
        }
      return ($se(e), i);
    }
    function yIe(e, t, r, i) {
      !e.watch ||
        e.allWatchedConfigFiles.has(r) ||
        e.allWatchedConfigFiles.set(
          r,
          oq(e, t, () => Y3(e, r, 2), 2e3, i?.watchOptions, sd.ConfigFile, t),
        );
    }
    function vIe(e, t, r) {
      I3(
        t,
        r?.options,
        e.allWatchedExtendedConfigFiles,
        (i, o) =>
          oq(
            e,
            i,
            () => {
              var s;
              return (s = e.allWatchedExtendedConfigFiles.get(o)) == null
                ? void 0
                : s.projects.forEach((l) => Y3(e, l, 2));
            },
            2e3,
            r?.watchOptions,
            sd.ExtendedConfigFile,
          ),
        (i) => Hm(e, i),
      );
    }
    function bIe(e, t, r, i) {
      e.watch &&
        eO(
          qse(e.allWatchedWildcardDirectories, r),
          i.wildcardDirectories,
          (o, s) =>
            e.watchDirectory(
              o,
              (l) => {
                var u;
                tO({
                  watchedDirPath: Hm(e, o),
                  fileOrDirectory: l,
                  fileOrDirectoryPath: Hm(e, l),
                  configFileName: t,
                  currentDirectory: e.compilerHost.getCurrentDirectory(),
                  options: i.options,
                  program:
                    e.builderPrograms.get(r) ||
                    ((u = aJe(e, r)) == null ? void 0 : u.fileNames),
                  useCaseSensitiveFileNames:
                    e.parseConfigFileHost.useCaseSensitiveFileNames,
                  writeLog: (d) => e.writeLog(d),
                  toPath: (d) => Hm(e, d),
                }) || Y3(e, r, 1);
              },
              s,
              i?.watchOptions,
              sd.WildcardDirectory,
              t,
            ),
        );
    }
    function ile(e, t, r, i) {
      e.watch &&
        yM(qse(e.allWatchedInputFiles, r), new Set(i.fileNames), {
          createNewValue: (o) =>
            oq(e, o, () => Y3(e, r, 0), 250, i?.watchOptions, sd.SourceFile, t),
          onDeleteValue: Bm,
        });
    }
    function ole(e, t, r, i) {
      !e.watch ||
        !e.lastCachedPackageJsonLookups ||
        yM(
          qse(e.allWatchedPackageJsonFiles, r),
          e.lastCachedPackageJsonLookups.get(r),
          {
            createNewValue: (o) =>
              oq(
                e,
                o,
                () => Y3(e, r, 0),
                2e3,
                i?.watchOptions,
                sd.PackageJson,
                t,
              ),
            onDeleteValue: Bm,
          },
        );
    }
    function bJe(e, t) {
      if (e.watchAllProjectsPending) {
        (Rl("SolutionBuilder::beforeWatcherCreation"),
          (e.watchAllProjectsPending = !1));
        for (const r of dO(t)) {
          const i = B_(e, r),
            o = YD(e, r, i);
          (yIe(e, r, i, o),
            vIe(e, i, o),
            o && (bIe(e, r, i, o), ile(e, r, i, o), ole(e, r, i, o)));
        }
        (Rl("SolutionBuilder::afterWatcherCreation"),
          wf(
            "SolutionBuilder::Watcher creation",
            "SolutionBuilder::beforeWatcherCreation",
            "SolutionBuilder::afterWatcherCreation",
          ));
      }
    }
    function TJe(e) {
      (hp(e.allWatchedConfigFiles, Bm),
        hp(e.allWatchedExtendedConfigFiles, Kf),
        hp(e.allWatchedWildcardDirectories, (t) => hp(t, Kf)),
        hp(e.allWatchedInputFiles, (t) => hp(t, Bm)),
        hp(e.allWatchedPackageJsonFiles, (t) => hp(t, Bm)));
    }
    function TIe(e, t, r, i, o) {
      const s = oJe(e, t, r, i, o);
      return {
        build: (l, u, d, _) => hIe(s, l, u, d, _),
        clean: (l) => _Ie(s, l),
        buildReferences: (l, u, d, _) => hIe(s, l, u, d, _, !0),
        cleanReferences: (l) => _Ie(s, l, !0),
        getNextInvalidatedProject: (l) => (sIe(s, l), Zse(s, X3(s), !1)),
        getBuildOrder: () => X3(s),
        getUpToDateStatusOfProject: (l) => {
          const u = uO(s, l),
            d = B_(s, u);
          return nle(s, YD(s, u, d), d);
        },
        invalidateProject: (l, u) => rle(s, l, u || 0),
        close: () => TJe(s),
      };
    }
    function Nd(e, t) {
      return EN(
        t,
        e.compilerHost.getCurrentDirectory(),
        e.compilerHost.getCanonicalFileName,
      );
    }
    function Bp(e, t, ...r) {
      e.host.reportSolutionBuilderStatus(Il(t, ...r));
    }
    function ale(e, t, ...r) {
      var i, o;
      (o = (i = e.hostWithWatch).onWatchStatusChange) == null ||
        o.call(i, Il(t, ...r), e.host.getNewLine(), e.baseCompilerOptions);
    }
    function sq({ host: e }, t) {
      t.forEach((r) => e.reportDiagnostic(r));
    }
    function pO(e, t, r) {
      (sq(e, r),
        e.projectErrorsReported.set(t, !0),
        r.length && e.diagnostics.set(t, r));
    }
    function SIe(e, t) {
      pO(e, t, [e.configFileCache.get(t)]);
    }
    function EIe(e, t) {
      if (!e.needsSummary) return;
      e.needsSummary = !1;
      const r = e.watch || !!e.host.reportErrorSummary,
        { diagnostics: i } = e;
      let o = 0,
        s = [];
      (ux(t)
        ? (AIe(e, t.buildOrder),
          sq(e, t.circularDiagnostics),
          r && (o += G3(t.circularDiagnostics)),
          r && (s = [...s, ...V3(t.circularDiagnostics)]))
        : (t.forEach((l) => {
            const u = B_(e, l);
            e.projectErrorsReported.has(u) || sq(e, i.get(u) || ae);
          }),
          r && i.forEach((l) => (o += G3(l))),
          r && i.forEach((l) => [...s, ...V3(l)])),
        e.watch
          ? ale(e, BH(o), o)
          : e.host.reportErrorSummary && e.host.reportErrorSummary(o, s));
    }
    function AIe(e, t) {
      e.options.verbose &&
        Bp(
          e,
          f.Projects_in_this_build_Colon_0,
          t
            .map(
              (r) =>
                `\r
    * ` + Nd(e, r),
            )
            .join(""),
        );
    }
    function SJe(e, t, r) {
      switch (r.type) {
        case 5:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,
            Nd(e, t),
            Nd(e, r.outOfDateOutputFileName),
            Nd(e, r.newerInputFileName),
          );
        case 6:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,
            Nd(e, t),
            Nd(e, r.outOfDateOutputFileName),
            Nd(e, r.newerProjectName),
          );
        case 3:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,
            Nd(e, t),
            Nd(e, r.missingOutputFileName),
          );
        case 4:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,
            Nd(e, t),
            Nd(e, r.fileName),
          );
        case 7:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,
            Nd(e, t),
            Nd(e, r.buildInfoFile),
          );
        case 8:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,
            Nd(e, t),
            Nd(e, r.buildInfoFile),
          );
        case 9:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,
            Nd(e, t),
            Nd(e, r.buildInfoFile),
          );
        case 10:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,
            Nd(e, t),
            Nd(e, r.buildInfoFile),
            Nd(e, r.inputFile),
          );
        case 1:
          if (r.newestInputFileTime !== void 0)
            return Bp(
              e,
              f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,
              Nd(e, t),
              Nd(e, r.newestInputFileName || ""),
              Nd(e, r.oldestOutputFileName || ""),
            );
          break;
        case 2:
          return Bp(
            e,
            f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,
            Nd(e, t),
          );
        case 15:
          return Bp(
            e,
            f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,
            Nd(e, t),
          );
        case 11:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,
            Nd(e, t),
            Nd(e, r.upstreamProjectName),
          );
        case 12:
          return Bp(
            e,
            r.upstreamProjectBlocked
              ? f.Project_0_can_t_be_built_because_its_dependency_1_was_not_built
              : f.Project_0_can_t_be_built_because_its_dependency_1_has_errors,
            Nd(e, t),
            Nd(e, r.upstreamProjectName),
          );
        case 0:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_1,
            Nd(e, t),
            r.reason,
          );
        case 14:
          return Bp(
            e,
            f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,
            Nd(e, t),
            r.version,
            Le,
          );
        case 17:
          return Bp(e, f.Project_0_is_being_forcibly_rebuilt, Nd(e, t));
      }
    }
    function lq(e, t, r) {
      e.options.verbose && SJe(e, t, r);
    }
    var sle = ((e) => (
      (e[(e.time = 0)] = "time"),
      (e[(e.count = 1)] = "count"),
      (e[(e.memory = 2)] = "memory"),
      e
    ))(sle || {});
    function EJe(e) {
      const t = AJe();
      return (
        Ye(e.getSourceFiles(), (r) => {
          const i = IJe(e, r),
            o = ag(r).length;
          t.set(i, t.get(i) + o);
        }),
        t
      );
    }
    function AJe() {
      const e = new Map();
      return (
        e.set("Library", 0),
        e.set("Definitions", 0),
        e.set("TypeScript", 0),
        e.set("JavaScript", 0),
        e.set("JSON", 0),
        e.set("Other", 0),
        e
      );
    }
    function IJe(e, t) {
      if (e.isSourceFileDefaultLibrary(t)) return "Library";
      if (t.isDeclarationFile) return "Definitions";
      const r = t.path;
      return $l(r, WV)
        ? "TypeScript"
        : $l(r, fD)
          ? "JavaScript"
          : El(r, ".json")
            ? "JSON"
            : "Other";
    }
    function cq(e, t, r) {
      return $3(e, r) ? dx(e, !0) : t;
    }
    function IIe(e) {
      return (
        !!e.writeOutputIsTTY &&
        e.writeOutputIsTTY() &&
        !e.getEnvironmentVariable("NO_COLOR")
      );
    }
    function $3(e, t) {
      return !t || typeof t.pretty > "u" ? IIe(e) : t.pretty;
    }
    function xIe(e) {
      return e.options.all
        ? xp(Um.concat(C1), (t, r) => y2(t.name, r.name))
        : Un(Um.concat(C1), (t) => !!t.showInSimplifiedHelpView);
    }
    function dq(e) {
      e.write(rp(f.Version_0, Le) + e.newLine);
    }
    function uq(e) {
      if (!IIe(e))
        return {
          bold: (h) => h,
          blue: (h) => h,
          blueBackground: (h) => h,
          brightWhite: (h) => h,
        };
      function r(h) {
        return `\x1B[1m${h}\x1B[22m`;
      }
      const i =
          e.getEnvironmentVariable("OS") &&
          e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),
        o = e.getEnvironmentVariable("WT_SESSION"),
        s =
          e.getEnvironmentVariable("TERM_PROGRAM") &&
          e.getEnvironmentVariable("TERM_PROGRAM") === "vscode";
      function l(h) {
        return i && !o && !s ? _(h) : `\x1B[94m${h}\x1B[39m`;
      }
      const u =
        e.getEnvironmentVariable("COLORTERM") === "truecolor" ||
        e.getEnvironmentVariable("TERM") === "xterm-256color";
      function d(h) {
        return u ? `\x1B[48;5;68m${h}\x1B[39;49m` : `\x1B[44m${h}\x1B[39;49m`;
      }
      function _(h) {
        return `\x1B[97m${h}\x1B[39m`;
      }
      return { bold: r, blue: l, brightWhite: _, blueBackground: d };
    }
    function RIe(e) {
      return `--${e.name}${e.shortName ? `, -${e.shortName}` : ""}`;
    }
    function xJe(e, t, r, i) {
      var o;
      const s = [],
        l = uq(e),
        u = RIe(t),
        d = R(t),
        _ =
          typeof t.defaultValueDescription == "object"
            ? rp(t.defaultValueDescription)
            : g(
                t.defaultValueDescription,
                t.type === "list" || t.type === "listOrElement"
                  ? t.element.type
                  : t.type,
              ),
        h = ((o = e.getWidthOfTerminal) == null ? void 0 : o.call(e)) ?? 0;
      if (h >= 80) {
        let N = "";
        (t.description && (N = rp(t.description)),
          s.push(...A(u, N, r, i, h, !0), e.newLine),
          E(d, t) &&
            (d &&
              s.push(
                ...A(d.valueType, d.possibleValues, r, i, h, !1),
                e.newLine,
              ),
            _ && s.push(...A(rp(f.default_Colon), _, r, i, h, !1), e.newLine)),
          s.push(e.newLine));
      } else {
        if ((s.push(l.blue(u), e.newLine), t.description)) {
          const N = rp(t.description);
          s.push(N);
        }
        if ((s.push(e.newLine), E(d, t))) {
          if ((d && s.push(`${d.valueType} ${d.possibleValues}`), _)) {
            d && s.push(e.newLine);
            const N = rp(f.default_Colon);
            s.push(`${N} ${_}`);
          }
          s.push(e.newLine);
        }
        s.push(e.newLine);
      }
      return s;
      function g(N, P) {
        return N !== void 0 && typeof P == "object"
          ? Co(P.entries())
              .filter(([, k]) => k === N)
              .map(([k]) => k)
              .join("/")
          : String(N);
      }
      function E(N, P) {
        const k = ["string"],
          W = [void 0, "false", "n/a"],
          O = P.defaultValueDescription;
        return !(
          P.category === f.Command_line_Options ||
          (jn(k, N?.possibleValues) && jn(W, O))
        );
      }
      function A(N, P, k, W, O, G) {
        const j = [];
        let J = !0,
          Z = P;
        const q = O - W;
        for (; Z.length > 0; ) {
          let ye = "";
          J
            ? ((ye = N.padStart(k)),
              (ye = ye.padEnd(W)),
              (ye = G ? l.blue(ye) : ye))
            : (ye = "".padStart(W));
          const ie = Z.substr(0, q);
          ((Z = Z.slice(q)), j.push(`${ye}${ie}`), (J = !1));
        }
        return j;
      }
      function R(N) {
        if (N.type === "object") return;
        return { valueType: P(N), possibleValues: k(N) };
        function P(W) {
          switch ((C.assert(W.type !== "listOrElement"), W.type)) {
            case "string":
            case "number":
            case "boolean":
              return rp(f.type_Colon);
            case "list":
              return rp(f.one_or_more_Colon);
            default:
              return rp(f.one_of_Colon);
          }
        }
        function k(W) {
          let O;
          switch (W.type) {
            case "string":
            case "number":
            case "boolean":
              O = W.type;
              break;
            case "list":
            case "listOrElement":
              O = k(W.element);
              break;
            case "object":
              O = "";
              break;
            default:
              const G = {};
              return (
                W.type.forEach((j, J) => {
                  var Z;
                  ((Z = W.deprecatedKeys) != null && Z.has(J)) ||
                    (G[j] || (G[j] = [])).push(J);
                }),
                Object.entries(G)
                  .map(([, j]) => j.join("/"))
                  .join(", ")
              );
          }
          return O;
        }
      }
    }
    function DIe(e, t) {
      let r = 0;
      for (const l of t) {
        const u = RIe(l).length;
        r = r > u ? r : u;
      }
      const i = r + 2,
        o = i + 2;
      let s = [];
      for (const l of t) {
        const u = xJe(e, l, i, o);
        s = [...s, ...u];
      }
      return (s[s.length - 2] !== e.newLine && s.push(e.newLine), s);
    }
    function fO(e, t, r, i, o, s) {
      let l = [];
      if (
        (l.push(uq(e).bold(t) + e.newLine + e.newLine),
        o && l.push(o + e.newLine + e.newLine),
        !i)
      )
        return (
          (l = [...l, ...DIe(e, r)]),
          s && l.push(s + e.newLine + e.newLine),
          l
        );
      const u = new Map();
      for (const d of r) {
        if (!d.category) continue;
        const _ = rp(d.category),
          h = u.get(_) ?? [];
        (h.push(d), u.set(_, h));
      }
      return (
        u.forEach((d, _) => {
          (l.push(`### ${_}${e.newLine}${e.newLine}`),
            (l = [...l, ...DIe(e, d)]));
        }),
        s && l.push(s + e.newLine + e.newLine),
        l
      );
    }
    function RJe(e, t) {
      const r = uq(e);
      let i = [
        ...pq(
          e,
          `${rp(f.tsc_Colon_The_TypeScript_Compiler)} - ${rp(f.Version_0, Le)}`,
        ),
      ];
      (i.push(r.bold(rp(f.COMMON_COMMANDS)) + e.newLine + e.newLine),
        l(
          "tsc",
          f.Compiles_the_current_project_tsconfig_json_in_the_working_directory,
        ),
        l(
          "tsc app.ts util.ts",
          f.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options,
        ),
        l("tsc -b", f.Build_a_composite_project_in_the_working_directory),
        l(
          "tsc --init",
          f.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory,
        ),
        l(
          "tsc -p ./path/to/tsconfig.json",
          f.Compiles_the_TypeScript_project_located_at_the_specified_path,
        ),
        l(
          "tsc --help --all",
          f.An_expanded_version_of_this_information_showing_all_possible_compiler_options,
        ),
        l(
          ["tsc --noEmit", "tsc --target esnext"],
          f.Compiles_the_current_project_with_additional_settings,
        ));
      const o = t.filter(
          (u) => u.isCommandLineOnly || u.category === f.Command_line_Options,
        ),
        s = t.filter((u) => !jn(o, u));
      i = [
        ...i,
        ...fO(e, rp(f.COMMAND_LINE_FLAGS), o, !1, void 0, void 0),
        ...fO(
          e,
          rp(f.COMMON_COMPILER_OPTIONS),
          s,
          !1,
          void 0,
          MI(
            f.You_can_learn_about_all_of_the_compiler_options_at_0,
            "https://aka.ms/tsc",
          ),
        ),
      ];
      for (const u of i) e.write(u);
      function l(u, d) {
        const _ = typeof u == "string" ? [u] : u;
        for (const h of _) i.push("  " + r.blue(h) + e.newLine);
        i.push("  " + rp(d) + e.newLine + e.newLine);
      }
    }
    function DJe(e, t, r, i) {
      let o = [
        ...pq(
          e,
          `${rp(f.tsc_Colon_The_TypeScript_Compiler)} - ${rp(f.Version_0, Le)}`,
        ),
      ];
      ((o = [
        ...o,
        ...fO(
          e,
          rp(f.ALL_COMPILER_OPTIONS),
          t,
          !0,
          void 0,
          MI(
            f.You_can_learn_about_all_of_the_compiler_options_at_0,
            "https://aka.ms/tsc",
          ),
        ),
      ]),
        (o = [
          ...o,
          ...fO(
            e,
            rp(f.WATCH_OPTIONS),
            i,
            !1,
            rp(
              f.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon,
            ),
          ),
        ]),
        (o = [
          ...o,
          ...fO(
            e,
            rp(f.BUILD_OPTIONS),
            Un(r, (s) => s !== C1),
            !1,
            MI(
              f.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,
              "https://aka.ms/tsc-composite-builds",
            ),
          ),
        ]));
      for (const s of o) e.write(s);
    }
    function CIe(e, t) {
      let r = [
        ...pq(
          e,
          `${rp(f.tsc_Colon_The_TypeScript_Compiler)} - ${rp(f.Version_0, Le)}`,
        ),
      ];
      r = [
        ...r,
        ...fO(
          e,
          rp(f.BUILD_OPTIONS),
          Un(t, (i) => i !== C1),
          !1,
          MI(
            f.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,
            "https://aka.ms/tsc-composite-builds",
          ),
        ),
      ];
      for (const i of r) e.write(i);
    }
    function pq(e, t) {
      var r;
      const i = uq(e),
        o = [],
        s = ((r = e.getWidthOfTerminal) == null ? void 0 : r.call(e)) ?? 0,
        l = 5,
        u = i.blueBackground("".padStart(l)),
        d = i.blueBackground(i.brightWhite("TS ".padStart(l)));
      if (s >= t.length + l) {
        const h = (s > 120 ? 120 : s) - l;
        (o.push(t.padEnd(h) + u + e.newLine),
          o.push("".padStart(h) + d + e.newLine));
      } else (o.push(t + e.newLine), o.push(e.newLine));
      return o;
    }
    function NIe(e, t) {
      t.options.all ? DJe(e, xIe(t), nU, rx) : RJe(e, xIe(t));
    }
    function MIe(e, t, r) {
      let i = dx(e),
        o;
      if (
        (r.options.locale && F9(r.options.locale, e, r.errors),
        r.errors.length > 0)
      )
        return (r.errors.forEach(i), e.exit(1));
      if (r.options.init) return (PJe(e, i, r.options), e.exit(0));
      if (r.options.version) return (dq(e), e.exit(0));
      if (r.options.help || r.options.all) return (NIe(e, r), e.exit(0));
      if (r.options.watch && r.options.listFilesOnly)
        return (
          i(Il(f.Options_0_and_1_cannot_be_combined, "watch", "listFilesOnly")),
          e.exit(1)
        );
      if (r.options.project) {
        if (r.fileNames.length !== 0)
          return (
            i(
              Il(
                f.Option_project_cannot_be_mixed_with_source_files_on_a_command_line,
              ),
            ),
            e.exit(1)
          );
        const u = ya(r.options.project);
        if (!u || e.directoryExists(u)) {
          if (((o = Qr(u, "tsconfig.json")), !e.fileExists(o)))
            return (
              i(
                Il(
                  f.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,
                  r.options.project,
                ),
              ),
              e.exit(1)
            );
        } else if (((o = u), !e.fileExists(o)))
          return (
            i(
              Il(
                f.The_specified_path_does_not_exist_Colon_0,
                r.options.project,
              ),
            ),
            e.exit(1)
          );
      } else if (r.fileNames.length === 0) {
        const u = ya(e.getCurrentDirectory());
        o = mH(u, (d) => e.fileExists(d));
      }
      if (r.fileNames.length === 0 && !o)
        return (
          r.options.showConfig
            ? i(
                Il(
                  f.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,
                  ya(e.getCurrentDirectory()),
                ),
              )
            : (dq(e), NIe(e, r)),
          e.exit(1)
        );
      const s = e.getCurrentDirectory(),
        l = J4(r.options, (u) => To(u, s));
      if (o) {
        const u = new Map(),
          d = Vse(o, l, u, r.watchOptions, e, i);
        if (l.showConfig)
          return d.errors.length !== 0
            ? ((i = cq(e, i, d.options)), d.errors.forEach(i), e.exit(1))
            : (e.write(JSON.stringify(cU(d, o, e), null, 4) + e.newLine),
              e.exit(0));
        if (((i = cq(e, i, d.options)), SV(d.options)))
          return cle(e, i) ? void 0 : CJe(e, t, i, d, l, r.watchOptions, u);
        kS(d.options) ? wIe(e, t, i, d) : kIe(e, t, i, d);
      } else {
        if (l.showConfig)
          return (
            e.write(
              JSON.stringify(cU(r, Qr(s, "tsconfig.json"), e), null, 4) +
                e.newLine,
            ),
            e.exit(0)
          );
        if (((i = cq(e, i, l)), SV(l)))
          return cle(e, i)
            ? void 0
            : NJe(e, t, i, r.fileNames, l, r.watchOptions);
        kS(l)
          ? wIe(e, t, i, { ...r, options: l })
          : kIe(e, t, i, { ...r, options: l });
      }
    }
    function lle(e) {
      if (e.length > 0 && e[0].charCodeAt(0) === 45) {
        const t = e[0].slice(e[0].charCodeAt(1) === 45 ? 2 : 1).toLowerCase();
        return t === C1.name || t === C1.shortName;
      }
      return !1;
    }
    function PIe(e, t, r) {
      if (lle(r)) {
        const {
          buildOptions: o,
          watchOptions: s,
          projects: l,
          errors: u,
        } = Aoe(r);
        if (o.generateCpuProfile && e.enableCPUProfiler)
          e.enableCPUProfiler(o.generateCpuProfile, () =>
            LIe(e, t, o, s, l, u),
          );
        else return LIe(e, t, o, s, l, u);
      }
      const i = Soe(r, (o) => e.readFile(o));
      if (i.options.generateCpuProfile && e.enableCPUProfiler)
        e.enableCPUProfiler(i.options.generateCpuProfile, () => MIe(e, t, i));
      else return MIe(e, t, i);
    }
    function cle(e, t) {
      return !e.watchFile || !e.watchDirectory
        ? (t(Il(f.The_current_host_does_not_support_the_0_option, "--watch")),
          e.exit(1),
          !0)
        : !1;
    }
    var Q3 = 2;
    function LIe(e, t, r, i, o, s) {
      const l = cq(e, dx(e), r);
      if ((r.locale && F9(r.locale, e, s), s.length > 0))
        return (s.forEach(l), e.exit(1));
      if (r.help || o.length === 0) return (dq(e), CIe(e, Pw), e.exit(0));
      if (
        !e.getModifiedTime ||
        !e.setModifiedTime ||
        (r.clean && !e.deleteFile)
      )
        return (
          l(Il(f.The_current_host_does_not_support_the_0_option, "--build")),
          e.exit(1)
        );
      if (r.watch) {
        if (cle(e, l)) return;
        const g = Kse(e, void 0, l, K3(e, $3(e, r)), ule(e, r));
        g.jsDocParsingMode = Q3;
        const E = zIe(e, r);
        OIe(e, t, g, E);
        const A = g.onWatchStatusChange;
        let R = !1;
        g.onWatchStatusChange = (P, k, W, O) => {
          (A?.(P, k, W, O),
            R &&
              (P.code === f.Found_0_errors_Watching_for_file_changes.code ||
                P.code === f.Found_1_error_Watching_for_file_changes.code) &&
              ple(N, E));
        };
        const N = Yse(g, o, r, i);
        return (N.build(), ple(N, E), (R = !0), N);
      }
      const u = Jse(e, void 0, l, K3(e, $3(e, r)), dle(e, r));
      u.jsDocParsingMode = Q3;
      const d = zIe(e, r);
      OIe(e, t, u, d);
      const _ = Xse(u, o, r),
        h = r.clean ? _.clean() : _.build();
      return (ple(_, d), mZ(), e.exit(h));
    }
    function dle(e, t) {
      return $3(e, t) ? (r, i) => e.write(GH(r, i, e.newLine, e)) : void 0;
    }
    function kIe(e, t, r, i) {
      const { fileNames: o, options: s, projectReferences: l } = i,
        u = R3(s, void 0, e);
      u.jsDocParsingMode = Q3;
      const d = u.getCurrentDirectory(),
        _ = Fd(u.useCaseSensitiveFileNames());
      (yP(u, (A) => ks(A, d, _)), fle(e, s, !1));
      const h = {
          rootNames: o,
          options: s,
          projectReferences: l,
          host: u,
          configFileParsingDiagnostics: QS(i),
        },
        g = oO(h),
        E = KH(g, r, (A) => e.write(A + e.newLine), dle(e, s));
      return (mq(e, g, void 0), t(g), e.exit(E));
    }
    function wIe(e, t, r, i) {
      const { options: o, fileNames: s, projectReferences: l } = i;
      fle(e, o, !1);
      const u = J3(o, e);
      u.jsDocParsingMode = Q3;
      const d = jse({
        host: u,
        system: e,
        rootNames: s,
        options: o,
        configFileParsingDiagnostics: QS(i),
        projectReferences: l,
        reportDiagnostic: r,
        reportErrorSummary: dle(e, o),
        afterProgramEmitAndDiagnostics: (_) => {
          (mq(e, _.getProgram(), void 0), t(_));
        },
      });
      return e.exit(d);
    }
    function OIe(e, t, r, i) {
      (WIe(e, r, !0),
        (r.afterProgramEmitAndDiagnostics = (o) => {
          (mq(e, o.getProgram(), i), t(o));
        }));
    }
    function WIe(e, t, r) {
      const i = t.createProgram;
      t.createProgram = (o, s, l, u, d, _) => (
        C.assert(o !== void 0 || (s === void 0 && !!u)),
        s !== void 0 && fle(e, s, r),
        i(o, s, l, u, d, _)
      );
    }
    function FIe(e, t, r) {
      ((r.jsDocParsingMode = Q3), WIe(e, r, !1));
      const i = r.afterProgramCreate;
      r.afterProgramCreate = (o) => {
        (i(o), mq(e, o.getProgram(), void 0), t(o));
      };
    }
    function ule(e, t) {
      return zH(e, $3(e, t));
    }
    function CJe(e, t, r, i, o, s, l) {
      const u = ZH({
        configFileName: i.options.configFilePath,
        optionsToExtend: o,
        watchOptionsToExtend: s,
        system: e,
        reportDiagnostic: r,
        reportWatchStatus: ule(e, i.options),
      });
      return (
        FIe(e, t, u),
        (u.configFileParsingResult = i),
        (u.extendedConfigCache = l),
        tq(u)
      );
    }
    function NJe(e, t, r, i, o, s) {
      const l = eq({
        rootFiles: i,
        options: o,
        watchOptions: s,
        system: e,
        reportDiagnostic: r,
        reportWatchStatus: ule(e, o),
      });
      return (FIe(e, t, l), tq(l));
    }
    function zIe(e, t) {
      if (e === jc && t.extendedDiagnostics) return (r9(), MJe());
    }
    function MJe() {
      let e;
      return {
        addAggregateStatistic: t,
        forEachAggregateStatistics: r,
        clear: i,
      };
      function t(o) {
        const s = e?.get(o.name);
        s
          ? s.type === 2
            ? (s.value = Math.max(s.value, o.value))
            : (s.value += o.value)
          : (e ?? (e = new Map())).set(o.name, o);
      }
      function r(o) {
        e?.forEach(o);
      }
      function i() {
        e = void 0;
      }
    }
    function ple(e, t) {
      if (!t) return;
      if (!uZ()) {
        jc.write(
          f
            .Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found
            .message +
            `
`,
        );
        return;
      }
      const r = [];
      (r.push({
        name: "Projects in scope",
        value: dO(e.getBuildOrder()).length,
        type: 1,
      }),
        i("SolutionBuilder::Projects built"),
        i("SolutionBuilder::Timestamps only updates"),
        i("SolutionBuilder::Bundles updated"),
        t.forEachAggregateStatistics((s) => {
          ((s.name = `Aggregate ${s.name}`), r.push(s));
        }),
        n9((s, l) => {
          fq(s) && r.push({ name: `${o(s)} time`, value: l, type: 0 });
        }),
        pZ(),
        r9(),
        t.clear(),
        VIe(jc, r));
      function i(s) {
        const l = bTe(s);
        l && r.push({ name: o(s), value: l, type: 1 });
      }
      function o(s) {
        return s.replace("SolutionBuilder::", "");
      }
    }
    function BIe(e, t) {
      return e === jc && (t.diagnostics || t.extendedDiagnostics);
    }
    function GIe(e, t) {
      return e === jc && t.generateTrace;
    }
    function fle(e, t, r) {
      (BIe(e, t) && r9(e),
        GIe(e, t) &&
          fZ(r ? "build" : "project", t.generateTrace, t.configFilePath));
    }
    function fq(e) {
      return po(e, "SolutionBuilder::");
    }
    function mq(e, t, r) {
      var i;
      const o = t.getCompilerOptions();
      GIe(e, o) && ((i = xr) == null || i.stopTracing());
      let s;
      if (BIe(e, o)) {
        s = [];
        const _ = e.getMemoryUsage ? e.getMemoryUsage() : -1;
        u("Files", t.getSourceFiles().length);
        const h = EJe(t);
        if (o.extendedDiagnostics)
          for (const [P, k] of h.entries()) u("Lines of " + P, k);
        else
          u(
            "Lines",
            Gn(h.values(), (P, k) => P + k, 0),
          );
        (u("Identifiers", t.getIdentifierCount()),
          u("Symbols", t.getSymbolCount()),
          u("Types", t.getTypeCount()),
          u("Instantiations", t.getInstantiationCount()),
          _ >= 0 && l({ name: "Memory used", value: _, type: 2 }, !0));
        const g = uZ(),
          E = g ? bN("Program") : 0,
          A = g ? bN("Bind") : 0,
          R = g ? bN("Check") : 0,
          N = g ? bN("Emit") : 0;
        if (o.extendedDiagnostics) {
          const P = t.getRelationCacheSizes();
          (u("Assignability cache size", P.assignable),
            u("Identity cache size", P.identity),
            u("Subtype cache size", P.subtype),
            u("Strict subtype cache size", P.strictSubtype),
            g &&
              n9((k, W) => {
                fq(k) || d(`${k} time`, W, !0);
              }));
        } else
          g &&
            (d("I/O read", bN("I/O Read"), !0),
            d("I/O write", bN("I/O Write"), !0),
            d("Parse time", E, !0),
            d("Bind time", A, !0),
            d("Check time", R, !0),
            d("Emit time", N, !0));
        (g && d("Total time", E + A + R + N, !1),
          VIe(e, s),
          g
            ? r
              ? (n9((P) => {
                  fq(P) || STe(P);
                }),
                TTe((P) => {
                  fq(P) || ETe(P);
                }))
              : pZ()
            : e.write(
                f
                  .Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found
                  .message +
                  `
`,
              ));
      }
      function l(_, h) {
        (s.push(_), h && r?.addAggregateStatistic(_));
      }
      function u(_, h) {
        l({ name: _, value: h, type: 1 }, !0);
      }
      function d(_, h, g) {
        l({ name: _, value: h, type: 0 }, g);
      }
    }
    function VIe(e, t) {
      let r = 0,
        i = 0;
      for (const o of t) {
        o.name.length > r && (r = o.name.length);
        const s = jIe(o);
        s.length > i && (i = s.length);
      }
      for (const o of t)
        e.write(
          `${o.name}:`.padEnd(r + 2) +
            jIe(o).toString().padStart(i) +
            e.newLine,
        );
    }
    function jIe(e) {
      switch (e.type) {
        case 1:
          return "" + e.value;
        case 0:
          return (e.value / 1e3).toFixed(2) + "s";
        case 2:
          return Math.round(e.value / 1e3) + "K";
        default:
          C.assertNever(e.type);
      }
    }
    function PJe(e, t, r) {
      const i = e.getCurrentDirectory(),
        o = ya(Qr(i, "tsconfig.json"));
      if (e.fileExists(o))
        t(Il(f.A_tsconfig_json_file_is_already_defined_at_Colon_0, o));
      else {
        e.writeFile(o, Doe(r, e.newLine));
        const s = [e.newLine, ...pq(e, "Created a new tsconfig.json")];
        s.push("You can learn more at https://aka.ms/tsconfig" + e.newLine);
        for (const l of s) e.write(l);
      }
    }
    function s_(e, t = !0) {
      return { type: e, reportFallback: t };
    }
    var UIe = s_(void 0, !1),
      HIe = s_(void 0, !1),
      EP = s_(void 0, !0);
    function mle(e, t) {
      const r = Vd(e, "strictNullChecks");
      return {
        serializeTypeOfDeclaration: h,
        serializeReturnTypeForSignature: E,
        serializeTypeOfExpression: _,
        serializeTypeOfAccessor: d,
        tryReuseExistingTypeNode(_e, je) {
          if (t.canReuseTypeNode(_e, je)) return o(_e, je);
        },
      };
      function i(_e, je, Ge = je) {
        return je === void 0
          ? void 0
          : t.markNodeReuse(_e, je.flags & 16 ? je : L.cloneNode(je), Ge ?? je);
      }
      function o(_e, je) {
        const {
            finalizeBoundary: Ge,
            startRecoveryScope: We,
            hadError: at,
            markError: Wt,
          } = t.createRecoveryBoundary(_e),
          cn = st(je, gn, Ri);
        if (!Ge()) return;
        return ((_e.approximateLength += je.end - je.pos), cn);
        function gn(zt) {
          if (at()) return zt;
          const Zr = We(),
            Ai = Hre(zt) ? t.enterNewScope(_e, zt) : void 0,
            Ni = lo(zt);
          return (
            Ai?.(),
            at()
              ? Ri(zt) && !HI(zt)
                ? (Zr(), t.serializeExistingTypeNode(_e, zt))
                : zt
              : Ni
                ? t.markNodeReuse(_e, Ni, zt)
                : void 0
          );
        }
        function Kn(zt) {
          const Zr = tM(zt);
          switch (Zr.kind) {
            case 184:
              return Di(Zr);
            case 187:
              return ir(Zr);
            case 200:
              return _t(Zr);
            case 199:
              const Ai = Zr;
              if (Ai.operator === 143) return en(Ai);
          }
          return st(zt, gn, Ri);
        }
        function _t(zt) {
          const Zr = Kn(zt.objectType);
          if (Zr !== void 0)
            return L.updateIndexedAccessTypeNode(
              zt,
              Zr,
              st(zt.indexType, gn, Ri),
            );
        }
        function en(zt) {
          C.assertEqual(zt.operator, 143);
          const Zr = Kn(zt.type);
          if (Zr !== void 0) return L.updateTypeOperatorNode(zt, Zr);
        }
        function ir(zt) {
          const { introducesError: Zr, node: Ai } = t.trackExistingEntityName(
            _e,
            zt.exprName,
          );
          if (!Zr)
            return L.updateTypeQueryNode(zt, Ai, Xn(zt.typeArguments, gn, Ri));
          const Ni = t.serializeTypeName(_e, zt.exprName, !0);
          if (Ni) return t.markNodeReuse(_e, Ni, zt.exprName);
        }
        function Di(zt) {
          if (t.canReuseTypeNode(_e, zt)) {
            const { introducesError: Zr, node: Ai } = t.trackExistingEntityName(
                _e,
                zt.typeName,
              ),
              Ni = Xn(zt.typeArguments, gn, Ri);
            if (Zr) {
              const Pr = t.serializeTypeName(_e, zt.typeName, !1, Ni);
              if (Pr) return t.markNodeReuse(_e, Pr, zt.typeName);
            } else {
              const Pr = L.updateTypeReferenceNode(zt, Ai, Ni);
              return t.markNodeReuse(_e, Pr, zt);
            }
          }
        }
        function lo(zt) {
          var Zr;
          if (t0(zt)) return st(zt.type, gn, Ri);
          if (kie(zt) || zt.kind === 320) return L.createKeywordTypeNode(133);
          if (wie(zt)) return L.createKeywordTypeNode(159);
          if (RD(zt))
            return L.createUnionTypeNode([
              st(zt.type, gn, Ri),
              L.createLiteralTypeNode(L.createNull()),
            ]);
          if (Ij(zt))
            return L.createUnionTypeNode([
              st(zt.type, gn, Ri),
              L.createKeywordTypeNode(157),
            ]);
          if (E4(zt)) return st(zt.type, gn);
          if (A4(zt)) return L.createArrayTypeNode(st(zt.type, gn, Ri));
          if (x1(zt))
            return L.createTypeLiteralNode(
              Vt(zt.jsDocPropertyTags, (At) => {
                const mn = st(He(At.name) ? At.name : At.name.right, gn, He),
                  dr = t.getJsDocPropertyOverride(_e, zt, At);
                return L.createPropertySignature(
                  void 0,
                  mn,
                  At.isBracketed ||
                    (At.typeExpression && Ij(At.typeExpression.type))
                    ? L.createToken(58)
                    : void 0,
                  dr ||
                    (At.typeExpression && st(At.typeExpression.type, gn, Ri)) ||
                    L.createKeywordTypeNode(133),
                );
              }),
            );
          if (Wp(zt) && He(zt.typeName) && zt.typeName.escapedText === "")
            return jr(L.createKeywordTypeNode(133), zt);
          if ((dy(zt) || Wp(zt)) && n6(zt))
            return L.createTypeLiteralNode([
              L.createIndexSignature(
                void 0,
                [
                  L.createParameterDeclaration(
                    void 0,
                    void 0,
                    "x",
                    void 0,
                    st(zt.typeArguments[0], gn, Ri),
                  ),
                ],
                st(zt.typeArguments[1], gn, Ri),
              ),
            ]);
          if (DD(zt))
            if (bI(zt)) {
              let At;
              return L.createConstructorTypeNode(
                void 0,
                Xn(zt.typeParameters, gn, sl),
                Ui(zt.parameters, (mn, dr) =>
                  mn.name && He(mn.name) && mn.name.escapedText === "new"
                    ? ((At = mn.type), void 0)
                    : L.createParameterDeclaration(
                        void 0,
                        Pr(mn),
                        t.markNodeReuse(_e, L.createIdentifier(Ci(mn, dr)), mn),
                        L.cloneNode(mn.questionToken),
                        st(mn.type, gn, Ri),
                        void 0,
                      ),
                ),
                st(At || zt.type, gn, Ri) || L.createKeywordTypeNode(133),
              );
            } else
              return L.createFunctionTypeNode(
                Xn(zt.typeParameters, gn, sl),
                Vt(zt.parameters, (At, mn) =>
                  L.createParameterDeclaration(
                    void 0,
                    Pr(At),
                    t.markNodeReuse(_e, L.createIdentifier(Ci(At, mn)), At),
                    L.cloneNode(At.questionToken),
                    st(At.type, gn, Ri),
                    void 0,
                  ),
                ),
                st(zt.type, gn, Ri) || L.createKeywordTypeNode(133),
              );
          if (VM(zt)) return (t.canReuseTypeNode(_e, zt) || Wt(), zt);
          if (sl(zt)) {
            const { node: At } = t.trackExistingEntityName(_e, zt.name);
            return L.updateTypeParameterDeclaration(
              zt,
              Xn(zt.modifiers, gn, Aa),
              At,
              st(zt.constraint, gn, Ri),
              st(zt.default, gn, Ri),
            );
          }
          if (BS(zt)) {
            const At = _t(zt);
            return At || (Wt(), zt);
          }
          if (Wp(zt)) {
            const At = Di(zt);
            return At || (Wt(), zt);
          }
          if (ry(zt)) {
            if (((Zr = zt.attributes) == null ? void 0 : Zr.token) === 132)
              return (Wt(), zt);
            if (!t.canReuseTypeNode(_e, zt))
              return t.serializeExistingTypeNode(_e, zt);
            const At = $e(zt, zt.argument.literal),
              mn = At === zt.argument.literal ? i(_e, zt.argument.literal) : At;
            return L.updateImportTypeNode(
              zt,
              mn === zt.argument.literal
                ? i(_e, zt.argument)
                : L.createLiteralTypeNode(mn),
              st(zt.attributes, gn, A1),
              st(zt.qualifier, gn, Mu),
              Xn(zt.typeArguments, gn, Ri),
              zt.isTypeOf,
            );
          }
          if (nd(zt) && zt.name.kind === 168 && !t.hasLateBindableName(zt)) {
            if (!oy(zt)) return Ai(zt, gn);
            if (t.shouldRemoveDeclaration(_e, zt)) return;
          }
          if (
            (Yo(zt) && !zt.type) ||
            (Po(zt) && !zt.type && !zt.initializer) ||
            (Su(zt) && !zt.type && !zt.initializer) ||
            (to(zt) && !zt.type && !zt.initializer)
          ) {
            let At = Ai(zt, gn);
            return (
              At === zt && (At = t.markNodeReuse(_e, L.cloneNode(zt), zt)),
              (At.type = L.createKeywordTypeNode(133)),
              to(zt) && (At.modifiers = void 0),
              At
            );
          }
          if (FS(zt)) {
            const At = ir(zt);
            return At || (Wt(), zt);
          }
          if (va(zt) && Ds(zt.expression)) {
            const { node: At, introducesError: mn } = t.trackExistingEntityName(
              _e,
              zt.expression,
            );
            if (mn) {
              const dr = t.serializeTypeOfExpression(_e, zt.expression);
              let ri;
              if (uv(dr)) ri = dr.literal;
              else {
                const ai = t.evaluateEntityNameExpression(zt.expression),
                  qi =
                    typeof ai.value == "string"
                      ? L.createStringLiteral(ai.value, void 0)
                      : typeof ai.value == "number"
                        ? L.createNumericLiteral(ai.value, 0)
                        : void 0;
                if (!qi)
                  return (e_(dr) && t.trackComputedName(_e, zt.expression), zt);
                ri = qi;
              }
              return ri.kind === 11 && fp(ri.text, Ga(e))
                ? L.createIdentifier(ri.text)
                : ri.kind === 9 && !ri.text.startsWith("-")
                  ? ri
                  : L.updateComputedPropertyName(zt, ri);
            } else return L.updateComputedPropertyName(zt, At);
          }
          if (HI(zt)) {
            let At;
            if (He(zt.parameterName)) {
              const { node: mn, introducesError: dr } =
                t.trackExistingEntityName(_e, zt.parameterName);
              (dr && Wt(), (At = mn));
            } else At = L.cloneNode(zt.parameterName);
            return L.updateTypePredicateNode(
              zt,
              L.cloneNode(zt.assertsModifier),
              At,
              st(zt.type, gn, Ri),
            );
          }
          if (qI(zt) || wu(zt) || b1(zt)) {
            const At = Ai(zt, gn),
              mn = t.markNodeReuse(_e, At === zt ? L.cloneNode(zt) : At, zt),
              dr = Qa(mn);
            return (Cr(mn, dr | (_e.flags & 1024 && wu(zt) ? 0 : 1)), mn);
          }
          if (ka(zt) && _e.flags & 268435456 && !zt.singleQuote) {
            const At = L.cloneNode(zt);
            return ((At.singleQuote = !0), At);
          }
          if (zS(zt)) {
            const At = st(zt.checkType, gn, Ri),
              mn = t.enterNewScope(_e, zt),
              dr = st(zt.extendsType, gn, Ri),
              ri = st(zt.trueType, gn, Ri);
            mn();
            const ai = st(zt.falseType, gn, Ri);
            return L.updateConditionalTypeNode(zt, At, dr, ri, ai);
          }
          if (KT(zt)) {
            if (zt.operator === 158 && zt.type.kind === 155) {
              if (!t.canReuseTypeNode(_e, zt)) return (Wt(), zt);
            } else if (zt.operator === 143) {
              const At = en(zt);
              return At || (Wt(), zt);
            }
          }
          return Ai(zt, gn);
          function Ai(At, mn) {
            const dr = !_e.enclosingFile || _e.enclosingFile !== Wn(At);
            return kn(At, mn, void 0, dr ? Ni : void 0);
          }
          function Ni(At, mn, dr, ri, ai) {
            let qi = Xn(At, mn, dr, ri, ai);
            return (
              qi &&
                (qi.pos !== -1 || qi.end !== -1) &&
                (qi === At &&
                  (qi = L.createNodeArray(At.slice(), At.hasTrailingComma)),
                uh(qi, -1, -1)),
              qi
            );
          }
          function Pr(At) {
            return (
              At.dotDotDotToken ||
              (At.type && A4(At.type) ? L.createToken(26) : void 0)
            );
          }
          function Ci(At, mn) {
            return At.name && He(At.name) && At.name.escapedText === "this"
              ? "this"
              : Pr(At)
                ? "args"
                : `arg${mn}`;
          }
          function $e(At, mn) {
            const dr = t.getModuleSpecifierOverride(_e, At, mn);
            return dr ? jr(L.createStringLiteral(dr), mn) : mn;
          }
        }
      }
      function s(_e, je, Ge) {
        if (!_e) return;
        let We;
        return (
          (!Ge || Be(_e)) &&
            t.canReuseTypeNode(je, _e) &&
            ((We = o(je, _e)), We !== void 0 && (We = Ne(We, Ge, void 0, je))),
          We
        );
      }
      function l(_e, je, Ge, We, at, Wt = at !== void 0) {
        if (
          !_e ||
          (!t.canReuseTypeNodeAnnotation(je, Ge, _e, We, at) &&
            (!at || !t.canReuseTypeNodeAnnotation(je, Ge, _e, We, !1)))
        )
          return;
        let cn;
        return (
          (!at || Be(_e)) && (cn = s(_e, je, at)),
          cn !== void 0 || !Wt
            ? cn
            : (je.tracker.reportInferenceFallback(Ge),
              t.serializeExistingTypeNode(je, _e, at) ??
                L.createKeywordTypeNode(133))
        );
      }
      function u(_e, je, Ge, We) {
        if (!_e) return;
        const at = s(_e, je, Ge);
        return at !== void 0
          ? at
          : (je.tracker.reportInferenceFallback(_e),
            t.serializeExistingTypeNode(je, _e, Ge) ??
              L.createKeywordTypeNode(133));
      }
      function d(_e, je, Ge) {
        return N(_e, je, Ge) ?? Z(_e, t.getAllAccessorDeclarations(_e), Ge, je);
      }
      function _(_e, je, Ge, We) {
        const at = ie(_e, je, !1, Ge, We);
        return at.type !== void 0 ? at.type : j(_e, je, at.reportFallback);
      }
      function h(_e, je, Ge) {
        switch (_e.kind) {
          case 170:
          case 342:
            return k(_e, je, Ge);
          case 261:
            return P(_e, je, Ge);
          case 172:
          case 349:
          case 173:
            return O(_e, je, Ge);
          case 209:
            return G(_e, je, Ge);
          case 278:
            return _(_e.expression, Ge, void 0, !0);
          case 212:
          case 213:
          case 227:
            return W(_e, je, Ge);
          case 304:
          case 305:
            return g(_e, je, Ge);
          default:
            C.assertNever(
              _e,
              `Node needs to be an inferrable node, found ${C.formatSyntaxKind(_e.kind)}`,
            );
        }
      }
      function g(_e, je, Ge) {
        const We = xc(_e);
        let at;
        if (
          (We &&
            t.canReuseTypeNodeAnnotation(Ge, _e, We, je) &&
            (at = s(We, Ge)),
          !at && _e.kind === 304)
        ) {
          const Wt = _e.initializer,
            cn = HS(Wt)
              ? MD(Wt)
              : Wt.kind === 235 || Wt.kind === 217
                ? Wt.type
                : void 0;
          cn &&
            !Om(cn) &&
            t.canReuseTypeNodeAnnotation(Ge, _e, cn, je) &&
            (at = s(cn, Ge));
        }
        return at ?? G(_e, je, Ge, !1);
      }
      function E(_e, je, Ge) {
        switch (_e.kind) {
          case 178:
            return d(_e, je, Ge);
          case 175:
          case 263:
          case 181:
          case 174:
          case 180:
          case 177:
          case 179:
          case 182:
          case 185:
          case 186:
          case 219:
          case 220:
          case 318:
          case 324:
            return lt(_e, je, Ge);
          default:
            C.assertNever(
              _e,
              `Node needs to be an inferrable node, found ${C.formatSyntaxKind(_e.kind)}`,
            );
        }
      }
      function A(_e) {
        if (_e) return _e.kind === 178 ? (Ir(_e) && $y(_e)) || kp(_e) : lV(_e);
      }
      function R(_e, je) {
        let Ge = A(_e);
        return (
          !Ge && _e !== je.firstAccessor && (Ge = A(je.firstAccessor)),
          !Ge &&
            je.secondAccessor &&
            _e !== je.secondAccessor &&
            (Ge = A(je.secondAccessor)),
          Ge
        );
      }
      function N(_e, je, Ge) {
        const We = t.getAllAccessorDeclarations(_e),
          at = R(_e, We);
        if (at && !HI(at))
          return q(Ge, _e, () => l(at, Ge, _e, je) ?? G(_e, je, Ge));
        if (We.getAccessor)
          return q(Ge, We.getAccessor, () => lt(We.getAccessor, je, Ge));
      }
      function P(_e, je, Ge) {
        var We;
        const at = xc(_e);
        let Wt = EP;
        return (
          at
            ? (Wt = s_(l(at, Ge, _e, je)))
            : _e.initializer &&
              (((We = je.declarations) == null ? void 0 : We.length) === 1 ||
                Io(je.declarations, yi) === 1) &&
              !t.isExpandoFunctionDeclaration(_e) &&
              !Re(_e) &&
              (Wt = ie(_e.initializer, Ge, void 0, void 0, Xte(_e))),
          Wt.type !== void 0 ? Wt.type : G(_e, je, Ge, Wt.reportFallback)
        );
      }
      function k(_e, je, Ge) {
        const We = _e.parent;
        if (We.kind === 179) return d(We, void 0, Ge);
        const at = xc(_e),
          Wt = t.requiresAddingImplicitUndefined(
            _e,
            je,
            Ge.enclosingDeclaration,
          );
        let cn = EP;
        return (
          at
            ? (cn = s_(l(at, Ge, _e, je, Wt)))
            : to(_e) &&
              _e.initializer &&
              He(_e.name) &&
              !Re(_e) &&
              (cn = ie(_e.initializer, Ge, void 0, Wt)),
          cn.type !== void 0 ? cn.type : G(_e, je, Ge, cn.reportFallback)
        );
      }
      function W(_e, je, Ge) {
        const We = xc(_e);
        let at;
        We && (at = l(We, Ge, _e, je));
        const Wt = Ge.suppressReportInferenceFallback;
        Ge.suppressReportInferenceFallback = !0;
        const cn = at ?? G(_e, je, Ge, !1);
        return ((Ge.suppressReportInferenceFallback = Wt), cn);
      }
      function O(_e, je, Ge) {
        const We = xc(_e),
          at = t.requiresAddingImplicitUndefined(
            _e,
            je,
            Ge.enclosingDeclaration,
          );
        let Wt = EP;
        if (We) Wt = s_(l(We, Ge, _e, je, at));
        else {
          const cn = Po(_e) ? _e.initializer : void 0;
          if (cn && !Re(_e)) {
            const gn = nk(_e);
            Wt = ie(cn, Ge, void 0, at, gn);
          }
        }
        return Wt.type !== void 0 ? Wt.type : G(_e, je, Ge, Wt.reportFallback);
      }
      function G(_e, je, Ge, We = !0) {
        return (
          We && Ge.tracker.reportInferenceFallback(_e),
          Ge.noInferenceFallback === !0
            ? L.createKeywordTypeNode(133)
            : t.serializeTypeOfDeclaration(Ge, _e, je)
        );
      }
      function j(_e, je, Ge = !0, We) {
        return (
          C.assert(!We),
          Ge && je.tracker.reportInferenceFallback(_e),
          je.noInferenceFallback === !0
            ? L.createKeywordTypeNode(133)
            : (t.serializeTypeOfExpression(je, _e) ??
              L.createKeywordTypeNode(133))
        );
      }
      function J(_e, je, Ge, We) {
        return (
          We && je.tracker.reportInferenceFallback(_e),
          je.noInferenceFallback === !0
            ? L.createKeywordTypeNode(133)
            : (t.serializeReturnTypeForSignature(je, _e, Ge) ??
              L.createKeywordTypeNode(133))
        );
      }
      function Z(_e, je, Ge, We, at = !0) {
        return _e.kind === 178
          ? lt(_e, We, Ge, at)
          : (at && Ge.tracker.reportInferenceFallback(_e),
            (je.getAccessor && lt(je.getAccessor, We, Ge, at)) ??
              t.serializeTypeOfDeclaration(Ge, _e, We) ??
              L.createKeywordTypeNode(133));
      }
      function q(_e, je, Ge) {
        const We = t.enterNewScope(_e, je),
          at = Ge();
        return (We(), at);
      }
      function ye(_e, je, Ge, We) {
        return Om(je) ? ie(_e, Ge, !0, We) : s_(u(je, Ge, We));
      }
      function ie(_e, je, Ge = !1, We = !1, at = !1) {
        switch (_e.kind) {
          case 218:
            return HS(_e)
              ? ye(_e.expression, MD(_e), je, We)
              : ie(_e.expression, je, Ge, We);
          case 80:
            if (t.isUndefinedIdentifierExpression(_e)) return s_(re());
            break;
          case 106:
            return s_(
              r
                ? Ne(L.createLiteralTypeNode(L.createNull()), We, _e, je)
                : L.createKeywordTypeNode(133),
            );
          case 220:
          case 219:
            return (C.type(_e), q(je, _e, () => K(_e, je)));
          case 217:
          case 235:
            const Wt = _e;
            return ye(Wt.expression, Wt.type, je, We);
          case 225:
            const cn = _e;
            if (r4(cn))
              return be(
                cn.operator === 40 ? cn.operand : cn,
                cn.operand.kind === 10 ? 163 : 150,
                je,
                Ge || at,
                We,
              );
            break;
          case 210:
            return de(_e, je, Ge, We);
          case 211:
            return ve(_e, je, Ge, We);
          case 232:
            return s_(j(_e, je, !0, We));
          case 229:
            if (!Ge && !at) return s_(L.createKeywordTypeNode(154));
            break;
          default:
            let gn,
              Kn = _e;
            switch (_e.kind) {
              case 9:
                gn = 150;
                break;
              case 15:
                ((Kn = L.createStringLiteral(_e.text)), (gn = 154));
                break;
              case 11:
                gn = 154;
                break;
              case 10:
                gn = 163;
                break;
              case 112:
              case 97:
                gn = 136;
                break;
            }
            if (gn) return be(Kn, gn, je, Ge || at, We);
        }
        return EP;
      }
      function K(_e, je) {
        const Ge = lt(_e, void 0, je),
          We = Ce(_e.typeParameters, je),
          at = _e.parameters.map((Wt) => X(Wt, je));
        return s_(L.createFunctionTypeNode(We, at, Ge));
      }
      function pe(_e, je, Ge) {
        if (!Ge) return (je.tracker.reportInferenceFallback(_e), !1);
        for (const We of _e.elements)
          if (We.kind === 231)
            return (je.tracker.reportInferenceFallback(We), !1);
        return !0;
      }
      function de(_e, je, Ge, We) {
        if (!pe(_e, je, Ge))
          return We || rd(zm(_e).parent) ? HIe : s_(j(_e, je, !1, We));
        const at = je.noInferenceFallback;
        je.noInferenceFallback = !0;
        const Wt = [];
        for (const gn of _e.elements)
          if ((C.assert(gn.kind !== 231), gn.kind === 233)) Wt.push(re());
          else {
            const Kn = ie(gn, je, Ge),
              _t = Kn.type !== void 0 ? Kn.type : j(gn, je, Kn.reportFallback);
            Wt.push(_t);
          }
        const cn = L.createTupleTypeNode(Wt);
        return (
          (cn.emitNode = { flags: 1, autoGenerate: void 0, internalFlags: 0 }),
          (je.noInferenceFallback = at),
          UIe
        );
      }
      function fe(_e, je) {
        let Ge = !0;
        for (const We of _e.properties) {
          if (We.flags & 262144) {
            Ge = !1;
            break;
          }
          if (We.kind === 305 || We.kind === 306)
            (je.tracker.reportInferenceFallback(We), (Ge = !1));
          else if (We.name.flags & 262144) {
            Ge = !1;
            break;
          } else if (We.name.kind === 81) Ge = !1;
          else if (We.name.kind === 168) {
            const at = We.name.expression;
            !r4(at, !1) &&
              !t.isDefinitelyReferenceToGlobalSymbolObject(at) &&
              (je.tracker.reportInferenceFallback(We.name), (Ge = !1));
          }
        }
        return Ge;
      }
      function ve(_e, je, Ge, We) {
        if (!fe(_e, je))
          return We || rd(zm(_e).parent) ? HIe : s_(j(_e, je, !1, We));
        const at = je.noInferenceFallback;
        je.noInferenceFallback = !0;
        const Wt = [],
          cn = je.flags;
        je.flags |= 4194304;
        for (const Kn of _e.properties) {
          C.assert(!Ud(Kn) && !xg(Kn));
          const _t = Kn.name;
          let en;
          switch (Kn.kind) {
            case 175:
              en = q(je, Kn, () => Je(Kn, _t, je, Ge));
              break;
            case 304:
              en = xe(Kn, _t, je, Ge);
              break;
            case 179:
            case 178:
              en = Se(Kn, _t, je);
              break;
          }
          en && (Rc(en, Kn), Wt.push(en));
        }
        je.flags = cn;
        const gn = L.createTypeLiteralNode(Wt);
        return (
          je.flags & 1024 || Cr(gn, 1),
          (je.noInferenceFallback = at),
          UIe
        );
      }
      function xe(_e, je, Ge, We) {
        const at = We ? [L.createModifier(148)] : [],
          Wt = ie(_e.initializer, Ge, We),
          cn =
            Wt.type !== void 0 ? Wt.type : G(_e, void 0, Ge, Wt.reportFallback);
        return L.createPropertySignature(at, i(Ge, je), void 0, cn);
      }
      function X(_e, je) {
        return L.updateParameterDeclaration(
          _e,
          void 0,
          i(je, _e.dotDotDotToken),
          t.serializeNameOfParameter(je, _e),
          t.isOptionalParameter(_e) ? L.createToken(58) : void 0,
          k(_e, void 0, je),
          void 0,
        );
      }
      function Ce(_e, je) {
        return _e?.map((Ge) => {
          var We;
          const { node: at } = t.trackExistingEntityName(je, Ge.name);
          return L.updateTypeParameterDeclaration(
            Ge,
            (We = Ge.modifiers) == null ? void 0 : We.map((Wt) => i(je, Wt)),
            at,
            u(Ge.constraint, je),
            u(Ge.default, je),
          );
        });
      }
      function Je(_e, je, Ge, We) {
        const at = lt(_e, void 0, Ge),
          Wt = Ce(_e.typeParameters, Ge),
          cn = _e.parameters.map((gn) => X(gn, Ge));
        return We
          ? L.createPropertySignature(
              [L.createModifier(148)],
              i(Ge, je),
              i(Ge, _e.questionToken),
              L.createFunctionTypeNode(Wt, cn, at),
            )
          : (He(je) &&
              je.escapedText === "new" &&
              (je = L.createStringLiteral("new")),
            L.createMethodSignature(
              [],
              i(Ge, je),
              i(Ge, _e.questionToken),
              Wt,
              cn,
              at,
            ));
      }
      function Se(_e, je, Ge) {
        const We = t.getAllAccessorDeclarations(_e),
          at = We.getAccessor && A(We.getAccessor),
          Wt = We.setAccessor && A(We.setAccessor);
        if (at !== void 0 && Wt !== void 0)
          return q(Ge, _e, () => {
            const cn = _e.parameters.map((gn) => X(gn, Ge));
            return ug(_e)
              ? L.updateGetAccessorDeclaration(
                  _e,
                  [],
                  i(Ge, je),
                  cn,
                  u(at, Ge),
                  void 0,
                )
              : L.updateSetAccessorDeclaration(_e, [], i(Ge, je), cn, void 0);
          });
        if (We.firstAccessor === _e) {
          const gn =
            (at
              ? q(Ge, We.getAccessor, () => u(at, Ge))
              : Wt
                ? q(Ge, We.setAccessor, () => u(Wt, Ge))
                : void 0) ?? Z(_e, We, Ge, void 0);
          return L.createPropertySignature(
            We.setAccessor === void 0 ? [L.createModifier(148)] : [],
            i(Ge, je),
            void 0,
            gn,
          );
        }
      }
      function re() {
        return r ? L.createKeywordTypeNode(157) : L.createKeywordTypeNode(133);
      }
      function be(_e, je, Ge, We, at) {
        let Wt;
        return (
          We
            ? (_e.kind === 225 &&
                _e.operator === 40 &&
                (Wt = L.createLiteralTypeNode(i(Ge, _e.operand))),
              (Wt = L.createLiteralTypeNode(i(Ge, _e))))
            : (Wt = L.createKeywordTypeNode(je)),
          s_(Ne(Wt, at, _e, Ge))
        );
      }
      function Ne(_e, je, Ge, We) {
        const at = Ge && zm(Ge).parent,
          Wt = at && rd(at) && wI(at);
        return !r || !(je || Wt)
          ? _e
          : (Be(_e) || We.tracker.reportInferenceFallback(_e),
            dv(_e)
              ? L.createUnionTypeNode([
                  ..._e.types,
                  L.createKeywordTypeNode(157),
                ])
              : L.createUnionTypeNode([_e, L.createKeywordTypeNode(157)]));
      }
      function Be(_e) {
        return !r ||
          ep(_e.kind) ||
          _e.kind === 202 ||
          _e.kind === 185 ||
          _e.kind === 186 ||
          _e.kind === 189 ||
          _e.kind === 190 ||
          _e.kind === 188 ||
          _e.kind === 204 ||
          _e.kind === 198
          ? !0
          : _e.kind === 197
            ? Be(_e.type)
            : _e.kind === 193 || _e.kind === 194
              ? _e.types.every(Be)
              : !1;
      }
      function lt(_e, je, Ge, We = !0) {
        let at = EP;
        const Wt = bI(_e) ? xc(_e.parameters[0]) : kp(_e);
        return (
          Wt ? (at = s_(l(Wt, Ge, _e, je))) : l1(_e) && (at = ce(_e, Ge)),
          at.type !== void 0
            ? at.type
            : J(_e, Ge, je, We && at.reportFallback && !Wt)
        );
      }
      function ce(_e, je) {
        let Ge;
        if (_e && !Ol(_e.body)) {
          if (cc(_e) & 3) return EP;
          const at = _e.body;
          at && ea(at)
            ? vb(at, (Wt) => {
                if (Wt.parent !== at) return ((Ge = void 0), !0);
                if (!Ge) Ge = Wt.expression;
                else return ((Ge = void 0), !0);
              })
            : (Ge = at);
        }
        if (Ge)
          if (Re(Ge)) {
            const We = HS(Ge) ? MD(Ge) : SD(Ge) || v4(Ge) ? Ge.type : void 0;
            if (We && !Om(We)) return s_(s(We, je));
          } else return ie(Ge, je);
        return EP;
      }
      function Re(_e) {
        return Dn(
          _e.parent,
          (je) => Zo(je) || (!Ms(je) && !!xc(je)) || r_(je) || ID(je),
        );
      }
    }
    var Gb = {};
    x(Gb, {
      NameValidationResult: () => QIe,
      discoverTypings: () => wJe,
      isTypingUpToDate: () => YIe,
      loadSafeList: () => LJe,
      loadTypesMap: () => kJe,
      nonRelativeModuleNameForTypingCache: () => $Ie,
      renderPackageNameValidationFailure: () => WJe,
      validatePackageName: () => OJe,
    });
    var Z3 = "action::set",
      e7 = "action::invalidate",
      t7 = "action::packageInstalled",
      hq = "event::typesRegistry",
      _q = "event::beginInstallTypes",
      gq = "event::endInstallTypes",
      hle = "event::initializationFailed",
      mO = "action::watchTypingLocations",
      yq;
    ((e) => {
      ((e.GlobalCacheLocation = "--globalTypingsCacheLocation"),
        (e.LogFile = "--logFile"),
        (e.EnableTelemetry = "--enableTelemetry"),
        (e.TypingSafeListLocation = "--typingSafeListLocation"),
        (e.TypesMapLocation = "--typesMapLocation"),
        (e.NpmLocation = "--npmLocation"),
        (e.ValidateDefaultNpmLocation = "--validateDefaultNpmLocation"));
    })(yq || (yq = {}));
    function qIe(e) {
      return jc.args.includes(e);
    }
    function JIe(e) {
      const t = jc.args.indexOf(e);
      return t >= 0 && t < jc.args.length - 1 ? jc.args[t + 1] : void 0;
    }
    function KIe() {
      const e = new Date();
      return `${e.getHours().toString().padStart(2, "0")}:${e.getMinutes().toString().padStart(2, "0")}:${e.getSeconds().toString().padStart(2, "0")}.${e.getMilliseconds().toString().padStart(3, "0")}`;
    }
    var XIe = `
    `;
    function AP(e) {
      return XIe + e.replace(/\n/g, XIe);
    }
    function u0(e) {
      return AP(JSON.stringify(e, void 0, 2));
    }
    function YIe(e, t) {
      return (
        new ih(h2(t, `ts${ge}`) || h2(t, "latest")).compareTo(e.version) <= 0
      );
    }
    function $Ie(e) {
      return _D.has(e) ? "node" : e;
    }
    function LJe(e, t) {
      const r = kw(t, (i) => e.readFile(i));
      return new Map(Object.entries(r.config));
    }
    function kJe(e, t) {
      var r;
      const i = kw(t, (o) => e.readFile(o));
      if ((r = i.config) != null && r.simpleMap)
        return new Map(Object.entries(i.config.simpleMap));
    }
    function wJe(e, t, r, i, o, s, l, u, d, _) {
      if (!l || !l.enable)
        return { cachedTypingPaths: [], newTypingNames: [], filesToWatch: [] };
      const h = new Map();
      r = Ui(r, (G) => {
        const j = ya(G);
        if (Tg(j)) return j;
      });
      const g = [];
      l.include && k(l.include, "Explicitly included types");
      const E = l.exclude || [];
      if (!_.types) {
        const G = new Set(r.map(ci));
        (G.add(i),
          G.forEach((j) => {
            (W(j, "bower.json", "bower_components", g),
              W(j, "package.json", "node_modules", g));
          }));
      }
      if ((l.disableFilenameBasedTypeAcquisition || O(r), u)) {
        const G = cS(u.map($Ie), pS, Wd);
        k(G, "Inferred typings from unresolved imports");
      }
      for (const G of E)
        h.delete(G) &&
          t &&
          t(`Typing for ${G} is in exclude list, will be ignored.`);
      s.forEach((G, j) => {
        const J = d.get(j);
        h.get(j) === !1 &&
          J !== void 0 &&
          YIe(G, J) &&
          h.set(j, G.typingLocation);
      });
      const A = [],
        R = [];
      h.forEach((G, j) => {
        G ? R.push(G) : A.push(j);
      });
      const N = { cachedTypingPaths: R, newTypingNames: A, filesToWatch: g };
      return (t && t(`Finished typings discovery:${u0(N)}`), N);
      function P(G) {
        h.has(G) || h.set(G, !1);
      }
      function k(G, j) {
        (t && t(`${j}: ${JSON.stringify(G)}`), Ye(G, P));
      }
      function W(G, j, J, Z) {
        const q = Qr(G, j);
        let ye, ie;
        e.fileExists(q) &&
          (Z.push(q),
          (ye = kw(q, (fe) => e.readFile(fe)).config),
          (ie = Ki(
            [
              ye.dependencies,
              ye.devDependencies,
              ye.optionalDependencies,
              ye.peerDependencies,
            ],
            Wh,
          )),
          k(ie, `Typing names in '${q}' dependencies`));
        const K = Qr(G, J);
        if ((Z.push(K), !e.directoryExists(K))) return;
        const pe = [],
          de = ie
            ? ie.map((fe) => Qr(K, fe, j))
            : e.readDirectory(K, [".json"], void 0, void 0, 3).filter((fe) => {
                if (Ic(fe) !== j) return !1;
                const ve = zd(ya(fe)),
                  xe = ve[ve.length - 3][0] === "@";
                return (
                  (xe && tb(ve[ve.length - 4]) === J) ||
                  (!xe && tb(ve[ve.length - 3]) === J)
                );
              });
        t &&
          t(
            `Searching for typing names in ${K}; all files: ${JSON.stringify(de)}`,
          );
        for (const fe of de) {
          const ve = ya(fe),
            X = kw(ve, (Je) => e.readFile(Je)).config;
          if (!X.name) continue;
          const Ce = X.types || X.typings;
          if (Ce) {
            const Je = To(Ce, ci(ve));
            e.fileExists(Je)
              ? (t && t(`    Package '${X.name}' provides its own types.`),
                h.set(X.name, Je))
              : t &&
                t(
                  `    Package '${X.name}' provides its own types but they are missing.`,
                );
          } else pe.push(X.name);
        }
        k(pe, "    Found package names");
      }
      function O(G) {
        const j = Ui(G, (Z) => {
          if (!Tg(Z)) return;
          const q = Tu(tb(Ic(Z))),
            ye = YB(q);
          return o.get(ye);
        });
        (j.length && k(j, "Inferred typings from file names"),
          yt(G, (Z) => El(Z, ".jsx")) &&
            (t &&
              t("Inferred 'react' typings due to presence of '.jsx' extension"),
            P("react")));
      }
    }
    var QIe = ((e) => (
        (e[(e.Ok = 0)] = "Ok"),
        (e[(e.EmptyName = 1)] = "EmptyName"),
        (e[(e.NameTooLong = 2)] = "NameTooLong"),
        (e[(e.NameStartsWithDot = 3)] = "NameStartsWithDot"),
        (e[(e.NameStartsWithUnderscore = 4)] = "NameStartsWithUnderscore"),
        (e[(e.NameContainsNonURISafeCharacters = 5)] =
          "NameContainsNonURISafeCharacters"),
        e
      ))(QIe || {}),
      ZIe = 214;
    function OJe(e) {
      return _le(e, !0);
    }
    function _le(e, t) {
      if (!e) return 1;
      if (e.length > ZIe) return 2;
      if (e.charCodeAt(0) === 46) return 3;
      if (e.charCodeAt(0) === 95) return 4;
      if (t) {
        const r = /^@([^/]+)\/([^/]+)$/.exec(e);
        if (r) {
          const i = _le(r[1], !1);
          if (i !== 0) return { name: r[1], isScopeName: !0, result: i };
          const o = _le(r[2], !1);
          return o !== 0 ? { name: r[2], isScopeName: !1, result: o } : 0;
        }
      }
      return encodeURIComponent(e) !== e ? 5 : 0;
    }
    function WJe(e, t) {
      return typeof e == "object"
        ? exe(t, e.result, e.name, e.isScopeName)
        : exe(t, e, t, !1);
    }
    function exe(e, t, r, i) {
      const o = i ? "Scope" : "Package";
      switch (t) {
        case 1:
          return `'${e}':: ${o} name '${r}' cannot be empty`;
        case 2:
          return `'${e}':: ${o} name '${r}' should be less than ${ZIe} characters`;
        case 3:
          return `'${e}':: ${o} name '${r}' cannot start with '.'`;
        case 4:
          return `'${e}':: ${o} name '${r}' cannot start with '_'`;
        case 5:
          return `'${e}':: ${o} name '${r}' contains non URI safe characters`;
        case 0:
          return C.fail();
        default:
          C.assertNever(t);
      }
    }
    var n7;
    ((e) => {
      class t {
        constructor(o) {
          this.text = o;
        }
        getText(o, s) {
          return o === 0 && s === this.text.length
            ? this.text
            : this.text.substring(o, s);
        }
        getLength() {
          return this.text.length;
        }
        getChangeRange() {}
      }
      function r(i) {
        return new t(i);
      }
      e.fromString = r;
    })(n7 || (n7 = {}));
    var gle = ((e) => (
        (e[(e.Dependencies = 1)] = "Dependencies"),
        (e[(e.DevDependencies = 2)] = "DevDependencies"),
        (e[(e.PeerDependencies = 4)] = "PeerDependencies"),
        (e[(e.OptionalDependencies = 8)] = "OptionalDependencies"),
        (e[(e.All = 15)] = "All"),
        e
      ))(gle || {}),
      yle = ((e) => (
        (e[(e.Off = 0)] = "Off"),
        (e[(e.On = 1)] = "On"),
        (e[(e.Auto = 2)] = "Auto"),
        e
      ))(yle || {}),
      vle = ((e) => (
        (e[(e.Semantic = 0)] = "Semantic"),
        (e[(e.PartialSemantic = 1)] = "PartialSemantic"),
        (e[(e.Syntactic = 2)] = "Syntactic"),
        e
      ))(vle || {}),
      Sm = {},
      ble = ((e) => ((e.Original = "original"), (e.TwentyTwenty = "2020"), e))(
        ble || {},
      ),
      vq = ((e) => (
        (e.All = "All"),
        (e.SortAndCombine = "SortAndCombine"),
        (e.RemoveUnused = "RemoveUnused"),
        e
      ))(vq || {}),
      bq = ((e) => (
        (e[(e.Invoked = 1)] = "Invoked"),
        (e[(e.TriggerCharacter = 2)] = "TriggerCharacter"),
        (e[(e.TriggerForIncompleteCompletions = 3)] =
          "TriggerForIncompleteCompletions"),
        e
      ))(bq || {}),
      Tle = ((e) => (
        (e.Type = "Type"),
        (e.Parameter = "Parameter"),
        (e.Enum = "Enum"),
        e
      ))(Tle || {}),
      Sle = ((e) => (
        (e.none = "none"),
        (e.definition = "definition"),
        (e.reference = "reference"),
        (e.writtenReference = "writtenReference"),
        e
      ))(Sle || {}),
      Ele = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Block = 1)] = "Block"),
        (e[(e.Smart = 2)] = "Smart"),
        e
      ))(Ele || {}),
      Tq = ((e) => (
        (e.Ignore = "ignore"),
        (e.Insert = "insert"),
        (e.Remove = "remove"),
        e
      ))(Tq || {});
    function r7(e) {
      return {
        indentSize: 4,
        tabSize: 4,
        newLineCharacter:
          e ||
          `
`,
        convertTabsToSpaces: !0,
        indentStyle: 2,
        insertSpaceAfterConstructor: !1,
        insertSpaceAfterCommaDelimiter: !0,
        insertSpaceAfterSemicolonInForStatements: !0,
        insertSpaceBeforeAndAfterBinaryOperators: !0,
        insertSpaceAfterKeywordsInControlFlowStatements: !0,
        insertSpaceAfterFunctionKeywordForAnonymousFunctions: !1,
        insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: !1,
        insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: !1,
        insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces: !0,
        insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: !1,
        insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces: !1,
        insertSpaceBeforeFunctionParenthesis: !1,
        placeOpenBraceOnNewLineForFunctions: !1,
        placeOpenBraceOnNewLineForControlBlocks: !1,
        semicolons: "ignore",
        trimTrailingWhitespace: !0,
        indentSwitchCase: !0,
      };
    }
    var txe = r7(`
`),
      i7 = ((e) => (
        (e[(e.aliasName = 0)] = "aliasName"),
        (e[(e.className = 1)] = "className"),
        (e[(e.enumName = 2)] = "enumName"),
        (e[(e.fieldName = 3)] = "fieldName"),
        (e[(e.interfaceName = 4)] = "interfaceName"),
        (e[(e.keyword = 5)] = "keyword"),
        (e[(e.lineBreak = 6)] = "lineBreak"),
        (e[(e.numericLiteral = 7)] = "numericLiteral"),
        (e[(e.stringLiteral = 8)] = "stringLiteral"),
        (e[(e.localName = 9)] = "localName"),
        (e[(e.methodName = 10)] = "methodName"),
        (e[(e.moduleName = 11)] = "moduleName"),
        (e[(e.operator = 12)] = "operator"),
        (e[(e.parameterName = 13)] = "parameterName"),
        (e[(e.propertyName = 14)] = "propertyName"),
        (e[(e.punctuation = 15)] = "punctuation"),
        (e[(e.space = 16)] = "space"),
        (e[(e.text = 17)] = "text"),
        (e[(e.typeParameterName = 18)] = "typeParameterName"),
        (e[(e.enumMemberName = 19)] = "enumMemberName"),
        (e[(e.functionName = 20)] = "functionName"),
        (e[(e.regularExpressionLiteral = 21)] = "regularExpressionLiteral"),
        (e[(e.link = 22)] = "link"),
        (e[(e.linkName = 23)] = "linkName"),
        (e[(e.linkText = 24)] = "linkText"),
        e
      ))(i7 || {}),
      Ale = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.MayIncludeAutoImports = 1)] = "MayIncludeAutoImports"),
        (e[(e.IsImportStatementCompletion = 2)] =
          "IsImportStatementCompletion"),
        (e[(e.IsContinuation = 4)] = "IsContinuation"),
        (e[(e.ResolvedModuleSpecifiers = 8)] = "ResolvedModuleSpecifiers"),
        (e[(e.ResolvedModuleSpecifiersBeyondLimit = 16)] =
          "ResolvedModuleSpecifiersBeyondLimit"),
        (e[(e.MayIncludeMethodSnippets = 32)] = "MayIncludeMethodSnippets"),
        e
      ))(Ale || {}),
      Ile = ((e) => (
        (e.Comment = "comment"),
        (e.Region = "region"),
        (e.Code = "code"),
        (e.Imports = "imports"),
        e
      ))(Ile || {}),
      xle = ((e) => (
        (e[(e.JavaScript = 0)] = "JavaScript"),
        (e[(e.SourceMap = 1)] = "SourceMap"),
        (e[(e.Declaration = 2)] = "Declaration"),
        e
      ))(xle || {}),
      Rle = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.InMultiLineCommentTrivia = 1)] = "InMultiLineCommentTrivia"),
        (e[(e.InSingleQuoteStringLiteral = 2)] = "InSingleQuoteStringLiteral"),
        (e[(e.InDoubleQuoteStringLiteral = 3)] = "InDoubleQuoteStringLiteral"),
        (e[(e.InTemplateHeadOrNoSubstitutionTemplate = 4)] =
          "InTemplateHeadOrNoSubstitutionTemplate"),
        (e[(e.InTemplateMiddleOrTail = 5)] = "InTemplateMiddleOrTail"),
        (e[(e.InTemplateSubstitutionPosition = 6)] =
          "InTemplateSubstitutionPosition"),
        e
      ))(Rle || {}),
      Dle = ((e) => (
        (e[(e.Punctuation = 0)] = "Punctuation"),
        (e[(e.Keyword = 1)] = "Keyword"),
        (e[(e.Operator = 2)] = "Operator"),
        (e[(e.Comment = 3)] = "Comment"),
        (e[(e.Whitespace = 4)] = "Whitespace"),
        (e[(e.Identifier = 5)] = "Identifier"),
        (e[(e.NumberLiteral = 6)] = "NumberLiteral"),
        (e[(e.BigIntLiteral = 7)] = "BigIntLiteral"),
        (e[(e.StringLiteral = 8)] = "StringLiteral"),
        (e[(e.RegExpLiteral = 9)] = "RegExpLiteral"),
        e
      ))(Dle || {}),
      Cle = ((e) => (
        (e.unknown = ""),
        (e.warning = "warning"),
        (e.keyword = "keyword"),
        (e.scriptElement = "script"),
        (e.moduleElement = "module"),
        (e.classElement = "class"),
        (e.localClassElement = "local class"),
        (e.interfaceElement = "interface"),
        (e.typeElement = "type"),
        (e.enumElement = "enum"),
        (e.enumMemberElement = "enum member"),
        (e.variableElement = "var"),
        (e.localVariableElement = "local var"),
        (e.variableUsingElement = "using"),
        (e.variableAwaitUsingElement = "await using"),
        (e.functionElement = "function"),
        (e.localFunctionElement = "local function"),
        (e.memberFunctionElement = "method"),
        (e.memberGetAccessorElement = "getter"),
        (e.memberSetAccessorElement = "setter"),
        (e.memberVariableElement = "property"),
        (e.memberAccessorVariableElement = "accessor"),
        (e.constructorImplementationElement = "constructor"),
        (e.callSignatureElement = "call"),
        (e.indexSignatureElement = "index"),
        (e.constructSignatureElement = "construct"),
        (e.parameterElement = "parameter"),
        (e.typeParameterElement = "type parameter"),
        (e.primitiveType = "primitive type"),
        (e.label = "label"),
        (e.alias = "alias"),
        (e.constElement = "const"),
        (e.letElement = "let"),
        (e.directory = "directory"),
        (e.externalModuleName = "external module name"),
        (e.jsxAttribute = "JSX attribute"),
        (e.string = "string"),
        (e.link = "link"),
        (e.linkName = "link name"),
        (e.linkText = "link text"),
        e
      ))(Cle || {}),
      Nle = ((e) => (
        (e.none = ""),
        (e.publicMemberModifier = "public"),
        (e.privateMemberModifier = "private"),
        (e.protectedMemberModifier = "protected"),
        (e.exportedModifier = "export"),
        (e.ambientModifier = "declare"),
        (e.staticModifier = "static"),
        (e.abstractModifier = "abstract"),
        (e.optionalModifier = "optional"),
        (e.deprecatedModifier = "deprecated"),
        (e.dtsModifier = ".d.ts"),
        (e.tsModifier = ".ts"),
        (e.tsxModifier = ".tsx"),
        (e.jsModifier = ".js"),
        (e.jsxModifier = ".jsx"),
        (e.jsonModifier = ".json"),
        (e.dmtsModifier = ".d.mts"),
        (e.mtsModifier = ".mts"),
        (e.mjsModifier = ".mjs"),
        (e.dctsModifier = ".d.cts"),
        (e.ctsModifier = ".cts"),
        (e.cjsModifier = ".cjs"),
        e
      ))(Nle || {}),
      Mle = ((e) => (
        (e.comment = "comment"),
        (e.identifier = "identifier"),
        (e.keyword = "keyword"),
        (e.numericLiteral = "number"),
        (e.bigintLiteral = "bigint"),
        (e.operator = "operator"),
        (e.stringLiteral = "string"),
        (e.whiteSpace = "whitespace"),
        (e.text = "text"),
        (e.punctuation = "punctuation"),
        (e.className = "class name"),
        (e.enumName = "enum name"),
        (e.interfaceName = "interface name"),
        (e.moduleName = "module name"),
        (e.typeParameterName = "type parameter name"),
        (e.typeAliasName = "type alias name"),
        (e.parameterName = "parameter name"),
        (e.docCommentTagName = "doc comment tag name"),
        (e.jsxOpenTagName = "jsx open tag name"),
        (e.jsxCloseTagName = "jsx close tag name"),
        (e.jsxSelfClosingTagName = "jsx self closing tag name"),
        (e.jsxAttribute = "jsx attribute"),
        (e.jsxText = "jsx text"),
        (e.jsxAttributeStringLiteralValue =
          "jsx attribute string literal value"),
        e
      ))(Mle || {}),
      Sq = ((e) => (
        (e[(e.comment = 1)] = "comment"),
        (e[(e.identifier = 2)] = "identifier"),
        (e[(e.keyword = 3)] = "keyword"),
        (e[(e.numericLiteral = 4)] = "numericLiteral"),
        (e[(e.operator = 5)] = "operator"),
        (e[(e.stringLiteral = 6)] = "stringLiteral"),
        (e[(e.regularExpressionLiteral = 7)] = "regularExpressionLiteral"),
        (e[(e.whiteSpace = 8)] = "whiteSpace"),
        (e[(e.text = 9)] = "text"),
        (e[(e.punctuation = 10)] = "punctuation"),
        (e[(e.className = 11)] = "className"),
        (e[(e.enumName = 12)] = "enumName"),
        (e[(e.interfaceName = 13)] = "interfaceName"),
        (e[(e.moduleName = 14)] = "moduleName"),
        (e[(e.typeParameterName = 15)] = "typeParameterName"),
        (e[(e.typeAliasName = 16)] = "typeAliasName"),
        (e[(e.parameterName = 17)] = "parameterName"),
        (e[(e.docCommentTagName = 18)] = "docCommentTagName"),
        (e[(e.jsxOpenTagName = 19)] = "jsxOpenTagName"),
        (e[(e.jsxCloseTagName = 20)] = "jsxCloseTagName"),
        (e[(e.jsxSelfClosingTagName = 21)] = "jsxSelfClosingTagName"),
        (e[(e.jsxAttribute = 22)] = "jsxAttribute"),
        (e[(e.jsxText = 23)] = "jsxText"),
        (e[(e.jsxAttributeStringLiteralValue = 24)] =
          "jsxAttributeStringLiteralValue"),
        (e[(e.bigintLiteral = 25)] = "bigintLiteral"),
        e
      ))(Sq || {}),
      yd = cg(99, !0),
      Ple = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.Value = 1)] = "Value"),
        (e[(e.Type = 2)] = "Type"),
        (e[(e.Namespace = 4)] = "Namespace"),
        (e[(e.All = 7)] = "All"),
        e
      ))(Ple || {});
    function o7(e) {
      switch (e.kind) {
        case 261:
          return Ir(e) && V9(e) ? 7 : 1;
        case 170:
        case 209:
        case 173:
        case 172:
        case 304:
        case 305:
        case 175:
        case 174:
        case 177:
        case 178:
        case 179:
        case 263:
        case 219:
        case 220:
        case 300:
        case 292:
          return 1;
        case 169:
        case 265:
        case 266:
        case 188:
          return 2;
        case 347:
          return e.name === void 0 ? 3 : 2;
        case 307:
        case 264:
          return 3;
        case 268:
          return yu(e) || my(e) === 1 ? 5 : 4;
        case 267:
        case 276:
        case 277:
        case 272:
        case 273:
        case 278:
        case 279:
          return 7;
        case 308:
          return 5;
      }
      return 7;
    }
    function W1(e) {
      e = wq(e);
      const t = e.parent;
      return e.kind === 308
        ? 1
        : ll(t) || ou(t) || uy(t) || Eu(t) || Vm(t) || (Fc(t) && e === t.name)
          ? 7
          : a7(e)
            ? FJe(e)
            : L_(e)
              ? o7(t)
              : Mu(e) && Dn(e, Rp(JM, cI, n0))
                ? 7
                : VJe(e)
                  ? 2
                  : zJe(e)
                    ? 4
                    : sl(t)
                      ? (C.assert(bm(t.parent)), 2)
                      : uv(t)
                        ? 3
                        : 1;
    }
    function FJe(e) {
      const t =
        e.kind === 167
          ? e
          : ku(e.parent) && e.parent.right === e
            ? e.parent
            : void 0;
      return t && t.parent.kind === 272 ? 7 : 4;
    }
    function a7(e) {
      if (!e.parent) return !1;
      for (; e.parent.kind === 167; ) e = e.parent;
      return r1(e.parent) && e.parent.moduleReference === e;
    }
    function zJe(e) {
      return BJe(e) || GJe(e);
    }
    function BJe(e) {
      let t = e,
        r = !0;
      if (t.parent.kind === 167) {
        for (; t.parent && t.parent.kind === 167; ) t = t.parent;
        r = t.right === e;
      }
      return t.parent.kind === 184 && !r;
    }
    function GJe(e) {
      let t = e,
        r = !0;
      if (t.parent.kind === 212) {
        for (; t.parent && t.parent.kind === 212; ) t = t.parent;
        r = t.name === e;
      }
      if (!r && t.parent.kind === 234 && t.parent.parent.kind === 299) {
        const i = t.parent.parent.parent;
        return (
          (i.kind === 264 && t.parent.parent.token === 119) ||
          (i.kind === 265 && t.parent.parent.token === 96)
        );
      }
      return !1;
    }
    function VJe(e) {
      switch ((fM(e) && (e = e.parent), e.kind)) {
        case 110:
          return !P_(e);
        case 198:
          return !0;
      }
      switch (e.parent.kind) {
        case 184:
          return !0;
        case 206:
          return !e.parent.isTypeOf;
        case 234:
          return Hh(e.parent);
      }
      return !1;
    }
    function Eq(e, t = !1, r = !1) {
      return hO(e, Zo, Iq, t, r);
    }
    function IP(e, t = !1, r = !1) {
      return hO(e, GS, Iq, t, r);
    }
    function Aq(e, t = !1, r = !1) {
      return hO(e, Gh, Iq, t, r);
    }
    function Lle(e, t = !1, r = !1) {
      return hO(e, XT, jJe, t, r);
    }
    function kle(e, t = !1, r = !1) {
      return hO(e, Wc, Iq, t, r);
    }
    function wle(e, t = !1, r = !1) {
      return hO(e, ru, UJe, t, r);
    }
    function Iq(e) {
      return e.expression;
    }
    function jJe(e) {
      return e.tag;
    }
    function UJe(e) {
      return e.tagName;
    }
    function hO(e, t, r, i, o) {
      let s = i ? HJe(e) : s7(e);
      return (
        o && (s = Ul(s)),
        !!s && !!s.parent && t(s.parent) && r(s.parent) === s
      );
    }
    function s7(e) {
      return $D(e) ? e.parent : e;
    }
    function HJe(e) {
      return $D(e) || Cq(e) ? e.parent : e;
    }
    function l7(e, t) {
      for (; e; ) {
        if (e.kind === 257 && e.label.escapedText === t) return e.label;
        e = e.parent;
      }
    }
    function _O(e, t) {
      return qr(e.expression) ? e.expression.name.text === t : !1;
    }
    function gO(e) {
      var t;
      return He(e) && ((t = ni(e.parent, kN)) == null ? void 0 : t.label) === e;
    }
    function xq(e) {
      var t;
      return He(e) && ((t = ni(e.parent, Lb)) == null ? void 0 : t.label) === e;
    }
    function Rq(e) {
      return xq(e) || gO(e);
    }
    function Dq(e) {
      var t;
      return ((t = ni(e.parent, VR)) == null ? void 0 : t.tagName) === e;
    }
    function Ole(e) {
      var t;
      return ((t = ni(e.parent, ku)) == null ? void 0 : t.right) === e;
    }
    function $D(e) {
      var t;
      return ((t = ni(e.parent, qr)) == null ? void 0 : t.name) === e;
    }
    function Cq(e) {
      var t;
      return (
        ((t = ni(e.parent, Ws)) == null ? void 0 : t.argumentExpression) === e
      );
    }
    function Nq(e) {
      var t;
      return ((t = ni(e.parent, uc)) == null ? void 0 : t.name) === e;
    }
    function Mq(e) {
      var t;
      return He(e) && ((t = ni(e.parent, Yo)) == null ? void 0 : t.name) === e;
    }
    function c7(e) {
      switch (e.parent.kind) {
        case 173:
        case 172:
        case 304:
        case 307:
        case 175:
        case 174:
        case 178:
        case 179:
        case 268:
          return Oo(e.parent) === e;
        case 213:
          return e.parent.argumentExpression === e;
        case 168:
          return !0;
        case 202:
          return e.parent.parent.kind === 200;
        default:
          return !1;
      }
    }
    function Wle(e) {
      return FT(e.parent.parent) && XN(e.parent.parent) === e;
    }
    function F1(e) {
      for (hm(e) && (e = e.parent.parent); ; ) {
        if (((e = e.parent), !e)) return;
        switch (e.kind) {
          case 308:
          case 175:
          case 174:
          case 263:
          case 219:
          case 178:
          case 179:
          case 264:
          case 265:
          case 267:
          case 268:
            return e;
        }
      }
    }
    function ZS(e) {
      switch (e.kind) {
        case 308:
          return zc(e) ? "module" : "script";
        case 268:
          return "module";
        case 264:
        case 232:
          return "class";
        case 265:
          return "interface";
        case 266:
        case 339:
        case 347:
          return "type";
        case 267:
          return "enum";
        case 261:
          return t(e);
        case 209:
          return t(Jh(e));
        case 220:
        case 263:
        case 219:
          return "function";
        case 178:
          return "getter";
        case 179:
          return "setter";
        case 175:
        case 174:
          return "method";
        case 304:
          const { initializer: r } = e;
          return Yo(r) ? "method" : "property";
        case 173:
        case 172:
        case 305:
        case 306:
          return "property";
        case 182:
          return "index";
        case 181:
          return "construct";
        case 180:
          return "call";
        case 177:
        case 176:
          return "constructor";
        case 169:
          return "type parameter";
        case 307:
          return "enum member";
        case 170:
          return di(e, 31) ? "property" : "parameter";
        case 272:
        case 277:
        case 282:
        case 275:
        case 281:
          return "alias";
        case 227:
          const i = oc(e),
            { right: o } = e;
          switch (i) {
            case 7:
            case 8:
            case 9:
            case 0:
              return "";
            case 1:
            case 2:
              const l = ZS(o);
              return l === "" ? "const" : l;
            case 3:
              return Us(o) ? "method" : "property";
            case 4:
              return "property";
            case 5:
              return Us(o) ? "method" : "property";
            case 6:
              return "local class";
            default:
              return "";
          }
        case 80:
          return Vm(e.parent) ? "alias" : "";
        case 278:
          const s = ZS(e.expression);
          return s === "" ? "const" : s;
        default:
          return "";
      }
      function t(r) {
        return JR(r) ? "const" : GF(r) ? "let" : "var";
      }
    }
    function QD(e) {
      switch (e.kind) {
        case 110:
          return !0;
        case 80:
          return sV(e) && e.parent.kind === 170;
        default:
          return !1;
      }
    }
    var qJe = /^\/\/\/\s*</;
    function Em(e, t) {
      const r = ag(t),
        i = t.getLineAndCharacterOfPosition(e).line;
      return r[i];
    }
    function Fle(e, t) {
      return yO(e, t.pos) && yO(e, t.end);
    }
    function ZD(e, t) {
      return e.pos <= t && t <= e.end;
    }
    function yO(e, t) {
      return e.pos < t && t < e.end;
    }
    function vO(e, t, r) {
      return e.pos <= t && e.end >= r;
    }
    function xP(e, t, r) {
      return u7(e.pos, e.end, t, r);
    }
    function d7(e, t, r, i) {
      return u7(e.getStart(t), e.end, r, i);
    }
    function u7(e, t, r, i) {
      const o = Math.max(e, r),
        s = Math.min(t, i);
      return o < s;
    }
    function Pq(e, t, r) {
      return (C.assert(e.pos <= t), t < e.end || !gh(e, r));
    }
    function gh(e, t) {
      if (e === void 0 || Ol(e)) return !1;
      switch (e.kind) {
        case 264:
        case 265:
        case 267:
        case 211:
        case 207:
        case 188:
        case 242:
        case 269:
        case 270:
        case 276:
        case 280:
          return Lq(e, 20, t);
        case 300:
          return gh(e.block, t);
        case 215:
          if (!e.arguments) return !0;
        case 214:
        case 218:
        case 197:
          return Lq(e, 22, t);
        case 185:
        case 186:
          return gh(e.type, t);
        case 177:
        case 178:
        case 179:
        case 263:
        case 219:
        case 175:
        case 174:
        case 181:
        case 180:
        case 220:
          return e.body ? gh(e.body, t) : e.type ? gh(e.type, t) : kq(e, 22, t);
        case 268:
          return !!e.body && gh(e.body, t);
        case 246:
          return e.elseStatement
            ? gh(e.elseStatement, t)
            : gh(e.thenStatement, t);
        case 245:
          return gh(e.expression, t) || kq(e, 27, t);
        case 210:
        case 208:
        case 213:
        case 168:
        case 190:
          return Lq(e, 24, t);
        case 182:
          return e.type ? gh(e.type, t) : kq(e, 24, t);
        case 297:
        case 298:
          return !1;
        case 249:
        case 250:
        case 251:
        case 248:
          return gh(e.statement, t);
        case 247:
          return kq(e, 117, t) ? Lq(e, 22, t) : gh(e.statement, t);
        case 187:
          return gh(e.exprName, t);
        case 222:
        case 221:
        case 223:
        case 230:
        case 231:
          return gh(e.expression, t);
        case 216:
          return gh(e.template, t);
        case 229:
          const i = Zs(e.templateSpans);
          return gh(i, t);
        case 240:
          return fm(e.literal);
        case 279:
        case 273:
          return fm(e.moduleSpecifier);
        case 225:
          return gh(e.operand, t);
        case 227:
          return gh(e.right, t);
        case 228:
          return gh(e.whenFalse, t);
        default:
          return !0;
      }
    }
    function Lq(e, t, r) {
      const i = e.getChildren(r);
      if (i.length) {
        const o = Ba(i);
        if (o.kind === t) return !0;
        if (o.kind === 27 && i.length !== 1) return i[i.length - 2].kind === t;
      }
      return !1;
    }
    function zle(e) {
      const t = p7(e);
      if (!t) return;
      const r = t.getChildren();
      return { listItemIndex: UR(r, e), list: t };
    }
    function kq(e, t, r) {
      return !!Es(e, t, r);
    }
    function Es(e, t, r) {
      return hn(e.getChildren(r), (i) => i.kind === t);
    }
    function p7(e) {
      const t = hn(e.parent.getChildren(), (r) => ND(r) && tp(r, e));
      return (C.assert(!t || jn(t.getChildren(), e)), t);
    }
    function nxe(e) {
      return e.kind === 90;
    }
    function JJe(e) {
      return e.kind === 86;
    }
    function KJe(e) {
      return e.kind === 100;
    }
    function XJe(e) {
      if (nd(e)) return e.name;
      if (Dc(e)) {
        const t = e.modifiers && hn(e.modifiers, nxe);
        if (t) return t;
      }
      if (dc(e)) {
        const t = hn(e.getChildren(), JJe);
        if (t) return t;
      }
    }
    function YJe(e) {
      if (nd(e)) return e.name;
      if (Zl(e)) {
        const t = hn(e.modifiers, nxe);
        if (t) return t;
      }
      if (Us(e)) {
        const t = hn(e.getChildren(), KJe);
        if (t) return t;
      }
    }
    function $Je(e) {
      let t;
      return (
        Dn(
          e,
          (r) => (
            Ri(r) && (t = r),
            !ku(r.parent) && !Ri(r.parent) && !_S(r.parent)
          ),
        ),
        t
      );
    }
    function f7(e, t) {
      if (e.flags & 16777216) return;
      const r = C7(e, t);
      if (r) return r;
      const i = $Je(e);
      return i && t.getTypeAtLocation(i);
    }
    function QJe(e, t) {
      if (!t)
        switch (e.kind) {
          case 264:
          case 232:
            return XJe(e);
          case 263:
          case 219:
            return YJe(e);
          case 177:
            return e;
        }
      if (nd(e)) return e.name;
    }
    function rxe(e, t) {
      if (e.importClause) {
        if (e.importClause.name && e.importClause.namedBindings) return;
        if (e.importClause.name) return e.importClause.name;
        if (e.importClause.namedBindings) {
          if (n_(e.importClause.namedBindings)) {
            const r = og(e.importClause.namedBindings.elements);
            return r ? r.name : void 0;
          } else if (Ig(e.importClause.namedBindings))
            return e.importClause.namedBindings.name;
        }
      }
      if (!t) return e.moduleSpecifier;
    }
    function ixe(e, t) {
      if (e.exportClause) {
        if (Jf(e.exportClause))
          return og(e.exportClause.elements)
            ? e.exportClause.elements[0].name
            : void 0;
        if (O_(e.exportClause)) return e.exportClause.name;
      }
      if (!t) return e.moduleSpecifier;
    }
    function ZJe(e) {
      if (e.types.length === 1) return e.types[0].expression;
    }
    function oxe(e, t) {
      const { parent: r } = e;
      if (
        Aa(e) && (t || e.kind !== 90)
          ? Tm(r) && jn(r.modifiers, e)
          : e.kind === 86
            ? Dc(r) || dc(e)
            : e.kind === 100
              ? Zl(r) || Us(e)
              : e.kind === 120
                ? gd(r)
                : e.kind === 94
                  ? ZT(r)
                  : e.kind === 156
                    ? vm(r)
                    : e.kind === 145 || e.kind === 144
                      ? uc(r)
                      : e.kind === 102
                        ? Fc(r)
                        : e.kind === 139
                          ? Hf(r)
                          : e.kind === 153 && gp(r)
      ) {
        const i = QJe(r, t);
        if (i) return i;
      }
      if (
        (e.kind === 115 || e.kind === 87 || e.kind === 121) &&
        _d(r) &&
        r.declarations.length === 1
      ) {
        const i = r.declarations[0];
        if (He(i.name)) return i.name;
      }
      if (e.kind === 156) {
        if (Vm(r) && r.isTypeOnly) {
          const i = rxe(r.parent, t);
          if (i) return i;
        }
        if (pc(r) && r.isTypeOnly) {
          const i = ixe(r, t);
          if (i) return i;
        }
      }
      if (e.kind === 130) {
        if (
          (Eu(r) && r.propertyName) ||
          (ou(r) && r.propertyName) ||
          Ig(r) ||
          O_(r)
        )
          return r.name;
        if (pc(r) && r.exportClause && O_(r.exportClause))
          return r.exportClause.name;
      }
      if (e.kind === 102 && vl(r)) {
        const i = rxe(r, t);
        if (i) return i;
      }
      if (e.kind === 95) {
        if (pc(r)) {
          const i = ixe(r, t);
          if (i) return i;
        }
        if (ll(r)) return Ul(r.expression);
      }
      if (e.kind === 149 && uy(r)) return r.expression;
      if (e.kind === 161 && (vl(r) || pc(r)) && r.moduleSpecifier)
        return r.moduleSpecifier;
      if ((e.kind === 96 || e.kind === 119) && Fp(r) && r.token === e.kind) {
        const i = ZJe(r);
        if (i) return i;
      }
      if (e.kind === 96) {
        if (sl(r) && r.constraint && Wp(r.constraint))
          return r.constraint.typeName;
        if (zS(r) && Wp(r.extendsType)) return r.extendsType.typeName;
      }
      if (e.kind === 140 && y1(r)) return r.typeParameter.name;
      if (e.kind === 103 && sl(r) && b1(r.parent)) return r.name;
      if (e.kind === 143 && KT(r) && r.operator === 143 && Wp(r.type))
        return r.type.typeName;
      if (
        e.kind === 148 &&
        KT(r) &&
        r.operator === 148 &&
        hw(r.type) &&
        Wp(r.type.elementType)
      )
        return r.type.elementType.typeName;
      if (!t) {
        if (
          ((e.kind === 105 && GS(r)) ||
            (e.kind === 116 && KI(r)) ||
            (e.kind === 114 && TD(r)) ||
            (e.kind === 135 && Pb(r)) ||
            (e.kind === 127 && _w(r)) ||
            (e.kind === 91 && Eie(r))) &&
          r.expression
        )
          return Ul(r.expression);
        if (
          (e.kind === 103 || e.kind === 104) &&
          Nr(r) &&
          r.operatorToken === e
        )
          return Ul(r.right);
        if (e.kind === 130 && SD(r) && Wp(r.type)) return r.type.typeName;
        if ((e.kind === 103 && T4(r)) || (e.kind === 165 && gw(r)))
          return Ul(r.expression);
      }
      return e;
    }
    function wq(e) {
      return oxe(e, !1);
    }
    function m7(e) {
      return oxe(e, !0);
    }
    function ip(e, t) {
      return eC(e, t, (r) => qh(r) || ep(r.kind) || eo(r));
    }
    function eC(e, t, r) {
      return axe(e, t, !1, r, !1);
    }
    function Fi(e, t) {
      return axe(e, t, !0, void 0, !1);
    }
    function axe(e, t, r, i, o) {
      let s = e,
        l;
      e: for (;;) {
        const d = s.getChildren(e),
          _ = YA(
            d,
            t,
            (h, g) => g,
            (h, g) => {
              const E = d[h].getEnd();
              if (E < t) return -1;
              const A = r ? d[h].getFullStart() : d[h].getStart(e, !0);
              return A > t
                ? 1
                : u(d[h], A, E)
                  ? d[h - 1] && u(d[h - 1])
                    ? 1
                    : 0
                  : i &&
                      A === t &&
                      d[h - 1] &&
                      d[h - 1].getEnd() === t &&
                      u(d[h - 1])
                    ? 1
                    : -1;
            },
          );
        if (l) return l;
        if (_ >= 0 && d[_]) {
          s = d[_];
          continue e;
        }
        return s;
      }
      function u(d, _, h) {
        if (
          (h ?? (h = d.getEnd()),
          h < t || (_ ?? (_ = r ? d.getFullStart() : d.getStart(e, !0)), _ > t))
        )
          return !1;
        if (t < h || (t === h && (d.kind === 1 || o))) return !0;
        if (i && h === t) {
          const g = Bc(t, e, d);
          if (g && i(g)) return ((l = g), !0);
        }
        return !1;
      }
    }
    function Ble(e, t) {
      let r = Fi(e, t);
      for (; h7(r); ) {
        const i = eE(r, r.parent, e);
        if (!i) return;
        r = i;
      }
      return r;
    }
    function RP(e, t) {
      const r = Fi(e, t);
      return oI(r) && t > r.getStart(e) && t < r.getEnd() ? r : Bc(t, e);
    }
    function eE(e, t, r) {
      return i(t);
      function i(o) {
        return oI(o) && o.pos === e.end
          ? o
          : Hn(o.getChildren(r), (s) =>
              ((s.pos <= e.pos && s.end > e.end) || s.pos === e.end) &&
              qle(s, r)
                ? i(s)
                : void 0,
            );
      }
    }
    function Bc(e, t, r, i) {
      const o = s(r || t);
      return (C.assert(!(o && h7(o))), o);
      function s(l) {
        if (sxe(l) && l.kind !== 1) return l;
        const u = l.getChildren(t),
          d = YA(
            u,
            e,
            (h, g) => g,
            (h, g) =>
              e < u[h].end ? (!u[h - 1] || e >= u[h - 1].end ? 0 : 1) : -1,
          );
        if (d >= 0 && u[d]) {
          const h = u[d];
          if (e < h.end)
            if (h.getStart(t, !i) >= e || !qle(h, t) || h7(h)) {
              const A = Vle(u, d, t, l.kind);
              return A
                ? !i && IF(A) && A.getChildren(t).length
                  ? s(A)
                  : Gle(A, t)
                : void 0;
            } else return s(h);
        }
        C.assert(r !== void 0 || l.kind === 308 || l.kind === 1 || IF(l));
        const _ = Vle(u, u.length, t, l.kind);
        return _ && Gle(_, t);
      }
    }
    function sxe(e) {
      return oI(e) && !h7(e);
    }
    function Gle(e, t) {
      if (sxe(e)) return e;
      const r = e.getChildren(t);
      if (r.length === 0) return e;
      const i = Vle(r, r.length, t, e.kind);
      return i && Gle(i, t);
    }
    function Vle(e, t, r, i) {
      for (let o = t - 1; o >= 0; o--) {
        const s = e[o];
        if (h7(s))
          o === 0 &&
            (i === 12 || i === 286) &&
            C.fail(
              "`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`",
            );
        else if (qle(e[o], r)) return e[o];
      }
    }
    function px(e, t, r = Bc(t, e)) {
      if (r && X9(r)) {
        const i = r.getStart(e),
          o = r.getEnd();
        if (i < t && t < o) return !0;
        if (t === o) return !!r.isUnterminated;
      }
      return !1;
    }
    function jle(e, t) {
      const r = Fi(e, t);
      return r
        ? !!(
            r.kind === 12 ||
            (r.kind === 30 && r.parent.kind === 12) ||
            (r.kind === 30 && r.parent.kind === 295) ||
            (r && r.kind === 20 && r.parent.kind === 295) ||
            (r.kind === 30 && r.parent.kind === 288)
          )
        : !1;
    }
    function h7(e) {
      return BI(e) && e.containsOnlyTriviaWhiteSpaces;
    }
    function Oq(e, t) {
      const r = Fi(e, t);
      return db(r.kind) && t > r.getStart(e);
    }
    function Ule(e, t) {
      const r = Fi(e, t);
      return !!(
        BI(r) ||
        (r.kind === 19 && ID(r.parent) && r_(r.parent.parent)) ||
        (r.kind === 30 && ru(r.parent) && r_(r.parent.parent))
      );
    }
    function _7(e, t) {
      function r(i) {
        for (; i; )
          if (
            (i.kind >= 286 && i.kind <= 295) ||
            i.kind === 12 ||
            i.kind === 30 ||
            i.kind === 32 ||
            i.kind === 80 ||
            i.kind === 20 ||
            i.kind === 19 ||
            i.kind === 44
          )
            i = i.parent;
          else if (i.kind === 285) {
            if (t > i.getStart(e)) return !0;
            i = i.parent;
          } else return !1;
        return !1;
      }
      return r(Fi(e, t));
    }
    function g7(e, t, r) {
      const i = _a(e.kind),
        o = _a(t),
        s = e.getFullStart(),
        l = r.text.lastIndexOf(o, s);
      if (l === -1) return;
      if (r.text.lastIndexOf(i, s - 1) < l) {
        const _ = Bc(l + 1, r);
        if (_ && _.kind === t) return _;
      }
      const u = e.kind;
      let d = 0;
      for (;;) {
        const _ = Bc(e.getFullStart(), r);
        if (!_) return;
        if (((e = _), e.kind === t)) {
          if (d === 0) return e;
          d--;
        } else e.kind === u && d++;
      }
    }
    function eKe(e, t, r) {
      return t ? e.getNonNullableType() : r ? e.getNonOptionalType() : e;
    }
    function bO(e, t, r) {
      const i = Fq(e, t);
      return (
        i !== void 0 &&
        (Hh(i.called) ||
          Wq(i.called, i.nTypeArguments, r).length !== 0 ||
          bO(i.called, t, r))
      );
    }
    function Wq(e, t, r) {
      let i = r.getTypeAtLocation(e);
      return (
        tu(e.parent) && (i = eKe(i, PN(e.parent), !0)),
        (GS(e.parent)
          ? i.getConstructSignatures()
          : i.getCallSignatures()
        ).filter((s) => !!s.typeParameters && s.typeParameters.length >= t)
      );
    }
    function Fq(e, t) {
      if (t.text.lastIndexOf("<", e ? e.pos : t.text.length) === -1) return;
      let r = e,
        i = 0,
        o = 0;
      for (; r; ) {
        switch (r.kind) {
          case 30:
            if (
              ((r = Bc(r.getFullStart(), t)),
              r && r.kind === 29 && (r = Bc(r.getFullStart(), t)),
              !r || !He(r))
            )
              return;
            if (!i) return L_(r) ? void 0 : { called: r, nTypeArguments: o };
            i--;
            break;
          case 50:
            i = 3;
            break;
          case 49:
            i = 2;
            break;
          case 32:
            i++;
            break;
          case 20:
            if (((r = g7(r, 19, t)), !r)) return;
            break;
          case 22:
            if (((r = g7(r, 21, t)), !r)) return;
            break;
          case 24:
            if (((r = g7(r, 23, t)), !r)) return;
            break;
          case 28:
            o++;
            break;
          case 39:
          case 80:
          case 11:
          case 9:
          case 10:
          case 112:
          case 97:
          case 114:
          case 96:
          case 143:
          case 25:
          case 52:
          case 58:
          case 59:
            break;
          default:
            if (Ri(r)) break;
            return;
        }
        r = Bc(r.getFullStart(), t);
      }
    }
    function mv(e, t, r) {
      return Nc.getRangeOfEnclosingComment(e, t, void 0, r);
    }
    function Hle(e, t) {
      const r = Fi(e, t);
      return !!Dn(r, mh);
    }
    function qle(e, t) {
      return e.kind === 1 ? !!e.jsDoc : e.getWidth(t) !== 0;
    }
    function DP(e, t = 0) {
      const r = [],
        i = rd(e) ? W9(e) & ~t : 0;
      return (
        i & 2 && r.push("private"),
        i & 4 && r.push("protected"),
        i & 1 && r.push("public"),
        (i & 256 || Ql(e)) && r.push("static"),
        i & 64 && r.push("abstract"),
        i & 32 && r.push("export"),
        i & 65536 && r.push("deprecated"),
        e.flags & 33554432 && r.push("declare"),
        e.kind === 278 && r.push("export"),
        r.length > 0 ? r.join(",") : ""
      );
    }
    function Jle(e) {
      if (e.kind === 184 || e.kind === 214) return e.typeArguments;
      if (Yo(e) || e.kind === 264 || e.kind === 265) return e.typeParameters;
    }
    function y7(e) {
      return e === 2 || e === 3;
    }
    function zq(e) {
      return !!(e === 11 || e === 14 || db(e));
    }
    function lxe(e, t, r) {
      return !!(t.flags & 4) && e.isEmptyAnonymousObjectType(r);
    }
    function Kle(e) {
      if (!e.isIntersection()) return !1;
      const { types: t, checker: r } = e;
      return t.length === 2 && (lxe(r, t[0], t[1]) || lxe(r, t[1], t[0]));
    }
    function TO(e, t, r) {
      return (
        (db(e.kind) && e.getStart(r) < t && t < e.end) ||
        (!!e.isUnterminated && t === e.end)
      );
    }
    function Bq(e) {
      switch (e) {
        case 125:
        case 123:
        case 124:
          return !0;
      }
      return !1;
    }
    function Gq(e) {
      const t = JQ(e);
      return (uU(t, e && e.configFile), t);
    }
    function hv(e) {
      return !!(
        (e.kind === 210 || e.kind === 211) &&
        ((e.parent.kind === 227 &&
          e.parent.left === e &&
          e.parent.operatorToken.kind === 64) ||
          (e.parent.kind === 251 && e.parent.initializer === e) ||
          hv(e.parent.kind === 304 ? e.parent.parent : e.parent))
      );
    }
    function Xle(e, t) {
      return cxe(e, t, !0);
    }
    function Yle(e, t) {
      return cxe(e, t, !1);
    }
    function cxe(e, t, r) {
      const i = mv(e, t, void 0);
      return !!i && r === qJe.test(e.text.substring(i.pos, i.end));
    }
    function Vq(e, t) {
      if (e)
        switch (e.kind) {
          case 11:
          case 15:
            return jq(e, t);
          default:
            return zu(e);
        }
    }
    function zu(e, t, r) {
      return ic(e.getStart(t), (r || e).getEnd());
    }
    function jq(e, t) {
      let r = e.getEnd() - 1;
      if (e.isUnterminated) {
        if (e.getStart() === r) return;
        r = Math.min(t, e.getEnd());
      }
      return ic(e.getStart() + 1, r);
    }
    function Uq(e, t) {
      return Bf(e.getStart(t), e.end);
    }
    function _v(e) {
      return ic(e.pos, e.end);
    }
    function v7(e) {
      return Bf(e.start, e.start + e.length);
    }
    function b7(e, t, r) {
      return SO(Id(e, t), r);
    }
    function SO(e, t) {
      return { span: e, newText: t };
    }
    var Hq = [
      133, 131, 163, 136, 97, 140, 143, 146, 106, 150, 151, 148, 154, 155, 114,
      112, 116, 157, 158, 159,
    ];
    function CP(e) {
      return jn(Hq, e);
    }
    function dxe(e) {
      return e.kind === 156;
    }
    function T7(e) {
      return dxe(e) || (He(e) && e.text === "type");
    }
    function tC() {
      const e = [];
      return (t) => {
        const r = ls(t);
        return !e[r] && (e[r] = !0);
      };
    }
    function fx(e) {
      return e.getText(0, e.getLength());
    }
    function EO(e, t) {
      let r = "";
      for (let i = 0; i < t; i++) r += e;
      return r;
    }
    function qq(e) {
      return (e.isTypeParameter() && e.getConstraint()) || e;
    }
    function AO(e) {
      return e.kind === 168
        ? uf(e.expression)
          ? e.expression.text
          : void 0
        : eo(e)
          ? Kr(e)
          : zf(e);
    }
    function $le(e) {
      return e
        .getSourceFiles()
        .some(
          (t) =>
            !t.isDeclarationFile &&
            !e.isSourceFileFromExternalLibrary(t) &&
            !!(t.externalModuleIndicator || t.commonJsModuleIndicator),
        );
    }
    function Qle(e) {
      return e
        .getSourceFiles()
        .some(
          (t) =>
            !t.isDeclarationFile &&
            !e.isSourceFileFromExternalLibrary(t) &&
            !!t.externalModuleIndicator,
        );
    }
    function Jq(e) {
      return !!e.module || Ga(e) >= 2 || !!e.noEmit;
    }
    function p0(e, t) {
      return {
        fileExists: (r) => e.fileExists(r),
        getCurrentDirectory: () => t.getCurrentDirectory(),
        readFile: ia(t, t.readFile),
        useCaseSensitiveFileNames:
          ia(t, t.useCaseSensitiveFileNames) || e.useCaseSensitiveFileNames,
        getSymlinkCache: ia(t, t.getSymlinkCache) || e.getSymlinkCache,
        getModuleSpecifierCache: ia(t, t.getModuleSpecifierCache),
        getPackageJsonInfoCache: () => {
          var r;
          return (r = e.getModuleResolutionCache()) == null
            ? void 0
            : r.getPackageJsonInfoCache();
        },
        getGlobalTypingsCacheLocation: ia(t, t.getGlobalTypingsCacheLocation),
        redirectTargetsMap: e.redirectTargetsMap,
        getRedirectFromSourceFile: (r) => e.getRedirectFromSourceFile(r),
        isSourceOfProjectReferenceRedirect: (r) =>
          e.isSourceOfProjectReferenceRedirect(r),
        getNearestAncestorDirectoryWithPackageJson: ia(
          t,
          t.getNearestAncestorDirectoryWithPackageJson,
        ),
        getFileIncludeReasons: () => e.getFileIncludeReasons(),
        getCommonSourceDirectory: () => e.getCommonSourceDirectory(),
        getDefaultResolutionModeForFile: (r) =>
          e.getDefaultResolutionModeForFile(r),
        getModeForResolutionAtIndex: (r, i) =>
          e.getModeForResolutionAtIndex(r, i),
      };
    }
    function Kq(e, t) {
      return {
        ...p0(e, t),
        getCommonSourceDirectory: () => e.getCommonSourceDirectory(),
      };
    }
    function S7(e) {
      return e === 2 || (e >= 3 && e <= 99) || e === 100;
    }
    function Vb(e, t, r, i, o) {
      return L.createImportDeclaration(
        void 0,
        e || t
          ? L.createImportClause(
              o ? 156 : void 0,
              e,
              t && t.length ? L.createNamedImports(t) : void 0,
            )
          : void 0,
        typeof r == "string" ? NP(r, i) : r,
        void 0,
      );
    }
    function NP(e, t) {
      return L.createStringLiteral(e, t === 0);
    }
    var Zle = ((e) => (
      (e[(e.Single = 0)] = "Single"),
      (e[(e.Double = 1)] = "Double"),
      e
    ))(Zle || {});
    function Xq(e, t) {
      return r6(e, t) ? 1 : 0;
    }
    function Gp(e, t) {
      if (t.quotePreference && t.quotePreference !== "auto")
        return t.quotePreference === "single" ? 0 : 1;
      {
        const r =
          _g(e) && e.imports && hn(e.imports, (i) => ka(i) && !Os(i.parent));
        return r ? Xq(r, e) : 1;
      }
    }
    function Yq(e) {
      switch (e) {
        case 0:
          return "'";
        case 1:
          return '"';
        default:
          return C.assertNever(e);
      }
    }
    function $q(e) {
      const t = E7(e);
      return t === void 0 ? void 0 : Gi(t);
    }
    function E7(e) {
      return e.escapedName !== "default"
        ? e.escapedName
        : Hn(e.declarations, (t) => {
            const r = Oo(t);
            return r && r.kind === 80 ? r.escapedText : void 0;
          });
    }
    function A7(e) {
      return (
        ds(e) &&
        (uy(e.parent) ||
          vl(e.parent) ||
          o_(e.parent) ||
          (Zu(e.parent, !1) && e.parent.arguments[0] === e) ||
          (Qu(e.parent) && e.parent.arguments[0] === e))
      );
    }
    function IO(e) {
      return Ha(e) && ff(e.parent) && He(e.name) && !e.propertyName;
    }
    function I7(e, t) {
      const r = e.getTypeAtLocation(t.parent);
      return r && e.getPropertyOfType(r, t.name.text);
    }
    function xO(e, t, r) {
      if (e)
        for (; e.parent; ) {
          if (Yi(e.parent) || !tKe(r, e.parent, t)) return e;
          e = e.parent;
        }
    }
    function tKe(e, t, r) {
      return k9(e, t.getStart(r)) && t.getEnd() <= Dl(e);
    }
    function nC(e, t) {
      return Tm(e) ? hn(e.modifiers, (r) => r.kind === t) : void 0;
    }
    function Qq(e, t, r, i, o) {
      var s;
      const u = (Mo(r) ? r[0] : r).kind === 244 ? fk : mI,
        d = Un(t.statements, u),
        { comparer: _, isSorted: h } =
          v0.getOrganizeImportsStringComparerWithDetection(d, o),
        g = Mo(r)
          ? xp(r, (E, A) => v0.compareImportsOrRequireStatements(E, A, _))
          : [r];
      if (!d?.length) {
        if (_g(t)) e.insertNodesAtTopOfFile(t, g, i);
        else
          for (const E of g)
            e.insertStatementsInNewFile(
              t.fileName,
              [E],
              (s = yl(E)) == null ? void 0 : s.getSourceFile(),
            );
        return;
      }
      if ((C.assert(_g(t)), d && h))
        for (const E of g) {
          const A = v0.getImportDeclarationInsertionIndex(d, E, _);
          if (A === 0) {
            const R =
              d[0] === t.statements[0]
                ? { leadingTriviaOption: Rr.LeadingTriviaOption.Exclude }
                : {};
            e.insertNodeBefore(t, d[0], E, !1, R);
          } else {
            const R = d[A - 1];
            e.insertNodeAfter(t, R, E);
          }
        }
      else {
        const E = Zs(d);
        E ? e.insertNodesAfter(t, E, g) : e.insertNodesAtTopOfFile(t, g, i);
      }
    }
    function Zq(e, t) {
      return (C.assert(e.isTypeOnly), ma(e.getChildAt(0, t), dxe));
    }
    function rC(e, t) {
      return !!e && !!t && e.start === t.start && e.length === t.length;
    }
    function eJ(e, t, r) {
      return (
        (r ? pS : rb)(e.fileName, t.fileName) && rC(e.textSpan, t.textSpan)
      );
    }
    function tJ(e) {
      return (t, r) => eJ(t, r, e);
    }
    function nJ(e, t) {
      if (e) {
        for (let r = 0; r < e.length; r++)
          if (e.indexOf(e[r]) === r) {
            const i = t(e[r], r);
            if (i) return i;
          }
      }
    }
    function ece(e, t, r) {
      for (let i = t; i < r; i++) if (!sg(e.charCodeAt(i))) return !1;
      return !0;
    }
    function MP(e, t, r) {
      const i = t.tryGetSourcePosition(e);
      return i && (!r || r(ya(i.fileName)) ? i : void 0);
    }
    function x7(e, t, r) {
      const { fileName: i, textSpan: o } = e,
        s = MP({ fileName: i, pos: o.start }, t, r);
      if (!s) return;
      const l = MP({ fileName: i, pos: o.start + o.length }, t, r),
        u = l ? l.pos - s.pos : o.length;
      return {
        fileName: s.fileName,
        textSpan: { start: s.pos, length: u },
        originalFileName: e.fileName,
        originalTextSpan: e.textSpan,
        contextSpan: rJ(e, t, r),
        originalContextSpan: e.contextSpan,
      };
    }
    function rJ(e, t, r) {
      const i =
          e.contextSpan &&
          MP({ fileName: e.fileName, pos: e.contextSpan.start }, t, r),
        o =
          e.contextSpan &&
          MP(
            {
              fileName: e.fileName,
              pos: e.contextSpan.start + e.contextSpan.length,
            },
            t,
            r,
          );
      return i && o ? { start: i.pos, length: o.pos - i.pos } : void 0;
    }
    function iJ(e) {
      const t = e.declarations ? Ac(e.declarations) : void 0;
      return !!Dn(t, (r) =>
        to(r) ? !0 : Ha(r) || ff(r) || pv(r) ? !1 : "quit",
      );
    }
    var tce = new Map();
    function nKe(e) {
      return ((e = e || GN), tce.has(e) || tce.set(e, rKe(e)), tce.get(e));
    }
    function rKe(e) {
      const t = e * 10;
      let r, i, o, s;
      g();
      const l = (E) => d(E, 17);
      return {
        displayParts: () => {
          const E = r.length && r[r.length - 1].text;
          return (
            s > t &&
              E &&
              E !== "..." &&
              (sg(E.charCodeAt(E.length - 1)) || r.push(yp(" ", 16)),
              r.push(yp("...", 15))),
            r
          );
        },
        writeKeyword: (E) => d(E, 5),
        writeOperator: (E) => d(E, 12),
        writePunctuation: (E) => d(E, 15),
        writeTrailingSemicolon: (E) => d(E, 15),
        writeSpace: (E) => d(E, 16),
        writeStringLiteral: (E) => d(E, 8),
        writeParameter: (E) => d(E, 13),
        writeProperty: (E) => d(E, 14),
        writeLiteral: (E) => d(E, 8),
        writeSymbol: _,
        writeLine: h,
        write: l,
        writeComment: l,
        getText: () => "",
        getTextPos: () => 0,
        getColumn: () => 0,
        getLine: () => 0,
        isAtStartOfLine: () => !1,
        hasTrailingWhitespace: () => !1,
        hasTrailingComment: () => !1,
        rawWrite: ha,
        getIndent: () => o,
        increaseIndent: () => {
          o++;
        },
        decreaseIndent: () => {
          o--;
        },
        clear: g,
      };
      function u() {
        if (!(s > t) && i) {
          const E = m6(o);
          (E && ((s += E.length), r.push(yp(E, 16))), (i = !1));
        }
      }
      function d(E, A) {
        s > t || (u(), (s += E.length), r.push(yp(E, A)));
      }
      function _(E, A) {
        s > t || (u(), (s += E.length), r.push(iKe(E, A)));
      }
      function h() {
        s > t || ((s += 1), r.push(iC()), (i = !0));
      }
      function g() {
        ((r = []), (i = !0), (o = 0), (s = 0));
      }
    }
    function iKe(e, t) {
      return yp(e, r(t));
      function r(i) {
        const o = i.flags;
        return o & 3
          ? iJ(i)
            ? 13
            : 9
          : o & 4 || o & 32768 || o & 65536
            ? 14
            : o & 8
              ? 19
              : o & 16
                ? 20
                : o & 32
                  ? 1
                  : o & 64
                    ? 4
                    : o & 384
                      ? 2
                      : o & 1536
                        ? 11
                        : o & 8192
                          ? 10
                          : o & 262144
                            ? 18
                            : o & 524288 || o & 2097152
                              ? 0
                              : 17;
      }
    }
    function yp(e, t) {
      return { text: e, kind: i7[t] };
    }
    function zl() {
      return yp(" ", 16);
    }
    function Vp(e) {
      return yp(_a(e), 5);
    }
    function lu(e) {
      return yp(_a(e), 15);
    }
    function PP(e) {
      return yp(_a(e), 12);
    }
    function nce(e) {
      return yp(e, 13);
    }
    function rce(e) {
      return yp(e, 14);
    }
    function oJ(e) {
      const t = HE(e);
      return t === void 0 ? yf(e) : Vp(t);
    }
    function yf(e) {
      return yp(e, 17);
    }
    function ice(e) {
      return yp(e, 0);
    }
    function oce(e) {
      return yp(e, 18);
    }
    function ace(e) {
      return yp(e, 24);
    }
    function oKe(e, t) {
      return {
        text: e,
        kind: i7[23],
        target: { fileName: Wn(t).fileName, textSpan: zu(t) },
      };
    }
    function uxe(e) {
      return yp(e, 22);
    }
    function sce(e, t) {
      var r;
      const i = Pie(e) ? "link" : Lie(e) ? "linkcode" : "linkplain",
        o = [uxe(`{@${i} `)];
      if (!e.name) e.text && o.push(ace(e.text));
      else {
        const s = t?.getSymbolAtLocation(e.name),
          l = s && t ? lJ(s, t) : void 0,
          u = sKe(e.text),
          d = Al(e.name) + e.text.slice(0, u),
          _ = aKe(e.text.slice(u)),
          h =
            l?.valueDeclaration ||
            ((r = l?.declarations) == null ? void 0 : r[0]);
        if (h) (o.push(oKe(d, h)), _ && o.push(ace(_)));
        else {
          const g =
            u === 0 ||
            (e.text.charCodeAt(u) === 124 && d.charCodeAt(d.length - 1) !== 32)
              ? " "
              : "";
          o.push(ace(d + g + _));
        }
      }
      return (o.push(uxe("}")), o);
    }
    function aKe(e) {
      let t = 0;
      if (e.charCodeAt(t++) === 124) {
        for (; t < e.length && e.charCodeAt(t) === 32; ) t++;
        return e.slice(t);
      }
      return e;
    }
    function sKe(e) {
      let t = e.indexOf("://");
      if (t === 0) {
        for (; t < e.length && e.charCodeAt(t) !== 124; ) t++;
        return t;
      }
      if (e.indexOf("()") === 0) return 2;
      if (e.charAt(0) === "<") {
        let r = 0,
          i = 0;
        for (; i < e.length; )
          if ((e[i] === "<" && r++, e[i] === ">" && r--, i++, !r)) return i;
      }
      return 0;
    }
    var lKe = `
`;
    function _y(e, t) {
      var r;
      return (
        t?.newLineCharacter ||
        ((r = e.getNewLine) == null ? void 0 : r.call(e)) ||
        lKe
      );
    }
    function iC() {
      return yp(
        `
`,
        6,
      );
    }
    function jb(e, t) {
      const r = nKe(t);
      try {
        return (e(r), r.displayParts());
      } finally {
        r.clear();
      }
    }
    function RO(e, t, r, i = 0, o, s, l) {
      return jb((u) => {
        e.writeType(t, r, i | 1024 | 16384, u, o, s, l);
      }, o);
    }
    function LP(e, t, r, i, o = 0) {
      return jb((s) => {
        e.writeSymbol(t, r, i, o | 8, s);
      });
    }
    function aJ(e, t, r, i = 0, o, s, l) {
      return (
        (i |= 25632),
        jb((u) => {
          e.writeSignature(t, r, i, void 0, u, o, s, l);
        }, o)
      );
    }
    function lce(e) {
      return !!e.parent && ub(e.parent) && e.parent.propertyName === e;
    }
    function sJ(e, t) {
      return U6(e, t.getScriptKind && t.getScriptKind(e));
    }
    function lJ(e, t) {
      let r = e;
      for (; cKe(r) || (pg(r) && r.links.target); )
        pg(r) && r.links.target ? (r = r.links.target) : (r = xd(r, t));
      return r;
    }
    function cKe(e) {
      return (e.flags & 2097152) !== 0;
    }
    function cce(e, t) {
      return Ta(xd(e, t));
    }
    function dce(e, t) {
      for (; sg(e.charCodeAt(t)); ) t += 1;
      return t;
    }
    function R7(e, t) {
      for (; t > -1 && Bh(e.charCodeAt(t)); ) t -= 1;
      return t + 1;
    }
    function z1(e, t) {
      const r = e.getSourceFile(),
        i = r.text;
      (dKe(e, i) ? oC(e, t, r) : CO(e, t, r), kP(e, t, r));
    }
    function dKe(e, t) {
      const r = e.getFullStart(),
        i = e.getStart();
      for (let o = r; o < i; o++) if (t.charCodeAt(o) === 10) return !0;
      return !1;
    }
    function B1(e, t) {
      let r = e;
      for (let i = 1; !kF(t, r); i++) r = `${e}_${i}`;
      return r;
    }
    function DO(e, t, r, i) {
      let o = 0,
        s = -1;
      for (const { fileName: l, textChanges: u } of e) {
        C.assert(l === t);
        for (const d of u) {
          const { span: _, newText: h } = d,
            g = uKe(h, k_(r));
          if (g !== -1 && ((s = _.start + o + g), !i)) return s;
          o += h.length - _.length;
        }
      }
      return (C.assert(i), C.assert(s >= 0), s);
    }
    function oC(e, t, r, i, o) {
      x2(r.text, e.pos, uce(t, r, i, o, Cb));
    }
    function kP(e, t, r, i, o) {
      R2(r.text, e.end, uce(t, r, i, o, OM));
    }
    function CO(e, t, r, i, o) {
      R2(r.text, e.pos, uce(t, r, i, o, Cb));
    }
    function uce(e, t, r, i, o) {
      return (s, l, u, d) => {
        (u === 3 ? ((s += 2), (l -= 2)) : (s += 2),
          o(e, r || u, t.text.slice(s, l), i !== void 0 ? i : d));
      };
    }
    function uKe(e, t) {
      if (po(e, t)) return 0;
      let r = e.indexOf(" " + t);
      return (
        r === -1 && (r = e.indexOf("." + t)),
        r === -1 && (r = e.indexOf('"' + t)),
        r === -1 ? -1 : r + 1
      );
    }
    function D7(e) {
      return (
        (Nr(e) && e.operatorToken.kind === 28) ||
        Wa(e) ||
        ((SD(e) || ED(e)) && Wa(e.expression))
      );
    }
    function C7(e, t, r) {
      const i = zm(e.parent);
      switch (i.kind) {
        case 215:
          return t.getContextualType(i, r);
        case 227: {
          const { left: o, operatorToken: s, right: l } = i;
          return N7(s.kind)
            ? t.getTypeAtLocation(e === l ? o : l)
            : t.getContextualType(e, r);
        }
        case 297:
          return dJ(i, t);
        default:
          return t.getContextualType(e, r);
      }
    }
    function wP(e, t, r) {
      const i = Gp(e, t),
        o = JSON.stringify(r);
      return i === 0
        ? `'${_m(o)
            .replace(/'/g, () => "\\'")
            .replace(/\\"/g, '"')}'`
        : o;
    }
    function N7(e) {
      switch (e) {
        case 37:
        case 35:
        case 38:
        case 36:
          return !0;
        default:
          return !1;
      }
    }
    function pce(e) {
      switch (e.kind) {
        case 11:
        case 15:
        case 229:
        case 216:
          return !0;
        default:
          return !1;
      }
    }
    function cJ(e) {
      return !!e.getStringIndexType() || !!e.getNumberIndexType();
    }
    function dJ(e, t) {
      return t.getTypeAtLocation(e.parent.parent.expression);
    }
    var uJ = "anonymous function";
    function OP(e, t, r, i) {
      const o = r.getTypeChecker();
      let s = !0;
      const l = () => (s = !1),
        u = o.typeToTypeNode(e, t, 1, 8, {
          trackSymbol: (d, _, h) => (
            (s = s && o.isSymbolAccessible(d, _, h, !1).accessibility === 0),
            !s
          ),
          reportInaccessibleThisError: l,
          reportPrivateInBaseOfClassExpression: l,
          reportInaccessibleUniqueSymbolError: l,
          moduleResolverHost: Kq(r, i),
        });
      return s ? u : void 0;
    }
    function fce(e) {
      return e === 180 || e === 181 || e === 182 || e === 172 || e === 174;
    }
    function pxe(e) {
      return e === 263 || e === 177 || e === 175 || e === 178 || e === 179;
    }
    function fxe(e) {
      return e === 268;
    }
    function mce(e) {
      return (
        e === 244 ||
        e === 245 ||
        e === 247 ||
        e === 252 ||
        e === 253 ||
        e === 254 ||
        e === 258 ||
        e === 260 ||
        e === 173 ||
        e === 266 ||
        e === 273 ||
        e === 272 ||
        e === 279 ||
        e === 271 ||
        e === 278
      );
    }
    var pKe = Rp(fce, pxe, fxe, mce);
    function fKe(e, t) {
      const r = e.getLastToken(t);
      if (r && r.kind === 27) return !1;
      if (fce(e.kind)) {
        if (r && r.kind === 28) return !1;
      } else if (fxe(e.kind)) {
        const u = Ba(e.getChildren(t));
        if (u && t_(u)) return !1;
      } else if (pxe(e.kind)) {
        const u = Ba(e.getChildren(t));
        if (u && SS(u)) return !1;
      } else if (!mce(e.kind)) return !1;
      if (e.kind === 247) return !0;
      const i = Dn(e, (u) => !u.parent),
        o = eE(e, i, t);
      if (!o || o.kind === 20) return !0;
      const s = t.getLineAndCharacterOfPosition(e.getEnd()).line,
        l = t.getLineAndCharacterOfPosition(o.getStart(t)).line;
      return s !== l;
    }
    function M7(e, t, r) {
      const i = Dn(t, (o) => (o.end !== e ? "quit" : pKe(o.kind)));
      return !!i && fKe(i, r);
    }
    function NO(e) {
      let t = 0,
        r = 0;
      const i = 5;
      return (
        Jo(e, function o(s) {
          if (mce(s.kind)) {
            const l = s.getLastToken(e);
            l?.kind === 27 ? t++ : r++;
          } else if (fce(s.kind)) {
            const l = s.getLastToken(e);
            if (l?.kind === 27) t++;
            else if (l && l.kind !== 28) {
              const u = ca(e, l.getStart(e)).line,
                d = ca(e, jh(e, l.end).start).line;
              u !== d && r++;
            }
          }
          return t + r >= i ? !0 : Jo(s, o);
        }),
        t === 0 && r <= 1 ? !0 : t / r > 1 / i
      );
    }
    function P7(e, t) {
      return hce(e, e.getDirectories, t) || [];
    }
    function pJ(e, t, r, i, o) {
      return hce(e, e.readDirectory, t, r, i, o) || ae;
    }
    function WP(e, t) {
      return hce(e, e.fileExists, t);
    }
    function L7(e, t) {
      return k7(() => ch(t, e)) || !1;
    }
    function k7(e) {
      try {
        return e();
      } catch {
        return;
      }
    }
    function hce(e, t, ...r) {
      return k7(() => t && t.apply(e, r));
    }
    function fJ(e, t) {
      const r = [];
      return (
        W_(t, e, (i) => {
          const o = Qr(i, "package.json");
          WP(t, o) && r.push(o);
        }),
        r
      );
    }
    function _ce(e, t) {
      let r;
      return (
        W_(t, e, (i) => {
          if (
            i === "node_modules" ||
            ((r = mH(i, (o) => WP(t, o), "package.json")), r)
          )
            return !0;
        }),
        r
      );
    }
    function mKe(e, t) {
      if (!t.fileExists) return [];
      const r = [];
      return (
        W_(t, ci(e), (i) => {
          const o = Qr(i, "package.json");
          if (t.fileExists(o)) {
            const s = mJ(o, t);
            s && r.push(s);
          }
        }),
        r
      );
    }
    function mJ(e, t) {
      if (!t.readFile) return;
      const r = [
          "dependencies",
          "devDependencies",
          "optionalDependencies",
          "peerDependencies",
        ],
        i = t.readFile(e) || "",
        o = Bk(i),
        s = {};
      if (o)
        for (const d of r) {
          const _ = o[d];
          if (!_) continue;
          const h = new Map();
          for (const g in _) h.set(g, _[g]);
          s[d] = h;
        }
      const l = [
        [1, s.dependencies],
        [2, s.devDependencies],
        [8, s.optionalDependencies],
        [4, s.peerDependencies],
      ];
      return {
        ...s,
        parseable: !!o,
        fileName: e,
        get: u,
        has(d, _) {
          return !!u(d, _);
        },
      };
      function u(d, _ = 15) {
        for (const [h, g] of l)
          if (g && _ & h) {
            const E = g.get(d);
            if (E !== void 0) return E;
          }
      }
    }
    function aC(e, t, r) {
      const i = (
        (r.getPackageJsonsVisibleToFile &&
          r.getPackageJsonsVisibleToFile(e.fileName)) ||
        mKe(e.fileName, r)
      ).filter((R) => R.parseable);
      let o, s, l;
      return {
        allowsImportingAmbientModule: d,
        getSourceFileInfo: _,
        allowsImportingSpecifier: h,
      };
      function u(R) {
        const N = A(R);
        for (const P of i) if (P.has(N) || P.has(s3(N))) return !0;
        return !1;
      }
      function d(R, N) {
        if (!i.length || !R.valueDeclaration) return !0;
        if (!s) s = new Map();
        else {
          const G = s.get(R);
          if (G !== void 0) return G;
        }
        const P = _m(R.getName());
        if (g(P)) return (s.set(R, !0), !0);
        const k = R.valueDeclaration.getSourceFile(),
          W = E(k.fileName, N);
        if (typeof W > "u") return (s.set(R, !0), !0);
        const O = u(W) || u(P);
        return (s.set(R, O), O);
      }
      function _(R, N) {
        if (!i.length) return { importable: !0, packageName: void 0 };
        if (!l) l = new Map();
        else {
          const O = l.get(R);
          if (O !== void 0) return O;
        }
        const P = E(R.fileName, N);
        if (!P) {
          const O = { importable: !0, packageName: P };
          return (l.set(R, O), O);
        }
        const W = { importable: u(P), packageName: P };
        return (l.set(R, W), W);
      }
      function h(R) {
        return !i.length || g(R) || Zp(R) || Cp(R) ? !0 : u(R);
      }
      function g(R) {
        return !!(
          _g(e) &&
          Pu(e) &&
          _D.has(R) &&
          (o === void 0 && (o = w7(e)), o)
        );
      }
      function E(R, N) {
        if (!R.includes("node_modules")) return;
        const P = hy.getNodeModulesPackageName(
          r.getCompilationSettings(),
          e,
          R,
          N,
          t,
        );
        if (P && !Zp(P) && !Cp(P)) return A(P);
      }
      function A(R) {
        const N = zd(aP(R)).slice(1);
        return po(N[0], "@") ? `${N[0]}/${N[1]}` : N[0];
      }
    }
    function w7(e) {
      return yt(e.imports, ({ text: t }) => _D.has(t));
    }
    function MO(e) {
      return jn(zd(e), "node_modules");
    }
    function mxe(e) {
      return e.file !== void 0 && e.start !== void 0 && e.length !== void 0;
    }
    function gce(e, t) {
      const r = zu(e),
        i = YA(t, r, Vs, G8);
      if (i >= 0) {
        const o = t[i];
        return (
          C.assertEqual(
            o.file,
            e.getSourceFile(),
            "Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile",
          ),
          ma(o, mxe)
        );
      }
    }
    function yce(e, t) {
      var r;
      let i = YA(t, e.start, (l) => l.start, js);
      for (
        i < 0 && (i = ~i);
        ((r = t[i - 1]) == null ? void 0 : r.start) === e.start;
      )
        i--;
      const o = [],
        s = Dl(e);
      for (;;) {
        const l = ni(t[i], mxe);
        if (!l || l.start > s) break;
        (Nee(e, l) && o.push(l), i++);
      }
      return o;
    }
    function mx({ startPosition: e, endPosition: t }) {
      return ic(e, t === void 0 ? e : t);
    }
    function hJ(e, t) {
      const r = Fi(e, t.start);
      return Dn(r, (o) =>
        o.getStart(e) < t.start || o.getEnd() > Dl(t)
          ? "quit"
          : St(o) && rC(t, zu(o, e)),
      );
    }
    function _J(e, t, r = Vs) {
      return e ? (Mo(e) ? r(Vt(e, t)) : t(e, 0)) : void 0;
    }
    function gJ(e) {
      return Mo(e) ? $a(e) : e;
    }
    function O7(e, t, r) {
      return e.escapedName === "export=" || e.escapedName === "default"
        ? yJ(e) || PO(hKe(e), t, !!r)
        : e.name;
    }
    function yJ(e) {
      return Hn(e.declarations, (t) => {
        var r, i, o;
        if (ll(t))
          return (r = ni(Ul(t.expression), He)) == null ? void 0 : r.text;
        if (ou(t) && t.symbol.flags === 2097152)
          return (i = ni(t.propertyName, He)) == null ? void 0 : i.text;
        const s = (o = ni(Oo(t), He)) == null ? void 0 : o.text;
        if (s) return s;
        if (e.parent && !dI(e.parent)) return e.parent.getName();
      });
    }
    function hKe(e) {
      var t;
      return C.checkDefined(
        e.parent,
        `Symbol parent was undefined. Flags: ${C.formatSymbolFlags(e.flags)}. Declarations: ${
          (t = e.declarations) == null
            ? void 0
            : t
                .map((r) => {
                  const i = C.formatSyntaxKind(r.kind),
                    o = Ir(r),
                    { expression: s } = r;
                  return (
                    (o ? "[JS]" : "") +
                    i +
                    (s ? ` (expression: ${C.formatSyntaxKind(s.kind)})` : "")
                  );
                })
                .join(", ")
        }.`,
      );
    }
    function PO(e, t, r) {
      return LO(Tu(_m(e.name)), t, r);
    }
    function LO(e, t, r) {
      const i = Ic(RR(Tu(e), "/index"));
      let o = "",
        s = !0;
      const l = i.charCodeAt(0);
      R_(l, t)
        ? ((o += String.fromCharCode(l)), r && (o = o.toUpperCase()))
        : (s = !1);
      for (let u = 1; u < i.length; u++) {
        const d = i.charCodeAt(u),
          _ = ey(d, t);
        if (_) {
          let h = String.fromCharCode(d);
          (s || (h = h.toUpperCase()), (o += h));
        }
        s = _;
      }
      return SI(o) ? `_${o}` : o || "_";
    }
    function vce(e, t, r) {
      const i = t.length;
      if (i + r > e.length) return !1;
      for (let o = 0; o < i; o++)
        if (t.charCodeAt(o) !== e.charCodeAt(o + r)) return !1;
      return !0;
    }
    function vJ(e) {
      return e.charCodeAt(0) === 95;
    }
    function W7(e) {
      return !!(W9(e) & 65536);
    }
    function F7(e, t) {
      let r;
      for (const i of e.imports)
        if (_D.has(i.text) && !o4.has(i.text)) {
          if (po(i.text, "node:")) return !0;
          r = !1;
        }
      return r ?? t.usesUriStyleNodeCoreModules;
    }
    function kO(e) {
      return e ===
        `
`
        ? 1
        : 0;
    }
    function tE(e) {
      return Mo(e) ? bg(Ho(e[0]), e.slice(1)) : Ho(e);
    }
    function z7({ options: e }, t) {
      const r = !e.semicolons || e.semicolons === "ignore",
        i = e.semicolons === "remove" || (r && !NO(t));
      return { ...e, semicolons: i ? "remove" : "ignore" };
    }
    function bJ(e) {
      return e === 2 || e === 3;
    }
    function sC(e, t) {
      return (
        e.isSourceFileFromExternalLibrary(t) || e.isSourceFileDefaultLibrary(t)
      );
    }
    function B7(e, t) {
      const r = new Set(),
        i = new Set(),
        o = new Set();
      for (const u of t)
        if (!qM(u)) {
          const d = us(u.expression);
          if (XE(d))
            switch (d.kind) {
              case 15:
              case 11:
                r.add(d.text);
                break;
              case 9:
                i.add(parseInt(d.text));
                break;
              case 10:
                const _ = Cre(el(d.text, "n") ? d.text.slice(0, -1) : d.text);
                _ && o.add(wS(_));
                break;
            }
          else {
            const _ = e.getSymbolAtLocation(u.expression);
            if (_ && _.valueDeclaration && py(_.valueDeclaration)) {
              const h = e.getConstantValue(_.valueDeclaration);
              h !== void 0 && s(h);
            }
          }
        }
      return { addValue: s, hasValue: l };
      function s(u) {
        switch (typeof u) {
          case "string":
            r.add(u);
            break;
          case "number":
            i.add(u);
        }
      }
      function l(u) {
        switch (typeof u) {
          case "string":
            return r.has(u);
          case "number":
            return i.has(u);
          case "object":
            return o.has(wS(u));
        }
      }
    }
    function TJ(e, t, r, i) {
      var o;
      const s = typeof e == "string" ? e : e.fileName;
      if (!Tg(s)) return !1;
      const l =
          typeof e == "string"
            ? t.getCompilerOptions()
            : t.getCompilerOptionsForFile(e),
        u = bu(l),
        d =
          typeof e == "string"
            ? {
                fileName: e,
                impliedNodeFormat: iO(
                  ks(e, r.getCurrentDirectory(), ay(r)),
                  (o = t.getPackageJsonInfoCache) == null ? void 0 : o.call(t),
                  r,
                  l,
                ),
              }
            : e,
        _ = O1(d, l);
      if (_ === 99) return !1;
      if (_ === 1 || (l.verbatimModuleSyntax && u === 1)) return !0;
      if (l.verbatimModuleSyntax && Kk(u)) return !1;
      if (typeof e == "object") {
        if (e.commonJsModuleIndicator) return !0;
        if (e.externalModuleIndicator) return !1;
      }
      return i;
    }
    function hx(e) {
      switch (e.kind) {
        case 242:
        case 308:
        case 269:
        case 297:
          return !0;
        default:
          return !1;
      }
    }
    function G7(e, t, r, i) {
      var o;
      const s = P3(
        e,
        (o = r.getPackageJsonInfoCache) == null ? void 0 : o.call(r),
        i,
        r.getCompilerOptions(),
      );
      let l, u;
      return (
        typeof s == "object" &&
          ((l = s.impliedNodeFormat), (u = s.packageJsonScope)),
        {
          path: ks(e, r.getCurrentDirectory(), r.getCanonicalFileName),
          fileName: e,
          externalModuleIndicator: t === 99 ? !0 : void 0,
          commonJsModuleIndicator: t === 1 ? !0 : void 0,
          impliedNodeFormat: l,
          packageJsonScope: u,
          statements: ae,
          imports: ae,
        }
      );
    }
    var bce = ((e) => (
        (e[(e.Named = 0)] = "Named"),
        (e[(e.Default = 1)] = "Default"),
        (e[(e.Namespace = 2)] = "Namespace"),
        (e[(e.CommonJS = 3)] = "CommonJS"),
        e
      ))(bce || {}),
      Tce = ((e) => (
        (e[(e.Named = 0)] = "Named"),
        (e[(e.Default = 1)] = "Default"),
        (e[(e.ExportEquals = 2)] = "ExportEquals"),
        (e[(e.UMD = 3)] = "UMD"),
        (e[(e.Module = 4)] = "Module"),
        e
      ))(Tce || {});
    function SJ(e) {
      let t = 1;
      const r = cm(),
        i = new Map(),
        o = new Map();
      let s;
      const l = {
        isUsableByFile: (A) => A === s,
        isEmpty: () => !r.size,
        clear: () => {
          (r.clear(), i.clear(), (s = void 0));
        },
        add: (A, R, N, P, k, W, O, G) => {
          A !== s && (l.clear(), (s = A));
          let j;
          if (k) {
            const xe = Z6(k.fileName);
            if (xe) {
              const {
                topLevelNodeModulesIndex: X,
                topLevelPackageNameIndex: Ce,
                packageRootIndex: Je,
              } = xe;
              if (
                ((j = Vw(aP(k.fileName.substring(Ce + 1, Je)))),
                po(A, k.path.substring(0, X)))
              ) {
                const Se = o.get(j),
                  re = k.fileName.substring(0, Ce + 1);
                if (Se) {
                  const be = Se.indexOf(Rg);
                  X > be && o.set(j, re);
                } else o.set(j, re);
              }
            }
          }
          const Z = (W === 1 && mM(R)) || R,
            q = W === 0 || dI(Z) ? Gi(N) : gKe(Z, G, void 0),
            ye = typeof q == "string" ? q : q[0],
            ie = typeof q == "string" ? void 0 : q[1],
            K = _m(P.name),
            pe = t++,
            de = xd(R, G),
            fe = R.flags & 33554432 ? void 0 : R,
            ve = P.flags & 33554432 ? void 0 : P;
          ((!fe || !ve) && i.set(pe, [R, P]),
            r.add(d(ye, R, td(K) ? void 0 : K, G), {
              id: pe,
              symbolTableKey: N,
              symbolName: ye,
              capitalizedSymbolName: ie,
              moduleName: K,
              moduleFile: k,
              moduleFileName: k?.fileName,
              packageName: j,
              exportKind: W,
              targetFlags: de.flags,
              isFromPackageJson: O,
              symbol: fe,
              moduleSymbol: ve,
            }));
        },
        get: (A, R) => {
          if (A !== s) return;
          const N = r.get(R);
          return N?.map(u);
        },
        search: (A, R, N, P) => {
          if (A === s)
            return Hc(r, (k, W) => {
              const { symbolName: O, ambientModuleName: G } = _(W),
                j = (R && k[0].capitalizedSymbolName) || O;
              if (N(j, k[0].targetFlags)) {
                const Z = k.map(u).filter((q, ye) => E(q, k[ye].packageName));
                if (Z.length) {
                  const q = P(Z, j, !!G, W);
                  if (q !== void 0) return q;
                }
              }
            });
        },
        releaseSymbols: () => {
          i.clear();
        },
        onFileChanged: (A, R, N) =>
          h(A) && h(R)
            ? !1
            : (s && s !== R.path) ||
                (N && w7(A) !== w7(R)) ||
                !Qp(A.moduleAugmentations, R.moduleAugmentations) ||
                !g(A, R)
              ? (l.clear(), !0)
              : ((s = R.path), !1),
      };
      return (
        C.isDebugging && Object.defineProperty(l, "__cache", { value: r }),
        l
      );
      function u(A) {
        if (A.symbol && A.moduleSymbol) return A;
        const {
            id: R,
            exportKind: N,
            targetFlags: P,
            isFromPackageJson: k,
            moduleFileName: W,
          } = A,
          [O, G] = i.get(R) || ae;
        if (O && G)
          return {
            symbol: O,
            moduleSymbol: G,
            moduleFileName: W,
            exportKind: N,
            targetFlags: P,
            isFromPackageJson: k,
          };
        const j = (
            k ? e.getPackageJsonAutoImportProvider() : e.getCurrentProgram()
          ).getTypeChecker(),
          J =
            A.moduleSymbol ||
            G ||
            C.checkDefined(
              A.moduleFile
                ? j.getMergedSymbol(A.moduleFile.symbol)
                : j.tryFindAmbientModule(A.moduleName),
            ),
          Z =
            A.symbol ||
            O ||
            C.checkDefined(
              N === 2
                ? j.resolveExternalModuleSymbol(J)
                : j.tryGetMemberInModuleExportsAndProperties(
                    Gi(A.symbolTableKey),
                    J,
                  ),
              `Could not find symbol '${A.symbolName}' by key '${A.symbolTableKey}' in module ${J.name}`,
            );
        return (
          i.set(R, [Z, J]),
          {
            symbol: Z,
            moduleSymbol: J,
            moduleFileName: W,
            exportKind: N,
            targetFlags: P,
            isFromPackageJson: k,
          }
        );
      }
      function d(A, R, N, P) {
        const k = N || "";
        return `${A.length} ${Ta(xd(R, P))} ${A} ${k}`;
      }
      function _(A) {
        const R = A.indexOf(" "),
          N = A.indexOf(" ", R + 1),
          P = parseInt(A.substring(0, R), 10),
          k = A.substring(N + 1),
          W = k.substring(0, P),
          O = k.substring(P + 1);
        return { symbolName: W, ambientModuleName: O === "" ? void 0 : O };
      }
      function h(A) {
        return (
          !A.commonJsModuleIndicator &&
          !A.externalModuleIndicator &&
          !A.moduleAugmentations &&
          !A.ambientModuleNames
        );
      }
      function g(A, R) {
        if (!Qp(A.ambientModuleNames, R.ambientModuleNames)) return !1;
        let N = -1,
          P = -1;
        for (const k of R.ambientModuleNames) {
          const W = (O) => gG(O) && O.name.text === k;
          if (
            ((N = ho(A.statements, W, N + 1)),
            (P = ho(R.statements, W, P + 1)),
            A.statements[N] !== R.statements[P])
          )
            return !1;
        }
        return !0;
      }
      function E(A, R) {
        if (!R || !A.moduleFileName) return !0;
        const N = e.getGlobalTypingsCacheLocation();
        if (N && po(A.moduleFileName, N)) return !0;
        const P = o.get(R);
        return !P || po(A.moduleFileName, P);
      }
    }
    function EJ(e, t, r, i, o, s, l, u) {
      var d;
      if (!r) {
        let A;
        const R = _m(i.name);
        return _D.has(R) && (A = F7(t, e)) !== void 0
          ? A === po(R, "node:")
          : !s || s.allowsImportingAmbientModule(i, l) || Sce(t, R);
      }
      if ((C.assertIsDefined(r), t === r)) return !1;
      const _ = u?.get(t.path, r.path, o, {});
      if (_?.isBlockedByPackageJsonDependencies !== void 0)
        return (
          !_.isBlockedByPackageJsonDependencies ||
          (!!_.packageName && Sce(t, _.packageName))
        );
      const h = ay(l),
        g = (d = l.getGlobalTypingsCacheLocation) == null ? void 0 : d.call(l),
        E = !!hy.forEachFileNameOfModule(t.fileName, r.fileName, l, !1, (A) => {
          const R = e.getSourceFile(A);
          return (R === r || !R) && _Ke(t.fileName, A, h, g, l);
        });
      if (s) {
        const A = E ? s.getSourceFileInfo(r, l) : void 0;
        return (
          u?.setBlockedByPackageJsonDependencies(
            t.path,
            r.path,
            o,
            {},
            A?.packageName,
            !A?.importable,
          ),
          !!A?.importable || (E && !!A?.packageName && Sce(t, A.packageName))
        );
      }
      return E;
    }
    function Sce(e, t) {
      return (
        e.imports &&
        e.imports.some((r) => r.text === t || r.text.startsWith(t + "/"))
      );
    }
    function _Ke(e, t, r, i, o) {
      const s = W_(o, t, (u) => (Ic(u) === "node_modules" ? u : void 0)),
        l = s && ci(r(s));
      return l === void 0 || po(r(e), l) || (!!i && po(r(i), l));
    }
    function AJ(e, t, r, i, o) {
      var s, l;
      const u = d1(t),
        d = r.autoImportFileExcludePatterns && hxe(r, u);
      _xe(e.getTypeChecker(), e.getSourceFiles(), d, t, (h, g) =>
        o(h, g, e, !1),
      );
      const _ =
        i &&
        ((s = t.getPackageJsonAutoImportProvider) == null ? void 0 : s.call(t));
      if (_) {
        const h = Ls(),
          g = e.getTypeChecker();
        (_xe(_.getTypeChecker(), _.getSourceFiles(), d, t, (E, A) => {
          ((A && !e.getSourceFile(A.fileName)) ||
            (!A && !g.resolveName(E.name, void 0, 1536, !1))) &&
            o(E, A, _, !0);
        }),
          (l = t.log) == null ||
            l.call(
              t,
              `forEachExternalModuleToImportFrom autoImportProvider: ${Ls() - h}`,
            ));
      }
    }
    function hxe(e, t) {
      return Ui(e.autoImportFileExcludePatterns, (r) => {
        const i = V6(r, "", "exclude");
        return i ? ov(i, t) : void 0;
      });
    }
    function _xe(e, t, r, i, o) {
      var s;
      const l = r && gxe(r, i);
      for (const u of e.getAmbientModules())
        !u.name.includes("*") &&
          !(
            r &&
            (s = u.declarations) != null &&
            s.every((d) => l(d.getSourceFile()))
          ) &&
          o(u, void 0);
      for (const u of t) Pp(u) && !l?.(u) && o(e.getMergedSymbol(u.symbol), u);
    }
    function gxe(e, t) {
      var r;
      const i =
        (r = t.getSymlinkCache) == null
          ? void 0
          : r.call(t).getSymlinkedDirectoriesByRealpath();
      return ({ fileName: o, path: s }) => {
        if (e.some((l) => l.test(o))) return !0;
        if (i?.size && Wb(o)) {
          let l = ci(o);
          return (
            W_(t, ci(s), (u) => {
              const d = i.get(Uc(u));
              if (d)
                return d.some((_) => e.some((h) => h.test(o.replace(l, _))));
              l = ci(l);
            }) ?? !1
          );
        }
        return !1;
      };
    }
    function Ece(e, t) {
      return t.autoImportFileExcludePatterns ? gxe(hxe(t, d1(e)), e) : () => !1;
    }
    function wO(e, t, r, i, o) {
      var s, l, u, d, _;
      const h = Ls();
      (s = t.getPackageJsonAutoImportProvider) == null || s.call(t);
      const g =
        ((l = t.getCachedExportInfoMap) == null ? void 0 : l.call(t)) ||
        SJ({
          getCurrentProgram: () => r,
          getPackageJsonAutoImportProvider: () => {
            var A;
            return (A = t.getPackageJsonAutoImportProvider) == null
              ? void 0
              : A.call(t);
          },
          getGlobalTypingsCacheLocation: () => {
            var A;
            return (A = t.getGlobalTypingsCacheLocation) == null
              ? void 0
              : A.call(t);
          },
        });
      if (g.isUsableByFile(e.path))
        return (
          (u = t.log) == null || u.call(t, "getExportInfoMap: cache hit"),
          g
        );
      (d = t.log) == null ||
        d.call(
          t,
          "getExportInfoMap: cache miss or empty; calculating new results",
        );
      let E = 0;
      try {
        AJ(r, t, i, !0, (A, R, N, P) => {
          ++E % 100 === 0 && o?.throwIfCancellationRequested();
          const k = new Set(),
            W = N.getTypeChecker(),
            O = V7(A, W);
          (O &&
            yxe(O.symbol, W) &&
            g.add(
              e.path,
              O.symbol,
              O.exportKind === 1 ? "default" : "export=",
              A,
              R,
              O.exportKind,
              P,
              W,
            ),
            W.forEachExportAndPropertyOfModule(A, (G, j) => {
              G !== O?.symbol &&
                yxe(G, W) &&
                gm(k, j) &&
                g.add(e.path, G, j, A, R, 0, P, W);
            }));
        });
      } catch (A) {
        throw (g.clear(), A);
      }
      return (
        (_ = t.log) == null ||
          _.call(t, `getExportInfoMap: done in ${Ls() - h} ms`),
        g
      );
    }
    function V7(e, t) {
      const r = t.resolveExternalModuleSymbol(e);
      if (r !== e) {
        const o = t.tryGetMemberInModuleExports("default", r);
        return o ? { symbol: o, exportKind: 1 } : { symbol: r, exportKind: 2 };
      }
      const i = t.tryGetMemberInModuleExports("default", e);
      if (i) return { symbol: i, exportKind: 1 };
    }
    function yxe(e, t) {
      return (
        !t.isUndefinedSymbol(e) && !t.isUnknownSymbol(e) && !sM(e) && !Ane(e)
      );
    }
    function gKe(e, t, r) {
      let i;
      return (
        j7(e, t, r, (o, s) => ((i = s ? [o, s] : o), !0)),
        C.checkDefined(i)
      );
    }
    function j7(e, t, r, i) {
      let o,
        s = e;
      const l = new Set();
      for (; s; ) {
        const u = yJ(s);
        if (u) {
          const d = i(u);
          if (d) return d;
        }
        if (s.escapedName !== "default" && s.escapedName !== "export=") {
          const d = i(s.name);
          if (d) return d;
        }
        if (((o = Bn(o, s)), !gm(l, s))) break;
        s = s.flags & 2097152 ? t.getImmediateAliasedSymbol(s) : void 0;
      }
      for (const u of o ?? ae)
        if (u.parent && dI(u.parent)) {
          const d = i(PO(u.parent, r, !1), PO(u.parent, r, !0));
          if (d) return d;
        }
    }
    function vxe() {
      const e = cg(99, !1);
      function t(i, o, s) {
        return TKe(r(i, o, s), i);
      }
      function r(i, o, s) {
        let l = 0,
          u = 0;
        const d = [],
          { prefix: _, pushTemplate: h } = AKe(o);
        i = _ + i;
        const g = _.length;
        (h && d.push(16), e.setText(i));
        let E = 0;
        const A = [];
        let R = 0;
        do {
          ((l = e.scan()), rD(l) || (N(), (u = l)));
          const P = e.getTokenEnd();
          if ((bKe(e.getTokenStart(), P, g, RKe(l), A), P >= i.length)) {
            const k = vKe(e, l, Zs(d));
            k !== void 0 && (E = k);
          }
        } while (l !== 1);
        function N() {
          switch (l) {
            case 44:
            case 69:
              !yKe[u] && e.reScanSlashToken() === 14 && (l = 14);
              break;
            case 30:
              u === 80 && R++;
              break;
            case 32:
              R > 0 && R--;
              break;
            case 133:
            case 154:
            case 150:
            case 136:
            case 155:
              R > 0 && !s && (l = 80);
              break;
            case 16:
              d.push(l);
              break;
            case 19:
              d.length > 0 && d.push(l);
              break;
            case 20:
              if (d.length > 0) {
                const P = Zs(d);
                P === 16
                  ? ((l = e.reScanTemplateToken(!1)),
                    l === 18
                      ? d.pop()
                      : C.assertEqual(
                          l,
                          17,
                          "Should have been a template middle.",
                        ))
                  : (C.assertEqual(P, 19, "Should have been an open brace"),
                    d.pop());
              }
              break;
            default:
              if (!ep(l)) break;
              (u === 25 || (ep(u) && ep(l) && !EKe(u, l))) && (l = 80);
          }
        }
        return { endOfLineState: E, spans: A };
      }
      return {
        getClassificationsForLine: t,
        getEncodedLexicalClassifications: r,
      };
    }
    var yKe = qQ(
      [80, 11, 9, 10, 14, 110, 46, 47, 22, 24, 20, 112, 97],
      (e) => e,
      () => !0,
    );
    function vKe(e, t, r) {
      switch (t) {
        case 11: {
          if (!e.isUnterminated()) return;
          const i = e.getTokenText(),
            o = i.length - 1;
          let s = 0;
          for (; i.charCodeAt(o - s) === 92; ) s++;
          return (s & 1) === 0 ? void 0 : i.charCodeAt(0) === 34 ? 3 : 2;
        }
        case 3:
          return e.isUnterminated() ? 1 : void 0;
        default:
          if (db(t)) {
            if (!e.isUnterminated()) return;
            switch (t) {
              case 18:
                return 5;
              case 15:
                return 4;
              default:
                return C.fail(
                  "Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #" +
                    t,
                );
            }
          }
          return r === 16 ? 6 : void 0;
      }
    }
    function bKe(e, t, r, i, o) {
      if (i === 8) return;
      e === 0 && r > 0 && (e += r);
      const s = t - e;
      s > 0 && o.push(e - r, s, i);
    }
    function TKe(e, t) {
      const r = [],
        i = e.spans;
      let o = 0;
      for (let l = 0; l < i.length; l += 3) {
        const u = i[l],
          d = i[l + 1],
          _ = i[l + 2];
        if (o >= 0) {
          const h = u - o;
          h > 0 && r.push({ length: h, classification: 4 });
        }
        (r.push({ length: d, classification: SKe(_) }), (o = u + d));
      }
      const s = t.length - o;
      return (
        s > 0 && r.push({ length: s, classification: 4 }),
        { entries: r, finalLexState: e.endOfLineState }
      );
    }
    function SKe(e) {
      switch (e) {
        case 1:
          return 3;
        case 3:
          return 1;
        case 4:
          return 6;
        case 25:
          return 7;
        case 5:
          return 2;
        case 6:
          return 8;
        case 8:
          return 4;
        case 10:
          return 0;
        case 2:
        case 11:
        case 12:
        case 13:
        case 14:
        case 15:
        case 16:
        case 9:
        case 17:
          return 5;
        default:
          return;
      }
    }
    function EKe(e, t) {
      if (!Bq(e)) return !0;
      switch (t) {
        case 139:
        case 153:
        case 137:
        case 126:
        case 129:
          return !0;
        default:
          return !1;
      }
    }
    function AKe(e) {
      switch (e) {
        case 3:
          return {
            prefix: `"\\
`,
          };
        case 2:
          return {
            prefix: `'\\
`,
          };
        case 1:
          return {
            prefix: `/*
`,
          };
        case 4:
          return { prefix: "`\n" };
        case 5:
          return {
            prefix: `}
`,
            pushTemplate: !0,
          };
        case 6:
          return { prefix: "", pushTemplate: !0 };
        case 0:
          return { prefix: "" };
        default:
          return C.assertNever(e);
      }
    }
    function IKe(e) {
      switch (e) {
        case 42:
        case 44:
        case 45:
        case 40:
        case 41:
        case 48:
        case 49:
        case 50:
        case 30:
        case 32:
        case 33:
        case 34:
        case 104:
        case 103:
        case 130:
        case 152:
        case 35:
        case 36:
        case 37:
        case 38:
        case 51:
        case 53:
        case 52:
        case 56:
        case 57:
        case 75:
        case 74:
        case 79:
        case 71:
        case 72:
        case 73:
        case 65:
        case 66:
        case 67:
        case 69:
        case 70:
        case 64:
        case 28:
        case 61:
        case 76:
        case 77:
        case 78:
          return !0;
        default:
          return !1;
      }
    }
    function xKe(e) {
      switch (e) {
        case 40:
        case 41:
        case 55:
        case 54:
        case 46:
        case 47:
          return !0;
        default:
          return !1;
      }
    }
    function RKe(e) {
      if (ep(e)) return 3;
      if (IKe(e) || xKe(e)) return 5;
      if (e >= 19 && e <= 79) return 10;
      switch (e) {
        case 9:
          return 4;
        case 10:
          return 25;
        case 11:
          return 6;
        case 14:
          return 7;
        case 7:
        case 3:
        case 2:
          return 1;
        case 5:
        case 4:
          return 8;
        case 80:
        default:
          return db(e) ? 6 : 2;
      }
    }
    function Ace(e, t, r, i, o) {
      return Sxe(IJ(e, t, r, i, o));
    }
    function bxe(e, t) {
      switch (t) {
        case 268:
        case 264:
        case 265:
        case 263:
        case 232:
        case 219:
        case 220:
          e.throwIfCancellationRequested();
      }
    }
    function IJ(e, t, r, i, o) {
      const s = [];
      return (
        r.forEachChild(function u(d) {
          if (!(!d || !M2(o, d.pos, d.getFullWidth()))) {
            if ((bxe(t, d.kind), He(d) && !Ol(d) && i.has(d.escapedText))) {
              const _ = e.getSymbolAtLocation(d),
                h = _ && Txe(_, W1(d), e);
              h && l(d.getStart(r), d.getEnd(), h);
            }
            d.forEachChild(u);
          }
        }),
        { spans: s, endOfLineState: 0 }
      );
      function l(u, d, _) {
        const h = d - u;
        (C.assert(h > 0, `Classification had non-positive length of ${h}`),
          s.push(u),
          s.push(h),
          s.push(_));
      }
    }
    function Txe(e, t, r) {
      const i = e.getFlags();
      if ((i & 2885600) !== 0)
        return i & 32
          ? 11
          : i & 384
            ? 12
            : i & 524288
              ? 16
              : i & 1536
                ? t & 4 || (t & 1 && DKe(e))
                  ? 14
                  : void 0
                : i & 2097152
                  ? Txe(r.getAliasedSymbol(e), t, r)
                  : t & 2
                    ? i & 64
                      ? 13
                      : i & 262144
                        ? 15
                        : void 0
                    : void 0;
    }
    function DKe(e) {
      return yt(e.declarations, (t) => uc(t) && my(t) === 1);
    }
    function CKe(e) {
      switch (e) {
        case 1:
          return "comment";
        case 2:
          return "identifier";
        case 3:
          return "keyword";
        case 4:
          return "number";
        case 25:
          return "bigint";
        case 5:
          return "operator";
        case 6:
          return "string";
        case 8:
          return "whitespace";
        case 9:
          return "text";
        case 10:
          return "punctuation";
        case 11:
          return "class name";
        case 12:
          return "enum name";
        case 13:
          return "interface name";
        case 14:
          return "module name";
        case 15:
          return "type parameter name";
        case 16:
          return "type alias name";
        case 17:
          return "parameter name";
        case 18:
          return "doc comment tag name";
        case 19:
          return "jsx open tag name";
        case 20:
          return "jsx close tag name";
        case 21:
          return "jsx self closing tag name";
        case 22:
          return "jsx attribute";
        case 23:
          return "jsx text";
        case 24:
          return "jsx attribute string literal value";
        default:
          return;
      }
    }
    function Sxe(e) {
      C.assert(e.spans.length % 3 === 0);
      const t = e.spans,
        r = [];
      for (let i = 0; i < t.length; i += 3)
        r.push({
          textSpan: Id(t[i], t[i + 1]),
          classificationType: CKe(t[i + 2]),
        });
      return r;
    }
    function Ice(e, t, r) {
      return Sxe(xJ(e, t, r));
    }
    function xJ(e, t, r) {
      const i = r.start,
        o = r.length,
        s = cg(99, !1, t.languageVariant, t.text),
        l = cg(99, !1, t.languageVariant, t.text),
        u = [];
      return (G(t), { spans: u, endOfLineState: 0 });
      function d(j, J, Z) {
        (u.push(j), u.push(J), u.push(Z));
      }
      function _(j) {
        for (s.resetTokenState(j.pos); ; ) {
          const J = s.getTokenEnd();
          if (!Aee(t.text, J)) return J;
          const Z = s.scan(),
            q = s.getTokenEnd(),
            ye = q - J;
          if (!rD(Z)) return J;
          switch (Z) {
            case 4:
            case 5:
              continue;
            case 2:
            case 3:
              (h(j, Z, J, ye), s.resetTokenState(q));
              continue;
            case 7:
              const ie = t.text,
                K = ie.charCodeAt(J);
              if (K === 60 || K === 62) {
                d(J, ye, 1);
                continue;
              }
              (C.assert(K === 124 || K === 61), N(ie, J, q));
              break;
            case 6:
              break;
            default:
              C.assertNever(Z);
          }
        }
      }
      function h(j, J, Z, q) {
        if (J === 3) {
          const ye = loe(t.text, Z, q);
          if (ye && ye.jsDoc) {
            (ps(ye.jsDoc, j), E(ye.jsDoc));
            return;
          }
        } else if (J === 2 && A(Z, q)) return;
        g(Z, q);
      }
      function g(j, J) {
        d(j, J, 1);
      }
      function E(j) {
        var J, Z, q, ye, ie, K, pe, de;
        let fe = j.pos;
        if (j.tags)
          for (const xe of j.tags) {
            (xe.pos !== fe && g(fe, xe.pos - fe),
              d(xe.pos, 1, 10),
              d(xe.tagName.pos, xe.tagName.end - xe.tagName.pos, 18),
              (fe = xe.tagName.end));
            let X = xe.tagName.end;
            switch (xe.kind) {
              case 342:
                const Ce = xe;
                (ve(Ce),
                  (X =
                    (Ce.isNameFirst &&
                      ((J = Ce.typeExpression) == null ? void 0 : J.end)) ||
                    Ce.name.end));
                break;
              case 349:
                const Je = xe;
                X =
                  (Je.isNameFirst &&
                    ((Z = Je.typeExpression) == null ? void 0 : Z.end)) ||
                  Je.name.end;
                break;
              case 346:
                (R(xe), (fe = xe.end), (X = xe.typeParameters.end));
                break;
              case 347:
                const Se = xe;
                X =
                  (((q = Se.typeExpression) == null ? void 0 : q.kind) ===
                    310 &&
                    ((ye = Se.fullName) == null ? void 0 : ye.end)) ||
                  ((ie = Se.typeExpression) == null ? void 0 : ie.end) ||
                  X;
                break;
              case 339:
                X = xe.typeExpression.end;
                break;
              case 345:
                (G(xe.typeExpression),
                  (fe = xe.end),
                  (X = xe.typeExpression.end));
                break;
              case 344:
              case 341:
                X = xe.typeExpression.end;
                break;
              case 343:
                (G(xe.typeExpression),
                  (fe = xe.end),
                  (X =
                    ((K = xe.typeExpression) == null ? void 0 : K.end) || X));
                break;
              case 348:
                X = ((pe = xe.name) == null ? void 0 : pe.end) || X;
                break;
              case 329:
              case 330:
                X = xe.class.end;
                break;
              case 350:
                (G(xe.typeExpression),
                  (fe = xe.end),
                  (X =
                    ((de = xe.typeExpression) == null ? void 0 : de.end) || X));
                break;
            }
            typeof xe.comment == "object"
              ? g(xe.comment.pos, xe.comment.end - xe.comment.pos)
              : typeof xe.comment == "string" && g(X, xe.end - X);
          }
        fe !== j.end && g(fe, j.end - fe);
        return;
        function ve(xe) {
          (xe.isNameFirst &&
            (g(fe, xe.name.pos - fe),
            d(xe.name.pos, xe.name.end - xe.name.pos, 17),
            (fe = xe.name.end)),
            xe.typeExpression &&
              (g(fe, xe.typeExpression.pos - fe),
              G(xe.typeExpression),
              (fe = xe.typeExpression.end)),
            xe.isNameFirst ||
              (g(fe, xe.name.pos - fe),
              d(xe.name.pos, xe.name.end - xe.name.pos, 17),
              (fe = xe.name.end)));
        }
      }
      function A(j, J) {
        const Z = /^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/m,
          q = /(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,
          ye = t.text.substr(j, J),
          ie = Z.exec(ye);
        if (!ie || !ie[3] || !(ie[3] in X8)) return !1;
        let K = j;
        (g(K, ie[1].length),
          (K += ie[1].length),
          d(K, ie[2].length, 10),
          (K += ie[2].length),
          d(K, ie[3].length, 21),
          (K += ie[3].length));
        const pe = ie[4];
        let de = K;
        for (;;) {
          const ve = q.exec(pe);
          if (!ve) break;
          const xe = K + ve.index + ve[1].length;
          (xe > de && (g(de, xe - de), (de = xe)),
            d(de, ve[2].length, 22),
            (de += ve[2].length),
            ve[3].length && (g(de, ve[3].length), (de += ve[3].length)),
            d(de, ve[4].length, 5),
            (de += ve[4].length),
            ve[5].length && (g(de, ve[5].length), (de += ve[5].length)),
            d(de, ve[6].length, 24),
            (de += ve[6].length));
        }
        ((K += ie[4].length),
          K > de && g(de, K - de),
          ie[5] && (d(K, ie[5].length, 10), (K += ie[5].length)));
        const fe = j + J;
        return (K < fe && g(K, fe - K), !0);
      }
      function R(j) {
        for (const J of j.getChildren()) G(J);
      }
      function N(j, J, Z) {
        let q;
        for (q = J; q < Z && !eu(j.charCodeAt(q)); q++);
        for (d(J, q - J, 1), l.resetTokenState(q); l.getTokenEnd() < Z; ) P();
      }
      function P() {
        const j = l.getTokenEnd(),
          J = l.scan(),
          Z = l.getTokenEnd(),
          q = O(J);
        q && d(j, Z - j, q);
      }
      function k(j) {
        if (mh(j) || Ol(j)) return !0;
        const J = W(j);
        if (!oI(j) && j.kind !== 12 && J === void 0) return !1;
        const Z = j.kind === 12 ? j.pos : _(j),
          q = j.end - Z;
        if ((C.assert(q >= 0), q > 0)) {
          const ye = J || O(j.kind, j);
          ye && d(Z, q, ye);
        }
        return !0;
      }
      function W(j) {
        switch (j.parent && j.parent.kind) {
          case 287:
            if (j.parent.tagName === j) return 19;
            break;
          case 288:
            if (j.parent.tagName === j) return 20;
            break;
          case 286:
            if (j.parent.tagName === j) return 21;
            break;
          case 292:
            if (j.parent.name === j) return 22;
            break;
        }
      }
      function O(j, J) {
        if (ep(j)) return 3;
        if ((j === 30 || j === 32) && J && Jle(J.parent)) return 10;
        if (UG(j)) {
          if (J) {
            const Z = J.parent;
            if (
              (j === 64 &&
                (Z.kind === 261 ||
                  Z.kind === 173 ||
                  Z.kind === 170 ||
                  Z.kind === 292)) ||
              Z.kind === 227 ||
              Z.kind === 225 ||
              Z.kind === 226 ||
              Z.kind === 228
            )
              return 5;
          }
          return 10;
        } else {
          if (j === 9) return 4;
          if (j === 10) return 25;
          if (j === 11) return J && J.parent.kind === 292 ? 24 : 6;
          if (j === 14) return 6;
          if (db(j)) return 6;
          if (j === 12) return 23;
          if (j === 80) {
            if (J) {
              switch (J.parent.kind) {
                case 264:
                  return J.parent.name === J ? 11 : void 0;
                case 169:
                  return J.parent.name === J ? 15 : void 0;
                case 265:
                  return J.parent.name === J ? 13 : void 0;
                case 267:
                  return J.parent.name === J ? 12 : void 0;
                case 268:
                  return J.parent.name === J ? 14 : void 0;
                case 170:
                  return J.parent.name === J ? (Eb(J) ? 3 : 17) : void 0;
              }
              if (Om(J.parent)) return 3;
            }
            return 2;
          }
        }
      }
      function G(j) {
        if (j && P2(i, o, j.pos, j.getFullWidth())) {
          bxe(e, j.kind);
          for (const J of j.getChildren(t)) k(J) || G(J);
        }
      }
    }
    var U7;
    ((e) => {
      function t(K, pe, de, fe, ve) {
        const xe = ip(de, fe);
        if (
          xe.parent &&
          ((ph(xe.parent) && xe.parent.tagName === xe) || VS(xe.parent))
        ) {
          const { openingElement: X, closingElement: Ce } = xe.parent.parent,
            Je = [X, Ce].map(({ tagName: Se }) => r(Se, de));
          return [{ fileName: de.fileName, highlightSpans: Je }];
        }
        return i(fe, xe, K, pe, ve) || o(xe, de);
      }
      e.getDocumentHighlights = t;
      function r(K, pe) {
        return { fileName: pe.fileName, textSpan: zu(K, pe), kind: "none" };
      }
      function i(K, pe, de, fe, ve) {
        const xe = new Set(ve.map((Se) => Se.fileName)),
          X = Ys.getReferenceEntriesForNode(K, pe, de, ve, fe, void 0, xe);
        if (!X) return;
        const Ce = _2(
            X.map(Ys.toHighlightSpan),
            (Se) => Se.fileName,
            (Se) => Se.span,
          ),
          Je = Fd(de.useCaseSensitiveFileNames());
        return Co(
          nh(Ce.entries(), ([Se, re]) => {
            if (!xe.has(Se)) {
              if (
                !de.redirectTargetsMap.has(ks(Se, de.getCurrentDirectory(), Je))
              )
                return;
              const be = de.getSourceFile(Se);
              ((Se = hn(
                ve,
                (Be) =>
                  !!Be.redirectInfo && Be.redirectInfo.redirectTarget === be,
              ).fileName),
                C.assert(xe.has(Se)));
            }
            return { fileName: Se, highlightSpans: re };
          }),
        );
      }
      function o(K, pe) {
        const de = s(K, pe);
        return de && [{ fileName: pe.fileName, highlightSpans: de }];
      }
      function s(K, pe) {
        switch (K.kind) {
          case 101:
          case 93:
            return $T(K.parent) ? q(K.parent, pe) : void 0;
          case 107:
            return fe(K.parent, tf, G);
          case 111:
            return fe(K.parent, Aj, O);
          case 113:
          case 85:
          case 98:
            const xe = K.kind === 85 ? K.parent.parent : K.parent;
            return fe(xe, E1, W);
          case 109:
            return fe(K.parent, UM, k);
          case 84:
          case 90:
            return qM(K.parent) || xD(K.parent)
              ? fe(K.parent.parent.parent, UM, k)
              : void 0;
          case 83:
          case 88:
            return fe(K.parent, kN, P);
          case 99:
          case 117:
          case 92:
            return fe(K.parent, (X) => mb(X, !0), N);
          case 137:
            return de(Ml, [137]);
          case 139:
          case 153:
            return de(fb, [139, 153]);
          case 135:
            return fe(K.parent, Pb, j);
          case 134:
            return ve(j(K));
          case 127:
            return ve(J(K));
          case 103:
          case 147:
            return;
          default:
            return pb(K.kind) && (rd(K.parent) || ac(K.parent))
              ? ve(E(K.kind, K.parent))
              : void 0;
        }
        function de(xe, X) {
          return fe(K.parent, xe, (Ce) => {
            var Je;
            return Ui(
              (Je = ni(Ce, ah)) == null ? void 0 : Je.symbol.declarations,
              (Se) =>
                xe(Se)
                  ? hn(Se.getChildren(pe), (re) => jn(X, re.kind))
                  : void 0,
            );
          });
        }
        function fe(xe, X, Ce) {
          return X(xe) ? ve(Ce(xe, pe)) : void 0;
        }
        function ve(xe) {
          return xe && xe.map((X) => r(X, pe));
        }
      }
      function l(K) {
        return Aj(K)
          ? [K]
          : E1(K)
            ? so(
                K.catchClause ? l(K.catchClause) : K.tryBlock && l(K.tryBlock),
                K.finallyBlock && l(K.finallyBlock),
              )
            : Yo(K)
              ? void 0
              : _(K, l);
      }
      function u(K) {
        let pe = K;
        for (; pe.parent; ) {
          const de = pe.parent;
          if (SS(de) || de.kind === 308) return de;
          if (E1(de) && de.tryBlock === pe && de.catchClause) return pe;
          pe = de;
        }
      }
      function d(K) {
        return kN(K) ? [K] : Yo(K) ? void 0 : _(K, d);
      }
      function _(K, pe) {
        const de = [];
        return (
          K.forEachChild((fe) => {
            const ve = pe(fe);
            ve !== void 0 && de.push(...QA(ve));
          }),
          de
        );
      }
      function h(K, pe) {
        const de = g(pe);
        return !!de && de === K;
      }
      function g(K) {
        return Dn(K, (pe) => {
          switch (pe.kind) {
            case 256:
              if (K.kind === 252) return !1;
            case 249:
            case 250:
            case 251:
            case 248:
            case 247:
              return !K.label || ie(pe, K.label.escapedText);
            default:
              return Yo(pe) && "quit";
          }
        });
      }
      function E(K, pe) {
        return Ui(A(pe, II(K)), (de) => nC(de, K));
      }
      function A(K, pe) {
        const de = K.parent;
        switch (de.kind) {
          case 269:
          case 308:
          case 242:
          case 297:
          case 298:
            return pe & 64 && Dc(K) ? [...K.members, K] : de.statements;
          case 177:
          case 175:
          case 263:
            return [
              ...de.parameters,
              ...(ui(de.parent) ? de.parent.members : []),
            ];
          case 264:
          case 232:
          case 265:
          case 188:
            const fe = de.members;
            if (pe & 15) {
              const ve = hn(de.members, Ml);
              if (ve) return [...fe, ...ve.parameters];
            } else if (pe & 64) return [...fe, de];
            return fe;
          default:
            return;
        }
      }
      function R(K, pe, ...de) {
        return pe && jn(de, pe.kind) ? (K.push(pe), !0) : !1;
      }
      function N(K) {
        const pe = [];
        if (R(pe, K.getFirstToken(), 99, 117, 92) && K.kind === 247) {
          const de = K.getChildren();
          for (let fe = de.length - 1; fe >= 0 && !R(pe, de[fe], 117); fe--);
        }
        return (
          Ye(d(K.statement), (de) => {
            h(K, de) && R(pe, de.getFirstToken(), 83, 88);
          }),
          pe
        );
      }
      function P(K) {
        const pe = g(K);
        if (pe)
          switch (pe.kind) {
            case 249:
            case 250:
            case 251:
            case 247:
            case 248:
              return N(pe);
            case 256:
              return k(pe);
          }
      }
      function k(K) {
        const pe = [];
        return (
          R(pe, K.getFirstToken(), 109),
          Ye(K.caseBlock.clauses, (de) => {
            (R(pe, de.getFirstToken(), 84, 90),
              Ye(d(de), (fe) => {
                h(K, fe) && R(pe, fe.getFirstToken(), 83);
              }));
          }),
          pe
        );
      }
      function W(K, pe) {
        const de = [];
        if (
          (R(de, K.getFirstToken(), 113),
          K.catchClause && R(de, K.catchClause.getFirstToken(), 85),
          K.finallyBlock)
        ) {
          const fe = Es(K, 98, pe);
          R(de, fe, 98);
        }
        return de;
      }
      function O(K, pe) {
        const de = u(K);
        if (!de) return;
        const fe = [];
        return (
          Ye(l(de), (ve) => {
            fe.push(Es(ve, 111, pe));
          }),
          SS(de) &&
            vb(de, (ve) => {
              fe.push(Es(ve, 107, pe));
            }),
          fe
        );
      }
      function G(K, pe) {
        const de = df(K);
        if (!de) return;
        const fe = [];
        return (
          vb(ma(de.body, ea), (ve) => {
            fe.push(Es(ve, 107, pe));
          }),
          Ye(l(de.body), (ve) => {
            fe.push(Es(ve, 111, pe));
          }),
          fe
        );
      }
      function j(K) {
        const pe = df(K);
        if (!pe) return;
        const de = [];
        return (
          pe.modifiers &&
            pe.modifiers.forEach((fe) => {
              R(de, fe, 134);
            }),
          Jo(pe, (fe) => {
            Z(fe, (ve) => {
              Pb(ve) && R(de, ve.getFirstToken(), 135);
            });
          }),
          de
        );
      }
      function J(K) {
        const pe = df(K);
        if (!pe) return;
        const de = [];
        return (
          Jo(pe, (fe) => {
            Z(fe, (ve) => {
              _w(ve) && R(de, ve.getFirstToken(), 127);
            });
          }),
          de
        );
      }
      function Z(K, pe) {
        (pe(K),
          !Yo(K) &&
            !ui(K) &&
            !gd(K) &&
            !uc(K) &&
            !vm(K) &&
            !Ri(K) &&
            Jo(K, (de) => Z(de, pe)));
      }
      function q(K, pe) {
        const de = ye(K, pe),
          fe = [];
        for (let ve = 0; ve < de.length; ve++) {
          if (de[ve].kind === 93 && ve < de.length - 1) {
            const xe = de[ve],
              X = de[ve + 1];
            let Ce = !0;
            for (let Je = X.getStart(pe) - 1; Je >= xe.end; Je--)
              if (!Bh(pe.text.charCodeAt(Je))) {
                Ce = !1;
                break;
              }
            if (Ce) {
              (fe.push({
                fileName: pe.fileName,
                textSpan: ic(xe.getStart(), X.end),
                kind: "reference",
              }),
                ve++);
              continue;
            }
          }
          fe.push(r(de[ve], pe));
        }
        return fe;
      }
      function ye(K, pe) {
        const de = [];
        for (; $T(K.parent) && K.parent.elseStatement === K; ) K = K.parent;
        for (;;) {
          const fe = K.getChildren(pe);
          R(de, fe[0], 101);
          for (let ve = fe.length - 1; ve >= 0 && !R(de, fe[ve], 93); ve--);
          if (!K.elseStatement || !$T(K.elseStatement)) break;
          K = K.elseStatement;
        }
        return de;
      }
      function ie(K, pe) {
        return !!Dn(K.parent, (de) =>
          Lb(de) ? de.label.escapedText === pe : "quit",
        );
      }
    })(U7 || (U7 = {}));
    function OO(e) {
      return !!e.sourceFile;
    }
    function xce(e, t, r) {
      return RJ(e, t, r);
    }
    function RJ(e, t = "", r, i) {
      const o = new Map(),
        s = Fd(!!e);
      function l() {
        const P = Co(o.keys())
          .filter((k) => k && k.charAt(0) === "_")
          .map((k) => {
            const W = o.get(k),
              O = [];
            return (
              W.forEach((G, j) => {
                OO(G)
                  ? O.push({
                      name: j,
                      scriptKind: G.sourceFile.scriptKind,
                      refCount: G.languageServiceRefCount,
                    })
                  : G.forEach((J, Z) =>
                      O.push({
                        name: j,
                        scriptKind: Z,
                        refCount: J.languageServiceRefCount,
                      }),
                    );
              }),
              O.sort((G, j) => j.refCount - G.refCount),
              { bucket: k, sourceFiles: O }
            );
          });
        return JSON.stringify(P, void 0, 2);
      }
      function u(P) {
        return typeof P.getCompilationSettings == "function"
          ? P.getCompilationSettings()
          : P;
      }
      function d(P, k, W, O, G, j) {
        const J = ks(P, t, s),
          Z = DJ(u(k));
        return _(P, J, k, Z, W, O, G, j);
      }
      function _(P, k, W, O, G, j, J, Z) {
        return A(P, k, W, O, G, j, !0, J, Z);
      }
      function h(P, k, W, O, G, j) {
        const J = ks(P, t, s),
          Z = DJ(u(k));
        return g(P, J, k, Z, W, O, G, j);
      }
      function g(P, k, W, O, G, j, J, Z) {
        return A(P, k, u(W), O, G, j, !1, J, Z);
      }
      function E(P, k) {
        const W = OO(P)
          ? P
          : P.get(
              C.checkDefined(
                k,
                "If there are more than one scriptKind's for same document the scriptKind should be provided",
              ),
            );
        return (
          C.assert(
            k === void 0 || !W || W.sourceFile.scriptKind === k,
            `Script kind should match provided ScriptKind:${k} and sourceFile.scriptKind: ${W?.sourceFile.scriptKind}, !entry: ${!W}`,
          ),
          W
        );
      }
      function A(P, k, W, O, G, j, J, Z, q) {
        var ye, ie, K, pe;
        Z = U6(P, Z);
        const de = u(W),
          fe = W === de ? void 0 : W,
          ve = Z === 6 ? 100 : Ga(de),
          xe =
            typeof q == "object"
              ? q
              : {
                  languageVersion: ve,
                  impliedNodeFormat:
                    fe &&
                    iO(
                      k,
                      (pe =
                        (K =
                          (ie =
                            (ye = fe.getCompilerHost) == null
                              ? void 0
                              : ye.call(fe)) == null
                            ? void 0
                            : ie.getModuleResolutionCache) == null
                          ? void 0
                          : K.call(ie)) == null
                        ? void 0
                        : pe.getPackageJsonInfoCache(),
                      fe,
                      de,
                    ),
                  setExternalModuleIndicator: Uk(de),
                  jsDocParsingMode: r,
                };
        ((xe.languageVersion = ve), C.assertEqual(r, xe.jsDocParsingMode));
        const X = o.size,
          Ce = Rce(O, xe.impliedNodeFormat),
          Je = KA(o, Ce, () => new Map());
        if (xr) {
          o.size > X &&
            xr.instant(xr.Phase.Session, "createdDocumentRegistryBucket", {
              configFilePath: de.configFilePath,
              key: Ce,
            });
          const Ne = !ad(k) && Hc(o, (Be, lt) => lt !== Ce && Be.has(k) && lt);
          Ne &&
            xr.instant(xr.Phase.Session, "documentRegistryBucketOverlap", {
              path: k,
              key1: Ne,
              key2: Ce,
            });
        }
        const Se = Je.get(k);
        let re = Se && E(Se, Z);
        if (!re && i) {
          const Ne = i.getDocument(Ce, k);
          Ne &&
            Ne.scriptKind === Z &&
            Ne.text === fx(G) &&
            (C.assert(J),
            (re = { sourceFile: Ne, languageServiceRefCount: 0 }),
            be());
        }
        if (re)
          (re.sourceFile.version !== j &&
            ((re.sourceFile = sK(
              re.sourceFile,
              G,
              j,
              G.getChangeRange(re.sourceFile.scriptSnapshot),
            )),
            i && i.setDocument(Ce, k, re.sourceFile)),
            J && re.languageServiceRefCount++);
        else {
          const Ne = az(P, G, xe, j, !1, Z);
          (i && i.setDocument(Ce, k, Ne),
            (re = { sourceFile: Ne, languageServiceRefCount: 1 }),
            be());
        }
        return (C.assert(re.languageServiceRefCount !== 0), re.sourceFile);
        function be() {
          if (!Se) Je.set(k, re);
          else if (OO(Se)) {
            const Ne = new Map();
            (Ne.set(Se.sourceFile.scriptKind, Se),
              Ne.set(Z, re),
              Je.set(k, Ne));
          } else Se.set(Z, re);
        }
      }
      function R(P, k, W, O) {
        const G = ks(P, t, s),
          j = DJ(k);
        return N(G, j, W, O);
      }
      function N(P, k, W, O) {
        const G = C.checkDefined(o.get(Rce(k, O))),
          j = G.get(P),
          J = E(j, W);
        (J.languageServiceRefCount--,
          C.assert(J.languageServiceRefCount >= 0),
          J.languageServiceRefCount === 0 &&
            (OO(j)
              ? G.delete(P)
              : (j.delete(W), j.size === 1 && G.set(P, cr(j.values(), Vs)))));
      }
      return {
        acquireDocument: d,
        acquireDocumentWithKey: _,
        updateDocument: h,
        updateDocumentWithKey: g,
        releaseDocument: R,
        releaseDocumentWithKey: N,
        getKeyForCompilationSettings: DJ,
        getDocumentRegistryBucketKeyWithMode: Rce,
        reportStats: l,
        getBuckets: () => o,
      };
    }
    function DJ(e) {
      return yU(e, tU);
    }
    function Rce(e, t) {
      return t ? `${e}|${t}` : e;
    }
    function Dce(e, t, r, i, o, s, l) {
      const u = d1(i),
        d = Fd(u),
        _ = CJ(t, r, d, l),
        h = CJ(r, t, d, l);
      return Rr.ChangeTracker.with(
        { host: i, formatContext: o, preferences: s },
        (g) => {
          (MKe(e, g, _, t, r, i.getCurrentDirectory(), u),
            PKe(e, g, _, h, i, d));
        },
      );
    }
    function CJ(e, t, r, i) {
      const o = r(e);
      return (l) => {
        const u = i && i.tryGetSourcePosition({ fileName: l, pos: 0 }),
          d = s(u ? u.fileName : l);
        return u ? (d === void 0 ? void 0 : NKe(u.fileName, d, l, r)) : d;
      };
      function s(l) {
        if (r(l) === o) return t;
        const u = kV(l, o, r);
        return u === void 0 ? void 0 : t + "/" + u;
      }
    }
    function NKe(e, t, r, i) {
      const o = MR(e, t, i);
      return Cce(ci(r), o);
    }
    function MKe(e, t, r, i, o, s, l) {
      const { configFile: u } = e.getCompilerOptions();
      if (!u) return;
      const d = ci(u.fileName),
        _ = JN(u);
      if (!_) return;
      Nce(_, (A, R) => {
        switch (R) {
          case "files":
          case "include":
          case "exclude": {
            if (h(A) || R !== "include" || !Cd(A.initializer)) return;
            const P = Ui(A.initializer.elements, (W) =>
              ka(W) ? W.text : void 0,
            );
            if (P.length === 0) return;
            const k = j6(d, [], P, l, s);
            ov(C.checkDefined(k.includeFilePattern), l).test(i) &&
              !ov(C.checkDefined(k.includeFilePattern), l).test(o) &&
              t.insertNodeAfter(
                u,
                Ba(A.initializer.elements),
                L.createStringLiteral(E(o)),
              );
            return;
          }
          case "compilerOptions":
            Nce(A.initializer, (N, P) => {
              const k = iU(P);
              (C.assert(k?.type !== "listOrElement"),
                k &&
                (k.isFilePath || (k.type === "list" && k.element.isFilePath))
                  ? h(N)
                  : P === "paths" &&
                    Nce(N.initializer, (W) => {
                      if (Cd(W.initializer))
                        for (const O of W.initializer.elements) g(O);
                    }));
            });
            return;
        }
      });
      function h(A) {
        const R = Cd(A.initializer) ? A.initializer.elements : [A.initializer];
        let N = !1;
        for (const P of R) N = g(P) || N;
        return N;
      }
      function g(A) {
        if (!ka(A)) return !1;
        const R = Cce(d, A.text),
          N = r(R);
        return N !== void 0
          ? (t.replaceRangeWithText(u, Axe(A, u), E(N)), !0)
          : !1;
      }
      function E(A) {
        return cf(d, A, !l);
      }
    }
    function PKe(e, t, r, i, o, s) {
      const l = e.getSourceFiles();
      for (const u of l) {
        const d = r(u.fileName),
          _ = d ?? u.fileName,
          h = ci(_),
          g = i(u.fileName),
          E = g || u.fileName,
          A = ci(E),
          R = d !== void 0 || g !== void 0;
        wKe(
          u,
          t,
          (N) => {
            if (!Zp(N)) return;
            const P = Cce(A, N),
              k = r(P);
            return k === void 0 ? void 0 : UE(cf(h, k, s));
          },
          (N) => {
            const P = e.getTypeChecker().getSymbolAtLocation(N);
            if (P?.declarations && P.declarations.some((W) => yu(W))) return;
            const k =
              g !== void 0
                ? Exe(N, M1(N.text, E, e.getCompilerOptions(), o), r, l)
                : kKe(P, N, u, e, o, r);
            return k !== void 0 && (k.updated || (R && Zp(N.text)))
              ? hy.updateModuleSpecifier(
                  e.getCompilerOptions(),
                  u,
                  _,
                  k.newFileName,
                  p0(e, o),
                  N.text,
                )
              : void 0;
          },
        );
      }
    }
    function LKe(e, t) {
      return ya(Qr(e, t));
    }
    function Cce(e, t) {
      return UE(LKe(e, t));
    }
    function kKe(e, t, r, i, o, s) {
      if (e) {
        const l = hn(e.declarations, Yi).fileName,
          u = s(l);
        return u === void 0
          ? { newFileName: l, updated: !1 }
          : { newFileName: u, updated: !0 };
      } else {
        const l = i.getModeForUsageLocation(r, t),
          u =
            o.resolveModuleNameLiterals || !o.resolveModuleNames
              ? i.getResolvedModuleFromModuleSpecifier(t, r)
              : o.getResolvedModuleWithFailedLookupLocationsFromCache &&
                o.getResolvedModuleWithFailedLookupLocationsFromCache(
                  t.text,
                  r.fileName,
                  l,
                );
        return Exe(t, u, s, i.getSourceFiles());
      }
    }
    function Exe(e, t, r, i) {
      if (!t) return;
      if (t.resolvedModule) {
        const d = u(t.resolvedModule.resolvedFileName);
        if (d) return d;
      }
      const o =
        Ye(t.failedLookupLocations, s) ||
        (Zp(e.text) && Ye(t.failedLookupLocations, l));
      if (o) return o;
      return (
        t.resolvedModule && {
          newFileName: t.resolvedModule.resolvedFileName,
          updated: !1,
        }
      );
      function s(d) {
        const _ = r(d);
        return _ && hn(i, (h) => h.fileName === _) ? l(d) : void 0;
      }
      function l(d) {
        return el(d, "/package.json") ? void 0 : u(d);
      }
      function u(d) {
        const _ = r(d);
        return _ && { newFileName: _, updated: !0 };
      }
    }
    function wKe(e, t, r, i) {
      for (const o of e.referencedFiles || ae) {
        const s = r(o.fileName);
        s !== void 0 &&
          s !== e.text.slice(o.pos, o.end) &&
          t.replaceRangeWithText(e, o, s);
      }
      for (const o of e.imports) {
        const s = i(o);
        s !== void 0 && s !== o.text && t.replaceRangeWithText(e, Axe(o, e), s);
      }
    }
    function Axe(e, t) {
      return Bf(e.getStart(t) + 1, e.end - 1);
    }
    function Nce(e, t) {
      if (Wa(e))
        for (const r of e.properties) Cc(r) && ka(r.name) && t(r, r.name.text);
    }
    var NJ = ((e) => (
      (e[(e.exact = 0)] = "exact"),
      (e[(e.prefix = 1)] = "prefix"),
      (e[(e.substring = 2)] = "substring"),
      (e[(e.camelCase = 3)] = "camelCase"),
      e
    ))(NJ || {});
    function FP(e, t) {
      return { kind: e, isCaseSensitive: t };
    }
    function Mce(e) {
      const t = new Map(),
        r = e
          .trim()
          .split(".")
          .map((i) => zKe(i.trim()));
      if (r.length === 1 && r[0].totalTextChunk.text === "")
        return {
          getMatchForLastSegmentOfPattern: () => FP(2, !0),
          getFullMatch: () => FP(2, !0),
          patternContainsDots: !1,
        };
      if (!r.some((i) => !i.subWordTextChunks.length))
        return {
          getFullMatch: (i, o) => OKe(i, o, r, t),
          getMatchForLastSegmentOfPattern: (i) => Pce(i, Ba(r), t),
          patternContainsDots: r.length > 1,
        };
    }
    function OKe(e, t, r, i) {
      if (!Pce(t, Ba(r), i) || r.length - 1 > e.length) return;
      let s;
      for (let l = r.length - 2, u = e.length - 1; l >= 0; l -= 1, u -= 1)
        s = Rxe(s, Pce(e[u], r[l], i));
      return s;
    }
    function Ixe(e, t) {
      let r = t.get(e);
      return (r || t.set(e, (r = Fce(e))), r);
    }
    function xxe(e, t, r) {
      const i = BKe(e, t.textLowerCase);
      if (i === 0) return FP(t.text.length === e.length ? 0 : 1, po(e, t.text));
      if (t.isLowerCase) {
        if (i === -1) return;
        const o = Ixe(e, r);
        for (const s of o)
          if (Lce(e, s, t.text, !0)) return FP(2, Lce(e, s, t.text, !1));
        if (t.text.length < e.length && lC(e.charCodeAt(i))) return FP(2, !1);
      } else {
        if (e.indexOf(t.text) > 0) return FP(2, !0);
        if (t.characterSpans.length > 0) {
          const o = Ixe(e, r),
            s = Dxe(e, o, t, !1) ? !0 : Dxe(e, o, t, !0) ? !1 : void 0;
          if (s !== void 0) return FP(3, s);
        }
      }
    }
    function Pce(e, t, r) {
      if (MJ(t.totalTextChunk.text, (s) => s !== 32 && s !== 42)) {
        const s = xxe(e, t.totalTextChunk, r);
        if (s) return s;
      }
      const i = t.subWordTextChunks;
      let o;
      for (const s of i) o = Rxe(o, xxe(e, s, r));
      return o;
    }
    function Rxe(e, t) {
      return JB([e, t], WKe);
    }
    function WKe(e, t) {
      return e === void 0
        ? 1
        : t === void 0
          ? -1
          : js(e.kind, t.kind) || NT(!e.isCaseSensitive, !t.isCaseSensitive);
    }
    function Lce(e, t, r, i, o = { start: 0, length: r.length }) {
      return (
        o.length <= t.length &&
        Pxe(0, o.length, (s) =>
          FKe(r.charCodeAt(o.start + s), e.charCodeAt(t.start + s), i),
        )
      );
    }
    function FKe(e, t, r) {
      return r ? kce(e) === kce(t) : e === t;
    }
    function Dxe(e, t, r, i) {
      const o = r.characterSpans;
      let s = 0,
        l = 0;
      for (;;) {
        if (l === o.length) return !0;
        if (s === t.length) return !1;
        let u = t[s],
          d = !1;
        for (; l < o.length; l++) {
          const _ = o[l];
          if (
            (d &&
              (!lC(r.text.charCodeAt(o[l - 1].start)) ||
                !lC(r.text.charCodeAt(o[l].start)))) ||
            !Lce(e, u, r.text, i, _)
          )
            break;
          ((d = !0), (u = Id(u.start + _.length, u.length - _.length)));
        }
        s++;
      }
    }
    function zKe(e) {
      return { totalTextChunk: Oce(e), subWordTextChunks: VKe(e) };
    }
    function lC(e) {
      if (e >= 65 && e <= 90) return !0;
      if (e < 127 || !oF(e, 99)) return !1;
      const t = String.fromCharCode(e);
      return t === t.toUpperCase();
    }
    function Cxe(e) {
      if (e >= 97 && e <= 122) return !0;
      if (e < 127 || !oF(e, 99)) return !1;
      const t = String.fromCharCode(e);
      return t === t.toLowerCase();
    }
    function BKe(e, t) {
      const r = e.length - t.length;
      for (let i = 0; i <= r; i++)
        if (MJ(t, (o, s) => kce(e.charCodeAt(s + i)) === o)) return i;
      return -1;
    }
    function kce(e) {
      return e >= 65 && e <= 90
        ? 97 + (e - 65)
        : e < 127
          ? e
          : String.fromCharCode(e).toLowerCase().charCodeAt(0);
    }
    function wce(e) {
      return e >= 48 && e <= 57;
    }
    function GKe(e) {
      return lC(e) || Cxe(e) || wce(e) || e === 95 || e === 36;
    }
    function VKe(e) {
      const t = [];
      let r = 0,
        i = 0;
      for (let o = 0; o < e.length; o++) {
        const s = e.charCodeAt(o);
        GKe(s)
          ? (i === 0 && (r = o), i++)
          : i > 0 && (t.push(Oce(e.substr(r, i))), (i = 0));
      }
      return (i > 0 && t.push(Oce(e.substr(r, i))), t);
    }
    function Oce(e) {
      const t = e.toLowerCase();
      return {
        text: e,
        textLowerCase: t,
        isLowerCase: e === t,
        characterSpans: Wce(e),
      };
    }
    function Wce(e) {
      return Nxe(e, !1);
    }
    function Fce(e) {
      return Nxe(e, !0);
    }
    function Nxe(e, t) {
      const r = [];
      let i = 0;
      for (let o = 1; o < e.length; o++) {
        const s = wce(e.charCodeAt(o - 1)),
          l = wce(e.charCodeAt(o)),
          u = UKe(e, t, o),
          d = t && jKe(e, o, i);
        (zce(e.charCodeAt(o - 1)) ||
          zce(e.charCodeAt(o)) ||
          s !== l ||
          u ||
          d) &&
          (Mxe(e, i, o) || r.push(Id(i, o - i)), (i = o));
      }
      return (Mxe(e, i, e.length) || r.push(Id(i, e.length - i)), r);
    }
    function zce(e) {
      switch (e) {
        case 33:
        case 34:
        case 35:
        case 37:
        case 38:
        case 39:
        case 40:
        case 41:
        case 42:
        case 44:
        case 45:
        case 46:
        case 47:
        case 58:
        case 59:
        case 63:
        case 64:
        case 91:
        case 92:
        case 93:
        case 95:
        case 123:
        case 125:
          return !0;
      }
      return !1;
    }
    function Mxe(e, t, r) {
      return MJ(e, (i) => zce(i) && i !== 95, t, r);
    }
    function jKe(e, t, r) {
      return (
        t !== r &&
        t + 1 < e.length &&
        lC(e.charCodeAt(t)) &&
        Cxe(e.charCodeAt(t + 1)) &&
        MJ(e, lC, r, t)
      );
    }
    function UKe(e, t, r) {
      const i = lC(e.charCodeAt(r - 1));
      return lC(e.charCodeAt(r)) && (!t || !i);
    }
    function Pxe(e, t, r) {
      for (let i = e; i < t; i++) if (!r(i)) return !1;
      return !0;
    }
    function MJ(e, t, r = 0, i = e.length) {
      return Pxe(r, i, (o) => t(e.charCodeAt(o), o));
    }
    function Lxe(e, t = !0, r = !1) {
      const i = {
          pragmas: void 0,
          checkJsDirective: void 0,
          referencedFiles: [],
          typeReferenceDirectives: [],
          libReferenceDirectives: [],
          amdDependencies: [],
          hasNoDefaultLib: void 0,
          moduleName: void 0,
        },
        o = [];
      let s,
        l,
        u,
        d = 0,
        _ = !1;
      function h() {
        return ((l = u), (u = yd.scan()), u === 19 ? d++ : u === 20 && d--, u);
      }
      function g() {
        const j = yd.getTokenValue(),
          J = yd.getTokenStart();
        return { fileName: j, pos: J, end: J + j.length };
      }
      function E() {
        (s || (s = []), s.push({ ref: g(), depth: d }));
      }
      function A() {
        (o.push(g()), R());
      }
      function R() {
        d === 0 && (_ = !0);
      }
      function N() {
        let j = yd.getToken();
        return j === 138
          ? ((j = h()), j === 144 && ((j = h()), j === 11 && E()), !0)
          : !1;
      }
      function P() {
        if (l === 25) return !1;
        let j = yd.getToken();
        if (j === 102) {
          if (((j = h()), j === 21)) {
            if (((j = h()), j === 11 || j === 15)) return (A(), !0);
          } else {
            if (j === 11) return (A(), !0);
            if (
              (j === 156 &&
                yd.lookAhead(() => {
                  const Z = yd.scan();
                  return (
                    Z !== 161 && (Z === 42 || Z === 19 || Z === 80 || ep(Z))
                  );
                }) &&
                (j = h()),
              j === 80 || ep(j))
            )
              if (((j = h()), j === 161)) {
                if (((j = h()), j === 11)) return (A(), !0);
              } else if (j === 64) {
                if (W(!0)) return !0;
              } else if (j === 28) j = h();
              else return !0;
            if (j === 19) {
              for (j = h(); j !== 20 && j !== 1; ) j = h();
              j === 20 &&
                ((j = h()), j === 161 && ((j = h()), j === 11 && A()));
            } else
              j === 42 &&
                ((j = h()),
                j === 130 &&
                  ((j = h()),
                  (j === 80 || ep(j)) &&
                    ((j = h()), j === 161 && ((j = h()), j === 11 && A()))));
          }
          return !0;
        }
        return !1;
      }
      function k() {
        let j = yd.getToken();
        if (j === 95) {
          if (
            (R(),
            (j = h()),
            j === 156 &&
              yd.lookAhead(() => {
                const Z = yd.scan();
                return Z === 42 || Z === 19;
              }) &&
              (j = h()),
            j === 19)
          ) {
            for (j = h(); j !== 20 && j !== 1; ) j = h();
            j === 20 && ((j = h()), j === 161 && ((j = h()), j === 11 && A()));
          } else if (j === 42)
            ((j = h()), j === 161 && ((j = h()), j === 11 && A()));
          else if (
            j === 102 &&
            ((j = h()),
            j === 156 &&
              yd.lookAhead(() => {
                const Z = yd.scan();
                return Z === 80 || ep(Z);
              }) &&
              (j = h()),
            (j === 80 || ep(j)) && ((j = h()), j === 64 && W(!0)))
          )
            return !0;
          return !0;
        }
        return !1;
      }
      function W(j, J = !1) {
        let Z = j ? h() : yd.getToken();
        return Z === 149
          ? ((Z = h()),
            Z === 21 && ((Z = h()), (Z === 11 || (J && Z === 15)) && A()),
            !0)
          : !1;
      }
      function O() {
        let j = yd.getToken();
        if (j === 80 && yd.getTokenValue() === "define") {
          if (((j = h()), j !== 21)) return !0;
          if (((j = h()), j === 11 || j === 15))
            if (((j = h()), j === 28)) j = h();
            else return !0;
          if (j !== 23) return !0;
          for (j = h(); j !== 24 && j !== 1; )
            ((j === 11 || j === 15) && A(), (j = h()));
          return !0;
        }
        return !1;
      }
      function G() {
        for (yd.setText(e), h(); yd.getToken() !== 1; ) {
          if (yd.getToken() === 16) {
            const j = [yd.getToken()];
            e: for (; et(j); ) {
              const J = yd.scan();
              switch (J) {
                case 1:
                  break e;
                case 102:
                  P();
                  break;
                case 16:
                  j.push(J);
                  break;
                case 19:
                  et(j) && j.push(J);
                  break;
                case 20:
                  et(j) &&
                    (Zs(j) === 16
                      ? yd.reScanTemplateToken(!1) === 18 && j.pop()
                      : j.pop());
                  break;
              }
            }
            h();
          }
          N() || P() || k() || (r && (W(!1, !0) || O())) || h();
        }
        yd.setText(void 0);
      }
      if ((t && G(), Yj(i, e), $j(i, gs), _)) {
        if (s) for (const j of s) o.push(j.ref);
        return {
          referencedFiles: i.referencedFiles,
          typeReferenceDirectives: i.typeReferenceDirectives,
          libReferenceDirectives: i.libReferenceDirectives,
          importedFiles: o,
          isLibFile: !!i.hasNoDefaultLib,
          ambientExternalModules: void 0,
        };
      } else {
        let j;
        if (s)
          for (const J of s)
            J.depth === 0
              ? (j || (j = []), j.push(J.ref.fileName))
              : o.push(J.ref);
        return {
          referencedFiles: i.referencedFiles,
          typeReferenceDirectives: i.typeReferenceDirectives,
          libReferenceDirectives: i.libReferenceDirectives,
          importedFiles: o,
          isLibFile: !!i.hasNoDefaultLib,
          ambientExternalModules: j,
        };
      }
    }
    var HKe =
      /^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;
    function Bce(e) {
      const t = Fd(e.useCaseSensitiveFileNames()),
        r = e.getCurrentDirectory(),
        i = new Map(),
        o = new Map();
      return {
        tryGetSourcePosition: u,
        tryGetGeneratedPosition: d,
        toLineColumnOffset: E,
        clearCache: A,
        documentPositionMappers: o,
      };
      function s(R) {
        return ks(R, r, t);
      }
      function l(R, N) {
        const P = s(R),
          k = o.get(P);
        if (k) return k;
        let W;
        if (e.getDocumentPositionMapper) W = e.getDocumentPositionMapper(R, N);
        else if (e.readFile) {
          const O = g(R);
          W =
            O &&
            PJ(
              {
                getSourceFileLike: g,
                getCanonicalFileName: t,
                log: (G) => e.log(G),
              },
              R,
              VU(O.text, ag(O)),
              (G) =>
                !e.fileExists || e.fileExists(G) ? e.readFile(G) : void 0,
            );
        }
        return (o.set(P, W || UU), W || UU);
      }
      function u(R) {
        if (!ad(R.fileName) || !_(R.fileName)) return;
        const P = l(R.fileName).getSourcePosition(R);
        return !P || P === R ? void 0 : u(P) || P;
      }
      function d(R) {
        if (ad(R.fileName)) return;
        const N = _(R.fileName);
        if (!N) return;
        const P = e.getProgram();
        if (P.isSourceOfProjectReferenceRedirect(N.fileName)) return;
        const W = P.getCompilerOptions().outFile,
          O = W ? Tu(W) + ".d.ts" : h6(R.fileName, P.getCompilerOptions(), P);
        if (O === void 0) return;
        const G = l(O, R.fileName).getGeneratedPosition(R);
        return G === R ? void 0 : G;
      }
      function _(R) {
        const N = e.getProgram();
        if (!N) return;
        const P = s(R),
          k = N.getSourceFileByPath(P);
        return k && k.resolvedPath === P ? k : void 0;
      }
      function h(R) {
        const N = s(R),
          P = i.get(N);
        if (P !== void 0) return P || void 0;
        if (!e.readFile || (e.fileExists && !e.fileExists(R))) {
          i.set(N, !1);
          return;
        }
        const k = e.readFile(R),
          W = k ? qKe(k) : !1;
        return (i.set(N, W), W || void 0);
      }
      function g(R) {
        return e.getSourceFileLike ? e.getSourceFileLike(R) : _(R) || h(R);
      }
      function E(R, N) {
        return g(R).getLineAndCharacterOfPosition(N);
      }
      function A() {
        (i.clear(), o.clear());
      }
    }
    function PJ(e, t, r, i) {
      let o = mae(r);
      if (o) {
        const u = HKe.exec(o);
        if (u) {
          if (u[1]) {
            const d = u[1];
            return kxe(e, Jne(jc, d), t);
          }
          o = void 0;
        }
      }
      const s = [];
      (o && s.push(o), s.push(t + ".map"));
      const l = o && To(o, ci(t));
      for (const u of s) {
        const d = To(u, ci(t)),
          _ = i(d, l);
        if (Bo(_)) return kxe(e, _, d);
        if (_ !== void 0) return _ || void 0;
      }
    }
    function kxe(e, t, r) {
      const i = hae(t);
      if (
        !(!i || !i.sources || !i.file || !i.mappings) &&
        !(i.sourcesContent && i.sourcesContent.some(Bo))
      )
        return gae(e, i, r);
    }
    function qKe(e, t) {
      return {
        text: e,
        lineMap: t,
        getLineAndCharacterOfPosition(r) {
          return LR(ag(this), r);
        },
      };
    }
    var Gce = new Map();
    function LJ(e, t, r) {
      var i;
      t.getSemanticDiagnostics(e, r);
      const o = [],
        s = t.getTypeChecker();
      !(
        t.getImpliedNodeFormatForEmit(e) === 1 ||
        $l(e.fileName, [".cts", ".cjs"])
      ) &&
        e.commonJsModuleIndicator &&
        (Qle(t) || Jq(t.getCompilerOptions())) &&
        JKe(e) &&
        o.push(
          Ar(
            $Ke(e.commonJsModuleIndicator),
            f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module,
          ),
        );
      const u = Pu(e);
      if ((Gce.clear(), d(e), PI(t.getCompilerOptions())))
        for (const _ of e.imports) {
          const h = eM(_);
          if (Fc(h) && di(h, 32)) continue;
          const g = KKe(h);
          if (!g) continue;
          const E =
              (i = t.getResolvedModuleFromModuleSpecifier(_, e)) == null
                ? void 0
                : i.resolvedModule,
            A = E && t.getSourceFile(E.resolvedFileName);
          A &&
            A.externalModuleIndicator &&
            A.externalModuleIndicator !== !0 &&
            ll(A.externalModuleIndicator) &&
            A.externalModuleIndicator.isExportEquals &&
            o.push(Ar(g, f.Import_may_be_converted_to_a_default_import));
        }
      return (
        Xr(o, e.bindSuggestionDiagnostics),
        Xr(o, t.getSuggestionDiagnostics(e, r)),
        o.sort((_, h) => _.start - h.start),
        o
      );
      function d(_) {
        if (u)
          ZKe(_, s) &&
            o.push(
              Ar(
                yi(_.parent) ? _.parent.name : _,
                f.This_constructor_function_may_be_converted_to_a_class_declaration,
              ),
            );
        else {
          if (
            ac(_) &&
            _.parent === e &&
            _.declarationList.flags & 2 &&
            _.declarationList.declarations.length === 1
          ) {
            const g = _.declarationList.declarations[0].initializer;
            g &&
              Zu(g, !0) &&
              o.push(Ar(g, f.require_call_may_be_converted_to_an_import));
          }
          const h = cu.getJSDocTypedefNodes(_);
          for (const g of h)
            o.push(Ar(g, f.JSDoc_typedef_may_be_converted_to_TypeScript_type));
          cu.parameterShouldGetTypeFromJSDoc(_) &&
            o.push(
              Ar(_.name || _, f.JSDoc_types_may_be_moved_to_TypeScript_types),
            );
        }
        (OJ(_) && XKe(_, s, o), _.forEachChild(d));
      }
    }
    function JKe(e) {
      return e.statements.some((t) => {
        switch (t.kind) {
          case 244:
            return t.declarationList.declarations.some(
              (r) => !!r.initializer && Zu(wxe(r.initializer), !0),
            );
          case 245: {
            const { expression: r } = t;
            if (!Nr(r)) return Zu(r, !0);
            const i = oc(r);
            return i === 1 || i === 2;
          }
          default:
            return !1;
        }
      });
    }
    function wxe(e) {
      return qr(e) ? wxe(e.expression) : e;
    }
    function KKe(e) {
      switch (e.kind) {
        case 273:
          const { importClause: t, moduleSpecifier: r } = e;
          return t &&
            !t.name &&
            t.namedBindings &&
            t.namedBindings.kind === 275 &&
            ka(r)
            ? t.namedBindings.name
            : void 0;
        case 272:
          return e.name;
        default:
          return;
      }
    }
    function XKe(e, t, r) {
      YKe(e, t) &&
        !Gce.has(zxe(e)) &&
        r.push(
          Ar(
            !e.name && yi(e.parent) && He(e.parent.name) ? e.parent.name : e,
            f.This_may_be_converted_to_an_async_function,
          ),
        );
    }
    function YKe(e, t) {
      return !oM(e) && e.body && ea(e.body) && QKe(e.body, t) && kJ(e, t);
    }
    function kJ(e, t) {
      const r = t.getSignatureFromDeclaration(e),
        i = r ? t.getReturnTypeOfSignature(r) : void 0;
      return !!i && !!t.getPromisedTypeOfPromise(i);
    }
    function $Ke(e) {
      return Nr(e) ? e.left : e;
    }
    function QKe(e, t) {
      return !!vb(e, (r) => H7(r, t));
    }
    function H7(e, t) {
      return tf(e) && !!e.expression && wJ(e.expression, t);
    }
    function wJ(e, t) {
      if (!Oxe(e) || !Wxe(e) || !e.arguments.every((i) => Fxe(i, t))) return !1;
      let r = e.expression.expression;
      for (; Oxe(r) || qr(r); )
        if (Zo(r)) {
          if (!Wxe(r) || !r.arguments.every((i) => Fxe(i, t))) return !1;
          r = r.expression.expression;
        } else r = r.expression;
      return !0;
    }
    function Oxe(e) {
      return Zo(e) && (_O(e, "then") || _O(e, "catch") || _O(e, "finally"));
    }
    function Wxe(e) {
      const t = e.expression.name.text,
        r = t === "then" ? 2 : t === "catch" || t === "finally" ? 1 : 0;
      return e.arguments.length > r
        ? !1
        : e.arguments.length < r
          ? !0
          : r === 1 ||
            yt(
              e.arguments,
              (i) => i.kind === 106 || (He(i) && i.text === "undefined"),
            );
    }
    function Fxe(e, t) {
      switch (e.kind) {
        case 263:
        case 219:
          if (cc(e) & 1) return !1;
        case 220:
          Gce.set(zxe(e), !0);
        case 106:
          return !0;
        case 80:
        case 212: {
          const i = t.getSymbolAtLocation(e);
          return i
            ? t.isUndefinedSymbol(i) ||
                yt(
                  xd(i, t).declarations,
                  (o) =>
                    Yo(o) || (Zy(o) && !!o.initializer && Yo(o.initializer)),
                )
            : !1;
        }
        default:
          return !1;
      }
    }
    function zxe(e) {
      return `${e.pos.toString()}:${e.end.toString()}`;
    }
    function ZKe(e, t) {
      var r, i, o, s;
      if (Us(e)) {
        if (yi(e.parent) && (r = e.symbol.members) != null && r.size) return !0;
        const l = t.getSymbolOfExpando(e, !1);
        return !!(
          l &&
          (((i = l.exports) != null && i.size) ||
            ((o = l.members) != null && o.size))
        );
      }
      return Zl(e) ? !!((s = e.symbol.members) != null && s.size) : !1;
    }
    function OJ(e) {
      switch (e.kind) {
        case 263:
        case 175:
        case 219:
        case 220:
          return !0;
        default:
          return !1;
      }
    }
    var eXe = new Set(["isolatedModules"]);
    function Vce(e, t) {
      return Gxe(e, t, !1);
    }
    function Bxe(e, t) {
      return Gxe(e, t, !0);
    }
    var tXe = `/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number {}
interface Object {}
interface RegExp {}
interface String {}
interface Array<T> { length: number; [n: number]: T; }
interface SymbolConstructor {
    (desc?: string | number): symbol;
    for(name: string): symbol;
    readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
    readonly [Symbol.toStringTag]: string;
}`,
      q7 = "lib.d.ts",
      jce;
    function Gxe(e, t, r) {
      jce ?? (jce = tx(q7, tXe, { languageVersion: 99 }));
      const i = [],
        o = t.compilerOptions ? WJ(t.compilerOptions, i) : {},
        s = oz();
      for (const N in s) Rs(s, N) && o[N] === void 0 && (o[N] = s[N]);
      for (const N of goe)
        (o.verbatimModuleSyntax && eXe.has(N.name)) ||
          (o[N.name] = N.transpileOptionValue);
      ((o.suppressOutputPathCheck = !0),
        (o.allowNonTsExtensions = !0),
        r
          ? ((o.declaration = !0),
            (o.emitDeclarationOnly = !0),
            (o.isolatedDeclarations = !0))
          : ((o.declaration = !1), (o.declarationMap = !1)));
      const l = iv(o),
        u = {
          getSourceFile: (N) => (N === ya(d) ? _ : N === ya(q7) ? jce : void 0),
          writeFile: (N, P) => {
            El(N, ".map")
              ? (C.assertEqual(
                  g,
                  void 0,
                  "Unexpected multiple source map outputs, file:",
                  N,
                ),
                (g = P))
              : (C.assertEqual(
                  h,
                  void 0,
                  "Unexpected multiple outputs, file:",
                  N,
                ),
                (h = P));
          },
          getDefaultLibFileName: () => q7,
          useCaseSensitiveFileNames: () => !1,
          getCanonicalFileName: (N) => N,
          getCurrentDirectory: () => "",
          getNewLine: () => l,
          fileExists: (N) => N === d || (!!r && N === q7),
          readFile: () => "",
          directoryExists: () => !0,
          getDirectories: () => [],
        },
        d =
          t.fileName ||
          (t.compilerOptions && t.compilerOptions.jsx
            ? "module.tsx"
            : "module.ts"),
        _ = tx(d, e, {
          languageVersion: Ga(o),
          impliedNodeFormat: iO(
            ks(d, "", u.getCanonicalFileName),
            void 0,
            u,
            o,
          ),
          setExternalModuleIndicator: Uk(o),
          jsDocParsingMode: t.jsDocParsingMode ?? 0,
        });
      (t.moduleName && (_.moduleName = t.moduleName),
        t.renamedDependencies &&
          (_.renamedDependencies = new Map(
            Object.entries(t.renamedDependencies),
          )));
      let h, g;
      const A = oO(r ? [d, q7] : [d], o, u);
      t.reportDiagnostics &&
        (Xr(i, A.getSyntacticDiagnostics(_)), Xr(i, A.getOptionsDiagnostics()));
      const R = A.emit(void 0, void 0, void 0, r, t.transformers, r);
      return (
        Xr(i, R.diagnostics),
        h === void 0
          ? C.fail("Output generation failed")
          : { outputText: h, diagnostics: i, sourceMapText: g }
      );
    }
    function Vxe(e, t, r, i, o) {
      const s = Vce(e, {
        compilerOptions: t,
        fileName: r,
        reportDiagnostics: !!i,
        moduleName: o,
      });
      return (Xr(i, s.diagnostics), s.outputText);
    }
    var Uce;
    function WJ(e, t) {
      ((Uce =
        Uce ||
        Un(
          Um,
          (r) =>
            typeof r.type == "object" &&
            !Hc(r.type, (i) => typeof i != "number"),
        )),
        (e = Gq(e)));
      for (const r of Uce) {
        if (!Rs(e, r.name)) continue;
        const i = e[r.name];
        Bo(i)
          ? (e[r.name] = V4(r, i, t))
          : Hc(r.type, (o) => o === i) || t.push(voe(r));
      }
      return e;
    }
    var Hce = {};
    x(Hce, { getNavigateToItems: () => jxe });
    function jxe(e, t, r, i, o, s, l) {
      const u = Mce(i);
      if (!u) return ae;
      const d = [],
        _ = e.length === 1 ? e[0] : void 0;
      for (const h of e)
        (r.throwIfCancellationRequested(),
          !(s && h.isDeclarationFile) &&
            (Uxe(h, !!l, _) ||
              h.getNamedDeclarations().forEach((g, E) => {
                nXe(u, E, g, t, h.fileName, !!l, _, d);
              })));
      return (d.sort(aXe), (o === void 0 ? d : d.slice(0, o)).map(sXe));
    }
    function Uxe(e, t, r) {
      return e !== r && t && (MO(e.path) || e.hasNoDefaultLib);
    }
    function nXe(e, t, r, i, o, s, l, u) {
      const d = e.getMatchForLastSegmentOfPattern(t);
      if (d) {
        for (const _ of r)
          if (rXe(_, i, s, l))
            if (e.patternContainsDots) {
              const h = e.getFullMatch(oXe(_), t);
              h &&
                u.push({
                  name: t,
                  fileName: o,
                  matchKind: h.kind,
                  isCaseSensitive: h.isCaseSensitive,
                  declaration: _,
                });
            } else
              u.push({
                name: t,
                fileName: o,
                matchKind: d.kind,
                isCaseSensitive: d.isCaseSensitive,
                declaration: _,
              });
      }
    }
    function rXe(e, t, r, i) {
      var o;
      switch (e.kind) {
        case 274:
        case 277:
        case 272:
          const s = t.getSymbolAtLocation(e.name),
            l = t.getAliasedSymbol(s);
          return (
            s.escapedName !== l.escapedName &&
            !(
              (o = l.declarations) != null &&
              o.every((u) => Uxe(u.getSourceFile(), r, i))
            )
          );
        default:
          return !0;
      }
    }
    function iXe(e, t) {
      const r = Oo(e);
      return !!r && (Hxe(r, t) || (r.kind === 168 && qce(r.expression, t)));
    }
    function qce(e, t) {
      return (
        Hxe(e, t) ||
        (qr(e) && (t.push(e.name.text), !0) && qce(e.expression, t))
      );
    }
    function Hxe(e, t) {
      return qh(e) && (t.push(zf(e)), !0);
    }
    function oXe(e) {
      const t = [],
        r = Oo(e);
      if (r && r.kind === 168 && !qce(r.expression, t)) return ae;
      t.shift();
      let i = F1(e);
      for (; i; ) {
        if (!iXe(i, t)) return ae;
        i = F1(i);
      }
      return (t.reverse(), t);
    }
    function aXe(e, t) {
      return js(e.matchKind, t.matchKind) || v2(e.name, t.name);
    }
    function sXe(e) {
      const t = e.declaration,
        r = F1(t),
        i = r && Oo(r);
      return {
        name: e.name,
        kind: ZS(t),
        kindModifiers: DP(t),
        matchKind: NJ[e.matchKind],
        isCaseSensitive: e.isCaseSensitive,
        fileName: e.fileName,
        textSpan: zu(t),
        containerName: i ? i.text : "",
        containerKind: i ? ZS(r) : "",
      };
    }
    var Jce = {};
    x(Jce, { getNavigationBarItems: () => Jxe, getNavigationTree: () => Kxe });
    var lXe = /\s+/g,
      Kce = 150,
      FJ,
      WO,
      J7 = [],
      gv,
      qxe = [],
      cC,
      Xce = [];
    function Jxe(e, t) {
      ((FJ = t), (WO = e));
      try {
        return Vt(fXe($xe(e)), mXe);
      } finally {
        Xxe();
      }
    }
    function Kxe(e, t) {
      ((FJ = t), (WO = e));
      try {
        return aRe($xe(e));
      } finally {
        Xxe();
      }
    }
    function Xxe() {
      ((WO = void 0), (FJ = void 0), (J7 = []), (gv = void 0), (Xce = []));
    }
    function K7(e) {
      return zP(e.getText(WO));
    }
    function zJ(e) {
      return e.node.kind;
    }
    function Yxe(e, t) {
      e.children ? e.children.push(t) : (e.children = [t]);
    }
    function $xe(e) {
      C.assert(!J7.length);
      const t = {
        node: e,
        name: void 0,
        additionalNodes: void 0,
        parent: void 0,
        children: void 0,
        indent: 0,
      };
      gv = t;
      for (const r of e.statements) _x(r);
      return (f0(), C.assert(!gv && !J7.length), t);
    }
    function nE(e, t) {
      Yxe(gv, Yce(e, t));
    }
    function Yce(e, t) {
      return {
        node: e,
        name: t || (rd(e) || St(e) ? Oo(e) : void 0),
        additionalNodes: void 0,
        parent: gv,
        children: void 0,
        indent: gv.indent + 1,
      };
    }
    function Qxe(e) {
      (cC || (cC = new Map()), cC.set(e, !0));
    }
    function Zxe(e) {
      for (let t = 0; t < e; t++) f0();
    }
    function eRe(e, t) {
      const r = [];
      for (; !qh(t); ) {
        const i = gk(t),
          o = iy(t);
        ((t = t.expression), !(o === "prototype" || eo(i)) && r.push(i));
      }
      r.push(t);
      for (let i = r.length - 1; i > 0; i--) {
        const o = r[i];
        rE(e, o);
      }
      return [r.length - 1, r[0]];
    }
    function rE(e, t) {
      const r = Yce(e, t);
      (Yxe(gv, r), J7.push(gv), qxe.push(cC), (cC = void 0), (gv = r));
    }
    function f0() {
      (gv.children && (BJ(gv.children, gv), Zce(gv.children)),
        (gv = J7.pop()),
        (cC = qxe.pop()));
    }
    function m0(e, t, r) {
      (rE(e, r), _x(t), f0());
    }
    function tRe(e) {
      e.initializer && _Xe(e.initializer)
        ? (rE(e), Jo(e.initializer, _x), f0())
        : m0(e, e.initializer);
    }
    function $ce(e) {
      const t = Oo(e);
      if (t === void 0) return !1;
      if (va(t)) {
        const r = t.expression;
        return Ds(r) || np(r) || uf(r);
      }
      return !!t;
    }
    function _x(e) {
      if ((FJ.throwIfCancellationRequested(), !(!e || oI(e))))
        switch (e.kind) {
          case 177:
            const t = e;
            m0(t, t.body);
            for (const l of t.parameters) Np(l, t) && nE(l);
            break;
          case 175:
          case 178:
          case 179:
          case 174:
            $ce(e) && m0(e, e.body);
            break;
          case 173:
            $ce(e) && tRe(e);
            break;
          case 172:
            $ce(e) && nE(e);
            break;
          case 274:
            const r = e;
            r.name && nE(r.name);
            const { namedBindings: i } = r;
            if (i)
              if (i.kind === 275) nE(i);
              else for (const l of i.elements) nE(l);
            break;
          case 305:
            m0(e, e.name);
            break;
          case 306:
            const { expression: o } = e;
            He(o) ? nE(e, o) : nE(e);
            break;
          case 209:
          case 304:
          case 261: {
            const l = e;
            Qo(l.name) ? _x(l.name) : tRe(l);
            break;
          }
          case 263:
            const s = e.name;
            (s && He(s) && Qxe(s.text), m0(e, e.body));
            break;
          case 220:
          case 219:
            m0(e, e.body);
            break;
          case 267:
            rE(e);
            for (const l of e.members) hXe(l) || nE(l);
            f0();
            break;
          case 264:
          case 232:
          case 265:
            rE(e);
            for (const l of e.members) _x(l);
            f0();
            break;
          case 268:
            m0(e, lRe(e).body);
            break;
          case 278: {
            const l = e.expression,
              u = Wa(l) || Zo(l) ? l : Xs(l) || Us(l) ? l.body : void 0;
            u ? (rE(e), _x(u), f0()) : nE(e);
            break;
          }
          case 282:
          case 272:
          case 182:
          case 180:
          case 181:
          case 266:
            nE(e);
            break;
          case 214:
          case 227: {
            const l = oc(e);
            switch (l) {
              case 1:
              case 2:
                m0(e, e.right);
                return;
              case 6:
              case 3: {
                const u = e,
                  d = u.left,
                  _ = l === 3 ? d.expression : d;
                let h = 0,
                  g;
                (He(_.expression)
                  ? (Qxe(_.expression.text), (g = _.expression))
                  : ([h, g] = eRe(u, _.expression)),
                  l === 6
                    ? Wa(u.right) &&
                      u.right.properties.length > 0 &&
                      (rE(u, g), Jo(u.right, _x), f0())
                    : Us(u.right) || Xs(u.right)
                      ? m0(e, u.right, g)
                      : (rE(u, g), m0(e, u.right, d.name), f0()),
                  Zxe(h));
                return;
              }
              case 7:
              case 9: {
                const u = e,
                  d = l === 7 ? u.arguments[0] : u.arguments[0].expression,
                  _ = u.arguments[1],
                  [h, g] = eRe(e, d);
                (rE(e, g),
                  rE(e, vt(L.createIdentifier(_.text), _)),
                  _x(e.arguments[2]),
                  f0(),
                  f0(),
                  Zxe(h));
                return;
              }
              case 5: {
                const u = e,
                  d = u.left,
                  _ = d.expression;
                if (He(_) && iy(d) !== "prototype" && cC && cC.has(_.text)) {
                  Us(u.right) || Xs(u.right)
                    ? m0(e, u.right, _)
                    : AS(d) && (rE(u, _), m0(u.left, u.right, gk(d)), f0());
                  return;
                }
                break;
              }
              case 4:
              case 0:
              case 8:
                break;
              default:
                C.assertNever(l);
            }
          }
          default:
            (ef(e) &&
              Ye(e.jsDoc, (l) => {
                Ye(l.tags, (u) => {
                  hm(u) && nE(u);
                });
              }),
              Jo(e, _x));
        }
    }
    function BJ(e, t) {
      const r = new Map();
      ul(e, (i, o) => {
        const s = i.name || Oo(i.node),
          l = s && K7(s);
        if (!l) return !0;
        const u = r.get(l);
        if (!u) return (r.set(l, i), !0);
        if (u instanceof Array) {
          for (const d of u) if (nRe(d, i, o, t)) return !1;
          return (u.push(i), !0);
        } else {
          const d = u;
          return nRe(d, i, o, t) ? !1 : (r.set(l, [d, i]), !0);
        }
      });
    }
    var FO = {
      5: !0,
      3: !0,
      7: !0,
      9: !0,
      0: !1,
      1: !1,
      2: !1,
      8: !1,
      6: !0,
      4: !1,
    };
    function cXe(e, t, r, i) {
      function o(u) {
        return Us(u) || Zl(u) || yi(u);
      }
      const s = Nr(t.node) || Zo(t.node) ? oc(t.node) : 0,
        l = Nr(e.node) || Zo(e.node) ? oc(e.node) : 0;
      if (
        (FO[s] && FO[l]) ||
        (o(e.node) && FO[s]) ||
        (o(t.node) && FO[l]) ||
        (Dc(e.node) && Qce(e.node) && FO[s]) ||
        (Dc(t.node) && FO[l]) ||
        (Dc(e.node) && Qce(e.node) && o(t.node)) ||
        (Dc(t.node) && o(e.node) && Qce(e.node))
      ) {
        let u = (e.additionalNodes && Zs(e.additionalNodes)) || e.node;
        if ((!Dc(e.node) && !Dc(t.node)) || o(e.node) || o(t.node)) {
          const _ = o(e.node) ? e.node : o(t.node) ? t.node : void 0;
          if (_ !== void 0) {
            const h = vt(L.createConstructorDeclaration(void 0, [], void 0), _),
              g = Yce(h);
            ((g.indent = e.indent + 1),
              (g.children = e.node === _ ? e.children : t.children),
              (e.children =
                e.node === _
                  ? so([g], t.children || [t])
                  : so(e.children || [{ ...e }], [g])));
          } else
            (e.children || t.children) &&
              ((e.children = so(e.children || [{ ...e }], t.children || [t])),
              e.children && (BJ(e.children, e), Zce(e.children)));
          u = e.node = vt(
            L.createClassDeclaration(
              void 0,
              e.name || L.createIdentifier("__class__"),
              void 0,
              void 0,
              [],
            ),
            e.node,
          );
        } else
          ((e.children = so(e.children, t.children)),
            e.children && BJ(e.children, e));
        const d = t.node;
        return (
          i.children[r - 1].node.end === u.end
            ? vt(u, { pos: u.pos, end: d.end })
            : (e.additionalNodes || (e.additionalNodes = []),
              e.additionalNodes.push(
                vt(
                  L.createClassDeclaration(
                    void 0,
                    e.name || L.createIdentifier("__class__"),
                    void 0,
                    void 0,
                    [],
                  ),
                  t.node,
                ),
              )),
          !0
        );
      }
      return s !== 0;
    }
    function nRe(e, t, r, i) {
      return cXe(e, t, r, i)
        ? !0
        : dXe(e.node, t.node, i)
          ? (uXe(e, t), !0)
          : !1;
    }
    function dXe(e, t, r) {
      if (
        e.kind !== t.kind ||
        (e.parent !== t.parent && !(rRe(e, r) && rRe(t, r)))
      )
        return !1;
      switch (e.kind) {
        case 173:
        case 175:
        case 178:
        case 179:
          return ua(e) === ua(t);
        case 268:
          return iRe(e, t) && nde(e) === nde(t);
        default:
          return !0;
      }
    }
    function Qce(e) {
      return !!(e.flags & 16);
    }
    function rRe(e, t) {
      if (e.parent === void 0) return !1;
      const r = t_(e.parent) ? e.parent.parent : e.parent;
      return r === t.node || jn(t.additionalNodes, r);
    }
    function iRe(e, t) {
      return !e.body || !t.body
        ? e.body === t.body
        : e.body.kind === t.body.kind &&
            (e.body.kind !== 268 || iRe(e.body, t.body));
    }
    function uXe(e, t) {
      ((e.additionalNodes = e.additionalNodes || []),
        e.additionalNodes.push(t.node),
        t.additionalNodes && e.additionalNodes.push(...t.additionalNodes),
        (e.children = so(e.children, t.children)),
        e.children && (BJ(e.children, e), Zce(e.children)));
    }
    function Zce(e) {
      e.sort(pXe);
    }
    function pXe(e, t) {
      return v2(oRe(e.node), oRe(t.node)) || js(zJ(e), zJ(t));
    }
    function oRe(e) {
      if (e.kind === 268) return sRe(e);
      const t = Oo(e);
      if (t && vc(t)) {
        const r = c1(t);
        return r && Gi(r);
      }
      switch (e.kind) {
        case 219:
        case 220:
        case 232:
          return dRe(e);
        default:
          return;
      }
    }
    function ede(e, t) {
      if (e.kind === 268) return zP(sRe(e));
      if (t) {
        const r = He(t)
          ? t.text
          : Ws(t)
            ? `[${K7(t.argumentExpression)}]`
            : K7(t);
        if (r.length > 0) return zP(r);
      }
      switch (e.kind) {
        case 308:
          const r = e;
          return zc(r) ? `"${k_(Ic(Tu(ya(r.fileName))))}"` : "<global>";
        case 278:
          return ll(e) && e.isExportEquals ? "export=" : "default";
        case 220:
        case 263:
        case 219:
        case 264:
        case 232:
          return nv(e) & 2048 ? "default" : dRe(e);
        case 177:
          return "constructor";
        case 181:
          return "new()";
        case 180:
          return "()";
        case 182:
          return "[]";
        default:
          return "<unknown>";
      }
    }
    function fXe(e) {
      const t = [];
      function r(o) {
        if (i(o) && (t.push(o), o.children)) for (const s of o.children) r(s);
      }
      return (r(e), t);
      function i(o) {
        if (o.children) return !0;
        switch (zJ(o)) {
          case 264:
          case 232:
          case 267:
          case 265:
          case 268:
          case 308:
          case 266:
          case 347:
          case 339:
            return !0;
          case 220:
          case 263:
          case 219:
            return s(o);
          default:
            return !1;
        }
        function s(l) {
          if (!l.node.body) return !1;
          switch (zJ(l.parent)) {
            case 269:
            case 308:
            case 175:
            case 177:
              return !0;
            default:
              return !1;
          }
        }
      }
    }
    function aRe(e) {
      return {
        text: ede(e.node, e.name),
        kind: ZS(e.node),
        kindModifiers: cRe(e.node),
        spans: tde(e),
        nameSpan: e.name && rde(e.name),
        childItems: Vt(e.children, aRe),
      };
    }
    function mXe(e) {
      return {
        text: ede(e.node, e.name),
        kind: ZS(e.node),
        kindModifiers: cRe(e.node),
        spans: tde(e),
        childItems: Vt(e.children, t) || Xce,
        indent: e.indent,
        bolded: !1,
        grayed: !1,
      };
      function t(r) {
        return {
          text: ede(r.node, r.name),
          kind: ZS(r.node),
          kindModifiers: DP(r.node),
          spans: tde(r),
          childItems: Xce,
          indent: 0,
          bolded: !1,
          grayed: !1,
        };
      }
    }
    function tde(e) {
      const t = [rde(e.node)];
      if (e.additionalNodes) for (const r of e.additionalNodes) t.push(rde(r));
      return t;
    }
    function sRe(e) {
      return yu(e) ? Al(e.name) : nde(e);
    }
    function nde(e) {
      const t = [zf(e.name)];
      for (; e.body && e.body.kind === 268; )
        ((e = e.body), t.push(zf(e.name)));
      return t.join(".");
    }
    function lRe(e) {
      return e.body && uc(e.body) ? lRe(e.body) : e;
    }
    function hXe(e) {
      return !e.name || e.name.kind === 168;
    }
    function rde(e) {
      return e.kind === 308 ? _v(e) : zu(e, WO);
    }
    function cRe(e) {
      return (e.parent && e.parent.kind === 261 && (e = e.parent), DP(e));
    }
    function dRe(e) {
      const { parent: t } = e;
      if (e.name && K2(e.name) > 0) return zP(ws(e.name));
      if (yi(t)) return zP(ws(t.name));
      if (Nr(t) && t.operatorToken.kind === 64)
        return K7(t.left).replace(lXe, "");
      if (Cc(t)) return K7(t.name);
      if (nv(e) & 2048) return "default";
      if (ui(e)) return "<class>";
      if (Zo(t)) {
        let r = uRe(t.expression);
        if (r !== void 0) {
          if (((r = zP(r)), r.length > Kce)) return `${r} callback`;
          const i = zP(
            Ui(t.arguments, (o) =>
              ds(o) || lI(o) ? o.getText(WO) : void 0,
            ).join(", "),
          );
          return `${r}(${i}) callback`;
        }
      }
      return "<function>";
    }
    function uRe(e) {
      if (He(e)) return e.text;
      if (qr(e)) {
        const t = uRe(e.expression),
          r = e.name.text;
        return t === void 0 ? r : `${t}.${r}`;
      } else return;
    }
    function _Xe(e) {
      switch (e.kind) {
        case 220:
        case 219:
        case 232:
          return !0;
        default:
          return !1;
      }
    }
    function zP(e) {
      return (
        (e = e.length > Kce ? e.substring(0, Kce) + "..." : e),
        e.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g, "")
      );
    }
    var gx = {};
    x(gx, {
      addExportsInOldFile: () => mde,
      addImportsForMovedSymbols: () => hde,
      addNewFileToTsconfig: () => fde,
      addOrRemoveBracesToArrowFunction: () => uYe,
      addTargetFileImports: () => Ade,
      containsJsx: () => yde,
      convertArrowFunctionOrFunctionExpression: () => _Ye,
      convertParamsToDestructuredObject: () => RYe,
      convertStringOrTemplateLiteral: () => HYe,
      convertToOptionalChainExpression: () => t$e,
      createNewFileName: () => gde,
      doChangeNamedToNamespaceOrDefault: () => gRe,
      extractSymbol: () => cDe,
      generateGetAccessorAndSetAccessor: () => F$e,
      getApplicableRefactors: () => gXe,
      getEditsForRefactor: () => yXe,
      getExistingLocals: () => Sde,
      getIdentifierForNode: () => Ede,
      getNewStatementsAndRemoveFromOldFile: () => pde,
      getStatementsToMove: () => zO,
      getUsageInfo: () => X7,
      inferFunctionReturnType: () => z$e,
      isInImport: () => XJ,
      isRefactorErrorInfo: () => gy,
      refactorKindBeginsWith: () => h0,
      registerRefactor: () => Dg,
    });
    var ide = new Map();
    function Dg(e, t) {
      ide.set(e, t);
    }
    function gXe(e, t) {
      return Co(
        lf(ide.values(), (r) => {
          var i;
          return (e.cancellationToken &&
            e.cancellationToken.isCancellationRequested()) ||
            !((i = r.kinds) != null && i.some((o) => h0(o, e.kind)))
            ? void 0
            : r.getAvailableActions(e, t);
        }),
      );
    }
    function yXe(e, t, r, i) {
      const o = ide.get(t);
      return o && o.getEditsForAction(e, r, i);
    }
    var ode = "Convert export",
      GJ = {
        name: "Convert default export to named export",
        description: Ho(f.Convert_default_export_to_named_export),
        kind: "refactor.rewrite.export.named",
      },
      VJ = {
        name: "Convert named export to default export",
        description: Ho(f.Convert_named_export_to_default_export),
        kind: "refactor.rewrite.export.default",
      };
    Dg(ode, {
      kinds: [GJ.kind, VJ.kind],
      getAvailableActions: function (t) {
        const r = pRe(t, t.triggerReason === "invoked");
        if (!r) return ae;
        if (!gy(r)) {
          const i = r.wasDefault ? GJ : VJ;
          return [{ name: ode, description: i.description, actions: [i] }];
        }
        return t.preferences.provideRefactorNotApplicableReason
          ? [
              {
                name: ode,
                description: Ho(f.Convert_default_export_to_named_export),
                actions: [
                  { ...GJ, notApplicableReason: r.error },
                  { ...VJ, notApplicableReason: r.error },
                ],
              },
            ]
          : ae;
      },
      getEditsForAction: function (t, r) {
        C.assert(r === GJ.name || r === VJ.name, "Unexpected action name");
        const i = pRe(t);
        return (
          C.assert(i && !gy(i), "Expected applicable refactor info"),
          {
            edits: Rr.ChangeTracker.with(t, (s) =>
              vXe(t.file, t.program, i, s, t.cancellationToken),
            ),
            renameFilename: void 0,
            renameLocation: void 0,
          }
        );
      },
    });
    function pRe(e, t = !0) {
      const { file: r, program: i } = e,
        o = mx(e),
        s = Fi(r, o.start),
        l = s.parent && nv(s.parent) & 32 && t ? s.parent : xO(s, r, o);
      if (!l || (!Yi(l.parent) && !(t_(l.parent) && yu(l.parent.parent))))
        return { error: Ho(f.Could_not_find_export_statement) };
      const u = i.getTypeChecker(),
        d = AXe(l.parent, u),
        _ = nv(l) || (ll(l) && !l.isExportEquals ? 2080 : 0),
        h = !!(_ & 2048);
      if (!(_ & 32) || (!h && d.exports.has("default")))
        return { error: Ho(f.This_file_already_has_a_default_export) };
      const g = (E) =>
        He(E) && u.getSymbolAtLocation(E)
          ? void 0
          : { error: Ho(f.Can_only_convert_named_export) };
      switch (l.kind) {
        case 263:
        case 264:
        case 265:
        case 267:
        case 266:
        case 268: {
          const E = l;
          return E.name
            ? g(E.name) || {
                exportNode: E,
                exportName: E.name,
                wasDefault: h,
                exportingModuleSymbol: d,
              }
            : void 0;
        }
        case 244: {
          const E = l;
          if (
            !(E.declarationList.flags & 2) ||
            E.declarationList.declarations.length !== 1
          )
            return;
          const A = $a(E.declarationList.declarations);
          return A.initializer
            ? (C.assert(!h, "Can't have a default flag here"),
              g(A.name) || {
                exportNode: E,
                exportName: A.name,
                wasDefault: h,
                exportingModuleSymbol: d,
              })
            : void 0;
        }
        case 278: {
          const E = l;
          return E.isExportEquals
            ? void 0
            : g(E.expression) || {
                exportNode: E,
                exportName: E.expression,
                wasDefault: h,
                exportingModuleSymbol: d,
              };
        }
        default:
          return;
      }
    }
    function vXe(e, t, r, i, o) {
      (bXe(e, r, i, t.getTypeChecker()), TXe(t, r, i, o));
    }
    function bXe(e, { wasDefault: t, exportNode: r, exportName: i }, o, s) {
      if (t)
        if (ll(r) && !r.isExportEquals) {
          const l = r.expression,
            u = fRe(l.text, l.text);
          o.replaceNode(
            e,
            r,
            L.createExportDeclaration(void 0, !1, L.createNamedExports([u])),
          );
        } else
          o.delete(
            e,
            C.checkDefined(
              nC(r, 90),
              "Should find a default keyword in modifier list",
            ),
          );
      else {
        const l = C.checkDefined(
          nC(r, 95),
          "Should find an export keyword in modifier list",
        );
        switch (r.kind) {
          case 263:
          case 264:
          case 265:
            o.insertNodeAfter(e, l, L.createToken(90));
            break;
          case 244:
            const u = $a(r.declarationList.declarations);
            if (!Ys.Core.isSymbolReferencedInFile(i, s, e) && !u.type) {
              o.replaceNode(
                e,
                r,
                L.createExportDefault(
                  C.checkDefined(
                    u.initializer,
                    "Initializer was previously known to be present",
                  ),
                ),
              );
              break;
            }
          case 267:
          case 266:
          case 268:
            (o.deleteModifier(e, l),
              o.insertNodeAfter(
                e,
                r,
                L.createExportDefault(L.createIdentifier(i.text)),
              ));
            break;
          default:
            C.fail(`Unexpected exportNode kind ${r.kind}`);
        }
      }
    }
    function TXe(
      e,
      { wasDefault: t, exportName: r, exportingModuleSymbol: i },
      o,
      s,
    ) {
      const l = e.getTypeChecker(),
        u = C.checkDefined(
          l.getSymbolAtLocation(r),
          "Export name should resolve to a symbol",
        );
      Ys.Core.eachExportReference(
        e.getSourceFiles(),
        l,
        s,
        u,
        i,
        r.text,
        t,
        (d) => {
          if (r === d) return;
          const _ = d.getSourceFile();
          t ? SXe(_, d, o, r.text) : EXe(_, d, o);
        },
      );
    }
    function SXe(e, t, r, i) {
      const { parent: o } = t;
      switch (o.kind) {
        case 212:
          r.replaceNode(e, t, L.createIdentifier(i));
          break;
        case 277:
        case 282: {
          const l = o;
          r.replaceNode(e, l, ade(i, l.name.text));
          break;
        }
        case 274: {
          const l = o;
          C.assert(
            l.name === t,
            "Import clause name should match provided ref",
          );
          const u = ade(i, t.text),
            { namedBindings: d } = l;
          if (!d) r.replaceNode(e, t, L.createNamedImports([u]));
          else if (d.kind === 275) {
            r.deleteRange(e, { pos: t.getStart(e), end: d.getStart(e) });
            const _ = ka(l.parent.moduleSpecifier)
                ? Xq(l.parent.moduleSpecifier, e)
                : 1,
              h = Vb(void 0, [ade(i, t.text)], l.parent.moduleSpecifier, _);
            r.insertNodeAfter(e, l.parent, h);
          } else (r.delete(e, t), r.insertNodeAtEndOfList(e, d.elements, u));
          break;
        }
        case 206:
          const s = o;
          r.replaceNode(
            e,
            o,
            L.createImportTypeNode(
              s.argument,
              s.attributes,
              L.createIdentifier(i),
              s.typeArguments,
              s.isTypeOf,
            ),
          );
          break;
        default:
          C.failBadSyntaxKind(o);
      }
    }
    function EXe(e, t, r) {
      const i = t.parent;
      switch (i.kind) {
        case 212:
          r.replaceNode(e, t, L.createIdentifier("default"));
          break;
        case 277: {
          const o = L.createIdentifier(i.name.text);
          i.parent.elements.length === 1
            ? r.replaceNode(e, i.parent, o)
            : (r.delete(e, i), r.insertNodeBefore(e, i.parent, o));
          break;
        }
        case 282: {
          r.replaceNode(e, i, fRe("default", i.name.text));
          break;
        }
        default:
          C.assertNever(i, `Unexpected parent kind ${i.kind}`);
      }
    }
    function ade(e, t) {
      return L.createImportSpecifier(
        !1,
        e === t ? void 0 : L.createIdentifier(e),
        L.createIdentifier(t),
      );
    }
    function fRe(e, t) {
      return L.createExportSpecifier(
        !1,
        e === t ? void 0 : L.createIdentifier(e),
        L.createIdentifier(t),
      );
    }
    function AXe(e, t) {
      if (Yi(e)) return e.symbol;
      const r = e.parent.symbol;
      return r.valueDeclaration && TS(r.valueDeclaration)
        ? t.getMergedSymbol(r)
        : r;
    }
    var sde = "Convert import",
      jJ = {
        0: {
          name: "Convert namespace import to named imports",
          description: Ho(f.Convert_namespace_import_to_named_imports),
          kind: "refactor.rewrite.import.named",
        },
        2: {
          name: "Convert named imports to namespace import",
          description: Ho(f.Convert_named_imports_to_namespace_import),
          kind: "refactor.rewrite.import.namespace",
        },
        1: {
          name: "Convert named imports to default import",
          description: Ho(f.Convert_named_imports_to_default_import),
          kind: "refactor.rewrite.import.default",
        },
      };
    Dg(sde, {
      kinds: $A(jJ).map((e) => e.kind),
      getAvailableActions: function (t) {
        const r = mRe(t, t.triggerReason === "invoked");
        if (!r) return ae;
        if (!gy(r)) {
          const i = jJ[r.convertTo];
          return [{ name: sde, description: i.description, actions: [i] }];
        }
        return t.preferences.provideRefactorNotApplicableReason
          ? $A(jJ).map((i) => ({
              name: sde,
              description: i.description,
              actions: [{ ...i, notApplicableReason: r.error }],
            }))
          : ae;
      },
      getEditsForAction: function (t, r) {
        C.assert(
          yt($A(jJ), (s) => s.name === r),
          "Unexpected action name",
        );
        const i = mRe(t);
        return (
          C.assert(i && !gy(i), "Expected applicable refactor info"),
          {
            edits: Rr.ChangeTracker.with(t, (s) =>
              IXe(t.file, t.program, s, i),
            ),
            renameFilename: void 0,
            renameLocation: void 0,
          }
        );
      },
    });
    function mRe(e, t = !0) {
      const { file: r } = e,
        i = mx(e),
        o = Fi(r, i.start),
        s = t ? Dn(o, Rp(vl, o_)) : xO(o, r, i);
      if (s === void 0 || !(vl(s) || o_(s)))
        return { error: "Selection is not an import declaration." };
      const l = i.start + i.length,
        u = eE(s, s.parent, r);
      if (u && l > u.getStart()) return;
      const { importClause: d } = s;
      return d
        ? d.namedBindings
          ? d.namedBindings.kind === 275
            ? { convertTo: 0, import: d.namedBindings }
            : hRe(e.program, d)
              ? { convertTo: 1, import: d.namedBindings }
              : { convertTo: 2, import: d.namedBindings }
          : { error: Ho(f.Could_not_find_namespace_import_or_named_imports) }
        : { error: Ho(f.Could_not_find_import_clause) };
    }
    function hRe(e, t) {
      return (
        PI(e.getCompilerOptions()) &&
        DXe(t.parent.moduleSpecifier, e.getTypeChecker())
      );
    }
    function IXe(e, t, r, i) {
      const o = t.getTypeChecker();
      i.convertTo === 0
        ? xXe(e, o, r, i.import, PI(t.getCompilerOptions()))
        : gRe(e, t, r, i.import, i.convertTo === 1);
    }
    function xXe(e, t, r, i, o) {
      let s = !1;
      const l = [],
        u = new Map();
      Ys.Core.eachSymbolReferenceInFile(i.name, t, e, (g) => {
        if (!j2(g.parent)) s = !0;
        else {
          const E = _Re(g.parent).text;
          (t.resolveName(E, g, -1, !0) && u.set(E, !0),
            C.assert(RXe(g.parent) === g, "Parent expression should match id"),
            l.push(g.parent));
        }
      });
      const d = new Map();
      for (const g of l) {
        const E = _Re(g).text;
        let A = d.get(E);
        (A === void 0 && d.set(E, (A = u.has(E) ? B1(E, e) : E)),
          r.replaceNode(e, g, L.createIdentifier(A)));
      }
      const _ = [];
      d.forEach((g, E) => {
        _.push(
          L.createImportSpecifier(
            !1,
            g === E ? void 0 : L.createIdentifier(E),
            L.createIdentifier(g),
          ),
        );
      });
      const h = i.parent.parent;
      if (s && !o && vl(h)) r.insertNodeAfter(e, h, yRe(h, void 0, _));
      else {
        const g = s ? L.createIdentifier(i.name.text) : void 0;
        r.replaceNode(e, i.parent, vRe(g, _));
      }
    }
    function _Re(e) {
      return qr(e) ? e.name : e.right;
    }
    function RXe(e) {
      return qr(e) ? e.expression : e.left;
    }
    function gRe(e, t, r, i, o = hRe(t, i.parent)) {
      const s = t.getTypeChecker(),
        l = i.parent.parent,
        { moduleSpecifier: u } = l,
        d = new Set();
      i.elements.forEach((R) => {
        const N = s.getSymbolAtLocation(R.name);
        N && d.add(N);
      });
      const _ = u && ka(u) ? LO(u.text, 99) : "module";
      function h(R) {
        return !!Ys.Core.eachSymbolReferenceInFile(R.name, s, e, (N) => {
          const P = s.resolveName(_, N, -1, !0);
          return P ? (d.has(P) ? ou(N.parent) : !0) : !1;
        });
      }
      const E = i.elements.some(h) ? B1(_, e) : _,
        A = new Set();
      for (const R of i.elements) {
        const N = R.propertyName || R.name;
        Ys.Core.eachSymbolReferenceInFile(R.name, s, e, (P) => {
          const k =
            N.kind === 11
              ? L.createElementAccessExpression(
                  L.createIdentifier(E),
                  L.cloneNode(N),
                )
              : L.createPropertyAccessExpression(
                  L.createIdentifier(E),
                  L.cloneNode(N),
                );
          Ud(P.parent)
            ? r.replaceNode(e, P.parent, L.createPropertyAssignment(P.text, k))
            : ou(P.parent)
              ? A.add(R)
              : r.replaceNode(e, P, k);
        });
      }
      if (
        (r.replaceNode(
          e,
          i,
          o
            ? L.createIdentifier(E)
            : L.createNamespaceImport(L.createIdentifier(E)),
        ),
        A.size && vl(l))
      ) {
        const R = Co(A.values(), (N) =>
          L.createImportSpecifier(
            N.isTypeOnly,
            N.propertyName && L.cloneNode(N.propertyName),
            L.cloneNode(N.name),
          ),
        );
        r.insertNodeAfter(e, i.parent.parent, yRe(l, void 0, R));
      }
    }
    function DXe(e, t) {
      const r = t.resolveExternalModuleName(e);
      if (!r) return !1;
      const i = t.resolveExternalModuleSymbol(r);
      return r !== i;
    }
    function yRe(e, t, r) {
      return L.createImportDeclaration(
        void 0,
        vRe(t, r),
        e.moduleSpecifier,
        void 0,
      );
    }
    function vRe(e, t) {
      return L.createImportClause(
        void 0,
        e,
        t && t.length ? L.createNamedImports(t) : void 0,
      );
    }
    var lde = "Extract type",
      UJ = {
        name: "Extract to type alias",
        description: Ho(f.Extract_to_type_alias),
        kind: "refactor.extract.type",
      },
      HJ = {
        name: "Extract to interface",
        description: Ho(f.Extract_to_interface),
        kind: "refactor.extract.interface",
      },
      qJ = {
        name: "Extract to typedef",
        description: Ho(f.Extract_to_typedef),
        kind: "refactor.extract.typedef",
      };
    Dg(lde, {
      kinds: [UJ.kind, HJ.kind, qJ.kind],
      getAvailableActions: function (t) {
        const { info: r, affectedTextRange: i } = bRe(
          t,
          t.triggerReason === "invoked",
        );
        return r
          ? gy(r)
            ? t.preferences.provideRefactorNotApplicableReason
              ? [
                  {
                    name: lde,
                    description: Ho(f.Extract_type),
                    actions: [
                      { ...qJ, notApplicableReason: r.error },
                      { ...UJ, notApplicableReason: r.error },
                      { ...HJ, notApplicableReason: r.error },
                    ],
                  },
                ]
              : ae
            : [
                {
                  name: lde,
                  description: Ho(f.Extract_type),
                  actions: r.isJS ? [qJ] : Bn([UJ], r.typeElements && HJ),
                },
              ].map((s) => ({
                ...s,
                actions: s.actions.map((l) => ({
                  ...l,
                  range: i
                    ? {
                        start: {
                          line: ca(t.file, i.pos).line,
                          offset: ca(t.file, i.pos).character,
                        },
                        end: {
                          line: ca(t.file, i.end).line,
                          offset: ca(t.file, i.end).character,
                        },
                      }
                    : void 0,
                })),
              }))
          : ae;
      },
      getEditsForAction: function (t, r) {
        const { file: i } = t,
          { info: o } = bRe(t);
        C.assert(o && !gy(o), "Expected to find a range to extract");
        const s = B1("NewType", i),
          l = Rr.ChangeTracker.with(t, (_) => {
            switch (r) {
              case UJ.name:
                return (
                  C.assert(!o.isJS, "Invalid actionName/JS combo"),
                  MXe(_, i, s, o)
                );
              case qJ.name:
                return (
                  C.assert(o.isJS, "Invalid actionName/JS combo"),
                  LXe(_, t, i, s, o)
                );
              case HJ.name:
                return (
                  C.assert(
                    !o.isJS && !!o.typeElements,
                    "Invalid actionName/JS combo",
                  ),
                  PXe(_, i, s, o)
                );
              default:
                C.fail("Unexpected action name");
            }
          }),
          u = i.fileName,
          d = DO(l, u, s, !1);
        return { edits: l, renameFilename: u, renameLocation: d };
      },
    });
    function bRe(e, t = !0) {
      const { file: r, startPosition: i } = e,
        o = Pu(r),
        s = v7(mx(e)),
        l = s.pos === s.end && t,
        u = CXe(r, i, s, l);
      if (!u || !Ri(u))
        return {
          info: { error: Ho(f.Selection_is_not_a_valid_type_node) },
          affectedTextRange: void 0,
        };
      const d = e.program.getTypeChecker(),
        _ = kXe(u, o);
      if (_ === void 0)
        return {
          info: { error: Ho(f.No_type_could_be_extracted_from_this_type_node) },
          affectedTextRange: void 0,
        };
      const h = wXe(u, _);
      if (!Ri(h))
        return {
          info: { error: Ho(f.Selection_is_not_a_valid_type_node) },
          affectedTextRange: void 0,
        };
      const g = [];
      (dv(h.parent) || JI(h.parent)) &&
        s.end > u.end &&
        Xr(
          g,
          h.parent.types.filter((P) => d7(P, r, s.pos, s.end)),
        );
      const E = g.length > 1 ? g : h,
        { typeParameters: A, affectedTextRange: R } = NXe(d, E, _, r);
      if (!A)
        return {
          info: { error: Ho(f.No_type_could_be_extracted_from_this_type_node) },
          affectedTextRange: void 0,
        };
      const N = JJ(d, E);
      return {
        info: {
          isJS: o,
          selection: E,
          enclosingNode: _,
          typeParameters: A,
          typeElements: N,
        },
        affectedTextRange: R,
      };
    }
    function CXe(e, t, r, i) {
      const o = [() => Fi(e, t), () => eC(e, t, () => !0)];
      for (const s of o) {
        const l = s(),
          u = d7(l, e, r.pos, r.end),
          d = Dn(
            l,
            (_) => _.parent && Ri(_) && !iE(r, _.parent, e) && (i || u),
          );
        if (d) return d;
      }
    }
    function JJ(e, t) {
      if (t) {
        if (Mo(t)) {
          const r = [];
          for (const i of t) {
            const o = JJ(e, i);
            if (!o) return;
            Xr(r, o);
          }
          return r;
        }
        if (JI(t)) {
          const r = [],
            i = new Set();
          for (const o of t.types) {
            const s = JJ(e, o);
            if (!s || !s.every((l) => l.name && gm(i, AO(l.name)))) return;
            Xr(r, s);
          }
          return r;
        } else {
          if (v1(t)) return JJ(e, t.type);
          if (wu(t)) return t.members;
        }
      }
    }
    function iE(e, t, r) {
      return vO(e, La(r.text, t.pos), t.end);
    }
    function NXe(e, t, r, i) {
      const o = [],
        s = QA(t),
        l = { pos: s[0].getStart(i), end: s[s.length - 1].end };
      for (const d of s)
        if (u(d)) return { typeParameters: void 0, affectedTextRange: void 0 };
      return { typeParameters: o, affectedTextRange: l };
      function u(d) {
        if (Wp(d)) {
          if (He(d.typeName)) {
            const _ = d.typeName,
              h = e.resolveName(_.text, _, 262144, !0);
            for (const g of h?.declarations || ae)
              if (sl(g) && g.getSourceFile() === i) {
                if (g.name.escapedText === _.escapedText && iE(g, l, i))
                  return !0;
                if (iE(r, g, i) && !iE(l, g, i)) {
                  kf(o, g);
                  break;
                }
              }
          }
        } else if (y1(d)) {
          const _ = Dn(d, (h) => zS(h) && iE(h.extendsType, d, i));
          if (!_ || !iE(l, _, i)) return !0;
        } else if (HI(d) || VM(d)) {
          const _ = Dn(d.parent, Yo);
          if (_ && _.type && iE(_.type, d, i) && !iE(l, _, i)) return !0;
        } else if (FS(d)) {
          if (He(d.exprName)) {
            const _ = e.resolveName(d.exprName.text, d.exprName, 111551, !1);
            if (
              _?.valueDeclaration &&
              iE(r, _.valueDeclaration, i) &&
              !iE(l, _.valueDeclaration, i)
            )
              return !0;
          } else if (Eb(d.exprName.left) && !iE(l, d.parent, i)) return !0;
        }
        return (
          i && qI(d) && ca(i, d.pos).line === ca(i, d.end).line && Cr(d, 1),
          Jo(d, u)
        );
      }
    }
    function MXe(e, t, r, i) {
      const { enclosingNode: o, typeParameters: s } = i,
        { firstTypeNode: l, lastTypeNode: u, newTypeNode: d } = cde(i),
        _ = L.createTypeAliasDeclaration(
          void 0,
          r,
          s.map((h) =>
            L.updateTypeParameterDeclaration(
              h,
              h.modifiers,
              h.name,
              h.constraint,
              void 0,
            ),
          ),
          d,
        );
      (e.insertNodeBefore(t, o, fj(_), !0),
        e.replaceNodeRange(
          t,
          l,
          u,
          L.createTypeReferenceNode(
            r,
            s.map((h) => L.createTypeReferenceNode(h.name, void 0)),
          ),
          {
            leadingTriviaOption: Rr.LeadingTriviaOption.Exclude,
            trailingTriviaOption: Rr.TrailingTriviaOption.ExcludeWhitespace,
          },
        ));
    }
    function PXe(e, t, r, i) {
      var o;
      const { enclosingNode: s, typeParameters: l, typeElements: u } = i,
        d = L.createInterfaceDeclaration(void 0, r, l, void 0, u);
      (vt(d, (o = u[0]) == null ? void 0 : o.parent),
        e.insertNodeBefore(t, s, fj(d), !0));
      const { firstTypeNode: _, lastTypeNode: h } = cde(i);
      e.replaceNodeRange(
        t,
        _,
        h,
        L.createTypeReferenceNode(
          r,
          l.map((g) => L.createTypeReferenceNode(g.name, void 0)),
        ),
        {
          leadingTriviaOption: Rr.LeadingTriviaOption.Exclude,
          trailingTriviaOption: Rr.TrailingTriviaOption.ExcludeWhitespace,
        },
      );
    }
    function LXe(e, t, r, i, o) {
      var s;
      QA(o.selection).forEach((R) => {
        Cr(R, 7168);
      });
      const { enclosingNode: l, typeParameters: u } = o,
        { firstTypeNode: d, lastTypeNode: _, newTypeNode: h } = cde(o),
        g = L.createJSDocTypedefTag(
          L.createIdentifier("typedef"),
          L.createJSDocTypeExpression(h),
          L.createIdentifier(i),
        ),
        E = [];
      Ye(u, (R) => {
        const N = WR(R),
          P = L.createTypeParameterDeclaration(void 0, R.name),
          k = L.createJSDocTemplateTag(
            L.createIdentifier("template"),
            N && ma(N, t0),
            [P],
          );
        E.push(k);
      });
      const A = L.createJSDocComment(void 0, L.createNodeArray(so(E, [g])));
      if (mh(l)) {
        const R = l.getStart(r),
          N = _y(t.host, (s = t.formatContext) == null ? void 0 : s.options);
        e.insertNodeAt(r, l.getStart(r), A, {
          suffix: N + N + r.text.slice(R7(r.text, R - 1), R),
        });
      } else e.insertNodeBefore(r, l, A, !0);
      e.replaceNodeRange(
        r,
        d,
        _,
        L.createTypeReferenceNode(
          i,
          u.map((R) => L.createTypeReferenceNode(R.name, void 0)),
        ),
      );
    }
    function cde(e) {
      return Mo(e.selection)
        ? {
            firstTypeNode: e.selection[0],
            lastTypeNode: e.selection[e.selection.length - 1],
            newTypeNode: dv(e.selection[0].parent)
              ? L.createUnionTypeNode(e.selection)
              : L.createIntersectionTypeNode(e.selection),
          }
        : {
            firstTypeNode: e.selection,
            lastTypeNode: e.selection,
            newTypeNode: e.selection,
          };
    }
    function kXe(e, t) {
      return Dn(e, Vi) || (t ? Dn(e, mh) : void 0);
    }
    function wXe(e, t) {
      return (
        Dn(e, (r) => (r === t ? "quit" : !!(dv(r.parent) || JI(r.parent)))) ?? e
      );
    }
    var KJ = "Move to file",
      dde = Ho(f.Move_to_file),
      ude = {
        name: "Move to file",
        description: dde,
        kind: "refactor.move.file",
      };
    Dg(KJ, {
      kinds: [ude.kind],
      getAvailableActions: function (t, r) {
        const i = t.file,
          o = zO(t);
        if (!r) return ae;
        if (t.triggerReason === "implicit" && t.endPosition !== void 0) {
          const s = Dn(Fi(i, t.startPosition), hx),
            l = Dn(Fi(i, t.endPosition), hx);
          if (s && !Yi(s) && l && !Yi(l)) return ae;
        }
        if (t.preferences.allowTextChangesInNewFiles && o) {
          const s = {
            start: {
              line: ca(i, o.all[0].getStart(i)).line,
              offset: ca(i, o.all[0].getStart(i)).character,
            },
            end: {
              line: ca(i, Ba(o.all).end).line,
              offset: ca(i, Ba(o.all).end).character,
            },
          };
          return [
            { name: KJ, description: dde, actions: [{ ...ude, range: s }] },
          ];
        }
        return t.preferences.provideRefactorNotApplicableReason
          ? [
              {
                name: KJ,
                description: dde,
                actions: [
                  {
                    ...ude,
                    notApplicableReason: Ho(
                      f.Selection_is_not_a_valid_statement_or_statements,
                    ),
                  },
                ],
              },
            ]
          : ae;
      },
      getEditsForAction: function (t, r, i) {
        C.assert(r === KJ, "Wrong refactor invoked");
        const o = C.checkDefined(zO(t)),
          { host: s, program: l } = t;
        C.assert(i, "No interactive refactor arguments available");
        const u = i.targetFile;
        return Tg(u) || f1(u)
          ? s.fileExists(u) && l.getSourceFile(u) === void 0
            ? TRe(Ho(f.Cannot_move_statements_to_the_selected_file))
            : {
                edits: Rr.ChangeTracker.with(t, (_) =>
                  OXe(
                    t,
                    t.file,
                    i.targetFile,
                    t.program,
                    o,
                    _,
                    t.host,
                    t.preferences,
                  ),
                ),
                renameFilename: void 0,
                renameLocation: void 0,
              }
          : TRe(Ho(f.Cannot_move_to_file_selected_file_is_invalid));
      },
    });
    function TRe(e) {
      return {
        edits: [],
        renameFilename: void 0,
        renameLocation: void 0,
        notApplicableReason: e,
      };
    }
    function OXe(e, t, r, i, o, s, l, u) {
      const d = i.getTypeChecker(),
        _ = !l.fileExists(r),
        h = _
          ? G7(
              r,
              t.externalModuleIndicator
                ? 99
                : t.commonJsModuleIndicator
                  ? 1
                  : void 0,
              i,
              l,
            )
          : C.checkDefined(i.getSourceFile(r)),
        g = cu.createImportAdder(t, e.program, e.preferences, e.host),
        E = cu.createImportAdder(h, e.program, e.preferences, e.host);
      (pde(
        t,
        h,
        X7(t, o.all, d, _ ? void 0 : Sde(h, o.all, d)),
        s,
        o,
        i,
        l,
        u,
        E,
        g,
      ),
        _ && fde(i, s, t.fileName, r, ay(l)));
    }
    function pde(e, t, r, i, o, s, l, u, d, _) {
      const h = s.getTypeChecker(),
        g = ZB(e.statements, Uh),
        E = !TJ(t.fileName, s, l, !!e.commonJsModuleIndicator),
        A = Gp(e, u);
      (hde(r.oldFileImportsFromTargetFile, t.fileName, _, s),
        FXe(e, o.all, r.unusedImportsFromOldFile, _),
        _.writeFixes(i, A),
        WXe(e, o.ranges, i),
        zXe(i, s, l, e, r.movedSymbols, t.fileName, A),
        mde(e, r.targetFileImportsFromOldFile, i, E),
        Ade(
          e,
          r.oldImportsNeededByTargetFile,
          r.targetFileImportsFromOldFile,
          h,
          s,
          d,
        ),
        !_g(t) && g.length && i.insertStatementsInNewFile(t.fileName, g, e),
        d.writeFixes(i, A));
      const R = HXe(e, o.all, Co(r.oldFileImportsFromTargetFile.keys()), E);
      _g(t) && t.statements.length > 0
        ? sYe(i, s, R, t, o)
        : _g(t)
          ? i.insertNodesAtEndOfFile(t, R, !1)
          : i.insertStatementsInNewFile(
              t.fileName,
              d.hasFixes() ? [4, ...R] : R,
              e,
            );
    }
    function fde(e, t, r, i, o) {
      const s = e.getCompilerOptions().configFile;
      if (!s) return;
      const l = ya(Qr(r, "..", i)),
        u = MR(s.fileName, l, o),
        d = s.statements[0] && ni(s.statements[0].expression, Wa),
        _ =
          d &&
          hn(
            d.properties,
            (h) => Cc(h) && ka(h.name) && h.name.text === "files",
          );
      _ &&
        Cd(_.initializer) &&
        t.insertNodeInListAfter(
          s,
          Ba(_.initializer.elements),
          L.createStringLiteral(u),
          _.initializer.elements,
        );
    }
    function WXe(e, t, r) {
      for (const { first: i, afterLast: o } of t)
        r.deleteNodeRangeExcludingEnd(e, i, o);
    }
    function FXe(e, t, r, i) {
      for (const o of e.statements)
        jn(t, o) ||
          ERe(o, (s) => {
            ARe(s, (l) => {
              r.has(l.symbol) && i.removeExistingImport(l);
            });
          });
    }
    function mde(e, t, r, i) {
      const o = tC();
      t.forEach((s, l) => {
        if (l.declarations)
          for (const u of l.declarations) {
            if (!Tde(u)) continue;
            const d = ZXe(u);
            if (!d) continue;
            const _ = DRe(u);
            o(_) && eYe(e, _, d, r, i);
          }
      });
    }
    function zXe(e, t, r, i, o, s, l) {
      const u = t.getTypeChecker();
      for (const d of t.getSourceFiles())
        if (d !== i)
          for (const _ of d.statements)
            ERe(_, (h) => {
              if (u.getSymbolAtLocation(jXe(h)) !== i.symbol) return;
              const g = (P) => {
                const k = Ha(P.parent)
                  ? I7(u, P.parent)
                  : xd(u.getSymbolAtLocation(P), u);
                return !!k && o.has(k);
              };
              qXe(d, h, e, g);
              const E = ab(ci(To(i.fileName, t.getCurrentDirectory())), s);
              if (xR(!t.useCaseSensitiveFileNames())(E, d.fileName) === 0)
                return;
              const A = hy.getModuleSpecifier(
                  t.getCompilerOptions(),
                  d,
                  d.fileName,
                  E,
                  p0(t, r),
                ),
                R = YXe(h, NP(A, l), g);
              R && e.insertNodeAfter(d, _, R);
              const N = BXe(h);
              N && GXe(e, d, u, o, A, N, h, l);
            });
    }
    function BXe(e) {
      switch (e.kind) {
        case 273:
          return e.importClause &&
            e.importClause.namedBindings &&
            e.importClause.namedBindings.kind === 275
            ? e.importClause.namedBindings.name
            : void 0;
        case 272:
          return e.name;
        case 261:
          return ni(e.name, He);
        default:
          return C.assertNever(e, `Unexpected node kind ${e.kind}`);
      }
    }
    function GXe(e, t, r, i, o, s, l, u) {
      const d = LO(o, 99);
      let _ = !1;
      const h = [];
      if (
        (Ys.Core.eachSymbolReferenceInFile(s, r, t, (g) => {
          qr(g.parent) &&
            ((_ = _ || !!r.resolveName(d, g, -1, !0)),
            i.has(r.getSymbolAtLocation(g.parent.name)) && h.push(g));
        }),
        h.length)
      ) {
        const g = _ ? B1(d, t) : d;
        for (const E of h) e.replaceNode(t, E, L.createIdentifier(g));
        e.insertNodeAfter(t, l, VXe(l, d, o, u));
      }
    }
    function VXe(e, t, r, i) {
      const o = L.createIdentifier(t),
        s = NP(r, i);
      switch (e.kind) {
        case 273:
          return L.createImportDeclaration(
            void 0,
            L.createImportClause(void 0, void 0, L.createNamespaceImport(o)),
            s,
            void 0,
          );
        case 272:
          return L.createImportEqualsDeclaration(
            void 0,
            !1,
            o,
            L.createExternalModuleReference(s),
          );
        case 261:
          return L.createVariableDeclaration(o, void 0, void 0, SRe(s));
        default:
          return C.assertNever(e, `Unexpected node kind ${e.kind}`);
      }
    }
    function SRe(e) {
      return L.createCallExpression(L.createIdentifier("require"), void 0, [e]);
    }
    function jXe(e) {
      return e.kind === 273
        ? e.moduleSpecifier
        : e.kind === 272
          ? e.moduleReference.expression
          : e.initializer.arguments[0];
    }
    function ERe(e, t) {
      if (vl(e)) ka(e.moduleSpecifier) && t(e);
      else if (Fc(e))
        uy(e.moduleReference) && ds(e.moduleReference.expression) && t(e);
      else if (ac(e))
        for (const r of e.declarationList.declarations)
          r.initializer && Zu(r.initializer, !0) && t(r);
    }
    function ARe(e, t) {
      var r, i, o, s, l;
      if (e.kind === 273) {
        if (
          ((r = e.importClause) != null && r.name && t(e.importClause),
          ((o = (i = e.importClause) == null ? void 0 : i.namedBindings) == null
            ? void 0
            : o.kind) === 275 && t(e.importClause.namedBindings),
          ((l = (s = e.importClause) == null ? void 0 : s.namedBindings) == null
            ? void 0
            : l.kind) === 276)
        )
          for (const u of e.importClause.namedBindings.elements) t(u);
      } else if (e.kind === 272) t(e);
      else if (e.kind === 261) {
        if (e.name.kind === 80) t(e);
        else if (e.name.kind === 207)
          for (const u of e.name.elements) He(u.name) && t(u);
      }
    }
    function hde(e, t, r, i) {
      for (const [o, s] of e) {
        const l = O7(o, Ga(i.getCompilerOptions())),
          u = o.name === "default" && o.parent ? 1 : 0;
        r.addImportForNonExistentExport(l, t, u, o.flags, s);
      }
    }
    function UXe(e, t, r, i = 2) {
      return L.createVariableStatement(
        void 0,
        L.createVariableDeclarationList(
          [L.createVariableDeclaration(e, void 0, t, r)],
          i,
        ),
      );
    }
    function HXe(e, t, r, i) {
      return Ki(t, (o) => {
        if (
          xRe(o) &&
          !IRe(e, o, i) &&
          bde(o, (s) => {
            var l;
            return r.includes(
              C.checkDefined((l = ni(s, ah)) == null ? void 0 : l.symbol),
            );
          })
        ) {
          const s = JXe(_s(o), i);
          if (s) return s;
        }
        return _s(o);
      });
    }
    function IRe(e, t, r, i) {
      var o;
      return r
        ? (!od(t) && di(t, 32)) ||
            !!(
              i &&
              e.symbol &&
              (o = e.symbol.exports) != null &&
              o.has(i.escapedText)
            )
        : !!e.symbol &&
            !!e.symbol.exports &&
            _de(t).some((s) => e.symbol.exports.has(Cl(s)));
    }
    function qXe(e, t, r, i) {
      if (t.kind === 273 && t.importClause) {
        const { name: o, namedBindings: s } = t.importClause;
        if (
          (!o || i(o)) &&
          (!s ||
            (s.kind === 276 &&
              s.elements.length !== 0 &&
              s.elements.every((l) => i(l.name))))
        )
          return r.delete(e, t);
      }
      ARe(t, (o) => {
        o.name && He(o.name) && i(o.name) && r.delete(e, o);
      });
    }
    function xRe(e) {
      return (
        C.assert(Yi(e.parent), "Node parent should be a SourceFile"),
        MRe(e) || ac(e)
      );
    }
    function JXe(e, t) {
      return t ? [KXe(e)] : XXe(e);
    }
    function KXe(e) {
      const t = Tm(e) ? so([L.createModifier(95)], mS(e)) : void 0;
      switch (e.kind) {
        case 263:
          return L.updateFunctionDeclaration(
            e,
            t,
            e.asteriskToken,
            e.name,
            e.typeParameters,
            e.parameters,
            e.type,
            e.body,
          );
        case 264:
          const r = qS(e) ? lb(e) : void 0;
          return L.updateClassDeclaration(
            e,
            so(r, t),
            e.name,
            e.typeParameters,
            e.heritageClauses,
            e.members,
          );
        case 244:
          return L.updateVariableStatement(e, t, e.declarationList);
        case 268:
          return L.updateModuleDeclaration(e, t, e.name, e.body);
        case 267:
          return L.updateEnumDeclaration(e, t, e.name, e.members);
        case 266:
          return L.updateTypeAliasDeclaration(
            e,
            t,
            e.name,
            e.typeParameters,
            e.type,
          );
        case 265:
          return L.updateInterfaceDeclaration(
            e,
            t,
            e.name,
            e.typeParameters,
            e.heritageClauses,
            e.members,
          );
        case 272:
          return L.updateImportEqualsDeclaration(
            e,
            t,
            e.isTypeOnly,
            e.name,
            e.moduleReference,
          );
        case 245:
          return C.fail();
        default:
          return C.assertNever(e, `Unexpected declaration kind ${e.kind}`);
      }
    }
    function XXe(e) {
      return [e, ..._de(e).map(RRe)];
    }
    function RRe(e) {
      return L.createExpressionStatement(
        L.createBinaryExpression(
          L.createPropertyAccessExpression(
            L.createIdentifier("exports"),
            L.createIdentifier(e),
          ),
          64,
          L.createIdentifier(e),
        ),
      );
    }
    function _de(e) {
      switch (e.kind) {
        case 263:
        case 264:
          return [e.name.text];
        case 244:
          return Ui(e.declarationList.declarations, (t) =>
            He(t.name) ? t.name.text : void 0,
          );
        case 268:
        case 267:
        case 266:
        case 265:
        case 272:
          return ae;
        case 245:
          return C.fail("Can't export an ExpressionStatement");
        default:
          return C.assertNever(e, `Unexpected decl kind ${e.kind}`);
      }
    }
    function YXe(e, t, r) {
      switch (e.kind) {
        case 273: {
          const i = e.importClause;
          if (!i) return;
          const o = i.name && r(i.name) ? i.name : void 0,
            s = i.namedBindings && $Xe(i.namedBindings, r);
          return o || s
            ? L.createImportDeclaration(
                void 0,
                L.createImportClause(i.phaseModifier, o, s),
                _s(t),
                void 0,
              )
            : void 0;
        }
        case 272:
          return r(e.name) ? e : void 0;
        case 261: {
          const i = QXe(e.name, r);
          return i ? UXe(i, e.type, SRe(t), e.parent.flags) : void 0;
        }
        default:
          return C.assertNever(e, `Unexpected import kind ${e.kind}`);
      }
    }
    function $Xe(e, t) {
      if (e.kind === 275) return t(e.name) ? e : void 0;
      {
        const r = e.elements.filter((i) => t(i.name));
        return r.length ? L.createNamedImports(r) : void 0;
      }
    }
    function QXe(e, t) {
      switch (e.kind) {
        case 80:
          return t(e) ? e : void 0;
        case 208:
          return e;
        case 207: {
          const r = e.elements.filter(
            (i) => i.propertyName || !He(i.name) || t(i.name),
          );
          return r.length ? L.createObjectBindingPattern(r) : void 0;
        }
      }
    }
    function ZXe(e) {
      return od(e) ? ni(e.expression.left.name, He) : ni(e.name, He);
    }
    function DRe(e) {
      switch (e.kind) {
        case 261:
          return e.parent.parent;
        case 209:
          return DRe(ma(e.parent.parent, (t) => yi(t) || Ha(t)));
        default:
          return e;
      }
    }
    function eYe(e, t, r, i, o) {
      if (!IRe(e, t, o, r))
        if (o) od(t) || i.insertExportModifier(e, t);
        else {
          const s = _de(t);
          s.length !== 0 && i.insertNodesAfter(e, t, s.map(RRe));
        }
    }
    function gde(e, t, r, i) {
      const o = t.getTypeChecker();
      if (i) {
        const s = X7(e, i.all, o),
          l = ci(e.fileName),
          u = AM(e.fileName);
        return (
          Qr(
            l,
            iYe(oYe(s.oldFileImportsFromTargetFile, s.movedSymbols), u, l, r),
          ) + u
        );
      }
      return "";
    }
    function tYe(e) {
      const { file: t } = e,
        r = v7(mx(e)),
        { statements: i } = t;
      let o = ho(i, (_) => _.end > r.pos);
      if (o === -1) return;
      const s = i[o],
        l = PRe(t, s);
      l && (o = l.start);
      let u = ho(i, (_) => _.end >= r.end, o);
      u !== -1 && r.end <= i[u].getStart() && u--;
      const d = PRe(t, i[u]);
      return (
        d && (u = d.end),
        {
          toMove: i.slice(o, u === -1 ? i.length : u + 1),
          afterLast: u === -1 ? void 0 : i[u + 1],
        }
      );
    }
    function zO(e) {
      const t = tYe(e);
      if (t === void 0) return;
      const r = [],
        i = [],
        { toMove: o, afterLast: s } = t;
      return (
        wB(o, nYe, (l, u) => {
          for (let d = l; d < u; d++) r.push(o[d]);
          i.push({ first: o[l], afterLast: s });
        }),
        r.length === 0 ? void 0 : { all: r, ranges: i }
      );
    }
    function yde(e) {
      return hn(e, (t) => !!(t.transformFlags & 2));
    }
    function nYe(e) {
      return !rYe(e) && !Uh(e);
    }
    function rYe(e) {
      switch (e.kind) {
        case 273:
          return !0;
        case 272:
          return !di(e, 32);
        case 244:
          return e.declarationList.declarations.every(
            (t) => !!t.initializer && Zu(t.initializer, !0),
          );
        default:
          return !1;
      }
    }
    function X7(e, t, r, i = new Set(), o) {
      var s;
      const l = new Set(),
        u = new Map(),
        d = new Map(),
        _ = E(yde(t));
      _ &&
        u.set(_, [
          !1,
          ni(
            (s = _.declarations) == null ? void 0 : s[0],
            (A) => Eu(A) || Vm(A) || Ig(A) || Fc(A) || Ha(A) || yi(A),
          ),
        ]);
      for (const A of t)
        bde(A, (R) => {
          l.add(
            C.checkDefined(
              od(R) ? r.getSymbolAtLocation(R.expression.left) : R.symbol,
              "Need a symbol here",
            ),
          );
        });
      const h = new Set();
      for (const A of t)
        vde(A, r, o, (R, N) => {
          if (!yt(R.declarations)) return;
          if (i.has(xd(R, r))) {
            h.add(R);
            return;
          }
          const P = hn(R.declarations, XJ);
          if (P) {
            const k = u.get(R);
            u.set(R, [
              (k === void 0 || k) && N,
              ni(P, (W) => Eu(W) || Vm(W) || Ig(W) || Fc(W) || Ha(W) || yi(W)),
            ]);
          } else
            !l.has(R) &&
              Vn(R.declarations, (k) => Tde(k) && aYe(k) === e) &&
              d.set(R, N);
        });
      for (const A of u.keys()) h.add(A);
      const g = new Map();
      for (const A of e.statements)
        jn(t, A) ||
          (_ && A.transformFlags & 2 && h.delete(_),
          vde(A, r, o, (R, N) => {
            (l.has(R) && g.set(R, N), h.delete(R));
          }));
      return {
        movedSymbols: l,
        targetFileImportsFromOldFile: d,
        oldFileImportsFromTargetFile: g,
        oldImportsNeededByTargetFile: u,
        unusedImportsFromOldFile: h,
      };
      function E(A) {
        if (A === void 0) return;
        const R = r.getJsxNamespace(A),
          N = r.resolveName(R, A, 1920, !0);
        return N && yt(N.declarations, XJ) ? N : void 0;
      }
    }
    function iYe(e, t, r, i) {
      let o = e;
      for (let s = 1; ; s++) {
        const l = Qr(r, o + t);
        if (!i.fileExists(l)) return o;
        o = `${e}.${s}`;
      }
    }
    function oYe(e, t) {
      return fg(e, $q) || fg(t, $q) || "newFile";
    }
    function vde(e, t, r, i) {
      e.forEachChild(function o(s) {
        if (He(s) && !L_(s)) {
          if (r && !tp(r, s)) return;
          const l = t.getSymbolAtLocation(s);
          l && i(l, HT(s));
        } else s.forEachChild(o);
      });
    }
    function bde(e, t) {
      switch (e.kind) {
        case 263:
        case 264:
        case 268:
        case 267:
        case 266:
        case 265:
        case 272:
          return t(e);
        case 244:
          return Hn(e.declarationList.declarations, (r) => NRe(r.name, t));
        case 245: {
          const { expression: r } = e;
          return Nr(r) && oc(r) === 1 ? t(e) : void 0;
        }
      }
    }
    function XJ(e) {
      switch (e.kind) {
        case 272:
        case 277:
        case 274:
        case 275:
          return !0;
        case 261:
          return CRe(e);
        case 209:
          return yi(e.parent.parent) && CRe(e.parent.parent);
        default:
          return !1;
      }
    }
    function CRe(e) {
      return (
        Yi(e.parent.parent.parent) && !!e.initializer && Zu(e.initializer, !0)
      );
    }
    function Tde(e) {
      return (MRe(e) && Yi(e.parent)) || (yi(e) && Yi(e.parent.parent.parent));
    }
    function aYe(e) {
      return yi(e) ? e.parent.parent.parent : e.parent;
    }
    function NRe(e, t) {
      switch (e.kind) {
        case 80:
          return t(ma(e.parent, (r) => yi(r) || Ha(r)));
        case 208:
        case 207:
          return Hn(e.elements, (r) => (Jc(r) ? void 0 : NRe(r.name, t)));
        default:
          return C.assertNever(e, `Unexpected name kind ${e.kind}`);
      }
    }
    function MRe(e) {
      switch (e.kind) {
        case 263:
        case 264:
        case 268:
        case 267:
        case 266:
        case 265:
        case 272:
          return !0;
        default:
          return !1;
      }
    }
    function sYe(e, t, r, i, o) {
      var s;
      const l = new Set(),
        u = (s = i.symbol) == null ? void 0 : s.exports;
      if (u) {
        const _ = t.getTypeChecker(),
          h = new Map();
        for (const g of o.all)
          xRe(g) &&
            di(g, 32) &&
            bde(g, (E) => {
              var A;
              const R = ah(E)
                  ? (A = u.get(E.symbol.escapedName)) == null
                    ? void 0
                    : A.declarations
                  : void 0,
                N = Hn(R, (P) =>
                  pc(P) ? P : ou(P) ? ni(P.parent.parent, pc) : void 0,
                );
              N &&
                N.moduleSpecifier &&
                h.set(N, (h.get(N) || new Set()).add(E));
            });
        for (const [g, E] of Co(h))
          if (
            g.exportClause &&
            Jf(g.exportClause) &&
            et(g.exportClause.elements)
          ) {
            const A = g.exportClause.elements,
              R = Un(
                A,
                (N) =>
                  hn(
                    xd(N.symbol, _).declarations,
                    (P) => Tde(P) && E.has(P),
                  ) === void 0,
              );
            if (et(R) === 0) {
              (e.deleteNode(i, g), l.add(g));
              continue;
            }
            et(R) < et(A) &&
              e.replaceNode(
                i,
                g,
                L.updateExportDeclaration(
                  g,
                  g.modifiers,
                  g.isTypeOnly,
                  L.updateNamedExports(
                    g.exportClause,
                    L.createNodeArray(R, A.hasTrailingComma),
                  ),
                  g.moduleSpecifier,
                  g.attributes,
                ),
              );
          }
      }
      const d = ga(
        i.statements,
        (_) => pc(_) && !!_.moduleSpecifier && !l.has(_),
      );
      d
        ? e.insertNodesBefore(i, d, r, !0)
        : e.insertNodesAfter(i, i.statements[i.statements.length - 1], r);
    }
    function PRe(e, t) {
      if (Ms(t)) {
        const r = t.symbol.declarations;
        if (r === void 0 || et(r) <= 1 || !jn(r, t)) return;
        const i = r[0],
          o = r[et(r) - 1],
          s = Ui(r, (d) => (Wn(d) === e && Vi(d) ? d : void 0)),
          l = ho(e.statements, (d) => d.end >= o.end),
          u = ho(e.statements, (d) => d.end >= i.end);
        return { toMove: s, start: u, end: l };
      }
    }
    function Sde(e, t, r) {
      const i = new Set();
      for (const o of e.imports) {
        const s = eM(o);
        if (
          vl(s) &&
          s.importClause &&
          s.importClause.namedBindings &&
          n_(s.importClause.namedBindings)
        )
          for (const l of s.importClause.namedBindings.elements) {
            const u = r.getSymbolAtLocation(l.propertyName || l.name);
            u && i.add(xd(u, r));
          }
        if (pk(s.parent) && ff(s.parent.name))
          for (const l of s.parent.name.elements) {
            const u = r.getSymbolAtLocation(l.propertyName || l.name);
            u && i.add(xd(u, r));
          }
      }
      for (const o of t)
        vde(o, r, void 0, (s) => {
          const l = xd(s, r);
          l.valueDeclaration &&
            Wn(l.valueDeclaration).path === e.path &&
            i.add(l);
        });
      return i;
    }
    function gy(e) {
      return e.error !== void 0;
    }
    function h0(e, t) {
      return t ? e.substr(0, t.length) === t : !0;
    }
    function Ede(e, t, r, i) {
      return qr(e) &&
        !ui(t) &&
        !r.resolveName(e.name.text, e, 111551, !1) &&
        !eo(e.name) &&
        !JE(e.name)
        ? e.name.text
        : B1(ui(t) ? "newProperty" : "newLocal", i);
    }
    function Ade(e, t, r, i, o, s) {
      (t.forEach(([l, u], d) => {
        var _;
        const h = xd(d, i);
        i.isUnknownSymbol(h)
          ? s.addVerbatimImport(
              C.checkDefined(
                u ?? Dn((_ = d.declarations) == null ? void 0 : _[0], Bte),
              ),
            )
          : h.parent === void 0
            ? (C.assert(
                u !== void 0,
                "expected module symbol to have a declaration",
              ),
              s.addImportForModuleSymbol(d, l, u))
            : s.addImportFromExportedSymbol(h, l, u);
      }),
        hde(r, e.fileName, s, o));
    }
    var Y7 = "Inline variable",
      Ide = Ho(f.Inline_variable),
      xde = { name: Y7, description: Ide, kind: "refactor.inline.variable" };
    Dg(Y7, {
      kinds: [xde.kind],
      getAvailableActions(e) {
        const {
            file: t,
            program: r,
            preferences: i,
            startPosition: o,
            triggerReason: s,
          } = e,
          l = LRe(t, o, s === "invoked", r);
        return l
          ? gx.isRefactorErrorInfo(l)
            ? i.provideRefactorNotApplicableReason
              ? [
                  {
                    name: Y7,
                    description: Ide,
                    actions: [{ ...xde, notApplicableReason: l.error }],
                  },
                ]
              : ae
            : [{ name: Y7, description: Ide, actions: [xde] }]
          : ae;
      },
      getEditsForAction(e, t) {
        C.assert(t === Y7, "Unexpected refactor invoked");
        const { file: r, program: i, startPosition: o } = e,
          s = LRe(r, o, !0, i);
        if (!s || gx.isRefactorErrorInfo(s)) return;
        const { references: l, declaration: u, replacement: d } = s;
        return {
          edits: Rr.ChangeTracker.with(e, (h) => {
            for (const g of l) {
              const E = ka(d) && He(g) && zm(g.parent);
              E && AD(E) && !XT(E.parent.parent)
                ? cYe(h, r, E, d)
                : h.replaceNode(r, g, lYe(g, d));
            }
            h.delete(r, u);
          }),
        };
      },
    });
    function LRe(e, t, r, i) {
      var o, s;
      const l = i.getTypeChecker(),
        u = ip(e, t),
        d = u.parent;
      if (He(u)) {
        if (Vk(d) && qN(d) && He(d.name)) {
          if (
            ((o = l.getMergedSymbol(d.symbol).declarations) == null
              ? void 0
              : o.length) !== 1
          )
            return {
              error: Ho(
                f.Variables_with_multiple_declarations_cannot_be_inlined,
              ),
            };
          if (kRe(d)) return;
          const _ = wRe(d, l, e);
          return (
            _ && { references: _, declaration: d, replacement: d.initializer }
          );
        }
        if (r) {
          let _ = l.resolveName(u.text, u, 111551, !1);
          if (
            ((_ = _ && l.getMergedSymbol(_)),
            ((s = _?.declarations) == null ? void 0 : s.length) !== 1)
          )
            return {
              error: Ho(
                f.Variables_with_multiple_declarations_cannot_be_inlined,
              ),
            };
          const h = _.declarations[0];
          if (!Vk(h) || !qN(h) || !He(h.name) || kRe(h)) return;
          const g = wRe(h, l, e);
          return (
            g && { references: g, declaration: h, replacement: h.initializer }
          );
        }
        return { error: Ho(f.Could_not_find_variable_to_inline) };
      }
    }
    function kRe(e) {
      const t = ma(e.parent.parent, ac);
      return yt(t.modifiers, VI);
    }
    function wRe(e, t, r) {
      const i = [],
        o = Ys.Core.eachSymbolReferenceInFile(e.name, t, r, (s) => {
          if (
            (Ys.isWriteAccessForReference(s) && !Ud(s.parent)) ||
            ou(s.parent) ||
            ll(s.parent) ||
            FS(s.parent) ||
            N2(e, s.pos)
          )
            return !0;
          i.push(s);
        });
      return i.length === 0 || o ? void 0 : i;
    }
    function lYe(e, t) {
      t = _s(t);
      const { parent: r } = e;
      return (St(r) && (lM(t) < lM(r) || D7(r))) ||
        (Yo(t) && (gS(r) || qr(r))) ||
        (qr(r) && (np(t) || Wa(t)))
        ? L.createParenthesizedExpression(t)
        : He(e) && Ud(r)
          ? L.createPropertyAssignment(e, t)
          : t;
    }
    function cYe(e, t, r, i) {
      const o = r.parent,
        s = o.templateSpans.indexOf(r),
        l = s === 0 ? o.head : o.templateSpans[s - 1];
      e.replaceRangeWithText(
        t,
        { pos: l.getEnd() - 2, end: r.literal.getStart() + 1 },
        i.text.replace(/\\/g, "\\\\").replace(/`/g, "\\`"),
      );
    }
    var $7 = "Move to a new file",
      Rde = Ho(f.Move_to_a_new_file),
      Dde = { name: $7, description: Rde, kind: "refactor.move.newFile" };
    Dg($7, {
      kinds: [Dde.kind],
      getAvailableActions: function (t) {
        const r = zO(t),
          i = t.file;
        if (t.triggerReason === "implicit" && t.endPosition !== void 0) {
          const o = Dn(Fi(i, t.startPosition), hx),
            s = Dn(Fi(i, t.endPosition), hx);
          if (o && !Yi(o) && s && !Yi(s)) return ae;
        }
        if (t.preferences.allowTextChangesInNewFiles && r) {
          const o = t.file,
            s = {
              start: {
                line: ca(o, r.all[0].getStart(o)).line,
                offset: ca(o, r.all[0].getStart(o)).character,
              },
              end: {
                line: ca(o, Ba(r.all).end).line,
                offset: ca(o, Ba(r.all).end).character,
              },
            };
          return [
            { name: $7, description: Rde, actions: [{ ...Dde, range: s }] },
          ];
        }
        return t.preferences.provideRefactorNotApplicableReason
          ? [
              {
                name: $7,
                description: Rde,
                actions: [
                  {
                    ...Dde,
                    notApplicableReason: Ho(
                      f.Selection_is_not_a_valid_statement_or_statements,
                    ),
                  },
                ],
              },
            ]
          : ae;
      },
      getEditsForAction: function (t, r) {
        C.assert(r === $7, "Wrong refactor invoked");
        const i = C.checkDefined(zO(t));
        return {
          edits: Rr.ChangeTracker.with(t, (s) =>
            dYe(t.file, t.program, i, s, t.host, t, t.preferences),
          ),
          renameFilename: void 0,
          renameLocation: void 0,
        };
      },
    });
    function dYe(e, t, r, i, o, s, l) {
      const u = t.getTypeChecker(),
        d = X7(e, r.all, u),
        _ = gde(e, t, o, r),
        h = G7(
          _,
          e.externalModuleIndicator
            ? 99
            : e.commonJsModuleIndicator
              ? 1
              : void 0,
          t,
          o,
        ),
        g = cu.createImportAdder(e, s.program, s.preferences, s.host),
        E = cu.createImportAdder(h, s.program, s.preferences, s.host);
      (pde(e, h, d, i, r, t, o, l, E, g), fde(t, i, e.fileName, _, ay(o)));
    }
    var uYe = {},
      Cde = "Convert overload list to single signature",
      ORe = Ho(f.Convert_overload_list_to_single_signature),
      WRe = {
        name: Cde,
        description: ORe,
        kind: "refactor.rewrite.function.overloadList",
      };
    Dg(Cde, {
      kinds: [WRe.kind],
      getEditsForAction: fYe,
      getAvailableActions: pYe,
    });
    function pYe(e) {
      const { file: t, startPosition: r, program: i } = e;
      return zRe(t, r, i)
        ? [{ name: Cde, description: ORe, actions: [WRe] }]
        : ae;
    }
    function fYe(e) {
      const { file: t, startPosition: r, program: i } = e,
        o = zRe(t, r, i);
      if (!o) return;
      const s = i.getTypeChecker(),
        l = o[o.length - 1];
      let u = l;
      switch (l.kind) {
        case 174: {
          u = L.updateMethodSignature(
            l,
            l.modifiers,
            l.name,
            l.questionToken,
            l.typeParameters,
            _(o),
            l.type,
          );
          break;
        }
        case 175: {
          u = L.updateMethodDeclaration(
            l,
            l.modifiers,
            l.asteriskToken,
            l.name,
            l.questionToken,
            l.typeParameters,
            _(o),
            l.type,
            l.body,
          );
          break;
        }
        case 180: {
          u = L.updateCallSignature(l, l.typeParameters, _(o), l.type);
          break;
        }
        case 177: {
          u = L.updateConstructorDeclaration(l, l.modifiers, _(o), l.body);
          break;
        }
        case 181: {
          u = L.updateConstructSignature(l, l.typeParameters, _(o), l.type);
          break;
        }
        case 263: {
          u = L.updateFunctionDeclaration(
            l,
            l.modifiers,
            l.asteriskToken,
            l.name,
            l.typeParameters,
            _(o),
            l.type,
            l.body,
          );
          break;
        }
        default:
          return C.failBadSyntaxKind(
            l,
            "Unhandled signature kind in overload list conversion refactoring",
          );
      }
      if (u === l) return;
      return {
        renameFilename: void 0,
        renameLocation: void 0,
        edits: Rr.ChangeTracker.with(e, (E) => {
          E.replaceNodeRange(t, o[0], o[o.length - 1], u);
        }),
      };
      function _(E) {
        const A = E[E.length - 1];
        return (
          Ms(A) && A.body && (E = E.slice(0, E.length - 1)),
          L.createNodeArray([
            L.createParameterDeclaration(
              void 0,
              L.createToken(26),
              "args",
              void 0,
              L.createUnionTypeNode(Vt(E, h)),
            ),
          ])
        );
      }
      function h(E) {
        const A = Vt(E.parameters, g);
        return Cr(L.createTupleTypeNode(A), yt(A, (R) => !!et(gD(R))) ? 0 : 1);
      }
      function g(E) {
        C.assert(He(E.name));
        const A = vt(
            L.createNamedTupleMember(
              E.dotDotDotToken,
              E.name,
              E.questionToken,
              E.type || L.createKeywordTypeNode(133),
            ),
            E,
          ),
          R = E.symbol && E.symbol.getDocumentationComment(s);
        if (R) {
          const N = VO(R);
          N.length &&
            JT(A, [
              {
                text: `*
${N.split(
  `
`,
).map((P) => ` * ${P}`).join(`
`)}
 `,
                kind: 3,
                pos: -1,
                end: -1,
                hasTrailingNewLine: !0,
                hasLeadingNewline: !0,
              },
            ]);
        }
        return A;
      }
    }
    function FRe(e) {
      switch (e.kind) {
        case 174:
        case 175:
        case 180:
        case 177:
        case 181:
        case 263:
          return !0;
      }
      return !1;
    }
    function zRe(e, t, r) {
      const i = Fi(e, t),
        o = Dn(i, FRe);
      if (!o || (Ms(o) && o.body && ZD(o.body, t))) return;
      const s = r.getTypeChecker(),
        l = o.symbol;
      if (!l) return;
      const u = l.declarations;
      if (et(u) <= 1 || !Vn(u, (E) => Wn(E) === e) || !FRe(u[0])) return;
      const d = u[0].kind;
      if (!Vn(u, (E) => E.kind === d)) return;
      const _ = u;
      if (
        yt(
          _,
          (E) =>
            !!E.typeParameters ||
            yt(E.parameters, (A) => !!A.modifiers || !He(A.name)),
        )
      )
        return;
      const h = Ui(_, (E) => s.getSignatureFromDeclaration(E));
      if (et(h) !== et(u)) return;
      const g = s.getReturnTypeOfSignature(h[0]);
      if (Vn(h, (E) => s.getReturnTypeOfSignature(E) === g)) return _;
    }
    var Nde = "Add or remove braces in an arrow function",
      BRe = Ho(f.Add_or_remove_braces_in_an_arrow_function),
      YJ = {
        name: "Add braces to arrow function",
        description: Ho(f.Add_braces_to_arrow_function),
        kind: "refactor.rewrite.arrow.braces.add",
      },
      Q7 = {
        name: "Remove braces from arrow function",
        description: Ho(f.Remove_braces_from_arrow_function),
        kind: "refactor.rewrite.arrow.braces.remove",
      };
    Dg(Nde, {
      kinds: [Q7.kind],
      getEditsForAction: hYe,
      getAvailableActions: mYe,
    });
    function mYe(e) {
      const { file: t, startPosition: r, triggerReason: i } = e,
        o = GRe(t, r, i === "invoked");
      return o
        ? gy(o)
          ? e.preferences.provideRefactorNotApplicableReason
            ? [
                {
                  name: Nde,
                  description: BRe,
                  actions: [
                    { ...YJ, notApplicableReason: o.error },
                    { ...Q7, notApplicableReason: o.error },
                  ],
                },
              ]
            : ae
          : [{ name: Nde, description: BRe, actions: [o.addBraces ? YJ : Q7] }]
        : ae;
    }
    function hYe(e, t) {
      const { file: r, startPosition: i } = e,
        o = GRe(r, i);
      C.assert(o && !gy(o), "Expected applicable refactor info");
      const { expression: s, returnStatement: l, func: u } = o;
      let d;
      if (t === YJ.name) {
        const h = L.createReturnStatement(s);
        ((d = L.createBlock([h], !0)), oC(s, h, r, 3, !0));
      } else if (t === Q7.name && l) {
        const h = s || L.createVoidZero();
        ((d = D7(h) ? L.createParenthesizedExpression(h) : h),
          CO(l, d, r, 3, !1),
          oC(l, d, r, 3, !1),
          kP(l, d, r, 3, !1));
      } else C.fail("invalid action");
      return {
        renameFilename: void 0,
        renameLocation: void 0,
        edits: Rr.ChangeTracker.with(e, (h) => {
          h.replaceNode(r, u.body, d);
        }),
      };
    }
    function GRe(e, t, r = !0, i) {
      const o = Fi(e, t),
        s = df(o);
      if (!s)
        return { error: Ho(f.Could_not_find_a_containing_arrow_function) };
      if (!Xs(s))
        return { error: Ho(f.Containing_function_is_not_an_arrow_function) };
      if (!(!tp(s, o) || (tp(s.body, o) && !r))) {
        if (h0(YJ.kind, i) && St(s.body))
          return { func: s, addBraces: !0, expression: s.body };
        if (h0(Q7.kind, i) && ea(s.body) && s.body.statements.length === 1) {
          const l = $a(s.body.statements);
          if (tf(l)) {
            const u =
              l.expression && Wa(uD(l.expression, !1))
                ? L.createParenthesizedExpression(l.expression)
                : l.expression;
            return {
              func: s,
              addBraces: !1,
              expression: u,
              returnStatement: l,
            };
          }
        }
      }
    }
    var _Ye = {},
      VRe = "Convert arrow function or function expression",
      gYe = Ho(f.Convert_arrow_function_or_function_expression),
      Z7 = {
        name: "Convert to anonymous function",
        description: Ho(f.Convert_to_anonymous_function),
        kind: "refactor.rewrite.function.anonymous",
      },
      ez = {
        name: "Convert to named function",
        description: Ho(f.Convert_to_named_function),
        kind: "refactor.rewrite.function.named",
      },
      tz = {
        name: "Convert to arrow function",
        description: Ho(f.Convert_to_arrow_function),
        kind: "refactor.rewrite.function.arrow",
      };
    Dg(VRe, {
      kinds: [Z7.kind, ez.kind, tz.kind],
      getEditsForAction: vYe,
      getAvailableActions: yYe,
    });
    function yYe(e) {
      const { file: t, startPosition: r, program: i, kind: o } = e,
        s = URe(t, r, i);
      if (!s) return ae;
      const { selectedVariableDeclaration: l, func: u } = s,
        d = [],
        _ = [];
      if (h0(ez.kind, o)) {
        const h =
          l || (Xs(u) && yi(u.parent))
            ? void 0
            : Ho(f.Could_not_convert_to_named_function);
        h ? _.push({ ...ez, notApplicableReason: h }) : d.push(ez);
      }
      if (h0(Z7.kind, o)) {
        const h =
          !l && Xs(u) ? void 0 : Ho(f.Could_not_convert_to_anonymous_function);
        h ? _.push({ ...Z7, notApplicableReason: h }) : d.push(Z7);
      }
      if (h0(tz.kind, o)) {
        const h = Us(u) ? void 0 : Ho(f.Could_not_convert_to_arrow_function);
        h ? _.push({ ...tz, notApplicableReason: h }) : d.push(tz);
      }
      return [
        {
          name: VRe,
          description: gYe,
          actions:
            d.length === 0 && e.preferences.provideRefactorNotApplicableReason
              ? _
              : d,
        },
      ];
    }
    function vYe(e, t) {
      const { file: r, startPosition: i, program: o } = e,
        s = URe(r, i, o);
      if (!s) return;
      const { func: l } = s,
        u = [];
      switch (t) {
        case Z7.name:
          u.push(...EYe(e, l));
          break;
        case ez.name:
          const d = SYe(l);
          if (!d) return;
          u.push(...AYe(e, l, d));
          break;
        case tz.name:
          if (!Us(l)) return;
          u.push(...IYe(e, l));
          break;
        default:
          return C.fail("invalid action");
      }
      return { renameFilename: void 0, renameLocation: void 0, edits: u };
    }
    function jRe(e) {
      let t = !1;
      return (
        e.forEachChild(function r(i) {
          if (QD(i)) {
            t = !0;
            return;
          }
          !ui(i) && !Zl(i) && !Us(i) && Jo(i, r);
        }),
        t
      );
    }
    function URe(e, t, r) {
      const i = Fi(e, t),
        o = r.getTypeChecker(),
        s = TYe(e, o, i.parent);
      if (s && !jRe(s.body) && !o.containsArgumentsReference(s))
        return { selectedVariableDeclaration: !0, func: s };
      const l = df(i);
      if (
        l &&
        (Us(l) || Xs(l)) &&
        !tp(l.body, i) &&
        !jRe(l.body) &&
        !o.containsArgumentsReference(l)
      )
        return Us(l) && qRe(e, o, l)
          ? void 0
          : { selectedVariableDeclaration: !1, func: l };
    }
    function bYe(e) {
      return yi(e) || (_d(e) && e.declarations.length === 1);
    }
    function TYe(e, t, r) {
      if (!bYe(r)) return;
      const o = (yi(r) ? r : $a(r.declarations)).initializer;
      if (o && (Xs(o) || (Us(o) && !qRe(e, t, o)))) return o;
    }
    function HRe(e) {
      if (St(e)) {
        const t = L.createReturnStatement(e),
          r = e.getSourceFile();
        return (
          vt(t, e),
          Op(t),
          CO(e, t, r, void 0, !0),
          L.createBlock([t], !0)
        );
      } else return e;
    }
    function SYe(e) {
      const t = e.parent;
      if (!yi(t) || !qN(t)) return;
      const r = t.parent,
        i = r.parent;
      if (!(!_d(r) || !ac(i) || !He(t.name)))
        return {
          variableDeclaration: t,
          variableDeclarationList: r,
          statement: i,
          name: t.name,
        };
    }
    function EYe(e, t) {
      const { file: r } = e,
        i = HRe(t.body),
        o = L.createFunctionExpression(
          t.modifiers,
          t.asteriskToken,
          void 0,
          t.typeParameters,
          t.parameters,
          t.type,
          i,
        );
      return Rr.ChangeTracker.with(e, (s) => s.replaceNode(r, t, o));
    }
    function AYe(e, t, r) {
      const { file: i } = e,
        o = HRe(t.body),
        {
          variableDeclaration: s,
          variableDeclarationList: l,
          statement: u,
          name: d,
        } = r;
      aj(u);
      const _ = (PT(s) & 32) | Gd(t),
        h = L.createModifiersFromModifierFlags(_),
        g = L.createFunctionDeclaration(
          et(h) ? h : void 0,
          t.asteriskToken,
          d,
          t.typeParameters,
          t.parameters,
          t.type,
          o,
        );
      return l.declarations.length === 1
        ? Rr.ChangeTracker.with(e, (E) => E.replaceNode(i, u, g))
        : Rr.ChangeTracker.with(e, (E) => {
            (E.delete(i, s), E.insertNodeAfter(i, u, g));
          });
    }
    function IYe(e, t) {
      const { file: r } = e,
        o = t.body.statements[0];
      let s;
      xYe(t.body, o) ? ((s = o.expression), Op(s), z1(o, s)) : (s = t.body);
      const l = L.createArrowFunction(
        t.modifiers,
        t.typeParameters,
        t.parameters,
        t.type,
        L.createToken(39),
        s,
      );
      return Rr.ChangeTracker.with(e, (u) => u.replaceNode(r, t, l));
    }
    function xYe(e, t) {
      return e.statements.length === 1 && tf(t) && !!t.expression;
    }
    function qRe(e, t, r) {
      return !!r.name && Ys.Core.isSymbolReferencedInFile(r.name, t, e);
    }
    var RYe = {},
      $J = "Convert parameters to destructured object",
      DYe = 1,
      JRe = Ho(f.Convert_parameters_to_destructured_object),
      KRe = {
        name: $J,
        description: JRe,
        kind: "refactor.rewrite.parameters.toDestructured",
      };
    Dg($J, {
      kinds: [KRe.kind],
      getEditsForAction: NYe,
      getAvailableActions: CYe,
    });
    function CYe(e) {
      const { file: t, startPosition: r } = e;
      return Pu(t) || !$Re(t, r, e.program.getTypeChecker())
        ? ae
        : [{ name: $J, description: JRe, actions: [KRe] }];
    }
    function NYe(e, t) {
      C.assert(t === $J, "Unexpected action name");
      const {
          file: r,
          startPosition: i,
          program: o,
          cancellationToken: s,
          host: l,
        } = e,
        u = $Re(r, i, o.getTypeChecker());
      if (!u || !s) return;
      const d = PYe(u, o, s);
      return d.valid
        ? {
            renameFilename: void 0,
            renameLocation: void 0,
            edits: Rr.ChangeTracker.with(e, (h) => MYe(r, o, l, h, u, d)),
          }
        : { edits: [] };
    }
    function MYe(e, t, r, i, o, s) {
      const l = s.signature,
        u = Vt(tDe(o, t, r), (h) => _s(h));
      if (l) {
        const h = Vt(tDe(l, t, r), (g) => _s(g));
        _(l, h);
      }
      _(o, u);
      const d = fN(s.functionCalls, (h, g) => js(h.pos, g.pos));
      for (const h of d)
        if (h.arguments && h.arguments.length) {
          const g = _s(VYe(o, h.arguments), !0);
          i.replaceNodeRange(Wn(h), $a(h.arguments), Ba(h.arguments), g, {
            leadingTriviaOption: Rr.LeadingTriviaOption.IncludeAll,
            trailingTriviaOption: Rr.TrailingTriviaOption.Include,
          });
        }
      function _(h, g) {
        i.replaceNodeRangeWithNodes(e, $a(h.parameters), Ba(h.parameters), g, {
          joiner: ", ",
          indentation: 0,
          leadingTriviaOption: Rr.LeadingTriviaOption.IncludeAll,
          trailingTriviaOption: Rr.TrailingTriviaOption.Include,
        });
      }
    }
    function PYe(e, t, r) {
      const i = UYe(e),
        o = Ml(e) ? jYe(e) : [],
        s = cS([...i, ...o], nb),
        l = t.getTypeChecker(),
        u = Ki(s, (g) =>
          Ys.getReferenceEntriesForNode(-1, g, t, t.getSourceFiles(), r),
        ),
        d = _(u);
      return (Vn(d.declarations, (g) => jn(s, g)) || (d.valid = !1), d);
      function _(g) {
        const E = { accessExpressions: [], typeUsages: [] },
          A = {
            functionCalls: [],
            declarations: [],
            classReferences: E,
            valid: !0,
          },
          R = Vt(i, h),
          N = Vt(o, h),
          P = Ml(e),
          k = Vt(i, (W) => Mde(W, l));
        for (const W of g) {
          if (W.kind === Ys.EntryKind.Span) {
            A.valid = !1;
            continue;
          }
          if (jn(k, h(W.node))) {
            if (OYe(W.node.parent)) {
              A.signature = W.node.parent;
              continue;
            }
            const G = YRe(W);
            if (G) {
              A.functionCalls.push(G);
              continue;
            }
          }
          const O = Mde(W.node, l);
          if (O && jn(k, O)) {
            const G = Pde(W);
            if (G) {
              A.declarations.push(G);
              continue;
            }
          }
          if (jn(R, h(W.node)) || IP(W.node)) {
            if (XRe(W)) continue;
            const j = Pde(W);
            if (j) {
              A.declarations.push(j);
              continue;
            }
            const J = YRe(W);
            if (J) {
              A.functionCalls.push(J);
              continue;
            }
          }
          if (P && jn(N, h(W.node))) {
            if (XRe(W)) continue;
            const j = Pde(W);
            if (j) {
              A.declarations.push(j);
              continue;
            }
            const J = LYe(W);
            if (J) {
              E.accessExpressions.push(J);
              continue;
            }
            if (Dc(e.parent)) {
              const Z = kYe(W);
              if (Z) {
                E.typeUsages.push(Z);
                continue;
              }
            }
          }
          A.valid = !1;
        }
        return A;
      }
      function h(g) {
        const E = l.getSymbolAtLocation(g);
        return E && lJ(E, l);
      }
    }
    function Mde(e, t) {
      const r = jO(e);
      if (r) {
        const i = t.getContextualTypeForObjectLiteralElement(r),
          o = i?.getSymbol();
        if (o && !(Wl(o) & 6)) return o;
      }
    }
    function XRe(e) {
      const t = e.node;
      if (
        Eu(t.parent) ||
        Vm(t.parent) ||
        Fc(t.parent) ||
        Ig(t.parent) ||
        ou(t.parent) ||
        ll(t.parent)
      )
        return t;
    }
    function Pde(e) {
      if (rd(e.node.parent)) return e.node;
    }
    function YRe(e) {
      if (e.node.parent) {
        const t = e.node,
          r = t.parent;
        switch (r.kind) {
          case 214:
          case 215:
            const i = ni(r, Gh);
            if (i && i.expression === t) return i;
            break;
          case 212:
            const o = ni(r, qr);
            if (o && o.parent && o.name === t) {
              const l = ni(o.parent, Gh);
              if (l && l.expression === o) return l;
            }
            break;
          case 213:
            const s = ni(r, Ws);
            if (s && s.parent && s.argumentExpression === t) {
              const l = ni(s.parent, Gh);
              if (l && l.expression === s) return l;
            }
            break;
        }
      }
    }
    function LYe(e) {
      if (e.node.parent) {
        const t = e.node,
          r = t.parent;
        switch (r.kind) {
          case 212:
            const i = ni(r, qr);
            if (i && i.expression === t) return i;
            break;
          case 213:
            const o = ni(r, Ws);
            if (o && o.expression === t) return o;
            break;
        }
      }
    }
    function kYe(e) {
      const t = e.node;
      if (W1(t) === 2 || A6(t.parent)) return t;
    }
    function $Re(e, t, r) {
      const i = eC(e, t),
        o = rne(i);
      if (!wYe(i) && o && WYe(o, r) && tp(o, i) && !(o.body && tp(o.body, i)))
        return o;
    }
    function wYe(e) {
      const t = Dn(e, GR);
      if (t) {
        const r = Dn(t, (i) => !GR(i));
        return !!r && Ms(r);
      }
      return !1;
    }
    function OYe(e) {
      return Gm(e) && (gd(e.parent) || wu(e.parent));
    }
    function WYe(e, t) {
      var r;
      if (!FYe(e.parameters, t)) return !1;
      switch (e.kind) {
        case 263:
          return QRe(e) && nz(e, t);
        case 175:
          if (Wa(e.parent)) {
            const i = Mde(e.name, t);
            return (
              ((r = i?.declarations) == null ? void 0 : r.length) === 1 &&
              nz(e, t)
            );
          }
          return nz(e, t);
        case 177:
          return Dc(e.parent)
            ? QRe(e.parent) && nz(e, t)
            : ZRe(e.parent.parent) && nz(e, t);
        case 219:
        case 220:
          return ZRe(e.parent);
      }
      return !1;
    }
    function nz(e, t) {
      return !!e.body && !t.isImplementationOfOverload(e);
    }
    function QRe(e) {
      return e.name ? !0 : !!nC(e, 90);
    }
    function FYe(e, t) {
      return BYe(e) >= DYe && Vn(e, (r) => zYe(r, t));
    }
    function zYe(e, t) {
      if (C_(e)) {
        const r = t.getTypeAtLocation(e);
        if (!t.isArrayType(r) && !t.isTupleType(r)) return !1;
      }
      return !e.modifiers && He(e.name);
    }
    function ZRe(e) {
      return yi(e) && JR(e) && He(e.name) && !e.type;
    }
    function Lde(e) {
      return e.length > 0 && QD(e[0].name);
    }
    function BYe(e) {
      return Lde(e) ? e.length - 1 : e.length;
    }
    function eDe(e) {
      return (
        Lde(e) && (e = L.createNodeArray(e.slice(1), e.hasTrailingComma)),
        e
      );
    }
    function GYe(e, t) {
      return He(t) && zf(t) === e
        ? L.createShorthandPropertyAssignment(e)
        : L.createPropertyAssignment(e, t);
    }
    function VYe(e, t) {
      const r = eDe(e.parameters),
        i = C_(Ba(r)),
        o = i ? t.slice(0, r.length - 1) : t,
        s = Vt(o, (u, d) => {
          const _ = QJ(r[d]),
            h = GYe(_, u);
          return (Op(h.name), Cc(h) && Op(h.initializer), z1(u, h), h);
        });
      if (i && t.length >= r.length) {
        const u = t.slice(r.length - 1),
          d = L.createPropertyAssignment(
            QJ(Ba(r)),
            L.createArrayLiteralExpression(u),
          );
        s.push(d);
      }
      return L.createObjectLiteralExpression(s, !1);
    }
    function tDe(e, t, r) {
      const i = t.getTypeChecker(),
        o = eDe(e.parameters),
        s = Vt(o, h),
        l = L.createObjectBindingPattern(s),
        u = g(o);
      let d;
      Vn(o, R) && (d = L.createObjectLiteralExpression());
      const _ = L.createParameterDeclaration(void 0, void 0, l, void 0, u, d);
      if (Lde(e.parameters)) {
        const N = e.parameters[0],
          P = L.createParameterDeclaration(
            void 0,
            void 0,
            N.name,
            void 0,
            N.type,
          );
        return (
          Op(P.name),
          z1(N.name, P.name),
          N.type && (Op(P.type), z1(N.type, P.type)),
          L.createNodeArray([P, _])
        );
      }
      return L.createNodeArray([_]);
      function h(N) {
        const P = L.createBindingElement(
          void 0,
          void 0,
          QJ(N),
          C_(N) && R(N) ? L.createArrayLiteralExpression() : N.initializer,
        );
        return (
          Op(P),
          N.initializer && P.initializer && z1(N.initializer, P.initializer),
          P
        );
      }
      function g(N) {
        const P = Vt(N, E);
        return Qh(L.createTypeLiteralNode(P), 1);
      }
      function E(N) {
        let P = N.type;
        !P && (N.initializer || C_(N)) && (P = A(N));
        const k = L.createPropertySignature(
          void 0,
          QJ(N),
          R(N) ? L.createToken(58) : N.questionToken,
          P,
        );
        return (
          Op(k),
          z1(N.name, k.name),
          N.type && k.type && z1(N.type, k.type),
          k
        );
      }
      function A(N) {
        const P = i.getTypeAtLocation(N);
        return OP(P, N, t, r);
      }
      function R(N) {
        if (C_(N)) {
          const P = i.getTypeAtLocation(N);
          return !i.isTupleType(P);
        }
        return i.isOptionalParameter(N);
      }
    }
    function QJ(e) {
      return zf(e.name);
    }
    function jYe(e) {
      switch (e.parent.kind) {
        case 264:
          const t = e.parent;
          return t.name
            ? [t.name]
            : [
                C.checkDefined(
                  nC(t, 90),
                  "Nameless class declaration should be a default export",
                ),
              ];
        case 232:
          const i = e.parent,
            o = e.parent.parent,
            s = i.name;
          return s ? [s, o.name] : [o.name];
      }
    }
    function UYe(e) {
      switch (e.kind) {
        case 263:
          return e.name
            ? [e.name]
            : [
                C.checkDefined(
                  nC(e, 90),
                  "Nameless function declaration should be a default export",
                ),
              ];
        case 175:
          return [e.name];
        case 177:
          const r = C.checkDefined(
            Es(e, 137, e.getSourceFile()),
            "Constructor declaration should have constructor keyword",
          );
          return e.parent.kind === 232 ? [e.parent.parent.name, r] : [r];
        case 220:
          return [e.parent.name];
        case 219:
          return e.name ? [e.name, e.parent.name] : [e.parent.name];
        default:
          return C.assertNever(
            e,
            `Unexpected function declaration kind ${e.kind}`,
          );
      }
    }
    var HYe = {},
      kde = "Convert to template string",
      wde = Ho(f.Convert_to_template_string),
      Ode = { name: kde, description: wde, kind: "refactor.rewrite.string" };
    Dg(kde, {
      kinds: [Ode.kind],
      getEditsForAction: JYe,
      getAvailableActions: qYe,
    });
    function qYe(e) {
      const { file: t, startPosition: r } = e,
        i = nDe(t, r),
        o = Wde(i),
        s = ka(o),
        l = { name: kde, description: wde, actions: [] };
      return s && e.triggerReason !== "invoked"
        ? ae
        : P_(o) && (s || (Nr(o) && Fde(o).isValidConcatenation))
          ? (l.actions.push(Ode), [l])
          : e.preferences.provideRefactorNotApplicableReason
            ? (l.actions.push({
                ...Ode,
                notApplicableReason: Ho(
                  f.Can_only_convert_string_concatenations_and_string_literals,
                ),
              }),
              [l])
            : ae;
    }
    function nDe(e, t) {
      const r = Fi(e, t),
        i = Wde(r);
      return !Fde(i).isValidConcatenation && Ou(i.parent) && Nr(i.parent.parent)
        ? i.parent.parent
        : r;
    }
    function JYe(e, t) {
      const { file: r, startPosition: i } = e,
        o = nDe(r, i);
      switch (t) {
        case wde:
          return { edits: KYe(e, o) };
        default:
          return C.fail("invalid action");
      }
    }
    function KYe(e, t) {
      const r = Wde(t),
        i = e.file,
        o = ZYe(Fde(r), i),
        s = sb(i.text, r.end);
      if (s) {
        const l = s[s.length - 1],
          u = { pos: s[0].pos, end: l.end };
        return Rr.ChangeTracker.with(e, (d) => {
          (d.deleteRange(i, u), d.replaceNode(i, r, o));
        });
      } else return Rr.ChangeTracker.with(e, (l) => l.replaceNode(i, r, o));
    }
    function XYe(e) {
      return !(e.operatorToken.kind === 64 || e.operatorToken.kind === 65);
    }
    function Wde(e) {
      return (
        Dn(e.parent, (r) => {
          switch (r.kind) {
            case 212:
            case 213:
              return !1;
            case 229:
            case 227:
              return !(Nr(r.parent) && XYe(r.parent));
            default:
              return "quit";
          }
        }) || e
      );
    }
    function Fde(e) {
      const t = (l) => {
          if (!Nr(l))
            return {
              nodes: [l],
              operators: [],
              validOperators: !0,
              hasString: ka(l) || g1(l),
            };
          const {
            nodes: u,
            operators: d,
            hasString: _,
            validOperators: h,
          } = t(l.left);
          if (!(_ || ka(l.right) || b4(l.right)))
            return {
              nodes: [l],
              operators: [],
              hasString: !1,
              validOperators: !0,
            };
          const g = l.operatorToken.kind === 40,
            E = h && g;
          return (
            u.push(l.right),
            d.push(l.operatorToken),
            { nodes: u, operators: d, hasString: !0, validOperators: E }
          );
        },
        { nodes: r, operators: i, validOperators: o, hasString: s } = t(e);
      return { nodes: r, operators: i, isValidConcatenation: o && s };
    }
    var YYe = (e, t) => (r, i) => {
        r < e.length && kP(e[r], i, t, 3, !1);
      },
      $Ye = (e, t, r) => (i, o) => {
        for (; i.length > 0; ) {
          const s = i.shift();
          (kP(e[s], o, t, 3, !1), r(s, o));
        }
      };
    function QYe(e) {
      return e.replace(/\\.|[$`]/g, (t) => (t[0] === "\\" ? t : "\\" + t));
    }
    function rDe(e) {
      const t = GI(e) || hj(e) ? -2 : -1;
      return Al(e).slice(1, t);
    }
    function iDe(e, t) {
      const r = [];
      let i = "",
        o = "";
      for (; e < t.length; ) {
        const s = t[e];
        if (ds(s))
          ((i += s.text), (o += QYe(Al(s).slice(1, -1))), r.push(e), e++);
        else if (b4(s)) {
          ((i += s.head.text), (o += rDe(s.head)));
          break;
        } else break;
      }
      return [e, i, o, r];
    }
    function ZYe({ nodes: e, operators: t }, r) {
      const i = YYe(t, r),
        o = $Ye(e, r, i),
        [s, l, u, d] = iDe(0, e);
      if (s === e.length) {
        const g = L.createNoSubstitutionTemplateLiteral(l, u);
        return (o(d, g), g);
      }
      const _ = [],
        h = L.createTemplateHead(l, u);
      o(d, h);
      for (let g = s; g < e.length; g++) {
        const E = e$e(e[g]);
        i(g, E);
        const [A, R, N, P] = iDe(g + 1, e);
        g = A - 1;
        const k = g === e.length - 1;
        if (b4(E)) {
          const W = Vt(E.templateSpans, (O, G) => {
            oDe(O);
            const j = G === E.templateSpans.length - 1,
              J = O.literal.text + (j ? R : ""),
              Z = rDe(O.literal) + (j ? N : "");
            return L.createTemplateSpan(
              O.expression,
              k && j
                ? L.createTemplateTail(J, Z)
                : L.createTemplateMiddle(J, Z),
            );
          });
          _.push(...W);
        } else {
          const W = k
            ? L.createTemplateTail(R, N)
            : L.createTemplateMiddle(R, N);
          (o(P, W), _.push(L.createTemplateSpan(E, W)));
        }
      }
      return L.createTemplateExpression(h, _);
    }
    function oDe(e) {
      const t = e.getSourceFile();
      (kP(e, e.expression, t, 3, !1), CO(e.expression, e.expression, t, 3, !1));
    }
    function e$e(e) {
      return (Ou(e) && (oDe(e), (e = e.expression)), e);
    }
    var t$e = {},
      ZJ = "Convert to optional chain expression",
      zde = Ho(f.Convert_to_optional_chain_expression),
      Bde = {
        name: ZJ,
        description: zde,
        kind: "refactor.rewrite.expression.optionalChain",
      };
    Dg(ZJ, {
      kinds: [Bde.kind],
      getEditsForAction: r$e,
      getAvailableActions: n$e,
    });
    function n$e(e) {
      const t = aDe(e, e.triggerReason === "invoked");
      return t
        ? gy(t)
          ? e.preferences.provideRefactorNotApplicableReason
            ? [
                {
                  name: ZJ,
                  description: zde,
                  actions: [{ ...Bde, notApplicableReason: t.error }],
                },
              ]
            : ae
          : [{ name: ZJ, description: zde, actions: [Bde] }]
        : ae;
    }
    function r$e(e, t) {
      const r = aDe(e);
      return (
        C.assert(r && !gy(r), "Expected applicable refactor info"),
        {
          edits: Rr.ChangeTracker.with(e, (o) =>
            u$e(e.file, e.program.getTypeChecker(), o, r),
          ),
          renameFilename: void 0,
          renameLocation: void 0,
        }
      );
    }
    function eK(e) {
      return Nr(e) || T1(e);
    }
    function i$e(e) {
      return od(e) || tf(e) || ac(e);
    }
    function tK(e) {
      return eK(e) || i$e(e);
    }
    function aDe(e, t = !0) {
      const { file: r, program: i } = e,
        o = mx(e),
        s = o.length === 0;
      if (s && !t) return;
      const l = Fi(r, o.start),
        u = RP(r, o.start + o.length),
        d = ic(l.pos, u && u.end >= l.pos ? u.getEnd() : l.getEnd()),
        _ = s ? c$e(l) : l$e(l, d),
        h = _ && tK(_) ? d$e(_) : void 0;
      if (!h)
        return { error: Ho(f.Could_not_find_convertible_access_expression) };
      const g = i.getTypeChecker();
      return T1(h) ? o$e(h, g) : a$e(h);
    }
    function o$e(e, t) {
      const r = e.condition,
        i = Vde(e.whenTrue);
      if (!i || t.isNullableType(t.getTypeAtLocation(i)))
        return { error: Ho(f.Could_not_find_convertible_access_expression) };
      if ((qr(r) || He(r)) && Gde(r, i.expression))
        return { finalExpression: i, occurrences: [r], expression: e };
      if (Nr(r)) {
        const o = sDe(i.expression, r);
        return o
          ? { finalExpression: i, occurrences: o, expression: e }
          : { error: Ho(f.Could_not_find_matching_access_expressions) };
      }
    }
    function a$e(e) {
      if (e.operatorToken.kind !== 56)
        return { error: Ho(f.Can_only_convert_logical_AND_access_chains) };
      const t = Vde(e.right);
      if (!t)
        return { error: Ho(f.Could_not_find_convertible_access_expression) };
      const r = sDe(t.expression, e.left);
      return r
        ? { finalExpression: t, occurrences: r, expression: e }
        : { error: Ho(f.Could_not_find_matching_access_expressions) };
    }
    function sDe(e, t) {
      const r = [];
      for (; Nr(t) && t.operatorToken.kind === 56; ) {
        const o = Gde(us(e), us(t.right));
        if (!o) break;
        (r.push(o), (e = o), (t = t.left));
      }
      const i = Gde(e, t);
      return (i && r.push(i), r.length > 0 ? r : void 0);
    }
    function Gde(e, t) {
      if (!(!He(t) && !qr(t) && !Ws(t))) return s$e(e, t) ? t : void 0;
    }
    function s$e(e, t) {
      for (; (Zo(e) || qr(e) || Ws(e)) && BO(e) !== BO(t); ) e = e.expression;
      for (; (qr(e) && qr(t)) || (Ws(e) && Ws(t)); ) {
        if (BO(e) !== BO(t)) return !1;
        ((e = e.expression), (t = t.expression));
      }
      return He(e) && He(t) && e.getText() === t.getText();
    }
    function BO(e) {
      if (He(e) || uf(e)) return e.getText();
      if (qr(e)) return BO(e.name);
      if (Ws(e)) return BO(e.argumentExpression);
    }
    function l$e(e, t) {
      for (; e.parent; ) {
        if (tK(e) && t.length !== 0 && e.end >= t.start + t.length) return e;
        e = e.parent;
      }
    }
    function c$e(e) {
      for (; e.parent; ) {
        if (tK(e) && !tK(e.parent)) return e;
        e = e.parent;
      }
    }
    function d$e(e) {
      if (eK(e)) return e;
      if (ac(e)) {
        const t = TI(e),
          r = t?.initializer;
        return r && eK(r) ? r : void 0;
      }
      return e.expression && eK(e.expression) ? e.expression : void 0;
    }
    function Vde(e) {
      if (((e = us(e)), Nr(e))) return Vde(e.left);
      if ((qr(e) || Ws(e) || Zo(e)) && !tu(e)) return e;
    }
    function lDe(e, t, r) {
      if (qr(t) || Ws(t) || Zo(t)) {
        const i = lDe(e, t.expression, r),
          o = r.length > 0 ? r[r.length - 1] : void 0,
          s = o?.getText() === t.expression.getText();
        if ((s && r.pop(), Zo(t)))
          return s
            ? L.createCallChain(
                i,
                L.createToken(29),
                t.typeArguments,
                t.arguments,
              )
            : L.createCallChain(
                i,
                t.questionDotToken,
                t.typeArguments,
                t.arguments,
              );
        if (qr(t))
          return s
            ? L.createPropertyAccessChain(i, L.createToken(29), t.name)
            : L.createPropertyAccessChain(i, t.questionDotToken, t.name);
        if (Ws(t))
          return s
            ? L.createElementAccessChain(
                i,
                L.createToken(29),
                t.argumentExpression,
              )
            : L.createElementAccessChain(
                i,
                t.questionDotToken,
                t.argumentExpression,
              );
      }
      return t;
    }
    function u$e(e, t, r, i, o) {
      const { finalExpression: s, occurrences: l, expression: u } = i,
        d = l[l.length - 1],
        _ = lDe(t, s, l);
      _ &&
        (qr(_) || Ws(_) || Zo(_)) &&
        (Nr(u)
          ? r.replaceNodeRange(e, d, s, _)
          : T1(u) &&
            r.replaceNode(
              e,
              u,
              L.createBinaryExpression(_, L.createToken(61), u.whenFalse),
            ));
    }
    var cDe = {};
    x(cDe, {
      Messages: () => Md,
      RangeFacts: () => pDe,
      getRangeToExtract: () => jde,
      getRefactorActionsToExtractSymbol: () => dDe,
      getRefactorEditsToExtractSymbol: () => uDe,
    });
    var BP = "Extract Symbol",
      GP = {
        name: "Extract Constant",
        description: Ho(f.Extract_constant),
        kind: "refactor.extract.constant",
      },
      VP = {
        name: "Extract Function",
        description: Ho(f.Extract_function),
        kind: "refactor.extract.function",
      };
    Dg(BP, {
      kinds: [GP.kind, VP.kind],
      getEditsForAction: uDe,
      getAvailableActions: dDe,
    });
    function dDe(e) {
      const t = e.kind,
        r = jde(e.file, mx(e), e.triggerReason === "invoked"),
        i = r.targetRange;
      if (i === void 0) {
        if (
          !r.errors ||
          r.errors.length === 0 ||
          !e.preferences.provideRefactorNotApplicableReason
        )
          return ae;
        const N = [];
        return (
          h0(VP.kind, t) &&
            N.push({
              name: BP,
              description: VP.description,
              actions: [{ ...VP, notApplicableReason: R(r.errors) }],
            }),
          h0(GP.kind, t) &&
            N.push({
              name: BP,
              description: GP.description,
              actions: [{ ...GP, notApplicableReason: R(r.errors) }],
            }),
          N
        );
      }
      const { affectedTextRange: o, extractions: s } = g$e(i, e);
      if (s === void 0) return ae;
      const l = [],
        u = new Map();
      let d;
      const _ = [],
        h = new Map();
      let g,
        E = 0;
      for (const { functionExtraction: N, constantExtraction: P } of s) {
        if (h0(VP.kind, t)) {
          const k = N.description;
          N.errors.length === 0
            ? u.has(k) ||
              (u.set(k, !0),
              l.push({
                description: k,
                name: `function_scope_${E}`,
                kind: VP.kind,
                range: {
                  start: {
                    line: ca(e.file, o.pos).line,
                    offset: ca(e.file, o.pos).character,
                  },
                  end: {
                    line: ca(e.file, o.end).line,
                    offset: ca(e.file, o.end).character,
                  },
                },
              }))
            : d ||
              (d = {
                description: k,
                name: `function_scope_${E}`,
                notApplicableReason: R(N.errors),
                kind: VP.kind,
              });
        }
        if (h0(GP.kind, t)) {
          const k = P.description;
          P.errors.length === 0
            ? h.has(k) ||
              (h.set(k, !0),
              _.push({
                description: k,
                name: `constant_scope_${E}`,
                kind: GP.kind,
                range: {
                  start: {
                    line: ca(e.file, o.pos).line,
                    offset: ca(e.file, o.pos).character,
                  },
                  end: {
                    line: ca(e.file, o.end).line,
                    offset: ca(e.file, o.end).character,
                  },
                },
              }))
            : g ||
              (g = {
                description: k,
                name: `constant_scope_${E}`,
                notApplicableReason: R(P.errors),
                kind: GP.kind,
              });
        }
        E++;
      }
      const A = [];
      return (
        l.length
          ? A.push({
              name: BP,
              description: Ho(f.Extract_function),
              actions: l,
            })
          : e.preferences.provideRefactorNotApplicableReason &&
            d &&
            A.push({
              name: BP,
              description: Ho(f.Extract_function),
              actions: [d],
            }),
        _.length
          ? A.push({
              name: BP,
              description: Ho(f.Extract_constant),
              actions: _,
            })
          : e.preferences.provideRefactorNotApplicableReason &&
            g &&
            A.push({
              name: BP,
              description: Ho(f.Extract_constant),
              actions: [g],
            }),
        A.length ? A : ae
      );
      function R(N) {
        let P = N[0].messageText;
        return (typeof P != "string" && (P = P.messageText), P);
      }
    }
    function uDe(e, t) {
      const i = jde(e.file, mx(e)).targetRange,
        o = /^function_scope_(\d+)$/.exec(t);
      if (o) {
        const l = +o[1];
        return (
          C.assert(
            isFinite(l),
            "Expected to parse a finite number from the function scope index",
          ),
          h$e(i, e, l)
        );
      }
      const s = /^constant_scope_(\d+)$/.exec(t);
      if (s) {
        const l = +s[1];
        return (
          C.assert(
            isFinite(l),
            "Expected to parse a finite number from the constant scope index",
          ),
          _$e(i, e, l)
        );
      }
      C.fail("Unrecognized action name");
    }
    var Md;
    ((e) => {
      function t(r) {
        return { message: r, code: 0, category: 3, key: r };
      }
      ((e.cannotExtractRange = t("Cannot extract range.")),
        (e.cannotExtractImport = t("Cannot extract import statement.")),
        (e.cannotExtractSuper = t("Cannot extract super call.")),
        (e.cannotExtractJSDoc = t("Cannot extract JSDoc.")),
        (e.cannotExtractEmpty = t("Cannot extract empty range.")),
        (e.expressionExpected = t("expression expected.")),
        (e.uselessConstantType = t("No reason to extract constant of type.")),
        (e.statementOrExpressionExpected = t(
          "Statement or expression expected.",
        )),
        (e.cannotExtractRangeContainingConditionalBreakOrContinueStatements = t(
          "Cannot extract range containing conditional break or continue statements.",
        )),
        (e.cannotExtractRangeContainingConditionalReturnStatement = t(
          "Cannot extract range containing conditional return statement.",
        )),
        (e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange =
          t(
            "Cannot extract range containing labeled break or continue with target outside of the range.",
          )),
        (e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators =
          t(
            "Cannot extract range containing writes to references located outside of the target range in generators.",
          )),
        (e.typeWillNotBeVisibleInTheNewScope = t(
          "Type will not visible in the new scope.",
        )),
        (e.functionWillNotBeVisibleInTheNewScope = t(
          "Function will not visible in the new scope.",
        )),
        (e.cannotExtractIdentifier = t(
          "Select more than a single identifier.",
        )),
        (e.cannotExtractExportedEntity = t(
          "Cannot extract exported declaration",
        )),
        (e.cannotWriteInExpression = t(
          "Cannot write back side-effects when extracting an expression",
        )),
        (e.cannotExtractReadonlyPropertyInitializerOutsideConstructor = t(
          "Cannot move initialization of read-only class property outside of the constructor",
        )),
        (e.cannotExtractAmbientBlock = t(
          "Cannot extract code from ambient contexts",
        )),
        (e.cannotAccessVariablesFromNestedScopes = t(
          "Cannot access variables from nested scopes",
        )),
        (e.cannotExtractToJSClass = t(
          "Cannot extract constant to a class scope in JS",
        )),
        (e.cannotExtractToExpressionArrowFunction = t(
          "Cannot extract constant to an arrow function without a block",
        )),
        (e.cannotExtractFunctionsContainingThisToMethod = t(
          "Cannot extract functions containing this to method",
        )));
    })(Md || (Md = {}));
    var pDe = ((e) => (
      (e[(e.None = 0)] = "None"),
      (e[(e.HasReturn = 1)] = "HasReturn"),
      (e[(e.IsGenerator = 2)] = "IsGenerator"),
      (e[(e.IsAsyncFunction = 4)] = "IsAsyncFunction"),
      (e[(e.UsesThis = 8)] = "UsesThis"),
      (e[(e.UsesThisInFunction = 16)] = "UsesThisInFunction"),
      (e[(e.InStaticRegion = 32)] = "InStaticRegion"),
      e
    ))(pDe || {});
    function jde(e, t, r = !0) {
      const { length: i } = t;
      if (i === 0 && !r)
        return { errors: [Oc(e, t.start, i, Md.cannotExtractEmpty)] };
      const o = i === 0 && r,
        s = Ble(e, t.start),
        l = RP(e, Dl(t)),
        u = s && l && r ? p$e(s, l, e) : t,
        d = o ? W$e(s) : xO(s, e, u),
        _ = o ? d : xO(l, e, u);
      let h = 0,
        g;
      if (!d || !_)
        return { errors: [Oc(e, t.start, i, Md.cannotExtractRange)] };
      if (d.flags & 16777216)
        return { errors: [Oc(e, t.start, i, Md.cannotExtractJSDoc)] };
      if (d.parent !== _.parent)
        return { errors: [Oc(e, t.start, i, Md.cannotExtractRange)] };
      if (d !== _) {
        if (!hx(d.parent))
          return { errors: [Oc(e, t.start, i, Md.cannotExtractRange)] };
        const W = [];
        for (const O of d.parent.statements) {
          if (O === d || W.length) {
            const G = k(O);
            if (G) return { errors: G };
            W.push(O);
          }
          if (O === _) break;
        }
        return W.length
          ? { targetRange: { range: W, facts: h, thisNode: g } }
          : { errors: [Oc(e, t.start, i, Md.cannotExtractRange)] };
      }
      if (tf(d) && !d.expression)
        return { errors: [Oc(e, t.start, i, Md.cannotExtractRange)] };
      const E = R(d),
        A = N(E) || k(E);
      if (A) return { errors: A };
      return { targetRange: { range: f$e(E), facts: h, thisNode: g } };
      function R(W) {
        if (tf(W)) {
          if (W.expression) return W.expression;
        } else if (ac(W) || _d(W)) {
          const O = ac(W) ? W.declarationList.declarations : W.declarations;
          let G = 0,
            j;
          for (const J of O) J.initializer && (G++, (j = J.initializer));
          if (G === 1) return j;
        } else if (yi(W) && W.initializer) return W.initializer;
        return W;
      }
      function N(W) {
        if (He(od(W) ? W.expression : W))
          return [Ar(W, Md.cannotExtractIdentifier)];
      }
      function P(W, O) {
        let G = W;
        for (; G !== O; ) {
          if (G.kind === 173) {
            ua(G) && (h |= 32);
            break;
          } else if (G.kind === 170) {
            df(G).kind === 177 && (h |= 32);
            break;
          } else G.kind === 175 && ua(G) && (h |= 32);
          G = G.parent;
        }
      }
      function k(W) {
        let O;
        if (
          (((ye) => {
            ((ye[(ye.None = 0)] = "None"),
              (ye[(ye.Break = 1)] = "Break"),
              (ye[(ye.Continue = 2)] = "Continue"),
              (ye[(ye.Return = 4)] = "Return"));
          })(O || (O = {})),
          C.assert(
            W.pos <= W.end,
            "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)",
          ),
          C.assert(
            !dh(W.pos),
            "This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)",
          ),
          !Vi(W) && !(P_(W) && fDe(W)) && !Kde(W))
        )
          return [Ar(W, Md.statementOrExpressionExpected)];
        if (W.flags & 33554432) return [Ar(W, Md.cannotExtractAmbientBlock)];
        const G = hd(W);
        G && P(W, G);
        let j,
          J = 4,
          Z;
        if ((q(W), h & 8)) {
          const ye = vu(W, !1, !1);
          (ye.kind === 263 ||
            (ye.kind === 175 && ye.parent.kind === 211) ||
            ye.kind === 219) &&
            (h |= 16);
        }
        return j;
        function q(ye) {
          if (j) return !0;
          if (rd(ye)) {
            const K = ye.kind === 261 ? ye.parent.parent : ye;
            if (di(K, 32))
              return (
                (j || (j = [])).push(Ar(ye, Md.cannotExtractExportedEntity)),
                !0
              );
          }
          switch (ye.kind) {
            case 273:
              return ((j || (j = [])).push(Ar(ye, Md.cannotExtractImport)), !0);
            case 278:
              return (
                (j || (j = [])).push(Ar(ye, Md.cannotExtractExportedEntity)),
                !0
              );
            case 108:
              if (ye.parent.kind === 214) {
                const K = hd(ye);
                if (
                  K === void 0 ||
                  K.pos < t.start ||
                  K.end >= t.start + t.length
                )
                  return (
                    (j || (j = [])).push(Ar(ye, Md.cannotExtractSuper)),
                    !0
                  );
              } else ((h |= 8), (g = ye));
              break;
            case 220:
              Jo(ye, function K(pe) {
                if (QD(pe)) ((h |= 8), (g = ye));
                else {
                  if (ui(pe) || (Yo(pe) && !Xs(pe))) return !1;
                  Jo(pe, K);
                }
              });
            case 264:
            case 263:
              Yi(ye.parent) &&
                ye.parent.externalModuleIndicator === void 0 &&
                (j || (j = [])).push(
                  Ar(ye, Md.functionWillNotBeVisibleInTheNewScope),
                );
            case 232:
            case 219:
            case 175:
            case 177:
            case 178:
            case 179:
              return !1;
          }
          const ie = J;
          switch (ye.kind) {
            case 246:
              J &= -5;
              break;
            case 259:
              J = 0;
              break;
            case 242:
              ye.parent &&
                ye.parent.kind === 259 &&
                ye.parent.finallyBlock === ye &&
                (J = 4);
              break;
            case 298:
            case 297:
              J |= 1;
              break;
            default:
              mb(ye, !1) && (J |= 3);
              break;
          }
          switch (ye.kind) {
            case 198:
            case 110:
              ((h |= 8), (g = ye));
              break;
            case 257: {
              const K = ye.label;
              ((Z || (Z = [])).push(K.escapedText), Jo(ye, q), Z.pop());
              break;
            }
            case 253:
            case 252: {
              const K = ye.label;
              K
                ? jn(Z, K.escapedText) ||
                  (j || (j = [])).push(
                    Ar(
                      ye,
                      Md.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange,
                    ),
                  )
                : J & (ye.kind === 253 ? 1 : 2) ||
                  (j || (j = [])).push(
                    Ar(
                      ye,
                      Md.cannotExtractRangeContainingConditionalBreakOrContinueStatements,
                    ),
                  );
              break;
            }
            case 224:
              h |= 4;
              break;
            case 230:
              h |= 2;
              break;
            case 254:
              J & 4
                ? (h |= 1)
                : (j || (j = [])).push(
                    Ar(
                      ye,
                      Md.cannotExtractRangeContainingConditionalReturnStatement,
                    ),
                  );
              break;
            default:
              Jo(ye, q);
              break;
          }
          J = ie;
        }
      }
    }
    function p$e(e, t, r) {
      const i = e.getStart(r);
      let o = t.getEnd();
      return (r.text.charCodeAt(o) === 59 && o++, { start: i, length: o - i });
    }
    function f$e(e) {
      if (Vi(e)) return [e];
      if (P_(e)) return od(e.parent) ? [e.parent] : e;
      if (Kde(e)) return e;
    }
    function Ude(e) {
      return Xs(e) ? nG(e.body) : Ms(e) || Yi(e) || t_(e) || ui(e);
    }
    function m$e(e) {
      let t = yv(e.range) ? $a(e.range) : e.range;
      if (e.facts & 8 && !(e.facts & 16)) {
        const i = hd(t);
        if (i) {
          const o = Dn(t, Ms);
          return o ? [o, i] : [i];
        }
      }
      const r = [];
      for (;;)
        if (
          ((t = t.parent),
          t.kind === 170 && (t = Dn(t, (i) => Ms(i)).parent),
          Ude(t) && (r.push(t), t.kind === 308))
        )
          return r;
    }
    function h$e(e, t, r) {
      const {
        scopes: i,
        readsAndWrites: {
          target: o,
          usagesPerScope: s,
          functionErrorsPerScope: l,
          exposedVariableDeclarations: u,
        },
      } = Hde(e, t);
      return (
        C.assert(!l[r].length, "The extraction went missing? How?"),
        t.cancellationToken.throwIfCancellationRequested(),
        E$e(o, i[r], s[r], u, e, t)
      );
    }
    function _$e(e, t, r) {
      const {
        scopes: i,
        readsAndWrites: {
          target: o,
          usagesPerScope: s,
          constantErrorsPerScope: l,
          exposedVariableDeclarations: u,
        },
      } = Hde(e, t);
      (C.assert(!l[r].length, "The extraction went missing? How?"),
        C.assert(
          u.length === 0,
          "Extract constant accepted a range containing a variable declaration?",
        ),
        t.cancellationToken.throwIfCancellationRequested());
      const d = St(o) ? o : o.statements[0].expression;
      return A$e(d, i[r], s[r], e.facts, t);
    }
    function g$e(e, t) {
      const {
          scopes: r,
          affectedTextRange: i,
          readsAndWrites: {
            functionErrorsPerScope: o,
            constantErrorsPerScope: s,
          },
        } = Hde(e, t),
        l = r.map((u, d) => {
          const _ = y$e(u),
            h = v$e(u),
            g = Ms(u) ? b$e(u) : ui(u) ? T$e(u) : S$e(u);
          let E, A;
          return (
            g === 1
              ? ((E = bg(Ho(f.Extract_to_0_in_1_scope), [_, "global"])),
                (A = bg(Ho(f.Extract_to_0_in_1_scope), [h, "global"])))
              : g === 0
                ? ((E = bg(Ho(f.Extract_to_0_in_1_scope), [_, "module"])),
                  (A = bg(Ho(f.Extract_to_0_in_1_scope), [h, "module"])))
                : ((E = bg(Ho(f.Extract_to_0_in_1), [_, g])),
                  (A = bg(Ho(f.Extract_to_0_in_1), [h, g]))),
            d === 0 &&
              !ui(u) &&
              (A = bg(Ho(f.Extract_to_0_in_enclosing_scope), [h])),
            {
              functionExtraction: { description: E, errors: o[d] },
              constantExtraction: { description: A, errors: s[d] },
            }
          );
        });
      return { affectedTextRange: i, extractions: l };
    }
    function Hde(e, t) {
      const { file: r } = t,
        i = m$e(e),
        o = w$e(e, r),
        s = O$e(e, i, o, r, t.program.getTypeChecker(), t.cancellationToken);
      return { scopes: i, affectedTextRange: o, readsAndWrites: s };
    }
    function y$e(e) {
      return Ms(e) ? "inner function" : ui(e) ? "method" : "function";
    }
    function v$e(e) {
      return ui(e) ? "readonly field" : "constant";
    }
    function b$e(e) {
      switch (e.kind) {
        case 177:
          return "constructor";
        case 219:
        case 263:
          return e.name ? `function '${e.name.text}'` : uJ;
        case 220:
          return "arrow function";
        case 175:
          return `method '${e.name.getText()}'`;
        case 178:
          return `'get ${e.name.getText()}'`;
        case 179:
          return `'set ${e.name.getText()}'`;
        default:
          C.assertNever(e, `Unexpected scope kind ${e.kind}`);
      }
    }
    function T$e(e) {
      return e.kind === 264
        ? e.name
          ? `class '${e.name.text}'`
          : "anonymous class declaration"
        : e.name
          ? `class expression '${e.name.text}'`
          : "anonymous class expression";
    }
    function S$e(e) {
      return e.kind === 269
        ? `namespace '${e.parent.name.getText()}'`
        : e.externalModuleIndicator
          ? 0
          : 1;
    }
    function E$e(
      e,
      t,
      { usages: r, typeParameterUsages: i, substitutions: o },
      s,
      l,
      u,
    ) {
      const d = u.program.getTypeChecker(),
        _ = Ga(u.program.getCompilerOptions()),
        h = cu.createImportAdder(u.file, u.program, u.preferences, u.host),
        g = t.getSourceFile(),
        E = B1(ui(t) ? "newMethod" : "newFunction", g),
        A = Ir(t),
        R = L.createIdentifier(E);
      let N;
      const P = [],
        k = [];
      let W;
      r.forEach((re, be) => {
        let Ne;
        if (!A) {
          let lt = d.getTypeOfSymbolAtLocation(re.symbol, re.node);
          ((lt = d.getBaseTypeOfLiteralType(lt)),
            (Ne = cu.typeToAutoImportableTypeNode(d, h, lt, t, _, 1, 8)));
        }
        const Be = L.createParameterDeclaration(void 0, void 0, be, void 0, Ne);
        (P.push(Be),
          re.usage === 2 && (W || (W = [])).push(re),
          k.push(L.createIdentifier(be)));
      });
      const O = Co(i.values(), (re) => ({
        type: re,
        declaration: x$e(re, u.startPosition),
      }));
      O.sort(R$e);
      const G = O.length === 0 ? void 0 : Ui(O, ({ declaration: re }) => re),
        j =
          G !== void 0
            ? G.map((re) => L.createTypeReferenceNode(re.name, void 0))
            : void 0;
      if (St(e) && !A) {
        const re = d.getContextualType(e);
        N = d.typeToTypeNode(re, t, 1, 8);
      }
      const { body: J, returnValueProperty: Z } = C$e(
        e,
        s,
        W,
        o,
        !!(l.facts & 1),
      );
      Op(J);
      let q;
      const ye = !!(l.facts & 16);
      if (ui(t)) {
        const re = A ? [] : [L.createModifier(123)];
        (l.facts & 32 && re.push(L.createModifier(126)),
          l.facts & 4 && re.push(L.createModifier(134)),
          (q = L.createMethodDeclaration(
            re.length ? re : void 0,
            l.facts & 2 ? L.createToken(42) : void 0,
            R,
            void 0,
            G,
            P,
            N,
            J,
          )));
      } else
        (ye &&
          P.unshift(
            L.createParameterDeclaration(
              void 0,
              void 0,
              "this",
              void 0,
              d.typeToTypeNode(d.getTypeAtLocation(l.thisNode), t, 1, 8),
              void 0,
            ),
          ),
          (q = L.createFunctionDeclaration(
            l.facts & 4 ? [L.createToken(134)] : void 0,
            l.facts & 2 ? L.createToken(42) : void 0,
            R,
            G,
            P,
            N,
            J,
          )));
      const ie = Rr.ChangeTracker.fromContext(u),
        K = (yv(l.range) ? Ba(l.range) : l.range).end,
        pe = P$e(K, t);
      (pe
        ? ie.insertNodeBefore(u.file, pe, q, !0)
        : ie.insertNodeAtEndOfScope(u.file, t, q),
        h.writeFixes(ie));
      const de = [],
        fe = D$e(t, l, E);
      ye && k.unshift(L.createIdentifier("this"));
      let ve = L.createCallExpression(
        ye ? L.createPropertyAccessExpression(fe, "call") : fe,
        j,
        k,
      );
      if (
        (l.facts & 2 && (ve = L.createYieldExpression(L.createToken(42), ve)),
        l.facts & 4 && (ve = L.createAwaitExpression(ve)),
        Jde(e) && (ve = L.createJsxExpression(void 0, ve)),
        s.length && !W)
      )
        if (
          (C.assert(!Z, "Expected no returnValueProperty"),
          C.assert(
            !(l.facts & 1),
            "Expected RangeFacts.HasReturn flag to be unset",
          ),
          s.length === 1)
        ) {
          const re = s[0];
          de.push(
            L.createVariableStatement(
              void 0,
              L.createVariableDeclarationList(
                [
                  L.createVariableDeclaration(
                    _s(re.name),
                    void 0,
                    _s(re.type),
                    ve,
                  ),
                ],
                re.parent.flags,
              ),
            ),
          );
        } else {
          const re = [],
            be = [];
          let Ne = s[0].parent.flags,
            Be = !1;
          for (const ce of s) {
            re.push(L.createBindingElement(void 0, void 0, _s(ce.name)));
            const Re = d.typeToTypeNode(
              d.getBaseTypeOfLiteralType(d.getTypeAtLocation(ce)),
              t,
              1,
              8,
            );
            (be.push(
              L.createPropertySignature(void 0, ce.symbol.name, void 0, Re),
            ),
              (Be = Be || ce.type !== void 0),
              (Ne = Ne & ce.parent.flags));
          }
          const lt = Be ? L.createTypeLiteralNode(be) : void 0;
          (lt && Cr(lt, 1),
            de.push(
              L.createVariableStatement(
                void 0,
                L.createVariableDeclarationList(
                  [
                    L.createVariableDeclaration(
                      L.createObjectBindingPattern(re),
                      void 0,
                      lt,
                      ve,
                    ),
                  ],
                  Ne,
                ),
              ),
            ));
        }
      else if (s.length || W) {
        if (s.length)
          for (const be of s) {
            let Ne = be.parent.flags;
            (Ne & 2 && (Ne = (Ne & -3) | 1),
              de.push(
                L.createVariableStatement(
                  void 0,
                  L.createVariableDeclarationList(
                    [
                      L.createVariableDeclaration(
                        be.symbol.name,
                        void 0,
                        Se(be.type),
                      ),
                    ],
                    Ne,
                  ),
                ),
              ));
          }
        Z &&
          de.push(
            L.createVariableStatement(
              void 0,
              L.createVariableDeclarationList(
                [L.createVariableDeclaration(Z, void 0, Se(N))],
                1,
              ),
            ),
          );
        const re = qde(s, W);
        (Z && re.unshift(L.createShorthandPropertyAssignment(Z)),
          re.length === 1
            ? (C.assert(!Z, "Shouldn't have returnValueProperty here"),
              de.push(
                L.createExpressionStatement(L.createAssignment(re[0].name, ve)),
              ),
              l.facts & 1 && de.push(L.createReturnStatement()))
            : (de.push(
                L.createExpressionStatement(
                  L.createAssignment(L.createObjectLiteralExpression(re), ve),
                ),
              ),
              Z && de.push(L.createReturnStatement(L.createIdentifier(Z)))));
      } else
        l.facts & 1
          ? de.push(L.createReturnStatement(ve))
          : yv(l.range)
            ? de.push(L.createExpressionStatement(ve))
            : de.push(ve);
      yv(l.range)
        ? ie.replaceNodeRangeWithNodes(u.file, $a(l.range), Ba(l.range), de)
        : ie.replaceNodeWithNodes(u.file, l.range, de);
      const xe = ie.getChanges(),
        Ce = (yv(l.range) ? $a(l.range) : l.range).getSourceFile().fileName,
        Je = DO(xe, Ce, E, !1);
      return { renameFilename: Ce, renameLocation: Je, edits: xe };
      function Se(re) {
        if (re === void 0) return;
        const be = _s(re);
        let Ne = be;
        for (; v1(Ne); ) Ne = Ne.type;
        return dv(Ne) && hn(Ne.types, (Be) => Be.kind === 157)
          ? be
          : L.createUnionTypeNode([be, L.createKeywordTypeNode(157)]);
      }
    }
    function A$e(e, t, { substitutions: r }, i, o) {
      const s = o.program.getTypeChecker(),
        l = t.getSourceFile(),
        u = Ede(e, t, s, l),
        d = Ir(t);
      let _ =
          d || !s.isContextSensitive(e)
            ? void 0
            : s.typeToTypeNode(s.getContextualType(e), t, 1, 8),
        h = N$e(us(e), r);
      (({ variableType: _, initializer: h } = N(_, h)), Op(h));
      const g = Rr.ChangeTracker.fromContext(o);
      if (ui(t)) {
        C.assert(!d, "Cannot extract to a JS class");
        const P = [];
        (P.push(L.createModifier(123)),
          i & 32 && P.push(L.createModifier(126)),
          P.push(L.createModifier(148)));
        const k = L.createPropertyDeclaration(P, u, void 0, _, h);
        let W = L.createPropertyAccessExpression(
          i & 32 ? L.createIdentifier(t.name.getText()) : L.createThis(),
          L.createIdentifier(u),
        );
        Jde(e) && (W = L.createJsxExpression(void 0, W));
        const O = e.pos,
          G = L$e(O, t);
        (g.insertNodeBefore(o.file, G, k, !0), g.replaceNode(o.file, e, W));
      } else {
        const P = L.createVariableDeclaration(u, void 0, _, h),
          k = I$e(e, t);
        if (k) {
          g.insertNodeBefore(o.file, k, P);
          const W = L.createIdentifier(u);
          g.replaceNode(o.file, e, W);
        } else if (e.parent.kind === 245 && t === Dn(e, Ude)) {
          const W = L.createVariableStatement(
            void 0,
            L.createVariableDeclarationList([P], 2),
          );
          g.replaceNode(o.file, e.parent, W);
        } else {
          const W = L.createVariableStatement(
              void 0,
              L.createVariableDeclarationList([P], 2),
            ),
            O = k$e(e, t);
          if (
            (O.pos === 0
              ? g.insertNodeAtTopOfFile(o.file, W, !1)
              : g.insertNodeBefore(o.file, O, W, !1),
            e.parent.kind === 245)
          )
            g.delete(o.file, e.parent);
          else {
            let G = L.createIdentifier(u);
            (Jde(e) && (G = L.createJsxExpression(void 0, G)),
              g.replaceNode(o.file, e, G));
          }
        }
      }
      const E = g.getChanges(),
        A = e.getSourceFile().fileName,
        R = DO(E, A, u, !0);
      return { renameFilename: A, renameLocation: R, edits: E };
      function N(P, k) {
        if (P === void 0) return { variableType: P, initializer: k };
        if ((!Us(k) && !Xs(k)) || k.typeParameters)
          return { variableType: P, initializer: k };
        const W = s.getTypeAtLocation(e),
          O = og(s.getSignaturesOfType(W, 0));
        if (!O) return { variableType: P, initializer: k };
        if (O.getTypeParameters()) return { variableType: P, initializer: k };
        const G = [];
        let j = !1;
        for (const J of k.parameters)
          if (J.type) G.push(J);
          else {
            const Z = s.getTypeAtLocation(J);
            (Z === s.getAnyType() && (j = !0),
              G.push(
                L.updateParameterDeclaration(
                  J,
                  J.modifiers,
                  J.dotDotDotToken,
                  J.name,
                  J.questionToken,
                  J.type || s.typeToTypeNode(Z, t, 1, 8),
                  J.initializer,
                ),
              ));
          }
        if (j) return { variableType: P, initializer: k };
        if (((P = void 0), Xs(k)))
          k = L.updateArrowFunction(
            k,
            Tm(e) ? mS(e) : void 0,
            k.typeParameters,
            G,
            k.type || s.typeToTypeNode(O.getReturnType(), t, 1, 8),
            k.equalsGreaterThanToken,
            k.body,
          );
        else {
          if (O && O.thisParameter) {
            const J = Ac(G);
            if (!J || (He(J.name) && J.name.escapedText !== "this")) {
              const Z = s.getTypeOfSymbolAtLocation(O.thisParameter, e);
              G.splice(
                0,
                0,
                L.createParameterDeclaration(
                  void 0,
                  void 0,
                  "this",
                  void 0,
                  s.typeToTypeNode(Z, t, 1, 8),
                ),
              );
            }
          }
          k = L.updateFunctionExpression(
            k,
            Tm(e) ? mS(e) : void 0,
            k.asteriskToken,
            k.name,
            k.typeParameters,
            G,
            k.type || s.typeToTypeNode(O.getReturnType(), t, 1),
            k.body,
          );
        }
        return { variableType: P, initializer: k };
      }
    }
    function I$e(e, t) {
      let r;
      for (; e !== void 0 && e !== t; ) {
        if (
          yi(e) &&
          e.initializer === r &&
          _d(e.parent) &&
          e.parent.declarations.length > 1
        )
          return e;
        ((r = e), (e = e.parent));
      }
    }
    function x$e(e, t) {
      let r;
      const i = e.symbol;
      if (i && i.declarations)
        for (const o of i.declarations)
          (r === void 0 || o.pos < r.pos) && o.pos < t && (r = o);
      return r;
    }
    function R$e({ type: e, declaration: t }, { type: r, declaration: i }) {
      return (
        QQ(t, i, "pos", js) ||
        Wd(
          e.symbol ? e.symbol.getName() : "",
          r.symbol ? r.symbol.getName() : "",
        ) ||
        js(e.id, r.id)
      );
    }
    function D$e(e, t, r) {
      const i = L.createIdentifier(r);
      if (ui(e)) {
        const o =
          t.facts & 32 ? L.createIdentifier(e.name.text) : L.createThis();
        return L.createPropertyAccessExpression(o, i);
      } else return i;
    }
    function C$e(e, t, r, i, o) {
      const s = r !== void 0 || t.length > 0;
      if (ea(e) && !s && i.size === 0)
        return {
          body: L.createBlock(e.statements, !0),
          returnValueProperty: void 0,
        };
      let l,
        u = !1;
      const d = L.createNodeArray(
        ea(e)
          ? e.statements.slice(0)
          : [Vi(e) ? e : L.createReturnStatement(us(e))],
      );
      if (s || i.size) {
        const h = Xn(d, _, Vi).slice();
        if (s && !o && Vi(e)) {
          const g = qde(t, r);
          g.length === 1
            ? h.push(L.createReturnStatement(g[0].name))
            : h.push(
                L.createReturnStatement(L.createObjectLiteralExpression(g)),
              );
        }
        return { body: L.createBlock(h, !0), returnValueProperty: l };
      } else return { body: L.createBlock(d, !0), returnValueProperty: void 0 };
      function _(h) {
        if (!u && tf(h) && s) {
          const g = qde(t, r);
          return (
            h.expression &&
              (l || (l = "__return"),
              g.unshift(
                L.createPropertyAssignment(l, st(h.expression, _, St)),
              )),
            g.length === 1
              ? L.createReturnStatement(g[0].name)
              : L.createReturnStatement(L.createObjectLiteralExpression(g))
          );
        } else {
          const g = u;
          u = u || Ms(h) || ui(h);
          const E = i.get(ls(h).toString()),
            A = E ? _s(E) : kn(h, _, void 0);
          return ((u = g), A);
        }
      }
    }
    function N$e(e, t) {
      return t.size ? r(e) : e;
      function r(i) {
        const o = t.get(ls(i).toString());
        return o ? _s(o) : kn(i, r, void 0);
      }
    }
    function M$e(e) {
      if (Ms(e)) {
        const t = e.body;
        if (ea(t)) return t.statements;
      } else {
        if (t_(e) || Yi(e)) return e.statements;
        if (ui(e)) return e.members;
      }
      return ae;
    }
    function P$e(e, t) {
      return hn(M$e(t), (r) => r.pos >= e && Ms(r) && !Ml(r));
    }
    function L$e(e, t) {
      const r = t.members;
      C.assert(r.length > 0, "Found no members");
      let i,
        o = !0;
      for (const s of r) {
        if (s.pos > e) return i || r[0];
        if (o && !Po(s)) {
          if (i !== void 0) return s;
          o = !1;
        }
        i = s;
      }
      return i === void 0 ? C.fail() : i;
    }
    function k$e(e, t) {
      C.assert(!ui(t));
      let r;
      for (let i = e; i !== t; i = i.parent) Ude(i) && (r = i);
      for (let i = (r || e).parent; ; i = i.parent) {
        if (hx(i)) {
          let o;
          for (const s of i.statements) {
            if (s.pos > e.pos) break;
            o = s;
          }
          return !o && xD(i)
            ? (C.assert(
                UM(i.parent.parent),
                "Grandparent isn't a switch statement",
              ),
              i.parent.parent)
            : C.checkDefined(o, "prevStatement failed to get set");
        }
        C.assert(
          i !== t,
          "Didn't encounter a block-like before encountering scope",
        );
      }
    }
    function qde(e, t) {
      const r = Vt(e, (o) =>
          L.createShorthandPropertyAssignment(o.symbol.name),
        ),
        i = Vt(t, (o) => L.createShorthandPropertyAssignment(o.symbol.name));
      return r === void 0 ? i : i === void 0 ? r : r.concat(i);
    }
    function yv(e) {
      return Mo(e);
    }
    function w$e(e, t) {
      return yv(e.range)
        ? { pos: $a(e.range).getStart(t), end: Ba(e.range).getEnd() }
        : e.range;
    }
    function O$e(e, t, r, i, o, s) {
      const l = new Map(),
        u = [],
        d = [],
        _ = [],
        h = [],
        g = [],
        E = new Map(),
        A = [];
      let R;
      const N = yv(e.range)
        ? e.range.length === 1 && od(e.range[0])
          ? e.range[0].expression
          : void 0
        : e.range;
      let P;
      if (N === void 0) {
        const de = e.range,
          fe = $a(de).getStart(),
          ve = Ba(de).end;
        P = Oc(i, fe, ve - fe, Md.expressionExpected);
      } else
        o.getTypeAtLocation(N).flags & 147456 &&
          (P = Ar(N, Md.uselessConstantType));
      for (const de of t) {
        (u.push({
          usages: new Map(),
          typeParameterUsages: new Map(),
          substitutions: new Map(),
        }),
          d.push(new Map()),
          _.push([]));
        const fe = [];
        (P && fe.push(P),
          ui(de) && Ir(de) && fe.push(Ar(de, Md.cannotExtractToJSClass)),
          Xs(de) &&
            !ea(de.body) &&
            fe.push(Ar(de, Md.cannotExtractToExpressionArrowFunction)),
          h.push(fe));
      }
      const k = new Map(),
        W = yv(e.range) ? L.createBlock(e.range) : e.range,
        O = yv(e.range) ? $a(e.range) : e.range,
        G = j(O);
      if ((Z(W), G && !yv(e.range) && !i_(e.range))) {
        const de = o.getContextualType(e.range);
        J(de);
      }
      if (l.size > 0) {
        const de = new Map();
        let fe = 0;
        for (let ve = O; ve !== void 0 && fe < t.length; ve = ve.parent)
          if (
            (ve === t[fe] &&
              (de.forEach((xe, X) => {
                u[fe].typeParameterUsages.set(X, xe);
              }),
              fe++),
            EG(ve))
          )
            for (const xe of cb(ve)) {
              const X = o.getTypeAtLocation(xe);
              l.has(X.id.toString()) && de.set(X.id.toString(), X);
            }
        C.assert(fe === t.length, "Should have iterated all scopes");
      }
      if (g.length) {
        const de = SG(t[0], t[0].parent) ? t[0] : sh(t[0]);
        Jo(de, ie);
      }
      for (let de = 0; de < t.length; de++) {
        const fe = u[de];
        if (de > 0 && (fe.usages.size > 0 || fe.typeParameterUsages.size > 0)) {
          const X = yv(e.range) ? e.range[0] : e.range;
          h[de].push(Ar(X, Md.cannotAccessVariablesFromNestedScopes));
        }
        e.facts & 16 &&
          ui(t[de]) &&
          _[de].push(
            Ar(e.thisNode, Md.cannotExtractFunctionsContainingThisToMethod),
          );
        let ve = !1,
          xe;
        if (
          (u[de].usages.forEach((X) => {
            X.usage === 2 &&
              ((ve = !0),
              X.symbol.flags & 106500 &&
                X.symbol.valueDeclaration &&
                wp(X.symbol.valueDeclaration, 8) &&
                (xe = X.symbol.valueDeclaration));
          }),
          C.assert(
            yv(e.range) || A.length === 0,
            "No variable declarations expected if something was extracted",
          ),
          ve && !yv(e.range))
        ) {
          const X = Ar(e.range, Md.cannotWriteInExpression);
          (_[de].push(X), h[de].push(X));
        } else if (xe && de > 0) {
          const X = Ar(
            xe,
            Md.cannotExtractReadonlyPropertyInitializerOutsideConstructor,
          );
          (_[de].push(X), h[de].push(X));
        } else if (R) {
          const X = Ar(R, Md.cannotExtractExportedEntity);
          (_[de].push(X), h[de].push(X));
        }
      }
      return {
        target: W,
        usagesPerScope: u,
        functionErrorsPerScope: _,
        constantErrorsPerScope: h,
        exposedVariableDeclarations: A,
      };
      function j(de) {
        return !!Dn(de, (fe) => EG(fe) && cb(fe).length !== 0);
      }
      function J(de) {
        const fe = o.getSymbolWalker(
            () => (s.throwIfCancellationRequested(), !0),
          ),
          { visitedTypes: ve } = fe.walkType(de);
        for (const xe of ve)
          xe.isTypeParameter() && l.set(xe.id.toString(), xe);
      }
      function Z(de, fe = 1) {
        if (G) {
          const ve = o.getTypeAtLocation(de);
          J(ve);
        }
        if ((rd(de) && de.symbol && g.push(de), id(de)))
          (Z(de.left, 2), Z(de.right));
        else if (ute(de)) Z(de.operand, 2);
        else if (qr(de) || Ws(de)) Jo(de, Z);
        else if (He(de)) {
          if (
            !de.parent ||
            (ku(de.parent) && de !== de.parent.left) ||
            (qr(de.parent) && de !== de.parent.expression)
          )
            return;
          q(de, fe, Hh(de));
        } else Jo(de, Z);
      }
      function q(de, fe, ve) {
        const xe = ye(de, fe, ve);
        if (xe)
          for (let X = 0; X < t.length; X++) {
            const Ce = d[X].get(xe);
            Ce && u[X].substitutions.set(ls(de).toString(), Ce);
          }
      }
      function ye(de, fe, ve) {
        const xe = K(de);
        if (!xe) return;
        const X = Ta(xe).toString(),
          Ce = k.get(X);
        if (Ce && Ce >= fe) return X;
        if ((k.set(X, fe), Ce)) {
          for (const re of u)
            re.usages.get(de.text) &&
              re.usages.set(de.text, { usage: fe, symbol: xe, node: de });
          return X;
        }
        const Je = xe.getDeclarations(),
          Se = Je && hn(Je, (re) => re.getSourceFile() === i);
        if (Se && !vO(r, Se.getStart(), Se.end)) {
          if (e.facts & 2 && fe === 2) {
            const re = Ar(
              de,
              Md.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators,
            );
            for (const be of _) be.push(re);
            for (const be of h) be.push(re);
          }
          for (let re = 0; re < t.length; re++) {
            const be = t[re];
            if (
              o.resolveName(xe.name, be, xe.flags, !1) !== xe &&
              !d[re].has(X)
            ) {
              const Be = pe(xe.exportSymbol || xe, be, ve);
              if (Be) d[re].set(X, Be);
              else if (ve) {
                if (!(xe.flags & 262144)) {
                  const lt = Ar(de, Md.typeWillNotBeVisibleInTheNewScope);
                  (_[re].push(lt), h[re].push(lt));
                }
              } else
                u[re].usages.set(de.text, { usage: fe, symbol: xe, node: de });
            }
          }
          return X;
        }
      }
      function ie(de) {
        if (de === e.range || (yv(e.range) && e.range.includes(de))) return;
        const fe = He(de) ? K(de) : o.getSymbolAtLocation(de);
        if (fe) {
          const ve = hn(g, (xe) => xe.symbol === fe);
          if (ve)
            if (yi(ve)) {
              const xe = ve.symbol.id.toString();
              E.has(xe) || (A.push(ve), E.set(xe, !0));
            } else R = R || ve;
        }
        Jo(de, ie);
      }
      function K(de) {
        return de.parent && Ud(de.parent) && de.parent.name === de
          ? o.getShorthandAssignmentValueSymbol(de.parent)
          : o.getSymbolAtLocation(de);
      }
      function pe(de, fe, ve) {
        if (!de) return;
        const xe = de.getDeclarations();
        if (xe && xe.some((Ce) => Ce.parent === fe))
          return L.createIdentifier(de.name);
        const X = pe(de.parent, fe, ve);
        if (X !== void 0)
          return ve
            ? L.createQualifiedName(X, L.createIdentifier(de.name))
            : L.createPropertyAccessExpression(X, de.name);
      }
    }
    function W$e(e) {
      return Dn(e, (t) => t.parent && fDe(t) && !Nr(t.parent));
    }
    function fDe(e) {
      const { parent: t } = e;
      switch (t.kind) {
        case 307:
          return !1;
      }
      switch (e.kind) {
        case 11:
          return t.kind !== 273 && t.kind !== 277;
        case 231:
        case 207:
        case 209:
          return !1;
        case 80:
          return t.kind !== 209 && t.kind !== 277 && t.kind !== 282;
      }
      return !0;
    }
    function Jde(e) {
      return (
        Kde(e) || ((r_(e) || I1(e) || e0(e)) && (r_(e.parent) || e0(e.parent)))
      );
    }
    function Kde(e) {
      return ka(e) && e.parent && i_(e.parent);
    }
    var F$e = {},
      nK = "Generate 'get' and 'set' accessors",
      Xde = Ho(f.Generate_get_and_set_accessors),
      Yde = {
        name: nK,
        description: Xde,
        kind: "refactor.rewrite.property.generateAccessors",
      };
    Dg(nK, {
      kinds: [Yde.kind],
      getEditsForAction: function (t, r) {
        if (!t.endPosition) return;
        const i = cu.getAccessorConvertiblePropertyAtPosition(
          t.file,
          t.program,
          t.startPosition,
          t.endPosition,
        );
        C.assert(i && !gy(i), "Expected applicable refactor info");
        const o = cu.generateAccessorFromProperty(
          t.file,
          t.program,
          t.startPosition,
          t.endPosition,
          t,
          r,
        );
        if (!o) return;
        const s = t.file.fileName,
          l = i.renameAccessor ? i.accessorName : i.fieldName,
          d = (He(l) ? 0 : -1) + DO(o, s, l.text, to(i.declaration));
        return { renameFilename: s, renameLocation: d, edits: o };
      },
      getAvailableActions(e) {
        if (!e.endPosition) return ae;
        const t = cu.getAccessorConvertiblePropertyAtPosition(
          e.file,
          e.program,
          e.startPosition,
          e.endPosition,
          e.triggerReason === "invoked",
        );
        return t
          ? gy(t)
            ? e.preferences.provideRefactorNotApplicableReason
              ? [
                  {
                    name: nK,
                    description: Xde,
                    actions: [{ ...Yde, notApplicableReason: t.error }],
                  },
                ]
              : ae
            : [{ name: nK, description: Xde, actions: [Yde] }]
          : ae;
      },
    });
    var z$e = {},
      rK = "Infer function return type",
      $de = Ho(f.Infer_function_return_type),
      iK = {
        name: rK,
        description: $de,
        kind: "refactor.rewrite.function.returnType",
      };
    Dg(rK, {
      kinds: [iK.kind],
      getEditsForAction: B$e,
      getAvailableActions: G$e,
    });
    function B$e(e) {
      const t = mDe(e);
      if (t && !gy(t))
        return {
          renameFilename: void 0,
          renameLocation: void 0,
          edits: Rr.ChangeTracker.with(e, (i) =>
            V$e(e.file, i, t.declaration, t.returnTypeNode),
          ),
        };
    }
    function G$e(e) {
      const t = mDe(e);
      return t
        ? gy(t)
          ? e.preferences.provideRefactorNotApplicableReason
            ? [
                {
                  name: rK,
                  description: $de,
                  actions: [{ ...iK, notApplicableReason: t.error }],
                },
              ]
            : ae
          : [{ name: rK, description: $de, actions: [iK] }]
        : ae;
    }
    function V$e(e, t, r, i) {
      const o = Es(r, 22, e),
        s = Xs(r) && o === void 0,
        l = s ? $a(r.parameters) : o;
      l &&
        (s &&
          (t.insertNodeBefore(e, l, L.createToken(21)),
          t.insertNodeAfter(e, l, L.createToken(22))),
        t.insertNodeAt(e, l.end, i, { prefix: ": " }));
    }
    function mDe(e) {
      if (Ir(e.file) || !h0(iK.kind, e.kind)) return;
      const t = ip(e.file, e.startPosition),
        r = Dn(t, (l) =>
          ea(l) ||
          (l.parent && Xs(l.parent) && (l.kind === 39 || l.parent.body === l))
            ? "quit"
            : j$e(l),
        );
      if (!r || !r.body || r.type)
        return { error: Ho(f.Return_type_must_be_inferred_from_a_function) };
      const i = e.program.getTypeChecker();
      let o;
      if (i.isImplementationOfOverload(r)) {
        const l = i.getTypeAtLocation(r).getCallSignatures();
        l.length > 1 && (o = i.getUnionType(Ui(l, (u) => u.getReturnType())));
      }
      if (!o) {
        const l = i.getSignatureFromDeclaration(r);
        if (l) {
          const u = i.getTypePredicateOfSignature(l);
          if (u && u.type) {
            const d = i.typePredicateToTypePredicateNode(u, r, 1, 8);
            if (d) return { declaration: r, returnTypeNode: d };
          } else o = i.getReturnTypeOfSignature(l);
        }
      }
      if (!o) return { error: Ho(f.Could_not_determine_function_return_type) };
      const s = i.typeToTypeNode(o, r, 1, 8);
      if (s) return { declaration: r, returnTypeNode: s };
    }
    function j$e(e) {
      switch (e.kind) {
        case 263:
        case 219:
        case 220:
        case 175:
          return !0;
        default:
          return !1;
      }
    }
    var hDe = ((e) => (
        (e[(e.typeOffset = 8)] = "typeOffset"),
        (e[(e.modifierMask = 255)] = "modifierMask"),
        e
      ))(hDe || {}),
      _De = ((e) => (
        (e[(e.class = 0)] = "class"),
        (e[(e.enum = 1)] = "enum"),
        (e[(e.interface = 2)] = "interface"),
        (e[(e.namespace = 3)] = "namespace"),
        (e[(e.typeParameter = 4)] = "typeParameter"),
        (e[(e.type = 5)] = "type"),
        (e[(e.parameter = 6)] = "parameter"),
        (e[(e.variable = 7)] = "variable"),
        (e[(e.enumMember = 8)] = "enumMember"),
        (e[(e.property = 9)] = "property"),
        (e[(e.function = 10)] = "function"),
        (e[(e.member = 11)] = "member"),
        e
      ))(_De || {}),
      gDe = ((e) => (
        (e[(e.declaration = 0)] = "declaration"),
        (e[(e.static = 1)] = "static"),
        (e[(e.async = 2)] = "async"),
        (e[(e.readonly = 3)] = "readonly"),
        (e[(e.defaultLibrary = 4)] = "defaultLibrary"),
        (e[(e.local = 5)] = "local"),
        e
      ))(gDe || {});
    function yDe(e, t, r, i) {
      const o = Qde(e, t, r, i);
      C.assert(o.spans.length % 3 === 0);
      const s = o.spans,
        l = [];
      for (let u = 0; u < s.length; u += 3)
        l.push({ textSpan: Id(s[u], s[u + 1]), classificationType: s[u + 2] });
      return l;
    }
    function Qde(e, t, r, i) {
      return { spans: U$e(e, r, i, t), endOfLineState: 0 };
    }
    function U$e(e, t, r, i) {
      const o = [];
      return (
        e &&
          t &&
          H$e(
            e,
            t,
            r,
            (l, u, d) => {
              o.push(l.getStart(t), l.getWidth(t), ((u + 1) << 8) + d);
            },
            i,
          ),
        o
      );
    }
    function H$e(e, t, r, i, o) {
      const s = e.getTypeChecker();
      let l = !1;
      function u(d) {
        switch (d.kind) {
          case 268:
          case 264:
          case 265:
          case 263:
          case 232:
          case 219:
          case 220:
            o.throwIfCancellationRequested();
        }
        if (!d || !M2(r, d.pos, d.getFullWidth()) || d.getFullWidth() === 0)
          return;
        const _ = l;
        if (
          ((r_(d) || I1(d)) && (l = !0),
          ID(d) && (l = !1),
          He(d) && !l && !X$e(d) && !NM(d.escapedText))
        ) {
          let h = s.getSymbolAtLocation(d);
          if (h) {
            h.flags & 2097152 && (h = s.getAliasedSymbol(h));
            let g = q$e(h, W1(d));
            if (g !== void 0) {
              let E = 0;
              (d.parent &&
                (Ha(d.parent) || TDe.get(d.parent.kind) === g) &&
                d.parent.name === d &&
                (E = 1),
                g === 6 && bDe(d) && (g = 9),
                (g = J$e(s, d, g)));
              const A = h.valueDeclaration;
              if (A) {
                const R = PT(A),
                  N = ty(A);
                (R & 256 && (E |= 2),
                  R & 1024 && (E |= 4),
                  g !== 0 &&
                    g !== 2 &&
                    (R & 8 || N & 2 || h.getFlags() & 8) &&
                    (E |= 8),
                  (g === 7 || g === 10) && K$e(A, t) && (E |= 32),
                  e.isSourceFileDefaultLibrary(A.getSourceFile()) && (E |= 16));
              } else
                h.declarations &&
                  h.declarations.some((R) =>
                    e.isSourceFileDefaultLibrary(R.getSourceFile()),
                  ) &&
                  (E |= 16);
              i(d, g, E);
            }
          }
        }
        (Jo(d, u), (l = _));
      }
      u(t);
    }
    function q$e(e, t) {
      const r = e.getFlags();
      if (r & 32) return 0;
      if (r & 384) return 1;
      if (r & 524288) return 5;
      if (r & 64) {
        if (t & 2) return 2;
      } else if (r & 262144) return 4;
      let i = e.valueDeclaration || (e.declarations && e.declarations[0]);
      return (i && Ha(i) && (i = vDe(i)), i && TDe.get(i.kind));
    }
    function J$e(e, t, r) {
      if (r === 7 || r === 9 || r === 6) {
        const i = e.getTypeAtLocation(t);
        if (i) {
          const o = (s) => s(i) || (i.isUnion() && i.types.some(s));
          if (r !== 6 && o((s) => s.getConstructSignatures().length > 0))
            return 0;
          if (
            (o((s) => s.getCallSignatures().length > 0) &&
              !o((s) => s.getProperties().length > 0)) ||
            Y$e(t)
          )
            return r === 9 ? 11 : 10;
        }
      }
      return r;
    }
    function K$e(e, t) {
      return (
        Ha(e) && (e = vDe(e)),
        yi(e)
          ? (!Yi(e.parent.parent.parent) || US(e.parent)) &&
            e.getSourceFile() === t
          : Zl(e)
            ? !Yi(e.parent) && e.getSourceFile() === t
            : !1
      );
    }
    function vDe(e) {
      for (;;)
        if (Ha(e.parent.parent)) e = e.parent.parent;
        else return e.parent.parent;
    }
    function X$e(e) {
      const t = e.parent;
      return t && (Vm(t) || Eu(t) || Ig(t));
    }
    function Y$e(e) {
      for (; bDe(e); ) e = e.parent;
      return Zo(e.parent) && e.parent.expression === e;
    }
    function bDe(e) {
      return (
        (ku(e.parent) && e.parent.right === e) ||
        (qr(e.parent) && e.parent.name === e)
      );
    }
    var TDe = new Map([
        [261, 7],
        [170, 6],
        [173, 9],
        [268, 3],
        [267, 1],
        [307, 8],
        [264, 0],
        [175, 11],
        [263, 10],
        [219, 10],
        [174, 11],
        [178, 9],
        [179, 9],
        [172, 9],
        [265, 2],
        [266, 5],
        [169, 4],
        [304, 9],
        [305, 9],
      ]),
      SDe = "0.8";
    function EDe(e, t, r, i) {
      const o = gF(e)
        ? new Zde(e, t, r)
        : e === 80
          ? new IDe(80, t, r)
          : e === 81
            ? new xDe(81, t, r)
            : new ADe(e, t, r);
      return ((o.parent = i), (o.flags = i.flags & 101441536), o);
    }
    var Zde = class {
      constructor(e, t, r) {
        ((this.pos = t),
          (this.end = r),
          (this.kind = e),
          (this.id = 0),
          (this.flags = 0),
          (this.modifierFlagsCache = 0),
          (this.transformFlags = 0),
          (this.parent = void 0),
          (this.original = void 0),
          (this.emitNode = void 0));
      }
      assertHasRealPosition(e) {
        C.assert(
          !dh(this.pos) && !dh(this.end),
          e || "Node must have a real position for this operation",
        );
      }
      getSourceFile() {
        return Wn(this);
      }
      getStart(e, t) {
        return (this.assertHasRealPosition(), gb(this, e, t));
      }
      getFullStart() {
        return (this.assertHasRealPosition(), this.pos);
      }
      getEnd() {
        return (this.assertHasRealPosition(), this.end);
      }
      getWidth(e) {
        return (this.assertHasRealPosition(), this.getEnd() - this.getStart(e));
      }
      getFullWidth() {
        return (this.assertHasRealPosition(), this.end - this.pos);
      }
      getLeadingTriviaWidth(e) {
        return (this.assertHasRealPosition(), this.getStart(e) - this.pos);
      }
      getFullText(e) {
        return (
          this.assertHasRealPosition(),
          (e || this.getSourceFile()).text.substring(this.pos, this.end)
        );
      }
      getText(e) {
        return (
          this.assertHasRealPosition(),
          e || (e = this.getSourceFile()),
          e.text.substring(this.getStart(e), this.getEnd())
        );
      }
      getChildCount(e) {
        return this.getChildren(e).length;
      }
      getChildAt(e, t) {
        return this.getChildren(t)[e];
      }
      getChildren(e = Wn(this)) {
        return (
          this.assertHasRealPosition(
            "Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine",
          ),
          Lj(this, e) ?? Fie(this, e, $$e(this, e))
        );
      }
      getFirstToken(e) {
        this.assertHasRealPosition();
        const t = this.getChildren(e);
        if (!t.length) return;
        const r = hn(t, (i) => i.kind < 310 || i.kind > 352);
        return r.kind < 167 ? r : r.getFirstToken(e);
      }
      getLastToken(e) {
        this.assertHasRealPosition();
        const t = this.getChildren(e),
          r = Zs(t);
        if (r) return r.kind < 167 ? r : r.getLastToken(e);
      }
      forEachChild(e, t) {
        return Jo(this, e, t);
      }
    };
    function $$e(e, t) {
      const r = [];
      if (IF(e))
        return (
          e.forEachChild((l) => {
            r.push(l);
          }),
          r
        );
      yd.setText((t || e.getSourceFile()).text);
      let i = e.pos;
      const o = (l) => {
          (rz(r, i, l.pos, e), r.push(l), (i = l.end));
        },
        s = (l) => {
          (rz(r, i, l.pos, e), r.push(Q$e(l, e)), (i = l.end));
        };
      return (
        Ye(e.jsDoc, o),
        (i = e.pos),
        e.forEachChild(o, s),
        rz(r, i, e.end, e),
        yd.setText(void 0),
        r
      );
    }
    function rz(e, t, r, i) {
      for (yd.resetTokenState(t); t < r; ) {
        const o = yd.scan(),
          s = yd.getTokenEnd();
        if (s <= r) {
          if (o === 80) {
            if (Ore(i)) continue;
            C.fail(
              `Did not expect ${C.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`,
            );
          }
          e.push(EDe(o, t, s, i));
        }
        if (((t = s), o === 1)) break;
      }
    }
    function Q$e(e, t) {
      const r = EDe(353, e.pos, e.end, t),
        i = [];
      let o = e.pos;
      for (const s of e) (rz(i, o, s.pos, t), i.push(s), (o = s.end));
      return (rz(i, o, e.end, t), (r._children = i), r);
    }
    var eue = class {
        constructor(e, t, r) {
          ((this.pos = t),
            (this.end = r),
            (this.kind = e),
            (this.id = 0),
            (this.flags = 0),
            (this.transformFlags = 0),
            (this.parent = void 0),
            (this.emitNode = void 0));
        }
        getSourceFile() {
          return Wn(this);
        }
        getStart(e, t) {
          return gb(this, e, t);
        }
        getFullStart() {
          return this.pos;
        }
        getEnd() {
          return this.end;
        }
        getWidth(e) {
          return this.getEnd() - this.getStart(e);
        }
        getFullWidth() {
          return this.end - this.pos;
        }
        getLeadingTriviaWidth(e) {
          return this.getStart(e) - this.pos;
        }
        getFullText(e) {
          return (e || this.getSourceFile()).text.substring(this.pos, this.end);
        }
        getText(e) {
          return (
            e || (e = this.getSourceFile()),
            e.text.substring(this.getStart(e), this.getEnd())
          );
        }
        getChildCount() {
          return this.getChildren().length;
        }
        getChildAt(e) {
          return this.getChildren()[e];
        }
        getChildren() {
          return (this.kind === 1 && this.jsDoc) || ae;
        }
        getFirstToken() {}
        getLastToken() {}
        forEachChild() {}
      },
      Z$e = class {
        constructor(e, t) {
          ((this.flags = e),
            (this.escapedName = t),
            (this.declarations = void 0),
            (this.valueDeclaration = void 0),
            (this.id = 0),
            (this.mergeId = 0),
            (this.parent = void 0),
            (this.members = void 0),
            (this.exports = void 0),
            (this.exportSymbol = void 0),
            (this.constEnumOnlyModule = void 0),
            (this.isReferenced = void 0),
            (this.lastAssignmentPos = void 0),
            (this.links = void 0));
        }
        getFlags() {
          return this.flags;
        }
        get name() {
          return wl(this);
        }
        getEscapedName() {
          return this.escapedName;
        }
        getName() {
          return this.name;
        }
        getDeclarations() {
          return this.declarations;
        }
        getDocumentationComment(e) {
          if (!this.documentationComment)
            if (
              ((this.documentationComment = ae),
              !this.declarations &&
                pg(this) &&
                this.links.target &&
                pg(this.links.target) &&
                this.links.target.links.tupleLabelDeclaration)
            ) {
              const t = this.links.target.links.tupleLabelDeclaration;
              this.documentationComment = iz([t], e);
            } else this.documentationComment = iz(this.declarations, e);
          return this.documentationComment;
        }
        getContextualDocumentationComment(e, t) {
          if (e) {
            if (
              ug(e) &&
              (this.contextualGetAccessorDocumentationComment ||
                ((this.contextualGetAccessorDocumentationComment = ae),
                (this.contextualGetAccessorDocumentationComment = iz(
                  Un(this.declarations, ug),
                  t,
                ))),
              et(this.contextualGetAccessorDocumentationComment))
            )
              return this.contextualGetAccessorDocumentationComment;
            if (
              Vh(e) &&
              (this.contextualSetAccessorDocumentationComment ||
                ((this.contextualSetAccessorDocumentationComment = ae),
                (this.contextualSetAccessorDocumentationComment = iz(
                  Un(this.declarations, Vh),
                  t,
                ))),
              et(this.contextualSetAccessorDocumentationComment))
            )
              return this.contextualSetAccessorDocumentationComment;
          }
          return this.getDocumentationComment(t);
        }
        getJsDocTags(e) {
          return (
            this.tags === void 0 &&
              ((this.tags = ae), (this.tags = oK(this.declarations, e))),
            this.tags
          );
        }
        getContextualJsDocTags(e, t) {
          if (e) {
            if (
              ug(e) &&
              (this.contextualGetAccessorTags ||
                ((this.contextualGetAccessorTags = ae),
                (this.contextualGetAccessorTags = oK(
                  Un(this.declarations, ug),
                  t,
                ))),
              et(this.contextualGetAccessorTags))
            )
              return this.contextualGetAccessorTags;
            if (
              Vh(e) &&
              (this.contextualSetAccessorTags ||
                ((this.contextualSetAccessorTags = ae),
                (this.contextualSetAccessorTags = oK(
                  Un(this.declarations, Vh),
                  t,
                ))),
              et(this.contextualSetAccessorTags))
            )
              return this.contextualSetAccessorTags;
          }
          return this.getJsDocTags(t);
        }
      },
      ADe = class extends eue {
        constructor(e, t, r) {
          super(e, t, r);
        }
      },
      IDe = class extends eue {
        constructor(e, t, r) {
          super(e, t, r);
        }
        get text() {
          return Kr(this);
        }
      },
      xDe = class extends eue {
        constructor(e, t, r) {
          super(e, t, r);
        }
        get text() {
          return Kr(this);
        }
      },
      eQe = class {
        constructor(e, t) {
          ((this.flags = t), (this.checker = e));
        }
        getFlags() {
          return this.flags;
        }
        getSymbol() {
          return this.symbol;
        }
        getProperties() {
          return this.checker.getPropertiesOfType(this);
        }
        getProperty(e) {
          return this.checker.getPropertyOfType(this, e);
        }
        getApparentProperties() {
          return this.checker.getAugmentedPropertiesOfType(this);
        }
        getCallSignatures() {
          return this.checker.getSignaturesOfType(this, 0);
        }
        getConstructSignatures() {
          return this.checker.getSignaturesOfType(this, 1);
        }
        getStringIndexType() {
          return this.checker.getIndexTypeOfType(this, 0);
        }
        getNumberIndexType() {
          return this.checker.getIndexTypeOfType(this, 1);
        }
        getBaseTypes() {
          return this.isClassOrInterface()
            ? this.checker.getBaseTypes(this)
            : void 0;
        }
        isNullableType() {
          return this.checker.isNullableType(this);
        }
        getNonNullableType() {
          return this.checker.getNonNullableType(this);
        }
        getNonOptionalType() {
          return this.checker.getNonOptionalType(this);
        }
        getConstraint() {
          return this.checker.getBaseConstraintOfType(this);
        }
        getDefault() {
          return this.checker.getDefaultFromTypeParameter(this);
        }
        isUnion() {
          return !!(this.flags & 1048576);
        }
        isIntersection() {
          return !!(this.flags & 2097152);
        }
        isUnionOrIntersection() {
          return !!(this.flags & 3145728);
        }
        isLiteral() {
          return !!(this.flags & 2432);
        }
        isStringLiteral() {
          return !!(this.flags & 128);
        }
        isNumberLiteral() {
          return !!(this.flags & 256);
        }
        isTypeParameter() {
          return !!(this.flags & 262144);
        }
        isClassOrInterface() {
          return !!(Hr(this) & 3);
        }
        isClass() {
          return !!(Hr(this) & 1);
        }
        isIndexType() {
          return !!(this.flags & 4194304);
        }
        get typeArguments() {
          if (Hr(this) & 4) return this.checker.getTypeArguments(this);
        }
      },
      tQe = class {
        constructor(e, t) {
          ((this.flags = t), (this.checker = e));
        }
        getDeclaration() {
          return this.declaration;
        }
        getTypeParameters() {
          return this.typeParameters;
        }
        getParameters() {
          return this.parameters;
        }
        getReturnType() {
          return this.checker.getReturnTypeOfSignature(this);
        }
        getTypeParameterAtPosition(e) {
          const t = this.checker.getParameterType(this, e);
          if (t.isIndexType() && MM(t.type)) {
            const r = t.type.getConstraint();
            if (r) return this.checker.getIndexType(r);
          }
          return t;
        }
        getDocumentationComment() {
          return (
            this.documentationComment ||
            (this.documentationComment = iz(eI(this.declaration), this.checker))
          );
        }
        getJsDocTags() {
          return (
            this.jsDocTags ||
            (this.jsDocTags = oK(eI(this.declaration), this.checker))
          );
        }
      };
    function RDe(e) {
      return kT(e).some(
        (t) =>
          t.tagName.text === "inheritDoc" || t.tagName.text === "inheritdoc",
      );
    }
    function oK(e, t) {
      if (!e) return ae;
      let r = y0.getJsDocTagsFromDeclarations(e, t);
      if (t && (r.length === 0 || e.some(RDe))) {
        const i = new Set();
        for (const o of e) {
          const s = DDe(t, o, (l) => {
            var u;
            if (!i.has(l))
              return (
                i.add(l),
                o.kind === 178 || o.kind === 179
                  ? l.getContextualJsDocTags(o, t)
                  : ((u = l.declarations) == null ? void 0 : u.length) === 1
                    ? l.getJsDocTags(t)
                    : void 0
              );
          });
          s && (r = [...s, ...r]);
        }
      }
      return r;
    }
    function iz(e, t) {
      if (!e) return ae;
      let r = y0.getJsDocCommentsFromDeclarations(e, t);
      if (t && (r.length === 0 || e.some(RDe))) {
        const i = new Set();
        for (const o of e) {
          const s = DDe(t, o, (l) => {
            if (!i.has(l))
              return (
                i.add(l),
                o.kind === 178 || o.kind === 179
                  ? l.getContextualDocumentationComment(o, t)
                  : l.getDocumentationComment(t)
              );
          });
          s && (r = r.length === 0 ? s.slice() : s.concat(iC(), r));
        }
      }
      return r;
    }
    function DDe(e, t, r) {
      var i;
      const o =
        ((i = t.parent) == null ? void 0 : i.kind) === 177
          ? t.parent.parent
          : t.parent;
      if (!o) return;
      const s = wc(t);
      return Hn(rM(o), (l) => {
        const u = e.getTypeAtLocation(l),
          d = s && u.symbol ? e.getTypeOfSymbol(u.symbol) : u,
          _ = e.getPropertyOfType(d, t.symbol.name);
        return _ ? r(_) : void 0;
      });
    }
    var nQe = class extends Zde {
        constructor(e, t, r) {
          super(e, t, r);
        }
        update(e, t) {
          return Kj(this, e, t);
        }
        getLineAndCharacterOfPosition(e) {
          return ca(this, e);
        }
        getLineStarts() {
          return ag(this);
        }
        getPositionOfLineAndCharacter(e, t, r) {
          return aF(ag(this), e, t, this.text, r);
        }
        getLineEndOfPosition(e) {
          const { line: t } = this.getLineAndCharacterOfPosition(e),
            r = this.getLineStarts();
          let i;
          (t + 1 >= r.length && (i = this.getEnd()), i || (i = r[t + 1] - 1));
          const o = this.getFullText();
          return o[i] ===
            `
` && o[i - 1] === "\r"
            ? i - 1
            : i;
        }
        getNamedDeclarations() {
          return (
            this.namedDeclarations ||
              (this.namedDeclarations = this.computeNamedDeclarations()),
            this.namedDeclarations
          );
        }
        computeNamedDeclarations() {
          const e = cm();
          return (this.forEachChild(o), e);
          function t(s) {
            const l = i(s);
            l && e.add(l, s);
          }
          function r(s) {
            let l = e.get(s);
            return (l || e.set(s, (l = [])), l);
          }
          function i(s) {
            const l = cF(s);
            return (
              l &&
              (va(l) && qr(l.expression)
                ? l.expression.name.text
                : vc(l)
                  ? AO(l)
                  : void 0)
            );
          }
          function o(s) {
            switch (s.kind) {
              case 263:
              case 219:
              case 175:
              case 174:
                const l = s,
                  u = i(l);
                if (u) {
                  const h = r(u),
                    g = Zs(h);
                  g && l.parent === g.parent && l.symbol === g.symbol
                    ? l.body && !g.body && (h[h.length - 1] = l)
                    : h.push(l);
                }
                Jo(s, o);
                break;
              case 264:
              case 232:
              case 265:
              case 266:
              case 267:
              case 268:
              case 272:
              case 282:
              case 277:
              case 274:
              case 275:
              case 178:
              case 179:
              case 188:
                (t(s), Jo(s, o));
                break;
              case 170:
                if (!di(s, 31)) break;
              case 261:
              case 209: {
                const h = s;
                if (Qo(h.name)) {
                  Jo(h.name, o);
                  break;
                }
                h.initializer && o(h.initializer);
              }
              case 307:
              case 173:
              case 172:
                t(s);
                break;
              case 279:
                const d = s;
                d.exportClause &&
                  (Jf(d.exportClause)
                    ? Ye(d.exportClause.elements, o)
                    : o(d.exportClause.name));
                break;
              case 273:
                const _ = s.importClause;
                _ &&
                  (_.name && t(_.name),
                  _.namedBindings &&
                    (_.namedBindings.kind === 275
                      ? t(_.namedBindings)
                      : Ye(_.namedBindings.elements, o)));
                break;
              case 227:
                oc(s) !== 0 && t(s);
              default:
                Jo(s, o);
            }
          }
        }
      },
      rQe = class {
        constructor(e, t, r) {
          ((this.fileName = e),
            (this.text = t),
            (this.skipTrivia = r || ((i) => i)));
        }
        getLineAndCharacterOfPosition(e) {
          return ca(this, e);
        }
      };
    function iQe() {
      return {
        getNodeConstructor: () => Zde,
        getTokenConstructor: () => ADe,
        getIdentifierConstructor: () => IDe,
        getPrivateIdentifierConstructor: () => xDe,
        getSourceFileConstructor: () => nQe,
        getSymbolConstructor: () => Z$e,
        getTypeConstructor: () => eQe,
        getSignatureConstructor: () => tQe,
        getSourceMapSourceConstructor: () => rQe,
      };
    }
    function GO(e) {
      let t = !0;
      for (const i in e)
        if (Rs(e, i) && !CDe(i)) {
          t = !1;
          break;
        }
      if (t) return e;
      const r = {};
      for (const i in e)
        if (Rs(e, i)) {
          const o = CDe(i) ? i : i.charAt(0).toLowerCase() + i.substr(1);
          r[o] = e[i];
        }
      return r;
    }
    function CDe(e) {
      return !e.length || e.charAt(0) === e.charAt(0).toLowerCase();
    }
    function VO(e) {
      return e ? Vt(e, (t) => t.text).join("") : "";
    }
    function oz() {
      return { target: 1, jsx: 1 };
    }
    function aK() {
      return cu.getSupportedErrorCodes();
    }
    var oQe = class {
      constructor(e) {
        this.host = e;
      }
      getCurrentSourceFile(e) {
        var t, r, i, o, s, l, u, d;
        const _ = this.host.getScriptSnapshot(e);
        if (!_) throw new Error("Could not find file: '" + e + "'.");
        const h = sJ(e, this.host),
          g = this.host.getScriptVersion(e);
        let E;
        if (this.currentFileName !== e) {
          const A = {
            languageVersion: 99,
            impliedNodeFormat: iO(
              ks(
                e,
                this.host.getCurrentDirectory(),
                ((i =
                  (r = (t = this.host).getCompilerHost) == null
                    ? void 0
                    : r.call(t)) == null
                  ? void 0
                  : i.getCanonicalFileName) || ay(this.host),
              ),
              (d =
                (u =
                  (l =
                    (s = (o = this.host).getCompilerHost) == null
                      ? void 0
                      : s.call(o)) == null
                    ? void 0
                    : l.getModuleResolutionCache) == null
                  ? void 0
                  : u.call(l)) == null
                ? void 0
                : d.getPackageJsonInfoCache(),
              this.host,
              this.host.getCompilationSettings(),
            ),
            setExternalModuleIndicator: Uk(this.host.getCompilationSettings()),
            jsDocParsingMode: 0,
          };
          E = az(e, _, A, g, !0, h);
        } else if (this.currentFileVersion !== g) {
          const A = _.getChangeRange(this.currentFileScriptSnapshot);
          E = sK(this.currentSourceFile, _, g, A);
        }
        return (
          E &&
            ((this.currentFileVersion = g),
            (this.currentFileName = e),
            (this.currentFileScriptSnapshot = _),
            (this.currentSourceFile = E)),
          this.currentSourceFile
        );
      }
    };
    function NDe(e, t, r) {
      ((e.version = r), (e.scriptSnapshot = t));
    }
    function az(e, t, r, i, o, s) {
      const l = tx(e, fx(t), r, o, s);
      return (NDe(l, t, i), l);
    }
    function sK(e, t, r, i, o) {
      if (i && r !== e.version) {
        let l;
        const u = i.span.start !== 0 ? e.text.substr(0, i.span.start) : "",
          d = Dl(i.span) !== e.text.length ? e.text.substr(Dl(i.span)) : "";
        if (i.newLength === 0) l = u && d ? u + d : u || d;
        else {
          const h = t.getText(i.span.start, i.span.start + i.newLength);
          l = u && d ? u + h + d : u ? u + h : h + d;
        }
        const _ = Kj(e, l, i, o);
        return (
          NDe(_, t, r),
          (_.nameTable = void 0),
          e !== _ &&
            e.scriptSnapshot &&
            (e.scriptSnapshot.dispose && e.scriptSnapshot.dispose(),
            (e.scriptSnapshot = void 0)),
          _
        );
      }
      const s = {
        languageVersion: e.languageVersion,
        impliedNodeFormat: e.impliedNodeFormat,
        setExternalModuleIndicator: e.setExternalModuleIndicator,
        jsDocParsingMode: e.jsDocParsingMode,
      };
      return az(e.fileName, t, s, r, !0, e.scriptKind);
    }
    var aQe = { isCancellationRequested: Qg, throwIfCancellationRequested: gs },
      sQe = class {
        constructor(e) {
          this.cancellationToken = e;
        }
        isCancellationRequested() {
          return this.cancellationToken.isCancellationRequested();
        }
        throwIfCancellationRequested() {
          var e;
          if (this.isCancellationRequested())
            throw (
              (e = xr) == null ||
                e.instant(xr.Phase.Session, "cancellationThrown", {
                  kind: "CancellationTokenObject",
                }),
              new TN()
            );
        }
      },
      tue = class {
        constructor(e, t = 20) {
          ((this.hostCancellationToken = e),
            (this.throttleWaitMilliseconds = t),
            (this.lastCancellationCheckTime = 0));
        }
        isCancellationRequested() {
          const e = Ls();
          return Math.abs(e - this.lastCancellationCheckTime) >=
            this.throttleWaitMilliseconds
            ? ((this.lastCancellationCheckTime = e),
              this.hostCancellationToken.isCancellationRequested())
            : !1;
        }
        throwIfCancellationRequested() {
          var e;
          if (this.isCancellationRequested())
            throw (
              (e = xr) == null ||
                e.instant(xr.Phase.Session, "cancellationThrown", {
                  kind: "ThrottledCancellationToken",
                }),
              new TN()
            );
        }
      },
      MDe = [
        "getSemanticDiagnostics",
        "getSuggestionDiagnostics",
        "getCompilerOptionsDiagnostics",
        "getSemanticClassifications",
        "getEncodedSemanticClassifications",
        "getCodeFixesAtPosition",
        "getCombinedCodeFix",
        "applyCodeActionCommand",
        "organizeImports",
        "getEditsForFileRename",
        "getEmitOutput",
        "getApplicableRefactors",
        "getEditsForRefactor",
        "prepareCallHierarchy",
        "provideCallHierarchyIncomingCalls",
        "provideCallHierarchyOutgoingCalls",
        "provideInlayHints",
        "getSupportedCodeFixes",
        "getPasteEdits",
      ],
      lQe = [
        ...MDe,
        "getCompletionsAtPosition",
        "getCompletionEntryDetails",
        "getCompletionEntrySymbol",
        "getSignatureHelpItems",
        "getQuickInfoAtPosition",
        "getDefinitionAtPosition",
        "getDefinitionAndBoundSpan",
        "getImplementationAtPosition",
        "getTypeDefinitionAtPosition",
        "getReferencesAtPosition",
        "findReferences",
        "getDocumentHighlights",
        "getNavigateToItems",
        "getRenameInfo",
        "findRenameLocations",
        "getApplicableRefactors",
        "preparePasteEditsForFile",
      ];
    function nue(
      e,
      t = xce(
        e.useCaseSensitiveFileNames && e.useCaseSensitiveFileNames(),
        e.getCurrentDirectory(),
        e.jsDocParsingMode,
      ),
      r,
    ) {
      var i;
      let o;
      r === void 0
        ? (o = 0)
        : typeof r == "boolean"
          ? (o = r ? 2 : 0)
          : (o = r);
      const s = new oQe(e);
      let l,
        u,
        d = 0;
      const _ = e.getCancellationToken
          ? new sQe(e.getCancellationToken())
          : aQe,
        h = e.getCurrentDirectory();
      ore((i = e.getLocalizedDiagnosticMessages) == null ? void 0 : i.bind(e));
      function g(ft) {
        e.log && e.log(ft);
      }
      const E = d1(e),
        A = Fd(E),
        R = Bce({
          useCaseSensitiveFileNames: () => E,
          getCurrentDirectory: () => h,
          getProgram: W,
          fileExists: ia(e, e.fileExists),
          readFile: ia(e, e.readFile),
          getDocumentPositionMapper: ia(e, e.getDocumentPositionMapper),
          getSourceFileLike: ia(e, e.getSourceFileLike),
          log: g,
        });
      function N(ft) {
        const Mt = l.getSourceFile(ft);
        if (!Mt) {
          const jt = new Error(`Could not find source file: '${ft}'.`);
          throw (
            (jt.ProgramFiles = l.getSourceFiles().map((Qt) => Qt.fileName)),
            jt
          );
        }
        return Mt;
      }
      function P() {
        e.updateFromProject && !e.updateFromProjectInProgress
          ? e.updateFromProject()
          : k();
      }
      function k() {
        var ft, Mt, jt;
        if ((C.assert(o !== 2), e.getProjectVersion)) {
          const Lo = e.getProjectVersion();
          if (Lo) {
            if (
              u === Lo &&
              !(
                (ft = e.hasChangedAutomaticTypeDirectiveNames) != null &&
                ft.call(e)
              )
            )
              return;
            u = Lo;
          }
        }
        const Qt = e.getTypeRootsVersion ? e.getTypeRootsVersion() : 0;
        d !== Qt &&
          (g("TypeRoots version has changed; provide new program"),
          (l = void 0),
          (d = Qt));
        const In = e.getScriptFileNames().slice(),
          yn = e.getCompilationSettings() || oz(),
          wt = e.hasInvalidatedResolutions || Qg,
          En = ia(e, e.hasInvalidatedLibResolutions) || Qg,
          xn = ia(e, e.hasChangedAutomaticTypeDirectiveNames),
          Ln = (Mt = e.getProjectReferences) == null ? void 0 : Mt.call(e);
        let ln,
          Ii = {
            getSourceFile: ec,
            getSourceFileByPath: bf,
            getCancellationToken: () => _,
            getCanonicalFileName: A,
            useCaseSensitiveFileNames: () => E,
            getNewLine: () => iv(yn),
            getDefaultLibFileName: (Lo) => e.getDefaultLibFileName(Lo),
            writeFile: gs,
            getCurrentDirectory: () => h,
            fileExists: (Lo) => e.fileExists(Lo),
            readFile: (Lo) => e.readFile && e.readFile(Lo),
            getSymlinkCache: ia(e, e.getSymlinkCache),
            realpath: ia(e, e.realpath),
            directoryExists: (Lo) => ch(Lo, e),
            getDirectories: (Lo) =>
              e.getDirectories ? e.getDirectories(Lo) : [],
            readDirectory: (Lo, fa, is, qa, Zt) => (
              C.checkDefined(
                e.readDirectory,
                "'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'",
              ),
              e.readDirectory(Lo, fa, is, qa, Zt)
            ),
            onReleaseOldSourceFile: Ra,
            onReleaseParsedCommandLine: Tc,
            hasInvalidatedResolutions: wt,
            hasInvalidatedLibResolutions: En,
            hasChangedAutomaticTypeDirectiveNames: xn,
            trace: ia(e, e.trace),
            resolveModuleNames: ia(e, e.resolveModuleNames),
            getModuleResolutionCache: ia(e, e.getModuleResolutionCache),
            createHash: ia(e, e.createHash),
            resolveTypeReferenceDirectives: ia(
              e,
              e.resolveTypeReferenceDirectives,
            ),
            resolveModuleNameLiterals: ia(e, e.resolveModuleNameLiterals),
            resolveTypeReferenceDirectiveReferences: ia(
              e,
              e.resolveTypeReferenceDirectiveReferences,
            ),
            resolveLibrary: ia(e, e.resolveLibrary),
            useSourceOfProjectReferenceRedirect: ia(
              e,
              e.useSourceOfProjectReferenceRedirect,
            ),
            getParsedCommandLine: co,
            jsDocParsingMode: e.jsDocParsingMode,
            getGlobalTypingsCacheLocation: ia(
              e,
              e.getGlobalTypingsCacheLocation,
            ),
          };
        const ra = Ii.getSourceFile,
          { getSourceFileWithCache: sa } = yP(
            Ii,
            (Lo) => ks(Lo, h, A),
            (...Lo) => ra.call(Ii, ...Lo),
          );
        ((Ii.getSourceFile = sa),
          (jt = e.setCompilerHost) == null || jt.call(e, Ii));
        const zo = {
            useCaseSensitiveFileNames: E,
            fileExists: (Lo) => Ii.fileExists(Lo),
            readFile: (Lo) => Ii.readFile(Lo),
            directoryExists: (Lo) => Ii.directoryExists(Lo),
            getDirectories: (Lo) => Ii.getDirectories(Lo),
            realpath: Ii.realpath,
            readDirectory: (...Lo) => Ii.readDirectory(...Lo),
            trace: Ii.trace,
            getCurrentDirectory: Ii.getCurrentDirectory,
            onUnRecoverableConfigFileDiagnostic: gs,
          },
          Bl = t.getKeyForCompilationSettings(yn);
        let xl = new Set();
        if (
          AH(
            l,
            In,
            yn,
            (Lo, fa) => e.getScriptVersion(fa),
            (Lo) => Ii.fileExists(Lo),
            wt,
            En,
            xn,
            co,
            Ln,
          )
        ) {
          ((Ii = void 0), (ln = void 0), (xl = void 0));
          return;
        }
        ((l = oO({
          rootNames: In,
          options: yn,
          host: Ii,
          oldProgram: l,
          projectReferences: Ln,
        })),
          (Ii = void 0),
          (ln = void 0),
          (xl = void 0),
          R.clearCache(),
          l.getTypeChecker());
        return;
        function co(Lo) {
          const fa = ks(Lo, h, A),
            is = ln?.get(fa);
          if (is !== void 0) return is || void 0;
          const qa = e.getParsedCommandLine
            ? e.getParsedCommandLine(Lo)
            : Go(Lo);
          return ((ln || (ln = new Map())).set(fa, qa || !1), qa);
        }
        function Go(Lo) {
          const fa = ec(Lo, 100);
          if (fa)
            return (
              (fa.path = ks(Lo, h, A)),
              (fa.resolvedPath = fa.path),
              (fa.originalFileName = fa.fileName),
              Ow(fa, zo, To(ci(Lo), h), void 0, To(Lo, h))
            );
        }
        function Tc(Lo, fa, is) {
          var qa;
          e.getParsedCommandLine
            ? (qa = e.onReleaseParsedCommandLine) == null ||
              qa.call(e, Lo, fa, is)
            : fa && $s(fa.sourceFile, is);
        }
        function $s(Lo, fa) {
          const is = t.getKeyForCompilationSettings(fa);
          t.releaseDocumentWithKey(
            Lo.resolvedPath,
            is,
            Lo.scriptKind,
            Lo.impliedNodeFormat,
          );
        }
        function Ra(Lo, fa, is, qa) {
          var Zt;
          ($s(Lo, fa),
            (Zt = e.onReleaseOldSourceFile) == null ||
              Zt.call(e, Lo, fa, is, qa));
        }
        function ec(Lo, fa, is, qa) {
          return bf(Lo, ks(Lo, h, A), fa, is, qa);
        }
        function bf(Lo, fa, is, qa, Zt) {
          C.assert(
            Ii,
            "getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.",
          );
          const As = e.getScriptSnapshot(Lo);
          if (!As) return;
          const Hl = sJ(Lo, e),
            sc = e.getScriptVersion(Lo);
          if (!Zt) {
            const vd = l && l.getSourceFileByPath(fa);
            if (vd) {
              if (Hl === vd.scriptKind || xl.has(vd.resolvedPath))
                return t.updateDocumentWithKey(Lo, fa, e, Bl, As, sc, Hl, is);
              (t.releaseDocumentWithKey(
                vd.resolvedPath,
                t.getKeyForCompilationSettings(l.getCompilerOptions()),
                vd.scriptKind,
                vd.impliedNodeFormat,
              ),
                xl.add(vd.resolvedPath));
            }
          }
          return t.acquireDocumentWithKey(Lo, fa, e, Bl, As, sc, Hl, is);
        }
      }
      function W() {
        if (o === 2) {
          C.assert(l === void 0);
          return;
        }
        return (P(), l);
      }
      function O() {
        var ft;
        return (ft = e.getPackageJsonAutoImportProvider) == null
          ? void 0
          : ft.call(e);
      }
      function G(ft, Mt) {
        const jt = l.getTypeChecker(),
          Qt = In();
        if (!Qt) return !1;
        for (const wt of ft)
          for (const En of wt.references) {
            const xn = yn(En);
            if (
              (C.assertIsDefined(xn),
              Mt.has(En) || Ys.isDeclarationOfSymbol(xn, Qt))
            ) {
              (Mt.add(En), (En.isDefinition = !0));
              const Ln = x7(En, R, ia(e, e.fileExists));
              Ln && Mt.add(Ln);
            } else En.isDefinition = !1;
          }
        return !0;
        function In() {
          for (const wt of ft)
            for (const En of wt.references) {
              if (Mt.has(En)) {
                const Ln = yn(En);
                return (C.assertIsDefined(Ln), jt.getSymbolAtLocation(Ln));
              }
              const xn = x7(En, R, ia(e, e.fileExists));
              if (xn && Mt.has(xn)) {
                const Ln = yn(xn);
                if (Ln) return jt.getSymbolAtLocation(Ln);
              }
            }
        }
        function yn(wt) {
          const En = l.getSourceFile(wt.fileName);
          if (!En) return;
          const xn = ip(En, wt.textSpan.start);
          return Ys.Core.getAdjustedNode(xn, {
            use: Ys.FindReferencesUse.References,
          });
        }
      }
      function j() {
        if (l) {
          const ft = t.getKeyForCompilationSettings(l.getCompilerOptions());
          (Ye(l.getSourceFiles(), (Mt) =>
            t.releaseDocumentWithKey(
              Mt.resolvedPath,
              ft,
              Mt.scriptKind,
              Mt.impliedNodeFormat,
            ),
          ),
            (l = void 0));
        }
      }
      function J() {
        (j(), (e = void 0));
      }
      function Z(ft) {
        return (P(), l.getSyntacticDiagnostics(N(ft), _).slice());
      }
      function q(ft) {
        P();
        const Mt = N(ft),
          jt = l.getSemanticDiagnostics(Mt, _);
        if (!_p(l.getCompilerOptions())) return jt.slice();
        const Qt = l.getDeclarationDiagnostics(Mt, _);
        return [...jt, ...Qt];
      }
      function ye(ft, Mt) {
        P();
        const jt = N(ft),
          Qt = l.getCompilerOptions();
        if (mD(jt, Qt, l) || !xM(jt, Qt) || l.getCachedSemanticDiagnostics(jt))
          return;
        const In = ie(jt, Mt);
        if (!In) return;
        const yn = O9(In.map((En) => ic(En.getFullStart(), En.getEnd())));
        return {
          diagnostics: l.getSemanticDiagnostics(jt, _, In).slice(),
          spans: yn,
        };
      }
      function ie(ft, Mt) {
        const jt = [],
          Qt = O9(Mt.map((In) => _v(In)));
        for (const In of Qt) {
          const yn = K(ft, In);
          if (!yn) return;
          jt.push(...yn);
        }
        if (jt.length) return jt;
      }
      function K(ft, Mt) {
        if (w9(Mt, ft)) return;
        const jt = RP(ft, Dl(Mt)) || ft,
          Qt = Dn(jt, (yn) => Mee(yn, Mt)),
          In = [];
        if (
          (pe(Mt, Qt, In),
          ft.end === Mt.start + Mt.length && In.push(ft.endOfFileToken),
          !yt(In, Yi))
        )
          return In;
      }
      function pe(ft, Mt, jt) {
        return de(Mt, ft)
          ? w9(ft, Mt)
            ? (fe(Mt, jt), !0)
            : hx(Mt)
              ? ve(ft, Mt, jt)
              : ui(Mt)
                ? xe(ft, Mt, jt)
                : (fe(Mt, jt), !0)
          : !1;
      }
      function de(ft, Mt) {
        const jt = Mt.start + Mt.length;
        return ft.pos < jt && ft.end > Mt.start;
      }
      function fe(ft, Mt) {
        for (; ft.parent && !Bre(ft); ) ft = ft.parent;
        Mt.push(ft);
      }
      function ve(ft, Mt, jt) {
        const Qt = [];
        return Mt.statements.filter((yn) => pe(ft, yn, Qt)).length ===
          Mt.statements.length
          ? (fe(Mt, jt), !0)
          : (jt.push(...Qt), !1);
      }
      function xe(ft, Mt, jt) {
        var Qt, In, yn;
        const wt = (Ln) => wee(Ln, ft);
        if (
          ((Qt = Mt.modifiers) != null && Qt.some(wt)) ||
          (Mt.name && wt(Mt.name)) ||
          ((In = Mt.typeParameters) != null && In.some(wt)) ||
          ((yn = Mt.heritageClauses) != null && yn.some(wt))
        )
          return (fe(Mt, jt), !0);
        const En = [];
        return Mt.members.filter((Ln) => pe(ft, Ln, En)).length ===
          Mt.members.length
          ? (fe(Mt, jt), !0)
          : (jt.push(...En), !1);
      }
      function X(ft) {
        return (P(), LJ(N(ft), l, _));
      }
      function Ce() {
        return (
          P(),
          [...l.getOptionsDiagnostics(_), ...l.getGlobalDiagnostics(_)]
        );
      }
      function Je(ft, Mt, jt = Sm, Qt) {
        const In = {
          ...jt,
          includeCompletionsForModuleExports:
            jt.includeCompletionsForModuleExports ||
            jt.includeExternalModuleExports,
          includeCompletionsWithInsertText:
            jt.includeCompletionsWithInsertText ||
            jt.includeInsertTextCompletions,
        };
        return (
          P(),
          Ex.getCompletionsAtPosition(
            e,
            l,
            g,
            N(ft),
            Mt,
            In,
            jt.triggerCharacter,
            jt.triggerKind,
            _,
            Qt && Nc.getFormatContext(Qt, e),
            jt.includeSymbol,
          )
        );
      }
      function Se(ft, Mt, jt, Qt, In, yn = Sm, wt) {
        return (
          P(),
          Ex.getCompletionEntryDetails(
            l,
            g,
            N(ft),
            Mt,
            { name: jt, source: In, data: wt },
            e,
            Qt && Nc.getFormatContext(Qt, e),
            yn,
            _,
          )
        );
      }
      function re(ft, Mt, jt, Qt, In = Sm) {
        return (
          P(),
          Ex.getCompletionEntrySymbol(
            l,
            g,
            N(ft),
            Mt,
            { name: jt, source: Qt },
            e,
            In,
          )
        );
      }
      function be(ft, Mt, jt, Qt) {
        P();
        const In = N(ft),
          yn = ip(In, Mt);
        if (yn === In) return;
        const wt = l.getTypeChecker(),
          En = lt(yn),
          xn = pQe(En, wt);
        if (!xn || wt.isUnknownSymbol(xn)) {
          const zo = ce(In, En, Mt) ? wt.getTypeAtLocation(En) : void 0;
          return (
            zo && {
              kind: "",
              kindModifiers: "",
              textSpan: zu(En, In),
              displayParts: wt.runWithCancellationToken(_, (Bl) =>
                RO(Bl, zo, F1(En), void 0, Qt),
              ),
              documentation: zo.symbol
                ? zo.symbol.getDocumentationComment(wt)
                : void 0,
              tags: zo.symbol ? zo.symbol.getJsDocTags(wt) : void 0,
            }
          );
        }
        const {
          symbolKind: Ln,
          displayParts: ln,
          documentation: Ii,
          tags: ra,
          canIncreaseVerbosityLevel: sa,
        } = wt.runWithCancellationToken(_, (zo) =>
          vv.getSymbolDisplayPartsDocumentationAndSymbolKind(
            zo,
            xn,
            In,
            F1(En),
            En,
            void 0,
            void 0,
            jt ?? Ate,
            Qt,
          ),
        );
        return {
          kind: Ln,
          kindModifiers: vv.getSymbolModifiers(wt, xn),
          textSpan: zu(En, In),
          displayParts: ln,
          documentation: Ii,
          tags: ra,
          canIncreaseVerbosityLevel: sa,
        };
      }
      function Ne(ft, Mt) {
        return (P(), yX.preparePasteEdits(N(ft), Mt, l.getTypeChecker()));
      }
      function Be(ft, Mt) {
        return (
          P(),
          vX.pasteEditsProvider(
            N(ft.targetFile),
            ft.pastedText,
            ft.pasteLocations,
            ft.copiedFrom
              ? { file: N(ft.copiedFrom.file), range: ft.copiedFrom.range }
              : void 0,
            e,
            ft.preferences,
            Nc.getFormatContext(Mt, e),
            _,
          )
        );
      }
      function lt(ft) {
        return GS(ft.parent) && ft.pos === ft.parent.pos
          ? ft.parent.expression
          : (bD(ft.parent) && ft.pos === ft.parent.pos) ||
              (KR(ft.parent) && ft.parent.name === ft) ||
              fh(ft.parent)
            ? ft.parent
            : ft;
      }
      function ce(ft, Mt, jt) {
        switch (Mt.kind) {
          case 80:
            return Mt.flags & 16777216 &&
              !Ir(Mt) &&
              ((Mt.parent.kind === 172 && Mt.parent.name === Mt) ||
                Dn(Mt, (Qt) => Qt.kind === 170))
              ? !1
              : !Rq(Mt) && !Dq(Mt) && !Om(Mt.parent);
          case 212:
          case 167:
            return !mv(ft, jt);
          case 110:
          case 198:
          case 108:
          case 203:
            return !0;
          case 237:
            return KR(Mt);
          default:
            return !1;
        }
      }
      function Re(ft, Mt, jt, Qt) {
        return (P(), fC.getDefinitionAtPosition(l, N(ft), Mt, jt, Qt));
      }
      function _e(ft, Mt) {
        return (P(), fC.getDefinitionAndBoundSpan(l, N(ft), Mt));
      }
      function je(ft, Mt) {
        return (
          P(),
          fC.getTypeDefinitionAtPosition(l.getTypeChecker(), N(ft), Mt)
        );
      }
      function Ge(ft, Mt) {
        return (
          P(),
          Ys.getImplementationsAtPosition(l, _, l.getSourceFiles(), N(ft), Mt)
        );
      }
      function We(ft, Mt, jt) {
        const Qt = ya(ft);
        (C.assert(jt.some((wt) => ya(wt) === Qt)), P());
        const In = Ui(jt, (wt) => l.getSourceFile(wt)),
          yn = N(ft);
        return U7.getDocumentHighlights(l, _, yn, Mt, In);
      }
      function at(ft, Mt, jt, Qt, In) {
        P();
        const yn = N(ft),
          wt = m7(ip(yn, Mt));
        if (Rz.nodeIsEligibleForRename(wt))
          if (
            He(wt) &&
            (ph(wt.parent) || VS(wt.parent)) &&
            oD(wt.escapedText)
          ) {
            const { openingElement: En, closingElement: xn } = wt.parent.parent;
            return [En, xn].map((Ln) => {
              const ln = zu(Ln.tagName, yn);
              return {
                fileName: yn.fileName,
                textSpan: ln,
                ...Ys.toContextSpan(ln, yn, Ln.parent),
              };
            });
          } else {
            const En = Gp(yn, In ?? Sm),
              xn =
                typeof In == "boolean"
                  ? In
                  : In?.providePrefixAndSuffixTextForRename;
            return cn(
              wt,
              Mt,
              {
                findInStrings: jt,
                findInComments: Qt,
                providePrefixAndSuffixTextForRename: xn,
                use: Ys.FindReferencesUse.Rename,
              },
              (Ln, ln, Ii) => Ys.toRenameLocation(Ln, ln, Ii, xn || !1, En),
            );
          }
      }
      function Wt(ft, Mt) {
        return (
          P(),
          cn(
            ip(N(ft), Mt),
            Mt,
            { use: Ys.FindReferencesUse.References },
            Ys.toReferenceEntry,
          )
        );
      }
      function cn(ft, Mt, jt, Qt) {
        P();
        const In =
          jt && jt.use === Ys.FindReferencesUse.Rename
            ? l
                .getSourceFiles()
                .filter((yn) => !l.isSourceFileDefaultLibrary(yn))
            : l.getSourceFiles();
        return Ys.findReferenceOrRenameEntries(l, _, In, ft, Mt, jt, Qt);
      }
      function gn(ft, Mt) {
        return (
          P(),
          Ys.findReferencedSymbols(l, _, l.getSourceFiles(), N(ft), Mt)
        );
      }
      function Kn(ft) {
        return (
          P(),
          Ys.Core.getReferencesForFileName(ft, l, l.getSourceFiles()).map(
            Ys.toReferenceEntry,
          )
        );
      }
      function _t(ft, Mt, jt, Qt = !1, In = !1) {
        P();
        const yn = jt ? [N(jt)] : l.getSourceFiles();
        return jxe(yn, l.getTypeChecker(), _, ft, Mt, Qt, In);
      }
      function en(ft, Mt, jt) {
        P();
        const Qt = N(ft),
          In = e.getCustomTransformers && e.getCustomTransformers();
        return vse(l, Qt, !!Mt, _, In, jt);
      }
      function ir(ft, Mt, { triggerReason: jt } = Sm) {
        P();
        const Qt = N(ft);
        return iW.getSignatureHelpItems(l, Qt, Mt, jt, _);
      }
      function Di(ft) {
        return s.getCurrentSourceFile(ft);
      }
      function lo(ft, Mt, jt) {
        const Qt = s.getCurrentSourceFile(ft),
          In = ip(Qt, Mt);
        if (In === Qt) return;
        switch (In.kind) {
          case 212:
          case 167:
          case 11:
          case 97:
          case 112:
          case 106:
          case 108:
          case 110:
          case 198:
          case 80:
            break;
          default:
            return;
        }
        let yn = In;
        for (;;)
          if ($D(yn) || Ole(yn)) yn = yn.parent;
          else if (Nq(yn))
            if (
              yn.parent.parent.kind === 268 &&
              yn.parent.parent.body === yn.parent
            )
              yn = yn.parent.parent.name;
            else break;
          else break;
        return ic(yn.getStart(), In.getEnd());
      }
      function zt(ft, Mt) {
        const jt = s.getCurrentSourceFile(ft);
        return cK.spanInSourceFileAtLocation(jt, Mt);
      }
      function Zr(ft) {
        return Jxe(s.getCurrentSourceFile(ft), _);
      }
      function Ai(ft) {
        return Kxe(s.getCurrentSourceFile(ft), _);
      }
      function Ni(ft, Mt, jt) {
        return (
          P(),
          (jt || "original") === "2020"
            ? yDe(l, _, N(ft), Mt)
            : Ace(l.getTypeChecker(), _, N(ft), l.getClassifiableNames(), Mt)
        );
      }
      function Pr(ft, Mt, jt) {
        return (
          P(),
          (jt || "original") === "original"
            ? IJ(l.getTypeChecker(), _, N(ft), l.getClassifiableNames(), Mt)
            : Qde(l, _, N(ft), Mt)
        );
      }
      function Ci(ft, Mt) {
        return Ice(_, s.getCurrentSourceFile(ft), Mt);
      }
      function $e(ft, Mt) {
        return xJ(_, s.getCurrentSourceFile(ft), Mt);
      }
      function At(ft) {
        const Mt = s.getCurrentSourceFile(ft);
        return rX.collectElements(Mt, _);
      }
      const mn = new Map(Object.entries({ 19: 20, 21: 22, 23: 24, 32: 30 }));
      mn.forEach((ft, Mt) => mn.set(ft.toString(), Number(Mt)));
      function dr(ft, Mt) {
        const jt = s.getCurrentSourceFile(ft),
          Qt = eC(jt, Mt),
          In = Qt.getStart(jt) === Mt ? mn.get(Qt.kind.toString()) : void 0,
          yn = In && Es(Qt.parent, In, jt);
        return yn
          ? [zu(Qt, jt), zu(yn, jt)].sort((wt, En) => wt.start - En.start)
          : ae;
      }
      function ri(ft, Mt, jt) {
        let Qt = Ls();
        const In = GO(jt),
          yn = s.getCurrentSourceFile(ft);
        (g("getIndentationAtPosition: getCurrentSourceFile: " + (Ls() - Qt)),
          (Qt = Ls()));
        const wt = Nc.SmartIndenter.getIndentation(Mt, yn, In);
        return (
          g("getIndentationAtPosition: computeIndentation  : " + (Ls() - Qt)),
          wt
        );
      }
      function ai(ft, Mt, jt, Qt) {
        const In = s.getCurrentSourceFile(ft);
        return Nc.formatSelection(Mt, jt, In, Nc.getFormatContext(GO(Qt), e));
      }
      function qi(ft, Mt) {
        return Nc.formatDocument(
          s.getCurrentSourceFile(ft),
          Nc.getFormatContext(GO(Mt), e),
        );
      }
      function $o(ft, Mt, jt, Qt) {
        const In = s.getCurrentSourceFile(ft),
          yn = Nc.getFormatContext(GO(Qt), e);
        if (!mv(In, Mt))
          switch (jt) {
            case "{":
              return Nc.formatOnOpeningCurly(Mt, In, yn);
            case "}":
              return Nc.formatOnClosingCurly(Mt, In, yn);
            case ";":
              return Nc.formatOnSemicolon(Mt, In, yn);
            case `
`:
              return Nc.formatOnEnter(Mt, In, yn);
          }
        return [];
      }
      function Ia(ft, Mt, jt, Qt, In, yn = Sm) {
        P();
        const wt = N(ft),
          En = ic(Mt, jt),
          xn = Nc.getFormatContext(In, e);
        return Ki(
          cS(Qt, nb, js),
          (Ln) => (
            _.throwIfCancellationRequested(),
            cu.getFixes({
              errorCode: Ln,
              sourceFile: wt,
              span: En,
              program: l,
              host: e,
              cancellationToken: _,
              formatContext: xn,
              preferences: yn,
            })
          ),
        );
      }
      function Mn(ft, Mt, jt, Qt = Sm) {
        (P(), C.assert(ft.type === "file"));
        const In = N(ft.fileName),
          yn = Nc.getFormatContext(jt, e);
        return cu.getAllFixes({
          fixId: Mt,
          sourceFile: In,
          program: l,
          host: e,
          cancellationToken: _,
          formatContext: yn,
          preferences: Qt,
        });
      }
      function Uo(ft, Mt, jt = Sm) {
        (P(), C.assert(ft.type === "file"));
        const Qt = N(ft.fileName);
        if (fI(Qt)) return ae;
        const In = Nc.getFormatContext(Mt, e),
          yn =
            ft.mode ??
            (ft.skipDestructiveCodeActions ? "SortAndCombine" : "All");
        return v0.organizeImports(Qt, In, e, l, jt, yn);
      }
      function ot(ft, Mt, jt, Qt = Sm) {
        return Dce(W(), ft, Mt, e, Nc.getFormatContext(jt, e), Qt, R);
      }
      function Ft(ft, Mt) {
        const jt = typeof ft == "string" ? Mt : ft;
        return Mo(jt) ? Promise.all(jt.map((Qt) => le(Qt))) : le(jt);
      }
      function le(ft) {
        const Mt = (jt) => ks(jt, h, A);
        return (
          C.assertEqual(ft.type, "install package"),
          e.installPackage
            ? e.installPackage({
                fileName: Mt(ft.file),
                packageName: ft.packageName,
              })
            : Promise.reject("Host does not implement `installPackage`")
        );
      }
      function ht(ft, Mt, jt, Qt) {
        const In = Qt ? Nc.getFormatContext(Qt, e).options : void 0;
        return y0.getDocCommentTemplateAtPosition(
          _y(e, In),
          s.getCurrentSourceFile(ft),
          Mt,
          jt,
        );
      }
      function ne(ft, Mt, jt) {
        if (jt === 60) return !1;
        const Qt = s.getCurrentSourceFile(ft);
        if (px(Qt, Mt)) return !1;
        if (jle(Qt, Mt)) return jt === 123;
        if (Oq(Qt, Mt)) return !1;
        switch (jt) {
          case 39:
          case 34:
          case 96:
            return !mv(Qt, Mt);
        }
        return !0;
      }
      function Fe(ft, Mt) {
        const jt = s.getCurrentSourceFile(ft),
          Qt = Bc(Mt, jt);
        if (!Qt) return;
        const In =
          Qt.kind === 32 && ph(Qt.parent)
            ? Qt.parent.parent
            : BI(Qt) && r_(Qt.parent)
              ? Qt.parent
              : void 0;
        if (In && Ot(In))
          return { newText: `</${In.openingElement.tagName.getText(jt)}>` };
        const yn =
          Qt.kind === 32 && jm(Qt.parent)
            ? Qt.parent.parent
            : BI(Qt) && e0(Qt.parent)
              ? Qt.parent
              : void 0;
        if (yn && nt(yn)) return { newText: "</>" };
      }
      function it(ft, Mt) {
        const jt = s.getCurrentSourceFile(ft),
          Qt = Bc(Mt, jt);
        if (!Qt || Qt.parent.kind === 308) return;
        const In = "[a-zA-Z0-9:\\-\\._$]*";
        if (e0(Qt.parent.parent)) {
          const yn = Qt.parent.parent.openingFragment,
            wt = Qt.parent.parent.closingFragment;
          if (fI(yn) || fI(wt)) return;
          const En = yn.getStart(jt) + 1,
            xn = wt.getStart(jt) + 2;
          return Mt !== En && Mt !== xn
            ? void 0
            : {
                ranges: [
                  { start: En, length: 0 },
                  { start: xn, length: 0 },
                ],
                wordPattern: In,
              };
        } else {
          const yn = Dn(Qt.parent, (sa) => !!(ph(sa) || VS(sa)));
          if (!yn) return;
          C.assert(
            ph(yn) || VS(yn),
            "tag should be opening or closing element",
          );
          const wt = yn.parent.openingElement,
            En = yn.parent.closingElement,
            xn = wt.tagName.getStart(jt),
            Ln = wt.tagName.end,
            ln = En.tagName.getStart(jt),
            Ii = En.tagName.end;
          return xn === wt.getStart(jt) ||
            ln === En.getStart(jt) ||
            Ln === wt.getEnd() ||
            Ii === En.getEnd() ||
            !((xn <= Mt && Mt <= Ln) || (ln <= Mt && Mt <= Ii)) ||
            wt.tagName.getText(jt) !== En.tagName.getText(jt)
            ? void 0
            : {
                ranges: [
                  { start: xn, length: Ln - xn },
                  { start: ln, length: Ii - ln },
                ],
                wordPattern: In,
              };
        }
      }
      function dt(ft, Mt) {
        return {
          lineStarts: ft.getLineStarts(),
          firstLine: ft.getLineAndCharacterOfPosition(Mt.pos).line,
          lastLine: ft.getLineAndCharacterOfPosition(Mt.end).line,
        };
      }
      function Lt(ft, Mt, jt) {
        const Qt = s.getCurrentSourceFile(ft),
          In = [],
          { lineStarts: yn, firstLine: wt, lastLine: En } = dt(Qt, Mt);
        let xn = jt || !1,
          Ln = Number.MAX_VALUE;
        const ln = new Map(),
          Ii = new RegExp(/\S/),
          ra = _7(Qt, yn[wt]),
          sa = ra ? "{/*" : "//";
        for (let zo = wt; zo <= En; zo++) {
          const Bl = Qt.text.substring(yn[zo], Qt.getLineEndOfPosition(yn[zo])),
            xl = Ii.exec(Bl);
          xl &&
            ((Ln = Math.min(Ln, xl.index)),
            ln.set(zo.toString(), xl.index),
            Bl.substr(xl.index, sa.length) !== sa &&
              (xn = jt === void 0 || jt));
        }
        for (let zo = wt; zo <= En; zo++) {
          if (wt !== En && yn[zo] === Mt.end) continue;
          const Bl = ln.get(zo.toString());
          Bl !== void 0 &&
            (ra
              ? In.push(
                  ...Ue(
                    ft,
                    { pos: yn[zo] + Ln, end: Qt.getLineEndOfPosition(yn[zo]) },
                    xn,
                    ra,
                  ),
                )
              : xn
                ? In.push({
                    newText: sa,
                    span: { length: 0, start: yn[zo] + Ln },
                  })
                : Qt.text.substr(yn[zo] + Bl, sa.length) === sa &&
                  In.push({
                    newText: "",
                    span: { length: sa.length, start: yn[zo] + Bl },
                  }));
        }
        return In;
      }
      function Ue(ft, Mt, jt, Qt) {
        var In;
        const yn = s.getCurrentSourceFile(ft),
          wt = [],
          { text: En } = yn;
        let xn = !1,
          Ln = jt || !1;
        const ln = [];
        let { pos: Ii } = Mt;
        const ra = Qt !== void 0 ? Qt : _7(yn, Ii),
          sa = ra ? "{/*" : "/*",
          zo = ra ? "*/}" : "*/",
          Bl = ra ? "\\{\\/\\*" : "\\/\\*",
          xl = ra ? "\\*\\/\\}" : "\\*\\/";
        for (; Ii <= Mt.end; ) {
          const Ps = En.substr(Ii, sa.length) === sa ? sa.length : 0,
            co = mv(yn, Ii + Ps);
          if (co)
            (ra && (co.pos--, co.end++),
              ln.push(co.pos),
              co.kind === 3 && ln.push(co.end),
              (xn = !0),
              (Ii = co.end + 1));
          else {
            const Go = En.substring(Ii, Mt.end).search(`(${Bl})|(${xl})`);
            ((Ln =
              jt !== void 0
                ? jt
                : Ln || !ece(En, Ii, Go === -1 ? Mt.end : Ii + Go)),
              (Ii = Go === -1 ? Mt.end + 1 : Ii + Go + zo.length));
          }
        }
        if (Ln || !xn) {
          (((In = mv(yn, Mt.pos)) == null ? void 0 : In.kind) !== 2 &&
            $v(ln, Mt.pos, js),
            $v(ln, Mt.end, js));
          const Ps = ln[0];
          En.substr(Ps, sa.length) !== sa &&
            wt.push({ newText: sa, span: { length: 0, start: Ps } });
          for (let co = 1; co < ln.length - 1; co++)
            (En.substr(ln[co] - zo.length, zo.length) !== zo &&
              wt.push({ newText: zo, span: { length: 0, start: ln[co] } }),
              En.substr(ln[co], sa.length) !== sa &&
                wt.push({ newText: sa, span: { length: 0, start: ln[co] } }));
          wt.length % 2 !== 0 &&
            wt.push({
              newText: zo,
              span: { length: 0, start: ln[ln.length - 1] },
            });
        } else
          for (const Ps of ln) {
            const co = Ps - zo.length > 0 ? Ps - zo.length : 0,
              Go = En.substr(co, zo.length) === zo ? zo.length : 0;
            wt.push({
              newText: "",
              span: { length: sa.length, start: Ps - Go },
            });
          }
        return wt;
      }
      function Rt(ft, Mt) {
        const jt = s.getCurrentSourceFile(ft),
          { firstLine: Qt, lastLine: In } = dt(jt, Mt);
        return Qt === In && Mt.pos !== Mt.end ? Ue(ft, Mt, !0) : Lt(ft, Mt, !0);
      }
      function It(ft, Mt) {
        const jt = s.getCurrentSourceFile(ft),
          Qt = [],
          { pos: In } = Mt;
        let { end: yn } = Mt;
        In === yn && (yn += _7(jt, In) ? 2 : 1);
        for (let wt = In; wt <= yn; wt++) {
          const En = mv(jt, wt);
          if (En) {
            switch (En.kind) {
              case 2:
                Qt.push(...Lt(ft, { end: En.end, pos: En.pos + 1 }, !1));
                break;
              case 3:
                Qt.push(...Ue(ft, { end: En.end, pos: En.pos + 1 }, !1));
            }
            wt = En.end + 1;
          }
        }
        return Qt;
      }
      function Ot({ openingElement: ft, closingElement: Mt, parent: jt }) {
        return (
          !a0(ft.tagName, Mt.tagName) ||
          (r_(jt) && a0(ft.tagName, jt.openingElement.tagName) && Ot(jt))
        );
      }
      function nt({ closingFragment: ft, parent: Mt }) {
        return !!(ft.flags & 262144) || (e0(Mt) && nt(Mt));
      }
      function Kt(ft, Mt, jt) {
        const Qt = s.getCurrentSourceFile(ft),
          In = Nc.getRangeOfEnclosingComment(Qt, Mt);
        return In && (!jt || In.kind === 3) ? _v(In) : void 0;
      }
      function Tr(ft, Mt) {
        P();
        const jt = N(ft);
        _.throwIfCancellationRequested();
        const Qt = jt.text,
          In = [];
        if (Mt.length > 0 && !xn(jt.fileName)) {
          const Ln = wt();
          let ln;
          for (; (ln = Ln.exec(Qt)); ) {
            _.throwIfCancellationRequested();
            const Ii = 3;
            C.assert(ln.length === Mt.length + Ii);
            const ra = ln[1],
              sa = ln.index + ra.length;
            if (!mv(jt, sa)) continue;
            let zo;
            for (let xl = 0; xl < Mt.length; xl++) ln[xl + Ii] && (zo = Mt[xl]);
            if (zo === void 0) return C.fail();
            if (En(Qt.charCodeAt(sa + zo.text.length))) continue;
            const Bl = ln[2];
            In.push({ descriptor: zo, message: Bl, position: sa });
          }
        }
        return In;
        function yn(Ln) {
          return Ln.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
        }
        function wt() {
          const Ln = /(?:\/{2,}\s*)/.source,
            ln = /(?:\/\*+\s*)/.source,
            ra = "(" + /(?:^(?:\s|\*)*)/.source + "|" + Ln + "|" + ln + ")",
            sa =
              "(?:" + Vt(Mt, (co) => "(" + yn(co.text) + ")").join("|") + ")",
            zo = /(?:$|\*\/)/.source,
            Bl = /(?:.*?)/.source,
            xl = "(" + sa + Bl + ")",
            Ps = ra + xl + zo;
          return new RegExp(Ps, "gim");
        }
        function En(Ln) {
          return (
            (Ln >= 97 && Ln <= 122) ||
            (Ln >= 65 && Ln <= 90) ||
            (Ln >= 48 && Ln <= 57)
          );
        }
        function xn(Ln) {
          return Ln.includes("/node_modules/");
        }
      }
      function Oe(ft, Mt, jt) {
        return (P(), Rz.getRenameInfo(l, N(ft), Mt, jt || {}));
      }
      function Nt(ft, Mt, jt, Qt, In, yn) {
        const [wt, En] =
          typeof Mt == "number" ? [Mt, void 0] : [Mt.pos, Mt.end];
        return {
          file: ft,
          startPosition: wt,
          endPosition: En,
          program: W(),
          host: e,
          formatContext: Nc.getFormatContext(Qt, e),
          cancellationToken: _,
          preferences: jt,
          triggerReason: In,
          kind: yn,
        };
      }
      function he(ft, Mt, jt) {
        return {
          file: ft,
          program: W(),
          host: e,
          span: Mt,
          preferences: jt,
          cancellationToken: _,
        };
      }
      function B(ft, Mt) {
        return aX.getSmartSelectionRange(Mt, s.getCurrentSourceFile(ft));
      }
      function Ae(ft, Mt, jt = Sm, Qt, In, yn) {
        P();
        const wt = N(ft);
        return gx.getApplicableRefactors(Nt(wt, Mt, jt, Sm, Qt, In), yn);
      }
      function te(ft, Mt, jt = Sm) {
        P();
        const Qt = N(ft),
          In = C.checkDefined(l.getSourceFiles()),
          yn = AM(ft),
          wt = zO(Nt(Qt, Mt, jt, Sm)),
          En = yde(wt?.all),
          xn = Ui(In, (Ln) => {
            const ln = AM(Ln.fileName);
            return !l?.isSourceFileFromExternalLibrary(Qt) &&
              !(
                Qt === N(Ln.fileName) ||
                (yn === ".ts" && ln === ".d.ts") ||
                (yn === ".d.ts" &&
                  po(Ic(Ln.fileName), "lib.") &&
                  ln === ".d.ts")
              ) &&
              (yn === ln ||
                (((yn === ".tsx" && ln === ".ts") ||
                  (yn === ".jsx" && ln === ".js")) &&
                  !En))
              ? Ln.fileName
              : void 0;
          });
        return { newFileName: gde(Qt, l, e, wt), files: xn };
      }
      function xt(ft, Mt, jt, Qt, In, yn = Sm, wt) {
        P();
        const En = N(ft);
        return gx.getEditsForRefactor(Nt(En, jt, yn, Mt), Qt, In, wt);
      }
      function Xt(ft, Mt) {
        return Mt === 0
          ? { line: 0, character: 0 }
          : R.toLineColumnOffset(ft, Mt);
      }
      function Pe(ft, Mt) {
        P();
        const jt = yx.resolveCallHierarchyDeclaration(l, ip(N(ft), Mt));
        return jt && _J(jt, (Qt) => yx.createCallHierarchyItem(l, Qt));
      }
      function gt(ft, Mt) {
        P();
        const jt = N(ft),
          Qt = gJ(
            yx.resolveCallHierarchyDeclaration(l, Mt === 0 ? jt : ip(jt, Mt)),
          );
        return Qt ? yx.getIncomingCalls(l, Qt, _) : [];
      }
      function Bt(ft, Mt) {
        P();
        const jt = N(ft),
          Qt = gJ(
            yx.resolveCallHierarchyDeclaration(l, Mt === 0 ? jt : ip(jt, Mt)),
          );
        return Qt ? yx.getOutgoingCalls(l, Qt) : [];
      }
      function gr(ft, Mt, jt = Sm) {
        P();
        const Qt = N(ft);
        return eX.provideInlayHints(he(Qt, Mt, jt));
      }
      function tr(ft, Mt, jt, Qt, In) {
        return tX.mapCode(
          s.getCurrentSourceFile(ft),
          Mt,
          jt,
          e,
          Nc.getFormatContext(Qt, e),
          In,
        );
      }
      const Jn = {
        dispose: J,
        cleanupSemanticCache: j,
        getSyntacticDiagnostics: Z,
        getSemanticDiagnostics: q,
        getRegionSemanticDiagnostics: ye,
        getSuggestionDiagnostics: X,
        getCompilerOptionsDiagnostics: Ce,
        getSyntacticClassifications: Ci,
        getSemanticClassifications: Ni,
        getEncodedSyntacticClassifications: $e,
        getEncodedSemanticClassifications: Pr,
        getCompletionsAtPosition: Je,
        getCompletionEntryDetails: Se,
        getCompletionEntrySymbol: re,
        getSignatureHelpItems: ir,
        getQuickInfoAtPosition: be,
        getDefinitionAtPosition: Re,
        getDefinitionAndBoundSpan: _e,
        getImplementationAtPosition: Ge,
        getTypeDefinitionAtPosition: je,
        getReferencesAtPosition: Wt,
        findReferences: gn,
        getFileReferences: Kn,
        getDocumentHighlights: We,
        getNameOrDottedNameSpan: lo,
        getBreakpointStatementAtPosition: zt,
        getNavigateToItems: _t,
        getRenameInfo: Oe,
        getSmartSelectionRange: B,
        findRenameLocations: at,
        getNavigationBarItems: Zr,
        getNavigationTree: Ai,
        getOutliningSpans: At,
        getTodoComments: Tr,
        getBraceMatchingAtPosition: dr,
        getIndentationAtPosition: ri,
        getFormattingEditsForRange: ai,
        getFormattingEditsForDocument: qi,
        getFormattingEditsAfterKeystroke: $o,
        getDocCommentTemplateAtPosition: ht,
        isValidBraceCompletionAtPosition: ne,
        getJsxClosingTagAtPosition: Fe,
        getLinkedEditingRangeAtPosition: it,
        getSpanOfEnclosingComment: Kt,
        getCodeFixesAtPosition: Ia,
        getCombinedCodeFix: Mn,
        applyCodeActionCommand: Ft,
        organizeImports: Uo,
        getEditsForFileRename: ot,
        getEmitOutput: en,
        getNonBoundSourceFile: Di,
        getProgram: W,
        getCurrentProgram: () => l,
        getAutoImportProvider: O,
        updateIsDefinitionOfReferencedSymbols: G,
        getApplicableRefactors: Ae,
        getEditsForRefactor: xt,
        getMoveToRefactoringFileSuggestions: te,
        toLineColumnOffset: Xt,
        getSourceMapper: () => R,
        clearSourceMapperCache: () => R.clearCache(),
        prepareCallHierarchy: Pe,
        provideCallHierarchyIncomingCalls: gt,
        provideCallHierarchyOutgoingCalls: Bt,
        toggleLineComment: Lt,
        toggleMultilineComment: Ue,
        commentSelection: Rt,
        uncommentSelection: It,
        provideInlayHints: gr,
        getSupportedCodeFixes: aK,
        preparePasteEditsForFile: Ne,
        getPasteEdits: Be,
        mapCode: tr,
      };
      switch (o) {
        case 0:
          break;
        case 1:
          MDe.forEach(
            (ft) =>
              (Jn[ft] = () => {
                throw new Error(
                  `LanguageService Operation: ${ft} not allowed in LanguageServiceMode.PartialSemantic`,
                );
              }),
          );
          break;
        case 2:
          lQe.forEach(
            (ft) =>
              (Jn[ft] = () => {
                throw new Error(
                  `LanguageService Operation: ${ft} not allowed in LanguageServiceMode.Syntactic`,
                );
              }),
          );
          break;
        default:
          C.assertNever(o);
      }
      return Jn;
    }
    function lK(e) {
      return (e.nameTable || cQe(e), e.nameTable);
    }
    function cQe(e) {
      const t = (e.nameTable = new Map());
      e.forEachChild(function r(i) {
        if ((He(i) && !Dq(i) && i.escapedText) || (uf(i) && dQe(i))) {
          const o = aM(i);
          t.set(o, t.get(o) === void 0 ? i.pos : -1);
        } else if (eo(i)) {
          const o = i.escapedText;
          t.set(o, t.get(o) === void 0 ? i.pos : -1);
        }
        if ((Jo(i, r), ef(i))) for (const o of i.jsDoc) Jo(o, r);
      });
    }
    function dQe(e) {
      return L_(e) || e.parent.kind === 284 || fQe(e) || xk(e);
    }
    function jO(e) {
      const t = uQe(e);
      return t && (Wa(t.parent) || jS(t.parent)) ? t : void 0;
    }
    function uQe(e) {
      switch (e.kind) {
        case 11:
        case 15:
        case 9:
          if (e.parent.kind === 168)
            return iG(e.parent.parent) ? e.parent.parent : void 0;
        case 80:
        case 296:
          return iG(e.parent) &&
            (e.parent.parent.kind === 211 || e.parent.parent.kind === 293) &&
            e.parent.name === e
            ? e.parent
            : void 0;
      }
    }
    function pQe(e, t) {
      const r = jO(e);
      if (r) {
        const i = t.getContextualType(r.parent),
          o = i && sz(r, t, i, !1);
        if (o && o.length === 1) return $a(o);
      }
      return t.getSymbolAtLocation(e);
    }
    function sz(e, t, r, i) {
      const o = AO(e.name);
      if (!o) return ae;
      if (!r.isUnion()) {
        const u = r.getProperty(o);
        return u ? [u] : ae;
      }
      const s =
          Wa(e.parent) || jS(e.parent)
            ? Un(
                r.types,
                (u) => !t.isTypeInvalidDueToUnionDiscriminant(u, e.parent),
              )
            : r.types,
        l = Ui(s, (u) => u.getProperty(o));
      if (i && (l.length === 0 || l.length === r.types.length)) {
        const u = r.getProperty(o);
        if (u) return [u];
      }
      return !s.length && !l.length
        ? Ui(r.types, (u) => u.getProperty(o))
        : cS(l, nb);
    }
    function fQe(e) {
      return (
        e &&
        e.parent &&
        e.parent.kind === 213 &&
        e.parent.argumentExpression === e
      );
    }
    function rue(e) {
      if (jc) return Qr(ci(ya(jc.getExecutingFilePath())), C2(e));
      throw new Error(
        "getDefaultLibFilePath is only supported when consumed as a node module. ",
      );
    }
    rre(iQe());
    function PDe(e, t, r) {
      const i = [];
      r = WJ(r, i);
      const o = Mo(e) ? e : [e],
        s = $w(void 0, void 0, L, r, o, t, !0);
      return ((s.diagnostics = so(s.diagnostics, i)), s);
    }
    var cK = {};
    x(cK, { spanInSourceFileAtLocation: () => mQe });
    function mQe(e, t) {
      if (e.isDeclarationFile) return;
      let r = Fi(e, t);
      const i = e.getLineAndCharacterOfPosition(t).line;
      if (e.getLineAndCharacterOfPosition(r.getStart(e)).line > i) {
        const g = Bc(r.pos, e);
        if (!g || e.getLineAndCharacterOfPosition(g.getEnd()).line !== i)
          return;
        r = g;
      }
      if (r.flags & 33554432) return;
      return h(r);
      function o(g, E) {
        const A = qS(g) ? ga(g.modifiers, Wc) : void 0,
          R = A ? La(e.text, A.end) : g.getStart(e);
        return ic(R, (E || g).getEnd());
      }
      function s(g, E) {
        return o(g, eE(E, E.parent, e));
      }
      function l(g, E) {
        return g && i === e.getLineAndCharacterOfPosition(g.getStart(e)).line
          ? h(g)
          : h(E);
      }
      function u(g, E, A) {
        if (g) {
          const R = g.indexOf(E);
          if (R >= 0) {
            let N = R,
              P = R + 1;
            for (; N > 0 && A(g[N - 1]); ) N--;
            for (; P < g.length && A(g[P]); ) P++;
            return ic(La(e.text, g[N].pos), g[P - 1].end);
          }
        }
        return o(E);
      }
      function d(g) {
        return h(Bc(g.pos, e));
      }
      function _(g) {
        return h(eE(g, g.parent, e));
      }
      function h(g) {
        if (g) {
          const { parent: X } = g;
          switch (g.kind) {
            case 244:
              return A(g.declarationList.declarations[0]);
            case 261:
            case 173:
            case 172:
              return A(g);
            case 170:
              return N(g);
            case 263:
            case 175:
            case 174:
            case 178:
            case 179:
            case 177:
            case 219:
            case 220:
              return k(g);
            case 242:
              if (SS(g)) return W(g);
            case 269:
              return O(g);
            case 300:
              return O(g.block);
            case 245:
              return o(g.expression);
            case 254:
              return o(g.getChildAt(0), g.expression);
            case 248:
              return s(g, g.expression);
            case 247:
              return h(g.statement);
            case 260:
              return o(g.getChildAt(0));
            case 246:
              return s(g, g.expression);
            case 257:
              return h(g.statement);
            case 253:
            case 252:
              return o(g.getChildAt(0), g.label);
            case 249:
              return j(g);
            case 250:
              return s(g, g.expression);
            case 251:
              return G(g);
            case 256:
              return s(g, g.expression);
            case 297:
            case 298:
              return h(g.statements[0]);
            case 259:
              return O(g.tryBlock);
            case 258:
              return o(g, g.expression);
            case 278:
              return o(g, g.expression);
            case 272:
              return o(g, g.moduleReference);
            case 273:
              return o(g, g.moduleSpecifier);
            case 279:
              return o(g, g.moduleSpecifier);
            case 268:
              if (my(g) !== 1) return;
            case 264:
            case 267:
            case 307:
            case 209:
              return o(g);
            case 255:
              return h(g.statement);
            case 171:
              return u(X.modifiers, g, Wc);
            case 207:
            case 208:
              return J(g);
            case 265:
            case 266:
              return;
            case 27:
            case 1:
              return l(Bc(g.pos, e));
            case 28:
              return d(g);
            case 19:
              return q(g);
            case 20:
              return ye(g);
            case 24:
              return ie(g);
            case 21:
              return K(g);
            case 22:
              return pe(g);
            case 59:
              return de(g);
            case 32:
            case 30:
              return fe(g);
            case 117:
              return ve(g);
            case 93:
            case 85:
            case 98:
              return _(g);
            case 165:
              return xe(g);
            default:
              if (hv(g)) return Z(g);
              if (
                (g.kind === 80 ||
                  g.kind === 231 ||
                  g.kind === 304 ||
                  g.kind === 305) &&
                hv(X)
              )
                return o(g);
              if (g.kind === 227) {
                const { left: Ce, operatorToken: Je } = g;
                if (hv(Ce)) return Z(Ce);
                if (Je.kind === 64 && hv(g.parent)) return o(g);
                if (Je.kind === 28) return h(Ce);
              }
              if (P_(g))
                switch (X.kind) {
                  case 247:
                    return d(g);
                  case 171:
                    return h(g.parent);
                  case 249:
                  case 251:
                    return o(g);
                  case 227:
                    if (g.parent.operatorToken.kind === 28) return o(g);
                    break;
                  case 220:
                    if (g.parent.body === g) return o(g);
                    break;
                }
              switch (g.parent.kind) {
                case 304:
                  if (g.parent.name === g && !hv(g.parent.parent))
                    return h(g.parent.initializer);
                  break;
                case 217:
                  if (g.parent.type === g) return _(g.parent.type);
                  break;
                case 261:
                case 170: {
                  const { initializer: Ce, type: Je } = g.parent;
                  if (Ce === g || Je === g || sy(g.kind)) return d(g);
                  break;
                }
                case 227: {
                  const { left: Ce } = g.parent;
                  if (hv(Ce) && g !== Ce) return d(g);
                  break;
                }
                default:
                  if (Yo(g.parent) && g.parent.type === g) return d(g);
              }
              return h(g.parent);
          }
        }
        function E(X) {
          return _d(X.parent) && X.parent.declarations[0] === X
            ? o(Bc(X.pos, e, X.parent), X)
            : o(X);
        }
        function A(X) {
          if (X.parent.parent.kind === 250) return h(X.parent.parent);
          const Ce = X.parent;
          if (Qo(X.name)) return J(X.name);
          if ((ZE(X) && X.initializer) || di(X, 32) || Ce.parent.kind === 251)
            return E(X);
          if (_d(X.parent) && X.parent.declarations[0] !== X)
            return h(Bc(X.pos, e, X.parent));
        }
        function R(X) {
          return !!X.initializer || X.dotDotDotToken !== void 0 || di(X, 3);
        }
        function N(X) {
          if (Qo(X.name)) return J(X.name);
          if (R(X)) return o(X);
          {
            const Ce = X.parent,
              Je = Ce.parameters.indexOf(X);
            return (
              C.assert(Je !== -1),
              Je !== 0 ? N(Ce.parameters[Je - 1]) : h(Ce.body)
            );
          }
        }
        function P(X) {
          return di(X, 32) || (X.parent.kind === 264 && X.kind !== 177);
        }
        function k(X) {
          if (X.body) return P(X) ? o(X) : h(X.body);
        }
        function W(X) {
          const Ce = X.statements.length ? X.statements[0] : X.getLastToken();
          return P(X.parent) ? l(X.parent, Ce) : h(Ce);
        }
        function O(X) {
          switch (X.parent.kind) {
            case 268:
              if (my(X.parent) !== 1) return;
            case 248:
            case 246:
            case 250:
              return l(X.parent, X.statements[0]);
            case 249:
            case 251:
              return l(Bc(X.pos, e, X.parent), X.statements[0]);
          }
          return h(X.statements[0]);
        }
        function G(X) {
          if (X.initializer.kind === 262) {
            const Ce = X.initializer;
            if (Ce.declarations.length > 0) return h(Ce.declarations[0]);
          } else return h(X.initializer);
        }
        function j(X) {
          if (X.initializer) return G(X);
          if (X.condition) return o(X.condition);
          if (X.incrementor) return o(X.incrementor);
        }
        function J(X) {
          const Ce = Ye(X.elements, (Je) => (Je.kind !== 233 ? Je : void 0));
          return Ce ? h(Ce) : X.parent.kind === 209 ? o(X.parent) : E(X.parent);
        }
        function Z(X) {
          C.assert(X.kind !== 208 && X.kind !== 207);
          const Ce = X.kind === 210 ? X.elements : X.properties,
            Je = Ye(Ce, (Se) => (Se.kind !== 233 ? Se : void 0));
          return Je ? h(Je) : o(X.parent.kind === 227 ? X.parent : X);
        }
        function q(X) {
          switch (X.parent.kind) {
            case 267:
              const Ce = X.parent;
              return l(
                Bc(X.pos, e, X.parent),
                Ce.members.length ? Ce.members[0] : Ce.getLastToken(e),
              );
            case 264:
              const Je = X.parent;
              return l(
                Bc(X.pos, e, X.parent),
                Je.members.length ? Je.members[0] : Je.getLastToken(e),
              );
            case 270:
              return l(X.parent.parent, X.parent.clauses[0]);
          }
          return h(X.parent);
        }
        function ye(X) {
          switch (X.parent.kind) {
            case 269:
              if (my(X.parent.parent) !== 1) return;
            case 267:
            case 264:
              return o(X);
            case 242:
              if (SS(X.parent)) return o(X);
            case 300:
              return h(Zs(X.parent.statements));
            case 270:
              const Ce = X.parent,
                Je = Zs(Ce.clauses);
              return Je ? h(Zs(Je.statements)) : void 0;
            case 207:
              const Se = X.parent;
              return h(Zs(Se.elements) || Se);
            default:
              if (hv(X.parent)) {
                const re = X.parent;
                return o(Zs(re.properties) || re);
              }
              return h(X.parent);
          }
        }
        function ie(X) {
          switch (X.parent.kind) {
            case 208:
              const Ce = X.parent;
              return o(Zs(Ce.elements) || Ce);
            default:
              if (hv(X.parent)) {
                const Je = X.parent;
                return o(Zs(Je.elements) || Je);
              }
              return h(X.parent);
          }
        }
        function K(X) {
          return X.parent.kind === 247 ||
            X.parent.kind === 214 ||
            X.parent.kind === 215
            ? d(X)
            : X.parent.kind === 218
              ? _(X)
              : h(X.parent);
        }
        function pe(X) {
          switch (X.parent.kind) {
            case 219:
            case 263:
            case 220:
            case 175:
            case 174:
            case 178:
            case 179:
            case 177:
            case 248:
            case 247:
            case 249:
            case 251:
            case 214:
            case 215:
            case 218:
              return d(X);
            default:
              return h(X.parent);
          }
        }
        function de(X) {
          return Yo(X.parent) || X.parent.kind === 304 || X.parent.kind === 170
            ? d(X)
            : h(X.parent);
        }
        function fe(X) {
          return X.parent.kind === 217 ? _(X) : h(X.parent);
        }
        function ve(X) {
          return X.parent.kind === 247
            ? s(X, X.parent.expression)
            : h(X.parent);
        }
        function xe(X) {
          return X.parent.kind === 251 ? _(X) : h(X.parent);
        }
      }
    }
    var yx = {};
    x(yx, {
      createCallHierarchyItem: () => iue,
      getIncomingCalls: () => SQe,
      getOutgoingCalls: () => PQe,
      resolveCallHierarchyDeclaration: () => BDe,
    });
    function hQe(e) {
      return (Us(e) || dc(e)) && nd(e);
    }
    function LDe(e) {
      return Po(e) || yi(e);
    }
    function UO(e) {
      return (
        (Us(e) || Xs(e) || dc(e)) &&
        LDe(e.parent) &&
        e === e.parent.initializer &&
        He(e.parent.name) &&
        (!!(ty(e.parent) & 2) || Po(e.parent))
      );
    }
    function kDe(e) {
      return (
        Yi(e) ||
        uc(e) ||
        Zl(e) ||
        Us(e) ||
        Dc(e) ||
        dc(e) ||
        Ql(e) ||
        Nl(e) ||
        Gm(e) ||
        Hf(e) ||
        gp(e)
      );
    }
    function dC(e) {
      return (
        Yi(e) ||
        (uc(e) && He(e.name)) ||
        Zl(e) ||
        Dc(e) ||
        Ql(e) ||
        Nl(e) ||
        Gm(e) ||
        Hf(e) ||
        gp(e) ||
        hQe(e) ||
        UO(e)
      );
    }
    function wDe(e) {
      return Yi(e)
        ? e
        : nd(e)
          ? e.name
          : UO(e)
            ? e.parent.name
            : C.checkDefined(e.modifiers && hn(e.modifiers, ODe));
    }
    function ODe(e) {
      return e.kind === 90;
    }
    function WDe(e, t) {
      const r = wDe(t);
      return r && e.getSymbolAtLocation(r);
    }
    function _Qe(e, t) {
      if (Yi(t)) return { text: t.fileName, pos: 0, end: 0 };
      if ((Zl(t) || Dc(t)) && !nd(t)) {
        const o = t.modifiers && hn(t.modifiers, ODe);
        if (o) return { text: "default", pos: o.getStart(), end: o.getEnd() };
      }
      if (Ql(t)) {
        const o = t.getSourceFile(),
          s = La(o.text, Yh(t).pos),
          l = s + 6,
          u = e.getTypeChecker(),
          d = u.getSymbolAtLocation(t.parent);
        return {
          text: `${d ? `${u.symbolToString(d, t.parent)} ` : ""}static {}`,
          pos: s,
          end: l,
        };
      }
      const r = UO(t)
        ? t.parent.name
        : C.checkDefined(Oo(t), "Expected call hierarchy item to have a name");
      let i = He(r)
        ? Kr(r)
        : uf(r)
          ? r.text
          : va(r) && uf(r.expression)
            ? r.expression.text
            : void 0;
      if (i === void 0) {
        const o = e.getTypeChecker(),
          s = o.getSymbolAtLocation(r);
        s && (i = o.symbolToString(s, t));
      }
      if (i === void 0) {
        const o = dH();
        i = jR((s) => o.writeNode(4, t, t.getSourceFile(), s));
      }
      return { text: i, pos: r.getStart(), end: r.getEnd() };
    }
    function gQe(e) {
      var t, r, i, o;
      if (UO(e))
        return Po(e.parent) && ui(e.parent.parent)
          ? dc(e.parent.parent)
            ? (t = dF(e.parent.parent)) == null
              ? void 0
              : t.getText()
            : (r = e.parent.parent.name) == null
              ? void 0
              : r.getText()
          : t_(e.parent.parent.parent.parent) &&
              He(e.parent.parent.parent.parent.parent.name)
            ? e.parent.parent.parent.parent.parent.name.getText()
            : void 0;
      switch (e.kind) {
        case 178:
        case 179:
        case 175:
          return e.parent.kind === 211
            ? (i = dF(e.parent)) == null
              ? void 0
              : i.getText()
            : (o = Oo(e.parent)) == null
              ? void 0
              : o.getText();
        case 263:
        case 264:
        case 268:
          if (t_(e.parent) && He(e.parent.parent.name))
            return e.parent.parent.name.getText();
      }
    }
    function FDe(e, t) {
      if (t.body) return t;
      if (Ml(t)) return yg(t.parent);
      if (Zl(t) || Nl(t)) {
        const r = WDe(e, t);
        return r &&
          r.valueDeclaration &&
          Ms(r.valueDeclaration) &&
          r.valueDeclaration.body
          ? r.valueDeclaration
          : void 0;
      }
      return t;
    }
    function zDe(e, t) {
      const r = WDe(e, t);
      let i;
      if (r && r.declarations) {
        const o = z8(r.declarations),
          s = Vt(r.declarations, (d) => ({
            file: d.getSourceFile().fileName,
            pos: d.pos,
          }));
        o.sort((d, _) => Wd(s[d].file, s[_].file) || s[d].pos - s[_].pos);
        const l = Vt(o, (d) => r.declarations[d]);
        let u;
        for (const d of l)
          dC(d) &&
            ((!u || u.parent !== d.parent || u.end !== d.pos) && (i = Bn(i, d)),
            (u = d));
      }
      return i;
    }
    function dK(e, t) {
      return Ql(t)
        ? t
        : Ms(t)
          ? (FDe(e, t) ?? zDe(e, t) ?? t)
          : (zDe(e, t) ?? t);
    }
    function BDe(e, t) {
      const r = e.getTypeChecker();
      let i = !1;
      for (;;) {
        if (dC(t)) return dK(r, t);
        if (kDe(t)) {
          const o = Dn(t, dC);
          return o && dK(r, o);
        }
        if (L_(t)) {
          if (dC(t.parent)) return dK(r, t.parent);
          if (kDe(t.parent)) {
            const o = Dn(t.parent, dC);
            return o && dK(r, o);
          }
          return LDe(t.parent) &&
            t.parent.initializer &&
            UO(t.parent.initializer)
            ? t.parent.initializer
            : void 0;
        }
        if (Ml(t)) return dC(t.parent) ? t.parent : void 0;
        if (t.kind === 126 && Ql(t.parent)) {
          t = t.parent;
          continue;
        }
        if (yi(t) && t.initializer && UO(t.initializer)) return t.initializer;
        if (!i) {
          let o = r.getSymbolAtLocation(t);
          if (
            o &&
            (o.flags & 2097152 && (o = r.getAliasedSymbol(o)),
            o.valueDeclaration)
          ) {
            ((i = !0), (t = o.valueDeclaration));
            continue;
          }
        }
        return;
      }
    }
    function iue(e, t) {
      const r = t.getSourceFile(),
        i = _Qe(e, t),
        o = gQe(t),
        s = ZS(t),
        l = DP(t),
        u = ic(La(r.text, t.getFullStart(), !1, !0), t.getEnd()),
        d = ic(i.pos, i.end);
      return {
        file: r.fileName,
        kind: s,
        kindModifiers: l,
        name: i.text,
        containerName: o,
        span: u,
        selectionSpan: d,
      };
    }
    function yQe(e) {
      return e !== void 0;
    }
    function vQe(e) {
      if (e.kind === Ys.EntryKind.Node) {
        const { node: t } = e;
        if (
          Aq(t, !0, !0) ||
          Lle(t, !0, !0) ||
          kle(t, !0, !0) ||
          wle(t, !0, !0) ||
          $D(t) ||
          Cq(t)
        ) {
          const r = t.getSourceFile();
          return { declaration: Dn(t, dC) || r, range: Uq(t, r) };
        }
      }
    }
    function GDe(e) {
      return ls(e.declaration);
    }
    function bQe(e, t) {
      return { from: e, fromSpans: t };
    }
    function TQe(e, t) {
      return bQe(
        iue(e, t[0].declaration),
        Vt(t, (r) => _v(r.range)),
      );
    }
    function SQe(e, t, r) {
      if (Yi(t) || uc(t) || Ql(t)) return [];
      const i = wDe(t),
        o = Un(
          Ys.findReferenceOrRenameEntries(
            e,
            r,
            e.getSourceFiles(),
            i,
            0,
            { use: Ys.FindReferencesUse.References },
            vQe,
          ),
          yQe,
        );
      return o ? IR(o, GDe, (s) => TQe(e, s)) : [];
    }
    function EQe(e, t) {
      function r(o) {
        const s = XT(o)
            ? o.tag
            : ru(o)
              ? o.tagName
              : Ks(o) || Ql(o)
                ? o
                : o.expression,
          l = BDe(e, s);
        if (l) {
          const u = Uq(s, o.getSourceFile());
          if (Mo(l)) for (const d of l) t.push({ declaration: d, range: u });
          else t.push({ declaration: l, range: u });
        }
      }
      function i(o) {
        if (o && !(o.flags & 33554432)) {
          if (dC(o)) {
            if (ui(o))
              for (const s of o.members)
                s.name && va(s.name) && i(s.name.expression);
            return;
          }
          switch (o.kind) {
            case 80:
            case 272:
            case 273:
            case 279:
            case 265:
            case 266:
              return;
            case 176:
              r(o);
              return;
            case 217:
            case 235:
              i(o.expression);
              return;
            case 261:
            case 170:
              (i(o.name), i(o.initializer));
              return;
            case 214:
              (r(o), i(o.expression), Ye(o.arguments, i));
              return;
            case 215:
              (r(o), i(o.expression), Ye(o.arguments, i));
              return;
            case 216:
              (r(o), i(o.tag), i(o.template));
              return;
            case 287:
            case 286:
              (r(o), i(o.tagName), i(o.attributes));
              return;
            case 171:
              (r(o), i(o.expression));
              return;
            case 212:
            case 213:
              (r(o), Jo(o, i));
              break;
            case 239:
              i(o.expression);
              return;
          }
          Hh(o) || Jo(o, i);
        }
      }
      return i;
    }
    function AQe(e, t) {
      Ye(e.statements, t);
    }
    function IQe(e, t) {
      !di(e, 128) && e.body && t_(e.body) && Ye(e.body.statements, t);
    }
    function xQe(e, t, r) {
      const i = FDe(e, t);
      i && (Ye(i.parameters, r), r(i.body));
    }
    function RQe(e, t) {
      t(e.body);
    }
    function DQe(e, t) {
      Ye(e.modifiers, t);
      const r = RS(e);
      r && t(r.expression);
      for (const i of e.members)
        (Tm(i) && Ye(i.modifiers, t),
          Po(i)
            ? t(i.initializer)
            : Ml(i) && i.body
              ? (Ye(i.parameters, t), t(i.body))
              : Ql(i) && t(i));
    }
    function CQe(e, t) {
      const r = [],
        i = EQe(e, r);
      switch (t.kind) {
        case 308:
          AQe(t, i);
          break;
        case 268:
          IQe(t, i);
          break;
        case 263:
        case 219:
        case 220:
        case 175:
        case 178:
        case 179:
          xQe(e.getTypeChecker(), t, i);
          break;
        case 264:
        case 232:
          DQe(t, i);
          break;
        case 176:
          RQe(t, i);
          break;
        default:
          C.assertNever(t);
      }
      return r;
    }
    function NQe(e, t) {
      return { to: e, fromSpans: t };
    }
    function MQe(e, t) {
      return NQe(
        iue(e, t[0].declaration),
        Vt(t, (r) => _v(r.range)),
      );
    }
    function PQe(e, t) {
      return t.flags & 33554432 || Gm(t)
        ? []
        : IR(CQe(e, t), GDe, (r) => MQe(e, r));
    }
    var oue = {};
    x(oue, { v2020: () => VDe });
    var VDe = {};
    x(VDe, {
      TokenEncodingConsts: () => hDe,
      TokenModifier: () => gDe,
      TokenType: () => _De,
      getEncodedSemanticClassifications: () => Qde,
      getSemanticClassifications: () => yDe,
    });
    var cu = {};
    x(cu, {
      PreserveOptionalFlags: () => nLe,
      addNewNodeForMemberSymbol: () => rLe,
      codeFixAll: () => Ss,
      createCodeFixAction: () => oa,
      createCodeFixActionMaybeFixAll: () => lue,
      createCodeFixActionWithoutFixAll: () => yh,
      createCombinedCodeActions: () => vx,
      createFileTextChanges: () => jDe,
      createImportAdder: () => aE,
      createImportSpecifierResolver: () => GZe,
      createMissingMemberNodes: () => Cpe,
      createSignatureDeclarationFromCallExpression: () => Npe,
      createSignatureDeclarationFromSignature: () => OK,
      createStubbedBody: () => mz,
      eachDiagnostic: () => bx,
      findAncestorMatchingSpan: () => Wpe,
      generateAccessorFromProperty: () => uLe,
      getAccessorConvertiblePropertyAtPosition: () => mLe,
      getAllFixes: () => OQe,
      getFixes: () => wQe,
      getImportCompletionAction: () => VZe,
      getImportKind: () => TK,
      getJSDocTypedefNodes: () => zZe,
      getNoopSymbolTrackerWithResolver: () => pC,
      getPromoteTypeOnlyCompletionAction: () => jZe,
      getSupportedErrorCodes: () => LQe,
      importFixName: () => uNe,
      importSymbols: () => G1,
      parameterShouldGetTypeFromJSDoc: () => bCe,
      registerCodeFix: () => Sa,
      setJsonCompilerOptionValue: () => wpe,
      setJsonCompilerOptionValues: () => kpe,
      tryGetAutoImportableReferenceFromTypeNode: () => sE,
      typeNodeToAutoImportableTypeNode: () => Mpe,
      typePredicateToAutoImportableTypeNode: () => aLe,
      typeToAutoImportableTypeNode: () => WK,
      typeToMinimizedReferenceType: () => oLe,
    });
    var aue = cm(),
      sue = new Map();
    function yh(e, t, r) {
      return cue(e, tE(r), t, void 0, void 0);
    }
    function oa(e, t, r, i, o, s) {
      return cue(e, tE(r), t, i, tE(o), s);
    }
    function lue(e, t, r, i, o, s) {
      return cue(e, tE(r), t, i, o && tE(o), s);
    }
    function cue(e, t, r, i, o, s) {
      return {
        fixName: e,
        description: t,
        changes: r,
        fixId: i,
        fixAllDescription: o,
        commands: s ? [s] : void 0,
      };
    }
    function Sa(e) {
      for (const t of e.errorCodes) ((due = void 0), aue.add(String(t), e));
      if (e.fixIds)
        for (const t of e.fixIds) (C.assert(!sue.has(t)), sue.set(t, e));
    }
    var due;
    function LQe() {
      return due ?? (due = Co(aue.keys()));
    }
    function kQe(e, t) {
      const { errorCodes: r } = e;
      let i = 0;
      for (const s of t) if ((jn(r, s.code) && i++, i > 1)) break;
      const o = i < 2;
      return ({ fixId: s, fixAllDescription: l, ...u }) =>
        o ? u : { ...u, fixId: s, fixAllDescription: l };
    }
    function wQe(e) {
      const t = UDe(e),
        r = aue.get(String(e.errorCode));
      return Ki(r, (i) => Vt(i.getCodeActions(e), kQe(i, t)));
    }
    function OQe(e) {
      return sue.get(ma(e.fixId, Bo)).getAllCodeActions(e);
    }
    function vx(e, t) {
      return { changes: e, commands: t };
    }
    function jDe(e, t) {
      return { fileName: e, textChanges: t };
    }
    function Ss(e, t, r) {
      const i = [],
        o = Rr.ChangeTracker.with(e, (s) => bx(e, t, (l) => r(s, l, i)));
      return vx(o, i.length === 0 ? void 0 : i);
    }
    function bx(e, t, r) {
      for (const i of UDe(e)) jn(t, i.code) && r(i);
    }
    function UDe({ program: e, sourceFile: t, cancellationToken: r }) {
      const i = [
        ...e.getSemanticDiagnostics(t, r),
        ...e.getSyntacticDiagnostics(t, r),
        ...LJ(t, e, r),
      ];
      return (
        _p(e.getCompilerOptions()) &&
          i.push(...e.getDeclarationDiagnostics(t, r)),
        i
      );
    }
    var uue = "addConvertToUnknownForNonOverlappingTypes",
      HDe = [
        f
          .Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first
          .code,
      ];
    Sa({
      errorCodes: HDe,
      getCodeActions: function (t) {
        const r = JDe(t.sourceFile, t.span.start);
        if (r === void 0) return;
        const i = Rr.ChangeTracker.with(t, (o) => qDe(o, t.sourceFile, r));
        return [
          oa(
            uue,
            i,
            f.Add_unknown_conversion_for_non_overlapping_types,
            uue,
            f.Add_unknown_to_all_conversions_of_non_overlapping_types,
          ),
        ];
      },
      fixIds: [uue],
      getAllCodeActions: (e) =>
        Ss(e, HDe, (t, r) => {
          const i = JDe(r.file, r.start);
          i && qDe(t, r.file, i);
        }),
    });
    function qDe(e, t, r) {
      const i = SD(r)
        ? L.createAsExpression(r.expression, L.createKeywordTypeNode(159))
        : L.createTypeAssertion(L.createKeywordTypeNode(159), r.expression);
      e.replaceNode(t, r.expression, i);
    }
    function JDe(e, t) {
      if (!Ir(e)) return Dn(Fi(e, t), (r) => SD(r) || v4(r));
    }
    Sa({
      errorCodes: [
        f
          .await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module
          .code,
        f
          .await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module
          .code,
        f
          .for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module
          .code,
      ],
      getCodeActions: function (t) {
        const { sourceFile: r } = t,
          i = Rr.ChangeTracker.with(t, (o) => {
            const s = L.createExportDeclaration(
              void 0,
              !1,
              L.createNamedExports([]),
              void 0,
            );
            o.insertNodeAtEndOfScope(r, r, s);
          });
        return [
          yh(
            "addEmptyExportDeclaration",
            i,
            f.Add_export_to_make_this_file_into_a_module,
          ),
        ];
      },
    });
    var pue = "addMissingAsync",
      KDe = [
        f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,
        f.Type_0_is_not_assignable_to_type_1.code,
        f.Type_0_is_not_comparable_to_type_1.code,
      ];
    Sa({
      fixIds: [pue],
      errorCodes: KDe,
      getCodeActions: function (t) {
        const {
            sourceFile: r,
            errorCode: i,
            cancellationToken: o,
            program: s,
            span: l,
          } = t,
          u = hn(s.getTypeChecker().getDiagnostics(r, o), FQe(l, i)),
          d =
            u &&
            u.relatedInformation &&
            hn(
              u.relatedInformation,
              (g) =>
                g.code === f.Did_you_mean_to_mark_this_function_as_async.code,
            ),
          _ = YDe(r, d);
        return _ ? [XDe(t, _, (g) => Rr.ChangeTracker.with(t, g))] : void 0;
      },
      getAllCodeActions: (e) => {
        const { sourceFile: t } = e,
          r = new Set();
        return Ss(e, KDe, (i, o) => {
          const s =
              o.relatedInformation &&
              hn(
                o.relatedInformation,
                (d) =>
                  d.code === f.Did_you_mean_to_mark_this_function_as_async.code,
              ),
            l = YDe(t, s);
          return l ? XDe(e, l, (d) => (d(i), []), r) : void 0;
        });
      },
    });
    function XDe(e, t, r, i) {
      const o = r((s) => WQe(s, e.sourceFile, t, i));
      return oa(
        pue,
        o,
        f.Add_async_modifier_to_containing_function,
        pue,
        f.Add_all_missing_async_modifiers,
      );
    }
    function WQe(e, t, r, i) {
      if (i && i.has(ls(r))) return;
      i?.add(ls(r));
      const o = L.replaceModifiers(
        _s(r, !0),
        L.createNodeArray(L.createModifiersFromModifierFlags(nv(r) | 1024)),
      );
      e.replaceNode(t, r, o);
    }
    function YDe(e, t) {
      if (!t) return;
      const r = Fi(e, t.start);
      return Dn(r, (o) =>
        o.getStart(e) < t.start || o.getEnd() > Dl(t)
          ? "quit"
          : (Xs(o) || Nl(o) || Us(o) || Zl(o)) && rC(t, zu(o, e)),
      );
    }
    function FQe(e, t) {
      return ({ start: r, length: i, relatedInformation: o, code: s }) =>
        eb(r) &&
        eb(i) &&
        rC({ start: r, length: i }, e) &&
        s === t &&
        !!o &&
        yt(
          o,
          (l) => l.code === f.Did_you_mean_to_mark_this_function_as_async.code,
        );
    }
    var fue = "addMissingAwait",
      $De = f.Property_0_does_not_exist_on_type_1.code,
      QDe = [
        f.This_expression_is_not_callable.code,
        f.This_expression_is_not_constructable.code,
      ],
      mue = [
        f
          .An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type
          .code,
        f
          .The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type
          .code,
        f
          .The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type
          .code,
        f.Operator_0_cannot_be_applied_to_type_1.code,
        f.Operator_0_cannot_be_applied_to_types_1_and_2.code,
        f
          .This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap
          .code,
        f.This_condition_will_always_return_true_since_this_0_is_always_defined
          .code,
        f.Type_0_is_not_an_array_type.code,
        f.Type_0_is_not_an_array_type_or_a_string_type.code,
        f
          .Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher
          .code,
        f
          .Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator
          .code,
        f
          .Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator
          .code,
        f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator
          .code,
        f
          .Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator
          .code,
        f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,
        $De,
        ...QDe,
      ];
    Sa({
      fixIds: [fue],
      errorCodes: mue,
      getCodeActions: function (t) {
        const {
            sourceFile: r,
            errorCode: i,
            span: o,
            cancellationToken: s,
            program: l,
          } = t,
          u = ZDe(r, i, o, s, l);
        if (!u) return;
        const d = t.program.getTypeChecker(),
          _ = (h) => Rr.ChangeTracker.with(t, h);
        return m2([eCe(t, u, i, d, _), tCe(t, u, i, d, _)]);
      },
      getAllCodeActions: (e) => {
        const { sourceFile: t, program: r, cancellationToken: i } = e,
          o = e.program.getTypeChecker(),
          s = new Set();
        return Ss(e, mue, (l, u) => {
          const d = ZDe(t, u.code, u, i, r);
          if (!d) return;
          const _ = (h) => (h(l), []);
          return eCe(e, d, u.code, o, _, s) || tCe(e, d, u.code, o, _, s);
        });
      },
    });
    function ZDe(e, t, r, i, o) {
      const s = hJ(e, r);
      return s && zQe(e, t, r, i, o) && nCe(s) ? s : void 0;
    }
    function eCe(e, t, r, i, o, s) {
      const { sourceFile: l, program: u, cancellationToken: d } = e,
        _ = BQe(t, l, d, u, i);
      if (_) {
        const h = o((g) => {
          (Ye(_.initializers, ({ expression: E }) => hue(g, r, l, i, E, s)),
            s && _.needsSecondPassForFixAll && hue(g, r, l, i, t, s));
        });
        return yh(
          "addMissingAwaitToInitializer",
          h,
          _.initializers.length === 1
            ? [
                f.Add_await_to_initializer_for_0,
                _.initializers[0].declarationSymbol.name,
              ]
            : f.Add_await_to_initializers,
        );
      }
    }
    function tCe(e, t, r, i, o, s) {
      const l = o((u) => hue(u, r, e.sourceFile, i, t, s));
      return oa(
        fue,
        l,
        f.Add_await,
        fue,
        f.Fix_all_expressions_possibly_missing_await,
      );
    }
    function zQe(e, t, r, i, o) {
      const l = o.getTypeChecker().getDiagnostics(e, i);
      return yt(
        l,
        ({ start: u, length: d, relatedInformation: _, code: h }) =>
          eb(u) &&
          eb(d) &&
          rC({ start: u, length: d }, r) &&
          h === t &&
          !!_ &&
          yt(_, (g) => g.code === f.Did_you_forget_to_use_await.code),
      );
    }
    function BQe(e, t, r, i, o) {
      const s = GQe(e, o);
      if (!s) return;
      let l = s.isCompleteFix,
        u;
      for (const d of s.identifiers) {
        const _ = o.getSymbolAtLocation(d);
        if (!_) continue;
        const h = ni(_.valueDeclaration, yi),
          g = h && ni(h.name, He),
          E = VT(h, 244);
        if (
          !h ||
          !E ||
          h.type ||
          !h.initializer ||
          E.getSourceFile() !== t ||
          di(E, 32) ||
          !g ||
          !nCe(h.initializer)
        ) {
          l = !1;
          continue;
        }
        const A = i.getSemanticDiagnostics(t, r);
        if (
          Ys.Core.eachSymbolReferenceInFile(
            g,
            o,
            t,
            (N) => d !== N && !VQe(N, A, t, o),
          )
        ) {
          l = !1;
          continue;
        }
        (u || (u = [])).push({
          expression: h.initializer,
          declarationSymbol: _,
        });
      }
      return u && { initializers: u, needsSecondPassForFixAll: !l };
    }
    function GQe(e, t) {
      if (qr(e.parent) && He(e.parent.expression))
        return { identifiers: [e.parent.expression], isCompleteFix: !0 };
      if (He(e)) return { identifiers: [e], isCompleteFix: !0 };
      if (Nr(e)) {
        let r,
          i = !0;
        for (const o of [e.left, e.right]) {
          const s = t.getTypeAtLocation(o);
          if (t.getPromisedTypeOfPromise(s)) {
            if (!He(o)) {
              i = !1;
              continue;
            }
            (r || (r = [])).push(o);
          }
        }
        return r && { identifiers: r, isCompleteFix: i };
      }
    }
    function VQe(e, t, r, i) {
      const o = qr(e.parent) ? e.parent.name : Nr(e.parent) ? e.parent : e,
        s = hn(
          t,
          (l) => l.start === o.getStart(r) && l.start + l.length === o.getEnd(),
        );
      return (s && jn(mue, s.code)) || i.getTypeAtLocation(o).flags & 1;
    }
    function nCe(e) {
      return (
        e.flags & 65536 ||
        !!Dn(
          e,
          (t) =>
            (t.parent && Xs(t.parent) && t.parent.body === t) ||
            (ea(t) &&
              (t.parent.kind === 263 ||
                t.parent.kind === 219 ||
                t.parent.kind === 220 ||
                t.parent.kind === 175)),
        )
      );
    }
    function hue(e, t, r, i, o, s) {
      if (gw(o.parent) && !o.parent.awaitModifier) {
        const l = i.getTypeAtLocation(o),
          u = i.getAnyAsyncIterableType();
        if (u && i.isTypeAssignableTo(l, u)) {
          const d = o.parent;
          e.replaceNode(
            r,
            d,
            L.updateForOfStatement(
              d,
              L.createToken(135),
              d.initializer,
              d.expression,
              d.statement,
            ),
          );
          return;
        }
      }
      if (Nr(o))
        for (const l of [o.left, o.right]) {
          if (s && He(l)) {
            const _ = i.getSymbolAtLocation(l);
            if (_ && s.has(Ta(_))) continue;
          }
          const u = i.getTypeAtLocation(l),
            d = i.getPromisedTypeOfPromise(u) ? L.createAwaitExpression(l) : l;
          e.replaceNode(r, l, d);
        }
      else if (t === $De && qr(o.parent)) {
        if (s && He(o.parent.expression)) {
          const l = i.getSymbolAtLocation(o.parent.expression);
          if (l && s.has(Ta(l))) return;
        }
        (e.replaceNode(
          r,
          o.parent.expression,
          L.createParenthesizedExpression(
            L.createAwaitExpression(o.parent.expression),
          ),
        ),
          rCe(e, o.parent.expression, r));
      } else if (jn(QDe, t) && Gh(o.parent)) {
        if (s && He(o)) {
          const l = i.getSymbolAtLocation(o);
          if (l && s.has(Ta(l))) return;
        }
        (e.replaceNode(
          r,
          o,
          L.createParenthesizedExpression(L.createAwaitExpression(o)),
        ),
          rCe(e, o, r));
      } else {
        if (s && yi(o.parent) && He(o.parent.name)) {
          const l = i.getSymbolAtLocation(o.parent.name);
          if (l && !rh(s, Ta(l))) return;
        }
        e.replaceNode(r, o, L.createAwaitExpression(o));
      }
    }
    function rCe(e, t, r) {
      const i = Bc(t.pos, r);
      i && M7(i.end, i.parent, r) && e.insertText(r, t.getStart(r), ";");
    }
    var _ue = "addMissingConst",
      iCe = [
        f.Cannot_find_name_0.code,
        f
          .No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer
          .code,
      ];
    Sa({
      errorCodes: iCe,
      getCodeActions: function (t) {
        const r = Rr.ChangeTracker.with(t, (i) =>
          oCe(i, t.sourceFile, t.span.start, t.program),
        );
        if (r.length > 0)
          return [
            oa(
              _ue,
              r,
              f.Add_const_to_unresolved_variable,
              _ue,
              f.Add_const_to_all_unresolved_variables,
            ),
          ];
      },
      fixIds: [_ue],
      getAllCodeActions: (e) => {
        const t = new Set();
        return Ss(e, iCe, (r, i) => oCe(r, i.file, i.start, e.program, t));
      },
    });
    function oCe(e, t, r, i, o) {
      const s = Fi(t, r),
        l = Dn(s, (_) =>
          QE(_.parent) ? _.parent.initializer === _ : jQe(_) ? !1 : "quit",
        );
      if (l) return uK(e, l, t, o);
      const u = s.parent;
      if (Nr(u) && u.operatorToken.kind === 64 && od(u.parent))
        return uK(e, s, t, o);
      if (Cd(u)) {
        const _ = i.getTypeChecker();
        return Vn(u.elements, (h) => UQe(h, _)) ? uK(e, u, t, o) : void 0;
      }
      const d = Dn(s, (_) => (od(_.parent) ? !0 : HQe(_) ? !1 : "quit"));
      if (d) {
        const _ = i.getTypeChecker();
        return aCe(d, _) ? uK(e, d, t, o) : void 0;
      }
    }
    function uK(e, t, r, i) {
      (!i || rh(i, t)) && e.insertModifierBefore(r, 87, t);
    }
    function jQe(e) {
      switch (e.kind) {
        case 80:
        case 210:
        case 211:
        case 304:
        case 305:
          return !0;
        default:
          return !1;
      }
    }
    function UQe(e, t) {
      const r = He(e) ? e : id(e, !0) && He(e.left) ? e.left : void 0;
      return !!r && !t.getSymbolAtLocation(r);
    }
    function HQe(e) {
      switch (e.kind) {
        case 80:
        case 227:
        case 28:
          return !0;
        default:
          return !1;
      }
    }
    function aCe(e, t) {
      return Nr(e)
        ? e.operatorToken.kind === 28
          ? Vn([e.left, e.right], (r) => aCe(r, t))
          : e.operatorToken.kind === 64 &&
            He(e.left) &&
            !t.getSymbolAtLocation(e.left)
        : !1;
    }
    var gue = "addMissingDeclareProperty",
      sCe = [
        f
          .Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration
          .code,
      ];
    Sa({
      errorCodes: sCe,
      getCodeActions: function (t) {
        const r = Rr.ChangeTracker.with(t, (i) =>
          lCe(i, t.sourceFile, t.span.start),
        );
        if (r.length > 0)
          return [
            oa(
              gue,
              r,
              f.Prefix_with_declare,
              gue,
              f.Prefix_all_incorrect_property_declarations_with_declare,
            ),
          ];
      },
      fixIds: [gue],
      getAllCodeActions: (e) => {
        const t = new Set();
        return Ss(e, sCe, (r, i) => lCe(r, i.file, i.start, t));
      },
    });
    function lCe(e, t, r, i) {
      const o = Fi(t, r);
      if (!He(o)) return;
      const s = o.parent;
      s.kind === 173 && (!i || rh(i, s)) && e.insertModifierBefore(t, 138, s);
    }
    var yue = "addMissingInvocationForDecorator",
      cCe = [
        f
          ._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0
          .code,
      ];
    Sa({
      errorCodes: cCe,
      getCodeActions: function (t) {
        const r = Rr.ChangeTracker.with(t, (i) =>
          dCe(i, t.sourceFile, t.span.start),
        );
        return [
          oa(
            yue,
            r,
            f.Call_decorator_expression,
            yue,
            f.Add_to_all_uncalled_decorators,
          ),
        ];
      },
      fixIds: [yue],
      getAllCodeActions: (e) => Ss(e, cCe, (t, r) => dCe(t, r.file, r.start)),
    });
    function dCe(e, t, r) {
      const i = Fi(t, r),
        o = Dn(i, Wc);
      C.assert(!!o, "Expected position to be owned by a decorator.");
      const s = L.createCallExpression(o.expression, void 0, void 0);
      e.replaceNode(t, o.expression, s);
    }
    var vue = "addMissingResolutionModeImportAttribute",
      uCe = [
        f
          .Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute
          .code,
        f
          .Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute
          .code,
      ];
    Sa({
      errorCodes: uCe,
      getCodeActions: function (t) {
        const r = Rr.ChangeTracker.with(t, (i) =>
          pCe(i, t.sourceFile, t.span.start, t.program, t.host, t.preferences),
        );
        return [
          oa(
            vue,
            r,
            f.Add_resolution_mode_import_attribute,
            vue,
            f.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it,
          ),
        ];
      },
      fixIds: [vue],
      getAllCodeActions: (e) =>
        Ss(e, uCe, (t, r) =>
          pCe(t, r.file, r.start, e.program, e.host, e.preferences),
        ),
    });
    function pCe(e, t, r, i, o, s) {
      var l, u, d;
      const _ = Fi(t, r),
        h = Dn(_, Rp(vl, e_));
      C.assert(
        !!h,
        "Expected position to be owned by an ImportDeclaration or ImportType.",
      );
      const g = Gp(t, s) === 0,
        E = gI(h),
        A =
          !E ||
          ((l = M1(
            E.text,
            t.fileName,
            i.getCompilerOptions(),
            o,
            i.getModuleResolutionCache(),
            void 0,
            99,
          ).resolvedModule) == null
            ? void 0
            : l.resolvedFileName) ===
            ((d =
              (u = i.getResolvedModuleFromModuleSpecifier(E, t)) == null
                ? void 0
                : u.resolvedModule) == null
              ? void 0
              : d.resolvedFileName),
        R = h.attributes
          ? L.updateImportAttributes(
              h.attributes,
              L.createNodeArray(
                [
                  ...h.attributes.elements,
                  L.createImportAttribute(
                    L.createStringLiteral("resolution-mode", g),
                    L.createStringLiteral(A ? "import" : "require", g),
                  ),
                ],
                h.attributes.elements.hasTrailingComma,
              ),
              h.attributes.multiLine,
            )
          : L.createImportAttributes(
              L.createNodeArray([
                L.createImportAttribute(
                  L.createStringLiteral("resolution-mode", g),
                  L.createStringLiteral(A ? "import" : "require", g),
                ),
              ]),
            );
      h.kind === 273
        ? e.replaceNode(
            t,
            h,
            L.updateImportDeclaration(
              h,
              h.modifiers,
              h.importClause,
              h.moduleSpecifier,
              R,
            ),
          )
        : e.replaceNode(
            t,
            h,
            L.updateImportTypeNode(
              h,
              h.argument,
              R,
              h.qualifier,
              h.typeArguments,
            ),
          );
    }
    var bue = "addNameToNamelessParameter",
      fCe = [f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];
    Sa({
      errorCodes: fCe,
      getCodeActions: function (t) {
        const r = Rr.ChangeTracker.with(t, (i) =>
          mCe(i, t.sourceFile, t.span.start),
        );
        return [
          oa(
            bue,
            r,
            f.Add_parameter_name,
            bue,
            f.Add_names_to_all_parameters_without_names,
          ),
        ];
      },
      fixIds: [bue],
      getAllCodeActions: (e) => Ss(e, fCe, (t, r) => mCe(t, r.file, r.start)),
    });
    function mCe(e, t, r) {
      const i = Fi(t, r),
        o = i.parent;
      if (!to(o))
        return C.fail(
          "Tried to add a parameter name to a non-parameter: " +
            C.formatSyntaxKind(i.kind),
        );
      const s = o.parent.parameters.indexOf(o);
      (C.assert(
        !o.type,
        "Tried to add a parameter name to a parameter that already had one.",
      ),
        C.assert(s > -1, "Parameter not found in parent parameter list."));
      let l = o.name.getEnd(),
        u = L.createTypeReferenceNode(o.name, void 0),
        d = hCe(t, o);
      for (; d; )
        ((u = L.createArrayTypeNode(u)), (l = d.getEnd()), (d = hCe(t, d)));
      const _ = L.createParameterDeclaration(
        o.modifiers,
        o.dotDotDotToken,
        "arg" + s,
        o.questionToken,
        o.dotDotDotToken && !hw(u) ? L.createArrayTypeNode(u) : u,
        o.initializer,
      );
      e.replaceRange(t, Bf(o.getStart(t), l), _);
    }
    function hCe(e, t) {
      const r = eE(t.name, t.parent, e);
      if (r && r.kind === 23 && pv(r.parent) && to(r.parent.parent))
        return r.parent.parent;
    }
    var _Ce = "addOptionalPropertyUndefined",
      qQe = [
        f
          .Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target
          .code,
        f
          .Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties
          .code,
        f
          .Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties
          .code,
      ];
    Sa({
      errorCodes: qQe,
      getCodeActions(e) {
        const t = e.program.getTypeChecker(),
          r = JQe(e.sourceFile, e.span, t);
        if (!r.length) return;
        const i = Rr.ChangeTracker.with(e, (o) => XQe(o, r));
        return [yh(_Ce, i, f.Add_undefined_to_optional_property_type)];
      },
      fixIds: [_Ce],
    });
    function JQe(e, t, r) {
      var i, o;
      const s = gCe(hJ(e, t), r);
      if (!s) return ae;
      const { source: l, target: u } = s,
        d = KQe(l, u, r)
          ? r.getTypeAtLocation(u.expression)
          : r.getTypeAtLocation(u);
      return (o = (i = d.symbol) == null ? void 0 : i.declarations) != null &&
        o.some((_) => Wn(_).fileName.match(/\.d\.ts$/))
        ? ae
        : r.getExactOptionalProperties(d);
    }
    function KQe(e, t, r) {
      return (
        qr(t) &&
        !!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression))
          .length &&
        r.getTypeAtLocation(e) === r.getUndefinedType()
      );
    }
    function gCe(e, t) {
      var r;
      if (e) {
        if (Nr(e.parent) && e.parent.operatorToken.kind === 64)
          return { source: e.parent.right, target: e.parent.left };
        if (yi(e.parent) && e.parent.initializer)
          return { source: e.parent.initializer, target: e.parent.name };
        if (Zo(e.parent)) {
          const i = t.getSymbolAtLocation(e.parent.expression);
          if (!i?.valueDeclaration || !aI(i.valueDeclaration.kind) || !St(e))
            return;
          const o = e.parent.arguments.indexOf(e);
          if (o === -1) return;
          const s = i.valueDeclaration.parameters[o].name;
          if (He(s)) return { source: e, target: s };
        } else if ((Cc(e.parent) && He(e.parent.name)) || Ud(e.parent)) {
          const i = gCe(e.parent.parent, t);
          if (!i) return;
          const o = t.getPropertyOfType(
              t.getTypeAtLocation(i.target),
              e.parent.name.text,
            ),
            s = (r = o?.declarations) == null ? void 0 : r[0];
          return s
            ? {
                source: Cc(e.parent) ? e.parent.initializer : e.parent.name,
                target: s,
              }
            : void 0;
        }
      } else return;
    }
    function XQe(e, t) {
      for (const r of t) {
        const i = r.valueDeclaration;
        if (i && (Su(i) || Po(i)) && i.type) {
          const o = L.createUnionTypeNode([
            ...(i.type.kind === 193 ? i.type.types : [i.type]),
            L.createTypeReferenceNode("undefined"),
          ]);
          e.replaceNode(i.getSourceFile(), i.type, o);
        }
      }
    }
    var Tue = "annotateWithTypeFromJSDoc",
      yCe = [f.JSDoc_types_may_be_moved_to_TypeScript_types.code];
    Sa({
      errorCodes: yCe,
      getCodeActions(e) {
        const t = vCe(e.sourceFile, e.span.start);
        if (!t) return;
        const r = Rr.ChangeTracker.with(e, (i) => SCe(i, e.sourceFile, t));
        return [
          oa(
            Tue,
            r,
            f.Annotate_with_type_from_JSDoc,
            Tue,
            f.Annotate_everything_with_types_from_JSDoc,
          ),
        ];
      },
      fixIds: [Tue],
      getAllCodeActions: (e) =>
        Ss(e, yCe, (t, r) => {
          const i = vCe(r.file, r.start);
          i && SCe(t, r.file, i);
        }),
    });
    function vCe(e, t) {
      const r = Fi(e, t);
      return ni(to(r.parent) ? r.parent.parent : r.parent, bCe);
    }
    function bCe(e) {
      return YQe(e) && TCe(e);
    }
    function TCe(e) {
      return Ms(e)
        ? e.parameters.some(TCe) || (!e.type && !!w2(e))
        : !e.type && !!$y(e);
    }
    function SCe(e, t, r) {
      if (Ms(r) && (w2(r) || r.parameters.some((i) => !!$y(i)))) {
        if (!r.typeParameters) {
          const o = T6(r);
          o.length && e.insertTypeParameters(t, r, o);
        }
        const i = Xs(r) && !Es(r, 21, t);
        i && e.insertNodeBefore(t, $a(r.parameters), L.createToken(21));
        for (const o of r.parameters)
          if (!o.type) {
            const s = $y(o);
            s && e.tryInsertTypeAnnotation(t, o, st(s, oE, Ri));
          }
        if (
          (i && e.insertNodeAfter(t, Ba(r.parameters), L.createToken(22)),
          !r.type)
        ) {
          const o = w2(r);
          o && e.tryInsertTypeAnnotation(t, r, st(o, oE, Ri));
        }
      } else {
        const i = C.checkDefined(
          $y(r),
          "A JSDocType for this declaration should exist",
        );
        (C.assert(!r.type, "The JSDocType decl should have a type"),
          e.tryInsertTypeAnnotation(t, r, st(i, oE, Ri)));
      }
    }
    function YQe(e) {
      return Ms(e) || e.kind === 261 || e.kind === 172 || e.kind === 173;
    }
    function oE(e) {
      switch (e.kind) {
        case 313:
        case 314:
          return L.createTypeReferenceNode("any", ae);
        case 317:
          return QQe(e);
        case 316:
          return oE(e.type);
        case 315:
          return ZQe(e);
        case 319:
          return eZe(e);
        case 318:
          return tZe(e);
        case 184:
          return rZe(e);
        case 323:
          return $Qe(e);
        default:
          const t = kn(e, oE, void 0);
          return (Cr(t, 1), t);
      }
    }
    function $Qe(e) {
      const t = L.createTypeLiteralNode(
        Vt(e.jsDocPropertyTags, (r) =>
          L.createPropertySignature(
            void 0,
            He(r.name) ? r.name : r.name.right,
            rw(r) ? L.createToken(58) : void 0,
            (r.typeExpression && st(r.typeExpression.type, oE, Ri)) ||
              L.createKeywordTypeNode(133),
          ),
        ),
      );
      return (Cr(t, 1), t);
    }
    function QQe(e) {
      return L.createUnionTypeNode([
        st(e.type, oE, Ri),
        L.createTypeReferenceNode("undefined", ae),
      ]);
    }
    function ZQe(e) {
      return L.createUnionTypeNode([
        st(e.type, oE, Ri),
        L.createTypeReferenceNode("null", ae),
      ]);
    }
    function eZe(e) {
      return L.createArrayTypeNode(st(e.type, oE, Ri));
    }
    function tZe(e) {
      return L.createFunctionTypeNode(
        ae,
        e.parameters.map(nZe),
        e.type ?? L.createKeywordTypeNode(133),
      );
    }
    function nZe(e) {
      const t = e.parent.parameters.indexOf(e),
        r = e.type.kind === 319 && t === e.parent.parameters.length - 1,
        i = e.name || (r ? "rest" : "arg" + t),
        o = r ? L.createToken(26) : e.dotDotDotToken;
      return L.createParameterDeclaration(
        e.modifiers,
        o,
        i,
        e.questionToken,
        st(e.type, oE, Ri),
        e.initializer,
      );
    }
    function rZe(e) {
      let t = e.typeName,
        r = e.typeArguments;
      if (He(e.typeName)) {
        if (n6(e)) return iZe(e);
        let i = e.typeName.text;
        switch (e.typeName.text) {
          case "String":
          case "Boolean":
          case "Object":
          case "Number":
            i = i.toLowerCase();
            break;
          case "array":
          case "date":
          case "promise":
            i = i[0].toUpperCase() + i.slice(1);
            break;
        }
        ((t = L.createIdentifier(i)),
          (i === "Array" || i === "Promise") && !e.typeArguments
            ? (r = L.createNodeArray([L.createTypeReferenceNode("any", ae)]))
            : (r = Xn(e.typeArguments, oE, Ri)));
      }
      return L.createTypeReferenceNode(t, r);
    }
    function iZe(e) {
      const t = L.createParameterDeclaration(
          void 0,
          void 0,
          e.typeArguments[0].kind === 150 ? "n" : "s",
          void 0,
          L.createTypeReferenceNode(
            e.typeArguments[0].kind === 150 ? "number" : "string",
            [],
          ),
          void 0,
        ),
        r = L.createTypeLiteralNode([
          L.createIndexSignature(void 0, [t], e.typeArguments[1]),
        ]);
      return (Cr(r, 1), r);
    }
    var Sue = "convertFunctionToEs6Class",
      ECe = [
        f.This_constructor_function_may_be_converted_to_a_class_declaration
          .code,
      ];
    Sa({
      errorCodes: ECe,
      getCodeActions(e) {
        const t = Rr.ChangeTracker.with(e, (r) =>
          ACe(
            r,
            e.sourceFile,
            e.span.start,
            e.program.getTypeChecker(),
            e.preferences,
            e.program.getCompilerOptions(),
          ),
        );
        return [
          oa(
            Sue,
            t,
            f.Convert_function_to_an_ES2015_class,
            Sue,
            f.Convert_all_constructor_functions_to_classes,
          ),
        ];
      },
      fixIds: [Sue],
      getAllCodeActions: (e) =>
        Ss(e, ECe, (t, r) =>
          ACe(
            t,
            r.file,
            r.start,
            e.program.getTypeChecker(),
            e.preferences,
            e.program.getCompilerOptions(),
          ),
        ),
    });
    function ACe(e, t, r, i, o, s) {
      const l = i.getSymbolAtLocation(Fi(t, r));
      if (!l || !l.valueDeclaration || !(l.flags & 19)) return;
      const u = l.valueDeclaration;
      if (Zl(u) || Us(u)) e.replaceNode(t, u, h(u));
      else if (yi(u)) {
        const g = _(u);
        if (!g) return;
        const E = u.parent.parent;
        _d(u.parent) && u.parent.declarations.length > 1
          ? (e.delete(t, u), e.insertNodeAfter(t, E, g))
          : e.replaceNode(t, E, g);
      }
      function d(g) {
        const E = [];
        return (
          g.exports &&
            g.exports.forEach((N) => {
              if (N.name === "prototype" && N.declarations) {
                const P = N.declarations[0];
                if (
                  N.declarations.length === 1 &&
                  qr(P) &&
                  Nr(P.parent) &&
                  P.parent.operatorToken.kind === 64 &&
                  Wa(P.parent.right)
                ) {
                  const k = P.parent.right;
                  R(k.symbol, void 0, E);
                }
              } else R(N, [L.createToken(126)], E);
            }),
          g.members &&
            g.members.forEach((N, P) => {
              var k, W, O, G;
              if (P === "constructor" && N.valueDeclaration) {
                const j =
                  (G =
                    (O =
                      (W =
                        (k = g.exports) == null
                          ? void 0
                          : k.get("prototype")) == null
                        ? void 0
                        : W.declarations) == null
                      ? void 0
                      : O[0]) == null
                    ? void 0
                    : G.parent;
                (j && Nr(j) && Wa(j.right) && yt(j.right.properties, fK)) ||
                  e.delete(t, N.valueDeclaration.parent);
                return;
              }
              R(N, void 0, E);
            }),
          E
        );
        function A(N, P) {
          return Ks(N)
            ? qr(N) && fK(N)
              ? !0
              : Yo(P)
            : Vn(
                N.properties,
                (k) =>
                  !!(
                    Nl(k) ||
                    W2(k) ||
                    (Cc(k) && Us(k.initializer) && k.name) ||
                    fK(k)
                  ),
              );
        }
        function R(N, P, k) {
          if (!(N.flags & 8192) && !(N.flags & 4096)) return;
          const W = N.valueDeclaration,
            O = W.parent,
            G = O.right;
          if (
            !A(W, G) ||
            yt(k, (ye) => {
              const ie = Oo(ye);
              return !!(ie && He(ie) && Kr(ie) === wl(N));
            })
          )
            return;
          const j = O.parent && O.parent.kind === 245 ? O.parent : O;
          if ((e.delete(t, j), !G)) {
            k.push(
              L.createPropertyDeclaration(P, N.name, void 0, void 0, void 0),
            );
            return;
          }
          if (Ks(W) && (Us(G) || Xs(G))) {
            const ye = Gp(t, o),
              ie = oZe(W, s, ye);
            ie && J(k, G, ie);
            return;
          } else if (Wa(G)) {
            Ye(G.properties, (ye) => {
              ((Nl(ye) || W2(ye)) && k.push(ye),
                Cc(ye) && Us(ye.initializer) && J(k, ye.initializer, ye.name),
                fK(ye));
            });
            return;
          } else {
            if (Pu(t) || !qr(W)) return;
            const ye = L.createPropertyDeclaration(
              P,
              W.name,
              void 0,
              void 0,
              G,
            );
            (oC(O.parent, ye, t), k.push(ye));
            return;
          }
          function J(ye, ie, K) {
            return Us(ie) ? Z(ye, ie, K) : q(ye, ie, K);
          }
          function Z(ye, ie, K) {
            const pe = so(P, pK(ie, 134)),
              de = L.createMethodDeclaration(
                pe,
                void 0,
                K,
                void 0,
                void 0,
                ie.parameters,
                void 0,
                ie.body,
              );
            (oC(O, de, t), ye.push(de));
          }
          function q(ye, ie, K) {
            const pe = ie.body;
            let de;
            pe.kind === 242
              ? (de = pe)
              : (de = L.createBlock([L.createReturnStatement(pe)]));
            const fe = so(P, pK(ie, 134)),
              ve = L.createMethodDeclaration(
                fe,
                void 0,
                K,
                void 0,
                void 0,
                ie.parameters,
                void 0,
                de,
              );
            (oC(O, ve, t), ye.push(ve));
          }
        }
      }
      function _(g) {
        const E = g.initializer;
        if (!E || !Us(E) || !He(g.name)) return;
        const A = d(g.symbol);
        E.body &&
          A.unshift(
            L.createConstructorDeclaration(void 0, E.parameters, E.body),
          );
        const R = pK(g.parent.parent, 95);
        return L.createClassDeclaration(R, g.name, void 0, void 0, A);
      }
      function h(g) {
        const E = d(l);
        g.body &&
          E.unshift(
            L.createConstructorDeclaration(void 0, g.parameters, g.body),
          );
        const A = pK(g, 95);
        return L.createClassDeclaration(A, g.name, void 0, void 0, E);
      }
    }
    function pK(e, t) {
      return Tm(e) ? Un(e.modifiers, (r) => r.kind === t) : void 0;
    }
    function fK(e) {
      return e.name ? !!(He(e.name) && e.name.text === "constructor") : !1;
    }
    function oZe(e, t, r) {
      if (qr(e)) return e.name;
      const i = e.argumentExpression;
      if (np(i)) return i;
      if (ds(i))
        return fp(i.text, Ga(t))
          ? L.createIdentifier(i.text)
          : g1(i)
            ? L.createStringLiteral(i.text, r === 0)
            : i;
    }
    var Eue = "convertToAsyncFunction",
      ICe = [f.This_may_be_converted_to_an_async_function.code],
      mK = !0;
    Sa({
      errorCodes: ICe,
      getCodeActions(e) {
        mK = !0;
        const t = Rr.ChangeTracker.with(e, (r) =>
          xCe(r, e.sourceFile, e.span.start, e.program.getTypeChecker()),
        );
        return mK
          ? [
              oa(
                Eue,
                t,
                f.Convert_to_async_function,
                Eue,
                f.Convert_all_to_async_functions,
              ),
            ]
          : [];
      },
      fixIds: [Eue],
      getAllCodeActions: (e) =>
        Ss(e, ICe, (t, r) =>
          xCe(t, r.file, r.start, e.program.getTypeChecker()),
        ),
    });
    function xCe(e, t, r, i) {
      const o = Fi(t, r);
      let s;
      if (
        (He(o) &&
        yi(o.parent) &&
        o.parent.initializer &&
        Ms(o.parent.initializer)
          ? (s = o.parent.initializer)
          : (s = ni(df(Fi(t, r)), OJ)),
        !s)
      )
        return;
      const l = new Map(),
        u = Ir(s),
        d = sZe(s, i),
        _ = lZe(s, i, l);
      if (!kJ(_, i)) return;
      const h = _.body && ea(_.body) ? aZe(_.body, i) : ae,
        g = {
          checker: i,
          synthNamesMap: l,
          setOfExpressionsToReturn: d,
          isInJSFile: u,
        };
      if (!h.length) return;
      const E = La(t.text, Yh(s).pos);
      e.insertModifierAt(t, E, 134, { suffix: " " });
      for (const A of h)
        if (
          (Jo(A, function R(N) {
            if (Zo(N)) {
              const P = uC(N, N, g, !1);
              if (Tx()) return !0;
              e.replaceNodeWithNodes(t, A, P);
            } else if (!Yo(N) && (Jo(N, R), Tx())) return !0;
          }),
          Tx())
        )
          return;
    }
    function aZe(e, t) {
      const r = [];
      return (
        vb(e, (i) => {
          H7(i, t) && r.push(i);
        }),
        r
      );
    }
    function sZe(e, t) {
      if (!e.body) return new Set();
      const r = new Set();
      return (
        Jo(e.body, function i(o) {
          HO(o, t, "then")
            ? (r.add(ls(o)), Ye(o.arguments, i))
            : HO(o, t, "catch") || HO(o, t, "finally")
              ? (r.add(ls(o)), Jo(o, i))
              : DCe(o, t)
                ? r.add(ls(o))
                : Jo(o, i);
        }),
        r
      );
    }
    function HO(e, t, r) {
      if (!Zo(e)) return !1;
      const o = _O(e, r) && t.getTypeAtLocation(e);
      return !!(o && t.getPromisedTypeOfPromise(o));
    }
    function RCe(e, t) {
      return (Hr(e) & 4) !== 0 && e.target === t;
    }
    function hK(e, t, r) {
      if (e.expression.name.escapedText === "finally") return;
      const i = r.getTypeAtLocation(e.expression.expression);
      if (RCe(i, r.getPromiseType()) || RCe(i, r.getPromiseLikeType()))
        if (e.expression.name.escapedText === "then") {
          if (t === Qv(e.arguments, 0)) return Qv(e.typeArguments, 0);
          if (t === Qv(e.arguments, 1)) return Qv(e.typeArguments, 1);
        } else return Qv(e.typeArguments, 0);
    }
    function DCe(e, t) {
      return St(e) ? !!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)) : !1;
    }
    function lZe(e, t, r) {
      const i = new Map(),
        o = cm();
      return (
        Jo(e, function s(l) {
          if (!He(l)) {
            Jo(l, s);
            return;
          }
          const u = t.getSymbolAtLocation(l);
          if (u) {
            const d = t.getTypeAtLocation(l),
              _ = kCe(d, t),
              h = Ta(u).toString();
            if (_ && !to(l.parent) && !Ms(l.parent) && !r.has(h)) {
              const g = Ac(_.parameters),
                E =
                  (g?.valueDeclaration &&
                    to(g.valueDeclaration) &&
                    ni(g.valueDeclaration.name, He)) ||
                  L.createUniqueName("result", 16),
                A = CCe(E, o);
              (r.set(h, A), o.add(E.text, u));
            } else if (
              l.parent &&
              (to(l.parent) || yi(l.parent) || Ha(l.parent))
            ) {
              const g = l.text,
                E = o.get(g);
              if (E && E.some((A) => A !== u)) {
                const A = CCe(l, o);
                (i.set(h, A.identifier), r.set(h, A), o.add(g, u));
              } else {
                const A = _s(l);
                (r.set(h, jP(A)), o.add(g, u));
              }
            }
          }
        }),
        aw(e, !0, (s) => {
          if (Ha(s) && He(s.name) && ff(s.parent)) {
            const l = t.getSymbolAtLocation(s.name),
              u = l && i.get(String(Ta(l)));
            if (u && u.text !== (s.name || s.propertyName).getText())
              return L.createBindingElement(
                s.dotDotDotToken,
                s.propertyName || s.name,
                u,
                s.initializer,
              );
          } else if (He(s)) {
            const l = t.getSymbolAtLocation(s),
              u = l && i.get(String(Ta(l)));
            if (u) return L.createIdentifier(u.text);
          }
        })
      );
    }
    function CCe(e, t) {
      const r = (t.get(e.text) || ae).length,
        i = r === 0 ? e : L.createIdentifier(e.text + "_" + r);
      return jP(i);
    }
    function Tx() {
      return !mK;
    }
    function _0() {
      return ((mK = !1), ae);
    }
    function uC(e, t, r, i, o) {
      if (HO(t, r.checker, "then"))
        return uZe(t, Qv(t.arguments, 0), Qv(t.arguments, 1), r, i, o);
      if (HO(t, r.checker, "catch")) return PCe(t, Qv(t.arguments, 0), r, i, o);
      if (HO(t, r.checker, "finally"))
        return dZe(t, Qv(t.arguments, 0), r, i, o);
      if (qr(t)) return uC(e, t.expression, r, i, o);
      const s = r.checker.getTypeAtLocation(t);
      return s && r.checker.getPromisedTypeOfPromise(s)
        ? (C.assertNode(yl(t).parent, qr), pZe(e, t, r, i, o))
        : _0();
    }
    function _K({ checker: e }, t) {
      if (t.kind === 106) return !0;
      if (He(t) && !pl(t) && Kr(t) === "undefined") {
        const r = e.getSymbolAtLocation(t);
        return !r || e.isUndefinedSymbol(r);
      }
      return !1;
    }
    function cZe(e) {
      const t = L.createUniqueName(e.identifier.text, 16);
      return jP(t);
    }
    function NCe(e, t, r) {
      let i;
      return (
        r &&
          !JO(e, t) &&
          (qO(r)
            ? ((i = r),
              t.synthNamesMap.forEach((o, s) => {
                if (o.identifier.text === r.identifier.text) {
                  const l = cZe(r);
                  t.synthNamesMap.set(s, l);
                }
              }))
            : (i = jP(L.createUniqueName("result", 16), r.types)),
          Rue(i)),
        i
      );
    }
    function MCe(e, t, r, i, o) {
      const s = [];
      let l;
      if (i && !JO(e, t)) {
        l = _s(Rue(i));
        const u = i.types,
          d = t.checker.getUnionType(u, 2),
          _ = t.isInJSFile
            ? void 0
            : t.checker.typeToTypeNode(d, void 0, void 0),
          h = [L.createVariableDeclaration(l, void 0, _)],
          g = L.createVariableStatement(
            void 0,
            L.createVariableDeclarationList(h, 1),
          );
        s.push(g);
      }
      return (
        s.push(r),
        o &&
          l &&
          hZe(o) &&
          s.push(
            L.createVariableStatement(
              void 0,
              L.createVariableDeclarationList(
                [L.createVariableDeclaration(_s(FCe(o)), void 0, void 0, l)],
                2,
              ),
            ),
          ),
        s
      );
    }
    function dZe(e, t, r, i, o) {
      if (!t || _K(r, t)) return uC(e, e.expression.expression, r, i, o);
      const s = NCe(e, r, o),
        l = uC(e, e.expression.expression, r, !0, s);
      if (Tx()) return _0();
      const u = Iue(t, i, void 0, void 0, e, r);
      if (Tx()) return _0();
      const d = L.createBlock(l),
        _ = L.createBlock(u),
        h = L.createTryStatement(d, void 0, _);
      return MCe(e, r, h, s, o);
    }
    function PCe(e, t, r, i, o) {
      if (!t || _K(r, t)) return uC(e, e.expression.expression, r, i, o);
      const s = OCe(t, r),
        l = NCe(e, r, o),
        u = uC(e, e.expression.expression, r, !0, l);
      if (Tx()) return _0();
      const d = Iue(t, i, l, s, e, r);
      if (Tx()) return _0();
      const _ = L.createBlock(u),
        h = L.createCatchClause(s && _s(lz(s)), L.createBlock(d)),
        g = L.createTryStatement(_, h, void 0);
      return MCe(e, r, g, l, o);
    }
    function uZe(e, t, r, i, o, s) {
      if (!t || _K(i, t)) return PCe(e, r, i, o, s);
      if (r && !_K(i, r)) return _0();
      const l = OCe(t, i),
        u = uC(e.expression.expression, e.expression.expression, i, !0, l);
      if (Tx()) return _0();
      const d = Iue(t, o, s, l, e, i);
      return Tx() ? _0() : so(u, d);
    }
    function pZe(e, t, r, i, o) {
      if (JO(e, r)) {
        let s = _s(t);
        return (
          i && (s = L.createAwaitExpression(s)),
          [L.createReturnStatement(s)]
        );
      }
      return gK(o, L.createAwaitExpression(t), void 0);
    }
    function gK(e, t, r) {
      return !e || WCe(e)
        ? [L.createExpressionStatement(t)]
        : qO(e) && e.hasBeenDeclared
          ? [L.createExpressionStatement(L.createAssignment(_s(xue(e)), t))]
          : [
              L.createVariableStatement(
                void 0,
                L.createVariableDeclarationList(
                  [L.createVariableDeclaration(_s(lz(e)), void 0, r, t)],
                  2,
                ),
              ),
            ];
    }
    function Aue(e, t) {
      if (t && e) {
        const r = L.createUniqueName("result", 16);
        return [...gK(jP(r), e, t), L.createReturnStatement(r)];
      }
      return [L.createReturnStatement(e)];
    }
    function Iue(e, t, r, i, o, s) {
      var l;
      switch (e.kind) {
        case 106:
          break;
        case 212:
        case 80:
          if (!i) break;
          const u = L.createCallExpression(
            _s(e),
            void 0,
            qO(i) ? [xue(i)] : [],
          );
          if (JO(o, s)) return Aue(u, hK(o, e, s.checker));
          const d = s.checker.getTypeAtLocation(e),
            _ = s.checker.getSignaturesOfType(d, 0);
          if (!_.length) return _0();
          const h = _[0].getReturnType(),
            g = gK(r, L.createAwaitExpression(u), hK(o, e, s.checker));
          return (r && r.types.push(s.checker.getAwaitedType(h) || h), g);
        case 219:
        case 220: {
          const E = e.body,
            A =
              (l = kCe(s.checker.getTypeAtLocation(e), s.checker)) == null
                ? void 0
                : l.getReturnType();
          if (ea(E)) {
            let R = [],
              N = !1;
            for (const P of E.statements)
              if (tf(P))
                if (((N = !0), H7(P, s.checker))) R = R.concat(wCe(s, P, t, r));
                else {
                  const k =
                    A && P.expression
                      ? LCe(s.checker, A, P.expression)
                      : P.expression;
                  R.push(...Aue(k, hK(o, e, s.checker)));
                }
              else {
                if (t && vb(P, dS)) return _0();
                R.push(P);
              }
            return JO(o, s) ? R.map((P) => _s(P)) : fZe(R, r, s, N);
          } else {
            const R = wJ(E, s.checker)
              ? wCe(s, L.createReturnStatement(E), t, r)
              : ae;
            if (R.length > 0) return R;
            if (A) {
              const N = LCe(s.checker, A, E);
              if (JO(o, s)) return Aue(N, hK(o, e, s.checker));
              {
                const P = gK(r, N, void 0);
                return (r && r.types.push(s.checker.getAwaitedType(A) || A), P);
              }
            } else return _0();
          }
        }
        default:
          return _0();
      }
      return ae;
    }
    function LCe(e, t, r) {
      const i = _s(r);
      return e.getPromisedTypeOfPromise(t) ? L.createAwaitExpression(i) : i;
    }
    function kCe(e, t) {
      const r = t.getSignaturesOfType(e, 0);
      return Zs(r);
    }
    function fZe(e, t, r, i) {
      const o = [];
      for (const s of e)
        if (tf(s)) {
          if (s.expression) {
            const l = DCe(s.expression, r.checker)
              ? L.createAwaitExpression(s.expression)
              : s.expression;
            t === void 0
              ? o.push(L.createExpressionStatement(l))
              : qO(t) && t.hasBeenDeclared
                ? o.push(
                    L.createExpressionStatement(L.createAssignment(xue(t), l)),
                  )
                : o.push(
                    L.createVariableStatement(
                      void 0,
                      L.createVariableDeclarationList(
                        [L.createVariableDeclaration(lz(t), void 0, void 0, l)],
                        2,
                      ),
                    ),
                  );
          }
        } else o.push(_s(s));
      return (
        !i &&
          t !== void 0 &&
          o.push(
            L.createVariableStatement(
              void 0,
              L.createVariableDeclarationList(
                [
                  L.createVariableDeclaration(
                    lz(t),
                    void 0,
                    void 0,
                    L.createIdentifier("undefined"),
                  ),
                ],
                2,
              ),
            ),
          ),
        o
      );
    }
    function wCe(e, t, r, i) {
      let o = [];
      return (
        Jo(t, function s(l) {
          if (Zo(l)) {
            const u = uC(l, l, e, r, i);
            if (((o = o.concat(u)), o.length > 0)) return;
          } else Yo(l) || Jo(l, s);
        }),
        o
      );
    }
    function OCe(e, t) {
      const r = [];
      let i;
      if (Ms(e)) {
        if (e.parameters.length > 0) {
          const d = e.parameters[0].name;
          i = o(d);
        }
      } else He(e) ? (i = s(e)) : qr(e) && He(e.name) && (i = s(e.name));
      if (!i || ("identifier" in i && i.identifier.text === "undefined"))
        return;
      return i;
      function o(d) {
        if (He(d)) return s(d);
        const _ = Ki(d.elements, (h) => (Jc(h) ? [] : [o(h.name)]));
        return mZe(d, _);
      }
      function s(d) {
        const _ = u(d),
          h = l(_);
        return (h && t.synthNamesMap.get(Ta(h).toString())) || jP(d, r);
      }
      function l(d) {
        var _;
        return (
          ((_ = ni(d, ah)) == null ? void 0 : _.symbol) ??
          t.checker.getSymbolAtLocation(d)
        );
      }
      function u(d) {
        return d.original ? d.original : d;
      }
    }
    function WCe(e) {
      return e ? (qO(e) ? !e.identifier.text : Vn(e.elements, WCe)) : !0;
    }
    function jP(e, t = []) {
      return {
        kind: 0,
        identifier: e,
        types: t,
        hasBeenDeclared: !1,
        hasBeenReferenced: !1,
      };
    }
    function mZe(e, t = ae, r = []) {
      return { kind: 1, bindingPattern: e, elements: t, types: r };
    }
    function xue(e) {
      return ((e.hasBeenReferenced = !0), e.identifier);
    }
    function lz(e) {
      return qO(e) ? Rue(e) : FCe(e);
    }
    function FCe(e) {
      for (const t of e.elements) lz(t);
      return e.bindingPattern;
    }
    function Rue(e) {
      return ((e.hasBeenDeclared = !0), e.identifier);
    }
    function qO(e) {
      return e.kind === 0;
    }
    function hZe(e) {
      return e.kind === 1;
    }
    function JO(e, t) {
      return !!e.original && t.setOfExpressionsToReturn.has(ls(e.original));
    }
    Sa({
      errorCodes: [
        f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code,
      ],
      getCodeActions(e) {
        const { sourceFile: t, program: r, preferences: i } = e,
          o = Rr.ChangeTracker.with(e, (s) => {
            if (
              gZe(
                t,
                r.getTypeChecker(),
                s,
                Ga(r.getCompilerOptions()),
                Gp(t, i),
              )
            )
              for (const u of r.getSourceFiles()) _Ze(u, t, r, s, Gp(u, i));
          });
        return [yh("convertToEsModule", o, f.Convert_to_ES_module)];
      },
    });
    function _Ze(e, t, r, i, o) {
      var s;
      for (const l of e.imports) {
        const u =
          (s = r.getResolvedModuleFromModuleSpecifier(l, e)) == null
            ? void 0
            : s.resolvedModule;
        if (!u || u.resolvedFileName !== t.fileName) continue;
        const d = eM(l);
        switch (d.kind) {
          case 272:
            i.replaceNode(e, d, Vb(d.name, void 0, l, o));
            break;
          case 214:
            Zu(d, !1) &&
              i.replaceNode(
                e,
                d,
                L.createPropertyAccessExpression(_s(d), "default"),
              );
            break;
        }
      }
    }
    function gZe(e, t, r, i, o) {
      const s = { original: NZe(e), additional: new Set() },
        l = yZe(e, t, s);
      vZe(e, l, r);
      let u = !1,
        d;
      for (const _ of Un(e.statements, ac)) {
        const h = BCe(e, _, r, t, s, i, o);
        h && NF(h, d ?? (d = new Map()));
      }
      for (const _ of Un(e.statements, (h) => !ac(h))) {
        const h = bZe(e, _, t, r, s, i, l, d, o);
        u = u || h;
      }
      return (
        d?.forEach((_, h) => {
          r.replaceNode(e, h, _);
        }),
        u
      );
    }
    function yZe(e, t, r) {
      const i = new Map();
      return (
        zCe(e, (o) => {
          const { text: s } = o.name;
          !i.has(s) &&
            (qG(o.name) || t.resolveName(s, o, 111551, !0)) &&
            i.set(s, yK(`_${s}`, r));
        }),
        i
      );
    }
    function vZe(e, t, r) {
      zCe(e, (i, o) => {
        if (o) return;
        const { text: s } = i.name;
        r.replaceNode(e, i, L.createIdentifier(t.get(s) || s));
      });
    }
    function zCe(e, t) {
      e.forEachChild(function r(i) {
        if (qr(i) && JS(e, i.expression) && He(i.name)) {
          const { parent: o } = i;
          t(i, Nr(o) && o.left === i && o.operatorToken.kind === 64);
        }
        i.forEachChild(r);
      });
    }
    function bZe(e, t, r, i, o, s, l, u, d) {
      switch (t.kind) {
        case 244:
          return (BCe(e, t, i, r, o, s, d), !1);
        case 245: {
          const { expression: _ } = t;
          switch (_.kind) {
            case 214:
              return (
                Zu(_, !0) &&
                  i.replaceNode(e, t, Vb(void 0, void 0, _.arguments[0], d)),
                !1
              );
            case 227: {
              const { operatorToken: h } = _;
              return h.kind === 64 && SZe(e, r, _, i, l, u);
            }
          }
        }
        default:
          return !1;
      }
    }
    function BCe(e, t, r, i, o, s, l) {
      const { declarationList: u } = t;
      let d = !1;
      const _ = Vt(u.declarations, (h) => {
        const { name: g, initializer: E } = h;
        if (E) {
          if (JS(e, E)) return ((d = !0), UP([]));
          if (Zu(E, !0)) return ((d = !0), DZe(g, E.arguments[0], i, o, s, l));
          if (qr(E) && Zu(E.expression, !0))
            return (
              (d = !0),
              TZe(g, E.name.text, E.expression.arguments[0], o, l)
            );
        }
        return UP([
          L.createVariableStatement(
            void 0,
            L.createVariableDeclarationList([h], u.flags),
          ),
        ]);
      });
      if (d) {
        r.replaceNodeWithNodes(
          e,
          t,
          Ki(_, (g) => g.newImports),
        );
        let h;
        return (
          Ye(_, (g) => {
            g.useSitesToUnqualify &&
              NF(g.useSitesToUnqualify, h ?? (h = new Map()));
          }),
          h
        );
      }
    }
    function TZe(e, t, r, i, o) {
      switch (e.kind) {
        case 207:
        case 208: {
          const s = yK(t, i);
          return UP([UCe(s, t, r, o), vK(void 0, e, L.createIdentifier(s))]);
        }
        case 80:
          return UP([UCe(e.text, t, r, o)]);
        default:
          return C.assertNever(
            e,
            `Convert to ES module got invalid syntax form ${e.kind}`,
          );
      }
    }
    function SZe(e, t, r, i, o, s) {
      const { left: l, right: u } = r;
      if (!qr(l)) return !1;
      if (JS(e, l))
        if (JS(e, u)) i.delete(e, r.parent);
        else {
          const d = Wa(u)
            ? EZe(u, s)
            : Zu(u, !0)
              ? IZe(u.arguments[0], t)
              : void 0;
          return d
            ? (i.replaceNodeWithNodes(e, r.parent, d[0]), d[1])
            : (i.replaceRangeWithText(
                e,
                Bf(l.getStart(e), u.pos),
                "export default",
              ),
              !0);
        }
      else JS(e, l.expression) && AZe(e, r, i, o);
      return !1;
    }
    function EZe(e, t) {
      const r = DT(e.properties, (i) => {
        switch (i.kind) {
          case 178:
          case 179:
          case 305:
          case 306:
            return;
          case 304:
            return He(i.name) ? RZe(i.name.text, i.initializer, t) : void 0;
          case 175:
            return He(i.name)
              ? jCe(i.name.text, [L.createToken(95)], i, t)
              : void 0;
          default:
            C.assertNever(i, `Convert to ES6 got invalid prop kind ${i.kind}`);
        }
      });
      return r && [r, !1];
    }
    function AZe(e, t, r, i) {
      const { text: o } = t.left.name,
        s = i.get(o);
      if (s !== void 0) {
        const l = [
          vK(void 0, s, t.right),
          Nue([L.createExportSpecifier(!1, s, o)]),
        ];
        r.replaceNodeWithNodes(e, t.parent, l);
      } else xZe(t, e, r);
    }
    function IZe(e, t) {
      const r = e.text,
        i = t.getSymbolAtLocation(e),
        o = i ? i.exports : bt;
      return o.has("export=")
        ? [[Due(r)], !0]
        : o.has("default")
          ? o.size > 1
            ? [[GCe(r), Due(r)], !0]
            : [[Due(r)], !0]
          : [[GCe(r)], !1];
    }
    function GCe(e) {
      return Nue(void 0, e);
    }
    function Due(e) {
      return Nue([L.createExportSpecifier(!1, void 0, "default")], e);
    }
    function xZe({ left: e, right: t, parent: r }, i, o) {
      const s = e.name.text;
      if ((Us(t) || Xs(t) || dc(t)) && (!t.name || t.name.text === s)) {
        (o.replaceRange(
          i,
          { pos: e.getStart(i), end: t.getStart(i) },
          L.createToken(95),
          { suffix: " " },
        ),
          t.name || o.insertName(i, t, s));
        const l = Es(r, 27, i);
        l && o.delete(i, l);
      } else
        o.replaceNodeRangeWithNodes(
          i,
          e.expression,
          Es(e, 25, i),
          [L.createToken(95), L.createToken(87)],
          { joiner: " ", suffix: " " },
        );
    }
    function RZe(e, t, r) {
      const i = [L.createToken(95)];
      switch (t.kind) {
        case 219: {
          const { name: s } = t;
          if (s && s.text !== e) return o();
        }
        case 220:
          return jCe(e, i, t, r);
        case 232:
          return PZe(e, i, t, r);
        default:
          return o();
      }
      function o() {
        return vK(i, L.createIdentifier(e), Cue(t, r));
      }
    }
    function Cue(e, t) {
      if (!t || !yt(Co(t.keys()), (i) => tp(e, i))) return e;
      return Mo(e) ? oj(e, !0, r) : aw(e, !0, r);
      function r(i) {
        if (i.kind === 212) {
          const o = t.get(i);
          return (t.delete(i), o);
        }
      }
    }
    function DZe(e, t, r, i, o, s) {
      switch (e.kind) {
        case 207: {
          const l = DT(e.elements, (u) =>
            u.dotDotDotToken ||
            u.initializer ||
            (u.propertyName && !He(u.propertyName)) ||
            !He(u.name)
              ? void 0
              : HCe(u.propertyName && u.propertyName.text, u.name.text),
          );
          if (l) return UP([Vb(void 0, l, t, s)]);
        }
        case 208: {
          const l = yK(LO(t.text, o), i);
          return UP([
            Vb(L.createIdentifier(l), void 0, t, s),
            vK(void 0, _s(e), L.createIdentifier(l)),
          ]);
        }
        case 80:
          return CZe(e, t, r, i, s);
        default:
          return C.assertNever(
            e,
            `Convert to ES module got invalid name kind ${e.kind}`,
          );
      }
    }
    function CZe(e, t, r, i, o) {
      const s = r.getSymbolAtLocation(e),
        l = new Map();
      let u = !1,
        d;
      for (const h of i.original.get(e.text)) {
        if (r.getSymbolAtLocation(h) !== s || h === e) continue;
        const { parent: g } = h;
        if (qr(g)) {
          const {
            name: { text: E },
          } = g;
          if (E === "default") {
            u = !0;
            const A = h.getText();
            (d ?? (d = new Map())).set(g, L.createIdentifier(A));
          } else {
            C.assert(g.expression === h, "Didn't expect expression === use");
            let A = l.get(E);
            (A === void 0 && ((A = yK(E, i)), l.set(E, A)),
              (d ?? (d = new Map())).set(g, L.createIdentifier(A)));
          }
        } else u = !0;
      }
      const _ =
        l.size === 0
          ? void 0
          : Co(
              za(l.entries(), ([h, g]) =>
                L.createImportSpecifier(
                  !1,
                  h === g ? void 0 : L.createIdentifier(h),
                  L.createIdentifier(g),
                ),
              ),
            );
      return (_ || (u = !0), UP([Vb(u ? _s(e) : void 0, _, t, o)], d));
    }
    function yK(e, t) {
      for (; t.original.has(e) || t.additional.has(e); ) e = `_${e}`;
      return (t.additional.add(e), e);
    }
    function NZe(e) {
      const t = cm();
      return (VCe(e, (r) => t.add(r.text, r)), t);
    }
    function VCe(e, t) {
      (He(e) && MZe(e) && t(e), e.forEachChild((r) => VCe(r, t)));
    }
    function MZe(e) {
      const { parent: t } = e;
      switch (t.kind) {
        case 212:
          return t.name !== e;
        case 209:
          return t.propertyName !== e;
        case 277:
          return t.propertyName !== e;
        default:
          return !0;
      }
    }
    function jCe(e, t, r, i) {
      return L.createFunctionDeclaration(
        so(t, WS(r.modifiers)),
        _s(r.asteriskToken),
        e,
        WS(r.typeParameters),
        WS(r.parameters),
        _s(r.type),
        L.converters.convertToFunctionBlock(Cue(r.body, i)),
      );
    }
    function PZe(e, t, r, i) {
      return L.createClassDeclaration(
        so(t, WS(r.modifiers)),
        e,
        WS(r.typeParameters),
        WS(r.heritageClauses),
        Cue(r.members, i),
      );
    }
    function UCe(e, t, r, i) {
      return t === "default"
        ? Vb(L.createIdentifier(e), void 0, r, i)
        : Vb(void 0, [HCe(t, e)], r, i);
    }
    function HCe(e, t) {
      return L.createImportSpecifier(
        !1,
        e !== void 0 && e !== t ? L.createIdentifier(e) : void 0,
        L.createIdentifier(t),
      );
    }
    function vK(e, t, r) {
      return L.createVariableStatement(
        e,
        L.createVariableDeclarationList(
          [L.createVariableDeclaration(t, void 0, void 0, r)],
          2,
        ),
      );
    }
    function Nue(e, t) {
      return L.createExportDeclaration(
        void 0,
        !1,
        e && L.createNamedExports(e),
        t === void 0 ? void 0 : L.createStringLiteral(t),
      );
    }
    function UP(e, t) {
      return { newImports: e, useSitesToUnqualify: t };
    }
    var Mue = "correctQualifiedNameToIndexedAccessType",
      qCe = [
        f
          .Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1
          .code,
      ];
    Sa({
      errorCodes: qCe,
      getCodeActions(e) {
        const t = JCe(e.sourceFile, e.span.start);
        if (!t) return;
        const r = Rr.ChangeTracker.with(e, (o) => KCe(o, e.sourceFile, t)),
          i = `${t.left.text}["${t.right.text}"]`;
        return [
          oa(
            Mue,
            r,
            [f.Rewrite_as_the_indexed_access_type_0, i],
            Mue,
            f.Rewrite_all_as_indexed_access_types,
          ),
        ];
      },
      fixIds: [Mue],
      getAllCodeActions: (e) =>
        Ss(e, qCe, (t, r) => {
          const i = JCe(r.file, r.start);
          i && KCe(t, r.file, i);
        }),
    });
    function JCe(e, t) {
      const r = Dn(Fi(e, t), ku);
      return (
        C.assert(!!r, "Expected position to be owned by a qualified name."),
        He(r.left) ? r : void 0
      );
    }
    function KCe(e, t, r) {
      const i = r.right.text,
        o = L.createIndexedAccessTypeNode(
          L.createTypeReferenceNode(r.left, void 0),
          L.createLiteralTypeNode(L.createStringLiteral(i)),
        );
      e.replaceNode(t, r, o);
    }
    var Pue = [
        f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code,
      ],
      Lue = "convertToTypeOnlyExport";
    Sa({
      errorCodes: Pue,
      getCodeActions: function (t) {
        const r = Rr.ChangeTracker.with(t, (i) =>
          YCe(i, XCe(t.span, t.sourceFile), t),
        );
        if (r.length)
          return [
            oa(
              Lue,
              r,
              f.Convert_to_type_only_export,
              Lue,
              f.Convert_all_re_exported_types_to_type_only_exports,
            ),
          ];
      },
      fixIds: [Lue],
      getAllCodeActions: function (t) {
        const r = new Set();
        return Ss(t, Pue, (i, o) => {
          const s = XCe(o, t.sourceFile);
          s && gm(r, ls(s.parent.parent)) && YCe(i, s, t);
        });
      },
    });
    function XCe(e, t) {
      return ni(Fi(t, e.start).parent, ou);
    }
    function YCe(e, t, r) {
      if (!t) return;
      const i = t.parent,
        o = i.parent,
        s = LZe(t, r);
      if (s.length === i.elements.length)
        e.insertModifierBefore(r.sourceFile, 156, i);
      else {
        const l = L.updateExportDeclaration(
            o,
            o.modifiers,
            !1,
            L.updateNamedExports(
              i,
              Un(i.elements, (d) => !jn(s, d)),
            ),
            o.moduleSpecifier,
            void 0,
          ),
          u = L.createExportDeclaration(
            void 0,
            !0,
            L.createNamedExports(s),
            o.moduleSpecifier,
            void 0,
          );
        (e.replaceNode(r.sourceFile, o, l, {
          leadingTriviaOption: Rr.LeadingTriviaOption.IncludeAll,
          trailingTriviaOption: Rr.TrailingTriviaOption.Exclude,
        }),
          e.insertNodeAfter(r.sourceFile, o, u));
      }
    }
    function LZe(e, t) {
      const r = e.parent;
      if (r.elements.length === 1) return r.elements;
      const i = yce(
        zu(r),
        t.program.getSemanticDiagnostics(t.sourceFile, t.cancellationToken),
      );
      return Un(r.elements, (o) => {
        var s;
        return (
          o === e || ((s = gce(o, i)) == null ? void 0 : s.code) === Pue[0]
        );
      });
    }
    var $Ce = [
        f
          ._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled
          .code,
        f
          ._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled
          .code,
      ],
      bK = "convertToTypeOnlyImport";
    Sa({
      errorCodes: $Ce,
      getCodeActions: function (t) {
        var r;
        const i = QCe(t.sourceFile, t.span.start);
        if (i) {
          const o = Rr.ChangeTracker.with(t, (u) => cz(u, t.sourceFile, i)),
            s =
              i.kind === 277 &&
              vl(i.parent.parent.parent) &&
              ZCe(i, t.sourceFile, t.program)
                ? Rr.ChangeTracker.with(t, (u) =>
                    cz(u, t.sourceFile, i.parent.parent.parent),
                  )
                : void 0,
            l = oa(
              bK,
              o,
              i.kind === 277
                ? [
                    f.Use_type_0,
                    ((r = i.propertyName) == null ? void 0 : r.text) ??
                      i.name.text,
                  ]
                : f.Use_import_type,
              bK,
              f.Fix_all_with_type_only_imports,
            );
          return yt(s) ? [yh(bK, s, f.Use_import_type), l] : [l];
        }
      },
      fixIds: [bK],
      getAllCodeActions: function (t) {
        const r = new Set();
        return Ss(t, $Ce, (i, o) => {
          const s = QCe(o.file, o.start);
          s?.kind === 273 && !r.has(s)
            ? (cz(i, o.file, s), r.add(s))
            : s?.kind === 277 &&
                vl(s.parent.parent.parent) &&
                !r.has(s.parent.parent.parent) &&
                ZCe(s, o.file, t.program)
              ? (cz(i, o.file, s.parent.parent.parent),
                r.add(s.parent.parent.parent))
              : s?.kind === 277 && cz(i, o.file, s);
        });
      },
    });
    function QCe(e, t) {
      const { parent: r } = Fi(e, t);
      return Eu(r) || (vl(r) && r.importClause) ? r : void 0;
    }
    function ZCe(e, t, r) {
      if (e.parent.parent.name) return !1;
      const i = e.parent.elements.filter((s) => !s.isTypeOnly);
      if (i.length === 1) return !0;
      const o = r.getTypeChecker();
      for (const s of i)
        if (
          Ys.Core.eachSymbolReferenceInFile(s.name, o, t, (u) => {
            const d = o.getSymbolAtLocation(u);
            return (!!d && o.symbolIsValue(d)) || !HT(u);
          })
        )
          return !1;
      return !0;
    }
    function cz(e, t, r) {
      var i;
      if (Eu(r))
        e.replaceNode(
          t,
          r,
          L.updateImportSpecifier(r, !0, r.propertyName, r.name),
        );
      else {
        const o = r.importClause;
        if (o.name && o.namedBindings)
          e.replaceNodeWithNodes(t, r, [
            L.createImportDeclaration(
              WS(r.modifiers, !0),
              L.createImportClause(156, _s(o.name, !0), void 0),
              _s(r.moduleSpecifier, !0),
              _s(r.attributes, !0),
            ),
            L.createImportDeclaration(
              WS(r.modifiers, !0),
              L.createImportClause(156, void 0, _s(o.namedBindings, !0)),
              _s(r.moduleSpecifier, !0),
              _s(r.attributes, !0),
            ),
          ]);
        else {
          const s =
              ((i = o.namedBindings) == null ? void 0 : i.kind) === 276
                ? L.updateNamedImports(
                    o.namedBindings,
                    Zi(o.namedBindings.elements, (u) =>
                      L.updateImportSpecifier(u, !1, u.propertyName, u.name),
                    ),
                  )
                : o.namedBindings,
            l = L.updateImportDeclaration(
              r,
              r.modifiers,
              L.updateImportClause(o, 156, o.name, s),
              r.moduleSpecifier,
              r.attributes,
            );
          e.replaceNode(t, r, l);
        }
      }
    }
    var kue = "convertTypedefToType",
      eNe = [f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];
    Sa({
      fixIds: [kue],
      errorCodes: eNe,
      getCodeActions(e) {
        const t = _y(e.host, e.formatContext.options),
          r = Fi(e.sourceFile, e.span.start);
        if (!r) return;
        const i = Rr.ChangeTracker.with(e, (o) => tNe(o, r, e.sourceFile, t));
        if (i.length > 0)
          return [
            oa(
              kue,
              i,
              f.Convert_typedef_to_TypeScript_type,
              kue,
              f.Convert_all_typedef_to_TypeScript_types,
            ),
          ];
      },
      getAllCodeActions: (e) =>
        Ss(e, eNe, (t, r) => {
          const i = _y(e.host, e.formatContext.options),
            o = Fi(r.file, r.start);
          o && tNe(t, o, r.file, i, !0);
        }),
    });
    function tNe(e, t, r, i, o = !1) {
      if (!R1(t)) return;
      const s = wZe(t);
      if (!s) return;
      const l = t.parent,
        { leftSibling: u, rightSibling: d } = kZe(t);
      let _ = l.getStart(),
        h = "";
      (!u &&
        l.comment &&
        ((_ = nNe(l, l.getStart(), t.getStart())), (h = `${i} */${i}`)),
        u &&
          (o && R1(u)
            ? ((_ = t.getStart()), (h = ""))
            : ((_ = nNe(l, u.getStart(), t.getStart())), (h = `${i} */${i}`))));
      let g = l.getEnd(),
        E = "";
      (d &&
        (o && R1(d)
          ? ((g = d.getStart()), (E = `${i}${i}`))
          : ((g = d.getStart()), (E = `${i}/**${i} * `))),
        e.replaceRange(r, { pos: _, end: g }, s, { prefix: h, suffix: E }));
    }
    function kZe(e) {
      const t = e.parent,
        r = t.getChildCount() - 1,
        i = t
          .getChildren()
          .findIndex(
            (l) => l.getStart() === e.getStart() && l.getEnd() === e.getEnd(),
          ),
        o = i > 0 ? t.getChildAt(i - 1) : void 0,
        s = i < r ? t.getChildAt(i + 1) : void 0;
      return { leftSibling: o, rightSibling: s };
    }
    function nNe(e, t, r) {
      const i = e.getText().substring(t - e.getStart(), r - e.getStart());
      for (let o = i.length; o > 0; o--)
        if (!/[*/\s]/.test(i.substring(o - 1, o))) return t + o;
      return r;
    }
    function wZe(e) {
      var t;
      const { typeExpression: r } = e;
      if (!r) return;
      const i = (t = e.name) == null ? void 0 : t.getText();
      if (i) {
        if (r.kind === 323) return OZe(i, r);
        if (r.kind === 310) return WZe(i, r);
      }
    }
    function OZe(e, t) {
      const r = rNe(t);
      if (yt(r))
        return L.createInterfaceDeclaration(void 0, e, void 0, void 0, r);
    }
    function WZe(e, t) {
      const r = _s(t.type);
      if (r)
        return L.createTypeAliasDeclaration(
          void 0,
          L.createIdentifier(e),
          void 0,
          r,
        );
    }
    function rNe(e) {
      const t = e.jsDocPropertyTags;
      return yt(t)
        ? Ui(t, (i) => {
            var o;
            const s = FZe(i),
              l = (o = i.typeExpression) == null ? void 0 : o.type,
              u = i.isBracketed;
            let d;
            if (l && x1(l)) {
              const _ = rNe(l);
              d = L.createTypeLiteralNode(_);
            } else l && (d = _s(l));
            if (d && s) {
              const _ = u ? L.createToken(58) : void 0;
              return L.createPropertySignature(void 0, s, _, d);
            }
          })
        : void 0;
    }
    function FZe(e) {
      return e.name.kind === 80 ? e.name.text : e.name.right.text;
    }
    function zZe(e) {
      return ef(e)
        ? Ki(e.jsDoc, (t) => {
            var r;
            return (r = t.tags) == null ? void 0 : r.filter((i) => R1(i));
          })
        : [];
    }
    var wue = "convertLiteralTypeToMappedType",
      iNe = [
        f
          ._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0
          .code,
      ];
    Sa({
      errorCodes: iNe,
      getCodeActions: function (t) {
        const { sourceFile: r, span: i } = t,
          o = oNe(r, i.start);
        if (!o) return;
        const { name: s, constraint: l } = o,
          u = Rr.ChangeTracker.with(t, (d) => aNe(d, r, o));
        return [
          oa(
            wue,
            u,
            [f.Convert_0_to_1_in_0, l, s],
            wue,
            f.Convert_all_type_literals_to_mapped_type,
          ),
        ];
      },
      fixIds: [wue],
      getAllCodeActions: (e) =>
        Ss(e, iNe, (t, r) => {
          const i = oNe(r.file, r.start);
          i && aNe(t, r.file, i);
        }),
    });
    function oNe(e, t) {
      const r = Fi(e, t);
      if (He(r)) {
        const i = ma(r.parent.parent, Su),
          o = r.getText(e);
        return {
          container: ma(i.parent, wu),
          typeNode: i.type,
          constraint: o,
          name: o === "K" ? "P" : "K",
        };
      }
    }
    function aNe(e, t, { container: r, typeNode: i, constraint: o, name: s }) {
      e.replaceNode(
        t,
        r,
        L.createMappedTypeNode(
          void 0,
          L.createTypeParameterDeclaration(
            void 0,
            s,
            L.createTypeReferenceNode(o),
          ),
          void 0,
          void 0,
          i,
          void 0,
        ),
      );
    }
    var sNe = [
        f.Class_0_incorrectly_implements_interface_1.code,
        f
          .Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass
          .code,
      ],
      Oue = "fixClassIncorrectlyImplementsInterface";
    Sa({
      errorCodes: sNe,
      getCodeActions(e) {
        const { sourceFile: t, span: r } = e,
          i = lNe(t, r.start);
        return Ui(nD(i), (o) => {
          const s = Rr.ChangeTracker.with(e, (l) =>
            dNe(e, o, t, i, l, e.preferences),
          );
          return s.length === 0
            ? void 0
            : oa(
                Oue,
                s,
                [f.Implement_interface_0, o.getText(t)],
                Oue,
                f.Implement_all_unimplemented_interfaces,
              );
        });
      },
      fixIds: [Oue],
      getAllCodeActions(e) {
        const t = new Set();
        return Ss(e, sNe, (r, i) => {
          const o = lNe(i.file, i.start);
          if (gm(t, ls(o)))
            for (const s of nD(o)) dNe(e, s, i.file, o, r, e.preferences);
        });
      },
    });
    function lNe(e, t) {
      return C.checkDefined(hd(Fi(e, t)), "There should be a containing class");
    }
    function cNe(e) {
      return !e.valueDeclaration || !(Gd(e.valueDeclaration) & 2);
    }
    function dNe(e, t, r, i, o, s) {
      const l = e.program.getTypeChecker(),
        u = BZe(i, l),
        d = l.getTypeAtLocation(t),
        h = l
          .getPropertiesOfType(d)
          .filter(j8(cNe, (P) => !u.has(P.escapedName))),
        g = l.getTypeAtLocation(i),
        E = hn(i.members, (P) => Ml(P));
      (g.getNumberIndexType() || R(d, 1), g.getStringIndexType() || R(d, 0));
      const A = aE(r, e.program, s, e.host);
      (Cpe(i, h, r, e, s, A, (P) => N(r, i, P)), A.writeFixes(o));
      function R(P, k) {
        const W = l.getIndexInfoOfType(P, k);
        W &&
          N(
            r,
            i,
            l.indexInfoToIndexSignatureDeclaration(W, i, void 0, void 0, pC(e)),
          );
      }
      function N(P, k, W) {
        E ? o.insertNodeAfter(P, E, W) : o.insertMemberAtStart(P, k, W);
      }
    }
    function BZe(e, t) {
      const r = lh(e);
      if (!r) return da();
      const i = t.getTypeAtLocation(r),
        o = t.getPropertiesOfType(i);
      return da(o.filter(cNe));
    }
    var uNe = "import",
      pNe = "fixMissingImport",
      fNe = [
        f.Cannot_find_name_0.code,
        f.Cannot_find_name_0_Did_you_mean_1.code,
        f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,
        f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,
        f.Cannot_find_namespace_0.code,
        f
          ._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead
          .code,
        f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,
        f
          .No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer
          .code,
        f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type
          .code,
        f
          .Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery
          .code,
        f
          .Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later
          .code,
        f
          .Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom
          .code,
        f
          .Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig
          .code,
        f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function
          .code,
        f
          .Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig
          .code,
        f
          .Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha
          .code,
        f
          .Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode
          .code,
        f
          .Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig
          .code,
        f.Cannot_find_namespace_0_Did_you_mean_1.code,
        f.Cannot_extend_an_interface_0_Did_you_mean_implements.code,
        f.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code,
      ];
    Sa({
      errorCodes: fNe,
      getCodeActions(e) {
        const {
            errorCode: t,
            preferences: r,
            sourceFile: i,
            span: o,
            program: s,
          } = e,
          l = vNe(e, t, o.start, !0);
        if (l)
          return l.map(({ fix: u, symbolName: d, errorIdentifierText: _ }) =>
            zue(e, i, d, u, d !== _, s, r),
          );
      },
      fixIds: [pNe],
      getAllCodeActions: (e) => {
        const {
            sourceFile: t,
            program: r,
            preferences: i,
            host: o,
            cancellationToken: s,
          } = e,
          l = mNe(t, r, !0, i, o, s);
        return (
          bx(e, fNe, (u) => l.addImportFromDiagnostic(u, e)),
          vx(Rr.ChangeTracker.with(e, l.writeFixes))
        );
      },
    });
    function aE(e, t, r, i, o) {
      return mNe(e, t, !1, r, i, o);
    }
    function mNe(e, t, r, i, o, s) {
      const l = t.getCompilerOptions(),
        u = [],
        d = [],
        _ = new Map(),
        h = new Set(),
        g = new Set(),
        E = new Map();
      return {
        addImportFromDiagnostic: N,
        addImportFromExportedSymbol: P,
        addImportForModuleSymbol: k,
        writeFixes: j,
        hasFixes: Z,
        addImportForUnresolvedIdentifier: R,
        addImportForNonExistentExport: W,
        removeExistingImport: O,
        addVerbatimImport: A,
      };
      function A(q) {
        g.add(q);
      }
      function R(q, ye, ie) {
        const K = $Ze(q, ye, ie);
        !K || !K.length || G($a(K));
      }
      function N(q, ye) {
        const ie = vNe(ye, q.code, q.start, r);
        !ie || !ie.length || G($a(ie));
      }
      function P(q, ye, ie) {
        var K, pe;
        const de = C.checkDefined(
            q.parent,
            "Expected exported symbol to have module symbol as parent",
          ),
          fe = O7(q, Ga(l)),
          ve = t.getTypeChecker(),
          xe = ve.getMergedSymbol(xd(q, ve)),
          X = _Ne(e, xe, fe, de, !1, t, o, i, s);
        if (!X) {
          C.assert(
            (K = i.autoImportFileExcludePatterns) == null ? void 0 : K.length,
          );
          return;
        }
        const Ce = KO(e, t);
        let Je = Wue(e, X, t, void 0, !!ye, Ce, o, i);
        if (Je) {
          const Se = ((pe = ni(ie?.name, He)) == null ? void 0 : pe.text) ?? fe;
          let re, be;
          (ie &&
            FR(ie) &&
            (Je.kind === 3 || Je.kind === 2) &&
            Je.addAsTypeOnly === 1 &&
            (re = 2),
            q.name !== Se && (be = q.name),
            (Je = {
              ...Je,
              ...(re === void 0 ? {} : { addAsTypeOnly: re }),
              ...(be === void 0 ? {} : { propertyName: be }),
            }),
            G({ fix: Je, symbolName: Se ?? fe }));
        }
      }
      function k(q, ye, ie) {
        var K, pe, de;
        const fe = t.getTypeChecker(),
          ve = fe.getAliasedSymbol(q);
        C.assert(ve.flags & 1536, "Expected symbol to be a module");
        const xe = p0(t, o),
          X = hy.getModuleSpecifiersWithCacheInfo(
            ve,
            fe,
            l,
            e,
            xe,
            i,
            void 0,
            !0,
          ),
          Ce = KO(e, t);
        let Je = uz(ye, !0, void 0, q.flags, t.getTypeChecker(), l);
        Je = Je === 1 && FR(ie) ? 2 : 1;
        const Se = vl(ie)
            ? s1(ie)
              ? 1
              : 2
            : Eu(ie)
              ? 0
              : Vm(ie) && ie.name
                ? 1
                : 2,
          re = [
            {
              symbol: q,
              moduleSymbol: ve,
              moduleFileName:
                (de =
                  (pe = (K = ve.declarations) == null ? void 0 : K[0]) == null
                    ? void 0
                    : pe.getSourceFile()) == null
                  ? void 0
                  : de.fileName,
              exportKind: 4,
              targetFlags: q.flags,
              isFromPackageJson: !1,
            },
          ],
          be = Wue(e, re, t, void 0, !!ye, Ce, o, i);
        let Ne;
        (be && Se !== 2 && be.kind !== 0 && be.kind !== 1
          ? (Ne = { ...be, addAsTypeOnly: Je, importKind: Se })
          : (Ne = {
              kind: 3,
              moduleSpecifierKind:
                be !== void 0 ? be.moduleSpecifierKind : X.kind,
              moduleSpecifier:
                be !== void 0 ? be.moduleSpecifier : $a(X.moduleSpecifiers),
              importKind: Se,
              addAsTypeOnly: Je,
              useRequire: Ce,
            }),
          G({ fix: Ne, symbolName: q.name }));
      }
      function W(q, ye, ie, K, pe) {
        const de = t.getSourceFile(ye),
          fe = KO(e, t);
        if (de && de.symbol) {
          const { fixes: ve } = dz(
            [
              {
                exportKind: ie,
                isFromPackageJson: !1,
                moduleFileName: ye,
                moduleSymbol: de.symbol,
                targetFlags: K,
              },
            ],
            void 0,
            pe,
            fe,
            t,
            e,
            o,
            i,
          );
          ve.length && G({ fix: ve[0], symbolName: q });
        } else {
          const ve = G7(ye, 99, t, o),
            xe = hy.getLocalModuleSpecifierBetweenFileNames(
              e,
              ye,
              l,
              p0(t, o),
              i,
            ),
            X = TK(ve, ie, t),
            Ce = uz(pe, !0, void 0, K, t.getTypeChecker(), l);
          G({
            fix: {
              kind: 3,
              moduleSpecifierKind: "relative",
              moduleSpecifier: xe,
              importKind: X,
              addAsTypeOnly: Ce,
              useRequire: fe,
            },
            symbolName: q,
          });
        }
      }
      function O(q) {
        (q.kind === 274 &&
          C.assertIsDefined(
            q.name,
            "ImportClause should have a name if it's being removed",
          ),
          h.add(q));
      }
      function G(q) {
        var ye, ie, K;
        const { fix: pe, symbolName: de } = q;
        switch (pe.kind) {
          case 0:
            u.push(pe);
            break;
          case 1:
            d.push(pe);
            break;
          case 2: {
            const {
              importClauseOrBindingPattern: X,
              importKind: Ce,
              addAsTypeOnly: Je,
              propertyName: Se,
            } = pe;
            let re = _.get(X);
            if (
              (re ||
                _.set(
                  X,
                  (re = {
                    importClauseOrBindingPattern: X,
                    defaultImport: void 0,
                    namedImports: new Map(),
                  }),
                ),
              Ce === 0)
            ) {
              const be =
                (ye = re?.namedImports.get(de)) == null
                  ? void 0
                  : ye.addAsTypeOnly;
              re.namedImports.set(de, {
                addAsTypeOnly: fe(be, Je),
                propertyName: Se,
              });
            } else
              (C.assert(
                re.defaultImport === void 0 || re.defaultImport.name === de,
                "(Add to Existing) Default import should be missing or match symbolName",
              ),
                (re.defaultImport = {
                  name: de,
                  addAsTypeOnly: fe(
                    (ie = re.defaultImport) == null ? void 0 : ie.addAsTypeOnly,
                    Je,
                  ),
                }));
            break;
          }
          case 3: {
            const {
                moduleSpecifier: X,
                importKind: Ce,
                useRequire: Je,
                addAsTypeOnly: Se,
                propertyName: re,
              } = pe,
              be = ve(X, Ce, Je, Se);
            switch (
              (C.assert(
                be.useRequire === Je,
                "(Add new) Tried to add an `import` and a `require` for the same module",
              ),
              Ce)
            ) {
              case 1:
                (C.assert(
                  be.defaultImport === void 0 || be.defaultImport.name === de,
                  "(Add new) Default import should be missing or match symbolName",
                ),
                  (be.defaultImport = {
                    name: de,
                    addAsTypeOnly: fe(
                      (K = be.defaultImport) == null ? void 0 : K.addAsTypeOnly,
                      Se,
                    ),
                  }));
                break;
              case 0:
                const Ne = (
                  be.namedImports || (be.namedImports = new Map())
                ).get(de);
                be.namedImports.set(de, [fe(Ne, Se), re]);
                break;
              case 3:
                if (l.verbatimModuleSyntax) {
                  const Be = (
                    be.namedImports || (be.namedImports = new Map())
                  ).get(de);
                  be.namedImports.set(de, [fe(Be, Se), re]);
                } else
                  (C.assert(
                    be.namespaceLikeImport === void 0 ||
                      be.namespaceLikeImport.name === de,
                    "Namespacelike import shoudl be missing or match symbolName",
                  ),
                    (be.namespaceLikeImport = {
                      importKind: Ce,
                      name: de,
                      addAsTypeOnly: Se,
                    }));
                break;
              case 2:
                (C.assert(
                  be.namespaceLikeImport === void 0 ||
                    be.namespaceLikeImport.name === de,
                  "Namespacelike import shoudl be missing or match symbolName",
                ),
                  (be.namespaceLikeImport = {
                    importKind: Ce,
                    name: de,
                    addAsTypeOnly: Se,
                  }));
                break;
            }
            break;
          }
          case 4:
            break;
          default:
            C.assertNever(pe, `fix wasn't never - got kind ${pe.kind}`);
        }
        function fe(X, Ce) {
          return Math.max(X ?? 0, Ce);
        }
        function ve(X, Ce, Je, Se) {
          const re = xe(X, !0),
            be = xe(X, !1),
            Ne = E.get(re),
            Be = E.get(be),
            lt = {
              defaultImport: void 0,
              namedImports: void 0,
              namespaceLikeImport: void 0,
              useRequire: Je,
            };
          return Ce === 1 && Se === 2
            ? Ne || (E.set(re, lt), lt)
            : Se === 1 && (Ne || Be)
              ? Ne || Be
              : Be || (E.set(be, lt), lt);
        }
        function xe(X, Ce) {
          return `${Ce ? 1 : 0}|${X}`;
        }
      }
      function j(q, ye) {
        var ie, K;
        let pe;
        e.imports !== void 0 && e.imports.length === 0 && ye !== void 0
          ? (pe = ye)
          : (pe = Gp(e, i));
        for (const ve of u) Bue(q, e, ve);
        for (const ve of d) DNe(q, e, ve, pe);
        let de;
        if (h.size) {
          C.assert(_g(e), "Cannot remove imports from a future source file");
          const ve = new Set(Ui([...h], (Se) => Dn(Se, vl))),
            xe = new Set(Ui([...h], (Se) => Dn(Se, pk))),
            X = [...ve].filter((Se) => {
              var re, be, Ne;
              return (
                !_.has(Se.importClause) &&
                (!((re = Se.importClause) != null && re.name) ||
                  h.has(Se.importClause)) &&
                (!ni(
                  (be = Se.importClause) == null ? void 0 : be.namedBindings,
                  Ig,
                ) ||
                  h.has(Se.importClause.namedBindings)) &&
                (!ni(
                  (Ne = Se.importClause) == null ? void 0 : Ne.namedBindings,
                  n_,
                ) ||
                  Vn(Se.importClause.namedBindings.elements, (Be) => h.has(Be)))
              );
            }),
            Ce = [...xe].filter(
              (Se) =>
                (Se.name.kind !== 207 || !_.has(Se.name)) &&
                (Se.name.kind !== 207 ||
                  Vn(Se.name.elements, (re) => h.has(re))),
            ),
            Je = [...ve].filter((Se) => {
              var re, be;
              return (
                ((re = Se.importClause) == null ? void 0 : re.namedBindings) &&
                X.indexOf(Se) === -1 &&
                !((be = _.get(Se.importClause)) != null && be.namedImports) &&
                (Se.importClause.namedBindings.kind === 275 ||
                  Vn(Se.importClause.namedBindings.elements, (Ne) => h.has(Ne)))
              );
            });
          for (const Se of [...X, ...Ce]) q.delete(e, Se);
          for (const Se of Je)
            q.replaceNode(
              e,
              Se.importClause,
              L.updateImportClause(
                Se.importClause,
                Se.importClause.phaseModifier,
                Se.importClause.name,
                void 0,
              ),
            );
          for (const Se of h) {
            const re = Dn(Se, vl);
            re && X.indexOf(re) === -1 && Je.indexOf(re) === -1
              ? Se.kind === 274
                ? q.delete(e, Se.name)
                : (C.assert(
                    Se.kind === 277,
                    "NamespaceImport should have been handled earlier",
                  ),
                  (ie = _.get(re.importClause)) != null && ie.namedImports
                    ? (de ?? (de = new Set())).add(Se)
                    : q.delete(e, Se))
              : Se.kind === 209
                ? (K = _.get(Se.parent)) != null && K.namedImports
                  ? (de ?? (de = new Set())).add(Se)
                  : q.delete(e, Se)
                : Se.kind === 272 && q.delete(e, Se);
          }
        }
        _.forEach(
          ({
            importClauseOrBindingPattern: ve,
            defaultImport: xe,
            namedImports: X,
          }) => {
            RNe(
              q,
              e,
              ve,
              xe,
              Co(
                X.entries(),
                ([Ce, { addAsTypeOnly: Je, propertyName: Se }]) => ({
                  addAsTypeOnly: Je,
                  propertyName: Se,
                  name: Ce,
                }),
              ),
              de,
              i,
            );
          },
        );
        let fe;
        (E.forEach(
          (
            {
              useRequire: ve,
              defaultImport: xe,
              namedImports: X,
              namespaceLikeImport: Ce,
            },
            Je,
          ) => {
            const Se = Je.slice(2),
              be = (ve ? MNe : NNe)(
                Se,
                pe,
                xe,
                X &&
                  Co(X.entries(), ([Ne, [Be, lt]]) => ({
                    addAsTypeOnly: Be,
                    propertyName: lt,
                    name: Ne,
                  })),
                Ce,
                l,
                i,
              );
            fe = XA(fe, be);
          },
        ),
          (fe = XA(fe, J())),
          fe && Qq(q, e, fe, !0, i));
      }
      function J() {
        if (!g.size) return;
        const q = new Set(Ui([...g], (ie) => Dn(ie, vl))),
          ye = new Set(Ui([...g], (ie) => Dn(ie, fk)));
        return [
          ...Ui([...g], (ie) => (ie.kind === 272 ? _s(ie, !0) : void 0)),
          ...[...q].map((ie) => {
            var K;
            return g.has(ie)
              ? _s(ie, !0)
              : _s(
                  L.updateImportDeclaration(
                    ie,
                    ie.modifiers,
                    ie.importClause &&
                      L.updateImportClause(
                        ie.importClause,
                        ie.importClause.phaseModifier,
                        g.has(ie.importClause) ? ie.importClause.name : void 0,
                        g.has(ie.importClause.namedBindings)
                          ? ie.importClause.namedBindings
                          : (K = ni(ie.importClause.namedBindings, n_)) !=
                                null && K.elements.some((pe) => g.has(pe))
                            ? L.updateNamedImports(
                                ie.importClause.namedBindings,
                                ie.importClause.namedBindings.elements.filter(
                                  (pe) => g.has(pe),
                                ),
                              )
                            : void 0,
                      ),
                    ie.moduleSpecifier,
                    ie.attributes,
                  ),
                  !0,
                );
          }),
          ...[...ye].map((ie) =>
            g.has(ie)
              ? _s(ie, !0)
              : _s(
                  L.updateVariableStatement(
                    ie,
                    ie.modifiers,
                    L.updateVariableDeclarationList(
                      ie.declarationList,
                      Ui(ie.declarationList.declarations, (K) =>
                        g.has(K)
                          ? K
                          : L.updateVariableDeclaration(
                              K,
                              K.name.kind === 207
                                ? L.updateObjectBindingPattern(
                                    K.name,
                                    K.name.elements.filter((pe) => g.has(pe)),
                                  )
                                : K.name,
                              K.exclamationToken,
                              K.type,
                              K.initializer,
                            ),
                      ),
                    ),
                  ),
                  !0,
                ),
          ),
        ];
      }
      function Z() {
        return (
          u.length > 0 ||
          d.length > 0 ||
          _.size > 0 ||
          E.size > 0 ||
          g.size > 0 ||
          h.size > 0
        );
      }
    }
    function GZe(e, t, r, i) {
      const o = aC(e, i, r),
        s = gNe(e, t);
      return { getModuleSpecifierForBestExportInfo: l };
      function l(u, d, _, h) {
        const { fixes: g, computedWithoutCacheCount: E } = dz(
            u,
            d,
            _,
            !1,
            t,
            e,
            r,
            i,
            s,
            h,
          ),
          A = TNe(g, e, t, o, r, i);
        return A && { ...A, computedWithoutCacheCount: E };
      }
    }
    function VZe(e, t, r, i, o, s, l, u, d, _, h, g) {
      let E;
      r
        ? ((E = wO(i, l, u, h, g).get(i.path, r)),
          C.assertIsDefined(
            E,
            "Some exportInfo should match the specified exportMapKey",
          ))
        : ((E = x9(_m(t.name))
            ? [UZe(e, o, t, u, l)]
            : _Ne(i, e, o, t, s, u, l, h, g)),
          C.assertIsDefined(
            E,
            "Some exportInfo should match the specified symbol / moduleSymbol",
          ));
      const A = KO(i, u),
        R = HT(Fi(i, _)),
        N = C.checkDefined(Wue(i, E, u, _, R, A, l, h));
      return {
        moduleSpecifier: N.moduleSpecifier,
        codeAction: hNe(
          zue({ host: l, formatContext: d, preferences: h }, i, o, N, !1, u, h),
        ),
      };
    }
    function jZe(e, t, r, i, o, s) {
      const l = r.getCompilerOptions(),
        u = BB(Fue(e, r.getTypeChecker(), t, l)),
        d = INe(e, t, u, r),
        _ = u !== t.text;
      return (
        d &&
        hNe(
          zue({ host: i, formatContext: o, preferences: s }, e, u, d, _, r, s),
        )
      );
    }
    function Wue(e, t, r, i, o, s, l, u) {
      const d = aC(e, u, l);
      return TNe(dz(t, i, o, s, r, e, l, u).fixes, e, r, d, l, u);
    }
    function hNe({ description: e, changes: t, commands: r }) {
      return { description: e, changes: t, commands: r };
    }
    function _Ne(e, t, r, i, o, s, l, u, d) {
      const _ = yNe(s, l),
        h = u.autoImportFileExcludePatterns && Ece(l, u),
        g = s.getTypeChecker().getMergedSymbol(i),
        E = h && g.declarations && al(g, 308),
        A = E && h(E);
      return wO(e, l, s, u, d).search(
        e.path,
        o,
        (R) => R === r,
        (R) => {
          const N = _(R[0].isFromPackageJson);
          if (
            N.getMergedSymbol(xd(R[0].symbol, N)) === t &&
            (A ||
              R.some(
                (P) =>
                  N.getMergedSymbol(P.moduleSymbol) === i ||
                  P.symbol.parent === i,
              ))
          )
            return R;
        },
      );
    }
    function UZe(e, t, r, i, o) {
      var s, l;
      const u = _(i.getTypeChecker(), !1);
      if (u) return u;
      const d =
        (l =
          (s = o.getPackageJsonAutoImportProvider) == null
            ? void 0
            : s.call(o)) == null
          ? void 0
          : l.getTypeChecker();
      return C.checkDefined(
        d && _(d, !0),
        "Could not find symbol in specified module for code actions",
      );
      function _(h, g) {
        const E = V7(r, h);
        if (E && xd(E.symbol, h) === e)
          return {
            symbol: E.symbol,
            moduleSymbol: r,
            moduleFileName: void 0,
            exportKind: E.exportKind,
            targetFlags: xd(e, h).flags,
            isFromPackageJson: g,
          };
        const A = h.tryGetMemberInModuleExportsAndProperties(t, r);
        if (A && xd(A, h) === e)
          return {
            symbol: A,
            moduleSymbol: r,
            moduleFileName: void 0,
            exportKind: 0,
            targetFlags: xd(e, h).flags,
            isFromPackageJson: g,
          };
      }
    }
    function dz(e, t, r, i, o, s, l, u, d = _g(s) ? gNe(s, o) : void 0, _) {
      const h = o.getTypeChecker(),
        g = d ? Ki(e, d.getImportsForExportInfo) : ae,
        E = t !== void 0 && HZe(g, t),
        A = JZe(g, r, h, o.getCompilerOptions());
      if (A)
        return { computedWithoutCacheCount: 0, fixes: [...(E ? [E] : ae), A] };
      const { fixes: R, computedWithoutCacheCount: N = 0 } = XZe(
        e,
        g,
        o,
        s,
        t,
        r,
        i,
        l,
        u,
        _,
      );
      return { computedWithoutCacheCount: N, fixes: [...(E ? [E] : ae), ...R] };
    }
    function HZe(e, t) {
      return Hn(e, ({ declaration: r, importKind: i }) => {
        var o;
        if (i !== 0) return;
        const s = qZe(r),
          l = s && ((o = gI(r)) == null ? void 0 : o.text);
        if (l)
          return {
            kind: 0,
            namespacePrefix: s,
            usagePosition: t,
            moduleSpecifierKind: void 0,
            moduleSpecifier: l,
          };
      });
    }
    function qZe(e) {
      var t, r, i;
      switch (e.kind) {
        case 261:
          return (t = ni(e.name, He)) == null ? void 0 : t.text;
        case 272:
          return e.name.text;
        case 352:
        case 273:
          return (i = ni(
            (r = e.importClause) == null ? void 0 : r.namedBindings,
            Ig,
          )) == null
            ? void 0
            : i.name.text;
        default:
          return C.assertNever(e);
      }
    }
    function uz(e, t, r, i, o, s) {
      return e
        ? r &&
          s.verbatimModuleSyntax &&
          (!(i & 111551) || o.getTypeOnlyAliasDeclaration(r))
          ? 2
          : 1
        : 4;
    }
    function JZe(e, t, r, i) {
      let o;
      for (const l of e) {
        const u = s(l);
        if (!u) continue;
        const d = FR(u.importClauseOrBindingPattern);
        if ((u.addAsTypeOnly !== 4 && d) || (u.addAsTypeOnly === 4 && !d))
          return u;
        o ?? (o = u);
      }
      return o;
      function s({ declaration: l, importKind: u, symbol: d, targetFlags: _ }) {
        if (u === 3 || u === 2 || l.kind === 272) return;
        if (l.kind === 261)
          return (u === 0 || u === 1) && l.name.kind === 207
            ? {
                kind: 2,
                importClauseOrBindingPattern: l.name,
                importKind: u,
                moduleSpecifierKind: void 0,
                moduleSpecifier: l.initializer.arguments[0].text,
                addAsTypeOnly: 4,
              }
            : void 0;
        const { importClause: h } = l;
        if (!h || !ds(l.moduleSpecifier)) return;
        const { name: g, namedBindings: E } = h;
        if (h.isTypeOnly && !(u === 0 && E)) return;
        const A = uz(t, !1, d, _, r, i);
        if (
          !(u === 1 && (g || (A === 2 && E))) &&
          !(u === 0 && E?.kind === 275)
        )
          return {
            kind: 2,
            importClauseOrBindingPattern: h,
            importKind: u,
            moduleSpecifierKind: void 0,
            moduleSpecifier: l.moduleSpecifier.text,
            addAsTypeOnly: A,
          };
      }
    }
    function gNe(e, t) {
      const r = t.getTypeChecker();
      let i;
      for (const o of e.imports) {
        const s = eM(o);
        if (pk(s.parent)) {
          const l = r.resolveExternalModuleName(o);
          l && (i || (i = cm())).add(Ta(l), s.parent);
        } else if (s.kind === 273 || s.kind === 272 || s.kind === 352) {
          const l = r.getSymbolAtLocation(o);
          l && (i || (i = cm())).add(Ta(l), s);
        }
      }
      return {
        getImportsForExportInfo: ({
          moduleSymbol: o,
          exportKind: s,
          targetFlags: l,
          symbol: u,
        }) => {
          const d = i?.get(Ta(o));
          if (!d || (Pu(e) && !(l & 111551) && !Vn(d, o_))) return ae;
          const _ = TK(e, s, t);
          return d.map((h) => ({
            declaration: h,
            importKind: _,
            symbol: u,
            targetFlags: l,
          }));
        },
      };
    }
    function KO(e, t) {
      if (!Tg(e.fileName)) return !1;
      if (e.commonJsModuleIndicator && !e.externalModuleIndicator) return !0;
      if (e.externalModuleIndicator && !e.commonJsModuleIndicator) return !1;
      const r = t.getCompilerOptions();
      if (r.configFile) return bu(r) < 5;
      if (Vue(e, t) === 1) return !0;
      if (Vue(e, t) === 99) return !1;
      for (const i of t.getSourceFiles())
        if (!(i === e || !Pu(i) || t.isSourceFileFromExternalLibrary(i))) {
          if (i.commonJsModuleIndicator && !i.externalModuleIndicator)
            return !0;
          if (i.externalModuleIndicator && !i.commonJsModuleIndicator)
            return !1;
        }
      return !0;
    }
    function yNe(e, t) {
      return Fh((r) =>
        r
          ? t.getPackageJsonAutoImportProvider().getTypeChecker()
          : e.getTypeChecker(),
      );
    }
    function KZe(e, t, r, i, o, s, l, u, d) {
      const _ = Tg(t.fileName),
        h = e.getCompilerOptions(),
        g = p0(e, l),
        E = yNe(e, l),
        A = iu(h),
        R = S7(A),
        N = d
          ? (W) => hy.tryGetModuleSpecifiersFromCache(W.moduleSymbol, t, g, u)
          : (W, O) =>
              hy.getModuleSpecifiersWithCacheInfo(
                W.moduleSymbol,
                O,
                h,
                t,
                g,
                u,
                void 0,
                !0,
              );
      let P = 0;
      const k = Ki(s, (W, O) => {
        const G = E(W.isFromPackageJson),
          {
            computedWithoutCache: j,
            moduleSpecifiers: J,
            kind: Z,
          } = N(W, G) ?? {},
          q = !!(W.targetFlags & 111551),
          ye = uz(i, !0, W.symbol, W.targetFlags, G, h);
        return (
          (P += j ? 1 : 0),
          Ui(J, (ie) => {
            if (R && Wb(ie)) return;
            if (!q && _ && r !== void 0)
              return {
                kind: 1,
                moduleSpecifierKind: Z,
                moduleSpecifier: ie,
                usagePosition: r,
                exportInfo: W,
                isReExport: O > 0,
              };
            const K = TK(t, W.exportKind, e);
            let pe;
            if (r !== void 0 && K === 3 && W.exportKind === 0) {
              const de = G.resolveExternalModuleSymbol(W.moduleSymbol);
              let fe;
              (de !== W.moduleSymbol && (fe = j7(de, G, Ga(h), Vs)),
                fe || (fe = PO(W.moduleSymbol, Ga(h), !1)),
                (pe = { namespacePrefix: fe, usagePosition: r }));
            }
            return {
              kind: 3,
              moduleSpecifierKind: Z,
              moduleSpecifier: ie,
              importKind: K,
              useRequire: o,
              addAsTypeOnly: ye,
              exportInfo: W,
              isReExport: O > 0,
              qualification: pe,
            };
          })
        );
      });
      return { computedWithoutCacheCount: P, fixes: k };
    }
    function XZe(e, t, r, i, o, s, l, u, d, _) {
      const h = Hn(t, (g) =>
        YZe(g, s, l, r.getTypeChecker(), r.getCompilerOptions()),
      );
      return h ? { fixes: [h] } : KZe(r, i, o, s, l, e, u, d, _);
    }
    function YZe(
      { declaration: e, importKind: t, symbol: r, targetFlags: i },
      o,
      s,
      l,
      u,
    ) {
      var d;
      const _ = (d = gI(e)) == null ? void 0 : d.text;
      if (_) {
        const h = s ? 4 : uz(o, !0, r, i, l, u);
        return {
          kind: 3,
          moduleSpecifierKind: void 0,
          moduleSpecifier: _,
          importKind: t,
          addAsTypeOnly: h,
          useRequire: s,
        };
      }
    }
    function vNe(e, t, r, i) {
      const o = Fi(e.sourceFile, r);
      let s;
      if (
        t ===
        f
          ._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead
          .code
      )
        s = tet(e, o);
      else if (He(o))
        if (
          t ===
          f
            ._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type
            .code
        ) {
          const u = BB(
              Fue(
                e.sourceFile,
                e.program.getTypeChecker(),
                o,
                e.program.getCompilerOptions(),
              ),
            ),
            d = INe(e.sourceFile, o, u, e.program);
          return d && [{ fix: d, symbolName: u, errorIdentifierText: o.text }];
        } else s = ANe(e, o, i);
      else return;
      const l = aC(e.sourceFile, e.preferences, e.host);
      return s && bNe(s, e.sourceFile, e.program, l, e.host, e.preferences);
    }
    function bNe(e, t, r, i, o, s) {
      const l = (u) => ks(u, o.getCurrentDirectory(), ay(o));
      return xp(
        e,
        (u, d) =>
          NT(!!u.isJsxNamespaceFix, !!d.isJsxNamespaceFix) ||
          js(u.fix.kind, d.fix.kind) ||
          SNe(u.fix, d.fix, t, r, s, i.allowsImportingSpecifier, l),
      );
    }
    function $Ze(e, t, r) {
      const i = ANe(e, t, r),
        o = aC(e.sourceFile, e.preferences, e.host);
      return i && bNe(i, e.sourceFile, e.program, o, e.host, e.preferences);
    }
    function TNe(e, t, r, i, o, s) {
      if (yt(e))
        return e[0].kind === 0 || e[0].kind === 2
          ? e[0]
          : e.reduce((l, u) =>
              SNe(u, l, t, r, s, i.allowsImportingSpecifier, (d) =>
                ks(d, o.getCurrentDirectory(), ay(o)),
              ) === -1
                ? u
                : l,
            );
    }
    function SNe(e, t, r, i, o, s, l) {
      return e.kind !== 0 && t.kind !== 0
        ? NT(
            t.moduleSpecifierKind !== "node_modules" || s(t.moduleSpecifier),
            e.moduleSpecifierKind !== "node_modules" || s(e.moduleSpecifier),
          ) ||
            QZe(e, t, o) ||
            eet(e.moduleSpecifier, t.moduleSpecifier, r, i) ||
            NT(ENe(e, r.path, l), ENe(t, r.path, l)) ||
            Qk(e.moduleSpecifier, t.moduleSpecifier)
        : 0;
    }
    function QZe(e, t, r) {
      return r.importModuleSpecifierPreference === "non-relative" ||
        r.importModuleSpecifierPreference === "project-relative"
        ? NT(
            e.moduleSpecifierKind === "relative",
            t.moduleSpecifierKind === "relative",
          )
        : 0;
    }
    function ENe(e, t, r) {
      var i;
      if (
        e.isReExport &&
        (i = e.exportInfo) != null &&
        i.moduleFileName &&
        ZZe(e.exportInfo.moduleFileName)
      ) {
        const o = r(ci(e.exportInfo.moduleFileName));
        return po(t, o);
      }
      return !1;
    }
    function ZZe(e) {
      return Ic(e, [".js", ".jsx", ".d.ts", ".ts", ".tsx"], !0) === "index";
    }
    function eet(e, t, r, i) {
      return po(e, "node:") && !po(t, "node:")
        ? F7(r, i)
          ? -1
          : 1
        : po(t, "node:") && !po(e, "node:")
          ? F7(r, i)
            ? 1
            : -1
          : 0;
    }
    function tet({ sourceFile: e, program: t, host: r, preferences: i }, o) {
      const s = t.getTypeChecker(),
        l = net(o, s);
      if (!l) return;
      const u = s.getAliasedSymbol(l),
        d = l.name,
        _ = [
          {
            symbol: l,
            moduleSymbol: u,
            moduleFileName: void 0,
            exportKind: 3,
            targetFlags: u.flags,
            isFromPackageJson: !1,
          },
        ],
        h = KO(e, t);
      return dz(_, void 0, !1, h, t, e, r, i).fixes.map((E) => {
        var A;
        return {
          fix: E,
          symbolName: d,
          errorIdentifierText: (A = ni(o, He)) == null ? void 0 : A.text,
        };
      });
    }
    function net(e, t) {
      const r = He(e) ? t.getSymbolAtLocation(e) : void 0;
      if (N6(r)) return r;
      const { parent: i } = e;
      if ((ru(i) && i.tagName === e) || jm(i)) {
        const o = t.resolveName(
          t.getJsxNamespace(i),
          ru(i) ? e : i,
          111551,
          !1,
        );
        if (N6(o)) return o;
      }
    }
    function TK(e, t, r, i) {
      if (r.getCompilerOptions().verbatimModuleSyntax && det(e, r) === 1)
        return 3;
      switch (t) {
        case 0:
          return 0;
        case 1:
          return 1;
        case 2:
          return aet(e, r.getCompilerOptions(), !!i);
        case 3:
          return ret(e, r, !!i);
        case 4:
          return 2;
        default:
          return C.assertNever(t);
      }
    }
    function ret(e, t, r) {
      if (PI(t.getCompilerOptions())) return 1;
      const i = bu(t.getCompilerOptions());
      switch (i) {
        case 2:
        case 1:
        case 3:
          return Tg(e.fileName) && (e.externalModuleIndicator || r) ? 2 : 3;
        case 4:
        case 5:
        case 6:
        case 7:
        case 99:
        case 0:
        case 200:
          return 2;
        case 100:
        case 101:
        case 102:
        case 199:
          return Vue(e, t) === 99 ? 2 : 3;
        default:
          return C.assertNever(i, `Unexpected moduleKind ${i}`);
      }
    }
    function ANe(
      {
        sourceFile: e,
        program: t,
        cancellationToken: r,
        host: i,
        preferences: o,
      },
      s,
      l,
    ) {
      const u = t.getTypeChecker(),
        d = t.getCompilerOptions();
      return Ki(Fue(e, u, s, d), (_) => {
        if (_ === "default") return;
        const h = HT(s),
          g = KO(e, t),
          E = oet(_, $R(s), W1(s), r, e, t, l, i, o);
        return Co(
          lf(E.values(), (A) => dz(A, s.getStart(e), h, g, t, e, i, o).fixes),
          (A) => ({
            fix: A,
            symbolName: _,
            errorIdentifierText: s.text,
            isJsxNamespaceFix: _ !== s.text,
          }),
        );
      });
    }
    function INe(e, t, r, i) {
      const o = i.getTypeChecker(),
        s = o.resolveName(r, t, 111551, !0);
      if (!s) return;
      const l = o.getTypeOnlyAliasDeclaration(s);
      if (!(!l || Wn(l) !== e)) return { kind: 4, typeOnlyAliasDeclaration: l };
    }
    function Fue(e, t, r, i) {
      const o = r.parent;
      if ((ru(o) || VS(o)) && o.tagName === r && bJ(i.jsx)) {
        const s = t.getJsxNamespace(e);
        if (iet(s, r, t))
          return !oD(r.text) && !t.resolveName(r.text, r, 111551, !1)
            ? [r.text, s]
            : [s];
      }
      return [r.text];
    }
    function iet(e, t, r) {
      if (oD(t.text)) return !0;
      const i = r.resolveName(e, t, 111551, !0);
      return !i || (yt(i.declarations, Qy) && !(i.flags & 111551));
    }
    function oet(e, t, r, i, o, s, l, u, d) {
      var _;
      const h = cm(),
        g = aC(o, d, u),
        E = (_ = u.getModuleSpecifierCache) == null ? void 0 : _.call(u),
        A = Fh((N) => p0(N ? u.getPackageJsonAutoImportProvider() : s, u));
      function R(N, P, k, W, O, G) {
        const j = A(G);
        if (EJ(O, o, P, N, d, g, j, E)) {
          const J = O.getTypeChecker();
          h.add(cce(k, J).toString(), {
            symbol: k,
            moduleSymbol: N,
            moduleFileName: P?.fileName,
            exportKind: W,
            targetFlags: xd(k, J).flags,
            isFromPackageJson: G,
          });
        }
      }
      return (
        AJ(s, u, d, l, (N, P, k, W) => {
          const O = k.getTypeChecker();
          i.throwIfCancellationRequested();
          const G = k.getCompilerOptions(),
            j = V7(N, O);
          j &&
            LNe(O.getSymbolFlags(j.symbol), r) &&
            j7(j.symbol, O, Ga(G), (Z, q) => (t ? (q ?? Z) : Z) === e) &&
            R(N, P, j.symbol, j.exportKind, k, W);
          const J = O.tryGetMemberInModuleExportsAndProperties(e, N);
          J && LNe(O.getSymbolFlags(J), r) && R(N, P, J, 0, k, W);
        }),
        h
      );
    }
    function aet(e, t, r) {
      const i = PI(t),
        o = Tg(e.fileName);
      if (!o && bu(t) >= 5) return i ? 1 : 2;
      if (o) return e.externalModuleIndicator || r ? (i ? 1 : 2) : 3;
      for (const s of e.statements ?? ae)
        if (Fc(s) && !Ol(s.moduleReference)) return 3;
      return i ? 1 : 3;
    }
    function zue(e, t, r, i, o, s, l) {
      let u;
      const d = Rr.ChangeTracker.with(e, (_) => {
        u = set(_, t, r, i, o, s, l);
      });
      return oa(uNe, d, u, pNe, f.Add_all_missing_imports);
    }
    function set(e, t, r, i, o, s, l) {
      const u = Gp(t, l);
      switch (i.kind) {
        case 0:
          return (
            Bue(e, t, i),
            [f.Change_0_to_1, r, `${i.namespacePrefix}.${r}`]
          );
        case 1:
          return (
            DNe(e, t, i, u),
            [f.Change_0_to_1, r, CNe(i.moduleSpecifier, u) + r]
          );
        case 2: {
          const {
            importClauseOrBindingPattern: d,
            importKind: _,
            addAsTypeOnly: h,
            moduleSpecifier: g,
          } = i;
          RNe(
            e,
            t,
            d,
            _ === 1 ? { name: r, addAsTypeOnly: h } : void 0,
            _ === 0 ? [{ name: r, addAsTypeOnly: h }] : ae,
            void 0,
            l,
          );
          const E = _m(g);
          return o ? [f.Import_0_from_1, r, E] : [f.Update_import_from_0, E];
        }
        case 3: {
          const {
              importKind: d,
              moduleSpecifier: _,
              addAsTypeOnly: h,
              useRequire: g,
              qualification: E,
            } = i,
            A = g ? MNe : NNe,
            R = d === 1 ? { name: r, addAsTypeOnly: h } : void 0,
            N = d === 0 ? [{ name: r, addAsTypeOnly: h }] : void 0,
            P =
              d === 2 || d === 3
                ? {
                    importKind: d,
                    name: E?.namespacePrefix || r,
                    addAsTypeOnly: h,
                  }
                : void 0;
          return (
            Qq(e, t, A(_, u, R, N, P, s.getCompilerOptions(), l), !0, l),
            E && Bue(e, t, E),
            o ? [f.Import_0_from_1, r, _] : [f.Add_import_from_0, _]
          );
        }
        case 4: {
          const { typeOnlyAliasDeclaration: d } = i,
            _ = cet(e, d, s, t, l);
          return _.kind === 277
            ? [f.Remove_type_from_import_of_0_from_1, r, xNe(_.parent.parent)]
            : [f.Remove_type_from_import_declaration_from_0, xNe(_)];
        }
        default:
          return C.assertNever(i, `Unexpected fix kind ${i.kind}`);
      }
    }
    function xNe(e) {
      var t, r;
      return e.kind === 272
        ? ((r = ni(
            (t = ni(e.moduleReference, uy)) == null ? void 0 : t.expression,
            ds,
          )) == null
            ? void 0
            : r.text) || e.moduleReference.getText()
        : ma(e.parent.moduleSpecifier, ka).text;
    }
    function cet(e, t, r, i, o) {
      const s = r.getCompilerOptions(),
        l = s.verbatimModuleSyntax;
      switch (t.kind) {
        case 277:
          if (t.isTypeOnly) {
            if (t.parent.elements.length > 1) {
              const d = L.updateImportSpecifier(t, !1, t.propertyName, t.name),
                { specifierComparer: _ } =
                  v0.getNamedImportSpecifierComparerWithDetection(
                    t.parent.parent.parent,
                    o,
                    i,
                  ),
                h = v0.getImportSpecifierInsertionIndex(
                  t.parent.elements,
                  d,
                  _,
                );
              if (h !== t.parent.elements.indexOf(t))
                return (
                  e.delete(i, t),
                  e.insertImportSpecifierAtIndex(i, d, t.parent, h),
                  t
                );
            }
            return (
              e.deleteRange(i, {
                pos: gb(t.getFirstToken()),
                end: gb(t.propertyName ?? t.name),
              }),
              t
            );
          } else
            return (
              C.assert(t.parent.parent.isTypeOnly),
              u(t.parent.parent),
              t.parent.parent
            );
        case 274:
          return (u(t), t);
        case 275:
          return (u(t.parent), t.parent);
        case 272:
          return (e.deleteRange(i, t.getChildAt(1)), t);
        default:
          C.failBadSyntaxKind(t);
      }
      function u(d) {
        var _;
        if ((e.delete(i, Zq(d, i)), !s.allowImportingTsExtensions)) {
          const h = gI(d.parent),
            g =
              h &&
              ((_ = r.getResolvedModuleFromModuleSpecifier(h, i)) == null
                ? void 0
                : _.resolvedModule);
          if (g?.resolvedUsingTsExtension) {
            const E = E2(h.text, Zw(h.text, s));
            e.replaceNode(i, h, L.createStringLiteral(E));
          }
        }
        if (l) {
          const h = ni(d.namedBindings, n_);
          if (h && h.elements.length > 1) {
            v0.getNamedImportSpecifierComparerWithDetection(d.parent, o, i)
              .isSorted !== !1 &&
              t.kind === 277 &&
              h.elements.indexOf(t) !== 0 &&
              (e.delete(i, t), e.insertImportSpecifierAtIndex(i, t, h, 0));
            for (const E of h.elements)
              E !== t && !E.isTypeOnly && e.insertModifierBefore(i, 156, E);
          }
        }
      }
    }
    function RNe(e, t, r, i, o, s, l) {
      var u;
      if (r.kind === 207) {
        if (s && r.elements.some((g) => s.has(g))) {
          e.replaceNode(
            t,
            r,
            L.createObjectBindingPattern([
              ...r.elements.filter((g) => !s.has(g)),
              ...(i ? [L.createBindingElement(void 0, "default", i.name)] : ae),
              ...o.map((g) =>
                L.createBindingElement(void 0, g.propertyName, g.name),
              ),
            ]),
          );
          return;
        }
        i && h(r, i.name, "default");
        for (const g of o) h(r, g.name, g.propertyName);
        return;
      }
      const d = r.isTypeOnly && yt([i, ...o], (g) => g?.addAsTypeOnly === 4),
        _ =
          r.namedBindings &&
          ((u = ni(r.namedBindings, n_)) == null ? void 0 : u.elements);
      if (
        (i &&
          (C.assert(
            !r.name,
            "Cannot add a default import to an import clause that already has one",
          ),
          e.insertNodeAt(t, r.getStart(t), L.createIdentifier(i.name), {
            suffix: ", ",
          })),
        o.length)
      ) {
        const { specifierComparer: g, isSorted: E } =
            v0.getNamedImportSpecifierComparerWithDetection(r.parent, l, t),
          A = xp(
            o.map((R) =>
              L.createImportSpecifier(
                (!r.isTypeOnly || d) && SK(R, l),
                R.propertyName === void 0
                  ? void 0
                  : L.createIdentifier(R.propertyName),
                L.createIdentifier(R.name),
              ),
            ),
            g,
          );
        if (s)
          e.replaceNode(
            t,
            r.namedBindings,
            L.updateNamedImports(
              r.namedBindings,
              xp([..._.filter((R) => !s.has(R)), ...A], g),
            ),
          );
        else if (_?.length && E !== !1) {
          const R =
            d && _
              ? L.updateNamedImports(
                  r.namedBindings,
                  Zi(_, (N) =>
                    L.updateImportSpecifier(N, !0, N.propertyName, N.name),
                  ),
                ).elements
              : _;
          for (const N of A) {
            const P = v0.getImportSpecifierInsertionIndex(R, N, g);
            e.insertImportSpecifierAtIndex(t, N, r.namedBindings, P);
          }
        } else if (_?.length)
          for (const R of A) e.insertNodeInListAfter(t, Ba(_), R, _);
        else if (A.length) {
          const R = L.createNamedImports(A);
          r.namedBindings
            ? e.replaceNode(t, r.namedBindings, R)
            : e.insertNodeAfter(
                t,
                C.checkDefined(
                  r.name,
                  "Import clause must have either named imports or a default import",
                ),
                R,
              );
        }
      }
      if (d && (e.delete(t, Zq(r, t)), _))
        for (const g of _) e.insertModifierBefore(t, 156, g);
      function h(g, E, A) {
        const R = L.createBindingElement(void 0, A, E);
        g.elements.length
          ? e.insertNodeInListAfter(t, Ba(g.elements), R)
          : e.replaceNode(t, g, L.createObjectBindingPattern([R]));
      }
    }
    function Bue(e, t, { namespacePrefix: r, usagePosition: i }) {
      e.insertText(t, i, r + ".");
    }
    function DNe(e, t, { moduleSpecifier: r, usagePosition: i }, o) {
      e.insertText(t, i, CNe(r, o));
    }
    function CNe(e, t) {
      const r = Yq(t);
      return `import(${r}${e}${r}).`;
    }
    function Gue({ addAsTypeOnly: e }) {
      return e === 2;
    }
    function SK(e, t) {
      return Gue(e) || (!!t.preferTypeOnlyAutoImports && e.addAsTypeOnly !== 4);
    }
    function NNe(e, t, r, i, o, s, l) {
      const u = NP(e, t);
      let d;
      if (r !== void 0 || i?.length) {
        const _ =
          ((!r || Gue(r)) && Vn(i, Gue)) ||
          ((s.verbatimModuleSyntax || l.preferTypeOnlyAutoImports) &&
            r?.addAsTypeOnly !== 4 &&
            !yt(i, (h) => h.addAsTypeOnly === 4));
        d = XA(
          d,
          Vb(
            r && L.createIdentifier(r.name),
            i?.map((h) =>
              L.createImportSpecifier(
                !_ && SK(h, l),
                h.propertyName === void 0
                  ? void 0
                  : L.createIdentifier(h.propertyName),
                L.createIdentifier(h.name),
              ),
            ),
            e,
            t,
            _,
          ),
        );
      }
      if (o) {
        const _ =
          o.importKind === 3
            ? L.createImportEqualsDeclaration(
                void 0,
                SK(o, l),
                L.createIdentifier(o.name),
                L.createExternalModuleReference(u),
              )
            : L.createImportDeclaration(
                void 0,
                L.createImportClause(
                  SK(o, l) ? 156 : void 0,
                  void 0,
                  L.createNamespaceImport(L.createIdentifier(o.name)),
                ),
                u,
                void 0,
              );
        d = XA(d, _);
      }
      return C.checkDefined(d);
    }
    function MNe(e, t, r, i, o) {
      const s = NP(e, t);
      let l;
      if (r || i?.length) {
        const u =
          i?.map(({ name: _, propertyName: h }) =>
            L.createBindingElement(void 0, h, _),
          ) || [];
        r && u.unshift(L.createBindingElement(void 0, "default", r.name));
        const d = PNe(L.createObjectBindingPattern(u), s);
        l = XA(l, d);
      }
      if (o) {
        const u = PNe(o.name, s);
        l = XA(l, u);
      }
      return C.checkDefined(l);
    }
    function PNe(e, t) {
      return L.createVariableStatement(
        void 0,
        L.createVariableDeclarationList(
          [
            L.createVariableDeclaration(
              typeof e == "string" ? L.createIdentifier(e) : e,
              void 0,
              void 0,
              L.createCallExpression(L.createIdentifier("require"), void 0, [
                t,
              ]),
            ),
          ],
          2,
        ),
      );
    }
    function LNe(e, t) {
      return t === 7
        ? !0
        : t & 1
          ? !!(e & 111551)
          : t & 2
            ? !!(e & 788968)
            : t & 4
              ? !!(e & 1920)
              : !1;
    }
    function Vue(e, t) {
      return _g(e)
        ? t.getImpliedNodeFormatForEmit(e)
        : O1(e, t.getCompilerOptions());
    }
    function det(e, t) {
      return _g(e)
        ? t.getEmitModuleFormatOfFile(e)
        : TP(e, t.getCompilerOptions());
    }
    var jue = "addMissingConstraint",
      kNe = [
        f.Type_0_is_not_comparable_to_type_1.code,
        f
          .Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated
          .code,
        f
          .Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties
          .code,
        f.Type_0_is_not_assignable_to_type_1.code,
        f
          .Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties
          .code,
        f.Property_0_is_incompatible_with_index_signature.code,
        f.Property_0_in_type_1_is_not_assignable_to_type_2.code,
        f.Type_0_does_not_satisfy_the_constraint_1.code,
      ];
    Sa({
      errorCodes: kNe,
      getCodeActions(e) {
        const {
            sourceFile: t,
            span: r,
            program: i,
            preferences: o,
            host: s,
          } = e,
          l = wNe(i, t, r);
        if (l === void 0) return;
        const u = Rr.ChangeTracker.with(e, (d) => ONe(d, i, o, s, t, l));
        return [
          oa(
            jue,
            u,
            f.Add_extends_constraint,
            jue,
            f.Add_extends_constraint_to_all_type_parameters,
          ),
        ];
      },
      fixIds: [jue],
      getAllCodeActions: (e) => {
        const { program: t, preferences: r, host: i } = e,
          o = new Set();
        return vx(
          Rr.ChangeTracker.with(e, (s) => {
            bx(e, kNe, (l) => {
              const u = wNe(t, l.file, Id(l.start, l.length));
              if (u && gm(o, ls(u.declaration)))
                return ONe(s, t, r, i, l.file, u);
            });
          }),
        );
      },
    });
    function wNe(e, t, r) {
      const i = hn(
        e.getSemanticDiagnostics(t),
        (l) => l.start === r.start && l.length === r.length,
      );
      if (i === void 0 || i.relatedInformation === void 0) return;
      const o = hn(
        i.relatedInformation,
        (l) =>
          l.code ===
          f.This_type_parameter_might_need_an_extends_0_constraint.code,
      );
      if (
        o === void 0 ||
        o.file === void 0 ||
        o.start === void 0 ||
        o.length === void 0
      )
        return;
      let s = Wpe(o.file, Id(o.start, o.length));
      if (s !== void 0 && (He(s) && sl(s.parent) && (s = s.parent), sl(s))) {
        if (b1(s.parent)) return;
        const l = Fi(t, r.start),
          u = e.getTypeChecker();
        return {
          constraint: pet(u, l) || uet(o.messageText),
          declaration: s,
          token: l,
        };
      }
    }
    function ONe(e, t, r, i, o, s) {
      const { declaration: l, constraint: u } = s,
        d = t.getTypeChecker();
      if (Bo(u)) e.insertText(o, l.name.end, ` extends ${u}`);
      else {
        const _ = Ga(t.getCompilerOptions()),
          h = pC({ program: t, host: i }),
          g = aE(o, t, r, i),
          E = WK(d, g, u, void 0, _, void 0, void 0, h);
        E &&
          (e.replaceNode(
            o,
            l,
            L.updateTypeParameterDeclaration(l, void 0, l.name, E, l.default),
          ),
          g.writeFixes(e));
      }
    }
    function uet(e) {
      const [, t] =
        a_(
          e,
          `
`,
          0,
        ).match(/`extends (.*)`/) || [];
      return t;
    }
    function pet(e, t) {
      return Ri(t.parent)
        ? e.getTypeArgumentConstraint(t.parent)
        : (St(t) ? e.getContextualType(t) : void 0) || e.getTypeAtLocation(t);
    }
    var WNe = "fixOverrideModifier",
      XO = "fixAddOverrideModifier",
      pz = "fixRemoveOverrideModifier",
      FNe = [
        f
          .This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0
          .code,
        f
          .This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class
          .code,
        f
          .This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0
          .code,
        f
          .This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0
          .code,
        f
          .This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0
          .code,
        f
          .This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0
          .code,
        f
          .This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class
          .code,
        f
          .This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0
          .code,
        f
          .This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0
          .code,
      ],
      zNe = {
        [f
          .This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0
          .code]: {
          descriptions: f.Add_override_modifier,
          fixId: XO,
          fixAllDescriptions: f.Add_all_missing_override_modifiers,
        },
        [f
          .This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0
          .code]: {
          descriptions: f.Add_override_modifier,
          fixId: XO,
          fixAllDescriptions: f.Add_all_missing_override_modifiers,
        },
        [f
          .This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class
          .code]: {
          descriptions: f.Remove_override_modifier,
          fixId: pz,
          fixAllDescriptions: f.Remove_all_unnecessary_override_modifiers,
        },
        [f
          .This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class
          .code]: {
          descriptions: f.Remove_override_modifier,
          fixId: pz,
          fixAllDescriptions: f.Remove_override_modifier,
        },
        [f
          .This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0
          .code]: {
          descriptions: f.Add_override_modifier,
          fixId: XO,
          fixAllDescriptions: f.Add_all_missing_override_modifiers,
        },
        [f
          .This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0
          .code]: {
          descriptions: f.Add_override_modifier,
          fixId: XO,
          fixAllDescriptions: f.Add_all_missing_override_modifiers,
        },
        [f
          .This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0
          .code]: {
          descriptions: f.Add_override_modifier,
          fixId: XO,
          fixAllDescriptions: f.Remove_all_unnecessary_override_modifiers,
        },
        [f
          .This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0
          .code]: {
          descriptions: f.Remove_override_modifier,
          fixId: pz,
          fixAllDescriptions: f.Remove_all_unnecessary_override_modifiers,
        },
        [f
          .This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0
          .code]: {
          descriptions: f.Remove_override_modifier,
          fixId: pz,
          fixAllDescriptions: f.Remove_all_unnecessary_override_modifiers,
        },
      };
    Sa({
      errorCodes: FNe,
      getCodeActions: function (t) {
        const { errorCode: r, span: i } = t,
          o = zNe[r];
        if (!o) return ae;
        const { descriptions: s, fixId: l, fixAllDescriptions: u } = o,
          d = Rr.ChangeTracker.with(t, (_) => BNe(_, t, r, i.start));
        return [lue(WNe, d, s, l, u)];
      },
      fixIds: [WNe, XO, pz],
      getAllCodeActions: (e) =>
        Ss(e, FNe, (t, r) => {
          const { code: i, start: o } = r,
            s = zNe[i];
          !s || s.fixId !== e.fixId || BNe(t, e, i, o);
        }),
    });
    function BNe(e, t, r, i) {
      switch (r) {
        case f
          .This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0
          .code:
        case f
          .This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0
          .code:
        case f
          .This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0
          .code:
        case f
          .This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0
          .code:
        case f
          .This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0
          .code:
          return fet(e, t.sourceFile, i);
        case f
          .This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0
          .code:
        case f
          .This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0
          .code:
        case f
          .This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class
          .code:
        case f
          .This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class
          .code:
          return met(e, t.sourceFile, i);
        default:
          C.fail("Unexpected error code: " + r);
      }
    }
    function fet(e, t, r) {
      const i = VNe(t, r);
      if (Pu(t)) {
        e.addJSDocTags(t, i, [
          L.createJSDocOverrideTag(L.createIdentifier("override")),
        ]);
        return;
      }
      const o = i.modifiers || ae,
        s = hn(o, jI),
        l = hn(o, vie),
        u = hn(o, (g) => Bq(g.kind)),
        d = ga(o, Wc),
        _ = l
          ? l.end
          : s
            ? s.end
            : u
              ? u.end
              : d
                ? La(t.text, d.end)
                : i.getStart(t),
        h = u || s || l ? { prefix: " " } : { suffix: " " };
      e.insertModifierAt(t, _, 164, h);
    }
    function met(e, t, r) {
      const i = VNe(t, r);
      if (Pu(t)) {
        e.filterJSDocTags(t, i, U8(I4));
        return;
      }
      const o = hn(i.modifiers, bie);
      (C.assertIsDefined(o), e.deleteModifier(t, o));
    }
    function GNe(e) {
      switch (e.kind) {
        case 177:
        case 173:
        case 175:
        case 178:
        case 179:
          return !0;
        case 170:
          return Np(e, e.parent);
        default:
          return !1;
      }
    }
    function VNe(e, t) {
      const r = Fi(e, t),
        i = Dn(r, (o) => (ui(o) ? "quit" : GNe(o)));
      return (C.assert(i && GNe(i)), i);
    }
    var Uue = "fixNoPropertyAccessFromIndexSignature",
      jNe = [
        f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0
          .code,
      ];
    Sa({
      errorCodes: jNe,
      fixIds: [Uue],
      getCodeActions(e) {
        const { sourceFile: t, span: r, preferences: i } = e,
          o = HNe(t, r.start),
          s = Rr.ChangeTracker.with(e, (l) => UNe(l, e.sourceFile, o, i));
        return [
          oa(
            Uue,
            s,
            [f.Use_element_access_for_0, o.name.text],
            Uue,
            f.Use_element_access_for_all_undeclared_properties,
          ),
        ];
      },
      getAllCodeActions: (e) =>
        Ss(e, jNe, (t, r) =>
          UNe(t, r.file, HNe(r.file, r.start), e.preferences),
        ),
    });
    function UNe(e, t, r, i) {
      const o = Gp(t, i),
        s = L.createStringLiteral(r.name.text, o === 0);
      e.replaceNode(
        t,
        r,
        mF(r)
          ? L.createElementAccessChain(r.expression, r.questionDotToken, s)
          : L.createElementAccessExpression(r.expression, s),
      );
    }
    function HNe(e, t) {
      return ma(Fi(e, t).parent, qr);
    }
    var Hue = "fixImplicitThis",
      qNe = [
        f
          .this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation
          .code,
      ];
    Sa({
      errorCodes: qNe,
      getCodeActions: function (t) {
        const { sourceFile: r, program: i, span: o } = t;
        let s;
        const l = Rr.ChangeTracker.with(t, (u) => {
          s = JNe(u, r, o.start, i.getTypeChecker());
        });
        return s ? [oa(Hue, l, s, Hue, f.Fix_all_implicit_this_errors)] : ae;
      },
      fixIds: [Hue],
      getAllCodeActions: (e) =>
        Ss(e, qNe, (t, r) => {
          JNe(t, r.file, r.start, e.program.getTypeChecker());
        }),
    });
    function JNe(e, t, r, i) {
      const o = Fi(t, r);
      if (!QD(o)) return;
      const s = vu(o, !1, !1);
      if (!(!Zl(s) && !Us(s)) && !Yi(vu(s, !1, !1))) {
        const l = C.checkDefined(Es(s, 100, t)),
          { name: u } = s,
          d = C.checkDefined(s.body);
        return Us(s)
          ? u && Ys.Core.isSymbolReferencedInFile(u, i, t, d)
            ? void 0
            : (e.delete(t, l),
              u && e.delete(t, u),
              e.insertText(t, d.pos, " =>"),
              [
                f.Convert_function_expression_0_to_arrow_function,
                u ? u.text : uJ,
              ])
          : (e.replaceNode(t, l, L.createToken(87)),
            e.insertText(t, u.end, " = "),
            e.insertText(t, d.pos, " =>"),
            [f.Convert_function_declaration_0_to_arrow_function, u.text]);
      }
    }
    var que = "fixImportNonExportedMember",
      KNe = [f.Module_0_declares_1_locally_but_it_is_not_exported.code];
    Sa({
      errorCodes: KNe,
      fixIds: [que],
      getCodeActions(e) {
        const { sourceFile: t, span: r, program: i } = e,
          o = XNe(t, r.start, i);
        if (o === void 0) return;
        const s = Rr.ChangeTracker.with(e, (l) => het(l, i, o));
        return [
          oa(
            que,
            s,
            [
              f.Export_0_from_module_1,
              o.exportName.node.text,
              o.moduleSpecifier,
            ],
            que,
            f.Export_all_referenced_locals,
          ),
        ];
      },
      getAllCodeActions(e) {
        const { program: t } = e;
        return vx(
          Rr.ChangeTracker.with(e, (r) => {
            const i = new Map();
            (bx(e, KNe, (o) => {
              const s = XNe(o.file, o.start, t);
              if (s === void 0) return;
              const { exportName: l, node: u, moduleSourceFile: d } = s;
              if (EK(d, l.isTypeOnly) === void 0 && nw(u))
                r.insertExportModifier(d, u);
              else {
                const _ = i.get(d) || { typeOnlyExports: [], exports: [] };
                (l.isTypeOnly ? _.typeOnlyExports.push(l) : _.exports.push(l),
                  i.set(d, _));
              }
            }),
              i.forEach((o, s) => {
                const l = EK(s, !0);
                l && l.isTypeOnly
                  ? (Jue(r, t, s, o.typeOnlyExports, l),
                    Jue(r, t, s, o.exports, EK(s, !1)))
                  : Jue(r, t, s, [...o.exports, ...o.typeOnlyExports], l);
              }));
          }),
        );
      },
    });
    function XNe(e, t, r) {
      var i, o;
      const s = Fi(e, t);
      if (He(s)) {
        const l = Dn(s, vl);
        if (l === void 0) return;
        const u = ka(l.moduleSpecifier) ? l.moduleSpecifier : void 0;
        if (u === void 0) return;
        const d =
          (i = r.getResolvedModuleFromModuleSpecifier(u, e)) == null
            ? void 0
            : i.resolvedModule;
        if (d === void 0) return;
        const _ = r.getSourceFile(d.resolvedFileName);
        if (_ === void 0 || sC(r, _)) return;
        const h = _.symbol,
          g = (o = ni(h.valueDeclaration, D_)) == null ? void 0 : o.locals;
        if (g === void 0) return;
        const E = g.get(s.escapedText);
        if (E === void 0) return;
        const A = _et(E);
        return A === void 0
          ? void 0
          : {
              exportName: { node: s, isTypeOnly: kI(A) },
              node: A,
              moduleSourceFile: _,
              moduleSpecifier: u.text,
            };
      }
    }
    function het(e, t, { exportName: r, node: i, moduleSourceFile: o }) {
      const s = EK(o, r.isTypeOnly);
      s
        ? YNe(e, t, o, s, [r])
        : nw(i)
          ? e.insertExportModifier(o, i)
          : $Ne(e, t, o, [r]);
    }
    function Jue(e, t, r, i, o) {
      et(i) && (o ? YNe(e, t, r, o, i) : $Ne(e, t, r, i));
    }
    function EK(e, t) {
      const r = (i) => pc(i) && ((t && i.isTypeOnly) || !i.isTypeOnly);
      return ga(e.statements, r);
    }
    function YNe(e, t, r, i, o) {
      const s =
          i.exportClause && Jf(i.exportClause)
            ? i.exportClause.elements
            : L.createNodeArray([]),
        l =
          !i.isTypeOnly &&
          !!(ym(t.getCompilerOptions()) || hn(s, (u) => u.isTypeOnly));
      e.replaceNode(
        r,
        i,
        L.updateExportDeclaration(
          i,
          i.modifiers,
          i.isTypeOnly,
          L.createNamedExports(
            L.createNodeArray([...s, ...QNe(o, l)], s.hasTrailingComma),
          ),
          i.moduleSpecifier,
          i.attributes,
        ),
      );
    }
    function $Ne(e, t, r, i) {
      e.insertNodeAtEndOfScope(
        r,
        r,
        L.createExportDeclaration(
          void 0,
          !1,
          L.createNamedExports(QNe(i, ym(t.getCompilerOptions()))),
          void 0,
          void 0,
        ),
      );
    }
    function QNe(e, t) {
      return L.createNodeArray(
        Vt(e, (r) =>
          L.createExportSpecifier(t && r.isTypeOnly, void 0, r.node),
        ),
      );
    }
    function _et(e) {
      if (e.valueDeclaration === void 0) return Ac(e.declarations);
      const t = e.valueDeclaration,
        r = yi(t) ? ni(t.parent.parent, ac) : void 0;
      return r && et(r.declarationList.declarations) === 1 ? r : t;
    }
    var Kue = "fixIncorrectNamedTupleSyntax",
      get = [
        f
          .A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type
          .code,
        f
          .A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type
          .code,
      ];
    Sa({
      errorCodes: get,
      getCodeActions: function (t) {
        const { sourceFile: r, span: i } = t,
          o = yet(r, i.start),
          s = Rr.ChangeTracker.with(t, (l) => vet(l, r, o));
        return [
          oa(
            Kue,
            s,
            f.Move_labeled_tuple_element_modifiers_to_labels,
            Kue,
            f.Move_labeled_tuple_element_modifiers_to_labels,
          ),
        ];
      },
      fixIds: [Kue],
    });
    function yet(e, t) {
      const r = Fi(e, t);
      return Dn(r, (i) => i.kind === 203);
    }
    function vet(e, t, r) {
      if (!r) return;
      let i = r.type,
        o = !1,
        s = !1;
      for (; i.kind === 191 || i.kind === 192 || i.kind === 197; )
        (i.kind === 191 ? (o = !0) : i.kind === 192 && (s = !0), (i = i.type));
      const l = L.updateNamedTupleMember(
        r,
        r.dotDotDotToken || (s ? L.createToken(26) : void 0),
        r.name,
        r.questionToken || (o ? L.createToken(58) : void 0),
        i,
      );
      l !== r && e.replaceNode(t, r, l);
    }
    var ZNe = "fixSpelling",
      eMe = [
        f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,
        f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,
        f.Cannot_find_name_0_Did_you_mean_1.code,
        f.Could_not_find_name_0_Did_you_mean_1.code,
        f.Cannot_find_namespace_0_Did_you_mean_1.code,
        f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,
        f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,
        f._0_has_no_exported_member_named_1_Did_you_mean_2.code,
        f
          .This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1
          .code,
        f
          .This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1
          .code,
        f.No_overload_matches_this_call.code,
        f.Type_0_is_not_assignable_to_type_1.code,
      ];
    Sa({
      errorCodes: eMe,
      getCodeActions(e) {
        const { sourceFile: t, errorCode: r } = e,
          i = tMe(t, e.span.start, e, r);
        if (!i) return;
        const { node: o, suggestedSymbol: s } = i,
          l = Ga(e.host.getCompilationSettings()),
          u = Rr.ChangeTracker.with(e, (d) => nMe(d, t, o, s, l));
        return [
          oa(
            "spelling",
            u,
            [f.Change_spelling_to_0, wl(s)],
            ZNe,
            f.Fix_all_detected_spelling_errors,
          ),
        ];
      },
      fixIds: [ZNe],
      getAllCodeActions: (e) =>
        Ss(e, eMe, (t, r) => {
          const i = tMe(r.file, r.start, e, r.code),
            o = Ga(e.host.getCompilationSettings());
          i && nMe(t, e.sourceFile, i.node, i.suggestedSymbol, o);
        }),
    });
    function tMe(e, t, r, i) {
      const o = Fi(e, t),
        s = o.parent;
      if (
        (i === f.No_overload_matches_this_call.code ||
          i === f.Type_0_is_not_assignable_to_type_1.code) &&
        !i_(s)
      )
        return;
      const l = r.program.getTypeChecker();
      let u;
      if (qr(s) && s.name === o) {
        C.assert(
          dg(o),
          "Expected an identifier for spelling (property access)",
        );
        let d = l.getTypeAtLocation(s.expression);
        (s.flags & 64 && (d = l.getNonNullableType(d)),
          (u = l.getSuggestedSymbolForNonexistentProperty(o, d)));
      } else if (
        Nr(s) &&
        s.operatorToken.kind === 103 &&
        s.left === o &&
        eo(o)
      ) {
        const d = l.getTypeAtLocation(s.right);
        u = l.getSuggestedSymbolForNonexistentProperty(o, d);
      } else if (ku(s) && s.right === o) {
        const d = l.getSymbolAtLocation(s.left);
        d &&
          d.flags & 1536 &&
          (u = l.getSuggestedSymbolForNonexistentModule(s.right, d));
      } else if (Eu(s) && s.name === o) {
        C.assertNode(o, He, "Expected an identifier for spelling (import)");
        const d = Dn(o, vl),
          _ = Tet(r, d, e);
        _ &&
          _.symbol &&
          (u = l.getSuggestedSymbolForNonexistentModule(o, _.symbol));
      } else if (i_(s) && s.name === o) {
        C.assertNode(o, He, "Expected an identifier for JSX attribute");
        const d = Dn(o, ru),
          _ = l.getContextualTypeForArgumentAtIndex(d, 0);
        u = l.getSuggestedSymbolForNonexistentJSXAttribute(o, _);
      } else if (S6(s) && bc(s) && s.name === o) {
        const d = Dn(o, ui),
          _ = d ? lh(d) : void 0,
          h = _ ? l.getTypeAtLocation(_) : void 0;
        h && (u = l.getSuggestedSymbolForNonexistentClassMember(Al(o), h));
      } else {
        const d = W1(o),
          _ = Al(o);
        (C.assert(_ !== void 0, "name should be defined"),
          (u = l.getSuggestedSymbolForNonexistentSymbol(o, _, bet(d))));
      }
      return u === void 0 ? void 0 : { node: o, suggestedSymbol: u };
    }
    function nMe(e, t, r, i, o) {
      const s = wl(i);
      if (!fp(s, o) && qr(r.parent)) {
        const l = i.valueDeclaration;
        l && nd(l) && eo(l.name)
          ? e.replaceNode(t, r, L.createIdentifier(s))
          : e.replaceNode(
              t,
              r.parent,
              L.createElementAccessExpression(
                r.parent.expression,
                L.createStringLiteral(s),
              ),
            );
      } else e.replaceNode(t, r, L.createIdentifier(s));
    }
    function bet(e) {
      let t = 0;
      return (
        e & 4 && (t |= 1920),
        e & 2 && (t |= 788968),
        e & 1 && (t |= 111551),
        t
      );
    }
    function Tet(e, t, r) {
      var i;
      if (!t || !ds(t.moduleSpecifier)) return;
      const o =
        (i = e.program.getResolvedModuleFromModuleSpecifier(
          t.moduleSpecifier,
          r,
        )) == null
          ? void 0
          : i.resolvedModule;
      if (o) return e.program.getSourceFile(o.resolvedFileName);
    }
    var Xue = "returnValueCorrect",
      Yue = "fixAddReturnStatement",
      $ue = "fixRemoveBracesFromArrowFunctionBody",
      Que = "fixWrapTheBlockWithParen",
      rMe = [
        f
          .A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value
          .code,
        f.Type_0_is_not_assignable_to_type_1.code,
        f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,
      ];
    Sa({
      errorCodes: rMe,
      fixIds: [Yue, $ue, Que],
      getCodeActions: function (t) {
        const {
            program: r,
            sourceFile: i,
            span: { start: o },
            errorCode: s,
          } = t,
          l = oMe(r.getTypeChecker(), i, o, s);
        if (l)
          return l.kind === 0
            ? Bn(
                [Aet(t, l.expression, l.statement)],
                Xs(l.declaration)
                  ? Iet(t, l.declaration, l.expression, l.commentSource)
                  : void 0,
              )
            : [xet(t, l.declaration, l.expression)];
      },
      getAllCodeActions: (e) =>
        Ss(e, rMe, (t, r) => {
          const i = oMe(e.program.getTypeChecker(), r.file, r.start, r.code);
          if (i)
            switch (e.fixId) {
              case Yue:
                aMe(t, r.file, i.expression, i.statement);
                break;
              case $ue:
                if (!Xs(i.declaration)) return;
                sMe(t, r.file, i.declaration, i.expression, i.commentSource);
                break;
              case Que:
                if (!Xs(i.declaration)) return;
                lMe(t, r.file, i.declaration, i.expression);
                break;
              default:
                C.fail(JSON.stringify(e.fixId));
            }
        }),
    });
    function iMe(e, t, r) {
      const i = e.createSymbol(4, t.escapedText);
      i.links.type = e.getTypeAtLocation(r);
      const o = da([i]);
      return e.createAnonymousType(void 0, o, [], [], []);
    }
    function Zue(e, t, r, i) {
      if (!t.body || !ea(t.body) || et(t.body.statements) !== 1) return;
      const o = $a(t.body.statements);
      if (od(o) && epe(e, t, e.getTypeAtLocation(o.expression), r, i))
        return {
          declaration: t,
          kind: 0,
          expression: o.expression,
          statement: o,
          commentSource: o.expression,
        };
      if (Lb(o) && od(o.statement)) {
        const s = L.createObjectLiteralExpression([
            L.createPropertyAssignment(o.label, o.statement.expression),
          ]),
          l = iMe(e, o.label, o.statement.expression);
        if (epe(e, t, l, r, i))
          return Xs(t)
            ? {
                declaration: t,
                kind: 1,
                expression: s,
                statement: o,
                commentSource: o.statement.expression,
              }
            : {
                declaration: t,
                kind: 0,
                expression: s,
                statement: o,
                commentSource: o.statement.expression,
              };
      } else if (ea(o) && et(o.statements) === 1) {
        const s = $a(o.statements);
        if (Lb(s) && od(s.statement)) {
          const l = L.createObjectLiteralExpression([
              L.createPropertyAssignment(s.label, s.statement.expression),
            ]),
            u = iMe(e, s.label, s.statement.expression);
          if (epe(e, t, u, r, i))
            return {
              declaration: t,
              kind: 0,
              expression: l,
              statement: o,
              commentSource: s,
            };
        }
      }
    }
    function epe(e, t, r, i, o) {
      if (o) {
        const s = e.getSignatureFromDeclaration(t);
        if (s) {
          di(t, 1024) && (r = e.createPromiseType(r));
          const l = e.createSignature(
            t,
            s.typeParameters,
            s.thisParameter,
            s.parameters,
            r,
            void 0,
            s.minArgumentCount,
            s.flags,
          );
          r = e.createAnonymousType(void 0, da(), [l], [], []);
        } else r = e.getAnyType();
      }
      return e.isTypeAssignableTo(r, i);
    }
    function oMe(e, t, r, i) {
      const o = Fi(t, r);
      if (!o.parent) return;
      const s = Dn(o.parent, Ms);
      switch (i) {
        case f
          .A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value
          .code:
          return !s || !s.body || !s.type || !tp(s.type, o)
            ? void 0
            : Zue(e, s, e.getTypeFromTypeNode(s.type), !1);
        case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:
          if (!s || !Zo(s.parent) || !s.body) return;
          const l = s.parent.arguments.indexOf(s);
          if (l === -1) return;
          const u = e.getContextualTypeForArgumentAtIndex(s.parent, l);
          return u ? Zue(e, s, u, !0) : void 0;
        case f.Type_0_is_not_assignable_to_type_1.code:
          if (!L_(o) || (!HN(o.parent) && !i_(o.parent))) return;
          const d = Eet(o.parent);
          return !d || !Ms(d) || !d.body
            ? void 0
            : Zue(e, d, e.getTypeAtLocation(o.parent), !0);
      }
    }
    function Eet(e) {
      switch (e.kind) {
        case 261:
        case 170:
        case 209:
        case 173:
        case 304:
          return e.initializer;
        case 292:
          return (
            e.initializer &&
            (ID(e.initializer) ? e.initializer.expression : void 0)
          );
        case 305:
        case 172:
        case 307:
        case 349:
        case 342:
          return;
      }
    }
    function aMe(e, t, r, i) {
      Op(r);
      const o = NO(t);
      e.replaceNode(t, i, L.createReturnStatement(r), {
        leadingTriviaOption: Rr.LeadingTriviaOption.Exclude,
        trailingTriviaOption: Rr.TrailingTriviaOption.Exclude,
        suffix: o ? ";" : void 0,
      });
    }
    function sMe(e, t, r, i, o, s) {
      const l = D7(i) ? L.createParenthesizedExpression(i) : i;
      (Op(o), z1(o, l), e.replaceNode(t, r.body, l));
    }
    function lMe(e, t, r, i) {
      e.replaceNode(t, r.body, L.createParenthesizedExpression(i));
    }
    function Aet(e, t, r) {
      const i = Rr.ChangeTracker.with(e, (o) => aMe(o, e.sourceFile, t, r));
      return oa(
        Xue,
        i,
        f.Add_a_return_statement,
        Yue,
        f.Add_all_missing_return_statement,
      );
    }
    function Iet(e, t, r, i) {
      const o = Rr.ChangeTracker.with(e, (s) => sMe(s, e.sourceFile, t, r, i));
      return oa(
        Xue,
        o,
        f.Remove_braces_from_arrow_function_body,
        $ue,
        f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues,
      );
    }
    function xet(e, t, r) {
      const i = Rr.ChangeTracker.with(e, (o) => lMe(o, e.sourceFile, t, r));
      return oa(
        Xue,
        i,
        f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,
        Que,
        f.Wrap_all_object_literal_with_parentheses,
      );
    }
    var g0 = "fixMissingMember",
      AK = "fixMissingProperties",
      IK = "fixMissingAttributes",
      xK = "fixMissingFunctionDeclaration",
      cMe = [
        f.Property_0_does_not_exist_on_type_1.code,
        f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,
        f.Property_0_is_missing_in_type_1_but_required_in_type_2.code,
        f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,
        f
          .Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more
          .code,
        f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,
        f.Cannot_find_name_0.code,
        f.Type_0_does_not_satisfy_the_expected_type_1.code,
      ];
    Sa({
      errorCodes: cMe,
      getCodeActions(e) {
        const t = e.program.getTypeChecker(),
          r = dMe(e.sourceFile, e.span.start, e.errorCode, t, e.program);
        if (r) {
          if (r.kind === 3) {
            const i = Rr.ChangeTracker.with(e, (o) => bMe(o, e, r));
            return [
              oa(
                AK,
                i,
                f.Add_missing_properties,
                AK,
                f.Add_all_missing_properties,
              ),
            ];
          }
          if (r.kind === 4) {
            const i = Rr.ChangeTracker.with(e, (o) => vMe(o, e, r));
            return [
              oa(
                IK,
                i,
                f.Add_missing_attributes,
                IK,
                f.Add_all_missing_attributes,
              ),
            ];
          }
          if (r.kind === 2 || r.kind === 5) {
            const i = Rr.ChangeTracker.with(e, (o) => yMe(o, e, r));
            return [
              oa(
                xK,
                i,
                [f.Add_missing_function_declaration_0, r.token.text],
                xK,
                f.Add_all_missing_function_declarations,
              ),
            ];
          }
          if (r.kind === 1) {
            const i = Rr.ChangeTracker.with(e, (o) =>
              gMe(o, e.program.getTypeChecker(), r),
            );
            return [
              oa(
                g0,
                i,
                [f.Add_missing_enum_member_0, r.token.text],
                g0,
                f.Add_all_missing_members,
              ),
            ];
          }
          return so(Met(e, r), Ret(e, r));
        }
      },
      fixIds: [g0, xK, AK, IK],
      getAllCodeActions: (e) => {
        const { program: t, fixId: r } = e,
          i = t.getTypeChecker(),
          o = new Set(),
          s = new Map();
        return vx(
          Rr.ChangeTracker.with(e, (l) => {
            (bx(e, cMe, (u) => {
              const d = dMe(u.file, u.start, u.code, i, e.program);
              if (d === void 0) return;
              const _ =
                ls(d.parentDeclaration) +
                "#" +
                (d.kind === 3 ? d.identifier || ls(d.token) : d.token.text);
              if (gm(o, _)) {
                if (r === xK && (d.kind === 2 || d.kind === 5)) yMe(l, e, d);
                else if (r === AK && d.kind === 3) bMe(l, e, d);
                else if (r === IK && d.kind === 4) vMe(l, e, d);
                else if ((d.kind === 1 && gMe(l, i, d), d.kind === 0)) {
                  const { parentDeclaration: h, token: g } = d,
                    E = KA(s, h, () => []);
                  E.some((A) => A.token.text === g.text) || E.push(d);
                }
              }
            }),
              s.forEach((u, d) => {
                const _ = wu(d) ? void 0 : Oet(d, i);
                for (const h of u) {
                  if (
                    _?.some((k) => {
                      const W = s.get(k);
                      return (
                        !!W && W.some(({ token: O }) => O.text === h.token.text)
                      );
                    })
                  )
                    continue;
                  const {
                    parentDeclaration: g,
                    declSourceFile: E,
                    modifierFlags: A,
                    token: R,
                    call: N,
                    isJSFile: P,
                  } = h;
                  if (N && !eo(R)) _Me(e, l, N, R, A & 256, g, E);
                  else if (P && !gd(g) && !wu(g)) uMe(l, E, g, R, !!(A & 256));
                  else {
                    const k = fMe(i, g, R);
                    mMe(l, E, g, R.text, k, A & 256);
                  }
                }
              }));
          }),
        );
      },
    });
    function dMe(e, t, r, i, o) {
      var s, l;
      const u = Fi(e, t),
        d = u.parent;
      if (
        r === f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code
      ) {
        if (!(u.kind === 19 && Wa(d) && Zo(d.parent))) return;
        const R = ho(d.parent.arguments, (W) => W === d);
        if (R < 0) return;
        const N = i.getResolvedSignature(d.parent);
        if (!(N && N.declaration && N.parameters[R])) return;
        const P = N.parameters[R].valueDeclaration;
        if (!(P && to(P) && He(P.name))) return;
        const k = Co(
          i.getUnmatchedProperties(
            i.getTypeAtLocation(d),
            i.getParameterType(N, R).getNonNullableType(),
            !1,
            !1,
          ),
        );
        return et(k)
          ? {
              kind: 3,
              token: P.name,
              identifier: P.name.text,
              properties: k,
              parentDeclaration: d,
            }
          : void 0;
      }
      if (u.kind === 19 || ED(d) || tf(d)) {
        const R = (ED(d) || tf(d)) && d.expression ? d.expression : d;
        if (Wa(R)) {
          const N = ED(d)
              ? i.getTypeFromTypeNode(d.type)
              : i.getContextualType(R) || i.getTypeAtLocation(R),
            P = Co(
              i.getUnmatchedProperties(
                i.getTypeAtLocation(d),
                N.getNonNullableType(),
                !1,
                !1,
              ),
            );
          return et(P)
            ? {
                kind: 3,
                token: d,
                identifier: void 0,
                properties: P,
                parentDeclaration: R,
                indentation: tf(R.parent) || _w(R.parent) ? 0 : void 0,
              }
            : void 0;
        }
      }
      if (!dg(u)) return;
      if (He(u) && Zy(d) && d.initializer && Wa(d.initializer)) {
        const R =
            (s = i.getContextualType(u) || i.getTypeAtLocation(u)) == null
              ? void 0
              : s.getNonNullableType(),
          N = Co(
            i.getUnmatchedProperties(
              i.getTypeAtLocation(d.initializer),
              R,
              !1,
              !1,
            ),
          );
        return et(N)
          ? {
              kind: 3,
              token: u,
              identifier: u.text,
              properties: N,
              parentDeclaration: d.initializer,
            }
          : void 0;
      }
      if (He(u) && ru(u.parent)) {
        const R = Ga(o.getCompilerOptions()),
          N = Let(i, R, u.parent);
        return et(N)
          ? { kind: 4, token: u, attributes: N, parentDeclaration: u.parent }
          : void 0;
      }
      if (He(u)) {
        const R =
          (l = i.getContextualType(u)) == null
            ? void 0
            : l.getNonNullableType();
        if (R && Hr(R) & 16) {
          const N = Ac(i.getSignaturesOfType(R, 0));
          return N === void 0
            ? void 0
            : {
                kind: 5,
                token: u,
                signature: N,
                sourceFile: e,
                parentDeclaration: TMe(u),
              };
        }
        if (Zo(d) && d.expression === u)
          return {
            kind: 2,
            token: u,
            call: d,
            sourceFile: e,
            modifierFlags: 0,
            parentDeclaration: TMe(u),
          };
      }
      if (!qr(d)) return;
      const _ = qq(i.getTypeAtLocation(d.expression)),
        h = _.symbol;
      if (!h || !h.declarations) return;
      if (He(u) && Zo(d.parent)) {
        const R = hn(h.declarations, uc),
          N = R?.getSourceFile();
        if (R && N && !sC(o, N))
          return {
            kind: 2,
            token: u,
            call: d.parent,
            sourceFile: N,
            modifierFlags: 32,
            parentDeclaration: R,
          };
        const P = hn(h.declarations, Yi);
        if (e.commonJsModuleIndicator) return;
        if (P && !sC(o, P))
          return {
            kind: 2,
            token: u,
            call: d.parent,
            sourceFile: P,
            modifierFlags: 32,
            parentDeclaration: P,
          };
      }
      const g = hn(h.declarations, ui);
      if (!g && eo(u)) return;
      const E = g || hn(h.declarations, (R) => gd(R) || wu(R));
      if (E && !sC(o, E.getSourceFile())) {
        const R = !wu(E) && (_.target || _) !== i.getDeclaredTypeOfSymbol(h);
        if (R && (eo(u) || gd(E))) return;
        const N = E.getSourceFile(),
          P = wu(E) ? 0 : (R ? 256 : 0) | (vJ(u.text) ? 2 : 0),
          k = Pu(N),
          W = ni(d.parent, Zo);
        return {
          kind: 0,
          token: u,
          call: W,
          modifierFlags: P,
          parentDeclaration: E,
          declSourceFile: N,
          isJSFile: k,
        };
      }
      const A = hn(h.declarations, ZT);
      if (A && !(_.flags & 1056) && !eo(u) && !sC(o, A.getSourceFile()))
        return { kind: 1, token: u, parentDeclaration: A };
    }
    function Ret(e, t) {
      return t.isJSFile ? eI(Det(e, t)) : Cet(e, t);
    }
    function Det(
      e,
      { parentDeclaration: t, declSourceFile: r, modifierFlags: i, token: o },
    ) {
      if (gd(t) || wu(t)) return;
      const s = Rr.ChangeTracker.with(e, (u) => uMe(u, r, t, o, !!(i & 256)));
      if (s.length === 0) return;
      const l =
        i & 256
          ? f.Initialize_static_property_0
          : eo(o)
            ? f.Declare_a_private_field_named_0
            : f.Initialize_property_0_in_the_constructor;
      return oa(g0, s, [l, o.text], g0, f.Add_all_missing_members);
    }
    function uMe(e, t, r, i, o) {
      const s = i.text;
      if (o) {
        if (r.kind === 232) return;
        const l = r.name.getText(),
          u = pMe(L.createIdentifier(l), s);
        e.insertNodeAfter(t, r, u);
      } else if (eo(i)) {
        const l = L.createPropertyDeclaration(
            void 0,
            s,
            void 0,
            void 0,
            void 0,
          ),
          u = hMe(r);
        u ? e.insertNodeAfter(t, u, l) : e.insertMemberAtStart(t, r, l);
      } else {
        const l = yg(r);
        if (!l) return;
        const u = pMe(L.createThis(), s);
        e.insertNodeAtConstructorEnd(t, l, u);
      }
    }
    function pMe(e, t) {
      return L.createExpressionStatement(
        L.createAssignment(L.createPropertyAccessExpression(e, t), Sx()),
      );
    }
    function Cet(
      e,
      { parentDeclaration: t, declSourceFile: r, modifierFlags: i, token: o },
    ) {
      const s = o.text,
        l = i & 256,
        u = fMe(e.program.getTypeChecker(), t, o),
        d = (h) => Rr.ChangeTracker.with(e, (g) => mMe(g, r, t, s, u, h)),
        _ = [
          oa(
            g0,
            d(i & 256),
            [l ? f.Declare_static_property_0 : f.Declare_property_0, s],
            g0,
            f.Add_all_missing_members,
          ),
        ];
      return (
        l ||
          eo(o) ||
          (i & 2 && _.unshift(yh(g0, d(2), [f.Declare_private_property_0, s])),
          _.push(Net(e, r, t, o.text, u))),
        _
      );
    }
    function fMe(e, t, r) {
      let i;
      if (r.parent.parent.kind === 227) {
        const o = r.parent.parent,
          s = r.parent === o.left ? o.right : o.left,
          l = e.getWidenedType(
            e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)),
          );
        i = e.typeToTypeNode(l, t, 1, 8);
      } else {
        const o = e.getContextualType(r.parent);
        i = o ? e.typeToTypeNode(o, void 0, 1, 8) : void 0;
      }
      return i || L.createKeywordTypeNode(133);
    }
    function mMe(e, t, r, i, o, s) {
      const l = s
          ? L.createNodeArray(L.createModifiersFromModifierFlags(s))
          : void 0,
        u = ui(r)
          ? L.createPropertyDeclaration(l, i, void 0, o, void 0)
          : L.createPropertySignature(void 0, i, void 0, o),
        d = hMe(r);
      d ? e.insertNodeAfter(t, d, u) : e.insertMemberAtStart(t, r, u);
    }
    function hMe(e) {
      let t;
      for (const r of e.members) {
        if (!Po(r)) break;
        t = r;
      }
      return t;
    }
    function Net(e, t, r, i, o) {
      const s = L.createKeywordTypeNode(154),
        l = L.createParameterDeclaration(
          void 0,
          void 0,
          "x",
          void 0,
          s,
          void 0,
        ),
        u = L.createIndexSignature(void 0, [l], o),
        d = Rr.ChangeTracker.with(e, (_) => _.insertMemberAtStart(t, r, u));
      return yh(g0, d, [f.Add_index_signature_for_property_0, i]);
    }
    function Met(e, t) {
      const {
        parentDeclaration: r,
        declSourceFile: i,
        modifierFlags: o,
        token: s,
        call: l,
      } = t;
      if (l === void 0) return;
      const u = s.text,
        d = (h) => Rr.ChangeTracker.with(e, (g) => _Me(e, g, l, s, h, r, i)),
        _ = [
          oa(
            g0,
            d(o & 256),
            [o & 256 ? f.Declare_static_method_0 : f.Declare_method_0, u],
            g0,
            f.Add_all_missing_members,
          ),
        ];
      return (
        o & 2 && _.unshift(yh(g0, d(2), [f.Declare_private_method_0, u])),
        _
      );
    }
    function _Me(e, t, r, i, o, s, l) {
      const u = aE(l, e.program, e.preferences, e.host),
        d = ui(s) ? 175 : 174,
        _ = Npe(d, e, u, r, i, o, s),
        h = ket(s, r);
      (h ? t.insertNodeAfter(l, h, _) : t.insertMemberAtStart(l, s, _),
        u.writeFixes(t));
    }
    function gMe(e, t, { token: r, parentDeclaration: i }) {
      const o = yt(i.members, (d) => {
          const _ = t.getTypeAtLocation(d);
          return !!(_ && _.flags & 402653316);
        }),
        s = i.getSourceFile(),
        l = L.createEnumMember(r, o ? L.createStringLiteral(r.text) : void 0),
        u = Zs(i.members);
      u
        ? e.insertNodeInListAfter(s, u, l, i.members)
        : e.insertMemberAtStart(s, i, l);
    }
    function yMe(e, t, r) {
      const i = Gp(t.sourceFile, t.preferences),
        o = aE(t.sourceFile, t.program, t.preferences, t.host),
        s =
          r.kind === 2
            ? Npe(
                263,
                t,
                o,
                r.call,
                Kr(r.token),
                r.modifierFlags,
                r.parentDeclaration,
              )
            : OK(
                263,
                t,
                i,
                r.signature,
                mz(f.Function_not_implemented.message, i),
                r.token,
                void 0,
                void 0,
                void 0,
                o,
              );
      (s === void 0 &&
        C.fail("fixMissingFunctionDeclaration codefix got unexpected error."),
        tf(r.parentDeclaration)
          ? e.insertNodeBefore(r.sourceFile, r.parentDeclaration, s, !0)
          : e.insertNodeAtEndOfScope(r.sourceFile, r.parentDeclaration, s),
        o.writeFixes(e));
    }
    function vMe(e, t, r) {
      const i = aE(t.sourceFile, t.program, t.preferences, t.host),
        o = Gp(t.sourceFile, t.preferences),
        s = t.program.getTypeChecker(),
        l = r.parentDeclaration.attributes,
        u = yt(l.properties, $I),
        d = Vt(r.attributes, (g) => {
          const E = RK(t, s, i, o, s.getTypeOfSymbol(g), r.parentDeclaration),
            A = L.createIdentifier(g.name),
            R = L.createJsxAttribute(A, L.createJsxExpression(void 0, E));
          return (ps(A, R), R);
        }),
        _ = L.createJsxAttributes(
          u ? [...d, ...l.properties] : [...l.properties, ...d],
        ),
        h = { prefix: l.pos === l.end ? " " : void 0 };
      (e.replaceNode(t.sourceFile, l, _, h), i.writeFixes(e));
    }
    function bMe(e, t, r) {
      const i = aE(t.sourceFile, t.program, t.preferences, t.host),
        o = Gp(t.sourceFile, t.preferences),
        s = Ga(t.program.getCompilerOptions()),
        l = t.program.getTypeChecker(),
        u = Vt(r.properties, (_) => {
          const h = RK(t, l, i, o, l.getTypeOfSymbol(_), r.parentDeclaration);
          return L.createPropertyAssignment(wet(_, s, o, l), h);
        }),
        d = {
          leadingTriviaOption: Rr.LeadingTriviaOption.Exclude,
          trailingTriviaOption: Rr.TrailingTriviaOption.Exclude,
          indentation: r.indentation,
        };
      (e.replaceNode(
        t.sourceFile,
        r.parentDeclaration,
        L.createObjectLiteralExpression(
          [...r.parentDeclaration.properties, ...u],
          !0,
        ),
        d,
      ),
        i.writeFixes(e));
    }
    function RK(e, t, r, i, o, s) {
      if (o.flags & 3) return Sx();
      if (o.flags & 134217732) return L.createStringLiteral("", i === 0);
      if (o.flags & 8) return L.createNumericLiteral(0);
      if (o.flags & 64) return L.createBigIntLiteral("0n");
      if (o.flags & 16) return L.createFalse();
      if (o.flags & 1056) {
        const l = o.symbol.exports ? B8(o.symbol.exports.values()) : o.symbol,
          u =
            o.symbol.parent && o.symbol.parent.flags & 256
              ? o.symbol.parent
              : o.symbol,
          d = t.symbolToExpression(u, 111551, void 0, 64);
        return l === void 0 || d === void 0
          ? L.createNumericLiteral(0)
          : L.createPropertyAccessExpression(d, t.symbolToString(l));
      }
      if (o.flags & 256) return L.createNumericLiteral(o.value);
      if (o.flags & 2048) return L.createBigIntLiteral(o.value);
      if (o.flags & 128) return L.createStringLiteral(o.value, i === 0);
      if (o.flags & 512)
        return o === t.getFalseType() || o === t.getFalseType(!0)
          ? L.createFalse()
          : L.createTrue();
      if (o.flags & 65536) return L.createNull();
      if (o.flags & 1048576)
        return Hn(o.types, (u) => RK(e, t, r, i, u, s)) ?? Sx();
      if (t.isArrayLikeType(o)) return L.createArrayLiteralExpression();
      if (Pet(o)) {
        const l = Vt(t.getPropertiesOfType(o), (u) => {
          const d = RK(e, t, r, i, t.getTypeOfSymbol(u), s);
          return L.createPropertyAssignment(u.name, d);
        });
        return L.createObjectLiteralExpression(l, !0);
      }
      if (Hr(o) & 16) {
        if (hn(o.symbol.declarations || ae, Rp(w_, Gm, Nl)) === void 0)
          return Sx();
        const u = t.getSignaturesOfType(o, 0);
        return u === void 0
          ? Sx()
          : (OK(
              219,
              e,
              i,
              u[0],
              mz(f.Function_not_implemented.message, i),
              void 0,
              void 0,
              void 0,
              s,
              r,
            ) ?? Sx());
      }
      if (Hr(o) & 1) {
        const l = cy(o.symbol);
        if (l === void 0 || PS(l)) return Sx();
        const u = yg(l);
        return u && et(u.parameters)
          ? Sx()
          : L.createNewExpression(
              L.createIdentifier(o.symbol.name),
              void 0,
              void 0,
            );
      }
      return Sx();
    }
    function Sx() {
      return L.createIdentifier("undefined");
    }
    function Pet(e) {
      return (
        e.flags & 524288 &&
        (Hr(e) & 128 || (e.symbol && ni(og(e.symbol.declarations), wu)))
      );
    }
    function Let(e, t, r) {
      const i = e.getContextualType(r.attributes);
      if (i === void 0) return ae;
      const o = i.getProperties();
      if (!et(o)) return ae;
      const s = new Set();
      for (const l of r.attributes.properties)
        if ((i_(l) && s.add(PM(l.name)), $I(l))) {
          const u = e.getTypeAtLocation(l.expression);
          for (const d of u.getProperties()) s.add(d.escapedName);
        }
      return Un(
        o,
        (l) =>
          fp(l.name, t, 1) &&
          !(l.flags & 16777216 || Wl(l) & 48 || s.has(l.escapedName)),
      );
    }
    function ket(e, t) {
      if (wu(e)) return;
      const r = Dn(t, (i) => Nl(i) || Ml(i));
      return r && r.parent === e ? r : void 0;
    }
    function wet(e, t, r, i) {
      if (pg(e)) {
        const o = i.symbolToNode(e, 111551, void 0, void 0, 1);
        if (o && va(o)) return o;
      }
      return tw(e.name, t, r === 0, !1, !1);
    }
    function TMe(e) {
      if (Dn(e, ID)) {
        const t = Dn(e.parent, tf);
        if (t) return t;
      }
      return Wn(e);
    }
    function Oet(e, t) {
      const r = [];
      for (; e; ) {
        const i = RS(e),
          o = i && t.getSymbolAtLocation(i.expression);
        if (!o) break;
        const s = o.flags & 2097152 ? t.getAliasedSymbol(o) : o,
          l = s.declarations && hn(s.declarations, ui);
        if (!l) break;
        (r.push(l), (e = l));
      }
      return r;
    }
    var tpe = "addMissingNewOperator",
      SMe = [
        f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code,
      ];
    Sa({
      errorCodes: SMe,
      getCodeActions(e) {
        const { sourceFile: t, span: r } = e,
          i = Rr.ChangeTracker.with(e, (o) => EMe(o, t, r));
        return [
          oa(
            tpe,
            i,
            f.Add_missing_new_operator_to_call,
            tpe,
            f.Add_missing_new_operator_to_all_calls,
          ),
        ];
      },
      fixIds: [tpe],
      getAllCodeActions: (e) => Ss(e, SMe, (t, r) => EMe(t, e.sourceFile, r)),
    });
    function EMe(e, t, r) {
      const i = ma(Wet(t, r), Zo),
        o = L.createNewExpression(i.expression, i.typeArguments, i.arguments);
      e.replaceNode(t, i, o);
    }
    function Wet(e, t) {
      let r = Fi(e, t.start);
      const i = Dl(t);
      for (; r.end < i; ) r = r.parent;
      return r;
    }
    var DK = "addMissingParam",
      CK = "addOptionalParam",
      AMe = [f.Expected_0_arguments_but_got_1.code];
    Sa({
      errorCodes: AMe,
      fixIds: [DK, CK],
      getCodeActions(e) {
        const t = IMe(e.sourceFile, e.program, e.span.start);
        if (t === void 0) return;
        const {
            name: r,
            declarations: i,
            newParameters: o,
            newOptionalParameters: s,
          } = t,
          l = [];
        return (
          et(o) &&
            Bn(
              l,
              oa(
                DK,
                Rr.ChangeTracker.with(e, (u) =>
                  NK(u, e.program, e.preferences, e.host, i, o),
                ),
                [
                  et(o) > 1
                    ? f.Add_missing_parameters_to_0
                    : f.Add_missing_parameter_to_0,
                  r,
                ],
                DK,
                f.Add_all_missing_parameters,
              ),
            ),
          et(s) &&
            Bn(
              l,
              oa(
                CK,
                Rr.ChangeTracker.with(e, (u) =>
                  NK(u, e.program, e.preferences, e.host, i, s),
                ),
                [
                  et(s) > 1
                    ? f.Add_optional_parameters_to_0
                    : f.Add_optional_parameter_to_0,
                  r,
                ],
                CK,
                f.Add_all_optional_parameters,
              ),
            ),
          l
        );
      },
      getAllCodeActions: (e) =>
        Ss(e, AMe, (t, r) => {
          const i = IMe(e.sourceFile, e.program, r.start);
          if (i) {
            const {
              declarations: o,
              newParameters: s,
              newOptionalParameters: l,
            } = i;
            (e.fixId === DK && NK(t, e.program, e.preferences, e.host, o, s),
              e.fixId === CK && NK(t, e.program, e.preferences, e.host, o, l));
          }
        }),
    });
    function IMe(e, t, r) {
      const i = Fi(e, r),
        o = Dn(i, Zo);
      if (o === void 0 || et(o.arguments) === 0) return;
      const s = t.getTypeChecker(),
        l = s.getTypeAtLocation(o.expression),
        u = Un(l.symbol.declarations, xMe);
      if (u === void 0) return;
      const d = Zs(u);
      if (d === void 0 || d.body === void 0 || sC(t, d.getSourceFile())) return;
      const _ = Fet(d);
      if (_ === void 0) return;
      const h = [],
        g = [],
        E = et(d.parameters),
        A = et(o.arguments);
      if (E > A) return;
      const R = [d, ...Bet(d, u)];
      for (let N = 0, P = 0, k = 0; N < A; N++) {
        const W = o.arguments[N],
          O = Ks(W) ? xV(W) : W,
          G = s.getWidenedType(
            s.getBaseTypeOfLiteralType(s.getTypeAtLocation(W)),
          ),
          j = P < E ? d.parameters[P] : void 0;
        if (j && s.isTypeAssignableTo(G, s.getTypeAtLocation(j))) {
          P++;
          continue;
        }
        const J = O && He(O) ? O.text : `p${k++}`,
          Z = zet(s, G, d);
        (Bn(h, { pos: N, declaration: DMe(J, Z, void 0) }),
          !Vet(R, P) &&
            Bn(g, { pos: N, declaration: DMe(J, Z, L.createToken(58)) }));
      }
      return {
        newParameters: h,
        newOptionalParameters: g,
        name: ws(_),
        declarations: R,
      };
    }
    function Fet(e) {
      const t = Oo(e);
      if (t) return t;
      if ((yi(e.parent) && He(e.parent.name)) || Po(e.parent) || to(e.parent))
        return e.parent.name;
    }
    function zet(e, t, r) {
      return (
        e.typeToTypeNode(e.getWidenedType(t), r, 1, 8) ??
        L.createKeywordTypeNode(159)
      );
    }
    function NK(e, t, r, i, o, s) {
      const l = Ga(t.getCompilerOptions());
      Ye(o, (u) => {
        const d = Wn(u),
          _ = aE(d, t, r, i);
        (et(u.parameters)
          ? e.replaceNodeRangeWithNodes(
              d,
              $a(u.parameters),
              Ba(u.parameters),
              RMe(_, l, u, s),
              {
                joiner: ", ",
                indentation: 0,
                leadingTriviaOption: Rr.LeadingTriviaOption.IncludeAll,
                trailingTriviaOption: Rr.TrailingTriviaOption.Include,
              },
            )
          : Ye(RMe(_, l, u, s), (h, g) => {
              et(u.parameters) === 0 && g === 0
                ? e.insertNodeAt(d, u.parameters.end, h)
                : e.insertNodeAtEndOfList(d, u.parameters, h);
            }),
          _.writeFixes(e));
      });
    }
    function xMe(e) {
      switch (e.kind) {
        case 263:
        case 219:
        case 175:
        case 220:
          return !0;
        default:
          return !1;
      }
    }
    function RMe(e, t, r, i) {
      const o = Vt(r.parameters, (s) =>
        L.createParameterDeclaration(
          s.modifiers,
          s.dotDotDotToken,
          s.name,
          s.questionToken,
          s.type,
          s.initializer,
        ),
      );
      for (const { pos: s, declaration: l } of i) {
        const u = s > 0 ? o[s - 1] : void 0;
        o.splice(
          s,
          0,
          L.updateParameterDeclaration(
            l,
            l.modifiers,
            l.dotDotDotToken,
            l.name,
            u && u.questionToken ? L.createToken(58) : l.questionToken,
            jet(e, l.type, t),
            l.initializer,
          ),
        );
      }
      return o;
    }
    function Bet(e, t) {
      const r = [];
      for (const i of t)
        if (Get(i)) {
          if (et(i.parameters) === et(e.parameters)) {
            r.push(i);
            continue;
          }
          if (et(i.parameters) > et(e.parameters)) return [];
        }
      return r;
    }
    function Get(e) {
      return xMe(e) && e.body === void 0;
    }
    function DMe(e, t, r) {
      return L.createParameterDeclaration(void 0, void 0, e, r, t, void 0);
    }
    function Vet(e, t) {
      return (
        et(e) &&
        yt(
          e,
          (r) =>
            t < et(r.parameters) &&
            !!r.parameters[t] &&
            r.parameters[t].questionToken === void 0,
        )
      );
    }
    function jet(e, t, r) {
      const i = sE(t, r);
      return i ? (G1(e, i.symbols), i.typeNode) : t;
    }
    var Uet = "fixCannotFindModule",
      npe = "installTypesPackage",
      CMe = f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,
      NMe =
        f
          .This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed
          .code,
      MMe = [
        CMe,
        f
          .Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type
          .code,
        NMe,
      ];
    Sa({
      errorCodes: MMe,
      getCodeActions: function (t) {
        const {
            host: r,
            sourceFile: i,
            span: { start: o },
            errorCode: s,
          } = t,
          l = s === NMe ? Xk(t.program.getCompilerOptions(), i) : LMe(i, o);
        if (l === void 0) return;
        const u = kMe(l, r, s);
        return u === void 0
          ? []
          : [
              oa(
                Uet,
                [],
                [f.Install_0, u],
                npe,
                f.Install_all_missing_types_packages,
                PMe(i.fileName, u),
              ),
            ];
      },
      fixIds: [npe],
      getAllCodeActions: (e) =>
        Ss(e, MMe, (t, r, i) => {
          const o = LMe(r.file, r.start);
          if (o !== void 0)
            switch (e.fixId) {
              case npe: {
                const s = kMe(o, e.host, r.code);
                s && i.push(PMe(r.file.fileName, s));
                break;
              }
              default:
                C.fail(`Bad fixId: ${e.fixId}`);
            }
        }),
    });
    function PMe(e, t) {
      return { type: "install package", file: e, packageName: t };
    }
    function LMe(e, t) {
      const r = ni(Fi(e, t), ka);
      if (!r) return;
      const i = r.text,
        { packageName: o } = o3(i);
      return td(o) ? void 0 : o;
    }
    function kMe(e, t, r) {
      var i;
      return r === CMe
        ? _D.has(e)
          ? "@types/node"
          : void 0
        : (i = t.isKnownTypesPackageName) != null && i.call(t, e)
          ? s3(e)
          : void 0;
    }
    var wMe = [
        f
          .Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2
          .code,
        f
          .Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2
          .code,
        f
          .Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more
          .code,
        f
          .Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1
          .code,
        f
          .Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1
          .code,
        f
          .Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more
          .code,
      ],
      rpe = "fixClassDoesntImplementInheritedAbstractMember";
    Sa({
      errorCodes: wMe,
      getCodeActions: function (t) {
        const { sourceFile: r, span: i } = t,
          o = Rr.ChangeTracker.with(t, (s) =>
            WMe(OMe(r, i.start), r, t, s, t.preferences),
          );
        return o.length === 0
          ? void 0
          : [
              oa(
                rpe,
                o,
                f.Implement_inherited_abstract_class,
                rpe,
                f.Implement_all_inherited_abstract_classes,
              ),
            ];
      },
      fixIds: [rpe],
      getAllCodeActions: function (t) {
        const r = new Set();
        return Ss(t, wMe, (i, o) => {
          const s = OMe(o.file, o.start);
          gm(r, ls(s)) && WMe(s, t.sourceFile, t, i, t.preferences);
        });
      },
    });
    function OMe(e, t) {
      const r = Fi(e, t);
      return ma(r.parent, ui);
    }
    function WMe(e, t, r, i, o) {
      const s = lh(e),
        l = r.program.getTypeChecker(),
        u = l.getTypeAtLocation(s),
        d = l.getPropertiesOfType(u).filter(Het),
        _ = aE(t, r.program, o, r.host);
      (Cpe(e, d, t, r, o, _, (h) => i.insertMemberAtStart(t, e, h)),
        _.writeFixes(i));
    }
    function Het(e) {
      const t = nv($a(e.getDeclarations()));
      return !(t & 2) && !!(t & 64);
    }
    var ipe = "classSuperMustPrecedeThisAccess",
      FMe = [
        f
          .super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class
          .code,
      ];
    Sa({
      errorCodes: FMe,
      getCodeActions(e) {
        const { sourceFile: t, span: r } = e,
          i = BMe(t, r.start);
        if (!i) return;
        const { constructor: o, superCall: s } = i,
          l = Rr.ChangeTracker.with(e, (u) => zMe(u, t, o, s));
        return [
          oa(
            ipe,
            l,
            f.Make_super_call_the_first_statement_in_the_constructor,
            ipe,
            f.Make_all_super_calls_the_first_statement_in_their_constructor,
          ),
        ];
      },
      fixIds: [ipe],
      getAllCodeActions(e) {
        const { sourceFile: t } = e,
          r = new Set();
        return Ss(e, FMe, (i, o) => {
          const s = BMe(o.file, o.start);
          if (!s) return;
          const { constructor: l, superCall: u } = s;
          gm(r, ls(l.parent)) && zMe(i, t, l, u);
        });
      },
    });
    function zMe(e, t, r, i) {
      (e.insertNodeAtConstructorStart(t, r, i), e.delete(t, i));
    }
    function BMe(e, t) {
      const r = Fi(e, t);
      if (r.kind !== 110) return;
      const i = df(r),
        o = GMe(i.body);
      return o &&
        !o.expression.arguments.some((s) => qr(s) && s.expression === r)
        ? { constructor: i, superCall: o }
        : void 0;
    }
    function GMe(e) {
      return od(e) && n1(e.expression) ? e : Yo(e) ? void 0 : Jo(e, GMe);
    }
    var ope = "constructorForDerivedNeedSuperCall",
      VMe = [f.Constructors_for_derived_classes_must_contain_a_super_call.code];
    Sa({
      errorCodes: VMe,
      getCodeActions(e) {
        const { sourceFile: t, span: r } = e,
          i = jMe(t, r.start),
          o = Rr.ChangeTracker.with(e, (s) => UMe(s, t, i));
        return [
          oa(
            ope,
            o,
            f.Add_missing_super_call,
            ope,
            f.Add_all_missing_super_calls,
          ),
        ];
      },
      fixIds: [ope],
      getAllCodeActions: (e) =>
        Ss(e, VMe, (t, r) => UMe(t, e.sourceFile, jMe(r.file, r.start))),
    });
    function jMe(e, t) {
      const r = Fi(e, t);
      return (
        C.assert(
          Ml(r.parent),
          "token should be at the constructor declaration",
        ),
        r.parent
      );
    }
    function UMe(e, t, r) {
      const i = L.createExpressionStatement(
        L.createCallExpression(L.createSuper(), void 0, ae),
      );
      e.insertNodeAtConstructorStart(t, r, i);
    }
    var HMe = "fixEnableJsxFlag",
      qMe = [f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];
    Sa({
      errorCodes: qMe,
      getCodeActions: function (t) {
        const { configFile: r } = t.program.getCompilerOptions();
        if (r === void 0) return;
        const i = Rr.ChangeTracker.with(t, (o) => JMe(o, r));
        return [yh(HMe, i, f.Enable_the_jsx_flag_in_your_configuration_file)];
      },
      fixIds: [HMe],
      getAllCodeActions: (e) =>
        Ss(e, qMe, (t) => {
          const { configFile: r } = e.program.getCompilerOptions();
          r !== void 0 && JMe(t, r);
        }),
    });
    function JMe(e, t) {
      wpe(e, t, "jsx", L.createStringLiteral("react"));
    }
    var ape = "fixNaNEquality",
      KMe = [f.This_condition_will_always_return_0.code];
    Sa({
      errorCodes: KMe,
      getCodeActions(e) {
        const { sourceFile: t, span: r, program: i } = e,
          o = XMe(i, t, r);
        if (o === void 0) return;
        const { suggestion: s, expression: l, arg: u } = o,
          d = Rr.ChangeTracker.with(e, (_) => YMe(_, t, u, l));
        return [
          oa(ape, d, [f.Use_0, s], ape, f.Use_Number_isNaN_in_all_conditions),
        ];
      },
      fixIds: [ape],
      getAllCodeActions: (e) =>
        Ss(e, KMe, (t, r) => {
          const i = XMe(e.program, r.file, Id(r.start, r.length));
          i && YMe(t, r.file, i.arg, i.expression);
        }),
    });
    function XMe(e, t, r) {
      const i = hn(
        e.getSemanticDiagnostics(t),
        (l) => l.start === r.start && l.length === r.length,
      );
      if (i === void 0 || i.relatedInformation === void 0) return;
      const o = hn(
        i.relatedInformation,
        (l) => l.code === f.Did_you_mean_0.code,
      );
      if (
        o === void 0 ||
        o.file === void 0 ||
        o.start === void 0 ||
        o.length === void 0
      )
        return;
      const s = Wpe(o.file, Id(o.start, o.length));
      if (s !== void 0 && St(s) && Nr(s.parent))
        return { suggestion: qet(o.messageText), expression: s.parent, arg: s };
    }
    function YMe(e, t, r, i) {
      const o = L.createCallExpression(
          L.createPropertyAccessExpression(
            L.createIdentifier("Number"),
            L.createIdentifier("isNaN"),
          ),
          void 0,
          [r],
        ),
        s = i.operatorToken.kind;
      e.replaceNode(
        t,
        i,
        s === 38 || s === 36 ? L.createPrefixUnaryExpression(54, o) : o,
      );
    }
    function qet(e) {
      const [, t] =
        a_(
          e,
          `
`,
          0,
        ).match(/'(.*)'/) || [];
      return t;
    }
    Sa({
      errorCodes: [
        f
          .Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher
          .code,
        f
          .Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher
          .code,
        f
          .Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher
          .code,
      ],
      getCodeActions: function (t) {
        const r = t.program.getCompilerOptions(),
          { configFile: i } = r;
        if (i === void 0) return;
        const o = [],
          s = bu(r);
        if (s >= 5 && s < 99) {
          const _ = Rr.ChangeTracker.with(t, (h) => {
            wpe(h, i, "module", L.createStringLiteral("esnext"));
          });
          o.push(
            yh("fixModuleOption", _, [
              f.Set_the_module_option_in_your_configuration_file_to_0,
              "esnext",
            ]),
          );
        }
        const u = Ga(r);
        if (u < 4 || u > 99) {
          const _ = Rr.ChangeTracker.with(t, (h) => {
            if (!JN(i)) return;
            const E = [["target", L.createStringLiteral("es2017")]];
            (s === 1 && E.push(["module", L.createStringLiteral("commonjs")]),
              kpe(h, i, E));
          });
          o.push(
            yh("fixTargetOption", _, [
              f.Set_the_target_option_in_your_configuration_file_to_0,
              "es2017",
            ]),
          );
        }
        return o.length ? o : void 0;
      },
    });
    var spe = "fixPropertyAssignment",
      $Me = [
        f
          .Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern
          .code,
      ];
    Sa({
      errorCodes: $Me,
      fixIds: [spe],
      getCodeActions(e) {
        const { sourceFile: t, span: r } = e,
          i = ZMe(t, r.start),
          o = Rr.ChangeTracker.with(e, (s) => QMe(s, e.sourceFile, i));
        return [
          oa(spe, o, [f.Change_0_to_1, "=", ":"], spe, [
            f.Switch_each_misused_0_to_1,
            "=",
            ":",
          ]),
        ];
      },
      getAllCodeActions: (e) =>
        Ss(e, $Me, (t, r) => QMe(t, r.file, ZMe(r.file, r.start))),
    });
    function QMe(e, t, r) {
      e.replaceNode(
        t,
        r,
        L.createPropertyAssignment(r.name, r.objectAssignmentInitializer),
      );
    }
    function ZMe(e, t) {
      return ma(Fi(e, t).parent, Ud);
    }
    var lpe = "extendsInterfaceBecomesImplements",
      ePe = [f.Cannot_extend_an_interface_0_Did_you_mean_implements.code];
    Sa({
      errorCodes: ePe,
      getCodeActions(e) {
        const { sourceFile: t } = e,
          r = tPe(t, e.span.start);
        if (!r) return;
        const { extendsToken: i, heritageClauses: o } = r,
          s = Rr.ChangeTracker.with(e, (l) => nPe(l, t, i, o));
        return [
          oa(
            lpe,
            s,
            f.Change_extends_to_implements,
            lpe,
            f.Change_all_extended_interfaces_to_implements,
          ),
        ];
      },
      fixIds: [lpe],
      getAllCodeActions: (e) =>
        Ss(e, ePe, (t, r) => {
          const i = tPe(r.file, r.start);
          i && nPe(t, r.file, i.extendsToken, i.heritageClauses);
        }),
    });
    function tPe(e, t) {
      const r = Fi(e, t),
        i = hd(r).heritageClauses,
        o = i[0].getFirstToken();
      return o.kind === 96 ? { extendsToken: o, heritageClauses: i } : void 0;
    }
    function nPe(e, t, r, i) {
      if (
        (e.replaceNode(t, r, L.createToken(119)),
        i.length === 2 && i[0].token === 96 && i[1].token === 119)
      ) {
        const o = i[1].getFirstToken(),
          s = o.getFullStart();
        e.replaceRange(t, { pos: s, end: s }, L.createToken(28));
        const l = t.text;
        let u = o.end;
        for (; u < l.length && Bh(l.charCodeAt(u)); ) u++;
        e.deleteRange(t, { pos: o.getStart(), end: u });
      }
    }
    var cpe = "forgottenThisPropertyAccess",
      rPe = f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,
      iPe = [
        f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,
        f
          .Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression
          .code,
        rPe,
      ];
    Sa({
      errorCodes: iPe,
      getCodeActions(e) {
        const { sourceFile: t } = e,
          r = oPe(t, e.span.start, e.errorCode);
        if (!r) return;
        const i = Rr.ChangeTracker.with(e, (o) => aPe(o, t, r));
        return [
          oa(
            cpe,
            i,
            [f.Add_0_to_unresolved_variable, r.className || "this"],
            cpe,
            f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name,
          ),
        ];
      },
      fixIds: [cpe],
      getAllCodeActions: (e) =>
        Ss(e, iPe, (t, r) => {
          const i = oPe(r.file, r.start, r.code);
          i && aPe(t, e.sourceFile, i);
        }),
    });
    function oPe(e, t, r) {
      const i = Fi(e, t);
      if (He(i) || eo(i))
        return { node: i, className: r === rPe ? hd(i).name.text : void 0 };
    }
    function aPe(e, t, { node: r, className: i }) {
      (Op(r),
        e.replaceNode(
          t,
          r,
          L.createPropertyAccessExpression(
            i ? L.createIdentifier(i) : L.createThis(),
            r,
          ),
        ));
    }
    var dpe = "fixInvalidJsxCharacters_expression",
      MK = "fixInvalidJsxCharacters_htmlEntity",
      sPe = [
        f.Unexpected_token_Did_you_mean_or_gt.code,
        f.Unexpected_token_Did_you_mean_or_rbrace.code,
      ];
    Sa({
      errorCodes: sPe,
      fixIds: [dpe, MK],
      getCodeActions(e) {
        const { sourceFile: t, preferences: r, span: i } = e,
          o = Rr.ChangeTracker.with(e, (l) => upe(l, r, t, i.start, !1)),
          s = Rr.ChangeTracker.with(e, (l) => upe(l, r, t, i.start, !0));
        return [
          oa(
            dpe,
            o,
            f.Wrap_invalid_character_in_an_expression_container,
            dpe,
            f.Wrap_all_invalid_characters_in_an_expression_container,
          ),
          oa(
            MK,
            s,
            f.Convert_invalid_character_to_its_html_entity_code,
            MK,
            f.Convert_all_invalid_characters_to_HTML_entity_code,
          ),
        ];
      },
      getAllCodeActions(e) {
        return Ss(e, sPe, (t, r) =>
          upe(t, e.preferences, r.file, r.start, e.fixId === MK),
        );
      },
    });
    var lPe = { ">": "&gt;", "}": "&rbrace;" };
    function Jet(e) {
      return Rs(lPe, e);
    }
    function upe(e, t, r, i, o) {
      const s = r.getText()[i];
      if (!Jet(s)) return;
      const l = o ? lPe[s] : `{${wP(r, t, s)}}`;
      e.replaceRangeWithText(r, { pos: i, end: i + 1 }, l);
    }
    var PK = "deleteUnmatchedParameter",
      cPe = "renameUnmatchedParameter",
      dPe = [
        f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name
          .code,
      ];
    Sa({
      fixIds: [PK, cPe],
      errorCodes: dPe,
      getCodeActions: function (t) {
        const { sourceFile: r, span: i } = t,
          o = [],
          s = uPe(r, i.start);
        if (s) return (Bn(o, Ket(t, s)), Bn(o, Xet(t, s)), o);
      },
      getAllCodeActions: function (t) {
        const r = new Map();
        return vx(
          Rr.ChangeTracker.with(t, (i) => {
            (bx(t, dPe, ({ file: o, start: s }) => {
              const l = uPe(o, s);
              l &&
                r.set(l.signature, Bn(r.get(l.signature), l.jsDocParameterTag));
            }),
              r.forEach((o, s) => {
                if (t.fixId === PK) {
                  const l = new Set(o);
                  i.filterJSDocTags(s.getSourceFile(), s, (u) => !l.has(u));
                }
              }));
          }),
        );
      },
    });
    function Ket(e, { name: t, jsDocHost: r, jsDocParameterTag: i }) {
      const o = Rr.ChangeTracker.with(e, (s) =>
        s.filterJSDocTags(e.sourceFile, r, (l) => l !== i),
      );
      return oa(
        PK,
        o,
        [f.Delete_unused_param_tag_0, t.getText(e.sourceFile)],
        PK,
        f.Delete_all_unused_param_tags,
      );
    }
    function Xet(
      e,
      { name: t, jsDocHost: r, signature: i, jsDocParameterTag: o },
    ) {
      if (!et(i.parameters)) return;
      const s = e.sourceFile,
        l = kT(i),
        u = new Set();
      for (const g of l) mf(g) && He(g.name) && u.add(g.name.escapedText);
      const d = Hn(i.parameters, (g) =>
        He(g.name) && !u.has(g.name.escapedText) ? g.name.getText(s) : void 0,
      );
      if (d === void 0) return;
      const _ = L.updateJSDocParameterTag(
          o,
          o.tagName,
          L.createIdentifier(d),
          o.isBracketed,
          o.typeExpression,
          o.isNameFirst,
          o.comment,
        ),
        h = Rr.ChangeTracker.with(e, (g) =>
          g.replaceJSDocComment(
            s,
            r,
            Vt(l, (E) => (E === o ? _ : E)),
          ),
        );
      return yh(cPe, h, [f.Rename_param_tag_name_0_to_1, t.getText(s), d]);
    }
    function uPe(e, t) {
      const r = Fi(e, t);
      if (r.parent && mf(r.parent) && He(r.parent.name)) {
        const i = r.parent,
          o = IS(i),
          s = BT(i);
        if (o && s)
          return {
            jsDocHost: o,
            signature: s,
            name: r.parent.name,
            jsDocParameterTag: i,
          };
      }
    }
    var ppe = "fixUnreferenceableDecoratorMetadata",
      Yet = [
        f
          .A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled
          .code,
      ];
    Sa({
      errorCodes: Yet,
      getCodeActions: (e) => {
        const t = $et(e.sourceFile, e.program, e.span.start);
        if (!t) return;
        const r = Rr.ChangeTracker.with(
            e,
            (s) => t.kind === 277 && Zet(s, e.sourceFile, t, e.program),
          ),
          i = Rr.ChangeTracker.with(e, (s) =>
            Qet(s, e.sourceFile, t, e.program),
          );
        let o;
        return (
          r.length &&
            (o = Bn(
              o,
              yh(ppe, r, f.Convert_named_imports_to_namespace_import),
            )),
          i.length && (o = Bn(o, yh(ppe, i, f.Use_import_type))),
          o
        );
      },
      fixIds: [ppe],
    });
    function $et(e, t, r) {
      const i = ni(Fi(e, r), He);
      if (!i || i.parent.kind !== 184) return;
      const s = t.getTypeChecker().getSymbolAtLocation(i);
      return hn(s?.declarations || ae, Rp(Vm, Eu, Fc));
    }
    function Qet(e, t, r, i) {
      if (r.kind === 272) {
        e.insertModifierBefore(t, 156, r.name);
        return;
      }
      const o = r.kind === 274 ? r : r.parent.parent;
      if (o.name && o.namedBindings) return;
      const s = i.getTypeChecker();
      hne(o, (u) => {
        if (xd(u.symbol, s).flags & 111551) return !0;
      }) || e.insertModifierBefore(t, 156, o);
    }
    function Zet(e, t, r, i) {
      gx.doChangeNamedToNamespaceOrDefault(t, i, e, r.parent);
    }
    var fz = "unusedIdentifier",
      fpe = "unusedIdentifier_prefix",
      mpe = "unusedIdentifier_delete",
      LK = "unusedIdentifier_deleteImports",
      hpe = "unusedIdentifier_infer",
      pPe = [
        f._0_is_declared_but_its_value_is_never_read.code,
        f._0_is_declared_but_never_used.code,
        f.Property_0_is_declared_but_its_value_is_never_read.code,
        f.All_imports_in_import_declaration_are_unused.code,
        f.All_destructured_elements_are_unused.code,
        f.All_variables_are_unused.code,
        f.All_type_parameters_are_unused.code,
      ];
    Sa({
      errorCodes: pPe,
      getCodeActions(e) {
        const {
            errorCode: t,
            sourceFile: r,
            program: i,
            cancellationToken: o,
          } = e,
          s = i.getTypeChecker(),
          l = i.getSourceFiles(),
          u = Fi(r, e.span.start);
        if (bm(u))
          return [
            HP(
              Rr.ChangeTracker.with(e, (g) => g.delete(r, u)),
              f.Remove_template_tag,
            ),
          ];
        if (u.kind === 30) {
          const g = Rr.ChangeTracker.with(e, (E) => mPe(E, r, u));
          return [HP(g, f.Remove_type_parameters)];
        }
        const d = hPe(u);
        if (d) {
          const g = Rr.ChangeTracker.with(e, (E) => E.delete(r, d));
          return [
            oa(
              fz,
              g,
              [f.Remove_import_from_0, ere(d)],
              LK,
              f.Delete_all_unused_imports,
            ),
          ];
        } else if (_pe(u)) {
          const g = Rr.ChangeTracker.with(e, (E) =>
            kK(r, u, E, s, l, i, o, !1),
          );
          if (g.length)
            return [
              oa(
                fz,
                g,
                [f.Remove_unused_declaration_for_Colon_0, u.getText(r)],
                LK,
                f.Delete_all_unused_imports,
              ),
            ];
        }
        if (ff(u.parent) || pv(u.parent)) {
          if (to(u.parent.parent)) {
            const g = u.parent.elements,
              E = [
                g.length > 1
                  ? f.Remove_unused_declarations_for_Colon_0
                  : f.Remove_unused_declaration_for_Colon_0,
                Vt(g, (A) => A.getText(r)).join(", "),
              ];
            return [
              HP(
                Rr.ChangeTracker.with(e, (A) => ett(A, r, u.parent)),
                E,
              ),
            ];
          }
          return [
            HP(
              Rr.ChangeTracker.with(e, (g) => ttt(e, g, r, u.parent)),
              f.Remove_unused_destructuring_declaration,
            ),
          ];
        }
        if (_Pe(r, u))
          return [
            HP(
              Rr.ChangeTracker.with(e, (g) => gPe(g, r, u.parent)),
              f.Remove_variable_statement,
            ),
          ];
        if (He(u) && Zl(u.parent))
          return [
            HP(
              Rr.ChangeTracker.with(e, (g) => TPe(g, r, u.parent)),
              [f.Remove_unused_declaration_for_Colon_0, u.getText(r)],
            ),
          ];
        const _ = [];
        if (u.kind === 140) {
          const g = Rr.ChangeTracker.with(e, (A) => fPe(A, r, u)),
            E = ma(u.parent, y1).typeParameter.name.text;
          _.push(
            oa(
              fz,
              g,
              [f.Replace_infer_0_with_unknown, E],
              hpe,
              f.Replace_all_unused_infer_with_unknown,
            ),
          );
        } else {
          const g = Rr.ChangeTracker.with(e, (E) =>
            kK(r, u, E, s, l, i, o, !1),
          );
          if (g.length) {
            const E = va(u.parent) ? u.parent : u;
            _.push(
              HP(g, [f.Remove_unused_declaration_for_Colon_0, E.getText(r)]),
            );
          }
        }
        const h = Rr.ChangeTracker.with(e, (g) => yPe(g, t, r, u));
        return (
          h.length &&
            _.push(
              oa(
                fz,
                h,
                [f.Prefix_0_with_an_underscore, u.getText(r)],
                fpe,
                f.Prefix_all_unused_declarations_with_where_possible,
              ),
            ),
          _
        );
      },
      fixIds: [fpe, mpe, LK, hpe],
      getAllCodeActions: (e) => {
        const { sourceFile: t, program: r, cancellationToken: i } = e,
          o = r.getTypeChecker(),
          s = r.getSourceFiles();
        return Ss(e, pPe, (l, u) => {
          const d = Fi(t, u.start);
          switch (e.fixId) {
            case fpe:
              yPe(l, u.code, t, d);
              break;
            case LK: {
              const _ = hPe(d);
              _ ? l.delete(t, _) : _pe(d) && kK(t, d, l, o, s, r, i, !0);
              break;
            }
            case mpe: {
              if (d.kind === 140 || _pe(d)) break;
              if (bm(d)) l.delete(t, d);
              else if (d.kind === 30) mPe(l, t, d);
              else if (ff(d.parent)) {
                if (d.parent.parent.initializer) break;
                (!to(d.parent.parent) || vPe(d.parent.parent, o, s)) &&
                  l.delete(t, d.parent.parent);
              } else {
                if (pv(d.parent.parent) && d.parent.parent.parent.initializer)
                  break;
                _Pe(t, d)
                  ? gPe(l, t, d.parent)
                  : He(d) && Zl(d.parent)
                    ? TPe(l, t, d.parent)
                    : kK(t, d, l, o, s, r, i, !0);
              }
              break;
            }
            case hpe:
              d.kind === 140 && fPe(l, t, d);
              break;
            default:
              C.fail(JSON.stringify(e.fixId));
          }
        });
      },
    });
    function fPe(e, t, r) {
      e.replaceNode(t, r.parent, L.createKeywordTypeNode(159));
    }
    function HP(e, t) {
      return oa(fz, e, t, mpe, f.Delete_all_unused_declarations);
    }
    function mPe(e, t, r) {
      e.delete(
        t,
        C.checkDefined(
          ma(r.parent, AG).typeParameters,
          "The type parameter to delete should exist",
        ),
      );
    }
    function _pe(e) {
      return (
        e.kind === 102 ||
        (e.kind === 80 && (e.parent.kind === 277 || e.parent.kind === 274))
      );
    }
    function hPe(e) {
      return e.kind === 102 ? ni(e.parent, vl) : void 0;
    }
    function _Pe(e, t) {
      return _d(t.parent) && $a(t.parent.getChildren(e)) === t;
    }
    function gPe(e, t, r) {
      e.delete(t, r.parent.kind === 244 ? r.parent : r);
    }
    function ett(e, t, r) {
      Ye(r.elements, (i) => e.delete(t, i));
    }
    function ttt(e, t, r, { parent: i }) {
      if (yi(i) && i.initializer && gS(i.initializer))
        if (_d(i.parent) && et(i.parent.declarations) > 1) {
          const o = i.parent.parent,
            s = o.getStart(r),
            l = o.end;
          (t.delete(r, i),
            t.insertNodeAt(r, l, i.initializer, {
              prefix:
                _y(e.host, e.formatContext.options) +
                r.text.slice(R7(r.text, s - 1), s),
              suffix: NO(r) ? ";" : "",
            }));
        } else t.replaceNode(r, i.parent, i.initializer);
      else t.delete(r, i);
    }
    function yPe(e, t, r, i) {
      t !== f.Property_0_is_declared_but_its_value_is_never_read.code &&
        (i.kind === 140 && (i = ma(i.parent, y1).typeParameter.name),
        He(i) &&
          ntt(i) &&
          (e.replaceNode(r, i, L.createIdentifier(`_${i.text}`)),
          to(i.parent) &&
            OR(i.parent).forEach((o) => {
              He(o.name) &&
                e.replaceNode(r, o.name, L.createIdentifier(`_${o.name.text}`));
            })));
    }
    function ntt(e) {
      switch (e.parent.kind) {
        case 170:
        case 169:
          return !0;
        case 261:
          switch (e.parent.parent.parent.kind) {
            case 251:
            case 250:
              return !0;
          }
      }
      return !1;
    }
    function kK(e, t, r, i, o, s, l, u) {
      (rtt(t, r, e, i, o, s, l, u),
        He(t) &&
          Ys.Core.eachSymbolReferenceInFile(t, i, e, (d) => {
            (qr(d.parent) && d.parent.name === d && (d = d.parent),
              !u && stt(d) && r.delete(e, d.parent.parent));
          }));
    }
    function rtt(e, t, r, i, o, s, l, u) {
      const { parent: d } = e;
      if (to(d)) itt(t, r, d, i, o, s, l, u);
      else if (!(u && He(e) && Ys.Core.isSymbolReferencedInFile(e, i, r))) {
        const _ = Vm(d) ? e : va(d) ? d.parent : d;
        (C.assert(_ !== r, "should not delete whole source file"),
          t.delete(r, _));
      }
    }
    function itt(e, t, r, i, o, s, l, u = !1) {
      if (ott(i, t, r, o, s, l, u))
        if (
          r.modifiers &&
          r.modifiers.length > 0 &&
          (!He(r.name) || Ys.Core.isSymbolReferencedInFile(r.name, i, t))
        )
          for (const d of r.modifiers) Aa(d) && e.deleteModifier(t, d);
        else !r.initializer && vPe(r, i, o) && e.delete(t, r);
    }
    function vPe(e, t, r) {
      const i = e.parent.parameters.indexOf(e);
      return !Ys.Core.someSignatureUsage(
        e.parent,
        r,
        t,
        (o, s) => !s || s.arguments.length > i,
      );
    }
    function ott(e, t, r, i, o, s, l) {
      const { parent: u } = r;
      switch (u.kind) {
        case 175:
        case 177:
          const d = u.parameters.indexOf(r),
            _ = Nl(u) ? u.name : u,
            h = Ys.Core.getReferencedSymbolsForNode(u.pos, _, o, i, s);
          if (h) {
            for (const g of h)
              for (const E of g.references)
                if (E.kind === Ys.EntryKind.Node) {
                  const A =
                      zM(E.node) &&
                      Zo(E.node.parent) &&
                      E.node.parent.arguments.length > d,
                    R =
                      qr(E.node.parent) &&
                      zM(E.node.parent.expression) &&
                      Zo(E.node.parent.parent) &&
                      E.node.parent.parent.arguments.length > d,
                    N =
                      (Nl(E.node.parent) || Gm(E.node.parent)) &&
                      E.node.parent !== r.parent &&
                      E.node.parent.parameters.length > d;
                  if (A || R || N) return !1;
                }
          }
          return !0;
        case 263:
          return u.name && att(e, t, u.name) ? bPe(u, r, l) : !0;
        case 219:
        case 220:
          return bPe(u, r, l);
        case 179:
          return !1;
        case 178:
          return !0;
        default:
          return C.failBadSyntaxKind(u);
      }
    }
    function att(e, t, r) {
      return !!Ys.Core.eachSymbolReferenceInFile(
        r,
        e,
        t,
        (i) => He(i) && Zo(i.parent) && i.parent.arguments.includes(i),
      );
    }
    function bPe(e, t, r) {
      const i = e.parameters,
        o = i.indexOf(t);
      return (
        C.assert(o !== -1, "The parameter should already be in the list"),
        r
          ? i.slice(o + 1).every((s) => He(s.name) && !s.symbol.isReferenced)
          : o === i.length - 1
      );
    }
    function stt(e) {
      return (
        ((Nr(e.parent) && e.parent.left === e) ||
          ((Tj(e.parent) || YT(e.parent)) && e.parent.operand === e)) &&
        od(e.parent.parent)
      );
    }
    function TPe(e, t, r) {
      const i = r.symbol.declarations;
      if (i) for (const o of i) e.delete(t, o);
    }
    var gpe = "fixUnreachableCode",
      SPe = [f.Unreachable_code_detected.code];
    Sa({
      errorCodes: SPe,
      getCodeActions(e) {
        if (
          e.program.getSyntacticDiagnostics(e.sourceFile, e.cancellationToken)
            .length
        )
          return;
        const r = Rr.ChangeTracker.with(e, (i) =>
          EPe(i, e.sourceFile, e.span.start, e.span.length, e.errorCode),
        );
        return [
          oa(
            gpe,
            r,
            f.Remove_unreachable_code,
            gpe,
            f.Remove_all_unreachable_code,
          ),
        ];
      },
      fixIds: [gpe],
      getAllCodeActions: (e) =>
        Ss(e, SPe, (t, r) => EPe(t, r.file, r.start, r.length, r.code)),
    });
    function EPe(e, t, r, i, o) {
      const s = Fi(t, r),
        l = Dn(s, Vi);
      if (l.getStart(t) !== s.getStart(t)) {
        const d = JSON.stringify({
          statementKind: C.formatSyntaxKind(l.kind),
          tokenKind: C.formatSyntaxKind(s.kind),
          errorCode: o,
          start: r,
          length: i,
        });
        C.fail("Token and statement should start at the same point. " + d);
      }
      const u = (ea(l.parent) ? l.parent : l).parent;
      if (!ea(l.parent) || l === $a(l.parent.statements))
        switch (u.kind) {
          case 246:
            if (u.elseStatement) {
              if (ea(l.parent)) break;
              e.replaceNode(t, l, L.createBlock(ae));
              return;
            }
          case 248:
          case 249:
            e.delete(t, u);
            return;
        }
      if (ea(l.parent)) {
        const d = r + i,
          _ = C.checkDefined(
            ltt(GV(l.parent.statements, l), (h) => h.pos < d),
            "Some statement should be last",
          );
        e.deleteNodeRange(t, l, _);
      } else e.delete(t, l);
    }
    function ltt(e, t) {
      let r;
      for (const i of e) {
        if (!t(i)) break;
        r = i;
      }
      return r;
    }
    var ype = "fixUnusedLabel",
      APe = [f.Unused_label.code];
    Sa({
      errorCodes: APe,
      getCodeActions(e) {
        const t = Rr.ChangeTracker.with(e, (r) =>
          IPe(r, e.sourceFile, e.span.start),
        );
        return [
          oa(ype, t, f.Remove_unused_label, ype, f.Remove_all_unused_labels),
        ];
      },
      fixIds: [ype],
      getAllCodeActions: (e) => Ss(e, APe, (t, r) => IPe(t, r.file, r.start)),
    });
    function IPe(e, t, r) {
      const i = Fi(t, r),
        o = ma(i.parent, Lb),
        s = i.getStart(t),
        l = o.statement.getStart(t),
        u = Gf(s, l, t) ? l : La(t.text, Es(o, 59, t).end, !0);
      e.deleteRange(t, { pos: s, end: u });
    }
    var xPe = "fixJSDocTypes_plain",
      vpe = "fixJSDocTypes_nullable",
      RPe = [
        f.JSDoc_types_can_only_be_used_inside_documentation_comments.code,
        f
          ._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1
          .code,
        f
          ._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1
          .code,
      ];
    Sa({
      errorCodes: RPe,
      getCodeActions(e) {
        const { sourceFile: t } = e,
          r = e.program.getTypeChecker(),
          i = CPe(t, e.span.start, r);
        if (!i) return;
        const { typeNode: o, type: s } = i,
          l = o.getText(t),
          u = [d(s, xPe, f.Change_all_jsdoc_style_types_to_TypeScript)];
        return (
          o.kind === 315 &&
            u.push(
              d(
                s,
                vpe,
                f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types,
              ),
            ),
          u
        );
        function d(_, h, g) {
          const E = Rr.ChangeTracker.with(e, (A) => DPe(A, t, o, _, r));
          return oa(
            "jdocTypes",
            E,
            [f.Change_0_to_1, l, r.typeToString(_)],
            h,
            g,
          );
        }
      },
      fixIds: [xPe, vpe],
      getAllCodeActions(e) {
        const { fixId: t, program: r, sourceFile: i } = e,
          o = r.getTypeChecker();
        return Ss(e, RPe, (s, l) => {
          const u = CPe(l.file, l.start, o);
          if (!u) return;
          const { typeNode: d, type: _ } = u,
            h = d.kind === 315 && t === vpe ? o.getNullableType(_, 32768) : _;
          DPe(s, i, d, h, o);
        });
      },
    });
    function DPe(e, t, r, i, o) {
      e.replaceNode(t, r, o.typeToTypeNode(i, r, void 0));
    }
    function CPe(e, t, r) {
      const i = Dn(Fi(e, t), ctt),
        o = i && i.type;
      return o && { typeNode: o, type: dtt(r, o) };
    }
    function ctt(e) {
      switch (e.kind) {
        case 235:
        case 180:
        case 181:
        case 263:
        case 178:
        case 182:
        case 201:
        case 175:
        case 174:
        case 170:
        case 173:
        case 172:
        case 179:
        case 266:
        case 217:
        case 261:
          return !0;
        default:
          return !1;
      }
    }
    function dtt(e, t) {
      if (RD(t)) {
        const r = e.getTypeFromTypeNode(t.type);
        return r === e.getNeverType() || r === e.getVoidType()
          ? r
          : e.getUnionType(
              Bn(
                [r, e.getUndefinedType()],
                t.postfix ? void 0 : e.getNullType(),
              ),
            );
      }
      return e.getTypeFromTypeNode(t);
    }
    var bpe = "fixMissingCallParentheses",
      NPe = [
        f
          .This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead
          .code,
      ];
    Sa({
      errorCodes: NPe,
      fixIds: [bpe],
      getCodeActions(e) {
        const { sourceFile: t, span: r } = e,
          i = PPe(t, r.start);
        if (!i) return;
        const o = Rr.ChangeTracker.with(e, (s) => MPe(s, e.sourceFile, i));
        return [
          oa(
            bpe,
            o,
            f.Add_missing_call_parentheses,
            bpe,
            f.Add_all_missing_call_parentheses,
          ),
        ];
      },
      getAllCodeActions: (e) =>
        Ss(e, NPe, (t, r) => {
          const i = PPe(r.file, r.start);
          i && MPe(t, r.file, i);
        }),
    });
    function MPe(e, t, r) {
      e.replaceNodeWithText(t, r, `${r.text}()`);
    }
    function PPe(e, t) {
      const r = Fi(e, t);
      if (qr(r.parent)) {
        let i = r.parent;
        for (; qr(i.parent); ) i = i.parent;
        return i.name;
      }
      if (He(r)) return r;
    }
    var LPe = "fixMissingTypeAnnotationOnExports",
      Tpe = "add-annotation",
      Spe = "add-type-assertion",
      utt = "extract-expression",
      kPe = [
        f
          .Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations
          .code,
        f
          .Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations
          .code,
        f
          .At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations
          .code,
        f
          .Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations
          .code,
        f
          .Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations
          .code,
        f
          .Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations
          .code,
        f.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,
        f.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations
          .code,
        f
          .Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations
          .code,
        f
          .Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations
          .code,
        f
          .Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations
          .code,
        f.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations
          .code,
        f
          .Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations
          .code,
        f
          .Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations
          .code,
        f.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations
          .code,
        f.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,
        f.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,
        f
          .Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function
          .code,
        f
          .Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations
          .code,
        f.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations
          .code,
        f
          .Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit
          .code,
      ],
      ptt = new Set([
        178, 175, 173, 263, 219, 220, 261, 170, 278, 264, 207, 208,
      ]),
      wPe = 531469,
      OPe = 1;
    Sa({
      errorCodes: kPe,
      fixIds: [LPe],
      getCodeActions(e) {
        const t = [];
        return (
          qP(Tpe, t, e, 0, (r) => r.addTypeAnnotation(e.span)),
          qP(Tpe, t, e, 1, (r) => r.addTypeAnnotation(e.span)),
          qP(Tpe, t, e, 2, (r) => r.addTypeAnnotation(e.span)),
          qP(Spe, t, e, 0, (r) => r.addInlineAssertion(e.span)),
          qP(Spe, t, e, 1, (r) => r.addInlineAssertion(e.span)),
          qP(Spe, t, e, 2, (r) => r.addInlineAssertion(e.span)),
          qP(utt, t, e, 0, (r) => r.extractAsVariable(e.span)),
          t
        );
      },
      getAllCodeActions: (e) => {
        const t = WPe(e, 0, (r) => {
          bx(e, kPe, (i) => {
            r.addTypeAnnotation(i);
          });
        });
        return vx(t.textChanges);
      },
    });
    function qP(e, t, r, i, o) {
      const s = WPe(r, i, o);
      s.result &&
        s.textChanges.length &&
        t.push(
          oa(
            e,
            s.textChanges,
            s.result,
            LPe,
            f.Add_all_missing_type_annotations,
          ),
        );
    }
    function WPe(e, t, r) {
      const i = { typeNode: void 0, mutatedTarget: !1 },
        o = Rr.ChangeTracker.fromContext(e),
        s = e.sourceFile,
        l = e.program,
        u = l.getTypeChecker(),
        d = Ga(l.getCompilerOptions()),
        _ = aE(e.sourceFile, e.program, e.preferences, e.host),
        h = new Set(),
        g = new Set(),
        E = zb({ preserveSourceNewlines: !1 }),
        A = r({
          addTypeAnnotation: R,
          addInlineAssertion: O,
          extractAsVariable: G,
        });
      return (_.writeFixes(o), { result: A, textChanges: o.getChanges() });
      function R(Re) {
        e.cancellationToken.throwIfCancellationRequested();
        const _e = Fi(s, Re.start),
          je = j(_e);
        if (je) return Zl(je) ? N(je) : J(je);
        const Ge = lt(_e);
        if (Ge) return J(Ge);
      }
      function N(Re) {
        var _e;
        if (g?.has(Re)) return;
        g?.add(Re);
        const je = u.getTypeAtLocation(Re),
          Ge = u.getPropertiesOfType(je);
        if (!Re.name || Ge.length === 0) return;
        const We = [];
        for (const cn of Ge)
          fp(cn.name, Ga(l.getCompilerOptions())) &&
            ((cn.valueDeclaration && yi(cn.valueDeclaration)) ||
              We.push(
                L.createVariableStatement(
                  [L.createModifier(95)],
                  L.createVariableDeclarationList([
                    L.createVariableDeclaration(
                      cn.name,
                      void 0,
                      re(u.getTypeOfSymbol(cn), Re),
                      void 0,
                    ),
                  ]),
                ),
              ));
        if (We.length === 0) return;
        const at = [];
        ((_e = Re.modifiers) != null &&
          _e.some((cn) => cn.kind === 95) &&
          at.push(L.createModifier(95)),
          at.push(L.createModifier(138)));
        const Wt = L.createModuleDeclaration(
          at,
          Re.name,
          L.createModuleBlock(We),
          101441696,
        );
        return (
          o.insertNodeAfter(s, Re, Wt),
          [f.Annotate_types_of_properties_expando_function_in_a_namespace]
        );
      }
      function P(Re) {
        return !Ds(Re) && !Zo(Re) && !Wa(Re) && !Cd(Re);
      }
      function k(Re, _e) {
        return (
          P(Re) && (Re = L.createParenthesizedExpression(Re)),
          L.createAsExpression(Re, _e)
        );
      }
      function W(Re, _e) {
        return (
          P(Re) && (Re = L.createParenthesizedExpression(Re)),
          L.createAsExpression(L.createSatisfiesExpression(Re, _s(_e)), _e)
        );
      }
      function O(Re) {
        e.cancellationToken.throwIfCancellationRequested();
        const _e = Fi(s, Re.start);
        if (j(_e)) return;
        const Ge = ce(_e, Re);
        if (!Ge || l1(Ge) || l1(Ge.parent)) return;
        const We = St(Ge),
          at = Ud(Ge);
        if (
          (!at && rd(Ge)) ||
          Dn(Ge, Qo) ||
          Dn(Ge, py) ||
          (We && (Dn(Ge, Fp) || Dn(Ge, Ri))) ||
          qf(Ge)
        )
          return;
        const Wt = Dn(Ge, yi),
          cn = Wt && u.getTypeAtLocation(Wt);
        if ((cn && cn.flags & 8192) || !(We || at)) return;
        const { typeNode: gn, mutatedTarget: Kn } = fe(Ge, cn);
        if (!(!gn || Kn))
          return (
            at
              ? o.insertNodeAt(s, Ge.end, k(_s(Ge.name), gn), { prefix: ": " })
              : We
                ? o.replaceNode(s, Ge, W(_s(Ge), gn))
                : C.assertNever(Ge),
            [f.Add_satisfies_and_an_inline_type_assertion_with_0, Be(gn)]
          );
      }
      function G(Re) {
        e.cancellationToken.throwIfCancellationRequested();
        const _e = Fi(s, Re.start),
          je = ce(_e, Re);
        if (!je || l1(je) || l1(je.parent) || !St(je)) return;
        if (Cd(je))
          return (
            o.replaceNode(s, je, k(je, L.createTypeReferenceNode("const"))),
            [f.Mark_array_literal_as_const]
          );
        const We = Dn(je, Cc);
        if (We) {
          if (We === je.parent && Ds(je)) return;
          const at = L.createUniqueName(Ede(je, s, u, s), 16);
          let Wt = je,
            cn = je;
          if (
            (qf(Wt) &&
              ((Wt = zm(Wt.parent)),
              Je(Wt.parent)
                ? (cn = Wt = Wt.parent)
                : (cn = k(Wt, L.createTypeReferenceNode("const")))),
            Ds(Wt))
          )
            return;
          const gn = L.createVariableStatement(
              void 0,
              L.createVariableDeclarationList(
                [L.createVariableDeclaration(at, void 0, void 0, cn)],
                2,
              ),
            ),
            Kn = Dn(je, Vi);
          return (
            o.insertNodeBefore(s, Kn, gn),
            o.replaceNode(
              s,
              Wt,
              L.createAsExpression(
                L.cloneNode(at),
                L.createTypeQueryNode(L.cloneNode(at)),
              ),
            ),
            [f.Extract_to_variable_and_replace_with_0_as_typeof_0, Be(at)]
          );
        }
      }
      function j(Re) {
        const _e = Dn(Re, (je) => (Vi(je) ? "quit" : WI(je)));
        if (_e && WI(_e)) {
          let je = _e;
          if (Nr(je) && ((je = je.left), !WI(je))) return;
          const Ge = u.getTypeAtLocation(je.expression);
          if (!Ge) return;
          const We = u.getPropertiesOfType(Ge);
          if (
            yt(
              We,
              (at) =>
                at.valueDeclaration === _e || at.valueDeclaration === _e.parent,
            )
          ) {
            const at = Ge.symbol.valueDeclaration;
            if (at) {
              if (Rb(at) && yi(at.parent)) return at.parent;
              if (Zl(at)) return at;
            }
          }
        }
      }
      function J(Re) {
        if (!h?.has(Re))
          switch ((h?.add(Re), Re.kind)) {
            case 170:
            case 173:
            case 261:
              return Ne(Re);
            case 220:
            case 219:
            case 263:
            case 175:
            case 178:
              return Z(Re, s);
            case 278:
              return q(Re);
            case 264:
              return ye(Re);
            case 207:
            case 208:
              return ie(Re);
            default:
              throw new Error(
                `Cannot find a fix for the given node ${Re.kind}`,
              );
          }
      }
      function Z(Re, _e) {
        if (Re.type) return;
        const { typeNode: je } = fe(Re);
        if (je)
          return (
            o.tryInsertTypeAnnotation(_e, Re, je),
            [f.Add_return_type_0, Be(je)]
          );
      }
      function q(Re) {
        if (Re.isExportEquals) return;
        const { typeNode: _e } = fe(Re.expression);
        if (!_e) return;
        const je = L.createUniqueName("_default");
        return (
          o.replaceNodeWithNodes(s, Re, [
            L.createVariableStatement(
              void 0,
              L.createVariableDeclarationList(
                [L.createVariableDeclaration(je, void 0, _e, Re.expression)],
                2,
              ),
            ),
            L.updateExportAssignment(Re, Re?.modifiers, je),
          ]),
          [f.Extract_default_export_to_variable]
        );
      }
      function ye(Re) {
        var _e, je;
        const Ge =
            (_e = Re.heritageClauses) == null
              ? void 0
              : _e.find((_t) => _t.token === 96),
          We = Ge?.types[0];
        if (!We) return;
        const { typeNode: at } = fe(We.expression);
        if (!at) return;
        const Wt = L.createUniqueName(
            Re.name ? Re.name.text + "Base" : "Anonymous",
            16,
          ),
          cn = L.createVariableStatement(
            void 0,
            L.createVariableDeclarationList(
              [L.createVariableDeclaration(Wt, void 0, at, We.expression)],
              2,
            ),
          );
        o.insertNodeBefore(s, Re, cn);
        const gn = sb(s.text, We.end),
          Kn = ((je = gn?.[gn.length - 1]) == null ? void 0 : je.end) ?? We.end;
        return (
          o.replaceRange(s, { pos: We.getFullStart(), end: Kn }, Wt, {
            prefix: " ",
          }),
          [f.Extract_base_class_to_variable]
        );
      }
      function ie(Re) {
        var _e;
        const je = Re.parent,
          Ge = Re.parent.parent.parent;
        if (!je.initializer) return;
        let We;
        const at = [];
        if (He(je.initializer))
          We = { expression: { kind: 3, identifier: je.initializer } };
        else {
          const gn = L.createUniqueName("dest", 16);
          ((We = { expression: { kind: 3, identifier: gn } }),
            at.push(
              L.createVariableStatement(
                void 0,
                L.createVariableDeclarationList(
                  [
                    L.createVariableDeclaration(
                      gn,
                      void 0,
                      void 0,
                      je.initializer,
                    ),
                  ],
                  2,
                ),
              ),
            ));
        }
        const Wt = [];
        pv(Re) ? K(Re, Wt, We) : pe(Re, Wt, We);
        const cn = new Map();
        for (const gn of Wt) {
          if (gn.element.propertyName && va(gn.element.propertyName)) {
            const _t = gn.element.propertyName.expression,
              en = L.getGeneratedNameForNode(_t),
              ir = L.createVariableDeclaration(en, void 0, void 0, _t),
              Di = L.createVariableDeclarationList([ir], 2),
              lo = L.createVariableStatement(void 0, Di);
            (at.push(lo), cn.set(_t, en));
          }
          const Kn = gn.element.name;
          if (pv(Kn)) K(Kn, Wt, gn);
          else if (ff(Kn)) pe(Kn, Wt, gn);
          else {
            const { typeNode: _t } = fe(Kn);
            let en = de(gn, cn);
            if (gn.element.initializer) {
              const Di = (_e = gn.element) == null ? void 0 : _e.propertyName,
                lo = L.createUniqueName(Di && He(Di) ? Di.text : "temp", 16);
              (at.push(
                L.createVariableStatement(
                  void 0,
                  L.createVariableDeclarationList(
                    [L.createVariableDeclaration(lo, void 0, void 0, en)],
                    2,
                  ),
                ),
              ),
                (en = L.createConditionalExpression(
                  L.createBinaryExpression(
                    lo,
                    L.createToken(37),
                    L.createIdentifier("undefined"),
                  ),
                  L.createToken(58),
                  gn.element.initializer,
                  L.createToken(59),
                  en,
                )));
            }
            const ir = di(Ge, 32) ? [L.createToken(95)] : void 0;
            at.push(
              L.createVariableStatement(
                ir,
                L.createVariableDeclarationList(
                  [L.createVariableDeclaration(Kn, void 0, _t, en)],
                  2,
                ),
              ),
            );
          }
        }
        return (
          Ge.declarationList.declarations.length > 1 &&
            at.push(
              L.updateVariableStatement(
                Ge,
                Ge.modifiers,
                L.updateVariableDeclarationList(
                  Ge.declarationList,
                  Ge.declarationList.declarations.filter(
                    (gn) => gn !== Re.parent,
                  ),
                ),
              ),
            ),
          o.replaceNodeWithNodes(s, Ge, at),
          [f.Extract_binding_expressions_to_variable]
        );
      }
      function K(Re, _e, je) {
        for (let Ge = 0; Ge < Re.elements.length; ++Ge) {
          const We = Re.elements[Ge];
          Jc(We) ||
            _e.push({
              element: We,
              parent: je,
              expression: { kind: 2, arrayIndex: Ge },
            });
        }
      }
      function pe(Re, _e, je) {
        for (const Ge of Re.elements) {
          let We;
          if (Ge.propertyName)
            if (va(Ge.propertyName)) {
              _e.push({
                element: Ge,
                parent: je,
                expression: { kind: 1, computed: Ge.propertyName.expression },
              });
              continue;
            } else We = Ge.propertyName.text;
          else We = Ge.name.text;
          _e.push({
            element: Ge,
            parent: je,
            expression: { kind: 0, text: We },
          });
        }
      }
      function de(Re, _e) {
        const je = [Re];
        for (; Re.parent; ) ((Re = Re.parent), je.push(Re));
        let Ge = je[je.length - 1].expression.identifier;
        for (let We = je.length - 2; We >= 0; --We) {
          const at = je[We].expression;
          at.kind === 0
            ? (Ge = L.createPropertyAccessChain(
                Ge,
                void 0,
                L.createIdentifier(at.text),
              ))
            : at.kind === 1
              ? (Ge = L.createElementAccessExpression(Ge, _e.get(at.computed)))
              : at.kind === 2 &&
                (Ge = L.createElementAccessExpression(Ge, at.arrayIndex));
        }
        return Ge;
      }
      function fe(Re, _e) {
        if (t === 1) return Se(Re);
        let je;
        if (l1(Re)) {
          const at = u.getSignatureFromDeclaration(Re);
          if (at) {
            const Wt = u.getTypePredicateOfSignature(at);
            if (Wt)
              return Wt.type
                ? {
                    typeNode: be(Wt, Dn(Re, rd) ?? s, We(Wt.type)),
                    mutatedTarget: !1,
                  }
                : i;
            je = u.getReturnTypeOfSignature(at);
          }
        } else je = u.getTypeAtLocation(Re);
        if (!je) return i;
        if (t === 2) {
          _e && (je = _e);
          const at = u.getWidenedLiteralType(je);
          if (u.isTypeAssignableTo(at, je)) return i;
          je = at;
        }
        const Ge = Dn(Re, rd) ?? s;
        return (
          to(Re) &&
            u.requiresAddingImplicitUndefined(Re, Ge) &&
            (je = u.getUnionType([u.getUndefinedType(), je], 0)),
          { typeNode: re(je, Ge, We(je)), mutatedTarget: !1 }
        );
        function We(at) {
          return (yi(Re) || (Po(Re) && di(Re, 264))) && at.flags & 8192
            ? 1048576
            : 0;
        }
      }
      function ve(Re) {
        return L.createTypeQueryNode(_s(Re));
      }
      function xe(Re, _e = "temp") {
        const je = !!Dn(Re, Je);
        return je
          ? Ce(
              Re,
              _e,
              je,
              (Ge) => Ge.elements,
              qf,
              L.createSpreadElement,
              (Ge) => L.createArrayLiteralExpression(Ge, !0),
              (Ge) => L.createTupleTypeNode(Ge.map(L.createRestTypeNode)),
            )
          : i;
      }
      function X(Re, _e = "temp") {
        const je = !!Dn(Re, Je);
        return Ce(
          Re,
          _e,
          je,
          (Ge) => Ge.properties,
          xg,
          L.createSpreadAssignment,
          (Ge) => L.createObjectLiteralExpression(Ge, !0),
          L.createIntersectionTypeNode,
        );
      }
      function Ce(Re, _e, je, Ge, We, at, Wt, cn) {
        const gn = [],
          Kn = [];
        let _t;
        const en = Dn(Re, Vi);
        for (const lo of Ge(Re))
          We(lo)
            ? (Di(),
              Ds(lo.expression)
                ? (gn.push(ve(lo.expression)), Kn.push(lo))
                : ir(lo.expression))
            : (_t ?? (_t = [])).push(lo);
        if (Kn.length === 0) return i;
        return (
          Di(),
          o.replaceNode(s, Re, Wt(Kn)),
          { typeNode: cn(gn), mutatedTarget: !0 }
        );
        function ir(lo) {
          const zt = L.createUniqueName(_e + "_Part" + (Kn.length + 1), 16),
            Zr = je
              ? L.createAsExpression(lo, L.createTypeReferenceNode("const"))
              : lo,
            Ai = L.createVariableStatement(
              void 0,
              L.createVariableDeclarationList(
                [L.createVariableDeclaration(zt, void 0, void 0, Zr)],
                2,
              ),
            );
          (o.insertNodeBefore(s, en, Ai), gn.push(ve(zt)), Kn.push(at(zt)));
        }
        function Di() {
          _t && (ir(Wt(_t)), (_t = void 0));
        }
      }
      function Je(Re) {
        return yS(Re) && Om(Re.type);
      }
      function Se(Re) {
        if (to(Re)) return i;
        if (Ud(Re)) return { typeNode: ve(Re.name), mutatedTarget: !1 };
        if (Ds(Re)) return { typeNode: ve(Re), mutatedTarget: !1 };
        if (Je(Re)) return Se(Re.expression);
        if (Cd(Re)) {
          const _e = Dn(Re, yi),
            je = _e && He(_e.name) ? _e.name.text : void 0;
          return xe(Re, je);
        }
        if (Wa(Re)) {
          const _e = Dn(Re, yi),
            je = _e && He(_e.name) ? _e.name.text : void 0;
          return X(Re, je);
        }
        if (yi(Re) && Re.initializer) return Se(Re.initializer);
        if (T1(Re)) {
          const { typeNode: _e, mutatedTarget: je } = Se(Re.whenTrue);
          if (!_e) return i;
          const { typeNode: Ge, mutatedTarget: We } = Se(Re.whenFalse);
          return Ge
            ? {
                typeNode: L.createUnionTypeNode([_e, Ge]),
                mutatedTarget: je || We,
              }
            : i;
        }
        return i;
      }
      function re(Re, _e, je = 0) {
        let Ge = !1;
        const We = oLe(u, Re, _e, wPe | je, OPe, {
          moduleResolverHost: l,
          trackSymbol() {
            return !0;
          },
          reportTruncationError() {
            Ge = !0;
          },
        });
        if (!We) return;
        const at = Mpe(We, _, d);
        return Ge ? L.createKeywordTypeNode(133) : at;
      }
      function be(Re, _e, je = 0) {
        let Ge = !1;
        const We = aLe(u, _, Re, _e, d, wPe | je, OPe, {
          moduleResolverHost: l,
          trackSymbol() {
            return !0;
          },
          reportTruncationError() {
            Ge = !0;
          },
        });
        return Ge ? L.createKeywordTypeNode(133) : We;
      }
      function Ne(Re) {
        const { typeNode: _e } = fe(Re);
        if (_e)
          return (
            Re.type
              ? o.replaceNode(Wn(Re), Re.type, _e)
              : o.tryInsertTypeAnnotation(Wn(Re), Re, _e),
            [f.Add_annotation_of_type_0, Be(_e)]
          );
      }
      function Be(Re) {
        Cr(Re, 1);
        const _e = E.printNode(4, Re, s);
        return _e.length > GN
          ? _e.substring(0, GN - 3) + "..."
          : (Cr(Re, 0), _e);
      }
      function lt(Re) {
        return Dn(
          Re,
          (_e) => ptt.has(_e.kind) && ((!ff(_e) && !pv(_e)) || yi(_e.parent)),
        );
      }
      function ce(Re, _e) {
        for (; Re && Re.end < _e.start + _e.length; ) Re = Re.parent;
        for (; Re.parent.pos === Re.pos && Re.parent.end === Re.end; )
          Re = Re.parent;
        return He(Re) && Zy(Re.parent) && Re.parent.initializer
          ? Re.parent.initializer
          : Re;
      }
    }
    var Epe = "fixAwaitInSyncFunction",
      FPe = [
        f
          .await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules
          .code,
        f
          .await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules
          .code,
        f
          .for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules
          .code,
        f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function
          .code,
      ];
    Sa({
      errorCodes: FPe,
      getCodeActions(e) {
        const { sourceFile: t, span: r } = e,
          i = zPe(t, r.start);
        if (!i) return;
        const o = Rr.ChangeTracker.with(e, (s) => BPe(s, t, i));
        return [
          oa(
            Epe,
            o,
            f.Add_async_modifier_to_containing_function,
            Epe,
            f.Add_all_missing_async_modifiers,
          ),
        ];
      },
      fixIds: [Epe],
      getAllCodeActions: function (t) {
        const r = new Set();
        return Ss(t, FPe, (i, o) => {
          const s = zPe(o.file, o.start);
          !s || !gm(r, ls(s.insertBefore)) || BPe(i, t.sourceFile, s);
        });
      },
    });
    function ftt(e) {
      if (e.type) return e.type;
      if (yi(e.parent) && e.parent.type && w_(e.parent.type))
        return e.parent.type.type;
    }
    function zPe(e, t) {
      const r = Fi(e, t),
        i = df(r);
      if (!i) return;
      let o;
      switch (i.kind) {
        case 175:
          o = i.name;
          break;
        case 263:
        case 219:
          o = Es(i, 100, e);
          break;
        case 220:
          const s = i.typeParameters ? 30 : 21;
          o = Es(i, s, e) || $a(i.parameters);
          break;
        default:
          return;
      }
      return o && { insertBefore: o, returnType: ftt(i) };
    }
    function BPe(e, t, { insertBefore: r, returnType: i }) {
      if (i) {
        const o = ck(i);
        (!o || o.kind !== 80 || o.text !== "Promise") &&
          e.replaceNode(
            t,
            i,
            L.createTypeReferenceNode("Promise", L.createNodeArray([i])),
          );
      }
      e.insertModifierBefore(t, 134, r);
    }
    var GPe = [
        f
          ._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property
          .code,
        f
          ._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor
          .code,
      ],
      Ape = "fixPropertyOverrideAccessor";
    Sa({
      errorCodes: GPe,
      getCodeActions(e) {
        const t = VPe(
          e.sourceFile,
          e.span.start,
          e.span.length,
          e.errorCode,
          e,
        );
        if (t)
          return [
            oa(
              Ape,
              t,
              f.Generate_get_and_set_accessors,
              Ape,
              f.Generate_get_and_set_accessors_for_all_overriding_properties,
            ),
          ];
      },
      fixIds: [Ape],
      getAllCodeActions: (e) =>
        Ss(e, GPe, (t, r) => {
          const i = VPe(r.file, r.start, r.length, r.code, e);
          if (i) for (const o of i) t.pushRaw(e.sourceFile, o);
        }),
    });
    function VPe(e, t, r, i, o) {
      let s, l;
      if (
        i ===
        f
          ._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property
          .code
      )
        ((s = t), (l = t + r));
      else if (
        i ===
        f
          ._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor
          .code
      ) {
        const u = o.program.getTypeChecker(),
          d = Fi(e, t).parent;
        if (va(d)) return;
        C.assert(
          fb(d),
          "error span of fixPropertyOverrideAccessor should only be on an accessor",
        );
        const _ = d.parent;
        C.assert(ui(_), "erroneous accessors should only be inside classes");
        const h = lh(_);
        if (!h) return;
        const g = us(h.expression),
          E = dc(g) ? g.symbol : u.getSymbolAtLocation(g);
        if (!E) return;
        const A = u.getDeclaredTypeOfSymbol(E),
          R = u.getPropertyOfType(A, Gi(hI(d.name)));
        if (!R || !R.valueDeclaration) return;
        ((s = R.valueDeclaration.pos),
          (l = R.valueDeclaration.end),
          (e = Wn(R.valueDeclaration)));
      } else
        C.fail(
          "fixPropertyOverrideAccessor codefix got unexpected error code " + i,
        );
      return uLe(
        e,
        o.program,
        s,
        l,
        o,
        f.Generate_get_and_set_accessors.message,
      );
    }
    var Ipe = "inferFromUsage",
      jPe = [
        f
          .Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined
          .code,
        f.Variable_0_implicitly_has_an_1_type.code,
        f.Parameter_0_implicitly_has_an_1_type.code,
        f.Rest_parameter_0_implicitly_has_an_any_type.code,
        f
          .Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation
          .code,
        f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type
          .code,
        f
          .Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation
          .code,
        f.Member_0_implicitly_has_an_1_type.code,
        f
          .Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage
          .code,
        f
          .Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage
          .code,
        f
          .Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage
          .code,
        f
          .Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage
          .code,
        f
          .Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage
          .code,
        f
          ._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage
          .code,
        f
          .Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage
          .code,
        f
          .Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage
          .code,
        f
          .this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation
          .code,
      ];
    Sa({
      errorCodes: jPe,
      getCodeActions(e) {
        const {
            sourceFile: t,
            program: r,
            span: { start: i },
            errorCode: o,
            cancellationToken: s,
            host: l,
            preferences: u,
          } = e,
          d = Fi(t, i);
        let _;
        const h = Rr.ChangeTracker.with(e, (E) => {
            _ = UPe(E, t, d, o, r, s, dS, l, u);
          }),
          g = _ && Oo(_);
        return !g || h.length === 0
          ? void 0
          : [oa(Ipe, h, [mtt(o, d), Al(g)], Ipe, f.Infer_all_types_from_usage)];
      },
      fixIds: [Ipe],
      getAllCodeActions(e) {
        const {
            sourceFile: t,
            program: r,
            cancellationToken: i,
            host: o,
            preferences: s,
          } = e,
          l = tC();
        return Ss(e, jPe, (u, d) => {
          UPe(u, t, Fi(d.file, d.start), d.code, r, i, l, o, s);
        });
      },
    });
    function mtt(e, t) {
      switch (e) {
        case f.Parameter_0_implicitly_has_an_1_type.code:
        case f
          .Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage
          .code:
          return gp(df(t))
            ? f.Infer_type_of_0_from_usage
            : f.Infer_parameter_types_from_usage;
        case f.Rest_parameter_0_implicitly_has_an_any_type.code:
        case f
          .Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage
          .code:
          return f.Infer_parameter_types_from_usage;
        case f
          .this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation
          .code:
          return f.Infer_this_type_of_0_from_usage;
        default:
          return f.Infer_type_of_0_from_usage;
      }
    }
    function htt(e) {
      switch (e) {
        case f
          .Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage
          .code:
          return f
            .Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined
            .code;
        case f
          .Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage
          .code:
          return f.Variable_0_implicitly_has_an_1_type.code;
        case f
          .Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage
          .code:
          return f.Parameter_0_implicitly_has_an_1_type.code;
        case f
          .Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage
          .code:
          return f.Rest_parameter_0_implicitly_has_an_any_type.code;
        case f
          .Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage
          .code:
          return f
            .Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation
            .code;
        case f
          ._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage
          .code:
          return f
            ._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type
            .code;
        case f
          .Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage
          .code:
          return f
            .Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation
            .code;
        case f
          .Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage
          .code:
          return f.Member_0_implicitly_has_an_1_type.code;
      }
      return e;
    }
    function UPe(e, t, r, i, o, s, l, u, d) {
      if (!WN(r.kind) && r.kind !== 80 && r.kind !== 26 && r.kind !== 110)
        return;
      const { parent: _ } = r,
        h = aE(t, o, d, u);
      switch (((i = htt(i)), i)) {
        case f.Member_0_implicitly_has_an_1_type.code:
        case f
          .Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined
          .code:
          if ((yi(_) && l(_)) || Po(_) || Su(_))
            return (HPe(e, h, t, _, o, u, s), h.writeFixes(e), _);
          if (qr(_)) {
            const A = YO(_.name, o, s),
              R = OP(A, _, o, u);
            if (R) {
              const N = L.createJSDocTypeTag(
                void 0,
                L.createJSDocTypeExpression(R),
                void 0,
              );
              e.addJSDocTags(t, ma(_.parent.parent, od), [N]);
            }
            return (h.writeFixes(e), _);
          }
          return;
        case f.Variable_0_implicitly_has_an_1_type.code: {
          const A = o.getTypeChecker().getSymbolAtLocation(r);
          return A &&
            A.valueDeclaration &&
            yi(A.valueDeclaration) &&
            l(A.valueDeclaration)
            ? (HPe(e, h, Wn(A.valueDeclaration), A.valueDeclaration, o, u, s),
              h.writeFixes(e),
              A.valueDeclaration)
            : void 0;
        }
      }
      const g = df(r);
      if (g === void 0) return;
      let E;
      switch (i) {
        case f.Parameter_0_implicitly_has_an_1_type.code:
          if (gp(g)) {
            (qPe(e, h, t, g, o, u, s), (E = g));
            break;
          }
        case f.Rest_parameter_0_implicitly_has_an_any_type.code:
          if (l(g)) {
            const A = ma(_, to);
            (_tt(e, h, t, A, g, o, u, s), (E = A));
          }
          break;
        case f
          .Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation
          .code:
        case f
          ._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type
          .code:
          Hf(g) &&
            He(g.name) &&
            (wK(e, h, t, g, YO(g.name, o, s), o, u), (E = g));
          break;
        case f
          .Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation
          .code:
          gp(g) && (qPe(e, h, t, g, o, u, s), (E = g));
          break;
        case f
          .this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation
          .code:
          Rr.isThisTypeAnnotatable(g) &&
            l(g) &&
            (gtt(e, t, g, o, u, s), (E = g));
          break;
        default:
          return C.fail(String(i));
      }
      return (h.writeFixes(e), E);
    }
    function HPe(e, t, r, i, o, s, l) {
      He(i.name) && wK(e, t, r, i, YO(i.name, o, l), o, s);
    }
    function _tt(e, t, r, i, o, s, l, u) {
      if (!He(i.name)) return;
      const d = btt(o, r, s, u);
      if (
        (C.assert(
          o.parameters.length === d.length,
          "Parameter count and inference count should match",
        ),
        Ir(o))
      )
        JPe(e, r, d, s, l);
      else {
        const _ = Xs(o) && !Es(o, 21, r);
        _ && e.insertNodeBefore(r, $a(o.parameters), L.createToken(21));
        for (const { declaration: h, type: g } of d)
          h && !h.type && !h.initializer && wK(e, t, r, h, g, s, l);
        _ && e.insertNodeAfter(r, Ba(o.parameters), L.createToken(22));
      }
    }
    function gtt(e, t, r, i, o, s) {
      const l = KPe(r, t, i, s);
      if (!l || !l.length) return;
      const u = Rpe(i, l, s).thisParameter(),
        d = OP(u, r, i, o);
      d && (Ir(r) ? ytt(e, t, r, d) : e.tryInsertThisTypeAnnotation(t, r, d));
    }
    function ytt(e, t, r, i) {
      e.addJSDocTags(t, r, [
        L.createJSDocThisTag(void 0, L.createJSDocTypeExpression(i)),
      ]);
    }
    function qPe(e, t, r, i, o, s, l) {
      const u = Ac(i.parameters);
      if (u && He(i.name) && He(u.name)) {
        let d = YO(i.name, o, l);
        (d === o.getTypeChecker().getAnyType() && (d = YO(u.name, o, l)),
          Ir(i)
            ? JPe(e, r, [{ declaration: u, type: d }], o, s)
            : wK(e, t, r, u, d, o, s));
      }
    }
    function wK(e, t, r, i, o, s, l) {
      const u = OP(o, i, s, l);
      if (u)
        if (Ir(r) && i.kind !== 172) {
          const d = yi(i) ? ni(i.parent.parent, ac) : i;
          if (!d) return;
          const _ = L.createJSDocTypeExpression(u),
            h = Hf(i)
              ? L.createJSDocReturnTag(void 0, _, void 0)
              : L.createJSDocTypeTag(void 0, _, void 0);
          e.addJSDocTags(r, d, [h]);
        } else
          vtt(u, i, r, e, t, Ga(s.getCompilerOptions())) ||
            e.tryInsertTypeAnnotation(r, i, u);
    }
    function vtt(e, t, r, i, o, s) {
      const l = sE(e, s);
      return l && i.tryInsertTypeAnnotation(r, t, l.typeNode)
        ? (Ye(l.symbols, (u) => o.addImportFromExportedSymbol(u, !0)), !0)
        : !1;
    }
    function JPe(e, t, r, i, o) {
      const s = r.length && r[0].declaration.parent;
      if (!s) return;
      const l = Ui(r, (u) => {
        const d = u.declaration;
        if (d.initializer || $y(d) || !He(d.name)) return;
        const _ = u.type && OP(u.type, d, i, o);
        if (_) {
          const h = L.cloneNode(d.name);
          return (
            Cr(h, 7168),
            {
              name: L.cloneNode(d.name),
              param: d,
              isOptional: !!u.isOptional,
              typeNode: _,
            }
          );
        }
      });
      if (l.length)
        if (Xs(s) || Us(s)) {
          const u = Xs(s) && !Es(s, 21, t);
          (u && e.insertNodeBefore(t, $a(s.parameters), L.createToken(21)),
            Ye(l, ({ typeNode: d, param: _ }) => {
              const h = L.createJSDocTypeTag(
                  void 0,
                  L.createJSDocTypeExpression(d),
                ),
                g = L.createJSDocComment(void 0, [h]);
              e.insertNodeAt(t, _.getStart(t), g, { suffix: " " });
            }),
            u && e.insertNodeAfter(t, Ba(s.parameters), L.createToken(22)));
        } else {
          const u = Vt(l, ({ name: d, typeNode: _, isOptional: h }) =>
            L.createJSDocParameterTag(
              void 0,
              d,
              !!h,
              L.createJSDocTypeExpression(_),
              !1,
              void 0,
            ),
          );
          e.addJSDocTags(t, s, u);
        }
    }
    function xpe(e, t, r) {
      return Ui(
        Ys.getReferenceEntriesForNode(-1, e, t, t.getSourceFiles(), r),
        (i) => (i.kind !== Ys.EntryKind.Span ? ni(i.node, He) : void 0),
      );
    }
    function YO(e, t, r) {
      const i = xpe(e, t, r);
      return Rpe(t, i, r).single();
    }
    function btt(e, t, r, i) {
      const o = KPe(e, t, r, i);
      return (
        (o && Rpe(r, o, i).parameters(e)) ||
        e.parameters.map((s) => ({
          declaration: s,
          type: He(s.name) ? YO(s.name, r, i) : r.getTypeChecker().getAnyType(),
        }))
      );
    }
    function KPe(e, t, r, i) {
      let o;
      switch (e.kind) {
        case 177:
          o = Es(e, 137, t);
          break;
        case 220:
        case 219:
          const s = e.parent;
          o = (yi(s) || Po(s)) && He(s.name) ? s.name : e.name;
          break;
        case 263:
        case 175:
        case 174:
          o = e.name;
          break;
      }
      if (o) return xpe(o, r, i);
    }
    function Rpe(e, t, r) {
      const i = e.getTypeChecker(),
        o = {
          string: () => i.getStringType(),
          number: () => i.getNumberType(),
          Array: (be) => i.createArrayType(be),
          Promise: (be) => i.createPromiseType(be),
        },
        s = [
          i.getStringType(),
          i.getNumberType(),
          i.createArrayType(i.getAnyType()),
          i.createPromiseType(i.getAnyType()),
        ];
      return { single: d, parameters: _, thisParameter: h };
      function l() {
        return {
          isNumber: void 0,
          isString: void 0,
          isNumberOrString: void 0,
          candidateTypes: void 0,
          properties: void 0,
          calls: void 0,
          constructs: void 0,
          numberIndex: void 0,
          stringIndex: void 0,
          candidateThisTypes: void 0,
          inferredTypes: void 0,
        };
      }
      function u(be) {
        const Ne = new Map();
        for (const lt of be)
          lt.properties &&
            lt.properties.forEach((ce, Re) => {
              (Ne.has(Re) || Ne.set(Re, []), Ne.get(Re).push(ce));
            });
        const Be = new Map();
        return (
          Ne.forEach((lt, ce) => {
            Be.set(ce, u(lt));
          }),
          {
            isNumber: be.some((lt) => lt.isNumber),
            isString: be.some((lt) => lt.isString),
            isNumberOrString: be.some((lt) => lt.isNumberOrString),
            candidateTypes: Ki(be, (lt) => lt.candidateTypes),
            properties: Be,
            calls: Ki(be, (lt) => lt.calls),
            constructs: Ki(be, (lt) => lt.constructs),
            numberIndex: Ye(be, (lt) => lt.numberIndex),
            stringIndex: Ye(be, (lt) => lt.stringIndex),
            candidateThisTypes: Ki(be, (lt) => lt.candidateThisTypes),
            inferredTypes: void 0,
          }
        );
      }
      function d() {
        return ye(g(t));
      }
      function _(be) {
        if (t.length === 0 || !be.parameters) return;
        const Ne = l();
        for (const lt of t) (r.throwIfCancellationRequested(), E(lt, Ne));
        const Be = [...(Ne.constructs || []), ...(Ne.calls || [])];
        return be.parameters.map((lt, ce) => {
          const Re = [],
            _e = C_(lt);
          let je = !1;
          for (const We of Be)
            if (We.argumentTypes.length <= ce)
              ((je = Ir(be)), Re.push(i.getUndefinedType()));
            else if (_e)
              for (let at = ce; at < We.argumentTypes.length; at++)
                Re.push(i.getBaseTypeOfLiteralType(We.argumentTypes[at]));
            else Re.push(i.getBaseTypeOfLiteralType(We.argumentTypes[ce]));
          if (He(lt.name)) {
            const We = g(xpe(lt.name, e, r));
            Re.push(...(_e ? Ui(We, i.getElementTypeOfArrayType) : We));
          }
          const Ge = ye(Re);
          return {
            type: _e ? i.createArrayType(Ge) : Ge,
            isOptional: je && !_e,
            declaration: lt,
          };
        });
      }
      function h() {
        const be = l();
        for (const Ne of t) (r.throwIfCancellationRequested(), E(Ne, be));
        return ye(be.candidateThisTypes || ae);
      }
      function g(be) {
        const Ne = l();
        for (const Be of be) (r.throwIfCancellationRequested(), E(Be, Ne));
        return K(Ne);
      }
      function E(be, Ne) {
        for (; fM(be); ) be = be.parent;
        switch (be.parent.kind) {
          case 245:
            R(be, Ne);
            break;
          case 226:
            Ne.isNumber = !0;
            break;
          case 225:
            N(be.parent, Ne);
            break;
          case 227:
            P(be, be.parent, Ne);
            break;
          case 297:
          case 298:
            k(be.parent, Ne);
            break;
          case 214:
          case 215:
            be.parent.expression === be ? W(be.parent, Ne) : A(be, Ne);
            break;
          case 212:
            O(be.parent, Ne);
            break;
          case 213:
            G(be.parent, be, Ne);
            break;
          case 304:
          case 305:
            j(be.parent, Ne);
            break;
          case 173:
            J(be.parent, Ne);
            break;
          case 261: {
            const { name: Be, initializer: lt } = be.parent;
            if (be === Be) {
              lt && Se(Ne, i.getTypeAtLocation(lt));
              break;
            }
          }
          default:
            return A(be, Ne);
        }
      }
      function A(be, Ne) {
        P_(be) && Se(Ne, i.getContextualType(be));
      }
      function R(be, Ne) {
        Se(Ne, Zo(be) ? i.getVoidType() : i.getAnyType());
      }
      function N(be, Ne) {
        switch (be.operator) {
          case 46:
          case 47:
          case 41:
          case 55:
            Ne.isNumber = !0;
            break;
          case 40:
            Ne.isNumberOrString = !0;
            break;
        }
      }
      function P(be, Ne, Be) {
        switch (Ne.operatorToken.kind) {
          case 43:
          case 42:
          case 44:
          case 45:
          case 48:
          case 49:
          case 50:
          case 51:
          case 52:
          case 53:
          case 66:
          case 68:
          case 67:
          case 69:
          case 70:
          case 74:
          case 75:
          case 79:
          case 71:
          case 73:
          case 72:
          case 41:
          case 30:
          case 33:
          case 32:
          case 34:
            const lt = i.getTypeAtLocation(Ne.left === be ? Ne.right : Ne.left);
            lt.flags & 1056 ? Se(Be, lt) : (Be.isNumber = !0);
            break;
          case 65:
          case 40:
            const ce = i.getTypeAtLocation(Ne.left === be ? Ne.right : Ne.left);
            ce.flags & 1056
              ? Se(Be, ce)
              : ce.flags & 296
                ? (Be.isNumber = !0)
                : ce.flags & 402653316
                  ? (Be.isString = !0)
                  : ce.flags & 1 || (Be.isNumberOrString = !0);
            break;
          case 64:
          case 35:
          case 37:
          case 38:
          case 36:
          case 77:
          case 78:
          case 76:
            Se(Be, i.getTypeAtLocation(Ne.left === be ? Ne.right : Ne.left));
            break;
          case 103:
            be === Ne.left && (Be.isString = !0);
            break;
          case 57:
          case 61:
            be === Ne.left &&
              (be.parent.parent.kind === 261 || id(be.parent.parent, !0)) &&
              Se(Be, i.getTypeAtLocation(Ne.right));
            break;
        }
      }
      function k(be, Ne) {
        Se(Ne, i.getTypeAtLocation(be.parent.parent.expression));
      }
      function W(be, Ne) {
        const Be = { argumentTypes: [], return_: l() };
        if (be.arguments)
          for (const lt of be.arguments)
            Be.argumentTypes.push(i.getTypeAtLocation(lt));
        (E(be, Be.return_),
          be.kind === 214
            ? (Ne.calls || (Ne.calls = [])).push(Be)
            : (Ne.constructs || (Ne.constructs = [])).push(Be));
      }
      function O(be, Ne) {
        const Be = Cl(be.name.text);
        Ne.properties || (Ne.properties = new Map());
        const lt = Ne.properties.get(Be) || l();
        (E(be, lt), Ne.properties.set(Be, lt));
      }
      function G(be, Ne, Be) {
        if (Ne === be.argumentExpression) {
          Be.isNumberOrString = !0;
          return;
        } else {
          const lt = i.getTypeAtLocation(be.argumentExpression),
            ce = l();
          (E(be, ce),
            lt.flags & 296 ? (Be.numberIndex = ce) : (Be.stringIndex = ce));
        }
      }
      function j(be, Ne) {
        const Be = yi(be.parent.parent) ? be.parent.parent : be.parent;
        re(Ne, i.getTypeAtLocation(Be));
      }
      function J(be, Ne) {
        re(Ne, i.getTypeAtLocation(be.parent));
      }
      function Z(be, Ne) {
        const Be = [];
        for (const lt of be)
          for (const { high: ce, low: Re } of Ne)
            ce(lt) &&
              (C.assert(!Re(lt), "Priority can't have both low and high"),
              Be.push(Re));
        return be.filter((lt) => Be.every((ce) => !ce(lt)));
      }
      function q(be) {
        return ye(K(be));
      }
      function ye(be) {
        if (!be.length) return i.getAnyType();
        const Ne = i.getUnionType([i.getStringType(), i.getNumberType()]);
        let lt = Z(be, [
          {
            high: (Re) => Re === i.getStringType() || Re === i.getNumberType(),
            low: (Re) => Re === Ne,
          },
          {
            high: (Re) => !(Re.flags & 16385),
            low: (Re) => !!(Re.flags & 16385),
          },
          {
            high: (Re) => !(Re.flags & 114689) && !(Hr(Re) & 16),
            low: (Re) => !!(Hr(Re) & 16),
          },
        ]);
        const ce = lt.filter((Re) => Hr(Re) & 16);
        return (
          ce.length &&
            ((lt = lt.filter((Re) => !(Hr(Re) & 16))), lt.push(ie(ce))),
          i.getWidenedType(
            i.getUnionType(lt.map(i.getBaseTypeOfLiteralType), 2),
          )
        );
      }
      function ie(be) {
        if (be.length === 1) return be[0];
        const Ne = [],
          Be = [],
          lt = [],
          ce = [];
        let Re = !1,
          _e = !1;
        const je = cm();
        for (const at of be) {
          for (const gn of i.getPropertiesOfType(at))
            je.add(
              gn.escapedName,
              gn.valueDeclaration
                ? i.getTypeOfSymbolAtLocation(gn, gn.valueDeclaration)
                : i.getAnyType(),
            );
          (Ne.push(...i.getSignaturesOfType(at, 0)),
            Be.push(...i.getSignaturesOfType(at, 1)));
          const Wt = i.getIndexInfoOfType(at, 0);
          Wt && (lt.push(Wt.type), (Re = Re || Wt.isReadonly));
          const cn = i.getIndexInfoOfType(at, 1);
          cn && (ce.push(cn.type), (_e = _e || cn.isReadonly));
        }
        const Ge = GQ(je, (at, Wt) => {
            const cn = Wt.length < be.length ? 16777216 : 0,
              gn = i.createSymbol(4 | cn, at);
            return ((gn.links.type = i.getUnionType(Wt)), [at, gn]);
          }),
          We = [];
        return (
          lt.length &&
            We.push(
              i.createIndexInfo(i.getStringType(), i.getUnionType(lt), Re),
            ),
          ce.length &&
            We.push(
              i.createIndexInfo(i.getNumberType(), i.getUnionType(ce), _e),
            ),
          i.createAnonymousType(be[0].symbol, Ge, Ne, Be, We)
        );
      }
      function K(be) {
        var Ne, Be, lt;
        const ce = [];
        (be.isNumber && ce.push(i.getNumberType()),
          be.isString && ce.push(i.getStringType()),
          be.isNumberOrString &&
            ce.push(i.getUnionType([i.getStringType(), i.getNumberType()])),
          be.numberIndex && ce.push(i.createArrayType(q(be.numberIndex))),
          (((Ne = be.properties) != null && Ne.size) ||
            ((Be = be.constructs) != null && Be.length) ||
            be.stringIndex) &&
            ce.push(pe(be)));
        const Re = (be.candidateTypes || []).map((je) =>
            i.getBaseTypeOfLiteralType(je),
          ),
          _e = (lt = be.calls) != null && lt.length ? pe(be) : void 0;
        return (
          _e && Re
            ? ce.push(i.getUnionType([_e, ...Re], 2))
            : (_e && ce.push(_e), et(Re) && ce.push(...Re)),
          ce.push(...de(be)),
          ce
        );
      }
      function pe(be) {
        const Ne = new Map();
        be.properties &&
          be.properties.forEach((Re, _e) => {
            const je = i.createSymbol(4, _e);
            ((je.links.type = q(Re)), Ne.set(_e, je));
          });
        const Be = be.calls ? [Je(be.calls)] : [],
          lt = be.constructs ? [Je(be.constructs)] : [],
          ce = be.stringIndex
            ? [i.createIndexInfo(i.getStringType(), q(be.stringIndex), !1)]
            : [];
        return i.createAnonymousType(void 0, Ne, Be, lt, ce);
      }
      function de(be) {
        if (!be.properties || !be.properties.size) return [];
        const Ne = s.filter((Be) => fe(Be, be));
        return 0 < Ne.length && Ne.length < 3 ? Ne.map((Be) => ve(Be, be)) : [];
      }
      function fe(be, Ne) {
        return Ne.properties
          ? !Hc(Ne.properties, (Be, lt) => {
              const ce = i.getTypeOfPropertyOfType(be, lt);
              return ce
                ? Be.calls
                  ? !i.getSignaturesOfType(ce, 0).length ||
                    !i.isTypeAssignableTo(ce, Ce(Be.calls))
                  : !i.isTypeAssignableTo(ce, q(Be))
                : !0;
            })
          : !1;
      }
      function ve(be, Ne) {
        if (!(Hr(be) & 4) || !Ne.properties) return be;
        const Be = be.target,
          lt = og(Be.typeParameters);
        if (!lt) return be;
        const ce = [];
        return (
          Ne.properties.forEach((Re, _e) => {
            const je = i.getTypeOfPropertyOfType(Be, _e);
            (C.assert(
              !!je,
              "generic should have all the properties of its reference.",
            ),
              ce.push(...xe(je, q(Re), lt)));
          }),
          o[be.symbol.escapedName](ye(ce))
        );
      }
      function xe(be, Ne, Be) {
        if (be === Be) return [Ne];
        if (be.flags & 3145728) return Ki(be.types, (Re) => xe(Re, Ne, Be));
        if (Hr(be) & 4 && Hr(Ne) & 4) {
          const Re = i.getTypeArguments(be),
            _e = i.getTypeArguments(Ne),
            je = [];
          if (Re && _e)
            for (let Ge = 0; Ge < Re.length; Ge++)
              _e[Ge] && je.push(...xe(Re[Ge], _e[Ge], Be));
          return je;
        }
        const lt = i.getSignaturesOfType(be, 0),
          ce = i.getSignaturesOfType(Ne, 0);
        return lt.length === 1 && ce.length === 1 ? X(lt[0], ce[0], Be) : [];
      }
      function X(be, Ne, Be) {
        var lt;
        const ce = [];
        for (let je = 0; je < be.parameters.length; je++) {
          const Ge = be.parameters[je],
            We = Ne.parameters[je],
            at = be.declaration && C_(be.declaration.parameters[je]);
          if (!We) break;
          let Wt = Ge.valueDeclaration
            ? i.getTypeOfSymbolAtLocation(Ge, Ge.valueDeclaration)
            : i.getAnyType();
          const cn = at && i.getElementTypeOfArrayType(Wt);
          cn && (Wt = cn);
          const gn =
            ((lt = ni(We, pg)) == null ? void 0 : lt.links.type) ||
            (We.valueDeclaration
              ? i.getTypeOfSymbolAtLocation(We, We.valueDeclaration)
              : i.getAnyType());
          ce.push(...xe(Wt, gn, Be));
        }
        const Re = i.getReturnTypeOfSignature(be),
          _e = i.getReturnTypeOfSignature(Ne);
        return (ce.push(...xe(Re, _e, Be)), ce);
      }
      function Ce(be) {
        return i.createAnonymousType(void 0, da(), [Je(be)], ae, ae);
      }
      function Je(be) {
        const Ne = [],
          Be = Math.max(...be.map((ce) => ce.argumentTypes.length));
        for (let ce = 0; ce < Be; ce++) {
          const Re = i.createSymbol(1, Cl(`arg${ce}`));
          ((Re.links.type = ye(
            be.map((_e) => _e.argumentTypes[ce] || i.getUndefinedType()),
          )),
            be.some((_e) => _e.argumentTypes[ce] === void 0) &&
              (Re.flags |= 16777216),
            Ne.push(Re));
        }
        const lt = q(u(be.map((ce) => ce.return_)));
        return i.createSignature(void 0, void 0, void 0, Ne, lt, void 0, Be, 0);
      }
      function Se(be, Ne) {
        Ne &&
          !(Ne.flags & 1) &&
          !(Ne.flags & 131072) &&
          (be.candidateTypes || (be.candidateTypes = [])).push(Ne);
      }
      function re(be, Ne) {
        Ne &&
          !(Ne.flags & 1) &&
          !(Ne.flags & 131072) &&
          (be.candidateThisTypes || (be.candidateThisTypes = [])).push(Ne);
      }
    }
    var Dpe = "fixReturnTypeInAsyncFunction",
      XPe = [
        f
          .The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0
          .code,
      ];
    Sa({
      errorCodes: XPe,
      fixIds: [Dpe],
      getCodeActions: function (t) {
        const { sourceFile: r, program: i, span: o } = t,
          s = i.getTypeChecker(),
          l = YPe(r, i.getTypeChecker(), o.start);
        if (!l) return;
        const {
            returnTypeNode: u,
            returnType: d,
            promisedTypeNode: _,
            promisedType: h,
          } = l,
          g = Rr.ChangeTracker.with(t, (E) => $Pe(E, r, u, _));
        return [
          oa(
            Dpe,
            g,
            [f.Replace_0_with_Promise_1, s.typeToString(d), s.typeToString(h)],
            Dpe,
            f.Fix_all_incorrect_return_type_of_an_async_functions,
          ),
        ];
      },
      getAllCodeActions: (e) =>
        Ss(e, XPe, (t, r) => {
          const i = YPe(r.file, e.program.getTypeChecker(), r.start);
          i && $Pe(t, r.file, i.returnTypeNode, i.promisedTypeNode);
        }),
    });
    function YPe(e, t, r) {
      if (Ir(e)) return;
      const i = Fi(e, r),
        o = Dn(i, Ms),
        s = o?.type;
      if (!s) return;
      const l = t.getTypeFromTypeNode(s),
        u = t.getAwaitedType(l) || t.getVoidType(),
        d = t.typeToTypeNode(u, s, void 0);
      if (d)
        return {
          returnTypeNode: s,
          returnType: l,
          promisedTypeNode: d,
          promisedType: u,
        };
    }
    function $Pe(e, t, r, i) {
      e.replaceNode(t, r, L.createTypeReferenceNode("Promise", [i]));
    }
    var QPe = "disableJsDiagnostics",
      ZPe = "disableJsDiagnostics",
      eLe = Ui(Object.keys(f), (e) => {
        const t = f[e];
        return t.category === 1 ? t.code : void 0;
      });
    Sa({
      errorCodes: eLe,
      getCodeActions: function (t) {
        const {
          sourceFile: r,
          program: i,
          span: o,
          host: s,
          formatContext: l,
        } = t;
        if (!Ir(r) || !IM(r, i.getCompilerOptions())) return;
        const u = r.checkJsDirective ? "" : _y(s, l.options),
          d = [
            yh(
              QPe,
              [
                jDe(r.fileName, [
                  SO(
                    r.checkJsDirective
                      ? ic(r.checkJsDirective.pos, r.checkJsDirective.end)
                      : Id(0, 0),
                    `// @ts-nocheck${u}`,
                  ),
                ]),
              ],
              f.Disable_checking_for_this_file,
            ),
          ];
        return (
          Rr.isValidLocationToAddComment(r, o.start) &&
            d.unshift(
              oa(
                QPe,
                Rr.ChangeTracker.with(t, (_) => tLe(_, r, o.start)),
                f.Ignore_this_error_message,
                ZPe,
                f.Add_ts_ignore_to_all_error_messages,
              ),
            ),
          d
        );
      },
      fixIds: [ZPe],
      getAllCodeActions: (e) => {
        const t = new Set();
        return Ss(e, eLe, (r, i) => {
          Rr.isValidLocationToAddComment(i.file, i.start) &&
            tLe(r, i.file, i.start, t);
        });
      },
    });
    function tLe(e, t, r, i) {
      const { line: o } = ca(t, r);
      (!i || rh(i, o)) && e.insertCommentBeforeLine(t, o, r, " @ts-ignore");
    }
    function Cpe(e, t, r, i, o, s, l) {
      const u = e.symbol.members;
      for (const d of t)
        u.has(d.escapedName) || rLe(d, e, r, i, o, s, l, void 0);
    }
    function pC(e) {
      return {
        trackSymbol: () => !1,
        moduleResolverHost: Kq(e.program, e.host),
      };
    }
    var nLe = ((e) => (
      (e[(e.Method = 1)] = "Method"),
      (e[(e.Property = 2)] = "Property"),
      (e[(e.All = 3)] = "All"),
      e
    ))(nLe || {});
    function rLe(e, t, r, i, o, s, l, u, d = 3, _ = !1) {
      const h = e.getDeclarations(),
        g = Ac(h),
        E = i.program.getTypeChecker(),
        A = Ga(i.program.getCompilerOptions()),
        R = g?.kind ?? 172,
        N = fe(e, g),
        P = g ? Gd(g) : 0;
      let k = P & 256;
      ((k |= P & 1 ? 1 : P & 4 ? 4 : 0), g && Yu(g) && (k |= 512));
      const W = ye(),
        O = E.getWidenedType(E.getTypeOfSymbolAtLocation(e, t)),
        G = !!(e.flags & 16777216),
        j = !!(t.flags & 33554432) || _,
        J = Gp(r, o),
        Z = 1 | (J === 0 ? 268435456 : 0);
      switch (R) {
        case 172:
        case 173:
          let ve = E.typeToTypeNode(O, t, Z, 8, pC(i));
          if (s) {
            const X = sE(ve, A);
            X && ((ve = X.typeNode), G1(s, X.symbols));
          }
          l(
            L.createPropertyDeclaration(
              W,
              g ? K(N) : e.getName(),
              G && d & 2 ? L.createToken(58) : void 0,
              ve,
              void 0,
            ),
          );
          break;
        case 178:
        case 179: {
          C.assertIsDefined(h);
          let X = E.typeToTypeNode(O, t, Z, void 0, pC(i));
          const Ce = MS(h, g),
            Je = Ce.secondAccessor
              ? [Ce.firstAccessor, Ce.secondAccessor]
              : [Ce.firstAccessor];
          if (s) {
            const Se = sE(X, A);
            Se && ((X = Se.typeNode), G1(s, Se.symbols));
          }
          for (const Se of Je)
            if (Hf(Se))
              l(
                L.createGetAccessorDeclaration(W, K(N), ae, de(X), pe(u, J, j)),
              );
            else {
              C.assertNode(
                Se,
                gp,
                "The counterpart to a getter should be a setter",
              );
              const re = uM(Se),
                be = re && He(re.name) ? Kr(re.name) : void 0;
              l(
                L.createSetAccessorDeclaration(
                  W,
                  K(N),
                  Ppe(1, [be], [de(X)], 1, !1),
                  pe(u, J, j),
                ),
              );
            }
          break;
        }
        case 174:
        case 175:
          C.assertIsDefined(h);
          const xe = O.isUnion()
            ? Ki(O.types, (X) => X.getCallSignatures())
            : O.getCallSignatures();
          if (!yt(xe)) break;
          if (h.length === 1) {
            C.assert(xe.length === 1, "One declaration implies one signature");
            const X = xe[0];
            q(J, X, W, K(N), pe(u, J, j));
            break;
          }
          for (const X of xe)
            (X.declaration && X.declaration.flags & 33554432) ||
              q(J, X, W, K(N));
          if (!j)
            if (h.length > xe.length) {
              const X = E.getSignatureFromDeclaration(h[h.length - 1]);
              q(J, X, W, K(N), pe(u, J));
            } else
              (C.assert(
                h.length === xe.length,
                "Declarations and signatures should match count",
              ),
                l(Itt(E, i, t, xe, K(N), G && !!(d & 1), W, J, u)));
          break;
      }
      function q(ve, xe, X, Ce, Je) {
        const Se = OK(175, i, ve, xe, Je, Ce, X, G && !!(d & 1), t, s);
        Se && l(Se);
      }
      function ye() {
        let ve;
        return (
          k && (ve = XA(ve, L.createModifiersFromModifierFlags(k))),
          ie() && (ve = Bn(ve, L.createToken(164))),
          ve && L.createNodeArray(ve)
        );
      }
      function ie() {
        return !!(
          i.program.getCompilerOptions().noImplicitOverride &&
          g &&
          PS(g)
        );
      }
      function K(ve) {
        return He(ve) && ve.escapedText === "constructor"
          ? L.createComputedPropertyName(L.createStringLiteral(Kr(ve), J === 0))
          : _s(ve, !1);
      }
      function pe(ve, xe, X) {
        return X ? void 0 : _s(ve, !1) || Lpe(xe);
      }
      function de(ve) {
        return _s(ve, !1);
      }
      function fe(ve, xe) {
        if (Wl(ve) & 262144) {
          const X = ve.links.nameType;
          if (X && jf(X)) return L.createIdentifier(Gi(Uf(X)));
        }
        return _s(Oo(xe), !1);
      }
    }
    function OK(e, t, r, i, o, s, l, u, d, _) {
      const h = t.program,
        g = h.getTypeChecker(),
        E = Ga(h.getCompilerOptions()),
        A = Ir(d),
        R = 524545 | (r === 0 ? 268435456 : 0),
        N = g.signatureToSignatureDeclaration(i, e, d, R, 8, pC(t));
      if (!N) return;
      let P = A ? void 0 : N.typeParameters,
        k = N.parameters,
        W = A ? void 0 : _s(N.type);
      if (_) {
        if (P) {
          const J = Zi(P, (Z) => {
            let q = Z.constraint,
              ye = Z.default;
            if (q) {
              const ie = sE(q, E);
              ie && ((q = ie.typeNode), G1(_, ie.symbols));
            }
            if (ye) {
              const ie = sE(ye, E);
              ie && ((ye = ie.typeNode), G1(_, ie.symbols));
            }
            return L.updateTypeParameterDeclaration(
              Z,
              Z.modifiers,
              Z.name,
              q,
              ye,
            );
          });
          P !== J && (P = vt(L.createNodeArray(J, P.hasTrailingComma), P));
        }
        const j = Zi(k, (J) => {
          let Z = A ? void 0 : J.type;
          if (Z) {
            const q = sE(Z, E);
            q && ((Z = q.typeNode), G1(_, q.symbols));
          }
          return L.updateParameterDeclaration(
            J,
            J.modifiers,
            J.dotDotDotToken,
            J.name,
            A ? void 0 : J.questionToken,
            Z,
            J.initializer,
          );
        });
        if (
          (k !== j && (k = vt(L.createNodeArray(j, k.hasTrailingComma), k)), W)
        ) {
          const J = sE(W, E);
          J && ((W = J.typeNode), G1(_, J.symbols));
        }
      }
      const O = u ? L.createToken(58) : void 0,
        G = N.asteriskToken;
      if (Us(N))
        return L.updateFunctionExpression(
          N,
          l,
          N.asteriskToken,
          ni(s, He),
          P,
          k,
          W,
          o ?? N.body,
        );
      if (Xs(N))
        return L.updateArrowFunction(
          N,
          l,
          P,
          k,
          W,
          N.equalsGreaterThanToken,
          o ?? N.body,
        );
      if (Nl(N))
        return L.updateMethodDeclaration(
          N,
          l,
          G,
          s ?? L.createIdentifier(""),
          O,
          P,
          k,
          W,
          o,
        );
      if (Zl(N))
        return L.updateFunctionDeclaration(
          N,
          l,
          N.asteriskToken,
          ni(s, He),
          P,
          k,
          W,
          o ?? N.body,
        );
    }
    function Npe(e, t, r, i, o, s, l) {
      const u = Gp(t.sourceFile, t.preferences),
        d = Ga(t.program.getCompilerOptions()),
        _ = pC(t),
        h = t.program.getTypeChecker(),
        g = Ir(l),
        { typeArguments: E, arguments: A, parent: R } = i,
        N = g ? void 0 : h.getContextualType(i),
        P = Vt(A, (ye) =>
          He(ye) ? ye.text : qr(ye) && He(ye.name) ? ye.name.text : void 0,
        ),
        k = g ? [] : Vt(A, (ye) => h.getTypeAtLocation(ye)),
        { argumentTypeNodes: W, argumentTypeParameters: O } = Ett(
          h,
          r,
          k,
          l,
          d,
          1,
          8,
          _,
        ),
        G = s
          ? L.createNodeArray(L.createModifiersFromModifierFlags(s))
          : void 0,
        j = _w(R) ? L.createToken(42) : void 0,
        J = g ? void 0 : Ttt(h, O, E),
        Z = Ppe(A.length, P, W, void 0, g),
        q =
          g || N === void 0
            ? void 0
            : h.typeToTypeNode(N, l, void 0, void 0, _);
      switch (e) {
        case 175:
          return L.createMethodDeclaration(G, j, o, void 0, J, Z, q, Lpe(u));
        case 174:
          return L.createMethodSignature(
            G,
            o,
            void 0,
            J,
            Z,
            q === void 0 ? L.createKeywordTypeNode(159) : q,
          );
        case 263:
          return (
            C.assert(typeof o == "string" || He(o), "Unexpected name"),
            L.createFunctionDeclaration(
              G,
              j,
              o,
              J,
              Z,
              q,
              mz(f.Function_not_implemented.message, u),
            )
          );
        default:
          C.fail("Unexpected kind");
      }
    }
    function Ttt(e, t, r) {
      const i = new Set(t.map((s) => s[0])),
        o = new Map(t);
      if (r) {
        const s = r.filter(
            (u) =>
              !t.some((d) => {
                var _;
                return (
                  e.getTypeAtLocation(u) ===
                  ((_ = d[1]) == null ? void 0 : _.argumentType)
                );
              }),
          ),
          l = i.size + s.length;
        for (let u = 0; i.size < l; u += 1) i.add(iLe(u));
      }
      return Co(i.values(), (s) => {
        var l;
        return L.createTypeParameterDeclaration(
          void 0,
          s,
          (l = o.get(s)) == null ? void 0 : l.constraint,
        );
      });
    }
    function iLe(e) {
      return 84 + e <= 90 ? String.fromCharCode(84 + e) : `T${e}`;
    }
    function WK(e, t, r, i, o, s, l, u) {
      const d = e.typeToTypeNode(r, i, s, l, u);
      if (d) return Mpe(d, t, o);
    }
    function Mpe(e, t, r) {
      const i = sE(e, r);
      return (i && (G1(t, i.symbols), (e = i.typeNode)), _s(e));
    }
    function Stt(e, t) {
      var r;
      C.assert(t.typeArguments);
      const i = t.typeArguments,
        o = t.target;
      for (let s = 0; s < i.length; s++) {
        if (
          ((r = o.localTypeParameters) == null ? void 0 : r[s].constraint) ===
          void 0
        )
          continue;
        const l = i.slice(0, s);
        if (
          e
            .fillMissingTypeArguments(l, o.typeParameters, s, !1)
            .every((d, _) => d === i[_])
        )
          return s;
      }
      return i.length;
    }
    function oLe(e, t, r, i, o, s) {
      let l = e.typeToTypeNode(t, r, i, o, s);
      if (l) {
        if (Wp(l)) {
          const u = t;
          if (u.typeArguments && l.typeArguments) {
            const d = Stt(e, u);
            if (d < l.typeArguments.length) {
              const _ = L.createNodeArray(l.typeArguments.slice(0, d));
              l = L.updateTypeReferenceNode(l, l.typeName, _);
            }
          }
        }
        return l;
      }
    }
    function aLe(e, t, r, i, o, s, l, u) {
      let d = e.typePredicateToTypePredicateNode(r, i, s, l, u);
      if (d?.type && e_(d.type)) {
        const _ = sE(d.type, o);
        _ &&
          (G1(t, _.symbols),
          (d = L.updateTypePredicateNode(
            d,
            d.assertsModifier,
            d.parameterName,
            _.typeNode,
          )));
      }
      return _s(d);
    }
    function sLe(e) {
      return e.isUnionOrIntersection() ? e.types.some(sLe) : e.flags & 262144;
    }
    function Ett(e, t, r, i, o, s, l, u) {
      const d = [],
        _ = new Map();
      for (let h = 0; h < r.length; h += 1) {
        const g = r[h];
        if (g.isUnionOrIntersection() && g.types.some(sLe)) {
          const P = iLe(h);
          (d.push(L.createTypeReferenceNode(P)), _.set(P, void 0));
          continue;
        }
        const E = e.getBaseTypeOfLiteralType(g),
          A = WK(e, t, E, i, o, s, l, u);
        if (!A) continue;
        d.push(A);
        const R = lLe(g),
          N =
            g.isTypeParameter() && g.constraint && !Att(g.constraint)
              ? WK(e, t, g.constraint, i, o, s, l, u)
              : void 0;
        R && _.set(R, { argumentType: g, constraint: N });
      }
      return { argumentTypeNodes: d, argumentTypeParameters: Co(_.entries()) };
    }
    function Att(e) {
      return e.flags & 524288 && e.objectFlags === 16;
    }
    function lLe(e) {
      var t;
      if (e.flags & 3145728)
        for (const r of e.types) {
          const i = lLe(r);
          if (i) return i;
        }
      return e.flags & 262144
        ? (t = e.getSymbol()) == null
          ? void 0
          : t.getName()
        : void 0;
    }
    function Ppe(e, t, r, i, o) {
      const s = [],
        l = new Map();
      for (let u = 0; u < e; u++) {
        const d = t?.[u] || `arg${u}`,
          _ = l.get(d);
        l.set(d, (_ || 0) + 1);
        const h = L.createParameterDeclaration(
          void 0,
          void 0,
          d + (_ || ""),
          i !== void 0 && u >= i ? L.createToken(58) : void 0,
          o ? void 0 : r?.[u] || L.createKeywordTypeNode(159),
          void 0,
        );
        s.push(h);
      }
      return s;
    }
    function Itt(e, t, r, i, o, s, l, u, d) {
      let _ = i[0],
        h = i[0].minArgumentCount,
        g = !1;
      for (const N of i)
        ((h = Math.min(N.minArgumentCount, h)),
          su(N) && (g = !0),
          N.parameters.length >= _.parameters.length &&
            (!su(N) || su(_)) &&
            (_ = N));
      const E = _.parameters.length - (su(_) ? 1 : 0),
        A = _.parameters.map((N) => N.name),
        R = Ppe(E, A, void 0, h, !1);
      if (g) {
        const N = L.createParameterDeclaration(
          void 0,
          L.createToken(26),
          A[E] || "rest",
          E >= h ? L.createToken(58) : void 0,
          L.createArrayTypeNode(L.createKeywordTypeNode(159)),
          void 0,
        );
        R.push(N);
      }
      return Rtt(l, o, s, void 0, R, xtt(i, e, t, r), u, d);
    }
    function xtt(e, t, r, i) {
      if (et(e)) {
        const o = t.getUnionType(Vt(e, t.getReturnTypeOfSignature));
        return t.typeToTypeNode(o, i, 1, 8, pC(r));
      }
    }
    function Rtt(e, t, r, i, o, s, l, u) {
      return L.createMethodDeclaration(
        e,
        void 0,
        t,
        r ? L.createToken(58) : void 0,
        i,
        o,
        s,
        u || Lpe(l),
      );
    }
    function Lpe(e) {
      return mz(f.Method_not_implemented.message, e);
    }
    function mz(e, t) {
      return L.createBlock(
        [
          L.createThrowStatement(
            L.createNewExpression(L.createIdentifier("Error"), void 0, [
              L.createStringLiteral(e, t === 0),
            ]),
          ),
        ],
        !0,
      );
    }
    function kpe(e, t, r) {
      const i = JN(t);
      if (!i) return;
      const o = cLe(i, "compilerOptions");
      if (o === void 0) {
        e.insertNodeAtObjectStart(
          t,
          i,
          Ope(
            "compilerOptions",
            L.createObjectLiteralExpression(
              r.map(([l, u]) => Ope(l, u)),
              !0,
            ),
          ),
        );
        return;
      }
      const s = o.initializer;
      if (Wa(s))
        for (const [l, u] of r) {
          const d = cLe(s, l);
          d === void 0
            ? e.insertNodeAtObjectStart(t, s, Ope(l, u))
            : e.replaceNode(t, d.initializer, u);
        }
    }
    function wpe(e, t, r, i) {
      kpe(e, t, [[r, i]]);
    }
    function Ope(e, t) {
      return L.createPropertyAssignment(L.createStringLiteral(e), t);
    }
    function cLe(e, t) {
      return hn(
        e.properties,
        (r) => Cc(r) && !!r.name && ka(r.name) && r.name.text === t,
      );
    }
    function sE(e, t) {
      let r;
      const i = st(e, o, Ri);
      if (r && i) return { typeNode: i, symbols: r };
      function o(s) {
        if (ry(s) && s.qualifier) {
          const l = Lu(s.qualifier);
          if (!l.symbol) return kn(s, o, void 0);
          const u = O7(l.symbol, t),
            d =
              u !== l.text
                ? dLe(s.qualifier, L.createIdentifier(u))
                : s.qualifier;
          r = Bn(r, l.symbol);
          const _ = Xn(s.typeArguments, o, Ri);
          return L.createTypeReferenceNode(d, _);
        }
        return kn(s, o, void 0);
      }
    }
    function dLe(e, t) {
      return e.kind === 80 ? t : L.createQualifiedName(dLe(e.left, t), e.right);
    }
    function G1(e, t) {
      t.forEach((r) => e.addImportFromExportedSymbol(r, !0));
    }
    function Wpe(e, t) {
      const r = Dl(t);
      let i = Fi(e, t.start);
      for (; i.end < r; ) i = i.parent;
      return i;
    }
    function uLe(e, t, r, i, o, s) {
      const l = mLe(e, t, r, i);
      if (!l || gx.isRefactorErrorInfo(l)) return;
      const u = Rr.ChangeTracker.fromContext(o),
        {
          isStatic: d,
          isReadonly: _,
          fieldName: h,
          accessorName: g,
          originalName: E,
          type: A,
          container: R,
          declaration: N,
        } = l;
      (Op(h), Op(g), Op(N), Op(R));
      let P, k;
      if (ui(R)) {
        const O = Gd(N);
        if (Pu(e)) {
          const G = L.createModifiersFromModifierFlags(O);
          ((P = G), (k = G));
        } else
          ((P = L.createModifiersFromModifierFlags(Ntt(O))),
            (k = L.createModifiersFromModifierFlags(Mtt(O))));
        qS(N) && (k = so(lb(N), k));
      }
      Ott(u, e, N, A, h, k);
      const W = Ptt(h, g, A, P, d, R);
      if ((Op(W), hLe(u, e, W, N, R), _)) {
        const O = yg(R);
        O && Wtt(u, e, O, h.text, E);
      } else {
        const O = Ltt(h, g, A, P, d, R);
        (Op(O), hLe(u, e, O, N, R));
      }
      return u.getChanges();
    }
    function Dtt(e) {
      return He(e) || ka(e);
    }
    function Ctt(e) {
      return Np(e, e.parent) || Po(e) || Cc(e);
    }
    function pLe(e, t) {
      return He(t) ? L.createIdentifier(e) : L.createStringLiteral(e);
    }
    function fLe(e, t, r) {
      const i = t ? r.name : L.createThis();
      return He(e)
        ? L.createPropertyAccessExpression(i, e)
        : L.createElementAccessExpression(i, L.createStringLiteralFromNode(e));
    }
    function Ntt(e) {
      return ((e &= -9), (e &= -3), e & 4 || (e |= 1), e);
    }
    function Mtt(e) {
      return ((e &= -2), (e &= -5), (e |= 2), e);
    }
    function mLe(e, t, r, i, o = !0) {
      const s = Fi(e, r),
        l = r === i && o,
        u = Dn(s.parent, Ctt),
        d = 271;
      if (!u || !(d7(u.name, e, r, i) || l))
        return {
          error: Ho(f.Could_not_find_property_for_which_to_generate_accessor),
        };
      if (!Dtt(u.name)) return { error: Ho(f.Name_is_not_valid) };
      if (((Gd(u) & 98303) | d) !== d)
        return { error: Ho(f.Can_only_convert_property_with_modifier) };
      const _ = u.name.text,
        h = vJ(_),
        g = pLe(h ? _ : B1(`_${_}`, e), u.name),
        E = pLe(h ? B1(_.substring(1), e) : _, u.name);
      return {
        isStatic: wc(u),
        isReadonly: u1(u),
        type: Ftt(u, t),
        container: u.kind === 170 ? u.parent.parent : u.parent,
        originalName: u.name.text,
        declaration: u,
        fieldName: g,
        accessorName: E,
        renameAccessor: h,
      };
    }
    function Ptt(e, t, r, i, o, s) {
      return L.createGetAccessorDeclaration(
        i,
        t,
        [],
        r,
        L.createBlock([L.createReturnStatement(fLe(e, o, s))], !0),
      );
    }
    function Ltt(e, t, r, i, o, s) {
      return L.createSetAccessorDeclaration(
        i,
        t,
        [
          L.createParameterDeclaration(
            void 0,
            void 0,
            L.createIdentifier("value"),
            void 0,
            r,
          ),
        ],
        L.createBlock(
          [
            L.createExpressionStatement(
              L.createAssignment(fLe(e, o, s), L.createIdentifier("value")),
            ),
          ],
          !0,
        ),
      );
    }
    function ktt(e, t, r, i, o, s) {
      const l = L.updatePropertyDeclaration(
        r,
        s,
        o,
        r.questionToken || r.exclamationToken,
        i,
        r.initializer,
      );
      e.replaceNode(t, r, l);
    }
    function wtt(e, t, r, i) {
      let o = L.updatePropertyAssignment(r, i, r.initializer);
      ((o.modifiers || o.questionToken || o.exclamationToken) &&
        (o === r && (o = L.cloneNode(o)),
        (o.modifiers = void 0),
        (o.questionToken = void 0),
        (o.exclamationToken = void 0)),
        e.replacePropertyAssignment(t, r, o));
    }
    function Ott(e, t, r, i, o, s) {
      Po(r)
        ? ktt(e, t, r, i, o, s)
        : Cc(r)
          ? wtt(e, t, r, o)
          : e.replaceNode(
              t,
              r,
              L.updateParameterDeclaration(
                r,
                s,
                r.dotDotDotToken,
                ma(o, He),
                r.questionToken,
                r.type,
                r.initializer,
              ),
            );
    }
    function hLe(e, t, r, i, o) {
      Np(i, i.parent)
        ? e.insertMemberAtStart(t, o, r)
        : Cc(i)
          ? e.insertNodeAfterComma(t, i, r)
          : e.insertNodeAfter(t, i, r);
    }
    function Wtt(e, t, r, i, o) {
      r.body &&
        r.body.forEachChild(function s(l) {
          (Ws(l) &&
            l.expression.kind === 110 &&
            ka(l.argumentExpression) &&
            l.argumentExpression.text === o &&
            RI(l) &&
            e.replaceNode(t, l.argumentExpression, L.createStringLiteral(i)),
            qr(l) &&
              l.expression.kind === 110 &&
              l.name.text === o &&
              RI(l) &&
              e.replaceNode(t, l.name, L.createIdentifier(i)),
            !Yo(l) && !ui(l) && l.forEachChild(s));
        });
    }
    function Ftt(e, t) {
      const r = Lne(e);
      if (Po(e) && r && e.questionToken) {
        const i = t.getTypeChecker(),
          o = i.getTypeFromTypeNode(r);
        if (!i.isTypeAssignableTo(i.getUndefinedType(), o)) {
          const s = dv(r) ? r.types : [r];
          return L.createUnionTypeNode([...s, L.createKeywordTypeNode(157)]);
        }
      }
      return r;
    }
    var _Le = "invalidImportSyntax";
    function ztt(e, t) {
      const r = Wn(t),
        i = ZR(t),
        o = e.program.getCompilerOptions(),
        s = [];
      return (
        s.push(
          gLe(
            e,
            r,
            t,
            Vb(i.name, void 0, t.moduleSpecifier, Gp(r, e.preferences)),
          ),
        ),
        bu(o) === 1 &&
          s.push(
            gLe(
              e,
              r,
              t,
              L.createImportEqualsDeclaration(
                void 0,
                !1,
                i.name,
                L.createExternalModuleReference(t.moduleSpecifier),
              ),
            ),
          ),
        s
      );
    }
    function gLe(e, t, r, i) {
      const o = Rr.ChangeTracker.with(e, (s) => s.replaceNode(t, r, i));
      return yh(_Le, o, [f.Replace_import_with_0, o[0].textChanges[0].newText]);
    }
    Sa({
      errorCodes: [
        f.This_expression_is_not_callable.code,
        f.This_expression_is_not_constructable.code,
      ],
      getCodeActions: Btt,
    });
    function Btt(e) {
      const t = e.sourceFile,
        r = f.This_expression_is_not_callable.code === e.errorCode ? 214 : 215,
        i = Dn(Fi(t, e.span.start), (s) => s.kind === r);
      if (!i) return [];
      const o = i.expression;
      return yLe(e, o);
    }
    Sa({
      errorCodes: [
        f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,
        f.Type_0_does_not_satisfy_the_constraint_1.code,
        f.Type_0_is_not_assignable_to_type_1.code,
        f
          .Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated
          .code,
        f.Type_predicate_0_is_not_assignable_to_1.code,
        f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,
        f._0_index_type_1_is_not_assignable_to_2_index_type_3.code,
        f
          .Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2
          .code,
        f.Property_0_in_type_1_is_not_assignable_to_type_2.code,
        f
          .Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property
          .code,
        f
          .The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1
          .code,
      ],
      getCodeActions: Gtt,
    });
    function Gtt(e) {
      const t = e.sourceFile,
        r = Dn(
          Fi(t, e.span.start),
          (i) =>
            i.getStart() === e.span.start &&
            i.getEnd() === e.span.start + e.span.length,
        );
      return r ? yLe(e, r) : [];
    }
    function yLe(e, t) {
      const r = e.program.getTypeChecker().getTypeAtLocation(t);
      if (!(r.symbol && pg(r.symbol) && r.symbol.links.originatingImport))
        return [];
      const i = [],
        o = r.symbol.links.originatingImport;
      if (
        (Qu(o) || Xr(i, ztt(e, o)),
        St(t) && !(nd(t.parent) && t.parent.name === t))
      ) {
        const s = e.sourceFile,
          l = Rr.ChangeTracker.with(e, (u) =>
            u.replaceNode(
              s,
              t,
              L.createPropertyAccessExpression(t, "default"),
              {},
            ),
          );
        i.push(yh(_Le, l, f.Use_synthetic_default_member));
      }
      return i;
    }
    var Fpe = "strictClassInitialization",
      zpe = "addMissingPropertyDefiniteAssignmentAssertions",
      Bpe = "addMissingPropertyUndefinedType",
      Gpe = "addMissingPropertyInitializer",
      vLe = [
        f
          .Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor
          .code,
      ];
    Sa({
      errorCodes: vLe,
      getCodeActions: function (t) {
        const r = bLe(t.sourceFile, t.span.start);
        if (!r) return;
        const i = [];
        return (Bn(i, jtt(t, r)), Bn(i, Vtt(t, r)), Bn(i, Utt(t, r)), i);
      },
      fixIds: [zpe, Bpe, Gpe],
      getAllCodeActions: (e) =>
        Ss(e, vLe, (t, r) => {
          const i = bLe(r.file, r.start);
          if (i)
            switch (e.fixId) {
              case zpe:
                TLe(t, r.file, i.prop);
                break;
              case Bpe:
                SLe(t, r.file, i);
                break;
              case Gpe:
                const o = e.program.getTypeChecker(),
                  s = ALe(o, i.prop);
                if (!s) return;
                ELe(t, r.file, i.prop, s);
                break;
              default:
                C.fail(JSON.stringify(e.fixId));
            }
        }),
    });
    function bLe(e, t) {
      const r = Fi(e, t);
      if (He(r) && Po(r.parent)) {
        const i = xc(r.parent);
        if (i) return { type: i, prop: r.parent, isJs: Ir(r.parent) };
      }
    }
    function Vtt(e, t) {
      if (t.isJs) return;
      const r = Rr.ChangeTracker.with(e, (i) => TLe(i, e.sourceFile, t.prop));
      return oa(
        Fpe,
        r,
        [f.Add_definite_assignment_assertion_to_property_0, t.prop.getText()],
        zpe,
        f.Add_definite_assignment_assertions_to_all_uninitialized_properties,
      );
    }
    function TLe(e, t, r) {
      Op(r);
      const i = L.updatePropertyDeclaration(
        r,
        r.modifiers,
        r.name,
        L.createToken(54),
        r.type,
        r.initializer,
      );
      e.replaceNode(t, r, i);
    }
    function jtt(e, t) {
      const r = Rr.ChangeTracker.with(e, (i) => SLe(i, e.sourceFile, t));
      return oa(
        Fpe,
        r,
        [f.Add_undefined_type_to_property_0, t.prop.name.getText()],
        Bpe,
        f.Add_undefined_type_to_all_uninitialized_properties,
      );
    }
    function SLe(e, t, r) {
      const i = L.createKeywordTypeNode(157),
        o = dv(r.type) ? r.type.types.concat(i) : [r.type, i],
        s = L.createUnionTypeNode(o);
      r.isJs
        ? e.addJSDocTags(t, r.prop, [
            L.createJSDocTypeTag(void 0, L.createJSDocTypeExpression(s)),
          ])
        : e.replaceNode(t, r.type, s);
    }
    function Utt(e, t) {
      if (t.isJs) return;
      const r = e.program.getTypeChecker(),
        i = ALe(r, t.prop);
      if (!i) return;
      const o = Rr.ChangeTracker.with(e, (s) =>
        ELe(s, e.sourceFile, t.prop, i),
      );
      return oa(
        Fpe,
        o,
        [f.Add_initializer_to_property_0, t.prop.name.getText()],
        Gpe,
        f.Add_initializers_to_all_uninitialized_properties,
      );
    }
    function ELe(e, t, r, i) {
      Op(r);
      const o = L.updatePropertyDeclaration(
        r,
        r.modifiers,
        r.name,
        r.questionToken,
        r.type,
        i,
      );
      e.replaceNode(t, r, o);
    }
    function ALe(e, t) {
      return ILe(e, e.getTypeFromTypeNode(t.type));
    }
    function ILe(e, t) {
      if (t.flags & 512)
        return t === e.getFalseType() || t === e.getFalseType(!0)
          ? L.createFalse()
          : L.createTrue();
      if (t.isStringLiteral()) return L.createStringLiteral(t.value);
      if (t.isNumberLiteral()) return L.createNumericLiteral(t.value);
      if (t.flags & 2048) return L.createBigIntLiteral(t.value);
      if (t.isUnion()) return Hn(t.types, (r) => ILe(e, r));
      if (t.isClass()) {
        const r = cy(t.symbol);
        if (!r || di(r, 64)) return;
        const i = yg(r);
        return i && i.parameters.length
          ? void 0
          : L.createNewExpression(
              L.createIdentifier(t.symbol.name),
              void 0,
              void 0,
            );
      } else if (e.isArrayLikeType(t)) return L.createArrayLiteralExpression();
    }
    var Vpe = "requireInTs",
      xLe = [f.require_call_may_be_converted_to_an_import.code];
    Sa({
      errorCodes: xLe,
      getCodeActions(e) {
        const t = DLe(e.sourceFile, e.program, e.span.start, e.preferences);
        if (!t) return;
        const r = Rr.ChangeTracker.with(e, (i) => RLe(i, e.sourceFile, t));
        return [
          oa(
            Vpe,
            r,
            f.Convert_require_to_import,
            Vpe,
            f.Convert_all_require_to_import,
          ),
        ];
      },
      fixIds: [Vpe],
      getAllCodeActions: (e) =>
        Ss(e, xLe, (t, r) => {
          const i = DLe(r.file, e.program, r.start, e.preferences);
          i && RLe(t, e.sourceFile, i);
        }),
    });
    function RLe(e, t, r) {
      const {
        allowSyntheticDefaults: i,
        defaultImportName: o,
        namedImports: s,
        statement: l,
        moduleSpecifier: u,
      } = r;
      e.replaceNode(
        t,
        l,
        o && !i
          ? L.createImportEqualsDeclaration(
              void 0,
              !1,
              o,
              L.createExternalModuleReference(u),
            )
          : L.createImportDeclaration(
              void 0,
              L.createImportClause(void 0, o, s),
              u,
              void 0,
            ),
      );
    }
    function DLe(e, t, r, i) {
      const { parent: o } = Fi(e, r);
      Zu(o, !0) || C.failBadSyntaxKind(o);
      const s = ma(o.parent, yi),
        l = Gp(e, i),
        u = ni(s.name, He),
        d = ff(s.name) ? Htt(s.name) : void 0;
      if (u || d) {
        const _ = $a(o.arguments);
        return {
          allowSyntheticDefaults: PI(t.getCompilerOptions()),
          defaultImportName: u,
          namedImports: d,
          statement: ma(s.parent.parent, ac),
          moduleSpecifier: g1(_) ? L.createStringLiteral(_.text, l === 0) : _,
        };
      }
    }
    function Htt(e) {
      const t = [];
      for (const r of e.elements) {
        if (!He(r.name) || r.initializer) return;
        t.push(L.createImportSpecifier(!1, ni(r.propertyName, He), r.name));
      }
      if (t.length) return L.createNamedImports(t);
    }
    var jpe = "useDefaultImport",
      CLe = [f.Import_may_be_converted_to_a_default_import.code];
    Sa({
      errorCodes: CLe,
      getCodeActions(e) {
        const {
            sourceFile: t,
            span: { start: r },
          } = e,
          i = NLe(t, r);
        if (!i) return;
        const o = Rr.ChangeTracker.with(e, (s) => MLe(s, t, i, e.preferences));
        return [
          oa(
            jpe,
            o,
            f.Convert_to_default_import,
            jpe,
            f.Convert_all_to_default_imports,
          ),
        ];
      },
      fixIds: [jpe],
      getAllCodeActions: (e) =>
        Ss(e, CLe, (t, r) => {
          const i = NLe(r.file, r.start);
          i && MLe(t, r.file, i, e.preferences);
        }),
    });
    function NLe(e, t) {
      const r = Fi(e, t);
      if (!He(r)) return;
      const { parent: i } = r;
      if (Fc(i) && uy(i.moduleReference))
        return {
          importNode: i,
          name: r,
          moduleSpecifier: i.moduleReference.expression,
        };
      if (Ig(i) && vl(i.parent.parent)) {
        const o = i.parent.parent;
        return { importNode: o, name: r, moduleSpecifier: o.moduleSpecifier };
      }
    }
    function MLe(e, t, r, i) {
      e.replaceNode(
        t,
        r.importNode,
        Vb(r.name, void 0, r.moduleSpecifier, Gp(t, i)),
      );
    }
    var Upe = "useBigintLiteral",
      PLe = [
        f
          .Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers
          .code,
      ];
    Sa({
      errorCodes: PLe,
      getCodeActions: function (t) {
        const r = Rr.ChangeTracker.with(t, (i) => LLe(i, t.sourceFile, t.span));
        if (r.length > 0)
          return [
            oa(
              Upe,
              r,
              f.Convert_to_a_bigint_numeric_literal,
              Upe,
              f.Convert_all_to_bigint_numeric_literals,
            ),
          ];
      },
      fixIds: [Upe],
      getAllCodeActions: (e) => Ss(e, PLe, (t, r) => LLe(t, r.file, r)),
    });
    function LLe(e, t, r) {
      const i = ni(Fi(t, r.start), np);
      if (!i) return;
      const o = i.getText(t) + "n";
      e.replaceNode(t, i, L.createBigIntLiteral(o));
    }
    var qtt = "fixAddModuleReferTypeMissingTypeof",
      Hpe = qtt,
      kLe = [
        f
          .Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0
          .code,
      ];
    Sa({
      errorCodes: kLe,
      getCodeActions: function (t) {
        const { sourceFile: r, span: i } = t,
          o = wLe(r, i.start),
          s = Rr.ChangeTracker.with(t, (l) => OLe(l, r, o));
        return [oa(Hpe, s, f.Add_missing_typeof, Hpe, f.Add_missing_typeof)];
      },
      fixIds: [Hpe],
      getAllCodeActions: (e) =>
        Ss(e, kLe, (t, r) => OLe(t, e.sourceFile, wLe(r.file, r.start))),
    });
    function wLe(e, t) {
      const r = Fi(e, t);
      return (
        C.assert(r.kind === 102, "This token should be an ImportKeyword"),
        C.assert(r.parent.kind === 206, "Token parent should be an ImportType"),
        r.parent
      );
    }
    function OLe(e, t, r) {
      const i = L.updateImportTypeNode(
        r,
        r.argument,
        r.attributes,
        r.qualifier,
        r.typeArguments,
        !0,
      );
      e.replaceNode(t, r, i);
    }
    var qpe = "wrapJsxInFragment",
      WLe = [f.JSX_expressions_must_have_one_parent_element.code];
    Sa({
      errorCodes: WLe,
      getCodeActions: function (t) {
        const { sourceFile: r, span: i } = t,
          o = FLe(r, i.start);
        if (!o) return;
        const s = Rr.ChangeTracker.with(t, (l) => zLe(l, r, o));
        return [
          oa(
            qpe,
            s,
            f.Wrap_in_JSX_fragment,
            qpe,
            f.Wrap_all_unparented_JSX_in_JSX_fragment,
          ),
        ];
      },
      fixIds: [qpe],
      getAllCodeActions: (e) =>
        Ss(e, WLe, (t, r) => {
          const i = FLe(e.sourceFile, r.start);
          i && zLe(t, e.sourceFile, i);
        }),
    });
    function FLe(e, t) {
      let o = Fi(e, t).parent.parent;
      if (!(!Nr(o) && ((o = o.parent), !Nr(o))) && Ol(o.operatorToken))
        return o;
    }
    function zLe(e, t, r) {
      const i = Jtt(r);
      i &&
        e.replaceNode(
          t,
          r,
          L.createJsxFragment(
            L.createJsxOpeningFragment(),
            i,
            L.createJsxJsxClosingFragment(),
          ),
        );
    }
    function Jtt(e) {
      const t = [];
      let r = e;
      for (;;)
        if (Nr(r) && Ol(r.operatorToken) && r.operatorToken.kind === 28) {
          if ((t.push(r.left), J2(r.right))) return (t.push(r.right), t);
          if (Nr(r.right)) {
            r = r.right;
            continue;
          } else return;
        } else return;
    }
    var Jpe = "wrapDecoratorInParentheses",
      BLe = [
        f.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator
          .code,
      ];
    Sa({
      errorCodes: BLe,
      getCodeActions: function (t) {
        const r = Rr.ChangeTracker.with(t, (i) =>
          GLe(i, t.sourceFile, t.span.start),
        );
        return [
          oa(
            Jpe,
            r,
            f.Wrap_in_parentheses,
            Jpe,
            f.Wrap_all_invalid_decorator_expressions_in_parentheses,
          ),
        ];
      },
      fixIds: [Jpe],
      getAllCodeActions: (e) => Ss(e, BLe, (t, r) => GLe(t, r.file, r.start)),
    });
    function GLe(e, t, r) {
      const i = Fi(t, r),
        o = Dn(i, Wc);
      C.assert(!!o, "Expected position to be owned by a decorator.");
      const s = L.createParenthesizedExpression(o.expression);
      e.replaceNode(t, o.expression, s);
    }
    var Kpe = "fixConvertToMappedObjectType",
      VLe = [
        f
          .An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead
          .code,
      ];
    Sa({
      errorCodes: VLe,
      getCodeActions: function (t) {
        const { sourceFile: r, span: i } = t,
          o = jLe(r, i.start);
        if (!o) return;
        const s = Rr.ChangeTracker.with(t, (u) => ULe(u, r, o)),
          l = Kr(o.container.name);
        return [
          oa(Kpe, s, [f.Convert_0_to_mapped_object_type, l], Kpe, [
            f.Convert_0_to_mapped_object_type,
            l,
          ]),
        ];
      },
      fixIds: [Kpe],
      getAllCodeActions: (e) =>
        Ss(e, VLe, (t, r) => {
          const i = jLe(r.file, r.start);
          i && ULe(t, r.file, i);
        }),
    });
    function jLe(e, t) {
      const r = Fi(e, t),
        i = ni(r.parent.parent, Mb);
      if (!i) return;
      const o = gd(i.parent) ? i.parent : ni(i.parent.parent, vm);
      if (o) return { indexSignature: i, container: o };
    }
    function Ktt(e, t) {
      return L.createTypeAliasDeclaration(
        e.modifiers,
        e.name,
        e.typeParameters,
        t,
      );
    }
    function ULe(e, t, { indexSignature: r, container: i }) {
      const s = (gd(i) ? i.members : i.type.members).filter((h) => !Mb(h)),
        l = $a(r.parameters),
        u = L.createTypeParameterDeclaration(void 0, ma(l.name, He), l.type),
        d = L.createMappedTypeNode(
          u1(r) ? L.createModifier(148) : void 0,
          u,
          void 0,
          r.questionToken,
          r.type,
          void 0,
        ),
        _ = L.createIntersectionTypeNode([
          ...rM(i),
          d,
          ...(s.length ? [L.createTypeLiteralNode(s)] : ae),
        ]);
      e.replaceNode(t, i, Ktt(i, _));
    }
    var HLe = "removeAccidentalCallParentheses",
      Xtt = [
        f
          .This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without
          .code,
      ];
    Sa({
      errorCodes: Xtt,
      getCodeActions(e) {
        const t = Dn(Fi(e.sourceFile, e.span.start), Zo);
        if (!t) return;
        const r = Rr.ChangeTracker.with(e, (i) => {
          i.deleteRange(e.sourceFile, { pos: t.expression.end, end: t.end });
        });
        return [yh(HLe, r, f.Remove_parentheses)];
      },
      fixIds: [HLe],
    });
    var Xpe = "removeUnnecessaryAwait",
      qLe = [f.await_has_no_effect_on_the_type_of_this_expression.code];
    Sa({
      errorCodes: qLe,
      getCodeActions: function (t) {
        const r = Rr.ChangeTracker.with(t, (i) => JLe(i, t.sourceFile, t.span));
        if (r.length > 0)
          return [
            oa(
              Xpe,
              r,
              f.Remove_unnecessary_await,
              Xpe,
              f.Remove_all_unnecessary_uses_of_await,
            ),
          ];
      },
      fixIds: [Xpe],
      getAllCodeActions: (e) => Ss(e, qLe, (t, r) => JLe(t, r.file, r)),
    });
    function JLe(e, t, r) {
      const i = ni(Fi(t, r.start), (u) => u.kind === 135),
        o = i && ni(i.parent, Pb);
      if (!o) return;
      let s = o;
      if (Ou(o.parent)) {
        const u = uD(o.expression, !1);
        if (He(u)) {
          const d = Bc(o.parent.pos, t);
          d && d.kind !== 105 && (s = o.parent);
        }
      }
      e.replaceNode(t, s, o.expression);
    }
    var KLe = [
        f
          .A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both
          .code,
      ],
      Ype = "splitTypeOnlyImport";
    Sa({
      errorCodes: KLe,
      fixIds: [Ype],
      getCodeActions: function (t) {
        const r = Rr.ChangeTracker.with(t, (i) =>
          YLe(i, XLe(t.sourceFile, t.span), t),
        );
        if (r.length)
          return [
            oa(
              Ype,
              r,
              f.Split_into_two_separate_import_declarations,
              Ype,
              f.Split_all_invalid_type_only_imports,
            ),
          ];
      },
      getAllCodeActions: (e) =>
        Ss(e, KLe, (t, r) => {
          YLe(t, XLe(e.sourceFile, r), e);
        }),
    });
    function XLe(e, t) {
      return Dn(Fi(e, t.start), vl);
    }
    function YLe(e, t, r) {
      if (!t) return;
      const i = C.checkDefined(t.importClause);
      (e.replaceNode(
        r.sourceFile,
        t,
        L.updateImportDeclaration(
          t,
          t.modifiers,
          L.updateImportClause(i, i.phaseModifier, i.name, void 0),
          t.moduleSpecifier,
          t.attributes,
        ),
      ),
        e.insertNodeAfter(
          r.sourceFile,
          t,
          L.createImportDeclaration(
            void 0,
            L.updateImportClause(i, i.phaseModifier, void 0, i.namedBindings),
            t.moduleSpecifier,
            t.attributes,
          ),
        ));
    }
    var $pe = "fixConvertConstToLet",
      $Le = [f.Cannot_assign_to_0_because_it_is_a_constant.code];
    Sa({
      errorCodes: $Le,
      getCodeActions: function (t) {
        const { sourceFile: r, span: i, program: o } = t,
          s = QLe(r, i.start, o);
        if (s === void 0) return;
        const l = Rr.ChangeTracker.with(t, (u) => ZLe(u, r, s.token));
        return [
          lue($pe, l, f.Convert_const_to_let, $pe, f.Convert_all_const_to_let),
        ];
      },
      getAllCodeActions: (e) => {
        const { program: t } = e,
          r = new Set();
        return vx(
          Rr.ChangeTracker.with(e, (i) => {
            bx(e, $Le, (o) => {
              const s = QLe(o.file, o.start, t);
              if (s && gm(r, Ta(s.symbol))) return ZLe(i, o.file, s.token);
            });
          }),
        );
      },
      fixIds: [$pe],
    });
    function QLe(e, t, r) {
      var i;
      const s = r.getTypeChecker().getSymbolAtLocation(Fi(e, t));
      if (s === void 0) return;
      const l = ni((i = s?.valueDeclaration) == null ? void 0 : i.parent, _d);
      if (l === void 0) return;
      const u = Es(l, 87, e);
      if (u !== void 0) return { symbol: s, token: u };
    }
    function ZLe(e, t, r) {
      e.replaceNode(t, r, L.createToken(121));
    }
    var Qpe = "fixExpectedComma",
      Ytt = f._0_expected.code,
      e2e = [Ytt];
    Sa({
      errorCodes: e2e,
      getCodeActions(e) {
        const { sourceFile: t } = e,
          r = t2e(t, e.span.start, e.errorCode);
        if (!r) return;
        const i = Rr.ChangeTracker.with(e, (o) => n2e(o, t, r));
        return [
          oa(Qpe, i, [f.Change_0_to_1, ";", ","], Qpe, [
            f.Change_0_to_1,
            ";",
            ",",
          ]),
        ];
      },
      fixIds: [Qpe],
      getAllCodeActions: (e) =>
        Ss(e, e2e, (t, r) => {
          const i = t2e(r.file, r.start, r.code);
          i && n2e(t, e.sourceFile, i);
        }),
    });
    function t2e(e, t, r) {
      const i = Fi(e, t);
      return i.kind === 27 && i.parent && (Wa(i.parent) || Cd(i.parent))
        ? { node: i }
        : void 0;
    }
    function n2e(e, t, { node: r }) {
      const i = L.createToken(28);
      e.replaceNode(t, r, i);
    }
    var $tt = "addVoidToPromise",
      r2e = "addVoidToPromise",
      i2e = [
        f
          .Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments
          .code,
        f
          .Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise
          .code,
      ];
    Sa({
      errorCodes: i2e,
      fixIds: [r2e],
      getCodeActions(e) {
        const t = Rr.ChangeTracker.with(e, (r) =>
          o2e(r, e.sourceFile, e.span, e.program),
        );
        if (t.length > 0)
          return [
            oa(
              $tt,
              t,
              f.Add_void_to_Promise_resolved_without_a_value,
              r2e,
              f.Add_void_to_all_Promises_resolved_without_a_value,
            ),
          ];
      },
      getAllCodeActions(e) {
        return Ss(e, i2e, (t, r) => o2e(t, r.file, r, e.program, new Set()));
      },
    });
    function o2e(e, t, r, i, o) {
      const s = Fi(t, r.start);
      if (
        !He(s) ||
        !Zo(s.parent) ||
        s.parent.expression !== s ||
        s.parent.arguments.length !== 0
      )
        return;
      const l = i.getTypeChecker(),
        u = l.getSymbolAtLocation(s),
        d = u?.valueDeclaration;
      if (!d || !to(d) || !GS(d.parent.parent) || o?.has(d)) return;
      o?.add(d);
      const _ = Qtt(d.parent.parent);
      if (yt(_)) {
        const h = _[0],
          g =
            !dv(h) &&
            !v1(h) &&
            v1(
              L.createUnionTypeNode([h, L.createKeywordTypeNode(116)]).types[0],
            );
        (g && e.insertText(t, h.pos, "("),
          e.insertText(t, h.end, g ? ") | void" : " | void"));
      } else {
        const h = l.getResolvedSignature(s.parent),
          g = h?.parameters[0],
          E = g && l.getTypeOfSymbolAtLocation(g, d.parent.parent);
        Ir(d)
          ? (!E || E.flags & 3) &&
            (e.insertText(t, d.parent.parent.end, ")"),
            e.insertText(
              t,
              La(t.text, d.parent.parent.pos),
              "/** @type {Promise<void>} */(",
            ))
          : (!E || E.flags & 2) &&
            e.insertText(t, d.parent.parent.expression.end, "<void>");
      }
    }
    function Qtt(e) {
      var t;
      if (Ir(e)) {
        if (Ou(e.parent)) {
          const r = (t = LT(e.parent)) == null ? void 0 : t.typeExpression.type;
          if (r && Wp(r) && He(r.typeName) && Kr(r.typeName) === "Promise")
            return r.typeArguments;
        }
      } else return e.typeArguments;
    }
    var Ex = {};
    x(Ex, {
      CompletionKind: () => S2e,
      CompletionSource: () => s2e,
      SortText: () => Hd,
      StringCompletions: () => XK,
      SymbolOriginInfoKind: () => l2e,
      createCompletionDetails: () => gz,
      createCompletionDetailsForSymbol: () => sfe,
      getCompletionEntriesFromSymbols: () => ofe,
      getCompletionEntryDetails: () => Cnt,
      getCompletionEntrySymbol: () => Mnt,
      getCompletionsAtPosition: () => ant,
      getDefaultCommitCharacters: () => V1,
      getPropertiesForObjectExpression: () => qK,
      moduleSpecifierResolutionCacheAttemptLimit: () => a2e,
      moduleSpecifierResolutionLimit: () => Zpe,
    });
    var Zpe = 100,
      a2e = 1e3,
      Hd = {
        LocalDeclarationPriority: "10",
        LocationPriority: "11",
        OptionalMember: "12",
        MemberDeclaredBySpreadAssignment: "13",
        SuggestedClassMembers: "14",
        GlobalsOrKeywords: "15",
        AutoImportSuggestions: "16",
        ClassMemberSnippets: "17",
        JavascriptIdentifiers: "18",
        Deprecated(e) {
          return "z" + e;
        },
        ObjectLiteralProperty(e, t) {
          return `${e}\0${t}\0`;
        },
        SortBelow(e) {
          return e + "1";
        },
      },
      l_ = [".", ",", ";"],
      FK = [".", ";"],
      s2e = ((e) => (
        (e.ThisProperty = "ThisProperty/"),
        (e.ClassMemberSnippet = "ClassMemberSnippet/"),
        (e.TypeOnlyAlias = "TypeOnlyAlias/"),
        (e.ObjectLiteralMethodSnippet = "ObjectLiteralMethodSnippet/"),
        (e.SwitchCases = "SwitchCases/"),
        (e.ObjectLiteralMemberWithComma = "ObjectLiteralMemberWithComma/"),
        e
      ))(s2e || {}),
      l2e = ((e) => (
        (e[(e.ThisType = 1)] = "ThisType"),
        (e[(e.SymbolMember = 2)] = "SymbolMember"),
        (e[(e.Export = 4)] = "Export"),
        (e[(e.Promise = 8)] = "Promise"),
        (e[(e.Nullable = 16)] = "Nullable"),
        (e[(e.ResolvedExport = 32)] = "ResolvedExport"),
        (e[(e.TypeOnlyAlias = 64)] = "TypeOnlyAlias"),
        (e[(e.ObjectLiteralMethod = 128)] = "ObjectLiteralMethod"),
        (e[(e.Ignore = 256)] = "Ignore"),
        (e[(e.ComputedPropertyName = 512)] = "ComputedPropertyName"),
        (e[(e.SymbolMemberNoExport = 2)] = "SymbolMemberNoExport"),
        (e[(e.SymbolMemberExport = 6)] = "SymbolMemberExport"),
        e
      ))(l2e || {});
    function Ztt(e) {
      return !!(e.kind & 1);
    }
    function ent(e) {
      return !!(e.kind & 2);
    }
    function hz(e) {
      return !!(e && e.kind & 4);
    }
    function JP(e) {
      return !!(e && e.kind === 32);
    }
    function tnt(e) {
      return hz(e) || JP(e) || efe(e);
    }
    function nnt(e) {
      return (hz(e) || JP(e)) && !!e.isFromPackageJson;
    }
    function rnt(e) {
      return !!(e.kind & 8);
    }
    function int(e) {
      return !!(e.kind & 16);
    }
    function c2e(e) {
      return !!(e && e.kind & 64);
    }
    function d2e(e) {
      return !!(e && e.kind & 128);
    }
    function ont(e) {
      return !!(e && e.kind & 256);
    }
    function efe(e) {
      return !!(e && e.kind & 512);
    }
    function u2e(e, t, r, i, o, s, l, u, d) {
      var _, h, g, E;
      const A = Ls(),
        R =
          l ||
          Hk(i.getCompilerOptions()) ||
          ((_ = s.autoImportSpecifierExcludeRegexes) == null
            ? void 0
            : _.length);
      let N = !1,
        P = 0,
        k = 0,
        W = 0,
        O = 0;
      const G = d({
          tryResolve: J,
          skippedAny: () => N,
          resolvedAny: () => k > 0,
          resolvedBeyondLimit: () => k > Zpe,
        }),
        j = O ? ` (${((W / O) * 100).toFixed(1)}% hit rate)` : "";
      return (
        (h = t.log) == null ||
          h.call(
            t,
            `${e}: resolved ${k} module specifiers, plus ${P} ambient and ${W} from cache${j}`,
          ),
        (g = t.log) == null ||
          g.call(t, `${e}: response is ${N ? "incomplete" : "complete"}`),
        (E = t.log) == null || E.call(t, `${e}: ${Ls() - A}`),
        G
      );
      function J(Z, q) {
        if (q) {
          const pe = r.getModuleSpecifierForBestExportInfo(Z, o, u);
          return (pe && P++, pe || "failed");
        }
        const ye = R || (s.allowIncompleteCompletions && k < Zpe),
          ie = !ye && s.allowIncompleteCompletions && O < a2e,
          K =
            ye || ie
              ? r.getModuleSpecifierForBestExportInfo(Z, o, u, ie)
              : void 0;
        return (
          ((!ye && !ie) || (ie && !K)) && (N = !0),
          (k += K?.computedWithoutCacheCount || 0),
          (W += Z.length - (K?.computedWithoutCacheCount || 0)),
          ie && O++,
          K || (R ? "failed" : "skipped")
        );
      }
    }
    function V1(e) {
      return e ? [] : l_;
    }
    function ant(e, t, r, i, o, s, l, u, d, _, h = !1) {
      var g;
      const { previousToken: E } = VK(o, i);
      if (l && !px(i, o, E) && !Vnt(i, l, E, o)) return;
      if (l === " ")
        return s.includeCompletionsForImportStatements &&
          s.includeCompletionsWithInsertText
          ? {
              isGlobalCompletion: !0,
              isMemberCompletion: !1,
              isNewIdentifierLocation: !0,
              isIncomplete: !0,
              entries: [],
              defaultCommitCharacters: V1(!0),
            }
          : void 0;
      const A = t.getCompilerOptions(),
        R = t.getTypeChecker(),
        N = s.allowIncompleteCompletions
          ? (g = e.getIncompleteCompletionsCache) == null
            ? void 0
            : g.call(e)
          : void 0;
      if (N && u === 3 && E && He(E)) {
        const W = snt(N, i, E, t, e, s, d, o);
        if (W) return W;
      } else N?.clear();
      const P = XK.getStringLiteralCompletions(i, o, E, A, e, t, r, s, h);
      if (P) return P;
      if (
        E &&
        kN(E.parent) &&
        (E.kind === 83 || E.kind === 88 || E.kind === 80)
      )
        return Rnt(E.parent);
      const k = E2e(t, r, i, A, o, s, void 0, e, _, d);
      if (k)
        switch (k.kind) {
          case 0:
            const W = pnt(i, e, t, A, r, k, s, _, o, h);
            return (W?.isIncomplete && N?.set(W), W);
          case 1:
            return tfe([
              ...y0.getJSDocTagNameCompletions(),
              ...f2e(i, o, R, A, s, !0),
            ]);
          case 2:
            return tfe([
              ...y0.getJSDocTagCompletions(),
              ...f2e(i, o, R, A, s, !1),
            ]);
          case 3:
            return tfe(y0.getJSDocParameterNameCompletions(k.tag));
          case 4:
            return dnt(k.keywordCompletions, k.isNewIdentifierLocation);
          default:
            return C.assertNever(k);
        }
    }
    function _z(e, t) {
      var r, i;
      let o = v2(e.sortText, t.sortText);
      return (
        o === 0 && (o = v2(e.name, t.name)),
        o === 0 &&
          (r = e.data) != null &&
          r.moduleSpecifier &&
          (i = t.data) != null &&
          i.moduleSpecifier &&
          (o = Qk(e.data.moduleSpecifier, t.data.moduleSpecifier)),
        o === 0 ? -1 : o
      );
    }
    function p2e(e) {
      return !!e?.moduleSpecifier;
    }
    function snt(e, t, r, i, o, s, l, u) {
      const d = e.get();
      if (!d) return;
      const _ = ip(t, u),
        h = r.text.toLowerCase(),
        g = wO(t, o, i, s, l),
        E = u2e(
          "continuePreviousIncompleteResponse",
          o,
          cu.createImportSpecifierResolver(t, i, o, s),
          i,
          r.getStart(),
          s,
          !1,
          HT(r),
          (A) => {
            const R = Ui(d.entries, (N) => {
              var P;
              if (!N.hasAction || !N.source || !N.data || p2e(N.data)) return N;
              if (!F2e(N.name, h)) return;
              const { origin: k } = C.checkDefined(A2e(N.name, N.data, i, o)),
                W = g.get(t.path, N.data.exportMapKey),
                O = W && A.tryResolve(W, !td(_m(k.moduleSymbol.name)));
              if (O === "skipped") return N;
              if (!O || O === "failed") {
                (P = o.log) == null ||
                  P.call(
                    o,
                    `Unexpected failure resolving auto import for '${N.name}' from '${N.source}'`,
                  );
                return;
              }
              const G = { ...k, kind: 32, moduleSpecifier: O.moduleSpecifier };
              return (
                (N.data = b2e(G)),
                (N.source = ife(G)),
                (N.sourceDisplay = [yf(G.moduleSpecifier)]),
                N
              );
            });
            return (A.skippedAny() || (d.isIncomplete = void 0), R);
          },
        );
      return (
        (d.entries = E),
        (d.flags = (d.flags || 0) | 4),
        (d.optionalReplacementSpan = _2e(_)),
        d
      );
    }
    function tfe(e) {
      return {
        isGlobalCompletion: !1,
        isMemberCompletion: !1,
        isNewIdentifierLocation: !1,
        entries: e,
        defaultCommitCharacters: V1(!1),
      };
    }
    function f2e(e, t, r, i, o, s) {
      const l = Fi(e, t);
      if (!VR(l) && !mh(l)) return [];
      const u = mh(l) ? l : l.parent;
      if (!mh(u)) return [];
      const d = u.parent;
      if (!Yo(d)) return [];
      const _ = Pu(e),
        h = o.includeCompletionsWithSnippetText || void 0,
        g = Io(u.tags, (E) => mf(E) && E.getEnd() <= t);
      return Ui(d.parameters, (E) => {
        if (!OR(E).length) {
          if (He(E.name)) {
            const A = { tabstop: 1 },
              R = E.name.text;
            let N = $O(R, E.initializer, E.dotDotDotToken, _, !1, !1, r, i, o),
              P = h
                ? $O(R, E.initializer, E.dotDotDotToken, _, !1, !0, r, i, o, A)
                : void 0;
            return (
              s && ((N = N.slice(1)), P && (P = P.slice(1))),
              {
                name: N,
                kind: "parameter",
                sortText: Hd.LocationPriority,
                insertText: h ? P : void 0,
                isSnippet: h,
              }
            );
          } else if (E.parent.parameters.indexOf(E) === g) {
            const A = `param${g}`,
              R = m2e(
                A,
                E.name,
                E.initializer,
                E.dotDotDotToken,
                _,
                !1,
                r,
                i,
                o,
              ),
              N = h
                ? m2e(
                    A,
                    E.name,
                    E.initializer,
                    E.dotDotDotToken,
                    _,
                    !0,
                    r,
                    i,
                    o,
                  )
                : void 0;
            let P = R.join(iv(i) + "* "),
              k = N?.join(iv(i) + "* ");
            return (
              s && ((P = P.slice(1)), k && (k = k.slice(1))),
              {
                name: P,
                kind: "parameter",
                sortText: Hd.LocationPriority,
                insertText: h ? k : void 0,
                isSnippet: h,
              }
            );
          }
        }
      });
    }
    function m2e(e, t, r, i, o, s, l, u, d) {
      if (!o) return [$O(e, r, i, o, !1, s, l, u, d, { tabstop: 1 })];
      return _(e, t, r, i, { tabstop: 1 });
      function _(g, E, A, R, N) {
        if (ff(E) && !R) {
          const k = { tabstop: N.tabstop },
            W = $O(g, A, R, o, !0, s, l, u, d, k);
          let O = [];
          for (const G of E.elements) {
            const j = h(g, G, k);
            if (j) O.push(...j);
            else {
              O = void 0;
              break;
            }
          }
          if (O) return ((N.tabstop = k.tabstop), [W, ...O]);
        }
        return [$O(g, A, R, o, !1, s, l, u, d, N)];
      }
      function h(g, E, A) {
        if ((!E.propertyName && He(E.name)) || He(E.name)) {
          const R = E.propertyName ? UN(E.propertyName) : E.name.text;
          if (!R) return;
          const N = `${g}.${R}`;
          return [$O(N, E.initializer, E.dotDotDotToken, o, !1, s, l, u, d, A)];
        } else if (E.propertyName) {
          const R = UN(E.propertyName);
          return (
            R && _(`${g}.${R}`, E.name, E.initializer, E.dotDotDotToken, A)
          );
        }
      }
    }
    function $O(e, t, r, i, o, s, l, u, d, _) {
      if (
        (s && C.assertIsDefined(_), t && (e = lnt(e, t)), s && (e = OS(e)), i)
      ) {
        let h = "*";
        if (o)
          (C.assert(!r, "Cannot annotate a rest parameter with type 'Object'."),
            (h = "Object"));
        else {
          if (t) {
            const A = l.getTypeAtLocation(t.parent);
            if (!(A.flags & 16385)) {
              const R = t.getSourceFile(),
                P = Gp(R, d) === 0 ? 268435456 : 0,
                k = l.typeToTypeNode(A, Dn(t, Yo), P);
              if (k) {
                const W = s
                  ? GK({
                      removeComments: !0,
                      module: u.module,
                      moduleResolution: u.moduleResolution,
                      target: u.target,
                    })
                  : zb({
                      removeComments: !0,
                      module: u.module,
                      moduleResolution: u.moduleResolution,
                      target: u.target,
                    });
                (Cr(k, 1), (h = W.printNode(4, k, R)));
              }
            }
          }
          s && h === "*" && (h = `\${${_.tabstop++}:${h}}`);
        }
        const g = !o && r ? "..." : "",
          E = s ? `\${${_.tabstop++}}` : "";
        return `@param {${g}${h}} ${e} ${E}`;
      } else {
        const h = s ? `\${${_.tabstop++}}` : "";
        return `@param ${e} ${h}`;
      }
    }
    function lnt(e, t) {
      const r = t.getText().trim();
      return r.includes(`
`) || r.length > 80
        ? `[${e}]`
        : `[${e}=${r}]`;
    }
    function cnt(e) {
      return {
        name: _a(e),
        kind: "keyword",
        kindModifiers: "",
        sortText: Hd.GlobalsOrKeywords,
      };
    }
    function dnt(e, t) {
      return {
        isGlobalCompletion: !1,
        isMemberCompletion: !1,
        isNewIdentifierLocation: t,
        entries: e.slice(),
        defaultCommitCharacters: V1(t),
      };
    }
    function h2e(e, t, r) {
      return {
        kind: 4,
        keywordCompletions: x2e(e, t),
        isNewIdentifierLocation: r,
      };
    }
    function unt(e) {
      switch (e) {
        case 156:
          return 8;
        default:
          C.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters");
      }
    }
    function _2e(e) {
      return e?.kind === 80 ? zu(e) : void 0;
    }
    function pnt(e, t, r, i, o, s, l, u, d, _) {
      const {
        symbols: h,
        contextToken: g,
        completionKind: E,
        isInSnippetScope: A,
        isNewIdentifierLocation: R,
        location: N,
        propertyAccessToConvert: P,
        keywordFilters: k,
        symbolToOriginInfoMap: W,
        recommendedCompletion: O,
        isJsxInitializer: G,
        isTypeOnlyLocation: j,
        isJsxIdentifierExpected: J,
        isRightOfOpenTag: Z,
        isRightOfDotOrQuestionDot: q,
        importStatementCompletion: ye,
        insideJsDocTagTypeExpression: ie,
        symbolToSortTextMap: K,
        hasUnresolvedAutoImports: pe,
        defaultCommitCharacters: de,
      } = s;
      let fe = s.literals;
      const ve = r.getTypeChecker();
      if (jk(e.scriptKind) === 1) {
        const re = mnt(N, e);
        if (re) return re;
      }
      const xe = Dn(g, xD);
      if (xe && (Tie(g) || xS(g, xe.expression))) {
        const re = B7(ve, xe.parent.clauses);
        ((fe = fe.filter((be) => !re.hasValue(be))),
          h.forEach((be, Ne) => {
            if (be.valueDeclaration && py(be.valueDeclaration)) {
              const Be = ve.getConstantValue(be.valueDeclaration);
              Be !== void 0 && re.hasValue(Be) && (W[Ne] = { kind: 256 });
            }
          }));
      }
      const X = OB(),
        Ce = g2e(e, i);
      if (Ce && !R && (!h || h.length === 0) && k === 0) return;
      const Je = ofe(
        h,
        X,
        void 0,
        g,
        N,
        d,
        e,
        t,
        r,
        Ga(i),
        o,
        E,
        l,
        i,
        u,
        j,
        P,
        J,
        G,
        ye,
        O,
        W,
        K,
        J,
        Z,
        _,
      );
      if (k !== 0)
        for (const re of x2e(k, !ie && Pu(e)))
          ((j && CP(HE(re.name))) ||
            (!j && $nt(re.name)) ||
            !Je.has(re.name)) &&
            (Je.add(re.name), $v(X, re, _z, void 0, !0));
      for (const re of Wnt(g, d))
        Je.has(re.name) || (Je.add(re.name), $v(X, re, _z, void 0, !0));
      for (const re of fe) {
        const be = _nt(e, l, re);
        (Je.add(be.name), $v(X, be, _z, void 0, !0));
      }
      Ce || hnt(e, N.pos, Je, Ga(i), X);
      let Se;
      if (
        l.includeCompletionsWithInsertText &&
        g &&
        !Z &&
        !q &&
        (Se = Dn(g, HM))
      ) {
        const re = y2e(Se, e, l, i, t, r, u);
        re && X.push(re.entry);
      }
      return {
        flags: s.flags,
        isGlobalCompletion: A,
        isIncomplete: l.allowIncompleteCompletions && pe ? !0 : void 0,
        isMemberCompletion: fnt(E),
        isNewIdentifierLocation: R,
        optionalReplacementSpan: _2e(N),
        entries: X,
        defaultCommitCharacters: de ?? V1(R),
      };
    }
    function g2e(e, t) {
      return !Pu(e) || !!IM(e, t);
    }
    function y2e(e, t, r, i, o, s, l) {
      const u = e.clauses,
        d = s.getTypeChecker(),
        _ = d.getTypeAtLocation(e.parent.expression);
      if (_ && _.isUnion() && Vn(_.types, (h) => h.isLiteral())) {
        const h = B7(d, u),
          g = Ga(i),
          E = Gp(t, r),
          A = cu.createImportAdder(t, s, r, o),
          R = [];
        for (const j of _.types)
          if (j.flags & 1024) {
            (C.assert(j.symbol, "An enum member type should have a symbol"),
              C.assert(
                j.symbol.parent,
                "An enum member type should have a parent symbol (the enum symbol)",
              ));
            const J =
              j.symbol.valueDeclaration &&
              d.getConstantValue(j.symbol.valueDeclaration);
            if (J !== void 0) {
              if (h.hasValue(J)) continue;
              h.addValue(J);
            }
            const Z = cu.typeToAutoImportableTypeNode(d, A, j, e, g);
            if (!Z) return;
            const q = zK(Z, g, E);
            if (!q) return;
            R.push(q);
          } else if (!h.hasValue(j.value))
            switch (typeof j.value) {
              case "object":
                R.push(
                  j.value.negative
                    ? L.createPrefixUnaryExpression(
                        41,
                        L.createBigIntLiteral({
                          negative: !1,
                          base10Value: j.value.base10Value,
                        }),
                      )
                    : L.createBigIntLiteral(j.value),
                );
                break;
              case "number":
                R.push(
                  j.value < 0
                    ? L.createPrefixUnaryExpression(
                        41,
                        L.createNumericLiteral(-j.value),
                      )
                    : L.createNumericLiteral(j.value),
                );
                break;
              case "string":
                R.push(L.createStringLiteral(j.value, E === 0));
                break;
            }
        if (R.length === 0) return;
        const N = Vt(R, (j) => L.createCaseClause(j, [])),
          P = _y(o, l?.options),
          k = GK({
            removeComments: !0,
            module: i.module,
            moduleResolution: i.moduleResolution,
            target: i.target,
            newLine: kO(P),
          }),
          W = l
            ? (j) => k.printAndFormatNode(4, j, t, l)
            : (j) => k.printNode(4, j, t),
          O = Vt(N, (j, J) =>
            r.includeCompletionsWithSnippetText
              ? `${W(j)}$${J + 1}`
              : `${W(j)}`,
          ).join(P);
        return {
          entry: {
            name: `${k.printNode(4, N[0], t)} ...`,
            kind: "",
            sortText: Hd.GlobalsOrKeywords,
            insertText: O,
            hasAction: A.hasFixes() || void 0,
            source: "SwitchCases/",
            isSnippet: r.includeCompletionsWithSnippetText ? !0 : void 0,
          },
          importAdder: A,
        };
      }
    }
    function zK(e, t, r) {
      switch (e.kind) {
        case 184:
          const i = e.typeName;
          return BK(i, t, r);
        case 200:
          const o = zK(e.objectType, t, r),
            s = zK(e.indexType, t, r);
          return o && s && L.createElementAccessExpression(o, s);
        case 202:
          const l = e.literal;
          switch (l.kind) {
            case 11:
              return L.createStringLiteral(l.text, r === 0);
            case 9:
              return L.createNumericLiteral(l.text, l.numericLiteralFlags);
          }
          return;
        case 197:
          const u = zK(e.type, t, r);
          return u && (He(u) ? u : L.createParenthesizedExpression(u));
        case 187:
          return BK(e.exprName, t, r);
        case 206:
          C.fail(
            "We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.",
          );
      }
    }
    function BK(e, t, r) {
      if (He(e)) return e;
      const i = Gi(e.right.escapedText);
      return JV(i, t)
        ? L.createPropertyAccessExpression(BK(e.left, t, r), i)
        : L.createElementAccessExpression(
            BK(e.left, t, r),
            L.createStringLiteral(i, r === 0),
          );
    }
    function fnt(e) {
      switch (e) {
        case 0:
        case 3:
        case 2:
          return !0;
        default:
          return !1;
      }
    }
    function mnt(e, t) {
      const r = Dn(e, (i) => {
        switch (i.kind) {
          case 288:
            return !0;
          case 44:
          case 32:
          case 80:
          case 212:
            return !1;
          default:
            return "quit";
        }
      });
      if (r) {
        const i = !!Es(r, 32, t),
          l = r.parent.openingElement.tagName.getText(t) + (i ? "" : ">"),
          u = zu(r.tagName),
          d = {
            name: l,
            kind: "class",
            kindModifiers: void 0,
            sortText: Hd.LocationPriority,
          };
        return {
          isGlobalCompletion: !1,
          isMemberCompletion: !0,
          isNewIdentifierLocation: !1,
          optionalReplacementSpan: u,
          entries: [d],
          defaultCommitCharacters: V1(!1),
        };
      }
    }
    function hnt(e, t, r, i, o) {
      lK(e).forEach((s, l) => {
        if (s === t) return;
        const u = Gi(l);
        !r.has(u) &&
          fp(u, i) &&
          (r.add(u),
          $v(
            o,
            {
              name: u,
              kind: "warning",
              kindModifiers: "",
              sortText: Hd.JavascriptIdentifiers,
              isFromUncheckedFile: !0,
              commitCharacters: [],
            },
            _z,
          ));
      });
    }
    function nfe(e, t, r) {
      return typeof r == "object"
        ? wS(r) + "n"
        : Bo(r)
          ? wP(e, t, r)
          : JSON.stringify(r);
    }
    function _nt(e, t, r) {
      return {
        name: nfe(e, t, r),
        kind: "string",
        kindModifiers: "",
        sortText: Hd.LocationPriority,
        commitCharacters: [],
      };
    }
    function gnt(
      e,
      t,
      r,
      i,
      o,
      s,
      l,
      u,
      d,
      _,
      h,
      g,
      E,
      A,
      R,
      N,
      P,
      k,
      W,
      O,
      G,
      j,
      J,
      Z,
    ) {
      var q, ye;
      let ie,
        K,
        pe = Vq(r, s),
        de,
        fe,
        ve = ife(g),
        xe,
        X,
        Ce;
      const Je = d.getTypeChecker(),
        Se = g && int(g),
        re = (g && ent(g)) || h;
      if (g && Ztt(g))
        ie = h
          ? `this${Se ? "?." : ""}[${rfe(l, W, _)}]`
          : `this${Se ? "?." : "."}${_}`;
      else if ((re || Se) && A) {
        ((ie = re ? (h ? `[${rfe(l, W, _)}]` : `[${_}]`) : _),
          (Se || A.questionDotToken) && (ie = `?.${ie}`));
        const lt = Es(A, 25, l) || Es(A, 29, l);
        if (!lt) return;
        const ce = po(_, A.name.text) ? A.name.end : lt.end;
        pe = ic(lt.getStart(l), ce);
      }
      if (
        (R &&
          (ie === void 0 && (ie = _),
          (ie = `{${ie}}`),
          typeof R != "boolean" && (pe = zu(R, l))),
        g && rnt(g) && A)
      ) {
        ie === void 0 && (ie = _);
        const lt = Bc(A.pos, l);
        let ce = "";
        (lt && M7(lt.end, lt.parent, l) && (ce = ";"),
          (ce += `(await ${A.expression.getText()})`),
          (ie = h ? `${ce}${ie}` : `${ce}${Se ? "?." : "."}${ie}`));
        const _e = ni(A.parent, Pb) ? A.parent : A.expression;
        pe = ic(_e.getStart(l), A.end);
      }
      if (
        (JP(g) &&
          ((xe = [yf(g.moduleSpecifier)]),
          N &&
            (({ insertText: ie, replacementSpan: pe } = Int(
              _,
              N,
              g,
              P,
              l,
              d,
              W,
            )),
            (fe = W.includeCompletionsWithSnippetText ? !0 : void 0))),
        g?.kind === 64 && (X = !0),
        O === 0 &&
          i &&
          ((q = Bc(i.pos, l, i)) == null ? void 0 : q.kind) !== 28 &&
          (Nl(i.parent.parent) ||
            Hf(i.parent.parent) ||
            gp(i.parent.parent) ||
            xg(i.parent) ||
            ((ye = Dn(i.parent, Cc)) == null ? void 0 : ye.getLastToken(l)) ===
              i ||
            (Ud(i.parent) && ca(l, i.getEnd()).line !== ca(l, s).line)) &&
          ((ve = "ObjectLiteralMemberWithComma/"), (X = !0)),
        W.includeCompletionsWithClassMemberSnippets &&
          W.includeCompletionsWithInsertText &&
          O === 3 &&
          vnt(e, o, l))
      ) {
        let lt;
        const ce = v2e(u, d, k, W, _, e, o, s, i, G);
        if (ce)
          (({
            insertText: ie,
            filterText: K,
            isSnippet: fe,
            importAdder: lt,
          } = ce),
            (lt?.hasFixes() || ce.eraseRange) &&
              ((X = !0), (ve = "ClassMemberSnippet/")));
        else return;
      }
      if (
        (g &&
          d2e(g) &&
          (({ insertText: ie, isSnippet: fe, labelDetails: Ce } = g),
          W.useLabelDetailsInCompletionEntries ||
            ((_ = _ + Ce.detail), (Ce = void 0)),
          (ve = "ObjectLiteralMethodSnippet/"),
          (t = Hd.SortBelow(t))),
        j &&
          !J &&
          W.includeCompletionsWithSnippetText &&
          W.jsxAttributeCompletionStyle &&
          W.jsxAttributeCompletionStyle !== "none" &&
          !(i_(o.parent) && o.parent.initializer))
      ) {
        let lt = W.jsxAttributeCompletionStyle === "braces";
        const ce = Je.getTypeOfSymbolAtLocation(e, o);
        (W.jsxAttributeCompletionStyle === "auto" &&
          !(ce.flags & 528) &&
          !(ce.flags & 1048576 && hn(ce.types, (Re) => !!(Re.flags & 528))) &&
          (ce.flags & 402653316 ||
          (ce.flags & 1048576 &&
            Vn(ce.types, (Re) => !!(Re.flags & 402686084 || Kle(Re))))
            ? ((ie = `${OS(_)}=${wP(l, W, "$1")}`), (fe = !0))
            : (lt = !0)),
          lt && ((ie = `${OS(_)}={$1}`), (fe = !0)));
      }
      if (ie !== void 0 && !W.includeCompletionsWithInsertText) return;
      (hz(g) || JP(g)) && ((de = b2e(g)), (X = !N));
      const be = Dn(o, M6);
      if (be) {
        const lt = Ga(u.getCompilationSettings());
        if (!fp(_, lt))
          ((ie = rfe(l, W, _)),
            be.kind === 276 &&
              (yd.setText(l.text),
              yd.resetTokenState(s),
              (yd.scan() === 130 && yd.scan() === 80) ||
                (ie += " as " + ynt(_, lt))));
        else if (be.kind === 276) {
          const ce = HE(_);
          ce && (ce === 135 || HG(ce)) && (ie = `${_} as ${_}_`);
        }
      }
      const Ne = vv.getSymbolKind(Je, e, o),
        Be = Ne === "warning" || Ne === "string" ? [] : void 0;
      return {
        name: _,
        kind: Ne,
        kindModifiers: vv.getSymbolModifiers(Je, e),
        sortText: t,
        source: ve,
        hasAction: X ? !0 : void 0,
        isRecommended: xnt(e, E, Je) || void 0,
        insertText: ie,
        filterText: K,
        replacementSpan: pe,
        sourceDisplay: xe,
        labelDetails: Ce,
        isSnippet: fe,
        isPackageJsonImport: nnt(g) || void 0,
        isImportStatementCompletion: !!N || void 0,
        data: de,
        commitCharacters: Be,
        ...(Z ? { symbol: e } : void 0),
      };
    }
    function ynt(e, t) {
      let r = !1,
        i = "",
        o;
      for (let s = 0; s < e.length; s += o !== void 0 && o >= 65536 ? 2 : 1)
        ((o = e.codePointAt(s)),
          o !== void 0 && (s === 0 ? R_(o, t) : ey(o, t))
            ? (r && (i += "_"), (i += String.fromCodePoint(o)), (r = !1))
            : (r = !0));
      return (r && (i += "_"), i || "_");
    }
    function vnt(e, t, r) {
      return Ir(t)
        ? !1
        : !!(e.flags & 106500) &&
            (ui(t) ||
              (t.parent &&
                t.parent.parent &&
                bc(t.parent) &&
                t === t.parent.name &&
                t.parent.getLastToken(r) === t.parent.name &&
                ui(t.parent.parent)) ||
              (t.parent && ND(t) && ui(t.parent)));
    }
    function v2e(e, t, r, i, o, s, l, u, d, _) {
      const h = Dn(l, ui);
      if (!h) return;
      let g,
        E = o;
      const A = o,
        R = t.getTypeChecker(),
        N = l.getSourceFile(),
        P = GK({
          removeComments: !0,
          module: r.module,
          moduleResolution: r.moduleResolution,
          target: r.target,
          omitTrailingSemicolon: !1,
          newLine: kO(_y(e, _?.options)),
        }),
        k = cu.createImportAdder(N, t, i, e);
      let W;
      if (i.includeCompletionsWithSnippetText) {
        g = !0;
        const ye = L.createEmptyStatement();
        ((W = L.createBlock([ye], !0)), pj(ye, { kind: 0, order: 0 }));
      } else W = L.createBlock([], !0);
      let O = 0;
      const { modifiers: G, range: j, decorators: J } = bnt(d, N, u),
        Z = G & 64 && h.modifierFlagsCache & 64;
      let q = [];
      if (
        (cu.addNewNodeForMemberSymbol(
          s,
          h,
          N,
          { program: t, host: e },
          i,
          k,
          (ye) => {
            let ie = 0;
            (Z && (ie |= 64),
              bc(ye) &&
                R.getMemberOverrideModifierStatus(h, ye, s) === 1 &&
                (ie |= 16),
              q.length || (O = ye.modifierFlagsCache | ie),
              (ye = L.replaceModifiers(ye, O)),
              q.push(ye));
          },
          W,
          cu.PreserveOptionalFlags.Property,
          !!Z,
        ),
        q.length)
      ) {
        const ye = s.flags & 8192;
        let ie = O | 16 | 1;
        ye ? (ie |= 1024) : (ie |= 136);
        const K = G & ie;
        if (G & ~ie) return;
        if (
          (O & 4 && K & 1 && (O &= -5),
          K !== 0 && !(K & 1) && (O &= -2),
          (O |= K),
          (q = q.map((de) => L.replaceModifiers(de, O))),
          J?.length)
        ) {
          const de = q[q.length - 1];
          qS(de) &&
            (q[q.length - 1] = L.replaceDecoratorsAndModifiers(
              de,
              J.concat(mS(de) || []),
            ));
        }
        const pe = 131073;
        _
          ? (E = P.printAndFormatSnippetList(pe, L.createNodeArray(q), N, _))
          : (E = P.printSnippetList(pe, L.createNodeArray(q), N));
      }
      return {
        insertText: E,
        filterText: A,
        isSnippet: g,
        importAdder: k,
        eraseRange: j,
      };
    }
    function bnt(e, t, r) {
      if (!e || ca(t, r).line > ca(t, e.getEnd()).line) return { modifiers: 0 };
      let i = 0,
        o,
        s;
      const l = { pos: r, end: r };
      if (Po(e.parent) && (s = Tnt(e))) {
        e.parent.modifiers &&
          ((i |= Xh(e.parent.modifiers) & 98303),
          (o = e.parent.modifiers.filter(Wc) || []),
          (l.pos = Math.min(...e.parent.modifiers.map((d) => d.getStart(t)))));
        const u = II(s);
        (i & u || ((i |= u), (l.pos = Math.min(l.pos, e.getStart(t)))),
          e.parent.name !== e && (l.end = e.parent.name.getStart(t)));
      }
      return { modifiers: i, decorators: o, range: l.pos < l.end ? l : void 0 };
    }
    function Tnt(e) {
      if (Aa(e)) return e.kind;
      if (He(e)) {
        const t = JE(e);
        if (t && pb(t)) return t;
      }
    }
    function Snt(e, t, r, i, o, s, l, u) {
      const d = l.includeCompletionsWithSnippetText || void 0;
      let _ = t;
      const h = r.getSourceFile(),
        g = Ent(e, r, h, i, o, l);
      if (!g) return;
      const E = GK({
        removeComments: !0,
        module: s.module,
        moduleResolution: s.moduleResolution,
        target: s.target,
        omitTrailingSemicolon: !1,
        newLine: kO(_y(o, u?.options)),
      });
      u
        ? (_ = E.printAndFormatSnippetList(
            80,
            L.createNodeArray([g], !0),
            h,
            u,
          ))
        : (_ = E.printSnippetList(80, L.createNodeArray([g], !0), h));
      const A = zb({
          removeComments: !0,
          module: s.module,
          moduleResolution: s.moduleResolution,
          target: s.target,
          omitTrailingSemicolon: !0,
        }),
        R = L.createMethodSignature(
          void 0,
          "",
          g.questionToken,
          g.typeParameters,
          g.parameters,
          g.type,
        ),
        N = { detail: A.printNode(4, R, h) };
      return { isSnippet: d, insertText: _, labelDetails: N };
    }
    function Ent(e, t, r, i, o, s) {
      const l = e.getDeclarations();
      if (!(l && l.length)) return;
      const u = i.getTypeChecker(),
        d = l[0],
        _ = _s(Oo(d), !1),
        h = u.getWidenedType(u.getTypeOfSymbolAtLocation(e, t)),
        E = 33554432 | (Gp(r, s) === 0 ? 268435456 : 0);
      switch (d.kind) {
        case 172:
        case 173:
        case 174:
        case 175: {
          let A =
            h.flags & 1048576 && h.types.length < 10
              ? u.getUnionType(h.types, 2)
              : h;
          if (A.flags & 1048576) {
            const W = Un(
              A.types,
              (O) => u.getSignaturesOfType(O, 0).length > 0,
            );
            if (W.length === 1) A = W[0];
            else return;
          }
          if (u.getSignaturesOfType(A, 0).length !== 1) return;
          const N = u.typeToTypeNode(
            A,
            t,
            E,
            void 0,
            cu.getNoopSymbolTrackerWithResolver({ program: i, host: o }),
          );
          if (!N || !w_(N)) return;
          let P;
          if (s.includeCompletionsWithSnippetText) {
            const W = L.createEmptyStatement();
            ((P = L.createBlock([W], !0)), pj(W, { kind: 0, order: 0 }));
          } else P = L.createBlock([], !0);
          const k = N.parameters.map((W) =>
            L.createParameterDeclaration(
              void 0,
              W.dotDotDotToken,
              W.name,
              void 0,
              void 0,
              W.initializer,
            ),
          );
          return L.createMethodDeclaration(
            void 0,
            void 0,
            _,
            void 0,
            void 0,
            k,
            void 0,
            P,
          );
        }
        default:
          return;
      }
    }
    function GK(e) {
      let t;
      const r = Rr.createWriter(iv(e)),
        i = zb(e, r),
        o = {
          ...r,
          write: (E) => s(E, () => r.write(E)),
          nonEscapingWrite: r.write,
          writeLiteral: (E) => s(E, () => r.writeLiteral(E)),
          writeStringLiteral: (E) => s(E, () => r.writeStringLiteral(E)),
          writeSymbol: (E, A) => s(E, () => r.writeSymbol(E, A)),
          writeParameter: (E) => s(E, () => r.writeParameter(E)),
          writeComment: (E) => s(E, () => r.writeComment(E)),
          writeProperty: (E) => s(E, () => r.writeProperty(E)),
        };
      return {
        printSnippetList: l,
        printAndFormatSnippetList: d,
        printNode: _,
        printAndFormatNode: g,
      };
      function s(E, A) {
        const R = OS(E);
        if (R !== E) {
          const N = r.getTextPos();
          A();
          const P = r.getTextPos();
          t = Bn(t || (t = []), {
            newText: R,
            span: { start: N, length: P - N },
          });
        } else A();
      }
      function l(E, A, R) {
        const N = u(E, A, R);
        return t ? Rr.applyChanges(N, t) : N;
      }
      function u(E, A, R) {
        return ((t = void 0), o.clear(), i.writeList(E, A, R, o), o.getText());
      }
      function d(E, A, R, N) {
        const P = {
            text: u(E, A, R),
            getLineAndCharacterOfPosition(G) {
              return ca(this, G);
            },
          },
          k = z7(N, R),
          W = Ki(A, (G) => {
            const j = Rr.assignPositionsToNode(G);
            return Nc.formatNodeGivenIndentation(
              j,
              P,
              R.languageVariant,
              0,
              0,
              { ...N, options: k },
            );
          }),
          O = t ? xp(so(W, t), (G, j) => G8(G.span, j.span)) : W;
        return Rr.applyChanges(P.text, O);
      }
      function _(E, A, R) {
        const N = h(E, A, R);
        return t ? Rr.applyChanges(N, t) : N;
      }
      function h(E, A, R) {
        return ((t = void 0), o.clear(), i.writeNode(E, A, R, o), o.getText());
      }
      function g(E, A, R, N) {
        const P = {
            text: h(E, A, R),
            getLineAndCharacterOfPosition(j) {
              return ca(this, j);
            },
          },
          k = z7(N, R),
          W = Rr.assignPositionsToNode(A),
          O = Nc.formatNodeGivenIndentation(W, P, R.languageVariant, 0, 0, {
            ...N,
            options: k,
          }),
          G = t ? xp(so(O, t), (j, J) => G8(j.span, J.span)) : O;
        return Rr.applyChanges(P.text, G);
      }
    }
    function b2e(e) {
      const t = e.fileName ? void 0 : _m(e.moduleSymbol.name),
        r = e.isFromPackageJson ? !0 : void 0;
      return JP(e)
        ? {
            exportName: e.exportName,
            exportMapKey: e.exportMapKey,
            moduleSpecifier: e.moduleSpecifier,
            ambientModuleName: t,
            fileName: e.fileName,
            isPackageJsonImport: r,
          }
        : {
            exportName: e.exportName,
            exportMapKey: e.exportMapKey,
            fileName: e.fileName,
            ambientModuleName: e.fileName ? void 0 : _m(e.moduleSymbol.name),
            isPackageJsonImport: e.isFromPackageJson ? !0 : void 0,
          };
    }
    function Ant(e, t, r) {
      const i = e.exportName === "default",
        o = !!e.isPackageJsonImport;
      return p2e(e)
        ? {
            kind: 32,
            exportName: e.exportName,
            exportMapKey: e.exportMapKey,
            moduleSpecifier: e.moduleSpecifier,
            symbolName: t,
            fileName: e.fileName,
            moduleSymbol: r,
            isDefaultExport: i,
            isFromPackageJson: o,
          }
        : {
            kind: 4,
            exportName: e.exportName,
            exportMapKey: e.exportMapKey,
            symbolName: t,
            fileName: e.fileName,
            moduleSymbol: r,
            isDefaultExport: i,
            isFromPackageJson: o,
          };
    }
    function Int(e, t, r, i, o, s, l) {
      const u = t.replacementSpan,
        d = OS(wP(o, l, r.moduleSpecifier)),
        _ = r.isDefaultExport ? 1 : r.exportName === "export=" ? 2 : 0,
        h = l.includeCompletionsWithSnippetText ? "$1" : "",
        g = cu.getImportKind(o, _, s, !0),
        E = t.couldBeTypeOnlyImportSpecifier,
        A = t.isTopLevelTypeOnly ? ` ${_a(156)} ` : " ",
        R = E ? `${_a(156)} ` : "",
        N = i ? ";" : "";
      switch (g) {
        case 3:
          return {
            replacementSpan: u,
            insertText: `import${A}${OS(e)}${h} = require(${d})${N}`,
          };
        case 1:
          return {
            replacementSpan: u,
            insertText: `import${A}${OS(e)}${h} from ${d}${N}`,
          };
        case 2:
          return {
            replacementSpan: u,
            insertText: `import${A}* as ${OS(e)} from ${d}${N}`,
          };
        case 0:
          return {
            replacementSpan: u,
            insertText: `import${A}{ ${R}${OS(e)}${h} } from ${d}${N}`,
          };
      }
    }
    function rfe(e, t, r) {
      return /^\d+$/.test(r) ? r : wP(e, t, r);
    }
    function xnt(e, t, r) {
      return (
        e === t || (!!(e.flags & 1048576) && r.getExportSymbolOfSymbol(e) === t)
      );
    }
    function ife(e) {
      if (hz(e)) return _m(e.moduleSymbol.name);
      if (JP(e)) return e.moduleSpecifier;
      if (e?.kind === 1) return "ThisProperty/";
      if (e?.kind === 64) return "TypeOnlyAlias/";
    }
    function ofe(
      e,
      t,
      r,
      i,
      o,
      s,
      l,
      u,
      d,
      _,
      h,
      g,
      E,
      A,
      R,
      N,
      P,
      k,
      W,
      O,
      G,
      j,
      J,
      Z,
      q,
      ye = !1,
    ) {
      const ie = Ls(),
        K = Jnt(i, o),
        pe = NO(l),
        de = d.getTypeChecker(),
        fe = new Map();
      for (let X = 0; X < e.length; X++) {
        const Ce = e[X],
          Je = j?.[X],
          Se = jK(Ce, _, Je, g, !!k);
        if (
          !Se ||
          (fe.get(Se.name) && (!Je || !d2e(Je))) ||
          (g === 1 && J && !ve(Ce, J)) ||
          (!N && Ir(l) && xe(Ce))
        )
          continue;
        const { name: re, needsConvertPropertyAccess: be } = Se,
          Ne = J?.[Ta(Ce)] ?? Hd.LocationPriority,
          Be = Xnt(Ce, de) ? Hd.Deprecated(Ne) : Ne,
          lt = gnt(
            Ce,
            Be,
            r,
            i,
            o,
            s,
            l,
            u,
            d,
            re,
            be,
            Je,
            G,
            P,
            W,
            O,
            pe,
            A,
            E,
            g,
            R,
            Z,
            q,
            ye,
          );
        if (!lt) continue;
        const ce =
          (!Je || c2e(Je)) &&
          !(
            Ce.parent === void 0 &&
            !yt(
              Ce.declarations,
              (Re) => Re.getSourceFile() === o.getSourceFile(),
            )
          );
        (fe.set(re, ce), $v(t, lt, _z, void 0, !0));
      }
      return (
        h(
          "getCompletionsAtPosition: getCompletionEntriesFromSymbols: " +
            (Ls() - ie),
        ),
        { has: (X) => fe.has(X), add: (X) => fe.set(X, !0) }
      );
      function ve(X, Ce) {
        var Je;
        let Se = X.flags;
        if (o.parent && ll(o.parent)) return !0;
        if (
          K &&
          ni(K, yi) &&
          (X.valueDeclaration === K ||
            (Qo(K.name) &&
              K.name.elements.some((Ne) => Ne === X.valueDeclaration)))
        )
          return !1;
        const re =
          X.valueDeclaration ??
          ((Je = X.declarations) == null ? void 0 : Je[0]);
        if (K && re) {
          if (to(K) && to(re)) {
            const Ne = K.parent.parameters;
            if (re.pos >= K.pos && re.pos < Ne.end) return !1;
          } else if (sl(K) && sl(re)) {
            if (K === re && i?.kind === 96) return !1;
            if (Knt(i) && !y1(K.parent)) {
              const Ne = K.parent.typeParameters;
              if (Ne && re.pos >= K.pos && re.pos < Ne.end) return !1;
            }
          }
        }
        const be = xd(X, de);
        return l.externalModuleIndicator &&
          !A.allowUmdGlobalAccess &&
          Ce[Ta(X)] === Hd.GlobalsOrKeywords &&
          (Ce[Ta(be)] === Hd.AutoImportSuggestions ||
            Ce[Ta(be)] === Hd.LocationPriority)
          ? !1
          : ((Se |= cD(be)),
            a7(o) ? !!(Se & 1920) : N ? dfe(X, de) : !!(Se & 111551));
      }
      function xe(X) {
        var Ce;
        const Je = cD(xd(X, de));
        return (
          !(Je & 111551) &&
          (!Ir((Ce = X.declarations) == null ? void 0 : Ce[0]) ||
            !!(Je & 788968))
        );
      }
    }
    function Rnt(e) {
      const t = Dnt(e);
      if (t.length)
        return {
          isGlobalCompletion: !1,
          isMemberCompletion: !1,
          isNewIdentifierLocation: !1,
          entries: t,
          defaultCommitCharacters: V1(!1),
        };
    }
    function Dnt(e) {
      const t = [],
        r = new Map();
      let i = e;
      for (; i && !Yo(i); ) {
        if (Lb(i)) {
          const o = i.label.text;
          r.has(o) ||
            (r.set(o, !0),
            t.push({
              name: o,
              kindModifiers: "",
              kind: "label",
              sortText: Hd.LocationPriority,
            }));
        }
        i = i.parent;
      }
      return t;
    }
    function T2e(e, t, r, i, o, s, l) {
      if (o.source === "SwitchCases/") return { type: "cases" };
      if (o.data) {
        const O = A2e(o.name, o.data, e, s);
        if (O) {
          const { contextToken: G, previousToken: j } = VK(i, r);
          return {
            type: "symbol",
            symbol: O.symbol,
            location: ip(r, i),
            previousToken: j,
            contextToken: G,
            isJsxInitializer: !1,
            isTypeOnlyLocation: !1,
            origin: O.origin,
          };
        }
      }
      const u = e.getCompilerOptions(),
        d = E2e(
          e,
          t,
          r,
          u,
          i,
          {
            includeCompletionsForModuleExports: !0,
            includeCompletionsWithInsertText: !0,
          },
          o,
          s,
          void 0,
        );
      if (!d) return { type: "none" };
      if (d.kind !== 0) return { type: "request", request: d };
      const {
          symbols: _,
          literals: h,
          location: g,
          completionKind: E,
          symbolToOriginInfoMap: A,
          contextToken: R,
          previousToken: N,
          isJsxInitializer: P,
          isTypeOnlyLocation: k,
        } = d,
        W = hn(h, (O) => nfe(r, l, O) === o.name);
      return W !== void 0
        ? { type: "literal", literal: W }
        : Hn(_, (O, G) => {
            const j = A[G],
              J = jK(O, Ga(u), j, E, d.isJsxIdentifierExpected);
            return J &&
              J.name === o.name &&
              ((o.source === "ClassMemberSnippet/" && O.flags & 106500) ||
                (o.source === "ObjectLiteralMethodSnippet/" &&
                  O.flags & 8196) ||
                ife(j) === o.source ||
                o.source === "ObjectLiteralMemberWithComma/")
              ? {
                  type: "symbol",
                  symbol: O,
                  location: g,
                  origin: j,
                  contextToken: R,
                  previousToken: N,
                  isJsxInitializer: P,
                  isTypeOnlyLocation: k,
                }
              : void 0;
          }) || { type: "none" };
    }
    function Cnt(e, t, r, i, o, s, l, u, d) {
      const _ = e.getTypeChecker(),
        h = e.getCompilerOptions(),
        { name: g, source: E, data: A } = o,
        { previousToken: R, contextToken: N } = VK(i, r);
      if (px(r, i, R))
        return XK.getStringLiteralCompletionDetails(g, r, i, R, e, s, d, u);
      const P = T2e(e, t, r, i, o, s, u);
      switch (P.type) {
        case "request": {
          const { request: k } = P;
          switch (k.kind) {
            case 1:
              return y0.getJSDocTagNameCompletionDetails(g);
            case 2:
              return y0.getJSDocTagCompletionDetails(g);
            case 3:
              return y0.getJSDocParameterNameCompletionDetails(g);
            case 4:
              return yt(k.keywordCompletions, (W) => W.name === g)
                ? afe(g, "keyword", 5)
                : void 0;
            default:
              return C.assertNever(k);
          }
        }
        case "symbol": {
          const {
              symbol: k,
              location: W,
              contextToken: O,
              origin: G,
              previousToken: j,
            } = P,
            { codeActions: J, sourceDisplay: Z } = Nnt(
              g,
              W,
              O,
              G,
              k,
              e,
              s,
              h,
              r,
              i,
              j,
              l,
              u,
              A,
              E,
              d,
            ),
            q = efe(G) ? G.symbolName : k.name;
          return sfe(k, q, _, r, W, d, J, Z);
        }
        case "literal": {
          const { literal: k } = P;
          return afe(nfe(r, u, k), "string", typeof k == "string" ? 8 : 7);
        }
        case "cases": {
          const k = y2e(N.parent, r, u, e.getCompilerOptions(), s, e, void 0);
          if (k?.importAdder.hasFixes()) {
            const { entry: W, importAdder: O } = k,
              G = Rr.ChangeTracker.with(
                { host: s, formatContext: l, preferences: u },
                O.writeFixes,
              );
            return {
              name: W.name,
              kind: "",
              kindModifiers: "",
              displayParts: [],
              sourceDisplay: void 0,
              codeActions: [
                {
                  changes: G,
                  description: tE([
                    f.Includes_imports_of_types_referenced_by_0,
                    g,
                  ]),
                },
              ],
            };
          }
          return {
            name: g,
            kind: "",
            kindModifiers: "",
            displayParts: [],
            sourceDisplay: void 0,
          };
        }
        case "none":
          return I2e().some((k) => k.name === g)
            ? afe(g, "keyword", 5)
            : void 0;
        default:
          C.assertNever(P);
      }
    }
    function afe(e, t, r) {
      return gz(e, "", t, [yp(e, r)]);
    }
    function sfe(e, t, r, i, o, s, l, u) {
      const {
        displayParts: d,
        documentation: _,
        symbolKind: h,
        tags: g,
      } = r.runWithCancellationToken(s, (E) =>
        vv.getSymbolDisplayPartsDocumentationAndSymbolKind(E, e, i, o, o, 7),
      );
      return gz(t, vv.getSymbolModifiers(r, e), h, d, _, g, l, u);
    }
    function gz(e, t, r, i, o, s, l, u) {
      return {
        name: e,
        kindModifiers: t,
        kind: r,
        displayParts: i,
        documentation: o,
        tags: s,
        codeActions: l,
        source: u,
        sourceDisplay: u,
      };
    }
    function Nnt(e, t, r, i, o, s, l, u, d, _, h, g, E, A, R, N) {
      if (A?.moduleSpecifier && h && L2e(r || h, d).replacementSpan)
        return { codeActions: void 0, sourceDisplay: [yf(A.moduleSpecifier)] };
      if (R === "ClassMemberSnippet/") {
        const { importAdder: J, eraseRange: Z } = v2e(
          l,
          s,
          u,
          E,
          e,
          o,
          t,
          _,
          r,
          g,
        );
        if (J?.hasFixes() || Z)
          return {
            sourceDisplay: void 0,
            codeActions: [
              {
                changes: Rr.ChangeTracker.with(
                  { host: l, formatContext: g, preferences: E },
                  (ye) => {
                    (J && J.writeFixes(ye), Z && ye.deleteRange(d, Z));
                  },
                ),
                description: J?.hasFixes()
                  ? tE([f.Includes_imports_of_types_referenced_by_0, e])
                  : tE([f.Update_modifiers_of_0, e]),
              },
            ],
          };
      }
      if (c2e(i)) {
        const J = cu.getPromoteTypeOnlyCompletionAction(
          d,
          i.declaration.name,
          s,
          l,
          g,
          E,
        );
        return (
          C.assertIsDefined(
            J,
            "Expected to have a code action for promoting type-only alias",
          ),
          { codeActions: [J], sourceDisplay: void 0 }
        );
      }
      if (R === "ObjectLiteralMemberWithComma/" && r) {
        const J = Rr.ChangeTracker.with(
          { host: l, formatContext: g, preferences: E },
          (Z) => Z.insertText(d, r.end, ","),
        );
        if (J)
          return {
            sourceDisplay: void 0,
            codeActions: [
              {
                changes: J,
                description: tE([
                  f.Add_missing_comma_for_object_member_completion_0,
                  e,
                ]),
              },
            ],
          };
      }
      if (!i || !(hz(i) || JP(i)))
        return { codeActions: void 0, sourceDisplay: void 0 };
      const P = i.isFromPackageJson
          ? l.getPackageJsonAutoImportProvider().getTypeChecker()
          : s.getTypeChecker(),
        { moduleSymbol: k } = i,
        W = P.getMergedSymbol(xd(o.exportSymbol || o, P)),
        O = r?.kind === 30 && ru(r.parent),
        { moduleSpecifier: G, codeAction: j } = cu.getImportCompletionAction(
          W,
          k,
          A?.exportMapKey,
          d,
          e,
          O,
          l,
          s,
          g,
          h && He(h) ? h.getStart(d) : _,
          E,
          N,
        );
      return (
        C.assert(!A?.moduleSpecifier || G === A.moduleSpecifier),
        { sourceDisplay: [yf(G)], codeActions: [j] }
      );
    }
    function Mnt(e, t, r, i, o, s, l) {
      const u = T2e(e, t, r, i, o, s, l);
      return u.type === "symbol" ? u.symbol : void 0;
    }
    var S2e = ((e) => (
      (e[(e.ObjectPropertyDeclaration = 0)] = "ObjectPropertyDeclaration"),
      (e[(e.Global = 1)] = "Global"),
      (e[(e.PropertyAccess = 2)] = "PropertyAccess"),
      (e[(e.MemberLike = 3)] = "MemberLike"),
      (e[(e.String = 4)] = "String"),
      (e[(e.None = 5)] = "None"),
      e
    ))(S2e || {});
    function Pnt(e, t, r) {
      return Hn(t && (t.isUnion() ? t.types : [t]), (i) => {
        const o = i && i.symbol;
        return o && o.flags & 424 && !Zne(o) ? lfe(o, e, r) : void 0;
      });
    }
    function Lnt(e, t, r, i) {
      const { parent: o } = e;
      switch (e.kind) {
        case 80:
          return C7(e, i);
        case 64:
          switch (o.kind) {
            case 261:
              return i.getContextualType(o.initializer);
            case 227:
              return i.getTypeAtLocation(o.left);
            case 292:
              return i.getContextualTypeForJsxAttribute(o);
            default:
              return;
          }
        case 105:
          return i.getContextualType(o);
        case 84:
          const s = ni(o, xD);
          return s ? dJ(s, i) : void 0;
        case 19:
          return ID(o) && !r_(o.parent) && !e0(o.parent)
            ? i.getContextualTypeForJsxAttribute(o.parent)
            : void 0;
        default:
          const l = iW.getArgumentInfoForCompletions(e, t, r, i);
          return l
            ? i.getContextualTypeForArgumentAtIndex(
                l.invocation,
                l.argumentIndex,
              )
            : N7(e.kind) && Nr(o) && N7(o.operatorToken.kind)
              ? i.getTypeAtLocation(o.left)
              : i.getContextualType(e, 4) || i.getContextualType(e);
      }
    }
    function lfe(e, t, r) {
      const i = r.getAccessibleSymbolChain(e, t, -1, !1);
      return i ? $a(i) : e.parent && (knt(e.parent) ? e : lfe(e.parent, t, r));
    }
    function knt(e) {
      var t;
      return !!((t = e.declarations) != null && t.some((r) => r.kind === 308));
    }
    function E2e(e, t, r, i, o, s, l, u, d, _) {
      const h = e.getTypeChecker(),
        g = g2e(r, i);
      let E = Ls(),
        A = Fi(r, o);
      (t("getCompletionData: Get current token: " + (Ls() - E)), (E = Ls()));
      const R = mv(r, o, A);
      t("getCompletionData: Is inside comment: " + (Ls() - E));
      let N = !1,
        P = !1,
        k = !1;
      if (R) {
        if (Hle(r, o)) {
          if (r.text.charCodeAt(o - 1) === 64) return { kind: 1 };
          {
            const gt = Em(o, r);
            if (!/[^*|\s(/)]/.test(r.text.substring(gt, o))) return { kind: 2 };
          }
        }
        const Pe = Fnt(A, o);
        if (Pe) {
          if (Pe.tagName.pos <= o && o <= Pe.tagName.end) return { kind: 1 };
          if (o_(Pe)) P = !0;
          else {
            const gt = gn(Pe);
            if (
              (gt &&
                ((A = Fi(r, o)),
                (!A ||
                  (!L_(A) && (A.parent.kind !== 349 || A.parent.name !== A))) &&
                  (N = Xt(gt))),
              !N &&
                mf(Pe) &&
                (Ol(Pe.name) || (Pe.name.pos <= o && o <= Pe.name.end)))
            )
              return { kind: 3, tag: Pe };
          }
        }
        if (!N && !P) {
          t(
            "Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.",
          );
          return;
        }
      }
      E = Ls();
      const W = !N && !P && Pu(r),
        O = VK(o, r),
        G = O.previousToken;
      let j = O.contextToken;
      t("getCompletionData: Get previous token: " + (Ls() - E));
      let J = A,
        Z,
        q = !1,
        ye = !1,
        ie = !1,
        K = !1,
        pe = !1,
        de = !1,
        fe,
        ve = ip(r, o),
        xe = 0,
        X = !1,
        Ce = 0,
        Je;
      if (j) {
        const Pe = L2e(j, r);
        if (Pe.keywordCompletion) {
          if (Pe.isKeywordOnlyCompletion)
            return {
              kind: 4,
              keywordCompletions: [cnt(Pe.keywordCompletion)],
              isNewIdentifierLocation: Pe.isNewIdentifierLocation,
            };
          xe = unt(Pe.keywordCompletion);
        }
        if (
          (Pe.replacementSpan &&
            s.includeCompletionsForImportStatements &&
            s.includeCompletionsWithInsertText &&
            ((Ce |= 2), (fe = Pe), (X = Pe.isNewIdentifierLocation)),
          !Pe.replacementSpan && $o(j))
        )
          return (
            t(
              "Returning an empty list because completion was requested in an invalid position.",
            ),
            xe ? h2e(xe, W, Mn().isNewIdentifierLocation) : void 0
          );
        let gt = j.parent;
        if (j.kind === 25 || j.kind === 29)
          switch (((q = j.kind === 25), (ye = j.kind === 29), gt.kind)) {
            case 212:
              ((Z = gt), (J = Z.expression));
              const Bt = dD(Z);
              if (
                Ol(Bt) ||
                ((Zo(J) || Yo(J)) &&
                  J.end === j.pos &&
                  J.getChildCount(r) &&
                  Ba(J.getChildren(r)).kind !== 22)
              )
                return;
              break;
            case 167:
              J = gt.left;
              break;
            case 268:
              J = gt.name;
              break;
            case 206:
              J = gt;
              break;
            case 237:
              ((J = gt.getFirstToken(r)),
                C.assert(J.kind === 102 || J.kind === 105));
              break;
            default:
              return;
          }
        else if (!fe) {
          if (
            (gt && gt.kind === 212 && ((j = gt), (gt = gt.parent)),
            A.parent === ve)
          )
            switch (A.kind) {
              case 32:
                (A.parent.kind === 285 || A.parent.kind === 287) && (ve = A);
                break;
              case 44:
                A.parent.kind === 286 && (ve = A);
                break;
            }
          switch (gt.kind) {
            case 288:
              j.kind === 44 && ((K = !0), (ve = j));
              break;
            case 227:
              if (!P2e(gt)) break;
            case 286:
            case 285:
            case 287:
              ((de = !0), j.kind === 30 && ((ie = !0), (ve = j)));
              break;
            case 295:
            case 294:
              (G.kind === 20 || (G.kind === 80 && G.parent.kind === 292)) &&
                (de = !0);
              break;
            case 292:
              if (gt.initializer === G && G.end < o) {
                de = !0;
                break;
              }
              switch (G.kind) {
                case 64:
                  pe = !0;
                  break;
                case 80:
                  ((de = !0),
                    gt !== G.parent &&
                      !gt.initializer &&
                      Es(gt, 64, r) &&
                      (pe = G));
              }
              break;
          }
        }
      }
      const Se = Ls();
      let re = 5,
        be = !1,
        Ne = [],
        Be;
      const lt = [],
        ce = [],
        Re = new Set(),
        _e = Ci(),
        je = Fh((Pe) => p0(Pe ? u.getPackageJsonAutoImportProvider() : e, u));
      if (q || ye) Kn();
      else if (ie)
        ((Ne = h.getJsxIntrinsicTagNamesAt(ve)),
          C.assertEachIsDefined(
            Ne,
            "getJsxIntrinsicTagNames() should all be defined",
          ),
          Di(),
          (re = 1),
          (xe = 0));
      else if (K) {
        const Pe = j.parent.parent.openingElement.tagName,
          gt = h.getSymbolAtLocation(Pe);
        (gt && (Ne = [gt]), (re = 1), (xe = 0));
      } else if (!Di()) return xe ? h2e(xe, W, X) : void 0;
      t("getCompletionData: Semantic work: " + (Ls() - Se));
      const Ge = G && Lnt(G, o, r, h),
        at =
          !ni(G, ds) && !de
            ? Ui(Ge && (Ge.isUnion() ? Ge.types : [Ge]), (Pe) =>
                Pe.isLiteral() && !(Pe.flags & 1024) ? Pe.value : void 0,
              )
            : [],
        Wt = G && Ge && Pnt(G, Ge, h);
      return {
        kind: 0,
        symbols: Ne,
        completionKind: re,
        isInSnippetScope: k,
        propertyAccessToConvert: Z,
        isNewIdentifierLocation: X,
        location: ve,
        keywordFilters: xe,
        literals: at,
        symbolToOriginInfoMap: lt,
        recommendedCompletion: Wt,
        previousToken: G,
        contextToken: j,
        isJsxInitializer: pe,
        insideJsDocTagTypeExpression: N,
        symbolToSortTextMap: ce,
        isTypeOnlyLocation: _e,
        isJsxIdentifierExpected: de,
        isRightOfOpenTag: ie,
        isRightOfDotOrQuestionDot: q || ye,
        importStatementCompletion: fe,
        hasUnresolvedAutoImports: be,
        flags: Ce,
        defaultCommitCharacters: Je,
      };
      function cn(Pe) {
        switch (Pe.kind) {
          case 342:
          case 349:
          case 343:
          case 345:
          case 347:
          case 350:
          case 351:
            return !0;
          case 346:
            return !!Pe.constraint;
          default:
            return !1;
        }
      }
      function gn(Pe) {
        if (cn(Pe)) {
          const gt = bm(Pe) ? Pe.constraint : Pe.typeExpression;
          return gt && gt.kind === 310 ? gt : void 0;
        }
        if (QI(Pe) || R4(Pe)) return Pe.class;
      }
      function Kn() {
        re = 2;
        const Pe = ry(J),
          gt = (Pe && !J.isTypeOf) || Hh(J.parent) || bO(j, r, h),
          Bt = a7(J);
        if (Mu(J) || Pe || qr(J)) {
          const gr = uc(J.parent);
          gr && ((X = !0), (Je = []));
          let tr = h.getSymbolAtLocation(J);
          if (tr && ((tr = xd(tr, h)), tr.flags & 1920)) {
            const Jn = h.getExportsOfModule(tr);
            C.assertEachIsDefined(
              Jn,
              "getExportsOfModule() should all be defined",
            );
            const ft = (Qt) =>
                h.isValidPropertyAccess(Pe ? J : J.parent, Qt.name),
              Mt = (Qt) => dfe(Qt, h),
              jt = gr
                ? (Qt) => {
                    var In;
                    return (
                      !!(Qt.flags & 1920) &&
                      !(
                        (In = Qt.declarations) != null &&
                        In.every((yn) => yn.parent === J.parent)
                      )
                    );
                  }
                : Bt
                  ? (Qt) => Mt(Qt) || ft(Qt)
                  : gt || N
                    ? Mt
                    : ft;
            for (const Qt of Jn) jt(Qt) && Ne.push(Qt);
            if (
              !gt &&
              !N &&
              tr.declarations &&
              tr.declarations.some(
                (Qt) => Qt.kind !== 308 && Qt.kind !== 268 && Qt.kind !== 267,
              )
            ) {
              let Qt = h.getTypeOfSymbolAtLocation(tr, J).getNonOptionalType(),
                In = !1;
              if (Qt.isNullableType()) {
                const yn =
                  q && !ye && s.includeAutomaticOptionalChainCompletions !== !1;
                (yn || ye) && ((Qt = Qt.getNonNullableType()), yn && (In = !0));
              }
              _t(Qt, !!(J.flags & 65536), In);
            }
            return;
          }
        }
        if (!gt || EI(J)) {
          h.tryGetThisTypeAt(J, !1);
          let gr = h.getTypeAtLocation(J).getNonOptionalType();
          if (gt) _t(gr.getNonNullableType(), !1, !1);
          else {
            let tr = !1;
            if (gr.isNullableType()) {
              const Jn =
                q && !ye && s.includeAutomaticOptionalChainCompletions !== !1;
              (Jn || ye) && ((gr = gr.getNonNullableType()), Jn && (tr = !0));
            }
            _t(gr, !!(J.flags & 65536), tr);
          }
        }
      }
      function _t(Pe, gt, Bt) {
        (Pe.getStringIndexType() && ((X = !0), (Je = [])),
          ye && yt(Pe.getCallSignatures()) && ((X = !0), Je ?? (Je = l_)));
        const gr = J.kind === 206 ? J : J.parent;
        if (g)
          for (const tr of Pe.getApparentProperties())
            h.isValidPropertyAccessForCompletions(gr, Pe, tr) && en(tr, !1, Bt);
        else
          Ne.push(
            ...Un(JK(Pe, h), (tr) =>
              h.isValidPropertyAccessForCompletions(gr, Pe, tr),
            ),
          );
        if (gt && s.includeCompletionsWithInsertText) {
          const tr = h.getPromisedTypeOfPromise(Pe);
          if (tr)
            for (const Jn of tr.getApparentProperties())
              h.isValidPropertyAccessForCompletions(gr, tr, Jn) &&
                en(Jn, !0, Bt);
        }
      }
      function en(Pe, gt, Bt) {
        var gr;
        const tr = Hn(Pe.declarations, (jt) => ni(Oo(jt), va));
        if (tr) {
          const jt = ir(tr.expression),
            Qt = jt && h.getSymbolAtLocation(jt),
            In = Qt && lfe(Qt, j, h),
            yn = In && Ta(In);
          if (yn && gm(Re, yn)) {
            const wt = Ne.length;
            (Ne.push(In), (ce[Ta(In)] = Hd.GlobalsOrKeywords));
            const En = In.parent;
            if (
              !En ||
              !dI(En) ||
              h.tryGetMemberInModuleExportsAndProperties(In.name, En) !== In
            )
              lt[wt] = { kind: Mt(2) };
            else {
              const xn = td(_m(En.name))
                  ? (gr = X2(En)) == null
                    ? void 0
                    : gr.fileName
                  : void 0,
                { moduleSpecifier: Ln } =
                  (
                    Be || (Be = cu.createImportSpecifierResolver(r, e, u, s))
                  ).getModuleSpecifierForBestExportInfo(
                    [
                      {
                        exportKind: 0,
                        moduleFileName: xn,
                        isFromPackageJson: !1,
                        moduleSymbol: En,
                        symbol: In,
                        targetFlags: xd(In, h).flags,
                      },
                    ],
                    o,
                    HT(ve),
                  ) || {};
              if (Ln) {
                const ln = {
                  kind: Mt(6),
                  moduleSymbol: En,
                  isDefaultExport: !1,
                  symbolName: In.name,
                  exportName: In.name,
                  fileName: xn,
                  moduleSpecifier: Ln,
                };
                lt[wt] = ln;
              }
            }
          } else if (s.includeCompletionsWithInsertText) {
            if (yn && Re.has(yn)) return;
            (ft(Pe), Jn(Pe), Ne.push(Pe));
          }
        } else (ft(Pe), Jn(Pe), Ne.push(Pe));
        function Jn(jt) {
          Unt(jt) && (ce[Ta(jt)] = Hd.LocalDeclarationPriority);
        }
        function ft(jt) {
          s.includeCompletionsWithInsertText &&
            (gt && gm(Re, Ta(jt))
              ? (lt[Ne.length] = { kind: Mt(8) })
              : Bt && (lt[Ne.length] = { kind: 16 }));
        }
        function Mt(jt) {
          return Bt ? jt | 16 : jt;
        }
      }
      function ir(Pe) {
        return He(Pe) ? Pe : qr(Pe) ? ir(Pe.expression) : void 0;
      }
      function Di() {
        return (
          (ot() ||
            Ft() ||
            Zr() ||
            le() ||
            ht() ||
            ne() ||
            lo() ||
            Fe() ||
            zt() ||
            (Ai(), 1)) === 1
        );
      }
      function lo() {
        return dt(j) ? ((re = 5), (X = !0), (xe = 4), 1) : 0;
      }
      function zt() {
        const Pe = Ue(j),
          gt = Pe && h.getContextualType(Pe.attributes);
        if (!gt) return 0;
        const Bt = Pe && h.getContextualType(Pe.attributes, 4);
        return (
          (Ne = so(
            Ne,
            xt(qK(gt, Bt, Pe.attributes, h), Pe.attributes.properties),
          )),
          he(),
          (re = 3),
          (X = !1),
          1
        );
      }
      function Zr() {
        return fe ? ((X = !0), mn(), 1) : 0;
      }
      function Ai() {
        ((xe = Lt(j) ? 5 : 1),
          (re = 1),
          ({ isNewIdentifierLocation: X, defaultCommitCharacters: Je } = Mn()),
          G !== j &&
            C.assert(
              !!G,
              "Expected 'contextToken' to be defined when different from 'previousToken'.",
            ));
        const Pe = G !== j ? G.getStart() : o,
          gt = qi(j, Pe, r) || r;
        k = Pr(gt);
        const Bt = (_e ? 0 : 111551) | 788968 | 1920 | 2097152,
          gr = G && !HT(G);
        ((Ne = so(Ne, h.getSymbolsInScope(gt, Bt))),
          C.assertEachIsDefined(
            Ne,
            "getSymbolsInScope() should all be defined",
          ));
        for (let tr = 0; tr < Ne.length; tr++) {
          const Jn = Ne[tr];
          if (
            (!h.isArgumentsSymbol(Jn) &&
              !yt(Jn.declarations, (ft) => ft.getSourceFile() === r) &&
              (ce[Ta(Jn)] = Hd.GlobalsOrKeywords),
            gr && !(Jn.flags & 111551))
          ) {
            const ft = Jn.declarations && hn(Jn.declarations, FR);
            if (ft) {
              const Mt = { kind: 64, declaration: ft };
              lt[tr] = Mt;
            }
          }
        }
        if (s.includeCompletionsWithInsertText && gt.kind !== 308) {
          const tr = h.tryGetThisTypeAt(gt, !1, ui(gt.parent) ? gt : void 0);
          if (tr && !jnt(tr, r, h))
            for (const Jn of JK(tr, h))
              ((lt[Ne.length] = { kind: 1 }),
                Ne.push(Jn),
                (ce[Ta(Jn)] = Hd.SuggestedClassMembers));
        }
        (mn(), _e && (xe = j && yS(j.parent) ? 6 : 7));
      }
      function Ni() {
        var Pe;
        return fe
          ? !0
          : s.includeCompletionsForModuleExports
            ? r.externalModuleIndicator ||
              r.commonJsModuleIndicator ||
              Jq(e.getCompilerOptions())
              ? !0
              : ((Pe = e.getSymlinkCache) == null
                  ? void 0
                  : Pe.call(e).hasAnySymlinks()) ||
                !!e.getCompilerOptions().paths ||
                $le(e)
            : !1;
      }
      function Pr(Pe) {
        switch (Pe.kind) {
          case 308:
          case 229:
          case 295:
          case 242:
            return !0;
          default:
            return Vi(Pe);
        }
      }
      function Ci() {
        return (
          N ||
          P ||
          (!!fe && Qy(ve.parent)) ||
          (!$e(j) && (bO(j, r, h) || Hh(ve) || At(j)))
        );
      }
      function $e(Pe) {
        return (
          Pe &&
          ((Pe.kind === 114 && (Pe.parent.kind === 187 || TD(Pe.parent))) ||
            (Pe.kind === 131 && Pe.parent.kind === 183))
        );
      }
      function At(Pe) {
        if (Pe) {
          const gt = Pe.parent.kind;
          switch (Pe.kind) {
            case 59:
              return (
                gt === 173 || gt === 172 || gt === 170 || gt === 261 || aI(gt)
              );
            case 64:
              return gt === 266 || gt === 169;
            case 130:
              return gt === 235;
            case 30:
              return gt === 184 || gt === 217;
            case 96:
              return gt === 169;
            case 152:
              return gt === 239;
          }
        }
        return !1;
      }
      function mn() {
        var Pe, gt;
        if (
          !Ni() ||
          (C.assert(
            !l?.data,
            "Should not run 'collectAutoImports' when faster path is available via `data`",
          ),
          l && !l.source)
        )
          return;
        Ce |= 1;
        const gr = G === j && fe ? "" : G && He(G) ? G.text.toLowerCase() : "",
          tr = (Pe = u.getModuleSpecifierCache) == null ? void 0 : Pe.call(u),
          Jn = wO(r, u, e, s, _),
          ft =
            (gt = u.getPackageJsonAutoImportProvider) == null
              ? void 0
              : gt.call(u),
          Mt = l ? void 0 : aC(r, s, u);
        u2e(
          "collectAutoImports",
          u,
          Be || (Be = cu.createImportSpecifierResolver(r, e, u, s)),
          e,
          o,
          s,
          !!fe,
          HT(ve),
          (Qt) => {
            (Jn.search(
              r.path,
              ie,
              (In, yn) => {
                if (
                  !fp(In, Ga(u.getCompilationSettings())) ||
                  (!l && SI(In)) ||
                  (!_e && !fe && !(yn & 111551)) ||
                  (_e && !(yn & 790504))
                )
                  return !1;
                const wt = In.charCodeAt(0);
                return ie && (wt < 65 || wt > 90) ? !1 : l ? !0 : F2e(In, gr);
              },
              (In, yn, wt, En) => {
                if (
                  (l &&
                    !yt(In, (sa) => l.source === _m(sa.moduleSymbol.name))) ||
                  ((In = Un(In, jt)), !In.length)
                )
                  return;
                const xn = Qt.tryResolve(In, wt) || {};
                if (xn === "failed") return;
                let Ln = In[0],
                  ln;
                xn !== "skipped" &&
                  ({ exportInfo: Ln = In[0], moduleSpecifier: ln } = xn);
                const Ii = Ln.exportKind === 1,
                  ra =
                    (Ii && mM(C.checkDefined(Ln.symbol))) ||
                    C.checkDefined(Ln.symbol);
                dr(ra, {
                  kind: ln ? 32 : 4,
                  moduleSpecifier: ln,
                  symbolName: yn,
                  exportMapKey: En,
                  exportName:
                    Ln.exportKind === 2
                      ? "export="
                      : C.checkDefined(Ln.symbol).name,
                  fileName: Ln.moduleFileName,
                  isDefaultExport: Ii,
                  moduleSymbol: Ln.moduleSymbol,
                  isFromPackageJson: Ln.isFromPackageJson,
                });
              },
            ),
              (be = Qt.skippedAny()),
              (Ce |= Qt.resolvedAny() ? 8 : 0),
              (Ce |= Qt.resolvedBeyondLimit() ? 16 : 0));
          },
        );
        function jt(Qt) {
          return EJ(
            Qt.isFromPackageJson ? ft : e,
            r,
            ni(Qt.moduleSymbol.valueDeclaration, Yi),
            Qt.moduleSymbol,
            s,
            Mt,
            je(Qt.isFromPackageJson),
            tr,
          );
        }
      }
      function dr(Pe, gt) {
        const Bt = Ta(Pe);
        ce[Bt] !== Hd.GlobalsOrKeywords &&
          ((lt[Ne.length] = gt),
          (ce[Bt] = fe ? Hd.LocationPriority : Hd.AutoImportSuggestions),
          Ne.push(Pe));
      }
      function ri(Pe, gt) {
        Ir(ve) ||
          Pe.forEach((Bt) => {
            if (!ai(Bt)) return;
            const gr = jK(Bt, Ga(i), void 0, 0, !1);
            if (!gr) return;
            const { name: tr } = gr,
              Jn = Snt(Bt, tr, gt, e, u, i, s, d);
            if (!Jn) return;
            const ft = { kind: 128, ...Jn };
            ((Ce |= 32), (lt[Ne.length] = ft), Ne.push(Bt));
          });
      }
      function ai(Pe) {
        return !!(Pe.flags & 8196);
      }
      function qi(Pe, gt, Bt) {
        let gr = Pe;
        for (; gr && !Pq(gr, gt, Bt); ) gr = gr.parent;
        return gr;
      }
      function $o(Pe) {
        const gt = Ls(),
          Bt = Uo(Pe) || It(Pe) || Kt(Pe) || Ia(Pe) || yD(Pe);
        return (
          t(
            "getCompletionsAtPosition: isCompletionListBlocker: " + (Ls() - gt),
          ),
          Bt
        );
      }
      function Ia(Pe) {
        if (Pe.kind === 12) return !0;
        if (Pe.kind === 32 && Pe.parent) {
          if (ve === Pe.parent && (ve.kind === 287 || ve.kind === 286))
            return !1;
          if (Pe.parent.kind === 287) return ve.parent.kind !== 287;
          if (Pe.parent.kind === 288 || Pe.parent.kind === 286)
            return !!Pe.parent.parent && Pe.parent.parent.kind === 285;
        }
        return !1;
      }
      function Mn() {
        if (j) {
          const Pe = j.parent.kind,
            gt = HK(j);
          switch (gt) {
            case 28:
              switch (Pe) {
                case 214:
                case 215: {
                  const Bt = j.parent.expression;
                  return ca(r, Bt.end).line !== ca(r, o).line
                    ? {
                        defaultCommitCharacters: FK,
                        isNewIdentifierLocation: !0,
                      }
                    : {
                        defaultCommitCharacters: l_,
                        isNewIdentifierLocation: !0,
                      };
                }
                case 227:
                  return {
                    defaultCommitCharacters: FK,
                    isNewIdentifierLocation: !0,
                  };
                case 177:
                case 185:
                case 211:
                  return {
                    defaultCommitCharacters: [],
                    isNewIdentifierLocation: !0,
                  };
                case 210:
                  return {
                    defaultCommitCharacters: l_,
                    isNewIdentifierLocation: !0,
                  };
                default:
                  return {
                    defaultCommitCharacters: l_,
                    isNewIdentifierLocation: !1,
                  };
              }
            case 21:
              switch (Pe) {
                case 214:
                case 215: {
                  const Bt = j.parent.expression;
                  return ca(r, Bt.end).line !== ca(r, o).line
                    ? {
                        defaultCommitCharacters: FK,
                        isNewIdentifierLocation: !0,
                      }
                    : {
                        defaultCommitCharacters: l_,
                        isNewIdentifierLocation: !0,
                      };
                }
                case 218:
                  return {
                    defaultCommitCharacters: FK,
                    isNewIdentifierLocation: !0,
                  };
                case 177:
                case 197:
                  return {
                    defaultCommitCharacters: [],
                    isNewIdentifierLocation: !0,
                  };
                default:
                  return {
                    defaultCommitCharacters: l_,
                    isNewIdentifierLocation: !1,
                  };
              }
            case 23:
              switch (Pe) {
                case 210:
                case 182:
                case 190:
                case 168:
                  return {
                    defaultCommitCharacters: l_,
                    isNewIdentifierLocation: !0,
                  };
                default:
                  return {
                    defaultCommitCharacters: l_,
                    isNewIdentifierLocation: !1,
                  };
              }
            case 144:
            case 145:
            case 102:
              return {
                defaultCommitCharacters: [],
                isNewIdentifierLocation: !0,
              };
            case 25:
              switch (Pe) {
                case 268:
                  return {
                    defaultCommitCharacters: [],
                    isNewIdentifierLocation: !0,
                  };
                default:
                  return {
                    defaultCommitCharacters: l_,
                    isNewIdentifierLocation: !1,
                  };
              }
            case 19:
              switch (Pe) {
                case 264:
                case 211:
                  return {
                    defaultCommitCharacters: [],
                    isNewIdentifierLocation: !0,
                  };
                default:
                  return {
                    defaultCommitCharacters: l_,
                    isNewIdentifierLocation: !1,
                  };
              }
            case 64:
              switch (Pe) {
                case 261:
                case 227:
                  return {
                    defaultCommitCharacters: l_,
                    isNewIdentifierLocation: !0,
                  };
                default:
                  return {
                    defaultCommitCharacters: l_,
                    isNewIdentifierLocation: !1,
                  };
              }
            case 16:
              return {
                defaultCommitCharacters: l_,
                isNewIdentifierLocation: Pe === 229,
              };
            case 17:
              return {
                defaultCommitCharacters: l_,
                isNewIdentifierLocation: Pe === 240,
              };
            case 134:
              return Pe === 175 || Pe === 305
                ? { defaultCommitCharacters: [], isNewIdentifierLocation: !0 }
                : { defaultCommitCharacters: l_, isNewIdentifierLocation: !1 };
            case 42:
              return Pe === 175
                ? { defaultCommitCharacters: [], isNewIdentifierLocation: !0 }
                : { defaultCommitCharacters: l_, isNewIdentifierLocation: !1 };
          }
          if (yz(gt))
            return { defaultCommitCharacters: [], isNewIdentifierLocation: !0 };
        }
        return { defaultCommitCharacters: l_, isNewIdentifierLocation: !1 };
      }
      function Uo(Pe) {
        return (
          (mj(Pe) || X9(Pe)) &&
          (yO(Pe, o) || (o === Pe.end && (!!Pe.isUnterminated || mj(Pe))))
        );
      }
      function ot() {
        const Pe = Gnt(j);
        if (!Pe) return 0;
        const Bt = (JI(Pe.parent) ? Pe.parent : void 0) || Pe,
          gr = M2e(Bt, h);
        if (!gr) return 0;
        const tr = h.getTypeFromTypeNode(Bt),
          Jn = JK(gr, h),
          ft = JK(tr, h),
          Mt = new Set();
        return (
          ft.forEach((jt) => Mt.add(jt.escapedName)),
          (Ne = so(
            Ne,
            Un(Jn, (jt) => !Mt.has(jt.escapedName)),
          )),
          (re = 0),
          (X = !0),
          1
        );
      }
      function Ft() {
        if (j?.kind === 26) return 0;
        const Pe = Ne.length,
          gt = wnt(j, o, r);
        if (!gt) return 0;
        re = 0;
        let Bt, gr;
        if (gt.kind === 211) {
          const tr = Hnt(gt, h);
          if (tr === void 0) return gt.flags & 67108864 ? 2 : 0;
          const Jn = h.getContextualType(gt, 4),
            ft = (Jn || tr).getStringIndexType(),
            Mt = (Jn || tr).getNumberIndexType();
          if (
            ((X = !!ft || !!Mt),
            (Bt = qK(tr, Jn, gt, h)),
            (gr = gt.properties),
            Bt.length === 0 && !Mt)
          )
            return 0;
        } else {
          (C.assert(gt.kind === 207), (X = !1));
          const tr = Jh(gt.parent);
          if (!HN(tr)) return C.fail("Root declaration is not variable-like.");
          let Jn = Zy(tr) || !!xc(tr) || tr.parent.parent.kind === 251;
          if (
            (!Jn &&
              tr.kind === 170 &&
              (St(tr.parent)
                ? (Jn = !!h.getContextualType(tr.parent))
                : (tr.parent.kind === 175 || tr.parent.kind === 179) &&
                  (Jn =
                    St(tr.parent.parent) &&
                    !!h.getContextualType(tr.parent.parent))),
            Jn)
          ) {
            const ft = h.getTypeAtLocation(gt);
            if (!ft) return 2;
            ((Bt = h
              .getPropertiesOfType(ft)
              .filter((Mt) => h.isPropertyAccessible(gt, !1, !1, ft, Mt))),
              (gr = gt.elements));
          }
        }
        if (Bt && Bt.length > 0) {
          const tr = Oe(Bt, C.checkDefined(gr));
          ((Ne = so(Ne, tr)),
            he(),
            gt.kind === 211 &&
              s.includeCompletionsWithObjectLiteralMethodSnippets &&
              s.includeCompletionsWithInsertText &&
              (Ae(Pe), ri(tr, gt)));
        }
        return 1;
      }
      function le() {
        if (!j) return 0;
        const Pe =
          j.kind === 19 || j.kind === 28
            ? ni(j.parent, M6)
            : T7(j)
              ? ni(j.parent.parent, M6)
              : void 0;
        if (!Pe) return 0;
        T7(j) || (xe = 8);
        const { moduleSpecifier: gt } =
          Pe.kind === 276 ? Pe.parent.parent : Pe.parent;
        if (!gt) return ((X = !0), Pe.kind === 276 ? 2 : 0);
        const Bt = h.getSymbolAtLocation(gt);
        if (!Bt) return ((X = !0), 2);
        ((re = 3), (X = !1));
        const gr = h.getExportsAndPropertiesOfModule(Bt),
          tr = new Set(
            Pe.elements
              .filter((ft) => !Xt(ft))
              .map((ft) => bS(ft.propertyName || ft.name)),
          ),
          Jn = gr.filter(
            (ft) => ft.escapedName !== "default" && !tr.has(ft.escapedName),
          );
        return ((Ne = so(Ne, Jn)), Jn.length || (xe = 0), 1);
      }
      function ht() {
        if (j === void 0) return 0;
        const Pe =
          j.kind === 19 || j.kind === 28
            ? ni(j.parent, A1)
            : j.kind === 59
              ? ni(j.parent.parent, A1)
              : void 0;
        if (Pe === void 0) return 0;
        const gt = new Set(Pe.elements.map(n4));
        return (
          (Ne = Un(
            h.getTypeAtLocation(Pe).getApparentProperties(),
            (Bt) => !gt.has(Bt.escapedName),
          )),
          1
        );
      }
      function ne() {
        var Pe;
        const gt =
          j && (j.kind === 19 || j.kind === 28) ? ni(j.parent, Jf) : void 0;
        if (!gt) return 0;
        const Bt = Dn(gt, Rp(Yi, uc));
        return (
          (re = 5),
          (X = !1),
          (Pe = Bt.locals) == null ||
            Pe.forEach((gr, tr) => {
              var Jn, ft;
              (Ne.push(gr),
                (ft = (Jn = Bt.symbol) == null ? void 0 : Jn.exports) != null &&
                  ft.has(tr) &&
                  (ce[Ta(gr)] = Hd.OptionalMember));
            }),
          1
        );
      }
      function Fe() {
        const Pe = Bnt(r, j, ve, o);
        if (!Pe) return 0;
        if (
          ((re = 3),
          (X = !0),
          (xe = j.kind === 42 ? 0 : ui(Pe) ? 2 : 3),
          !ui(Pe))
        )
          return 1;
        const gt = j.kind === 27 ? j.parent.parent : j.parent;
        let Bt = bc(gt) ? Gd(gt) : 0;
        if (j.kind === 80 && !Xt(j))
          switch (j.getText()) {
            case "private":
              Bt = Bt | 2;
              break;
            case "static":
              Bt = Bt | 256;
              break;
            case "override":
              Bt = Bt | 16;
              break;
          }
        if ((Ql(gt) && (Bt |= 256), !(Bt & 2))) {
          const gr = ui(Pe) && Bt & 16 ? eI(lh(Pe)) : rM(Pe),
            tr = Ki(gr, (Jn) => {
              const ft = h.getTypeAtLocation(Jn);
              return Bt & 256
                ? ft?.symbol &&
                    h.getPropertiesOfType(
                      h.getTypeOfSymbolAtLocation(ft.symbol, Pe),
                    )
                : ft && h.getPropertiesOfType(ft);
            });
          ((Ne = so(Ne, te(tr, Pe.members, Bt))),
            Ye(Ne, (Jn, ft) => {
              const Mt = Jn?.valueDeclaration;
              if (Mt && bc(Mt) && Mt.name && va(Mt.name)) {
                const jt = { kind: 512, symbolName: h.symbolToString(Jn) };
                lt[ft] = jt;
              }
            }));
        }
        return 1;
      }
      function it(Pe) {
        return (
          !!Pe.parent &&
          to(Pe.parent) &&
          Ml(Pe.parent.parent) &&
          (WN(Pe.kind) || L_(Pe))
        );
      }
      function dt(Pe) {
        if (Pe) {
          const gt = Pe.parent;
          switch (Pe.kind) {
            case 21:
            case 28:
              return Ml(Pe.parent) ? Pe.parent : void 0;
            default:
              if (it(Pe)) return gt.parent;
          }
        }
      }
      function Lt(Pe) {
        if (Pe) {
          let gt;
          const Bt = Dn(Pe.parent, (gr) =>
            ui(gr) ? "quit" : Ms(gr) && gt === gr.body ? !0 : ((gt = gr), !1),
          );
          return Bt && Bt;
        }
      }
      function Ue(Pe) {
        if (Pe) {
          const gt = Pe.parent;
          switch (Pe.kind) {
            case 32:
            case 31:
            case 44:
            case 80:
            case 212:
            case 293:
            case 292:
            case 294:
              if (gt && (gt.kind === 286 || gt.kind === 287)) {
                if (Pe.kind === 32) {
                  const Bt = Bc(Pe.pos, r, void 0);
                  if (!gt.typeArguments || (Bt && Bt.kind === 44)) break;
                }
                return gt;
              } else if (gt.kind === 292) return gt.parent.parent;
              break;
            case 11:
              if (gt && (gt.kind === 292 || gt.kind === 294))
                return gt.parent.parent;
              break;
            case 20:
              if (gt && gt.kind === 295 && gt.parent && gt.parent.kind === 292)
                return gt.parent.parent.parent;
              if (gt && gt.kind === 294) return gt.parent.parent;
              break;
          }
        }
      }
      function Rt(Pe, gt) {
        return r.getLineEndOfPosition(Pe.getEnd()) < gt;
      }
      function It(Pe) {
        const gt = Pe.parent,
          Bt = gt.kind;
        switch (Pe.kind) {
          case 28:
            return (
              Bt === 261 ||
              Tr(Pe) ||
              Bt === 244 ||
              Bt === 267 ||
              nt(Bt) ||
              Bt === 265 ||
              Bt === 208 ||
              Bt === 266 ||
              (ui(gt) && !!gt.typeParameters && gt.typeParameters.end >= Pe.pos)
            );
          case 25:
            return Bt === 208;
          case 59:
            return Bt === 209;
          case 23:
            return Bt === 208;
          case 21:
            return Bt === 300 || nt(Bt);
          case 19:
            return Bt === 267;
          case 30:
            return (
              Bt === 264 || Bt === 232 || Bt === 265 || Bt === 266 || aI(Bt)
            );
          case 126:
            return Bt === 173 && !ui(gt.parent);
          case 26:
            return Bt === 170 || (!!gt.parent && gt.parent.kind === 208);
          case 125:
          case 123:
          case 124:
            return Bt === 170 && !Ml(gt.parent);
          case 130:
            return Bt === 277 || Bt === 282 || Bt === 275;
          case 139:
          case 153:
            return !KK(Pe);
          case 80: {
            if (
              ((Bt === 277 || Bt === 282) &&
                Pe === gt.name &&
                Pe.text === "type") ||
              (Dn(Pe.parent, yi) && Rt(Pe, o))
            )
              return !1;
            break;
          }
          case 86:
          case 94:
          case 120:
          case 100:
          case 115:
          case 102:
          case 121:
          case 87:
          case 140:
            return !0;
          case 156:
            return Bt !== 277;
          case 42:
            return Yo(Pe.parent) && !Nl(Pe.parent);
        }
        if (
          (yz(HK(Pe)) && KK(Pe)) ||
          (it(Pe) && (!He(Pe) || WN(HK(Pe)) || Xt(Pe)))
        )
          return !1;
        switch (HK(Pe)) {
          case 128:
          case 86:
          case 87:
          case 138:
          case 94:
          case 100:
          case 120:
          case 121:
          case 123:
          case 124:
          case 125:
          case 126:
          case 115:
            return !0;
          case 134:
            return Po(Pe.parent);
        }
        if (Dn(Pe.parent, ui) && Pe === G && Ot(Pe, o)) return !1;
        const tr = VT(Pe.parent, 173);
        if (tr && Pe !== G && ui(G.parent.parent) && o <= G.end) {
          if (Ot(Pe, G.end)) return !1;
          if (Pe.kind !== 64 && (Hw(tr) || xF(tr))) return !0;
        }
        return (
          L_(Pe) &&
          !Ud(Pe.parent) &&
          !i_(Pe.parent) &&
          !(
            (ui(Pe.parent) || gd(Pe.parent) || sl(Pe.parent)) &&
            (Pe !== G || o > G.end)
          )
        );
      }
      function Ot(Pe, gt) {
        return Pe.kind !== 64 && (Pe.kind === 27 || !Gf(Pe.end, gt, r));
      }
      function nt(Pe) {
        return aI(Pe) && Pe !== 177;
      }
      function Kt(Pe) {
        if (Pe.kind === 9) {
          const gt = Pe.getFullText();
          return gt.charAt(gt.length - 1) === ".";
        }
        return !1;
      }
      function Tr(Pe) {
        return Pe.parent.kind === 262 && !bO(Pe, r, h);
      }
      function Oe(Pe, gt) {
        if (gt.length === 0) return Pe;
        const Bt = new Set(),
          gr = new Set();
        for (const Jn of gt) {
          if (
            (Jn.kind !== 304 &&
              Jn.kind !== 305 &&
              Jn.kind !== 209 &&
              Jn.kind !== 175 &&
              Jn.kind !== 178 &&
              Jn.kind !== 179 &&
              Jn.kind !== 306) ||
            Xt(Jn)
          )
            continue;
          let ft;
          if (xg(Jn)) Nt(Jn, Bt);
          else if (Ha(Jn) && Jn.propertyName)
            Jn.propertyName.kind === 80 && (ft = Jn.propertyName.escapedText);
          else {
            const Mt = Oo(Jn);
            ft = Mt && qh(Mt) ? aM(Mt) : void 0;
          }
          ft !== void 0 && gr.add(ft);
        }
        const tr = Pe.filter((Jn) => !gr.has(Jn.escapedName));
        return (B(Bt, tr), tr);
      }
      function Nt(Pe, gt) {
        const Bt = Pe.expression,
          gr = h.getSymbolAtLocation(Bt),
          tr = gr && h.getTypeOfSymbolAtLocation(gr, Bt),
          Jn = tr && tr.properties;
        Jn &&
          Jn.forEach((ft) => {
            gt.add(ft.name);
          });
      }
      function he() {
        Ne.forEach((Pe) => {
          if (Pe.flags & 16777216) {
            const gt = Ta(Pe);
            ce[gt] = ce[gt] ?? Hd.OptionalMember;
          }
        });
      }
      function B(Pe, gt) {
        if (Pe.size !== 0)
          for (const Bt of gt)
            Pe.has(Bt.name) &&
              (ce[Ta(Bt)] = Hd.MemberDeclaredBySpreadAssignment);
      }
      function Ae(Pe) {
        for (let gt = Pe; gt < Ne.length; gt++) {
          const Bt = Ne[gt],
            gr = Ta(Bt),
            tr = lt?.[gt],
            Jn = Ga(i),
            ft = jK(Bt, Jn, tr, 0, !1);
          if (ft) {
            const Mt = ce[gr] ?? Hd.LocationPriority,
              { name: jt } = ft;
            ce[gr] = Hd.ObjectLiteralProperty(Mt, jt);
          }
        }
      }
      function te(Pe, gt, Bt) {
        const gr = new Set();
        for (const tr of gt) {
          if (
            (tr.kind !== 173 &&
              tr.kind !== 175 &&
              tr.kind !== 178 &&
              tr.kind !== 179) ||
            Xt(tr) ||
            wp(tr, 2) ||
            ua(tr) !== !!(Bt & 256)
          )
            continue;
          const Jn = c1(tr.name);
          Jn && gr.add(Jn);
        }
        return Pe.filter(
          (tr) =>
            !gr.has(tr.escapedName) &&
            !!tr.declarations &&
            !(Vf(tr) & 2) &&
            !(tr.valueDeclaration && nu(tr.valueDeclaration)),
        );
      }
      function xt(Pe, gt) {
        const Bt = new Set(),
          gr = new Set();
        for (const Jn of gt)
          Xt(Jn) ||
            (Jn.kind === 292 ? Bt.add(PM(Jn.name)) : $I(Jn) && Nt(Jn, gr));
        const tr = Pe.filter((Jn) => !Bt.has(Jn.escapedName));
        return (B(gr, tr), tr);
      }
      function Xt(Pe) {
        return Pe.getStart(r) <= o && o <= Pe.getEnd();
      }
    }
    function wnt(e, t, r) {
      var i;
      if (e) {
        const { parent: o } = e;
        switch (e.kind) {
          case 19:
          case 28:
            if (Wa(o) || ff(o)) return o;
            break;
          case 42:
            return Nl(o) ? ni(o.parent, Wa) : void 0;
          case 134:
            return ni(o.parent, Wa);
          case 80:
            if (e.text === "async" && Ud(e.parent)) return e.parent.parent;
            {
              if (
                Wa(e.parent.parent) &&
                (xg(e.parent) ||
                  (Ud(e.parent) && ca(r, e.getEnd()).line !== ca(r, t).line))
              )
                return e.parent.parent;
              const l = Dn(o, Cc);
              if (l?.getLastToken(r) === e && Wa(l.parent)) return l.parent;
            }
            break;
          default:
            if (
              (i = o.parent) != null &&
              i.parent &&
              (Nl(o.parent) || Hf(o.parent) || gp(o.parent)) &&
              Wa(o.parent.parent)
            )
              return o.parent.parent;
            if (xg(o) && Wa(o.parent)) return o.parent;
            const s = Dn(o, Cc);
            if (e.kind !== 59 && s?.getLastToken(r) === e && Wa(s.parent))
              return s.parent;
        }
      }
    }
    function VK(e, t) {
      const r = Bc(e, t);
      return r && e <= r.end && (dg(r) || ep(r.kind))
        ? { contextToken: Bc(r.getFullStart(), t, void 0), previousToken: r }
        : { contextToken: r, previousToken: r };
    }
    function A2e(e, t, r, i) {
      const o = t.isPackageJsonImport
          ? i.getPackageJsonAutoImportProvider()
          : r,
        s = o.getTypeChecker(),
        l = t.ambientModuleName
          ? s.tryFindAmbientModule(t.ambientModuleName)
          : t.fileName
            ? s.getMergedSymbol(
                C.checkDefined(o.getSourceFile(t.fileName)).symbol,
              )
            : void 0;
      if (!l) return;
      let u =
        t.exportName === "export="
          ? s.resolveExternalModuleSymbol(l)
          : s.tryGetMemberInModuleExportsAndProperties(t.exportName, l);
      return u
        ? ((u = (t.exportName === "default" && mM(u)) || u),
          { symbol: u, origin: Ant(t, e, l) })
        : void 0;
    }
    function jK(e, t, r, i, o) {
      if (ont(r)) return;
      const s = tnt(r) ? r.symbolName : e.name;
      if (s === void 0 || (e.flags & 1536 && mk(s.charCodeAt(0))) || sM(e))
        return;
      const l = { name: s, needsConvertPropertyAccess: !1 };
      if (fp(s, t, o ? 1 : 0) || (e.valueDeclaration && nu(e.valueDeclaration)))
        return l;
      if (e.flags & 2097152) return { name: s, needsConvertPropertyAccess: !0 };
      switch (i) {
        case 3:
          return efe(r)
            ? { name: r.symbolName, needsConvertPropertyAccess: !1 }
            : void 0;
        case 0:
          return { name: JSON.stringify(s), needsConvertPropertyAccess: !1 };
        case 2:
        case 1:
          return s.charCodeAt(0) === 32
            ? void 0
            : { name: s, needsConvertPropertyAccess: !0 };
        case 5:
        case 4:
          return l;
        default:
          C.assertNever(i);
      }
    }
    var UK = [],
      I2e = Nu(() => {
        const e = [];
        for (let t = 83; t <= 166; t++)
          e.push({
            name: _a(t),
            kind: "keyword",
            kindModifiers: "",
            sortText: Hd.GlobalsOrKeywords,
          });
        return e;
      });
    function x2e(e, t) {
      if (!t) return R2e(e);
      const r = e + 8 + 1;
      return UK[r] || (UK[r] = R2e(e).filter((i) => !Ont(HE(i.name))));
    }
    function R2e(e) {
      return (
        UK[e] ||
        (UK[e] = I2e().filter((t) => {
          const r = HE(t.name);
          switch (e) {
            case 0:
              return !1;
            case 1:
              return (
                C2e(r) ||
                r === 138 ||
                r === 144 ||
                r === 156 ||
                r === 145 ||
                r === 128 ||
                (CP(r) && r !== 157)
              );
            case 5:
              return C2e(r);
            case 2:
              return yz(r);
            case 3:
              return D2e(r);
            case 4:
              return WN(r);
            case 6:
              return CP(r) || r === 87;
            case 7:
              return CP(r);
            case 8:
              return r === 156;
            default:
              return C.assertNever(e);
          }
        }))
      );
    }
    function Ont(e) {
      switch (e) {
        case 128:
        case 133:
        case 163:
        case 136:
        case 138:
        case 94:
        case 162:
        case 119:
        case 140:
        case 120:
        case 142:
        case 143:
        case 144:
        case 145:
        case 146:
        case 150:
        case 151:
        case 164:
        case 123:
        case 124:
        case 125:
        case 148:
        case 154:
        case 155:
        case 156:
        case 158:
        case 159:
          return !0;
        default:
          return !1;
      }
    }
    function D2e(e) {
      return e === 148;
    }
    function yz(e) {
      switch (e) {
        case 128:
        case 129:
        case 137:
        case 139:
        case 153:
        case 134:
        case 138:
        case 164:
          return !0;
        default:
          return Y9(e);
      }
    }
    function C2e(e) {
      return (
        e === 134 ||
        e === 135 ||
        e === 160 ||
        e === 130 ||
        e === 152 ||
        e === 156 ||
        (!c6(e) && !yz(e))
      );
    }
    function HK(e) {
      return He(e) ? (JE(e) ?? 0) : e.kind;
    }
    function Wnt(e, t) {
      const r = [];
      if (e) {
        const i = e.getSourceFile(),
          o = e.parent,
          s = i.getLineAndCharacterOfPosition(e.end).line,
          l = i.getLineAndCharacterOfPosition(t).line;
        (vl(o) || (pc(o) && o.moduleSpecifier)) &&
          e === o.moduleSpecifier &&
          s === l &&
          r.push({
            name: _a(132),
            kind: "keyword",
            kindModifiers: "",
            sortText: Hd.GlobalsOrKeywords,
          });
      }
      return r;
    }
    function Fnt(e, t) {
      return Dn(e, (r) => (VR(r) && ZD(r, t) ? !0 : mh(r) ? "quit" : !1));
    }
    function qK(e, t, r, i) {
      const o = t && t !== e,
        s = i.getUnionType(
          Un(
            e.flags & 1048576 ? e.types : [e],
            (_) => !i.getPromisedTypeOfPromise(_),
          ),
        ),
        l = o && !(t.flags & 3) ? i.getUnionType([s, t]) : s,
        u = znt(l, r, i);
      return l.isClass() && N2e(u) ? [] : o ? Un(u, d) : u;
      function d(_) {
        return et(_.declarations)
          ? yt(_.declarations, (h) => h.parent !== r)
          : !0;
      }
    }
    function znt(e, t, r) {
      return e.isUnion()
        ? r.getAllPossiblePropertiesOfTypes(
            Un(
              e.types,
              (i) =>
                !(
                  i.flags & 402784252 ||
                  r.isArrayLikeType(i) ||
                  r.isTypeInvalidDueToUnionDiscriminant(i, t) ||
                  r.typeHasCallOrConstructSignatures(i) ||
                  (i.isClass() && N2e(i.getApparentProperties()))
                ),
            ),
          )
        : e.getApparentProperties();
    }
    function N2e(e) {
      return yt(e, (t) => !!(Vf(t) & 6));
    }
    function JK(e, t) {
      return e.isUnion()
        ? C.checkEachDefined(
            t.getAllPossiblePropertiesOfTypes(e.types),
            "getAllPossiblePropertiesOfTypes() should all be defined",
          )
        : C.checkEachDefined(
            e.getApparentProperties(),
            "getApparentProperties() should all be defined",
          );
    }
    function Bnt(e, t, r, i) {
      switch (r.kind) {
        case 353:
          return ni(r.parent, DI);
        case 1:
          const o = ni(Zs(ma(r.parent, Yi).statements), DI);
          if (o && !Es(o, 20, e)) return o;
          break;
        case 81:
          if (ni(r.parent, Po)) return Dn(r, ui);
          break;
        case 80: {
          if (JE(r) || (Po(r.parent) && r.parent.initializer === r)) return;
          if (KK(r)) return Dn(r, DI);
        }
      }
      if (t) {
        if (r.kind === 137 || (He(t) && Po(t.parent) && ui(r)))
          return Dn(t, ui);
        switch (t.kind) {
          case 64:
            return;
          case 27:
          case 20:
            return KK(r) && r.parent.name === r ? r.parent.parent : ni(r, DI);
          case 19:
          case 28:
            return ni(t.parent, DI);
          default:
            if (DI(r)) {
              if (ca(e, t.getEnd()).line !== ca(e, i).line) return r;
              const o = ui(t.parent.parent) ? yz : D2e;
              return o(t.kind) || t.kind === 42 || (He(t) && o(JE(t) ?? 0))
                ? t.parent.parent
                : void 0;
            }
            return;
        }
      }
    }
    function Gnt(e) {
      if (!e) return;
      const t = e.parent;
      switch (e.kind) {
        case 19:
          if (wu(t)) return t;
          break;
        case 27:
        case 28:
        case 80:
          if (t.kind === 172 && wu(t.parent)) return t.parent;
          break;
      }
    }
    function M2e(e, t) {
      if (!e) return;
      if (Ri(e) && RF(e.parent)) return t.getTypeArgumentConstraint(e);
      const r = M2e(e.parent, t);
      if (r)
        switch (e.kind) {
          case 172:
            return t.getTypeOfPropertyOfContextualType(r, e.symbol.escapedName);
          case 194:
          case 188:
          case 193:
            return r;
        }
    }
    function KK(e) {
      return e.parent && vF(e.parent) && DI(e.parent.parent);
    }
    function Vnt(e, t, r, i) {
      switch (t) {
        case ".":
        case "@":
          return !0;
        case '"':
        case "'":
        case "`":
          return !!r && pce(r) && i === r.getStart(e) + 1;
        case "#":
          return !!r && eo(r) && !!hd(r);
        case "<":
          return !!r && r.kind === 30 && (!Nr(r.parent) || P2e(r.parent));
        case "/":
          return !!r && (ds(r) ? !!bk(r) : r.kind === 44 && VS(r.parent));
        case " ":
          return !!r && BM(r) && r.parent.kind === 308;
        default:
          return C.assertNever(t);
      }
    }
    function P2e({ left: e }) {
      return Ol(e);
    }
    function jnt(e, t, r) {
      const i = r.resolveName("self", void 0, 111551, !1);
      if (i && r.getTypeOfSymbolAtLocation(i, t) === e) return !0;
      const o = r.resolveName("global", void 0, 111551, !1);
      if (o && r.getTypeOfSymbolAtLocation(o, t) === e) return !0;
      const s = r.resolveName("globalThis", void 0, 111551, !1);
      return !!(s && r.getTypeOfSymbolAtLocation(s, t) === e);
    }
    function Unt(e) {
      return !!(
        e.valueDeclaration &&
        Gd(e.valueDeclaration) & 256 &&
        ui(e.valueDeclaration.parent)
      );
    }
    function Hnt(e, t) {
      const r = t.getContextualType(e);
      if (r) return r;
      const i = zm(e.parent);
      if (Nr(i) && i.operatorToken.kind === 64 && e === i.left)
        return t.getTypeAtLocation(i);
      if (St(i)) return t.getContextualType(i);
    }
    function L2e(e, t) {
      var r, i, o;
      let s,
        l = !1;
      const u = d();
      return {
        isKeywordOnlyCompletion: l,
        keywordCompletion: s,
        isNewIdentifierLocation: !!(u || s === 156),
        isTopLevelTypeOnly:
          !!(
            (i = (r = ni(u, vl)) == null ? void 0 : r.importClause) != null &&
            i.isTypeOnly
          ) || !!((o = ni(u, Fc)) != null && o.isTypeOnly),
        couldBeTypeOnlyImportSpecifier: !!u && w2e(u, e),
        replacementSpan: qnt(u),
      };
      function d() {
        const _ = e.parent;
        if (Fc(_)) {
          const h = _.getLastToken(t);
          if (He(e) && h !== e) {
            ((s = 161), (l = !0));
            return;
          }
          return (
            (s = e.kind === 156 ? void 0 : 156),
            cfe(_.moduleReference) ? _ : void 0
          );
        }
        if (w2e(_, e) && O2e(_.parent)) return _;
        if (n_(_) || Ig(_)) {
          if (
            (!_.parent.isTypeOnly &&
              (e.kind === 19 || e.kind === 102 || e.kind === 28) &&
              (s = 156),
            O2e(_))
          )
            if (e.kind === 20 || e.kind === 80) ((l = !0), (s = 161));
            else return _.parent.parent;
          return;
        }
        if ((pc(_) && e.kind === 42) || (Jf(_) && e.kind === 20)) {
          ((l = !0), (s = 161));
          return;
        }
        if (BM(e) && Yi(_)) return ((s = 156), e);
        if (BM(e) && vl(_))
          return ((s = 156), cfe(_.moduleSpecifier) ? _ : void 0);
      }
    }
    function qnt(e) {
      var t;
      if (!e) return;
      const r = Dn(e, Rp(vl, Fc, o_)) ?? e,
        i = r.getSourceFile();
      if (p1(r, i)) return zu(r, i);
      C.assert(r.kind !== 102 && r.kind !== 277);
      const o =
          r.kind === 273 || r.kind === 352
            ? (k2e((t = r.importClause) == null ? void 0 : t.namedBindings) ??
              r.moduleSpecifier)
            : r.moduleReference,
        s = { pos: r.getFirstToken().getStart(), end: o.pos };
      if (p1(s, i)) return _v(s);
    }
    function k2e(e) {
      var t;
      return hn((t = ni(e, n_)) == null ? void 0 : t.elements, (r) => {
        var i;
        return (
          !r.propertyName &&
          SI(r.name.text) &&
          ((i = Bc(r.name.pos, e.getSourceFile(), e)) == null
            ? void 0
            : i.kind) !== 28
        );
      });
    }
    function w2e(e, t) {
      return Eu(e) && (e.isTypeOnly || (t === e.name && T7(t)));
    }
    function O2e(e) {
      if (!cfe(e.parent.parent.moduleSpecifier) || e.parent.name) return !1;
      if (n_(e)) {
        const t = k2e(e);
        return (t ? e.elements.indexOf(t) : e.elements.length) < 2;
      }
      return !0;
    }
    function cfe(e) {
      var t;
      return Ol(e)
        ? !0
        : !((t = ni(uy(e) ? e.expression : e, ds)) != null && t.text);
    }
    function Jnt(e, t) {
      if (!e) return;
      let r = Dn(e, (i) =>
        SS(i) || W2e(i) || Qo(i) ? "quit" : (to(i) || sl(i)) && !Mb(i.parent),
      );
      return (
        r || (r = Dn(t, (i) => (SS(i) || W2e(i) || Qo(i) ? "quit" : yi(i)))),
        r
      );
    }
    function Knt(e) {
      if (!e) return !1;
      let t = e,
        r = e.parent;
      for (; r; ) {
        if (sl(r)) return r.default === t || t.kind === 64;
        ((t = r), (r = r.parent));
      }
      return !1;
    }
    function W2e(e) {
      return e.parent && Xs(e.parent) && (e.parent.body === e || e.kind === 39);
    }
    function dfe(e, t, r = new Set()) {
      return i(e) || i(xd(e.exportSymbol || e, t));
      function i(o) {
        return (
          !!(o.flags & 788968) ||
          t.isUnknownSymbol(o) ||
          (!!(o.flags & 1536) &&
            gm(r, o) &&
            t.getExportsOfModule(o).some((s) => dfe(s, t, r)))
        );
      }
    }
    function Xnt(e, t) {
      const r = xd(e, t).declarations;
      return !!et(r) && Vn(r, W7);
    }
    function F2e(e, t) {
      if (t.length === 0) return !0;
      let r = !1,
        i,
        o = 0;
      const s = e.length;
      for (let l = 0; l < s; l++) {
        const u = e.charCodeAt(l),
          d = t.charCodeAt(o);
        if (
          (u === d || u === Ynt(d)) &&
          (r ||
            (r =
              i === void 0 ||
              (97 <= i && i <= 122 && 65 <= u && u <= 90) ||
              (i === 95 && u !== 95)),
          r && o++,
          o === t.length)
        )
          return !0;
        i = u;
      }
      return !1;
    }
    function Ynt(e) {
      return 97 <= e && e <= 122 ? e - 32 : e;
    }
    function $nt(e) {
      return (
        e === "abstract" ||
        e === "async" ||
        e === "await" ||
        e === "declare" ||
        e === "module" ||
        e === "namespace" ||
        e === "type" ||
        e === "satisfies" ||
        e === "as"
      );
    }
    var XK = {};
    x(XK, {
      getStringLiteralCompletionDetails: () => ert,
      getStringLiteralCompletions: () => Qnt,
    });
    var z2e = { directory: 0, script: 1, "external module name": 2 };
    function ufe() {
      const e = new Map();
      function t(r) {
        const i = e.get(r.name);
        (!i || z2e[i.kind] < z2e[r.kind]) && e.set(r.name, r);
      }
      return { add: t, has: e.has.bind(e), values: e.values.bind(e) };
    }
    function Qnt(e, t, r, i, o, s, l, u, d) {
      if (Xle(e, t)) {
        const _ = mrt(e, t, s, o, p0(s, o));
        return _ && B2e(_);
      }
      if (px(e, t, r)) {
        if (!r || !ds(r)) return;
        const _ = V2e(e, r, t, s, o, u);
        return Znt(_, r, e, o, s, l, i, u, t, d);
      }
    }
    function Znt(e, t, r, i, o, s, l, u, d, _) {
      if (e === void 0) return;
      const h = jq(t, d);
      switch (e.kind) {
        case 0:
          return B2e(e.paths);
        case 1: {
          const g = OB();
          return (
            ofe(
              e.symbols,
              g,
              t,
              t,
              r,
              d,
              r,
              i,
              o,
              99,
              s,
              4,
              u,
              l,
              void 0,
              void 0,
              void 0,
              void 0,
              void 0,
              void 0,
              void 0,
              void 0,
              void 0,
              void 0,
              void 0,
              _,
            ),
            {
              isGlobalCompletion: !1,
              isMemberCompletion: !0,
              isNewIdentifierLocation: e.hasIndexSignature,
              optionalReplacementSpan: h,
              entries: g,
              defaultCommitCharacters: V1(e.hasIndexSignature),
            }
          );
        }
        case 2: {
          const g = t.kind === 15 ? 96 : po(Al(t), "'") ? 39 : 34,
            E = e.types.map((A) => ({
              name: k_(A.value, g),
              kindModifiers: "",
              kind: "string",
              sortText: Hd.LocationPriority,
              replacementSpan: Vq(t, d),
              commitCharacters: [],
            }));
          return {
            isGlobalCompletion: !1,
            isMemberCompletion: !1,
            isNewIdentifierLocation: e.isNewIdentifier,
            optionalReplacementSpan: h,
            entries: E,
            defaultCommitCharacters: V1(e.isNewIdentifier),
          };
        }
        default:
          return C.assertNever(e);
      }
    }
    function ert(e, t, r, i, o, s, l, u) {
      if (!i || !ds(i)) return;
      const d = V2e(t, i, r, o, s, u);
      return d && trt(e, i, d, t, o.getTypeChecker(), l);
    }
    function trt(e, t, r, i, o, s) {
      switch (r.kind) {
        case 0: {
          const l = hn(r.paths, (u) => u.name === e);
          return l && gz(e, G2e(l.extension), l.kind, [yf(e)]);
        }
        case 1: {
          const l = hn(r.symbols, (u) => u.name === e);
          return l && sfe(l, l.name, o, i, t, s);
        }
        case 2:
          return hn(r.types, (l) => l.value === e)
            ? gz(e, "", "string", [yf(e)])
            : void 0;
        default:
          return C.assertNever(r);
      }
    }
    function B2e(e) {
      return {
        isGlobalCompletion: !1,
        isMemberCompletion: !1,
        isNewIdentifierLocation: !0,
        entries: e.map(({ name: o, kind: s, span: l, extension: u }) => ({
          name: o,
          kind: s,
          kindModifiers: G2e(u),
          sortText: Hd.LocationPriority,
          replacementSpan: l,
        })),
        defaultCommitCharacters: V1(!0),
      };
    }
    function G2e(e) {
      switch (e) {
        case ".d.ts":
          return ".d.ts";
        case ".js":
          return ".js";
        case ".json":
          return ".json";
        case ".jsx":
          return ".jsx";
        case ".ts":
          return ".ts";
        case ".tsx":
          return ".tsx";
        case ".d.mts":
          return ".d.mts";
        case ".mjs":
          return ".mjs";
        case ".mts":
          return ".mts";
        case ".d.cts":
          return ".d.cts";
        case ".cjs":
          return ".cjs";
        case ".cts":
          return ".cts";
        case ".tsbuildinfo":
          return C.fail("Extension .tsbuildinfo is unsupported.");
        case void 0:
          return "";
        default:
          return C.assertNever(e);
      }
    }
    function V2e(e, t, r, i, o, s) {
      const l = i.getTypeChecker(),
        u = pfe(t.parent);
      switch (u.kind) {
        case 202: {
          const G = pfe(u.parent);
          return G.kind === 206 ? { kind: 0, paths: H2e(e, t, i, o, s) } : d(G);
        }
        case 304:
          return Wa(u.parent) && u.name === t ? irt(l, u.parent) : _() || _(0);
        case 213: {
          const { expression: G, argumentExpression: j } = u;
          return t === us(j) ? j2e(l.getTypeAtLocation(G)) : void 0;
        }
        case 214:
        case 215:
        case 292:
          if (!brt(t) && !Qu(u)) {
            const G = iW.getArgumentInfoForCompletions(
              u.kind === 292 ? u.parent : t,
              r,
              e,
              l,
            );
            return (G && rrt(G.invocation, t, G, l)) || _(0);
          }
        case 273:
        case 279:
        case 284:
        case 352:
          return { kind: 0, paths: H2e(e, t, i, o, s) };
        case 297:
          const h = B7(l, u.parent.clauses),
            g = _();
          return g
            ? {
                kind: 2,
                types: g.types.filter((G) => !h.hasValue(G.value)),
                isNewIdentifier: !1,
              }
            : void 0;
        case 277:
        case 282:
          const A = u;
          if (A.propertyName && t !== A.propertyName) return;
          const R = A.parent,
            { moduleSpecifier: N } =
              R.kind === 276 ? R.parent.parent : R.parent;
          if (!N) return;
          const P = l.getSymbolAtLocation(N);
          if (!P) return;
          const k = l.getExportsAndPropertiesOfModule(P),
            W = new Set(R.elements.map((G) => bS(G.propertyName || G.name)));
          return {
            kind: 1,
            symbols: k.filter(
              (G) => G.escapedName !== "default" && !W.has(G.escapedName),
            ),
            hasIndexSignature: !1,
          };
        case 227:
          if (u.operatorToken.kind === 103) {
            const G = l.getTypeAtLocation(u.right);
            return {
              kind: 1,
              symbols: (G.isUnion()
                ? l.getAllPossiblePropertiesOfTypes(G.types)
                : G.getApparentProperties()
              ).filter((J) => !J.valueDeclaration || !nu(J.valueDeclaration)),
              hasIndexSignature: !1,
            };
          }
          return _(0);
        default:
          return _() || _(0);
      }
      function d(h) {
        switch (h.kind) {
          case 234:
          case 184: {
            const A = Dn(u, (R) => R.parent === h);
            return A
              ? {
                  kind: 2,
                  types: YK(l.getTypeArgumentConstraint(A)),
                  isNewIdentifier: !1,
                }
              : void 0;
          }
          case 200:
            const { indexType: g, objectType: E } = h;
            return ZD(g, r) ? j2e(l.getTypeFromTypeNode(E)) : void 0;
          case 193: {
            const A = d(pfe(h.parent));
            if (!A) return;
            const R = nrt(h, u);
            return A.kind === 1
              ? {
                  kind: 1,
                  symbols: A.symbols.filter((N) => !jn(R, N.name)),
                  hasIndexSignature: A.hasIndexSignature,
                }
              : {
                  kind: 2,
                  types: A.types.filter((N) => !jn(R, N.value)),
                  isNewIdentifier: !1,
                };
          }
          default:
            return;
        }
      }
      function _(h = 4) {
        const g = YK(C7(t, l, h));
        if (g.length) return { kind: 2, types: g, isNewIdentifier: !1 };
      }
    }
    function pfe(e) {
      switch (e.kind) {
        case 197:
          return Ik(e);
        case 218:
          return zm(e);
        default:
          return e;
      }
    }
    function nrt(e, t) {
      return Ui(e.types, (r) =>
        r !== t && uv(r) && ka(r.literal) ? r.literal.text : void 0,
      );
    }
    function rrt(e, t, r, i) {
      let o = !1;
      const s = new Set(),
        l = ru(e) ? C.checkDefined(Dn(t.parent, i_)) : t,
        u = i.getCandidateSignaturesForStringLiteralCompletions(e, l),
        d = Ki(u, (_) => {
          if (!su(_) && r.argumentCount > _.parameters.length) return;
          let h = _.getTypeParameterAtPosition(r.argumentIndex);
          if (ru(e)) {
            const g = i.getTypeOfPropertyOfType(h, iw(l.name));
            g && (h = g);
          }
          return ((o = o || !!(h.flags & 4)), YK(h, s));
        });
      return et(d) ? { kind: 2, types: d, isNewIdentifier: o } : void 0;
    }
    function j2e(e) {
      return (
        e && {
          kind: 1,
          symbols: Un(
            e.getApparentProperties(),
            (t) => !(t.valueDeclaration && nu(t.valueDeclaration)),
          ),
          hasIndexSignature: cJ(e),
        }
      );
    }
    function irt(e, t) {
      const r = e.getContextualType(t);
      if (!r) return;
      const i = e.getContextualType(t, 4);
      return { kind: 1, symbols: qK(r, i, t, e), hasIndexSignature: cJ(r) };
    }
    function YK(e, t = new Set()) {
      return e
        ? ((e = qq(e)),
          e.isUnion()
            ? Ki(e.types, (r) => YK(r, t))
            : e.isStringLiteral() && !(e.flags & 1024) && gm(t, e.value)
              ? [e]
              : ae)
        : ae;
    }
    function KP(e, t, r) {
      return { name: e, kind: t, extension: r };
    }
    function ffe(e) {
      return KP(e, "directory", void 0);
    }
    function U2e(e, t, r) {
      const i = _rt(e, t),
        o = e.length === 0 ? void 0 : Id(t, e.length);
      return r.map(({ name: s, kind: l, extension: u }) =>
        s.includes(Js) || s.includes(Z8)
          ? { name: s, kind: l, extension: u, span: o }
          : { name: s, kind: l, extension: u, span: i },
      );
    }
    function H2e(e, t, r, i, o) {
      return U2e(t.text, t.getStart(e) + 1, ort(e, t, r, i, o));
    }
    function ort(e, t, r, i, o) {
      const s = Bd(t.text),
        l = ds(t) ? r.getModeForUsageLocation(e, t) : void 0,
        u = e.path,
        d = ci(u),
        _ = r.getCompilerOptions(),
        h = r.getTypeChecker(),
        g = p0(r, i),
        E = mfe(_, 1, e, h, o, l);
      return grt(s) || (!_.baseUrl && !_.paths && (Cp(s) || yee(s)))
        ? art(s, d, r, i, g, u, E)
        : drt(s, d, l, r, i, g, E);
    }
    function mfe(e, t, r, i, o, s) {
      return {
        extensionsToSearch: la(srt(e, i)),
        referenceKind: t,
        importingSourceFile: r,
        endingPreference: o?.importModuleSpecifierEnding,
        resolutionMode: s,
      };
    }
    function art(e, t, r, i, o, s, l) {
      const u = r.getCompilerOptions();
      return u.rootDirs
        ? crt(u.rootDirs, e, t, l, r, i, o, s)
        : Co(QO(e, t, l, r, i, o, !0, s).values());
    }
    function srt(e, t) {
      const r = t
          ? Ui(t.getAmbientModules(), (s) => {
              const l = s.name.slice(1, -1);
              if (!(!l.startsWith("*.") || l.includes("/"))) return l.slice(1);
            })
          : [],
        i = [...SM(e), r],
        o = iu(e);
      return S7(o) ? $k(e, i) : i;
    }
    function lrt(e, t, r, i) {
      e = e.map((s) => Uc(ya(Cp(s) ? s : Qr(t, s))));
      const o = Hn(e, (s) => (um(s, r, t, i) ? r.substr(s.length) : void 0));
      return cS(
        [...e.map((s) => Qr(s, o)), r].map((s) => Yy(s)),
        pS,
        Wd,
      );
    }
    function crt(e, t, r, i, o, s, l, u) {
      const _ = o.getCompilerOptions().project || s.getCurrentDirectory(),
        h = !(s.useCaseSensitiveFileNames && s.useCaseSensitiveFileNames()),
        g = lrt(e, _, r, h);
      return cS(
        Ki(g, (E) => Co(QO(t, E, i, o, s, l, !0, u).values())),
        (E, A) =>
          E.name === A.name && E.kind === A.kind && E.extension === A.extension,
      );
    }
    function QO(e, t, r, i, o, s, l, u, d = ufe()) {
      var _;
      (e === void 0 && (e = ""),
        (e = Bd(e)),
        ob(e) || (e = ci(e)),
        e === "" && (e = "." + Js),
        (e = Uc(e)));
      const h = ab(t, e),
        g = ob(h) ? h : ci(h);
      if (!l) {
        const N = _ce(g, o);
        if (N) {
          const k = lD(N, o).typesVersions;
          if (typeof k == "object") {
            const W = (_ = e3(k)) == null ? void 0 : _.paths;
            if (W) {
              const O = ci(N),
                G = h.slice(Uc(O).length);
              if (J2e(d, G, O, r, i, o, s, W)) return d;
            }
          }
        }
      }
      const E = !(o.useCaseSensitiveFileNames && o.useCaseSensitiveFileNames());
      if (!L7(o, g)) return d;
      const A = pJ(o, g, r.extensionsToSearch, void 0, ["./*"]);
      if (A)
        for (let N of A) {
          if (((N = ya(N)), u && Zg(N, u, t, E) === 0)) continue;
          const { name: P, extension: k } = q2e(Ic(N), i, r, !1);
          d.add(KP(P, "script", k));
        }
      const R = P7(o, g);
      if (R)
        for (const N of R) {
          const P = Ic(ya(N));
          P !== "@types" && d.add(ffe(P));
        }
      return d;
    }
    function q2e(e, t, r, i) {
      const o = hy.tryGetRealFileNameForNonJsDeclarationFileName(e);
      if (o) return { name: o, extension: Sg(o) };
      if (r.referenceKind === 0) return { name: e, extension: Sg(e) };
      let s = hy
        .getModuleSpecifierPreferences(
          { importModuleSpecifierEnding: r.endingPreference },
          t,
          t.getCompilerOptions(),
          r.importingSourceFile,
        )
        .getAllowedEndingsInPreferredOrder(r.resolutionMode);
      if ((i && (s = s.filter((u) => u !== 0 && u !== 1)), s[0] === 3)) {
        if ($l(e, Yk)) return { name: e, extension: Sg(e) };
        const u = hy.tryGetJSExtensionForFile(e, t.getCompilerOptions());
        return u
          ? { name: av(e, u), extension: u }
          : { name: e, extension: Sg(e) };
      }
      if (
        !i &&
        (s[0] === 0 || s[0] === 1) &&
        $l(e, [".js", ".jsx", ".ts", ".tsx", ".d.ts"])
      )
        return { name: Tu(e), extension: Sg(e) };
      const l = hy.tryGetJSExtensionForFile(e, t.getCompilerOptions());
      return l
        ? { name: av(e, l), extension: l }
        : { name: e, extension: Sg(e) };
    }
    function J2e(e, t, r, i, o, s, l, u) {
      const d = (h) => u[h],
        _ = (h, g) => {
          const E = LI(h),
            A = LI(g),
            R = typeof E == "object" ? E.prefix.length : h.length,
            N = typeof A == "object" ? A.prefix.length : g.length;
          return js(N, R);
        };
      return K2e(e, !1, !1, t, r, i, o, s, l, Wh(u), d, _);
    }
    function K2e(e, t, r, i, o, s, l, u, d, _, h, g) {
      let E = [],
        A;
      for (const R of _) {
        if (R === ".") continue;
        const N = R.replace(/^\.\//, "") + ((t || r) && el(R, "/") ? "*" : ""),
          P = h(R);
        if (P) {
          const k = LI(N);
          if (!k) continue;
          const W = typeof k == "object" && V8(k, i);
          (W &&
            (A === void 0 || g(N, A) === -1) &&
            ((A = N), (E = E.filter((G) => !G.matchedPattern))),
            (typeof k == "string" || A === void 0 || g(N, A) !== 1) &&
              E.push({
                matchedPattern: W,
                results: urt(N, P, i, o, s, t, r, l, u, d).map(
                  ({ name: G, kind: j, extension: J }) => KP(G, j, J),
                ),
              }));
        }
      }
      return (
        E.forEach((R) => R.results.forEach((N) => e.add(N))),
        A !== void 0
      );
    }
    function drt(e, t, r, i, o, s, l) {
      const u = i.getTypeChecker(),
        d = i.getCompilerOptions(),
        { baseUrl: _, paths: h } = d,
        g = ufe(),
        E = iu(d);
      if (_) {
        const N = ya(Qr(o.getCurrentDirectory(), _));
        QO(e, N, l, i, o, s, !1, void 0, g);
      }
      if (h) {
        const N = g6(d, o);
        J2e(g, e, N, l, i, o, s, h);
      }
      const A = Y2e(e);
      for (const N of frt(e, A, u))
        g.add(KP(N, "external module name", void 0));
      if ((Z2e(i, o, s, t, A, l, g), S7(E))) {
        let N = !1;
        if (A === void 0)
          for (const P of hrt(o, t)) {
            const k = KP(P, "external module name", void 0);
            g.has(k.name) || ((N = !0), g.add(k));
          }
        if (!N) {
          const P = Hk(d),
            k = qk(d);
          let W = !1;
          const O = (j) => {
            if (k && !W) {
              const J = Qr(j, "package.json");
              if ((W = WP(o, J))) {
                const Z = lD(J, o);
                R(Z.imports, e, j, !1, !0);
              }
            }
          };
          let G = (j) => {
            const J = Qr(j, "node_modules");
            (L7(o, J) && QO(e, J, l, i, o, s, !1, void 0, g), O(j));
          };
          if (A && P) {
            const j = G;
            G = (J) => {
              const Z = zd(e);
              Z.shift();
              let q = Z.shift();
              if (!q) return j(J);
              if (po(q, "@")) {
                const K = Z.shift();
                if (!K) return j(J);
                q = Qr(q, K);
              }
              if (k && po(q, "#")) return O(J);
              const ye = Qr(J, "node_modules", q),
                ie = Qr(ye, "package.json");
              if (WP(o, ie)) {
                const K = lD(ie, o),
                  pe = Z.join("/") + (Z.length && ob(e) ? "/" : "");
                R(K.exports, pe, ye, !0, !1);
                return;
              }
              return j(J);
            };
          }
          W_(o, t, G);
        }
      }
      return Co(g.values());
      function R(N, P, k, W, O) {
        if (typeof N != "object" || N === null) return;
        const G = Wh(N),
          j = Ob(d, r);
        K2e(
          g,
          W,
          O,
          P,
          k,
          l,
          i,
          o,
          s,
          G,
          (J) => {
            const Z = X2e(N[J], j);
            if (Z !== void 0) return eI(el(J, "/") && el(Z, "/") ? Z + "*" : Z);
          },
          xU,
        );
      }
    }
    function X2e(e, t) {
      if (typeof e == "string") return e;
      if (e && typeof e == "object" && !Mo(e)) {
        for (const r in e)
          if (r === "default" || t.includes(r) || Gw(t, r)) {
            const i = e[r];
            return X2e(i, t);
          }
      }
    }
    function Y2e(e) {
      return hfe(e) ? (ob(e) ? e : ci(e)) : void 0;
    }
    function urt(e, t, r, i, o, s, l, u, d, _) {
      const h = LI(e);
      if (!h) return ae;
      if (typeof h == "string") return E(e, "script");
      const g = QB(r, h.prefix);
      if (g === void 0)
        return el(e, "/*")
          ? E(h.prefix, "directory")
          : Ki(t, (R) => {
              var N;
              return (N = $2e("", i, R, o, s, l, u, d, _)) == null
                ? void 0
                : N.map(({ name: P, ...k }) => ({
                    name: h.prefix + P + h.suffix,
                    ...k,
                  }));
            });
      return Ki(t, (A) => $2e(g, i, A, o, s, l, u, d, _));
      function E(A, R) {
        return po(A, r) ? [{ name: Yy(A), kind: R, extension: void 0 }] : ae;
      }
    }
    function $2e(e, t, r, i, o, s, l, u, d) {
      if (!u.readDirectory) return;
      const _ = LI(r);
      if (_ === void 0 || Bo(_)) return;
      const h = ab(_.prefix),
        g = ob(_.prefix) ? h : ci(h),
        E = ob(_.prefix) ? "" : Ic(h),
        A = hfe(e),
        R = A ? (ob(e) ? e : ci(e)) : void 0,
        N = () => d.getCommonSourceDirectory(),
        P = !d1(d),
        k = l.getCompilerOptions().outDir,
        W = l.getCompilerOptions().declarationDir,
        O = A ? Qr(g, E + R) : g,
        G = ya(Qr(t, O)),
        j = s && k && oV(G, P, k, N),
        J = s && W && oV(G, P, W, N),
        Z = ya(_.suffix),
        q = Z && _6("_" + Z),
        ye = Z ? iV("_" + Z) : void 0,
        ie = [q && av(Z, q), ...(ye ? ye.map((X) => av(Z, X)) : []), Z].filter(
          Bo,
        ),
        K = Z ? ie.map((X) => "**/*" + X) : ["./*"],
        pe = (o || s) && el(r, "/*");
      let de = fe(G);
      return (
        j && (de = so(de, fe(j))),
        J && (de = so(de, fe(J))),
        Z ||
          ((de = so(de, ve(G))),
          j && (de = so(de, ve(j))),
          J && (de = so(de, ve(J)))),
        de
      );
      function fe(X) {
        const Ce = A ? X : Uc(X) + E;
        return Ui(pJ(u, X, i.extensionsToSearch, void 0, K), (Je) => {
          const Se = xe(Je, Ce);
          if (Se) {
            if (hfe(Se)) return ffe(zd(Q2e(Se))[1]);
            const { name: re, extension: be } = q2e(Se, l, i, pe);
            return KP(re, "script", be);
          }
        });
      }
      function ve(X) {
        return Ui(P7(u, X), (Ce) => (Ce === "node_modules" ? void 0 : ffe(Ce)));
      }
      function xe(X, Ce) {
        return Hn(ie, (Je) => {
          const Se = prt(ya(X), Ce, Je);
          return Se === void 0 ? void 0 : Q2e(Se);
        });
      }
    }
    function prt(e, t, r) {
      return po(e, t) && el(e, r)
        ? e.slice(t.length, e.length - r.length)
        : void 0;
    }
    function Q2e(e) {
      return e[0] === Js ? e.slice(1) : e;
    }
    function frt(e, t, r) {
      const o = r
        .getAmbientModules()
        .map((s) => _m(s.name))
        .filter((s) => po(s, e) && !s.includes("*"));
      if (t !== void 0) {
        const s = Uc(t);
        return o.map((l) => hN(l, s));
      }
      return o;
    }
    function mrt(e, t, r, i, o) {
      const s = r.getCompilerOptions(),
        l = Fi(e, t),
        u = lg(e.text, l.pos),
        d = u && hn(u, (P) => t >= P.pos && t <= P.end);
      if (!d) return;
      const _ = e.text.slice(d.pos, t),
        h = yrt.exec(_);
      if (!h) return;
      const [, g, E, A] = h,
        R = ci(e.path),
        N =
          E === "path"
            ? QO(A, R, mfe(s, 0, e), r, i, o, !0, e.path)
            : E === "types"
              ? Z2e(r, i, o, R, Y2e(A), mfe(s, 1, e))
              : C.fail();
      return U2e(A, d.pos + g.length, Co(N.values()));
    }
    function Z2e(e, t, r, i, o, s, l = ufe()) {
      const u = e.getCompilerOptions(),
        d = new Map(),
        _ = k7(() => nP(u, t)) || ae;
      for (const g of _) h(g);
      for (const g of fJ(i, t)) {
        const E = Qr(ci(g), "node_modules/@types");
        h(E);
      }
      return l;
      function h(g) {
        if (L7(t, g))
          for (const E of P7(t, g)) {
            const A = Vw(E);
            if (!(u.types && !jn(u.types, A)))
              if (o === void 0)
                d.has(A) ||
                  (l.add(KP(A, "external module name", void 0)), d.set(A, !0));
              else {
                const R = Qr(g, E),
                  N = kV(o, A, ay(t));
                N !== void 0 && QO(N, R, s, e, t, r, !1, void 0, l);
              }
          }
      }
    }
    function hrt(e, t) {
      if (!e.readFile || !e.fileExists) return ae;
      const r = [];
      for (const i of fJ(t, e)) {
        const o = lD(i, e);
        for (const s of vrt) {
          const l = o[s];
          if (l) for (const u in l) Rs(l, u) && !po(u, "@types/") && r.push(u);
        }
      }
      return r;
    }
    function _rt(e, t) {
      const r = Math.max(e.lastIndexOf(Js), e.lastIndexOf(Z8)),
        i = r !== -1 ? r + 1 : 0,
        o = e.length - i;
      return o === 0 || fp(e.substr(i, o), 99) ? void 0 : Id(t + i, o);
    }
    function grt(e) {
      if (e && e.length >= 2 && e.charCodeAt(0) === 46) {
        const t = e.length >= 3 && e.charCodeAt(1) === 46 ? 2 : 1,
          r = e.charCodeAt(t);
        return r === 47 || r === 92;
      }
      return !1;
    }
    var yrt = /^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\x03"]*)$/,
      vrt = [
        "dependencies",
        "devDependencies",
        "peerDependencies",
        "optionalDependencies",
      ];
    function hfe(e) {
      return e.includes(Js);
    }
    function brt(e) {
      return (
        Zo(e.parent) &&
        Ac(e.parent.arguments) === e &&
        He(e.parent.expression) &&
        e.parent.expression.escapedText === "require"
      );
    }
    var Ys = {};
    x(Ys, {
      Core: () => Ax,
      DefinitionKind: () => ake,
      EntryKind: () => ske,
      ExportKind: () => eke,
      FindReferencesUse: () => lke,
      ImportExport: () => tke,
      createImportTracker: () => _fe,
      findModuleReferences: () => nke,
      findReferenceOrRenameEntries: () => krt,
      findReferencedSymbols: () => Mrt,
      getContextNode: () => j1,
      getExportInfo: () => gfe,
      getImplementationsAtPosition: () => Lrt,
      getImportOrExportSymbol: () => oke,
      getReferenceEntriesForNode: () => dke,
      isContextWithStartAndEndNode: () => vfe,
      isDeclarationOfSymbol: () => hke,
      isWriteAccessForReference: () => Tfe,
      toContextSpan: () => bfe,
      toHighlightSpan: () => Grt,
      toReferenceEntry: () => fke,
      toRenameLocation: () => Ort,
    });
    function _fe(e, t, r, i) {
      const o = Art(e, r, i);
      return (s, l, u) => {
        const { directImports: d, indirectUsers: _ } = Trt(e, t, o, l, r, i);
        return { indirectUsers: _, ...Srt(d, s, l.exportKind, r, u) };
      };
    }
    var eke = ((e) => (
        (e[(e.Named = 0)] = "Named"),
        (e[(e.Default = 1)] = "Default"),
        (e[(e.ExportEquals = 2)] = "ExportEquals"),
        e
      ))(eke || {}),
      tke = ((e) => (
        (e[(e.Import = 0)] = "Import"),
        (e[(e.Export = 1)] = "Export"),
        e
      ))(tke || {});
    function Trt(e, t, r, { exportingModuleSymbol: i, exportKind: o }, s, l) {
      const u = tC(),
        d = tC(),
        _ = [],
        h = !!i.globalExports,
        g = h ? void 0 : [];
      return (A(i), { directImports: _, indirectUsers: E() });
      function E() {
        if (h) return e;
        if (i.declarations)
          for (const O of i.declarations)
            TS(O) && t.has(O.getSourceFile().fileName) && k(O);
        return g.map(Wn);
      }
      function A(O) {
        const G = W(O);
        if (G) {
          for (const j of G)
            if (u(j))
              switch ((l && l.throwIfCancellationRequested(), j.kind)) {
                case 214:
                  if (Qu(j)) {
                    R(j);
                    break;
                  }
                  if (!h) {
                    const Z = j.parent;
                    if (o === 2 && Z.kind === 261) {
                      const { name: q } = Z;
                      if (q.kind === 80) {
                        _.push(q);
                        break;
                      }
                    }
                  }
                  break;
                case 80:
                  break;
                case 272:
                  P(j, j.name, di(j, 32), !1);
                  break;
                case 273:
                case 352:
                  _.push(j);
                  const J = j.importClause && j.importClause.namedBindings;
                  J && J.kind === 275
                    ? P(j, J.name, !1, !0)
                    : !h && s1(j) && k(vz(j));
                  break;
                case 279:
                  j.exportClause
                    ? j.exportClause.kind === 281
                      ? k(vz(j), !0)
                      : _.push(j)
                    : A(Crt(j, s));
                  break;
                case 206:
                  (!h &&
                    j.isTypeOf &&
                    !j.qualifier &&
                    N(j) &&
                    k(j.getSourceFile(), !0),
                    _.push(j));
                  break;
                default:
                  C.failBadSyntaxKind(j, "Unexpected import kind.");
              }
        }
      }
      function R(O) {
        const G = Dn(O, $K) || O.getSourceFile();
        k(G, !!N(O, !0));
      }
      function N(O, G = !1) {
        return Dn(O, (j) =>
          G && $K(j) ? "quit" : Tm(j) && yt(j.modifiers, VI),
        );
      }
      function P(O, G, j, J) {
        if (o === 2) J || _.push(O);
        else if (!h) {
          const Z = vz(O);
          (C.assert(Z.kind === 308 || Z.kind === 268),
            j || Ert(Z, G, s) ? k(Z, !0) : k(Z));
        }
      }
      function k(O, G = !1) {
        if ((C.assert(!h), !d(O) || (g.push(O), !G))) return;
        const J = s.getMergedSymbol(O.symbol);
        if (!J) return;
        C.assert(!!(J.flags & 1536));
        const Z = W(J);
        if (Z) for (const q of Z) e_(q) || k(vz(q), !0);
      }
      function W(O) {
        return r.get(Ta(O).toString());
      }
    }
    function Srt(e, t, r, i, o) {
      const s = [],
        l = [];
      function u(E, A) {
        s.push([E, A]);
      }
      if (e) for (const E of e) d(E);
      return { importSearches: s, singleReferences: l };
      function d(E) {
        if (E.kind === 272) {
          yfe(E) && _(E.name);
          return;
        }
        if (E.kind === 80) {
          _(E);
          return;
        }
        if (E.kind === 206) {
          if (E.qualifier) {
            const N = Lu(E.qualifier);
            N.escapedText === wl(t) && l.push(N);
          } else r === 2 && l.push(E.argument.literal);
          return;
        }
        if (E.moduleSpecifier.kind !== 11) return;
        if (E.kind === 279) {
          E.exportClause && Jf(E.exportClause) && h(E.exportClause);
          return;
        }
        const { name: A, namedBindings: R } = E.importClause || {
          name: void 0,
          namedBindings: void 0,
        };
        if (R)
          switch (R.kind) {
            case 275:
              _(R.name);
              break;
            case 276:
              (r === 0 || r === 1) && h(R);
              break;
            default:
              C.assertNever(R);
          }
        if (A && (r === 1 || r === 2) && (!o || A.escapedText === E7(t))) {
          const N = i.getSymbolAtLocation(A);
          u(A, N);
        }
      }
      function _(E) {
        r === 2 && (!o || g(E.escapedText)) && u(E, i.getSymbolAtLocation(E));
      }
      function h(E) {
        if (E)
          for (const A of E.elements) {
            const { name: R, propertyName: N } = A;
            if (g(bS(N || R)))
              if (N)
                (l.push(N),
                  (!o || bS(R) === t.escapedName) &&
                    u(R, i.getSymbolAtLocation(R)));
              else {
                const P =
                  A.kind === 282 && A.propertyName
                    ? i.getExportSpecifierLocalTargetSymbol(A)
                    : i.getSymbolAtLocation(R);
                u(R, P);
              }
          }
      }
      function g(E) {
        return E === t.escapedName || (r !== 0 && E === "default");
      }
    }
    function Ert(e, t, r) {
      const i = r.getSymbolAtLocation(t);
      return !!rke(e, (o) => {
        if (!pc(o)) return;
        const { exportClause: s, moduleSpecifier: l } = o;
        return (
          !l &&
          s &&
          Jf(s) &&
          s.elements.some((u) => r.getExportSpecifierLocalTargetSymbol(u) === i)
        );
      });
    }
    function nke(e, t, r) {
      var i;
      const o = [],
        s = e.getTypeChecker();
      for (const l of t) {
        const u = r.valueDeclaration;
        if (u?.kind === 308) {
          for (const d of l.referencedFiles)
            e.getSourceFileFromReference(l, d) === u &&
              o.push({ kind: "reference", referencingFile: l, ref: d });
          for (const d of l.typeReferenceDirectives) {
            const _ =
              (i =
                e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(
                  d,
                  l,
                )) == null
                ? void 0
                : i.resolvedTypeReferenceDirective;
            _ !== void 0 &&
              _.resolvedFileName === u.fileName &&
              o.push({ kind: "reference", referencingFile: l, ref: d });
          }
        }
        ike(l, (d, _) => {
          s.getSymbolAtLocation(_) === r &&
            o.push(
              Os(d)
                ? { kind: "implicit", literal: _, referencingFile: l }
                : { kind: "import", literal: _ },
            );
        });
      }
      return o;
    }
    function Art(e, t, r) {
      const i = new Map();
      for (const o of e)
        (r && r.throwIfCancellationRequested(),
          ike(o, (s, l) => {
            const u = t.getSymbolAtLocation(l);
            if (u) {
              const d = Ta(u).toString();
              let _ = i.get(d);
              (_ || i.set(d, (_ = [])), _.push(s));
            }
          }));
      return i;
    }
    function rke(e, t) {
      return Ye(
        e.kind === 308 ? e.statements : e.body.statements,
        (r) => t(r) || ($K(r) && Ye(r.body && r.body.statements, t)),
      );
    }
    function ike(e, t) {
      if (e.externalModuleIndicator || e.imports !== void 0)
        for (const r of e.imports) t(eM(r), r);
      else
        rke(e, (r) => {
          switch (r.kind) {
            case 279:
            case 273: {
              const i = r;
              i.moduleSpecifier &&
                ka(i.moduleSpecifier) &&
                t(i, i.moduleSpecifier);
              break;
            }
            case 272: {
              const i = r;
              yfe(i) && t(i, i.moduleReference.expression);
              break;
            }
          }
        });
    }
    function oke(e, t, r, i) {
      return i ? o() : o() || s();
      function o() {
        var d;
        const { parent: _ } = e,
          h = _.parent;
        if (t.exportSymbol)
          return _.kind === 212
            ? (d = t.declarations) != null && d.some((A) => A === _) && Nr(h)
              ? E(h, !1)
              : void 0
            : l(t.exportSymbol, u(_));
        {
          const A = xrt(_, e);
          if (A && di(A, 32))
            return Fc(A) && A.moduleReference === e
              ? i
                ? void 0
                : { kind: 0, symbol: r.getSymbolAtLocation(A.name) }
              : l(t, u(A));
          if (O_(_)) return l(t, 0);
          if (ll(_)) return g(_);
          if (ll(h)) return g(h);
          if (Nr(_)) return E(_, !0);
          if (Nr(h)) return E(h, !0);
          if (R1(_) || xj(_)) return l(t, 0);
        }
        function g(A) {
          if (!A.symbol.parent) return;
          const R = A.isExportEquals ? 2 : 1;
          return {
            kind: 1,
            symbol: t,
            exportInfo: {
              exportingModuleSymbol: A.symbol.parent,
              exportKind: R,
            },
          };
        }
        function E(A, R) {
          let N;
          switch (oc(A)) {
            case 1:
              N = 0;
              break;
            case 2:
              N = 2;
              break;
            default:
              return;
          }
          const P = R ? r.getSymbolAtLocation(xV(ma(A.left, Ks))) : t;
          return P && l(P, N);
        }
      }
      function s() {
        if (!Rrt(e)) return;
        let _ = r.getImmediateAliasedSymbol(t);
        if (
          !_ ||
          ((_ = Drt(_, r)),
          _.escapedName === "export=" && ((_ = Irt(_, r)), _ === void 0))
        )
          return;
        const h = E7(_);
        if (h === void 0 || h === "default" || h === t.escapedName)
          return { kind: 0, symbol: _ };
      }
      function l(d, _) {
        const h = gfe(d, _, r);
        return h && { kind: 1, symbol: d, exportInfo: h };
      }
      function u(d) {
        return di(d, 2048) ? 1 : 0;
      }
    }
    function Irt(e, t) {
      var r, i;
      if (e.flags & 2097152) return t.getImmediateAliasedSymbol(e);
      const o = C.checkDefined(e.valueDeclaration);
      if (ll(o)) return (r = ni(o.expression, ah)) == null ? void 0 : r.symbol;
      if (Nr(o)) return (i = ni(o.right, ah)) == null ? void 0 : i.symbol;
      if (Yi(o)) return o.symbol;
    }
    function xrt(e, t) {
      const r = yi(e) ? e : Ha(e) ? qE(e) : void 0;
      return r
        ? e.name !== t || US(r.parent)
          ? void 0
          : ac(r.parent.parent)
            ? r.parent.parent
            : void 0
        : e;
    }
    function Rrt(e) {
      const { parent: t } = e;
      switch (t.kind) {
        case 272:
          return t.name === e && yfe(t);
        case 277:
          return !t.propertyName;
        case 274:
        case 275:
          return (C.assert(t.name === e), !0);
        case 209:
          return Ir(e) && ES(t.parent.parent);
        default:
          return !1;
      }
    }
    function gfe(e, t, r) {
      const i = e.parent;
      if (!i) return;
      const o = r.getMergedSymbol(i);
      return dI(o) ? { exportingModuleSymbol: o, exportKind: t } : void 0;
    }
    function Drt(e, t) {
      if (e.declarations)
        for (const r of e.declarations) {
          if (ou(r) && !r.propertyName && !r.parent.parent.moduleSpecifier)
            return t.getExportSpecifierLocalTargetSymbol(r) || e;
          if (qr(r) && gg(r.expression) && !eo(r.name))
            return t.getSymbolAtLocation(r);
          if (Ud(r) && Nr(r.parent.parent) && oc(r.parent.parent) === 2)
            return t.getExportSpecifierLocalTargetSymbol(r.name);
        }
      return e;
    }
    function Crt(e, t) {
      return t.getMergedSymbol(vz(e).symbol);
    }
    function vz(e) {
      if (e.kind === 214 || e.kind === 352) return e.getSourceFile();
      const { parent: t } = e;
      return t.kind === 308 ? t : (C.assert(t.kind === 269), ma(t.parent, $K));
    }
    function $K(e) {
      return e.kind === 268 && e.name.kind === 11;
    }
    function yfe(e) {
      return (
        e.moduleReference.kind === 284 &&
        e.moduleReference.expression.kind === 11
      );
    }
    var ake = ((e) => (
        (e[(e.Symbol = 0)] = "Symbol"),
        (e[(e.Label = 1)] = "Label"),
        (e[(e.Keyword = 2)] = "Keyword"),
        (e[(e.This = 3)] = "This"),
        (e[(e.String = 4)] = "String"),
        (e[(e.TripleSlashReference = 5)] = "TripleSlashReference"),
        e
      ))(ake || {}),
      ske = ((e) => (
        (e[(e.Span = 0)] = "Span"),
        (e[(e.Node = 1)] = "Node"),
        (e[(e.StringLiteral = 2)] = "StringLiteral"),
        (e[(e.SearchedLocalFoundProperty = 3)] = "SearchedLocalFoundProperty"),
        (e[(e.SearchedPropertyFoundLocal = 4)] = "SearchedPropertyFoundLocal"),
        e
      ))(ske || {});
    function yy(e, t = 1) {
      return { kind: t, node: e.name || e, context: Nrt(e) };
    }
    function vfe(e) {
      return e && e.kind === void 0;
    }
    function Nrt(e) {
      if (rd(e)) return j1(e);
      if (e.parent) {
        if (!rd(e.parent) && !ll(e.parent)) {
          if (Ir(e)) {
            const r = Nr(e.parent)
              ? e.parent
              : Ks(e.parent) &&
                  Nr(e.parent.parent) &&
                  e.parent.parent.left === e.parent
                ? e.parent.parent
                : void 0;
            if (r && oc(r) !== 0) return j1(r);
          }
          if (ph(e.parent) || VS(e.parent)) return e.parent.parent;
          if (I1(e.parent) || Lb(e.parent) || kN(e.parent)) return e.parent;
          if (ds(e)) {
            const r = bk(e);
            if (r) {
              const i = Dn(r, (o) => rd(o) || Vi(o) || VR(o));
              return rd(i) ? j1(i) : i;
            }
          }
          const t = Dn(e, va);
          return t ? j1(t.parent) : void 0;
        }
        if (
          e.parent.name === e ||
          Ml(e.parent) ||
          ll(e.parent) ||
          ((ub(e.parent) || Ha(e.parent)) && e.parent.propertyName === e) ||
          (e.kind === 90 && di(e.parent, 2080))
        )
          return j1(e.parent);
      }
    }
    function j1(e) {
      if (e)
        switch (e.kind) {
          case 261:
            return !_d(e.parent) || e.parent.declarations.length !== 1
              ? e
              : ac(e.parent.parent)
                ? e.parent.parent
                : QE(e.parent.parent)
                  ? j1(e.parent.parent)
                  : e.parent;
          case 209:
            return j1(e.parent.parent);
          case 277:
            return e.parent.parent.parent;
          case 282:
          case 275:
            return e.parent.parent;
          case 274:
          case 281:
            return e.parent;
          case 227:
            return od(e.parent) ? e.parent : e;
          case 251:
          case 250:
            return { start: e.initializer, end: e.expression };
          case 304:
          case 305:
            return hv(e.parent) ? j1(Dn(e.parent, (t) => Nr(t) || QE(t))) : e;
          case 256:
            return {
              start: hn(
                e.getChildren(e.getSourceFile()),
                (t) => t.kind === 109,
              ),
              end: e.caseBlock,
            };
          default:
            return e;
        }
    }
    function bfe(e, t, r) {
      if (!r) return;
      const i = vfe(r) ? Tz(r.start, t, r.end) : Tz(r, t);
      return i.start !== e.start || i.length !== e.length
        ? { contextSpan: i }
        : void 0;
    }
    var lke = ((e) => (
      (e[(e.Other = 0)] = "Other"),
      (e[(e.References = 1)] = "References"),
      (e[(e.Rename = 2)] = "Rename"),
      e
    ))(lke || {});
    function Mrt(e, t, r, i, o) {
      const s = ip(i, o),
        l = { use: 1 },
        u = Ax.getReferencedSymbolsForNode(o, s, e, r, t, l),
        d = e.getTypeChecker(),
        _ = Ax.getAdjustedNode(s, l),
        h = Prt(_) ? d.getSymbolAtLocation(_) : void 0;
      return !u || !u.length
        ? void 0
        : Ui(
            u,
            ({ definition: g, references: E }) =>
              g && {
                definition: d.runWithCancellationToken(t, (A) => wrt(g, A, s)),
                references: E.map((A) => Wrt(A, h)),
              },
          );
    }
    function Prt(e) {
      return (
        e.kind === 90 || !!nM(e) || xk(e) || (e.kind === 137 && Ml(e.parent))
      );
    }
    function Lrt(e, t, r, i, o) {
      const s = ip(i, o);
      let l;
      const u = cke(e, t, r, s, o);
      if (
        s.parent.kind === 212 ||
        s.parent.kind === 209 ||
        s.parent.kind === 213 ||
        s.kind === 108
      )
        l = u && [...u];
      else if (u) {
        const _ = g2(u),
          h = new Set();
        for (; !_.isEmpty(); ) {
          const g = _.dequeue();
          if (!gm(h, ls(g.node))) continue;
          l = Bn(l, g);
          const E = cke(e, t, r, g.node, g.node.pos);
          E && _.enqueue(...E);
        }
      }
      const d = e.getTypeChecker();
      return Vt(l, (_) => zrt(_, d));
    }
    function cke(e, t, r, i, o) {
      if (i.kind === 308) return;
      const s = e.getTypeChecker();
      if (i.parent.kind === 305) {
        const l = [];
        return (
          Ax.getReferenceEntriesForShorthandPropertyAssignment(i, s, (u) =>
            l.push(yy(u)),
          ),
          l
        );
      } else if (i.kind === 108 || mp(i.parent)) {
        const l = s.getSymbolAtLocation(i);
        return l.valueDeclaration && [yy(l.valueDeclaration)];
      } else return dke(o, i, e, r, t, { implementations: !0, use: 1 });
    }
    function krt(e, t, r, i, o, s, l) {
      return Vt(uke(Ax.getReferencedSymbolsForNode(o, i, e, r, t, s)), (u) =>
        l(u, i, e.getTypeChecker()),
      );
    }
    function dke(e, t, r, i, o, s = {}, l = new Set(i.map((u) => u.fileName))) {
      return uke(Ax.getReferencedSymbolsForNode(e, t, r, i, o, s, l));
    }
    function uke(e) {
      return e && Ki(e, (t) => t.references);
    }
    function wrt(e, t, r) {
      const i = (() => {
          switch (e.type) {
            case 0: {
              const { symbol: h } = e,
                { displayParts: g, kind: E } = pke(h, t, r),
                A = g.map((P) => P.text).join(""),
                R = h.declarations && Ac(h.declarations),
                N = R ? Oo(R) || R : r;
              return {
                ...bz(N),
                name: A,
                kind: E,
                displayParts: g,
                context: j1(R),
              };
            }
            case 1: {
              const { node: h } = e;
              return {
                ...bz(h),
                name: h.text,
                kind: "label",
                displayParts: [yp(h.text, 17)],
              };
            }
            case 2: {
              const { node: h } = e,
                g = _a(h.kind);
              return {
                ...bz(h),
                name: g,
                kind: "keyword",
                displayParts: [{ text: g, kind: "keyword" }],
              };
            }
            case 3: {
              const { node: h } = e,
                g = t.getSymbolAtLocation(h),
                E = (g &&
                  vv.getSymbolDisplayPartsDocumentationAndSymbolKind(
                    t,
                    g,
                    h.getSourceFile(),
                    F1(h),
                    h,
                  ).displayParts) || [yf("this")];
              return { ...bz(h), name: "this", kind: "var", displayParts: E };
            }
            case 4: {
              const { node: h } = e;
              return {
                ...bz(h),
                name: h.text,
                kind: "var",
                displayParts: [yp(Al(h), 8)],
              };
            }
            case 5:
              return {
                textSpan: _v(e.reference),
                sourceFile: e.file,
                name: e.reference.fileName,
                kind: "string",
                displayParts: [yp(`"${e.reference.fileName}"`, 8)],
              };
            default:
              return C.assertNever(e);
          }
        })(),
        {
          sourceFile: o,
          textSpan: s,
          name: l,
          kind: u,
          displayParts: d,
          context: _,
        } = i;
      return {
        containerKind: "",
        containerName: "",
        fileName: o.fileName,
        kind: u,
        name: l,
        textSpan: s,
        displayParts: d,
        ...bfe(s, o, _),
      };
    }
    function bz(e) {
      const t = e.getSourceFile();
      return { sourceFile: t, textSpan: Tz(va(e) ? e.expression : e, t) };
    }
    function pke(e, t, r) {
      const i = Ax.getIntersectingMeaningFromDeclarations(r, e),
        o = (e.declarations && Ac(e.declarations)) || r,
        { displayParts: s, symbolKind: l } =
          vv.getSymbolDisplayPartsDocumentationAndSymbolKind(
            t,
            e,
            o.getSourceFile(),
            o,
            o,
            i,
          );
      return { displayParts: s, kind: l };
    }
    function Ort(e, t, r, i, o) {
      return { ...QK(e), ...(i && Frt(e, t, r, o)) };
    }
    function Wrt(e, t) {
      const r = fke(e);
      return t ? { ...r, isDefinition: e.kind !== 0 && hke(e.node, t) } : r;
    }
    function fke(e) {
      const t = QK(e);
      if (e.kind === 0) return { ...t, isWriteAccess: !1 };
      const { kind: r, node: i } = e;
      return { ...t, isWriteAccess: Tfe(i), isInString: r === 2 ? !0 : void 0 };
    }
    function QK(e) {
      if (e.kind === 0) return { textSpan: e.textSpan, fileName: e.fileName };
      {
        const t = e.node.getSourceFile(),
          r = Tz(e.node, t);
        return { textSpan: r, fileName: t.fileName, ...bfe(r, t, e.context) };
      }
    }
    function Frt(e, t, r, i) {
      if (e.kind !== 0 && (He(t) || ds(t))) {
        const { node: o, kind: s } = e,
          l = o.parent,
          u = t.text,
          d = Ud(l);
        if (d || (IO(l) && l.name === o && l.dotDotDotToken === void 0)) {
          const _ = { prefixText: u + ": " },
            h = { suffixText: ": " + u };
          if (s === 3) return _;
          if (s === 4) return h;
          if (d) {
            const g = l.parent;
            return Wa(g) && Nr(g.parent) && gg(g.parent.left) ? _ : h;
          } else return _;
        } else if (Eu(l) && !l.propertyName) {
          const _ = ou(t.parent)
            ? r.getExportSpecifierLocalTargetSymbol(t.parent)
            : r.getSymbolAtLocation(t);
          return jn(_.declarations, l) ? { prefixText: u + " as " } : Sm;
        } else if (ou(l) && !l.propertyName)
          return t === e.node ||
            r.getSymbolAtLocation(t) === r.getSymbolAtLocation(e.node)
            ? { prefixText: u + " as " }
            : { suffixText: " as " + u };
      }
      if (e.kind !== 0 && np(e.node) && Ks(e.node.parent)) {
        const o = Yq(i);
        return { prefixText: o, suffixText: o };
      }
      return Sm;
    }
    function zrt(e, t) {
      const r = QK(e);
      if (e.kind !== 0) {
        const { node: i } = e;
        return { ...r, ...Brt(i, t) };
      } else return { ...r, kind: "", displayParts: [] };
    }
    function Brt(e, t) {
      const r = t.getSymbolAtLocation(rd(e) && e.name ? e.name : e);
      return r
        ? pke(r, t, e)
        : e.kind === 211
          ? {
              kind: "interface",
              displayParts: [lu(21), yf("object literal"), lu(22)],
            }
          : e.kind === 232
            ? {
                kind: "local class",
                displayParts: [lu(21), yf("anonymous local class"), lu(22)],
              }
            : { kind: ZS(e), displayParts: [] };
    }
    function Grt(e) {
      const t = QK(e);
      if (e.kind === 0)
        return {
          fileName: t.fileName,
          span: { textSpan: t.textSpan, kind: "reference" },
        };
      const r = Tfe(e.node),
        i = {
          textSpan: t.textSpan,
          kind: r ? "writtenReference" : "reference",
          isInString: e.kind === 2 ? !0 : void 0,
          ...(t.contextSpan && { contextSpan: t.contextSpan }),
        };
      return { fileName: t.fileName, span: i };
    }
    function Tz(e, t, r) {
      let i = e.getStart(t),
        o = (r || e).getEnd();
      return (
        ds(e) && o - i > 2 && (C.assert(r === void 0), (i += 1), (o -= 1)),
        r?.kind === 270 && (o = r.getFullStart()),
        ic(i, o)
      );
    }
    function mke(e) {
      return e.kind === 0 ? e.textSpan : Tz(e.node, e.node.getSourceFile());
    }
    function Tfe(e) {
      const t = nM(e);
      return (!!t && Vrt(t)) || e.kind === 90 || RI(e);
    }
    function hke(e, t) {
      var r;
      if (!t) return !1;
      const i =
          nM(e) ||
          (e.kind === 90
            ? e.parent
            : xk(e) || (e.kind === 137 && Ml(e.parent))
              ? e.parent.parent
              : void 0),
        o = i && Nr(i) ? i.left : void 0;
      return !!(
        i &&
        (r = t.declarations) != null &&
        r.some((s) => s === i || s === o)
      );
    }
    function Vrt(e) {
      if (e.flags & 33554432) return !0;
      switch (e.kind) {
        case 227:
        case 209:
        case 264:
        case 232:
        case 90:
        case 267:
        case 307:
        case 282:
        case 274:
        case 272:
        case 277:
        case 265:
        case 339:
        case 347:
        case 292:
        case 268:
        case 271:
        case 275:
        case 281:
        case 170:
        case 305:
        case 266:
        case 169:
          return !0;
        case 304:
          return !hv(e.parent);
        case 263:
        case 219:
        case 177:
        case 175:
        case 178:
        case 179:
          return !!e.body;
        case 261:
        case 173:
          return !!e.initializer || US(e.parent);
        case 174:
        case 172:
        case 349:
        case 342:
          return !1;
        default:
          return C.failBadSyntaxKind(e);
      }
    }
    var Ax;
    ((e) => {
      function t(
        ot,
        Ft,
        le,
        ht,
        ne,
        Fe = {},
        it = new Set(ht.map((dt) => dt.fileName)),
      ) {
        var dt, Lt;
        if (((Ft = r(Ft, Fe)), Yi(Ft))) {
          const Tr = fC.getReferenceAtPosition(Ft, ot, le);
          if (!Tr?.file) return;
          const Oe = le.getTypeChecker().getMergedSymbol(Tr.file.symbol);
          if (Oe) return _(le, Oe, !1, ht, it);
          const Nt = le.getFileIncludeReasons();
          return Nt
            ? [
                {
                  definition: { type: 5, reference: Tr.reference, file: Ft },
                  references: o(Tr.file, Nt, le) || ae,
                },
              ]
            : void 0;
        }
        if (!Fe.implementations) {
          const Tr = g(Ft, ht, ne);
          if (Tr) return Tr;
        }
        const Ue = le.getTypeChecker(),
          Rt = Ue.getSymbolAtLocation((Ml(Ft) && Ft.parent.name) || Ft);
        if (!Rt) {
          if (!Fe.implementations && ds(Ft)) {
            if (A7(Ft)) {
              const Tr = le.getFileIncludeReasons(),
                Oe =
                  (Lt =
                    (dt = le.getResolvedModuleFromModuleSpecifier(Ft)) == null
                      ? void 0
                      : dt.resolvedModule) == null
                    ? void 0
                    : Lt.resolvedFileName,
                Nt = Oe ? le.getSourceFile(Oe) : void 0;
              if (Nt)
                return [
                  {
                    definition: { type: 4, node: Ft },
                    references: o(Nt, Tr, le) || ae,
                  },
                ];
            }
            return Ni(Ft, ht, Ue, ne);
          }
          return;
        }
        if (Rt.escapedName === "export=") return _(le, Rt.parent, !1, ht, it);
        const It = l(Rt, le, ht, ne, Fe, it);
        if (It && !(Rt.flags & 33554432)) return It;
        const Ot = s(Ft, Rt, Ue),
          nt = Ot && l(Ot, le, ht, ne, Fe, it),
          Kt = E(Rt, Ft, ht, it, Ue, ne, Fe);
        return u(le, It, Kt, nt);
      }
      e.getReferencedSymbolsForNode = t;
      function r(ot, Ft) {
        return (
          Ft.use === 1 ? (ot = wq(ot)) : Ft.use === 2 && (ot = m7(ot)),
          ot
        );
      }
      e.getAdjustedNode = r;
      function i(ot, Ft, le, ht = new Set(le.map((ne) => ne.fileName))) {
        var ne, Fe;
        const it = (ne = Ft.getSourceFile(ot)) == null ? void 0 : ne.symbol;
        if (it)
          return (
            ((Fe = _(Ft, it, !1, le, ht)[0]) == null
              ? void 0
              : Fe.references) || ae
          );
        const dt = Ft.getFileIncludeReasons(),
          Lt = Ft.getSourceFile(ot);
        return (Lt && dt && o(Lt, dt, Ft)) || ae;
      }
      e.getReferencesForFileName = i;
      function o(ot, Ft, le) {
        let ht;
        const ne = Ft.get(ot.path) || ae;
        for (const Fe of ne)
          if (d0(Fe)) {
            const it = le.getSourceFileByPath(Fe.file),
              dt = bP(le, Fe);
            qD(dt) &&
              (ht = Bn(ht, {
                kind: 0,
                fileName: it.fileName,
                textSpan: _v(dt),
              }));
          }
        return ht;
      }
      function s(ot, Ft, le) {
        if (ot.parent && yw(ot.parent)) {
          const ht = le.getAliasedSymbol(Ft),
            ne = le.getMergedSymbol(ht);
          if (ht !== ne) return ne;
        }
      }
      function l(ot, Ft, le, ht, ne, Fe) {
        const it =
          ot.flags & 1536 && ot.declarations && hn(ot.declarations, Yi);
        if (!it) return;
        const dt = ot.exports.get("export="),
          Lt = _(Ft, ot, !!dt, le, Fe);
        if (!dt || !Fe.has(it.fileName)) return Lt;
        const Ue = Ft.getTypeChecker();
        return (
          (ot = xd(dt, Ue)),
          u(Ft, Lt, E(ot, void 0, le, Fe, Ue, ht, ne))
        );
      }
      function u(ot, ...Ft) {
        let le;
        for (const ht of Ft)
          if (!(!ht || !ht.length)) {
            if (!le) {
              le = ht;
              continue;
            }
            for (const ne of ht) {
              if (!ne.definition || ne.definition.type !== 0) {
                le.push(ne);
                continue;
              }
              const Fe = ne.definition.symbol,
                it = ho(
                  le,
                  (Lt) =>
                    !!Lt.definition &&
                    Lt.definition.type === 0 &&
                    Lt.definition.symbol === Fe,
                );
              if (it === -1) {
                le.push(ne);
                continue;
              }
              const dt = le[it];
              le[it] = {
                definition: dt.definition,
                references: dt.references
                  .concat(ne.references)
                  .sort((Lt, Ue) => {
                    const Rt = d(ot, Lt),
                      It = d(ot, Ue);
                    if (Rt !== It) return js(Rt, It);
                    const Ot = mke(Lt),
                      nt = mke(Ue);
                    return Ot.start !== nt.start
                      ? js(Ot.start, nt.start)
                      : js(Ot.length, nt.length);
                  }),
              };
            }
          }
        return le;
      }
      function d(ot, Ft) {
        const le =
          Ft.kind === 0
            ? ot.getSourceFile(Ft.fileName)
            : Ft.node.getSourceFile();
        return ot.getSourceFiles().indexOf(le);
      }
      function _(ot, Ft, le, ht, ne) {
        C.assert(!!Ft.valueDeclaration);
        const Fe = Ui(nke(ot, ht, Ft), (dt) => {
          if (dt.kind === "import") {
            const Lt = dt.literal.parent;
            if (uv(Lt)) {
              const Ue = ma(Lt.parent, e_);
              if (le && !Ue.qualifier) return;
            }
            return yy(dt.literal);
          } else if (dt.kind === "implicit") {
            const Lt =
              (dt.literal.text !== hb &&
                ex(dt.referencingFile, (Ue) =>
                  Ue.transformFlags & 2
                    ? r_(Ue) || I1(Ue) || e0(Ue)
                      ? Ue
                      : void 0
                    : "skip",
                )) ||
              dt.referencingFile.statements[0] ||
              dt.referencingFile;
            return yy(Lt);
          } else
            return {
              kind: 0,
              fileName: dt.referencingFile.fileName,
              textSpan: _v(dt.ref),
            };
        });
        if (Ft.declarations)
          for (const dt of Ft.declarations)
            switch (dt.kind) {
              case 308:
                break;
              case 268:
                ne.has(dt.getSourceFile().fileName) && Fe.push(yy(dt.name));
                break;
              default:
                C.assert(
                  !!(Ft.flags & 33554432),
                  "Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.",
                );
            }
        const it = Ft.exports.get("export=");
        if (it?.declarations)
          for (const dt of it.declarations) {
            const Lt = dt.getSourceFile();
            if (ne.has(Lt.fileName)) {
              const Ue =
                Nr(dt) && qr(dt.left)
                  ? dt.left.expression
                  : ll(dt)
                    ? C.checkDefined(Es(dt, 95, Lt))
                    : Oo(dt) || dt;
              Fe.push(yy(Ue));
            }
          }
        return Fe.length
          ? [{ definition: { type: 0, symbol: Ft }, references: Fe }]
          : ae;
      }
      function h(ot) {
        return ot.kind === 148 && KT(ot.parent) && ot.parent.operator === 148;
      }
      function g(ot, Ft, le) {
        if (CP(ot.kind))
          return (ot.kind === 116 && KI(ot.parent)) ||
            (ot.kind === 148 && !h(ot))
            ? void 0
            : Je(Ft, ot.kind, le, ot.kind === 148 ? h : void 0);
        if (KR(ot.parent) && ot.parent.name === ot) return Ce(Ft, le);
        if (jI(ot) && Ql(ot.parent))
          return [{ definition: { type: 2, node: ot }, references: [yy(ot)] }];
        if (gO(ot)) {
          const ht = l7(ot.parent, ot.text);
          return ht && xe(ht.parent, ht);
        } else if (xq(ot)) return xe(ot.parent, ot);
        if (QD(ot)) return Ai(ot, Ft, le);
        if (ot.kind === 108) return zt(ot);
      }
      function E(ot, Ft, le, ht, ne, Fe, it) {
        const dt = (Ft && N(ot, Ft, ne, !Uo(it))) || ot,
          Lt = Ft && it.use !== 2 ? ri(Ft, dt) : 7,
          Ue = [],
          Rt = new W(le, ht, Ft ? R(Ft) : 0, ne, Fe, Lt, it, Ue),
          It = !Uo(it) || !dt.declarations ? void 0 : hn(dt.declarations, ou);
        if (It)
          lt(It.name, dt, It, Rt.createSearch(Ft, ot, void 0), Rt, !0, !0);
        else if (
          Ft &&
          Ft.kind === 90 &&
          dt.escapedName === "default" &&
          dt.parent
        )
          (Ge(Ft, dt, Rt),
            O(Ft, dt, { exportingModuleSymbol: dt.parent, exportKind: 1 }, Rt));
        else {
          const Ot = Rt.createSearch(Ft, dt, void 0, {
            allSearchSymbols: Ft
              ? Ci(
                  dt,
                  Ft,
                  ne,
                  it.use === 2,
                  !!it.providePrefixAndSuffixTextForRename,
                  !!it.implementations,
                )
              : [dt],
          });
          A(dt, Rt, Ot);
        }
        return Ue;
      }
      function A(ot, Ft, le) {
        const ht = ye(ot);
        if (ht)
          re(
            ht,
            ht.getSourceFile(),
            le,
            Ft,
            !(Yi(ht) && !jn(Ft.sourceFiles, ht)),
          );
        else
          for (const ne of Ft.sourceFiles)
            (Ft.cancellationToken.throwIfCancellationRequested(),
              Z(ne, le, Ft));
      }
      function R(ot) {
        switch (ot.kind) {
          case 177:
          case 137:
            return 1;
          case 80:
            if (ui(ot.parent)) return (C.assert(ot.parent.name === ot), 2);
          default:
            return 0;
        }
      }
      function N(ot, Ft, le, ht) {
        const { parent: ne } = Ft;
        return ou(ne) && ht
          ? ce(Ft, ot, ne, le)
          : Hn(ot.declarations, (Fe) => {
              if (!Fe.parent) {
                if (ot.flags & 33554432) return;
                C.fail(
                  `Unexpected symbol at ${C.formatSyntaxKind(Ft.kind)}: ${C.formatSymbol(ot)}`,
                );
              }
              return wu(Fe.parent) && dv(Fe.parent.parent)
                ? le.getPropertyOfType(
                    le.getTypeFromTypeNode(Fe.parent.parent),
                    ot.name,
                  )
                : void 0;
            });
      }
      let P;
      ((ot) => {
        ((ot[(ot.None = 0)] = "None"),
          (ot[(ot.Constructor = 1)] = "Constructor"),
          (ot[(ot.Class = 2)] = "Class"));
      })(P || (P = {}));
      function k(ot) {
        if (!(ot.flags & 33555968)) return;
        const Ft =
          ot.declarations && hn(ot.declarations, (le) => !Yi(le) && !uc(le));
        return Ft && Ft.symbol;
      }
      class W {
        constructor(Ft, le, ht, ne, Fe, it, dt, Lt) {
          ((this.sourceFiles = Ft),
            (this.sourceFilesSet = le),
            (this.specialSearchKind = ht),
            (this.checker = ne),
            (this.cancellationToken = Fe),
            (this.searchMeaning = it),
            (this.options = dt),
            (this.result = Lt),
            (this.inheritsFromCache = new Map()),
            (this.markSeenContainingTypeReference = tC()),
            (this.markSeenReExportRHS = tC()),
            (this.symbolIdToReferences = []),
            (this.sourceFileToSeenSymbols = []));
        }
        includesSourceFile(Ft) {
          return this.sourceFilesSet.has(Ft.fileName);
        }
        getImportSearches(Ft, le) {
          return (
            this.importTracker ||
              (this.importTracker = _fe(
                this.sourceFiles,
                this.sourceFilesSet,
                this.checker,
                this.cancellationToken,
              )),
            this.importTracker(Ft, le, this.options.use === 2)
          );
        }
        createSearch(Ft, le, ht, ne = {}) {
          const {
              text: Fe = _m(wl(mM(le) || k(le) || le)),
              allSearchSymbols: it = [le],
            } = ne,
            dt = Cl(Fe),
            Lt =
              this.options.implementations && Ft
                ? Mn(Ft, le, this.checker)
                : void 0;
          return {
            symbol: le,
            comingFrom: ht,
            text: Fe,
            escapedText: dt,
            parents: Lt,
            allSearchSymbols: it,
            includes: (Ue) => jn(it, Ue),
          };
        }
        referenceAdder(Ft) {
          const le = Ta(Ft);
          let ht = this.symbolIdToReferences[le];
          return (
            ht ||
              ((ht = this.symbolIdToReferences[le] = []),
              this.result.push({
                definition: { type: 0, symbol: Ft },
                references: ht,
              })),
            (ne, Fe) => ht.push(yy(ne, Fe))
          );
        }
        addStringOrCommentReference(Ft, le) {
          this.result.push({
            definition: void 0,
            references: [{ kind: 0, fileName: Ft, textSpan: le }],
          });
        }
        markSearchedSymbols(Ft, le) {
          const ht = ls(Ft),
            ne =
              this.sourceFileToSeenSymbols[ht] ||
              (this.sourceFileToSeenSymbols[ht] = new Set());
          let Fe = !1;
          for (const it of le) Fe = rh(ne, Ta(it)) || Fe;
          return Fe;
        }
      }
      function O(ot, Ft, le, ht) {
        const {
          importSearches: ne,
          singleReferences: Fe,
          indirectUsers: it,
        } = ht.getImportSearches(Ft, le);
        if (Fe.length) {
          const dt = ht.referenceAdder(Ft);
          for (const Lt of Fe) j(Lt, ht) && dt(Lt);
        }
        for (const [dt, Lt] of ne)
          Se(dt.getSourceFile(), ht.createSearch(dt, Lt, 1), ht);
        if (it.length) {
          let dt;
          switch (le.exportKind) {
            case 0:
              dt = ht.createSearch(ot, Ft, 1);
              break;
            case 1:
              dt =
                ht.options.use === 2
                  ? void 0
                  : ht.createSearch(ot, Ft, 1, { text: "default" });
              break;
          }
          if (dt) for (const Lt of it) Z(Lt, dt, ht);
        }
      }
      function G(ot, Ft, le, ht, ne, Fe, it, dt) {
        const Lt = _fe(ot, new Set(ot.map((Ot) => Ot.fileName)), Ft, le),
          {
            importSearches: Ue,
            indirectUsers: Rt,
            singleReferences: It,
          } = Lt(ht, { exportKind: it ? 1 : 0, exportingModuleSymbol: ne }, !1);
        for (const [Ot] of Ue) dt(Ot);
        for (const Ot of It) He(Ot) && e_(Ot.parent) && dt(Ot);
        for (const Ot of Rt)
          for (const nt of fe(Ot, it ? "default" : Fe)) {
            const Kt = Ft.getSymbolAtLocation(nt),
              Tr = yt(Kt?.declarations, (Oe) => !!ni(Oe, ll));
            He(nt) && !ub(nt.parent) && (Kt === ht || Tr) && dt(nt);
          }
      }
      e.eachExportReference = G;
      function j(ot, Ft) {
        return be(ot, Ft)
          ? Ft.options.use !== 2
            ? !0
            : !He(ot) && !ub(ot.parent)
              ? !1
              : !(ub(ot.parent) && N_(ot))
          : !1;
      }
      function J(ot, Ft) {
        if (ot.declarations)
          for (const le of ot.declarations) {
            const ht = le.getSourceFile();
            Se(ht, Ft.createSearch(le, ot, 0), Ft, Ft.includesSourceFile(ht));
          }
      }
      function Z(ot, Ft, le) {
        lK(ot).get(Ft.escapedText) !== void 0 && Se(ot, Ft, le);
      }
      function q(ot, Ft) {
        return hv(ot.parent.parent)
          ? Ft.getPropertySymbolOfDestructuringAssignment(ot)
          : void 0;
      }
      function ye(ot) {
        const {
          declarations: Ft,
          flags: le,
          parent: ht,
          valueDeclaration: ne,
        } = ot;
        if (ne && (ne.kind === 219 || ne.kind === 232)) return ne;
        if (!Ft) return;
        if (le & 8196) {
          const dt = hn(Ft, (Lt) => wp(Lt, 2) || nu(Lt));
          return dt ? VT(dt, 264) : void 0;
        }
        if (Ft.some(IO)) return;
        const Fe = ht && !(ot.flags & 262144);
        if (Fe && !(dI(ht) && !ht.globalExports)) return;
        let it;
        for (const dt of Ft) {
          const Lt = F1(dt);
          if ((it && it !== Lt) || !Lt || (Lt.kind === 308 && !Pp(Lt))) return;
          if (((it = Lt), Us(it))) {
            let Ue;
            for (; (Ue = FG(it)); ) it = Ue;
          }
        }
        return Fe ? it.getSourceFile() : it;
      }
      function ie(ot, Ft, le, ht = le) {
        return K(ot, Ft, le, () => !0, ht) || !1;
      }
      e.isSymbolReferencedInFile = ie;
      function K(ot, Ft, le, ht, ne = le) {
        const Fe = Np(ot.parent, ot.parent.parent)
          ? $a(Ft.getSymbolsOfParameterPropertyDeclaration(ot.parent, ot.text))
          : Ft.getSymbolAtLocation(ot);
        if (Fe)
          for (const it of fe(le, Fe.name, ne)) {
            if (!He(it) || it === ot || it.escapedText !== ot.escapedText)
              continue;
            const dt = Ft.getSymbolAtLocation(it);
            if (
              dt === Fe ||
              Ft.getShorthandAssignmentValueSymbol(it.parent) === Fe ||
              (ou(it.parent) && ce(it, dt, it.parent, Ft) === Fe)
            ) {
              const Lt = ht(it);
              if (Lt) return Lt;
            }
          }
      }
      e.eachSymbolReferenceInFile = K;
      function pe(ot, Ft) {
        return Un(fe(Ft, ot), (ne) => !!nM(ne)).reduce(
          (ne, Fe) => {
            const it = ht(Fe);
            return (
              !yt(ne.declarationNames) || it === ne.depth
                ? (ne.declarationNames.push(Fe), (ne.depth = it))
                : it < ne.depth &&
                  ((ne.declarationNames = [Fe]), (ne.depth = it)),
              ne
            );
          },
          { depth: 1 / 0, declarationNames: [] },
        ).declarationNames;
        function ht(ne) {
          let Fe = 0;
          for (; ne; ) ((ne = F1(ne)), Fe++);
          return Fe;
        }
      }
      e.getTopMostDeclarationNamesInFile = pe;
      function de(ot, Ft, le, ht) {
        if (!ot.name || !He(ot.name)) return !1;
        const ne = C.checkDefined(le.getSymbolAtLocation(ot.name));
        for (const Fe of Ft)
          for (const it of fe(Fe, ne.name)) {
            if (
              !He(it) ||
              it === ot.name ||
              it.escapedText !== ot.name.escapedText
            )
              continue;
            const dt = s7(it),
              Lt =
                Zo(dt.parent) && dt.parent.expression === dt
                  ? dt.parent
                  : void 0,
              Ue = le.getSymbolAtLocation(it);
            if (
              Ue &&
              le.getRootSymbols(Ue).some((Rt) => Rt === ne) &&
              ht(it, Lt)
            )
              return !0;
          }
        return !1;
      }
      e.someSignatureUsage = de;
      function fe(ot, Ft, le = ot) {
        return Ui(ve(ot, Ft, le), (ht) => {
          const ne = ip(ot, ht);
          return ne === ot ? void 0 : ne;
        });
      }
      function ve(ot, Ft, le = ot) {
        const ht = [];
        if (!Ft || !Ft.length) return ht;
        const ne = ot.text,
          Fe = ne.length,
          it = Ft.length;
        let dt = ne.indexOf(Ft, le.pos);
        for (; dt >= 0 && !(dt > le.end); ) {
          const Lt = dt + it;
          ((dt === 0 || !ey(ne.charCodeAt(dt - 1), 99)) &&
            (Lt === Fe || !ey(ne.charCodeAt(Lt), 99)) &&
            ht.push(dt),
            (dt = ne.indexOf(Ft, dt + it + 1)));
        }
        return ht;
      }
      function xe(ot, Ft) {
        const le = ot.getSourceFile(),
          ht = Ft.text,
          ne = Ui(fe(le, ht, ot), (Fe) =>
            Fe === Ft || (gO(Fe) && l7(Fe, ht) === Ft) ? yy(Fe) : void 0,
          );
        return [{ definition: { type: 1, node: Ft }, references: ne }];
      }
      function X(ot, Ft) {
        switch (ot.kind) {
          case 81:
            if (n0(ot.parent)) return !0;
          case 80:
            return ot.text.length === Ft.length;
          case 15:
          case 11: {
            const le = ot;
            return (
              le.text.length === Ft.length &&
              (c7(le) ||
                Nq(ot) ||
                Wle(ot) ||
                (Zo(ot.parent) &&
                  o1(ot.parent) &&
                  ot.parent.arguments[1] === ot) ||
                ub(ot.parent))
            );
          }
          case 9:
            return c7(ot) && ot.text.length === Ft.length;
          case 90:
            return Ft.length === 7;
          default:
            return !1;
        }
      }
      function Ce(ot, Ft) {
        const le = Ki(
          ot,
          (ht) => (
            Ft.throwIfCancellationRequested(),
            Ui(fe(ht, "meta", ht), (ne) => {
              const Fe = ne.parent;
              if (KR(Fe)) return yy(Fe);
            })
          ),
        );
        return le.length
          ? [{ definition: { type: 2, node: le[0].node }, references: le }]
          : void 0;
      }
      function Je(ot, Ft, le, ht) {
        const ne = Ki(
          ot,
          (Fe) => (
            le.throwIfCancellationRequested(),
            Ui(fe(Fe, _a(Ft), Fe), (it) => {
              if (it.kind === Ft && (!ht || ht(it))) return yy(it);
            })
          ),
        );
        return ne.length
          ? [{ definition: { type: 2, node: ne[0].node }, references: ne }]
          : void 0;
      }
      function Se(ot, Ft, le, ht = !0) {
        return (
          le.cancellationToken.throwIfCancellationRequested(),
          re(ot, ot, Ft, le, ht)
        );
      }
      function re(ot, Ft, le, ht, ne) {
        if (ht.markSearchedSymbols(Ft, le.allSearchSymbols))
          for (const Fe of ve(Ft, le.text, ot)) Ne(Ft, Fe, le, ht, ne);
      }
      function be(ot, Ft) {
        return !!(W1(ot) & Ft.searchMeaning);
      }
      function Ne(ot, Ft, le, ht, ne) {
        const Fe = ip(ot, Ft);
        if (!X(Fe, le.text)) {
          !ht.options.implementations &&
            ((ht.options.findInStrings && px(ot, Ft)) ||
              (ht.options.findInComments && Yle(ot, Ft))) &&
            ht.addStringOrCommentReference(ot.fileName, Id(Ft, le.text.length));
          return;
        }
        if (!be(Fe, ht)) return;
        let it = ht.checker.getSymbolAtLocation(Fe);
        if (!it) return;
        const dt = Fe.parent;
        if (Eu(dt) && dt.propertyName === Fe) return;
        if (ou(dt)) {
          (C.assert(Fe.kind === 80 || Fe.kind === 11),
            lt(Fe, it, dt, le, ht, ne));
          return;
        }
        if (
          wN(dt) &&
          dt.isNameFirst &&
          dt.typeExpression &&
          x1(dt.typeExpression.type) &&
          dt.typeExpression.type.jsDocPropertyTags &&
          et(dt.typeExpression.type.jsDocPropertyTags)
        ) {
          Be(dt.typeExpression.type.jsDocPropertyTags, Fe, le, ht);
          return;
        }
        const Lt = dr(le, it, Fe, ht);
        if (!Lt) {
          je(it, le, ht);
          return;
        }
        switch (ht.specialSearchKind) {
          case 0:
            ne && Ge(Fe, Lt, ht);
            break;
          case 1:
            We(Fe, ot, le, ht);
            break;
          case 2:
            at(Fe, le, ht);
            break;
          default:
            C.assertNever(ht.specialSearchKind);
        }
        (Ir(Fe) &&
          Ha(Fe.parent) &&
          ES(Fe.parent.parent.parent) &&
          ((it = Fe.parent.symbol), !it)) ||
          _e(Fe, it, le, ht);
      }
      function Be(ot, Ft, le, ht) {
        const ne = ht.referenceAdder(le.symbol);
        (Ge(Ft, le.symbol, ht),
          Ye(ot, (Fe) => {
            ku(Fe.name) && ne(Fe.name.left);
          }));
      }
      function lt(ot, Ft, le, ht, ne, Fe, it) {
        C.assert(
          !it || !!ne.options.providePrefixAndSuffixTextForRename,
          "If alwaysGetReferences is true, then prefix/suffix text must be enabled",
        );
        const { parent: dt, propertyName: Lt, name: Ue } = le,
          Rt = dt.parent,
          It = ce(ot, Ft, le, ne.checker);
        if (!it && !ht.includes(It)) return;
        if (
          (Lt
            ? ot === Lt
              ? (Rt.moduleSpecifier || Ot(),
                Fe &&
                  ne.options.use !== 2 &&
                  ne.markSeenReExportRHS(Ue) &&
                  Ge(Ue, C.checkDefined(le.symbol), ne))
              : ne.markSeenReExportRHS(ot) && Ot()
            : (ne.options.use === 2 && N_(Ue)) || Ot(),
          !Uo(ne.options) || it)
        ) {
          const Kt = N_(ot) || N_(le.name) ? 1 : 0,
            Tr = C.checkDefined(le.symbol),
            Oe = gfe(Tr, Kt, ne.checker);
          Oe && O(ot, Tr, Oe, ne);
        }
        if (
          ht.comingFrom !== 1 &&
          Rt.moduleSpecifier &&
          !Lt &&
          !Uo(ne.options)
        ) {
          const nt = ne.checker.getExportSpecifierLocalTargetSymbol(le);
          nt && J(nt, ne);
        }
        function Ot() {
          Fe && Ge(ot, It, ne);
        }
      }
      function ce(ot, Ft, le, ht) {
        return (Re(ot, le) && ht.getExportSpecifierLocalTargetSymbol(le)) || Ft;
      }
      function Re(ot, Ft) {
        const { parent: le, propertyName: ht, name: ne } = Ft;
        return (
          C.assert(ht === ot || ne === ot),
          ht ? ht === ot : !le.parent.moduleSpecifier
        );
      }
      function _e(ot, Ft, le, ht) {
        const ne = oke(ot, Ft, ht.checker, le.comingFrom === 1);
        if (!ne) return;
        const { symbol: Fe } = ne;
        ne.kind === 0
          ? Uo(ht.options) || J(Fe, ht)
          : O(ot, Fe, ne.exportInfo, ht);
      }
      function je({ flags: ot, valueDeclaration: Ft }, le, ht) {
        const ne = ht.checker.getShorthandAssignmentValueSymbol(Ft),
          Fe = Ft && Oo(Ft);
        !(ot & 33554432) && Fe && le.includes(ne) && Ge(Fe, ne, ht);
      }
      function Ge(ot, Ft, le) {
        const { kind: ht, symbol: ne } =
          "kind" in Ft ? Ft : { kind: void 0, symbol: Ft };
        if (le.options.use === 2 && ot.kind === 90) return;
        const Fe = le.referenceAdder(ne);
        le.options.implementations ? en(ot, Fe, le) : Fe(ot, ht);
      }
      function We(ot, Ft, le, ht) {
        IP(ot) && Ge(ot, le.symbol, ht);
        const ne = () => ht.referenceAdder(le.symbol);
        if (ui(ot.parent))
          (C.assert(ot.kind === 90 || ot.parent.name === ot),
            Wt(le.symbol, Ft, ne()));
        else {
          const Fe = Ia(ot);
          Fe && (gn(Fe, ne()), _t(Fe, ht));
        }
      }
      function at(ot, Ft, le) {
        Ge(ot, Ft.symbol, le);
        const ht = ot.parent;
        if (le.options.use === 2 || !ui(ht)) return;
        C.assert(ht.name === ot);
        const ne = le.referenceAdder(Ft.symbol);
        for (const Fe of ht.members)
          sI(Fe) &&
            ua(Fe) &&
            Fe.body &&
            Fe.body.forEachChild(function it(dt) {
              dt.kind === 110
                ? ne(dt)
                : !Yo(dt) && !ui(dt) && dt.forEachChild(it);
            });
      }
      function Wt(ot, Ft, le) {
        const ht = cn(ot);
        if (ht && ht.declarations)
          for (const ne of ht.declarations) {
            const Fe = Es(ne, 137, Ft);
            (C.assert(ne.kind === 177 && !!Fe), le(Fe));
          }
        ot.exports &&
          ot.exports.forEach((ne) => {
            const Fe = ne.valueDeclaration;
            if (Fe && Fe.kind === 175) {
              const it = Fe.body;
              it &&
                $o(it, 110, (dt) => {
                  IP(dt) && le(dt);
                });
            }
          });
      }
      function cn(ot) {
        return ot.members && ot.members.get("__constructor");
      }
      function gn(ot, Ft) {
        const le = cn(ot.symbol);
        if (le && le.declarations)
          for (const ht of le.declarations) {
            C.assert(ht.kind === 177);
            const ne = ht.body;
            ne &&
              $o(ne, 108, (Fe) => {
                Eq(Fe) && Ft(Fe);
              });
          }
      }
      function Kn(ot) {
        return !!cn(ot.symbol);
      }
      function _t(ot, Ft) {
        if (Kn(ot)) return;
        const le = ot.symbol,
          ht = Ft.createSearch(void 0, le, void 0);
        A(le, Ft, ht);
      }
      function en(ot, Ft, le) {
        if (L_(ot) && ai(ot.parent)) {
          Ft(ot);
          return;
        }
        if (ot.kind !== 80) return;
        ot.parent.kind === 305 && qi(ot, le.checker, Ft);
        const ht = ir(ot);
        if (ht) {
          Ft(ht);
          return;
        }
        const ne = Dn(
            ot,
            (dt) => !ku(dt.parent) && !Ri(dt.parent) && !_S(dt.parent),
          ),
          Fe = ne.parent;
        if (xF(Fe) && Fe.type === ne && le.markSeenContainingTypeReference(Fe))
          if (Zy(Fe)) it(Fe.initializer);
          else if (Yo(Fe) && Fe.body) {
            const dt = Fe.body;
            dt.kind === 242
              ? vb(dt, (Lt) => {
                  Lt.expression && it(Lt.expression);
                })
              : it(dt);
          } else (yS(Fe) || ED(Fe)) && it(Fe.expression);
        function it(dt) {
          Di(dt) && Ft(dt);
        }
      }
      function ir(ot) {
        return He(ot) || qr(ot)
          ? ir(ot.parent)
          : dy(ot)
            ? ni(ot.parent.parent, Rp(ui, gd))
            : void 0;
      }
      function Di(ot) {
        switch (ot.kind) {
          case 218:
            return Di(ot.expression);
          case 220:
          case 219:
          case 211:
          case 232:
          case 210:
            return !0;
          default:
            return !1;
        }
      }
      function lo(ot, Ft, le, ht) {
        if (ot === Ft) return !0;
        const ne = Ta(ot) + "," + Ta(Ft),
          Fe = le.get(ne);
        if (Fe !== void 0) return Fe;
        le.set(ne, !1);
        const it =
          !!ot.declarations &&
          ot.declarations.some((dt) =>
            rM(dt).some((Lt) => {
              const Ue = ht.getTypeAtLocation(Lt);
              return !!Ue && !!Ue.symbol && lo(Ue.symbol, Ft, le, ht);
            }),
          );
        return (le.set(ne, it), it);
      }
      function zt(ot) {
        let Ft = sk(ot, !1);
        if (!Ft) return;
        let le = 256;
        switch (Ft.kind) {
          case 173:
          case 172:
          case 175:
          case 174:
          case 177:
          case 178:
          case 179:
            ((le &= nv(Ft)), (Ft = Ft.parent));
            break;
          default:
            return;
        }
        const ht = Ft.getSourceFile(),
          ne = Ui(fe(ht, "super", Ft), (Fe) => {
            if (Fe.kind !== 108) return;
            const it = sk(Fe, !1);
            return it && ua(it) === !!le && it.parent.symbol === Ft.symbol
              ? yy(Fe)
              : void 0;
          });
        return [{ definition: { type: 0, symbol: Ft.symbol }, references: ne }];
      }
      function Zr(ot) {
        return (
          ot.kind === 80 && ot.parent.kind === 170 && ot.parent.name === ot
        );
      }
      function Ai(ot, Ft, le) {
        let ht = vu(ot, !1, !1),
          ne = 256;
        switch (ht.kind) {
          case 175:
          case 174:
            if (mm(ht)) {
              ((ne &= nv(ht)), (ht = ht.parent));
              break;
            }
          case 173:
          case 172:
          case 177:
          case 178:
          case 179:
            ((ne &= nv(ht)), (ht = ht.parent));
            break;
          case 308:
            if (zc(ht) || Zr(ot)) return;
          case 263:
          case 219:
            break;
          default:
            return;
        }
        const Fe = Ki(
          ht.kind === 308 ? Ft : [ht.getSourceFile()],
          (dt) => (
            le.throwIfCancellationRequested(),
            fe(dt, "this", Yi(ht) ? dt : ht).filter((Lt) => {
              if (!QD(Lt)) return !1;
              const Ue = vu(Lt, !1, !1);
              if (!ah(Ue)) return !1;
              switch (ht.kind) {
                case 219:
                case 263:
                  return ht.symbol === Ue.symbol;
                case 175:
                case 174:
                  return mm(ht) && ht.symbol === Ue.symbol;
                case 232:
                case 264:
                case 211:
                  return (
                    Ue.parent &&
                    ah(Ue.parent) &&
                    ht.symbol === Ue.parent.symbol &&
                    ua(Ue) === !!ne
                  );
                case 308:
                  return Ue.kind === 308 && !zc(Ue) && !Zr(Lt);
              }
            })
          ),
        ).map((dt) => yy(dt));
        return [
          {
            definition: {
              type: 3,
              node:
                Hn(Fe, (dt) => (to(dt.node.parent) ? dt.node : void 0)) || ot,
            },
            references: Fe,
          },
        ];
      }
      function Ni(ot, Ft, le, ht) {
        const ne = f7(ot, le),
          Fe = Ki(
            Ft,
            (it) => (
              ht.throwIfCancellationRequested(),
              Ui(fe(it, ot.text), (dt) => {
                if (ds(dt) && dt.text === ot.text)
                  if (ne) {
                    const Lt = f7(dt, le);
                    if (ne !== le.getStringType() && (ne === Lt || Pr(dt, le)))
                      return yy(dt, 2);
                  } else return g1(dt) && !p1(dt, it) ? void 0 : yy(dt, 2);
              })
            ),
          );
        return [{ definition: { type: 4, node: ot }, references: Fe }];
      }
      function Pr(ot, Ft) {
        if (Su(ot.parent))
          return Ft.getPropertyOfType(
            Ft.getTypeAtLocation(ot.parent.parent),
            ot.text,
          );
      }
      function Ci(ot, Ft, le, ht, ne, Fe) {
        const it = [];
        return (
          $e(
            ot,
            Ft,
            le,
            ht,
            !(ht && ne),
            (dt, Lt, Ue) => {
              (Ue && mn(ot) !== mn(Ue) && (Ue = void 0),
                it.push(Ue || Lt || dt));
            },
            () => !Fe,
          ),
          it
        );
      }
      function $e(ot, Ft, le, ht, ne, Fe, it) {
        const dt = jO(Ft);
        if (dt) {
          const Kt = le.getShorthandAssignmentValueSymbol(Ft.parent);
          if (Kt && ht) return Fe(Kt, void 0, void 0, 3);
          const Tr = le.getContextualType(dt.parent),
            Oe = Tr && Hn(sz(dt, le, Tr, !0), (Ae) => Ot(Ae, 4));
          if (Oe) return Oe;
          const Nt = q(Ft, le),
            he = Nt && Fe(Nt, void 0, void 0, 4);
          if (he) return he;
          const B = Kt && Fe(Kt, void 0, void 0, 3);
          if (B) return B;
        }
        const Lt = s(Ft, ot, le);
        if (Lt) {
          const Kt = Fe(Lt, void 0, void 0, 1);
          if (Kt) return Kt;
        }
        const Ue = Ot(ot);
        if (Ue) return Ue;
        if (
          ot.valueDeclaration &&
          Np(ot.valueDeclaration, ot.valueDeclaration.parent)
        ) {
          const Kt = le.getSymbolsOfParameterPropertyDeclaration(
            ma(ot.valueDeclaration, to),
            ot.name,
          );
          return (
            C.assert(
              Kt.length === 2 && !!(Kt[0].flags & 1) && !!(Kt[1].flags & 4),
            ),
            Ot(ot.flags & 1 ? Kt[1] : Kt[0])
          );
        }
        const Rt = al(ot, 282);
        if (!ht || (Rt && !Rt.propertyName)) {
          const Kt = Rt && le.getExportSpecifierLocalTargetSymbol(Rt);
          if (Kt) {
            const Tr = Fe(Kt, void 0, void 0, 1);
            if (Tr) return Tr;
          }
        }
        if (!ht) {
          let Kt;
          return (
            ne
              ? (Kt = IO(Ft.parent) ? I7(le, Ft.parent) : void 0)
              : (Kt = nt(ot, le)),
            Kt && Ot(Kt, 4)
          );
        }
        if ((C.assert(ht), ne)) {
          const Kt = nt(ot, le);
          return Kt && Ot(Kt, 4);
        }
        function Ot(Kt, Tr) {
          return Hn(
            le.getRootSymbols(Kt),
            (Oe) =>
              Fe(Kt, Oe, void 0, Tr) ||
              (Oe.parent && Oe.parent.flags & 96 && it(Oe)
                ? At(Oe.parent, Oe.name, le, (Nt) => Fe(Kt, Oe, Nt, Tr))
                : void 0),
          );
        }
        function nt(Kt, Tr) {
          const Oe = al(Kt, 209);
          if (Oe && IO(Oe)) return I7(Tr, Oe);
        }
      }
      function At(ot, Ft, le, ht) {
        const ne = new Set();
        return Fe(ot);
        function Fe(it) {
          if (!(!(it.flags & 96) || !gm(ne, it)))
            return Hn(it.declarations, (dt) =>
              Hn(rM(dt), (Lt) => {
                const Ue = le.getTypeAtLocation(Lt),
                  Rt = Ue.symbol && le.getPropertyOfType(Ue, Ft);
                return (
                  (Rt && Hn(le.getRootSymbols(Rt), ht)) ||
                  (Ue.symbol && Fe(Ue.symbol))
                );
              }),
            );
        }
      }
      function mn(ot) {
        return ot.valueDeclaration ? !!(Gd(ot.valueDeclaration) & 256) : !1;
      }
      function dr(ot, Ft, le, ht) {
        const { checker: ne } = ht;
        return $e(
          Ft,
          le,
          ne,
          !1,
          ht.options.use !== 2 ||
            !!ht.options.providePrefixAndSuffixTextForRename,
          (Fe, it, dt, Lt) => (
            dt && mn(Ft) !== mn(dt) && (dt = void 0),
            ot.includes(dt || it || Fe)
              ? { symbol: it && !(Wl(Fe) & 6) ? it : Fe, kind: Lt }
              : void 0
          ),
          (Fe) =>
            !(
              ot.parents &&
              !ot.parents.some((it) =>
                lo(Fe.parent, it, ht.inheritsFromCache, ne),
              )
            ),
        );
      }
      function ri(ot, Ft) {
        let le = W1(ot);
        const { declarations: ht } = Ft;
        if (ht) {
          let ne;
          do {
            ne = le;
            for (const Fe of ht) {
              const it = o7(Fe);
              it & le && (le |= it);
            }
          } while (le !== ne);
        }
        return le;
      }
      e.getIntersectingMeaningFromDeclarations = ri;
      function ai(ot) {
        return ot.flags & 33554432
          ? !(gd(ot) || vm(ot))
          : HN(ot)
            ? Zy(ot)
            : Ms(ot)
              ? !!ot.body
              : ui(ot) || H2(ot);
      }
      function qi(ot, Ft, le) {
        const ht = Ft.getSymbolAtLocation(ot),
          ne = Ft.getShorthandAssignmentValueSymbol(ht.valueDeclaration);
        if (ne) for (const Fe of ne.getDeclarations()) o7(Fe) & 1 && le(Fe);
      }
      e.getReferenceEntriesForShorthandPropertyAssignment = qi;
      function $o(ot, Ft, le) {
        Jo(ot, (ht) => {
          (ht.kind === Ft && le(ht), $o(ht, Ft, le));
        });
      }
      function Ia(ot) {
        return fV(s7(ot).parent);
      }
      function Mn(ot, Ft, le) {
        const ht = $D(ot) ? ot.parent : void 0,
          ne = ht && le.getTypeAtLocation(ht.expression),
          Fe = Ui(
            ne &&
              (ne.isUnionOrIntersection()
                ? ne.types
                : ne.symbol === Ft.parent
                  ? void 0
                  : [ne]),
            (it) => (it.symbol && it.symbol.flags & 96 ? it.symbol : void 0),
          );
        return Fe.length === 0 ? void 0 : Fe;
      }
      function Uo(ot) {
        return ot.use === 2 && ot.providePrefixAndSuffixTextForRename;
      }
    })(Ax || (Ax = {}));
    var fC = {};
    x(fC, {
      createDefinitionInfo: () => eW,
      getDefinitionAndBoundSpan: () => Xrt,
      getDefinitionAtPosition: () => _ke,
      getReferenceAtPosition: () => yke,
      getTypeDefinitionAtPosition: () => Jrt,
    });
    function _ke(e, t, r, i, o) {
      var s;
      const l = yke(t, r, e),
        u = (l && [eit(l.reference.fileName, l.fileName, l.unverified)]) || ae;
      if (l?.file) return u;
      const d = ip(t, r);
      if (d === t) return;
      const { parent: _ } = d,
        h = e.getTypeChecker();
      if (d.kind === 164 || (He(d) && I4(_) && _.tagName === d)) {
        const k = Urt(h, d);
        if (k !== void 0 || d.kind !== 164) return k || ae;
      }
      if (gO(d)) {
        const k = l7(d.parent, d.text);
        return k ? [Sfe(h, k, "label", d.text, void 0)] : void 0;
      }
      switch (d.kind) {
        case 90:
          if (!qM(d.parent)) break;
        case 84:
          const k = Dn(d.parent, UM);
          if (k) return [Zrt(k, t)];
          break;
      }
      let g;
      switch (d.kind) {
        case 107:
        case 135:
        case 127:
          g = Ms;
          const k = Dn(d, g);
          return k ? [Afe(h, k)] : void 0;
      }
      if (jI(d) && Ql(d.parent)) {
        const k = d.parent.parent,
          { symbol: W, failedAliasResolution: O } = ZK(k, h, o),
          G = Un(k.members, Ql),
          j = W ? h.symbolToString(W, k) : "",
          J = d.getSourceFile();
        return Vt(G, (Z) => {
          let { pos: q } = Yh(Z);
          return (
            (q = La(J.text, q)),
            Sfe(h, Z, "constructor", "static {}", j, !1, O, {
              start: q,
              length: 6,
            })
          );
        });
      }
      let { symbol: E, failedAliasResolution: A } = ZK(d, h, o),
        R = d;
      if (i && A) {
        const k = Ye([d, ...(E?.declarations || ae)], (O) => Dn(O, zte)),
          W = k && gI(k);
        W && (({ symbol: E, failedAliasResolution: A } = ZK(W, h, o)), (R = W));
      }
      if (!E && A7(R)) {
        const k =
          (s = e.getResolvedModuleFromModuleSpecifier(R, t)) == null
            ? void 0
            : s.resolvedModule;
        if (k)
          return [
            {
              name: R.text,
              fileName: k.resolvedFileName,
              containerName: void 0,
              containerKind: void 0,
              kind: "script",
              textSpan: Id(0, 0),
              failedAliasResolution: A,
              isAmbient: ad(k.resolvedFileName),
              unverified: R !== d,
            },
          ];
      }
      if ((Aa(d) && (bc(_) || nd(_)) && (E = _.symbol), !E))
        return so(u, Yrt(d, h));
      if (
        i &&
        Vn(E.declarations, (k) => k.getSourceFile().fileName === t.fileName)
      )
        return;
      const N = nit(h, d);
      if (N && !(ru(d.parent) && rit(N))) {
        const k = Afe(h, N, A);
        let W = (G) => G !== N;
        if (h.getRootSymbols(E).some((G) => jrt(G, N))) {
          if (!Ml(N)) return [k];
          W = (G) => G !== N && (Dc(G) || dc(G));
        }
        const O = XP(h, E, d, A, W) || ae;
        return d.kind === 108 ? [k, ...O] : [...O, k];
      }
      if (d.parent.kind === 305) {
        const k = h.getShorthandAssignmentValueSymbol(E.valueDeclaration),
          W = k?.declarations
            ? k.declarations.map((O) => eW(O, h, k, d, !1, A))
            : ae;
        return so(W, gke(h, d));
      }
      if (vc(d) && Ha(_) && ff(_.parent) && d === (_.propertyName || _.name)) {
        const k = AO(d),
          W = h.getTypeAtLocation(_.parent);
        return k === void 0
          ? ae
          : Ki(W.isUnion() ? W.types : [W], (O) => {
              const G = O.getProperty(k);
              return G && XP(h, G, d);
            });
      }
      const P = gke(h, d);
      return so(u, P.length ? P : XP(h, E, d, A));
    }
    function jrt(e, t) {
      var r;
      return (
        e === t.symbol ||
        e === t.symbol.parent ||
        id(t.parent) ||
        (!gS(t.parent) &&
          e === ((r = ni(t.parent, ah)) == null ? void 0 : r.symbol))
      );
    }
    function gke(e, t) {
      const r = jO(t);
      if (r) {
        const i = r && e.getContextualType(r.parent);
        if (i) return Ki(sz(r, e, i, !1), (o) => XP(e, o, t));
      }
      return ae;
    }
    function Urt(e, t) {
      const r = Dn(t, bc);
      if (!(r && r.name)) return;
      const i = Dn(r, ui);
      if (!i) return;
      const o = lh(i);
      if (!o) return;
      const s = us(o.expression),
        l = dc(s) ? s.symbol : e.getSymbolAtLocation(s);
      if (!l) return;
      const u = wc(r) ? e.getTypeOfSymbol(l) : e.getDeclaredTypeOfSymbol(l);
      let d;
      if (va(r.name)) {
        const _ = e.getSymbolAtLocation(r.name);
        if (!_) return;
        sM(_)
          ? (d = hn(
              e.getPropertiesOfType(u),
              (h) => h.escapedName === _.escapedName,
            ))
          : (d = e.getPropertyOfType(u, Gi(_.escapedName)));
      } else d = e.getPropertyOfType(u, Gi(hI(r.name)));
      if (d) return XP(e, d, t);
    }
    function yke(e, t, r) {
      var i, o;
      const s = tW(e.referencedFiles, t);
      if (s) {
        const d = r.getSourceFileFromReference(e, s);
        return (
          d && { reference: s, fileName: d.fileName, file: d, unverified: !1 }
        );
      }
      const l = tW(e.typeReferenceDirectives, t);
      if (l) {
        const d =
            (i = r.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(
              l,
              e,
            )) == null
              ? void 0
              : i.resolvedTypeReferenceDirective,
          _ = d && r.getSourceFile(d.resolvedFileName);
        return (
          _ && { reference: l, fileName: _.fileName, file: _, unverified: !1 }
        );
      }
      const u = tW(e.libReferenceDirectives, t);
      if (u) {
        const d = r.getLibFileFromReference(u);
        return (
          d && { reference: u, fileName: d.fileName, file: d, unverified: !1 }
        );
      }
      if (e.imports.length || e.moduleAugmentations.length) {
        const d = eC(e, t);
        let _;
        if (
          A7(d) &&
          td(d.text) &&
          (_ = r.getResolvedModuleFromModuleSpecifier(d, e))
        ) {
          const h =
              (o = _.resolvedModule) == null ? void 0 : o.resolvedFileName,
            g = h || ab(ci(e.fileName), d.text);
          return {
            file: r.getSourceFile(g),
            fileName: g,
            reference: { pos: d.getStart(), end: d.getEnd(), fileName: d.text },
            unverified: !h,
          };
        }
      }
    }
    var vke = new Set([
      "Array",
      "ArrayLike",
      "ReadonlyArray",
      "Promise",
      "PromiseLike",
      "Iterable",
      "IterableIterator",
      "AsyncIterable",
      "Set",
      "WeakSet",
      "ReadonlySet",
      "Map",
      "WeakMap",
      "ReadonlyMap",
      "Partial",
      "Required",
      "Readonly",
      "Pick",
      "Omit",
    ]);
    function Hrt(e, t) {
      const r = t.symbol.name;
      if (!vke.has(r)) return !1;
      const i = e.resolveName(r, void 0, 788968, !1);
      return !!i && i === t.target.symbol;
    }
    function bke(e, t) {
      if (!t.aliasSymbol) return !1;
      const r = t.aliasSymbol.name;
      if (!vke.has(r)) return !1;
      const i = e.resolveName(r, void 0, 788968, !1);
      return !!i && i === t.aliasSymbol;
    }
    function qrt(e, t, r, i) {
      var o, s;
      if (Hr(t) & 4 && Hrt(e, t)) return ZO(e.getTypeArguments(t)[0], e, r, i);
      if (bke(e, t) && t.aliasTypeArguments)
        return ZO(t.aliasTypeArguments[0], e, r, i);
      if (Hr(t) & 32 && t.target && bke(e, t.target)) {
        const l =
          (s = (o = t.aliasSymbol) == null ? void 0 : o.declarations) == null
            ? void 0
            : s[0];
        if (l && vm(l) && Wp(l.type) && l.type.typeArguments)
          return ZO(e.getTypeAtLocation(l.type.typeArguments[0]), e, r, i);
      }
      return [];
    }
    function Jrt(e, t, r) {
      const i = ip(t, r);
      if (i === t) return;
      if (KR(i.parent) && i.parent.name === i)
        return ZO(e.getTypeAtLocation(i.parent), e, i.parent, !1);
      let { symbol: o, failedAliasResolution: s } = ZK(i, e, !1);
      if (
        (Aa(i) &&
          (bc(i.parent) || nd(i.parent)) &&
          ((o = i.parent.symbol), (s = !1)),
        !o)
      )
        return;
      const l = e.getTypeOfSymbolAtLocation(o, i),
        u = Krt(o, l, e),
        d = u && ZO(u, e, i, s),
        [_, h] = d && d.length !== 0 ? [u, d] : [l, ZO(l, e, i, s)];
      return h.length
        ? [...qrt(e, _, i, s), ...h]
        : !(o.flags & 111551) && o.flags & 788968
          ? XP(e, xd(o, e), i, s)
          : void 0;
    }
    function ZO(e, t, r, i) {
      return Ki(
        e.isUnion() && !(e.flags & 32) ? e.types : [e],
        (o) => o.symbol && XP(t, o.symbol, r, i),
      );
    }
    function Krt(e, t, r) {
      if (
        t.symbol === e ||
        (e.valueDeclaration &&
          t.symbol &&
          yi(e.valueDeclaration) &&
          e.valueDeclaration.initializer === t.symbol.valueDeclaration)
      ) {
        const i = t.getCallSignatures();
        if (i.length === 1) return r.getReturnTypeOfSignature($a(i));
      }
    }
    function Xrt(e, t, r) {
      const i = _ke(e, t, r);
      if (!i || i.length === 0) return;
      const o =
        tW(t.referencedFiles, r) ||
        tW(t.typeReferenceDirectives, r) ||
        tW(t.libReferenceDirectives, r);
      if (o) return { definitions: i, textSpan: _v(o) };
      const s = ip(t, r),
        l = Id(s.getStart(), s.getWidth());
      return { definitions: i, textSpan: l };
    }
    function Yrt(e, t) {
      return Ui(
        t.getIndexInfosAtLocation(e),
        (r) => r.declaration && Afe(t, r.declaration),
      );
    }
    function ZK(e, t, r) {
      const i = t.getSymbolAtLocation(e);
      let o = !1;
      if (
        i?.declarations &&
        i.flags & 2097152 &&
        !r &&
        $rt(e, i.declarations[0])
      ) {
        const s = t.getAliasedSymbol(i);
        if (s.declarations) return { symbol: s };
        o = !0;
      }
      return { symbol: i, failedAliasResolution: o };
    }
    function $rt(e, t) {
      return e.kind !== 80 && (e.kind !== 11 || !ub(e.parent))
        ? !1
        : e.parent === t
          ? !0
          : t.kind !== 275;
    }
    function Qrt(e) {
      if (!$N(e)) return !1;
      const t = Dn(e, (r) => (id(r) ? !0 : $N(r) ? !1 : "quit"));
      return !!t && oc(t) === 5;
    }
    function XP(e, t, r, i, o) {
      const s = o !== void 0 ? Un(t.declarations, o) : t.declarations,
        l = !o && (_() || h());
      if (l) return l;
      const u = Un(s, (E) => !Qrt(E)),
        d = yt(u) ? u : s;
      return Vt(d, (E) => eW(E, e, t, r, !1, i));
      function _() {
        if (t.flags & 32 && !(t.flags & 19) && (IP(r) || r.kind === 137)) {
          const E = hn(s, ui);
          return E && g(E.members, !0);
        }
      }
      function h() {
        return Aq(r) || Mq(r) ? g(s, !1) : void 0;
      }
      function g(E, A) {
        if (!E) return;
        const R = E.filter(A ? Ml : Yo),
          N = R.filter((P) => !!P.body);
        return R.length
          ? N.length !== 0
            ? N.map((P) => eW(P, e, t, r))
            : [eW(Ba(R), e, t, r, !1, i)]
          : void 0;
      }
    }
    function eW(e, t, r, i, o, s) {
      const l = t.symbolToString(r),
        u = vv.getSymbolKind(t, r, i),
        d = r.parent ? t.symbolToString(r.parent, i) : "";
      return Sfe(t, e, u, l, d, o, s);
    }
    function Sfe(e, t, r, i, o, s, l, u) {
      const d = t.getSourceFile();
      if (!u) {
        const _ = Oo(t) || t;
        u = zu(_, d);
      }
      return {
        fileName: d.fileName,
        textSpan: u,
        kind: r,
        name: i,
        containerKind: void 0,
        containerName: o,
        ...Ys.toContextSpan(u, d, Ys.getContextNode(t)),
        isLocal: !Efe(e, t),
        isAmbient: !!(t.flags & 33554432),
        unverified: s,
        failedAliasResolution: l,
      };
    }
    function Zrt(e, t) {
      const r = Ys.getContextNode(e),
        i = zu(vfe(r) ? r.start : r, t);
      return {
        fileName: t.fileName,
        textSpan: i,
        kind: "keyword",
        name: "switch",
        containerKind: void 0,
        containerName: "",
        ...Ys.toContextSpan(i, t, r),
        isLocal: !0,
        isAmbient: !1,
        unverified: !1,
        failedAliasResolution: void 0,
      };
    }
    function Efe(e, t) {
      if (e.isDeclarationVisible(t)) return !0;
      if (!t.parent) return !1;
      if (Zy(t.parent) && t.parent.initializer === t) return Efe(e, t.parent);
      switch (t.kind) {
        case 173:
        case 178:
        case 179:
        case 175:
          if (wp(t, 2)) return !1;
        case 177:
        case 304:
        case 305:
        case 211:
        case 232:
        case 220:
        case 219:
          return Efe(e, t.parent);
        default:
          return !1;
      }
    }
    function Afe(e, t, r) {
      return eW(t, e, t.symbol, t, !1, r);
    }
    function tW(e, t) {
      return hn(e, (r) => N2(r, t));
    }
    function eit(e, t, r) {
      return {
        fileName: t,
        textSpan: ic(0, 0),
        kind: "script",
        name: e,
        containerName: void 0,
        containerKind: void 0,
        unverified: r,
      };
    }
    function tit(e) {
      const t = Dn(e, (i) => !$D(i)),
        r = t?.parent;
      return r && gS(r) && $F(r) === t ? r : void 0;
    }
    function nit(e, t) {
      const r = tit(t),
        i = r && e.getResolvedSignature(r);
      return ni(i && i.declaration, (o) => Yo(o) && !w_(o));
    }
    function rit(e) {
      switch (e.kind) {
        case 177:
        case 186:
        case 180:
        case 181:
          return !0;
        default:
          return !1;
      }
    }
    var eX = {};
    x(eX, { provideInlayHints: () => sit });
    var iit = (e) => new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);
    function oit(e) {
      return (
        e.includeInlayParameterNameHints === "literals" ||
        e.includeInlayParameterNameHints === "all"
      );
    }
    function ait(e) {
      return e.includeInlayParameterNameHints === "literals";
    }
    function Ife(e) {
      return e.interactiveInlayHints === !0;
    }
    function sit(e) {
      const {
          file: t,
          program: r,
          span: i,
          cancellationToken: o,
          preferences: s,
        } = e,
        l = t.text,
        u = r.getCompilerOptions(),
        d = Gp(t, s),
        _ = r.getTypeChecker(),
        h = [];
      return (g(t), h);
      function g(Se) {
        if (!(!Se || Se.getFullWidth() === 0)) {
          switch (Se.kind) {
            case 268:
            case 264:
            case 265:
            case 263:
            case 232:
            case 219:
            case 175:
            case 220:
              o.throwIfCancellationRequested();
          }
          if (M2(i, Se.pos, Se.getFullWidth()) && !(Ri(Se) && !dy(Se)))
            return (
              (s.includeInlayVariableTypeHints && yi(Se)) ||
              (s.includeInlayPropertyDeclarationTypeHints && Po(Se))
                ? W(Se)
                : s.includeInlayEnumMemberValueHints && py(Se)
                  ? P(Se)
                  : oit(s) && (Zo(Se) || GS(Se))
                    ? O(Se)
                    : (s.includeInlayFunctionParameterTypeHints &&
                        Ms(Se) &&
                        Q6(Se) &&
                        ye(Se),
                      s.includeInlayFunctionLikeReturnTypeHints &&
                        E(Se) &&
                        Z(Se)),
              Jo(Se, g)
            );
        }
      }
      function E(Se) {
        return Xs(Se) || Us(Se) || Zl(Se) || Nl(Se) || Hf(Se);
      }
      function A(Se, re, be, Ne) {
        let Be = `${Ne ? "..." : ""}${Se}`,
          lt;
        (Ife(s) ? ((lt = [Je(Be, re), { text: ":" }]), (Be = "")) : (Be += ":"),
          h.push({
            text: Be,
            position: be,
            kind: "Parameter",
            whitespaceAfter: !0,
            displayParts: lt,
          }));
      }
      function R(Se, re) {
        h.push({
          text: typeof Se == "string" ? `: ${Se}` : "",
          displayParts:
            typeof Se == "string" ? void 0 : [{ text: ": " }, ...Se],
          position: re,
          kind: "Type",
          whitespaceBefore: !0,
        });
      }
      function N(Se, re) {
        h.push({
          text: `= ${Se}`,
          position: re,
          kind: "Enum",
          whitespaceBefore: !0,
        });
      }
      function P(Se) {
        if (Se.initializer) return;
        const re = _.getConstantValue(Se);
        re !== void 0 && N(re.toString(), Se.end);
      }
      function k(Se) {
        return Se.symbol && Se.symbol.flags & 1536;
      }
      function W(Se) {
        if (
          (Se.initializer === void 0 &&
            !(Po(Se) && !(_.getTypeAtLocation(Se).flags & 1))) ||
          Qo(Se.name) ||
          (yi(Se) && !Ce(Se)) ||
          xc(Se)
        )
          return;
        const be = _.getTypeAtLocation(Se);
        if (k(be)) return;
        const Ne = fe(be);
        if (Ne) {
          const Be =
            typeof Ne == "string" ? Ne : Ne.map((ce) => ce.text).join("");
          if (
            s.includeInlayVariableTypeHintsWhenTypeMatchesName === !1 &&
            rb(Se.name.getText(), Be)
          )
            return;
          R(Ne, Se.name.end);
        }
      }
      function O(Se) {
        const re = Se.arguments;
        if (!re || !re.length) return;
        const be = _.getResolvedSignature(Se);
        if (be === void 0) return;
        let Ne = 0;
        for (const Be of re) {
          const lt = us(Be);
          if (ait(s) && !J(lt)) {
            Ne++;
            continue;
          }
          let ce = 0;
          if (qf(lt)) {
            const _e = _.getTypeAtLocation(lt.expression);
            if (_.isTupleType(_e)) {
              const { elementFlags: je, fixedLength: Ge } = _e.target;
              if (Ge === 0) continue;
              const We = ho(je, (Wt) => !(Wt & 1));
              (We < 0 ? Ge : We) > 0 && (ce = We < 0 ? Ge : We);
            }
          }
          const Re = _.getParameterIdentifierInfoAtPosition(be, Ne);
          if (((Ne = Ne + (ce || 1)), Re)) {
            const {
              parameter: _e,
              parameterName: je,
              isRestParameter: Ge,
            } = Re;
            if (
              !(
                s.includeInlayParameterNameHintsWhenArgumentMatchesName ||
                !G(lt, je)
              ) &&
              !Ge
            )
              continue;
            const at = Gi(je);
            if (j(lt, at)) continue;
            A(at, _e, Be.getStart(), Ge);
          }
        }
      }
      function G(Se, re) {
        return He(Se) ? Se.text === re : qr(Se) ? Se.name.text === re : !1;
      }
      function j(Se, re) {
        if (!fp(re, Ga(u), jk(t.scriptKind))) return !1;
        const be = lg(l, Se.pos);
        if (!be?.length) return !1;
        const Ne = iit(re);
        return yt(be, (Be) => Ne.test(l.substring(Be.pos, Be.end)));
      }
      function J(Se) {
        switch (Se.kind) {
          case 225: {
            const re = Se.operand;
            return XE(re) || (He(re) && NM(re.escapedText));
          }
          case 112:
          case 97:
          case 106:
          case 15:
          case 229:
            return !0;
          case 80: {
            const re = Se.escapedText;
            return X(re) || NM(re);
          }
        }
        return XE(Se);
      }
      function Z(Se) {
        if ((Xs(Se) && !Es(Se, 21, t)) || kp(Se) || !Se.body) return;
        const be = _.getSignatureFromDeclaration(Se);
        if (!be) return;
        const Ne = _.getTypePredicateOfSignature(be);
        if (Ne?.type) {
          const ce = ve(Ne);
          if (ce) {
            R(ce, q(Se));
            return;
          }
        }
        const Be = _.getReturnTypeOfSignature(be);
        if (k(Be)) return;
        const lt = fe(Be);
        lt && R(lt, q(Se));
      }
      function q(Se) {
        const re = Es(Se, 22, t);
        return re ? re.end : Se.parameters.end;
      }
      function ye(Se) {
        const re = _.getSignatureFromDeclaration(Se);
        if (!re) return;
        let be = 0;
        for (const Ne of Se.parameters)
          (Ce(Ne) && ie(Ne, Sb(Ne) ? re.thisParameter : re.parameters[be]),
            !Sb(Ne) && be++);
      }
      function ie(Se, re) {
        if (xc(Se) || re === void 0) return;
        const Ne = K(re);
        Ne !== void 0 &&
          R(Ne, Se.questionToken ? Se.questionToken.end : Se.name.end);
      }
      function K(Se) {
        const re = Se.valueDeclaration;
        if (!re || !to(re)) return;
        const be = _.getTypeOfSymbolAtLocation(Se, re);
        if (!k(be)) return fe(be);
      }
      function pe(Se) {
        const be = YS();
        return jR((Ne) => {
          const Be = _.typeToTypeNode(Se, void 0, 71286784);
          (C.assertIsDefined(Be, "should always get typenode"),
            be.writeNode(4, Be, t, Ne));
        });
      }
      function de(Se) {
        const be = YS();
        return jR((Ne) => {
          const Be = _.typePredicateToTypePredicateNode(Se, void 0, 71286784);
          (C.assertIsDefined(Be, "should always get typePredicateNode"),
            be.writeNode(4, Be, t, Ne));
        });
      }
      function fe(Se) {
        if (!Ife(s)) return pe(Se);
        const be = _.typeToTypeNode(Se, void 0, 71286784);
        return (C.assertIsDefined(be, "should always get typeNode"), xe(be));
      }
      function ve(Se) {
        if (!Ife(s)) return de(Se);
        const be = _.typePredicateToTypePredicateNode(Se, void 0, 71286784);
        return (C.assertIsDefined(be, "should always get typenode"), xe(be));
      }
      function xe(Se) {
        const re = [];
        return (be(Se), re);
        function be(ce) {
          var Re, _e;
          if (!ce) return;
          const je = _a(ce.kind);
          if (je) {
            re.push({ text: je });
            return;
          }
          if (XE(ce)) {
            re.push({ text: lt(ce) });
            return;
          }
          switch (ce.kind) {
            case 80:
              C.assertNode(ce, He);
              const Ge = Kr(ce),
                We =
                  ce.symbol &&
                  ce.symbol.declarations &&
                  ce.symbol.declarations.length &&
                  Oo(ce.symbol.declarations[0]);
              We ? re.push(Je(Ge, We)) : re.push({ text: Ge });
              break;
            case 167:
              (C.assertNode(ce, ku),
                be(ce.left),
                re.push({ text: "." }),
                be(ce.right));
              break;
            case 183:
              (C.assertNode(ce, HI),
                ce.assertsModifier && re.push({ text: "asserts " }),
                be(ce.parameterName),
                ce.type && (re.push({ text: " is " }), be(ce.type)));
              break;
            case 184:
              (C.assertNode(ce, Wp),
                be(ce.typeName),
                ce.typeArguments &&
                  (re.push({ text: "<" }),
                  Be(ce.typeArguments, ", "),
                  re.push({ text: ">" })));
              break;
            case 169:
              (C.assertNode(ce, sl),
                ce.modifiers && Be(ce.modifiers, " "),
                be(ce.name),
                ce.constraint &&
                  (re.push({ text: " extends " }), be(ce.constraint)),
                ce.default && (re.push({ text: " = " }), be(ce.default)));
              break;
            case 170:
              (C.assertNode(ce, to),
                ce.modifiers && Be(ce.modifiers, " "),
                ce.dotDotDotToken && re.push({ text: "..." }),
                be(ce.name),
                ce.questionToken && re.push({ text: "?" }),
                ce.type && (re.push({ text: ": " }), be(ce.type)));
              break;
            case 186:
              (C.assertNode(ce, vD),
                re.push({ text: "new " }),
                Ne(ce),
                re.push({ text: " => " }),
                be(ce.type));
              break;
            case 187:
              (C.assertNode(ce, FS),
                re.push({ text: "typeof " }),
                be(ce.exprName),
                ce.typeArguments &&
                  (re.push({ text: "<" }),
                  Be(ce.typeArguments, ", "),
                  re.push({ text: ">" })));
              break;
            case 188:
              (C.assertNode(ce, wu),
                re.push({ text: "{" }),
                ce.members.length &&
                  (re.push({ text: " " }),
                  Be(ce.members, "; "),
                  re.push({ text: " " })),
                re.push({ text: "}" }));
              break;
            case 189:
              (C.assertNode(ce, hw),
                be(ce.elementType),
                re.push({ text: "[]" }));
              break;
            case 190:
              (C.assertNode(ce, qI),
                re.push({ text: "[" }),
                Be(ce.elements, ", "),
                re.push({ text: "]" }));
              break;
            case 203:
              (C.assertNode(ce, bD),
                ce.dotDotDotToken && re.push({ text: "..." }),
                be(ce.name),
                ce.questionToken && re.push({ text: "?" }),
                re.push({ text: ": " }),
                be(ce.type));
              break;
            case 191:
              (C.assertNode(ce, g4), be(ce.type), re.push({ text: "?" }));
              break;
            case 192:
              (C.assertNode(ce, y4), re.push({ text: "..." }), be(ce.type));
              break;
            case 193:
              (C.assertNode(ce, dv), Be(ce.types, " | "));
              break;
            case 194:
              (C.assertNode(ce, JI), Be(ce.types, " & "));
              break;
            case 195:
              (C.assertNode(ce, zS),
                be(ce.checkType),
                re.push({ text: " extends " }),
                be(ce.extendsType),
                re.push({ text: " ? " }),
                be(ce.trueType),
                re.push({ text: " : " }),
                be(ce.falseType));
              break;
            case 196:
              (C.assertNode(ce, y1),
                re.push({ text: "infer " }),
                be(ce.typeParameter));
              break;
            case 197:
              (C.assertNode(ce, v1),
                re.push({ text: "(" }),
                be(ce.type),
                re.push({ text: ")" }));
              break;
            case 199:
              (C.assertNode(ce, KT),
                re.push({ text: `${_a(ce.operator)} ` }),
                be(ce.type));
              break;
            case 200:
              (C.assertNode(ce, BS),
                be(ce.objectType),
                re.push({ text: "[" }),
                be(ce.indexType),
                re.push({ text: "]" }));
              break;
            case 201:
              (C.assertNode(ce, b1),
                re.push({ text: "{ " }),
                ce.readonlyToken &&
                  (ce.readonlyToken.kind === 40
                    ? re.push({ text: "+" })
                    : ce.readonlyToken.kind === 41 && re.push({ text: "-" }),
                  re.push({ text: "readonly " })),
                re.push({ text: "[" }),
                be(ce.typeParameter),
                ce.nameType && (re.push({ text: " as " }), be(ce.nameType)),
                re.push({ text: "]" }),
                ce.questionToken &&
                  (ce.questionToken.kind === 40
                    ? re.push({ text: "+" })
                    : ce.questionToken.kind === 41 && re.push({ text: "-" }),
                  re.push({ text: "?" })),
                re.push({ text: ": " }),
                ce.type && be(ce.type),
                re.push({ text: "; }" }));
              break;
            case 202:
              (C.assertNode(ce, uv), be(ce.literal));
              break;
            case 185:
              (C.assertNode(ce, w_),
                Ne(ce),
                re.push({ text: " => " }),
                be(ce.type));
              break;
            case 206:
              (C.assertNode(ce, e_),
                ce.isTypeOf && re.push({ text: "typeof " }),
                re.push({ text: "import(" }),
                be(ce.argument),
                ce.assertions &&
                  (re.push({ text: ", { assert: " }),
                  Be(ce.assertions.assertClause.elements, ", "),
                  re.push({ text: " }" })),
                re.push({ text: ")" }),
                ce.qualifier && (re.push({ text: "." }), be(ce.qualifier)),
                ce.typeArguments &&
                  (re.push({ text: "<" }),
                  Be(ce.typeArguments, ", "),
                  re.push({ text: ">" })));
              break;
            case 172:
              (C.assertNode(ce, Su),
                (Re = ce.modifiers) != null &&
                  Re.length &&
                  (Be(ce.modifiers, " "), re.push({ text: " " })),
                be(ce.name),
                ce.questionToken && re.push({ text: "?" }),
                ce.type && (re.push({ text: ": " }), be(ce.type)));
              break;
            case 182:
              (C.assertNode(ce, Mb),
                re.push({ text: "[" }),
                Be(ce.parameters, ", "),
                re.push({ text: "]" }),
                ce.type && (re.push({ text: ": " }), be(ce.type)));
              break;
            case 174:
              (C.assertNode(ce, Gm),
                (_e = ce.modifiers) != null &&
                  _e.length &&
                  (Be(ce.modifiers, " "), re.push({ text: " " })),
                be(ce.name),
                ce.questionToken && re.push({ text: "?" }),
                Ne(ce),
                ce.type && (re.push({ text: ": " }), be(ce.type)));
              break;
            case 180:
              (C.assertNode(ce, UI),
                Ne(ce),
                ce.type && (re.push({ text: ": " }), be(ce.type)));
              break;
            case 181:
              (C.assertNode(ce, GM),
                re.push({ text: "new " }),
                Ne(ce),
                ce.type && (re.push({ text: ": " }), be(ce.type)));
              break;
            case 208:
              (C.assertNode(ce, pv),
                re.push({ text: "[" }),
                Be(ce.elements, ", "),
                re.push({ text: "]" }));
              break;
            case 207:
              (C.assertNode(ce, ff),
                re.push({ text: "{" }),
                ce.elements.length &&
                  (re.push({ text: " " }),
                  Be(ce.elements, ", "),
                  re.push({ text: " " })),
                re.push({ text: "}" }));
              break;
            case 209:
              (C.assertNode(ce, Ha), be(ce.name));
              break;
            case 225:
              (C.assertNode(ce, YT),
                re.push({ text: _a(ce.operator) }),
                be(ce.operand));
              break;
            case 204:
              (C.assertNode(ce, Sie),
                be(ce.head),
                ce.templateSpans.forEach(be));
              break;
            case 16:
              (C.assertNode(ce, GI), re.push({ text: lt(ce) }));
              break;
            case 205:
              (C.assertNode(ce, bj), be(ce.type), be(ce.literal));
              break;
            case 17:
              (C.assertNode(ce, hj), re.push({ text: lt(ce) }));
              break;
            case 18:
              (C.assertNode(ce, f4), re.push({ text: lt(ce) }));
              break;
            case 198:
              (C.assertNode(ce, VM), re.push({ text: "this" }));
              break;
            case 168:
              (C.assertNode(ce, va),
                re.push({ text: "[" }),
                be(ce.expression),
                re.push({ text: "]" }));
              break;
            default:
              C.failBadSyntaxKind(ce);
          }
        }
        function Ne(ce) {
          (ce.typeParameters &&
            (re.push({ text: "<" }),
            Be(ce.typeParameters, ", "),
            re.push({ text: ">" })),
            re.push({ text: "(" }),
            Be(ce.parameters, ", "),
            re.push({ text: ")" }));
        }
        function Be(ce, Re) {
          ce.forEach((_e, je) => {
            (je > 0 && re.push({ text: Re }), be(_e));
          });
        }
        function lt(ce) {
          switch (ce.kind) {
            case 11:
              return d === 0 ? `'${k_(ce.text, 39)}'` : `"${k_(ce.text, 34)}"`;
            case 16:
            case 17:
            case 18: {
              const Re = ce.rawText ?? QG(k_(ce.text, 96));
              switch (ce.kind) {
                case 16:
                  return "`" + Re + "${";
                case 17:
                  return "}" + Re + "${";
                case 18:
                  return "}" + Re + "`";
              }
            }
          }
          return ce.text;
        }
      }
      function X(Se) {
        return Se === "undefined";
      }
      function Ce(Se) {
        if ((jT(Se) || (yi(Se) && JR(Se))) && Se.initializer) {
          const re = us(Se.initializer);
          return !(J(re) || GS(re) || Wa(re) || yS(re));
        }
        return !0;
      }
      function Je(Se, re) {
        const be = re.getSourceFile();
        return { text: Se, span: zu(re, be), file: be.fileName };
      }
    }
    var y0 = {};
    x(y0, {
      getDocCommentTemplateAtPosition: () => yit,
      getJSDocParameterNameCompletionDetails: () => git,
      getJSDocParameterNameCompletions: () => _it,
      getJSDocTagCompletionDetails: () => Rke,
      getJSDocTagCompletions: () => hit,
      getJSDocTagNameCompletionDetails: () => mit,
      getJSDocTagNameCompletions: () => fit,
      getJsDocCommentsFromDeclarations: () => lit,
      getJsDocTagsFromDeclarations: () => uit,
    });
    var Tke = [
        "abstract",
        "access",
        "alias",
        "argument",
        "async",
        "augments",
        "author",
        "borrows",
        "callback",
        "class",
        "classdesc",
        "constant",
        "constructor",
        "constructs",
        "copyright",
        "default",
        "deprecated",
        "description",
        "emits",
        "enum",
        "event",
        "example",
        "exports",
        "extends",
        "external",
        "field",
        "file",
        "fileoverview",
        "fires",
        "function",
        "generator",
        "global",
        "hideconstructor",
        "host",
        "ignore",
        "implements",
        "import",
        "inheritdoc",
        "inner",
        "instance",
        "interface",
        "kind",
        "lends",
        "license",
        "link",
        "linkcode",
        "linkplain",
        "listens",
        "member",
        "memberof",
        "method",
        "mixes",
        "module",
        "name",
        "namespace",
        "overload",
        "override",
        "package",
        "param",
        "private",
        "prop",
        "property",
        "protected",
        "public",
        "readonly",
        "requires",
        "returns",
        "satisfies",
        "see",
        "since",
        "static",
        "summary",
        "template",
        "this",
        "throws",
        "todo",
        "tutorial",
        "type",
        "typedef",
        "var",
        "variation",
        "version",
        "virtual",
        "yields",
      ],
      Ske,
      Eke;
    function lit(e, t) {
      const r = [];
      return (
        nJ(e, (i) => {
          for (const o of dit(i)) {
            const s =
              mh(o) &&
              o.tags &&
              hn(
                o.tags,
                (u) =>
                  u.kind === 328 &&
                  (u.tagName.escapedText === "inheritDoc" ||
                    u.tagName.escapedText === "inheritdoc"),
              );
            if (
              (o.comment === void 0 && !s) ||
              (mh(o) &&
                i.kind !== 347 &&
                i.kind !== 339 &&
                o.tags &&
                o.tags.some((u) => u.kind === 347 || u.kind === 339) &&
                !o.tags.some((u) => u.kind === 342 || u.kind === 343))
            )
              continue;
            let l = o.comment ? mC(o.comment, t) : [];
            (s && s.comment && (l = l.concat(mC(s.comment, t))),
              jn(r, l, cit) || r.push(l));
          }
        }),
        la(bo(r, [iC()]))
      );
    }
    function cit(e, t) {
      return Qp(e, t, (r, i) => r.kind === i.kind && r.text === i.text);
    }
    function dit(e) {
      switch (e.kind) {
        case 342:
        case 349:
          return [e];
        case 339:
        case 347:
          return [e, e.parent];
        case 324:
          if (CD(e.parent)) return [e.parent.parent];
        default:
          return WG(e);
      }
    }
    function uit(e, t) {
      const r = [];
      return (
        nJ(e, (i) => {
          const o = kT(i);
          if (
            !(
              o.some((s) => s.kind === 347 || s.kind === 339) &&
              !o.some((s) => s.kind === 342 || s.kind === 343)
            )
          )
            for (const s of o)
              (r.push({ name: s.tagName.text, text: xke(s, t) }),
                r.push(...Ake(Ike(s), t)));
        }),
        r
      );
    }
    function Ake(e, t) {
      return Ki(e, (r) =>
        so([{ name: r.tagName.text, text: xke(r, t) }], Ake(Ike(r), t)),
      );
    }
    function Ike(e) {
      return wN(e) &&
        e.isNameFirst &&
        e.typeExpression &&
        x1(e.typeExpression.type)
        ? e.typeExpression.type.jsDocPropertyTags
        : void 0;
    }
    function mC(e, t) {
      return typeof e == "string"
        ? [yf(e)]
        : Ki(e, (r) => (r.kind === 322 ? [yf(r.text)] : sce(r, t)));
    }
    function xke(e, t) {
      const { comment: r, kind: i } = e,
        o = pit(i);
      switch (i) {
        case 350:
          const u = e.typeExpression;
          return u ? s(u) : r === void 0 ? void 0 : mC(r, t);
        case 330:
          return s(e.class);
        case 329:
          return s(e.class);
        case 346:
          const d = e,
            _ = [];
          if (
            (d.constraint && _.push(yf(d.constraint.getText())),
            et(d.typeParameters))
          ) {
            et(_) && _.push(zl());
            const g = d.typeParameters[d.typeParameters.length - 1];
            Ye(d.typeParameters, (E) => {
              (_.push(o(E.getText())), g !== E && _.push(lu(28), zl()));
            });
          }
          return (r && _.push(zl(), ...mC(r, t)), _);
        case 345:
        case 351:
          return s(e.typeExpression);
        case 347:
        case 339:
        case 349:
        case 342:
        case 348:
          const { name: h } = e;
          return h ? s(h) : r === void 0 ? void 0 : mC(r, t);
        default:
          return r === void 0 ? void 0 : mC(r, t);
      }
      function s(u) {
        return l(u.getText());
      }
      function l(u) {
        return r
          ? u.match(/^https?$/)
            ? [yf(u), ...mC(r, t)]
            : [o(u), zl(), ...mC(r, t)]
          : [yf(u)];
      }
    }
    function pit(e) {
      switch (e) {
        case 342:
          return nce;
        case 349:
          return rce;
        case 346:
          return oce;
        case 347:
        case 339:
          return ice;
        default:
          return yf;
      }
    }
    function fit() {
      return (
        Ske ||
        (Ske = Vt(Tke, (e) => ({
          name: e,
          kind: "keyword",
          kindModifiers: "",
          sortText: Ex.SortText.LocationPriority,
        })))
      );
    }
    var mit = Rke;
    function hit() {
      return (
        Eke ||
        (Eke = Vt(Tke, (e) => ({
          name: `@${e}`,
          kind: "keyword",
          kindModifiers: "",
          sortText: Ex.SortText.LocationPriority,
        })))
      );
    }
    function Rke(e) {
      return {
        name: e,
        kind: "",
        kindModifiers: "",
        displayParts: [yf(e)],
        documentation: ae,
        tags: void 0,
        codeActions: void 0,
      };
    }
    function _it(e) {
      if (!He(e.name)) return ae;
      const t = e.name.text,
        r = e.parent,
        i = r.parent;
      return Yo(i)
        ? Ui(i.parameters, (o) => {
            if (!He(o.name)) return;
            const s = o.name.text;
            if (
              !(
                r.tags.some(
                  (l) =>
                    l !== e && mf(l) && He(l.name) && l.name.escapedText === s,
                ) ||
                (t !== void 0 && !po(s, t))
              )
            )
              return {
                name: s,
                kind: "parameter",
                kindModifiers: "",
                sortText: Ex.SortText.LocationPriority,
              };
          })
        : [];
    }
    function git(e) {
      return {
        name: e,
        kind: "parameter",
        kindModifiers: "",
        displayParts: [yf(e)],
        documentation: ae,
        tags: void 0,
        codeActions: void 0,
      };
    }
    function yit(e, t, r, i) {
      const o = Fi(t, r),
        s = Dn(o, mh);
      if (s && (s.comment !== void 0 || et(s.tags))) return;
      const l = o.getStart(t);
      if (!s && l < r) return;
      const u = Sit(o, i);
      if (!u) return;
      const { commentOwner: d, parameters: _, hasReturn: h } = u,
        g = ef(d) && d.jsDoc ? d.jsDoc : void 0,
        E = Zs(g);
      if (d.getStart(t) < r || (E && s && E !== s)) return;
      const A = vit(t, r),
        R = Tg(t.fileName),
        N = (_ ? bit(_ || [], R, A, e) : "") + (h ? Tit(A, e) : ""),
        P = "/**",
        k = " */",
        W = et(kT(d)) > 0;
      if (N && !W) {
        const O = P + e + A + " * ",
          G = l === r ? e + A : "";
        return { newText: O + e + N + A + k + G, caretOffset: O.length };
      }
      return { newText: P + k, caretOffset: 3 };
    }
    function vit(e, t) {
      const { text: r } = e,
        i = Em(t, e);
      let o = i;
      for (; o <= t && Bh(r.charCodeAt(o)); o++);
      return r.slice(i, o);
    }
    function bit(e, t, r, i) {
      return e
        .map(({ name: o, dotDotDotToken: s }, l) => {
          const u = o.kind === 80 ? o.text : "param" + l;
          return `${r} * @param ${t ? (s ? "{...any} " : "{any} ") : ""}${u}${i}`;
        })
        .join("");
    }
    function Tit(e, t) {
      return `${e} * @returns${t}`;
    }
    function Sit(e, t) {
      return Rte(e, (r) => xfe(r, t));
    }
    function xfe(e, t) {
      switch (e.kind) {
        case 263:
        case 219:
        case 175:
        case 177:
        case 174:
        case 220:
          const r = e;
          return {
            commentOwner: e,
            parameters: r.parameters,
            hasReturn: Sz(r, t),
          };
        case 304:
          return xfe(e.initializer, t);
        case 264:
        case 265:
        case 267:
        case 307:
        case 266:
          return { commentOwner: e };
        case 172: {
          const o = e;
          return o.type && w_(o.type)
            ? {
                commentOwner: e,
                parameters: o.type.parameters,
                hasReturn: Sz(o.type, t),
              }
            : { commentOwner: e };
        }
        case 244: {
          const s = e.declarationList.declarations,
            l =
              s.length === 1 && s[0].initializer
                ? Eit(s[0].initializer)
                : void 0;
          return l
            ? { commentOwner: e, parameters: l.parameters, hasReturn: Sz(l, t) }
            : { commentOwner: e };
        }
        case 308:
          return "quit";
        case 268:
          return e.parent.kind === 268 ? void 0 : { commentOwner: e };
        case 245:
          return xfe(e.expression, t);
        case 227: {
          const o = e;
          return oc(o) === 0
            ? "quit"
            : Yo(o.right)
              ? {
                  commentOwner: e,
                  parameters: o.right.parameters,
                  hasReturn: Sz(o.right, t),
                }
              : { commentOwner: e };
        }
        case 173:
          const i = e.initializer;
          if (i && (Us(i) || Xs(i)))
            return {
              commentOwner: e,
              parameters: i.parameters,
              hasReturn: Sz(i, t),
            };
      }
    }
    function Sz(e, t) {
      return (
        !!t?.generateReturnInDocTemplate &&
        (w_(e) ||
          (Xs(e) && St(e.body)) ||
          (Ms(e) && e.body && ea(e.body) && !!vb(e.body, (r) => r)))
      );
    }
    function Eit(e) {
      for (; e.kind === 218; ) e = e.expression;
      switch (e.kind) {
        case 219:
        case 220:
          return e;
        case 232:
          return hn(e.members, Ml);
      }
    }
    var tX = {};
    x(tX, { mapCode: () => Ait });
    function Ait(e, t, r, i, o, s) {
      return Rr.ChangeTracker.with(
        { host: i, formatContext: o, preferences: s },
        (l) => {
          const u = t.map((_) => Iit(e, _)),
            d = r && la(r);
          for (const _ of u) xit(e, l, _, d);
        },
      );
    }
    function Iit(e, t) {
      const r = [
          {
            parse: () =>
              tx(
                "__mapcode_content_nodes.ts",
                t,
                e.languageVersion,
                !0,
                e.scriptKind,
              ),
            body: (s) => s.statements,
          },
          {
            parse: () =>
              tx(
                "__mapcode_class_content_nodes.ts",
                `class __class {
${t}
}`,
                e.languageVersion,
                !0,
                e.scriptKind,
              ),
            body: (s) => s.statements[0].members,
          },
        ],
        i = [];
      for (const { parse: s, body: l } of r) {
        const u = s(),
          d = l(u);
        if (d.length && u.parseDiagnostics.length === 0) return d;
        d.length && i.push({ sourceFile: u, body: d });
      }
      i.sort(
        (s, l) =>
          s.sourceFile.parseDiagnostics.length -
          l.sourceFile.parseDiagnostics.length,
      );
      const { body: o } = i[0];
      return o;
    }
    function xit(e, t, r, i) {
      bc(r[0]) || _S(r[0]) ? Rit(e, t, r, i) : Dit(e, t, r, i);
    }
    function Rit(e, t, r, i) {
      let o;
      if (
        (!i || !i.length
          ? (o = hn(e.statements, Rp(ui, gd)))
          : (o = Ye(i, (l) => Dn(Fi(e, l.start), Rp(ui, gd)))),
        !o)
      )
        return;
      const s = o.members.find((l) => r.some((u) => Ez(u, l)));
      if (s) {
        const l = ga(o.members, (u) => r.some((d) => Ez(d, u)));
        (Ye(r, nX), t.replaceNodeRangeWithNodes(e, s, l, r));
        return;
      }
      (Ye(r, nX), t.insertNodesAfter(e, o.members[o.members.length - 1], r));
    }
    function Dit(e, t, r, i) {
      if (!i?.length) {
        t.insertNodesAtEndOfFile(e, r, !1);
        return;
      }
      for (const s of i) {
        const l = Dn(
          Fi(e, s.start),
          (u) =>
            Rp(ea, Yi)(u) && yt(u.statements, (d) => r.some((_) => Ez(_, d))),
        );
        if (l) {
          const u = l.statements.find((d) => r.some((_) => Ez(_, d)));
          if (u) {
            const d = ga(l.statements, (_) => r.some((h) => Ez(h, _)));
            (Ye(r, nX), t.replaceNodeRangeWithNodes(e, u, d, r));
            return;
          }
        }
      }
      let o = e.statements;
      for (const s of i) {
        const l = Dn(Fi(e, s.start), ea);
        if (l) {
          o = l.statements;
          break;
        }
      }
      (Ye(r, nX), t.insertNodesAfter(e, o[o.length - 1], r));
    }
    function Ez(e, t) {
      var r, i, o, s, l, u;
      return e.kind !== t.kind
        ? !1
        : e.kind === 177
          ? e.kind === t.kind
          : nd(e) && nd(t)
            ? e.name.getText() === t.name.getText()
            : ($T(e) && $T(t)) || (Ej(e) && Ej(t))
              ? e.expression.getText() === t.expression.getText()
              : QT(e) && QT(t)
                ? ((r = e.initializer) == null ? void 0 : r.getText()) ===
                    ((i = t.initializer) == null ? void 0 : i.getText()) &&
                  ((o = e.incrementor) == null ? void 0 : o.getText()) ===
                    ((s = t.incrementor) == null ? void 0 : s.getText()) &&
                  ((l = e.condition) == null ? void 0 : l.getText()) ===
                    ((u = t.condition) == null ? void 0 : u.getText())
                : QE(e) && QE(t)
                  ? e.expression.getText() === t.expression.getText() &&
                    e.initializer.getText() === t.initializer.getText()
                  : Lb(e) && Lb(t)
                    ? e.label.getText() === t.label.getText()
                    : e.getText() === t.getText();
    }
    function nX(e) {
      (Dke(e), (e.parent = void 0));
    }
    function Dke(e) {
      ((e.pos = -1), (e.end = -1), e.forEachChild(Dke));
    }
    var v0 = {};
    x(v0, {
      compareImportsOrRequireStatements: () => kfe,
      compareModuleSpecifiers: () => Jit,
      getImportDeclarationInsertionIndex: () => jit,
      getImportSpecifierInsertionIndex: () => Uit,
      getNamedImportSpecifierComparerWithDetection: () => Vit,
      getOrganizeImportsStringComparerWithDetection: () => Git,
      organizeImports: () => Cit,
      testCoalesceExports: () => qit,
      testCoalesceImports: () => Hit,
    });
    function Cit(e, t, r, i, o, s) {
      const l = Rr.ChangeTracker.fromContext({
          host: r,
          formatContext: t,
          preferences: o,
        }),
        u = s === "SortAndCombine" || s === "All",
        d = u,
        _ = s === "RemoveUnused" || s === "All",
        h = e.statements.filter(vl),
        g = Dfe(e, h),
        { comparersToTest: E, typeOrdersToTest: A } = Rfe(o),
        R = E[0],
        N = {
          moduleSpecifierComparer:
            typeof o.organizeImportsIgnoreCase == "boolean" ? R : void 0,
          namedImportComparer:
            typeof o.organizeImportsIgnoreCase == "boolean" ? R : void 0,
          typeOrder: o.organizeImportsTypeOrder,
        };
      if (
        (typeof o.organizeImportsIgnoreCase != "boolean" &&
          ({ comparer: N.moduleSpecifierComparer } = Mke(g, E)),
        !N.typeOrder || typeof o.organizeImportsIgnoreCase != "boolean")
      ) {
        const O = Pfe(h, E, A);
        if (O) {
          const { namedImportComparer: G, typeOrder: j } = O;
          ((N.namedImportComparer = N.namedImportComparer ?? G),
            (N.typeOrder = N.typeOrder ?? j));
        }
      }
      (g.forEach((O) => k(O, N)),
        s !== "RemoveUnused" &&
          Mit(e).forEach((O) => W(O, N.namedImportComparer)));
      for (const O of e.statements.filter(yu)) {
        if (!O.body) continue;
        if (
          (Dfe(e, O.body.statements.filter(vl)).forEach((j) => k(j, N)),
          s !== "RemoveUnused")
        ) {
          const j = O.body.statements.filter(pc);
          W(j, N.namedImportComparer);
        }
      }
      return l.getChanges();
      function P(O, G) {
        if (et(O) === 0) return;
        Cr(O[0], 1024);
        const j = d ? IR(O, (q) => Az(q.moduleSpecifier)) : [O],
          J = u
            ? xp(j, (q, ye) =>
                Nfe(
                  q[0].moduleSpecifier,
                  ye[0].moduleSpecifier,
                  N.moduleSpecifierComparer ?? R,
                ),
              )
            : j,
          Z = Ki(J, (q) =>
            Az(q[0].moduleSpecifier) || q[0].moduleSpecifier === void 0
              ? G(q)
              : q,
          );
        if (Z.length === 0)
          l.deleteNodes(
            e,
            O,
            {
              leadingTriviaOption: Rr.LeadingTriviaOption.Exclude,
              trailingTriviaOption: Rr.TrailingTriviaOption.Include,
            },
            !0,
          );
        else {
          const q = {
            leadingTriviaOption: Rr.LeadingTriviaOption.Exclude,
            trailingTriviaOption: Rr.TrailingTriviaOption.Include,
            suffix: _y(r, t.options),
          };
          l.replaceNodeWithNodes(e, O[0], Z, q);
          const ye = l.nodeHasTrailingComment(e, O[0], q);
          l.deleteNodes(
            e,
            O.slice(1),
            { trailingTriviaOption: Rr.TrailingTriviaOption.Include },
            ye,
          );
        }
      }
      function k(O, G) {
        const j = G.moduleSpecifierComparer ?? R,
          J = G.namedImportComparer ?? R,
          Z = G.typeOrder ?? "last",
          q = rW({ organizeImportsTypeOrder: Z }, J);
        P(
          O,
          (ie) => (
            _ && (ie = Pit(ie, e, i)),
            d && (ie = Cke(ie, j, q, e)),
            u && (ie = xp(ie, (K, pe) => kfe(K, pe, j))),
            ie
          ),
        );
      }
      function W(O, G) {
        const j = rW(o, G);
        P(O, (J) => Nke(J, j));
      }
    }
    function Rfe(e) {
      return {
        comparersToTest:
          typeof e.organizeImportsIgnoreCase == "boolean"
            ? [Lfe(e, e.organizeImportsIgnoreCase)]
            : [Lfe(e, !0), Lfe(e, !1)],
        typeOrdersToTest: e.organizeImportsTypeOrder
          ? [e.organizeImportsTypeOrder]
          : ["last", "inline", "first"],
      };
    }
    function Dfe(e, t) {
      const r = cg(e.languageVersion, !1, e.languageVariant),
        i = [];
      let o = 0;
      for (const s of t)
        (i[o] && Nit(e, s, r) && o++, i[o] || (i[o] = []), i[o].push(s));
      return i;
    }
    function Nit(e, t, r) {
      const i = t.getFullStart(),
        o = t.getStart();
      r.setText(e.text, i, o - i);
      let s = 0;
      for (; r.getTokenStart() < o; )
        if (r.scan() === 4 && (s++, s >= 2)) return !0;
      return !1;
    }
    function Mit(e) {
      const t = [],
        r = e.statements,
        i = et(r);
      let o = 0,
        s = 0;
      for (; o < i; )
        if (pc(r[o])) {
          t[s] === void 0 && (t[s] = []);
          const l = r[o];
          if (l.moduleSpecifier) (t[s].push(l), o++);
          else {
            for (; o < i && pc(r[o]); ) t[s].push(r[o++]);
            s++;
          }
        } else o++;
      return Ki(t, (l) => Dfe(e, l));
    }
    function Pit(e, t, r) {
      const i = r.getTypeChecker(),
        o = r.getCompilerOptions(),
        s = i.getJsxNamespace(t),
        l = i.getJsxFragmentFactory(t),
        u = !!(t.transformFlags & 2),
        d = [];
      for (const h of e) {
        const { importClause: g, moduleSpecifier: E } = h;
        if (!g) {
          d.push(h);
          continue;
        }
        let { name: A, namedBindings: R } = g;
        if ((A && !_(A) && (A = void 0), R))
          if (Ig(R)) _(R.name) || (R = void 0);
          else {
            const N = R.elements.filter((P) => _(P.name));
            N.length < R.elements.length &&
              (R = N.length ? L.updateNamedImports(R, N) : void 0);
          }
        A || R
          ? d.push(nW(h, A, R))
          : wit(t, E) &&
            (t.isDeclarationFile
              ? d.push(
                  L.createImportDeclaration(h.modifiers, void 0, E, void 0),
                )
              : d.push(h));
      }
      return d;
      function _(h) {
        return (
          (u && (h.text === s || (l && h.text === l)) && bJ(o.jsx)) ||
          Ys.Core.isSymbolReferencedInFile(h, i, t)
        );
      }
    }
    function Az(e) {
      return e !== void 0 && ds(e) ? e.text : void 0;
    }
    function Lit(e) {
      let t;
      const r = { defaultImports: [], namespaceImports: [], namedImports: [] },
        i = { defaultImports: [], namespaceImports: [], namedImports: [] };
      for (const o of e) {
        if (o.importClause === void 0) {
          t = t || o;
          continue;
        }
        const s = o.importClause.isTypeOnly ? r : i,
          { name: l, namedBindings: u } = o.importClause;
        (l && s.defaultImports.push(o),
          u && (Ig(u) ? s.namespaceImports.push(o) : s.namedImports.push(o)));
      }
      return { importWithoutClause: t, typeOnlyImports: r, regularImports: i };
    }
    function Cke(e, t, r, i) {
      if (e.length === 0) return e;
      const o = VB(e, (l) => {
          if (l.attributes) {
            let u = l.attributes.token + " ";
            for (const d of xp(l.attributes.elements, (_, h) =>
              Wd(_.name.text, h.name.text),
            ))
              ((u += d.name.text + ":"),
                (u += ds(d.value)
                  ? `"${d.value.text}"`
                  : d.value.getText() + " "));
            return u;
          }
          return "";
        }),
        s = [];
      for (const l in o) {
        const u = o[l],
          {
            importWithoutClause: d,
            typeOnlyImports: _,
            regularImports: h,
          } = Lit(u);
        d && s.push(d);
        for (const g of [h, _]) {
          const E = g === _,
            { defaultImports: A, namespaceImports: R, namedImports: N } = g;
          if (!E && A.length === 1 && R.length === 1 && N.length === 0) {
            const q = A[0];
            s.push(nW(q, q.importClause.name, R[0].importClause.namedBindings));
            continue;
          }
          const P = xp(R, (q, ye) =>
            t(
              q.importClause.namedBindings.name.text,
              ye.importClause.namedBindings.name.text,
            ),
          );
          for (const q of P)
            s.push(nW(q, void 0, q.importClause.namedBindings));
          const k = Ac(A),
            W = Ac(N),
            O = k ?? W;
          if (!O) continue;
          let G;
          const j = [];
          if (A.length === 1) G = A[0].importClause.name;
          else
            for (const q of A)
              j.push(
                L.createImportSpecifier(
                  !1,
                  L.createIdentifier("default"),
                  q.importClause.name,
                ),
              );
          j.push(...Oit(N));
          const J = L.createNodeArray(
              xp(j, r),
              W?.importClause.namedBindings.elements.hasTrailingComma,
            ),
            Z =
              J.length === 0
                ? G
                  ? void 0
                  : L.createNamedImports(ae)
                : W
                  ? L.updateNamedImports(W.importClause.namedBindings, J)
                  : L.createNamedImports(J);
          (i &&
            Z &&
            W?.importClause.namedBindings &&
            !p1(W.importClause.namedBindings, i) &&
            Cr(Z, 2),
            E && G && Z
              ? (s.push(nW(O, G, void 0)), s.push(nW(W ?? O, void 0, Z)))
              : s.push(nW(O, G, Z)));
        }
      }
      return s;
    }
    function Nke(e, t) {
      if (e.length === 0) return e;
      const {
          exportWithoutClause: r,
          namedExports: i,
          typeOnlyExports: o,
        } = l(e),
        s = [];
      r && s.push(r);
      for (const u of [i, o]) {
        if (u.length === 0) continue;
        const d = [];
        d.push(
          ...Ki(u, (g) =>
            g.exportClause && Jf(g.exportClause) ? g.exportClause.elements : ae,
          ),
        );
        const _ = xp(d, t),
          h = u[0];
        s.push(
          L.updateExportDeclaration(
            h,
            h.modifiers,
            h.isTypeOnly,
            h.exportClause &&
              (Jf(h.exportClause)
                ? L.updateNamedExports(h.exportClause, _)
                : L.updateNamespaceExport(h.exportClause, h.exportClause.name)),
            h.moduleSpecifier,
            h.attributes,
          ),
        );
      }
      return s;
      function l(u) {
        let d;
        const _ = [],
          h = [];
        for (const g of u)
          g.exportClause === void 0
            ? (d = d || g)
            : g.isTypeOnly
              ? h.push(g)
              : _.push(g);
        return { exportWithoutClause: d, namedExports: _, typeOnlyExports: h };
      }
    }
    function nW(e, t, r) {
      return L.updateImportDeclaration(
        e,
        e.modifiers,
        L.updateImportClause(
          e.importClause,
          e.importClause.phaseModifier,
          t,
          r,
        ),
        e.moduleSpecifier,
        e.attributes,
      );
    }
    function Cfe(e, t, r, i) {
      switch (i?.organizeImportsTypeOrder) {
        case "first":
          return NT(t.isTypeOnly, e.isTypeOnly) || r(e.name.text, t.name.text);
        case "inline":
          return r(e.name.text, t.name.text);
        default:
          return NT(e.isTypeOnly, t.isTypeOnly) || r(e.name.text, t.name.text);
      }
    }
    function Nfe(e, t, r) {
      const i = e === void 0 ? void 0 : Az(e),
        o = t === void 0 ? void 0 : Az(t);
      return NT(i === void 0, o === void 0) || NT(td(i), td(o)) || r(i, o);
    }
    function kit(e) {
      return e.map((t) => Az(Mfe(t)) || "");
    }
    function Mfe(e) {
      var t;
      switch (e.kind) {
        case 272:
          return (t = ni(e.moduleReference, uy)) == null
            ? void 0
            : t.expression;
        case 273:
          return e.moduleSpecifier;
        case 244:
          return e.declarationList.declarations[0].initializer.arguments[0];
      }
    }
    function wit(e, t) {
      const r = ka(t) && t.text;
      return Bo(r) && yt(e.moduleAugmentations, (i) => ka(i) && i.text === r);
    }
    function Oit(e) {
      return Ki(e, (t) =>
        Vt(Wit(t), (r) =>
          r.name && r.propertyName && bS(r.name) === bS(r.propertyName)
            ? L.updateImportSpecifier(r, r.isTypeOnly, void 0, r.name)
            : r,
        ),
      );
    }
    function Wit(e) {
      var t;
      return (t = e.importClause) != null &&
        t.namedBindings &&
        n_(e.importClause.namedBindings)
        ? e.importClause.namedBindings.elements
        : void 0;
    }
    function Mke(e, t) {
      const r = [];
      return (
        e.forEach((i) => {
          r.push(kit(i));
        }),
        Lke(r, t)
      );
    }
    function Pfe(e, t, r) {
      let i = !1;
      const o = e.filter((d) => {
        var _, h;
        const g =
          (h = ni(
            (_ = d.importClause) == null ? void 0 : _.namedBindings,
            n_,
          )) == null
            ? void 0
            : h.elements;
        return g?.length
          ? (!i &&
              g.some((E) => E.isTypeOnly) &&
              g.some((E) => !E.isTypeOnly) &&
              (i = !0),
            !0)
          : !1;
      });
      if (o.length === 0) return;
      const s = o
        .map((d) => {
          var _, h;
          return (h = ni(
            (_ = d.importClause) == null ? void 0 : _.namedBindings,
            n_,
          )) == null
            ? void 0
            : h.elements;
        })
        .filter((d) => d !== void 0);
      if (!i || r.length === 0) {
        const d = Lke(
          s.map((_) => _.map((h) => h.name.text)),
          t,
        );
        return {
          namedImportComparer: d.comparer,
          typeOrder: r.length === 1 ? r[0] : void 0,
          isSorted: d.isSorted,
        };
      }
      const l = { first: 1 / 0, last: 1 / 0, inline: 1 / 0 },
        u = { first: t[0], last: t[0], inline: t[0] };
      for (const d of t) {
        const _ = { first: 0, last: 0, inline: 0 };
        for (const h of s)
          for (const g of r)
            _[g] =
              (_[g] ?? 0) +
              Pke(h, (E, A) => Cfe(E, A, d, { organizeImportsTypeOrder: g }));
        for (const h of r) {
          const g = h;
          _[g] < l[g] && ((l[g] = _[g]), (u[g] = d));
        }
      }
      e: for (const d of r) {
        const _ = d;
        for (const h of r) if (l[h] < l[_]) continue e;
        return {
          namedImportComparer: u[_],
          typeOrder: _,
          isSorted: l[_] === 0,
        };
      }
      return {
        namedImportComparer: u.last,
        typeOrder: "last",
        isSorted: l.last === 0,
      };
    }
    function Pke(e, t) {
      let r = 0;
      for (let i = 0; i < e.length - 1; i++) t(e[i], e[i + 1]) > 0 && r++;
      return r;
    }
    function Lke(e, t) {
      let r,
        i = 1 / 0;
      for (const o of t) {
        let s = 0;
        for (const l of e) {
          if (l.length <= 1) continue;
          const u = Pke(l, o);
          s += u;
        }
        s < i && ((i = s), (r = o));
      }
      return { comparer: r ?? t[0], isSorted: i === 0 };
    }
    function Fit(e, t) {
      return js(kke(e), kke(t));
    }
    function kke(e) {
      var t;
      switch (e.kind) {
        case 273:
          return e.importClause
            ? e.importClause.isTypeOnly
              ? 1
              : ((t = e.importClause.namedBindings) == null
                    ? void 0
                    : t.kind) === 275
                ? 2
                : e.importClause.name
                  ? 3
                  : 4
            : 0;
        case 272:
          return 5;
        case 244:
          return 6;
      }
    }
    function Iz(e) {
      return e ? XQ : Wd;
    }
    function zit(e, t) {
      const r = Bit(t),
        i = t.organizeImportsCaseFirst ?? !1,
        o = t.organizeImportsNumericCollation ?? !1,
        s = t.organizeImportsAccentCollation ?? !0,
        l = e ? (s ? "accent" : "base") : s ? "variant" : "case";
      return new Intl.Collator(r, {
        usage: "sort",
        caseFirst: i || "false",
        sensitivity: l,
        numeric: o,
      }).compare;
    }
    function Bit(e) {
      let t = e.organizeImportsLocale;
      (t === "auto" && (t = YQ()), t === void 0 && (t = "en"));
      const r = Intl.Collator.supportedLocalesOf(t);
      return r.length ? r[0] : "en";
    }
    function Lfe(e, t) {
      return (e.organizeImportsCollation ?? "ordinal") === "unicode"
        ? zit(t, e)
        : Iz(t);
    }
    function Git(e, t) {
      return Mke([e], Rfe(t).comparersToTest);
    }
    function rW(e, t) {
      const r = t ?? Iz(!!e.organizeImportsIgnoreCase);
      return (i, o) => Cfe(i, o, r, e);
    }
    function Vit(e, t, r) {
      const { comparersToTest: i, typeOrdersToTest: o } = Rfe(t),
        s = Pfe([e], i, o);
      let l = rW(t, i[0]),
        u;
      if (
        typeof t.organizeImportsIgnoreCase != "boolean" ||
        !t.organizeImportsTypeOrder
      ) {
        if (s) {
          const { namedImportComparer: d, typeOrder: _, isSorted: h } = s;
          ((u = h), (l = rW({ organizeImportsTypeOrder: _ }, d)));
        } else if (r) {
          const d = Pfe(r.statements.filter(vl), i, o);
          if (d) {
            const { namedImportComparer: _, typeOrder: h, isSorted: g } = d;
            ((u = g), (l = rW({ organizeImportsTypeOrder: h }, _)));
          }
        }
      }
      return { specifierComparer: l, isSorted: u };
    }
    function jit(e, t, r) {
      const i = Zv(e, t, Vs, (o, s) => kfe(o, s, r));
      return i < 0 ? ~i : i;
    }
    function Uit(e, t, r) {
      const i = Zv(e, t, Vs, r);
      return i < 0 ? ~i : i;
    }
    function kfe(e, t, r) {
      return Nfe(Mfe(e), Mfe(t), r) || Fit(e, t);
    }
    function Hit(e, t, r, i) {
      const o = Iz(t),
        s = rW({ organizeImportsTypeOrder: i?.organizeImportsTypeOrder }, o);
      return Cke(e, o, s, r);
    }
    function qit(e, t, r) {
      return Nke(e, (o, s) =>
        Cfe(o, s, Iz(t), {
          organizeImportsTypeOrder: r?.organizeImportsTypeOrder ?? "last",
        }),
      );
    }
    function Jit(e, t, r) {
      const i = Iz(!!r);
      return Nfe(e, t, i);
    }
    var rX = {};
    x(rX, { collectElements: () => Kit });
    function Kit(e, t) {
      const r = [];
      return (
        Xit(e, t, r),
        Yit(e, r),
        r.sort((i, o) => i.textSpan.start - o.textSpan.start),
        r
      );
    }
    function Xit(e, t, r) {
      let i = 40,
        o = 0;
      const s = e.statements,
        l = s.length;
      for (; o < l; ) {
        for (; o < l && !mI(s[o]); ) (u(s[o]), o++);
        if (o === l) break;
        const d = o;
        for (; o < l && mI(s[o]); ) (u(s[o]), o++);
        const _ = o - 1;
        _ !== d &&
          r.push(xz(Es(s[d], 102, e).getStart(e), s[_].getEnd(), "imports"));
      }
      u(e.endOfFileToken);
      function u(d) {
        var _;
        if (i === 0) return;
        (t.throwIfCancellationRequested(),
          (rd(d) || ac(d) || tf(d) || Gh(d) || d.kind === 1) && Oke(d, e, t, r),
          Yo(d) &&
            Nr(d.parent) &&
            qr(d.parent.left) &&
            Oke(d.parent.left, e, t, r),
          (ea(d) || t_(d)) && wfe(d.statements.end, e, t, r),
          (ui(d) || gd(d)) && wfe(d.members.end, e, t, r));
        const h = Qit(d, e);
        (h && r.push(h),
          i--,
          Zo(d)
            ? (i++,
              u(d.expression),
              i--,
              d.arguments.forEach(u),
              (_ = d.typeArguments) == null || _.forEach(u))
            : $T(d) && d.elseStatement && $T(d.elseStatement)
              ? (u(d.expression),
                u(d.thenStatement),
                i++,
                u(d.elseStatement),
                i--)
              : d.forEachChild(u),
          i++);
      }
    }
    function Yit(e, t) {
      const r = [],
        i = e.getLineStarts();
      for (const o of i) {
        const s = e.getLineEndOfPosition(o),
          l = e.text.substring(o, s),
          u = wke(l);
        if (!(!u || mv(e, o)))
          if (u.isStart) {
            const d = ic(e.text.indexOf("//", o), s);
            r.push(Ix(d, "region", d, !1, u.name || "#region"));
          } else {
            const d = r.pop();
            d &&
              ((d.textSpan.length = s - d.textSpan.start),
              (d.hintSpan.length = s - d.textSpan.start),
              t.push(d));
          }
      }
    }
    var $it = /^#(end)?region(.*)\r?$/;
    function wke(e) {
      if (((e = e.trimStart()), !po(e, "//"))) return null;
      e = e.slice(2).trim();
      const t = $it.exec(e);
      if (t) return { isStart: !t[1], name: t[2].trim() };
    }
    function wfe(e, t, r, i) {
      const o = lg(t.text, e);
      if (!o) return;
      let s = -1,
        l = -1,
        u = 0;
      const d = t.getFullText();
      for (const { kind: h, pos: g, end: E } of o)
        switch ((r.throwIfCancellationRequested(), h)) {
          case 2:
            const A = d.slice(g, E);
            if (wke(A)) {
              (_(), (u = 0));
              break;
            }
            (u === 0 && (s = g), (l = E), u++);
            break;
          case 3:
            (_(), i.push(xz(g, E, "comment")), (u = 0));
            break;
          default:
            C.assertNever(h);
        }
      _();
      function _() {
        u > 1 && i.push(xz(s, l, "comment"));
      }
    }
    function Oke(e, t, r, i) {
      BI(e) || wfe(e.pos, t, r, i);
    }
    function xz(e, t, r) {
      return Ix(ic(e, t), r);
    }
    function Qit(e, t) {
      switch (e.kind) {
        case 242:
          if (Yo(e.parent)) return Zit(e.parent, e, t);
          switch (e.parent.kind) {
            case 247:
            case 250:
            case 251:
            case 249:
            case 246:
            case 248:
            case 255:
            case 300:
              return h(e.parent);
            case 259:
              const A = e.parent;
              if (A.tryBlock === e) return h(e.parent);
              if (A.finallyBlock === e) {
                const R = Es(A, 98, t);
                if (R) return h(R);
              }
            default:
              return Ix(zu(e, t), "code");
          }
        case 269:
          return h(e.parent);
        case 264:
        case 232:
        case 265:
        case 267:
        case 270:
        case 188:
        case 207:
          return h(e);
        case 190:
          return h(e, !1, !qI(e.parent), 23);
        case 297:
        case 298:
          return g(e.statements);
        case 211:
          return _(e);
        case 210:
          return _(e, 23);
        case 285:
          return s(e);
        case 289:
          return l(e);
        case 286:
        case 287:
          return u(e.attributes);
        case 229:
        case 15:
          return d(e);
        case 208:
          return h(e, !1, !Ha(e.parent), 23);
        case 220:
          return o(e);
        case 214:
          return i(e);
        case 218:
          return E(e);
        case 276:
        case 280:
        case 301:
          return r(e);
      }
      function r(A) {
        if (!A.elements.length) return;
        const R = Es(A, 19, t),
          N = Es(A, 20, t);
        if (!(!R || !N || Gf(R.pos, N.pos, t))) return iX(R, N, A, t, !1, !1);
      }
      function i(A) {
        if (!A.arguments.length) return;
        const R = Es(A, 21, t),
          N = Es(A, 22, t);
        if (!(!R || !N || Gf(R.pos, N.pos, t))) return iX(R, N, A, t, !1, !0);
      }
      function o(A) {
        if (
          ea(A.body) ||
          Ou(A.body) ||
          Gf(A.body.getFullStart(), A.body.getEnd(), t)
        )
          return;
        const R = ic(A.body.getFullStart(), A.body.getEnd());
        return Ix(R, "code", zu(A));
      }
      function s(A) {
        const R = ic(A.openingElement.getStart(t), A.closingElement.getEnd()),
          N = A.openingElement.tagName.getText(t),
          P = "<" + N + ">...</" + N + ">";
        return Ix(R, "code", R, !1, P);
      }
      function l(A) {
        const R = ic(A.openingFragment.getStart(t), A.closingFragment.getEnd());
        return Ix(R, "code", R, !1, "<>...</>");
      }
      function u(A) {
        if (A.properties.length !== 0)
          return xz(A.getStart(t), A.getEnd(), "code");
      }
      function d(A) {
        if (!(A.kind === 15 && A.text.length === 0))
          return xz(A.getStart(t), A.getEnd(), "code");
      }
      function _(A, R = 19) {
        return h(A, !1, !Cd(A.parent) && !Zo(A.parent), R);
      }
      function h(A, R = !1, N = !0, P = 19, k = P === 19 ? 20 : 24) {
        const W = Es(e, P, t),
          O = Es(e, k, t);
        return W && O && iX(W, O, A, t, R, N);
      }
      function g(A) {
        return A.length ? Ix(_v(A), "code") : void 0;
      }
      function E(A) {
        if (Gf(A.getStart(), A.getEnd(), t)) return;
        const R = ic(A.getStart(), A.getEnd());
        return Ix(R, "code", zu(A));
      }
    }
    function Zit(e, t, r) {
      const i = eot(e, t, r),
        o = Es(t, 20, r);
      return i && o && iX(i, o, e, r, e.kind !== 220);
    }
    function iX(e, t, r, i, o = !1, s = !0) {
      const l = ic(s ? e.getFullStart() : e.getStart(i), t.getEnd());
      return Ix(l, "code", zu(r, i), o);
    }
    function Ix(e, t, r = e, i = !1, o = "...") {
      return {
        textSpan: e,
        kind: t,
        hintSpan: r,
        bannerText: o,
        autoCollapse: i,
      };
    }
    function eot(e, t, r) {
      if (Yne(e.parameters, r)) {
        const i = Es(e, 21, r);
        if (i) return i;
      }
      return Es(t, 19, r);
    }
    var Rz = {};
    x(Rz, { getRenameInfo: () => tot, nodeIsEligibleForRename: () => Fke });
    function tot(e, t, r, i) {
      const o = m7(ip(t, r));
      if (Fke(o)) {
        const s = not(o, e.getTypeChecker(), t, e, i);
        if (s) return s;
      }
      return oX(f.You_cannot_rename_this_element);
    }
    function not(e, t, r, i, o) {
      const s = t.getSymbolAtLocation(e);
      if (!s) {
        if (ds(e)) {
          const E = f7(e, t);
          if (
            E &&
            (E.flags & 128 ||
              (E.flags & 1048576 && Vn(E.types, (A) => !!(A.flags & 128))))
          )
            return Ofe(e.text, e.text, "string", "", e, r);
        } else if (Rq(e)) {
          const E = Al(e);
          return Ofe(E, E, "label", "", e, r);
        }
        return;
      }
      const { declarations: l } = s;
      if (!l || l.length === 0) return;
      if (l.some((E) => rot(i, E)))
        return oX(
          f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library,
        );
      if (
        He(e) &&
        e.escapedText === "default" &&
        s.parent &&
        s.parent.flags & 1536
      )
        return;
      if (ds(e) && bk(e))
        return o.allowRenameOfImportPath ? oot(e, r, s) : void 0;
      const u = iot(r, s, t, o);
      if (u) return oX(u);
      const d = vv.getSymbolKind(t, s, e),
        _ = lce(e) || (uf(e) && e.parent.kind === 168) ? _m(zf(e)) : void 0,
        h = _ || t.symbolToString(s),
        g = _ || t.getFullyQualifiedName(s);
      return Ofe(h, g, d, vv.getSymbolModifiers(t, s), e, r);
    }
    function rot(e, t) {
      const r = t.getSourceFile();
      return e.isSourceFileDefaultLibrary(r) && El(r.fileName, ".d.ts");
    }
    function iot(e, t, r, i) {
      if (!i.providePrefixAndSuffixTextForRename && t.flags & 2097152) {
        const l = t.declarations && hn(t.declarations, (u) => Eu(u));
        l && !l.propertyName && (t = r.getAliasedSymbol(t));
      }
      const { declarations: o } = t;
      if (!o) return;
      const s = Wke(e.path);
      if (s === void 0)
        return yt(o, (l) => MO(l.getSourceFile().path))
          ? f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder
          : void 0;
      for (const l of o) {
        const u = Wke(l.getSourceFile().path);
        if (u) {
          const d = Math.min(s.length, u.length);
          for (let _ = 0; _ <= d; _++)
            if (Wd(s[_], u[_]) !== 0)
              return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder;
        }
      }
    }
    function Wke(e) {
      const t = zd(e),
        r = t.lastIndexOf("node_modules");
      if (r !== -1) return t.slice(0, r + 2);
    }
    function oot(e, t, r) {
      if (!td(e.text))
        return oX(f.You_cannot_rename_a_module_via_a_global_import);
      const i = r.declarations && hn(r.declarations, Yi);
      if (!i) return;
      const o =
          el(e.text, "/index") || el(e.text, "/index.js")
            ? void 0
            : ZQ(Tu(i.fileName), "/index"),
        s = o === void 0 ? i.fileName : o,
        l = o === void 0 ? "module" : "directory",
        u = e.text.lastIndexOf("/") + 1,
        d = Id(e.getStart(t) + 1 + u, e.text.length - u);
      return {
        canRename: !0,
        fileToRename: s,
        kind: l,
        displayName: s,
        fullDisplayName: e.text,
        kindModifiers: "",
        triggerSpan: d,
      };
    }
    function Ofe(e, t, r, i, o, s) {
      return {
        canRename: !0,
        fileToRename: void 0,
        kind: r,
        displayName: e,
        fullDisplayName: t,
        kindModifiers: i,
        triggerSpan: aot(o, s),
      };
    }
    function oX(e) {
      return { canRename: !1, localizedErrorMessage: Ho(e) };
    }
    function aot(e, t) {
      let r = e.getStart(t),
        i = e.getWidth(t);
      return (ds(e) && ((r += 1), (i -= 2)), Id(r, i));
    }
    function Fke(e) {
      switch (e.kind) {
        case 80:
        case 81:
        case 11:
        case 15:
        case 110:
          return !0;
        case 9:
          return c7(e);
        default:
          return !1;
      }
    }
    var iW = {};
    x(iW, {
      getArgumentInfoForCompletions: () => uot,
      getSignatureHelpItems: () => sot,
    });
    function sot(e, t, r, i, o) {
      const s = e.getTypeChecker(),
        l = RP(t, r);
      if (!l) return;
      const u = !!i && i.kind === "characterTyped";
      if (u && (px(t, r, l) || mv(t, r))) return;
      const d = !!i && i.kind === "invoked",
        _ = Aot(l, r, t, s, d);
      if (!_) return;
      o.throwIfCancellationRequested();
      const h = lot(_, s, t, l, u);
      return (
        o.throwIfCancellationRequested(),
        h
          ? s.runWithCancellationToken(o, (g) =>
              h.kind === 0
                ? qke(h.candidates, h.resolvedSignature, _, t, g)
                : xot(h.symbol, _, t, g),
            )
          : Pu(t)
            ? dot(_, e, o)
            : void 0
      );
    }
    function lot({ invocation: e, argumentCount: t }, r, i, o, s) {
      switch (e.kind) {
        case 0: {
          if (s && !cot(o, e.node, i)) return;
          const l = [],
            u = r.getResolvedSignatureForSignatureHelp(e.node, l, t);
          return l.length === 0
            ? void 0
            : { kind: 0, candidates: l, resolvedSignature: u };
        }
        case 1: {
          const { called: l } = e;
          if (s && !zke(o, i, He(l) ? l.parent : l)) return;
          const u = Wq(l, t, r);
          if (u.length !== 0)
            return { kind: 0, candidates: u, resolvedSignature: $a(u) };
          const d = r.getSymbolAtLocation(l);
          return d && { kind: 1, symbol: d };
        }
        case 2:
          return {
            kind: 0,
            candidates: [e.signature],
            resolvedSignature: e.signature,
          };
        default:
          return C.assertNever(e);
      }
    }
    function cot(e, t, r) {
      if (!Gh(t)) return !1;
      const i = t.getChildren(r);
      switch (e.kind) {
        case 21:
          return jn(i, e);
        case 28: {
          const o = p7(e);
          return !!o && jn(i, o);
        }
        case 30:
          return zke(e, r, t.expression);
        default:
          return !1;
      }
    }
    function dot(e, t, r) {
      if (e.invocation.kind === 2) return;
      const i = Uke(e.invocation),
        o = qr(i) ? i.name.text : void 0,
        s = t.getTypeChecker();
      return o === void 0
        ? void 0
        : Hn(t.getSourceFiles(), (l) =>
            Hn(l.getNamedDeclarations().get(o), (u) => {
              const d = u.symbol && s.getTypeOfSymbolAtLocation(u.symbol, u),
                _ = d && d.getCallSignatures();
              if (_ && _.length)
                return s.runWithCancellationToken(r, (h) =>
                  qke(_, _[0], e, l, h, !0),
                );
            }),
          );
    }
    function zke(e, t, r) {
      const i = e.getFullStart();
      let o = e.parent;
      for (; o; ) {
        const s = Bc(i, t, o, !0);
        if (s) return tp(r, s);
        o = o.parent;
      }
      return C.fail("Could not find preceding token");
    }
    function uot(e, t, r, i) {
      const o = Gke(e, t, r, i);
      return !o || o.isTypeParameterList || o.invocation.kind !== 0
        ? void 0
        : {
            invocation: o.invocation.node,
            argumentCount: o.argumentCount,
            argumentIndex: o.argumentIndex,
          };
    }
    function Bke(e, t, r, i) {
      const o = pot(e, r, i);
      if (!o) return;
      const { list: s, argumentIndex: l } = o,
        u = bot(i, s),
        d = Sot(s, r);
      return { list: s, argumentIndex: l, argumentCount: u, argumentsSpan: d };
    }
    function pot(e, t, r) {
      if (e.kind === 30 || e.kind === 21)
        return { list: Iot(e.parent, e, t), argumentIndex: 0 };
      {
        const i = p7(e);
        return i && { list: i, argumentIndex: vot(r, i, e) };
      }
    }
    function Gke(e, t, r, i) {
      const { parent: o } = e;
      if (Gh(o)) {
        const s = o,
          l = Bke(e, t, r, i);
        if (!l) return;
        const {
          list: u,
          argumentIndex: d,
          argumentCount: _,
          argumentsSpan: h,
        } = l;
        return {
          isTypeParameterList:
            !!o.typeArguments && o.typeArguments.pos === u.pos,
          invocation: { kind: 0, node: s },
          argumentsSpan: h,
          argumentIndex: d,
          argumentCount: _,
        };
      } else {
        if (g1(e) && XT(o)) return TO(e, t, r) ? Ffe(o, 0, r) : void 0;
        if (GI(e) && o.parent.kind === 216) {
          const s = o,
            l = s.parent;
          C.assert(s.kind === 229);
          const u = TO(e, t, r) ? 0 : 1;
          return Ffe(l, u, r);
        } else if (AD(o) && XT(o.parent.parent)) {
          const s = o,
            l = o.parent.parent;
          if (f4(e) && !TO(e, t, r)) return;
          const u = s.parent.templateSpans.indexOf(s),
            d = Tot(u, e, t, r);
          return Ffe(l, d, r);
        } else if (ru(o)) {
          const s = o.attributes.pos,
            l = La(r.text, o.attributes.end, !1);
          return {
            isTypeParameterList: !1,
            invocation: { kind: 0, node: o },
            argumentsSpan: Id(s, l - s),
            argumentIndex: 0,
            argumentCount: 1,
          };
        } else {
          const s = Fq(e, r);
          if (s) {
            const { called: l, nTypeArguments: u } = s,
              d = { kind: 1, called: l },
              _ = ic(l.getStart(r), e.end);
            return {
              isTypeParameterList: !0,
              invocation: d,
              argumentsSpan: _,
              argumentIndex: u,
              argumentCount: u + 1,
            };
          }
          return;
        }
      }
    }
    function fot(e, t, r, i) {
      return mot(e, t, r, i) || Gke(e, t, r, i);
    }
    function Vke(e) {
      return Nr(e.parent) ? Vke(e.parent) : e;
    }
    function Wfe(e) {
      return Nr(e.left) ? Wfe(e.left) + 1 : 2;
    }
    function mot(e, t, r, i) {
      const o = hot(e);
      if (o === void 0) return;
      const s = _ot(o, r, t, i);
      if (s === void 0) return;
      const {
          contextualType: l,
          argumentIndex: u,
          argumentCount: d,
          argumentsSpan: _,
        } = s,
        h = l.getNonNullableType(),
        g = h.symbol;
      if (g === void 0) return;
      const E = Zs(h.getCallSignatures());
      return E === void 0
        ? void 0
        : {
            isTypeParameterList: !1,
            invocation: { kind: 2, signature: E, node: e, symbol: got(g) },
            argumentsSpan: _,
            argumentIndex: u,
            argumentCount: d,
          };
    }
    function hot(e) {
      switch (e.kind) {
        case 21:
        case 28:
          return e;
        default:
          return Dn(e.parent, (t) =>
            to(t) ? !0 : Ha(t) || ff(t) || pv(t) ? !1 : "quit",
          );
      }
    }
    function _ot(e, t, r, i) {
      const { parent: o } = e;
      switch (o.kind) {
        case 218:
        case 175:
        case 219:
        case 220:
          const s = Bke(e, r, t, i);
          if (!s) return;
          const { argumentIndex: l, argumentCount: u, argumentsSpan: d } = s,
            _ = Nl(o)
              ? i.getContextualTypeForObjectLiteralElement(o)
              : i.getContextualType(o);
          return (
            _ && {
              contextualType: _,
              argumentIndex: l,
              argumentCount: u,
              argumentsSpan: d,
            }
          );
        case 227: {
          const h = Vke(o),
            g = i.getContextualType(h),
            E = e.kind === 21 ? 0 : Wfe(o) - 1,
            A = Wfe(h);
          return (
            g && {
              contextualType: g,
              argumentIndex: E,
              argumentCount: A,
              argumentsSpan: zu(o),
            }
          );
        }
        default:
          return;
      }
    }
    function got(e) {
      return (
        (e.name === "__type" &&
          Hn(e.declarations, (t) => {
            var r;
            return w_(t)
              ? (r = ni(t.parent, ah)) == null
                ? void 0
                : r.symbol
              : void 0;
          })) ||
        e
      );
    }
    function yot(e, t) {
      const r = t.getTypeAtLocation(e.expression);
      if (t.isTupleType(r)) {
        const { elementFlags: i, fixedLength: o } = r.target;
        if (o === 0) return 0;
        const s = ho(i, (l) => !(l & 1));
        return s < 0 ? o : s;
      }
      return 0;
    }
    function vot(e, t, r) {
      return jke(e, t, r);
    }
    function bot(e, t) {
      return jke(e, t, void 0);
    }
    function jke(e, t, r) {
      const i = t.getChildren();
      let o = 0,
        s = !1;
      for (const l of i) {
        if (r && l === r) return (!s && l.kind === 28 && o++, o);
        if (qf(l)) {
          ((o += yot(l, e)), (s = !0));
          continue;
        }
        if (l.kind !== 28) {
          (o++, (s = !0));
          continue;
        }
        if (s) {
          s = !1;
          continue;
        }
        o++;
      }
      return r ? o : i.length && Ba(i).kind === 28 ? o + 1 : o;
    }
    function Tot(e, t, r, i) {
      return (
        C.assert(
          r >= t.getStart(),
          "Assumed 'position' could not occur before node.",
        ),
        rte(t) ? (TO(t, r, i) ? 0 : e + 2) : e + 1
      );
    }
    function Ffe(e, t, r) {
      const i = g1(e.template) ? 1 : e.template.templateSpans.length + 1;
      return (
        t !== 0 && C.assertLessThan(t, i),
        {
          isTypeParameterList: !1,
          invocation: { kind: 0, node: e },
          argumentsSpan: Eot(e, r),
          argumentIndex: t,
          argumentCount: i,
        }
      );
    }
    function Sot(e, t) {
      const r = e.getFullStart(),
        i = La(t.text, e.getEnd(), !1);
      return Id(r, i - r);
    }
    function Eot(e, t) {
      const r = e.template,
        i = r.getStart();
      let o = r.getEnd();
      return (
        r.kind === 229 &&
          Ba(r.templateSpans).literal.getFullWidth() === 0 &&
          (o = La(t.text, o, !1)),
        Id(i, o - i)
      );
    }
    function Aot(e, t, r, i, o) {
      for (let s = e; !Yi(s) && (o || !ea(s)); s = s.parent) {
        C.assert(
          tp(s.parent, s),
          "Not a subspan",
          () =>
            `Child: ${C.formatSyntaxKind(s.kind)}, parent: ${C.formatSyntaxKind(s.parent.kind)}`,
        );
        const l = fot(s, t, r, i);
        if (l) return l;
      }
    }
    function Iot(e, t, r) {
      const i = e.getChildren(r),
        o = i.indexOf(t);
      return (C.assert(o >= 0 && i.length > o + 1), i[o + 1]);
    }
    function Uke(e) {
      return e.kind === 0 ? $F(e.node) : e.called;
    }
    function Hke(e) {
      return e.kind === 0 ? e.node : e.kind === 1 ? e.called : e.node;
    }
    var Dz = 70246400;
    function qke(
      e,
      t,
      {
        isTypeParameterList: r,
        argumentCount: i,
        argumentsSpan: o,
        invocation: s,
        argumentIndex: l,
      },
      u,
      d,
      _,
    ) {
      var h;
      const g = Hke(s),
        E =
          s.kind === 2
            ? s.symbol
            : d.getSymbolAtLocation(Uke(s)) ||
              (_ && ((h = t.declaration) == null ? void 0 : h.symbol)),
        A = E ? LP(d, E, _ ? u : void 0, void 0) : ae,
        R = Vt(e, (O) => Dot(O, A, r, d, g, u));
      let N = 0,
        P = 0;
      for (let O = 0; O < R.length; O++) {
        const G = R[O];
        if (e[O] === t && ((N = P), G.length > 1)) {
          let j = 0;
          for (const J of G) {
            if (J.isVariadic || J.parameters.length >= i) {
              N = P + j;
              break;
            }
            j++;
          }
        }
        P += G.length;
      }
      C.assert(N !== -1);
      const k = {
          items: yc(R, Vs),
          applicableSpan: o,
          selectedItemIndex: N,
          argumentIndex: l,
          argumentCount: i,
        },
        W = k.items[N];
      if (W.isVariadic) {
        const O = ho(W.parameters, (G) => !!G.isRest);
        -1 < O && O < W.parameters.length - 1
          ? (k.argumentIndex = W.parameters.length)
          : (k.argumentIndex = Math.min(
              k.argumentIndex,
              W.parameters.length - 1,
            ));
      }
      return k;
    }
    function xot(
      e,
      { argumentCount: t, argumentsSpan: r, invocation: i, argumentIndex: o },
      s,
      l,
    ) {
      const u = l.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);
      return u
        ? {
            items: [Rot(e, u, l, Hke(i), s)],
            applicableSpan: r,
            selectedItemIndex: 0,
            argumentIndex: o,
            argumentCount: t,
          }
        : void 0;
    }
    function Rot(e, t, r, i, o) {
      const s = LP(r, e),
        l = YS(),
        u = t.map((g) => Kke(g, r, i, o, l)),
        d = e.getDocumentationComment(r),
        _ = e.getJsDocTags(r);
      return {
        isVariadic: !1,
        prefixDisplayParts: [...s, lu(30)],
        suffixDisplayParts: [lu(32)],
        separatorDisplayParts: Jke,
        parameters: u,
        documentation: d,
        tags: _,
      };
    }
    var Jke = [lu(28), zl()];
    function Dot(e, t, r, i, o, s) {
      const l = (r ? Not : Mot)(e, i, o, s);
      return Vt(l, ({ isVariadic: u, parameters: d, prefix: _, suffix: h }) => {
        const g = [...t, ..._],
          E = [...h, ...Cot(e, o, i)],
          A = e.getDocumentationComment(i),
          R = e.getJsDocTags();
        return {
          isVariadic: u,
          prefixDisplayParts: g,
          suffixDisplayParts: E,
          separatorDisplayParts: Jke,
          parameters: d,
          documentation: A,
          tags: R,
        };
      });
    }
    function Cot(e, t, r) {
      return jb((i) => {
        (i.writePunctuation(":"), i.writeSpace(" "));
        const o = r.getTypePredicateOfSignature(e);
        o
          ? r.writeTypePredicate(o, t, void 0, i)
          : r.writeType(r.getReturnTypeOfSignature(e), t, void 0, i);
      });
    }
    function Not(e, t, r, i) {
      const o = (e.target || e).typeParameters,
        s = YS(),
        l = (o || ae).map((d) => Kke(d, t, r, i, s)),
        u = e.thisParameter
          ? [t.symbolToParameterDeclaration(e.thisParameter, r, Dz)]
          : [];
      return t.getExpandedParameters(e).map((d) => {
        const _ = L.createNodeArray([
            ...u,
            ...Vt(d, (g) => t.symbolToParameterDeclaration(g, r, Dz)),
          ]),
          h = jb((g) => {
            s.writeList(2576, _, i, g);
          });
        return {
          isVariadic: !1,
          parameters: l,
          prefix: [lu(30)],
          suffix: [lu(32), ...h],
        };
      });
    }
    function Mot(e, t, r, i) {
      const o = YS(),
        s = jb((d) => {
          if (e.typeParameters && e.typeParameters.length) {
            const _ = L.createNodeArray(
              e.typeParameters.map((h) =>
                t.typeParameterToDeclaration(h, r, Dz),
              ),
            );
            o.writeList(53776, _, i, d);
          }
        }),
        l = t.getExpandedParameters(e),
        u = t.hasEffectiveRestParameter(e)
          ? l.length === 1
            ? (d) => !0
            : (d) => {
                var _;
                return !!(
                  d.length &&
                  ((_ = ni(d[d.length - 1], pg)) == null
                    ? void 0
                    : _.links.checkFlags) & 32768
                );
              }
          : (d) => !1;
      return l.map((d) => ({
        isVariadic: u(d),
        parameters: d.map((_) => Pot(_, t, r, i, o)),
        prefix: [...s, lu(21)],
        suffix: [lu(22)],
      }));
    }
    function Pot(e, t, r, i, o) {
      const s = jb((d) => {
          const _ = t.symbolToParameterDeclaration(e, r, Dz);
          o.writeNode(4, _, i, d);
        }),
        l = t.isOptionalParameter(e.valueDeclaration),
        u = pg(e) && !!(e.links.checkFlags & 32768);
      return {
        name: e.name,
        documentation: e.getDocumentationComment(t),
        displayParts: s,
        isOptional: l,
        isRest: u,
      };
    }
    function Kke(e, t, r, i, o) {
      const s = jb((l) => {
        const u = t.typeParameterToDeclaration(e, r, Dz);
        o.writeNode(4, u, i, l);
      });
      return {
        name: e.symbol.name,
        documentation: e.symbol.getDocumentationComment(t),
        displayParts: s,
        isOptional: !1,
        isRest: !1,
      };
    }
    var aX = {};
    x(aX, { getSmartSelectionRange: () => Lot });
    function Lot(e, t) {
      var r, i;
      let o = { textSpan: ic(t.getFullStart(), t.getEnd()) },
        s = t;
      e: for (;;) {
        const d = Oot(s);
        if (!d.length) break;
        for (let _ = 0; _ < d.length; _++) {
          const h = d[_ - 1],
            g = d[_],
            E = d[_ + 1];
          if (gb(g, t, !0) > e) break e;
          const A = og(sb(t.text, g.end));
          if ((A && A.kind === 2 && u(A.pos, A.end), kot(t, e, g))) {
            if (
              (nG(g) &&
                Ms(s) &&
                !Gf(g.getStart(t), g.getEnd(), t) &&
                l(g.getStart(t), g.getEnd()),
              ea(g) ||
                AD(g) ||
                GI(g) ||
                f4(g) ||
                (h && GI(h)) ||
                (_d(g) && ac(s)) ||
                (ND(g) && _d(s)) ||
                (yi(g) && ND(s) && d.length === 1) ||
                t0(g) ||
                fv(g) ||
                x1(g))
            ) {
              s = g;
              break;
            }
            if (AD(s) && E && yF(E)) {
              const k = g.getFullStart() - 2,
                W = E.getStart() + 1;
              l(k, W);
            }
            const R =
              ND(g) && Wot(h) && Fot(E) && !Gf(h.getStart(), E.getStart(), t);
            let N = R ? h.getEnd() : g.getStart();
            const P = R ? E.getStart() : zot(t, g);
            if (
              (ef(g) &&
                (r = g.jsDoc) != null &&
                r.length &&
                l($a(g.jsDoc).getStart(), P),
              ND(g))
            ) {
              const k = g.getChildren()[0];
              k &&
                ef(k) &&
                (i = k.jsDoc) != null &&
                i.length &&
                k.getStart() !== g.pos &&
                (N = Math.min(N, $a(k.jsDoc).getStart()));
            }
            (l(N, P), (ka(g) || lI(g)) && l(N + 1, P - 1), (s = g));
            break;
          }
          if (_ === d.length - 1) break e;
        }
      }
      return o;
      function l(d, _) {
        if (d !== _) {
          const h = ic(d, _);
          (!o || (!rC(h, o.textSpan) && kee(h, e))) &&
            (o = { textSpan: h, ...(o && { parent: o }) });
        }
      }
      function u(d, _) {
        l(d, _);
        let h = d;
        for (; t.text.charCodeAt(h) === 47; ) h++;
        l(h, _);
      }
    }
    function kot(e, t, r) {
      return (
        C.assert(r.pos <= t),
        t < r.end ? !0 : r.getEnd() === t ? ip(e, t).pos < r.end : !1
      );
    }
    var wot = Rp(vl, Fc);
    function Oot(e) {
      var t;
      if (Yi(e)) return oW(e.getChildAt(0).getChildren(), wot);
      if (b1(e)) {
        const [r, ...i] = e.getChildren(),
          o = C.checkDefined(i.pop());
        (C.assertEqual(r.kind, 19), C.assertEqual(o.kind, 20));
        const s = oW(
            i,
            (u) =>
              u === e.readonlyToken ||
              u.kind === 148 ||
              u === e.questionToken ||
              u.kind === 58,
          ),
          l = oW(s, ({ kind: u }) => u === 23 || u === 169 || u === 24);
        return [r, aW(sX(l, ({ kind: u }) => u === 59)), o];
      }
      if (Su(e)) {
        const r = oW(
            e.getChildren(),
            (l) => l === e.name || jn(e.modifiers, l),
          ),
          i = ((t = r[0]) == null ? void 0 : t.kind) === 321 ? r[0] : void 0,
          o = i ? r.slice(1) : r,
          s = sX(o, ({ kind: l }) => l === 59);
        return i ? [i, aW(s)] : s;
      }
      if (to(e)) {
        const r = oW(
            e.getChildren(),
            (o) => o === e.dotDotDotToken || o === e.name,
          ),
          i = oW(r, (o) => o === r[0] || o === e.questionToken);
        return sX(i, ({ kind: o }) => o === 64);
      }
      return Ha(e)
        ? sX(e.getChildren(), ({ kind: r }) => r === 64)
        : e.getChildren();
    }
    function oW(e, t) {
      const r = [];
      let i;
      for (const o of e)
        t(o)
          ? ((i = i || []), i.push(o))
          : (i && (r.push(aW(i)), (i = void 0)), r.push(o));
      return (i && r.push(aW(i)), r);
    }
    function sX(e, t, r = !0) {
      if (e.length < 2) return e;
      const i = ho(e, t);
      if (i === -1) return e;
      const o = e.slice(0, i),
        s = e[i],
        l = Ba(e),
        u = r && l.kind === 27,
        d = e.slice(i + 1, u ? e.length - 1 : void 0),
        _ = m2([o.length ? aW(o) : void 0, s, d.length ? aW(d) : void 0]);
      return u ? _.concat(l) : _;
    }
    function aW(e) {
      return (
        C.assertGreaterThanOrEqual(e.length, 1),
        uh(i0.createSyntaxList(e), e[0].pos, Ba(e).end)
      );
    }
    function Wot(e) {
      const t = e && e.kind;
      return t === 19 || t === 23 || t === 21 || t === 287;
    }
    function Fot(e) {
      const t = e && e.kind;
      return t === 20 || t === 24 || t === 22 || t === 288;
    }
    function zot(e, t) {
      switch (t.kind) {
        case 342:
        case 339:
        case 349:
        case 347:
        case 344:
          return e.getLineEndOfPosition(t.getStart());
        default:
          return t.getEnd();
      }
    }
    var vv = {};
    x(vv, {
      getSymbolDisplayPartsDocumentationAndSymbolKind: () => Got,
      getSymbolKind: () => Yke,
      getSymbolModifiers: () => Bot,
    });
    var Xke = 70246400;
    function Yke(e, t, r) {
      const i = $ke(e, t, r);
      if (i !== "") return i;
      const o = cD(t);
      return o & 32
        ? al(t, 232)
          ? "local class"
          : "class"
        : o & 384
          ? "enum"
          : o & 524288
            ? "type"
            : o & 64
              ? "interface"
              : o & 262144
                ? "type parameter"
                : o & 8
                  ? "enum member"
                  : o & 2097152
                    ? "alias"
                    : o & 1536
                      ? "module"
                      : i;
    }
    function $ke(e, t, r) {
      const i = e.getRootSymbols(t);
      if (
        i.length === 1 &&
        $a(i).flags & 8192 &&
        e
          .getTypeOfSymbolAtLocation(t, r)
          .getNonNullableType()
          .getCallSignatures().length !== 0
      )
        return "method";
      if (e.isUndefinedSymbol(t)) return "var";
      if (e.isArgumentsSymbol(t)) return "local var";
      if ((r.kind === 110 && St(r)) || NS(r)) return "parameter";
      const o = cD(t);
      if (o & 3)
        return iJ(t)
          ? "parameter"
          : t.valueDeclaration && JR(t.valueDeclaration)
            ? "const"
            : t.valueDeclaration && ik(t.valueDeclaration)
              ? "using"
              : t.valueDeclaration && rk(t.valueDeclaration)
                ? "await using"
                : Ye(t.declarations, GF)
                  ? "let"
                  : ewe(t)
                    ? "local var"
                    : "var";
      if (o & 16) return ewe(t) ? "local function" : "function";
      if (o & 32768) return "getter";
      if (o & 65536) return "setter";
      if (o & 8192) return "method";
      if (o & 16384) return "constructor";
      if (o & 131072) return "index";
      if (o & 4) {
        if (o & 33554432 && t.links.checkFlags & 6) {
          const s = Ye(e.getRootSymbols(t), (l) => {
            if (l.getFlags() & 98311) return "property";
          });
          return (
            s ||
            (e.getTypeOfSymbolAtLocation(t, r).getCallSignatures().length
              ? "method"
              : "property")
          );
        }
        return "property";
      }
      return "";
    }
    function Qke(e) {
      if (e.declarations && e.declarations.length) {
        const [t, ...r] = e.declarations,
          i = et(r) && W7(t) && yt(r, (s) => !W7(s)) ? 65536 : 0,
          o = DP(t, i);
        if (o) return o.split(",");
      }
      return [];
    }
    function Bot(e, t) {
      if (!t) return "";
      const r = new Set(Qke(t));
      if (t.flags & 2097152) {
        const i = e.getAliasedSymbol(t);
        i !== t &&
          Ye(Qke(i), (o) => {
            r.add(o);
          });
      }
      return (
        t.flags & 16777216 && r.add("optional"),
        r.size > 0 ? Co(r.values()).join(",") : ""
      );
    }
    function Zke(e, t, r, i, o, s, l, u, d, _) {
      var h;
      const g = [];
      let E = [],
        A = [];
      const R = cD(t);
      let N = l & 1 ? $ke(e, t, o) : "",
        P = !1;
      const k = (o.kind === 110 && QF(o)) || NS(o);
      let W,
        O,
        G = !1;
      const j = { canIncreaseExpansionDepth: !1, truncated: !1 };
      let J = !1;
      if (o.kind === 110 && !k)
        return {
          displayParts: [Vp(110)],
          documentation: [],
          symbolKind: "primitive type",
          tags: void 0,
        };
      if (N !== "" || R & 32 || R & 2097152) {
        if (N === "getter" || N === "setter") {
          const be = hn(
            t.declarations,
            (Ne) => Ne.name === o && Ne.kind !== 212,
          );
          if (be)
            switch (be.kind) {
              case 178:
                N = "getter";
                break;
              case 179:
                N = "setter";
                break;
              case 173:
                N = "accessor";
                break;
              default:
                C.assertNever(be);
            }
          else N = "property";
        }
        let Se;
        if (
          (s ??
            (s = k
              ? e.getTypeAtLocation(o)
              : e.getTypeOfSymbolAtLocation(t, o)),
          o.parent && o.parent.kind === 212)
        ) {
          const be = o.parent.name;
          (be === o || (be && be.getFullWidth() === 0)) && (o = o.parent);
        }
        let re;
        if (
          (Gh(o)
            ? (re = o)
            : (Eq(o) ||
                IP(o) ||
                (o.parent &&
                  (ru(o.parent) || XT(o.parent)) &&
                  Yo(t.valueDeclaration))) &&
              (re = o.parent),
          re)
        ) {
          Se = e.getResolvedSignature(re);
          const be = re.kind === 215 || (Zo(re) && re.expression.kind === 108),
            Ne = be ? s.getConstructSignatures() : s.getCallSignatures();
          if (
            (Se &&
              !jn(Ne, Se.target) &&
              !jn(Ne, Se) &&
              (Se = Ne.length ? Ne[0] : void 0),
            Se)
          ) {
            switch (
              (be && R & 32
                ? ((N = "constructor"), xe(s.symbol, N))
                : R & 2097152
                  ? ((N = "alias"),
                    X(N),
                    g.push(zl()),
                    be &&
                      (Se.flags & 4 && (g.push(Vp(128)), g.push(zl())),
                      g.push(Vp(105)),
                      g.push(zl())),
                    ve(t))
                  : xe(t, N),
              N)
            ) {
              case "JSX attribute":
              case "property":
              case "var":
              case "const":
              case "let":
              case "parameter":
              case "local var":
                (g.push(lu(59)),
                  g.push(zl()),
                  !(Hr(s) & 16) &&
                    s.symbol &&
                    (Xr(g, LP(e, s.symbol, i, void 0, 5)), g.push(iC())),
                  be &&
                    (Se.flags & 4 && (g.push(Vp(128)), g.push(zl())),
                    g.push(Vp(105)),
                    g.push(zl())),
                  Ce(Se, Ne, 262144));
                break;
              default:
                Ce(Se, Ne);
            }
            ((P = !0), (G = Ne.length > 1));
          }
        } else if (
          (Mq(o) && !(R & 98304)) ||
          (o.kind === 137 && o.parent.kind === 177)
        ) {
          const be = o.parent;
          if (
            t.declarations &&
            hn(t.declarations, (Be) => Be === (o.kind === 137 ? be.parent : be))
          ) {
            const Be =
              be.kind === 177
                ? s.getNonNullableType().getConstructSignatures()
                : s.getNonNullableType().getCallSignatures();
            (e.isImplementationOfOverload(be)
              ? (Se = Be[0])
              : (Se = e.getSignatureFromDeclaration(be)),
              be.kind === 177
                ? ((N = "constructor"), xe(s.symbol, N))
                : xe(
                    be.kind === 180 &&
                      !(s.symbol.flags & 2048 || s.symbol.flags & 4096)
                      ? s.symbol
                      : t,
                    N,
                  ),
              Se && Ce(Se, Be),
              (P = !0),
              (G = Be.length > 1));
          }
        }
      }
      if (R & 32 && !P && !k) {
        ie();
        const Se = al(t, 232);
        (Se && (X("local class"), g.push(zl())),
          fe(t, l) || (Se || (g.push(Vp(86)), g.push(zl())), ve(t), Je(t, r)));
      }
      if (
        (R & 64 &&
          l & 2 &&
          (ye(), fe(t, l) || (g.push(Vp(120)), g.push(zl()), ve(t), Je(t, r))),
        R & 524288 &&
          l & 2 &&
          (ye(),
          g.push(Vp(156)),
          g.push(zl()),
          ve(t),
          Je(t, r),
          g.push(zl()),
          g.push(PP(64)),
          g.push(zl()),
          Xr(
            g,
            RO(
              e,
              o.parent && Om(o.parent)
                ? e.getTypeAtLocation(o.parent)
                : e.getDeclaredTypeOfSymbol(t),
              i,
              8388608,
              d,
              _,
              j,
            ),
          )),
        R & 384 &&
          (ye(),
          fe(t, l) ||
            (yt(t.declarations, (Se) => ZT(Se) && OT(Se)) &&
              (g.push(Vp(87)), g.push(zl())),
            g.push(Vp(94)),
            g.push(zl()),
            ve(t, void 0))),
        R & 1536 && !k && (ye(), !fe(t, l)))
      ) {
        const Se = al(t, 268),
          re = Se && Se.name && Se.name.kind === 80;
        (g.push(Vp(re ? 145 : 144)), g.push(zl()), ve(t));
      }
      if (R & 262144 && l & 2)
        if (
          (ye(),
          g.push(lu(21)),
          g.push(yf("type parameter")),
          g.push(lu(22)),
          g.push(zl()),
          ve(t),
          t.parent)
        )
          (K(), ve(t.parent, i), Je(t.parent, i));
        else {
          const Se = al(t, 169);
          if (Se === void 0) return C.fail();
          const re = Se.parent;
          if (re)
            if (Yo(re)) {
              K();
              const be = e.getSignatureFromDeclaration(re);
              (re.kind === 181
                ? (g.push(Vp(105)), g.push(zl()))
                : re.kind !== 180 && re.name && ve(re.symbol),
                Xr(g, aJ(e, be, r, 32)));
            } else
              vm(re) &&
                (K(),
                g.push(Vp(156)),
                g.push(zl()),
                ve(re.symbol),
                Je(re.symbol, r));
        }
      if (R & 8) {
        ((N = "enum member"), xe(t, "enum member"));
        const Se = (h = t.declarations) == null ? void 0 : h[0];
        if (Se?.kind === 307) {
          const re = e.getConstantValue(Se);
          re !== void 0 &&
            (g.push(zl()),
            g.push(PP(64)),
            g.push(zl()),
            g.push(yp(Ote(re), typeof re == "number" ? 7 : 8)));
        }
      }
      if (t.flags & 2097152) {
        if ((ye(), !P || (E.length === 0 && A.length === 0))) {
          const Se = e.getAliasedSymbol(t);
          if (Se !== t && Se.declarations && Se.declarations.length > 0) {
            const re = Se.declarations[0],
              be = Oo(re);
            if (be && !P) {
              const Ne = WF(re) && di(re, 128),
                Be = t.name !== "default" && !Ne,
                lt = Zke(e, Se, Wn(re), i, be, s, l, Be ? t : Se, d, _);
              (g.push(...lt.displayParts),
                g.push(iC()),
                (W = lt.documentation),
                (O = lt.tags),
                j &&
                  lt.canIncreaseVerbosityLevel &&
                  (j.canIncreaseExpansionDepth = !0));
            } else
              ((W = Se.getContextualDocumentationComment(re, e)),
                (O = Se.getJsDocTags(e)));
          }
        }
        if (t.declarations)
          switch (t.declarations[0].kind) {
            case 271:
              (g.push(Vp(95)), g.push(zl()), g.push(Vp(145)));
              break;
            case 278:
              (g.push(Vp(95)),
                g.push(zl()),
                g.push(Vp(t.declarations[0].isExportEquals ? 64 : 90)));
              break;
            case 282:
              g.push(Vp(95));
              break;
            default:
              g.push(Vp(102));
          }
        (g.push(zl()),
          ve(t),
          Ye(t.declarations, (Se) => {
            if (Se.kind === 272) {
              const re = Se;
              if (FT(re))
                (g.push(zl()),
                  g.push(PP(64)),
                  g.push(zl()),
                  g.push(Vp(149)),
                  g.push(lu(21)),
                  g.push(yp(Al(XN(re)), 8)),
                  g.push(lu(22)));
              else {
                const be = e.getSymbolAtLocation(re.moduleReference);
                be && (g.push(zl()), g.push(PP(64)), g.push(zl()), ve(be, i));
              }
              return !0;
            }
          }));
      }
      if (!P)
        if (N !== "") {
          if (s) {
            if (
              (k ? (ye(), g.push(Vp(110))) : xe(t, N),
              N === "property" ||
                N === "accessor" ||
                N === "getter" ||
                N === "setter" ||
                N === "JSX attribute" ||
                R & 3 ||
                N === "local var" ||
                N === "index" ||
                N === "using" ||
                N === "await using" ||
                k)
            ) {
              if (
                (g.push(lu(59)),
                g.push(zl()),
                s.symbol && s.symbol.flags & 262144 && N !== "index")
              ) {
                const Se = jb((re) => {
                  const be = e.typeParameterToDeclaration(
                    s,
                    i,
                    Xke,
                    void 0,
                    void 0,
                    d,
                    _,
                    j,
                  );
                  q().writeNode(4, be, Wn(jo(i)), re);
                }, d);
                Xr(g, Se);
              } else Xr(g, RO(e, s, i, void 0, d, _, j));
              if (
                pg(t) &&
                t.links.target &&
                pg(t.links.target) &&
                t.links.target.links.tupleLabelDeclaration
              ) {
                const Se = t.links.target.links.tupleLabelDeclaration;
                (C.assertNode(Se.name, He),
                  g.push(zl()),
                  g.push(lu(21)),
                  g.push(yf(Kr(Se.name))),
                  g.push(lu(22)));
              }
            } else if (
              R & 16 ||
              R & 8192 ||
              R & 16384 ||
              R & 131072 ||
              R & 98304 ||
              N === "method"
            ) {
              const Se = s.getNonNullableType().getCallSignatures();
              Se.length && (Ce(Se[0], Se), (G = Se.length > 1));
            }
          }
        } else N = Yke(e, t, o);
      if (
        (E.length === 0 &&
          !G &&
          (E = t.getContextualDocumentationComment(i, e)),
        E.length === 0 &&
          R & 4 &&
          t.parent &&
          t.declarations &&
          Ye(t.parent.declarations, (Se) => Se.kind === 308))
      )
        for (const Se of t.declarations) {
          if (!Se.parent || Se.parent.kind !== 227) continue;
          const re = e.getSymbolAtLocation(Se.parent.right);
          if (
            re &&
            ((E = re.getDocumentationComment(e)),
            (A = re.getJsDocTags(e)),
            E.length > 0)
          )
            break;
        }
      if (
        E.length === 0 &&
        He(o) &&
        t.valueDeclaration &&
        Ha(t.valueDeclaration)
      ) {
        const Se = t.valueDeclaration,
          re = Se.parent,
          be = Se.propertyName || Se.name;
        if (He(be) && ff(re)) {
          const Ne = zf(be),
            Be = e.getTypeAtLocation(re);
          E =
            Hn(Be.isUnion() ? Be.types : [Be], (lt) => {
              const ce = lt.getProperty(Ne);
              return ce ? ce.getDocumentationComment(e) : void 0;
            }) || ae;
        }
      }
      (A.length === 0 && !G && !YN(o) && (A = t.getContextualJsDocTags(i, e)),
        E.length === 0 && W && (E = W),
        A.length === 0 && O && (A = O));
      const Z = !j.truncated && j.canIncreaseExpansionDepth;
      return {
        displayParts: g,
        documentation: E,
        symbolKind: N,
        tags: A.length === 0 ? void 0 : A,
        canIncreaseVerbosityLevel: _ !== void 0 ? Z : void 0,
      };
      function q() {
        return YS();
      }
      function ye() {
        (g.length && g.push(iC()), ie());
      }
      function ie() {
        u && (X("alias"), g.push(zl()));
      }
      function K() {
        (g.push(zl()), g.push(Vp(103)), g.push(zl()));
      }
      function pe(Se, re) {
        if (_ === void 0) return !1;
        const be =
          Se.flags & 96
            ? e.getDeclaredTypeOfSymbol(Se)
            : e.getTypeOfSymbolAtLocation(Se, o);
        return !be || e.isLibType(be)
          ? !1
          : 0 < _
            ? !0
            : (re && (re.canIncreaseExpansionDepth = !0), !1);
      }
      function de(Se) {
        let re = 0;
        return (
          Se & 1 && (re |= 111551),
          Se & 2 && (re |= 788968),
          Se & 4 && (re |= 1920),
          re
        );
      }
      function fe(Se, re) {
        if (J) return !0;
        if (pe(Se, j)) {
          const be = de(re),
            Ne = jb((Be) => {
              const lt = e
                  .getEmitResolver()
                  .symbolToDeclarations(
                    Se,
                    be,
                    17408,
                    d,
                    _ !== void 0 ? _ - 1 : void 0,
                    j,
                  ),
                ce = q(),
                Re = Se.valueDeclaration && Wn(Se.valueDeclaration);
              lt.forEach((_e, je) => {
                (je > 0 && Be.writeLine(), ce.writeNode(4, _e, Re, Be));
              });
            }, d);
          return (Xr(g, Ne), (J = !0), !0);
        }
        return !1;
      }
      function ve(Se, re) {
        let be;
        (u && Se === t && (Se = u),
          N === "index" && (be = e.getIndexInfosOfIndexSymbol(Se)));
        let Ne = [];
        (Se.flags & 131072 && be
          ? (Se.parent && (Ne = LP(e, Se.parent)),
            Ne.push(lu(23)),
            be.forEach((Be, lt) => {
              (Ne.push(...RO(e, Be.keyType)),
                lt !== be.length - 1 &&
                  (Ne.push(zl()), Ne.push(lu(52)), Ne.push(zl())));
            }),
            Ne.push(lu(24)))
          : (Ne = LP(e, Se, re || r, void 0, 7)),
          Xr(g, Ne),
          t.flags & 16777216 && g.push(lu(58)));
      }
      function xe(Se, re) {
        (ye(),
          re &&
            (X(re),
            Se &&
              !yt(
                Se.declarations,
                (be) => Xs(be) || ((Us(be) || dc(be)) && !be.name),
              ) &&
              (g.push(zl()), ve(Se))));
      }
      function X(Se) {
        switch (Se) {
          case "var":
          case "function":
          case "let":
          case "const":
          case "constructor":
          case "using":
          case "await using":
            g.push(oJ(Se));
            return;
          default:
            (g.push(lu(21)), g.push(oJ(Se)), g.push(lu(22)));
            return;
        }
      }
      function Ce(Se, re, be = 0) {
        (Xr(g, aJ(e, Se, i, be | 32, d, _, j)),
          re.length > 1 &&
            (g.push(zl()),
            g.push(lu(21)),
            g.push(PP(40)),
            g.push(yp((re.length - 1).toString(), 7)),
            g.push(zl()),
            g.push(yf(re.length === 2 ? "overload" : "overloads")),
            g.push(lu(22))),
          (E = Se.getDocumentationComment(e)),
          (A = Se.getJsDocTags()),
          re.length > 1 &&
            E.length === 0 &&
            A.length === 0 &&
            ((E = re[0].getDocumentationComment(e)),
            (A = re[0]
              .getJsDocTags()
              .filter((Ne) => Ne.name !== "deprecated"))));
      }
      function Je(Se, re) {
        const be = jb((Ne) => {
          const Be = e.symbolToTypeParameterDeclarations(Se, re, Xke);
          q().writeList(53776, Be, Wn(jo(re)), Ne);
        });
        Xr(g, be);
      }
    }
    function Got(e, t, r, i, o, s = W1(o), l, u, d) {
      return Zke(e, t, r, i, o, void 0, s, l, u, d);
    }
    function ewe(e) {
      return e.parent
        ? !1
        : Ye(e.declarations, (t) => {
            if (t.kind === 219) return !0;
            if (t.kind !== 261 && t.kind !== 263) return !1;
            for (let r = t.parent; !SS(r); r = r.parent)
              if (r.kind === 308 || r.kind === 269) return !1;
            return !0;
          });
    }
    var Rr = {};
    x(Rr, {
      ChangeTracker: () => Uot,
      LeadingTriviaOption: () => rwe,
      TrailingTriviaOption: () => iwe,
      applyChanges: () => jfe,
      assignPositionsToNode: () => uX,
      createWriter: () => awe,
      deleteNode: () => vy,
      getAdjustedEndPosition: () => xx,
      isThisTypeAnnotatable: () => jot,
      isValidLocationToAddComment: () => swe,
    });
    function twe(e) {
      const t = e.__pos;
      return (C.assert(typeof t == "number"), t);
    }
    function zfe(e, t) {
      (C.assert(typeof t == "number"), (e.__pos = t));
    }
    function nwe(e) {
      const t = e.__end;
      return (C.assert(typeof t == "number"), t);
    }
    function Bfe(e, t) {
      (C.assert(typeof t == "number"), (e.__end = t));
    }
    var rwe = ((e) => (
        (e[(e.Exclude = 0)] = "Exclude"),
        (e[(e.IncludeAll = 1)] = "IncludeAll"),
        (e[(e.JSDoc = 2)] = "JSDoc"),
        (e[(e.StartLine = 3)] = "StartLine"),
        e
      ))(rwe || {}),
      iwe = ((e) => (
        (e[(e.Exclude = 0)] = "Exclude"),
        (e[(e.ExcludeWhitespace = 1)] = "ExcludeWhitespace"),
        (e[(e.Include = 2)] = "Include"),
        e
      ))(iwe || {});
    function owe(e, t) {
      return La(e, t, !1, !0);
    }
    function Vot(e, t) {
      let r = t;
      for (; r < e.length; ) {
        const i = e.charCodeAt(r);
        if (Bh(i)) {
          r++;
          continue;
        }
        return i === 47;
      }
      return !1;
    }
    var sW = { leadingTriviaOption: 0, trailingTriviaOption: 0 };
    function lW(e, t, r, i) {
      return { pos: U1(e, t, i), end: xx(e, r, i) };
    }
    function U1(e, t, r, i = !1) {
      var o, s;
      const { leadingTriviaOption: l } = r;
      if (l === 0) return t.getStart(e);
      if (l === 3) {
        const A = t.getStart(e),
          R = Em(A, e);
        return ZD(t, R) ? R : A;
      }
      if (l === 2) {
        const A = RG(t, e.text);
        if (A?.length) return Em(A[0].pos, e);
      }
      const u = t.getFullStart(),
        d = t.getStart(e);
      if (u === d) return d;
      const _ = Em(u, e);
      if (Em(d, e) === _) return l === 1 ? u : d;
      if (i) {
        const A =
          ((o = lg(e.text, u)) == null ? void 0 : o[0]) ||
          ((s = sb(e.text, u)) == null ? void 0 : s[0]);
        if (A) return La(e.text, A.end, !0, !0);
      }
      const g = u > 0 ? 1 : 0;
      let E = _b(dM(e, _) + g, e);
      return ((E = owe(e.text, E)), _b(dM(e, E), e));
    }
    function Gfe(e, t, r) {
      const { end: i } = t,
        { trailingTriviaOption: o } = r;
      if (o === 2) {
        const s = sb(e.text, i);
        if (s) {
          const l = dM(e, t.end);
          for (const u of s) {
            if (u.kind === 2 || dM(e, u.pos) > l) break;
            if (dM(e, u.end) > l) return La(e.text, u.end, !0, !0);
          }
        }
      }
    }
    function xx(e, t, r) {
      var i;
      const { end: o } = t,
        { trailingTriviaOption: s } = r;
      if (s === 0) return o;
      if (s === 1) {
        const d = so(sb(e.text, o), lg(e.text, o)),
          _ = (i = d?.[d.length - 1]) == null ? void 0 : i.end;
        return _ || o;
      }
      const l = Gfe(e, t, r);
      if (l) return l;
      const u = La(e.text, o, !0);
      return u !== o && (s === 2 || eu(e.text.charCodeAt(u - 1))) ? u : o;
    }
    function lX(e, t) {
      return (
        !!t &&
        !!e.parent &&
        (t.kind === 28 || (t.kind === 27 && e.parent.kind === 211))
      );
    }
    function jot(e) {
      return Us(e) || Zl(e);
    }
    var Uot = class Uye {
      constructor(t, r) {
        ((this.newLineCharacter = t),
          (this.formatContext = r),
          (this.changes = []),
          (this.classesWithNodesInsertedAtStart = new Map()),
          (this.deletedNodes = []));
      }
      static fromContext(t) {
        return new Uye(_y(t.host, t.formatContext.options), t.formatContext);
      }
      static with(t, r) {
        const i = Uye.fromContext(t);
        return (r(i), i.getChanges());
      }
      pushRaw(t, r) {
        C.assertEqual(t.fileName, r.fileName);
        for (const i of r.textChanges)
          this.changes.push({
            kind: 3,
            sourceFile: t,
            text: i.newText,
            range: v7(i.span),
          });
      }
      deleteRange(t, r) {
        this.changes.push({ kind: 0, sourceFile: t, range: r });
      }
      delete(t, r) {
        this.deletedNodes.push({ sourceFile: t, node: r });
      }
      deleteNode(t, r, i = { leadingTriviaOption: 1 }) {
        this.deleteRange(t, lW(t, r, r, i));
      }
      deleteNodes(t, r, i = { leadingTriviaOption: 1 }, o) {
        for (const s of r) {
          const l = U1(t, s, i, o),
            u = xx(t, s, i);
          (this.deleteRange(t, { pos: l, end: u }), (o = !!Gfe(t, s, i)));
        }
      }
      deleteModifier(t, r) {
        this.deleteRange(t, { pos: r.getStart(t), end: La(t.text, r.end, !0) });
      }
      deleteNodeRange(t, r, i, o = { leadingTriviaOption: 1 }) {
        const s = U1(t, r, o),
          l = xx(t, i, o);
        this.deleteRange(t, { pos: s, end: l });
      }
      deleteNodeRangeExcludingEnd(t, r, i, o = { leadingTriviaOption: 1 }) {
        const s = U1(t, r, o),
          l = i === void 0 ? t.text.length : U1(t, i, o);
        this.deleteRange(t, { pos: s, end: l });
      }
      replaceRange(t, r, i, o = {}) {
        this.changes.push({
          kind: 1,
          sourceFile: t,
          range: r,
          options: o,
          node: i,
        });
      }
      replaceNode(t, r, i, o = sW) {
        this.replaceRange(t, lW(t, r, r, o), i, o);
      }
      replaceNodeRange(t, r, i, o, s = sW) {
        this.replaceRange(t, lW(t, r, i, s), o, s);
      }
      replaceRangeWithNodes(t, r, i, o = {}) {
        this.changes.push({
          kind: 2,
          sourceFile: t,
          range: r,
          options: o,
          nodes: i,
        });
      }
      replaceNodeWithNodes(t, r, i, o = sW) {
        this.replaceRangeWithNodes(t, lW(t, r, r, o), i, o);
      }
      replaceNodeWithText(t, r, i) {
        this.replaceRangeWithText(t, lW(t, r, r, sW), i);
      }
      replaceNodeRangeWithNodes(t, r, i, o, s = sW) {
        this.replaceRangeWithNodes(t, lW(t, r, i, s), o, s);
      }
      nodeHasTrailingComment(t, r, i = sW) {
        return !!Gfe(t, r, i);
      }
      nextCommaToken(t, r) {
        const i = eE(r, r.parent, t);
        return i && i.kind === 28 ? i : void 0;
      }
      replacePropertyAssignment(t, r, i) {
        const o = this.nextCommaToken(t, r) ? "" : "," + this.newLineCharacter;
        this.replaceNode(t, r, i, { suffix: o });
      }
      insertNodeAt(t, r, i, o = {}) {
        this.replaceRange(t, Bf(r), i, o);
      }
      insertNodesAt(t, r, i, o = {}) {
        this.replaceRangeWithNodes(t, Bf(r), i, o);
      }
      insertNodeAtTopOfFile(t, r, i) {
        this.insertAtTopOfFile(t, r, i);
      }
      insertNodesAtTopOfFile(t, r, i) {
        this.insertAtTopOfFile(t, r, i);
      }
      insertAtTopOfFile(t, r, i) {
        const o = Qot(t),
          s = {
            prefix: o === 0 ? void 0 : this.newLineCharacter,
            suffix:
              (eu(t.text.charCodeAt(o)) ? "" : this.newLineCharacter) +
              (i ? this.newLineCharacter : ""),
          };
        Mo(r) ? this.insertNodesAt(t, o, r, s) : this.insertNodeAt(t, o, r, s);
      }
      insertNodesAtEndOfFile(t, r, i) {
        this.insertAtEndOfFile(t, r, i);
      }
      insertAtEndOfFile(t, r, i) {
        const o = t.end + 1,
          s = {
            prefix: this.newLineCharacter,
            suffix: this.newLineCharacter + (i ? this.newLineCharacter : ""),
          };
        this.insertNodesAt(t, o, r, s);
      }
      insertStatementsInNewFile(t, r, i) {
        (this.newFileChanges || (this.newFileChanges = cm()),
          this.newFileChanges.add(t, { oldFile: i, statements: r }));
      }
      insertFirstParameter(t, r, i) {
        const o = Ac(r);
        o ? this.insertNodeBefore(t, o, i) : this.insertNodeAt(t, r.pos, i);
      }
      insertNodeBefore(t, r, i, o = !1, s = {}) {
        this.insertNodeAt(
          t,
          U1(t, r, s),
          i,
          this.getOptionsForInsertNodeBefore(r, i, o),
        );
      }
      insertNodesBefore(t, r, i, o = !1, s = {}) {
        this.insertNodesAt(
          t,
          U1(t, r, s),
          i,
          this.getOptionsForInsertNodeBefore(r, $a(i), o),
        );
      }
      insertModifierAt(t, r, i, o = {}) {
        this.insertNodeAt(t, r, L.createToken(i), o);
      }
      insertModifierBefore(t, r, i) {
        return this.insertModifierAt(t, i.getStart(t), r, { suffix: " " });
      }
      insertCommentBeforeLine(t, r, i, o) {
        const s = _b(r, t),
          l = dce(t.text, s),
          u = swe(t, l),
          d = eC(t, u ? l : i),
          _ = t.text.slice(s, l),
          h = `${u ? "" : this.newLineCharacter}//${o}${this.newLineCharacter}${_}`;
        this.insertText(t, d.getStart(t), h);
      }
      insertJsdocCommentBefore(t, r, i) {
        const o = r.getStart(t);
        if (r.jsDoc)
          for (const u of r.jsDoc)
            this.deleteRange(t, {
              pos: Em(u.getStart(t), t),
              end: xx(t, u, {}),
            });
        const s = R7(t.text, o - 1),
          l = t.text.slice(s, o);
        this.insertNodeAt(t, o, i, { suffix: this.newLineCharacter + l });
      }
      createJSDocText(t, r) {
        const i = Ki(r.jsDoc, (s) =>
            Bo(s.comment) ? L.createJSDocText(s.comment) : s.comment,
          ),
          o = og(r.jsDoc);
        return o && Gf(o.pos, o.end, t) && et(i) === 0
          ? void 0
          : L.createNodeArray(
              bo(
                i,
                L.createJSDocText(`
`),
              ),
            );
      }
      replaceJSDocComment(t, r, i) {
        this.insertJsdocCommentBefore(
          t,
          Hot(r),
          L.createJSDocComment(
            this.createJSDocText(t, r),
            L.createNodeArray(i),
          ),
        );
      }
      addJSDocTags(t, r, i) {
        const o = yc(r.jsDoc, (l) => l.tags),
          s = i.filter(
            (l) =>
              !o.some((u, d) => {
                const _ = qot(u, l);
                return (_ && (o[d] = _), !!_);
              }),
          );
        this.replaceJSDocComment(t, r, [...o, ...s]);
      }
      filterJSDocTags(t, r, i) {
        this.replaceJSDocComment(
          t,
          r,
          Un(
            yc(r.jsDoc, (o) => o.tags),
            i,
          ),
        );
      }
      replaceRangeWithText(t, r, i) {
        this.changes.push({ kind: 3, sourceFile: t, range: r, text: i });
      }
      insertText(t, r, i) {
        this.replaceRangeWithText(t, Bf(r), i);
      }
      tryInsertTypeAnnotation(t, r, i) {
        let o;
        if (Yo(r)) {
          if (((o = Es(r, 22, t)), !o)) {
            if (!Xs(r)) return !1;
            o = $a(r.parameters);
          }
        } else
          o = (r.kind === 261 ? r.exclamationToken : r.questionToken) ?? r.name;
        return (this.insertNodeAt(t, o.end, i, { prefix: ": " }), !0);
      }
      tryInsertThisTypeAnnotation(t, r, i) {
        const o = Es(r, 21, t).getStart(t) + 1,
          s = r.parameters.length ? ", " : "";
        this.insertNodeAt(t, o, i, { prefix: "this: ", suffix: s });
      }
      insertTypeParameters(t, r, i) {
        const o = (Es(r, 21, t) || $a(r.parameters)).getStart(t);
        this.insertNodesAt(t, o, i, { prefix: "<", suffix: ">", joiner: ", " });
      }
      getOptionsForInsertNodeBefore(t, r, i) {
        return Vi(t) || bc(t)
          ? {
              suffix: i
                ? this.newLineCharacter + this.newLineCharacter
                : this.newLineCharacter,
            }
          : yi(t)
            ? { suffix: ", " }
            : to(t)
              ? to(r)
                ? { suffix: ", " }
                : {}
              : (ka(t) && vl(t.parent)) || n_(t)
                ? { suffix: ", " }
                : Eu(t)
                  ? { suffix: "," + (i ? this.newLineCharacter : " ") }
                  : C.failBadSyntaxKind(t);
      }
      insertNodeAtConstructorStart(t, r, i) {
        const o = Ac(r.body.statements);
        !o || !r.body.multiLine
          ? this.replaceConstructorBody(t, r, [i, ...r.body.statements])
          : this.insertNodeBefore(t, o, i);
      }
      insertNodeAtConstructorStartAfterSuperCall(t, r, i) {
        const o = hn(r.body.statements, (s) => od(s) && n1(s.expression));
        !o || !r.body.multiLine
          ? this.replaceConstructorBody(t, r, [...r.body.statements, i])
          : this.insertNodeAfter(t, o, i);
      }
      insertNodeAtConstructorEnd(t, r, i) {
        const o = Zs(r.body.statements);
        !o || !r.body.multiLine
          ? this.replaceConstructorBody(t, r, [...r.body.statements, i])
          : this.insertNodeAfter(t, o, i);
      }
      replaceConstructorBody(t, r, i) {
        this.replaceNode(t, r.body, L.createBlock(i, !0));
      }
      insertNodeAtEndOfScope(t, r, i) {
        const o = U1(t, r.getLastToken(), {});
        this.insertNodeAt(t, o, i, {
          prefix: eu(t.text.charCodeAt(r.getLastToken().pos))
            ? this.newLineCharacter
            : this.newLineCharacter + this.newLineCharacter,
          suffix: this.newLineCharacter,
        });
      }
      insertMemberAtStart(t, r, i) {
        this.insertNodeAtStartWorker(t, r, i);
      }
      insertNodeAtObjectStart(t, r, i) {
        this.insertNodeAtStartWorker(t, r, i);
      }
      insertNodeAtStartWorker(t, r, i) {
        const o =
          this.guessIndentationFromExistingMembers(t, r) ??
          this.computeIndentationForNewMember(t, r);
        this.insertNodeAt(
          t,
          cX(r).pos,
          i,
          this.getInsertNodeAtStartInsertOptions(t, r, o),
        );
      }
      guessIndentationFromExistingMembers(t, r) {
        let i,
          o = r;
        for (const s of cX(r)) {
          if (D6(o, s, t)) return;
          const l = s.getStart(t),
            u = Nc.SmartIndenter.findFirstNonWhitespaceColumn(
              Em(l, t),
              l,
              t,
              this.formatContext.options,
            );
          if (i === void 0) i = u;
          else if (u !== i) return;
          o = s;
        }
        return i;
      }
      computeIndentationForNewMember(t, r) {
        const i = r.getStart(t);
        return (
          Nc.SmartIndenter.findFirstNonWhitespaceColumn(
            Em(i, t),
            i,
            t,
            this.formatContext.options,
          ) + (this.formatContext.options.indentSize ?? 4)
        );
      }
      getInsertNodeAtStartInsertOptions(t, r, i) {
        const s = cX(r).length === 0,
          l = !this.classesWithNodesInsertedAtStart.has(ls(r));
        l &&
          this.classesWithNodesInsertedAtStart.set(ls(r), {
            node: r,
            sourceFile: t,
          });
        const u = Wa(r) && (!Ff(t) || !s),
          d = Wa(r) && Ff(t) && s && !l;
        return {
          indentation: i,
          prefix: (d ? "," : "") + this.newLineCharacter,
          suffix: u ? "," : gd(r) && s ? ";" : "",
        };
      }
      insertNodeAfterComma(t, r, i) {
        const o = this.insertNodeAfterWorker(
          t,
          this.nextCommaToken(t, r) || r,
          i,
        );
        this.insertNodeAt(t, o, i, this.getInsertNodeAfterOptions(t, r));
      }
      insertNodeAfter(t, r, i) {
        const o = this.insertNodeAfterWorker(t, r, i);
        this.insertNodeAt(t, o, i, this.getInsertNodeAfterOptions(t, r));
      }
      insertNodeAtEndOfList(t, r, i) {
        this.insertNodeAt(t, r.end, i, { prefix: ", " });
      }
      insertNodesAfter(t, r, i) {
        const o = this.insertNodeAfterWorker(t, r, $a(i));
        this.insertNodesAt(t, o, i, this.getInsertNodeAfterOptions(t, r));
      }
      insertNodeAfterWorker(t, r, i) {
        return (
          Zot(r, i) &&
            t.text.charCodeAt(r.end - 1) !== 59 &&
            this.replaceRange(t, Bf(r.end), L.createToken(27)),
          xx(t, r, {})
        );
      }
      getInsertNodeAfterOptions(t, r) {
        const i = this.getInsertNodeAfterOptionsWorker(r);
        return {
          ...i,
          prefix:
            r.end === t.end && Vi(r)
              ? i.prefix
                ? `
${i.prefix}`
                : `
`
              : i.prefix,
        };
      }
      getInsertNodeAfterOptionsWorker(t) {
        switch (t.kind) {
          case 264:
          case 268:
            return {
              prefix: this.newLineCharacter,
              suffix: this.newLineCharacter,
            };
          case 261:
          case 11:
          case 80:
            return { prefix: ", " };
          case 304:
            return { suffix: "," + this.newLineCharacter };
          case 95:
            return { prefix: " " };
          case 170:
            return {};
          default:
            return (
              C.assert(Vi(t) || vF(t)),
              { suffix: this.newLineCharacter }
            );
        }
      }
      insertName(t, r, i) {
        if ((C.assert(!r.name), r.kind === 220)) {
          const o = Es(r, 39, t),
            s = Es(r, 21, t);
          (s
            ? (this.insertNodesAt(
                t,
                s.getStart(t),
                [L.createToken(100), L.createIdentifier(i)],
                { joiner: " " },
              ),
              vy(this, t, o))
            : (this.insertText(
                t,
                $a(r.parameters).getStart(t),
                `function ${i}(`,
              ),
              this.replaceRange(t, o, L.createToken(22))),
            r.body.kind !== 242 &&
              (this.insertNodesAt(
                t,
                r.body.getStart(t),
                [L.createToken(19), L.createToken(107)],
                { joiner: " ", suffix: " " },
              ),
              this.insertNodesAt(
                t,
                r.body.end,
                [L.createToken(27), L.createToken(20)],
                { joiner: " " },
              )));
        } else {
          const o = Es(r, r.kind === 219 ? 100 : 86, t).end;
          this.insertNodeAt(t, o, L.createIdentifier(i), { prefix: " " });
        }
      }
      insertExportModifier(t, r) {
        this.insertText(t, r.getStart(t), "export ");
      }
      insertImportSpecifierAtIndex(t, r, i, o) {
        const s = i.elements[o - 1];
        s
          ? this.insertNodeInListAfter(t, s, r)
          : this.insertNodeBefore(
              t,
              i.elements[0],
              r,
              !Gf(i.elements[0].getStart(), i.parent.parent.getStart(), t),
            );
      }
      insertNodeInListAfter(
        t,
        r,
        i,
        o = Nc.SmartIndenter.getContainingList(r, t),
      ) {
        if (!o) {
          C.fail("node is not a list element");
          return;
        }
        const s = UR(o, r);
        if (s < 0) return;
        const l = r.getEnd();
        if (s !== o.length - 1) {
          const u = Fi(t, r.end);
          if (u && lX(r, u)) {
            const d = o[s + 1],
              _ = owe(t.text, d.getFullStart()),
              h = `${_a(u.kind)}${t.text.substring(u.end, _)}`;
            this.insertNodesAt(t, _, [i], { suffix: h });
          }
        } else {
          const u = r.getStart(t),
            d = Em(u, t);
          let _,
            h = !1;
          if (o.length === 1) _ = 28;
          else {
            const g = Bc(r.pos, t);
            ((_ = lX(r, g) ? g.kind : 28),
              (h = Em(o[s - 1].getStart(t), t) !== d));
          }
          if (((Vot(t.text, r.end) || !Gf(o.pos, o.end, t)) && (h = !0), h)) {
            this.replaceRange(t, Bf(l), L.createToken(_));
            const g = Nc.SmartIndenter.findFirstNonWhitespaceColumn(
              d,
              u,
              t,
              this.formatContext.options,
            );
            let E = La(t.text, l, !0, !1);
            for (; E !== l && eu(t.text.charCodeAt(E - 1)); ) E--;
            this.replaceRange(t, Bf(E), i, {
              indentation: g,
              prefix: this.newLineCharacter,
            });
          } else this.replaceRange(t, Bf(l), i, { prefix: `${_a(_)} ` });
        }
      }
      parenthesizeExpression(t, r) {
        this.replaceRange(t, VV(r), L.createParenthesizedExpression(r));
      }
      finishClassesWithNodesInsertedAtStart() {
        this.classesWithNodesInsertedAtStart.forEach(
          ({ node: t, sourceFile: r }) => {
            const [i, o] = Kot(t, r);
            if (i !== void 0 && o !== void 0) {
              const s = cX(t).length === 0,
                l = Gf(i, o, r);
              (s && l && i !== o - 1 && this.deleteRange(r, Bf(i, o - 1)),
                l && this.insertText(r, o - 1, this.newLineCharacter));
            }
          },
        );
      }
      finishDeleteDeclarations() {
        const t = new Set();
        for (const { sourceFile: r, node: i } of this.deletedNodes)
          this.deletedNodes.some((o) => o.sourceFile === r && Fle(o.node, i)) ||
            (Mo(i)
              ? this.deleteRange(r, jV(r, i))
              : Ufe.deleteDeclaration(this, t, r, i));
        t.forEach((r) => {
          const i = r.getSourceFile(),
            o = Nc.SmartIndenter.getContainingList(r, i);
          if (r !== Ba(o)) return;
          const s = gl(o, (l) => !t.has(l), o.length - 2);
          s !== -1 &&
            this.deleteRange(i, { pos: o[s].end, end: Vfe(i, o[s + 1]) });
        });
      }
      getChanges(t) {
        (this.finishDeleteDeclarations(),
          this.finishClassesWithNodesInsertedAtStart());
        const r = dX.getTextChangesFromChanges(
          this.changes,
          this.newLineCharacter,
          this.formatContext,
          t,
        );
        return (
          this.newFileChanges &&
            this.newFileChanges.forEach((i, o) => {
              r.push(
                dX.newFileChanges(
                  o,
                  i,
                  this.newLineCharacter,
                  this.formatContext,
                ),
              );
            }),
          r
        );
      }
      createNewFile(t, r, i) {
        this.insertStatementsInNewFile(r, i, t);
      }
    };
    function Hot(e) {
      if (e.kind !== 220) return e;
      const t = e.parent.kind === 173 ? e.parent : e.parent.parent;
      return ((t.jsDoc = e.jsDoc), t);
    }
    function qot(e, t) {
      if (e.kind === t.kind)
        switch (e.kind) {
          case 342: {
            const r = e,
              i = t;
            return He(r.name) &&
              He(i.name) &&
              r.name.escapedText === i.name.escapedText
              ? L.createJSDocParameterTag(
                  void 0,
                  i.name,
                  !1,
                  i.typeExpression,
                  i.isNameFirst,
                  r.comment,
                )
              : void 0;
          }
          case 343:
            return L.createJSDocReturnTag(void 0, t.typeExpression, e.comment);
          case 345:
            return L.createJSDocTypeTag(void 0, t.typeExpression, e.comment);
        }
    }
    function Vfe(e, t) {
      return La(e.text, U1(e, t, { leadingTriviaOption: 1 }), !1, !0);
    }
    function Jot(e, t, r, i) {
      const o = Vfe(e, i);
      if (r === void 0 || Gf(xx(e, t, {}), o, e)) return o;
      const s = Bc(i.getStart(e), e);
      if (lX(t, s)) {
        const l = Bc(t.getStart(e), e);
        if (lX(r, l)) {
          const u = La(e.text, s.getEnd(), !0, !0);
          if (Gf(l.getStart(e), s.getStart(e), e))
            return eu(e.text.charCodeAt(u - 1)) ? u - 1 : u;
          if (eu(e.text.charCodeAt(u))) return u;
        }
      }
      return o;
    }
    function Kot(e, t) {
      const r = Es(e, 19, t),
        i = Es(e, 20, t);
      return [r?.end, i?.end];
    }
    function cX(e) {
      return Wa(e) ? e.properties : e.members;
    }
    var dX;
    ((e) => {
      function t(u, d, _, h) {
        return Ui(
          IR(u, (g) => g.sourceFile.path),
          (g) => {
            const E = g[0].sourceFile,
              A = xp(
                g,
                (N, P) =>
                  N.range.pos - P.range.pos || N.range.end - P.range.end,
              );
            for (let N = 0; N < A.length - 1; N++)
              C.assert(
                A[N].range.end <= A[N + 1].range.pos,
                "Changes overlap",
                () =>
                  `${JSON.stringify(A[N].range)} and ${JSON.stringify(A[N + 1].range)}`,
              );
            const R = Ui(A, (N) => {
              const P = _v(N.range),
                k =
                  N.kind === 1
                    ? (Wn(yl(N.node)) ?? N.sourceFile)
                    : N.kind === 2
                      ? (Wn(yl(N.nodes[0])) ?? N.sourceFile)
                      : N.sourceFile,
                W = o(N, k, E, d, _, h);
              if (!(P.length === W.length && vce(k.text, W, P.start)))
                return SO(P, W);
            });
            return R.length > 0
              ? { fileName: E.fileName, textChanges: R }
              : void 0;
          },
        );
      }
      e.getTextChangesFromChanges = t;
      function r(u, d, _, h) {
        const g = i(H6(u), d, _, h);
        return { fileName: u, textChanges: [SO(Id(0, 0), g)], isNewFile: !0 };
      }
      e.newFileChanges = r;
      function i(u, d, _, h) {
        const g = Ki(d, (R) =>
            R.statements.map((N) => (N === 4 ? "" : l(N, R.oldFile, _).text)),
          ).join(_),
          E = tx(
            "any file name",
            g,
            { languageVersion: 99, jsDocParsingMode: 1 },
            !0,
            u,
          ),
          A = Nc.formatDocument(E, h);
        return jfe(g, A) + _;
      }
      e.newFileChangesWorker = i;
      function o(u, d, _, h, g, E) {
        var A;
        if (u.kind === 0) return "";
        if (u.kind === 3) return u.text;
        const {
            options: R = {},
            range: { pos: N },
          } = u,
          P = (O) => s(O, d, _, N, R, h, g, E),
          k =
            u.kind === 2
              ? u.nodes
                  .map((O) => RR(P(O), h))
                  .join(((A = u.options) == null ? void 0 : A.joiner) || h)
              : P(u.node),
          W =
            R.indentation !== void 0 || Em(N, d) === N
              ? k
              : k.replace(/^\s+/, "");
        return (
          (R.prefix || "") + W + (!R.suffix || el(W, R.suffix) ? "" : R.suffix)
        );
      }
      function s(u, d, _, h, { indentation: g, prefix: E, delta: A }, R, N, P) {
        const { node: k, text: W } = l(u, d, R);
        P && P(k, W);
        const O = z7(N, d),
          G =
            g !== void 0
              ? g
              : Nc.SmartIndenter.getIndentation(
                  h,
                  _,
                  O,
                  E === R || Em(h, d) === h,
                );
        A === void 0 &&
          (A =
            (Nc.SmartIndenter.shouldIndentChildNode(O, u) && O.indentSize) ||
            0);
        const j = {
            text: W,
            getLineAndCharacterOfPosition(Z) {
              return ca(this, Z);
            },
          },
          J = Nc.formatNodeGivenIndentation(k, j, d.languageVariant, G, A, {
            ...N,
            options: O,
          });
        return jfe(W, J);
      }
      function l(u, d, _) {
        const h = awe(_),
          g = kO(_);
        return (
          zb(
            {
              newLine: g,
              neverAsciiEscape: !0,
              preserveSourceNewlines: !0,
              terminateUnterminatedLiterals: !0,
            },
            h,
          ).writeNode(4, u, d, h),
          { text: h.getText(), node: uX(u) }
        );
      }
      e.getNonformattedText = l;
    })(dX || (dX = {}));
    function jfe(e, t) {
      for (let r = t.length - 1; r >= 0; r--) {
        const { span: i, newText: o } = t[r];
        e = `${e.substring(0, i.start)}${o}${e.substring(Dl(i))}`;
      }
      return e;
    }
    function Xot(e) {
      return La(e, 0) === e.length;
    }
    var Yot = {
      ...Qw,
      factory: sw(Qw.factory.flags | 1, Qw.factory.baseFactory),
    };
    function uX(e) {
      const t = kn(e, uX, Yot, $ot, uX),
        r = Os(t) ? t : Object.create(t);
      return (uh(r, twe(e), nwe(e)), r);
    }
    function $ot(e, t, r, i, o) {
      const s = Xn(e, t, r, i, o);
      if (!s) return s;
      C.assert(e);
      const l = s === e ? L.createNodeArray(s.slice(0)) : s;
      return (uh(l, twe(e), nwe(e)), l);
    }
    function awe(e) {
      let t = 0;
      const r = kk(e),
        i = (X) => {
          X && zfe(X, t);
        },
        o = (X) => {
          X && Bfe(X, t);
        },
        s = (X) => {
          X && zfe(X, t);
        },
        l = (X) => {
          X && Bfe(X, t);
        },
        u = (X) => {
          X && zfe(X, t);
        },
        d = (X) => {
          X && Bfe(X, t);
        };
      function _(X, Ce) {
        if (Ce || !Xot(X)) {
          t = r.getTextPos();
          let Je = 0;
          for (; sg(X.charCodeAt(X.length - Je - 1)); ) Je++;
          t -= Je;
        }
      }
      function h(X) {
        (r.write(X), _(X, !1));
      }
      function g(X) {
        r.writeComment(X);
      }
      function E(X) {
        (r.writeKeyword(X), _(X, !1));
      }
      function A(X) {
        (r.writeOperator(X), _(X, !1));
      }
      function R(X) {
        (r.writePunctuation(X), _(X, !1));
      }
      function N(X) {
        (r.writeTrailingSemicolon(X), _(X, !1));
      }
      function P(X) {
        (r.writeParameter(X), _(X, !1));
      }
      function k(X) {
        (r.writeProperty(X), _(X, !1));
      }
      function W(X) {
        (r.writeSpace(X), _(X, !1));
      }
      function O(X) {
        (r.writeStringLiteral(X), _(X, !1));
      }
      function G(X, Ce) {
        (r.writeSymbol(X, Ce), _(X, !1));
      }
      function j(X) {
        r.writeLine(X);
      }
      function J() {
        r.increaseIndent();
      }
      function Z() {
        r.decreaseIndent();
      }
      function q() {
        return r.getText();
      }
      function ye(X) {
        (r.rawWrite(X), _(X, !1));
      }
      function ie(X) {
        (r.writeLiteral(X), _(X, !0));
      }
      function K() {
        return r.getTextPos();
      }
      function pe() {
        return r.getLine();
      }
      function de() {
        return r.getColumn();
      }
      function fe() {
        return r.getIndent();
      }
      function ve() {
        return r.isAtStartOfLine();
      }
      function xe() {
        (r.clear(), (t = 0));
      }
      return {
        onBeforeEmitNode: i,
        onAfterEmitNode: o,
        onBeforeEmitNodeArray: s,
        onAfterEmitNodeArray: l,
        onBeforeEmitToken: u,
        onAfterEmitToken: d,
        write: h,
        writeComment: g,
        writeKeyword: E,
        writeOperator: A,
        writePunctuation: R,
        writeTrailingSemicolon: N,
        writeParameter: P,
        writeProperty: k,
        writeSpace: W,
        writeStringLiteral: O,
        writeSymbol: G,
        writeLine: j,
        increaseIndent: J,
        decreaseIndent: Z,
        getText: q,
        rawWrite: ye,
        writeLiteral: ie,
        getTextPos: K,
        getLine: pe,
        getColumn: de,
        getIndent: fe,
        isAtStartOfLine: ve,
        hasTrailingComment: () => r.hasTrailingComment(),
        hasTrailingWhitespace: () => r.hasTrailingWhitespace(),
        clear: xe,
      };
    }
    function Qot(e) {
      let t;
      for (const _ of e.statements)
        if (Uh(_)) t = _;
        else break;
      let r = 0;
      const i = e.text;
      if (t) return ((r = t.end), d(), r);
      const o = sF(i);
      o !== void 0 && ((r = o.length), d());
      const s = lg(i, r);
      if (!s) return r;
      let l, u;
      for (const _ of s) {
        if (_.kind === 3) {
          if (wF(i, _.pos)) {
            l = { range: _, pinnedOrTripleSlash: !0 };
            continue;
          }
        } else if (pG(i, _.pos, _.end)) {
          l = { range: _, pinnedOrTripleSlash: !0 };
          continue;
        }
        if (l) {
          if (l.pinnedOrTripleSlash) break;
          const h = e.getLineAndCharacterOfPosition(_.pos).line,
            g = e.getLineAndCharacterOfPosition(l.range.end).line;
          if (h >= g + 2) break;
        }
        if (e.statements.length) {
          u === void 0 &&
            (u = e.getLineAndCharacterOfPosition(
              e.statements[0].getStart(),
            ).line);
          const h = e.getLineAndCharacterOfPosition(_.end).line;
          if (u < h + 2) break;
        }
        l = { range: _, pinnedOrTripleSlash: !1 };
      }
      return (l && ((r = l.range.end), d()), r);
      function d() {
        if (r < i.length) {
          const _ = i.charCodeAt(r);
          eu(_) &&
            (r++, r < i.length && _ === 13 && i.charCodeAt(r) === 10 && r++);
        }
      }
    }
    function swe(e, t) {
      return !mv(e, t) && !px(e, t) && !Oq(e, t) && !Ule(e, t);
    }
    function Zot(e, t) {
      return (
        ((Su(e) || Po(e)) && vF(t) && t.name.kind === 168) || (q2(e) && q2(t))
      );
    }
    var Ufe;
    ((e) => {
      function t(s, l, u, d) {
        switch (d.kind) {
          case 170: {
            const A = d.parent;
            Xs(A) && A.parameters.length === 1 && !Es(A, 21, u)
              ? s.replaceNodeWithText(u, d, "()")
              : cW(s, l, u, d);
            break;
          }
          case 273:
          case 272:
            const _ =
              (u.imports.length && d === $a(u.imports).parent) ||
              d === hn(u.statements, mI);
            vy(s, u, d, { leadingTriviaOption: _ ? 0 : ef(d) ? 2 : 3 });
            break;
          case 209:
            const h = d.parent;
            h.kind === 208 && d !== Ba(h.elements)
              ? vy(s, u, d)
              : cW(s, l, u, d);
            break;
          case 261:
            o(s, l, u, d);
            break;
          case 169:
            cW(s, l, u, d);
            break;
          case 277:
            const E = d.parent;
            E.elements.length === 1 ? i(s, u, E) : cW(s, l, u, d);
            break;
          case 275:
            i(s, u, d);
            break;
          case 27:
            vy(s, u, d, { trailingTriviaOption: 0 });
            break;
          case 100:
            vy(s, u, d, { leadingTriviaOption: 0 });
            break;
          case 264:
          case 263:
            vy(s, u, d, { leadingTriviaOption: ef(d) ? 2 : 3 });
            break;
          default:
            d.parent
              ? Vm(d.parent) && d.parent.name === d
                ? r(s, u, d.parent)
                : Zo(d.parent) && jn(d.parent.arguments, d)
                  ? cW(s, l, u, d)
                  : vy(s, u, d)
              : vy(s, u, d);
        }
      }
      e.deleteDeclaration = t;
      function r(s, l, u) {
        if (!u.namedBindings) vy(s, l, u.parent);
        else {
          const d = u.name.getStart(l),
            _ = Fi(l, u.name.end);
          if (_ && _.kind === 28) {
            const h = La(l.text, _.end, !1, !0);
            s.deleteRange(l, { pos: d, end: h });
          } else vy(s, l, u.name);
        }
      }
      function i(s, l, u) {
        if (u.parent.name) {
          const d = C.checkDefined(Fi(l, u.pos - 1));
          s.deleteRange(l, { pos: d.getStart(l), end: u.end });
        } else {
          const d = VT(u, 273);
          vy(s, l, d);
        }
      }
      function o(s, l, u, d) {
        const { parent: _ } = d;
        if (_.kind === 300) {
          s.deleteNodeRange(u, Es(_, 21, u), Es(_, 22, u));
          return;
        }
        if (_.declarations.length !== 1) {
          cW(s, l, u, d);
          return;
        }
        const h = _.parent;
        switch (h.kind) {
          case 251:
          case 250:
            s.replaceNode(u, d, L.createObjectLiteralExpression());
            break;
          case 249:
            vy(s, u, _);
            break;
          case 244:
            vy(s, u, h, { leadingTriviaOption: ef(h) ? 2 : 3 });
            break;
          default:
            C.assertNever(h);
        }
      }
    })(Ufe || (Ufe = {}));
    function vy(e, t, r, i = { leadingTriviaOption: 1 }) {
      const o = U1(t, r, i),
        s = xx(t, r, i);
      e.deleteRange(t, { pos: o, end: s });
    }
    function cW(e, t, r, i) {
      const o = C.checkDefined(Nc.SmartIndenter.getContainingList(i, r)),
        s = UR(o, i);
      if ((C.assert(s !== -1), o.length === 1)) {
        vy(e, r, i);
        return;
      }
      (C.assert(!t.has(i), "Deleting a node twice"),
        t.add(i),
        e.deleteRange(r, {
          pos: Vfe(r, i),
          end:
            s === o.length - 1 ? xx(r, i, {}) : Jot(r, i, o[s - 1], o[s + 1]),
        }));
    }
    var Nc = {};
    x(Nc, {
      FormattingContext: () => cwe,
      FormattingRequestKind: () => lwe,
      RuleAction: () => dwe,
      RuleFlags: () => uwe,
      SmartIndenter: () => d_,
      anyContext: () => pX,
      createTextRangeWithKind: () => _X,
      formatDocument: () => Uat,
      formatNodeGivenIndentation: () => $at,
      formatOnClosingCurly: () => jat,
      formatOnEnter: () => Bat,
      formatOnOpeningCurly: () => Vat,
      formatOnSemicolon: () => Gat,
      formatSelection: () => Hat,
      getAllRules: () => pwe,
      getFormatContext: () => Pat,
      getFormattingScanner: () => Hfe,
      getIndentationString: () => ome,
      getRangeOfEnclosingComment: () => Wwe,
    });
    var lwe = ((e) => (
        (e[(e.FormatDocument = 0)] = "FormatDocument"),
        (e[(e.FormatSelection = 1)] = "FormatSelection"),
        (e[(e.FormatOnEnter = 2)] = "FormatOnEnter"),
        (e[(e.FormatOnSemicolon = 3)] = "FormatOnSemicolon"),
        (e[(e.FormatOnOpeningCurlyBrace = 4)] = "FormatOnOpeningCurlyBrace"),
        (e[(e.FormatOnClosingCurlyBrace = 5)] = "FormatOnClosingCurlyBrace"),
        e
      ))(lwe || {}),
      cwe = class {
        constructor(e, t, r) {
          ((this.sourceFile = e),
            (this.formattingRequestKind = t),
            (this.options = r));
        }
        updateContext(e, t, r, i, o) {
          ((this.currentTokenSpan = C.checkDefined(e)),
            (this.currentTokenParent = C.checkDefined(t)),
            (this.nextTokenSpan = C.checkDefined(r)),
            (this.nextTokenParent = C.checkDefined(i)),
            (this.contextNode = C.checkDefined(o)),
            (this.contextNodeAllOnSameLine = void 0),
            (this.nextNodeAllOnSameLine = void 0),
            (this.tokensAreOnSameLine = void 0),
            (this.contextNodeBlockIsOnOneLine = void 0),
            (this.nextNodeBlockIsOnOneLine = void 0));
        }
        ContextNodeAllOnSameLine() {
          return (
            this.contextNodeAllOnSameLine === void 0 &&
              (this.contextNodeAllOnSameLine = this.NodeIsOnOneLine(
                this.contextNode,
              )),
            this.contextNodeAllOnSameLine
          );
        }
        NextNodeAllOnSameLine() {
          return (
            this.nextNodeAllOnSameLine === void 0 &&
              (this.nextNodeAllOnSameLine = this.NodeIsOnOneLine(
                this.nextTokenParent,
              )),
            this.nextNodeAllOnSameLine
          );
        }
        TokensAreOnSameLine() {
          if (this.tokensAreOnSameLine === void 0) {
            const e = this.sourceFile.getLineAndCharacterOfPosition(
                this.currentTokenSpan.pos,
              ).line,
              t = this.sourceFile.getLineAndCharacterOfPosition(
                this.nextTokenSpan.pos,
              ).line;
            this.tokensAreOnSameLine = e === t;
          }
          return this.tokensAreOnSameLine;
        }
        ContextNodeBlockIsOnOneLine() {
          return (
            this.contextNodeBlockIsOnOneLine === void 0 &&
              (this.contextNodeBlockIsOnOneLine = this.BlockIsOnOneLine(
                this.contextNode,
              )),
            this.contextNodeBlockIsOnOneLine
          );
        }
        NextNodeBlockIsOnOneLine() {
          return (
            this.nextNodeBlockIsOnOneLine === void 0 &&
              (this.nextNodeBlockIsOnOneLine = this.BlockIsOnOneLine(
                this.nextTokenParent,
              )),
            this.nextNodeBlockIsOnOneLine
          );
        }
        NodeIsOnOneLine(e) {
          const t = this.sourceFile.getLineAndCharacterOfPosition(
              e.getStart(this.sourceFile),
            ).line,
            r = this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;
          return t === r;
        }
        BlockIsOnOneLine(e) {
          const t = Es(e, 19, this.sourceFile),
            r = Es(e, 20, this.sourceFile);
          if (t && r) {
            const i = this.sourceFile.getLineAndCharacterOfPosition(
                t.getEnd(),
              ).line,
              o = this.sourceFile.getLineAndCharacterOfPosition(
                r.getStart(this.sourceFile),
              ).line;
            return i === o;
          }
          return !1;
        }
      },
      eat = cg(99, !1, 0),
      tat = cg(99, !1, 1);
    function Hfe(e, t, r, i, o) {
      const s = t === 1 ? tat : eat;
      (s.setText(e), s.resetTokenState(r));
      let l = !0,
        u,
        d,
        _,
        h,
        g;
      const E = o({
        advance: A,
        readTokenInfo: j,
        readEOFTokenRange: Z,
        isOnToken: q,
        isOnEOF: ye,
        getCurrentLeadingTrivia: () => u,
        lastTrailingTriviaWasNewLine: () => l,
        skipToEndOf: K,
        skipToStartOf: pe,
        getTokenFullStart: () => g?.token.pos ?? s.getTokenStart(),
        getStartPos: () => g?.token.pos ?? s.getTokenStart(),
      });
      return ((g = void 0), s.setText(void 0), E);
      function A() {
        ((g = void 0),
          s.getTokenFullStart() !== r
            ? (l = !!d && Ba(d).kind === 4)
            : s.scan(),
          (u = void 0),
          (d = void 0));
        let fe = s.getTokenFullStart();
        for (; fe < i; ) {
          const ve = s.getToken();
          if (!rD(ve)) break;
          s.scan();
          const xe = { pos: fe, end: s.getTokenFullStart(), kind: ve };
          ((fe = s.getTokenFullStart()), (u = Bn(u, xe)));
        }
        _ = s.getTokenFullStart();
      }
      function R(de) {
        switch (de.kind) {
          case 34:
          case 72:
          case 73:
          case 50:
          case 49:
            return !0;
        }
        return !1;
      }
      function N(de) {
        if (de.parent)
          switch (de.parent.kind) {
            case 292:
            case 287:
            case 288:
            case 286:
              return ep(de.kind) || de.kind === 80;
          }
        return !1;
      }
      function P(de) {
        return BI(de) || (r_(de) && g?.token.kind === 12);
      }
      function k(de) {
        return de.kind === 14;
      }
      function W(de) {
        return de.kind === 17 || de.kind === 18;
      }
      function O(de) {
        return de.parent && i_(de.parent) && de.parent.initializer === de;
      }
      function G(de) {
        return de === 44 || de === 69;
      }
      function j(de) {
        C.assert(q());
        const fe = R(de)
          ? 1
          : k(de)
            ? 2
            : W(de)
              ? 3
              : N(de)
                ? 4
                : P(de)
                  ? 5
                  : O(de)
                    ? 6
                    : 0;
        if (g && fe === h) return ie(g, de);
        s.getTokenFullStart() !== _ &&
          (C.assert(g !== void 0), s.resetTokenState(_), s.scan());
        let ve = J(de, fe);
        const xe = _X(s.getTokenFullStart(), s.getTokenEnd(), ve);
        for (
          d && (d = void 0);
          s.getTokenFullStart() < i && ((ve = s.scan()), !!rD(ve));
        ) {
          const X = _X(s.getTokenFullStart(), s.getTokenEnd(), ve);
          if ((d || (d = []), d.push(X), ve === 4)) {
            s.scan();
            break;
          }
        }
        return (
          (g = { leadingTrivia: u, trailingTrivia: d, token: xe }),
          ie(g, de)
        );
      }
      function J(de, fe) {
        const ve = s.getToken();
        switch (((h = 0), fe)) {
          case 1:
            if (ve === 32) {
              h = 1;
              const xe = s.reScanGreaterToken();
              return (C.assert(de.kind === xe), xe);
            }
            break;
          case 2:
            if (G(ve)) {
              h = 2;
              const xe = s.reScanSlashToken();
              return (C.assert(de.kind === xe), xe);
            }
            break;
          case 3:
            if (ve === 20) return ((h = 3), s.reScanTemplateToken(!1));
            break;
          case 4:
            return ((h = 4), s.scanJsxIdentifier());
          case 5:
            return ((h = 5), s.reScanJsxToken(!1));
          case 6:
            return ((h = 6), s.reScanJsxAttributeValue());
          case 0:
            break;
          default:
            C.assertNever(fe);
        }
        return ve;
      }
      function Z() {
        return (C.assert(ye()), _X(s.getTokenFullStart(), s.getTokenEnd(), 1));
      }
      function q() {
        const de = g ? g.token.kind : s.getToken();
        return de !== 1 && !rD(de);
      }
      function ye() {
        return (g ? g.token.kind : s.getToken()) === 1;
      }
      function ie(de, fe) {
        return (
          oI(fe) && de.token.kind !== fe.kind && (de.token.kind = fe.kind),
          de
        );
      }
      function K(de) {
        (s.resetTokenState(de.end),
          (_ = s.getTokenFullStart()),
          (h = void 0),
          (g = void 0),
          (l = !1),
          (u = void 0),
          (d = void 0));
      }
      function pe(de) {
        (s.resetTokenState(de.pos),
          (_ = s.getTokenFullStart()),
          (h = void 0),
          (g = void 0),
          (l = !1),
          (u = void 0),
          (d = void 0));
      }
    }
    var pX = ae,
      dwe = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.StopProcessingSpaceActions = 1)] = "StopProcessingSpaceActions"),
        (e[(e.StopProcessingTokenActions = 2)] = "StopProcessingTokenActions"),
        (e[(e.InsertSpace = 4)] = "InsertSpace"),
        (e[(e.InsertNewLine = 8)] = "InsertNewLine"),
        (e[(e.DeleteSpace = 16)] = "DeleteSpace"),
        (e[(e.DeleteToken = 32)] = "DeleteToken"),
        (e[(e.InsertTrailingSemicolon = 64)] = "InsertTrailingSemicolon"),
        (e[(e.StopAction = 3)] = "StopAction"),
        (e[(e.ModifySpaceAction = 28)] = "ModifySpaceAction"),
        (e[(e.ModifyTokenAction = 96)] = "ModifyTokenAction"),
        e
      ))(dwe || {}),
      uwe = ((e) => (
        (e[(e.None = 0)] = "None"),
        (e[(e.CanDeleteNewLines = 1)] = "CanDeleteNewLines"),
        e
      ))(uwe || {});
    function pwe() {
      const e = [];
      for (let J = 0; J <= 166; J++) J !== 1 && e.push(J);
      function t(...J) {
        return {
          tokens: e.filter((Z) => !J.some((q) => q === Z)),
          isSpecific: !1,
        };
      }
      const r = { tokens: e, isSpecific: !1 },
        i = YP([...e, 3]),
        o = YP([...e, 1]),
        s = mwe(83, 166),
        l = mwe(30, 79),
        u = [103, 104, 165, 130, 142, 152],
        d = [46, 47, 55, 54],
        _ = [9, 10, 80, 21, 23, 19, 110, 105],
        h = [80, 21, 110, 105],
        g = [80, 22, 24, 105],
        E = [80, 21, 110, 105],
        A = [80, 22, 24, 105],
        R = [2, 3],
        N = [80, ...Hq],
        P = i,
        k = YP([80, 32, 3, 86, 95, 102]),
        W = YP([22, 3, 92, 113, 98, 93, 85]),
        O = [
          oi("IgnoreBeforeComment", r, R, pX, 1),
          oi("IgnoreAfterLineComment", 2, r, pX, 1),
          oi("NotSpaceBeforeColon", r, 59, [no, Cz, gwe], 16),
          oi("SpaceAfterColon", 59, r, [no, Cz, yat], 4),
          oi("NoSpaceBeforeQuestionMark", r, 58, [no, Cz, gwe], 16),
          oi(
            "SpaceAfterQuestionMarkInConditionalOperator",
            58,
            r,
            [no, oat],
            4,
          ),
          oi("NoSpaceAfterQuestionMark", 58, r, [no, iat], 16),
          oi("NoSpaceBeforeDot", r, [25, 29], [no, Mat], 16),
          oi("NoSpaceAfterDot", [25, 29], r, [no], 16),
          oi("NoSpaceBetweenImportParenInImportType", 102, 21, [no, _at], 16),
          oi("NoSpaceAfterUnaryPrefixOperator", d, _, [no, Cz], 16),
          oi("NoSpaceAfterUnaryPreincrementOperator", 46, h, [no], 16),
          oi("NoSpaceAfterUnaryPredecrementOperator", 47, E, [no], 16),
          oi("NoSpaceBeforeUnaryPostincrementOperator", g, 46, [no, Lwe], 16),
          oi("NoSpaceBeforeUnaryPostdecrementOperator", A, 47, [no, Lwe], 16),
          oi("SpaceAfterPostincrementWhenFollowedByAdd", 46, 40, [no, Ub], 4),
          oi("SpaceAfterAddWhenFollowedByUnaryPlus", 40, 40, [no, Ub], 4),
          oi("SpaceAfterAddWhenFollowedByPreincrement", 40, 46, [no, Ub], 4),
          oi(
            "SpaceAfterPostdecrementWhenFollowedBySubtract",
            47,
            41,
            [no, Ub],
            4,
          ),
          oi("SpaceAfterSubtractWhenFollowedByUnaryMinus", 41, 41, [no, Ub], 4),
          oi(
            "SpaceAfterSubtractWhenFollowedByPredecrement",
            41,
            47,
            [no, Ub],
            4,
          ),
          oi("NoSpaceAfterCloseBrace", 20, [28, 27], [no], 16),
          oi("NewLineBeforeCloseBraceInBlockContext", i, 20, [vwe], 8),
          oi("SpaceAfterCloseBrace", 20, t(22), [no, lat], 4),
          oi("SpaceBetweenCloseBraceAndElse", 20, 93, [no], 4),
          oi("SpaceBetweenCloseBraceAndWhile", 20, 117, [no], 4),
          oi("NoSpaceBetweenEmptyBraceBrackets", 19, 20, [no, Iwe], 16),
          oi("SpaceAfterConditionalClosingParen", 22, 23, [Nz], 4),
          oi("NoSpaceBetweenFunctionKeywordAndStar", 100, 42, [Swe], 16),
          oi("SpaceAfterStarInGeneratorDeclaration", 42, 80, [Swe], 4),
          oi("SpaceAfterFunctionInFuncDecl", 100, r, [H1], 4),
          oi("NewLineAfterOpenBraceInBlockContext", 19, r, [vwe], 8),
          oi("SpaceAfterGetSetInMember", [139, 153], 80, [H1], 4),
          oi("NoSpaceBetweenYieldKeywordAndStar", 127, 42, [no, Pwe], 16),
          oi(
            "SpaceBetweenYieldOrYieldStarAndOperand",
            [127, 42],
            r,
            [no, Pwe],
            4,
          ),
          oi("NoSpaceBetweenReturnAndSemicolon", 107, 27, [no], 16),
          oi(
            "SpaceAfterCertainKeywords",
            [115, 111, 105, 91, 107, 114, 135],
            r,
            [no],
            4,
          ),
          oi(
            "SpaceAfterLetConstInVariableDeclaration",
            [121, 87],
            r,
            [no, Tat],
            4,
          ),
          oi("NoSpaceBeforeOpenParenInFuncCall", r, 21, [no, uat, pat], 16),
          oi("SpaceBeforeBinaryKeywordOperator", r, u, [no, Ub], 4),
          oi("SpaceAfterBinaryKeywordOperator", u, r, [no, Ub], 4),
          oi("SpaceAfterVoidOperator", 116, r, [no, xat], 4),
          oi("SpaceBetweenAsyncAndOpenParen", 134, 21, [hat, no], 4),
          oi("SpaceBetweenAsyncAndFunctionKeyword", 134, [100, 80], [no], 4),
          oi(
            "NoSpaceBetweenTagAndTemplateString",
            [80, 22],
            [15, 16],
            [no],
            16,
          ),
          oi("SpaceBeforeJsxAttribute", r, 80, [gat, no], 4),
          oi("SpaceBeforeSlashInJsxOpeningElement", r, 44, [Cwe, no], 4),
          oi(
            "NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",
            44,
            32,
            [Cwe, no],
            16,
          ),
          oi("NoSpaceBeforeEqualInJsxAttribute", r, 64, [Rwe, no], 16),
          oi("NoSpaceAfterEqualInJsxAttribute", 64, r, [Rwe, no], 16),
          oi("NoSpaceBeforeJsxNamespaceColon", 80, 59, [Dwe], 16),
          oi("NoSpaceAfterJsxNamespaceColon", 59, 80, [Dwe], 16),
          oi("NoSpaceAfterModuleImport", [144, 149], 21, [no], 16),
          oi(
            "SpaceAfterCertainTypeScriptKeywords",
            [
              128, 129, 86, 138, 90, 94, 95, 96, 139, 119, 102, 120, 144, 145,
              123, 125, 124, 148, 153, 126, 156, 161, 143, 140,
            ],
            r,
            [no],
            4,
          ),
          oi(
            "SpaceBeforeCertainTypeScriptKeywords",
            r,
            [96, 119, 161],
            [no],
            4,
          ),
          oi("SpaceAfterModuleName", 11, 19, [Sat], 4),
          oi("SpaceBeforeArrow", r, 39, [no], 4),
          oi("SpaceAfterArrow", 39, r, [no], 4),
          oi("NoSpaceAfterEllipsis", 26, 80, [no], 16),
          oi("NoSpaceAfterOptionalParameters", 58, [22, 28], [no, Cz], 16),
          oi(
            "NoSpaceBetweenEmptyInterfaceBraceBrackets",
            19,
            20,
            [no, Eat],
            16,
          ),
          oi("NoSpaceBeforeOpenAngularBracket", N, 30, [no, Mz], 16),
          oi("NoSpaceBetweenCloseParenAndAngularBracket", 22, 30, [no, Mz], 16),
          oi("NoSpaceAfterOpenAngularBracket", 30, r, [no, Mz], 16),
          oi("NoSpaceBeforeCloseAngularBracket", r, 32, [no, Mz], 16),
          oi(
            "NoSpaceAfterCloseAngularBracket",
            32,
            [21, 23, 32, 28],
            [no, Mz, sat, Iat],
            16,
          ),
          oi("SpaceBeforeAt", [22, 80], 60, [no], 4),
          oi("NoSpaceAfterAt", 60, r, [no], 16),
          oi(
            "SpaceAfterDecorator",
            r,
            [128, 80, 95, 90, 86, 126, 125, 123, 124, 139, 153, 23, 42],
            [bat],
            4,
          ),
          oi("NoSpaceBeforeNonNullAssertionOperator", r, 54, [no, Rat], 16),
          oi(
            "NoSpaceAfterNewKeywordOnConstructorSignature",
            105,
            21,
            [no, Aat],
            16,
          ),
          oi("SpaceLessThanAndNonJSXTypeAnnotation", 30, 30, [no], 4),
        ],
        G = [
          oi(
            "SpaceAfterConstructor",
            137,
            21,
            [vf("insertSpaceAfterConstructor"), no],
            4,
          ),
          oi(
            "NoSpaceAfterConstructor",
            137,
            21,
            [c_("insertSpaceAfterConstructor"), no],
            16,
          ),
          oi(
            "SpaceAfterComma",
            28,
            r,
            [vf("insertSpaceAfterCommaDelimiter"), no, Qfe, fat, mat],
            4,
          ),
          oi(
            "NoSpaceAfterComma",
            28,
            r,
            [c_("insertSpaceAfterCommaDelimiter"), no, Qfe],
            16,
          ),
          oi(
            "SpaceAfterAnonymousFunctionKeyword",
            [100, 42],
            21,
            [vf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"), H1],
            4,
          ),
          oi(
            "NoSpaceAfterAnonymousFunctionKeyword",
            [100, 42],
            21,
            [c_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"), H1],
            16,
          ),
          oi(
            "SpaceAfterKeywordInControl",
            s,
            21,
            [vf("insertSpaceAfterKeywordsInControlFlowStatements"), Nz],
            4,
          ),
          oi(
            "NoSpaceAfterKeywordInControl",
            s,
            21,
            [c_("insertSpaceAfterKeywordsInControlFlowStatements"), Nz],
            16,
          ),
          oi(
            "SpaceAfterOpenParen",
            21,
            r,
            [
              vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),
              no,
            ],
            4,
          ),
          oi(
            "SpaceBeforeCloseParen",
            r,
            22,
            [
              vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),
              no,
            ],
            4,
          ),
          oi(
            "SpaceBetweenOpenParens",
            21,
            21,
            [
              vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),
              no,
            ],
            4,
          ),
          oi("NoSpaceBetweenParens", 21, 22, [no], 16),
          oi(
            "NoSpaceAfterOpenParen",
            21,
            r,
            [
              c_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),
              no,
            ],
            16,
          ),
          oi(
            "NoSpaceBeforeCloseParen",
            r,
            22,
            [
              c_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),
              no,
            ],
            16,
          ),
          oi(
            "SpaceAfterOpenBracket",
            23,
            r,
            [vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), no],
            4,
          ),
          oi(
            "SpaceBeforeCloseBracket",
            r,
            24,
            [vf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), no],
            4,
          ),
          oi("NoSpaceBetweenBrackets", 23, 24, [no], 16),
          oi(
            "NoSpaceAfterOpenBracket",
            23,
            r,
            [c_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), no],
            16,
          ),
          oi(
            "NoSpaceBeforeCloseBracket",
            r,
            24,
            [c_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"), no],
            16,
          ),
          oi(
            "SpaceAfterOpenBrace",
            19,
            r,
            [_we("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), ywe],
            4,
          ),
          oi(
            "SpaceBeforeCloseBrace",
            r,
            20,
            [_we("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), ywe],
            4,
          ),
          oi("NoSpaceBetweenEmptyBraceBrackets", 19, 20, [no, Iwe], 16),
          oi(
            "NoSpaceAfterOpenBrace",
            19,
            r,
            [qfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), no],
            16,
          ),
          oi(
            "NoSpaceBeforeCloseBrace",
            r,
            20,
            [qfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"), no],
            16,
          ),
          oi(
            "SpaceBetweenEmptyBraceBrackets",
            19,
            20,
            [vf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],
            4,
          ),
          oi(
            "NoSpaceBetweenEmptyBraceBrackets",
            19,
            20,
            [qfe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"), no],
            16,
          ),
          oi(
            "SpaceAfterTemplateHeadAndMiddle",
            [16, 17],
            r,
            [
              vf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),
              xwe,
            ],
            4,
            1,
          ),
          oi(
            "SpaceBeforeTemplateMiddleAndTail",
            r,
            [17, 18],
            [
              vf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),
              no,
            ],
            4,
          ),
          oi(
            "NoSpaceAfterTemplateHeadAndMiddle",
            [16, 17],
            r,
            [
              c_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),
              xwe,
            ],
            16,
            1,
          ),
          oi(
            "NoSpaceBeforeTemplateMiddleAndTail",
            r,
            [17, 18],
            [
              c_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),
              no,
            ],
            16,
          ),
          oi(
            "SpaceAfterOpenBraceInJsxExpression",
            19,
            r,
            [
              vf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),
              no,
              mX,
            ],
            4,
          ),
          oi(
            "SpaceBeforeCloseBraceInJsxExpression",
            r,
            20,
            [
              vf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),
              no,
              mX,
            ],
            4,
          ),
          oi(
            "NoSpaceAfterOpenBraceInJsxExpression",
            19,
            r,
            [
              c_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),
              no,
              mX,
            ],
            16,
          ),
          oi(
            "NoSpaceBeforeCloseBraceInJsxExpression",
            r,
            20,
            [
              c_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),
              no,
              mX,
            ],
            16,
          ),
          oi(
            "SpaceAfterSemicolonInFor",
            27,
            r,
            [vf("insertSpaceAfterSemicolonInForStatements"), no, Kfe],
            4,
          ),
          oi(
            "NoSpaceAfterSemicolonInFor",
            27,
            r,
            [c_("insertSpaceAfterSemicolonInForStatements"), no, Kfe],
            16,
          ),
          oi(
            "SpaceBeforeBinaryOperator",
            r,
            l,
            [vf("insertSpaceBeforeAndAfterBinaryOperators"), no, Ub],
            4,
          ),
          oi(
            "SpaceAfterBinaryOperator",
            l,
            r,
            [vf("insertSpaceBeforeAndAfterBinaryOperators"), no, Ub],
            4,
          ),
          oi(
            "NoSpaceBeforeBinaryOperator",
            r,
            l,
            [c_("insertSpaceBeforeAndAfterBinaryOperators"), no, Ub],
            16,
          ),
          oi(
            "NoSpaceAfterBinaryOperator",
            l,
            r,
            [c_("insertSpaceBeforeAndAfterBinaryOperators"), no, Ub],
            16,
          ),
          oi(
            "SpaceBeforeOpenParenInFuncDecl",
            r,
            21,
            [vf("insertSpaceBeforeFunctionParenthesis"), no, H1],
            4,
          ),
          oi(
            "NoSpaceBeforeOpenParenInFuncDecl",
            r,
            21,
            [c_("insertSpaceBeforeFunctionParenthesis"), no, H1],
            16,
          ),
          oi(
            "NewLineBeforeOpenBraceInControl",
            W,
            19,
            [vf("placeOpenBraceOnNewLineForControlBlocks"), Nz, $fe],
            8,
            1,
          ),
          oi(
            "NewLineBeforeOpenBraceInFunction",
            P,
            19,
            [vf("placeOpenBraceOnNewLineForFunctions"), H1, $fe],
            8,
            1,
          ),
          oi(
            "NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",
            k,
            19,
            [vf("placeOpenBraceOnNewLineForFunctions"), Ewe, $fe],
            8,
            1,
          ),
          oi(
            "SpaceAfterTypeAssertion",
            32,
            r,
            [vf("insertSpaceAfterTypeAssertion"), no, eme],
            4,
          ),
          oi(
            "NoSpaceAfterTypeAssertion",
            32,
            r,
            [c_("insertSpaceAfterTypeAssertion"), no, eme],
            16,
          ),
          oi(
            "SpaceBeforeTypeAnnotation",
            r,
            [58, 59],
            [vf("insertSpaceBeforeTypeAnnotation"), no, Xfe],
            4,
          ),
          oi(
            "NoSpaceBeforeTypeAnnotation",
            r,
            [58, 59],
            [c_("insertSpaceBeforeTypeAnnotation"), no, Xfe],
            16,
          ),
          oi(
            "NoOptionalSemicolon",
            27,
            o,
            [hwe("semicolons", "remove"), Cat],
            32,
          ),
          oi("OptionalSemicolon", r, o, [hwe("semicolons", "insert"), Nat], 64),
        ],
        j = [
          oi("NoSpaceBeforeSemicolon", r, 27, [no], 16),
          oi(
            "SpaceBeforeOpenBraceInControl",
            W,
            19,
            [Jfe("placeOpenBraceOnNewLineForControlBlocks"), Nz, Zfe, Yfe],
            4,
            1,
          ),
          oi(
            "SpaceBeforeOpenBraceInFunction",
            P,
            19,
            [Jfe("placeOpenBraceOnNewLineForFunctions"), H1, fX, Zfe, Yfe],
            4,
            1,
          ),
          oi(
            "SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",
            k,
            19,
            [Jfe("placeOpenBraceOnNewLineForFunctions"), Ewe, Zfe, Yfe],
            4,
            1,
          ),
          oi("NoSpaceBeforeComma", r, 28, [no], 16),
          oi("NoSpaceBeforeOpenBracket", t(134, 84), 23, [no], 16),
          oi("NoSpaceAfterCloseBracket", 24, r, [no, vat], 16),
          oi("SpaceAfterSemicolon", 27, r, [no], 4),
          oi("SpaceBetweenForAndAwaitKeyword", 99, 135, [no], 4),
          oi("SpaceBetweenDotDotDotAndTypeName", 26, N, [no], 16),
          oi("SpaceBetweenStatements", [22, 92, 93, 84], r, [no, Qfe, nat], 4),
          oi("SpaceAfterTryCatchFinally", [113, 85, 98], 19, [no], 4),
        ];
      return [...O, ...G, ...j];
    }
    function oi(e, t, r, i, o, s = 0) {
      return {
        leftTokenRange: fwe(t),
        rightTokenRange: fwe(r),
        rule: { debugName: e, context: i, action: o, flags: s },
      };
    }
    function YP(e) {
      return { tokens: e, isSpecific: !0 };
    }
    function fwe(e) {
      return typeof e == "number" ? YP([e]) : Mo(e) ? YP(e) : e;
    }
    function mwe(e, t, r = []) {
      const i = [];
      for (let o = e; o <= t; o++) jn(r, o) || i.push(o);
      return YP(i);
    }
    function hwe(e, t) {
      return (r) => r.options && r.options[e] === t;
    }
    function vf(e) {
      return (t) => t.options && Rs(t.options, e) && !!t.options[e];
    }
    function qfe(e) {
      return (t) => t.options && Rs(t.options, e) && !t.options[e];
    }
    function c_(e) {
      return (t) => !t.options || !Rs(t.options, e) || !t.options[e];
    }
    function Jfe(e) {
      return (t) =>
        !t.options ||
        !Rs(t.options, e) ||
        !t.options[e] ||
        t.TokensAreOnSameLine();
    }
    function _we(e) {
      return (t) => !t.options || !Rs(t.options, e) || !!t.options[e];
    }
    function Kfe(e) {
      return e.contextNode.kind === 249;
    }
    function nat(e) {
      return !Kfe(e);
    }
    function Ub(e) {
      switch (e.contextNode.kind) {
        case 227:
          return e.contextNode.operatorToken.kind !== 28;
        case 228:
        case 195:
        case 235:
        case 282:
        case 277:
        case 183:
        case 193:
        case 194:
        case 239:
          return !0;
        case 209:
        case 266:
        case 272:
        case 278:
        case 261:
        case 170:
        case 307:
        case 173:
        case 172:
          return e.currentTokenSpan.kind === 64 || e.nextTokenSpan.kind === 64;
        case 250:
        case 169:
          return (
            e.currentTokenSpan.kind === 103 ||
            e.nextTokenSpan.kind === 103 ||
            e.currentTokenSpan.kind === 64 ||
            e.nextTokenSpan.kind === 64
          );
        case 251:
          return (
            e.currentTokenSpan.kind === 165 || e.nextTokenSpan.kind === 165
          );
      }
      return !1;
    }
    function Cz(e) {
      return !Ub(e);
    }
    function gwe(e) {
      return !Xfe(e);
    }
    function Xfe(e) {
      const t = e.contextNode.kind;
      return t === 173 || t === 172 || t === 170 || t === 261 || aI(t);
    }
    function rat(e) {
      return Po(e.contextNode) && e.contextNode.questionToken;
    }
    function iat(e) {
      return !rat(e);
    }
    function oat(e) {
      return e.contextNode.kind === 228 || e.contextNode.kind === 195;
    }
    function Yfe(e) {
      return e.TokensAreOnSameLine() || fX(e);
    }
    function ywe(e) {
      return e.contextNode.kind === 207 || e.contextNode.kind === 201 || aat(e);
    }
    function $fe(e) {
      return (
        fX(e) && !(e.NextNodeAllOnSameLine() || e.NextNodeBlockIsOnOneLine())
      );
    }
    function vwe(e) {
      return (
        bwe(e) &&
        !(e.ContextNodeAllOnSameLine() || e.ContextNodeBlockIsOnOneLine())
      );
    }
    function aat(e) {
      return (
        bwe(e) &&
        (e.ContextNodeAllOnSameLine() || e.ContextNodeBlockIsOnOneLine())
      );
    }
    function bwe(e) {
      return Twe(e.contextNode);
    }
    function fX(e) {
      return Twe(e.nextTokenParent);
    }
    function Twe(e) {
      if (Awe(e)) return !0;
      switch (e.kind) {
        case 242:
        case 270:
        case 211:
        case 269:
          return !0;
      }
      return !1;
    }
    function H1(e) {
      switch (e.contextNode.kind) {
        case 263:
        case 175:
        case 174:
        case 178:
        case 179:
        case 180:
        case 219:
        case 177:
        case 220:
        case 265:
          return !0;
      }
      return !1;
    }
    function sat(e) {
      return !H1(e);
    }
    function Swe(e) {
      return e.contextNode.kind === 263 || e.contextNode.kind === 219;
    }
    function Ewe(e) {
      return Awe(e.contextNode);
    }
    function Awe(e) {
      switch (e.kind) {
        case 264:
        case 232:
        case 265:
        case 267:
        case 188:
        case 268:
        case 279:
        case 280:
        case 273:
        case 276:
          return !0;
      }
      return !1;
    }
    function lat(e) {
      switch (e.currentTokenParent.kind) {
        case 264:
        case 268:
        case 267:
        case 300:
        case 269:
        case 256:
          return !0;
        case 242: {
          const t = e.currentTokenParent.parent;
          if (!t || (t.kind !== 220 && t.kind !== 219)) return !0;
        }
      }
      return !1;
    }
    function Nz(e) {
      switch (e.contextNode.kind) {
        case 246:
        case 256:
        case 249:
        case 250:
        case 251:
        case 248:
        case 259:
        case 247:
        case 255:
        case 300:
          return !0;
        default:
          return !1;
      }
    }
    function Iwe(e) {
      return e.contextNode.kind === 211;
    }
    function cat(e) {
      return e.contextNode.kind === 214;
    }
    function dat(e) {
      return e.contextNode.kind === 215;
    }
    function uat(e) {
      return cat(e) || dat(e);
    }
    function pat(e) {
      return e.currentTokenSpan.kind !== 28;
    }
    function fat(e) {
      return e.nextTokenSpan.kind !== 24;
    }
    function mat(e) {
      return e.nextTokenSpan.kind !== 22;
    }
    function hat(e) {
      return e.contextNode.kind === 220;
    }
    function _at(e) {
      return e.contextNode.kind === 206;
    }
    function no(e) {
      return e.TokensAreOnSameLine() && e.contextNode.kind !== 12;
    }
    function xwe(e) {
      return e.contextNode.kind !== 12;
    }
    function Qfe(e) {
      return e.contextNode.kind !== 285 && e.contextNode.kind !== 289;
    }
    function mX(e) {
      return e.contextNode.kind === 295 || e.contextNode.kind === 294;
    }
    function gat(e) {
      return (
        e.nextTokenParent.kind === 292 ||
        (e.nextTokenParent.kind === 296 &&
          e.nextTokenParent.parent.kind === 292)
      );
    }
    function Rwe(e) {
      return e.contextNode.kind === 292;
    }
    function yat(e) {
      return e.nextTokenParent.kind !== 296;
    }
    function Dwe(e) {
      return e.nextTokenParent.kind === 296;
    }
    function Cwe(e) {
      return e.contextNode.kind === 286;
    }
    function vat(e) {
      return !H1(e) && !fX(e);
    }
    function bat(e) {
      return (
        e.TokensAreOnSameLine() &&
        pf(e.contextNode) &&
        Nwe(e.currentTokenParent) &&
        !Nwe(e.nextTokenParent)
      );
    }
    function Nwe(e) {
      for (; e && St(e); ) e = e.parent;
      return e && e.kind === 171;
    }
    function Tat(e) {
      return (
        e.currentTokenParent.kind === 262 &&
        e.currentTokenParent.getStart(e.sourceFile) === e.currentTokenSpan.pos
      );
    }
    function Zfe(e) {
      return e.formattingRequestKind !== 2;
    }
    function Sat(e) {
      return e.contextNode.kind === 268;
    }
    function Eat(e) {
      return e.contextNode.kind === 188;
    }
    function Aat(e) {
      return e.contextNode.kind === 181;
    }
    function Mwe(e, t) {
      if (e.kind !== 30 && e.kind !== 32) return !1;
      switch (t.kind) {
        case 184:
        case 217:
        case 266:
        case 264:
        case 232:
        case 265:
        case 263:
        case 219:
        case 220:
        case 175:
        case 174:
        case 180:
        case 181:
        case 214:
        case 215:
        case 234:
          return !0;
        default:
          return !1;
      }
    }
    function Mz(e) {
      return (
        Mwe(e.currentTokenSpan, e.currentTokenParent) ||
        Mwe(e.nextTokenSpan, e.nextTokenParent)
      );
    }
    function eme(e) {
      return e.contextNode.kind === 217;
    }
    function Iat(e) {
      return !eme(e);
    }
    function xat(e) {
      return (
        e.currentTokenSpan.kind === 116 && e.currentTokenParent.kind === 223
      );
    }
    function Pwe(e) {
      return e.contextNode.kind === 230 && e.contextNode.expression !== void 0;
    }
    function Rat(e) {
      return e.contextNode.kind === 236;
    }
    function Lwe(e) {
      return !Dat(e);
    }
    function Dat(e) {
      switch (e.contextNode.kind) {
        case 246:
        case 249:
        case 250:
        case 251:
        case 247:
        case 248:
          return !0;
        default:
          return !1;
      }
    }
    function Cat(e) {
      let t = e.nextTokenSpan.kind,
        r = e.nextTokenSpan.pos;
      if (rD(t)) {
        const s =
          e.nextTokenParent === e.currentTokenParent
            ? eE(
                e.currentTokenParent,
                Dn(e.currentTokenParent, (l) => !l.parent),
                e.sourceFile,
              )
            : e.nextTokenParent.getFirstToken(e.sourceFile);
        if (!s) return !0;
        ((t = s.kind), (r = s.getStart(e.sourceFile)));
      }
      const i = e.sourceFile.getLineAndCharacterOfPosition(
          e.currentTokenSpan.pos,
        ).line,
        o = e.sourceFile.getLineAndCharacterOfPosition(r).line;
      return i === o
        ? t === 20 || t === 1
        : t === 27 && e.currentTokenSpan.kind === 27
          ? !0
          : t === 241 || t === 27
            ? !1
            : e.contextNode.kind === 265 || e.contextNode.kind === 266
              ? !Su(e.currentTokenParent) ||
                !!e.currentTokenParent.type ||
                t !== 21
              : Po(e.currentTokenParent)
                ? !e.currentTokenParent.initializer
                : e.currentTokenParent.kind !== 249 &&
                  e.currentTokenParent.kind !== 243 &&
                  e.currentTokenParent.kind !== 241 &&
                  t !== 23 &&
                  t !== 21 &&
                  t !== 40 &&
                  t !== 41 &&
                  t !== 44 &&
                  t !== 14 &&
                  t !== 28 &&
                  t !== 229 &&
                  t !== 16 &&
                  t !== 15 &&
                  t !== 25;
    }
    function Nat(e) {
      return M7(e.currentTokenSpan.end, e.currentTokenParent, e.sourceFile);
    }
    function Mat(e) {
      return (
        !qr(e.contextNode) ||
        !np(e.contextNode.expression) ||
        e.contextNode.expression.getText().includes(".")
      );
    }
    function Pat(e, t) {
      return { options: e, getRules: Lat(), host: t };
    }
    var tme;
    function Lat() {
      return (tme === void 0 && (tme = wat(pwe())), tme);
    }
    function kat(e) {
      let t = 0;
      return (
        e & 1 && (t |= 28),
        e & 2 && (t |= 96),
        e & 28 && (t |= 28),
        e & 96 && (t |= 96),
        t
      );
    }
    function wat(e) {
      const t = Oat(e);
      return (r) => {
        const i = t[kwe(r.currentTokenSpan.kind, r.nextTokenSpan.kind)];
        if (i) {
          const o = [];
          let s = 0;
          for (const l of i) {
            const u = ~kat(s);
            l.action & u &&
              Vn(l.context, (d) => d(r)) &&
              (o.push(l), (s |= l.action));
          }
          if (o.length) return o;
        }
      };
    }
    function Oat(e) {
      const t = new Array(nme * nme),
        r = new Array(t.length);
      for (const i of e) {
        const o = i.leftTokenRange.isSpecific && i.rightTokenRange.isSpecific;
        for (const s of i.leftTokenRange.tokens)
          for (const l of i.rightTokenRange.tokens) {
            const u = kwe(s, l);
            let d = t[u];
            (d === void 0 && (d = t[u] = []), Wat(d, i.rule, o, r, u));
          }
      }
      return t;
    }
    function kwe(e, t) {
      return (
        C.assert(
          e <= 166 && t <= 166,
          "Must compute formatting context from tokens",
        ),
        e * nme + t
      );
    }
    var $P = 5,
      hX = 31,
      nme = 167,
      dW = ((e) => (
        (e[(e.StopRulesSpecific = 0)] = "StopRulesSpecific"),
        (e[(e.StopRulesAny = $P * 1)] = "StopRulesAny"),
        (e[(e.ContextRulesSpecific = $P * 2)] = "ContextRulesSpecific"),
        (e[(e.ContextRulesAny = $P * 3)] = "ContextRulesAny"),
        (e[(e.NoContextRulesSpecific = $P * 4)] = "NoContextRulesSpecific"),
        (e[(e.NoContextRulesAny = $P * 5)] = "NoContextRulesAny"),
        e
      ))(dW || {});
    function Wat(e, t, r, i, o) {
      const s =
          t.action & 3
            ? r
              ? 0
              : dW.StopRulesAny
            : t.context !== pX
              ? r
                ? dW.ContextRulesSpecific
                : dW.ContextRulesAny
              : r
                ? dW.NoContextRulesSpecific
                : dW.NoContextRulesAny,
        l = i[o] || 0;
      (e.splice(Fat(l, s), 0, t), (i[o] = zat(l, s)));
    }
    function Fat(e, t) {
      let r = 0;
      for (let i = 0; i <= t; i += $P) ((r += e & hX), (e >>= $P));
      return r;
    }
    function zat(e, t) {
      const r = ((e >> t) & hX) + 1;
      return (
        C.assert(
          (r & hX) === r,
          "Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.",
        ),
        (e & ~(hX << t)) | (r << t)
      );
    }
    function _X(e, t, r) {
      const i = { pos: e, end: t, kind: r };
      return (
        C.isDebugging &&
          Object.defineProperty(i, "__debugKind", {
            get: () => C.formatSyntaxKind(r),
          }),
        i
      );
    }
    function Bat(e, t, r) {
      const i = t.getLineAndCharacterOfPosition(e).line;
      if (i === 0) return [];
      let o = Y2(i, t);
      for (; Bh(t.text.charCodeAt(o)); ) o--;
      eu(t.text.charCodeAt(o)) && o--;
      const s = { pos: _b(i - 1, t), end: o + 1 };
      return Pz(s, t, r, 2);
    }
    function Gat(e, t, r) {
      const i = rme(e, 27, t);
      return wwe(ime(i), t, r, 3);
    }
    function Vat(e, t, r) {
      const i = rme(e, 19, t);
      if (!i) return [];
      const o = i.parent,
        s = ime(o),
        l = { pos: Em(s.getStart(t), t), end: e };
      return Pz(l, t, r, 4);
    }
    function jat(e, t, r) {
      const i = rme(e, 20, t);
      return wwe(ime(i), t, r, 5);
    }
    function Uat(e, t) {
      const r = { pos: 0, end: e.text.length };
      return Pz(r, e, t, 0);
    }
    function Hat(e, t, r, i) {
      const o = { pos: Em(e, r), end: t };
      return Pz(o, r, i, 1);
    }
    function rme(e, t, r) {
      const i = Bc(e, r);
      return i && i.kind === t && e === i.getEnd() ? i : void 0;
    }
    function ime(e) {
      let t = e;
      for (; t && t.parent && t.parent.end === e.end && !qat(t.parent, t); )
        t = t.parent;
      return t;
    }
    function qat(e, t) {
      switch (e.kind) {
        case 264:
        case 265:
          return tp(e.members, t);
        case 268:
          const r = e.body;
          return !!r && r.kind === 269 && tp(r.statements, t);
        case 308:
        case 242:
        case 269:
          return tp(e.statements, t);
        case 300:
          return tp(e.block.statements, t);
      }
      return !1;
    }
    function Jat(e, t) {
      return r(t);
      function r(i) {
        const o = Jo(i, (s) => bV(s.getStart(t), s.end, e) && s);
        if (o) {
          const s = r(o);
          if (s) return s;
        }
        return i;
      }
    }
    function Kat(e, t) {
      if (!e.length) return o;
      const r = e
        .filter((s) => xP(t, s.start, s.start + s.length))
        .sort((s, l) => s.start - l.start);
      if (!r.length) return o;
      let i = 0;
      return (s) => {
        for (;;) {
          if (i >= r.length) return !1;
          const l = r[i];
          if (s.end <= l.start) return !1;
          if (u7(s.pos, s.end, l.start, l.start + l.length)) return !0;
          i++;
        }
      };
      function o() {
        return !1;
      }
    }
    function Xat(e, t, r) {
      const i = e.getStart(r);
      if (i === t.pos && e.end === t.end) return i;
      const o = Bc(t.pos, r);
      return !o || o.end >= t.pos ? e.pos : o.end;
    }
    function Yat(e, t, r) {
      let i = -1,
        o;
      for (; e; ) {
        const s = r.getLineAndCharacterOfPosition(e.getStart(r)).line;
        if (i !== -1 && s !== i) break;
        if (d_.shouldIndentChildNode(t, e, o, r)) return t.indentSize;
        ((i = s), (o = e), (e = e.parent));
      }
      return 0;
    }
    function $at(e, t, r, i, o, s) {
      const l = { pos: e.pos, end: e.end };
      return Hfe(t.text, r, l.pos, l.end, (u) =>
        Owe(l, e, i, o, u, s, 1, (d) => !1, t),
      );
    }
    function wwe(e, t, r, i) {
      if (!e) return [];
      const o = { pos: Em(e.getStart(t), t), end: e.end };
      return Pz(o, t, r, i);
    }
    function Pz(e, t, r, i) {
      const o = Jat(e, t);
      return Hfe(t.text, t.languageVariant, Xat(o, e, t), e.end, (s) =>
        Owe(
          e,
          o,
          d_.getIndentationForNode(o, e, t, r.options),
          Yat(o, r.options, t),
          s,
          r,
          i,
          Kat(t.parseDiagnostics, e),
          t,
        ),
      );
    }
    function Owe(e, t, r, i, o, { options: s, getRules: l, host: u }, d, _, h) {
      var g;
      const E = new cwe(h, d, s);
      let A,
        R,
        N,
        P,
        k,
        W = -1;
      const O = [];
      if ((o.advance(), o.isOnToken())) {
        const ce = h.getLineAndCharacterOfPosition(t.getStart(h)).line;
        let Re = ce;
        (pf(t) && (Re = h.getLineAndCharacterOfPosition(fG(t, h)).line),
          ye(t, t, ce, Re, r, i));
      }
      const G = o.getCurrentLeadingTrivia();
      if (G) {
        const ce = d_.nodeWillIndentChild(s, t, void 0, h, !1)
          ? r + s.indentSize
          : r;
        (ie(G, ce, !0, (Re) => {
          (pe(Re, h.getLineAndCharacterOfPosition(Re.pos), t, t, void 0),
            fe(Re.pos, ce, !1));
        }),
          s.trimTrailingWhitespace !== !1 && Se(G));
      }
      if (R && o.getTokenFullStart() >= e.end) {
        const ce = o.isOnEOF()
          ? o.readEOFTokenRange()
          : o.isOnToken()
            ? o.readTokenInfo(t).token
            : void 0;
        if (ce && ce.pos === A) {
          const Re = ((g = Bc(ce.end, h, t)) == null ? void 0 : g.parent) || N;
          de(
            ce,
            h.getLineAndCharacterOfPosition(ce.pos).line,
            Re,
            R,
            P,
            N,
            Re,
            void 0,
          );
        }
      }
      return O;
      function j(ce, Re, _e, je, Ge) {
        if (xP(je, ce, Re) || vO(je, ce, Re)) {
          if (Ge !== -1) return Ge;
        } else {
          const We = h.getLineAndCharacterOfPosition(ce).line,
            at = Em(ce, h),
            Wt = d_.findFirstNonWhitespaceColumn(at, ce, h, s);
          if (We !== _e || ce === Wt) {
            const cn = d_.getBaseIndentation(s);
            return cn > Wt ? cn : Wt;
          }
        }
        return -1;
      }
      function J(ce, Re, _e, je, Ge, We) {
        const at = d_.shouldIndentChildNode(s, ce) ? s.indentSize : 0;
        return We === Re
          ? {
              indentation: Re === k ? W : Ge.getIndentation(),
              delta: Math.min(s.indentSize, Ge.getDelta(ce) + at),
            }
          : _e === -1
            ? ce.kind === 21 && Re === k
              ? { indentation: W, delta: Ge.getDelta(ce) }
              : d_.childStartsOnTheSameLineWithElseInIfStatement(
                    je,
                    ce,
                    Re,
                    h,
                  ) ||
                  d_.childIsUnindentedBranchOfConditionalExpression(
                    je,
                    ce,
                    Re,
                    h,
                  ) ||
                  d_.argumentStartsOnSameLineAsPreviousArgument(je, ce, Re, h)
                ? { indentation: Ge.getIndentation(), delta: at }
                : {
                    indentation: Ge.getIndentation() + Ge.getDelta(ce),
                    delta: at,
                  }
            : { indentation: _e, delta: at };
      }
      function Z(ce) {
        if (Tm(ce)) {
          const Re = hn(ce.modifiers, Aa, ho(ce.modifiers, Wc));
          if (Re) return Re.kind;
        }
        switch (ce.kind) {
          case 264:
            return 86;
          case 265:
            return 120;
          case 263:
            return 100;
          case 267:
            return 267;
          case 178:
            return 139;
          case 179:
            return 153;
          case 175:
            if (ce.asteriskToken) return 42;
          case 173:
          case 170:
            const Re = Oo(ce);
            if (Re) return Re.kind;
        }
      }
      function q(ce, Re, _e, je) {
        return {
          getIndentationForComment: (at, Wt, cn) => {
            switch (at) {
              case 20:
              case 24:
              case 22:
                return _e + We(cn);
            }
            return Wt !== -1 ? Wt : _e;
          },
          getIndentationForToken: (at, Wt, cn, gn) =>
            !gn && Ge(at, Wt, cn) ? _e + We(cn) : _e,
          getIndentation: () => _e,
          getDelta: We,
          recomputeIndentation: (at, Wt) => {
            d_.shouldIndentChildNode(s, Wt, ce, h) &&
              ((_e += at ? s.indentSize : -s.indentSize),
              (je = d_.shouldIndentChildNode(s, ce) ? s.indentSize : 0));
          },
        };
        function Ge(at, Wt, cn) {
          switch (Wt) {
            case 19:
            case 20:
            case 22:
            case 93:
            case 117:
            case 60:
              return !1;
            case 44:
            case 32:
              switch (cn.kind) {
                case 287:
                case 288:
                case 286:
                  return !1;
              }
              break;
            case 23:
            case 24:
              if (cn.kind !== 201) return !1;
              break;
          }
          return Re !== at && !(pf(ce) && Wt === Z(ce));
        }
        function We(at) {
          return d_.nodeWillIndentChild(s, ce, at, h, !0) ? je : 0;
        }
      }
      function ye(ce, Re, _e, je, Ge, We) {
        if (!xP(e, ce.getStart(h), ce.getEnd())) return;
        const at = q(ce, _e, Ge, We);
        let Wt = Re;
        for (
          Jo(
            ce,
            (_t) => {
              cn(_t, -1, ce, at, _e, je, !1);
            },
            (_t) => {
              gn(_t, ce, _e, at);
            },
          );
          o.isOnToken() && o.getTokenFullStart() < e.end;
        ) {
          const _t = o.readTokenInfo(ce);
          if (_t.token.end > Math.min(ce.end, e.end)) break;
          Kn(_t, ce, at, ce);
        }
        function cn(_t, en, ir, Di, lo, zt, Zr, Ai) {
          if ((C.assert(!Os(_t)), Ol(_t) || Mte(ir, _t))) return en;
          const Ni = _t.getStart(h),
            Pr = h.getLineAndCharacterOfPosition(Ni).line;
          let Ci = Pr;
          pf(_t) && (Ci = h.getLineAndCharacterOfPosition(fG(_t, h)).line);
          let $e = -1;
          if (
            (Zr &&
              tp(e, ir) &&
              (($e = j(Ni, _t.end, lo, e, en)), $e !== -1 && (en = $e)),
            !xP(e, _t.pos, _t.end))
          )
            return (_t.end < e.pos && o.skipToEndOf(_t), en);
          if (_t.getFullWidth() === 0) return en;
          for (; o.isOnToken() && o.getTokenFullStart() < e.end; ) {
            const dr = o.readTokenInfo(ce);
            if (dr.token.end > e.end) return en;
            if (dr.token.end > Ni) {
              dr.token.pos > Ni && o.skipToStartOf(_t);
              break;
            }
            Kn(dr, ce, Di, ce);
          }
          if (!o.isOnToken() || o.getTokenFullStart() >= e.end) return en;
          if (oI(_t)) {
            const dr = o.readTokenInfo(_t);
            if (_t.kind !== 12)
              return (
                C.assert(dr.token.end === _t.end, "Token end is child end"),
                Kn(dr, ce, Di, _t),
                en
              );
          }
          const At = _t.kind === 171 ? Pr : zt,
            mn = J(_t, Pr, $e, ce, Di, At);
          return (
            ye(_t, Wt, Pr, Ci, mn.indentation, mn.delta),
            (Wt = ce),
            Ai && ir.kind === 210 && en === -1 && (en = mn.indentation),
            en
          );
        }
        function gn(_t, en, ir, Di) {
          (C.assert(hS(_t)), C.assert(!Os(_t)));
          const lo = Qat(en, _t);
          let zt = Di,
            Zr = ir;
          if (!xP(e, _t.pos, _t.end)) {
            _t.end < e.pos && o.skipToEndOf(_t);
            return;
          }
          if (lo !== 0)
            for (; o.isOnToken() && o.getTokenFullStart() < e.end; ) {
              const Pr = o.readTokenInfo(en);
              if (Pr.token.end > _t.pos) break;
              if (Pr.token.kind === lo) {
                ((Zr = h.getLineAndCharacterOfPosition(Pr.token.pos).line),
                  Kn(Pr, en, Di, en));
                let Ci;
                if (W !== -1) Ci = W;
                else {
                  const $e = Em(Pr.token.pos, h);
                  Ci = d_.findFirstNonWhitespaceColumn($e, Pr.token.pos, h, s);
                }
                zt = q(en, ir, Ci, s.indentSize);
              } else Kn(Pr, en, Di, en);
            }
          let Ai = -1;
          for (let Pr = 0; Pr < _t.length; Pr++) {
            const Ci = _t[Pr];
            Ai = cn(Ci, Ai, ce, zt, Zr, Zr, !0, Pr === 0);
          }
          const Ni = Zat(lo);
          if (Ni !== 0 && o.isOnToken() && o.getTokenFullStart() < e.end) {
            let Pr = o.readTokenInfo(en);
            (Pr.token.kind === 28 &&
              (Kn(Pr, en, zt, en),
              (Pr = o.isOnToken() ? o.readTokenInfo(en) : void 0)),
              Pr &&
                Pr.token.kind === Ni &&
                tp(en, Pr.token) &&
                Kn(Pr, en, zt, en, !0));
          }
        }
        function Kn(_t, en, ir, Di, lo) {
          C.assert(tp(en, _t.token));
          const zt = o.lastTrailingTriviaWasNewLine();
          let Zr = !1;
          _t.leadingTrivia && K(_t.leadingTrivia, en, Wt, ir);
          let Ai = 0;
          const Ni = tp(e, _t.token),
            Pr = h.getLineAndCharacterOfPosition(_t.token.pos);
          if (Ni) {
            const Ci = _(_t.token),
              $e = R;
            if (((Ai = pe(_t.token, Pr, en, Wt, ir)), !Ci))
              if (Ai === 0) {
                const At = $e && h.getLineAndCharacterOfPosition($e.end).line;
                Zr = zt && Pr.line !== At;
              } else Zr = Ai === 1;
          }
          if (
            (_t.trailingTrivia &&
              ((A = Ba(_t.trailingTrivia).end),
              K(_t.trailingTrivia, en, Wt, ir)),
            Zr)
          ) {
            const Ci =
              Ni && !_(_t.token)
                ? ir.getIndentationForToken(Pr.line, _t.token.kind, Di, !!lo)
                : -1;
            let $e = !0;
            if (_t.leadingTrivia) {
              const At = ir.getIndentationForComment(_t.token.kind, Ci, Di);
              $e = ie(_t.leadingTrivia, At, $e, (mn) => fe(mn.pos, At, !1));
            }
            Ci !== -1 &&
              $e &&
              (fe(_t.token.pos, Ci, Ai === 1), (k = Pr.line), (W = Ci));
          }
          (o.advance(), (Wt = en));
        }
      }
      function ie(ce, Re, _e, je) {
        for (const Ge of ce) {
          const We = tp(e, Ge);
          switch (Ge.kind) {
            case 3:
              (We && X(Ge, Re, !_e), (_e = !1));
              break;
            case 2:
              (_e && We && je(Ge), (_e = !1));
              break;
            case 4:
              _e = !0;
              break;
          }
        }
        return _e;
      }
      function K(ce, Re, _e, je) {
        for (const Ge of ce)
          if (y7(Ge.kind) && tp(e, Ge)) {
            const We = h.getLineAndCharacterOfPosition(Ge.pos);
            pe(Ge, We, Re, _e, je);
          }
      }
      function pe(ce, Re, _e, je, Ge) {
        const We = _(ce);
        let at = 0;
        if (!We)
          if (R) at = de(ce, Re.line, _e, R, P, N, je, Ge);
          else {
            const Wt = h.getLineAndCharacterOfPosition(e.pos);
            Ce(Wt.line, Re.line);
          }
        return ((R = ce), (A = ce.end), (N = _e), (P = Re.line), at);
      }
      function de(ce, Re, _e, je, Ge, We, at, Wt) {
        E.updateContext(je, We, ce, _e, at);
        const cn = l(E);
        let gn = E.options.trimTrailingWhitespace !== !1,
          Kn = 0;
        return (
          cn
            ? Pn(cn, (_t) => {
                if (((Kn = lt(_t, je, Ge, ce, Re)), Wt))
                  switch (Kn) {
                    case 2:
                      _e.getStart(h) === ce.pos &&
                        Wt.recomputeIndentation(!1, at);
                      break;
                    case 1:
                      _e.getStart(h) === ce.pos &&
                        Wt.recomputeIndentation(!0, at);
                      break;
                    default:
                      C.assert(Kn === 0);
                  }
                gn = gn && !(_t.action & 16) && _t.flags !== 1;
              })
            : (gn = gn && ce.kind !== 1),
          Re !== Ge && gn && Ce(Ge, Re, je),
          Kn
        );
      }
      function fe(ce, Re, _e) {
        const je = ome(Re, s);
        if (_e) Ne(ce, 0, je);
        else {
          const Ge = h.getLineAndCharacterOfPosition(ce),
            We = _b(Ge.line, h);
          (Re !== ve(We, Ge.character) || xe(je, We)) &&
            Ne(We, Ge.character, je);
        }
      }
      function ve(ce, Re) {
        let _e = 0;
        for (let je = 0; je < Re; je++)
          h.text.charCodeAt(ce + je) === 9
            ? (_e += s.tabSize - (_e % s.tabSize))
            : _e++;
        return _e;
      }
      function xe(ce, Re) {
        return ce !== h.text.substr(Re, ce.length);
      }
      function X(ce, Re, _e, je = !0) {
        let Ge = h.getLineAndCharacterOfPosition(ce.pos).line;
        const We = h.getLineAndCharacterOfPosition(ce.end).line;
        if (Ge === We) {
          _e || fe(ce.pos, Re, !1);
          return;
        }
        const at = [];
        let Wt = ce.pos;
        for (let en = Ge; en < We; en++) {
          const ir = Y2(en, h);
          (at.push({ pos: Wt, end: ir }), (Wt = _b(en + 1, h)));
        }
        if ((je && at.push({ pos: Wt, end: ce.end }), at.length === 0)) return;
        const cn = _b(Ge, h),
          gn = d_.findFirstNonWhitespaceCharacterAndColumn(cn, at[0].pos, h, s);
        let Kn = 0;
        _e && ((Kn = 1), Ge++);
        const _t = Re - gn.column;
        for (let en = Kn; en < at.length; en++, Ge++) {
          const ir = _b(Ge, h),
            Di =
              en === 0
                ? gn
                : d_.findFirstNonWhitespaceCharacterAndColumn(
                    at[en].pos,
                    at[en].end,
                    h,
                    s,
                  ),
            lo = Di.column + _t;
          if (lo > 0) {
            const zt = ome(lo, s);
            Ne(ir, Di.character, zt);
          } else be(ir, Di.character);
        }
      }
      function Ce(ce, Re, _e) {
        for (let je = ce; je < Re; je++) {
          const Ge = _b(je, h),
            We = Y2(je, h);
          if (_e && (y7(_e.kind) || zq(_e.kind)) && _e.pos <= We && _e.end > We)
            continue;
          const at = Je(Ge, We);
          at !== -1 &&
            (C.assert(at === Ge || !Bh(h.text.charCodeAt(at - 1))),
            be(at, We + 1 - at));
        }
      }
      function Je(ce, Re) {
        let _e = Re;
        for (; _e >= ce && Bh(h.text.charCodeAt(_e)); ) _e--;
        return _e !== Re ? _e + 1 : -1;
      }
      function Se(ce) {
        let Re = R ? R.end : e.pos;
        for (const _e of ce)
          y7(_e.kind) &&
            (Re < _e.pos && re(Re, _e.pos - 1, R), (Re = _e.end + 1));
        Re < e.end && re(Re, e.end, R);
      }
      function re(ce, Re, _e) {
        const je = h.getLineAndCharacterOfPosition(ce).line,
          Ge = h.getLineAndCharacterOfPosition(Re).line;
        Ce(je, Ge + 1, _e);
      }
      function be(ce, Re) {
        Re && O.push(b7(ce, Re, ""));
      }
      function Ne(ce, Re, _e) {
        (Re || _e) && O.push(b7(ce, Re, _e));
      }
      function Be(ce, Re) {
        O.push(b7(ce, 0, Re));
      }
      function lt(ce, Re, _e, je, Ge) {
        const We = Ge !== _e;
        switch (ce.action) {
          case 1:
            return 0;
          case 16:
            if (Re.end !== je.pos)
              return (be(Re.end, je.pos - Re.end), We ? 2 : 0);
            break;
          case 32:
            be(Re.pos, Re.end - Re.pos);
            break;
          case 8:
            if (ce.flags !== 1 && _e !== Ge) return 0;
            if (Ge - _e !== 1)
              return (Ne(Re.end, je.pos - Re.end, _y(u, s)), We ? 0 : 1);
            break;
          case 4:
            if (ce.flags !== 1 && _e !== Ge) return 0;
            if (je.pos - Re.end !== 1 || h.text.charCodeAt(Re.end) !== 32)
              return (Ne(Re.end, je.pos - Re.end, " "), We ? 2 : 0);
            break;
          case 64:
            Be(Re.end, ";");
        }
        return 0;
      }
    }
    function Wwe(e, t, r, i = Fi(e, t)) {
      const o = Dn(i, mh);
      if ((o && (i = o.parent), i.getStart(e) <= t && t < i.getEnd())) return;
      r = r === null ? void 0 : r === void 0 ? Bc(t, e) : r;
      const l = r && sb(e.text, r.end),
        u = xG(i, e),
        d = so(l, u);
      return (
        d &&
        hn(
          d,
          (_) =>
            yO(_, t) ||
            (t === _.end && (_.kind === 2 || t === e.getFullWidth())),
        )
      );
    }
    function Qat(e, t) {
      switch (e.kind) {
        case 177:
        case 263:
        case 219:
        case 175:
        case 174:
        case 220:
        case 180:
        case 181:
        case 185:
        case 186:
        case 178:
        case 179:
          if (e.typeParameters === t) return 30;
          if (e.parameters === t) return 21;
          break;
        case 214:
        case 215:
          if (e.typeArguments === t) return 30;
          if (e.arguments === t) return 21;
          break;
        case 264:
        case 232:
        case 265:
        case 266:
          if (e.typeParameters === t) return 30;
          break;
        case 184:
        case 216:
        case 187:
        case 234:
        case 206:
          if (e.typeArguments === t) return 30;
          break;
        case 188:
          return 19;
      }
      return 0;
    }
    function Zat(e) {
      switch (e) {
        case 21:
          return 22;
        case 30:
          return 32;
        case 19:
          return 20;
      }
      return 0;
    }
    var gX, uW, pW;
    function ome(e, t) {
      if (
        ((!gX || gX.tabSize !== t.tabSize || gX.indentSize !== t.indentSize) &&
          ((gX = { tabSize: t.tabSize, indentSize: t.indentSize }),
          (uW = pW = void 0)),
        t.convertTabsToSpaces)
      ) {
        let i;
        const o = Math.floor(e / t.indentSize),
          s = e % t.indentSize;
        return (
          pW || (pW = []),
          pW[o] === void 0
            ? ((i = EO(" ", t.indentSize * o)), (pW[o] = i))
            : (i = pW[o]),
          s ? i + EO(" ", s) : i
        );
      } else {
        const i = Math.floor(e / t.tabSize),
          o = e - i * t.tabSize;
        let s;
        return (
          uW || (uW = []),
          uW[i] === void 0 ? (uW[i] = s = EO("	", i)) : (s = uW[i]),
          o ? s + EO(" ", o) : s
        );
      }
    }
    var d_;
    ((e) => {
      let t;
      ((X) => {
        X[(X.Unknown = -1)] = "Unknown";
      })(t || (t = {}));
      function r(X, Ce, Je, Se = !1) {
        if (X > Ce.text.length) return u(Je);
        if (Je.indentStyle === 0) return 0;
        const re = Bc(X, Ce, void 0, !0),
          be = Wwe(Ce, X, re || null);
        if (be && be.kind === 3) return i(Ce, X, Je, be);
        if (!re) return u(Je);
        if (zq(re.kind) && re.getStart(Ce) <= X && X < re.end) return 0;
        const Be = Ce.getLineAndCharacterOfPosition(X).line,
          lt = Fi(Ce, X),
          ce = lt.kind === 19 && lt.parent.kind === 211;
        if (Je.indentStyle === 1 || ce) return o(Ce, X, Je);
        if (re.kind === 28 && re.parent.kind !== 227) {
          const _e = h(re, Ce, Je);
          if (_e !== -1) return _e;
        }
        const Re = G(X, re.parent, Ce);
        if (Re && !tp(Re, re)) {
          const je = [219, 220].includes(lt.parent.kind) ? 0 : Je.indentSize;
          return Z(Re, Ce, Je) + je;
        }
        return s(Ce, X, re, Be, Se, Je);
      }
      e.getIndentation = r;
      function i(X, Ce, Je, Se) {
        const re = ca(X, Ce).line - 1,
          be = ca(X, Se.pos).line;
        if ((C.assert(be >= 0), re <= be)) return pe(_b(be, X), Ce, X, Je);
        const Ne = _b(re, X),
          { column: Be, character: lt } = K(Ne, Ce, X, Je);
        return Be === 0 ? Be : X.text.charCodeAt(Ne + lt) === 42 ? Be - 1 : Be;
      }
      function o(X, Ce, Je) {
        let Se = Ce;
        for (; Se > 0; ) {
          const be = X.text.charCodeAt(Se);
          if (!sg(be)) break;
          Se--;
        }
        const re = Em(Se, X);
        return pe(re, Se, X, Je);
      }
      function s(X, Ce, Je, Se, re, be) {
        let Ne,
          Be = Je;
        for (; Be; ) {
          if (Pq(Be, Ce, X) && ve(be, Be, Ne, X, !0)) {
            const ce = R(Be, X),
              Re = A(Je, Be, Se, X),
              _e =
                Re !== 0
                  ? re && Re === 2
                    ? be.indentSize
                    : 0
                  : Se !== ce.line
                    ? be.indentSize
                    : 0;
            return d(Be, ce, void 0, _e, X, !0, be);
          }
          const lt = q(Be, X, be, !0);
          if (lt !== -1) return lt;
          ((Ne = Be), (Be = Be.parent));
        }
        return u(be);
      }
      function l(X, Ce, Je, Se) {
        const re = Je.getLineAndCharacterOfPosition(X.getStart(Je));
        return d(X, re, Ce, 0, Je, !1, Se);
      }
      e.getIndentationForNode = l;
      function u(X) {
        return X.baseIndentSize || 0;
      }
      e.getBaseIndentation = u;
      function d(X, Ce, Je, Se, re, be, Ne) {
        var Be;
        let lt = X.parent;
        for (; lt; ) {
          let ce = !0;
          if (Je) {
            const Ge = X.getStart(re);
            ce = Ge < Je.pos || Ge > Je.end;
          }
          const Re = _(lt, X, re),
            _e = Re.line === Ce.line || P(lt, X, Ce.line, re);
          if (ce) {
            const Ge = (Be = O(X, re)) == null ? void 0 : Be[0],
              We = !!Ge && R(Ge, re).line > Re.line;
            let at = q(X, re, Ne, We);
            if (at !== -1 || ((at = g(X, lt, Ce, _e, re, Ne)), at !== -1))
              return at + Se;
          }
          ve(Ne, lt, X, re, be) && !_e && (Se += Ne.indentSize);
          const je = N(lt, X, Ce.line, re);
          ((X = lt),
            (lt = X.parent),
            (Ce = je ? re.getLineAndCharacterOfPosition(X.getStart(re)) : Re));
        }
        return Se + u(Ne);
      }
      function _(X, Ce, Je) {
        const Se = O(Ce, Je),
          re = Se ? Se.pos : X.getStart(Je);
        return Je.getLineAndCharacterOfPosition(re);
      }
      function h(X, Ce, Je) {
        const Se = zle(X);
        return Se && Se.listItemIndex > 0
          ? ye(Se.list.getChildren(), Se.listItemIndex - 1, Ce, Je)
          : -1;
      }
      function g(X, Ce, Je, Se, re, be) {
        return (rd(X) || q2(X)) && (Ce.kind === 308 || !Se)
          ? ie(Je, re, be)
          : -1;
      }
      let E;
      ((X) => {
        ((X[(X.Unknown = 0)] = "Unknown"),
          (X[(X.OpenBrace = 1)] = "OpenBrace"),
          (X[(X.CloseBrace = 2)] = "CloseBrace"));
      })(E || (E = {}));
      function A(X, Ce, Je, Se) {
        const re = eE(X, Ce, Se);
        if (!re) return 0;
        if (re.kind === 19) return 1;
        if (re.kind === 20) {
          const be = R(re, Se).line;
          return Je === be ? 2 : 0;
        }
        return 0;
      }
      function R(X, Ce) {
        return Ce.getLineAndCharacterOfPosition(X.getStart(Ce));
      }
      function N(X, Ce, Je, Se) {
        if (!(Zo(X) && jn(X.arguments, Ce))) return !1;
        const re = X.expression.getEnd();
        return ca(Se, re).line === Je;
      }
      e.isArgumentAndStartLineOverlapsExpressionBeingCalled = N;
      function P(X, Ce, Je, Se) {
        if (X.kind === 246 && X.elseStatement === Ce) {
          const re = Es(X, 93, Se);
          return (C.assert(re !== void 0), R(re, Se).line === Je);
        }
        return !1;
      }
      e.childStartsOnTheSameLineWithElseInIfStatement = P;
      function k(X, Ce, Je, Se) {
        if (T1(X) && (Ce === X.whenTrue || Ce === X.whenFalse)) {
          const re = ca(Se, X.condition.end).line;
          if (Ce === X.whenTrue) return Je === re;
          {
            const be = R(X.whenTrue, Se).line,
              Ne = ca(Se, X.whenTrue.end).line;
            return re === be && Ne === Je;
          }
        }
        return !1;
      }
      e.childIsUnindentedBranchOfConditionalExpression = k;
      function W(X, Ce, Je, Se) {
        if (Gh(X)) {
          if (!X.arguments) return !1;
          const re = hn(X.arguments, (lt) => lt.pos === Ce.pos);
          if (!re) return !1;
          const be = X.arguments.indexOf(re);
          if (be === 0) return !1;
          const Ne = X.arguments[be - 1],
            Be = ca(Se, Ne.getEnd()).line;
          if (Je === Be) return !0;
        }
        return !1;
      }
      e.argumentStartsOnSameLineAsPreviousArgument = W;
      function O(X, Ce) {
        return X.parent && j(X.getStart(Ce), X.getEnd(), X.parent, Ce);
      }
      e.getContainingList = O;
      function G(X, Ce, Je) {
        return Ce && j(X, X, Ce, Je);
      }
      function j(X, Ce, Je, Se) {
        switch (Je.kind) {
          case 184:
            return re(Je.typeArguments);
          case 211:
            return re(Je.properties);
          case 210:
            return re(Je.elements);
          case 188:
            return re(Je.members);
          case 263:
          case 219:
          case 220:
          case 175:
          case 174:
          case 180:
          case 177:
          case 186:
          case 181:
            return re(Je.typeParameters) || re(Je.parameters);
          case 178:
            return re(Je.parameters);
          case 264:
          case 232:
          case 265:
          case 266:
          case 346:
            return re(Je.typeParameters);
          case 215:
          case 214:
            return re(Je.typeArguments) || re(Je.arguments);
          case 262:
            return re(Je.declarations);
          case 276:
          case 280:
            return re(Je.elements);
          case 207:
          case 208:
            return re(Je.elements);
        }
        function re(be) {
          return be && vO(J(Je, be, Se), X, Ce) ? be : void 0;
        }
      }
      function J(X, Ce, Je) {
        const Se = X.getChildren(Je);
        for (let re = 1; re < Se.length - 1; re++)
          if (Se[re].pos === Ce.pos && Se[re].end === Ce.end)
            return { pos: Se[re - 1].end, end: Se[re + 1].getStart(Je) };
        return Ce;
      }
      function Z(X, Ce, Je) {
        return X ? ie(Ce.getLineAndCharacterOfPosition(X.pos), Ce, Je) : -1;
      }
      function q(X, Ce, Je, Se) {
        if (X.parent && X.parent.kind === 262) return -1;
        const re = O(X, Ce);
        if (re) {
          const be = re.indexOf(X);
          if (be !== -1) {
            const Ne = ye(re, be, Ce, Je);
            if (Ne !== -1) return Ne;
          }
          return Z(re, Ce, Je) + (Se ? Je.indentSize : 0);
        }
        return -1;
      }
      function ye(X, Ce, Je, Se) {
        C.assert(Ce >= 0 && Ce < X.length);
        const re = X[Ce];
        let be = R(re, Je);
        for (let Ne = Ce - 1; Ne >= 0; Ne--) {
          if (X[Ne].kind === 28) continue;
          if (Je.getLineAndCharacterOfPosition(X[Ne].end).line !== be.line)
            return ie(be, Je, Se);
          be = R(X[Ne], Je);
        }
        return -1;
      }
      function ie(X, Ce, Je) {
        const Se = Ce.getPositionOfLineAndCharacter(X.line, 0);
        return pe(Se, Se + X.character, Ce, Je);
      }
      function K(X, Ce, Je, Se) {
        let re = 0,
          be = 0;
        for (let Ne = X; Ne < Ce; Ne++) {
          const Be = Je.text.charCodeAt(Ne);
          if (!Bh(Be)) break;
          (Be === 9 ? (be += Se.tabSize + (be % Se.tabSize)) : be++, re++);
        }
        return { column: be, character: re };
      }
      e.findFirstNonWhitespaceCharacterAndColumn = K;
      function pe(X, Ce, Je, Se) {
        return K(X, Ce, Je, Se).column;
      }
      e.findFirstNonWhitespaceColumn = pe;
      function de(X, Ce, Je, Se, re) {
        const be = Je ? Je.kind : 0;
        switch (Ce.kind) {
          case 245:
          case 264:
          case 232:
          case 265:
          case 267:
          case 266:
          case 210:
          case 242:
          case 269:
          case 211:
          case 188:
          case 201:
          case 190:
          case 218:
          case 212:
          case 214:
          case 215:
          case 244:
          case 278:
          case 254:
          case 228:
          case 208:
          case 207:
          case 287:
          case 290:
          case 286:
          case 295:
          case 174:
          case 180:
          case 181:
          case 170:
          case 185:
          case 186:
          case 197:
          case 216:
          case 224:
          case 280:
          case 276:
          case 282:
          case 277:
          case 173:
          case 297:
          case 298:
            return !0;
          case 270:
            return X.indentSwitchCase ?? !0;
          case 261:
          case 304:
          case 227:
            if (
              !X.indentMultiLineObjectLiteralBeginningOnBlankLine &&
              Se &&
              be === 211
            )
              return xe(Se, Je);
            if (Ce.kind === 227 && Se && Je && be === 285) {
              const Ne = Se.getLineAndCharacterOfPosition(
                  La(Se.text, Ce.pos),
                ).line,
                Be = Se.getLineAndCharacterOfPosition(La(Se.text, Je.pos)).line;
              return Ne !== Be;
            }
            if (Ce.kind !== 227) return !0;
            break;
          case 247:
          case 248:
          case 250:
          case 251:
          case 249:
          case 246:
          case 263:
          case 219:
          case 175:
          case 177:
          case 178:
          case 179:
            return be !== 242;
          case 220:
            return Se && be === 218 ? xe(Se, Je) : be !== 242;
          case 279:
            return be !== 280;
          case 273:
            return (
              be !== 274 ||
              (!!Je.namedBindings && Je.namedBindings.kind !== 276)
            );
          case 285:
            return be !== 288;
          case 289:
            return be !== 291;
          case 194:
          case 193:
          case 239:
            if (be === 188 || be === 190 || be === 201) return !1;
            break;
          case 259:
            if (be === 242) return !1;
            break;
        }
        return re;
      }
      e.nodeWillIndentChild = de;
      function fe(X, Ce) {
        switch (X) {
          case 254:
          case 258:
          case 252:
          case 253:
            return Ce.kind !== 242;
          default:
            return !1;
        }
      }
      function ve(X, Ce, Je, Se, re = !1) {
        return de(X, Ce, Je, Se, !1) && !(re && Je && fe(Je.kind, Ce));
      }
      e.shouldIndentChildNode = ve;
      function xe(X, Ce) {
        const Je = La(X.text, Ce.pos),
          Se = X.getLineAndCharacterOfPosition(Je).line,
          re = X.getLineAndCharacterOfPosition(Ce.end).line;
        return Se === re;
      }
    })(d_ || (d_ = {}));
    var yX = {};
    x(yX, { preparePasteEdits: () => est });
    function est(e, t, r) {
      let i = !1;
      return (
        t.forEach((o) => {
          const s = Dn(Fi(e, o.pos), (l) => tp(l, o));
          s &&
            Jo(s, function l(u) {
              var d;
              if (!i) {
                if (He(u) && ZD(o, u.getStart(e))) {
                  const _ = r.resolveName(u.text, u, -1, !1);
                  if (_ && _.declarations) {
                    for (const h of _.declarations)
                      if (
                        XJ(h) ||
                        (u.text &&
                          e.symbol &&
                          (d = e.symbol.exports) != null &&
                          d.has(u.escapedText))
                      ) {
                        i = !0;
                        return;
                      }
                  }
                }
                u.forEachChild(l);
              }
            });
        }),
        i
      );
    }
    var vX = {};
    x(vX, { pasteEditsProvider: () => nst });
    var tst = "providePostPasteEdits";
    function nst(e, t, r, i, o, s, l, u) {
      return {
        edits: Rr.ChangeTracker.with(
          { host: o, formatContext: l, preferences: s },
          (_) => rst(e, t, r, i, o, s, l, u, _),
        ),
        fixId: tst,
      };
    }
    function rst(e, t, r, i, o, s, l, u, d) {
      let _;
      t.length !== r.length &&
        (_ = t.length === 1 ? t[0] : t.join(_y(l.host, l.options)));
      const h = [];
      let g = e.text;
      for (let A = r.length - 1; A >= 0; A--) {
        const { pos: R, end: N } = r[A];
        g = _
          ? g.slice(0, R) + _ + g.slice(N)
          : g.slice(0, R) + t[A] + g.slice(N);
      }
      let E;
      (C.checkDefined(o.runWithTemporaryFileUpdate).call(
        o,
        e.fileName,
        g,
        (A, R, N) => {
          if (((E = cu.createImportAdder(N, A, s, o)), i?.range)) {
            (C.assert(i.range.length === t.length),
              i.range.forEach((G) => {
                const j = i.file.statements,
                  J = ho(j, (q) => q.end > G.pos);
                if (J === -1) return;
                let Z = ho(j, (q) => q.end >= G.end, J);
                (Z !== -1 && G.end <= j[Z].getStart() && Z--,
                  h.push(...j.slice(J, Z === -1 ? j.length : Z + 1)));
              }),
              C.assertIsDefined(R, "no original program found"));
            const P = R.getTypeChecker(),
              k = ist(i),
              W = X7(i.file, h, P, Sde(N, h, P), k),
              O = !TJ(e.fileName, R, o, !!i.file.commonJsModuleIndicator);
            (mde(i.file, W.targetFileImportsFromOldFile, d, O),
              Ade(
                i.file,
                W.oldImportsNeededByTargetFile,
                W.targetFileImportsFromOldFile,
                P,
                A,
                E,
              ));
          } else {
            const P = {
              sourceFile: N,
              program: R,
              cancellationToken: u,
              host: o,
              preferences: s,
              formatContext: l,
            };
            let k = 0;
            r.forEach((W, O) => {
              const G = W.end - W.pos,
                j = _ ?? t[O],
                J = W.pos + k,
                Z = J + j.length,
                q = { pos: J, end: Z };
              k += j.length - G;
              const ye = Dn(Fi(P.sourceFile, q.pos), (ie) => tp(ie, q));
              ye &&
                Jo(ye, function ie(K) {
                  if (
                    He(K) &&
                    ZD(q, K.getStart(N)) &&
                    !A?.getTypeChecker().resolveName(K.text, K, -1, !1)
                  )
                    return E.addImportForUnresolvedIdentifier(P, K, !0);
                  K.forEachChild(ie);
                });
            });
          }
          E.writeFixes(d, Gp(i ? i.file : e, s));
        },
      ),
        E.hasFixes() &&
          r.forEach((A, R) => {
            d.replaceRangeWithText(e, { pos: A.pos, end: A.end }, _ ?? t[R]);
          }));
    }
    function ist({ file: e, range: t }) {
      const r = t[0].pos,
        i = t[t.length - 1].end,
        o = Fi(e, r),
        s = RP(e, r) ?? Fi(e, i);
      return {
        pos: He(o) && r <= o.getStart(e) ? o.getFullStart() : r,
        end:
          He(s) && i === s.getEnd() ? Rr.getAdjustedEndPosition(e, s, {}) : i,
      };
    }
    var Fwe = {};
    x(Fwe, {
      ANONYMOUS: () => uJ,
      AccessFlags: () => FZ,
      AssertionLevel: () => KQ,
      AssignmentDeclarationKind: () => JZ,
      AssignmentKind: () => gne,
      Associativity: () => Ine,
      BreakpointResolver: () => cK,
      BuilderFileEmit: () => Tse,
      BuilderProgramKind: () => Cse,
      BuilderState: () => _h,
      CallHierarchy: () => yx,
      CharacterCodes: () => iee,
      CheckFlags: () => kZ,
      CheckMode: () => kU,
      ClassificationType: () => Sq,
      ClassificationTypeNames: () => Mle,
      CommentDirectiveType: () => vZ,
      Comparison: () => Ke,
      CompletionInfoFlags: () => Ale,
      CompletionTriggerKind: () => bq,
      Completions: () => Ex,
      ContainerFlags: () => tae,
      ContextFlags: () => xZ,
      Debug: () => C,
      DiagnosticCategory: () => K8,
      Diagnostics: () => f,
      DocumentHighlights: () => U7,
      ElementFlags: () => WZ,
      EmitFlags: () => v9,
      EmitHint: () => lee,
      EmitOnly: () => TZ,
      EndOfLineState: () => Rle,
      ExitStatus: () => SZ,
      ExportKind: () => Tce,
      Extension: () => oee,
      ExternalEmitHelpers: () => see,
      FileIncludeKind: () => c9,
      FilePreprocessingDiagnosticsKind: () => bZ,
      FileSystemEntryKind: () => gee,
      FileWatcherEventKind: () => mee,
      FindAllReferences: () => Ys,
      FlattenLevel: () => Eae,
      FlowFlags: () => J8,
      ForegroundColorEscapeSequences: () => use,
      FunctionFlags: () => Ene,
      GeneratedIdentifierFlags: () => l9,
      GetLiteralTextFlags: () => kte,
      GoToDefinition: () => fC,
      HighlightSpanKind: () => Sle,
      IdentifierNameMap: () => jD,
      ImportKind: () => bce,
      ImportsNotUsedAsValues: () => ZZ,
      IndentStyle: () => Ele,
      IndexFlags: () => zZ,
      IndexKind: () => VZ,
      InferenceFlags: () => HZ,
      InferencePriority: () => UZ,
      InlayHintKind: () => Tle,
      InlayHints: () => eX,
      InternalEmitFlags: () => aee,
      InternalNodeBuilderFlags: () => DZ,
      InternalSymbolName: () => wZ,
      IntersectionFlags: () => IZ,
      InvalidatedProjectKind: () => Qse,
      JSDocParsingMode: () => fee,
      JsDoc: () => y0,
      JsTyping: () => Gb,
      JsxEmit: () => QZ,
      JsxFlags: () => hZ,
      JsxReferenceKind: () => BZ,
      LanguageFeatureMinimumTarget: () => ed,
      LanguageServiceMode: () => vle,
      LanguageVariant: () => nee,
      LexicalEnvironmentFlags: () => dee,
      ListFormat: () => uee,
      LogLevel: () => iZ,
      MapCode: () => tX,
      MemberOverrideStatus: () => EZ,
      ModifierFlags: () => a9,
      ModuleDetectionKind: () => KZ,
      ModuleInstanceState: () => Zoe,
      ModuleKind: () => CR,
      ModuleResolutionKind: () => DR,
      ModuleSpecifierEnding: () => Sre,
      NavigateTo: () => Hce,
      NavigationBar: () => Jce,
      NewLineKind: () => eee,
      NodeBuilderFlags: () => RZ,
      NodeCheckFlags: () => p9,
      NodeFactoryFlags: () => eie,
      NodeFlags: () => o9,
      NodeResolutionFeatures: () => joe,
      ObjectFlags: () => m9,
      OperationCanceledException: () => TN,
      OperatorPrecedence: () => xne,
      OrganizeImports: () => v0,
      OrganizeImportsMode: () => vq,
      OuterExpressionKinds: () => cee,
      OutliningElementsCollector: () => rX,
      OutliningSpanKind: () => Ile,
      OutputFileType: () => xle,
      PackageJsonAutoImportPreference: () => yle,
      PackageJsonDependencyGroup: () => gle,
      PatternMatchKind: () => NJ,
      PollingInterval: () => b9,
      PollingWatchKind: () => $Z,
      PragmaKindFlags: () => pee,
      PredicateSemantics: () => _Z,
      PreparePasteEdits: () => yX,
      PrivateIdentifierKind: () => die,
      ProcessLevel: () => Rae,
      ProgramUpdateLevel: () => ase,
      QuotePreference: () => Zle,
      RegularExpressionFlags: () => gZ,
      RelationComparisonResult: () => s9,
      Rename: () => Rz,
      ScriptElementKind: () => Cle,
      ScriptElementKindModifier: () => Nle,
      ScriptKind: () => _9,
      ScriptSnapshot: () => n7,
      ScriptTarget: () => tee,
      SemanticClassificationFormat: () => ble,
      SemanticMeaning: () => Ple,
      SemicolonPreference: () => Tq,
      SignatureCheckMode: () => wU,
      SignatureFlags: () => h9,
      SignatureHelp: () => iW,
      SignatureInfo: () => bse,
      SignatureKind: () => GZ,
      SmartSelectionRange: () => aX,
      SnippetKind: () => y9,
      StatisticType: () => sle,
      StructureIsReused: () => d9,
      SymbolAccessibility: () => MZ,
      SymbolDisplay: () => vv,
      SymbolDisplayPartKind: () => i7,
      SymbolFlags: () => u9,
      SymbolFormatFlags: () => NZ,
      SyntaxKind: () => i9,
      Ternary: () => qZ,
      ThrottledCancellationToken: () => tue,
      TokenClass: () => Dle,
      TokenFlags: () => yZ,
      TransformFlags: () => g9,
      TypeFacts: () => LU,
      TypeFlags: () => f9,
      TypeFormatFlags: () => CZ,
      TypeMapKind: () => jZ,
      TypePredicateKind: () => PZ,
      TypeReferenceSerializationKind: () => LZ,
      UnionReduction: () => AZ,
      UpToDateStatusType: () => Hse,
      VarianceFlags: () => OZ,
      Version: () => ih,
      VersionRange: () => q8,
      WatchDirectoryFlags: () => ree,
      WatchDirectoryKind: () => YZ,
      WatchFileKind: () => XZ,
      WatchLogLevel: () => lse,
      WatchType: () => sd,
      accessPrivateIdentifier: () => Sae,
      addEmitFlags: () => Qh,
      addEmitHelper: () => zI,
      addEmitHelpers: () => Ag,
      addInternalEmitFlags: () => h1,
      addNodeFactoryPatcher: () => eSe,
      addObjectAllocatorPatcher: () => F0e,
      addRange: () => Xr,
      addRelatedInfo: () => pa,
      addSyntheticLeadingComment: () => Cb,
      addSyntheticTrailingComment: () => OM,
      addToSeen: () => gm,
      advancedAsyncSuperHelper: () => p4,
      affectsDeclarationPathOptionDeclarations: () => hoe,
      affectsEmitOptionDeclarations: () => moe,
      allKeysStartWithDot: () => a3,
      altDirectorySeparator: () => Z8,
      and: () => j8,
      append: () => Bn,
      appendIfUnique: () => $g,
      arrayFrom: () => Co,
      arrayIsEqualTo: () => Qp,
      arrayIsHomogeneous: () => Mre,
      arrayOf: () => UQ,
      arrayReverseIterator: () => WB,
      arrayToMap: () => AR,
      arrayToMultiMap: () => _2,
      arrayToNumericMap: () => qQ,
      assertType: () => pTe,
      assign: () => GE,
      asyncSuperHelper: () => u4,
      attachFileToDiagnostics: () => NI,
      base64decode: () => Jne,
      base64encode: () => qne,
      binarySearch: () => Zv,
      binarySearchKey: () => YA,
      bindSourceFile: () => nae,
      breakIntoCharacterSpans: () => Wce,
      breakIntoWordSpans: () => Fce,
      buildLinkParts: () => sce,
      buildOpts: () => Pw,
      buildOverload: () => Gwe,
      bundlerModuleNameResolver: () => Uoe,
      canBeConvertedToAsync: () => OJ,
      canHaveDecorators: () => qS,
      canHaveExportModifier: () => nw,
      canHaveFlowNode: () => eD,
      canHaveIllegalDecorators: () => jj,
      canHaveIllegalModifiers: () => Xie,
      canHaveIllegalType: () => xSe,
      canHaveIllegalTypeParameters: () => Kie,
      canHaveJSDoc: () => Ek,
      canHaveLocals: () => D_,
      canHaveModifiers: () => Tm,
      canHaveModuleSpecifier: () => mne,
      canHaveSymbol: () => ah,
      canIncludeBindAndCheckDiagnostics: () => xM,
      canJsonReportNoInputFiles: () => Fw,
      canProduceDiagnostics: () => Jw,
      canUsePropertyAccess: () => JV,
      canWatchAffectingLocation: () => Wse,
      canWatchAtTypes: () => Ose,
      canWatchDirectoryOrFile: () => OH,
      canWatchDirectoryOrFilePath: () => lO,
      cartesianProduct: () => nZ,
      cast: () => ma,
      chainBundle: () => hh,
      chainDiagnosticMessages: () => qo,
      changeAnyExtension: () => E2,
      changeCompilerHostLikeToUseCache: () => yP,
      changeExtension: () => av,
      changeFullExtension: () => nF,
      changesAffectModuleResolution: () => CF,
      changesAffectingProgramStructure: () => xte,
      characterCodeToRegularExpressionFlag: () => M9,
      childIsDecorated: () => KN,
      classElementOrClassElementParameterIsDecorated: () => NG,
      classHasClassThisAssignment: () => YU,
      classHasDeclaredOrExplicitlyAssignedName: () => $U,
      classHasExplicitlyAssignedName: () => b3,
      classOrConstructorParameterIsDecorated: () => tv,
      classicNameResolver: () => $oe,
      classifier: () => oue,
      cleanExtendedConfigCache: () => x3,
      clear: () => hi,
      clearMap: () => hp,
      clearSharedExtendedConfigFileWatcher: () => uH,
      climbPastPropertyAccess: () => s7,
      clone: () => JQ,
      cloneCompilerOptions: () => Gq,
      closeFileWatcher: () => Bm,
      closeFileWatcherOf: () => Kf,
      codefix: () => cu,
      collapseTextChangeRangesAcrossMultipleVersions: () => Fee,
      collectExternalModuleInfo: () => qU,
      combine: () => XA,
      combinePaths: () => Qr,
      commandLineOptionOfCustomType: () => yoe,
      commentPragmas: () => X8,
      commonOptionsWithBuild: () => z4,
      compact: () => m2,
      compareBooleans: () => NT,
      compareDataObjects: () => EV,
      compareDiagnostics: () => vM,
      compareEmitHelpers: () => pie,
      compareNumberOfDirectorySeparators: () => Qk,
      comparePaths: () => Zg,
      comparePathsCaseInsensitive: () => FTe,
      comparePathsCaseSensitive: () => WTe,
      comparePatternKeys: () => xU,
      compareProperties: () => QQ,
      compareStringsCaseInsensitive: () => y2,
      compareStringsCaseInsensitiveEslintCompatible: () => XQ,
      compareStringsCaseSensitive: () => Wd,
      compareStringsCaseSensitiveUI: () => v2,
      compareTextSpans: () => G8,
      compareValues: () => js,
      compilerOptionsAffectDeclarationPath: () => hre,
      compilerOptionsAffectEmit: () => mre,
      compilerOptionsAffectSemanticDiagnostics: () => fre,
      compilerOptionsDidYouMeanDiagnostics: () => j4,
      compilerOptionsIndicateEsModules: () => Jq,
      computeCommonSourceDirectoryOfFilenames: () => cse,
      computeLineAndCharacterOfPosition: () => LR,
      computeLineOfPosition: () => IN,
      computeLineStarts: () => iI,
      computePositionOfLineAndCharacter: () => aF,
      computeSignatureWithDiagnostics: () => NH,
      computeSuggestionDiagnostics: () => LJ,
      computedOptions: () => bM,
      concatenate: () => so,
      concatenateDiagnosticMessageChains: () => are,
      consumesNodeCoreModules: () => w7,
      contains: () => jn,
      containsIgnoredPath: () => CM,
      containsObjectRestOrSpread: () => Dw,
      containsParseError: () => fI,
      containsPath: () => um,
      convertCompilerOptionsForTelemetry: () => Loe,
      convertCompilerOptionsFromJson: () => wEe,
      convertJsonOption: () => N1,
      convertToBase64: () => Hne,
      convertToJson: () => ww,
      convertToObject: () => Roe,
      convertToOptionsWithAbsolutePaths: () => J4,
      convertToRelativePath: () => EN,
      convertToTSConfig: () => cU,
      convertTypeAcquisitionFromJson: () => OEe,
      copyComments: () => z1,
      copyEntries: () => NF,
      copyLeadingComments: () => oC,
      copyProperties: () => UB,
      copyTrailingAsLeadingComments: () => CO,
      copyTrailingComments: () => kP,
      couldStartTrivia: () => Aee,
      countWhere: () => Io,
      createAbstractBuilder: () => jAe,
      createAccessorPropertyBackingField: () => qj,
      createAccessorPropertyGetRedirector: () => roe,
      createAccessorPropertySetRedirector: () => ioe,
      createBaseNodeFactory: () => Xre,
      createBinaryExpressionTrampoline: () => k4,
      createBuilderProgram: () => MH,
      createBuilderProgramUsingIncrementalBuildInfo: () => Lse,
      createBuilderStatusReporter: () => K3,
      createCacheableExportInfoMap: () => SJ,
      createCachedDirectoryStructureHost: () => A3,
      createClassifier: () => vxe,
      createCommentDirectivesMap: () => Pte,
      createCompilerDiagnostic: () => Il,
      createCompilerDiagnosticForInvalidCustomType: () => voe,
      createCompilerDiagnosticFromMessageChain: () => L6,
      createCompilerHost: () => dse,
      createCompilerHostFromProgramHost: () => $H,
      createCompilerHostWorker: () => R3,
      createDetachedDiagnostic: () => CI,
      createDiagnosticCollection: () => cM,
      createDiagnosticForFileFromMessageChain: () => IG,
      createDiagnosticForNode: () => Ar,
      createDiagnosticForNodeArray: () => qR,
      createDiagnosticForNodeArrayFromMessageChain: () => tk,
      createDiagnosticForNodeFromMessageChain: () => hg,
      createDiagnosticForNodeInSourceFile: () => Wf,
      createDiagnosticForRange: () => qte,
      createDiagnosticMessageChainFromDiagnostic: () => Hte,
      createDiagnosticReporter: () => dx,
      createDocumentPositionMapper: () => gae,
      createDocumentRegistry: () => xce,
      createDocumentRegistryInternal: () => RJ,
      createEmitAndSemanticDiagnosticsBuilderProgram: () => wH,
      createEmitHelperFactory: () => uie,
      createEmptyExports: () => bw,
      createEvaluator: () => Gre,
      createExpressionForJsxElement: () => Vie,
      createExpressionForJsxFragment: () => jie,
      createExpressionForObjectLiteralElementLike: () => Uie,
      createExpressionForPropertyName: () => Wj,
      createExpressionFromEntityName: () => Tw,
      createExternalHelpersImportDeclarationIfNeeded: () => Bj,
      createFileDiagnostic: () => Oc,
      createFileDiagnosticFromMessageChain: () => BF,
      createFlowNode: () => F_,
      createForOfBindingStatement: () => Oj,
      createFutureSourceFile: () => G7,
      createGetCanonicalFileName: () => Fd,
      createGetIsolatedDeclarationErrors: () => Yae,
      createGetSourceFile: () => _H,
      createGetSymbolAccessibilityDiagnosticForNode: () => l0,
      createGetSymbolAccessibilityDiagnosticForNodeName: () => Xae,
      createGetSymbolWalker: () => rae,
      createIncrementalCompilerHost: () => J3,
      createIncrementalProgram: () => Use,
      createJsxFactoryExpression: () => wj,
      createLanguageService: () => nue,
      createLanguageServiceSourceFile: () => az,
      createMemberAccessForPropertyName: () => D1,
      createModeAwareCache: () => FD,
      createModeAwareCacheKey: () => rP,
      createModeMismatchDetails: () => cG,
      createModuleNotFoundChain: () => PF,
      createModuleResolutionCache: () => zD,
      createModuleResolutionLoader: () => SH,
      createModuleResolutionLoaderUsingGlobalCache: () => Gse,
      createModuleSpecifierResolutionHost: () => p0,
      createMultiMap: () => cm,
      createNameResolver: () => QV,
      createNodeConverters: () => Qre,
      createNodeFactory: () => sw,
      createOptionNameMap: () => G4,
      createOverload: () => bX,
      createPackageJsonImportFilter: () => aC,
      createPackageJsonInfo: () => mJ,
      createParenthesizerRules: () => Yre,
      createPatternMatcher: () => Mce,
      createPrinter: () => zb,
      createPrinterWithDefaults: () => ise,
      createPrinterWithRemoveComments: () => YS,
      createPrinterWithRemoveCommentsNeverAsciiEscape: () => ose,
      createPrinterWithRemoveCommentsOmitTrailingSemicolon: () => dH,
      createProgram: () => oO,
      createProgramDiagnostics: () => yse,
      createProgramHost: () => QH,
      createPropertyNameNodeForIdentifierOrLiteral: () => tw,
      createQueue: () => g2,
      createRange: () => Bf,
      createRedirectedBuilderProgram: () => kH,
      createResolutionCache: () => FH,
      createRuntimeTypeSerializer: () => Pae,
      createScanner: () => cg,
      createSemanticDiagnosticsBuilderProgram: () => VAe,
      createSet: () => HB,
      createSolutionBuilder: () => Xse,
      createSolutionBuilderHost: () => Jse,
      createSolutionBuilderWithWatch: () => Yse,
      createSolutionBuilderWithWatchHost: () => Kse,
      createSortedArray: () => OB,
      createSourceFile: () => tx,
      createSourceMapGenerator: () => pae,
      createSourceMapSource: () => iSe,
      createSuperAccessVariableStatement: () => S3,
      createSymbolTable: () => da,
      createSymlinkCache: () => LV,
      createSyntacticTypeNodeBuilder: () => mle,
      createSystemWatchFunctions: () => NTe,
      createTextChange: () => SO,
      createTextChangeFromStartLength: () => b7,
      createTextChangeRange: () => L2,
      createTextRangeFromNode: () => Uq,
      createTextRangeFromSpan: () => v7,
      createTextSpan: () => Id,
      createTextSpanFromBounds: () => ic,
      createTextSpanFromNode: () => zu,
      createTextSpanFromRange: () => _v,
      createTextSpanFromStringLiteralLikeContent: () => jq,
      createTextWriter: () => kk,
      createTokenRange: () => yV,
      createTypeChecker: () => dae,
      createTypeReferenceDirectiveResolutionCache: () => r3,
      createTypeReferenceResolutionLoader: () => N3,
      createWatchCompilerHost: () => ZAe,
      createWatchCompilerHostOfConfigFile: () => ZH,
      createWatchCompilerHostOfFilesAndCompilerOptions: () => eq,
      createWatchFactory: () => YH,
      createWatchHost: () => XH,
      createWatchProgram: () => tq,
      createWatchStatusReporter: () => zH,
      createWriteFileMeasuringIO: () => gH,
      declarationNameToString: () => ws,
      decodeMappings: () => jU,
      decodedTextSpanIntersectsWith: () => P2,
      deduplicate: () => cS,
      defaultHoverMaximumTruncationLength: () => Ate,
      defaultInitCompilerOptions: () => tEe,
      defaultMaximumTruncationLength: () => GN,
      diagnosticCategoryName: () => jE,
      diagnosticToString: () => tE,
      diagnosticsEqualityComparer: () => k6,
      directoryProbablyExists: () => ch,
      directorySeparator: () => Js,
      displayPart: () => yp,
      displayPartsToString: () => VO,
      disposeEmitNodes: () => cj,
      documentSpansEqual: () => eJ,
      dumpTracingLegend: () => mZ,
      elementAt: () => Qv,
      elideNodes: () => noe,
      emitDetachedComments: () => wne,
      emitFiles: () => lH,
      emitFilesAndReportErrors: () => j3,
      emitFilesAndReportErrorsAndGetExitStatus: () => KH,
      emitModuleKindIsNonNodeESM: () => Kk,
      emitNewLineBeforeLeadingCommentOfPosition: () => kne,
      emitResolverSkipsTypeChecking: () => sH,
      emitSkippedWithNoDiagnostics: () => IH,
      emptyArray: () => ae,
      emptyFileSystemEntries: () => xre,
      emptyMap: () => bt,
      emptyOptions: () => Sm,
      endsWith: () => el,
      ensurePathIsNonModuleName: () => UE,
      ensureScriptKind: () => U6,
      ensureTrailingDirectorySeparator: () => Uc,
      entityNameToString: () => Mp,
      enumerateInsertsAndDeletes: () => H8,
      equalOwnProperties: () => HQ,
      equateStringsCaseInsensitive: () => rb,
      equateStringsCaseSensitive: () => pS,
      equateValues: () => nb,
      escapeJsxAttributeString: () => eV,
      escapeLeadingUnderscores: () => Cl,
      escapeNonAsciiString: () => f6,
      escapeSnippetText: () => OS,
      escapeString: () => k_,
      escapeTemplateSubstitution: () => QG,
      evaluatorResult: () => qc,
      every: () => Vn,
      exclusivelyPrefixedNodeCoreModules: () => o4,
      executeCommandLine: () => PIe,
      expandPreOrPostfixIncrementOrDecrementExpression: () => C4,
      explainFiles: () => jH,
      explainIfFileIsRedirectAndImpliedFormat: () => UH,
      exportAssignmentIsAlias: () => Rk,
      expressionResultIsUnused: () => Lre,
      extend: () => jB,
      extensionFromPath: () => AM,
      extensionIsTS: () => X6,
      extensionsNotSupportingExtensionlessResolution: () => K6,
      externalHelpersModuleNameText: () => hb,
      factory: () => L,
      fileExtensionIs: () => El,
      fileExtensionIsOneOf: () => $l,
      fileIncludeReasonToDiagnostics: () => JH,
      fileShouldUseJavaScriptRequire: () => TJ,
      filter: () => Un,
      filterMutate: () => ul,
      filterSemanticDiagnostics: () => k3,
      find: () => hn,
      findAncestor: () => Dn,
      findBestPatternMatch: () => $B,
      findChildOfKind: () => Es,
      findComputedPropertyNameCacheAssignment: () => w4,
      findConfigFile: () => mH,
      findConstructorDeclaration: () => ow,
      findContainingList: () => p7,
      findDiagnosticForNode: () => gce,
      findFirstNonJsxWhitespaceToken: () => Ble,
      findIndex: () => ho,
      findLast: () => ga,
      findLastIndex: () => gl,
      findListItemInfo: () => zle,
      findModifier: () => nC,
      findNextToken: () => eE,
      findPackageJson: () => _ce,
      findPackageJsons: () => fJ,
      findPrecedingMatchingToken: () => g7,
      findPrecedingToken: () => Bc,
      findSuperStatementIndexPath: () => _3,
      findTokenOnLeftOfPosition: () => RP,
      findUseStrictPrologue: () => zj,
      first: () => $a,
      firstDefined: () => Hn,
      firstDefinedIterator: () => cr,
      firstIterator: () => zB,
      firstOrOnly: () => gJ,
      firstOrUndefined: () => Ac,
      firstOrUndefinedIterator: () => B8,
      fixupCompilerOptions: () => WJ,
      flatMap: () => Ki,
      flatMapIterator: () => lf,
      flatMapToMutable: () => yc,
      flatten: () => la,
      flattenCommaList: () => ooe,
      flattenDestructuringAssignment: () => k1,
      flattenDestructuringBinding: () => XS,
      flattenDiagnosticMessageText: () => a_,
      forEach: () => Ye,
      forEachAncestor: () => Rte,
      forEachAncestorDirectory: () => AN,
      forEachAncestorDirectoryStoppingAtGlobalCache: () => W_,
      forEachChild: () => Jo,
      forEachChildRecursively: () => ex,
      forEachDynamicImportOrRequireCall: () => a4,
      forEachEmittedFile: () => rH,
      forEachEnclosingBlockScopeContainer: () => Vte,
      forEachEntry: () => Hc,
      forEachExternalModuleToImportFrom: () => AJ,
      forEachImportClauseDeclaration: () => hne,
      forEachKey: () => fg,
      forEachLeadingCommentRange: () => x2,
      forEachNameInAccessChainWalkingLeft: () => tre,
      forEachNameOfDefaultExport: () => j7,
      forEachOptionsSyntaxByName: () => ij,
      forEachProjectReference: () => kM,
      forEachPropertyAssignment: () => XR,
      forEachResolvedProjectReference: () => nj,
      forEachReturnStatement: () => vb,
      forEachRight: () => Pn,
      forEachTrailingCommentRange: () => R2,
      forEachTsConfigPropArray: () => ak,
      forEachUnique: () => nJ,
      forEachYieldExpression: () => Yte,
      formatColorAndReset: () => $S,
      formatDiagnostic: () => yH,
      formatDiagnostics: () => _Ae,
      formatDiagnosticsWithColorAndContext: () => mse,
      formatGeneratedName: () => r0,
      formatGeneratedNamePart: () => kD,
      formatLocation: () => vH,
      formatMessage: () => MI,
      formatStringFromArgs: () => bg,
      formatting: () => Nc,
      generateDjb2Hash: () => S2,
      generateTSConfig: () => Doe,
      getAdjustedReferenceLocation: () => wq,
      getAdjustedRenameLocation: () => m7,
      getAliasDeclarationFromName: () => VG,
      getAllAccessorDeclarations: () => MS,
      getAllDecoratorsOfClass: () => KU,
      getAllDecoratorsOfClassElement: () => y3,
      getAllJSDocTags: () => fF,
      getAllJSDocTagsOfKind: () => s0e,
      getAllKeys: () => lTe,
      getAllProjectOutputs: () => E3,
      getAllSuperTypeNodes: () => rM,
      getAllowImportingTsExtensions: () => lre,
      getAllowJSCompilerOption: () => xb,
      getAllowSyntheticDefaultImports: () => PI,
      getAncestor: () => VT,
      getAnyExtensionFromPath: () => nI,
      getAreDeclarationMapsEnabled: () => w6,
      getAssignedExpandoInitializer: () => _I,
      getAssignedName: () => dF,
      getAssignmentDeclarationKind: () => oc,
      getAssignmentDeclarationPropertyAccessKind: () => yk,
      getAssignmentTargetKind: () => bb,
      getAutomaticTypeDirectiveNames: () => t3,
      getBaseFileName: () => Ic,
      getBinaryOperatorPrecedence: () => Mk,
      getBuildInfo: () => cH,
      getBuildInfoFileVersionMap: () => LH,
      getBuildInfoText: () => nse,
      getBuildOrderFromAnyBuildOrder: () => dO,
      getBuilderCreationParameters: () => F3,
      getBuilderFileEmit: () => Bb,
      getCanonicalDiagnostic: () => Jte,
      getCheckFlags: () => Wl,
      getClassExtendsHeritageElement: () => RS,
      getClassLikeDeclarationOfSymbol: () => cy,
      getCombinedLocalAndExportSymbolFlags: () => cD,
      getCombinedModifierFlags: () => PT,
      getCombinedNodeFlags: () => ty,
      getCombinedNodeFlagsAlwaysIncludeJSDoc: () => W9,
      getCommentRange: () => Zh,
      getCommonSourceDirectory: () => gP,
      getCommonSourceDirectoryOfConfig: () => w1,
      getCompilerOptionValue: () => F6,
      getConditions: () => Ob,
      getConfigFileParsingDiagnostics: () => QS,
      getConstantValue: () => rie,
      getContainerFlags: () => DU,
      getContainerNode: () => F1,
      getContainingClass: () => hd,
      getContainingClassExcludingClassDecorators: () => KF,
      getContainingClassStaticBlock: () => ine,
      getContainingFunction: () => df,
      getContainingFunctionDeclaration: () => rne,
      getContainingFunctionOrClassStaticBlock: () => JF,
      getContainingNodeArray: () => kre,
      getContainingObjectLiteralElement: () => jO,
      getContextualTypeFromParent: () => C7,
      getContextualTypeFromParentOrAncestorTypeNode: () => f7,
      getDeclarationDiagnostics: () => $ae,
      getDeclarationEmitExtensionForPath: () => _6,
      getDeclarationEmitOutputFilePath: () => Nne,
      getDeclarationEmitOutputFilePathWorker: () => h6,
      getDeclarationFileExtension: () => W4,
      getDeclarationFromName: () => nM,
      getDeclarationModifierFlagsFromSymbol: () => Vf,
      getDeclarationOfKind: () => al,
      getDeclarationsOfKind: () => Ite,
      getDeclaredExpandoInitializer: () => QN,
      getDecorators: () => lb,
      getDefaultCompilerOptions: () => oz,
      getDefaultFormatCodeSettings: () => r7,
      getDefaultLibFileName: () => C2,
      getDefaultLibFilePath: () => rue,
      getDefaultLikeExportInfo: () => V7,
      getDefaultLikeExportNameFromDeclaration: () => yJ,
      getDefaultResolutionModeForFileWorker: () => L3,
      getDiagnosticText: () => rp,
      getDiagnosticsWithinSpan: () => yce,
      getDirectoryPath: () => ci,
      getDirectoryToWatchFailedLookupLocation: () => WH,
      getDirectoryToWatchFailedLookupLocationFromTypeRoot: () => zse,
      getDocumentPositionMapper: () => PJ,
      getDocumentSpansEqualityComparer: () => tJ,
      getESModuleInterop: () => $h,
      getEditsForFileRename: () => Dce,
      getEffectiveBaseTypeNode: () => lh,
      getEffectiveConstraintOfTypeParameter: () => WR,
      getEffectiveContainerForJSDocTemplateTag: () => a6,
      getEffectiveImplementsTypeNodes: () => nD,
      getEffectiveInitializer: () => hk,
      getEffectiveJSDocHost: () => GT,
      getEffectiveModifierFlags: () => Gd,
      getEffectiveModifierFlagsAlwaysIncludeJSDoc: () => zne,
      getEffectiveModifierFlagsNoCache: () => Bne,
      getEffectiveReturnTypeNode: () => kp,
      getEffectiveSetAccessorTypeAnnotationNode: () => lV,
      getEffectiveTypeAnnotationNode: () => xc,
      getEffectiveTypeParameterDeclarations: () => cb,
      getEffectiveTypeRoots: () => nP,
      getElementOrPropertyAccessArgumentExpressionOrName: () => o6,
      getElementOrPropertyAccessName: () => iy,
      getElementsOfBindingOrAssignmentPattern: () => LD,
      getEmitDeclarations: () => _p,
      getEmitFlags: () => Qa,
      getEmitHelpers: () => dj,
      getEmitModuleDetectionKind: () => cre,
      getEmitModuleFormatOfFileWorker: () => TP,
      getEmitModuleKind: () => bu,
      getEmitModuleResolutionKind: () => iu,
      getEmitScriptTarget: () => Ga,
      getEmitStandardClassFields: () => MV,
      getEnclosingBlockScopeContainer: () => sh,
      getEnclosingContainer: () => zF,
      getEncodedSemanticClassifications: () => IJ,
      getEncodedSyntacticClassifications: () => xJ,
      getEndLinePosition: () => Y2,
      getEntityNameFromTypeNode: () => ck,
      getEntrypointsFromPackageJsonInfo: () => EU,
      getErrorCountForSummary: () => G3,
      getErrorSpanForNode: () => t1,
      getErrorSummaryText: () => GH,
      getEscapedTextOfIdentifierOrLiteral: () => aM,
      getEscapedTextOfJsxAttributeName: () => PM,
      getEscapedTextOfJsxNamespacedName: () => OI,
      getExpandoInitializer: () => zT,
      getExportAssignmentExpression: () => jG,
      getExportInfoMap: () => wO,
      getExportNeedsImportStarHelper: () => yae,
      getExpressionAssociativity: () => YG,
      getExpressionPrecedence: () => lM,
      getExternalHelpersModuleName: () => Ew,
      getExternalModuleImportEqualsDeclarationExpression: () => XN,
      getExternalModuleName: () => yI,
      getExternalModuleNameFromDeclaration: () => Dne,
      getExternalModuleNameFromPath: () => rV,
      getExternalModuleNameLiteral: () => ZI,
      getExternalModuleRequireArgument: () => PG,
      getFallbackOptions: () => nO,
      getFileEmitOutput: () => vse,
      getFileMatcherPatterns: () => j6,
      getFileNamesFromConfigSpecs: () => eP,
      getFileWatcherEventKind: () => E9,
      getFilesInErrorForSummary: () => V3,
      getFirstConstructorWithBody: () => yg,
      getFirstIdentifier: () => Lu,
      getFirstNonSpaceCharacterPosition: () => dce,
      getFirstProjectOutput: () => aH,
      getFixableErrorSpanExpression: () => hJ,
      getFormatCodeSettingsForWriting: () => z7,
      getFullWidth: () => K2,
      getFunctionFlags: () => cc,
      getHeritageClause: () => Dk,
      getHostSignatureFromJSDoc: () => BT,
      getIdentifierAutoGenerate: () => sSe,
      getIdentifierGeneratedImportReference: () => cie,
      getIdentifierTypeArguments: () => _1,
      getImmediatelyInvokedFunctionExpression: () => WT,
      getImpliedNodeFormatForEmitWorker: () => O1,
      getImpliedNodeFormatForFile: () => iO,
      getImpliedNodeFormatForFileWorker: () => P3,
      getImportNeedsImportDefaultHelper: () => HU,
      getImportNeedsImportStarHelper: () => m3,
      getIndentString: () => m6,
      getInferredLibraryNameResolveFrom: () => M3,
      getInitializedVariables: () => _M,
      getInitializerOfBinaryExpression: () => OG,
      getInitializerOfBindingOrAssignmentElement: () => Iw,
      getInterfaceBaseTypeNodes: () => iM,
      getInternalEmitFlags: () => Fm,
      getInvokedExpression: () => $F,
      getIsFileExcluded: () => Ece,
      getIsolatedModules: () => ym,
      getJSDocAugmentsTag: () => Kee,
      getJSDocClassTag: () => B9,
      getJSDocCommentRanges: () => RG,
      getJSDocCommentsAndTags: () => WG,
      getJSDocDeprecatedTag: () => G9,
      getJSDocDeprecatedTagNoCache: () => tte,
      getJSDocEnumTag: () => V9,
      getJSDocHost: () => IS,
      getJSDocImplementsTags: () => Xee,
      getJSDocOverloadTags: () => zG,
      getJSDocOverrideTagNoCache: () => ete,
      getJSDocParameterTags: () => OR,
      getJSDocParameterTagsNoCache: () => Uee,
      getJSDocPrivateTag: () => r0e,
      getJSDocPrivateTagNoCache: () => $ee,
      getJSDocProtectedTag: () => i0e,
      getJSDocProtectedTagNoCache: () => Qee,
      getJSDocPublicTag: () => n0e,
      getJSDocPublicTagNoCache: () => Yee,
      getJSDocReadonlyTag: () => o0e,
      getJSDocReadonlyTagNoCache: () => Zee,
      getJSDocReturnTag: () => nte,
      getJSDocReturnType: () => w2,
      getJSDocRoot: () => tD,
      getJSDocSatisfiesExpressionType: () => XV,
      getJSDocSatisfiesTag: () => j9,
      getJSDocTags: () => kT,
      getJSDocTemplateTag: () => a0e,
      getJSDocThisTag: () => uF,
      getJSDocType: () => $y,
      getJSDocTypeAliasName: () => Vj,
      getJSDocTypeAssertionType: () => MD,
      getJSDocTypeParameterDeclarations: () => T6,
      getJSDocTypeParameterTags: () => Hee,
      getJSDocTypeParameterTagsNoCache: () => qee,
      getJSDocTypeTag: () => LT,
      getJSXImplicitImportBase: () => Xk,
      getJSXRuntimeImport: () => B6,
      getJSXTransformEnabled: () => z6,
      getKeyForCompilerOptions: () => yU,
      getLanguageVariant: () => jk,
      getLastChild: () => AV,
      getLeadingCommentRanges: () => lg,
      getLeadingCommentRangesOfNode: () => xG,
      getLeftmostAccessExpression: () => dD,
      getLeftmostExpression: () => uD,
      getLibFileNameFromLibReference: () => tj,
      getLibNameFromLibReference: () => ej,
      getLibraryNameFromLibFileName: () => EH,
      getLineAndCharacterOfPosition: () => ca,
      getLineInfo: () => VU,
      getLineOfLocalPosition: () => dM,
      getLineStartPositionForPosition: () => Em,
      getLineStarts: () => ag,
      getLinesBetweenPositionAndNextNonWhitespaceCharacter: () => Qne,
      getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter: () => $ne,
      getLinesBetweenPositions: () => xN,
      getLinesBetweenRangeEndAndRangeStart: () => vV,
      getLinesBetweenRangeEndPositions: () => O0e,
      getLiteralText: () => wte,
      getLocalNameForExternalImport: () => PD,
      getLocalSymbolForExportDefault: () => mM,
      getLocaleSpecificMessage: () => Ho,
      getLocaleTimeString: () => cO,
      getMappedContextSpan: () => rJ,
      getMappedDocumentSpan: () => x7,
      getMappedLocation: () => MP,
      getMatchedFileSpec: () => HH,
      getMatchedIncludeSpec: () => qH,
      getMeaningFromDeclaration: () => o7,
      getMeaningFromLocation: () => W1,
      getMembersOfDeclaration: () => $te,
      getModeForFileReference: () => hse,
      getModeForResolutionAtIndex: () => SAe,
      getModeForUsageLocation: () => TH,
      getModifiedTime: () => tI,
      getModifiers: () => mS,
      getModuleInstanceState: () => my,
      getModuleNameStringLiteralAt: () => aO,
      getModuleSpecifierEndingPreference: () => Ere,
      getModuleSpecifierResolverHost: () => Kq,
      getNameForExportedSymbol: () => O7,
      getNameFromImportAttribute: () => n4,
      getNameFromIndexInfo: () => jte,
      getNameFromPropertyName: () => AO,
      getNameOfAccessExpression: () => xV,
      getNameOfCompilerOptionValue: () => q4,
      getNameOfDeclaration: () => Oo,
      getNameOfExpando: () => LG,
      getNameOfJSDocTypedef: () => jee,
      getNameOfScriptTarget: () => W6,
      getNameOrArgument: () => gk,
      getNameTable: () => lK,
      getNamespaceDeclarationNode: () => ZR,
      getNewLineCharacter: () => iv,
      getNewLineKind: () => kO,
      getNewLineOrDefaultFromHost: () => _y,
      getNewTargetContainer: () => ane,
      getNextJSDocCommentLocation: () => FG,
      getNodeChildren: () => Lj,
      getNodeForGeneratedName: () => Rw,
      getNodeId: () => ls,
      getNodeKind: () => ZS,
      getNodeModifiers: () => DP,
      getNodeModulePathParts: () => Z6,
      getNonAssignedNameOfDeclaration: () => cF,
      getNonAssignmentOperatorForCompoundAssignment: () => dP,
      getNonAugmentationDeclaration: () => vG,
      getNonDecoratorTokenPosOfNode: () => fG,
      getNonIncrementalBuildInfoRoots: () => kse,
      getNonModifierTokenPosOfNode: () => Lte,
      getNormalizedAbsolutePath: () => To,
      getNormalizedAbsolutePathWithoutRoot: () => R9,
      getNormalizedPathComponents: () => tF,
      getObjectFlags: () => Hr,
      getOperatorAssociativity: () => $G,
      getOperatorPrecedence: () => Nk,
      getOptionFromName: () => iU,
      getOptionsForLibraryResolution: () => vU,
      getOptionsNameMap: () => OD,
      getOptionsSyntaxByArrayElementValue: () => rj,
      getOptionsSyntaxByValue: () => qre,
      getOrCreateEmitNode: () => jd,
      getOrUpdate: () => KA,
      getOriginalNode: () => yl,
      getOriginalNodeId: () => Fu,
      getOutputDeclarationFileName: () => _P,
      getOutputDeclarationFileNameWorker: () => iH,
      getOutputExtension: () => Zw,
      getOutputFileNames: () => mAe,
      getOutputJSFileNameWorker: () => oH,
      getOutputPathsFor: () => hP,
      getOwnEmitOutputFilePath: () => Cne,
      getOwnKeys: () => Wh,
      getOwnValues: () => $A,
      getPackageJsonTypesVersionsPaths: () => e3,
      getPackageNameFromTypesPackageName: () => aP,
      getPackageScopeForPath: () => oP,
      getParameterSymbolFromJSDoc: () => Ak,
      getParentNodeInSpan: () => xO,
      getParseTreeNode: () => jo,
      getParsedCommandLineOfConfigFile: () => Lw,
      getPathComponents: () => zd,
      getPathFromPathComponents: () => MT,
      getPathUpdater: () => CJ,
      getPathsBasePath: () => g6,
      getPatternFromSpec: () => OV,
      getPendingEmitKindWithSeen: () => W3,
      getPositionOfLineAndCharacter: () => A2,
      getPossibleGenericSignatures: () => Wq,
      getPossibleOriginalInputExtensionForExtension: () => iV,
      getPossibleOriginalInputPathWithoutChangingExt: () => oV,
      getPossibleTypeArgumentsInfo: () => Fq,
      getPreEmitDiagnostics: () => hAe,
      getPrecedingNonSpaceCharacterPosition: () => R7,
      getPrivateIdentifier: () => XU,
      getProperties: () => JU,
      getProperty: () => h2,
      getPropertyAssignmentAliasLikeExpression: () => Sne,
      getPropertyNameForPropertyNameNode: () => c1,
      getPropertyNameFromType: () => Uf,
      getPropertyNameOfBindingOrAssignmentElement: () => Gj,
      getPropertySymbolFromBindingElement: () => I7,
      getPropertySymbolsFromContextualType: () => sz,
      getQuoteFromPreference: () => Yq,
      getQuotePreference: () => Gp,
      getRangesWhere: () => wB,
      getRefactorContextSpan: () => mx,
      getReferencedFileLocation: () => bP,
      getRegexFromPattern: () => ov,
      getRegularExpressionForWildcard: () => TM,
      getRegularExpressionsForWildcards: () => G6,
      getRelativePathFromDirectory: () => cf,
      getRelativePathFromFile: () => MR,
      getRelativePathToDirectoryOrUrl: () => PR,
      getRenameLocation: () => DO,
      getReplacementSpanForContextToken: () => Vq,
      getResolutionDiagnostic: () => RH,
      getResolutionModeOverride: () => HD,
      getResolveJsonModule: () => LS,
      getResolvePackageJsonExports: () => Hk,
      getResolvePackageJsonImports: () => qk,
      getResolvedExternalModuleName: () => nV,
      getResolvedModuleFromResolution: () => pI,
      getResolvedTypeReferenceDirectiveFromResolution: () => MF,
      getRestIndicatorOfBindingOrAssignmentElement: () => P4,
      getRestParameterElementType: () => DG,
      getRightMostAssignedExpression: () => _k,
      getRootDeclaration: () => Jh,
      getRootDirectoryOfResolutionCache: () => Bse,
      getRootLength: () => zh,
      getScriptKind: () => sJ,
      getScriptKindFromFileName: () => H6,
      getScriptTargetFeatures: () => mG,
      getSelectedEffectiveModifierFlags: () => AI,
      getSelectedSyntacticModifierFlags: () => Wne,
      getSemanticClassifications: () => Ace,
      getSemanticJsxChildren: () => iD,
      getSetAccessorTypeAnnotationNode: () => Pne,
      getSetAccessorValueParameter: () => uM,
      getSetExternalModuleIndicator: () => Uk,
      getShebang: () => sF,
      getSingleVariableOfVariableStatement: () => TI,
      getSnapshotText: () => fx,
      getSnippetElement: () => uj,
      getSourceFileOfModule: () => X2,
      getSourceFileOfNode: () => Wn,
      getSourceFilePathInNewDir: () => v6,
      getSourceFileVersionAsHashFromText: () => U3,
      getSourceFilesToEmit: () => y6,
      getSourceMapRange: () => lv,
      getSourceMapper: () => Bce,
      getSourceTextOfNodeFromSourceFile: () => vS,
      getSpanOfTokenAtPosition: () => jh,
      getSpellingSuggestion: () => fS,
      getStartPositionOfLine: () => _b,
      getStartPositionOfRange: () => hM,
      getStartsOnNewLine: () => wM,
      getStaticPropertiesAndClassStaticBlock: () => g3,
      getStrictOptionValue: () => Vd,
      getStringComparer: () => xR,
      getSubPatternFromSpec: () => V6,
      getSuperCallFromStatement: () => h3,
      getSuperContainer: () => sk,
      getSupportedCodeFixes: () => aK,
      getSupportedExtensions: () => SM,
      getSupportedExtensionsWithJsonIfResolveJsonModule: () => $k,
      getSwitchedType: () => dJ,
      getSymbolId: () => Ta,
      getSymbolNameForPrivateIdentifier: () => Ck,
      getSymbolTarget: () => lJ,
      getSyntacticClassifications: () => Ice,
      getSyntacticModifierFlags: () => nv,
      getSyntacticModifierFlagsNoCache: () => uV,
      getSynthesizedDeepClone: () => _s,
      getSynthesizedDeepCloneWithReplacements: () => aw,
      getSynthesizedDeepClones: () => WS,
      getSynthesizedDeepClonesWithReplacements: () => oj,
      getSyntheticLeadingComments: () => gD,
      getSyntheticTrailingComments: () => uw,
      getTargetLabel: () => l7,
      getTargetOfBindingOrAssignmentElement: () => kb,
      getTemporaryModuleResolutionState: () => iP,
      getTextOfConstantValue: () => Ote,
      getTextOfIdentifierOrLiteral: () => zf,
      getTextOfJSDocComment: () => O2,
      getTextOfJsxAttributeName: () => iw,
      getTextOfJsxNamespacedName: () => LM,
      getTextOfNode: () => Al,
      getTextOfNodeFromSourceText: () => jN,
      getTextOfPropertyName: () => hI,
      getThisContainer: () => vu,
      getThisParameter: () => CS,
      getTokenAtPosition: () => Fi,
      getTokenPosOfNode: () => gb,
      getTokenSourceMapRange: () => oSe,
      getTouchingPropertyName: () => ip,
      getTouchingToken: () => eC,
      getTrailingCommentRanges: () => sb,
      getTrailingSemicolonDeferringWriter: () => tV,
      getTransformers: () => Zae,
      getTsBuildInfoEmitOutputFilePath: () => c0,
      getTsConfigObjectLiteralExpression: () => JN,
      getTsConfigPropArrayElementValue: () => qF,
      getTypeAnnotationNode: () => Lne,
      getTypeArgumentOrTypeParameterList: () => Jle,
      getTypeKeywordOfTypeOnlyImport: () => Zq,
      getTypeNode: () => sie,
      getTypeNodeIfAccessible: () => OP,
      getTypeParameterFromJsDoc: () => _ne,
      getTypeParameterOwner: () => QTe,
      getTypesPackageName: () => s3,
      getUILocale: () => YQ,
      getUniqueName: () => B1,
      getUniqueSymbolId: () => cce,
      getUseDefineForClassFields: () => Jk,
      getWatchErrorSummaryDiagnosticMessage: () => BH,
      getWatchFactory: () => fH,
      group: () => IR,
      groupBy: () => VB,
      guessIndentation: () => Ste,
      handleNoEmitOptions: () => xH,
      handleWatchOptionsConfigDirTemplateSubstitution: () => K4,
      hasAbstractModifier: () => PS,
      hasAccessorModifier: () => Kh,
      hasAmbientModifier: () => dV,
      hasChangesInResolutions: () => dG,
      hasContextSensitiveParameters: () => Q6,
      hasDecorators: () => pf,
      hasDocComment: () => Hle,
      hasDynamicName: () => oy,
      hasEffectiveModifier: () => wp,
      hasEffectiveModifiers: () => cV,
      hasEffectiveReadonlyModifier: () => u1,
      hasExtension: () => NR,
      hasImplementationTSFileExtension: () => Tre,
      hasIndexSignature: () => cJ,
      hasInferredType: () => i4,
      hasInitializer: () => Zy,
      hasInvalidEscape: () => ZG,
      hasJSDocNodes: () => ef,
      hasJSDocParameterTags: () => Jee,
      hasJSFileExtension: () => Tg,
      hasJsonModuleEmitEnabled: () => O6,
      hasOnlyExpressionInitializer: () => ZE,
      hasOverrideModifier: () => S6,
      hasPossibleExternalModuleReference: () => Gte,
      hasProperty: () => Rs,
      hasPropertyAccessExpressionWithName: () => _O,
      hasQuestionToken: () => vI,
      hasRecordedExternalHelpers: () => Jie,
      hasResolutionModeOverride: () => zre,
      hasRestParameter: () => oG,
      hasScopeMarker: () => fte,
      hasStaticModifier: () => wc,
      hasSyntacticModifier: () => di,
      hasSyntacticModifiers: () => One,
      hasTSFileExtension: () => f1,
      hasTabstop: () => Ore,
      hasTrailingDirectorySeparator: () => ob,
      hasType: () => xF,
      hasTypeArguments: () => x0e,
      hasZeroOrOneAsteriskCharacter: () => PV,
      hostGetCanonicalFileName: () => ay,
      hostUsesCaseSensitiveFileNames: () => d1,
      idText: () => Kr,
      identifierIsThisKeyword: () => sV,
      identifierToKeywordKind: () => JE,
      identity: () => Vs,
      identitySourceMapConsumer: () => UU,
      ignoreSourceNewlines: () => fj,
      ignoredPaths: () => $8,
      importFromModuleSpecifier: () => eM,
      importSyntaxAffectsModuleResolution: () => NV,
      indexOfAnyCharCode: () => Bi,
      indexOfNode: () => UR,
      indicesOf: () => z8,
      inferredTypesContainingFile: () => vP,
      injectClassNamedEvaluationHelperBlockIfMissing: () => T3,
      injectClassThisAssignmentIfMissing: () => xae,
      insertImports: () => Qq,
      insertSorted: () => $v,
      insertStatementAfterCustomPrologue: () => e1,
      insertStatementAfterStandardPrologue: () => v0e,
      insertStatementsAfterCustomPrologue: () => uG,
      insertStatementsAfterStandardPrologue: () => mg,
      intersperse: () => bo,
      intrinsicTagNameToString: () => YV,
      introducesArgumentsExoticObject: () => ene,
      inverseJsxOptionMap: () => Mw,
      isAbstractConstructorSymbol: () => Zne,
      isAbstractModifier: () => vie,
      isAccessExpression: () => Ks,
      isAccessibilityModifier: () => Bq,
      isAccessor: () => fb,
      isAccessorModifier: () => vj,
      isAliasableExpression: () => s6,
      isAmbientModule: () => yu,
      isAmbientPropertyDeclaration: () => TG,
      isAnyDirectorySeparator: () => A9,
      isAnyImportOrBareOrAccessedRequire: () => zte,
      isAnyImportOrReExport: () => Z2,
      isAnyImportOrRequireStatement: () => Bte,
      isAnyImportSyntax: () => mI,
      isAnySupportedFileExtension: () => Y0e,
      isApplicableVersionedTypesKey: () => Gw,
      isArgumentExpressionOfElementAccess: () => Cq,
      isArray: () => Mo,
      isArrayBindingElement: () => bF,
      isArrayBindingOrAssignmentElement: () => V2,
      isArrayBindingOrAssignmentPattern: () => Z9,
      isArrayBindingPattern: () => pv,
      isArrayLiteralExpression: () => Cd,
      isArrayLiteralOrObjectLiteralDestructuringPattern: () => hv,
      isArrayTypeNode: () => hw,
      isArrowFunction: () => Xs,
      isAsExpression: () => SD,
      isAssertClause: () => Rie,
      isAssertEntry: () => _Se,
      isAssertionExpression: () => yS,
      isAssertsKeyword: () => gie,
      isAssignmentDeclaration: () => $N,
      isAssignmentExpression: () => id,
      isAssignmentOperator: () => sy,
      isAssignmentPattern: () => zN,
      isAssignmentTarget: () => Tb,
      isAsteriskToken: () => fw,
      isAsyncFunction: () => oM,
      isAsyncModifier: () => FM,
      isAutoAccessorPropertyDeclaration: () => Yu,
      isAwaitExpression: () => Pb,
      isAwaitKeyword: () => yj,
      isBigIntLiteral: () => yD,
      isBinaryExpression: () => Nr,
      isBinaryLogicalOperator: () => wk,
      isBinaryOperatorToken: () => toe,
      isBindableObjectDefinePropertyCall: () => o1,
      isBindableStaticAccessExpression: () => AS,
      isBindableStaticElementAccessExpression: () => i6,
      isBindableStaticNameExpression: () => a1,
      isBindingElement: () => Ha,
      isBindingElementOfBareOrAccessedRequire: () => cne,
      isBindingName: () => $E,
      isBindingOrAssignmentElement: () => cte,
      isBindingOrAssignmentPattern: () => B2,
      isBindingPattern: () => Qo,
      isBlock: () => ea,
      isBlockLike: () => hx,
      isBlockOrCatchScoped: () => hG,
      isBlockScope: () => SG,
      isBlockScopedContainerTopLevel: () => Fte,
      isBooleanLiteral: () => FN,
      isBreakOrContinueStatement: () => kN,
      isBreakStatement: () => fSe,
      isBuildCommand: () => lle,
      isBuildInfoFile: () => ese,
      isBuilderProgram: () => VH,
      isBundle: () => Mie,
      isCallChain: () => KE,
      isCallExpression: () => Zo,
      isCallExpressionTarget: () => Eq,
      isCallLikeExpression: () => gS,
      isCallLikeOrFunctionLikeExpression: () => eG,
      isCallOrNewExpression: () => Gh,
      isCallOrNewExpressionTarget: () => Aq,
      isCallSignatureDeclaration: () => UI,
      isCallToHelper: () => WM,
      isCaseBlock: () => HM,
      isCaseClause: () => xD,
      isCaseKeyword: () => Tie,
      isCaseOrDefaultClause: () => AF,
      isCatchClause: () => US,
      isCatchClauseVariableDeclaration: () => wre,
      isCatchClauseVariableDeclarationOrBindingElement: () => _G,
      isCheckJsEnabledForFile: () => IM,
      isCircularBuildOrder: () => ux,
      isClassDeclaration: () => Dc,
      isClassElement: () => bc,
      isClassExpression: () => dc,
      isClassInstanceProperty: () => ste,
      isClassLike: () => ui,
      isClassMemberModifier: () => Y9,
      isClassNamedEvaluationHelperBlock: () => lx,
      isClassOrTypeElement: () => vF,
      isClassStaticBlockDeclaration: () => Ql,
      isClassThisAssignmentBlock: () => pP,
      isColonToken: () => hie,
      isCommaExpression: () => Sw,
      isCommaListExpression: () => jM,
      isCommaSequence: () => YM,
      isCommaToken: () => mie,
      isComment: () => y7,
      isCommonJsExportPropertyAssignment: () => UF,
      isCommonJsExportedExpression: () => Qte,
      isCompoundAssignment: () => cP,
      isComputedNonLiteralName: () => ek,
      isComputedPropertyName: () => va,
      isConciseBody: () => SF,
      isConditionalExpression: () => T1,
      isConditionalTypeNode: () => zS,
      isConstAssertion: () => $V,
      isConstTypeReference: () => Om,
      isConstructSignatureDeclaration: () => GM,
      isConstructorDeclaration: () => Ml,
      isConstructorTypeNode: () => vD,
      isContextualKeyword: () => c6,
      isContinueStatement: () => pSe,
      isCustomPrologue: () => ok,
      isDebuggerStatement: () => mSe,
      isDeclaration: () => rd,
      isDeclarationBindingElement: () => z2,
      isDeclarationFileName: () => ad,
      isDeclarationName: () => L_,
      isDeclarationNameOfEnumOrNamespace: () => TV,
      isDeclarationReadonly: () => nk,
      isDeclarationStatement: () => gte,
      isDeclarationWithTypeParameterChildren: () => AG,
      isDeclarationWithTypeParameters: () => EG,
      isDecorator: () => Wc,
      isDecoratorTarget: () => kle,
      isDefaultClause: () => qM,
      isDefaultImport: () => s1,
      isDefaultModifier: () => _4,
      isDefaultedExpandoInitializer: () => dne,
      isDeleteExpression: () => Eie,
      isDeleteTarget: () => GG,
      isDeprecatedDeclaration: () => W7,
      isDestructuringAssignment: () => rv,
      isDiskPathRoot: () => I9,
      isDoStatement: () => uSe,
      isDocumentRegistryEntry: () => OO,
      isDotDotDotToken: () => m4,
      isDottedName: () => Wk,
      isDynamicName: () => u6,
      isEffectiveExternalModule: () => HR,
      isEffectiveStrictModeSourceFile: () => bG,
      isElementAccessChain: () => U9,
      isElementAccessExpression: () => Ws,
      isEmittedFileOfProgram: () => sse,
      isEmptyArrayLiteral: () => Une,
      isEmptyBindingElement: () => Bee,
      isEmptyBindingPattern: () => zee,
      isEmptyObjectLiteral: () => _V,
      isEmptyStatement: () => Sj,
      isEmptyStringLiteral: () => MG,
      isEntityName: () => Mu,
      isEntityNameExpression: () => Ds,
      isEnumConst: () => OT,
      isEnumDeclaration: () => ZT,
      isEnumMember: () => py,
      isEqualityOperatorKind: () => N7,
      isEqualsGreaterThanToken: () => _ie,
      isExclamationToken: () => mw,
      isExcludedFile: () => Noe,
      isExclusivelyTypeOnlyImportOrExport: () => bH,
      isExpandoPropertyDeclaration: () => WI,
      isExportAssignment: () => ll,
      isExportDeclaration: () => pc,
      isExportModifier: () => VI,
      isExportName: () => N4,
      isExportNamespaceAsDefaultDeclaration: () => OF,
      isExportOrDefaultModifier: () => xw,
      isExportSpecifier: () => ou,
      isExportsIdentifier: () => i1,
      isExportsOrModuleExportsOrAlias: () => JS,
      isExpression: () => St,
      isExpressionNode: () => P_,
      isExpressionOfExternalModuleImportEqualsDeclaration: () => Wle,
      isExpressionOfOptionalChainRoot: () => hF,
      isExpressionStatement: () => od,
      isExpressionWithTypeArguments: () => dy,
      isExpressionWithTypeArgumentsInClassExtendsClause: () => A6,
      isExternalModule: () => zc,
      isExternalModuleAugmentation: () => TS,
      isExternalModuleImportEqualsDeclaration: () => FT,
      isExternalModuleIndicator: () => U2,
      isExternalModuleNameRelative: () => td,
      isExternalModuleReference: () => uy,
      isExternalModuleSymbol: () => dI,
      isExternalOrCommonJsModule: () => Pp,
      isFileLevelReservedGeneratedIdentifier: () => F2,
      isFileLevelUniqueName: () => kF,
      isFileProbablyExternalModule: () => Cw,
      isFirstDeclarationOfSymbolParameter: () => iJ,
      isFixablePromiseHandler: () => wJ,
      isForInOrOfStatement: () => QE,
      isForInStatement: () => T4,
      isForInitializer: () => Of,
      isForOfStatement: () => gw,
      isForStatement: () => QT,
      isFullSourceFile: () => _g,
      isFunctionBlock: () => SS,
      isFunctionBody: () => nG,
      isFunctionDeclaration: () => Zl,
      isFunctionExpression: () => Us,
      isFunctionExpressionOrArrowFunction: () => Rb,
      isFunctionLike: () => Yo,
      isFunctionLikeDeclaration: () => Ms,
      isFunctionLikeKind: () => aI,
      isFunctionLikeOrClassStaticBlockDeclaration: () => BR,
      isFunctionOrConstructorTypeNode: () => lte,
      isFunctionOrModuleBlock: () => $9,
      isFunctionSymbol: () => fne,
      isFunctionTypeNode: () => w_,
      isGeneratedIdentifier: () => pl,
      isGeneratedPrivateIdentifier: () => YE,
      isGetAccessor: () => ug,
      isGetAccessorDeclaration: () => Hf,
      isGetOrSetAccessorDeclaration: () => W2,
      isGlobalScopeAugmentation: () => M_,
      isGlobalSourceFile: () => ev,
      isGrammarError: () => Mte,
      isHeritageClause: () => Fp,
      isHoistedFunction: () => VF,
      isHoistedVariableStatement: () => jF,
      isIdentifier: () => He,
      isIdentifierANonContextualKeyword: () => qG,
      isIdentifierName: () => Tne,
      isIdentifierOrThisTypeNode: () => $ie,
      isIdentifierPart: () => ey,
      isIdentifierStart: () => R_,
      isIdentifierText: () => fp,
      isIdentifierTypePredicate: () => tne,
      isIdentifierTypeReference: () => Nre,
      isIfStatement: () => $T,
      isIgnoredFileFromWildCardWatching: () => tO,
      isImplicitGlob: () => wV,
      isImportAttribute: () => Die,
      isImportAttributeName: () => ate,
      isImportAttributes: () => A1,
      isImportCall: () => Qu,
      isImportClause: () => Vm,
      isImportDeclaration: () => vl,
      isImportEqualsDeclaration: () => Fc,
      isImportKeyword: () => BM,
      isImportMeta: () => KR,
      isImportOrExportSpecifier: () => ub,
      isImportOrExportSpecifierName: () => lce,
      isImportSpecifier: () => Eu,
      isImportTypeAssertionContainer: () => hSe,
      isImportTypeNode: () => e_,
      isImportable: () => EJ,
      isInComment: () => mv,
      isInCompoundLikeAssignment: () => BG,
      isInExpressionContext: () => QF,
      isInJSDoc: () => YN,
      isInJSFile: () => Ir,
      isInJSXText: () => Ule,
      isInJsonFile: () => e6,
      isInNonReferenceComment: () => Yle,
      isInReferenceComment: () => Xle,
      isInRightSideOfInternalImportEqualsDeclaration: () => a7,
      isInString: () => px,
      isInTemplateString: () => Oq,
      isInTopLevelContext: () => XF,
      isInTypeQuery: () => EI,
      isIncrementalBuildInfo: () => sO,
      isIncrementalBundleEmitBuildInfo: () => Dse,
      isIncrementalCompilation: () => kS,
      isIndexSignatureDeclaration: () => Mb,
      isIndexedAccessTypeNode: () => BS,
      isInferTypeNode: () => y1,
      isInfinityOrNaNString: () => NM,
      isInitializedProperty: () => Hw,
      isInitializedVariable: () => Vk,
      isInsideJsxElement: () => _7,
      isInsideJsxElementOrAttribute: () => jle,
      isInsideNodeModules: () => MO,
      isInsideTemplateLiteral: () => TO,
      isInstanceOfExpression: () => I6,
      isInstantiatedModule: () => WU,
      isInterfaceDeclaration: () => gd,
      isInternalDeclaration: () => Ete,
      isInternalModuleImportEqualsDeclaration: () => r1,
      isInternalName: () => Fj,
      isIntersectionTypeNode: () => JI,
      isIntrinsicJsxName: () => oD,
      isIterationStatement: () => mb,
      isJSDoc: () => mh,
      isJSDocAllType: () => kie,
      isJSDocAugmentsTag: () => QI,
      isJSDocAuthorTag: () => bSe,
      isJSDocCallbackTag: () => xj,
      isJSDocClassTag: () => Oie,
      isJSDocCommentContainingNode: () => IF,
      isJSDocConstructSignature: () => bI,
      isJSDocDeprecatedTag: () => Mj,
      isJSDocEnumTag: () => vw,
      isJSDocFunctionType: () => DD,
      isJSDocImplementsTag: () => R4,
      isJSDocImportTag: () => o_,
      isJSDocIndexSignature: () => n6,
      isJSDocLikeText: () => Jj,
      isJSDocLink: () => Pie,
      isJSDocLinkCode: () => Lie,
      isJSDocLinkLike: () => cI,
      isJSDocLinkPlain: () => ySe,
      isJSDocMemberName: () => n0,
      isJSDocNameReference: () => JM,
      isJSDocNamepathType: () => vSe,
      isJSDocNamespaceBody: () => p0e,
      isJSDocNode: () => GR,
      isJSDocNonNullableType: () => E4,
      isJSDocNullableType: () => RD,
      isJSDocOptionalParameter: () => e4,
      isJSDocOptionalType: () => Ij,
      isJSDocOverloadTag: () => CD,
      isJSDocOverrideTag: () => I4,
      isJSDocParameterTag: () => mf,
      isJSDocPrivateTag: () => Dj,
      isJSDocPropertyLikeTag: () => wN,
      isJSDocPropertyTag: () => Wie,
      isJSDocProtectedTag: () => Cj,
      isJSDocPublicTag: () => Rj,
      isJSDocReadonlyTag: () => Nj,
      isJSDocReturnTag: () => x4,
      isJSDocSatisfiesExpression: () => KV,
      isJSDocSatisfiesTag: () => D4,
      isJSDocSeeTag: () => TSe,
      isJSDocSignature: () => fv,
      isJSDocTag: () => VR,
      isJSDocTemplateTag: () => bm,
      isJSDocThisTag: () => Pj,
      isJSDocThrowsTag: () => ESe,
      isJSDocTypeAlias: () => hm,
      isJSDocTypeAssertion: () => HS,
      isJSDocTypeExpression: () => t0,
      isJSDocTypeLiteral: () => x1,
      isJSDocTypeTag: () => KM,
      isJSDocTypedefTag: () => R1,
      isJSDocUnknownTag: () => SSe,
      isJSDocUnknownType: () => wie,
      isJSDocVariadicType: () => A4,
      isJSXTagName: () => $R,
      isJsonEqual: () => Y6,
      isJsonSourceFile: () => Ff,
      isJsxAttribute: () => i_,
      isJsxAttributeLike: () => EF,
      isJsxAttributeName: () => Fre,
      isJsxAttributes: () => jS,
      isJsxCallLike: () => Tte,
      isJsxChild: () => J2,
      isJsxClosingElement: () => VS,
      isJsxClosingFragment: () => Nie,
      isJsxElement: () => r_,
      isJsxExpression: () => ID,
      isJsxFragment: () => e0,
      isJsxNamespacedName: () => fh,
      isJsxOpeningElement: () => ph,
      isJsxOpeningFragment: () => jm,
      isJsxOpeningLikeElement: () => ru,
      isJsxOpeningLikeElementTagName: () => wle,
      isJsxSelfClosingElement: () => I1,
      isJsxSpreadAttribute: () => $I,
      isJsxTagNameExpression: () => BN,
      isJsxText: () => BI,
      isJumpStatementTarget: () => gO,
      isKeyword: () => ep,
      isKeywordOrPunctuation: () => l6,
      isKnownSymbol: () => sM,
      isLabelName: () => Rq,
      isLabelOfLabeledStatement: () => xq,
      isLabeledStatement: () => Lb,
      isLateVisibilityPaintedStatement: () => FF,
      isLeftHandSideExpression: () => $u,
      isLet: () => GF,
      isLineBreak: () => eu,
      isLiteralComputedPropertyDeclarationName: () => xk,
      isLiteralExpression: () => XE,
      isLiteralExpressionOfObject: () => K9,
      isLiteralImportTypeNode: () => ry,
      isLiteralKind: () => ON,
      isLiteralNameOfPropertyDeclarationOrIndexAccess: () => c7,
      isLiteralTypeLiteral: () => pte,
      isLiteralTypeNode: () => uv,
      isLocalName: () => fy,
      isLogicalOperator: () => Gne,
      isLogicalOrCoalescingAssignmentExpression: () => pV,
      isLogicalOrCoalescingAssignmentOperator: () => pM,
      isLogicalOrCoalescingBinaryExpression: () => Ok,
      isLogicalOrCoalescingBinaryOperator: () => E6,
      isMappedTypeNode: () => b1,
      isMemberName: () => dg,
      isMetaProperty: () => S1,
      isMethodDeclaration: () => Nl,
      isMethodOrAccessor: () => sI,
      isMethodSignature: () => Gm,
      isMinusToken: () => gj,
      isMissingDeclaration: () => gSe,
      isMissingPackageJsonInfo: () => Goe,
      isModifier: () => Aa,
      isModifierKind: () => pb,
      isModifierLike: () => fl,
      isModuleAugmentationExternal: () => yG,
      isModuleBlock: () => t_,
      isModuleBody: () => mte,
      isModuleDeclaration: () => uc,
      isModuleExportName: () => S4,
      isModuleExportsAccessExpression: () => gg,
      isModuleIdentifier: () => kG,
      isModuleName: () => eoe,
      isModuleOrEnumDeclaration: () => H2,
      isModuleReference: () => vte,
      isModuleSpecifierLike: () => A7,
      isModuleWithStringLiteralName: () => WF,
      isNameOfFunctionDeclaration: () => Mq,
      isNameOfModuleDeclaration: () => Nq,
      isNamedDeclaration: () => nd,
      isNamedEvaluation: () => Lp,
      isNamedEvaluationSource: () => JG,
      isNamedExportBindings: () => q9,
      isNamedExports: () => Jf,
      isNamedImportBindings: () => rG,
      isNamedImports: () => n_,
      isNamedImportsOrExports: () => M6,
      isNamedTupleMember: () => bD,
      isNamespaceBody: () => u0e,
      isNamespaceExport: () => O_,
      isNamespaceExportDeclaration: () => yw,
      isNamespaceImport: () => Ig,
      isNamespaceReexportDeclaration: () => lne,
      isNewExpression: () => GS,
      isNewExpressionTarget: () => IP,
      isNewScopeNode: () => Hre,
      isNoSubstitutionTemplateLiteral: () => g1,
      isNodeArray: () => hS,
      isNodeArrayMultiLine: () => Yne,
      isNodeDescendantOf: () => xS,
      isNodeKind: () => gF,
      isNodeLikeSystem: () => e9,
      isNodeModulesDirectory: () => rF,
      isNodeWithPossibleHoistedDeclaration: () => vne,
      isNonContextualKeyword: () => HG,
      isNonGlobalAmbientModule: () => gG,
      isNonNullAccess: () => Wre,
      isNonNullChain: () => _F,
      isNonNullExpression: () => XI,
      isNonStaticMethodOrAccessorWithPrivateName: () => vae,
      isNotEmittedStatement: () => Cie,
      isNullishCoalesce: () => H9,
      isNumber: () => eb,
      isNumericLiteral: () => np,
      isNumericLiteralName: () => Eg,
      isObjectBindingElementWithoutPropertyName: () => IO,
      isObjectBindingOrAssignmentElement: () => G2,
      isObjectBindingOrAssignmentPattern: () => Q9,
      isObjectBindingPattern: () => ff,
      isObjectLiteralElement: () => iG,
      isObjectLiteralElementLike: () => ny,
      isObjectLiteralExpression: () => Wa,
      isObjectLiteralMethod: () => mm,
      isObjectLiteralOrClassExpressionMethodOrAccessor: () => HF,
      isObjectTypeDeclaration: () => DI,
      isOmittedExpression: () => Jc,
      isOptionalChain: () => tu,
      isOptionalChainRoot: () => PN,
      isOptionalDeclaration: () => wI,
      isOptionalJSDocPropertyLikeTag: () => rw,
      isOptionalTypeNode: () => g4,
      isOuterExpression: () => M4,
      isOutermostOptionalChain: () => LN,
      isOverrideModifier: () => bie,
      isPackageJsonInfo: () => n3,
      isPackedArrayLiteral: () => qV,
      isParameter: () => to,
      isParameterPropertyDeclaration: () => Np,
      isParameterPropertyModifier: () => WN,
      isParenthesizedExpression: () => Ou,
      isParenthesizedTypeNode: () => v1,
      isParseTreeNode: () => MN,
      isPartOfParameterDeclaration: () => jT,
      isPartOfTypeNode: () => Hh,
      isPartOfTypeOnlyImportOrExportDeclaration: () => ote,
      isPartOfTypeQuery: () => ZF,
      isPartiallyEmittedExpression: () => Aie,
      isPatternMatch: () => V8,
      isPinnedComment: () => wF,
      isPlainJsFile: () => VN,
      isPlusToken: () => _j,
      isPossiblyTypeArgumentPosition: () => bO,
      isPostfixUnaryExpression: () => Tj,
      isPrefixUnaryExpression: () => YT,
      isPrimitiveLiteralValue: () => r4,
      isPrivateIdentifier: () => eo,
      isPrivateIdentifierClassElementDeclaration: () => nu,
      isPrivateIdentifierPropertyAccessExpression: () => zR,
      isPrivateIdentifierSymbol: () => Ane,
      isProgramUptoDate: () => AH,
      isPrologueDirective: () => Uh,
      isPropertyAccessChain: () => mF,
      isPropertyAccessEntityNameExpression: () => Fk,
      isPropertyAccessExpression: () => qr,
      isPropertyAccessOrQualifiedName: () => j2,
      isPropertyAccessOrQualifiedNameOrImportTypeNode: () => dte,
      isPropertyAssignment: () => Cc,
      isPropertyDeclaration: () => Po,
      isPropertyName: () => vc,
      isPropertyNameLiteral: () => qh,
      isPropertySignature: () => Su,
      isPrototypeAccess: () => Ab,
      isPrototypePropertyAssignment: () => vk,
      isPunctuation: () => UG,
      isPushOrUnshiftIdentifier: () => KG,
      isQualifiedName: () => ku,
      isQuestionDotToken: () => h4,
      isQuestionOrExclamationToken: () => Yie,
      isQuestionOrPlusOrMinusToken: () => Zie,
      isQuestionToken: () => Nb,
      isReadonlyKeyword: () => yie,
      isReadonlyKeywordOrPlusOrMinusToken: () => Qie,
      isRecognizedTripleSlashComment: () => pG,
      isReferenceFileLocation: () => qD,
      isReferencedFile: () => d0,
      isRegularExpressionLiteral: () => mj,
      isRequireCall: () => Zu,
      isRequireVariableStatement: () => fk,
      isRestParameter: () => C_,
      isRestTypeNode: () => y4,
      isReturnStatement: () => tf,
      isReturnStatementWithFixablePromiseHandler: () => H7,
      isRightSideOfAccessExpression: () => hV,
      isRightSideOfInstanceofExpression: () => jne,
      isRightSideOfPropertyAccess: () => $D,
      isRightSideOfQualifiedName: () => Ole,
      isRightSideOfQualifiedNameOrPropertyAccess: () => fM,
      isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName: () => Vne,
      isRootedDiskPath: () => Cp,
      isSameEntityName: () => QR,
      isSatisfiesExpression: () => ED,
      isSemicolonClassElement: () => Iie,
      isSetAccessor: () => Vh,
      isSetAccessorDeclaration: () => gp,
      isShiftOperatorOrHigher: () => Uj,
      isShorthandAmbientModuleSymbol: () => Q2,
      isShorthandPropertyAssignment: () => Ud,
      isSideEffectImport: () => ZV,
      isSignedNumericLiteral: () => d6,
      isSimpleCopiableExpression: () => KS,
      isSimpleInlineableExpression: () => z_,
      isSimpleParameterList: () => qw,
      isSingleOrDoubleQuote: () => mk,
      isSolutionConfig: () => fU,
      isSourceElement: () => Bre,
      isSourceFile: () => Yi,
      isSourceFileFromLibrary: () => sC,
      isSourceFileJS: () => Pu,
      isSourceFileNotJson: () => t6,
      isSourceMapping: () => _ae,
      isSpecialPropertyDeclaration: () => pne,
      isSpreadAssignment: () => xg,
      isSpreadElement: () => qf,
      isStatement: () => Vi,
      isStatementButNotDeclaration: () => q2,
      isStatementOrBlock: () => yte,
      isStatementWithLocals: () => Nte,
      isStatic: () => ua,
      isStaticModifier: () => jI,
      isString: () => Bo,
      isStringANonContextualKeyword: () => SI,
      isStringAndEmptyAnonymousObjectIntersection: () => Kle,
      isStringDoubleQuoted: () => r6,
      isStringLiteral: () => ka,
      isStringLiteralLike: () => ds,
      isStringLiteralOrJsxExpression: () => bte,
      isStringLiteralOrTemplate: () => pce,
      isStringOrNumericLiteralLike: () => uf,
      isStringOrRegularExpressionOrTemplateLiteral: () => zq,
      isStringTextContainingNode: () => X9,
      isSuperCall: () => n1,
      isSuperKeyword: () => zM,
      isSuperProperty: () => mp,
      isSupportedSourceFileName: () => zV,
      isSwitchStatement: () => UM,
      isSyntaxList: () => ND,
      isSyntheticExpression: () => dSe,
      isSyntheticReference: () => YI,
      isTagName: () => Dq,
      isTaggedTemplateExpression: () => XT,
      isTaggedTemplateTag: () => Lle,
      isTemplateExpression: () => b4,
      isTemplateHead: () => GI,
      isTemplateLiteral: () => lI,
      isTemplateLiteralKind: () => db,
      isTemplateLiteralToken: () => rte,
      isTemplateLiteralTypeNode: () => Sie,
      isTemplateLiteralTypeSpan: () => bj,
      isTemplateMiddle: () => hj,
      isTemplateMiddleOrTemplateTail: () => yF,
      isTemplateSpan: () => AD,
      isTemplateTail: () => f4,
      isTextWhiteSpaceLike: () => ece,
      isThis: () => QD,
      isThisContainerOrFunctionBlock: () => one,
      isThisIdentifier: () => Eb,
      isThisInTypeQuery: () => NS,
      isThisInitializedDeclaration: () => YF,
      isThisInitializedObjectBindingExpression: () => sne,
      isThisProperty: () => lk,
      isThisTypeNode: () => VM,
      isThisTypeParameter: () => MM,
      isThisTypePredicate: () => nne,
      isThrowStatement: () => Aj,
      isToken: () => oI,
      isTokenKind: () => J9,
      isTraceEnabled: () => wb,
      isTransientSymbol: () => pg,
      isTrivia: () => rD,
      isTryStatement: () => E1,
      isTupleTypeNode: () => qI,
      isTypeAlias: () => Sk,
      isTypeAliasDeclaration: () => vm,
      isTypeAssertionExpression: () => v4,
      isTypeDeclaration: () => kI,
      isTypeElement: () => _S,
      isTypeKeyword: () => CP,
      isTypeKeywordTokenOrIdentifier: () => T7,
      isTypeLiteralNode: () => wu,
      isTypeNode: () => Ri,
      isTypeNodeKind: () => IV,
      isTypeOfExpression: () => TD,
      isTypeOnlyExportDeclaration: () => ite,
      isTypeOnlyImportDeclaration: () => FR,
      isTypeOnlyImportOrExportDeclaration: () => Qy,
      isTypeOperatorNode: () => KT,
      isTypeParameterDeclaration: () => sl,
      isTypePredicateNode: () => HI,
      isTypeQueryNode: () => FS,
      isTypeReferenceNode: () => Wp,
      isTypeReferenceType: () => RF,
      isTypeUsableAsPropertyName: () => jf,
      isUMDExportSymbol: () => N6,
      isUnaryExpression: () => tG,
      isUnaryExpressionWithWrite: () => ute,
      isUnicodeIdentifierStart: () => oF,
      isUnionTypeNode: () => dv,
      isUrl: () => yee,
      isValidBigIntString: () => $6,
      isValidESSymbolDeclaration: () => Zte,
      isValidTypeOnlyAliasUseSite: () => HT,
      isValueSignatureDeclaration: () => l1,
      isVarAwaitUsing: () => rk,
      isVarConst: () => JR,
      isVarConstLike: () => Xte,
      isVarUsing: () => ik,
      isVariableDeclaration: () => yi,
      isVariableDeclarationInVariableStatement: () => qN,
      isVariableDeclarationInitializedToBareOrAccessedRequire: () => ES,
      isVariableDeclarationInitializedToRequire: () => pk,
      isVariableDeclarationList: () => _d,
      isVariableLike: () => HN,
      isVariableStatement: () => ac,
      isVoidExpression: () => KI,
      isWatchSet: () => SV,
      isWhileStatement: () => Ej,
      isWhiteSpaceLike: () => sg,
      isWhiteSpaceSingleLine: () => Bh,
      isWithStatement: () => xie,
      isWriteAccess: () => RI,
      isWriteOnlyAccess: () => C6,
      isYieldExpression: () => _w,
      jsxModeNeedsExplicitImport: () => bJ,
      keywordPart: () => Vp,
      last: () => Ba,
      lastOrUndefined: () => Zs,
      length: () => et,
      libMap: () => Qj,
      libs: () => F4,
      lineBreakPart: () => iC,
      loadModuleFromGlobalCache: () => Qoe,
      loadWithModeAwareCache: () => rO,
      makeIdentifierFromModuleName: () => Wte,
      makeImport: () => Vb,
      makeStringLiteral: () => NP,
      mangleScopedPackageName: () => GD,
      map: () => Vt,
      mapAllOrFail: () => DT,
      mapDefined: () => Ui,
      mapDefinedIterator: () => nh,
      mapEntries: () => GQ,
      mapIterator: () => za,
      mapOneOrMany: () => _J,
      mapToDisplayParts: () => jb,
      matchFiles: () => bre,
      matchPatternOrExact: () => BV,
      matchedText: () => tZ,
      matchesExclude: () => $4,
      matchesExcludeWorker: () => Q4,
      maxBy: () => qB,
      maybeBind: () => ia,
      maybeSetLocalizedDiagnosticMessages: () => ore,
      memoize: () => Nu,
      memoizeOne: () => Fh,
      min: () => JB,
      minAndMax: () => Rre,
      missingFileModifiedTime: () => Dp,
      modifierToFlag: () => II,
      modifiersToFlags: () => Xh,
      moduleExportNameIsDefault: () => N_,
      moduleExportNameTextEscaped: () => bS,
      moduleExportNameTextUnescaped: () => yb,
      moduleOptionDeclaration: () => poe,
      moduleResolutionIsEqualTo: () => Dte,
      moduleResolutionNameAndModeGetter: () => C3,
      moduleResolutionOptionDeclarations: () => eU,
      moduleResolutionSupportsPackageJsonExportsAndImports: () => pD,
      moduleResolutionUsesNodeModules: () => S7,
      moduleSpecifierToValidIdentifier: () => LO,
      moduleSpecifiers: () => hy,
      moduleSupportsImportAttributes: () => pre,
      moduleSymbolToValidIdentifier: () => PO,
      moveEmitHelpers: () => oie,
      moveRangeEnd: () => R6,
      moveRangePastDecorators: () => ly,
      moveRangePastModifiers: () => Yh,
      moveRangePos: () => UT,
      moveSyntheticComments: () => nie,
      mutateMap: () => yM,
      mutateMapSkippingNewValues: () => vg,
      needsParentheses: () => D7,
      needsScopeMarker: () => TF,
      newCaseClauseTracker: () => B7,
      newPrivateEnvironment: () => Tae,
      noEmitNotification: () => Yw,
      noEmitSubstitution: () => mP,
      noTransformers: () => Qae,
      noTruncationMaximumTruncationLength: () => sG,
      nodeCanBeDecorated: () => dk,
      nodeCoreModules: () => _D,
      nodeHasName: () => k2,
      nodeIsDecorated: () => YR,
      nodeIsMissing: () => Ol,
      nodeIsPresent: () => fm,
      nodeIsSynthesized: () => Os,
      nodeModuleNameResolver: () => Hoe,
      nodeModulesPathPart: () => Rg,
      nodeNextJsonConfigResolver: () => qoe,
      nodeOrChildIsDecorated: () => uk,
      nodeOverlapsWithStartEnd: () => d7,
      nodePosToString: () => h0e,
      nodeSeenTracker: () => tC,
      nodeStartsNewLexicalEnvironment: () => XG,
      noop: () => gs,
      noopFileWatcher: () => XD,
      normalizePath: () => ya,
      normalizeSlashes: () => Bd,
      normalizeSpans: () => O9,
      not: () => U8,
      notImplemented: () => ha,
      notImplementedResolver: () => rse,
      nullNodeConverters: () => Zre,
      nullParenthesizerRules: () => $re,
      nullTransformationContext: () => Qw,
      objectAllocator: () => Rd,
      operatorPart: () => PP,
      optionDeclarations: () => Um,
      optionMapToObject: () => H4,
      optionsAffectingProgramStructure: () => _oe,
      optionsForBuild: () => nU,
      optionsForWatch: () => rx,
      optionsHaveChanges: () => uI,
      or: () => Rp,
      orderedRemoveItem: () => mN,
      orderedRemoveItemAt: () => ib,
      packageIdToPackageName: () => LF,
      packageIdToString: () => wT,
      parameterIsThisKeyword: () => Sb,
      parameterNamePart: () => nce,
      parseBaseNodeFactory: () => aoe,
      parseBigInt: () => Cre,
      parseBuildCommand: () => Aoe,
      parseCommandLine: () => Soe,
      parseCommandLineWorker: () => rU,
      parseConfigFileTextToJson: () => oU,
      parseConfigFileWithSystem: () => Vse,
      parseConfigHostFromCompilerHostLike: () => w3,
      parseCustomTypeOption: () => V4,
      parseIsolatedEntityName: () => nx,
      parseIsolatedJSDocComment: () => loe,
      parseJSDocTypeExpressionForTests: () => JSe,
      parseJsonConfigFileContent: () => EEe,
      parseJsonSourceFileConfigFileContent: () => Ow,
      parseJsonText: () => Nw,
      parseListTypeOption: () => boe,
      parseNodeFactory: () => i0,
      parseNodeModuleFromPath: () => Bw,
      parsePackageName: () => o3,
      parsePseudoBigInt: () => RM,
      parseValidBigInt: () => UV,
      pasteEdits: () => vX,
      patchWriteFileEnsuringDirectory: () => MTe,
      pathContainsNodeModules: () => Wb,
      pathIsAbsolute: () => SN,
      pathIsBareSpecifier: () => x9,
      pathIsRelative: () => Zp,
      patternText: () => eZ,
      performIncrementalCompilation: () => jse,
      performance: () => cZ,
      positionBelongsToNode: () => Pq,
      positionIsASICandidate: () => M7,
      positionIsSynthesized: () => dh,
      positionsAreOnSameLine: () => Gf,
      preProcessFile: () => Lxe,
      probablyUsesSemicolons: () => NO,
      processCommentPragmas: () => Yj,
      processPragmasIntoFields: () => $j,
      processTaggedTemplateExpression: () => QU,
      programContainsEsModules: () => Qle,
      programContainsModules: () => $le,
      projectReferenceIsEqualTo: () => lG,
      propertyNamePart: () => rce,
      pseudoBigIntToString: () => wS,
      punctuationPart: () => lu,
      pushIfUnique: () => kf,
      quote: () => wP,
      quotePreferenceFromString: () => Xq,
      rangeContainsPosition: () => ZD,
      rangeContainsPositionExclusive: () => yO,
      rangeContainsRange: () => tp,
      rangeContainsRangeExclusive: () => Fle,
      rangeContainsStartEnd: () => vO,
      rangeEndIsOnSameLineAsRangeStart: () => Gk,
      rangeEndPositionsAreOnSameLine: () => Kne,
      rangeEquals: () => FB,
      rangeIsOnSingleLine: () => p1,
      rangeOfNode: () => VV,
      rangeOfTypeParameters: () => jV,
      rangeOverlapsWithStartEnd: () => xP,
      rangeStartIsOnSameLineAsRangeEnd: () => Xne,
      rangeStartPositionsAreOnSameLine: () => D6,
      readBuilderProgram: () => q3,
      readConfigFile: () => kw,
      readJson: () => lD,
      readJsonConfigFile: () => Ioe,
      readJsonOrUndefined: () => gV,
      reduceEachLeadingCommentRange: () => xee,
      reduceEachTrailingCommentRange: () => Ree,
      reduceLeft: () => gu,
      reduceLeftIterator: () => Gn,
      reducePathComponents: () => rI,
      refactor: () => gx,
      regExpEscape: () => U0e,
      regularExpressionFlagToCharacterCode: () => jTe,
      relativeComplement: () => VQ,
      removeAllComments: () => cw,
      removeEmitHelper: () => aSe,
      removeExtension: () => Zk,
      removeFileExtension: () => Tu,
      removeIgnoredPath: () => z3,
      removeMinAndVersionNumbers: () => YB,
      removePrefix: () => hN,
      removeSuffix: () => RR,
      removeTrailingDirectorySeparator: () => Yy,
      repeatString: () => EO,
      replaceElement: () => GB,
      replaceFirstStar: () => m1,
      resolutionExtensionIsTSOrJson: () => EM,
      resolveConfigFileProjectName: () => nq,
      resolveJSModule: () => t1e,
      resolveLibrary: () => i3,
      resolveModuleName: () => M1,
      resolveModuleNameFromCache: () => ZEe,
      resolvePackageNameToPackageJson: () => gU,
      resolvePath: () => ab,
      resolveProjectReferencePath: () => cx,
      resolveTripleslashReference: () => hH,
      resolveTypeReferenceDirective: () => zoe,
      resolvingEmptyArray: () => aG,
      returnFalse: () => Qg,
      returnNoopFileWatcher: () => SP,
      returnTrue: () => dS,
      returnUndefined: () => uS,
      returnsPromise: () => kJ,
      rewriteModuleSpecifier: () => ax,
      sameFlatMap: () => wm,
      sameMap: () => Zi,
      sameMapping: () => U1e,
      scanTokenAtPosition: () => Kte,
      scanner: () => yd,
      semanticDiagnosticsOptionDeclarations: () => foe,
      serializeCompilerOptions: () => dU,
      server: () => Vwe,
      servicesVersion: () => SDe,
      setCommentRange: () => Rc,
      setConfigFileInOptions: () => uU,
      setConstantValue: () => iie,
      setEmitFlags: () => Cr,
      setGetSourceFileAsHashVersioned: () => H3,
      setIdentifierAutoGenerate: () => pw,
      setIdentifierGeneratedImportReference: () => lie,
      setIdentifierTypeArguments: () => cv,
      setInternalEmitFlags: () => dw,
      setLocalizedDiagnosticMessages: () => ire,
      setNodeChildren: () => Fie,
      setNodeFlags: () => Pre,
      setObjectAllocator: () => rre,
      setOriginalNode: () => jr,
      setParent: () => ps,
      setParentRecursive: () => qT,
      setPrivateIdentifier: () => L1,
      setSnippetElement: () => pj,
      setSourceMapRange: () => Ua,
      setStackTraceLimit: () => ATe,
      setStartsOnNewLine: () => c4,
      setSyntheticLeadingComments: () => JT,
      setSyntheticTrailingComments: () => FI,
      setSys: () => PTe,
      setSysLog: () => _ee,
      setTextRange: () => vt,
      setTextRangeEnd: () => hD,
      setTextRangePos: () => DM,
      setTextRangePosEnd: () => uh,
      setTextRangePosWidth: () => HV,
      setTokenSourceMapRange: () => tie,
      setTypeNode: () => aie,
      setUILocale: () => $Q,
      setValueDeclaration: () => ZN,
      shouldAllowImportingTsExtension: () => VD,
      shouldPreserveConstEnums: () => Ib,
      shouldRewriteModuleSpecifier: () => Tk,
      shouldUseUriStyleNodeCoreModules: () => F7,
      showModuleSpecifier: () => ere,
      signatureHasRestParameter: () => su,
      signatureToDisplayParts: () => aJ,
      single: () => BB,
      singleElementArray: () => eI,
      singleIterator: () => F8,
      singleOrMany: () => I_,
      singleOrUndefined: () => og,
      skipAlias: () => xd,
      skipConstraint: () => qq,
      skipOuterExpressions: () => Ul,
      skipParentheses: () => us,
      skipPartiallyEmittedExpressions: () => Wm,
      skipTrivia: () => La,
      skipTypeChecking: () => mD,
      skipTypeCheckingIgnoringNoCheck: () => Dre,
      skipTypeParentheses: () => tM,
      skipWhile: () => rZ,
      sliceAfter: () => GV,
      some: () => yt,
      sortAndDeduplicate: () => fN,
      sortAndDeduplicateDiagnostics: () => wR,
      sourceFileAffectingCompilerOptions: () => tU,
      sourceFileMayBeEmitted: () => DS,
      sourceMapCommentRegExp: () => BU,
      sourceMapCommentRegExpDontCareLineStart: () => fae,
      spacePart: () => zl,
      spanMap: () => f2,
      startEndContainsRange: () => bV,
      startEndOverlapsWithStartEnd: () => u7,
      startOnNewLine: () => au,
      startTracing: () => fZ,
      startsWith: () => po,
      startsWithDirectory: () => C9,
      startsWithUnderscore: () => vJ,
      startsWithUseStrict: () => Hie,
      stringContainsAt: () => vce,
      stringToToken: () => HE,
      stripQuotes: () => _m,
      supportedDeclarationExtensions: () => J6,
      supportedJSExtensionsFlat: () => fD,
      supportedLocaleDirectories: () => Vee,
      supportedTSExtensionsFlat: () => WV,
      supportedTSImplementationExtensions: () => Yk,
      suppressLeadingAndTrailingTrivia: () => Op,
      suppressLeadingTrivia: () => aj,
      suppressTrailingTrivia: () => Jre,
      symbolEscapedNameNoDefault: () => E7,
      symbolName: () => wl,
      symbolNameNoDefault: () => $q,
      symbolToDisplayParts: () => LP,
      sys: () => jc,
      sysLog: () => Q8,
      tagNamesAreEquivalent: () => a0,
      takeWhile: () => ZB,
      targetOptionDeclaration: () => Zj,
      targetToLibMap: () => Dee,
      testFormatSettings: () => txe,
      textChangeRangeIsUnchanged: () => Wee,
      textChangeRangeNewSpan: () => NN,
      textChanges: () => Rr,
      textOrKeywordPart: () => oJ,
      textPart: () => yf,
      textRangeContainsPositionInclusive: () => N2,
      textRangeContainsTextSpan: () => Mee,
      textRangeIntersectsWithTextSpan: () => wee,
      textSpanContainsPosition: () => k9,
      textSpanContainsTextRange: () => w9,
      textSpanContainsTextSpan: () => Nee,
      textSpanEnd: () => Dl,
      textSpanIntersection: () => Oee,
      textSpanIntersectsWith: () => M2,
      textSpanIntersectsWithPosition: () => kee,
      textSpanIntersectsWithTextSpan: () => Lee,
      textSpanIsEmpty: () => Cee,
      textSpanOverlap: () => Pee,
      textSpanOverlapsWith: () => $Te,
      textSpansEqual: () => rC,
      textToKeywordObj: () => iF,
      timestamp: () => Ls,
      toArray: () => QA,
      toBuilderFileEmit: () => Mse,
      toBuilderStateFileInfoForMultiEmit: () => Nse,
      toEditorSettings: () => GO,
      toFileNameLowerCase: () => tb,
      toPath: () => ks,
      toProgramEmitPending: () => Pse,
      toSorted: () => xp,
      tokenIsIdentifierOrKeyword: () => Xu,
      tokenIsIdentifierOrKeywordOrGreaterThan: () => bee,
      tokenToString: () => _a,
      trace: () => xo,
      tracing: () => xr,
      tracingEnabled: () => T2,
      transferSourceFileChildren: () => zie,
      transform: () => PDe,
      transformClassFields: () => Mae,
      transformDeclarations: () => nH,
      transformECMAScriptModule: () => tH,
      transformES2015: () => Hae,
      transformES2016: () => Uae,
      transformES2017: () => wae,
      transformES2018: () => Oae,
      transformES2019: () => Wae,
      transformES2020: () => Fae,
      transformES2021: () => zae,
      transformESDecorators: () => kae,
      transformESNext: () => Bae,
      transformGenerators: () => qae,
      transformImpliedNodeFormatDependentModule: () => Kae,
      transformJsx: () => jae,
      transformLegacyDecorators: () => Lae,
      transformModule: () => eH,
      transformNamedEvaluation: () => zp,
      transformNodes: () => $w,
      transformSystemModule: () => Jae,
      transformTypeScript: () => Nae,
      transpile: () => Vxe,
      transpileDeclaration: () => Bxe,
      transpileModule: () => Vce,
      transpileOptionValueCompilerOptions: () => goe,
      tryAddToSet: () => rh,
      tryAndIgnoreErrors: () => k7,
      tryCast: () => ni,
      tryDirectoryExists: () => L7,
      tryExtractTSExtension: () => x6,
      tryFileExists: () => WP,
      tryGetClassExtendingExpressionWithTypeArguments: () => fV,
      tryGetClassImplementingOrExtendingExpressionWithTypeArguments: () => mV,
      tryGetDirectories: () => P7,
      tryGetExtensionFromPath: () => Sg,
      tryGetImportFromModuleSpecifier: () => bk,
      tryGetJSDocSatisfiesTypeNode: () => t4,
      tryGetModuleNameFromFile: () => Aw,
      tryGetModuleSpecifierFromDeclaration: () => gI,
      tryGetNativePerformanceHooks: () => lZ,
      tryGetPropertyAccessOrIdentifierToString: () => zk,
      tryGetPropertyNameOfBindingOrAssignmentElement: () => L4,
      tryGetSourceMappingURL: () => mae,
      tryGetTextOfPropertyName: () => UN,
      tryParseJson: () => Bk,
      tryParsePattern: () => LI,
      tryParsePatterns: () => ew,
      tryParseRawSourceMap: () => hae,
      tryReadDirectory: () => pJ,
      tryReadFile: () => ZM,
      tryRemoveDirectoryPrefix: () => kV,
      tryRemoveExtension: () => Ire,
      tryRemovePrefix: () => QB,
      tryRemoveSuffix: () => ZQ,
      tscBuildOption: () => C1,
      typeAcquisitionDeclarations: () => B4,
      typeAliasNamePart: () => ice,
      typeDirectiveIsEqualTo: () => Cte,
      typeKeywords: () => Hq,
      typeParameterNamePart: () => oce,
      typeToDisplayParts: () => RO,
      unchangedPollThresholds: () => Y8,
      unchangedTextChangeRange: () => lF,
      unescapeLeadingUnderscores: () => Gi,
      unmangleScopedPackageName: () => Vw,
      unorderedRemoveItem: () => ZA,
      unprefixedNodeCoreModules: () => Ure,
      unreachableCodeIsError: () => dre,
      unsetNodeChildren: () => kj,
      unusedLabelIsError: () => ure,
      unwrapInnermostStatementOfLabel: () => CG,
      unwrapParenthesizedExpression: () => Vre,
      updateErrorForNoInputFiles: () => Y4,
      updateLanguageServiceSourceFile: () => sK,
      updateMissingFilePathsWatch: () => pH,
      updateResolutionField: () => WD,
      updateSharedExtendedConfigFileWatcher: () => I3,
      updateSourceFile: () => Kj,
      updateWatchingWildcardDirectories: () => eO,
      usingSingleLineStringWriter: () => jR,
      utf16EncodeAsString: () => CN,
      validateLocaleAndSetLanguage: () => F9,
      version: () => Le,
      versionMajorMinor: () => ge,
      visitArray: () => sP,
      visitCommaListElements: () => f3,
      visitEachChild: () => kn,
      visitFunctionBody: () => gf,
      visitIterationBody: () => Wu,
      visitLexicalEnvironment: () => zU,
      visitNode: () => st,
      visitNodes: () => Xn,
      visitParameterList: () => Fl,
      walkUpBindingElementsAndPatterns: () => qE,
      walkUpOuterExpressions: () => qie,
      walkUpParenthesizedExpressions: () => zm,
      walkUpParenthesizedTypes: () => Ik,
      walkUpParenthesizedTypesAndGetParentAndChild: () => bne,
      whitespaceOrMapCommentRegExp: () => GU,
      writeCommentRange: () => sD,
      writeFile: () => b6,
      writeFileEnsuringDirectories: () => aV,
      zipWith: () => ki,
    });
    var zwe;
    function ost() {
      return zwe ?? (zwe = new ih(Le));
    }
    function Bwe(e, t, r, i, o) {
      let s = t ? "DeprecationError: " : "DeprecationWarning: ";
      return (
        (s += `'${e}' `),
        (s += i ? `has been deprecated since v${i}` : "is deprecated"),
        (s += t
          ? " and can no longer be used."
          : r
            ? ` and will no longer be usable after v${r}.`
            : "."),
        (s += o ? ` ${bg(o, [e])}` : ""),
        s
      );
    }
    function ast(e, t, r, i) {
      const o = Bwe(e, !0, t, r, i);
      return () => {
        throw new TypeError(o);
      };
    }
    function sst(e, t, r, i) {
      let o = !1;
      return () => {
        o || (C.log.warn(Bwe(e, !1, t, r, i)), (o = !0));
      };
    }
    function lst(e, t = {}) {
      const r =
          typeof t.typeScriptVersion == "string"
            ? new ih(t.typeScriptVersion)
            : (t.typeScriptVersion ?? ost()),
        i =
          typeof t.errorAfter == "string" ? new ih(t.errorAfter) : t.errorAfter,
        o = typeof t.warnAfter == "string" ? new ih(t.warnAfter) : t.warnAfter,
        s = typeof t.since == "string" ? new ih(t.since) : (t.since ?? o),
        l = t.error || (i && r.compareTo(i) >= 0),
        u = !o || r.compareTo(o) >= 0;
      return l ? ast(e, i, s, t.message) : u ? sst(e, i, s, t.message) : gs;
    }
    function cst(e, t) {
      return function () {
        return (e(), t.apply(this, arguments));
      };
    }
    function dst(e, t) {
      const r = lst(t?.name ?? C.getFunctionName(e), t);
      return cst(r, e);
    }
    function bX(e, t, r, i) {
      if (
        (Object.defineProperty(s, "name", {
          ...Object.getOwnPropertyDescriptor(s, "name"),
          value: e,
        }),
        i)
      )
        for (const l of Object.keys(i)) {
          const u = +l;
          !isNaN(u) &&
            Rs(t, `${u}`) &&
            (t[u] = dst(t[u], { ...i[u], name: e }));
        }
      const o = ust(t, r);
      return s;
      function s(...l) {
        const u = o(l),
          d = u !== void 0 ? t[u] : void 0;
        if (typeof d == "function") return d(...l);
        throw new TypeError("Invalid arguments");
      }
    }
    function ust(e, t) {
      return (r) => {
        for (let i = 0; Rs(e, `${i}`) && Rs(t, `${i}`); i++) {
          const o = t[i];
          if (o(r)) return i;
        }
      };
    }
    function Gwe(e) {
      return {
        overload: (t) => ({
          bind: (r) => ({
            finish: () => bX(e, t, r),
            deprecate: (i) => ({ finish: () => bX(e, t, r, i) }),
          }),
        }),
      };
    }
    var Vwe = {};
    x(Vwe, {
      ActionInvalidate: () => e7,
      ActionPackageInstalled: () => t7,
      ActionSet: () => Z3,
      ActionWatchTypingLocations: () => mO,
      Arguments: () => yq,
      AutoImportProviderProject: () => Nme,
      AuxiliaryProject: () => Dme,
      CharRangeSection: () => nhe,
      CloseFileWatcherEvent: () => LX,
      CommandNames: () => bOe,
      ConfigFileDiagEvent: () => DX,
      ConfiguredProject: () => Mme,
      ConfiguredProjectLoadKind: () => Wme,
      CreateDirectoryWatcherEvent: () => PX,
      CreateFileWatcherEvent: () => MX,
      Errors: () => by,
      EventBeginInstallTypes: () => _q,
      EventEndInstallTypes: () => gq,
      EventInitializationFailed: () => hle,
      EventTypesRegistry: () => hq,
      ExternalProject: () => SX,
      GcTimer: () => _me,
      InferredProject: () => Rme,
      LargeFileReferencedEvent: () => RX,
      LineIndex: () => vW,
      LineLeaf: () => Oz,
      LineNode: () => bC,
      LogLevel: () => sme,
      Msg: () => lme,
      OpenFileInfoTelemetryEvent: () => Pme,
      Project: () => Rx,
      ProjectInfoTelemetryEvent: () => NX,
      ProjectKind: () => ZP,
      ProjectLanguageServiceStateEvent: () => CX,
      ProjectLoadingFinishEvent: () => xX,
      ProjectLoadingStartEvent: () => IX,
      ProjectService: () => qme,
      ProjectsUpdatedInBackgroundEvent: () => Lz,
      ScriptInfo: () => bme,
      ScriptVersionCache: () => HX,
      Session: () => DOe,
      TextStorage: () => vme,
      ThrottledOperations: () => hme,
      TypingsInstallerAdapter: () => kOe,
      allFilesAreJsOrDts: () => Ame,
      allRootFilesAreJsOrDts: () => Eme,
      asNormalizedPath: () => qwe,
      convertCompilerOptions: () => kz,
      convertFormatOptions: () => gC,
      convertScriptKindName: () => wX,
      convertTypeAcquisition: () => kme,
      convertUserPreferences: () => wme,
      convertWatchOptions: () => gW,
      countEachFileTypes: () => fW,
      createInstallTypingsRequest: () => cme,
      createModuleSpecifierCache: () => Xme,
      createNormalizedPathMap: () => Jwe,
      createPackageJsonCache: () => Yme,
      createSortedArray: () => mme,
      emptyArray: () => Kc,
      findArgument: () => JIe,
      formatDiagnosticToProtocol: () => yW,
      formatMessage: () => $me,
      getBaseConfigFileName: () => TX,
      getDetailWatchInfo: () => zX,
      getLocationInNewDocument: () => the,
      hasArgument: () => qIe,
      hasNoTypeScriptSource: () => Ime,
      indent: () => AP,
      isBackgroundProject: () => hW,
      isConfigFile: () => Jme,
      isConfiguredProject: () => bv,
      isDynamicFileName: () => QP,
      isExternalProject: () => mW,
      isInferredProject: () => _C,
      isInferredProjectName: () => dme,
      isProjectDeferredClose: () => _W,
      makeAutoImportProviderProjectName: () => pme,
      makeAuxiliaryProjectName: () => fme,
      makeInferredProjectName: () => ume,
      maxFileSize: () => AX,
      maxProgramSizeForNonTsFiles: () => EX,
      normalizedPathToPath: () => hC,
      nowString: () => KIe,
      nullCancellationToken: () => gOe,
      nullTypingsInstaller: () => wz,
      protocol: () => gme,
      scriptInfoIsContainedByBackgroundProject: () => Tme,
      scriptInfoIsContainedByDeferredClosedProject: () => Sme,
      stringifyIndented: () => u0,
      toEvent: () => Qme,
      toNormalizedPath: () => Cs,
      tryConvertScriptKindName: () => kX,
      typingsInstaller: () => ame,
      updateProjectIfDirty: () => Am,
    });
    var ame = {};
    x(ame, {
      TypingsInstaller: () => mst,
      getNpmCommandForInstallation: () => Uwe,
      installNpmPackages: () => fst,
      typingsName: () => Hwe,
    });
    var pst = { isEnabled: () => !1, writeLine: gs };
    function jwe(e, t, r, i) {
      try {
        const o = M1(t, Qr(e, "index.d.ts"), { moduleResolution: 2 }, r);
        return o.resolvedModule && o.resolvedModule.resolvedFileName;
      } catch (o) {
        i.isEnabled() &&
          i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);
        return;
      }
    }
    function fst(e, t, r, i) {
      let o = !1;
      for (let s = r.length; s > 0; ) {
        const l = Uwe(e, t, r, s);
        ((s = l.remaining), (o = i(l.command) || o));
      }
      return o;
    }
    function Uwe(e, t, r, i) {
      const o = r.length - i;
      let s,
        l = i;
      for (
        ;
        (s = `${e} install --ignore-scripts ${(l === r.length ? r : r.slice(o, o + l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`),
          !(s.length < 8e3);
      )
        l = l - Math.floor(l / 2);
      return { command: s, remaining: i - l };
    }
    var mst = class {
      constructor(e, t, r, i, o, s = pst) {
        ((this.installTypingHost = e),
          (this.globalCachePath = t),
          (this.safeListPath = r),
          (this.typesMapLocation = i),
          (this.throttleLimit = o),
          (this.log = s),
          (this.packageNameToTypingLocation = new Map()),
          (this.missingTypingsSet = new Set()),
          (this.knownCachesSet = new Set()),
          (this.projectWatchers = new Map()),
          (this.pendingRunRequests = []),
          (this.installRunCount = 1),
          (this.inFlightRequestCount = 0),
          (this.latestDistTag = "latest"),
          this.log.isEnabled() &&
            this.log.writeLine(
              `Global cache location '${t}', safe file path '${r}', types map path ${i}`,
            ),
          this.processCacheLocation(this.globalCachePath));
      }
      handleRequest(e) {
        switch (e.kind) {
          case "discover":
            this.install(e);
            break;
          case "closeProject":
            this.closeProject(e);
            break;
          case "typesRegistry": {
            const t = {};
            this.typesRegistry.forEach((i, o) => {
              t[o] = i;
            });
            const r = { kind: hq, typesRegistry: t };
            this.sendResponse(r);
            break;
          }
          case "installPackage": {
            this.installPackage(e);
            break;
          }
          default:
            C.assertNever(e);
        }
      }
      closeProject(e) {
        this.closeWatchers(e.projectName);
      }
      closeWatchers(e) {
        if (
          (this.log.isEnabled() &&
            this.log.writeLine(`Closing file watchers for project '${e}'`),
          !this.projectWatchers.get(e))
        ) {
          this.log.isEnabled() &&
            this.log.writeLine(`No watchers are registered for project '${e}'`);
          return;
        }
        (this.projectWatchers.delete(e),
          this.sendResponse({ kind: mO, projectName: e, files: [] }),
          this.log.isEnabled() &&
            this.log.writeLine(
              `Closing file watchers for project '${e}' - done.`,
            ));
      }
      install(e) {
        (this.log.isEnabled() &&
          this.log.writeLine(`Got install request${u0(e)}`),
          e.cachePath &&
            (this.log.isEnabled() &&
              this.log.writeLine(
                `Request specifies cache path '${e.cachePath}', loading cached information...`,
              ),
            this.processCacheLocation(e.cachePath)),
          this.safeList === void 0 && this.initializeSafeList());
        const t = Gb.discoverTypings(
          this.installTypingHost,
          this.log.isEnabled() ? (r) => this.log.writeLine(r) : void 0,
          e.fileNames,
          e.projectRootPath,
          this.safeList,
          this.packageNameToTypingLocation,
          e.typeAcquisition,
          e.unresolvedImports,
          this.typesRegistry,
          e.compilerOptions,
        );
        (this.watchFiles(e.projectName, t.filesToWatch),
          t.newTypingNames.length
            ? this.installTypings(
                e,
                e.cachePath || this.globalCachePath,
                t.cachedTypingPaths,
                t.newTypingNames,
              )
            : (this.sendResponse(this.createSetTypings(e, t.cachedTypingPaths)),
              this.log.isEnabled() &&
                this.log.writeLine(
                  "No new typings were requested as a result of typings discovery",
                )));
      }
      installPackage(e) {
        const {
            fileName: t,
            packageName: r,
            projectName: i,
            projectRootPath: o,
            id: s,
          } = e,
          l =
            AN(ci(t), (u) => {
              if (this.installTypingHost.fileExists(Qr(u, "package.json")))
                return u;
            }) || o;
        if (l)
          this.installWorker(-1, [r], l, (u) => {
            const d = u
                ? `Package ${r} installed.`
                : `There was an error installing ${r}.`,
              _ = { kind: t7, projectName: i, id: s, success: u, message: d };
            this.sendResponse(_);
          });
        else {
          const u = {
            kind: t7,
            projectName: i,
            id: s,
            success: !1,
            message: "Could not determine a project root path.",
          };
          this.sendResponse(u);
        }
      }
      initializeSafeList() {
        if (this.typesMapLocation) {
          const e = Gb.loadTypesMap(
            this.installTypingHost,
            this.typesMapLocation,
          );
          if (e) {
            (this.log.writeLine(
              `Loaded safelist from types map file '${this.typesMapLocation}'`,
            ),
              (this.safeList = e));
            return;
          }
          this.log.writeLine(
            `Failed to load safelist from types map file '${this.typesMapLocation}'`,
          );
        }
        this.safeList = Gb.loadSafeList(
          this.installTypingHost,
          this.safeListPath,
        );
      }
      processCacheLocation(e) {
        if (
          (this.log.isEnabled() &&
            this.log.writeLine(`Processing cache location '${e}'`),
          this.knownCachesSet.has(e))
        ) {
          this.log.isEnabled() &&
            this.log.writeLine("Cache location was already processed...");
          return;
        }
        const t = Qr(e, "package.json"),
          r = Qr(e, "package-lock.json");
        if (
          (this.log.isEnabled() &&
            this.log.writeLine(`Trying to find '${t}'...`),
          this.installTypingHost.fileExists(t) &&
            this.installTypingHost.fileExists(r))
        ) {
          const i = JSON.parse(this.installTypingHost.readFile(t)),
            o = JSON.parse(this.installTypingHost.readFile(r));
          if (
            (this.log.isEnabled() &&
              (this.log.writeLine(`Loaded content of '${t}':${u0(i)}`),
              this.log.writeLine(`Loaded content of '${r}':${u0(o)}`)),
            i.devDependencies && (o.packages || o.dependencies))
          )
            for (const s in i.devDependencies) {
              if (
                (o.packages && !Rs(o.packages, `node_modules/${s}`)) ||
                (o.dependencies && !Rs(o.dependencies, s))
              )
                continue;
              const l = Ic(s);
              if (!l) continue;
              const u = jwe(e, l, this.installTypingHost, this.log);
              if (!u) {
                this.missingTypingsSet.add(l);
                continue;
              }
              const d = this.packageNameToTypingLocation.get(l);
              if (d) {
                if (d.typingLocation === u) continue;
                this.log.isEnabled() &&
                  this.log.writeLine(
                    `New typing for package ${l} from '${u}' conflicts with existing typing file '${d}'`,
                  );
              }
              this.log.isEnabled() &&
                this.log.writeLine(
                  `Adding entry into typings cache: '${l}' => '${u}'`,
                );
              const _ =
                  (o.packages && h2(o.packages, `node_modules/${s}`)) ||
                  h2(o.dependencies, s),
                h = _ && _.version;
              if (!h) continue;
              const g = { typingLocation: u, version: new ih(h) };
              this.packageNameToTypingLocation.set(l, g);
            }
        }
        (this.log.isEnabled() &&
          this.log.writeLine(`Finished processing cache location '${e}'`),
          this.knownCachesSet.add(e));
      }
      filterTypings(e) {
        return Ui(e, (t) => {
          const r = GD(t);
          if (this.missingTypingsSet.has(r)) {
            this.log.isEnabled() &&
              this.log.writeLine(
                `'${t}':: '${r}' is in missingTypingsSet - skipping...`,
              );
            return;
          }
          const i = Gb.validatePackageName(t);
          if (i !== Gb.NameValidationResult.Ok) {
            (this.missingTypingsSet.add(r),
              this.log.isEnabled() &&
                this.log.writeLine(
                  Gb.renderPackageNameValidationFailure(i, t),
                ));
            return;
          }
          if (!this.typesRegistry.has(r)) {
            this.log.isEnabled() &&
              this.log.writeLine(
                `'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`,
              );
            return;
          }
          if (
            this.packageNameToTypingLocation.get(r) &&
            Gb.isTypingUpToDate(
              this.packageNameToTypingLocation.get(r),
              this.typesRegistry.get(r),
            )
          ) {
            this.log.isEnabled() &&
              this.log.writeLine(
                `'${t}':: '${r}' already has an up-to-date typing - skipping...`,
              );
            return;
          }
          return r;
        });
      }
      ensurePackageDirectoryExists(e) {
        const t = Qr(e, "package.json");
        (this.log.isEnabled() && this.log.writeLine(`Npm config file: ${t}`),
          this.installTypingHost.fileExists(t) ||
            (this.log.isEnabled() &&
              this.log.writeLine(
                `Npm config file: '${t}' is missing, creating new one...`,
              ),
            this.ensureDirectoryExists(e, this.installTypingHost),
            this.installTypingHost.writeFile(t, '{ "private": true }')));
      }
      installTypings(e, t, r, i) {
        this.log.isEnabled() &&
          this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);
        const o = this.filterTypings(i);
        if (o.length === 0) {
          (this.log.isEnabled() &&
            this.log.writeLine(
              "All typings are known to be missing or invalid - no need to install more typings",
            ),
            this.sendResponse(this.createSetTypings(e, r)));
          return;
        }
        this.ensurePackageDirectoryExists(t);
        const s = this.installRunCount;
        (this.installRunCount++,
          this.sendResponse({
            kind: _q,
            eventId: s,
            typingsInstallerVersion: Le,
            projectName: e.projectName,
          }));
        const l = o.map(Hwe);
        this.installTypingsAsync(s, l, t, (u) => {
          try {
            if (!u) {
              this.log.isEnabled() &&
                this.log.writeLine(
                  `install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`,
                );
              for (const _ of o) this.missingTypingsSet.add(_);
              return;
            }
            this.log.isEnabled() &&
              this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);
            const d = [];
            for (const _ of o) {
              const h = jwe(t, _, this.installTypingHost, this.log);
              if (!h) {
                this.missingTypingsSet.add(_);
                continue;
              }
              const g = this.typesRegistry.get(_),
                E = new ih(g[`ts${ge}`] || g[this.latestDistTag]),
                A = { typingLocation: h, version: E };
              (this.packageNameToTypingLocation.set(_, A), d.push(h));
            }
            (this.log.isEnabled() &&
              this.log.writeLine(`Installed typing files ${JSON.stringify(d)}`),
              this.sendResponse(this.createSetTypings(e, r.concat(d))));
          } finally {
            const d = {
              kind: gq,
              eventId: s,
              projectName: e.projectName,
              packagesToInstall: l,
              installSuccess: u,
              typingsInstallerVersion: Le,
            };
            this.sendResponse(d);
          }
        });
      }
      ensureDirectoryExists(e, t) {
        const r = ci(e);
        (t.directoryExists(r) || this.ensureDirectoryExists(r, t),
          t.directoryExists(e) || t.createDirectory(e));
      }
      watchFiles(e, t) {
        if (!t.length) {
          this.closeWatchers(e);
          return;
        }
        const r = this.projectWatchers.get(e),
          i = new Set(t);
        !r || fg(i, (o) => !r.has(o)) || fg(r, (o) => !i.has(o))
          ? (this.projectWatchers.set(e, i),
            this.sendResponse({ kind: mO, projectName: e, files: t }))
          : this.sendResponse({ kind: mO, projectName: e, files: void 0 });
      }
      createSetTypings(e, t) {
        return {
          projectName: e.projectName,
          typeAcquisition: e.typeAcquisition,
          compilerOptions: e.compilerOptions,
          typings: t,
          unresolvedImports: e.unresolvedImports,
          kind: Z3,
        };
      }
      installTypingsAsync(e, t, r, i) {
        (this.pendingRunRequests.unshift({
          requestId: e,
          packageNames: t,
          cwd: r,
          onRequestCompleted: i,
        }),
          this.executeWithThrottling());
      }
      executeWithThrottling() {
        for (
          ;
          this.inFlightRequestCount < this.throttleLimit &&
          this.pendingRunRequests.length;
        ) {
          this.inFlightRequestCount++;
          const e = this.pendingRunRequests.pop();
          this.installWorker(e.requestId, e.packageNames, e.cwd, (t) => {
            (this.inFlightRequestCount--,
              e.onRequestCompleted(t),
              this.executeWithThrottling());
          });
        }
      }
    };
    function Hwe(e) {
      return `@types/${e}@ts${ge}`;
    }
    var sme = ((e) => (
        (e[(e.terse = 0)] = "terse"),
        (e[(e.normal = 1)] = "normal"),
        (e[(e.requestTime = 2)] = "requestTime"),
        (e[(e.verbose = 3)] = "verbose"),
        e
      ))(sme || {}),
      Kc = mme(),
      lme = ((e) => ((e.Err = "Err"), (e.Info = "Info"), (e.Perf = "Perf"), e))(
        lme || {},
      );
    function cme(e, t, r, i) {
      return {
        projectName: e.getProjectName(),
        fileNames: e.getFileNames(!0, !0).concat(e.getExcludedFiles()),
        compilerOptions: e.getCompilationSettings(),
        typeAcquisition: t,
        unresolvedImports: r,
        projectRootPath: e.getCurrentDirectory(),
        cachePath: i,
        kind: "discover",
      };
    }
    var by;
    ((e) => {
      function t() {
        throw new Error("No Project.");
      }
      e.ThrowNoProject = t;
      function r() {
        throw new Error("The project's language service is disabled.");
      }
      e.ThrowProjectLanguageServiceDisabled = r;
      function i(o, s) {
        throw new Error(
          `Project '${s.getProjectName()}' does not contain document '${o}'`,
        );
      }
      e.ThrowProjectDoesNotContainDocument = i;
    })(by || (by = {}));
    function Cs(e) {
      return ya(e);
    }
    function hC(e, t, r) {
      const i = Cp(e) ? e : To(e, t);
      return r(i);
    }
    function qwe(e) {
      return e;
    }
    function Jwe() {
      const e = new Map();
      return {
        get(t) {
          return e.get(t);
        },
        set(t, r) {
          e.set(t, r);
        },
        contains(t) {
          return e.has(t);
        },
        remove(t) {
          e.delete(t);
        },
      };
    }
    function dme(e) {
      return /dev\/null\/inferredProject\d+\*/.test(e);
    }
    function ume(e) {
      return `/dev/null/inferredProject${e}*`;
    }
    function pme(e) {
      return `/dev/null/autoImportProviderProject${e}*`;
    }
    function fme(e) {
      return `/dev/null/auxiliaryProject${e}*`;
    }
    function mme() {
      return [];
    }
    var hme = class C7e {
        constructor(t, r) {
          ((this.host = t),
            (this.pendingTimeouts = new Map()),
            (this.logger = r.hasLevel(3) ? r : void 0));
        }
        schedule(t, r, i) {
          const o = this.pendingTimeouts.get(t);
          (o && this.host.clearTimeout(o),
            this.pendingTimeouts.set(
              t,
              this.host.setTimeout(C7e.run, r, t, this, i),
            ),
            this.logger &&
              this.logger.info(
                `Scheduled: ${t}${o ? ", Cancelled earlier one" : ""}`,
              ));
        }
        cancel(t) {
          const r = this.pendingTimeouts.get(t);
          return r
            ? (this.host.clearTimeout(r), this.pendingTimeouts.delete(t))
            : !1;
        }
        static run(t, r, i) {
          (r.pendingTimeouts.delete(t),
            r.logger && r.logger.info(`Running: ${t}`),
            i());
        }
      },
      _me = class N7e {
        constructor(t, r, i) {
          ((this.host = t), (this.delay = r), (this.logger = i));
        }
        scheduleCollect() {
          !this.host.gc ||
            this.timerId !== void 0 ||
            (this.timerId = this.host.setTimeout(N7e.run, this.delay, this));
        }
        static run(t) {
          t.timerId = void 0;
          const r = t.logger.hasLevel(2),
            i = r && t.host.getMemoryUsage();
          if ((t.host.gc(), r)) {
            const o = t.host.getMemoryUsage();
            t.logger.perftrc(`GC::before ${i}, after ${o}`);
          }
        }
      };
    function TX(e) {
      const t = Ic(e);
      return t === "tsconfig.json" || t === "jsconfig.json" ? t : void 0;
    }
    var gme = {};
    x(gme, {
      ClassificationType: () => Sq,
      CommandTypes: () => yme,
      CompletionTriggerKind: () => bq,
      IndentStyle: () => $we,
      JsxEmit: () => Qwe,
      ModuleKind: () => Zwe,
      ModuleResolutionKind: () => eOe,
      NewLineKind: () => tOe,
      OrganizeImportsMode: () => vq,
      PollingWatchKind: () => Ywe,
      ScriptTarget: () => nOe,
      SemicolonPreference: () => Tq,
      WatchDirectoryKind: () => Xwe,
      WatchFileKind: () => Kwe,
    });
    var yme = ((e) => (
        (e.JsxClosingTag = "jsxClosingTag"),
        (e.LinkedEditingRange = "linkedEditingRange"),
        (e.Brace = "brace"),
        (e.BraceFull = "brace-full"),
        (e.BraceCompletion = "braceCompletion"),
        (e.GetSpanOfEnclosingComment = "getSpanOfEnclosingComment"),
        (e.Change = "change"),
        (e.Close = "close"),
        (e.Completions = "completions"),
        (e.CompletionInfo = "completionInfo"),
        (e.CompletionsFull = "completions-full"),
        (e.CompletionDetails = "completionEntryDetails"),
        (e.CompletionDetailsFull = "completionEntryDetails-full"),
        (e.CompileOnSaveAffectedFileList = "compileOnSaveAffectedFileList"),
        (e.CompileOnSaveEmitFile = "compileOnSaveEmitFile"),
        (e.Configure = "configure"),
        (e.Definition = "definition"),
        (e.DefinitionFull = "definition-full"),
        (e.DefinitionAndBoundSpan = "definitionAndBoundSpan"),
        (e.DefinitionAndBoundSpanFull = "definitionAndBoundSpan-full"),
        (e.Implementation = "implementation"),
        (e.ImplementationFull = "implementation-full"),
        (e.EmitOutput = "emit-output"),
        (e.Exit = "exit"),
        (e.FileReferences = "fileReferences"),
        (e.FileReferencesFull = "fileReferences-full"),
        (e.Format = "format"),
        (e.Formatonkey = "formatonkey"),
        (e.FormatFull = "format-full"),
        (e.FormatonkeyFull = "formatonkey-full"),
        (e.FormatRangeFull = "formatRange-full"),
        (e.Geterr = "geterr"),
        (e.GeterrForProject = "geterrForProject"),
        (e.SemanticDiagnosticsSync = "semanticDiagnosticsSync"),
        (e.SyntacticDiagnosticsSync = "syntacticDiagnosticsSync"),
        (e.SuggestionDiagnosticsSync = "suggestionDiagnosticsSync"),
        (e.NavBar = "navbar"),
        (e.NavBarFull = "navbar-full"),
        (e.Navto = "navto"),
        (e.NavtoFull = "navto-full"),
        (e.NavTree = "navtree"),
        (e.NavTreeFull = "navtree-full"),
        (e.DocumentHighlights = "documentHighlights"),
        (e.DocumentHighlightsFull = "documentHighlights-full"),
        (e.Open = "open"),
        (e.Quickinfo = "quickinfo"),
        (e.QuickinfoFull = "quickinfo-full"),
        (e.References = "references"),
        (e.ReferencesFull = "references-full"),
        (e.Reload = "reload"),
        (e.Rename = "rename"),
        (e.RenameInfoFull = "rename-full"),
        (e.RenameLocationsFull = "renameLocations-full"),
        (e.Saveto = "saveto"),
        (e.SignatureHelp = "signatureHelp"),
        (e.SignatureHelpFull = "signatureHelp-full"),
        (e.FindSourceDefinition = "findSourceDefinition"),
        (e.Status = "status"),
        (e.TypeDefinition = "typeDefinition"),
        (e.ProjectInfo = "projectInfo"),
        (e.ReloadProjects = "reloadProjects"),
        (e.Unknown = "unknown"),
        (e.OpenExternalProject = "openExternalProject"),
        (e.OpenExternalProjects = "openExternalProjects"),
        (e.CloseExternalProject = "closeExternalProject"),
        (e.SynchronizeProjectList = "synchronizeProjectList"),
        (e.ApplyChangedToOpenFiles = "applyChangedToOpenFiles"),
        (e.UpdateOpen = "updateOpen"),
        (e.EncodedSyntacticClassificationsFull =
          "encodedSyntacticClassifications-full"),
        (e.EncodedSemanticClassificationsFull =
          "encodedSemanticClassifications-full"),
        (e.Cleanup = "cleanup"),
        (e.GetOutliningSpans = "getOutliningSpans"),
        (e.GetOutliningSpansFull = "outliningSpans"),
        (e.TodoComments = "todoComments"),
        (e.Indentation = "indentation"),
        (e.DocCommentTemplate = "docCommentTemplate"),
        (e.CompilerOptionsDiagnosticsFull = "compilerOptionsDiagnostics-full"),
        (e.NameOrDottedNameSpan = "nameOrDottedNameSpan"),
        (e.BreakpointStatement = "breakpointStatement"),
        (e.CompilerOptionsForInferredProjects =
          "compilerOptionsForInferredProjects"),
        (e.GetCodeFixes = "getCodeFixes"),
        (e.GetCodeFixesFull = "getCodeFixes-full"),
        (e.GetCombinedCodeFix = "getCombinedCodeFix"),
        (e.GetCombinedCodeFixFull = "getCombinedCodeFix-full"),
        (e.ApplyCodeActionCommand = "applyCodeActionCommand"),
        (e.GetSupportedCodeFixes = "getSupportedCodeFixes"),
        (e.GetApplicableRefactors = "getApplicableRefactors"),
        (e.GetEditsForRefactor = "getEditsForRefactor"),
        (e.GetMoveToRefactoringFileSuggestions =
          "getMoveToRefactoringFileSuggestions"),
        (e.PreparePasteEdits = "preparePasteEdits"),
        (e.GetPasteEdits = "getPasteEdits"),
        (e.GetEditsForRefactorFull = "getEditsForRefactor-full"),
        (e.OrganizeImports = "organizeImports"),
        (e.OrganizeImportsFull = "organizeImports-full"),
        (e.GetEditsForFileRename = "getEditsForFileRename"),
        (e.GetEditsForFileRenameFull = "getEditsForFileRename-full"),
        (e.ConfigurePlugin = "configurePlugin"),
        (e.SelectionRange = "selectionRange"),
        (e.SelectionRangeFull = "selectionRange-full"),
        (e.ToggleLineComment = "toggleLineComment"),
        (e.ToggleLineCommentFull = "toggleLineComment-full"),
        (e.ToggleMultilineComment = "toggleMultilineComment"),
        (e.ToggleMultilineCommentFull = "toggleMultilineComment-full"),
        (e.CommentSelection = "commentSelection"),
        (e.CommentSelectionFull = "commentSelection-full"),
        (e.UncommentSelection = "uncommentSelection"),
        (e.UncommentSelectionFull = "uncommentSelection-full"),
        (e.PrepareCallHierarchy = "prepareCallHierarchy"),
        (e.ProvideCallHierarchyIncomingCalls =
          "provideCallHierarchyIncomingCalls"),
        (e.ProvideCallHierarchyOutgoingCalls =
          "provideCallHierarchyOutgoingCalls"),
        (e.ProvideInlayHints = "provideInlayHints"),
        (e.WatchChange = "watchChange"),
        (e.MapCode = "mapCode"),
        (e.CopilotRelated = "copilotRelated"),
        e
      ))(yme || {}),
      Kwe = ((e) => (
        (e.FixedPollingInterval = "FixedPollingInterval"),
        (e.PriorityPollingInterval = "PriorityPollingInterval"),
        (e.DynamicPriorityPolling = "DynamicPriorityPolling"),
        (e.FixedChunkSizePolling = "FixedChunkSizePolling"),
        (e.UseFsEvents = "UseFsEvents"),
        (e.UseFsEventsOnParentDirectory = "UseFsEventsOnParentDirectory"),
        e
      ))(Kwe || {}),
      Xwe = ((e) => (
        (e.UseFsEvents = "UseFsEvents"),
        (e.FixedPollingInterval = "FixedPollingInterval"),
        (e.DynamicPriorityPolling = "DynamicPriorityPolling"),
        (e.FixedChunkSizePolling = "FixedChunkSizePolling"),
        e
      ))(Xwe || {}),
      Ywe = ((e) => (
        (e.FixedInterval = "FixedInterval"),
        (e.PriorityInterval = "PriorityInterval"),
        (e.DynamicPriority = "DynamicPriority"),
        (e.FixedChunkSize = "FixedChunkSize"),
        e
      ))(Ywe || {}),
      $we = ((e) => (
        (e.None = "None"),
        (e.Block = "Block"),
        (e.Smart = "Smart"),
        e
      ))($we || {}),
      Qwe = ((e) => (
        (e.None = "none"),
        (e.Preserve = "preserve"),
        (e.ReactNative = "react-native"),
        (e.React = "react"),
        (e.ReactJSX = "react-jsx"),
        (e.ReactJSXDev = "react-jsxdev"),
        e
      ))(Qwe || {}),
      Zwe = ((e) => (
        (e.None = "none"),
        (e.CommonJS = "commonjs"),
        (e.AMD = "amd"),
        (e.UMD = "umd"),
        (e.System = "system"),
        (e.ES6 = "es6"),
        (e.ES2015 = "es2015"),
        (e.ES2020 = "es2020"),
        (e.ES2022 = "es2022"),
        (e.ESNext = "esnext"),
        (e.Node16 = "node16"),
        (e.Node18 = "node18"),
        (e.Node20 = "node20"),
        (e.NodeNext = "nodenext"),
        (e.Preserve = "preserve"),
        e
      ))(Zwe || {}),
      eOe = ((e) => (
        (e.Classic = "classic"),
        (e.Node = "node"),
        (e.NodeJs = "node"),
        (e.Node10 = "node10"),
        (e.Node16 = "node16"),
        (e.NodeNext = "nodenext"),
        (e.Bundler = "bundler"),
        e
      ))(eOe || {}),
      tOe = ((e) => ((e.Crlf = "Crlf"), (e.Lf = "Lf"), e))(tOe || {}),
      nOe = ((e) => (
        (e.ES3 = "es3"),
        (e.ES5 = "es5"),
        (e.ES6 = "es6"),
        (e.ES2015 = "es2015"),
        (e.ES2016 = "es2016"),
        (e.ES2017 = "es2017"),
        (e.ES2018 = "es2018"),
        (e.ES2019 = "es2019"),
        (e.ES2020 = "es2020"),
        (e.ES2021 = "es2021"),
        (e.ES2022 = "es2022"),
        (e.ES2023 = "es2023"),
        (e.ES2024 = "es2024"),
        (e.ESNext = "esnext"),
        (e.JSON = "json"),
        (e.Latest = "esnext"),
        e
      ))(nOe || {}),
      vme = class {
        constructor(e, t, r) {
          ((this.host = e),
            (this.info = t),
            (this.isOpen = !1),
            (this.ownFileText = !1),
            (this.pendingReloadFromDisk = !1),
            (this.version = r || 0));
        }
        getVersion() {
          return this.svc
            ? `SVC-${this.version}-${this.svc.getSnapshotVersion()}`
            : `Text-${this.version}`;
        }
        hasScriptVersionCache_TestOnly() {
          return this.svc !== void 0;
        }
        resetSourceMapInfo() {
          ((this.info.sourceFileLike = void 0),
            this.info.closeSourceMapFileWatcher(),
            (this.info.sourceMapFilePath = void 0),
            (this.info.declarationInfoPath = void 0),
            (this.info.sourceInfos = void 0),
            (this.info.documentPositionMapper = void 0));
        }
        useText(e) {
          ((this.svc = void 0),
            (this.text = e),
            (this.textSnapshot = void 0),
            (this.lineMap = void 0),
            (this.fileSize = void 0),
            this.resetSourceMapInfo(),
            this.version++);
        }
        edit(e, t, r) {
          (this.switchToScriptVersionCache().edit(e, t - e, r),
            (this.ownFileText = !1),
            (this.text = void 0),
            (this.textSnapshot = void 0),
            (this.lineMap = void 0),
            (this.fileSize = void 0),
            this.resetSourceMapInfo());
        }
        reload(e) {
          return (
            C.assert(e !== void 0),
            (this.pendingReloadFromDisk = !1),
            !this.text && this.svc && (this.text = fx(this.svc.getSnapshot())),
            this.text !== e
              ? (this.useText(e), (this.ownFileText = !1), !0)
              : !1
          );
        }
        reloadWithFileText(e) {
          const { text: t, fileSize: r } =
              e || !this.info.isDynamicOrHasMixedContent()
                ? this.getFileTextAndSize(e)
                : { text: "", fileSize: void 0 },
            i = this.reload(t);
          return (
            (this.fileSize = r),
            (this.ownFileText = !e || e === this.info.fileName),
            this.ownFileText &&
              this.info.mTime === Dp.getTime() &&
              (this.info.mTime = (
                this.host.getModifiedTime(this.info.fileName) || Dp
              ).getTime()),
            i
          );
        }
        scheduleReloadIfNeeded() {
          return !this.pendingReloadFromDisk && !this.ownFileText
            ? (this.pendingReloadFromDisk = !0)
            : !1;
        }
        delayReloadFromFileIntoText() {
          this.pendingReloadFromDisk = !0;
        }
        getTelemetryFileSize() {
          return this.fileSize
            ? this.fileSize
            : this.text
              ? this.text.length
              : this.svc
                ? this.svc.getSnapshot().getLength()
                : this.getSnapshot().getLength();
        }
        getSnapshot() {
          var e;
          return (
            ((e = this.tryUseScriptVersionCache()) == null
              ? void 0
              : e.getSnapshot()) ||
            (this.textSnapshot ??
              (this.textSnapshot = n7.fromString(C.checkDefined(this.text))))
          );
        }
        getAbsolutePositionAndLineText(e) {
          const t = this.tryUseScriptVersionCache();
          if (t) return t.getAbsolutePositionAndLineText(e);
          const r = this.getLineMap();
          return e <= r.length
            ? {
                absolutePosition: r[e - 1],
                lineText: this.text.substring(r[e - 1], r[e]),
              }
            : { absolutePosition: this.text.length, lineText: void 0 };
        }
        lineToTextSpan(e) {
          const t = this.tryUseScriptVersionCache();
          if (t) return t.lineToTextSpan(e);
          const r = this.getLineMap(),
            i = r[e],
            o = e + 1 < r.length ? r[e + 1] : this.text.length;
          return ic(i, o);
        }
        lineOffsetToPosition(e, t, r) {
          const i = this.tryUseScriptVersionCache();
          return i
            ? i.lineOffsetToPosition(e, t)
            : aF(this.getLineMap(), e - 1, t - 1, this.text, r);
        }
        positionToLineOffset(e) {
          const t = this.tryUseScriptVersionCache();
          if (t) return t.positionToLineOffset(e);
          const { line: r, character: i } = LR(this.getLineMap(), e);
          return { line: r + 1, offset: i + 1 };
        }
        getFileTextAndSize(e) {
          let t;
          const r = e || this.info.fileName,
            i = () => (t === void 0 ? (t = this.host.readFile(r) || "") : t);
          if (!f1(this.info.fileName)) {
            const o = this.host.getFileSize
              ? this.host.getFileSize(r)
              : i().length;
            if (o > AX)
              return (
                C.assert(!!this.info.containingProjects.length),
                this.info.containingProjects[0].projectService.logger.info(
                  `Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`,
                ),
                this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(
                  r,
                  o,
                ),
                { text: "", fileSize: o }
              );
          }
          return { text: i() };
        }
        switchToScriptVersionCache() {
          return (
            (!this.svc || this.pendingReloadFromDisk) &&
              ((this.svc = HX.fromString(this.getOrLoadText())),
              (this.textSnapshot = void 0),
              this.version++),
            this.svc
          );
        }
        tryUseScriptVersionCache() {
          return (
            (!this.svc || this.pendingReloadFromDisk) && this.getOrLoadText(),
            this.isOpen
              ? (!this.svc &&
                  !this.textSnapshot &&
                  ((this.svc = HX.fromString(C.checkDefined(this.text))),
                  (this.textSnapshot = void 0)),
                this.svc)
              : this.svc
          );
        }
        getOrLoadText() {
          return (
            (this.text === void 0 || this.pendingReloadFromDisk) &&
              (C.assert(
                !this.svc || this.pendingReloadFromDisk,
                "ScriptVersionCache should not be set when reloading from disk",
              ),
              this.reloadWithFileText()),
            this.text
          );
        }
        getLineMap() {
          return (
            C.assert(!this.svc, "ScriptVersionCache should not be set"),
            this.lineMap || (this.lineMap = iI(C.checkDefined(this.text)))
          );
        }
        getLineInfo() {
          const e = this.tryUseScriptVersionCache();
          if (e)
            return {
              getLineCount: () => e.getLineCount(),
              getLineText: (r) =>
                e.getAbsolutePositionAndLineText(r + 1).lineText,
            };
          const t = this.getLineMap();
          return VU(this.text, t);
        }
      };
    function QP(e) {
      return (
        e[0] === "^" ||
        ((e.includes("walkThroughSnippet:/") || e.includes("untitled:/")) &&
          Ic(e)[0] === "^") ||
        (e.includes(":^") && !e.includes(Js))
      );
    }
    var bme = class {
      constructor(e, t, r, i, o, s) {
        ((this.host = e),
          (this.fileName = t),
          (this.scriptKind = r),
          (this.hasMixedContent = i),
          (this.path = o),
          (this.containingProjects = []),
          (this.isDynamic = QP(t)),
          (this.textStorage = new vme(e, this, s)),
          (i || this.isDynamic) && (this.realpath = this.path),
          (this.scriptKind = r || H6(t)));
      }
      isDynamicOrHasMixedContent() {
        return this.hasMixedContent || this.isDynamic;
      }
      isScriptOpen() {
        return this.textStorage.isOpen;
      }
      open(e) {
        ((this.textStorage.isOpen = !0),
          e !== void 0 &&
            this.textStorage.reload(e) &&
            this.markContainingProjectsAsDirty());
      }
      close(e = !0) {
        ((this.textStorage.isOpen = !1),
          e &&
            this.textStorage.scheduleReloadIfNeeded() &&
            this.markContainingProjectsAsDirty());
      }
      getSnapshot() {
        return this.textStorage.getSnapshot();
      }
      ensureRealPath() {
        if (
          this.realpath === void 0 &&
          ((this.realpath = this.path), this.host.realpath)
        ) {
          C.assert(!!this.containingProjects.length);
          const e = this.containingProjects[0],
            t = this.host.realpath(this.path);
          t &&
            ((this.realpath = e.toPath(t)),
            this.realpath !== this.path &&
              e.projectService.realpathToScriptInfos.add(this.realpath, this));
        }
      }
      getRealpathIfDifferent() {
        return this.realpath && this.realpath !== this.path
          ? this.realpath
          : void 0;
      }
      isSymlink() {
        return this.realpath && this.realpath !== this.path;
      }
      getFormatCodeSettings() {
        return this.formatSettings;
      }
      getPreferences() {
        return this.preferences;
      }
      attachToProject(e) {
        const t = !this.isAttached(e);
        return (
          t &&
            (this.containingProjects.push(e),
            e.getCompilerOptions().preserveSymlinks || this.ensureRealPath(),
            e.onFileAddedOrRemoved(this.isSymlink())),
          t
        );
      }
      isAttached(e) {
        switch (this.containingProjects.length) {
          case 0:
            return !1;
          case 1:
            return this.containingProjects[0] === e;
          case 2:
            return (
              this.containingProjects[0] === e ||
              this.containingProjects[1] === e
            );
          default:
            return jn(this.containingProjects, e);
        }
      }
      detachFromProject(e) {
        switch (this.containingProjects.length) {
          case 0:
            return;
          case 1:
            this.containingProjects[0] === e &&
              (e.onFileAddedOrRemoved(this.isSymlink()),
              this.containingProjects.pop());
            break;
          case 2:
            this.containingProjects[0] === e
              ? (e.onFileAddedOrRemoved(this.isSymlink()),
                (this.containingProjects[0] = this.containingProjects.pop()))
              : this.containingProjects[1] === e &&
                (e.onFileAddedOrRemoved(this.isSymlink()),
                this.containingProjects.pop());
            break;
          default:
            mN(this.containingProjects, e) &&
              e.onFileAddedOrRemoved(this.isSymlink());
            break;
        }
      }
      detachAllProjects() {
        for (const e of this.containingProjects) {
          bv(e) &&
            e
              .getCachedDirectoryStructureHost()
              .addOrDeleteFile(this.fileName, this.path, 2);
          const t = e.getRootFilesMap().get(this.path);
          (e.removeFile(this, !1, !1),
            e.onFileAddedOrRemoved(this.isSymlink()),
            t && !_C(e) && e.addMissingFileRoot(t.fileName));
        }
        hi(this.containingProjects);
      }
      getDefaultProject() {
        switch (this.containingProjects.length) {
          case 0:
            return by.ThrowNoProject();
          case 1:
            return _W(this.containingProjects[0]) ||
              hW(this.containingProjects[0])
              ? by.ThrowNoProject()
              : this.containingProjects[0];
          default:
            let e, t, r, i;
            for (let o = 0; o < this.containingProjects.length; o++) {
              const s = this.containingProjects[o];
              if (bv(s)) {
                if (s.deferredClose) continue;
                if (!s.isSourceOfProjectReferenceRedirect(this.fileName)) {
                  if (
                    (i === void 0 &&
                      o !== this.containingProjects.length - 1 &&
                      (i =
                        s.projectService.findDefaultConfiguredProject(this) ||
                        !1),
                    i === s)
                  )
                    return s;
                  r || (r = s);
                }
                e || (e = s);
              } else {
                if (mW(s)) return s;
                !t && _C(s) && (t = s);
              }
            }
            return (i || r || e || t) ?? by.ThrowNoProject();
        }
      }
      registerFileUpdate() {
        for (const e of this.containingProjects)
          e.registerFileUpdate(this.path);
      }
      setOptions(e, t) {
        (e &&
          (this.formatSettings
            ? (this.formatSettings = { ...this.formatSettings, ...e })
            : ((this.formatSettings = r7(this.host.newLine)),
              GE(this.formatSettings, e))),
          t &&
            (this.preferences || (this.preferences = Sm),
            (this.preferences = { ...this.preferences, ...t })));
      }
      getLatestVersion() {
        return (this.textStorage.getSnapshot(), this.textStorage.getVersion());
      }
      saveTo(e) {
        this.host.writeFile(e, fx(this.textStorage.getSnapshot()));
      }
      delayReloadNonMixedContentFile() {
        (C.assert(!this.isDynamicOrHasMixedContent()),
          this.textStorage.delayReloadFromFileIntoText(),
          this.markContainingProjectsAsDirty());
      }
      reloadFromFile(e) {
        return this.textStorage.reloadWithFileText(e)
          ? (this.markContainingProjectsAsDirty(), !0)
          : !1;
      }
      editContent(e, t, r) {
        (this.textStorage.edit(e, t, r), this.markContainingProjectsAsDirty());
      }
      markContainingProjectsAsDirty() {
        for (const e of this.containingProjects) e.markFileAsDirty(this.path);
      }
      isOrphan() {
        return (
          this.deferredDelete ||
          !Ye(this.containingProjects, (e) => !e.isOrphan())
        );
      }
      lineToTextSpan(e) {
        return this.textStorage.lineToTextSpan(e);
      }
      lineOffsetToPosition(e, t, r) {
        return this.textStorage.lineOffsetToPosition(e, t, r);
      }
      positionToLineOffset(e) {
        hst(e);
        const t = this.textStorage.positionToLineOffset(e);
        return (_st(t), t);
      }
      isJavaScript() {
        return this.scriptKind === 1 || this.scriptKind === 2;
      }
      closeSourceMapFileWatcher() {
        this.sourceMapFilePath &&
          !Bo(this.sourceMapFilePath) &&
          (Kf(this.sourceMapFilePath), (this.sourceMapFilePath = void 0));
      }
    };
    function hst(e) {
      (C.assert(typeof e == "number", `Expected position ${e} to be a number.`),
        C.assert(e >= 0, "Expected position to be non-negative."));
    }
    function _st(e) {
      (C.assert(
        typeof e.line == "number",
        `Expected line ${e.line} to be a number.`,
      ),
        C.assert(
          typeof e.offset == "number",
          `Expected offset ${e.offset} to be a number.`,
        ),
        C.assert(
          e.line > 0,
          `Expected line to be non-${e.line === 0 ? "zero" : "negative"}`,
        ),
        C.assert(
          e.offset > 0,
          `Expected offset to be non-${e.offset === 0 ? "zero" : "negative"}`,
        ));
    }
    function Tme(e) {
      return yt(e.containingProjects, hW);
    }
    function Sme(e) {
      return yt(e.containingProjects, _W);
    }
    var ZP = ((e) => (
      (e[(e.Inferred = 0)] = "Inferred"),
      (e[(e.Configured = 1)] = "Configured"),
      (e[(e.External = 2)] = "External"),
      (e[(e.AutoImportProvider = 3)] = "AutoImportProvider"),
      (e[(e.Auxiliary = 4)] = "Auxiliary"),
      e
    ))(ZP || {});
    function fW(e, t = !1) {
      const r = {
        js: 0,
        jsSize: 0,
        jsx: 0,
        jsxSize: 0,
        ts: 0,
        tsSize: 0,
        tsx: 0,
        tsxSize: 0,
        dts: 0,
        dtsSize: 0,
        deferred: 0,
        deferredSize: 0,
      };
      for (const i of e) {
        const o = t ? i.textStorage.getTelemetryFileSize() : 0;
        switch (i.scriptKind) {
          case 1:
            ((r.js += 1), (r.jsSize += o));
            break;
          case 2:
            ((r.jsx += 1), (r.jsxSize += o));
            break;
          case 3:
            ad(i.fileName)
              ? ((r.dts += 1), (r.dtsSize += o))
              : ((r.ts += 1), (r.tsSize += o));
            break;
          case 4:
            ((r.tsx += 1), (r.tsxSize += o));
            break;
          case 7:
            ((r.deferred += 1), (r.deferredSize += o));
            break;
        }
      }
      return r;
    }
    function gst(e) {
      const t = fW(e.getScriptInfos());
      return t.js > 0 && t.ts === 0 && t.tsx === 0;
    }
    function Eme(e) {
      const t = fW(e.getRootScriptInfos());
      return t.ts === 0 && t.tsx === 0;
    }
    function Ame(e) {
      const t = fW(e.getScriptInfos());
      return t.ts === 0 && t.tsx === 0;
    }
    function Ime(e) {
      return !e.some((t) => (El(t, ".ts") && !ad(t)) || El(t, ".tsx"));
    }
    function xme(e) {
      return e.generatedFilePath !== void 0;
    }
    function rOe(e, t) {
      if (e === t || ((e || Kc).length === 0 && (t || Kc).length === 0))
        return !0;
      const r = new Map();
      let i = 0;
      for (const o of e) r.get(o) !== !0 && (r.set(o, !0), i++);
      for (const o of t) {
        const s = r.get(o);
        if (s === void 0) return !1;
        s === !0 && (r.set(o, !1), i--);
      }
      return i === 0;
    }
    function yst(e, t) {
      return (
        e.enable !== t.enable ||
        !rOe(e.include, t.include) ||
        !rOe(e.exclude, t.exclude)
      );
    }
    function vst(e, t) {
      return xb(e) !== xb(t);
    }
    function bst(e, t) {
      return e === t ? !1 : !Qp(e, t);
    }
    var Rx = class M7e {
      constructor(t, r, i, o, s, l, u, d, _, h) {
        switch (
          ((this.projectKind = r),
          (this.projectService = i),
          (this.compilerOptions = l),
          (this.compileOnSaveEnabled = u),
          (this.watchOptions = d),
          (this.rootFilesMap = new Map()),
          (this.plugins = []),
          (this.cachedUnresolvedImportsPerFile = new Map()),
          (this.hasAddedorRemovedFiles = !1),
          (this.hasAddedOrRemovedSymlinks = !1),
          (this.lastReportedVersion = 0),
          (this.projectProgramVersion = 0),
          (this.projectStateVersion = 0),
          (this.initialLoadPending = !1),
          (this.dirty = !1),
          (this.typingFiles = Kc),
          (this.moduleSpecifierCache = Xme(this)),
          (this.createHash = ia(
            this.projectService.host,
            this.projectService.host.createHash,
          )),
          (this.globalCacheResolutionModuleName =
            Gb.nonRelativeModuleNameForTypingCache),
          (this.updateFromProjectInProgress = !1),
          i.logger.info(
            `Creating ${ZP[r]}Project: ${t}, currentDirectory: ${h}`,
          ),
          (this.projectName = t),
          (this.directoryStructureHost = _),
          (this.currentDirectory =
            this.projectService.getNormalizedAbsolutePath(h)),
          (this.getCanonicalFileName = this.projectService.toCanonicalFileName),
          (this.jsDocParsingMode = this.projectService.jsDocParsingMode),
          (this.cancellationToken = new tue(
            this.projectService.cancellationToken,
            this.projectService.throttleWaitMilliseconds,
          )),
          this.compilerOptions
            ? (o ||
                xb(this.compilerOptions) ||
                this.projectService.hasDeferredExtension()) &&
              (this.compilerOptions.allowNonTsExtensions = !0)
            : ((this.compilerOptions = oz()),
              (this.compilerOptions.allowNonTsExtensions = !0),
              (this.compilerOptions.allowJs = !0)),
          i.serverMode)
        ) {
          case 0:
            this.languageServiceEnabled = !0;
            break;
          case 1:
            ((this.languageServiceEnabled = !0),
              (this.compilerOptions.noResolve = !0),
              (this.compilerOptions.types = []));
            break;
          case 2:
            ((this.languageServiceEnabled = !1),
              (this.compilerOptions.noResolve = !0),
              (this.compilerOptions.types = []));
            break;
          default:
            C.assertNever(i.serverMode);
        }
        this.setInternalCompilerOptionsForEmittingJsFiles();
        const g = this.projectService.host;
        (this.projectService.logger.loggingEnabled()
          ? (this.trace = (E) => this.writeLog(E))
          : g.trace && (this.trace = (E) => g.trace(E)),
          (this.realpath = ia(g, g.realpath)),
          (this.preferNonRecursiveWatch =
            this.projectService.canUseWatchEvents || g.preferNonRecursiveWatch),
          (this.resolutionCache = FH(this, this.currentDirectory, !0)),
          (this.languageService = nue(
            this,
            this.projectService.documentRegistry,
            this.projectService.serverMode,
          )),
          s && this.disableLanguageService(s),
          this.markAsDirty(),
          hW(this) ||
            (this.projectService.pendingEnsureProjectForOpenFiles = !0),
          this.projectService.onProjectCreation(this));
      }
      getRedirectFromSourceFile(t) {}
      isNonTsProject() {
        return (Am(this), Ame(this));
      }
      isJsOnlyProject() {
        return (Am(this), gst(this));
      }
      static resolveModule(t, r, i, o) {
        return M7e.importServicePluginSync({ name: t }, [r], i, o)
          .resolvedModule;
      }
      static importServicePluginSync(t, r, i, o) {
        C.assertIsDefined(i.require);
        let s, l;
        for (const u of r) {
          const d = Bd(i.resolvePath(Qr(u, "node_modules")));
          o(`Loading ${t.name} from ${u} (resolved to ${d})`);
          const _ = i.require(d, t.name);
          if (!_.error) {
            l = _.module;
            break;
          }
          const h = _.error.stack || _.error.message || JSON.stringify(_.error);
          (s ?? (s = [])).push(
            `Failed to load module '${t.name}' from ${d}: ${h}`,
          );
        }
        return { pluginConfigEntry: t, resolvedModule: l, errorLogs: s };
      }
      static async importServicePluginAsync(t, r, i, o) {
        C.assertIsDefined(i.importPlugin);
        let s, l;
        for (const u of r) {
          const d = Qr(u, "node_modules");
          o(`Dynamically importing ${t.name} from ${u} (resolved to ${d})`);
          let _;
          try {
            _ = await i.importPlugin(d, t.name);
          } catch (g) {
            _ = { module: void 0, error: g };
          }
          if (!_.error) {
            l = _.module;
            break;
          }
          const h = _.error.stack || _.error.message || JSON.stringify(_.error);
          (s ?? (s = [])).push(
            `Failed to dynamically import module '${t.name}' from ${d}: ${h}`,
          );
        }
        return { pluginConfigEntry: t, resolvedModule: l, errorLogs: s };
      }
      isKnownTypesPackageName(t) {
        return this.projectService.typingsInstaller.isKnownTypesPackageName(t);
      }
      installPackage(t) {
        return this.projectService.typingsInstaller.installPackage({
          ...t,
          projectName: this.projectName,
          projectRootPath: this.toPath(this.currentDirectory),
        });
      }
      getGlobalTypingsCacheLocation() {
        return this.getTypeAcquisition().enable
          ? this.projectService.typingsInstaller.globalTypingsCacheLocation
          : void 0;
      }
      getSymlinkCache() {
        return (
          this.symlinks ||
            (this.symlinks = LV(
              this.getCurrentDirectory(),
              this.getCanonicalFileName,
            )),
          this.program &&
            !this.symlinks.hasProcessedResolutions() &&
            this.symlinks.setSymlinksFromResolutions(
              this.program.forEachResolvedModule,
              this.program.forEachResolvedTypeReferenceDirective,
              this.program.getAutomaticTypeDirectiveResolutions(),
            ),
          this.symlinks
        );
      }
      getCompilationSettings() {
        return this.compilerOptions;
      }
      getCompilerOptions() {
        return this.getCompilationSettings();
      }
      getNewLine() {
        return this.projectService.host.newLine;
      }
      getProjectVersion() {
        return this.projectStateVersion.toString();
      }
      getProjectReferences() {}
      getScriptFileNames() {
        if (!this.rootFilesMap.size) return ae;
        let t;
        return (
          this.rootFilesMap.forEach((r) => {
            (this.languageServiceEnabled ||
              (r.info && r.info.isScriptOpen())) &&
              (t || (t = [])).push(r.fileName);
          }),
          Xr(t, this.typingFiles) || ae
        );
      }
      getOrCreateScriptInfoAndAttachToProject(t) {
        const r = this.projectService.getOrCreateScriptInfoNotOpenedByClient(
          t,
          this.currentDirectory,
          this.directoryStructureHost,
          !1,
        );
        if (r) {
          const i = this.rootFilesMap.get(r.path);
          (i && i.info !== r && (i.info = r), r.attachToProject(this));
        }
        return r;
      }
      getScriptKind(t) {
        const r = this.projectService.getScriptInfoForPath(this.toPath(t));
        return r && r.scriptKind;
      }
      getScriptVersion(t) {
        const r = this.projectService.getOrCreateScriptInfoNotOpenedByClient(
          t,
          this.currentDirectory,
          this.directoryStructureHost,
          !1,
        );
        return r && r.getLatestVersion();
      }
      getScriptSnapshot(t) {
        const r = this.getOrCreateScriptInfoAndAttachToProject(t);
        if (r) return r.getSnapshot();
      }
      getCancellationToken() {
        return this.cancellationToken;
      }
      getCurrentDirectory() {
        return this.currentDirectory;
      }
      getDefaultLibFileName() {
        const t = ci(ya(this.projectService.getExecutingFilePath()));
        return Qr(t, C2(this.compilerOptions));
      }
      useCaseSensitiveFileNames() {
        return this.projectService.host.useCaseSensitiveFileNames;
      }
      readDirectory(t, r, i, o, s) {
        return this.directoryStructureHost.readDirectory(t, r, i, o, s);
      }
      readFile(t) {
        return this.projectService.host.readFile(t);
      }
      writeFile(t, r) {
        return this.projectService.host.writeFile(t, r);
      }
      fileExists(t) {
        const r = this.toPath(t);
        return (
          !!this.projectService.getScriptInfoForPath(r) ||
          (!this.isWatchedMissingFile(r) &&
            this.directoryStructureHost.fileExists(t))
        );
      }
      resolveModuleNameLiterals(t, r, i, o, s, l) {
        return this.resolutionCache.resolveModuleNameLiterals(t, r, i, o, s, l);
      }
      getModuleResolutionCache() {
        return this.resolutionCache.getModuleResolutionCache();
      }
      resolveTypeReferenceDirectiveReferences(t, r, i, o, s, l) {
        return this.resolutionCache.resolveTypeReferenceDirectiveReferences(
          t,
          r,
          i,
          o,
          s,
          l,
        );
      }
      resolveLibrary(t, r, i, o) {
        return this.resolutionCache.resolveLibrary(t, r, i, o);
      }
      directoryExists(t) {
        return this.directoryStructureHost.directoryExists(t);
      }
      getDirectories(t) {
        return this.directoryStructureHost.getDirectories(t);
      }
      getCachedDirectoryStructureHost() {}
      toPath(t) {
        return ks(
          t,
          this.currentDirectory,
          this.projectService.toCanonicalFileName,
        );
      }
      watchDirectoryOfFailedLookupLocation(t, r, i) {
        return this.projectService.watchFactory.watchDirectory(
          t,
          r,
          i,
          this.projectService.getWatchOptions(this),
          sd.FailedLookupLocations,
          this,
        );
      }
      watchAffectingFileLocation(t, r) {
        return this.projectService.watchFactory.watchFile(
          t,
          r,
          2e3,
          this.projectService.getWatchOptions(this),
          sd.AffectingFileLocation,
          this,
        );
      }
      clearInvalidateResolutionOfFailedLookupTimer() {
        return this.projectService.throttledOperations.cancel(
          `${this.getProjectName()}FailedLookupInvalidation`,
        );
      }
      scheduleInvalidateResolutionsOfFailedLookupLocations() {
        this.projectService.throttledOperations.schedule(
          `${this.getProjectName()}FailedLookupInvalidation`,
          1e3,
          () => {
            this.resolutionCache.invalidateResolutionsOfFailedLookupLocations() &&
              this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(
                this,
              );
          },
        );
      }
      invalidateResolutionsOfFailedLookupLocations() {
        this.clearInvalidateResolutionOfFailedLookupTimer() &&
          this.resolutionCache.invalidateResolutionsOfFailedLookupLocations() &&
          (this.markAsDirty(),
          this.projectService.delayEnsureProjectForOpenFiles());
      }
      onInvalidatedResolution() {
        this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(
          this,
        );
      }
      watchTypeRootsDirectory(t, r, i) {
        return this.projectService.watchFactory.watchDirectory(
          t,
          r,
          i,
          this.projectService.getWatchOptions(this),
          sd.TypeRoots,
          this,
        );
      }
      hasChangedAutomaticTypeDirectiveNames() {
        return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames();
      }
      onChangedAutomaticTypeDirectiveNames() {
        this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(
          this,
        );
      }
      fileIsOpen(t) {
        return this.projectService.openFiles.has(t);
      }
      writeLog(t) {
        this.projectService.logger.info(t);
      }
      log(t) {
        this.writeLog(t);
      }
      error(t) {
        this.projectService.logger.msg(t, "Err");
      }
      setInternalCompilerOptionsForEmittingJsFiles() {
        (this.projectKind === 0 || this.projectKind === 2) &&
          (this.compilerOptions.noEmitForJsFiles = !0);
      }
      getGlobalProjectErrors() {
        return Un(this.projectErrors, (t) => !t.file) || Kc;
      }
      getAllProjectErrors() {
        return this.projectErrors || Kc;
      }
      setProjectErrors(t) {
        this.projectErrors = t;
      }
      getLanguageService(t = !0) {
        return (t && Am(this), this.languageService);
      }
      getSourceMapper() {
        return this.getLanguageService().getSourceMapper();
      }
      clearSourceMapperCache() {
        this.languageService.clearSourceMapperCache();
      }
      getDocumentPositionMapper(t, r) {
        return this.projectService.getDocumentPositionMapper(this, t, r);
      }
      getSourceFileLike(t) {
        return this.projectService.getSourceFileLike(t, this);
      }
      shouldEmitFile(t) {
        return (
          t &&
          !t.isDynamicOrHasMixedContent() &&
          !this.program.isSourceOfProjectReferenceRedirect(t.path)
        );
      }
      getCompileOnSaveAffectedFileList(t) {
        return this.languageServiceEnabled
          ? (Am(this),
            (this.builderState = _h.create(
              this.program,
              this.builderState,
              !0,
            )),
            Ui(
              _h.getFilesAffectedBy(
                this.builderState,
                this.program,
                t.path,
                this.cancellationToken,
                this.projectService.host,
              ),
              (r) =>
                this.shouldEmitFile(
                  this.projectService.getScriptInfoForPath(r.path),
                )
                  ? r.fileName
                  : void 0,
            ))
          : [];
      }
      emitFile(t, r) {
        if (!this.languageServiceEnabled || !this.shouldEmitFile(t))
          return { emitSkipped: !0, diagnostics: Kc };
        const {
          emitSkipped: i,
          diagnostics: o,
          outputFiles: s,
        } = this.getLanguageService().getEmitOutput(t.fileName);
        if (!i) {
          for (const l of s) {
            const u = To(l.name, this.currentDirectory);
            r(u, l.text, l.writeByteOrderMark);
          }
          if (this.builderState && _p(this.compilerOptions)) {
            const l = s.filter((u) => ad(u.name));
            if (l.length === 1) {
              const u = this.program.getSourceFile(t.fileName),
                d = this.projectService.host.createHash
                  ? this.projectService.host.createHash(l[0].text)
                  : S2(l[0].text);
              _h.updateSignatureOfFile(this.builderState, d, u.resolvedPath);
            }
          }
        }
        return { emitSkipped: i, diagnostics: o };
      }
      enableLanguageService() {
        this.languageServiceEnabled ||
          this.projectService.serverMode === 2 ||
          ((this.languageServiceEnabled = !0),
          (this.lastFileExceededProgramSize = void 0),
          this.projectService.onUpdateLanguageServiceStateForProject(this, !0));
      }
      cleanupProgram() {
        if (this.program) {
          for (const t of this.program.getSourceFiles())
            this.detachScriptInfoIfNotRoot(t.fileName);
          (this.program.forEachResolvedProjectReference((t) =>
            this.detachScriptInfoFromProject(t.sourceFile.fileName),
          ),
            (this.program = void 0));
        }
      }
      disableLanguageService(t) {
        this.languageServiceEnabled &&
          (C.assert(this.projectService.serverMode !== 2),
          this.languageService.cleanupSemanticCache(),
          (this.languageServiceEnabled = !1),
          this.cleanupProgram(),
          (this.lastFileExceededProgramSize = t),
          (this.builderState = void 0),
          this.autoImportProviderHost && this.autoImportProviderHost.close(),
          (this.autoImportProviderHost = void 0),
          this.resolutionCache.closeTypeRootsWatch(),
          this.clearGeneratedFileWatch(),
          this.projectService.verifyDocumentRegistry(),
          this.projectService.onUpdateLanguageServiceStateForProject(this, !1));
      }
      getProjectName() {
        return this.projectName;
      }
      removeLocalTypingsFromTypeAcquisition(t) {
        return !t.enable || !t.include
          ? t
          : { ...t, include: this.removeExistingTypings(t.include) };
      }
      getExternalFiles(t) {
        return xp(
          Ki(this.plugins, (r) => {
            if (typeof r.module.getExternalFiles == "function")
              try {
                return r.module.getExternalFiles(this, t || 0);
              } catch (i) {
                (this.projectService.logger.info(
                  `A plugin threw an exception in getExternalFiles: ${i}`,
                ),
                  i.stack && this.projectService.logger.info(i.stack));
              }
          }),
        );
      }
      getSourceFile(t) {
        if (this.program) return this.program.getSourceFileByPath(t);
      }
      getSourceFileOrConfigFile(t) {
        const r = this.program.getCompilerOptions();
        return t === r.configFilePath ? r.configFile : this.getSourceFile(t);
      }
      close() {
        var t;
        (this.typingsCache &&
          this.projectService.typingsInstaller.onProjectClosed(this),
          (this.typingsCache = void 0),
          this.closeWatchingTypingLocations(),
          this.cleanupProgram(),
          Ye(this.externalFiles, (r) => this.detachScriptInfoIfNotRoot(r)),
          this.rootFilesMap.forEach((r) => {
            var i;
            return (i = r.info) == null ? void 0 : i.detachFromProject(this);
          }),
          (this.projectService.pendingEnsureProjectForOpenFiles = !0),
          (this.rootFilesMap = void 0),
          (this.externalFiles = void 0),
          (this.program = void 0),
          (this.builderState = void 0),
          this.resolutionCache.clear(),
          (this.resolutionCache = void 0),
          (this.cachedUnresolvedImportsPerFile = void 0),
          (t = this.packageJsonWatches) == null ||
            t.forEach((r) => {
              (r.projects.delete(this), r.close());
            }),
          (this.packageJsonWatches = void 0),
          this.moduleSpecifierCache.clear(),
          (this.moduleSpecifierCache = void 0),
          (this.directoryStructureHost = void 0),
          (this.exportMapCache = void 0),
          (this.projectErrors = void 0),
          (this.plugins.length = 0),
          this.missingFilesMap &&
            (hp(this.missingFilesMap, Bm), (this.missingFilesMap = void 0)),
          this.clearGeneratedFileWatch(),
          this.clearInvalidateResolutionOfFailedLookupTimer(),
          this.autoImportProviderHost && this.autoImportProviderHost.close(),
          (this.autoImportProviderHost = void 0),
          this.noDtsResolutionProject && this.noDtsResolutionProject.close(),
          (this.noDtsResolutionProject = void 0),
          this.languageService.dispose(),
          (this.languageService = void 0));
      }
      detachScriptInfoIfNotRoot(t) {
        const r = this.projectService.getScriptInfo(t);
        r && !this.isRoot(r) && r.detachFromProject(this);
      }
      isClosed() {
        return this.rootFilesMap === void 0;
      }
      hasRoots() {
        var t;
        return !!((t = this.rootFilesMap) != null && t.size);
      }
      isOrphan() {
        return !1;
      }
      getRootFiles() {
        return (
          this.rootFilesMap &&
          Co(
            nh(this.rootFilesMap.values(), (t) => {
              var r;
              return (r = t.info) == null ? void 0 : r.fileName;
            }),
          )
        );
      }
      getRootFilesMap() {
        return this.rootFilesMap;
      }
      getRootScriptInfos() {
        return Co(nh(this.rootFilesMap.values(), (t) => t.info));
      }
      getScriptInfos() {
        return this.languageServiceEnabled
          ? Vt(this.program.getSourceFiles(), (t) => {
              const r = this.projectService.getScriptInfoForPath(
                t.resolvedPath,
              );
              return (
                C.assert(
                  !!r,
                  "getScriptInfo",
                  () =>
                    `scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`,
                ),
                r
              );
            })
          : this.getRootScriptInfos();
      }
      getExcludedFiles() {
        return Kc;
      }
      getFileNames(t, r) {
        if (!this.program) return [];
        if (!this.languageServiceEnabled) {
          let o = this.getRootFiles();
          if (this.compilerOptions) {
            const s = rue(this.compilerOptions);
            s && (o || (o = [])).push(s);
          }
          return o;
        }
        const i = [];
        for (const o of this.program.getSourceFiles())
          (t && this.program.isSourceFileFromExternalLibrary(o)) ||
            i.push(o.fileName);
        if (!r) {
          const o = this.program.getCompilerOptions().configFile;
          if (o && (i.push(o.fileName), o.extendedSourceFiles))
            for (const s of o.extendedSourceFiles) i.push(s);
        }
        return i;
      }
      getFileNamesWithRedirectInfo(t) {
        return this.getFileNames().map((r) => ({
          fileName: r,
          isSourceOfProjectReferenceRedirect:
            t && this.isSourceOfProjectReferenceRedirect(r),
        }));
      }
      hasConfigFile(t) {
        if (this.program && this.languageServiceEnabled) {
          const r = this.program.getCompilerOptions().configFile;
          if (r) {
            if (t === r.fileName) return !0;
            if (r.extendedSourceFiles) {
              for (const i of r.extendedSourceFiles) if (t === i) return !0;
            }
          }
        }
        return !1;
      }
      containsScriptInfo(t) {
        if (this.isRoot(t)) return !0;
        if (!this.program) return !1;
        const r = this.program.getSourceFileByPath(t.path);
        return !!r && r.resolvedPath === t.path;
      }
      containsFile(t, r) {
        const i = this.projectService.getScriptInfoForNormalizedPath(t);
        return i && (i.isScriptOpen() || !r) ? this.containsScriptInfo(i) : !1;
      }
      isRoot(t) {
        var r, i;
        return (
          ((i = (r = this.rootFilesMap) == null ? void 0 : r.get(t.path)) ==
          null
            ? void 0
            : i.info) === t
        );
      }
      addRoot(t, r) {
        (C.assert(!this.isRoot(t)),
          this.rootFilesMap.set(t.path, { fileName: r || t.fileName, info: t }),
          t.attachToProject(this),
          this.markAsDirty());
      }
      addMissingFileRoot(t) {
        const r = this.projectService.toPath(t);
        (this.rootFilesMap.set(r, { fileName: t }), this.markAsDirty());
      }
      removeFile(t, r, i) {
        (this.isRoot(t) && this.removeRoot(t),
          r
            ? this.resolutionCache.removeResolutionsOfFile(t.path)
            : this.resolutionCache.invalidateResolutionOfFile(t.path),
          this.cachedUnresolvedImportsPerFile.delete(t.path),
          i && t.detachFromProject(this),
          this.markAsDirty());
      }
      registerFileUpdate(t) {
        (this.updatedFileNames || (this.updatedFileNames = new Set())).add(t);
      }
      markFileAsDirty(t) {
        (this.markAsDirty(),
          this.exportMapCache &&
            !this.exportMapCache.isEmpty() &&
            (
              this.changedFilesForExportMapCache ||
              (this.changedFilesForExportMapCache = new Set())
            ).add(t));
      }
      markAsDirty() {
        this.dirty || (this.projectStateVersion++, (this.dirty = !0));
      }
      markAutoImportProviderAsDirty() {
        var t;
        (this.autoImportProviderHost || (this.autoImportProviderHost = void 0),
          (t = this.autoImportProviderHost) == null || t.markAsDirty());
      }
      onAutoImportProviderSettingsChanged() {
        this.markAutoImportProviderAsDirty();
      }
      onPackageJsonChange() {
        (this.moduleSpecifierCache.clear(),
          this.markAutoImportProviderAsDirty());
      }
      onFileAddedOrRemoved(t) {
        ((this.hasAddedorRemovedFiles = !0),
          t && (this.hasAddedOrRemovedSymlinks = !0));
      }
      onDiscoveredSymlink() {
        this.hasAddedOrRemovedSymlinks = !0;
      }
      onReleaseOldSourceFile(t, r, i, o) {
        (!o || (t.resolvedPath === t.path && o.resolvedPath !== t.path)) &&
          this.detachScriptInfoFromProject(t.fileName, i);
      }
      updateFromProject() {
        Am(this);
      }
      updateGraph() {
        var t, r;
        ((t = xr) == null ||
          t.push(xr.Phase.Session, "updateGraph", {
            name: this.projectName,
            kind: ZP[this.projectKind],
          }),
          this.resolutionCache.startRecordingFilesWithChangedResolutions());
        const i = this.updateGraphWorker(),
          o = this.hasAddedorRemovedFiles;
        ((this.hasAddedorRemovedFiles = !1),
          (this.hasAddedOrRemovedSymlinks = !1));
        const s =
          this.resolutionCache.finishRecordingFilesWithChangedResolutions() ||
          Kc;
        for (const u of s) this.cachedUnresolvedImportsPerFile.delete(u);
        this.languageServiceEnabled &&
        this.projectService.serverMode === 0 &&
        !this.isOrphan()
          ? ((i || s.length) &&
              (this.lastCachedUnresolvedImportsList = Tst(
                this.program,
                this.cachedUnresolvedImportsPerFile,
              )),
            this.enqueueInstallTypingsForProject(o))
          : (this.lastCachedUnresolvedImportsList = void 0);
        const l = this.projectProgramVersion === 0 && i;
        return (
          i && this.projectProgramVersion++,
          o && this.markAutoImportProviderAsDirty(),
          l && this.getPackageJsonAutoImportProvider(),
          (r = xr) == null || r.pop(),
          !i
        );
      }
      enqueueInstallTypingsForProject(t) {
        const r = this.getTypeAcquisition();
        if (!r || !r.enable || this.projectService.typingsInstaller === wz)
          return;
        const i = this.typingsCache;
        (t ||
          !i ||
          yst(r, i.typeAcquisition) ||
          vst(this.getCompilationSettings(), i.compilerOptions) ||
          bst(this.lastCachedUnresolvedImportsList, i.unresolvedImports)) &&
          ((this.typingsCache = {
            compilerOptions: this.getCompilationSettings(),
            typeAcquisition: r,
            unresolvedImports: this.lastCachedUnresolvedImportsList,
          }),
          this.projectService.typingsInstaller.enqueueInstallTypingsRequest(
            this,
            r,
            this.lastCachedUnresolvedImportsList,
          ));
      }
      updateTypingFiles(t, r, i, o) {
        this.typingsCache = {
          compilerOptions: t,
          typeAcquisition: r,
          unresolvedImports: i,
        };
        const s = !r || !r.enable ? Kc : xp(o);
        H8(
          s,
          this.typingFiles,
          xR(!this.useCaseSensitiveFileNames()),
          gs,
          (l) => this.detachScriptInfoFromProject(l),
        ) &&
          ((this.typingFiles = s),
          this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(
            this.cachedUnresolvedImportsPerFile,
          ),
          this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(
            this,
          ));
      }
      closeWatchingTypingLocations() {
        (this.typingWatchers && hp(this.typingWatchers, Bm),
          (this.typingWatchers = void 0));
      }
      onTypingInstallerWatchInvoke() {
        ((this.typingWatchers.isInvoked = !0),
          this.projectService.updateTypingsForProject({
            projectName: this.getProjectName(),
            kind: e7,
          }));
      }
      watchTypingLocations(t) {
        if (!t) {
          this.typingWatchers.isInvoked = !1;
          return;
        }
        if (!t.length) {
          this.closeWatchingTypingLocations();
          return;
        }
        const r = new Map(this.typingWatchers);
        (this.typingWatchers || (this.typingWatchers = new Map()),
          (this.typingWatchers.isInvoked = !1));
        const i = (o, s) => {
          const l = this.toPath(o);
          if ((r.delete(l), !this.typingWatchers.has(l))) {
            const u =
              s === "FileWatcher"
                ? sd.TypingInstallerLocationFile
                : sd.TypingInstallerLocationDirectory;
            this.typingWatchers.set(
              l,
              lO(l)
                ? s === "FileWatcher"
                  ? this.projectService.watchFactory.watchFile(
                      o,
                      () =>
                        this.typingWatchers.isInvoked
                          ? this.writeLog("TypingWatchers already invoked")
                          : this.onTypingInstallerWatchInvoke(),
                      2e3,
                      this.projectService.getWatchOptions(this),
                      u,
                      this,
                    )
                  : this.projectService.watchFactory.watchDirectory(
                      o,
                      (d) => {
                        if (this.typingWatchers.isInvoked)
                          return this.writeLog(
                            "TypingWatchers already invoked",
                          );
                        if (!El(d, ".json"))
                          return this.writeLog(
                            "Ignoring files that are not *.json",
                          );
                        if (
                          Zg(
                            d,
                            Qr(
                              this.projectService.typingsInstaller
                                .globalTypingsCacheLocation,
                              "package.json",
                            ),
                            !this.useCaseSensitiveFileNames(),
                          )
                        )
                          return this.writeLog(
                            "Ignoring package.json change at global typings location",
                          );
                        this.onTypingInstallerWatchInvoke();
                      },
                      1,
                      this.projectService.getWatchOptions(this),
                      u,
                      this,
                    )
                : (this.writeLog(
                    `Skipping watcher creation at ${o}:: ${zX(u, this)}`,
                  ),
                  XD),
            );
          }
        };
        for (const o of t) {
          const s = Ic(o);
          if (s === "package.json" || s === "bower.json") {
            i(o, "FileWatcher");
            continue;
          }
          if (
            um(
              this.currentDirectory,
              o,
              this.currentDirectory,
              !this.useCaseSensitiveFileNames(),
            )
          ) {
            const l = o.indexOf(Js, this.currentDirectory.length + 1);
            i(l !== -1 ? o.substr(0, l) : o, "DirectoryWatcher");
            continue;
          }
          if (
            um(
              this.projectService.typingsInstaller.globalTypingsCacheLocation,
              o,
              this.currentDirectory,
              !this.useCaseSensitiveFileNames(),
            )
          ) {
            i(
              this.projectService.typingsInstaller.globalTypingsCacheLocation,
              "DirectoryWatcher",
            );
            continue;
          }
          i(o, "DirectoryWatcher");
        }
        r.forEach((o, s) => {
          (o.close(), this.typingWatchers.delete(s));
        });
      }
      getCurrentProgram() {
        return this.program;
      }
      removeExistingTypings(t) {
        if (!t.length) return t;
        const r = t3(this.getCompilerOptions(), this);
        return Un(t, (i) => !r.includes(i));
      }
      updateGraphWorker() {
        var t, r;
        const i = this.languageService.getCurrentProgram();
        (C.assert(i === this.program),
          C.assert(
            !this.isClosed(),
            "Called update graph worker of closed project",
          ),
          this.writeLog(
            `Starting updateGraphWorker: Project: ${this.getProjectName()}`,
          ));
        const o = Ls(),
          { hasInvalidatedResolutions: s, hasInvalidatedLibResolutions: l } =
            this.resolutionCache.createHasInvalidatedResolutions(Qg, Qg);
        ((this.hasInvalidatedResolutions = s),
          (this.hasInvalidatedLibResolutions = l),
          this.resolutionCache.startCachingPerDirectoryResolution(),
          (this.dirty = !1),
          (this.updateFromProjectInProgress = !0),
          (this.program = this.languageService.getProgram()),
          (this.updateFromProjectInProgress = !1),
          (t = xr) == null ||
            t.push(xr.Phase.Session, "finishCachingPerDirectoryResolution"),
          this.resolutionCache.finishCachingPerDirectoryResolution(
            this.program,
            i,
          ),
          (r = xr) == null || r.pop(),
          C.assert(i === void 0 || this.program !== void 0));
        let u = !1;
        if (
          this.program &&
          (!i || (this.program !== i && this.program.structureIsReused !== 2))
        ) {
          if (
            ((u = !0),
            this.rootFilesMap.forEach((h, g) => {
              var E;
              const A = this.program.getSourceFileByPath(g),
                R = h.info;
              !A ||
                ((E = h.info) == null ? void 0 : E.path) === A.resolvedPath ||
                ((h.info = this.projectService.getScriptInfo(A.fileName)),
                C.assert(h.info.isAttached(this)),
                R?.detachFromProject(this));
            }),
            pH(
              this.program,
              this.missingFilesMap || (this.missingFilesMap = new Map()),
              (h, g) => this.addMissingFileWatcher(h, g),
            ),
            this.generatedFilesMap)
          ) {
            const h = this.compilerOptions.outFile;
            xme(this.generatedFilesMap)
              ? (!h ||
                  !this.isValidGeneratedFileWatcher(
                    Tu(h) + ".d.ts",
                    this.generatedFilesMap,
                  )) &&
                this.clearGeneratedFileWatch()
              : h
                ? this.clearGeneratedFileWatch()
                : this.generatedFilesMap.forEach((g, E) => {
                    const A = this.program.getSourceFileByPath(E);
                    (!A ||
                      A.resolvedPath !== E ||
                      !this.isValidGeneratedFileWatcher(
                        h6(A.fileName, this.compilerOptions, this.program),
                        g,
                      )) &&
                      (Kf(g), this.generatedFilesMap.delete(E));
                  });
          }
          this.languageServiceEnabled &&
            this.projectService.serverMode === 0 &&
            this.resolutionCache.updateTypeRootsWatch();
        }
        (this.projectService.verifyProgram(this),
          this.exportMapCache &&
            !this.exportMapCache.isEmpty() &&
            (this.exportMapCache.releaseSymbols(),
            this.hasAddedorRemovedFiles ||
            (i && !this.program.structureIsReused)
              ? this.exportMapCache.clear()
              : this.changedFilesForExportMapCache &&
                i &&
                this.program &&
                fg(this.changedFilesForExportMapCache, (h) => {
                  const g = i.getSourceFileByPath(h),
                    E = this.program.getSourceFileByPath(h);
                  return !g || !E
                    ? (this.exportMapCache.clear(), !0)
                    : this.exportMapCache.onFileChanged(
                        g,
                        E,
                        !!this.getTypeAcquisition().enable,
                      );
                })),
          this.changedFilesForExportMapCache &&
            this.changedFilesForExportMapCache.clear(),
          (this.hasAddedOrRemovedSymlinks ||
            (this.program &&
              !this.program.structureIsReused &&
              this.getCompilerOptions().preserveSymlinks)) &&
            ((this.symlinks = void 0), this.moduleSpecifierCache.clear()));
        const d = this.externalFiles || Kc;
        ((this.externalFiles = this.getExternalFiles()),
          H8(
            this.externalFiles,
            d,
            xR(!this.useCaseSensitiveFileNames()),
            (h) => {
              const g =
                this.projectService.getOrCreateScriptInfoNotOpenedByClient(
                  h,
                  this.currentDirectory,
                  this.directoryStructureHost,
                  !1,
                );
              g?.attachToProject(this);
            },
            (h) => this.detachScriptInfoFromProject(h),
          ));
        const _ = Ls() - o;
        return (
          this.sendPerformanceEvent("UpdateGraph", _),
          this.writeLog(
            `Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program ? ` structureIsReused:: ${d9[this.program.structureIsReused]}` : ""} Elapsed: ${_}ms`,
          ),
          this.projectService.logger.isTestLogger
            ? this.program !== i
              ? this.print(!0, this.hasAddedorRemovedFiles, !0)
              : this.writeLog("Same program as before")
            : this.hasAddedorRemovedFiles
              ? this.print(!0, !0, !1)
              : this.program !== i &&
                this.writeLog("Different program with same set of files"),
          this.projectService.verifyDocumentRegistry(),
          u
        );
      }
      sendPerformanceEvent(t, r) {
        this.projectService.sendPerformanceEvent(t, r);
      }
      detachScriptInfoFromProject(t, r) {
        const i = this.projectService.getScriptInfo(t);
        i &&
          (i.detachFromProject(this),
          r || this.resolutionCache.removeResolutionsOfFile(i.path));
      }
      addMissingFileWatcher(t, r) {
        var i;
        if (bv(this)) {
          const s = this.projectService.configFileExistenceInfoCache.get(t);
          if (
            (i = s?.config) != null &&
            i.projects.has(this.canonicalConfigFilePath)
          )
            return XD;
        }
        const o = this.projectService.watchFactory.watchFile(
          To(r, this.currentDirectory),
          (s, l) => {
            (bv(this) &&
              this.getCachedDirectoryStructureHost().addOrDeleteFile(s, t, l),
              l === 0 &&
                this.missingFilesMap.has(t) &&
                (this.missingFilesMap.delete(t),
                o.close(),
                this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(
                  this,
                )));
          },
          500,
          this.projectService.getWatchOptions(this),
          sd.MissingFile,
          this,
        );
        return o;
      }
      isWatchedMissingFile(t) {
        return !!this.missingFilesMap && this.missingFilesMap.has(t);
      }
      addGeneratedFileWatch(t, r) {
        if (this.compilerOptions.outFile)
          this.generatedFilesMap ||
            (this.generatedFilesMap = this.createGeneratedFileWatcher(t));
        else {
          const i = this.toPath(r);
          if (this.generatedFilesMap) {
            if (xme(this.generatedFilesMap)) {
              C.fail(
                `${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`,
              );
              return;
            }
            if (this.generatedFilesMap.has(i)) return;
          } else this.generatedFilesMap = new Map();
          this.generatedFilesMap.set(i, this.createGeneratedFileWatcher(t));
        }
      }
      createGeneratedFileWatcher(t) {
        return {
          generatedFilePath: this.toPath(t),
          watcher: this.projectService.watchFactory.watchFile(
            t,
            () => {
              (this.clearSourceMapperCache(),
                this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(
                  this,
                ));
            },
            2e3,
            this.projectService.getWatchOptions(this),
            sd.MissingGeneratedFile,
            this,
          ),
        };
      }
      isValidGeneratedFileWatcher(t, r) {
        return this.toPath(t) === r.generatedFilePath;
      }
      clearGeneratedFileWatch() {
        this.generatedFilesMap &&
          (xme(this.generatedFilesMap)
            ? Kf(this.generatedFilesMap)
            : hp(this.generatedFilesMap, Kf),
          (this.generatedFilesMap = void 0));
      }
      getScriptInfoForNormalizedPath(t) {
        const r = this.projectService.getScriptInfoForPath(this.toPath(t));
        return r && !r.isAttached(this)
          ? by.ThrowProjectDoesNotContainDocument(t, this)
          : r;
      }
      getScriptInfo(t) {
        return this.projectService.getScriptInfo(t);
      }
      filesToString(t) {
        return this.filesToStringWorker(t, !0, !1);
      }
      filesToStringWorker(t, r, i) {
        if (this.initialLoadPending)
          return `	Files (0) InitialLoadPending
`;
        if (!this.program)
          return `	Files (0) NoProgram
`;
        const o = this.program.getSourceFiles();
        let s = `	Files (${o.length})
`;
        if (t) {
          for (const l of o)
            s += `	${l.fileName}${i ? ` ${l.version} ${JSON.stringify(l.text)}` : ""}
`;
          r &&
            ((s += `

`),
            jH(
              this.program,
              (l) =>
                (s += `	${l}
`),
            ));
        }
        return s;
      }
      print(t, r, i) {
        var o;
        (this.writeLog(
          `Project '${this.projectName}' (${ZP[this.projectKind]})`,
        ),
          this.writeLog(
            this.filesToStringWorker(
              t && this.projectService.logger.hasLevel(3),
              r && this.projectService.logger.hasLevel(3),
              i && this.projectService.logger.hasLevel(3),
            ),
          ),
          this.writeLog("-----------------------------------------------"),
          this.autoImportProviderHost &&
            this.autoImportProviderHost.print(!1, !1, !1),
          (o = this.noDtsResolutionProject) == null || o.print(!1, !1, !1));
      }
      setCompilerOptions(t) {
        var r;
        if (t) {
          t.allowNonTsExtensions = !0;
          const i = this.compilerOptions;
          ((this.compilerOptions = t),
            this.setInternalCompilerOptionsForEmittingJsFiles(),
            (r = this.noDtsResolutionProject) == null ||
              r.setCompilerOptions(
                this.getCompilerOptionsForNoDtsResolutionProject(),
              ),
            CF(i, t) &&
              (this.cachedUnresolvedImportsPerFile.clear(),
              (this.lastCachedUnresolvedImportsList = void 0),
              this.resolutionCache.onChangesAffectModuleResolution(),
              this.moduleSpecifierCache.clear()),
            this.markAsDirty());
        }
      }
      setWatchOptions(t) {
        this.watchOptions = t;
      }
      getWatchOptions() {
        return this.watchOptions;
      }
      setTypeAcquisition(t) {
        t &&
          (this.typeAcquisition =
            this.removeLocalTypingsFromTypeAcquisition(t));
      }
      getTypeAcquisition() {
        return this.typeAcquisition || {};
      }
      getChangesSinceVersion(t, r) {
        var i, o;
        const s = r
          ? (d) =>
              Co(d.entries(), ([_, h]) => ({
                fileName: _,
                isSourceOfProjectReferenceRedirect: h,
              }))
          : (d) => Co(d.keys());
        this.initialLoadPending || Am(this);
        const l = {
            projectName: this.getProjectName(),
            version: this.projectProgramVersion,
            isInferred: _C(this),
            options: this.getCompilationSettings(),
            languageServiceDisabled: !this.languageServiceEnabled,
            lastFileExceededProgramSize: this.lastFileExceededProgramSize,
          },
          u = this.updatedFileNames;
        if (
          ((this.updatedFileNames = void 0),
          this.lastReportedFileNames && t === this.lastReportedVersion)
        ) {
          if (this.projectProgramVersion === this.lastReportedVersion && !u)
            return { info: l, projectErrors: this.getGlobalProjectErrors() };
          const d = this.lastReportedFileNames,
            _ =
              ((i = this.externalFiles) == null
                ? void 0
                : i.map((N) => ({
                    fileName: Cs(N),
                    isSourceOfProjectReferenceRedirect: !1,
                  }))) || Kc,
            h = AR(
              this.getFileNamesWithRedirectInfo(!!r).concat(_),
              (N) => N.fileName,
              (N) => N.isSourceOfProjectReferenceRedirect,
            ),
            g = new Map(),
            E = new Map(),
            A = u ? Co(u.keys()) : [],
            R = [];
          return (
            Hc(h, (N, P) => {
              d.has(P)
                ? r &&
                  N !== d.get(P) &&
                  R.push({ fileName: P, isSourceOfProjectReferenceRedirect: N })
                : g.set(P, N);
            }),
            Hc(d, (N, P) => {
              h.has(P) || E.set(P, N);
            }),
            (this.lastReportedFileNames = h),
            (this.lastReportedVersion = this.projectProgramVersion),
            {
              info: l,
              changes: {
                added: s(g),
                removed: s(E),
                updated: r
                  ? A.map((N) => ({
                      fileName: N,
                      isSourceOfProjectReferenceRedirect:
                        this.isSourceOfProjectReferenceRedirect(N),
                    }))
                  : A,
                updatedRedirects: r ? R : void 0,
              },
              projectErrors: this.getGlobalProjectErrors(),
            }
          );
        } else {
          const d = this.getFileNamesWithRedirectInfo(!!r),
            _ =
              ((o = this.externalFiles) == null
                ? void 0
                : o.map((g) => ({
                    fileName: Cs(g),
                    isSourceOfProjectReferenceRedirect: !1,
                  }))) || Kc,
            h = d.concat(_);
          return (
            (this.lastReportedFileNames = AR(
              h,
              (g) => g.fileName,
              (g) => g.isSourceOfProjectReferenceRedirect,
            )),
            (this.lastReportedVersion = this.projectProgramVersion),
            {
              info: l,
              files: r ? h : h.map((g) => g.fileName),
              projectErrors: this.getGlobalProjectErrors(),
            }
          );
        }
      }
      removeRoot(t) {
        this.rootFilesMap.delete(t.path);
      }
      isSourceOfProjectReferenceRedirect(t) {
        return (
          !!this.program && this.program.isSourceOfProjectReferenceRedirect(t)
        );
      }
      getGlobalPluginSearchPaths() {
        return [
          ...this.projectService.pluginProbeLocations,
          Qr(this.projectService.getExecutingFilePath(), "../../.."),
        ];
      }
      enableGlobalPlugins(t) {
        if (!this.projectService.globalPlugins.length) return;
        const r = this.projectService.host;
        if (!r.require && !r.importPlugin) {
          this.projectService.logger.info(
            "Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded",
          );
          return;
        }
        const i = this.getGlobalPluginSearchPaths();
        for (const o of this.projectService.globalPlugins)
          o &&
            ((t.plugins && t.plugins.some((s) => s.name === o)) ||
              (this.projectService.logger.info(`Loading global plugin ${o}`),
              this.enablePlugin({ name: o, global: !0 }, i)));
      }
      enablePlugin(t, r) {
        this.projectService.requestEnablePlugin(this, t, r);
      }
      enableProxy(t, r) {
        try {
          if (typeof t != "function") {
            this.projectService.logger.info(
              `Skipped loading plugin ${r.name} because it did not expose a proper factory function`,
            );
            return;
          }
          const i = {
              config: r,
              project: this,
              languageService: this.languageService,
              languageServiceHost: this,
              serverHost: this.projectService.host,
              session: this.projectService.session,
            },
            o = t({ typescript: Fwe }),
            s = o.create(i);
          for (const l of Object.keys(this.languageService))
            l in s ||
              (this.projectService.logger.info(
                `Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`,
              ),
              (s[l] = this.languageService[l]));
          (this.projectService.logger.info("Plugin validation succeeded"),
            (this.languageService = s),
            this.plugins.push({ name: r.name, module: o }));
        } catch (i) {
          this.projectService.logger.info(`Plugin activation failed: ${i}`);
        }
      }
      onPluginConfigurationChanged(t, r) {
        this.plugins
          .filter((i) => i.name === t)
          .forEach((i) => {
            i.module.onConfigurationChanged &&
              i.module.onConfigurationChanged(r);
          });
      }
      refreshDiagnostics() {
        this.projectService.sendProjectsUpdatedInBackgroundEvent();
      }
      getPackageJsonsVisibleToFile(t, r) {
        return this.projectService.serverMode !== 0
          ? Kc
          : this.projectService.getPackageJsonsVisibleToFile(t, this, r);
      }
      getNearestAncestorDirectoryWithPackageJson(t) {
        return this.projectService.getNearestAncestorDirectoryWithPackageJson(
          t,
          this,
        );
      }
      getPackageJsonsForAutoImport(t) {
        return this.getPackageJsonsVisibleToFile(
          Qr(this.currentDirectory, vP),
          t,
        );
      }
      getPackageJsonCache() {
        return this.projectService.packageJsonCache;
      }
      getCachedExportInfoMap() {
        return this.exportMapCache || (this.exportMapCache = SJ(this));
      }
      clearCachedExportInfoMap() {
        var t;
        (t = this.exportMapCache) == null || t.clear();
      }
      getModuleSpecifierCache() {
        return this.moduleSpecifierCache;
      }
      includePackageJsonAutoImports() {
        return this.projectService.includePackageJsonAutoImports() === 0 ||
          !this.languageServiceEnabled ||
          MO(this.currentDirectory) ||
          !this.isDefaultProjectForOpenFiles()
          ? 0
          : this.projectService.includePackageJsonAutoImports();
      }
      getHostForAutoImportProvider() {
        var t, r;
        return this.program
          ? {
              fileExists: this.program.fileExists,
              directoryExists: this.program.directoryExists,
              realpath:
                this.program.realpath ||
                ((t = this.projectService.host.realpath) == null
                  ? void 0
                  : t.bind(this.projectService.host)),
              getCurrentDirectory: this.getCurrentDirectory.bind(this),
              readFile: this.projectService.host.readFile.bind(
                this.projectService.host,
              ),
              getDirectories: this.projectService.host.getDirectories.bind(
                this.projectService.host,
              ),
              trace:
                (r = this.projectService.host.trace) == null
                  ? void 0
                  : r.bind(this.projectService.host),
              useCaseSensitiveFileNames:
                this.program.useCaseSensitiveFileNames(),
              readDirectory: this.projectService.host.readDirectory.bind(
                this.projectService.host,
              ),
            }
          : this.projectService.host;
      }
      getPackageJsonAutoImportProvider() {
        var t, r, i;
        if (this.autoImportProviderHost === !1) return;
        if (this.projectService.serverMode !== 0) {
          this.autoImportProviderHost = !1;
          return;
        }
        if (this.autoImportProviderHost) {
          if (
            (Am(this.autoImportProviderHost),
            this.autoImportProviderHost.isEmpty())
          ) {
            (this.autoImportProviderHost.close(),
              (this.autoImportProviderHost = void 0));
            return;
          }
          return this.autoImportProviderHost.getCurrentProgram();
        }
        const o = this.includePackageJsonAutoImports();
        if (o) {
          (t = xr) == null ||
            t.push(xr.Phase.Session, "getPackageJsonAutoImportProvider");
          const s = Ls();
          if (
            ((this.autoImportProviderHost =
              Nme.create(o, this, this.getHostForAutoImportProvider()) ?? !1),
            this.autoImportProviderHost)
          )
            return (
              Am(this.autoImportProviderHost),
              this.sendPerformanceEvent(
                "CreatePackageJsonAutoImportProvider",
                Ls() - s,
              ),
              (r = xr) == null || r.pop(),
              this.autoImportProviderHost.getCurrentProgram()
            );
          (i = xr) == null || i.pop();
        }
      }
      isDefaultProjectForOpenFiles() {
        return !!Hc(
          this.projectService.openFiles,
          (t, r) =>
            this.projectService.tryGetDefaultProjectForFile(
              this.projectService.getScriptInfoForPath(r),
            ) === this,
        );
      }
      watchNodeModulesForPackageJsonChanges(t) {
        return this.projectService.watchPackageJsonsInNodeModules(t, this);
      }
      getIncompleteCompletionsCache() {
        return this.projectService.getIncompleteCompletionsCache();
      }
      getNoDtsResolutionProject(t) {
        return (
          C.assert(this.projectService.serverMode === 0),
          this.noDtsResolutionProject ??
            (this.noDtsResolutionProject = new Dme(this)),
          this.noDtsResolutionProject.rootFile !== t &&
            (this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(
              this.noDtsResolutionProject,
              [t],
            ),
            (this.noDtsResolutionProject.rootFile = t)),
          this.noDtsResolutionProject
        );
      }
      runWithTemporaryFileUpdate(t, r, i) {
        var o, s, l, u;
        const d = this.program,
          _ = C.checkDefined(
            (o = this.program) == null ? void 0 : o.getSourceFile(t),
            "Expected file to be part of program",
          ),
          h = C.checkDefined(_.getFullText());
        ((s = this.getScriptInfo(t)) == null || s.editContent(0, h.length, r),
          this.updateGraph());
        try {
          i(
            this.program,
            d,
            (l = this.program) == null ? void 0 : l.getSourceFile(t),
          );
        } finally {
          (u = this.getScriptInfo(t)) == null || u.editContent(0, r.length, h);
        }
      }
      getCompilerOptionsForNoDtsResolutionProject() {
        return {
          ...this.getCompilerOptions(),
          noDtsResolution: !0,
          allowJs: !0,
          maxNodeModuleJsDepth: 3,
          diagnostics: !1,
          skipLibCheck: !0,
          sourceMap: !1,
          types: ae,
          lib: ae,
          noLib: !0,
        };
      }
    };
    function Tst(e, t) {
      var r, i;
      const o = e.getSourceFiles();
      (r = xr) == null ||
        r.push(xr.Phase.Session, "getUnresolvedImports", { count: o.length });
      const s = e
          .getTypeChecker()
          .getAmbientModules()
          .map((u) => _m(u.getName())),
        l = fN(Ki(o, (u) => Sst(e, u, s, t)));
      return ((i = xr) == null || i.pop(), l);
    }
    function Sst(e, t, r, i) {
      return KA(i, t.path, () => {
        let o;
        return (
          e.forEachResolvedModule(({ resolvedModule: s }, l) => {
            (!s || !EM(s.extension)) &&
              !td(l) &&
              !r.some((u) => u === l) &&
              (o = Bn(o, o3(l).packageName));
          }, t),
          o || Kc
        );
      });
    }
    var Rme = class extends Rx {
        constructor(e, t, r, i, o, s) {
          (super(
            e.newInferredProjectName(),
            0,
            e,
            !1,
            void 0,
            t,
            !1,
            r,
            e.host,
            o,
          ),
            (this._isJsInferredProject = !1),
            (this.typeAcquisition = s),
            (this.projectRootPath = i && e.toCanonicalFileName(i)),
            !i &&
              !e.useSingleInferredProject &&
              (this.canonicalCurrentDirectory = e.toCanonicalFileName(
                this.currentDirectory,
              )),
            this.enableGlobalPlugins(this.getCompilerOptions()));
        }
        toggleJsInferredProject(e) {
          e !== this._isJsInferredProject &&
            ((this._isJsInferredProject = e), this.setCompilerOptions());
        }
        setCompilerOptions(e) {
          if (!e && !this.getCompilationSettings()) return;
          const t = Gq(e || this.getCompilationSettings());
          (this._isJsInferredProject &&
          typeof t.maxNodeModuleJsDepth != "number"
            ? (t.maxNodeModuleJsDepth = 2)
            : this._isJsInferredProject || (t.maxNodeModuleJsDepth = void 0),
            (t.allowJs = !0),
            super.setCompilerOptions(t));
        }
        addRoot(e) {
          (C.assert(e.isScriptOpen()),
            this.projectService.startWatchingConfigFilesForInferredProjectRoot(
              e,
            ),
            !this._isJsInferredProject && e.isJavaScript()
              ? this.toggleJsInferredProject(!0)
              : this.isOrphan() &&
                this._isJsInferredProject &&
                !e.isJavaScript() &&
                this.toggleJsInferredProject(!1),
            super.addRoot(e));
        }
        removeRoot(e) {
          (this.projectService.stopWatchingConfigFilesForScriptInfo(e),
            super.removeRoot(e),
            !this.isOrphan() &&
              this._isJsInferredProject &&
              e.isJavaScript() &&
              Vn(this.getRootScriptInfos(), (t) => !t.isJavaScript()) &&
              this.toggleJsInferredProject(!1));
        }
        isOrphan() {
          return !this.hasRoots();
        }
        isProjectWithSingleRoot() {
          return (
            (!this.projectRootPath &&
              !this.projectService.useSingleInferredProject) ||
            this.getRootScriptInfos().length === 1
          );
        }
        close() {
          (Ye(this.getRootScriptInfos(), (e) =>
            this.projectService.stopWatchingConfigFilesForScriptInfo(e),
          ),
            super.close());
        }
        getTypeAcquisition() {
          return (
            this.typeAcquisition || {
              enable: Eme(this),
              include: ae,
              exclude: ae,
            }
          );
        }
      },
      Dme = class extends Rx {
        constructor(e) {
          super(
            e.projectService.newAuxiliaryProjectName(),
            4,
            e.projectService,
            !1,
            void 0,
            e.getCompilerOptionsForNoDtsResolutionProject(),
            !1,
            void 0,
            e.projectService.host,
            e.currentDirectory,
          );
        }
        isOrphan() {
          return !0;
        }
        scheduleInvalidateResolutionsOfFailedLookupLocations() {}
      },
      Cme = class Hye extends Rx {
        constructor(t, r, i) {
          (super(
            t.projectService.newAutoImportProviderProjectName(),
            3,
            t.projectService,
            !1,
            void 0,
            i,
            !1,
            t.getWatchOptions(),
            t.projectService.host,
            t.currentDirectory,
          ),
            (this.hostProject = t),
            (this.rootFileNames = r),
            (this.useSourceOfProjectReferenceRedirect = ia(
              this.hostProject,
              this.hostProject.useSourceOfProjectReferenceRedirect,
            )),
            (this.getParsedCommandLine = ia(
              this.hostProject,
              this.hostProject.getParsedCommandLine,
            )));
        }
        static getRootFileNames(t, r, i, o) {
          var s, l;
          if (!t) return ae;
          const u = r.getCurrentProgram();
          if (!u) return ae;
          const d = Ls();
          let _, h;
          const g = Qr(r.currentDirectory, vP),
            E = r.getPackageJsonsForAutoImport(Qr(r.currentDirectory, g));
          for (const G of E)
            ((s = G.dependencies) == null || s.forEach((j, J) => k(J)),
              (l = G.peerDependencies) == null || l.forEach((j, J) => k(J)));
          let A = 0;
          if (_) {
            const G = r.getSymlinkCache();
            for (const j of Co(_.keys())) {
              if (t === 2 && A >= this.maxDependencies)
                return (
                  r.log(
                    `AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`,
                  ),
                  ae
                );
              const J = gU(
                j,
                r.currentDirectory,
                o,
                i,
                u.getModuleResolutionCache(),
              );
              if (J) {
                const q = W(J, u, G);
                if (q) {
                  A += P(q);
                  continue;
                }
              }
              if (
                !Ye(
                  [r.currentDirectory, r.getGlobalTypingsCacheLocation()],
                  (q) => {
                    if (q) {
                      const ye = gU(
                        `@types/${j}`,
                        q,
                        o,
                        i,
                        u.getModuleResolutionCache(),
                      );
                      if (ye) {
                        const ie = W(ye, u, G);
                        return ((A += P(ie)), !0);
                      }
                    }
                  },
                ) &&
                J &&
                o.allowJs &&
                o.maxNodeModuleJsDepth
              ) {
                const q = W(J, u, G, !0);
                A += P(q);
              }
            }
          }
          const R = u.getResolvedProjectReferences();
          let N = 0;
          return (
            R?.length &&
              r.projectService.getHostPreferences()
                .includeCompletionsForModuleExports &&
              R.forEach((G) => {
                if (G?.commandLine.options.outFile)
                  N += P(O([av(G.commandLine.options.outFile, ".d.ts")]));
                else if (G) {
                  const j = Nu(() =>
                    w1(G.commandLine, !r.useCaseSensitiveFileNames()),
                  );
                  N += P(
                    O(
                      Ui(G.commandLine.fileNames, (J) =>
                        !ad(J) && !El(J, ".json") && !u.getSourceFile(J)
                          ? _P(
                              J,
                              G.commandLine,
                              !r.useCaseSensitiveFileNames(),
                              j,
                            )
                          : void 0,
                      ),
                    ),
                  );
                }
              }),
            h?.size &&
              r.log(
                `AutoImportProviderProject: found ${h.size} root files in ${A} dependencies ${N} referenced projects in ${Ls() - d} ms`,
              ),
            h ? Co(h.values()) : ae
          );
          function P(G) {
            return G?.length
              ? (h ?? (h = new Set()), G.forEach((j) => h.add(j)), 1)
              : 0;
          }
          function k(G) {
            po(G, "@types/") || (_ || (_ = new Set())).add(G);
          }
          function W(G, j, J, Z) {
            var q;
            const ye = EU(G, o, i, j.getModuleResolutionCache(), Z);
            if (ye) {
              const ie =
                  (q = i.realpath) == null
                    ? void 0
                    : q.call(i, G.packageDirectory),
                K = ie ? r.toPath(ie) : void 0,
                pe = K && K !== r.toPath(G.packageDirectory);
              return (
                pe &&
                  J.setSymlinkedDirectory(G.packageDirectory, {
                    real: Uc(ie),
                    realPath: Uc(K),
                  }),
                O(ye, pe ? (de) => de.replace(G.packageDirectory, ie) : void 0)
              );
            }
          }
          function O(G, j) {
            return Ui(G, (J) => {
              const Z = j ? j(J) : J;
              if (!u.getSourceFile(Z) && !(j && u.getSourceFile(J))) return Z;
            });
          }
        }
        static create(t, r, i) {
          if (t === 0) return;
          const o = {
              ...r.getCompilerOptions(),
              ...this.compilerOptionsOverrides,
            },
            s = this.getRootFileNames(t, r, i, o);
          if (s.length) return new Hye(r, s, o);
        }
        isEmpty() {
          return !yt(this.rootFileNames);
        }
        isOrphan() {
          return !0;
        }
        updateGraph() {
          let t = this.rootFileNames;
          (t ||
            (t = Hye.getRootFileNames(
              this.hostProject.includePackageJsonAutoImports(),
              this.hostProject,
              this.hostProject.getHostForAutoImportProvider(),
              this.getCompilationSettings(),
            )),
            this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(
              this,
              t,
            ),
            (this.rootFileNames = t));
          const r = this.getCurrentProgram(),
            i = super.updateGraph();
          return (
            r &&
              r !== this.getCurrentProgram() &&
              this.hostProject.clearCachedExportInfoMap(),
            i
          );
        }
        scheduleInvalidateResolutionsOfFailedLookupLocations() {}
        hasRoots() {
          var t;
          return !!((t = this.rootFileNames) != null && t.length);
        }
        markAsDirty() {
          ((this.rootFileNames = void 0), super.markAsDirty());
        }
        getScriptFileNames() {
          return this.rootFileNames || ae;
        }
        getLanguageService() {
          throw new Error(
            "AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.",
          );
        }
        onAutoImportProviderSettingsChanged() {
          throw new Error(
            "AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.",
          );
        }
        onPackageJsonChange() {
          throw new Error(
            "package.json changes should be notified on an AutoImportProvider's host project",
          );
        }
        getHostForAutoImportProvider() {
          throw new Error(
            "AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.",
          );
        }
        getProjectReferences() {
          return this.hostProject.getProjectReferences();
        }
        includePackageJsonAutoImports() {
          return 0;
        }
        getSymlinkCache() {
          return this.hostProject.getSymlinkCache();
        }
        getModuleResolutionCache() {
          var t;
          return (t = this.hostProject.getCurrentProgram()) == null
            ? void 0
            : t.getModuleResolutionCache();
        }
      };
    ((Cme.maxDependencies = 10),
      (Cme.compilerOptionsOverrides = {
        diagnostics: !1,
        skipLibCheck: !0,
        sourceMap: !1,
        types: ae,
        lib: ae,
        noLib: !0,
      }));
    var Nme = Cme,
      Mme = class extends Rx {
        constructor(e, t, r, i, o) {
          (super(e, 1, r, !1, void 0, {}, !1, void 0, i, ci(e)),
            (this.canonicalConfigFilePath = t),
            (this.openFileWatchTriggered = new Map()),
            (this.initialLoadPending = !0),
            (this.sendLoadingProjectFinish = !1),
            (this.pendingUpdateLevel = 2),
            (this.pendingUpdateReason = o));
        }
        setCompilerHost(e) {
          this.compilerHost = e;
        }
        getCompilerHost() {
          return this.compilerHost;
        }
        useSourceOfProjectReferenceRedirect() {
          return this.languageServiceEnabled;
        }
        getParsedCommandLine(e) {
          const t = Cs(e),
            r = this.projectService.toCanonicalFileName(t);
          let i = this.projectService.configFileExistenceInfoCache.get(r);
          return (
            i ||
              this.projectService.configFileExistenceInfoCache.set(
                r,
                (i = { exists: this.projectService.host.fileExists(t) }),
              ),
            this.projectService.ensureParsedConfigUptoDate(t, r, i, this),
            this.languageServiceEnabled &&
              this.projectService.serverMode === 0 &&
              this.projectService.watchWildcards(t, i, this),
            i.exists ? i.config.parsedCommandLine : void 0
          );
        }
        onReleaseParsedCommandLine(e) {
          this.releaseParsedConfig(
            this.projectService.toCanonicalFileName(Cs(e)),
          );
        }
        releaseParsedConfig(e) {
          (this.projectService.stopWatchingWildCards(e, this),
            this.projectService.releaseParsedConfig(e, this));
        }
        updateGraph() {
          if (this.deferredClose) return !1;
          const e = this.dirty;
          this.initialLoadPending = !1;
          const t = this.pendingUpdateLevel;
          this.pendingUpdateLevel = 0;
          let r;
          switch (t) {
            case 1:
              (this.openFileWatchTriggered.clear(),
                (r =
                  this.projectService.reloadFileNamesOfConfiguredProject(
                    this,
                  )));
              break;
            case 2:
              this.openFileWatchTriggered.clear();
              const i = C.checkDefined(this.pendingUpdateReason);
              (this.projectService.reloadConfiguredProject(this, i), (r = !0));
              break;
            default:
              r = super.updateGraph();
          }
          return (
            (this.compilerHost = void 0),
            this.projectService.sendProjectLoadingFinishEvent(this),
            this.projectService.sendProjectTelemetry(this),
            t === 2 ||
            (r &&
              (!e ||
                !this.triggerFileForConfigFileDiag ||
                this.getCurrentProgram().structureIsReused === 2))
              ? (this.triggerFileForConfigFileDiag = void 0)
              : this.triggerFileForConfigFileDiag ||
                this.projectService.sendConfigFileDiagEvent(this, void 0, !1),
            r
          );
        }
        getCachedDirectoryStructureHost() {
          return this.directoryStructureHost;
        }
        getConfigFilePath() {
          return this.getProjectName();
        }
        getProjectReferences() {
          return this.projectReferences;
        }
        updateReferences(e) {
          ((this.projectReferences = e),
            (this.potentialProjectReferences = void 0));
        }
        setPotentialProjectReference(e) {
          (C.assert(this.initialLoadPending),
            (
              this.potentialProjectReferences ||
              (this.potentialProjectReferences = new Set())
            ).add(e));
        }
        getRedirectFromSourceFile(e) {
          const t = this.getCurrentProgram();
          return t && t.getRedirectFromSourceFile(e);
        }
        forEachResolvedProjectReference(e) {
          var t;
          return (t = this.getCurrentProgram()) == null
            ? void 0
            : t.forEachResolvedProjectReference(e);
        }
        enablePluginsWithOptions(e) {
          var t;
          if (
            ((this.plugins.length = 0),
            !((t = e.plugins) != null && t.length) &&
              !this.projectService.globalPlugins.length)
          )
            return;
          const r = this.projectService.host;
          if (!r.require && !r.importPlugin) {
            this.projectService.logger.info(
              "Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded",
            );
            return;
          }
          const i = this.getGlobalPluginSearchPaths();
          if (this.projectService.allowLocalPluginLoads) {
            const o = ci(this.canonicalConfigFilePath);
            (this.projectService.logger.info(
              `Local plugin loading enabled; adding ${o} to search paths`,
            ),
              i.unshift(o));
          }
          if (e.plugins) for (const o of e.plugins) this.enablePlugin(o, i);
          return this.enableGlobalPlugins(e);
        }
        getGlobalProjectErrors() {
          return Un(this.projectErrors, (e) => !e.file) || Kc;
        }
        getAllProjectErrors() {
          return this.projectErrors || Kc;
        }
        setProjectErrors(e) {
          this.projectErrors = e;
        }
        close() {
          (this.projectService.configFileExistenceInfoCache.forEach((e, t) =>
            this.releaseParsedConfig(t),
          ),
            (this.projectErrors = void 0),
            this.openFileWatchTriggered.clear(),
            (this.compilerHost = void 0),
            super.close());
        }
        markAsDirty() {
          this.deferredClose || super.markAsDirty();
        }
        isOrphan() {
          return !!this.deferredClose;
        }
        getEffectiveTypeRoots() {
          return nP(this.getCompilationSettings(), this) || [];
        }
        updateErrorOnNoInputFiles(e) {
          ((this.parsedCommandLine = e),
            Y4(
              e.fileNames,
              this.getConfigFilePath(),
              this.getCompilerOptions().configFile.configFileSpecs,
              this.projectErrors,
              Fw(e.raw),
            ));
        }
      },
      SX = class extends Rx {
        constructor(e, t, r, i, o, s, l) {
          (super(e, 2, t, !0, i, r, o, l, t.host, ci(s || Bd(e))),
            (this.externalProjectName = e),
            (this.compileOnSaveEnabled = o),
            (this.excludedFiles = []),
            this.enableGlobalPlugins(this.getCompilerOptions()));
        }
        updateGraph() {
          const e = super.updateGraph();
          return (this.projectService.sendProjectTelemetry(this), e);
        }
        getExcludedFiles() {
          return this.excludedFiles;
        }
      };
    function _C(e) {
      return e.projectKind === 0;
    }
    function bv(e) {
      return e.projectKind === 1;
    }
    function mW(e) {
      return e.projectKind === 2;
    }
    function hW(e) {
      return e.projectKind === 3 || e.projectKind === 4;
    }
    function _W(e) {
      return bv(e) && !!e.deferredClose;
    }
    var EX = 20 * 1024 * 1024,
      AX = 4 * 1024 * 1024,
      Lz = "projectsUpdatedInBackground",
      IX = "projectLoadingStart",
      xX = "projectLoadingFinish",
      RX = "largeFileReferenced",
      DX = "configFileDiag",
      CX = "projectLanguageServiceState",
      NX = "projectInfo",
      Pme = "openFileInfo",
      MX = "createFileWatcher",
      PX = "createDirectoryWatcher",
      LX = "closeFileWatcher",
      iOe = "*ensureProjectForOpenFiles*";
    function oOe(e) {
      const t = new Map();
      for (const r of e)
        if (typeof r.type == "object") {
          const i = r.type;
          (i.forEach((o) => {
            C.assert(typeof o == "number");
          }),
            t.set(r.name, i));
        }
      return t;
    }
    var Est = oOe(Um),
      Ast = oOe(rx),
      Ist = new Map(Object.entries({ none: 0, block: 1, smart: 2 })),
      Lme = {
        jquery: {
          match: /jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,
          types: ["jquery"],
        },
        WinJS: {
          match: /^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,
          exclude: [["^", 1, "/.*"]],
          types: ["winjs"],
        },
        Kendo: {
          match: /^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,
          exclude: [["^", 1, "/.*"]],
          types: ["kendo-ui"],
        },
        "Office Nuget": {
          match: /^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,
          exclude: [["^", 1, "/.*"]],
          types: ["office"],
        },
        References: {
          match: /^(.*\/_references\.js)$/i,
          exclude: [["^", 1, "$"]],
        },
      };
    function gC(e) {
      return (
        Bo(e.indentStyle) &&
          ((e.indentStyle = Ist.get(e.indentStyle.toLowerCase())),
          C.assert(e.indentStyle !== void 0)),
        e
      );
    }
    function kz(e) {
      return (
        Est.forEach((t, r) => {
          const i = e[r];
          Bo(i) && (e[r] = t.get(i.toLowerCase()));
        }),
        e
      );
    }
    function gW(e, t) {
      let r, i;
      return (
        rx.forEach((o) => {
          const s = e[o.name];
          if (s === void 0) return;
          const l = Ast.get(o.name);
          (r || (r = {}))[o.name] = l
            ? Bo(s)
              ? l.get(s.toLowerCase())
              : s
            : N1(o, s, t || "", i || (i = []));
        }),
        r && { watchOptions: r, errors: i }
      );
    }
    function kme(e) {
      let t;
      return (
        B4.forEach((r) => {
          const i = e[r.name];
          i !== void 0 && ((t || (t = {}))[r.name] = i);
        }),
        t
      );
    }
    function kX(e) {
      return Bo(e) ? wX(e) : e;
    }
    function wX(e) {
      switch (e) {
        case "JS":
          return 1;
        case "JSX":
          return 2;
        case "TS":
          return 3;
        case "TSX":
          return 4;
        default:
          return 0;
      }
    }
    function wme(e) {
      const { lazyConfiguredProjectsFromExternalProject: t, ...r } = e;
      return r;
    }
    var OX = {
        getFileName: (e) => e,
        getScriptKind: (e, t) => {
          let r;
          if (t) {
            const i = nI(e);
            i &&
              yt(t, (o) => (o.extension === i ? ((r = o.scriptKind), !0) : !1));
          }
          return r;
        },
        hasMixedContent: (e, t) =>
          yt(t, (r) => r.isMixedContent && El(e, r.extension)),
      },
      WX = {
        getFileName: (e) => e.fileName,
        getScriptKind: (e) => kX(e.scriptKind),
        hasMixedContent: (e) => !!e.hasMixedContent,
      };
    function aOe(e, t) {
      for (const r of t) if (r.getProjectName() === e) return r;
    }
    var wz = {
        isKnownTypesPackageName: Qg,
        installPackage: ha,
        enqueueInstallTypingsRequest: gs,
        attach: gs,
        onProjectClosed: gs,
        globalTypingsCacheLocation: void 0,
      },
      Ome = { close: gs };
    function sOe(e, t) {
      if (!t) return;
      const r = t.get(e.path);
      if (r !== void 0)
        return FX(e)
          ? r && !Bo(r)
            ? r.get(e.fileName)
            : void 0
          : Bo(r) || !r
            ? r
            : r.get(!1);
    }
    function lOe(e) {
      return !!e.containingProjects;
    }
    function FX(e) {
      return !!e.configFileInfo;
    }
    var Wme = ((e) => (
      (e[(e.FindOptimized = 0)] = "FindOptimized"),
      (e[(e.Find = 1)] = "Find"),
      (e[(e.CreateReplayOptimized = 2)] = "CreateReplayOptimized"),
      (e[(e.CreateReplay = 3)] = "CreateReplay"),
      (e[(e.CreateOptimized = 4)] = "CreateOptimized"),
      (e[(e.Create = 5)] = "Create"),
      (e[(e.ReloadOptimized = 6)] = "ReloadOptimized"),
      (e[(e.Reload = 7)] = "Reload"),
      e
    ))(Wme || {});
    function cOe(e) {
      return e - 1;
    }
    function dOe(e, t, r, i, o, s, l, u, d) {
      for (var _; ; ) {
        if (
          t.parsedCommandLine &&
          ((u && !t.parsedCommandLine.options.composite) ||
            t.parsedCommandLine.options.disableSolutionSearching)
        )
          return;
        const h = t.projectService.getConfigFileNameForFile(
          {
            fileName: t.getConfigFilePath(),
            path: e.path,
            configFileInfo: !0,
            isForDefaultProject: !u,
          },
          i <= 3,
        );
        if (!h) return;
        const g = t.projectService.findCreateOrReloadConfiguredProject(
          h,
          i,
          o,
          s,
          u ? void 0 : e.fileName,
          l,
          u,
          d,
        );
        if (!g) return;
        !g.project.parsedCommandLine &&
          (_ = t.parsedCommandLine) != null &&
          _.options.composite &&
          g.project.setPotentialProjectReference(t.canonicalConfigFilePath);
        const E = r(g);
        if (E) return E;
        t = g.project;
      }
    }
    function uOe(e, t, r, i, o, s, l, u) {
      const d = t.options.disableReferencedProjectLoad ? 0 : i;
      let _;
      return (
        Ye(t.projectReferences, (h) => {
          var g;
          const E = Cs(cx(h)),
            A = e.projectService.toCanonicalFileName(E),
            R = u?.get(A);
          if (R !== void 0 && R >= d) return;
          const N = e.projectService.configFileExistenceInfoCache.get(A);
          let P =
            d === 0
              ? N?.exists || ((g = e.resolvedChildConfigs) != null && g.has(A))
                ? N.config.parsedCommandLine
                : void 0
              : e.getParsedCommandLine(E);
          if ((P && d !== i && d > 2 && (P = e.getParsedCommandLine(E)), !P))
            return;
          const k = e.projectService.findConfiguredProjectByProjectName(E, s);
          if (!(d === 2 && !N && !k)) {
            switch (d) {
              case 6:
                k && k.projectService.reloadConfiguredProjectOptimized(k, o, l);
              case 4:
                (
                  e.resolvedChildConfigs ?? (e.resolvedChildConfigs = new Set())
                ).add(A);
              case 2:
              case 0:
                if (k || d !== 0) {
                  const W = r(
                    N ?? e.projectService.configFileExistenceInfoCache.get(A),
                    k,
                    E,
                    o,
                    e,
                    A,
                  );
                  if (W) return W;
                }
                break;
              default:
                C.assertNever(d);
            }
            ((u ?? (u = new Map())).set(A, d), (_ ?? (_ = [])).push(P));
          }
        }) || Ye(_, (h) => h.projectReferences && uOe(e, h, r, d, o, s, l, u))
      );
    }
    function Fme(e, t, r, i, o) {
      let s = !1,
        l;
      switch (t) {
        case 2:
        case 3:
          Vme(e) &&
            (l = e.projectService.configFileExistenceInfoCache.get(
              e.canonicalConfigFilePath,
            ));
          break;
        case 4:
          if (((l = Gme(e)), l)) break;
        case 5:
          s = Rst(e, r);
          break;
        case 6:
          if (
            (e.projectService.reloadConfiguredProjectOptimized(e, i, o),
            (l = Gme(e)),
            l)
          )
            break;
        case 7:
          s = e.projectService.reloadConfiguredProjectClearingSemanticCache(
            e,
            i,
            o,
          );
          break;
        case 0:
        case 1:
          break;
        default:
          C.assertNever(t);
      }
      return {
        project: e,
        sentConfigFileDiag: s,
        configFileExistenceInfo: l,
        reason: i,
      };
    }
    function pOe(e, t) {
      return e.initialLoadPending
        ? ((e.potentialProjectReferences &&
            fg(e.potentialProjectReferences, t)) ??
            (e.resolvedChildConfigs && fg(e.resolvedChildConfigs, t)))
        : void 0;
    }
    function xst(e, t, r, i) {
      return e.getCurrentProgram()
        ? e.forEachResolvedProjectReference(t)
        : e.initialLoadPending
          ? pOe(e, i)
          : Ye(e.getProjectReferences(), r);
    }
    function zme(e, t, r) {
      const i = r && e.projectService.configuredProjects.get(r);
      return i && t(i);
    }
    function fOe(e, t) {
      return xst(
        e,
        (r) => zme(e, t, r.sourceFile.path),
        (r) => zme(e, t, e.toPath(cx(r))),
        (r) => zme(e, t, r),
      );
    }
    function zX(e, t) {
      return `${Bo(t) ? `Config: ${t} ` : t ? `Project: ${t.getProjectName()} ` : ""}WatchType: ${e}`;
    }
    function Bme(e) {
      return !e.isScriptOpen() && e.mTime !== void 0;
    }
    function Am(e) {
      return (
        e.invalidateResolutionsOfFailedLookupLocations(),
        e.dirty && !e.updateGraph()
      );
    }
    function mOe(e, t, r) {
      if (!r && (e.invalidateResolutionsOfFailedLookupLocations(), !e.dirty))
        return !1;
      e.triggerFileForConfigFileDiag = t;
      const i = e.pendingUpdateLevel;
      if ((e.updateGraph(), !e.triggerFileForConfigFileDiag && !r))
        return i === 2;
      const o = e.projectService.sendConfigFileDiagEvent(e, t, r);
      return ((e.triggerFileForConfigFileDiag = void 0), o);
    }
    function Rst(e, t) {
      if (t) {
        if (mOe(e, t, !1)) return !0;
      } else Am(e);
      return !1;
    }
    function Gme(e) {
      const t = Cs(e.getConfigFilePath()),
        r = e.projectService.ensureParsedConfigUptoDate(
          t,
          e.canonicalConfigFilePath,
          e.projectService.configFileExistenceInfoCache.get(
            e.canonicalConfigFilePath,
          ),
          e,
        ),
        i = r.config.parsedCommandLine;
      if (
        ((e.parsedCommandLine = i),
        (e.resolvedChildConfigs = void 0),
        e.updateReferences(i.projectReferences),
        Vme(e))
      )
        return r;
    }
    function Vme(e) {
      return (
        !!e.parsedCommandLine &&
        (!!e.parsedCommandLine.options.composite || !!fU(e.parsedCommandLine))
      );
    }
    function Dst(e) {
      return Vme(e)
        ? e.projectService.configFileExistenceInfoCache.get(
            e.canonicalConfigFilePath,
          )
        : void 0;
    }
    function Cst(e) {
      return `Creating possible configured project for ${e.fileName} to open`;
    }
    function BX(e) {
      return `User requested reload projects: ${e}`;
    }
    function jme(e) {
      bv(e) && (e.projectOptions = !0);
    }
    function Ume(e) {
      let t = 1;
      return () => e(t++);
    }
    function Hme() {
      return { idToCallbacks: new Map(), pathToId: new Map() };
    }
    function hOe(e, t) {
      return !!t && !!e.eventHandler && !!e.session;
    }
    function Nst(e, t) {
      if (!hOe(e, t)) return;
      const r = Hme(),
        i = Hme(),
        o = Hme();
      let s = 1;
      return (
        e.session.addProtocolHandler(
          "watchChange",
          (A) => (_(A.arguments), { responseRequired: !1 }),
        ),
        {
          watchFile: l,
          watchDirectory: u,
          getCurrentDirectory: () => e.host.getCurrentDirectory(),
          useCaseSensitiveFileNames: e.host.useCaseSensitiveFileNames,
        }
      );
      function l(A, R) {
        return d(r, A, R, (N) => ({ eventName: MX, data: { id: N, path: A } }));
      }
      function u(A, R, N) {
        return d(N ? o : i, A, R, (P) => ({
          eventName: PX,
          data: {
            id: P,
            path: A,
            recursive: !!N,
            ignoreUpdate: A.endsWith("/node_modules") ? void 0 : !0,
          },
        }));
      }
      function d({ pathToId: A, idToCallbacks: R }, N, P, k) {
        const W = e.toPath(N);
        let O = A.get(W);
        O || A.set(W, (O = s++));
        let G = R.get(O);
        return (
          G || (R.set(O, (G = new Set())), e.eventHandler(k(O))),
          G.add(P),
          {
            close() {
              const j = R.get(O);
              j?.delete(P) &&
                (j.size ||
                  (R.delete(O),
                  A.delete(W),
                  e.eventHandler({ eventName: LX, data: { id: O } })));
            },
          }
        );
      }
      function _(A) {
        Mo(A) ? A.forEach(h) : h(A);
      }
      function h({ id: A, created: R, deleted: N, updated: P }) {
        (g(A, R, 0), g(A, N, 2), g(A, P, 1));
      }
      function g(A, R, N) {
        R?.length &&
          (E(r, A, R, (P, k) => P(k, N)),
          E(i, A, R, (P, k) => P(k)),
          E(o, A, R, (P, k) => P(k)));
      }
      function E(A, R, N, P) {
        var k;
        (k = A.idToCallbacks.get(R)) == null ||
          k.forEach((W) => {
            N.forEach((O) => P(W, Bd(O)));
          });
      }
    }
    var _Oe = class qye {
      constructor(t) {
        ((this.filenameToScriptInfo = new Map()),
          (this.nodeModulesWatchers = new Map()),
          (this.filenameToScriptInfoVersion = new Map()),
          (this.allJsFilesForOpenFileTelemetry = new Set()),
          (this.externalProjectToConfiguredProjectMap = new Map()),
          (this.externalProjects = []),
          (this.inferredProjects = []),
          (this.configuredProjects = new Map()),
          (this.newInferredProjectName = Ume(ume)),
          (this.newAutoImportProviderProjectName = Ume(pme)),
          (this.newAuxiliaryProjectName = Ume(fme)),
          (this.openFiles = new Map()),
          (this.configFileForOpenFiles = new Map()),
          (this.rootOfInferredProjects = new Set()),
          (this.openFilesWithNonRootedDiskPath = new Map()),
          (this.compilerOptionsForInferredProjectsPerProjectRoot = new Map()),
          (this.watchOptionsForInferredProjectsPerProjectRoot = new Map()),
          (this.typeAcquisitionForInferredProjectsPerProjectRoot = new Map()),
          (this.projectToSizeMap = new Map()),
          (this.configFileExistenceInfoCache = new Map()),
          (this.safelist = Lme),
          (this.legacySafelist = new Map()),
          (this.pendingProjectUpdates = new Map()),
          (this.pendingEnsureProjectForOpenFiles = !1),
          (this.seenProjects = new Map()),
          (this.sharedExtendedConfigFileWatchers = new Map()),
          (this.extendedConfigCache = new Map()),
          (this.baseline = gs),
          (this.verifyDocumentRegistry = gs),
          (this.verifyProgram = gs),
          (this.onProjectCreation = gs));
        var r;
        ((this.host = t.host),
          (this.logger = t.logger),
          (this.cancellationToken = t.cancellationToken),
          (this.useSingleInferredProject = t.useSingleInferredProject),
          (this.useInferredProjectPerProjectRoot =
            t.useInferredProjectPerProjectRoot),
          (this.typingsInstaller = t.typingsInstaller || wz),
          (this.throttleWaitMilliseconds = t.throttleWaitMilliseconds),
          (this.eventHandler = t.eventHandler),
          (this.suppressDiagnosticEvents = t.suppressDiagnosticEvents),
          (this.globalPlugins = t.globalPlugins || Kc),
          (this.pluginProbeLocations = t.pluginProbeLocations || Kc),
          (this.allowLocalPluginLoads = !!t.allowLocalPluginLoads),
          (this.typesMapLocation =
            t.typesMapLocation === void 0
              ? Qr(ci(this.getExecutingFilePath()), "typesMap.json")
              : t.typesMapLocation),
          (this.session = t.session),
          (this.jsDocParsingMode = t.jsDocParsingMode),
          t.serverMode !== void 0
            ? (this.serverMode = t.serverMode)
            : (this.serverMode = 0),
          this.host.realpath && (this.realpathToScriptInfos = cm()),
          (this.currentDirectory = Cs(this.host.getCurrentDirectory())),
          (this.toCanonicalFileName = Fd(this.host.useCaseSensitiveFileNames)),
          (this.globalCacheLocationDirectoryPath = this.typingsInstaller
            .globalTypingsCacheLocation
            ? Uc(this.toPath(this.typingsInstaller.globalTypingsCacheLocation))
            : void 0),
          (this.throttledOperations = new hme(this.host, this.logger)),
          this.logger.info(
            `currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`,
          ),
          this.logger.info(
            `libs Location:: ${ci(this.host.getExecutingFilePath())}`,
          ),
          this.logger.info(
            `globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`,
          ),
          this.typesMapLocation
            ? this.loadTypesMap()
            : this.logger.info("No types map provided; using the default"),
          this.typingsInstaller.attach(this),
          (this.hostConfiguration = {
            formatCodeOptions: r7(this.host.newLine),
            preferences: Sm,
            hostInfo: "Unknown host",
            extraFileExtensions: [],
          }),
          (this.documentRegistry = RJ(
            this.host.useCaseSensitiveFileNames,
            this.currentDirectory,
            this.jsDocParsingMode,
            this,
          )));
        const i = this.logger.hasLevel(3)
            ? 2
            : this.logger.loggingEnabled()
              ? 1
              : 0,
          o = i !== 0 ? (s) => this.logger.info(s) : gs;
        ((this.packageJsonCache = Yme(this)),
          (this.watchFactory =
            this.serverMode !== 0
              ? { watchFile: SP, watchDirectory: SP }
              : fH(Nst(this, t.canUseWatchEvents) || this.host, i, o, zX)),
          (this.canUseWatchEvents = hOe(this, t.canUseWatchEvents)),
          (r = t.incrementalVerifier) == null || r.call(t, this));
      }
      toPath(t) {
        return ks(t, this.currentDirectory, this.toCanonicalFileName);
      }
      getExecutingFilePath() {
        return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath());
      }
      getNormalizedAbsolutePath(t) {
        return To(t, this.host.getCurrentDirectory());
      }
      setDocument(t, r, i) {
        const o = C.checkDefined(this.getScriptInfoForPath(r));
        o.cacheSourceFile = { key: t, sourceFile: i };
      }
      getDocument(t, r) {
        const i = this.getScriptInfoForPath(r);
        return i && i.cacheSourceFile && i.cacheSourceFile.key === t
          ? i.cacheSourceFile.sourceFile
          : void 0;
      }
      ensureInferredProjectsUpToDate_TestOnly() {
        this.ensureProjectStructuresUptoDate();
      }
      getCompilerOptionsForInferredProjects() {
        return this.compilerOptionsForInferredProjects;
      }
      onUpdateLanguageServiceStateForProject(t, r) {
        if (!this.eventHandler) return;
        const i = {
          eventName: CX,
          data: { project: t, languageServiceEnabled: r },
        };
        this.eventHandler(i);
      }
      loadTypesMap() {
        try {
          const t = this.host.readFile(this.typesMapLocation);
          if (t === void 0) {
            this.logger.info(
              `Provided types map file "${this.typesMapLocation}" doesn't exist`,
            );
            return;
          }
          const r = JSON.parse(t);
          for (const i of Object.keys(r.typesMap))
            r.typesMap[i].match = new RegExp(r.typesMap[i].match, "i");
          this.safelist = r.typesMap;
          for (const i in r.simpleMap)
            Rs(r.simpleMap, i) &&
              this.legacySafelist.set(i, r.simpleMap[i].toLowerCase());
        } catch (t) {
          (this.logger.info(`Error loading types map: ${t}`),
            (this.safelist = Lme),
            this.legacySafelist.clear());
        }
      }
      updateTypingsForProject(t) {
        const r = this.findProject(t.projectName);
        if (r)
          switch (t.kind) {
            case Z3:
              r.updateTypingFiles(
                t.compilerOptions,
                t.typeAcquisition,
                t.unresolvedImports,
                t.typings,
              );
              return;
            case e7:
              r.enqueueInstallTypingsForProject(!0);
              return;
          }
      }
      watchTypingLocations(t) {
        var r;
        (r = this.findProject(t.projectName)) == null ||
          r.watchTypingLocations(t.files);
      }
      delayEnsureProjectForOpenFiles() {
        this.openFiles.size &&
          ((this.pendingEnsureProjectForOpenFiles = !0),
          this.throttledOperations.schedule(iOe, 2500, () => {
            this.pendingProjectUpdates.size !== 0
              ? this.delayEnsureProjectForOpenFiles()
              : this.pendingEnsureProjectForOpenFiles &&
                (this.ensureProjectForOpenFiles(),
                this.sendProjectsUpdatedInBackgroundEvent());
          }));
      }
      delayUpdateProjectGraph(t) {
        if (_W(t) || (t.markAsDirty(), hW(t))) return;
        const r = t.getProjectName();
        (this.pendingProjectUpdates.set(r, t),
          this.throttledOperations.schedule(r, 250, () => {
            this.pendingProjectUpdates.delete(r) && Am(t);
          }));
      }
      hasPendingProjectUpdate(t) {
        return this.pendingProjectUpdates.has(t.getProjectName());
      }
      sendProjectsUpdatedInBackgroundEvent() {
        if (!this.eventHandler) return;
        const t = {
          eventName: Lz,
          data: {
            openFiles: Co(
              this.openFiles.keys(),
              (r) => this.getScriptInfoForPath(r).fileName,
            ),
          },
        };
        this.eventHandler(t);
      }
      sendLargeFileReferencedEvent(t, r) {
        if (!this.eventHandler) return;
        const i = {
          eventName: RX,
          data: { file: t, fileSize: r, maxFileSize: AX },
        };
        this.eventHandler(i);
      }
      sendProjectLoadingStartEvent(t, r) {
        if (!this.eventHandler) return;
        t.sendLoadingProjectFinish = !0;
        const i = { eventName: IX, data: { project: t, reason: r } };
        this.eventHandler(i);
      }
      sendProjectLoadingFinishEvent(t) {
        if (!this.eventHandler || !t.sendLoadingProjectFinish) return;
        t.sendLoadingProjectFinish = !1;
        const r = { eventName: xX, data: { project: t } };
        this.eventHandler(r);
      }
      sendPerformanceEvent(t, r) {
        this.performanceEventHandler &&
          this.performanceEventHandler({ kind: t, durationMs: r });
      }
      delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t) {
        (this.delayUpdateProjectGraph(t),
          this.delayEnsureProjectForOpenFiles());
      }
      delayUpdateProjectGraphs(t, r) {
        if (t.length) {
          for (const i of t)
            (r && i.clearSourceMapperCache(), this.delayUpdateProjectGraph(i));
          this.delayEnsureProjectForOpenFiles();
        }
      }
      setCompilerOptionsForInferredProjects(t, r) {
        C.assert(
          r === void 0 || this.useInferredProjectPerProjectRoot,
          "Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled",
        );
        const i = kz(t),
          o = gW(t, r),
          s = kme(t);
        i.allowNonTsExtensions = !0;
        const l = r && this.toCanonicalFileName(r);
        l
          ? (this.compilerOptionsForInferredProjectsPerProjectRoot.set(l, i),
            this.watchOptionsForInferredProjectsPerProjectRoot.set(l, o || !1),
            this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l, s))
          : ((this.compilerOptionsForInferredProjects = i),
            (this.watchOptionsForInferredProjects = o),
            (this.typeAcquisitionForInferredProjects = s));
        for (const u of this.inferredProjects)
          (l
            ? u.projectRootPath === l
            : !u.projectRootPath ||
              !this.compilerOptionsForInferredProjectsPerProjectRoot.has(
                u.projectRootPath,
              )) &&
            (u.setCompilerOptions(i),
            u.setTypeAcquisition(s),
            u.setWatchOptions(o?.watchOptions),
            u.setProjectErrors(o?.errors),
            (u.compileOnSaveEnabled = i.compileOnSave),
            u.markAsDirty(),
            this.delayUpdateProjectGraph(u));
        this.delayEnsureProjectForOpenFiles();
      }
      findProject(t) {
        if (t !== void 0)
          return dme(t)
            ? aOe(t, this.inferredProjects)
            : this.findExternalProjectByProjectName(t) ||
                this.findConfiguredProjectByProjectName(Cs(t));
      }
      forEachProject(t) {
        (this.externalProjects.forEach(t),
          this.configuredProjects.forEach(t),
          this.inferredProjects.forEach(t));
      }
      forEachEnabledProject(t) {
        this.forEachProject((r) => {
          !r.isOrphan() && r.languageServiceEnabled && t(r);
        });
      }
      getDefaultProjectForFile(t, r) {
        return r
          ? this.ensureDefaultProjectForFile(t)
          : this.tryGetDefaultProjectForFile(t);
      }
      tryGetDefaultProjectForFile(t) {
        const r = Bo(t) ? this.getScriptInfoForNormalizedPath(t) : t;
        return r && !r.isOrphan() ? r.getDefaultProject() : void 0;
      }
      tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t) {
        var r;
        const i = Bo(t) ? this.getScriptInfoForNormalizedPath(t) : t;
        if (i)
          return (
            (r = this.pendingOpenFileProjectUpdates) != null &&
              r.delete(i.path) &&
              (this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(
                i,
                5,
              ),
              i.isOrphan() &&
                this.assignOrphanScriptInfoToInferredProject(
                  i,
                  this.openFiles.get(i.path),
                )),
            this.tryGetDefaultProjectForFile(i)
          );
      }
      ensureDefaultProjectForFile(t) {
        return (
          this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t) ||
          this.doEnsureDefaultProjectForFile(t)
        );
      }
      doEnsureDefaultProjectForFile(t) {
        this.ensureProjectStructuresUptoDate();
        const r = Bo(t) ? this.getScriptInfoForNormalizedPath(t) : t;
        return r
          ? r.getDefaultProject()
          : (this.logErrorForScriptInfoNotFound(Bo(t) ? t : t.fileName),
            by.ThrowNoProject());
      }
      getScriptInfoEnsuringProjectsUptoDate(t) {
        return (this.ensureProjectStructuresUptoDate(), this.getScriptInfo(t));
      }
      ensureProjectStructuresUptoDate() {
        let t = this.pendingEnsureProjectForOpenFiles;
        this.pendingProjectUpdates.clear();
        const r = (i) => {
          t = Am(i) || t;
        };
        (this.externalProjects.forEach(r),
          this.configuredProjects.forEach(r),
          this.inferredProjects.forEach(r),
          t && this.ensureProjectForOpenFiles());
      }
      getFormatCodeOptions(t) {
        const r = this.getScriptInfoForNormalizedPath(t);
        return (
          (r && r.getFormatCodeSettings()) ||
          this.hostConfiguration.formatCodeOptions
        );
      }
      getPreferences(t) {
        const r = this.getScriptInfoForNormalizedPath(t);
        return {
          ...this.hostConfiguration.preferences,
          ...(r && r.getPreferences()),
        };
      }
      getHostFormatCodeOptions() {
        return this.hostConfiguration.formatCodeOptions;
      }
      getHostPreferences() {
        return this.hostConfiguration.preferences;
      }
      onSourceFileChanged(t, r) {
        (C.assert(!t.isScriptOpen()),
          r === 2
            ? this.handleDeletedFile(t, !0)
            : (t.deferredDelete && (t.deferredDelete = void 0),
              t.delayReloadNonMixedContentFile(),
              this.delayUpdateProjectGraphs(t.containingProjects, !1),
              this.handleSourceMapProjects(t)));
      }
      handleSourceMapProjects(t) {
        if (t.sourceMapFilePath)
          if (Bo(t.sourceMapFilePath)) {
            const r = this.getScriptInfoForPath(t.sourceMapFilePath);
            this.delayUpdateSourceInfoProjects(r?.sourceInfos);
          } else
            this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);
        (this.delayUpdateSourceInfoProjects(t.sourceInfos),
          t.declarationInfoPath &&
            this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath));
      }
      delayUpdateSourceInfoProjects(t) {
        t && t.forEach((r, i) => this.delayUpdateProjectsOfScriptInfoPath(i));
      }
      delayUpdateProjectsOfScriptInfoPath(t) {
        const r = this.getScriptInfoForPath(t);
        r && this.delayUpdateProjectGraphs(r.containingProjects, !0);
      }
      handleDeletedFile(t, r) {
        (C.assert(!t.isScriptOpen()),
          this.delayUpdateProjectGraphs(t.containingProjects, !1),
          this.handleSourceMapProjects(t),
          t.detachAllProjects(),
          r
            ? (t.delayReloadNonMixedContentFile(), (t.deferredDelete = !0))
            : this.deleteScriptInfo(t));
      }
      watchWildcardDirectory(t, r, i, o) {
        let s = this.watchFactory.watchDirectory(
          t,
          (u) => this.onWildCardDirectoryWatcherInvoke(t, i, o, l, u),
          r,
          this.getWatchOptionsFromProjectWatchOptions(
            o.parsedCommandLine.watchOptions,
            ci(i),
          ),
          sd.WildcardDirectory,
          i,
        );
        const l = {
          packageJsonWatches: void 0,
          close() {
            var u;
            s &&
              (s.close(),
              (s = void 0),
              (u = l.packageJsonWatches) == null ||
                u.forEach((d) => {
                  (d.projects.delete(l), d.close());
                }),
              (l.packageJsonWatches = void 0));
          },
        };
        return l;
      }
      onWildCardDirectoryWatcherInvoke(t, r, i, o, s) {
        const l = this.toPath(s),
          u = i.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(s, l);
        if (
          Ic(l) === "package.json" &&
          !MO(l) &&
          ((u && u.fileExists) || (!u && this.host.fileExists(s)))
        ) {
          const _ = this.getNormalizedAbsolutePath(s);
          (this.logger.info(`Config: ${r} Detected new package.json: ${_}`),
            this.packageJsonCache.addOrUpdate(_, l),
            this.watchPackageJsonFile(_, l, o));
        }
        u?.fileExists || this.sendSourceFileChange(l);
        const d = this.findConfiguredProjectByProjectName(r);
        tO({
          watchedDirPath: this.toPath(t),
          fileOrDirectory: s,
          fileOrDirectoryPath: l,
          configFileName: r,
          extraFileExtensions: this.hostConfiguration.extraFileExtensions,
          currentDirectory: this.currentDirectory,
          options: i.parsedCommandLine.options,
          program: d?.getCurrentProgram() || i.parsedCommandLine.fileNames,
          useCaseSensitiveFileNames: this.host.useCaseSensitiveFileNames,
          writeLog: (_) => this.logger.info(_),
          toPath: (_) => this.toPath(_),
          getScriptKind: d ? (_) => d.getScriptKind(_) : void 0,
        }) ||
          (i.updateLevel !== 2 && (i.updateLevel = 1),
          i.projects.forEach((_, h) => {
            var g;
            if (!_) return;
            const E = this.getConfiguredProjectByCanonicalConfigFilePath(h);
            if (!E) return;
            if (
              d !== E &&
              this.getHostPreferences().includeCompletionsForModuleExports
            ) {
              const R = this.toPath(r);
              hn(
                (g = E.getCurrentProgram()) == null
                  ? void 0
                  : g.getResolvedProjectReferences(),
                (N) => N?.sourceFile.path === R,
              ) && E.markAutoImportProviderAsDirty();
            }
            const A = d === E ? 1 : 0;
            if (!(E.pendingUpdateLevel > A))
              if (this.openFiles.has(l))
                if (
                  C.checkDefined(this.getScriptInfoForPath(l)).isAttached(E)
                ) {
                  const N = Math.max(A, E.openFileWatchTriggered.get(l) || 0);
                  E.openFileWatchTriggered.set(l, N);
                } else
                  ((E.pendingUpdateLevel = A),
                    this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(
                      E,
                    ));
              else
                ((E.pendingUpdateLevel = A),
                  this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(
                    E,
                  ));
          }));
      }
      delayUpdateProjectsFromParsedConfigOnConfigFileChange(t, r) {
        const i = this.configFileExistenceInfoCache.get(t);
        if (!i?.config) return !1;
        let o = !1;
        return (
          (i.config.updateLevel = 2),
          i.config.cachedDirectoryStructureHost.clearCache(),
          i.config.projects.forEach((s, l) => {
            var u, d, _;
            const h = this.getConfiguredProjectByCanonicalConfigFilePath(l);
            if (h)
              if (((o = !0), l === t)) {
                if (h.initialLoadPending) return;
                ((h.pendingUpdateLevel = 2),
                  (h.pendingUpdateReason = r),
                  this.delayUpdateProjectGraph(h),
                  h.markAutoImportProviderAsDirty());
              } else {
                if (h.initialLoadPending) {
                  (d =
                    (u = this.configFileExistenceInfoCache.get(l)) == null
                      ? void 0
                      : u.openFilesImpactedByConfigFile) == null ||
                    d.forEach((E) => {
                      var A;
                      ((A = this.pendingOpenFileProjectUpdates) != null &&
                        A.has(E)) ||
                        (
                          this.pendingOpenFileProjectUpdates ??
                          (this.pendingOpenFileProjectUpdates = new Map())
                        ).set(E, this.configFileForOpenFiles.get(E));
                    });
                  return;
                }
                const g = this.toPath(t);
                (h.resolutionCache.removeResolutionsFromProjectReferenceRedirects(
                  g,
                ),
                  this.delayUpdateProjectGraph(h),
                  this.getHostPreferences()
                    .includeCompletionsForModuleExports &&
                    hn(
                      (_ = h.getCurrentProgram()) == null
                        ? void 0
                        : _.getResolvedProjectReferences(),
                      (E) => E?.sourceFile.path === g,
                    ) &&
                    h.markAutoImportProviderAsDirty());
              }
          }),
          o
        );
      }
      onConfigFileChanged(t, r, i) {
        const o = this.configFileExistenceInfoCache.get(r),
          s = this.getConfiguredProjectByCanonicalConfigFilePath(r),
          l = s?.deferredClose;
        (i === 2
          ? ((o.exists = !1), s && (s.deferredClose = !0))
          : ((o.exists = !0),
            l && ((s.deferredClose = void 0), s.markAsDirty())),
          this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(
            r,
            "Change in config file detected",
          ),
          this.openFiles.forEach((u, d) => {
            var _, h;
            const g = this.configFileForOpenFiles.get(d);
            if (!((_ = o.openFilesImpactedByConfigFile) != null && _.has(d)))
              return;
            this.configFileForOpenFiles.delete(d);
            const E = this.getScriptInfoForPath(d);
            this.getConfigFileNameForFile(E, !1) &&
              (((h = this.pendingOpenFileProjectUpdates) != null && h.has(d)) ||
                (
                  this.pendingOpenFileProjectUpdates ??
                  (this.pendingOpenFileProjectUpdates = new Map())
                ).set(d, g));
          }),
          this.delayEnsureProjectForOpenFiles());
      }
      removeProject(t) {
        switch (
          (this.logger.info("`remove Project::"),
          t.print(!0, !0, !1),
          t.close(),
          C.shouldAssert(1) &&
            this.filenameToScriptInfo.forEach((r) =>
              C.assert(
                !r.isAttached(t),
                "Found script Info still attached to project",
                () =>
                  `${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Co(nh(this.filenameToScriptInfo.values(), (i) => (i.isAttached(t) ? { fileName: i.fileName, projects: i.containingProjects.map((o) => o.projectName), hasMixedContent: i.hasMixedContent } : void 0))), void 0, " ")}`,
              ),
            ),
          this.pendingProjectUpdates.delete(t.getProjectName()),
          t.projectKind)
        ) {
          case 2:
            (ZA(this.externalProjects, t),
              this.projectToSizeMap.delete(t.getProjectName()));
            break;
          case 1:
            (this.configuredProjects.delete(t.canonicalConfigFilePath),
              this.projectToSizeMap.delete(t.canonicalConfigFilePath));
            break;
          case 0:
            ZA(this.inferredProjects, t);
            break;
        }
      }
      assignOrphanScriptInfoToInferredProject(t, r) {
        C.assert(t.isOrphan());
        const i =
          this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t, r) ||
          this.getOrCreateSingleInferredProjectIfEnabled() ||
          this.getOrCreateSingleInferredWithoutProjectRoot(
            t.isDynamic
              ? r || this.currentDirectory
              : ci(
                  Cp(t.fileName)
                    ? t.fileName
                    : To(
                        t.fileName,
                        r
                          ? this.getNormalizedAbsolutePath(r)
                          : this.currentDirectory,
                      ),
                ),
          );
        if (
          (i.addRoot(t),
          t.containingProjects[0] !== i &&
            (mN(t.containingProjects, i), t.containingProjects.unshift(i)),
          i.updateGraph(),
          !this.useSingleInferredProject && !i.projectRootPath)
        )
          for (const o of this.inferredProjects) {
            if (o === i || o.isOrphan()) continue;
            const s = o.getRootScriptInfos();
            (C.assert(s.length === 1 || !!o.projectRootPath),
              s.length === 1 &&
                Ye(
                  s[0].containingProjects,
                  (l) => l !== s[0].containingProjects[0] && !l.isOrphan(),
                ) &&
                o.removeFile(s[0], !0, !0));
          }
        return i;
      }
      assignOrphanScriptInfosToInferredProject() {
        this.openFiles.forEach((t, r) => {
          const i = this.getScriptInfoForPath(r);
          i.isOrphan() && this.assignOrphanScriptInfoToInferredProject(i, t);
        });
      }
      closeOpenFile(t, r) {
        var i;
        const o = t.isDynamic ? !1 : this.host.fileExists(t.fileName);
        (t.close(o), this.stopWatchingConfigFilesForScriptInfo(t));
        const s = this.toCanonicalFileName(t.fileName);
        this.openFilesWithNonRootedDiskPath.get(s) === t &&
          this.openFilesWithNonRootedDiskPath.delete(s);
        let l = !1;
        for (const u of t.containingProjects) {
          if (bv(u)) {
            t.hasMixedContent && t.registerFileUpdate();
            const d = u.openFileWatchTriggered.get(t.path);
            d !== void 0 &&
              (u.openFileWatchTriggered.delete(t.path),
              u.pendingUpdateLevel < d &&
                ((u.pendingUpdateLevel = d), u.markFileAsDirty(t.path)));
          } else
            _C(u) &&
              u.isRoot(t) &&
              (u.isProjectWithSingleRoot() && (l = !0), u.removeFile(t, o, !0));
          u.languageServiceEnabled || u.markAsDirty();
        }
        return (
          this.openFiles.delete(t.path),
          this.configFileForOpenFiles.delete(t.path),
          (i = this.pendingOpenFileProjectUpdates) == null || i.delete(t.path),
          C.assert(!this.rootOfInferredProjects.has(t)),
          !r && l && this.assignOrphanScriptInfosToInferredProject(),
          o ? this.watchClosedScriptInfo(t) : this.handleDeletedFile(t, !1),
          l
        );
      }
      deleteScriptInfo(t) {
        (C.assert(!t.isScriptOpen()),
          this.filenameToScriptInfo.delete(t.path),
          this.filenameToScriptInfoVersion.set(t.path, t.textStorage.version),
          this.stopWatchingScriptInfo(t));
        const r = t.getRealpathIfDifferent();
        (r && this.realpathToScriptInfos.remove(r, t),
          t.closeSourceMapFileWatcher());
      }
      configFileExists(t, r, i) {
        const o = this.configFileExistenceInfoCache.get(r);
        let s;
        if (
          (this.openFiles.has(i.path) &&
            (!FX(i) || i.isForDefaultProject) &&
            (o
              ? (
                  o.openFilesImpactedByConfigFile ??
                  (o.openFilesImpactedByConfigFile = new Set())
                ).add(i.path)
              : (s = new Set()).add(i.path)),
          o)
        )
          return o.exists;
        const l = this.host.fileExists(t);
        return (
          this.configFileExistenceInfoCache.set(r, {
            exists: l,
            openFilesImpactedByConfigFile: s,
          }),
          l
        );
      }
      createConfigFileWatcherForParsedConfig(t, r, i) {
        var o, s;
        const l = this.configFileExistenceInfoCache.get(r);
        ((!l.watcher || l.watcher === Ome) &&
          (l.watcher = this.watchFactory.watchFile(
            t,
            (u, d) => this.onConfigFileChanged(t, r, d),
            2e3,
            this.getWatchOptionsFromProjectWatchOptions(
              (s = (o = l?.config) == null ? void 0 : o.parsedCommandLine) ==
                null
                ? void 0
                : s.watchOptions,
              ci(t),
            ),
            sd.ConfigFile,
            i,
          )),
          this.ensureConfigFileWatcherForProject(l, i));
      }
      ensureConfigFileWatcherForProject(t, r) {
        const i = t.config.projects;
        i.set(
          r.canonicalConfigFilePath,
          i.get(r.canonicalConfigFilePath) || !1,
        );
      }
      releaseParsedConfig(t, r) {
        var i, o, s;
        const l = this.configFileExistenceInfoCache.get(t);
        (i = l.config) != null &&
          i.projects.delete(r.canonicalConfigFilePath) &&
          (((o = l.config) != null && o.projects.size) ||
            ((l.config = void 0),
            uH(t, this.sharedExtendedConfigFileWatchers),
            C.checkDefined(l.watcher),
            (s = l.openFilesImpactedByConfigFile) != null && s.size
              ? l.inferredProjectRoots
                ? lO(ci(t)) || (l.watcher.close(), (l.watcher = Ome))
                : (l.watcher.close(), (l.watcher = void 0))
              : (l.watcher.close(),
                this.configFileExistenceInfoCache.delete(t))));
      }
      stopWatchingConfigFilesForScriptInfo(t) {
        if (this.serverMode !== 0) return;
        const r = this.rootOfInferredProjects.delete(t),
          i = t.isScriptOpen();
        (i && !r) ||
          this.forEachConfigFileLocation(t, (o) => {
            var s, l, u;
            const d = this.configFileExistenceInfoCache.get(o);
            if (d) {
              if (i) {
                if (
                  !(
                    (s = d?.openFilesImpactedByConfigFile) != null &&
                    s.has(t.path)
                  )
                )
                  return;
              } else if (
                !(
                  (l = d.openFilesImpactedByConfigFile) != null &&
                  l.delete(t.path)
                )
              )
                return;
              (r &&
                (d.inferredProjectRoots--,
                d.watcher &&
                  !d.config &&
                  !d.inferredProjectRoots &&
                  (d.watcher.close(), (d.watcher = void 0))),
                !((u = d.openFilesImpactedByConfigFile) != null && u.size) &&
                  !d.config &&
                  (C.assert(!d.watcher),
                  this.configFileExistenceInfoCache.delete(o)));
            }
          });
      }
      startWatchingConfigFilesForInferredProjectRoot(t) {
        this.serverMode === 0 &&
          (C.assert(t.isScriptOpen()),
          this.rootOfInferredProjects.add(t),
          this.forEachConfigFileLocation(t, (r, i) => {
            let o = this.configFileExistenceInfoCache.get(r);
            (o
              ? (o.inferredProjectRoots = (o.inferredProjectRoots ?? 0) + 1)
              : ((o = {
                  exists: this.host.fileExists(i),
                  inferredProjectRoots: 1,
                }),
                this.configFileExistenceInfoCache.set(r, o)),
              (
                o.openFilesImpactedByConfigFile ??
                (o.openFilesImpactedByConfigFile = new Set())
              ).add(t.path),
              o.watcher ||
                (o.watcher = lO(ci(r))
                  ? this.watchFactory.watchFile(
                      i,
                      (s, l) => this.onConfigFileChanged(i, r, l),
                      2e3,
                      this.hostConfiguration.watchOptions,
                      sd.ConfigFileForInferredRoot,
                    )
                  : Ome));
          }));
      }
      forEachConfigFileLocation(t, r) {
        if (this.serverMode !== 0) return;
        C.assert(!lOe(t) || this.openFiles.has(t.path));
        const i = this.openFiles.get(t.path);
        if (C.checkDefined(this.getScriptInfo(t.path)).isDynamic) return;
        let s = ci(t.fileName);
        const l = () =>
            um(
              i,
              s,
              this.currentDirectory,
              !this.host.useCaseSensitiveFileNames,
            ),
          u = !i || !l();
        let d = !0,
          _ = !0;
        FX(t) && (el(t.fileName, "tsconfig.json") ? (d = !1) : (d = _ = !1));
        do {
          const h = hC(s, this.currentDirectory, this.toCanonicalFileName);
          if (d) {
            const E = Qr(s, "tsconfig.json");
            if (r(Qr(h, "tsconfig.json"), E)) return E;
          }
          if (_) {
            const E = Qr(s, "jsconfig.json");
            if (r(Qr(h, "jsconfig.json"), E)) return E;
          }
          if (rF(h)) break;
          const g = ci(s);
          if (g === s) break;
          ((s = g), (d = _ = !0));
        } while (u || l());
      }
      findDefaultConfiguredProject(t) {
        var r;
        return (r = this.findDefaultConfiguredProjectWorker(t, 1)) == null
          ? void 0
          : r.defaultProject;
      }
      findDefaultConfiguredProjectWorker(t, r) {
        return t.isScriptOpen()
          ? this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t, r)
          : void 0;
      }
      getConfigFileNameForFileFromCache(t, r) {
        if (r) {
          const i = sOe(t, this.pendingOpenFileProjectUpdates);
          if (i !== void 0) return i;
        }
        return sOe(t, this.configFileForOpenFiles);
      }
      setConfigFileNameForFileInCache(t, r) {
        if (!this.openFiles.has(t.path)) return;
        const i = r || !1;
        if (!FX(t)) this.configFileForOpenFiles.set(t.path, i);
        else {
          let o = this.configFileForOpenFiles.get(t.path);
          ((!o || Bo(o)) &&
            this.configFileForOpenFiles.set(t.path, (o = new Map().set(!1, o))),
            o.set(t.fileName, i));
        }
      }
      getConfigFileNameForFile(t, r) {
        const i = this.getConfigFileNameForFileFromCache(t, r);
        if (i !== void 0) return i || void 0;
        if (r) return;
        const o = this.forEachConfigFileLocation(t, (s, l) =>
          this.configFileExists(l, s, t),
        );
        return (
          this.logger.info(
            `getConfigFileNameForFile:: File: ${t.fileName} ProjectRootPath: ${this.openFiles.get(t.path)}:: Result: ${o}`,
          ),
          this.setConfigFileNameForFileInCache(t, o),
          o
        );
      }
      printProjects() {
        this.logger.hasLevel(1) &&
          (this.logger.startGroup(),
          this.externalProjects.forEach(Kme),
          this.configuredProjects.forEach(Kme),
          this.inferredProjects.forEach(Kme),
          this.logger.info("Open files: "),
          this.openFiles.forEach((t, r) => {
            const i = this.getScriptInfoForPath(r);
            (this.logger.info(`	FileName: ${i.fileName} ProjectRootPath: ${t}`),
              this.logger.info(
                `		Projects: ${i.containingProjects.map((o) => o.getProjectName())}`,
              ));
          }),
          this.logger.endGroup());
      }
      findConfiguredProjectByProjectName(t, r) {
        const i = this.toCanonicalFileName(t),
          o = this.getConfiguredProjectByCanonicalConfigFilePath(i);
        return r ? o : o?.deferredClose ? void 0 : o;
      }
      getConfiguredProjectByCanonicalConfigFilePath(t) {
        return this.configuredProjects.get(t);
      }
      findExternalProjectByProjectName(t) {
        return aOe(t, this.externalProjects);
      }
      getFilenameForExceededTotalSizeLimitForNonTsFiles(t, r, i, o) {
        if ((r && r.disableSizeLimit) || !this.host.getFileSize) return;
        let s = EX;
        (this.projectToSizeMap.set(t, 0),
          this.projectToSizeMap.forEach((u) => (s -= u || 0)));
        let l = 0;
        for (const u of i) {
          const d = o.getFileName(u);
          if (!f1(d) && ((l += this.host.getFileSize(d)), l > EX || l > s)) {
            const _ = i
              .map((h) => o.getFileName(h))
              .filter((h) => !f1(h))
              .map((h) => ({ name: h, size: this.host.getFileSize(h) }))
              .sort((h, g) => g.size - h.size)
              .slice(0, 5);
            return (
              this.logger.info(
                `Non TS file size exceeded limit (${l}). Largest files: ${_.map((h) => `${h.name}:${h.size}`).join(", ")}`,
              ),
              d
            );
          }
        }
        this.projectToSizeMap.set(t, l);
      }
      createExternalProject(t, r, i, o, s) {
        const l = kz(i),
          u = gW(i, ci(Bd(t))),
          d = new SX(
            t,
            this,
            l,
            this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t, l, r, WX),
            i.compileOnSave === void 0 ? !0 : i.compileOnSave,
            void 0,
            u?.watchOptions,
          );
        return (
          d.setProjectErrors(u?.errors),
          (d.excludedFiles = s),
          this.addFilesToNonInferredProject(d, r, WX, o),
          this.externalProjects.push(d),
          d
        );
      }
      sendProjectTelemetry(t) {
        if (this.seenProjects.has(t.projectName)) {
          jme(t);
          return;
        }
        if (
          (this.seenProjects.set(t.projectName, !0),
          !this.eventHandler || !this.host.createSHA256Hash)
        ) {
          jme(t);
          return;
        }
        const r = bv(t) ? t.projectOptions : void 0;
        jme(t);
        const i = {
          projectId: this.host.createSHA256Hash(t.projectName),
          fileStats: fW(t.getScriptInfos(), !0),
          compilerOptions: Loe(t.getCompilationSettings()),
          typeAcquisition: s(t.getTypeAcquisition()),
          extends: r && r.configHasExtendsProperty,
          files: r && r.configHasFilesProperty,
          include: r && r.configHasIncludeProperty,
          exclude: r && r.configHasExcludeProperty,
          compileOnSave: t.compileOnSaveEnabled,
          configFileName: o(),
          projectType: t instanceof SX ? "external" : "configured",
          languageServiceEnabled: t.languageServiceEnabled,
          version: Le,
        };
        this.eventHandler({ eventName: NX, data: i });
        function o() {
          return (bv(t) && TX(t.getConfigFilePath())) || "other";
        }
        function s({ enable: l, include: u, exclude: d }) {
          return {
            enable: l,
            include: u !== void 0 && u.length !== 0,
            exclude: d !== void 0 && d.length !== 0,
          };
        }
      }
      addFilesToNonInferredProject(t, r, i, o) {
        (this.updateNonInferredProjectFiles(t, r, i),
          t.setTypeAcquisition(o),
          t.markAsDirty());
      }
      createConfiguredProject(t, r) {
        var i;
        (i = xr) == null ||
          i.instant(xr.Phase.Session, "createConfiguredProject", {
            configFilePath: t,
          });
        const o = this.toCanonicalFileName(t);
        let s = this.configFileExistenceInfoCache.get(o);
        (s
          ? (s.exists = !0)
          : this.configFileExistenceInfoCache.set(o, (s = { exists: !0 })),
          s.config ||
            (s.config = {
              cachedDirectoryStructureHost: A3(
                this.host,
                this.host.getCurrentDirectory(),
                this.host.useCaseSensitiveFileNames,
              ),
              projects: new Map(),
              updateLevel: 2,
            }));
        const l = new Mme(t, o, this, s.config.cachedDirectoryStructureHost, r);
        return (
          C.assert(!this.configuredProjects.has(o)),
          this.configuredProjects.set(o, l),
          this.createConfigFileWatcherForParsedConfig(t, o, l),
          l
        );
      }
      loadConfiguredProject(t, r) {
        var i, o;
        ((i = xr) == null ||
          i.push(xr.Phase.Session, "loadConfiguredProject", {
            configFilePath: t.canonicalConfigFilePath,
          }),
          this.sendProjectLoadingStartEvent(t, r));
        const s = Cs(t.getConfigFilePath()),
          l = this.ensureParsedConfigUptoDate(
            s,
            t.canonicalConfigFilePath,
            this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),
            t,
          ),
          u = l.config.parsedCommandLine;
        C.assert(!!u.fileNames);
        const d = u.options;
        (t.projectOptions ||
          (t.projectOptions = {
            configHasExtendsProperty: u.raw.extends !== void 0,
            configHasFilesProperty: u.raw.files !== void 0,
            configHasIncludeProperty: u.raw.include !== void 0,
            configHasExcludeProperty: u.raw.exclude !== void 0,
          }),
          (t.parsedCommandLine = u),
          t.setProjectErrors(u.options.configFile.parseDiagnostics),
          t.updateReferences(u.projectReferences));
        const _ = this.getFilenameForExceededTotalSizeLimitForNonTsFiles(
          t.canonicalConfigFilePath,
          d,
          u.fileNames,
          OX,
        );
        (_
          ? (t.disableLanguageService(_),
            this.configFileExistenceInfoCache.forEach((g, E) =>
              this.stopWatchingWildCards(E, t),
            ))
          : (t.setCompilerOptions(d),
            t.setWatchOptions(u.watchOptions),
            t.enableLanguageService(),
            this.watchWildcards(s, l, t)),
          t.enablePluginsWithOptions(d));
        const h = u.fileNames.concat(t.getExternalFiles(2));
        (this.updateRootAndOptionsOfNonInferredProject(
          t,
          h,
          OX,
          d,
          u.typeAcquisition,
          u.compileOnSave,
          u.watchOptions,
        ),
          (o = xr) == null || o.pop());
      }
      ensureParsedConfigUptoDate(t, r, i, o) {
        var s, l, u;
        if (
          i.config &&
          (i.config.updateLevel === 1 &&
            this.reloadFileNamesOfParsedConfig(t, i.config),
          !i.config.updateLevel)
        )
          return (this.ensureConfigFileWatcherForProject(i, o), i);
        if (!i.exists && i.config)
          return (
            (i.config.updateLevel = void 0),
            this.ensureConfigFileWatcherForProject(i, o),
            i
          );
        const d =
            ((s = i.config) == null
              ? void 0
              : s.cachedDirectoryStructureHost) ||
            A3(
              this.host,
              this.host.getCurrentDirectory(),
              this.host.useCaseSensitiveFileNames,
            ),
          _ = ZM(t, (N) => this.host.readFile(N)),
          h = Nw(t, Bo(_) ? _ : ""),
          g = h.parseDiagnostics;
        Bo(_) || g.push(_);
        const E = ci(t),
          A = Ow(
            h,
            d,
            E,
            void 0,
            t,
            void 0,
            this.hostConfiguration.extraFileExtensions,
            this.extendedConfigCache,
          );
        (A.errors.length && g.push(...A.errors),
          this.logger.info(
            `Config: ${t} : ${JSON.stringify({ rootNames: A.fileNames, options: A.options, watchOptions: A.watchOptions, projectReferences: A.projectReferences }, void 0, " ")}`,
          ));
        const R = (l = i.config) == null ? void 0 : l.parsedCommandLine;
        return (
          i.config
            ? ((i.config.parsedCommandLine = A),
              (i.config.watchedDirectoriesStale = !0),
              (i.config.updateLevel = void 0))
            : (i.config = {
                parsedCommandLine: A,
                cachedDirectoryStructureHost: d,
                projects: new Map(),
              }),
          !R &&
            !Y6(
              this.getWatchOptionsFromProjectWatchOptions(void 0, E),
              this.getWatchOptionsFromProjectWatchOptions(A.watchOptions, E),
            ) &&
            ((u = i.watcher) == null || u.close(), (i.watcher = void 0)),
          this.createConfigFileWatcherForParsedConfig(t, r, o),
          I3(
            r,
            A.options,
            this.sharedExtendedConfigFileWatchers,
            (N, P) =>
              this.watchFactory.watchFile(
                N,
                () => {
                  var k;
                  x3(this.extendedConfigCache, P, (O) => this.toPath(O));
                  let W = !1;
                  ((k = this.sharedExtendedConfigFileWatchers.get(P)) == null ||
                    k.projects.forEach((O) => {
                      W =
                        this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(
                          O,
                          `Change in extended config file ${N} detected`,
                        ) || W;
                    }),
                    W && this.delayEnsureProjectForOpenFiles());
                },
                2e3,
                this.hostConfiguration.watchOptions,
                sd.ExtendedConfigFile,
                t,
              ),
            (N) => this.toPath(N),
          ),
          i
        );
      }
      watchWildcards(t, { exists: r, config: i }, o) {
        if ((i.projects.set(o.canonicalConfigFilePath, !0), r)) {
          if (i.watchedDirectories && !i.watchedDirectoriesStale) return;
          ((i.watchedDirectoriesStale = !1),
            eO(
              i.watchedDirectories || (i.watchedDirectories = new Map()),
              i.parsedCommandLine.wildcardDirectories,
              (s, l) => this.watchWildcardDirectory(s, l, t, i),
            ));
        } else {
          if (((i.watchedDirectoriesStale = !1), !i.watchedDirectories)) return;
          (hp(i.watchedDirectories, Kf), (i.watchedDirectories = void 0));
        }
      }
      stopWatchingWildCards(t, r) {
        const i = this.configFileExistenceInfoCache.get(t);
        !i.config ||
          !i.config.projects.get(r.canonicalConfigFilePath) ||
          (i.config.projects.set(r.canonicalConfigFilePath, !1),
          !Hc(i.config.projects, Vs) &&
            (i.config.watchedDirectories &&
              (hp(i.config.watchedDirectories, Kf),
              (i.config.watchedDirectories = void 0)),
            (i.config.watchedDirectoriesStale = void 0)));
      }
      updateNonInferredProjectFiles(t, r, i) {
        var o;
        const s = t.getRootFilesMap(),
          l = new Map();
        for (const u of r) {
          const d = i.getFileName(u),
            _ = Cs(d),
            h = QP(_);
          let g;
          if (!h && !t.fileExists(d)) {
            g = hC(_, this.currentDirectory, this.toCanonicalFileName);
            const E = s.get(g);
            E
              ? (((o = E.info) == null ? void 0 : o.path) === g &&
                  (t.removeFile(E.info, !1, !0), (E.info = void 0)),
                (E.fileName = _))
              : s.set(g, { fileName: _ });
          } else {
            const E = i.getScriptKind(
                u,
                this.hostConfiguration.extraFileExtensions,
              ),
              A = i.hasMixedContent(
                u,
                this.hostConfiguration.extraFileExtensions,
              ),
              R = C.checkDefined(
                this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(
                  _,
                  t.currentDirectory,
                  E,
                  A,
                  t.directoryStructureHost,
                  !1,
                ),
              );
            g = R.path;
            const N = s.get(g);
            !N || N.info !== R
              ? (t.addRoot(R, _),
                R.isScriptOpen() &&
                  this.removeRootOfInferredProjectIfNowPartOfOtherProject(R))
              : (N.fileName = _);
          }
          l.set(g, !0);
        }
        s.size > l.size &&
          s.forEach((u, d) => {
            l.has(d) ||
              (u.info
                ? t.removeFile(u.info, t.fileExists(u.info.fileName), !0)
                : s.delete(d));
          });
      }
      updateRootAndOptionsOfNonInferredProject(t, r, i, o, s, l, u) {
        (t.setCompilerOptions(o),
          t.setWatchOptions(u),
          l !== void 0 && (t.compileOnSaveEnabled = l),
          this.addFilesToNonInferredProject(t, r, i, s));
      }
      reloadFileNamesOfConfiguredProject(t) {
        const r = this.reloadFileNamesOfParsedConfig(
          t.getConfigFilePath(),
          this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath)
            .config,
        );
        return (
          t.updateErrorOnNoInputFiles(r),
          this.updateNonInferredProjectFiles(
            t,
            r.fileNames.concat(t.getExternalFiles(1)),
            OX,
          ),
          t.markAsDirty(),
          t.updateGraph()
        );
      }
      reloadFileNamesOfParsedConfig(t, r) {
        if (r.updateLevel === void 0) return r.parsedCommandLine;
        C.assert(r.updateLevel === 1);
        const i = r.parsedCommandLine.options.configFile.configFileSpecs,
          o = eP(
            i,
            ci(t),
            r.parsedCommandLine.options,
            r.cachedDirectoryStructureHost,
            this.hostConfiguration.extraFileExtensions,
          );
        return (
          (r.parsedCommandLine = { ...r.parsedCommandLine, fileNames: o }),
          (r.updateLevel = void 0),
          r.parsedCommandLine
        );
      }
      setFileNamesOfAutoImportProviderOrAuxillaryProject(t, r) {
        this.updateNonInferredProjectFiles(t, r, OX);
      }
      reloadConfiguredProjectOptimized(t, r, i) {
        i.has(t) ||
          (i.set(t, 6),
          t.initialLoadPending || this.setProjectForReload(t, 2, r));
      }
      reloadConfiguredProjectClearingSemanticCache(t, r, i) {
        return i.get(t) === 7
          ? !1
          : (i.set(t, 7),
            this.clearSemanticCache(t),
            this.reloadConfiguredProject(t, BX(r)),
            !0);
      }
      setProjectForReload(t, r, i) {
        (r === 2 && this.clearSemanticCache(t),
          (t.pendingUpdateReason = i && BX(i)),
          (t.pendingUpdateLevel = r));
      }
      reloadConfiguredProject(t, r) {
        ((t.initialLoadPending = !1),
          this.setProjectForReload(t, 0),
          this.loadConfiguredProject(t, r),
          mOe(t, t.triggerFileForConfigFileDiag ?? t.getConfigFilePath(), !0));
      }
      clearSemanticCache(t) {
        ((t.originalConfiguredProjects = void 0),
          t.resolutionCache.clear(),
          t.getLanguageService(!1).cleanupSemanticCache(),
          t.cleanupProgram(),
          t.markAsDirty());
      }
      sendConfigFileDiagEvent(t, r, i) {
        if (!this.eventHandler || this.suppressDiagnosticEvents) return !1;
        const o = t.getLanguageService().getCompilerOptionsDiagnostics();
        return (
          o.push(...t.getAllProjectErrors()),
          !i && o.length === (t.configDiagDiagnosticsReported ?? 0)
            ? !1
            : ((t.configDiagDiagnosticsReported = o.length),
              this.eventHandler({
                eventName: DX,
                data: {
                  configFileName: t.getConfigFilePath(),
                  diagnostics: o,
                  triggerFile: r ?? t.getConfigFilePath(),
                },
              }),
              !0)
        );
      }
      getOrCreateInferredProjectForProjectRootPathIfEnabled(t, r) {
        if (
          !this.useInferredProjectPerProjectRoot ||
          (t.isDynamic && r === void 0)
        )
          return;
        if (r) {
          const o = this.toCanonicalFileName(r);
          for (const s of this.inferredProjects)
            if (s.projectRootPath === o) return s;
          return this.createInferredProject(r, !1, r);
        }
        let i;
        for (const o of this.inferredProjects)
          o.projectRootPath &&
            um(
              o.projectRootPath,
              t.path,
              this.host.getCurrentDirectory(),
              !this.host.useCaseSensitiveFileNames,
            ) &&
            ((i && i.projectRootPath.length > o.projectRootPath.length) ||
              (i = o));
        return i;
      }
      getOrCreateSingleInferredProjectIfEnabled() {
        if (this.useSingleInferredProject)
          return this.inferredProjects.length > 0 &&
            this.inferredProjects[0].projectRootPath === void 0
            ? this.inferredProjects[0]
            : this.createInferredProject(this.currentDirectory, !0, void 0);
      }
      getOrCreateSingleInferredWithoutProjectRoot(t) {
        C.assert(!this.useSingleInferredProject);
        const r = this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));
        for (const i of this.inferredProjects)
          if (
            !i.projectRootPath &&
            i.isOrphan() &&
            i.canonicalCurrentDirectory === r
          )
            return i;
        return this.createInferredProject(t, !1, void 0);
      }
      createInferredProject(t, r, i) {
        const o =
          (i && this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)) ||
          this.compilerOptionsForInferredProjects;
        let s, l;
        (i &&
          ((s = this.watchOptionsForInferredProjectsPerProjectRoot.get(i)),
          (l = this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i))),
          s === void 0 && (s = this.watchOptionsForInferredProjects),
          l === void 0 && (l = this.typeAcquisitionForInferredProjects),
          (s = s || void 0));
        const u = new Rme(this, o, s?.watchOptions, i, t, l);
        return (
          u.setProjectErrors(s?.errors),
          r ? this.inferredProjects.unshift(u) : this.inferredProjects.push(u),
          u
        );
      }
      getOrCreateScriptInfoNotOpenedByClient(t, r, i, o) {
        return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(
          Cs(t),
          r,
          void 0,
          void 0,
          i,
          o,
        );
      }
      getScriptInfo(t) {
        return this.getScriptInfoForNormalizedPath(Cs(t));
      }
      getScriptInfoOrConfig(t) {
        const r = Cs(t),
          i = this.getScriptInfoForNormalizedPath(r);
        if (i) return i;
        const o = this.configuredProjects.get(this.toPath(t));
        return o && o.getCompilerOptions().configFile;
      }
      logErrorForScriptInfoNotFound(t) {
        const r = Co(
          nh(this.filenameToScriptInfo.entries(), (i) =>
            i[1].deferredDelete ? void 0 : i,
          ),
          ([i, o]) => ({ path: i, fileName: o.fileName }),
        );
        this.logger.msg(
          `Could not find file ${JSON.stringify(t)}.
All files are: ${JSON.stringify(r)}`,
          "Err",
        );
      }
      getSymlinkedProjects(t) {
        let r;
        if (this.realpathToScriptInfos) {
          const o = t.getRealpathIfDifferent();
          (o && Ye(this.realpathToScriptInfos.get(o), i),
            Ye(this.realpathToScriptInfos.get(t.path), i));
        }
        return r;
        function i(o) {
          if (o !== t)
            for (const s of o.containingProjects)
              s.languageServiceEnabled &&
                !s.isOrphan() &&
                !s.getCompilerOptions().preserveSymlinks &&
                !t.isAttached(s) &&
                (r
                  ? Hc(r, (l, u) => (u === o.path ? !1 : jn(l, s))) ||
                    r.add(o.path, s)
                  : ((r = cm()), r.add(o.path, s)));
        }
      }
      watchClosedScriptInfo(t) {
        if (
          (C.assert(!t.fileWatcher),
          !t.isDynamicOrHasMixedContent() &&
            (!this.globalCacheLocationDirectoryPath ||
              !po(t.path, this.globalCacheLocationDirectoryPath)))
        ) {
          const r = t.fileName.indexOf("/node_modules/");
          !this.host.getModifiedTime || r === -1
            ? (t.fileWatcher = this.watchFactory.watchFile(
                t.fileName,
                (i, o) => this.onSourceFileChanged(t, o),
                500,
                this.hostConfiguration.watchOptions,
                sd.ClosedScriptInfo,
              ))
            : ((t.mTime = this.getModifiedTime(t)),
              (t.fileWatcher = this.watchClosedScriptInfoInNodeModules(
                t.fileName.substring(0, r),
              )));
        }
      }
      createNodeModulesWatcher(t, r) {
        let i = this.watchFactory.watchDirectory(
          t,
          (s) => {
            var l;
            const u = z3(this.toPath(s));
            if (!u) return;
            const d = Ic(u);
            if (
              ((l = o.affectedModuleSpecifierCacheProjects) != null &&
                l.size &&
                (d === "package.json" || d === "node_modules") &&
                o.affectedModuleSpecifierCacheProjects.forEach((_) => {
                  var h;
                  (h = _.getModuleSpecifierCache()) == null || h.clear();
                }),
              o.refreshScriptInfoRefCount)
            )
              if (r === u) this.refreshScriptInfosInDirectory(r);
              else {
                const _ = this.filenameToScriptInfo.get(u);
                _
                  ? Bme(_) && this.refreshScriptInfo(_)
                  : NR(u) || this.refreshScriptInfosInDirectory(u);
              }
          },
          1,
          this.hostConfiguration.watchOptions,
          sd.NodeModules,
        );
        const o = {
          refreshScriptInfoRefCount: 0,
          affectedModuleSpecifierCacheProjects: void 0,
          close: () => {
            var s;
            i &&
              !o.refreshScriptInfoRefCount &&
              !(
                (s = o.affectedModuleSpecifierCacheProjects) != null && s.size
              ) &&
              (i.close(), (i = void 0), this.nodeModulesWatchers.delete(r));
          },
        };
        return (this.nodeModulesWatchers.set(r, o), o);
      }
      watchPackageJsonsInNodeModules(t, r) {
        var i;
        const o = this.toPath(t),
          s =
            this.nodeModulesWatchers.get(o) ||
            this.createNodeModulesWatcher(t, o);
        return (
          C.assert(
            !((i = s.affectedModuleSpecifierCacheProjects) != null && i.has(r)),
          ),
          (
            s.affectedModuleSpecifierCacheProjects ||
            (s.affectedModuleSpecifierCacheProjects = new Set())
          ).add(r),
          {
            close: () => {
              var l;
              ((l = s.affectedModuleSpecifierCacheProjects) == null ||
                l.delete(r),
                s.close());
            },
          }
        );
      }
      watchClosedScriptInfoInNodeModules(t) {
        const r = t + "/node_modules",
          i = this.toPath(r),
          o =
            this.nodeModulesWatchers.get(i) ||
            this.createNodeModulesWatcher(r, i);
        return (
          o.refreshScriptInfoRefCount++,
          {
            close: () => {
              (o.refreshScriptInfoRefCount--, o.close());
            },
          }
        );
      }
      getModifiedTime(t) {
        return (this.host.getModifiedTime(t.fileName) || Dp).getTime();
      }
      refreshScriptInfo(t) {
        const r = this.getModifiedTime(t);
        if (r !== t.mTime) {
          const i = E9(t.mTime, r);
          ((t.mTime = r), this.onSourceFileChanged(t, i));
        }
      }
      refreshScriptInfosInDirectory(t) {
        ((t = t + Js),
          this.filenameToScriptInfo.forEach((r) => {
            Bme(r) && po(r.path, t) && this.refreshScriptInfo(r);
          }));
      }
      stopWatchingScriptInfo(t) {
        t.fileWatcher && (t.fileWatcher.close(), (t.fileWatcher = void 0));
      }
      getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(
        t,
        r,
        i,
        o,
        s,
        l,
      ) {
        if (Cp(t) || QP(t))
          return this.getOrCreateScriptInfoWorker(
            t,
            r,
            !1,
            void 0,
            i,
            !!o,
            s,
            l,
          );
        const u = this.openFilesWithNonRootedDiskPath.get(
          this.toCanonicalFileName(t),
        );
        if (u) return u;
      }
      getOrCreateScriptInfoForNormalizedPath(t, r, i, o, s, l) {
        return this.getOrCreateScriptInfoWorker(
          t,
          this.currentDirectory,
          r,
          i,
          o,
          !!s,
          l,
          !1,
        );
      }
      getOrCreateScriptInfoWorker(t, r, i, o, s, l, u, d) {
        C.assert(
          o === void 0 || i,
          "ScriptInfo needs to be opened by client to be able to set its user defined content",
        );
        const _ = hC(t, r, this.toCanonicalFileName);
        let h = this.filenameToScriptInfo.get(_);
        if (h) {
          if (h.deferredDelete) {
            if ((C.assert(!h.isDynamic), !i && !(u || this.host).fileExists(t)))
              return d ? h : void 0;
            h.deferredDelete = void 0;
          }
        } else {
          const g = QP(t);
          if (
            (C.assert(
              Cp(t) || g || i,
              "",
              () => `${JSON.stringify({ fileName: t, currentDirectory: r, hostCurrentDirectory: this.currentDirectory, openKeys: Co(this.openFilesWithNonRootedDiskPath.keys()) })}
Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`,
            ),
            C.assert(
              !Cp(t) ||
                this.currentDirectory === r ||
                !this.openFilesWithNonRootedDiskPath.has(
                  this.toCanonicalFileName(t),
                ),
              "",
              () => `${JSON.stringify({ fileName: t, currentDirectory: r, hostCurrentDirectory: this.currentDirectory, openKeys: Co(this.openFilesWithNonRootedDiskPath.keys()) })}
Open script files with non rooted disk path opened with current directory context cannot have same canonical names`,
            ),
            C.assert(
              !g ||
                this.currentDirectory === r ||
                this.useInferredProjectPerProjectRoot,
              "",
              () => `${JSON.stringify({ fileName: t, currentDirectory: r, hostCurrentDirectory: this.currentDirectory, openKeys: Co(this.openFilesWithNonRootedDiskPath.keys()) })}
Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`,
            ),
            !i && !g && !(u || this.host).fileExists(t))
          )
            return;
          ((h = new bme(
            this.host,
            t,
            s,
            l,
            _,
            this.filenameToScriptInfoVersion.get(_),
          )),
            this.filenameToScriptInfo.set(h.path, h),
            this.filenameToScriptInfoVersion.delete(h.path),
            i
              ? !Cp(t) &&
                (!g || this.currentDirectory !== r) &&
                this.openFilesWithNonRootedDiskPath.set(
                  this.toCanonicalFileName(t),
                  h,
                )
              : this.watchClosedScriptInfo(h));
        }
        return (
          i &&
            (this.stopWatchingScriptInfo(h),
            h.open(o),
            l && h.registerFileUpdate()),
          h
        );
      }
      getScriptInfoForNormalizedPath(t) {
        return (
          (!Cp(t) &&
            this.openFilesWithNonRootedDiskPath.get(
              this.toCanonicalFileName(t),
            )) ||
          this.getScriptInfoForPath(
            hC(t, this.currentDirectory, this.toCanonicalFileName),
          )
        );
      }
      getScriptInfoForPath(t) {
        const r = this.filenameToScriptInfo.get(t);
        return !r || !r.deferredDelete ? r : void 0;
      }
      getDocumentPositionMapper(t, r, i) {
        const o = this.getOrCreateScriptInfoNotOpenedByClient(
          r,
          t.currentDirectory,
          this.host,
          !1,
        );
        if (!o) {
          i && t.addGeneratedFileWatch(r, i);
          return;
        }
        if ((o.getSnapshot(), Bo(o.sourceMapFilePath))) {
          const _ = this.getScriptInfoForPath(o.sourceMapFilePath);
          if (_ && (_.getSnapshot(), _.documentPositionMapper !== void 0))
            return (
              (_.sourceInfos = this.addSourceInfoToSourceMap(
                i,
                t,
                _.sourceInfos,
              )),
              _.documentPositionMapper ? _.documentPositionMapper : void 0
            );
          o.sourceMapFilePath = void 0;
        } else if (o.sourceMapFilePath) {
          o.sourceMapFilePath.sourceInfos = this.addSourceInfoToSourceMap(
            i,
            t,
            o.sourceMapFilePath.sourceInfos,
          );
          return;
        } else if (o.sourceMapFilePath !== void 0) return;
        let s,
          l = (_, h) => {
            const g = this.getOrCreateScriptInfoNotOpenedByClient(
              _,
              t.currentDirectory,
              this.host,
              !0,
            );
            if (((s = g || h), !g || g.deferredDelete)) return;
            const E = g.getSnapshot();
            return g.documentPositionMapper !== void 0
              ? g.documentPositionMapper
              : fx(E);
          };
        const u = t.projectName,
          d = PJ(
            {
              getCanonicalFileName: this.toCanonicalFileName,
              log: (_) => this.logger.info(_),
              getSourceFileLike: (_) => this.getSourceFileLike(_, u, o),
            },
            o.fileName,
            o.textStorage.getLineInfo(),
            l,
          );
        return (
          (l = void 0),
          s
            ? Bo(s)
              ? (o.sourceMapFilePath = {
                  watcher: this.addMissingSourceMapFile(
                    t.currentDirectory === this.currentDirectory
                      ? s
                      : To(s, t.currentDirectory),
                    o.path,
                  ),
                  sourceInfos: this.addSourceInfoToSourceMap(i, t),
                })
              : ((o.sourceMapFilePath = s.path),
                (s.declarationInfoPath = o.path),
                s.deferredDelete || (s.documentPositionMapper = d || !1),
                (s.sourceInfos = this.addSourceInfoToSourceMap(
                  i,
                  t,
                  s.sourceInfos,
                )))
            : (o.sourceMapFilePath = !1),
          d
        );
      }
      addSourceInfoToSourceMap(t, r, i) {
        if (t) {
          const o = this.getOrCreateScriptInfoNotOpenedByClient(
            t,
            r.currentDirectory,
            r.directoryStructureHost,
            !1,
          );
          (i || (i = new Set())).add(o.path);
        }
        return i;
      }
      addMissingSourceMapFile(t, r) {
        return this.watchFactory.watchFile(
          t,
          () => {
            const o = this.getScriptInfoForPath(r);
            o &&
              o.sourceMapFilePath &&
              !Bo(o.sourceMapFilePath) &&
              (this.delayUpdateProjectGraphs(o.containingProjects, !0),
              this.delayUpdateSourceInfoProjects(
                o.sourceMapFilePath.sourceInfos,
              ),
              o.closeSourceMapFileWatcher());
          },
          2e3,
          this.hostConfiguration.watchOptions,
          sd.MissingSourceMapFile,
        );
      }
      getSourceFileLike(t, r, i) {
        const o = r.projectName ? r : this.findProject(r);
        if (o) {
          const l = o.toPath(t),
            u = o.getSourceFile(l);
          if (u && u.resolvedPath === l) return u;
        }
        const s = this.getOrCreateScriptInfoNotOpenedByClient(
          t,
          (o || this).currentDirectory,
          o ? o.directoryStructureHost : this.host,
          !1,
        );
        if (s) {
          if (i && Bo(i.sourceMapFilePath) && s !== i) {
            const l = this.getScriptInfoForPath(i.sourceMapFilePath);
            l && (l.sourceInfos ?? (l.sourceInfos = new Set())).add(s.path);
          }
          return s.cacheSourceFile
            ? s.cacheSourceFile.sourceFile
            : (s.sourceFileLike ||
                (s.sourceFileLike = {
                  get text() {
                    return (C.fail("shouldnt need text"), "");
                  },
                  getLineAndCharacterOfPosition: (l) => {
                    const u = s.positionToLineOffset(l);
                    return { line: u.line - 1, character: u.offset - 1 };
                  },
                  getPositionOfLineAndCharacter: (l, u, d) =>
                    s.lineOffsetToPosition(l + 1, u + 1, d),
                }),
              s.sourceFileLike);
        }
      }
      setPerformanceEventHandler(t) {
        this.performanceEventHandler = t;
      }
      setHostConfiguration(t) {
        var r;
        if (t.file) {
          const i = this.getScriptInfoForNormalizedPath(Cs(t.file));
          i &&
            (i.setOptions(gC(t.formatOptions), t.preferences),
            this.logger.info(`Host configuration update for file ${t.file}`));
        } else {
          if (
            (t.hostInfo !== void 0 &&
              ((this.hostConfiguration.hostInfo = t.hostInfo),
              this.logger.info(`Host information ${t.hostInfo}`)),
            t.formatOptions &&
              ((this.hostConfiguration.formatCodeOptions = {
                ...this.hostConfiguration.formatCodeOptions,
                ...gC(t.formatOptions),
              }),
              this.logger.info("Format host information updated")),
            t.preferences)
          ) {
            const {
              lazyConfiguredProjectsFromExternalProject: i,
              includePackageJsonAutoImports: o,
              includeCompletionsForModuleExports: s,
            } = this.hostConfiguration.preferences;
            ((this.hostConfiguration.preferences = {
              ...this.hostConfiguration.preferences,
              ...t.preferences,
            }),
              i &&
                !this.hostConfiguration.preferences
                  .lazyConfiguredProjectsFromExternalProject &&
                this.externalProjectToConfiguredProjectMap.forEach((l) =>
                  l.forEach((u) => {
                    !u.deferredClose &&
                      !u.isClosed() &&
                      u.pendingUpdateLevel === 2 &&
                      !this.hasPendingProjectUpdate(u) &&
                      u.updateGraph();
                  }),
                ),
              (o !== t.preferences.includePackageJsonAutoImports ||
                !!s != !!t.preferences.includeCompletionsForModuleExports) &&
                this.forEachProject((l) => {
                  l.onAutoImportProviderSettingsChanged();
                }));
          }
          if (
            (t.extraFileExtensions &&
              ((this.hostConfiguration.extraFileExtensions =
                t.extraFileExtensions),
              this.reloadProjects(),
              this.logger.info("Host file extension mappings updated")),
            t.watchOptions)
          ) {
            const i =
                (r = gW(t.watchOptions)) == null ? void 0 : r.watchOptions,
              o = K4(i, this.currentDirectory);
            ((this.hostConfiguration.watchOptions = o),
              (this.hostConfiguration.beforeSubstitution =
                o === i ? void 0 : i),
              this.logger.info(
                `Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`,
              ));
          }
        }
      }
      getWatchOptions(t) {
        return this.getWatchOptionsFromProjectWatchOptions(
          t.getWatchOptions(),
          t.getCurrentDirectory(),
        );
      }
      getWatchOptionsFromProjectWatchOptions(t, r) {
        const i = this.hostConfiguration.beforeSubstitution
          ? K4(this.hostConfiguration.beforeSubstitution, r)
          : this.hostConfiguration.watchOptions;
        return t && i ? { ...i, ...t } : t || i;
      }
      closeLog() {
        this.logger.close();
      }
      sendSourceFileChange(t) {
        this.filenameToScriptInfo.forEach((r) => {
          if (this.openFiles.has(r.path) || !r.fileWatcher) return;
          const i = Nu(() =>
            this.host.fileExists(r.fileName) ? (r.deferredDelete ? 0 : 1) : 2,
          );
          if (t) {
            if (
              Bme(r) ||
              !r.path.startsWith(t) ||
              (i() === 2 && r.deferredDelete)
            )
              return;
            this.logger.info(
              `Invoking sourceFileChange on ${r.fileName}:: ${i()}`,
            );
          }
          this.onSourceFileChanged(r, i());
        });
      }
      reloadProjects() {
        (this.logger.info("reload projects."),
          this.sendSourceFileChange(void 0),
          this.pendingProjectUpdates.forEach((i, o) => {
            (this.throttledOperations.cancel(o),
              this.pendingProjectUpdates.delete(o));
          }),
          this.throttledOperations.cancel(iOe),
          (this.pendingOpenFileProjectUpdates = void 0),
          (this.pendingEnsureProjectForOpenFiles = !1),
          this.configFileExistenceInfoCache.forEach((i) => {
            i.config &&
              ((i.config.updateLevel = 2),
              i.config.cachedDirectoryStructureHost.clearCache());
          }),
          this.configFileForOpenFiles.clear(),
          this.externalProjects.forEach((i) => {
            (this.clearSemanticCache(i), i.updateGraph());
          }));
        const t = new Map(),
          r = new Set();
        (this.externalProjectToConfiguredProjectMap.forEach((i, o) => {
          const s = `Reloading configured project in external project: ${o}`;
          i.forEach((l) => {
            this.getHostPreferences().lazyConfiguredProjectsFromExternalProject
              ? this.reloadConfiguredProjectOptimized(l, s, t)
              : this.reloadConfiguredProjectClearingSemanticCache(l, s, t);
          });
        }),
          this.openFiles.forEach((i, o) => {
            const s = this.getScriptInfoForPath(o);
            hn(s.containingProjects, mW) ||
              this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(
                s,
                7,
                t,
                r,
              );
          }),
          r.forEach((i) => t.set(i, 7)),
          this.inferredProjects.forEach((i) => this.clearSemanticCache(i)),
          this.ensureProjectForOpenFiles(),
          this.cleanupProjectsAndScriptInfos(
            t,
            new Set(this.openFiles.keys()),
            new Set(this.externalProjectToConfiguredProjectMap.keys()),
          ),
          this.logger.info("After reloading projects.."),
          this.printProjects());
      }
      removeRootOfInferredProjectIfNowPartOfOtherProject(t) {
        C.assert(t.containingProjects.length > 0);
        const r = t.containingProjects[0];
        !r.isOrphan() &&
          _C(r) &&
          r.isRoot(t) &&
          Ye(t.containingProjects, (i) => i !== r && !i.isOrphan()) &&
          r.removeFile(t, !0, !0);
      }
      ensureProjectForOpenFiles() {
        (this.logger.info("Before ensureProjectForOpenFiles:"),
          this.printProjects());
        const t = this.pendingOpenFileProjectUpdates;
        ((this.pendingOpenFileProjectUpdates = void 0),
          t?.forEach((r, i) =>
            this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(
              this.getScriptInfoForPath(i),
              5,
            ),
          ),
          this.openFiles.forEach((r, i) => {
            const o = this.getScriptInfoForPath(i);
            o.isOrphan()
              ? this.assignOrphanScriptInfoToInferredProject(o, r)
              : this.removeRootOfInferredProjectIfNowPartOfOtherProject(o);
          }),
          (this.pendingEnsureProjectForOpenFiles = !1),
          this.inferredProjects.forEach(Am),
          this.logger.info("After ensureProjectForOpenFiles:"),
          this.printProjects());
      }
      openClientFile(t, r, i, o) {
        return this.openClientFileWithNormalizedPath(
          Cs(t),
          r,
          i,
          !1,
          o ? Cs(o) : void 0,
        );
      }
      getOriginalLocationEnsuringConfiguredProject(t, r) {
        const i = t.isSourceOfProjectReferenceRedirect(r.fileName),
          o = i ? r : t.getSourceMapper().tryGetSourcePosition(r);
        if (!o) return;
        const { fileName: s } = o,
          l = this.getScriptInfo(s);
        if (!l && !this.host.fileExists(s)) return;
        const u = { fileName: Cs(s), path: this.toPath(s) },
          d = this.getConfigFileNameForFile(u, !1);
        if (!d) return;
        let _ = this.findConfiguredProjectByProjectName(d);
        if (!_) {
          if (t.getCompilerOptions().disableReferencedProjectLoad)
            return i ? r : l?.containingProjects.length ? o : r;
          _ = this.createConfiguredProject(
            d,
            `Creating project for original file: ${u.fileName}${r !== o ? " for location: " + r.fileName : ""}`,
          );
        }
        const h =
          this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(
            u,
            5,
            Fme(_, 4),
            (A) =>
              `Creating project referenced in solution ${A.projectName} to find possible configured project for original file: ${u.fileName}${r !== o ? " for location: " + r.fileName : ""}`,
          );
        if (!h.defaultProject) return;
        if (h.defaultProject === t) return o;
        E(h.defaultProject);
        const g = this.getScriptInfo(s);
        if (!g || !g.containingProjects.length) return;
        return (
          g.containingProjects.forEach((A) => {
            bv(A) && E(A);
          }),
          o
        );
        function E(A) {
          (
            t.originalConfiguredProjects ??
            (t.originalConfiguredProjects = new Set())
          ).add(A.canonicalConfigFilePath);
        }
      }
      fileExists(t) {
        return (
          !!this.getScriptInfoForNormalizedPath(t) || this.host.fileExists(t)
        );
      }
      findExternalProjectContainingOpenScriptInfo(t) {
        return hn(
          this.externalProjects,
          (r) => (Am(r), r.containsScriptInfo(t)),
        );
      }
      getOrCreateOpenScriptInfo(t, r, i, o, s) {
        const l = this.getOrCreateScriptInfoWorker(
          t,
          s ? this.getNormalizedAbsolutePath(s) : this.currentDirectory,
          !0,
          r,
          i,
          !!o,
          void 0,
          !0,
        );
        return (this.openFiles.set(l.path, s), l);
      }
      assignProjectToOpenedScriptInfo(t) {
        let r, i;
        const o = this.findExternalProjectContainingOpenScriptInfo(t);
        let s, l;
        if (!o && this.serverMode === 0) {
          const u =
            this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(
              t,
              5,
            );
          u &&
            ((s = u.seenProjects),
            (l = u.sentConfigDiag),
            u.defaultProject &&
              ((r = u.defaultProject.getConfigFilePath()),
              (i = u.defaultProject.getAllProjectErrors())));
        }
        return (
          t.containingProjects.forEach(Am),
          t.isOrphan() &&
            (s?.forEach((u, d) => {
              u !== 4 &&
                !l.has(d) &&
                this.sendConfigFileDiagEvent(d, t.fileName, !0);
            }),
            C.assert(this.openFiles.has(t.path)),
            this.assignOrphanScriptInfoToInferredProject(
              t,
              this.openFiles.get(t.path),
            )),
          C.assert(!t.isOrphan()),
          { configFileName: r, configFileErrors: i, retainProjects: s }
        );
      }
      findCreateOrReloadConfiguredProject(t, r, i, o, s, l, u, d, _) {
        let h = _ ?? this.findConfiguredProjectByProjectName(t, o),
          g = !1,
          E;
        switch (r) {
          case 0:
          case 1:
          case 3:
            if (!h) return;
            break;
          case 2:
            if (!h) return;
            E = Dst(h);
            break;
          case 4:
          case 5:
            (h ?? (h = this.createConfiguredProject(t, i)),
              u ||
                ({ sentConfigFileDiag: g, configFileExistenceInfo: E } = Fme(
                  h,
                  r,
                  s,
                )));
            break;
          case 6:
            if (
              (h ?? (h = this.createConfiguredProject(t, BX(i))),
              h.projectService.reloadConfiguredProjectOptimized(h, i, l),
              (E = Gme(h)),
              E)
            )
              break;
          case 7:
            (h ?? (h = this.createConfiguredProject(t, BX(i))),
              (g =
                !d &&
                this.reloadConfiguredProjectClearingSemanticCache(h, i, l)),
              d &&
                !d.has(h) &&
                !l.has(h) &&
                (this.setProjectForReload(h, 2, i), d.add(h)));
            break;
          default:
            C.assertNever(r);
        }
        return {
          project: h,
          sentConfigFileDiag: g,
          configFileExistenceInfo: E,
          reason: i,
        };
      }
      tryFindDefaultConfiguredProjectForOpenScriptInfo(t, r, i, o) {
        const s = this.getConfigFileNameForFile(t, r <= 3);
        if (!s) return;
        const l = cOe(r),
          u = this.findCreateOrReloadConfiguredProject(
            s,
            l,
            Cst(t),
            i,
            t.fileName,
            o,
          );
        return (
          u &&
          this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(
            t,
            r,
            u,
            (d) =>
              `Creating project referenced in solution ${d.projectName} to find possible configured project for ${t.fileName} to open`,
            i,
            o,
          )
        );
      }
      isMatchedByConfig(t, r, i) {
        if (r.fileNames.some((d) => this.toPath(d) === i.path)) return !0;
        if (
          zV(i.fileName, r.options, this.hostConfiguration.extraFileExtensions)
        )
          return !1;
        const {
            validatedFilesSpec: o,
            validatedIncludeSpecs: s,
            validatedExcludeSpecs: l,
          } = r.options.configFile.configFileSpecs,
          u = Cs(To(ci(t), this.currentDirectory));
        return o?.some((d) => this.toPath(To(d, u)) === i.path)
          ? !0
          : !s?.length ||
              Q4(
                i.fileName,
                l,
                this.host.useCaseSensitiveFileNames,
                this.currentDirectory,
                u,
              )
            ? !1
            : s?.some((d) => {
                const _ = OV(d, u, "files");
                return (
                  !!_ &&
                  ov(`(${_})$`, this.host.useCaseSensitiveFileNames).test(
                    i.fileName,
                  )
                );
              });
      }
      tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(
        t,
        r,
        i,
        o,
        s,
        l,
      ) {
        const u = lOe(t),
          d = cOe(r),
          _ = new Map();
        let h;
        const g = new Set();
        let E, A, R, N;
        return (
          P(i),
          {
            defaultProject: E ?? A,
            tsconfigProject: R ?? N,
            sentConfigDiag: g,
            seenProjects: _,
            seenConfigs: h,
          }
        );
        function P(J) {
          return O(J, J.project) ?? G(J.project) ?? j(J.project);
        }
        function k(J, Z, q, ye, ie, K) {
          if (Z) {
            if (_.has(Z)) return;
            _.set(Z, d);
          } else {
            if (h?.has(K)) return;
            (h ?? (h = new Set())).add(K);
          }
          if (
            !ie.projectService.isMatchedByConfig(
              q,
              J.config.parsedCommandLine,
              t,
            )
          ) {
            ie.languageServiceEnabled &&
              ie.projectService.watchWildcards(q, J, ie);
            return;
          }
          const pe = Z
            ? Fme(Z, r, t.fileName, ye, l)
            : ie.projectService.findCreateOrReloadConfiguredProject(
                q,
                r,
                ye,
                s,
                t.fileName,
                l,
              );
          if (!pe) {
            C.assert(r === 3);
            return;
          }
          return (
            _.set(pe.project, d),
            pe.sentConfigFileDiag && g.add(pe.project),
            W(pe.project, ie)
          );
        }
        function W(J, Z) {
          if (_.get(J) === r) return;
          _.set(J, r);
          const q = u ? t : J.projectService.getScriptInfo(t.fileName),
            ye = q && J.containsScriptInfo(q);
          if (ye && !J.isSourceOfProjectReferenceRedirect(q.path))
            return ((R = Z), (E = J));
          !A && u && ye && ((N = Z), (A = J));
        }
        function O(J, Z) {
          return (
            J.sentConfigFileDiag && g.add(J.project),
            J.configFileExistenceInfo
              ? k(
                  J.configFileExistenceInfo,
                  J.project,
                  Cs(J.project.getConfigFilePath()),
                  J.reason,
                  J.project,
                  J.project.canonicalConfigFilePath,
                )
              : W(J.project, Z)
          );
        }
        function G(J) {
          return (
            J.parsedCommandLine && uOe(J, J.parsedCommandLine, k, d, o(J), s, l)
          );
        }
        function j(J) {
          return u
            ? dOe(
                t,
                J,
                P,
                d,
                `Creating possible configured project for ${t.fileName} to open`,
                s,
                l,
                !1,
              )
            : void 0;
        }
      }
      tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(
        t,
        r,
        i,
        o,
      ) {
        const s = r === 1,
          l = this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t, r, s, i);
        if (!l) return;
        const { defaultProject: u, tsconfigProject: d, seenProjects: _ } = l;
        return (
          u &&
            dOe(
              t,
              d,
              (h) => {
                _.set(h.project, r);
              },
              r,
              `Creating project possibly referencing default composite project ${u.getProjectName()} of open file ${t.fileName}`,
              s,
              i,
              !0,
              o,
            ),
          l
        );
      }
      loadAncestorProjectTree(t) {
        t ??
          (t = new Set(
            nh(this.configuredProjects.entries(), ([o, s]) =>
              s.initialLoadPending ? void 0 : o,
            ),
          ));
        const r = new Set(),
          i = Co(this.configuredProjects.values());
        for (const o of i)
          (pOe(o, (s) => t.has(s)) && Am(o),
            this.ensureProjectChildren(o, t, r));
      }
      ensureProjectChildren(t, r, i) {
        var o;
        if (
          !rh(i, t.canonicalConfigFilePath) ||
          t.getCompilerOptions().disableReferencedProjectLoad
        )
          return;
        const s =
          (o = t.getCurrentProgram()) == null
            ? void 0
            : o.getResolvedProjectReferences();
        if (s)
          for (const l of s) {
            if (!l) continue;
            const u = nj(l.references, (h) =>
              r.has(h.sourceFile.path) ? h : void 0,
            );
            if (!u) continue;
            const d = Cs(l.sourceFile.fileName),
              _ =
                this.findConfiguredProjectByProjectName(d) ??
                this.createConfiguredProject(
                  d,
                  `Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`,
                );
            (Am(_), this.ensureProjectChildren(_, r, i));
          }
      }
      cleanupConfiguredProjects(t, r, i) {
        this.getOrphanConfiguredProjects(t, i, r).forEach((o) =>
          this.removeProject(o),
        );
      }
      cleanupProjectsAndScriptInfos(t, r, i) {
        this.cleanupConfiguredProjects(t, i, r);
        for (const o of this.inferredProjects.slice())
          o.isOrphan() && this.removeProject(o);
        this.removeOrphanScriptInfos();
      }
      tryInvokeWildCardDirectories(t) {
        this.configFileExistenceInfoCache.forEach((r, i) => {
          var o, s;
          !((o = r.config) != null && o.parsedCommandLine) ||
            jn(
              r.config.parsedCommandLine.fileNames,
              t.fileName,
              this.host.useCaseSensitiveFileNames ? pS : rb,
            ) ||
            (s = r.config.watchedDirectories) == null ||
            s.forEach((l, u) => {
              um(u, t.fileName, !this.host.useCaseSensitiveFileNames) &&
                (this.logger.info(
                  `Invoking ${i}:: wildcard for open scriptInfo:: ${t.fileName}`,
                ),
                this.onWildCardDirectoryWatcherInvoke(
                  u,
                  i,
                  r.config,
                  l.watcher,
                  t.fileName,
                ));
            });
        });
      }
      openClientFileWithNormalizedPath(t, r, i, o, s) {
        const l = this.getScriptInfoForPath(
            hC(
              t,
              s ? this.getNormalizedAbsolutePath(s) : this.currentDirectory,
              this.toCanonicalFileName,
            ),
          ),
          u = this.getOrCreateOpenScriptInfo(t, r, i, o, s);
        !l && u && !u.isDynamic && this.tryInvokeWildCardDirectories(u);
        const { retainProjects: d, ..._ } =
          this.assignProjectToOpenedScriptInfo(u);
        return (
          this.cleanupProjectsAndScriptInfos(d, new Set([u.path]), void 0),
          this.telemetryOnOpenFile(u),
          this.printProjects(),
          _
        );
      }
      getOrphanConfiguredProjects(t, r, i) {
        const o = new Set(this.configuredProjects.values()),
          s = (_) => {
            _.originalConfiguredProjects &&
              (bv(_) || !_.isOrphan()) &&
              _.originalConfiguredProjects.forEach((h, g) => {
                const E = this.getConfiguredProjectByCanonicalConfigFilePath(g);
                return E && d(E);
              });
          };
        if (
          (t?.forEach((_, h) => d(h)),
          !o.size ||
            (this.inferredProjects.forEach(s),
            this.externalProjects.forEach(s),
            this.externalProjectToConfiguredProjectMap.forEach((_, h) => {
              i?.has(h) || _.forEach(d);
            }),
            !o.size) ||
            (Hc(this.openFiles, (_, h) => {
              if (r?.has(h)) return;
              const g = this.getScriptInfoForPath(h);
              if (hn(g.containingProjects, mW)) return;
              const E =
                this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(
                  g,
                  1,
                );
              if (
                E?.defaultProject &&
                (E?.seenProjects.forEach((A, R) => d(R)), !o.size)
              )
                return o;
            }),
            !o.size))
        )
          return o;
        return (
          Hc(this.configuredProjects, (_) => {
            if (o.has(_) && (u(_) || fOe(_, l)) && (d(_), !o.size)) return o;
          }),
          o
        );
        function l(_) {
          return !o.has(_) || u(_);
        }
        function u(_) {
          var h, g;
          return (
            (_.deferredClose || _.projectService.hasPendingProjectUpdate(_)) &&
            !!(
              (g =
                (h = _.projectService.configFileExistenceInfoCache.get(
                  _.canonicalConfigFilePath,
                )) == null
                  ? void 0
                  : h.openFilesImpactedByConfigFile) != null && g.size
            )
          );
        }
        function d(_) {
          o.delete(_) && (s(_), fOe(_, d));
        }
      }
      removeOrphanScriptInfos() {
        const t = new Map(this.filenameToScriptInfo);
        (this.filenameToScriptInfo.forEach((r) => {
          if (!r.deferredDelete) {
            if (!r.isScriptOpen() && r.isOrphan() && !Sme(r) && !Tme(r)) {
              if (!r.sourceMapFilePath) return;
              let i;
              if (Bo(r.sourceMapFilePath)) {
                const o = this.filenameToScriptInfo.get(r.sourceMapFilePath);
                i = o?.sourceInfos;
              } else i = r.sourceMapFilePath.sourceInfos;
              if (
                !i ||
                !fg(i, (o) => {
                  const s = this.getScriptInfoForPath(o);
                  return !!s && (s.isScriptOpen() || !s.isOrphan());
                })
              )
                return;
            }
            if ((t.delete(r.path), r.sourceMapFilePath)) {
              let i;
              if (Bo(r.sourceMapFilePath)) {
                const o = this.filenameToScriptInfo.get(r.sourceMapFilePath);
                (o?.deferredDelete
                  ? (r.sourceMapFilePath = {
                      watcher: this.addMissingSourceMapFile(o.fileName, r.path),
                      sourceInfos: o.sourceInfos,
                    })
                  : t.delete(r.sourceMapFilePath),
                  (i = o?.sourceInfos));
              } else i = r.sourceMapFilePath.sourceInfos;
              i && i.forEach((o, s) => t.delete(s));
            }
          }
        }),
          t.forEach((r) => this.deleteScriptInfo(r)));
      }
      telemetryOnOpenFile(t) {
        if (
          this.serverMode !== 0 ||
          !this.eventHandler ||
          !t.isJavaScript() ||
          !gm(this.allJsFilesForOpenFileTelemetry, t.path)
        )
          return;
        const r = this.ensureDefaultProjectForFile(t);
        if (!r.languageServiceEnabled) return;
        const i = r.getSourceFile(t.path),
          o = !!i && !!i.checkJsDirective;
        this.eventHandler({ eventName: Pme, data: { info: { checkJs: o } } });
      }
      closeClientFile(t, r) {
        const i = this.getScriptInfoForNormalizedPath(Cs(t)),
          o = i ? this.closeOpenFile(i, r) : !1;
        return (r || this.printProjects(), o);
      }
      collectChanges(t, r, i, o) {
        for (const s of r) {
          const l = hn(t, (u) => u.projectName === s.getProjectName());
          o.push(s.getChangesSinceVersion(l && l.version, i));
        }
      }
      synchronizeProjectList(t, r) {
        const i = [];
        return (
          this.collectChanges(t, this.externalProjects, r, i),
          this.collectChanges(
            t,
            nh(this.configuredProjects.values(), (o) =>
              o.deferredClose ? void 0 : o,
            ),
            r,
            i,
          ),
          this.collectChanges(t, this.inferredProjects, r, i),
          i
        );
      }
      applyChangesInOpenFiles(t, r, i) {
        let o,
          s,
          l = !1;
        if (t)
          for (const d of t) {
            (o ?? (o = [])).push(
              this.getScriptInfoForPath(
                hC(
                  Cs(d.fileName),
                  d.projectRootPath
                    ? this.getNormalizedAbsolutePath(d.projectRootPath)
                    : this.currentDirectory,
                  this.toCanonicalFileName,
                ),
              ),
            );
            const _ = this.getOrCreateOpenScriptInfo(
              Cs(d.fileName),
              d.content,
              kX(d.scriptKind),
              d.hasMixedContent,
              d.projectRootPath ? Cs(d.projectRootPath) : void 0,
            );
            (s || (s = [])).push(_);
          }
        if (r)
          for (const d of r) {
            const _ = this.getScriptInfo(d.fileName);
            (C.assert(!!_), this.applyChangesToFile(_, d.changes));
          }
        if (i) for (const d of i) l = this.closeClientFile(d, !0) || l;
        let u;
        (Ye(o, (d, _) =>
          !d && s[_] && !s[_].isDynamic
            ? this.tryInvokeWildCardDirectories(s[_])
            : void 0,
        ),
          s?.forEach((d) => {
            var _;
            return (_ =
              this.assignProjectToOpenedScriptInfo(d).retainProjects) == null
              ? void 0
              : _.forEach((h, g) => (u ?? (u = new Map())).set(g, h));
          }),
          l && this.assignOrphanScriptInfosToInferredProject(),
          s
            ? (this.cleanupProjectsAndScriptInfos(
                u,
                new Set(s.map((d) => d.path)),
                void 0,
              ),
              s.forEach((d) => this.telemetryOnOpenFile(d)),
              this.printProjects())
            : et(i) && this.printProjects());
      }
      applyChangesToFile(t, r) {
        for (const i of r)
          t.editContent(i.span.start, i.span.start + i.span.length, i.newText);
      }
      closeExternalProject(t, r) {
        const i = Cs(t);
        if (this.externalProjectToConfiguredProjectMap.get(i))
          this.externalProjectToConfiguredProjectMap.delete(i);
        else {
          const s = this.findExternalProjectByProjectName(t);
          s && this.removeProject(s);
        }
        r && (this.cleanupConfiguredProjects(), this.printProjects());
      }
      openExternalProjects(t) {
        const r = new Set(this.externalProjects.map((i) => i.getProjectName()));
        this.externalProjectToConfiguredProjectMap.forEach((i, o) => r.add(o));
        for (const i of t)
          (this.openExternalProject(i, !1), r.delete(i.projectFileName));
        (r.forEach((i) => this.closeExternalProject(i, !1)),
          this.cleanupConfiguredProjects(),
          this.printProjects());
      }
      static escapeFilenameForRegex(t) {
        return t.replace(this.filenameEscapeRegexp, "\\$&");
      }
      resetSafeList() {
        this.safelist = Lme;
      }
      applySafeList(t) {
        const r = t.typeAcquisition;
        C.assert(!!r, "proj.typeAcquisition should be set by now");
        const i = this.applySafeListWorker(t, t.rootFiles, r);
        return i?.excludedFiles ?? [];
      }
      applySafeListWorker(t, r, i) {
        if (i.enable === !1 || i.disableFilenameBasedTypeAcquisition) return;
        const o = i.include || (i.include = []),
          s = [],
          l = r.map((g) => Bd(g.fileName));
        for (const g of Object.keys(this.safelist)) {
          const E = this.safelist[g];
          for (const A of l)
            if (E.match.test(A)) {
              if (
                (this.logger.info(
                  `Excluding files based on rule ${g} matching file '${A}'`,
                ),
                E.types)
              )
                for (const R of E.types) o.includes(R) || o.push(R);
              if (E.exclude)
                for (const R of E.exclude) {
                  const N = A.replace(E.match, (...P) =>
                    R.map((k) =>
                      typeof k == "number"
                        ? Bo(P[k])
                          ? qye.escapeFilenameForRegex(P[k])
                          : (this.logger.info(
                              `Incorrect RegExp specification in safelist rule ${g} - not enough groups`,
                            ),
                            "\\*")
                        : k,
                    ).join(""),
                  );
                  s.includes(N) || s.push(N);
                }
              else {
                const R = qye.escapeFilenameForRegex(A);
                s.includes(R) || s.push(R);
              }
            }
        }
        const u = s.map((g) => new RegExp(g, "i"));
        let d, _;
        for (let g = 0; g < r.length; g++)
          if (u.some((E) => E.test(l[g]))) h(g);
          else {
            if (i.enable) {
              const E = Ic(tb(l[g]));
              if (El(E, "js")) {
                const A = Tu(E),
                  R = YB(A),
                  N = this.legacySafelist.get(R);
                if (N !== void 0) {
                  (this.logger.info(
                    `Excluded '${l[g]}' because it matched ${R} from the legacy safelist`,
                  ),
                    h(g),
                    o.includes(N) || o.push(N));
                  continue;
                }
              }
            }
            /^.+[.-]min\.js$/.test(l[g]) ? h(g) : d?.push(r[g]);
          }
        return _ ? { rootFiles: d, excludedFiles: _ } : void 0;
        function h(g) {
          (_ || (C.assert(!d), (d = r.slice(0, g)), (_ = [])), _.push(l[g]));
        }
      }
      openExternalProject(t, r) {
        const i = this.findExternalProjectByProjectName(t.projectFileName);
        let o,
          s = [];
        for (const l of t.rootFiles) {
          const u = Cs(l.fileName);
          if (TX(u)) {
            if (this.serverMode === 0 && this.host.fileExists(u)) {
              let d = this.findConfiguredProjectByProjectName(u);
              (d ||
                ((d = this.createConfiguredProject(
                  u,
                  `Creating configured project in external project: ${t.projectFileName}`,
                )),
                this.getHostPreferences()
                  .lazyConfiguredProjectsFromExternalProject ||
                  d.updateGraph()),
                (o ?? (o = new Set())).add(d),
                C.assert(!d.isClosed()));
            }
          } else s.push(l);
        }
        if (o)
          (this.externalProjectToConfiguredProjectMap.set(t.projectFileName, o),
            i && this.removeProject(i));
        else {
          this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);
          const l = t.typeAcquisition || {};
          ((l.include = l.include || []),
            (l.exclude = l.exclude || []),
            l.enable === void 0 && (l.enable = Ime(s.map((_) => _.fileName))));
          const u = this.applySafeListWorker(t, s, l),
            d = u?.excludedFiles ?? [];
          if (((s = u?.rootFiles ?? s), i)) {
            i.excludedFiles = d;
            const _ = kz(t.options),
              h = gW(t.options, i.getCurrentDirectory()),
              g = this.getFilenameForExceededTotalSizeLimitForNonTsFiles(
                t.projectFileName,
                _,
                s,
                WX,
              );
            (g ? i.disableLanguageService(g) : i.enableLanguageService(),
              i.setProjectErrors(h?.errors),
              this.updateRootAndOptionsOfNonInferredProject(
                i,
                s,
                WX,
                _,
                l,
                t.options.compileOnSave,
                h?.watchOptions,
              ),
              i.updateGraph());
          } else
            this.createExternalProject(
              t.projectFileName,
              s,
              t.options,
              l,
              d,
            ).updateGraph();
        }
        r &&
          (this.cleanupConfiguredProjects(o, new Set([t.projectFileName])),
          this.printProjects());
      }
      hasDeferredExtension() {
        for (const t of this.hostConfiguration.extraFileExtensions)
          if (t.scriptKind === 7) return !0;
        return !1;
      }
      requestEnablePlugin(t, r, i) {
        if (!this.host.importPlugin && !this.host.require) {
          this.logger.info(
            "Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded",
          );
          return;
        }
        if (
          (this.logger.info(
            `Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`,
          ),
          !r.name || td(r.name) || /[\\/]\.\.?(?:$|[\\/])/.test(r.name))
        ) {
          this.logger.info(
            `Skipped loading plugin ${r.name || JSON.stringify(r)} because only package name is allowed plugin name`,
          );
          return;
        }
        if (this.host.importPlugin) {
          const o = Rx.importServicePluginAsync(r, i, this.host, (l) =>
            this.logger.info(l),
          );
          this.pendingPluginEnablements ??
            (this.pendingPluginEnablements = new Map());
          let s = this.pendingPluginEnablements.get(t);
          (s || this.pendingPluginEnablements.set(t, (s = [])), s.push(o));
          return;
        }
        this.endEnablePlugin(
          t,
          Rx.importServicePluginSync(r, i, this.host, (o) =>
            this.logger.info(o),
          ),
        );
      }
      endEnablePlugin(
        t,
        { pluginConfigEntry: r, resolvedModule: i, errorLogs: o },
      ) {
        var s;
        if (i) {
          const l =
            (s = this.currentPluginConfigOverrides) == null
              ? void 0
              : s.get(r.name);
          if (l) {
            const u = r.name;
            ((r = l), (r.name = u));
          }
          t.enableProxy(i, r);
        } else
          (Ye(o, (l) => this.logger.info(l)),
            this.logger.info(`Couldn't find ${r.name}`));
      }
      hasNewPluginEnablementRequests() {
        return !!this.pendingPluginEnablements;
      }
      hasPendingPluginEnablements() {
        return !!this.currentPluginEnablementPromise;
      }
      async waitForPendingPlugins() {
        for (; this.currentPluginEnablementPromise; )
          await this.currentPluginEnablementPromise;
      }
      enableRequestedPlugins() {
        this.pendingPluginEnablements && this.enableRequestedPluginsAsync();
      }
      async enableRequestedPluginsAsync() {
        if (
          (this.currentPluginEnablementPromise &&
            (await this.waitForPendingPlugins()),
          !this.pendingPluginEnablements)
        )
          return;
        const t = Co(this.pendingPluginEnablements.entries());
        ((this.pendingPluginEnablements = void 0),
          (this.currentPluginEnablementPromise =
            this.enableRequestedPluginsWorker(t)),
          await this.currentPluginEnablementPromise);
      }
      async enableRequestedPluginsWorker(t) {
        C.assert(this.currentPluginEnablementPromise === void 0);
        let r = !1;
        (await Promise.all(
          Vt(t, async ([i, o]) => {
            const s = await Promise.all(o);
            if (i.isClosed() || _W(i)) {
              this.logger.info(
                `Cancelling plugin enabling for ${i.getProjectName()} as it is ${i.isClosed() ? "closed" : "deferred close"}`,
              );
              return;
            }
            r = !0;
            for (const l of s) this.endEnablePlugin(i, l);
            this.delayUpdateProjectGraph(i);
          }),
        ),
          (this.currentPluginEnablementPromise = void 0),
          r && this.sendProjectsUpdatedInBackgroundEvent());
      }
      configurePlugin(t) {
        (this.forEachEnabledProject((r) =>
          r.onPluginConfigurationChanged(t.pluginName, t.configuration),
        ),
          (this.currentPluginConfigOverrides =
            this.currentPluginConfigOverrides || new Map()),
          this.currentPluginConfigOverrides.set(t.pluginName, t.configuration));
      }
      getPackageJsonsVisibleToFile(t, r, i) {
        const o = this.packageJsonCache,
          s = i && this.toPath(i),
          l = [],
          u = (d) => {
            switch (o.directoryHasPackageJson(d)) {
              case 3:
                return (o.searchDirectoryAndAncestors(d, r), u(d));
              case -1:
                const _ = Qr(d, "package.json");
                this.watchPackageJsonFile(_, this.toPath(_), r);
                const h = o.getInDirectory(d);
                h && l.push(h);
            }
            if (s && s === d) return !0;
          };
        return (W_(r, ci(t), u), l);
      }
      getNearestAncestorDirectoryWithPackageJson(t, r) {
        return W_(r, t, (i) => {
          switch (this.packageJsonCache.directoryHasPackageJson(i)) {
            case -1:
              return i;
            case 0:
              return;
            case 3:
              return this.host.fileExists(Qr(i, "package.json")) ? i : void 0;
          }
        });
      }
      watchPackageJsonFile(t, r, i) {
        C.assert(i !== void 0);
        let o = (
          this.packageJsonFilesMap ?? (this.packageJsonFilesMap = new Map())
        ).get(r);
        if (!o) {
          let s = this.watchFactory.watchFile(
            t,
            (l, u) => {
              switch (u) {
                case 0:
                case 1:
                  (this.packageJsonCache.addOrUpdate(l, r),
                    this.onPackageJsonChange(o));
                  break;
                case 2:
                  (this.packageJsonCache.delete(r),
                    this.onPackageJsonChange(o),
                    o.projects.clear(),
                    o.close());
              }
            },
            250,
            this.hostConfiguration.watchOptions,
            sd.PackageJson,
          );
          ((o = {
            projects: new Set(),
            close: () => {
              var l;
              o.projects.size ||
                !s ||
                (s.close(),
                (s = void 0),
                (l = this.packageJsonFilesMap) == null || l.delete(r),
                this.packageJsonCache.invalidate(r));
            },
          }),
            this.packageJsonFilesMap.set(r, o));
        }
        (o.projects.add(i),
          (i.packageJsonWatches ?? (i.packageJsonWatches = new Set())).add(o));
      }
      onPackageJsonChange(t) {
        t.projects.forEach((r) => {
          var i;
          return (i = r.onPackageJsonChange) == null ? void 0 : i.call(r);
        });
      }
      includePackageJsonAutoImports() {
        switch (
          this.hostConfiguration.preferences.includePackageJsonAutoImports
        ) {
          case "on":
            return 1;
          case "off":
            return 0;
          default:
            return 2;
        }
      }
      getIncompleteCompletionsCache() {
        return (
          this.incompleteCompletionsCache ||
          (this.incompleteCompletionsCache = Mst())
        );
      }
    };
    _Oe.filenameEscapeRegexp = /[-/\\^$*+?.()|[\]{}]/g;
    var qme = _Oe;
    function Mst() {
      let e;
      return {
        get() {
          return e;
        },
        set(t) {
          e = t;
        },
        clear() {
          e = void 0;
        },
      };
    }
    function Jme(e) {
      return e.kind !== void 0;
    }
    function Kme(e) {
      e.print(!1, !1, !1);
    }
    function Xme(e) {
      let t, r, i;
      const o = {
        get(d, _, h, g) {
          if (!(!r || i !== l(d, h, g))) return r.get(_);
        },
        set(d, _, h, g, E, A, R) {
          if ((s(d, h, g).set(_, u(E, A, R, void 0, !1)), R)) {
            for (const N of A)
              if (N.isInNodeModules) {
                const P = N.path.substring(
                    0,
                    N.path.indexOf(Rg) + Rg.length - 1,
                  ),
                  k = e.toPath(P);
                t?.has(k) ||
                  (t || (t = new Map())).set(
                    k,
                    e.watchNodeModulesForPackageJsonChanges(P),
                  );
              }
          }
        },
        setModulePaths(d, _, h, g, E) {
          const A = s(d, h, g),
            R = A.get(_);
          R
            ? (R.modulePaths = E)
            : A.set(_, u(void 0, E, void 0, void 0, void 0));
        },
        setBlockedByPackageJsonDependencies(d, _, h, g, E, A) {
          const R = s(d, h, g),
            N = R.get(_);
          N
            ? ((N.isBlockedByPackageJsonDependencies = A), (N.packageName = E))
            : R.set(_, u(void 0, void 0, void 0, E, A));
        },
        clear() {
          (t?.forEach(Bm), r?.clear(), t?.clear(), (i = void 0));
        },
        count() {
          return r ? r.size : 0;
        },
      };
      return (
        C.isDebugging && Object.defineProperty(o, "__cache", { get: () => r }),
        o
      );
      function s(d, _, h) {
        const g = l(d, _, h);
        return (r && i !== g && o.clear(), (i = g), r || (r = new Map()));
      }
      function l(d, _, h) {
        return `${d},${_.importModuleSpecifierEnding},${_.importModuleSpecifierPreference},${h.overrideImportMode}`;
      }
      function u(d, _, h, g, E) {
        return {
          kind: d,
          modulePaths: _,
          moduleSpecifiers: h,
          packageName: g,
          isBlockedByPackageJsonDependencies: E,
        };
      }
    }
    function Yme(e) {
      const t = new Map(),
        r = new Map();
      return {
        addOrUpdate: i,
        invalidate: o,
        delete: (l) => {
          (t.delete(l), r.set(ci(l), !0));
        },
        getInDirectory: (l) => t.get(e.toPath(Qr(l, "package.json"))) || void 0,
        directoryHasPackageJson: (l) => s(e.toPath(l)),
        searchDirectoryAndAncestors: (l, u) => {
          W_(u, l, (d) => {
            const _ = e.toPath(d);
            if (s(_) !== 3) return !0;
            const h = Qr(d, "package.json");
            WP(e, h) ? i(h, Qr(_, "package.json")) : r.set(_, !0);
          });
        },
      };
      function i(l, u) {
        const d = C.checkDefined(mJ(l, e.host));
        (t.set(u, d), r.delete(ci(u)));
      }
      function o(l) {
        (t.delete(l), r.delete(ci(l)));
      }
      function s(l) {
        return t.has(Qr(l, "package.json")) ? -1 : r.has(l) ? 0 : 3;
      }
    }
    var gOe = {
      isCancellationRequested: () => !1,
      setRequest: () => {},
      resetRequest: () => {},
    };
    function Pst(e) {
      const t = e[0],
        r = e[1];
      return (1e9 * t + r) / 1e6;
    }
    function yOe(e, t) {
      if ((_C(e) || mW(e)) && e.isJsOnlyProject()) {
        const r = e.getScriptInfoForNormalizedPath(t);
        return r && !r.isJavaScript();
      }
      return !1;
    }
    function Lst(e) {
      return _p(e) || !!e.emitDecoratorMetadata;
    }
    function vOe(e, t, r) {
      const i = t.getScriptInfoForNormalizedPath(e);
      return {
        start: i.positionToLineOffset(r.start),
        end: i.positionToLineOffset(r.start + r.length),
        text: a_(
          r.messageText,
          `
`,
        ),
        code: r.code,
        category: jE(r),
        reportsUnnecessary: r.reportsUnnecessary,
        reportsDeprecated: r.reportsDeprecated,
        source: r.source,
        relatedInformation: Vt(r.relatedInformation, GX),
      };
    }
    function GX(e) {
      return e.file
        ? {
            span: {
              start: yC(ca(e.file, e.start)),
              end: yC(ca(e.file, e.start + e.length)),
              file: e.file.fileName,
            },
            message: a_(
              e.messageText,
              `
`,
            ),
            category: jE(e),
            code: e.code,
          }
        : {
            message: a_(
              e.messageText,
              `
`,
            ),
            category: jE(e),
            code: e.code,
          };
    }
    function yC(e) {
      return { line: e.line + 1, offset: e.character + 1 };
    }
    function yW(e, t) {
      const r = e.file && yC(ca(e.file, e.start)),
        i = e.file && yC(ca(e.file, e.start + e.length)),
        o = a_(
          e.messageText,
          `
`,
        ),
        { code: s, source: l } = e,
        u = jE(e),
        d = {
          start: r,
          end: i,
          text: o,
          code: s,
          category: u,
          reportsUnnecessary: e.reportsUnnecessary,
          reportsDeprecated: e.reportsDeprecated,
          source: l,
          relatedInformation: Vt(e.relatedInformation, GX),
        };
      return t ? { ...d, fileName: e.file && e.file.fileName } : d;
    }
    function kst(e, t) {
      return e.every((r) => Dl(r.span) < t);
    }
    var bOe = yme;
    function $me(e, t, r, i) {
      const o = t.hasLevel(3),
        s = JSON.stringify(e);
      return (
        o && t.info(`${e.type}:${u0(e)}`),
        `Content-Length: ${1 + r(s, "utf8")}\r
\r
${s}${i}`
      );
    }
    var wst = class {
      constructor(e) {
        this.operationHost = e;
      }
      startNew(e) {
        (this.complete(),
          (this.requestId = this.operationHost.getCurrentRequestId()),
          this.executeAction(e));
      }
      complete() {
        (this.requestId !== void 0 &&
          (this.operationHost.sendRequestCompletedEvent(
            this.requestId,
            this.performanceData,
          ),
          (this.requestId = void 0)),
          this.setTimerHandle(void 0),
          this.setImmediateId(void 0),
          (this.performanceData = void 0));
      }
      immediate(e, t) {
        const r = this.requestId;
        (C.assert(
          r === this.operationHost.getCurrentRequestId(),
          "immediate: incorrect request id",
        ),
          this.setImmediateId(
            this.operationHost.getServerHost().setImmediate(() => {
              ((this.immediateId = void 0),
                this.operationHost.executeWithRequestId(
                  r,
                  () => this.executeAction(t),
                  this.performanceData,
                ));
            }, e),
          ));
      }
      delay(e, t, r) {
        const i = this.requestId;
        (C.assert(
          i === this.operationHost.getCurrentRequestId(),
          "delay: incorrect request id",
        ),
          this.setTimerHandle(
            this.operationHost.getServerHost().setTimeout(
              () => {
                ((this.timerHandle = void 0),
                  this.operationHost.executeWithRequestId(
                    i,
                    () => this.executeAction(r),
                    this.performanceData,
                  ));
              },
              t,
              e,
            ),
          ));
      }
      executeAction(e) {
        var t, r, i, o, s, l;
        let u = !1;
        try {
          this.operationHost.isCancellationRequested()
            ? ((u = !0),
              (t = xr) == null ||
                t.instant(xr.Phase.Session, "stepCanceled", {
                  seq: this.requestId,
                  early: !0,
                }))
            : ((r = xr) == null ||
                r.push(xr.Phase.Session, "stepAction", { seq: this.requestId }),
              e(this),
              (i = xr) == null || i.pop());
        } catch (d) {
          ((o = xr) == null || o.popAll(),
            (u = !0),
            d instanceof TN
              ? (s = xr) == null ||
                s.instant(xr.Phase.Session, "stepCanceled", {
                  seq: this.requestId,
                })
              : ((l = xr) == null ||
                  l.instant(xr.Phase.Session, "stepError", {
                    seq: this.requestId,
                    message: d.message,
                  }),
                this.operationHost.logError(
                  d,
                  `delayed processing of request ${this.requestId}`,
                )));
        }
        ((this.performanceData = this.operationHost.getPerformanceData()),
          (u || !this.hasPendingWork()) && this.complete());
      }
      setTimerHandle(e) {
        (this.timerHandle !== void 0 &&
          this.operationHost.getServerHost().clearTimeout(this.timerHandle),
          (this.timerHandle = e));
      }
      setImmediateId(e) {
        (this.immediateId !== void 0 &&
          this.operationHost.getServerHost().clearImmediate(this.immediateId),
          (this.immediateId = e));
      }
      hasPendingWork() {
        return !!this.timerHandle || !!this.immediateId;
      }
    };
    function Qme(e, t) {
      return { seq: 0, type: "event", event: e, body: t };
    }
    function Ost(e, t, r, i) {
      const o = yc(Mo(r) ? r : r.projects, (s) => i(s, e));
      return (
        !Mo(r) &&
          r.symLinkedProjects &&
          r.symLinkedProjects.forEach((s, l) => {
            const u = t(l);
            o.push(...Ki(s, (d) => i(d, u)));
          }),
        cS(o, nb)
      );
    }
    function VX(e) {
      return HB(({ textSpan: t }) => t.start + 100003 * t.length, tJ(e));
    }
    function Wst(e, t, r, i, o, s, l) {
      const u = Zme(
        e,
        t,
        r,
        TOe(t, r, !0),
        AOe,
        (h, g) =>
          h
            .getLanguageService()
            .findRenameLocations(g.fileName, g.pos, i, o, s),
        (h, g) => g(eL(h)),
      );
      if (Mo(u)) return u;
      const d = [],
        _ = VX(l);
      return (
        u.forEach((h, g) => {
          for (const E of h)
            !_.has(E) && !jX(eL(E), g) && (d.push(E), _.add(E));
        }),
        d
      );
    }
    function TOe(e, t, r) {
      const i = e
          .getLanguageService()
          .getDefinitionAtPosition(t.fileName, t.pos, !1, r),
        o = i && Ac(i);
      return o && !o.isLocal
        ? { fileName: o.fileName, pos: o.textSpan.start }
        : void 0;
    }
    function Fst(e, t, r, i, o) {
      var s, l;
      const u = Zme(
        e,
        t,
        r,
        TOe(t, r, !1),
        AOe,
        (g, E) => (
          o.info(
            `Finding references to ${E.fileName} position ${E.pos} in project ${g.getProjectName()}`,
          ),
          g.getLanguageService().findReferences(E.fileName, E.pos)
        ),
        (g, E) => {
          E(eL(g.definition));
          for (const A of g.references) E(eL(A));
        },
      );
      if (Mo(u)) return u;
      const d = u.get(t);
      if (
        ((l = (s = d?.[0]) == null ? void 0 : s.references[0]) == null
          ? void 0
          : l.isDefinition) === void 0
      )
        u.forEach((g) => {
          for (const E of g)
            for (const A of E.references) delete A.isDefinition;
        });
      else {
        const g = VX(i);
        for (const A of d)
          for (const R of A.references)
            if (R.isDefinition) {
              g.add(R);
              break;
            }
        const E = new Set();
        for (;;) {
          let A = !1;
          if (
            (u.forEach((R, N) => {
              if (E.has(N)) return;
              N.getLanguageService().updateIsDefinitionOfReferencedSymbols(
                R,
                g,
              ) && (E.add(N), (A = !0));
            }),
            !A)
          )
            break;
        }
        u.forEach((A, R) => {
          if (!E.has(R))
            for (const N of A)
              for (const P of N.references) P.isDefinition = !1;
        });
      }
      const _ = [],
        h = VX(i);
      return (
        u.forEach((g, E) => {
          for (const A of g) {
            const R = jX(eL(A.definition), E),
              N =
                R === void 0
                  ? A.definition
                  : {
                      ...A.definition,
                      textSpan: Id(R.pos, A.definition.textSpan.length),
                      fileName: R.fileName,
                      contextSpan: Bst(A.definition, E),
                    };
            let P = hn(_, (k) => eJ(k.definition, N, i));
            P || ((P = { definition: N, references: [] }), _.push(P));
            for (const k of A.references)
              !h.has(k) && !jX(eL(k), E) && (h.add(k), P.references.push(k));
          }
        }),
        _.filter((g) => g.references.length !== 0)
      );
    }
    function SOe(e, t, r) {
      for (const i of Mo(e) ? e : e.projects) r(i, t);
      !Mo(e) &&
        e.symLinkedProjects &&
        e.symLinkedProjects.forEach((i, o) => {
          for (const s of i) r(s, o);
        });
    }
    function Zme(e, t, r, i, o, s, l) {
      const u = new Map(),
        d = g2();
      (d.enqueue({ project: t, location: r }),
        SOe(e, r.fileName, (N, P) => {
          const k = { fileName: P, pos: r.pos };
          d.enqueue({ project: N, location: k });
        }));
      const _ = t.projectService,
        h = t.getCancellationToken(),
        g = Nu(() =>
          t.isSourceOfProjectReferenceRedirect(i.fileName)
            ? i
            : t
                .getLanguageService()
                .getSourceMapper()
                .tryGetGeneratedPosition(i),
        ),
        E = Nu(() =>
          t.isSourceOfProjectReferenceRedirect(i.fileName)
            ? i
            : t.getLanguageService().getSourceMapper().tryGetSourcePosition(i),
        ),
        A = new Set();
      e: for (; !d.isEmpty(); ) {
        for (; !d.isEmpty(); ) {
          if (h.isCancellationRequested()) break e;
          const { project: N, location: P } = d.dequeue();
          if (u.has(N) || IOe(N, P) || (Am(N), !N.containsFile(Cs(P.fileName))))
            continue;
          const k = R(N, P);
          (u.set(N, k ?? Kc), A.add(zst(N)));
        }
        i &&
          (_.loadAncestorProjectTree(A),
          _.forEachEnabledProject((N) => {
            if (h.isCancellationRequested() || u.has(N)) return;
            const P = o(i, N, g, E);
            P && d.enqueue({ project: N, location: P });
          }));
      }
      if (u.size === 1) return zB(u.values());
      return u;
      function R(N, P) {
        const k = s(N, P);
        if (!k || !l) return k;
        for (const W of k)
          l(W, (O) => {
            const G = _.getOriginalLocationEnsuringConfiguredProject(N, O);
            if (!G) return;
            const j = _.getScriptInfo(G.fileName);
            for (const Z of j.containingProjects)
              !Z.isOrphan() &&
                !u.has(Z) &&
                d.enqueue({ project: Z, location: G });
            const J = _.getSymlinkedProjects(j);
            J &&
              J.forEach((Z, q) => {
                for (const ye of Z)
                  !ye.isOrphan() &&
                    !u.has(ye) &&
                    d.enqueue({
                      project: ye,
                      location: { fileName: q, pos: G.pos },
                    });
              });
          });
        return k;
      }
    }
    function EOe(e, t) {
      if (t.containsFile(Cs(e.fileName)) && !IOe(t, e)) return e;
    }
    function AOe(e, t, r, i) {
      const o = EOe(e, t);
      if (o) return o;
      const s = r();
      if (s && t.containsFile(Cs(s.fileName))) return s;
      const l = i();
      return l && t.containsFile(Cs(l.fileName)) ? l : void 0;
    }
    function IOe(e, t) {
      if (!t) return !1;
      const r = e.getLanguageService().getProgram();
      if (!r) return !1;
      const i = r.getSourceFile(t.fileName);
      return (
        !!i &&
        i.resolvedPath !== i.path &&
        i.resolvedPath !== e.toPath(t.fileName)
      );
    }
    function zst(e) {
      return bv(e) ? e.canonicalConfigFilePath : e.getProjectName();
    }
    function eL({ fileName: e, textSpan: t }) {
      return { fileName: e, pos: t.start };
    }
    function jX(e, t) {
      return MP(e, t.getSourceMapper(), (r) => t.projectService.fileExists(r));
    }
    function xOe(e, t) {
      return x7(e, t.getSourceMapper(), (r) => t.projectService.fileExists(r));
    }
    function Bst(e, t) {
      return rJ(e, t.getSourceMapper(), (r) => t.projectService.fileExists(r));
    }
    var ROe = [
        "openExternalProject",
        "openExternalProjects",
        "closeExternalProject",
        "synchronizeProjectList",
        "emit-output",
        "compileOnSaveAffectedFileList",
        "compileOnSaveEmitFile",
        "compilerOptionsDiagnostics-full",
        "encodedSemanticClassifications-full",
        "semanticDiagnosticsSync",
        "suggestionDiagnosticsSync",
        "geterrForProject",
        "reload",
        "reloadProjects",
        "getCodeFixes",
        "getCodeFixes-full",
        "getCombinedCodeFix",
        "getCombinedCodeFix-full",
        "applyCodeActionCommand",
        "getSupportedCodeFixes",
        "getApplicableRefactors",
        "getMoveToRefactoringFileSuggestions",
        "getEditsForRefactor",
        "getEditsForRefactor-full",
        "organizeImports",
        "organizeImports-full",
        "getEditsForFileRename",
        "getEditsForFileRename-full",
        "prepareCallHierarchy",
        "provideCallHierarchyIncomingCalls",
        "provideCallHierarchyOutgoingCalls",
        "getPasteEdits",
        "copilotRelated",
      ],
      Gst = [
        ...ROe,
        "definition",
        "definition-full",
        "definitionAndBoundSpan",
        "definitionAndBoundSpan-full",
        "typeDefinition",
        "implementation",
        "implementation-full",
        "references",
        "references-full",
        "rename",
        "renameLocations-full",
        "rename-full",
        "quickinfo",
        "quickinfo-full",
        "completionInfo",
        "completions",
        "completions-full",
        "completionEntryDetails",
        "completionEntryDetails-full",
        "signatureHelp",
        "signatureHelp-full",
        "navto",
        "navto-full",
        "documentHighlights",
        "documentHighlights-full",
        "preparePasteEdits",
      ],
      DOe = class Z$ {
        constructor(t) {
          ((this.changeSeq = 0),
            (this.regionDiagLineCountThreshold = 500),
            (this.handlers = new Map(
              Object.entries({
                status: () => {
                  const s = { version: Le };
                  return this.requiredResponse(s);
                },
                openExternalProject: (s) => (
                  this.projectService.openExternalProject(s.arguments, !0),
                  this.requiredResponse(!0)
                ),
                openExternalProjects: (s) => (
                  this.projectService.openExternalProjects(
                    s.arguments.projects,
                  ),
                  this.requiredResponse(!0)
                ),
                closeExternalProject: (s) => (
                  this.projectService.closeExternalProject(
                    s.arguments.projectFileName,
                    !0,
                  ),
                  this.requiredResponse(!0)
                ),
                synchronizeProjectList: (s) => {
                  const l = this.projectService.synchronizeProjectList(
                    s.arguments.knownProjects,
                    s.arguments.includeProjectReferenceRedirectInfo,
                  );
                  if (
                    !l.some(
                      (d) => d.projectErrors && d.projectErrors.length !== 0,
                    )
                  )
                    return this.requiredResponse(l);
                  const u = Vt(l, (d) =>
                    !d.projectErrors || d.projectErrors.length === 0
                      ? d
                      : {
                          info: d.info,
                          changes: d.changes,
                          files: d.files,
                          projectErrors:
                            this.convertToDiagnosticsWithLinePosition(
                              d.projectErrors,
                              void 0,
                            ),
                        },
                  );
                  return this.requiredResponse(u);
                },
                updateOpen: (s) => (
                  this.changeSeq++,
                  this.projectService.applyChangesInOpenFiles(
                    s.arguments.openFiles &&
                      za(s.arguments.openFiles, (l) => ({
                        fileName: l.file,
                        content: l.fileContent,
                        scriptKind: l.scriptKindName,
                        projectRootPath: l.projectRootPath,
                      })),
                    s.arguments.changedFiles &&
                      za(s.arguments.changedFiles, (l) => ({
                        fileName: l.fileName,
                        changes: nh(WB(l.textChanges), (u) => {
                          const d = C.checkDefined(
                              this.projectService.getScriptInfo(l.fileName),
                            ),
                            _ = d.lineOffsetToPosition(
                              u.start.line,
                              u.start.offset,
                            ),
                            h = d.lineOffsetToPosition(
                              u.end.line,
                              u.end.offset,
                            );
                          return _ >= 0
                            ? {
                                span: { start: _, length: h - _ },
                                newText: u.newText,
                              }
                            : void 0;
                        }),
                      })),
                    s.arguments.closedFiles,
                  ),
                  this.requiredResponse(!0)
                ),
                applyChangedToOpenFiles: (s) => (
                  this.changeSeq++,
                  this.projectService.applyChangesInOpenFiles(
                    s.arguments.openFiles,
                    s.arguments.changedFiles &&
                      za(s.arguments.changedFiles, (l) => ({
                        fileName: l.fileName,
                        changes: WB(l.changes),
                      })),
                    s.arguments.closedFiles,
                  ),
                  this.requiredResponse(!0)
                ),
                exit: () => (this.exit(), this.notRequired(void 0)),
                definition: (s) =>
                  this.requiredResponse(this.getDefinition(s.arguments, !0)),
                "definition-full": (s) =>
                  this.requiredResponse(this.getDefinition(s.arguments, !1)),
                definitionAndBoundSpan: (s) =>
                  this.requiredResponse(
                    this.getDefinitionAndBoundSpan(s.arguments, !0),
                  ),
                "definitionAndBoundSpan-full": (s) =>
                  this.requiredResponse(
                    this.getDefinitionAndBoundSpan(s.arguments, !1),
                  ),
                findSourceDefinition: (s) =>
                  this.requiredResponse(this.findSourceDefinition(s.arguments)),
                "emit-output": (s) =>
                  this.requiredResponse(this.getEmitOutput(s.arguments)),
                typeDefinition: (s) =>
                  this.requiredResponse(this.getTypeDefinition(s.arguments)),
                implementation: (s) =>
                  this.requiredResponse(
                    this.getImplementation(s.arguments, !0),
                  ),
                "implementation-full": (s) =>
                  this.requiredResponse(
                    this.getImplementation(s.arguments, !1),
                  ),
                references: (s) =>
                  this.requiredResponse(this.getReferences(s.arguments, !0)),
                "references-full": (s) =>
                  this.requiredResponse(this.getReferences(s.arguments, !1)),
                rename: (s) =>
                  this.requiredResponse(
                    this.getRenameLocations(s.arguments, !0),
                  ),
                "renameLocations-full": (s) =>
                  this.requiredResponse(
                    this.getRenameLocations(s.arguments, !1),
                  ),
                "rename-full": (s) =>
                  this.requiredResponse(this.getRenameInfo(s.arguments)),
                open: (s) => (
                  this.openClientFile(
                    Cs(s.arguments.file),
                    s.arguments.fileContent,
                    wX(s.arguments.scriptKindName),
                    s.arguments.projectRootPath
                      ? Cs(s.arguments.projectRootPath)
                      : void 0,
                  ),
                  this.notRequired(s)
                ),
                quickinfo: (s) =>
                  this.requiredResponse(
                    this.getQuickInfoWorker(s.arguments, !0),
                  ),
                "quickinfo-full": (s) =>
                  this.requiredResponse(
                    this.getQuickInfoWorker(s.arguments, !1),
                  ),
                getOutliningSpans: (s) =>
                  this.requiredResponse(
                    this.getOutliningSpans(s.arguments, !0),
                  ),
                outliningSpans: (s) =>
                  this.requiredResponse(
                    this.getOutliningSpans(s.arguments, !1),
                  ),
                todoComments: (s) =>
                  this.requiredResponse(this.getTodoComments(s.arguments)),
                indentation: (s) =>
                  this.requiredResponse(this.getIndentation(s.arguments)),
                nameOrDottedNameSpan: (s) =>
                  this.requiredResponse(
                    this.getNameOrDottedNameSpan(s.arguments),
                  ),
                breakpointStatement: (s) =>
                  this.requiredResponse(
                    this.getBreakpointStatement(s.arguments),
                  ),
                braceCompletion: (s) =>
                  this.requiredResponse(
                    this.isValidBraceCompletion(s.arguments),
                  ),
                docCommentTemplate: (s) =>
                  this.requiredResponse(
                    this.getDocCommentTemplate(s.arguments),
                  ),
                getSpanOfEnclosingComment: (s) =>
                  this.requiredResponse(
                    this.getSpanOfEnclosingComment(s.arguments),
                  ),
                fileReferences: (s) =>
                  this.requiredResponse(
                    this.getFileReferences(s.arguments, !0),
                  ),
                "fileReferences-full": (s) =>
                  this.requiredResponse(
                    this.getFileReferences(s.arguments, !1),
                  ),
                format: (s) =>
                  this.requiredResponse(
                    this.getFormattingEditsForRange(s.arguments),
                  ),
                formatonkey: (s) =>
                  this.requiredResponse(
                    this.getFormattingEditsAfterKeystroke(s.arguments),
                  ),
                "format-full": (s) =>
                  this.requiredResponse(
                    this.getFormattingEditsForDocumentFull(s.arguments),
                  ),
                "formatonkey-full": (s) =>
                  this.requiredResponse(
                    this.getFormattingEditsAfterKeystrokeFull(s.arguments),
                  ),
                "formatRange-full": (s) =>
                  this.requiredResponse(
                    this.getFormattingEditsForRangeFull(s.arguments),
                  ),
                completionInfo: (s) =>
                  this.requiredResponse(
                    this.getCompletions(s.arguments, "completionInfo"),
                  ),
                completions: (s) =>
                  this.requiredResponse(
                    this.getCompletions(s.arguments, "completions"),
                  ),
                "completions-full": (s) =>
                  this.requiredResponse(
                    this.getCompletions(s.arguments, "completions-full"),
                  ),
                completionEntryDetails: (s) =>
                  this.requiredResponse(
                    this.getCompletionEntryDetails(s.arguments, !1),
                  ),
                "completionEntryDetails-full": (s) =>
                  this.requiredResponse(
                    this.getCompletionEntryDetails(s.arguments, !0),
                  ),
                compileOnSaveAffectedFileList: (s) =>
                  this.requiredResponse(
                    this.getCompileOnSaveAffectedFileList(s.arguments),
                  ),
                compileOnSaveEmitFile: (s) =>
                  this.requiredResponse(this.emitFile(s.arguments)),
                signatureHelp: (s) =>
                  this.requiredResponse(
                    this.getSignatureHelpItems(s.arguments, !0),
                  ),
                "signatureHelp-full": (s) =>
                  this.requiredResponse(
                    this.getSignatureHelpItems(s.arguments, !1),
                  ),
                "compilerOptionsDiagnostics-full": (s) =>
                  this.requiredResponse(
                    this.getCompilerOptionsDiagnostics(s.arguments),
                  ),
                "encodedSyntacticClassifications-full": (s) =>
                  this.requiredResponse(
                    this.getEncodedSyntacticClassifications(s.arguments),
                  ),
                "encodedSemanticClassifications-full": (s) =>
                  this.requiredResponse(
                    this.getEncodedSemanticClassifications(s.arguments),
                  ),
                cleanup: () => (this.cleanup(), this.requiredResponse(!0)),
                semanticDiagnosticsSync: (s) =>
                  this.requiredResponse(
                    this.getSemanticDiagnosticsSync(s.arguments),
                  ),
                syntacticDiagnosticsSync: (s) =>
                  this.requiredResponse(
                    this.getSyntacticDiagnosticsSync(s.arguments),
                  ),
                suggestionDiagnosticsSync: (s) =>
                  this.requiredResponse(
                    this.getSuggestionDiagnosticsSync(s.arguments),
                  ),
                geterr: (s) => (
                  this.errorCheck.startNew((l) =>
                    this.getDiagnostics(
                      l,
                      s.arguments.delay,
                      s.arguments.files,
                    ),
                  ),
                  this.notRequired(void 0)
                ),
                geterrForProject: (s) => (
                  this.errorCheck.startNew((l) =>
                    this.getDiagnosticsForProject(
                      l,
                      s.arguments.delay,
                      s.arguments.file,
                    ),
                  ),
                  this.notRequired(void 0)
                ),
                change: (s) => (this.change(s.arguments), this.notRequired(s)),
                configure: (s) => (
                  this.projectService.setHostConfiguration(s.arguments),
                  this.notRequired(s)
                ),
                reload: (s) => (
                  this.reload(s.arguments),
                  this.requiredResponse({ reloadFinished: !0 })
                ),
                saveto: (s) => {
                  const l = s.arguments;
                  return (
                    this.saveToTmp(l.file, l.tmpfile),
                    this.notRequired(s)
                  );
                },
                close: (s) => {
                  const l = s.arguments;
                  return (this.closeClientFile(l.file), this.notRequired(s));
                },
                navto: (s) =>
                  this.requiredResponse(
                    this.getNavigateToItems(s.arguments, !0),
                  ),
                "navto-full": (s) =>
                  this.requiredResponse(
                    this.getNavigateToItems(s.arguments, !1),
                  ),
                brace: (s) =>
                  this.requiredResponse(this.getBraceMatching(s.arguments, !0)),
                "brace-full": (s) =>
                  this.requiredResponse(this.getBraceMatching(s.arguments, !1)),
                navbar: (s) =>
                  this.requiredResponse(
                    this.getNavigationBarItems(s.arguments, !0),
                  ),
                "navbar-full": (s) =>
                  this.requiredResponse(
                    this.getNavigationBarItems(s.arguments, !1),
                  ),
                navtree: (s) =>
                  this.requiredResponse(
                    this.getNavigationTree(s.arguments, !0),
                  ),
                "navtree-full": (s) =>
                  this.requiredResponse(
                    this.getNavigationTree(s.arguments, !1),
                  ),
                documentHighlights: (s) =>
                  this.requiredResponse(
                    this.getDocumentHighlights(s.arguments, !0),
                  ),
                "documentHighlights-full": (s) =>
                  this.requiredResponse(
                    this.getDocumentHighlights(s.arguments, !1),
                  ),
                compilerOptionsForInferredProjects: (s) => (
                  this.setCompilerOptionsForInferredProjects(s.arguments),
                  this.requiredResponse(!0)
                ),
                projectInfo: (s) =>
                  this.requiredResponse(this.getProjectInfo(s.arguments)),
                reloadProjects: (s) => (
                  this.projectService.reloadProjects(),
                  this.notRequired(s)
                ),
                jsxClosingTag: (s) =>
                  this.requiredResponse(this.getJsxClosingTag(s.arguments)),
                linkedEditingRange: (s) =>
                  this.requiredResponse(
                    this.getLinkedEditingRange(s.arguments),
                  ),
                getCodeFixes: (s) =>
                  this.requiredResponse(this.getCodeFixes(s.arguments, !0)),
                "getCodeFixes-full": (s) =>
                  this.requiredResponse(this.getCodeFixes(s.arguments, !1)),
                getCombinedCodeFix: (s) =>
                  this.requiredResponse(
                    this.getCombinedCodeFix(s.arguments, !0),
                  ),
                "getCombinedCodeFix-full": (s) =>
                  this.requiredResponse(
                    this.getCombinedCodeFix(s.arguments, !1),
                  ),
                applyCodeActionCommand: (s) =>
                  this.requiredResponse(
                    this.applyCodeActionCommand(s.arguments),
                  ),
                getSupportedCodeFixes: (s) =>
                  this.requiredResponse(
                    this.getSupportedCodeFixes(s.arguments),
                  ),
                getApplicableRefactors: (s) =>
                  this.requiredResponse(
                    this.getApplicableRefactors(s.arguments),
                  ),
                getEditsForRefactor: (s) =>
                  this.requiredResponse(
                    this.getEditsForRefactor(s.arguments, !0),
                  ),
                getMoveToRefactoringFileSuggestions: (s) =>
                  this.requiredResponse(
                    this.getMoveToRefactoringFileSuggestions(s.arguments),
                  ),
                preparePasteEdits: (s) =>
                  this.requiredResponse(this.preparePasteEdits(s.arguments)),
                getPasteEdits: (s) =>
                  this.requiredResponse(this.getPasteEdits(s.arguments)),
                "getEditsForRefactor-full": (s) =>
                  this.requiredResponse(
                    this.getEditsForRefactor(s.arguments, !1),
                  ),
                organizeImports: (s) =>
                  this.requiredResponse(this.organizeImports(s.arguments, !0)),
                "organizeImports-full": (s) =>
                  this.requiredResponse(this.organizeImports(s.arguments, !1)),
                getEditsForFileRename: (s) =>
                  this.requiredResponse(
                    this.getEditsForFileRename(s.arguments, !0),
                  ),
                "getEditsForFileRename-full": (s) =>
                  this.requiredResponse(
                    this.getEditsForFileRename(s.arguments, !1),
                  ),
                configurePlugin: (s) => (
                  this.configurePlugin(s.arguments),
                  this.notRequired(s)
                ),
                selectionRange: (s) =>
                  this.requiredResponse(
                    this.getSmartSelectionRange(s.arguments, !0),
                  ),
                "selectionRange-full": (s) =>
                  this.requiredResponse(
                    this.getSmartSelectionRange(s.arguments, !1),
                  ),
                prepareCallHierarchy: (s) =>
                  this.requiredResponse(this.prepareCallHierarchy(s.arguments)),
                provideCallHierarchyIncomingCalls: (s) =>
                  this.requiredResponse(
                    this.provideCallHierarchyIncomingCalls(s.arguments),
                  ),
                provideCallHierarchyOutgoingCalls: (s) =>
                  this.requiredResponse(
                    this.provideCallHierarchyOutgoingCalls(s.arguments),
                  ),
                toggleLineComment: (s) =>
                  this.requiredResponse(
                    this.toggleLineComment(s.arguments, !0),
                  ),
                "toggleLineComment-full": (s) =>
                  this.requiredResponse(
                    this.toggleLineComment(s.arguments, !1),
                  ),
                toggleMultilineComment: (s) =>
                  this.requiredResponse(
                    this.toggleMultilineComment(s.arguments, !0),
                  ),
                "toggleMultilineComment-full": (s) =>
                  this.requiredResponse(
                    this.toggleMultilineComment(s.arguments, !1),
                  ),
                commentSelection: (s) =>
                  this.requiredResponse(this.commentSelection(s.arguments, !0)),
                "commentSelection-full": (s) =>
                  this.requiredResponse(this.commentSelection(s.arguments, !1)),
                uncommentSelection: (s) =>
                  this.requiredResponse(
                    this.uncommentSelection(s.arguments, !0),
                  ),
                "uncommentSelection-full": (s) =>
                  this.requiredResponse(
                    this.uncommentSelection(s.arguments, !1),
                  ),
                provideInlayHints: (s) =>
                  this.requiredResponse(this.provideInlayHints(s.arguments)),
                mapCode: (s) =>
                  this.requiredResponse(this.mapCode(s.arguments)),
                copilotRelated: () =>
                  this.requiredResponse(this.getCopilotRelatedInfo()),
              }),
            )),
            (this.host = t.host),
            (this.cancellationToken = t.cancellationToken),
            (this.typingsInstaller = t.typingsInstaller || wz),
            (this.byteLength = t.byteLength),
            (this.hrtime = t.hrtime),
            (this.logger = t.logger),
            (this.canUseEvents = t.canUseEvents),
            (this.suppressDiagnosticEvents = t.suppressDiagnosticEvents),
            (this.noGetErrOnBackgroundUpdate = t.noGetErrOnBackgroundUpdate));
          const { throttleWaitMilliseconds: r } = t;
          this.eventHandler = this.canUseEvents
            ? t.eventHandler || ((s) => this.defaultEventHandler(s))
            : void 0;
          const i = {
            executeWithRequestId: (s, l, u) =>
              this.executeWithRequestId(s, l, u),
            getCurrentRequestId: () => this.currentRequestId,
            getPerformanceData: () => this.performanceData,
            getServerHost: () => this.host,
            logError: (s, l) => this.logError(s, l),
            sendRequestCompletedEvent: (s, l) =>
              this.sendRequestCompletedEvent(s, l),
            isCancellationRequested: () =>
              this.cancellationToken.isCancellationRequested(),
          };
          this.errorCheck = new wst(i);
          const o = {
            host: this.host,
            logger: this.logger,
            cancellationToken: this.cancellationToken,
            useSingleInferredProject: t.useSingleInferredProject,
            useInferredProjectPerProjectRoot:
              t.useInferredProjectPerProjectRoot,
            typingsInstaller: this.typingsInstaller,
            throttleWaitMilliseconds: r,
            eventHandler: this.eventHandler,
            suppressDiagnosticEvents: this.suppressDiagnosticEvents,
            globalPlugins: t.globalPlugins,
            pluginProbeLocations: t.pluginProbeLocations,
            allowLocalPluginLoads: t.allowLocalPluginLoads,
            typesMapLocation: t.typesMapLocation,
            serverMode: t.serverMode,
            session: this,
            canUseWatchEvents: t.canUseWatchEvents,
            incrementalVerifier: t.incrementalVerifier,
          };
          switch (
            ((this.projectService = new qme(o)),
            this.projectService.setPerformanceEventHandler(
              this.performanceEventHandler.bind(this),
            ),
            (this.gcTimer = new _me(this.host, 7e3, this.logger)),
            this.projectService.serverMode)
          ) {
            case 0:
              break;
            case 1:
              ROe.forEach((s) =>
                this.handlers.set(s, (l) => {
                  throw new Error(
                    `Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`,
                  );
                }),
              );
              break;
            case 2:
              Gst.forEach((s) =>
                this.handlers.set(s, (l) => {
                  throw new Error(
                    `Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`,
                  );
                }),
              );
              break;
            default:
              C.assertNever(this.projectService.serverMode);
          }
        }
        sendRequestCompletedEvent(t, r) {
          this.event(
            { request_seq: t, performanceData: r && COe(r) },
            "requestCompleted",
          );
        }
        addPerformanceData(t, r) {
          (this.performanceData || (this.performanceData = {}),
            (this.performanceData[t] = (this.performanceData[t] ?? 0) + r));
        }
        addDiagnosticsPerformanceData(t, r, i) {
          var o, s;
          this.performanceData || (this.performanceData = {});
          let l =
            (o = this.performanceData.diagnosticsDuration) == null
              ? void 0
              : o.get(t);
          (l ||
            (
              (s = this.performanceData).diagnosticsDuration ??
              (s.diagnosticsDuration = new Map())
            ).set(t, (l = {})),
            (l[r] = i));
        }
        performanceEventHandler(t) {
          switch (t.kind) {
            case "UpdateGraph":
              this.addPerformanceData("updateGraphDurationMs", t.durationMs);
              break;
            case "CreatePackageJsonAutoImportProvider":
              this.addPerformanceData(
                "createAutoImportProviderProgramDurationMs",
                t.durationMs,
              );
              break;
          }
        }
        defaultEventHandler(t) {
          switch (t.eventName) {
            case Lz:
              this.projectsUpdatedInBackgroundEvent(t.data.openFiles);
              break;
            case IX:
              this.event(
                {
                  projectName: t.data.project.getProjectName(),
                  reason: t.data.reason,
                },
                t.eventName,
              );
              break;
            case xX:
              this.event(
                { projectName: t.data.project.getProjectName() },
                t.eventName,
              );
              break;
            case RX:
            case MX:
            case PX:
            case LX:
              this.event(t.data, t.eventName);
              break;
            case DX:
              this.event(
                {
                  triggerFile: t.data.triggerFile,
                  configFile: t.data.configFileName,
                  diagnostics: Vt(t.data.diagnostics, (r) => yW(r, !0)),
                },
                t.eventName,
              );
              break;
            case CX: {
              this.event(
                {
                  projectName: t.data.project.getProjectName(),
                  languageServiceEnabled: t.data.languageServiceEnabled,
                },
                t.eventName,
              );
              break;
            }
            case NX: {
              this.event(
                { telemetryEventName: t.eventName, payload: t.data },
                "telemetry",
              );
              break;
            }
          }
        }
        projectsUpdatedInBackgroundEvent(t) {
          (this.projectService.logger.info(
            `got projects updated in background ${t}`,
          ),
            t.length &&
              (!this.suppressDiagnosticEvents &&
                !this.noGetErrOnBackgroundUpdate &&
                (this.projectService.logger.info(
                  `Queueing diagnostics update for ${t}`,
                ),
                this.errorCheck.startNew((r) =>
                  this.updateErrorCheck(r, t, 100, !0),
                )),
              this.event({ openFiles: t }, Lz)));
        }
        logError(t, r) {
          this.logErrorWorker(t, r);
        }
        logErrorWorker(t, r, i) {
          let o = "Exception on executing command " + r;
          if (
            (t.message &&
              ((o +=
                `:
` + AP(t.message)),
              t.stack &&
                (o +=
                  `
` + AP(t.stack))),
            this.logger.hasLevel(3))
          ) {
            if (i)
              try {
                const { file: s, project: l } = this.getFileAndProject(i),
                  u = l.getScriptInfoForNormalizedPath(s);
                if (u) {
                  const d = fx(u.getSnapshot());
                  o += `

File text of ${i.file}:${AP(d)}
`;
                }
              } catch {}
            if (t.ProgramFiles) {
              ((o += `

Program files: ${JSON.stringify(t.ProgramFiles)}
`),
                (o += `

Projects::
`));
              let s = 0;
              const l = (u) => {
                ((o += `
Project '${u.projectName}' (${ZP[u.projectKind]}) ${s}
`),
                  (o += u.filesToString(!0)),
                  (o += `
-----------------------------------------------
`),
                  s++);
              };
              (this.projectService.externalProjects.forEach(l),
                this.projectService.configuredProjects.forEach(l),
                this.projectService.inferredProjects.forEach(l));
            }
          }
          this.logger.msg(o, "Err");
        }
        send(t) {
          if (t.type === "event" && !this.canUseEvents) {
            this.logger.hasLevel(3) &&
              this.logger.info(
                `Session does not support events: ignored event: ${u0(t)}`,
              );
            return;
          }
          this.writeMessage(t);
        }
        writeMessage(t) {
          const r = $me(t, this.logger, this.byteLength, this.host.newLine);
          this.host.write(r);
        }
        event(t, r) {
          this.send(Qme(r, t));
        }
        doOutput(t, r, i, o, s, l) {
          const u = {
            seq: 0,
            type: "response",
            command: r,
            request_seq: i,
            success: o,
            performanceData: s && COe(s),
          };
          if (o) {
            let d;
            if (Mo(t)) ((u.body = t), (d = t.metadata), delete t.metadata);
            else if (typeof t == "object")
              if (t.metadata) {
                const { metadata: _, ...h } = t;
                ((u.body = h), (d = _));
              } else u.body = t;
            else u.body = t;
            d && (u.metadata = d);
          } else C.assert(t === void 0);
          (l && (u.message = l), this.send(u));
        }
        semanticCheck(t, r) {
          var i, o;
          const s = Ls();
          (i = xr) == null ||
            i.push(xr.Phase.Session, "semanticCheck", {
              file: t,
              configFilePath: r.canonicalConfigFilePath,
            });
          const l = yOe(r, t)
            ? Kc
            : r
                .getLanguageService()
                .getSemanticDiagnostics(t)
                .filter((u) => !!u.file);
          (this.sendDiagnosticsEvent(t, r, l, "semanticDiag", s),
            (o = xr) == null || o.pop());
        }
        syntacticCheck(t, r) {
          var i, o;
          const s = Ls();
          ((i = xr) == null ||
            i.push(xr.Phase.Session, "syntacticCheck", {
              file: t,
              configFilePath: r.canonicalConfigFilePath,
            }),
            this.sendDiagnosticsEvent(
              t,
              r,
              r.getLanguageService().getSyntacticDiagnostics(t),
              "syntaxDiag",
              s,
            ),
            (o = xr) == null || o.pop());
        }
        suggestionCheck(t, r) {
          var i, o;
          const s = Ls();
          ((i = xr) == null ||
            i.push(xr.Phase.Session, "suggestionCheck", {
              file: t,
              configFilePath: r.canonicalConfigFilePath,
            }),
            this.sendDiagnosticsEvent(
              t,
              r,
              r.getLanguageService().getSuggestionDiagnostics(t),
              "suggestionDiag",
              s,
            ),
            (o = xr) == null || o.pop());
        }
        regionSemanticCheck(t, r, i) {
          var o, s, l;
          const u = Ls();
          (o = xr) == null ||
            o.push(xr.Phase.Session, "regionSemanticCheck", {
              file: t,
              configFilePath: r.canonicalConfigFilePath,
            });
          let d;
          if (
            !this.shouldDoRegionCheck(t) ||
            !(d = r.getLanguageService().getRegionSemanticDiagnostics(t, i))
          ) {
            (s = xr) == null || s.pop();
            return;
          }
          (this.sendDiagnosticsEvent(
            t,
            r,
            d.diagnostics,
            "regionSemanticDiag",
            u,
            d.spans,
          ),
            (l = xr) == null || l.pop());
        }
        shouldDoRegionCheck(t) {
          var r;
          const i =
            (r = this.projectService.getScriptInfoForNormalizedPath(t)) == null
              ? void 0
              : r.textStorage.getLineInfo().getLineCount();
          return !!(i && i >= this.regionDiagLineCountThreshold);
        }
        sendDiagnosticsEvent(t, r, i, o, s, l) {
          try {
            const u = C.checkDefined(r.getScriptInfo(t)),
              d = Ls() - s,
              _ = {
                file: t,
                diagnostics: i.map((h) => vOe(t, r, h)),
                spans: l?.map((h) => u_(h, u)),
              };
            (this.event(_, o), this.addDiagnosticsPerformanceData(t, o, d));
          } catch (u) {
            this.logError(u, o);
          }
        }
        updateErrorCheck(t, r, i, o = !0) {
          if (r.length === 0) return;
          C.assert(!this.suppressDiagnosticEvents);
          const s = this.changeSeq,
            l = Math.min(i, 200);
          let u = 0;
          const d = () => {
              if ((u++, r.length > u)) return t.delay("checkOne", l, h);
            },
            _ = (g, E) => {
              if ((this.semanticCheck(g, E), this.changeSeq === s)) {
                if (this.getPreferences(g).disableSuggestions) return d();
                t.immediate("suggestionCheck", () => {
                  (this.suggestionCheck(g, E), d());
                });
              }
            },
            h = () => {
              if (this.changeSeq !== s) return;
              let g,
                E = r[u];
              if (
                (Bo(E)
                  ? (E = this.toPendingErrorCheck(E))
                  : "ranges" in E &&
                    ((g = E.ranges), (E = this.toPendingErrorCheck(E.file))),
                !E)
              )
                return d();
              const { fileName: A, project: R } = E;
              if (
                (Am(R),
                !!R.containsFile(A, o) &&
                  (this.syntacticCheck(A, R), this.changeSeq === s))
              ) {
                if (R.projectService.serverMode !== 0) return d();
                if (g)
                  return t.immediate("regionSemanticCheck", () => {
                    const N =
                      this.projectService.getScriptInfoForNormalizedPath(A);
                    (N &&
                      this.regionSemanticCheck(
                        A,
                        R,
                        g.map((P) => this.getRange({ file: A, ...P }, N)),
                      ),
                      this.changeSeq === s &&
                        t.immediate("semanticCheck", () => _(A, R)));
                  });
                t.immediate("semanticCheck", () => _(A, R));
              }
            };
          r.length > u && this.changeSeq === s && t.delay("checkOne", i, h);
        }
        cleanProjects(t, r) {
          if (r) {
            this.logger.info(`cleaning ${t}`);
            for (const i of r)
              (i.getLanguageService(!1).cleanupSemanticCache(),
                i.cleanupProgram());
          }
        }
        cleanup() {
          (this.cleanProjects(
            "inferred projects",
            this.projectService.inferredProjects,
          ),
            this.cleanProjects(
              "configured projects",
              Co(this.projectService.configuredProjects.values()),
            ),
            this.cleanProjects(
              "external projects",
              this.projectService.externalProjects,
            ),
            this.host.gc && (this.logger.info("host.gc()"), this.host.gc()));
        }
        getEncodedSyntacticClassifications(t) {
          const { file: r, languageService: i } =
            this.getFileAndLanguageServiceForSyntacticOperation(t);
          return i.getEncodedSyntacticClassifications(r, t);
        }
        getEncodedSemanticClassifications(t) {
          const { file: r, project: i } = this.getFileAndProject(t),
            o = t.format === "2020" ? "2020" : "original";
          return i
            .getLanguageService()
            .getEncodedSemanticClassifications(r, t, o);
        }
        getProject(t) {
          return t === void 0 ? void 0 : this.projectService.findProject(t);
        }
        getConfigFileAndProject(t) {
          const r = this.getProject(t.projectFileName),
            i = Cs(t.file);
          return {
            configFile: r && r.hasConfigFile(i) ? i : void 0,
            project: r,
          };
        }
        getConfigFileDiagnostics(t, r, i) {
          const o = r.getAllProjectErrors(),
            s = r.getLanguageService().getCompilerOptionsDiagnostics(),
            l = Un(so(o, s), (u) => !!u.file && u.file.fileName === t);
          return i
            ? this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l)
            : Vt(l, (u) => yW(u, !1));
        }
        convertToDiagnosticsWithLinePositionFromDiagnosticFile(t) {
          return t.map((r) => ({
            message: a_(r.messageText, this.host.newLine),
            start: r.start,
            length: r.length,
            category: jE(r),
            code: r.code,
            source: r.source,
            startLocation: r.file && yC(ca(r.file, r.start)),
            endLocation: r.file && yC(ca(r.file, r.start + r.length)),
            reportsUnnecessary: r.reportsUnnecessary,
            reportsDeprecated: r.reportsDeprecated,
            relatedInformation: Vt(r.relatedInformation, GX),
          }));
        }
        getCompilerOptionsDiagnostics(t) {
          const r = this.getProject(t.projectFileName);
          return this.convertToDiagnosticsWithLinePosition(
            Un(
              r.getLanguageService().getCompilerOptionsDiagnostics(),
              (i) => !i.file,
            ),
            void 0,
          );
        }
        convertToDiagnosticsWithLinePosition(t, r) {
          return t.map((i) => ({
            message: a_(i.messageText, this.host.newLine),
            start: i.start,
            length: i.length,
            category: jE(i),
            code: i.code,
            source: i.source,
            startLocation: r && r.positionToLineOffset(i.start),
            endLocation: r && r.positionToLineOffset(i.start + i.length),
            reportsUnnecessary: i.reportsUnnecessary,
            reportsDeprecated: i.reportsDeprecated,
            relatedInformation: Vt(i.relatedInformation, GX),
          }));
        }
        getDiagnosticsWorker(t, r, i, o) {
          const { project: s, file: l } = this.getFileAndProject(t);
          if (r && yOe(s, l)) return Kc;
          const u = s.getScriptInfoForNormalizedPath(l),
            d = i(s, l);
          return o
            ? this.convertToDiagnosticsWithLinePosition(d, u)
            : d.map((_) => vOe(l, s, _));
        }
        getDefinition(t, r) {
          const { file: i, project: o } = this.getFileAndProject(t),
            s = this.getPositionInFile(t, i),
            l = this.mapDefinitionInfoLocations(
              o.getLanguageService().getDefinitionAtPosition(i, s) || Kc,
              o,
            );
          return r
            ? this.mapDefinitionInfo(l, o)
            : l.map(Z$.mapToOriginalLocation);
        }
        mapDefinitionInfoLocations(t, r) {
          return t.map((i) => {
            const o = xOe(i, r);
            return o
              ? {
                  ...o,
                  containerKind: i.containerKind,
                  containerName: i.containerName,
                  kind: i.kind,
                  name: i.name,
                  failedAliasResolution: i.failedAliasResolution,
                  ...(i.unverified && { unverified: i.unverified }),
                }
              : i;
          });
        }
        getDefinitionAndBoundSpan(t, r) {
          const { file: i, project: o } = this.getFileAndProject(t),
            s = this.getPositionInFile(t, i),
            l = C.checkDefined(o.getScriptInfo(i)),
            u = o.getLanguageService().getDefinitionAndBoundSpan(i, s);
          if (!u || !u.definitions)
            return { definitions: Kc, textSpan: void 0 };
          const d = this.mapDefinitionInfoLocations(u.definitions, o),
            { textSpan: _ } = u;
          return r
            ? { definitions: this.mapDefinitionInfo(d, o), textSpan: u_(_, l) }
            : { definitions: d.map(Z$.mapToOriginalLocation), textSpan: _ };
        }
        findSourceDefinition(t) {
          var r;
          const { file: i, project: o } = this.getFileAndProject(t),
            s = this.getPositionInFile(t, i),
            l = o.getLanguageService().getDefinitionAtPosition(i, s);
          let u = this.mapDefinitionInfoLocations(l || Kc, o).slice();
          if (
            this.projectService.serverMode === 0 &&
            (!yt(u, (A) => Cs(A.fileName) !== i && !A.isAmbient) ||
              yt(u, (A) => !!A.failedAliasResolution))
          ) {
            const A = HB(
              (k) => k.textSpan.start,
              tJ(this.host.useCaseSensitiveFileNames),
            );
            u?.forEach((k) => A.add(k));
            const R = o.getNoDtsResolutionProject(i),
              N = R.getLanguageService(),
              P =
                (r = N.getDefinitionAtPosition(i, s, !0, !1)) == null
                  ? void 0
                  : r.filter((k) => Cs(k.fileName) !== i);
            if (yt(P))
              for (const k of P) {
                if (k.unverified) {
                  const W = g(
                    k,
                    o.getLanguageService().getProgram(),
                    N.getProgram(),
                  );
                  if (yt(W)) {
                    for (const O of W) A.add(O);
                    continue;
                  }
                }
                A.add(k);
              }
            else {
              const k = u.filter((W) => Cs(W.fileName) !== i && W.isAmbient);
              for (const W of yt(k) ? k : h()) {
                const O = _(W.fileName, i, R);
                if (!O) continue;
                const G =
                  this.projectService.getOrCreateScriptInfoNotOpenedByClient(
                    O,
                    R.currentDirectory,
                    R.directoryStructureHost,
                    !1,
                  );
                if (!G) continue;
                R.containsScriptInfo(G) || (R.addRoot(G), R.updateGraph());
                const j = N.getProgram(),
                  J = C.checkDefined(j.getSourceFile(O));
                for (const Z of E(W.name, J, j)) A.add(Z);
              }
            }
            u = Co(A.values());
          }
          return (
            (u = u.filter((A) => !A.isAmbient && !A.failedAliasResolution)),
            this.mapDefinitionInfo(u, o)
          );
          function _(A, R, N) {
            var P, k, W;
            const O = Z6(A);
            if (O && A.lastIndexOf(Rg) === O.topLevelNodeModulesIndex) {
              const G = A.substring(0, O.packageRootIndex),
                j =
                  (P = o.getModuleResolutionCache()) == null
                    ? void 0
                    : P.getPackageJsonInfoCache(),
                J = o.getCompilationSettings(),
                Z = oP(To(G, o.getCurrentDirectory()), iP(j, o, J));
              if (!Z) return;
              const q = EU(
                  Z,
                  { moduleResolution: 2 },
                  o,
                  o.getModuleResolutionCache(),
                ),
                ye = A.substring(
                  O.topLevelPackageNameIndex + 1,
                  O.packageRootIndex,
                ),
                ie = aP(Vw(ye)),
                K = o.toPath(A);
              if (q && yt(q, (pe) => o.toPath(pe) === K))
                return (k =
                  N.resolutionCache.resolveSingleModuleNameWithoutWatching(
                    ie,
                    R,
                  ).resolvedModule) == null
                  ? void 0
                  : k.resolvedFileName;
              {
                const pe = A.substring(O.packageRootIndex + 1),
                  de = `${ie}/${Tu(pe)}`;
                return (W =
                  N.resolutionCache.resolveSingleModuleNameWithoutWatching(
                    de,
                    R,
                  ).resolvedModule) == null
                  ? void 0
                  : W.resolvedFileName;
              }
            }
          }
          function h() {
            const A = o.getLanguageService(),
              R = A.getProgram(),
              N = ip(R.getSourceFile(i), s);
            return (
              ((ds(N) || He(N)) &&
                Ks(N.parent) &&
                tre(N, (P) => {
                  var k;
                  if (P === N) return;
                  const W =
                    (k = A.getDefinitionAtPosition(i, P.getStart(), !0, !1)) ==
                    null
                      ? void 0
                      : k
                          .filter((O) => Cs(O.fileName) !== i && O.isAmbient)
                          .map((O) => ({ fileName: O.fileName, name: zf(N) }));
                  if (yt(W)) return W;
                })) ||
              Kc
            );
          }
          function g(A, R, N) {
            var P;
            const k = N.getSourceFile(A.fileName);
            if (!k) return;
            const W = ip(R.getSourceFile(i), s),
              O = R.getTypeChecker().getSymbolAtLocation(W),
              G = O && al(O, 277);
            if (!G) return;
            const j =
              ((P = G.propertyName) == null ? void 0 : P.text) || G.name.text;
            return E(j, k, N);
          }
          function E(A, R, N) {
            const P = Ys.Core.getTopMostDeclarationNamesInFile(A, R);
            return Ui(P, (k) => {
              const W = N.getTypeChecker().getSymbolAtLocation(k),
                O = nM(k);
              if (W && O)
                return fC.createDefinitionInfo(O, N.getTypeChecker(), W, O, !0);
            });
          }
        }
        getEmitOutput(t) {
          const { file: r, project: i } = this.getFileAndProject(t);
          if (!i.shouldEmitFile(i.getScriptInfo(r)))
            return { emitSkipped: !0, outputFiles: [], diagnostics: [] };
          const o = i.getLanguageService().getEmitOutput(r);
          return t.richResponse
            ? {
                ...o,
                diagnostics: t.includeLinePosition
                  ? this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(
                      o.diagnostics,
                    )
                  : o.diagnostics.map((s) => yW(s, !0)),
              }
            : o;
        }
        mapJSDocTagInfo(t, r, i) {
          return t
            ? t.map((o) => {
                var s;
                return {
                  ...o,
                  text: i
                    ? this.mapDisplayParts(o.text, r)
                    : (s = o.text) == null
                      ? void 0
                      : s.map((l) => l.text).join(""),
                };
              })
            : [];
        }
        mapDisplayParts(t, r) {
          return t
            ? t.map((i) =>
                i.kind !== "linkName"
                  ? i
                  : {
                      ...i,
                      target: this.toFileSpan(
                        i.target.fileName,
                        i.target.textSpan,
                        r,
                      ),
                    },
              )
            : [];
        }
        mapSignatureHelpItems(t, r, i) {
          return t.map((o) => ({
            ...o,
            documentation: this.mapDisplayParts(o.documentation, r),
            parameters: o.parameters.map((s) => ({
              ...s,
              documentation: this.mapDisplayParts(s.documentation, r),
            })),
            tags: this.mapJSDocTagInfo(o.tags, r, i),
          }));
        }
        mapDefinitionInfo(t, r) {
          return t.map((i) => ({
            ...this.toFileSpanWithContext(
              i.fileName,
              i.textSpan,
              i.contextSpan,
              r,
            ),
            ...(i.unverified && { unverified: i.unverified }),
          }));
        }
        static mapToOriginalLocation(t) {
          return t.originalFileName
            ? (C.assert(
                t.originalTextSpan !== void 0,
                "originalTextSpan should be present if originalFileName is",
              ),
              {
                ...t,
                fileName: t.originalFileName,
                textSpan: t.originalTextSpan,
                targetFileName: t.fileName,
                targetTextSpan: t.textSpan,
                contextSpan: t.originalContextSpan,
                targetContextSpan: t.contextSpan,
              })
            : t;
        }
        toFileSpan(t, r, i) {
          const o = i.getLanguageService(),
            s = o.toLineColumnOffset(t, r.start),
            l = o.toLineColumnOffset(t, Dl(r));
          return {
            file: t,
            start: { line: s.line + 1, offset: s.character + 1 },
            end: { line: l.line + 1, offset: l.character + 1 },
          };
        }
        toFileSpanWithContext(t, r, i, o) {
          const s = this.toFileSpan(t, r, o),
            l = i && this.toFileSpan(t, i, o);
          return l ? { ...s, contextStart: l.start, contextEnd: l.end } : s;
        }
        getTypeDefinition(t) {
          const { file: r, project: i } = this.getFileAndProject(t),
            o = this.getPositionInFile(t, r),
            s = this.mapDefinitionInfoLocations(
              i.getLanguageService().getTypeDefinitionAtPosition(r, o) || Kc,
              i,
            );
          return this.mapDefinitionInfo(s, i);
        }
        mapImplementationLocations(t, r) {
          return t.map((i) => {
            const o = xOe(i, r);
            return o ? { ...o, kind: i.kind, displayParts: i.displayParts } : i;
          });
        }
        getImplementation(t, r) {
          const { file: i, project: o } = this.getFileAndProject(t),
            s = this.getPositionInFile(t, i),
            l = this.mapImplementationLocations(
              o.getLanguageService().getImplementationAtPosition(i, s) || Kc,
              o,
            );
          return r
            ? l.map(({ fileName: u, textSpan: d, contextSpan: _ }) =>
                this.toFileSpanWithContext(u, d, _, o),
              )
            : l.map(Z$.mapToOriginalLocation);
        }
        getSyntacticDiagnosticsSync(t) {
          const { configFile: r } = this.getConfigFileAndProject(t);
          return r
            ? Kc
            : this.getDiagnosticsWorker(
                t,
                !1,
                (i, o) => i.getLanguageService().getSyntacticDiagnostics(o),
                !!t.includeLinePosition,
              );
        }
        getSemanticDiagnosticsSync(t) {
          const { configFile: r, project: i } = this.getConfigFileAndProject(t);
          return r
            ? this.getConfigFileDiagnostics(r, i, !!t.includeLinePosition)
            : this.getDiagnosticsWorker(
                t,
                !0,
                (o, s) =>
                  o
                    .getLanguageService()
                    .getSemanticDiagnostics(s)
                    .filter((l) => !!l.file),
                !!t.includeLinePosition,
              );
        }
        getSuggestionDiagnosticsSync(t) {
          const { configFile: r } = this.getConfigFileAndProject(t);
          return r
            ? Kc
            : this.getDiagnosticsWorker(
                t,
                !0,
                (i, o) => i.getLanguageService().getSuggestionDiagnostics(o),
                !!t.includeLinePosition,
              );
        }
        getJsxClosingTag(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = this.getPositionInFile(t, r),
            s = i.getJsxClosingTagAtPosition(r, o);
          return s === void 0 ? void 0 : { newText: s.newText, caretOffset: 0 };
        }
        getLinkedEditingRange(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = this.getPositionInFile(t, r),
            s = i.getLinkedEditingRangeAtPosition(r, o),
            l = this.projectService.getScriptInfoForNormalizedPath(r);
          if (!(l === void 0 || s === void 0)) return jst(s, l);
        }
        getDocumentHighlights(t, r) {
          const { file: i, project: o } = this.getFileAndProject(t),
            s = this.getPositionInFile(t, i),
            l = o
              .getLanguageService()
              .getDocumentHighlights(i, s, t.filesToSearch);
          return l
            ? r
              ? l.map(({ fileName: u, highlightSpans: d }) => {
                  const _ = o.getScriptInfo(u);
                  return {
                    file: u,
                    highlightSpans: d.map(
                      ({ textSpan: h, kind: g, contextSpan: E }) => ({
                        ...ehe(h, E, _),
                        kind: g,
                      }),
                    ),
                  };
                })
              : l
            : Kc;
        }
        provideInlayHints(t) {
          const { file: r, project: i } = this.getFileAndProject(t),
            o = this.projectService.getScriptInfoForNormalizedPath(r);
          return i
            .getLanguageService()
            .provideInlayHints(r, t, this.getPreferences(r))
            .map((l) => {
              const { position: u, displayParts: d } = l;
              return {
                ...l,
                position: o.positionToLineOffset(u),
                displayParts: d?.map(({ text: _, span: h, file: g }) => {
                  if (h) {
                    C.assertIsDefined(
                      g,
                      "Target file should be defined together with its span.",
                    );
                    const E = this.projectService.getScriptInfo(g);
                    return {
                      text: _,
                      span: {
                        start: E.positionToLineOffset(h.start),
                        end: E.positionToLineOffset(h.start + h.length),
                        file: g,
                      },
                    };
                  } else return { text: _ };
                }),
              };
            });
        }
        mapCode(t) {
          var r;
          const i = this.getHostFormatOptions(),
            o = this.getHostPreferences(),
            { file: s, languageService: l } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            u = this.projectService.getScriptInfoForNormalizedPath(s),
            d =
              (r = t.mapping.focusLocations) == null
                ? void 0
                : r.map((h) =>
                    h.map((g) => {
                      const E = u.lineOffsetToPosition(
                          g.start.line,
                          g.start.offset,
                        ),
                        A = u.lineOffsetToPosition(g.end.line, g.end.offset);
                      return { start: E, length: A - E };
                    }),
                  ),
            _ = l.mapCode(s, t.mapping.contents, d, i, o);
          return this.mapTextChangesToCodeEdits(_);
        }
        getCopilotRelatedInfo() {
          return { relatedFiles: [] };
        }
        setCompilerOptionsForInferredProjects(t) {
          this.projectService.setCompilerOptionsForInferredProjects(
            t.options,
            t.projectRootPath,
          );
        }
        getProjectInfo(t) {
          return this.getProjectInfoWorker(
            t.file,
            t.projectFileName,
            t.needFileNameList,
            t.needDefaultConfiguredProjectInfo,
            !1,
          );
        }
        getProjectInfoWorker(t, r, i, o, s) {
          const { project: l } = this.getFileAndProjectWorker(t, r);
          return (
            Am(l),
            {
              configFileName: l.getProjectName(),
              languageServiceDisabled: !l.languageServiceEnabled,
              fileNames: i ? l.getFileNames(!1, s) : void 0,
              configuredProjectInfo: o
                ? this.getDefaultConfiguredProjectInfo(t)
                : void 0,
            }
          );
        }
        getDefaultConfiguredProjectInfo(t) {
          var r;
          const i = this.projectService.getScriptInfo(t);
          if (!i) return;
          const o = this.projectService.findDefaultConfiguredProjectWorker(
            i,
            3,
          );
          if (!o) return;
          let s, l;
          return (
            o.seenProjects.forEach((u, d) => {
              d !== o.defaultProject &&
                (u !== 3
                  ? (s ?? (s = [])).push(Cs(d.getConfigFilePath()))
                  : (l ?? (l = [])).push(Cs(d.getConfigFilePath())));
            }),
            (r = o.seenConfigs) == null ||
              r.forEach((u) => (s ?? (s = [])).push(u)),
            {
              notMatchedByConfig: s,
              notInProject: l,
              defaultProject:
                o.defaultProject && Cs(o.defaultProject.getConfigFilePath()),
            }
          );
        }
        getRenameInfo(t) {
          const { file: r, project: i } = this.getFileAndProject(t),
            o = this.getPositionInFile(t, r),
            s = this.getPreferences(r);
          return i.getLanguageService().getRenameInfo(r, o, s);
        }
        getProjects(t, r, i) {
          let o, s;
          if (t.projectFileName) {
            const l = this.getProject(t.projectFileName);
            l && (o = [l]);
          } else {
            const l = r
              ? this.projectService.getScriptInfoEnsuringProjectsUptoDate(
                  t.file,
                )
              : this.projectService.getScriptInfo(t.file);
            if (l) r || this.projectService.ensureDefaultProjectForFile(l);
            else
              return i
                ? Kc
                : (this.projectService.logErrorForScriptInfoNotFound(t.file),
                  by.ThrowNoProject());
            ((o = l.containingProjects),
              (s = this.projectService.getSymlinkedProjects(l)));
          }
          return (
            (o = Un(o, (l) => l.languageServiceEnabled && !l.isOrphan())),
            !i && (!o || !o.length) && !s
              ? (this.projectService.logErrorForScriptInfoNotFound(
                  t.file ?? t.projectFileName,
                ),
                by.ThrowNoProject())
              : s
                ? { projects: o, symLinkedProjects: s }
                : o
          );
        }
        getDefaultProject(t) {
          if (t.projectFileName) {
            const i = this.getProject(t.projectFileName);
            if (i) return i;
            if (!t.file) return by.ThrowNoProject();
          }
          return this.projectService.getScriptInfo(t.file).getDefaultProject();
        }
        getRenameLocations(t, r) {
          const i = Cs(t.file),
            o = this.getPositionInFile(t, i),
            s = this.getProjects(t),
            l = this.getDefaultProject(t),
            u = this.getPreferences(i),
            d = this.mapRenameInfo(
              l.getLanguageService().getRenameInfo(i, o, u),
              C.checkDefined(this.projectService.getScriptInfo(i)),
            );
          if (!d.canRename) return r ? { info: d, locs: [] } : [];
          const _ = Wst(
            s,
            l,
            { fileName: t.file, pos: o },
            !!t.findInStrings,
            !!t.findInComments,
            u,
            this.host.useCaseSensitiveFileNames,
          );
          return r ? { info: d, locs: this.toSpanGroups(_) } : _;
        }
        mapRenameInfo(t, r) {
          if (t.canRename) {
            const {
              canRename: i,
              fileToRename: o,
              displayName: s,
              fullDisplayName: l,
              kind: u,
              kindModifiers: d,
              triggerSpan: _,
            } = t;
            return {
              canRename: i,
              fileToRename: o,
              displayName: s,
              fullDisplayName: l,
              kind: u,
              kindModifiers: d,
              triggerSpan: u_(_, r),
            };
          } else return t;
        }
        toSpanGroups(t) {
          const r = new Map();
          for (const {
            fileName: i,
            textSpan: o,
            contextSpan: s,
            originalContextSpan: l,
            originalTextSpan: u,
            originalFileName: d,
            ..._
          } of t) {
            let h = r.get(i);
            h || r.set(i, (h = { file: i, locs: [] }));
            const g = C.checkDefined(this.projectService.getScriptInfo(i));
            h.locs.push({ ...ehe(o, s, g), ..._ });
          }
          return Co(r.values());
        }
        getReferences(t, r) {
          const i = Cs(t.file),
            o = this.getProjects(t),
            s = this.getPositionInFile(t, i),
            l = Fst(
              o,
              this.getDefaultProject(t),
              { fileName: t.file, pos: s },
              this.host.useCaseSensitiveFileNames,
              this.logger,
            );
          if (!r) return l;
          const u = this.getPreferences(i),
            d = this.getDefaultProject(t),
            _ = d.getScriptInfoForNormalizedPath(i),
            h = d.getLanguageService().getQuickInfoAtPosition(i, s),
            g = h ? VO(h.displayParts) : "",
            E = h && h.textSpan,
            A = E ? _.positionToLineOffset(E.start).offset : 0,
            R = E ? _.getSnapshot().getText(E.start, Dl(E)) : "";
          return {
            refs: Ki(l, (P) =>
              P.references.map((k) => MOe(this.projectService, k, u)),
            ),
            symbolName: R,
            symbolStartOffset: A,
            symbolDisplayString: g,
          };
        }
        getFileReferences(t, r) {
          const i = this.getProjects(t),
            o = Cs(t.file),
            s = this.getPreferences(o),
            l = { fileName: o, pos: 0 },
            u = Zme(
              i,
              this.getDefaultProject(t),
              l,
              l,
              EOe,
              (h) => (
                this.logger.info(
                  `Finding references to file ${o} in project ${h.getProjectName()}`,
                ),
                h.getLanguageService().getFileReferences(o)
              ),
            );
          let d;
          if (Mo(u)) d = u;
          else {
            d = [];
            const h = VX(this.host.useCaseSensitiveFileNames);
            u.forEach((g) => {
              for (const E of g) h.has(E) || (d.push(E), h.add(E));
            });
          }
          return r
            ? {
                refs: d.map((h) => MOe(this.projectService, h, s)),
                symbolName: `"${t.file}"`,
              }
            : d;
        }
        openClientFile(t, r, i, o) {
          this.projectService.openClientFileWithNormalizedPath(t, r, i, !1, o);
        }
        getPosition(t, r) {
          return t.position !== void 0
            ? t.position
            : r.lineOffsetToPosition(t.line, t.offset);
        }
        getPositionInFile(t, r) {
          const i = this.projectService.getScriptInfoForNormalizedPath(r);
          return this.getPosition(t, i);
        }
        getFileAndProject(t) {
          return this.getFileAndProjectWorker(t.file, t.projectFileName);
        }
        getFileAndLanguageServiceForSyntacticOperation(t) {
          const { file: r, project: i } = this.getFileAndProject(t);
          return { file: r, languageService: i.getLanguageService(!1) };
        }
        getFileAndProjectWorker(t, r) {
          const i = Cs(t),
            o =
              this.getProject(r) ||
              this.projectService.ensureDefaultProjectForFile(i);
          return { file: i, project: o };
        }
        getOutliningSpans(t, r) {
          const { file: i, languageService: o } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            s = o.getOutliningSpans(i);
          if (r) {
            const l = this.projectService.getScriptInfoForNormalizedPath(i);
            return s.map((u) => ({
              textSpan: u_(u.textSpan, l),
              hintSpan: u_(u.hintSpan, l),
              bannerText: u.bannerText,
              autoCollapse: u.autoCollapse,
              kind: u.kind,
            }));
          } else return s;
        }
        getTodoComments(t) {
          const { file: r, project: i } = this.getFileAndProject(t);
          return i.getLanguageService().getTodoComments(r, t.descriptors);
        }
        getDocCommentTemplate(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = this.getPositionInFile(t, r);
          return i.getDocCommentTemplateAtPosition(
            r,
            o,
            this.getPreferences(r),
            this.getFormatOptions(r),
          );
        }
        getSpanOfEnclosingComment(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = t.onlyMultiLine,
            s = this.getPositionInFile(t, r);
          return i.getSpanOfEnclosingComment(r, s, o);
        }
        getIndentation(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = this.getPositionInFile(t, r),
            s = t.options ? gC(t.options) : this.getFormatOptions(r),
            l = i.getIndentationAtPosition(r, o, s);
          return { position: o, indentation: l };
        }
        getBreakpointStatement(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = this.getPositionInFile(t, r);
          return i.getBreakpointStatementAtPosition(r, o);
        }
        getNameOrDottedNameSpan(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = this.getPositionInFile(t, r);
          return i.getNameOrDottedNameSpan(r, o, o);
        }
        isValidBraceCompletion(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = this.getPositionInFile(t, r);
          return i.isValidBraceCompletionAtPosition(
            r,
            o,
            t.openingBrace.charCodeAt(0),
          );
        }
        getQuickInfoWorker(t, r) {
          const { file: i, project: o } = this.getFileAndProject(t),
            s = this.projectService.getScriptInfoForNormalizedPath(i),
            l = this.getPreferences(i),
            u = o
              .getLanguageService()
              .getQuickInfoAtPosition(
                i,
                this.getPosition(t, s),
                l.maximumHoverLength,
                t.verbosityLevel,
              );
          if (!u) return;
          const d = !!l.displayPartsForJSDoc;
          if (r) {
            const _ = VO(u.displayParts);
            return {
              kind: u.kind,
              kindModifiers: u.kindModifiers,
              start: s.positionToLineOffset(u.textSpan.start),
              end: s.positionToLineOffset(Dl(u.textSpan)),
              displayString: _,
              documentation: d
                ? this.mapDisplayParts(u.documentation, o)
                : VO(u.documentation),
              tags: this.mapJSDocTagInfo(u.tags, o, d),
              canIncreaseVerbosityLevel: u.canIncreaseVerbosityLevel,
            };
          } else
            return d ? u : { ...u, tags: this.mapJSDocTagInfo(u.tags, o, !1) };
        }
        getFormattingEditsForRange(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = this.projectService.getScriptInfoForNormalizedPath(r),
            s = o.lineOffsetToPosition(t.line, t.offset),
            l = o.lineOffsetToPosition(t.endLine, t.endOffset),
            u = i.getFormattingEditsForRange(r, s, l, this.getFormatOptions(r));
          if (u) return u.map((d) => this.convertTextChangeToCodeEdit(d, o));
        }
        getFormattingEditsForRangeFull(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = t.options ? gC(t.options) : this.getFormatOptions(r);
          return i.getFormattingEditsForRange(r, t.position, t.endPosition, o);
        }
        getFormattingEditsForDocumentFull(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = t.options ? gC(t.options) : this.getFormatOptions(r);
          return i.getFormattingEditsForDocument(r, o);
        }
        getFormattingEditsAfterKeystrokeFull(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = t.options ? gC(t.options) : this.getFormatOptions(r);
          return i.getFormattingEditsAfterKeystroke(r, t.position, t.key, o);
        }
        getFormattingEditsAfterKeystroke(t) {
          const { file: r, languageService: i } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            o = this.projectService.getScriptInfoForNormalizedPath(r),
            s = o.lineOffsetToPosition(t.line, t.offset),
            l = this.getFormatOptions(r),
            u = i.getFormattingEditsAfterKeystroke(r, s, t.key, l);
          if (
            t.key ===
              `
` &&
            (!u || u.length === 0 || kst(u, s))
          ) {
            const { lineText: d, absolutePosition: _ } =
              o.textStorage.getAbsolutePositionAndLineText(t.line);
            if (d && d.search("\\S") < 0) {
              const h = i.getIndentationAtPosition(r, s, l);
              let g = 0,
                E,
                A;
              for (E = 0, A = d.length; E < A; E++)
                if (d.charAt(E) === " ") g++;
                else if (d.charAt(E) === "	") g += l.tabSize;
                else break;
              if (h !== g) {
                const R = _ + E;
                u.push({
                  span: ic(_, R),
                  newText: Nc.getIndentationString(h, l),
                });
              }
            }
          }
          if (u)
            return u.map((d) => ({
              start: o.positionToLineOffset(d.span.start),
              end: o.positionToLineOffset(Dl(d.span)),
              newText: d.newText ? d.newText : "",
            }));
        }
        getCompletions(t, r) {
          const { file: i, project: o } = this.getFileAndProject(t),
            s = this.projectService.getScriptInfoForNormalizedPath(i),
            l = this.getPosition(t, s),
            u = o.getLanguageService().getCompletionsAtPosition(
              i,
              l,
              {
                ...wme(this.getPreferences(i)),
                triggerCharacter: t.triggerCharacter,
                triggerKind: t.triggerKind,
                includeExternalModuleExports: t.includeExternalModuleExports,
                includeInsertTextCompletions: t.includeInsertTextCompletions,
              },
              o.projectService.getFormatCodeOptions(i),
            );
          if (u === void 0) return;
          if (r === "completions-full") return u;
          const d = t.prefix || "",
            _ = Ui(u.entries, (g) => {
              if (
                u.isMemberCompletion ||
                po(g.name.toLowerCase(), d.toLowerCase())
              ) {
                const E = g.replacementSpan ? u_(g.replacementSpan, s) : void 0;
                return {
                  ...g,
                  replacementSpan: E,
                  hasAction: g.hasAction || void 0,
                  symbol: void 0,
                };
              }
            });
          return r === "completions"
            ? (u.metadata && (_.metadata = u.metadata), _)
            : {
                ...u,
                optionalReplacementSpan:
                  u.optionalReplacementSpan && u_(u.optionalReplacementSpan, s),
                entries: _,
              };
        }
        getCompletionEntryDetails(t, r) {
          const { file: i, project: o } = this.getFileAndProject(t),
            s = this.projectService.getScriptInfoForNormalizedPath(i),
            l = this.getPosition(t, s),
            u = o.projectService.getFormatCodeOptions(i),
            d = !!this.getPreferences(i).displayPartsForJSDoc,
            _ = Ui(t.entryNames, (h) => {
              const {
                name: g,
                source: E,
                data: A,
              } = typeof h == "string"
                ? { name: h, source: void 0, data: void 0 }
                : h;
              return o
                .getLanguageService()
                .getCompletionEntryDetails(
                  i,
                  l,
                  g,
                  u,
                  E,
                  this.getPreferences(i),
                  A ? ma(A, Kst) : void 0,
                );
            });
          return r
            ? d
              ? _
              : _.map((h) => ({
                  ...h,
                  tags: this.mapJSDocTagInfo(h.tags, o, !1),
                }))
            : _.map((h) => ({
                ...h,
                codeActions: Vt(h.codeActions, (g) => this.mapCodeAction(g)),
                documentation: this.mapDisplayParts(h.documentation, o),
                tags: this.mapJSDocTagInfo(h.tags, o, d),
              }));
        }
        getCompileOnSaveAffectedFileList(t) {
          const r = this.getProjects(t, !0, !0),
            i = this.projectService.getScriptInfo(t.file);
          return i
            ? Ost(
                i,
                (o) => this.projectService.getScriptInfoForPath(o),
                r,
                (o, s) => {
                  if (
                    !o.compileOnSaveEnabled ||
                    !o.languageServiceEnabled ||
                    o.isOrphan()
                  )
                    return;
                  const l = o.getCompilationSettings();
                  if (!(l.noEmit || (ad(s.fileName) && !Lst(l))))
                    return {
                      projectFileName: o.getProjectName(),
                      fileNames: o.getCompileOnSaveAffectedFileList(s),
                      projectUsesOutFile: !!l.outFile,
                    };
                },
              )
            : Kc;
        }
        emitFile(t) {
          const { file: r, project: i } = this.getFileAndProject(t);
          if ((i || by.ThrowNoProject(), !i.languageServiceEnabled))
            return t.richResponse ? { emitSkipped: !0, diagnostics: [] } : !1;
          const o = i.getScriptInfo(r),
            { emitSkipped: s, diagnostics: l } = i.emitFile(o, (u, d, _) =>
              this.host.writeFile(u, d, _),
            );
          return t.richResponse
            ? {
                emitSkipped: s,
                diagnostics: t.includeLinePosition
                  ? this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(
                      l,
                    )
                  : l.map((u) => yW(u, !0)),
              }
            : !s;
        }
        getSignatureHelpItems(t, r) {
          const { file: i, project: o } = this.getFileAndProject(t),
            s = this.projectService.getScriptInfoForNormalizedPath(i),
            l = this.getPosition(t, s),
            u = o.getLanguageService().getSignatureHelpItems(i, l, t),
            d = !!this.getPreferences(i).displayPartsForJSDoc;
          if (u && r) {
            const _ = u.applicableSpan;
            return {
              ...u,
              applicableSpan: {
                start: s.positionToLineOffset(_.start),
                end: s.positionToLineOffset(_.start + _.length),
              },
              items: this.mapSignatureHelpItems(u.items, o, d),
            };
          } else
            return d || !u
              ? u
              : {
                  ...u,
                  items: u.items.map((_) => ({
                    ..._,
                    tags: this.mapJSDocTagInfo(_.tags, o, !1),
                  })),
                };
        }
        toPendingErrorCheck(t) {
          const r = Cs(t),
            i = this.projectService.tryGetDefaultProjectForFile(r);
          return i && { fileName: r, project: i };
        }
        getDiagnostics(t, r, i) {
          this.suppressDiagnosticEvents ||
            (i.length > 0 && this.updateErrorCheck(t, i, r));
        }
        change(t) {
          const r = this.projectService.getScriptInfo(t.file);
          (C.assert(!!r), r.textStorage.switchToScriptVersionCache());
          const i = r.lineOffsetToPosition(t.line, t.offset),
            o = r.lineOffsetToPosition(t.endLine, t.endOffset);
          i >= 0 &&
            (this.changeSeq++,
            this.projectService.applyChangesToFile(
              r,
              F8({
                span: { start: i, length: o - i },
                newText: t.insertString,
              }),
            ));
        }
        reload(t) {
          const r = Cs(t.file),
            i = t.tmpfile === void 0 ? void 0 : Cs(t.tmpfile),
            o = this.projectService.getScriptInfoForNormalizedPath(r);
          o && (this.changeSeq++, o.reloadFromFile(i));
        }
        saveToTmp(t, r) {
          const i = this.projectService.getScriptInfo(t);
          i && i.saveTo(r);
        }
        closeClientFile(t) {
          if (!t) return;
          const r = ya(t);
          this.projectService.closeClientFile(r);
        }
        mapLocationNavigationBarItems(t, r) {
          return Vt(t, (i) => ({
            text: i.text,
            kind: i.kind,
            kindModifiers: i.kindModifiers,
            spans: i.spans.map((o) => u_(o, r)),
            childItems: this.mapLocationNavigationBarItems(i.childItems, r),
            indent: i.indent,
          }));
        }
        getNavigationBarItems(t, r) {
          const { file: i, languageService: o } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            s = o.getNavigationBarItems(i);
          return s
            ? r
              ? this.mapLocationNavigationBarItems(
                  s,
                  this.projectService.getScriptInfoForNormalizedPath(i),
                )
              : s
            : void 0;
        }
        toLocationNavigationTree(t, r) {
          return {
            text: t.text,
            kind: t.kind,
            kindModifiers: t.kindModifiers,
            spans: t.spans.map((i) => u_(i, r)),
            nameSpan: t.nameSpan && u_(t.nameSpan, r),
            childItems: Vt(t.childItems, (i) =>
              this.toLocationNavigationTree(i, r),
            ),
          };
        }
        getNavigationTree(t, r) {
          const { file: i, languageService: o } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            s = o.getNavigationTree(i);
          return s
            ? r
              ? this.toLocationNavigationTree(
                  s,
                  this.projectService.getScriptInfoForNormalizedPath(i),
                )
              : s
            : void 0;
        }
        getNavigateToItems(t, r) {
          const i = this.getFullNavigateToItems(t);
          return r
            ? Ki(i, ({ project: o, navigateToItems: s }) =>
                s.map((l) => {
                  const u = o.getScriptInfo(l.fileName),
                    d = {
                      name: l.name,
                      kind: l.kind,
                      kindModifiers: l.kindModifiers,
                      isCaseSensitive: l.isCaseSensitive,
                      matchKind: l.matchKind,
                      file: l.fileName,
                      start: u.positionToLineOffset(l.textSpan.start),
                      end: u.positionToLineOffset(Dl(l.textSpan)),
                    };
                  return (
                    l.kindModifiers &&
                      l.kindModifiers !== "" &&
                      (d.kindModifiers = l.kindModifiers),
                    l.containerName &&
                      l.containerName.length > 0 &&
                      (d.containerName = l.containerName),
                    l.containerKind &&
                      l.containerKind.length > 0 &&
                      (d.containerKind = l.containerKind),
                    d
                  );
                }),
              )
            : Ki(i, ({ navigateToItems: o }) => o);
        }
        getFullNavigateToItems(t) {
          const {
            currentFileOnly: r,
            searchValue: i,
            maxResultCount: o,
            projectFileName: s,
          } = t;
          if (r) {
            C.assertIsDefined(t.file);
            const { file: E, project: A } = this.getFileAndProject(t);
            return [
              {
                project: A,
                navigateToItems: A.getLanguageService().getNavigateToItems(
                  i,
                  o,
                  E,
                ),
              },
            ];
          }
          const l = this.getHostPreferences(),
            u = [],
            d = new Map();
          if (!t.file && !s)
            (this.projectService.loadAncestorProjectTree(),
              this.projectService.forEachEnabledProject((E) => _(E)));
          else {
            const E = this.getProjects(t);
            SOe(E, void 0, (A) => _(A));
          }
          return u;
          function _(E) {
            const A = E.getLanguageService().getNavigateToItems(
                i,
                o,
                void 0,
                E.isNonTsProject(),
                l.excludeLibrarySymbolsInNavTo,
              ),
              R = Un(A, (N) => h(N) && !jX(eL(N), E));
            R.length && u.push({ project: E, navigateToItems: R });
          }
          function h(E) {
            const A = E.name;
            if (!d.has(A)) return (d.set(A, [E]), !0);
            const R = d.get(A);
            for (const N of R) if (g(N, E)) return !1;
            return (R.push(E), !0);
          }
          function g(E, A) {
            return E === A
              ? !0
              : !E || !A
                ? !1
                : E.containerKind === A.containerKind &&
                  E.containerName === A.containerName &&
                  E.fileName === A.fileName &&
                  E.isCaseSensitive === A.isCaseSensitive &&
                  E.kind === A.kind &&
                  E.kindModifiers === A.kindModifiers &&
                  E.matchKind === A.matchKind &&
                  E.name === A.name &&
                  E.textSpan.start === A.textSpan.start &&
                  E.textSpan.length === A.textSpan.length;
          }
        }
        getSupportedCodeFixes(t) {
          if (!t) return aK();
          if (t.file) {
            const { file: i, project: o } = this.getFileAndProject(t);
            return o.getLanguageService().getSupportedCodeFixes(i);
          }
          const r = this.getProject(t.projectFileName);
          return (
            r || by.ThrowNoProject(),
            r.getLanguageService().getSupportedCodeFixes()
          );
        }
        isLocation(t) {
          return t.line !== void 0;
        }
        extractPositionOrRange(t, r) {
          let i, o;
          return (
            this.isLocation(t) ? (i = s(t)) : (o = this.getRange(t, r)),
            C.checkDefined(i === void 0 ? o : i)
          );
          function s(l) {
            return l.position !== void 0
              ? l.position
              : r.lineOffsetToPosition(l.line, l.offset);
          }
        }
        getRange(t, r) {
          const { startPosition: i, endPosition: o } =
            this.getStartAndEndPosition(t, r);
          return { pos: i, end: o };
        }
        getApplicableRefactors(t) {
          const { file: r, project: i } = this.getFileAndProject(t),
            o = i.getScriptInfoForNormalizedPath(r);
          return i
            .getLanguageService()
            .getApplicableRefactors(
              r,
              this.extractPositionOrRange(t, o),
              this.getPreferences(r),
              t.triggerReason,
              t.kind,
              t.includeInteractiveActions,
            )
            .map((l) => ({
              ...l,
              actions: l.actions.map((u) => ({
                ...u,
                range: u.range
                  ? {
                      start: yC({
                        line: u.range.start.line,
                        character: u.range.start.offset,
                      }),
                      end: yC({
                        line: u.range.end.line,
                        character: u.range.end.offset,
                      }),
                    }
                  : void 0,
              })),
            }));
        }
        getEditsForRefactor(t, r) {
          const { file: i, project: o } = this.getFileAndProject(t),
            s = o.getScriptInfoForNormalizedPath(i),
            l = o
              .getLanguageService()
              .getEditsForRefactor(
                i,
                this.getFormatOptions(i),
                this.extractPositionOrRange(t, s),
                t.refactor,
                t.action,
                this.getPreferences(i),
                t.interactiveRefactorArguments,
              );
          if (l === void 0) return { edits: [] };
          if (r) {
            const { renameFilename: u, renameLocation: d, edits: _ } = l;
            let h;
            if (u !== void 0 && d !== void 0) {
              const g = o.getScriptInfoForNormalizedPath(Cs(u));
              h = the(fx(g.getSnapshot()), u, d, _);
            }
            return {
              renameLocation: h,
              renameFilename: u,
              edits: this.mapTextChangesToCodeEdits(_),
              notApplicableReason: l.notApplicableReason,
            };
          }
          return l;
        }
        getMoveToRefactoringFileSuggestions(t) {
          const { file: r, project: i } = this.getFileAndProject(t),
            o = i.getScriptInfoForNormalizedPath(r);
          return i
            .getLanguageService()
            .getMoveToRefactoringFileSuggestions(
              r,
              this.extractPositionOrRange(t, o),
              this.getPreferences(r),
            );
        }
        preparePasteEdits(t) {
          const { file: r, project: i } = this.getFileAndProject(t);
          return i.getLanguageService().preparePasteEditsForFile(
            r,
            t.copiedTextSpan.map((o) =>
              this.getRange(
                {
                  file: r,
                  startLine: o.start.line,
                  startOffset: o.start.offset,
                  endLine: o.end.line,
                  endOffset: o.end.offset,
                },
                this.projectService.getScriptInfoForNormalizedPath(r),
              ),
            ),
          );
        }
        getPasteEdits(t) {
          const { file: r, project: i } = this.getFileAndProject(t);
          if (QP(r)) return;
          const o = t.copiedFrom
              ? {
                  file: t.copiedFrom.file,
                  range: t.copiedFrom.spans.map((l) =>
                    this.getRange(
                      {
                        file: t.copiedFrom.file,
                        startLine: l.start.line,
                        startOffset: l.start.offset,
                        endLine: l.end.line,
                        endOffset: l.end.offset,
                      },
                      i.getScriptInfoForNormalizedPath(Cs(t.copiedFrom.file)),
                    ),
                  ),
                }
              : void 0,
            s = i.getLanguageService().getPasteEdits(
              {
                targetFile: r,
                pastedText: t.pastedText,
                pasteLocations: t.pasteLocations.map((l) =>
                  this.getRange(
                    {
                      file: r,
                      startLine: l.start.line,
                      startOffset: l.start.offset,
                      endLine: l.end.line,
                      endOffset: l.end.offset,
                    },
                    i.getScriptInfoForNormalizedPath(r),
                  ),
                ),
                copiedFrom: o,
                preferences: this.getPreferences(r),
              },
              this.getFormatOptions(r),
            );
          return s && this.mapPasteEditsAction(s);
        }
        organizeImports(t, r) {
          C.assert(t.scope.type === "file");
          const { file: i, project: o } = this.getFileAndProject(t.scope.args),
            s = o.getLanguageService().organizeImports(
              {
                fileName: i,
                mode:
                  t.mode ??
                  (t.skipDestructiveCodeActions ? "SortAndCombine" : void 0),
                type: "file",
              },
              this.getFormatOptions(i),
              this.getPreferences(i),
            );
          return r ? this.mapTextChangesToCodeEdits(s) : s;
        }
        getEditsForFileRename(t, r) {
          const i = Cs(t.oldFilePath),
            o = Cs(t.newFilePath),
            s = this.getHostFormatOptions(),
            l = this.getHostPreferences(),
            u = new Set(),
            d = [];
          return (
            this.projectService.loadAncestorProjectTree(),
            this.projectService.forEachEnabledProject((_) => {
              const h = _.getLanguageService().getEditsForFileRename(
                  i,
                  o,
                  s,
                  l,
                ),
                g = [];
              for (const E of h)
                u.has(E.fileName) || (d.push(E), g.push(E.fileName));
              for (const E of g) u.add(E);
            }),
            r ? d.map((_) => this.mapTextChangeToCodeEdit(_)) : d
          );
        }
        getCodeFixes(t, r) {
          const { file: i, project: o } = this.getFileAndProject(t),
            s = o.getScriptInfoForNormalizedPath(i),
            { startPosition: l, endPosition: u } = this.getStartAndEndPosition(
              t,
              s,
            );
          let d;
          try {
            d = o
              .getLanguageService()
              .getCodeFixesAtPosition(
                i,
                l,
                u,
                t.errorCodes,
                this.getFormatOptions(i),
                this.getPreferences(i),
              );
          } catch (_) {
            const h = _ instanceof Error ? _ : new Error(_),
              g = o.getLanguageService(),
              E = [
                ...g.getSyntacticDiagnostics(i),
                ...g.getSemanticDiagnostics(i),
                ...g.getSuggestionDiagnostics(i),
              ]
                .filter((R) => P2(l, u - l, R.start, R.length))
                .map((R) => R.code),
              A = t.errorCodes.find((R) => !E.includes(R));
            throw (
              A !== void 0 &&
                (h.message += `
Additional information: BADCLIENT: Bad error code, ${A} not found in range ${l}..${u} (found: ${E.join(", ")})`),
              h
            );
          }
          return r ? d.map((_) => this.mapCodeFixAction(_)) : d;
        }
        getCombinedCodeFix({ scope: t, fixId: r }, i) {
          C.assert(t.type === "file");
          const { file: o, project: s } = this.getFileAndProject(t.args),
            l = s
              .getLanguageService()
              .getCombinedCodeFix(
                { type: "file", fileName: o },
                r,
                this.getFormatOptions(o),
                this.getPreferences(o),
              );
          return i
            ? {
                changes: this.mapTextChangesToCodeEdits(l.changes),
                commands: l.commands,
              }
            : l;
        }
        applyCodeActionCommand(t) {
          const r = t.command;
          for (const i of QA(r)) {
            const { file: o, project: s } = this.getFileAndProject(i);
            s.getLanguageService()
              .applyCodeActionCommand(i, this.getFormatOptions(o))
              .then(
                (l) => {},
                (l) => {},
              );
          }
          return {};
        }
        getStartAndEndPosition(t, r) {
          let i, o;
          return (
            t.startPosition !== void 0
              ? (i = t.startPosition)
              : ((i = r.lineOffsetToPosition(t.startLine, t.startOffset)),
                (t.startPosition = i)),
            t.endPosition !== void 0
              ? (o = t.endPosition)
              : ((o = r.lineOffsetToPosition(t.endLine, t.endOffset)),
                (t.endPosition = o)),
            { startPosition: i, endPosition: o }
          );
        }
        mapCodeAction({ description: t, changes: r, commands: i }) {
          return {
            description: t,
            changes: this.mapTextChangesToCodeEdits(r),
            commands: i,
          };
        }
        mapCodeFixAction({
          fixName: t,
          description: r,
          changes: i,
          commands: o,
          fixId: s,
          fixAllDescription: l,
        }) {
          return {
            fixName: t,
            description: r,
            changes: this.mapTextChangesToCodeEdits(i),
            commands: o,
            fixId: s,
            fixAllDescription: l,
          };
        }
        mapPasteEditsAction({ edits: t, fixId: r }) {
          return { edits: this.mapTextChangesToCodeEdits(t), fixId: r };
        }
        mapTextChangesToCodeEdits(t) {
          return t.map((r) => this.mapTextChangeToCodeEdit(r));
        }
        mapTextChangeToCodeEdit(t) {
          const r = this.projectService.getScriptInfoOrConfig(t.fileName);
          return (
            !!t.isNewFile == !!r &&
              (r ||
                this.projectService.logErrorForScriptInfoNotFound(t.fileName),
              C.fail(
                "Expected isNewFile for (only) new files. " +
                  JSON.stringify({
                    isNewFile: !!t.isNewFile,
                    hasScriptInfo: !!r,
                  }),
              )),
            r
              ? {
                  fileName: t.fileName,
                  textChanges: t.textChanges.map((i) => Vst(i, r)),
                }
              : Hst(t)
          );
        }
        convertTextChangeToCodeEdit(t, r) {
          return {
            start: r.positionToLineOffset(t.span.start),
            end: r.positionToLineOffset(t.span.start + t.span.length),
            newText: t.newText ? t.newText : "",
          };
        }
        getBraceMatching(t, r) {
          const { file: i, languageService: o } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            s = this.projectService.getScriptInfoForNormalizedPath(i),
            l = this.getPosition(t, s),
            u = o.getBraceMatchingAtPosition(i, l);
          return u ? (r ? u.map((d) => u_(d, s)) : u) : void 0;
        }
        getDiagnosticsForProject(t, r, i) {
          if (this.suppressDiagnosticEvents) return;
          const { fileNames: o, languageServiceDisabled: s } =
            this.getProjectInfoWorker(i, void 0, !0, void 0, !0);
          if (s) return;
          const l = o.filter((N) => !N.includes("lib.d.ts"));
          if (l.length === 0) return;
          const u = [],
            d = [],
            _ = [],
            h = [],
            g = Cs(i),
            E = this.projectService.ensureDefaultProjectForFile(g);
          for (const N of l)
            this.getCanonicalFileName(N) === this.getCanonicalFileName(i)
              ? u.push(N)
              : this.projectService.getScriptInfo(N).isScriptOpen()
                ? d.push(N)
                : ad(N)
                  ? h.push(N)
                  : _.push(N);
          const R = [...u, ...d, ..._, ...h].map((N) => ({
            fileName: N,
            project: E,
          }));
          this.updateErrorCheck(t, R, r, !1);
        }
        configurePlugin(t) {
          this.projectService.configurePlugin(t);
        }
        getSmartSelectionRange(t, r) {
          const { locations: i } = t,
            { file: o, languageService: s } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            l = C.checkDefined(this.projectService.getScriptInfo(o));
          return Vt(i, (u) => {
            const d = this.getPosition(u, l),
              _ = s.getSmartSelectionRange(o, d);
            return r ? this.mapSelectionRange(_, l) : _;
          });
        }
        toggleLineComment(t, r) {
          const { file: i, languageService: o } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            s = this.projectService.getScriptInfo(i),
            l = this.getRange(t, s),
            u = o.toggleLineComment(i, l);
          if (r) {
            const d = this.projectService.getScriptInfoForNormalizedPath(i);
            return u.map((_) => this.convertTextChangeToCodeEdit(_, d));
          }
          return u;
        }
        toggleMultilineComment(t, r) {
          const { file: i, languageService: o } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            s = this.projectService.getScriptInfoForNormalizedPath(i),
            l = this.getRange(t, s),
            u = o.toggleMultilineComment(i, l);
          if (r) {
            const d = this.projectService.getScriptInfoForNormalizedPath(i);
            return u.map((_) => this.convertTextChangeToCodeEdit(_, d));
          }
          return u;
        }
        commentSelection(t, r) {
          const { file: i, languageService: o } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            s = this.projectService.getScriptInfoForNormalizedPath(i),
            l = this.getRange(t, s),
            u = o.commentSelection(i, l);
          if (r) {
            const d = this.projectService.getScriptInfoForNormalizedPath(i);
            return u.map((_) => this.convertTextChangeToCodeEdit(_, d));
          }
          return u;
        }
        uncommentSelection(t, r) {
          const { file: i, languageService: o } =
              this.getFileAndLanguageServiceForSyntacticOperation(t),
            s = this.projectService.getScriptInfoForNormalizedPath(i),
            l = this.getRange(t, s),
            u = o.uncommentSelection(i, l);
          if (r) {
            const d = this.projectService.getScriptInfoForNormalizedPath(i);
            return u.map((_) => this.convertTextChangeToCodeEdit(_, d));
          }
          return u;
        }
        mapSelectionRange(t, r) {
          const i = { textSpan: u_(t.textSpan, r) };
          return (
            t.parent && (i.parent = this.mapSelectionRange(t.parent, r)),
            i
          );
        }
        getScriptInfoFromProjectService(t) {
          const r = Cs(t),
            i = this.projectService.getScriptInfoForNormalizedPath(r);
          return (
            i ||
            (this.projectService.logErrorForScriptInfoNotFound(r),
            by.ThrowNoProject())
          );
        }
        toProtocolCallHierarchyItem(t) {
          const r = this.getScriptInfoFromProjectService(t.file);
          return {
            name: t.name,
            kind: t.kind,
            kindModifiers: t.kindModifiers,
            file: t.file,
            containerName: t.containerName,
            span: u_(t.span, r),
            selectionSpan: u_(t.selectionSpan, r),
          };
        }
        toProtocolCallHierarchyIncomingCall(t) {
          const r = this.getScriptInfoFromProjectService(t.from.file);
          return {
            from: this.toProtocolCallHierarchyItem(t.from),
            fromSpans: t.fromSpans.map((i) => u_(i, r)),
          };
        }
        toProtocolCallHierarchyOutgoingCall(t, r) {
          return {
            to: this.toProtocolCallHierarchyItem(t.to),
            fromSpans: t.fromSpans.map((i) => u_(i, r)),
          };
        }
        prepareCallHierarchy(t) {
          const { file: r, project: i } = this.getFileAndProject(t),
            o = this.projectService.getScriptInfoForNormalizedPath(r);
          if (o) {
            const s = this.getPosition(t, o),
              l = i.getLanguageService().prepareCallHierarchy(r, s);
            return l && _J(l, (u) => this.toProtocolCallHierarchyItem(u));
          }
        }
        provideCallHierarchyIncomingCalls(t) {
          const { file: r, project: i } = this.getFileAndProject(t),
            o = this.getScriptInfoFromProjectService(r);
          return i
            .getLanguageService()
            .provideCallHierarchyIncomingCalls(r, this.getPosition(t, o))
            .map((l) => this.toProtocolCallHierarchyIncomingCall(l));
        }
        provideCallHierarchyOutgoingCalls(t) {
          const { file: r, project: i } = this.getFileAndProject(t),
            o = this.getScriptInfoFromProjectService(r);
          return i
            .getLanguageService()
            .provideCallHierarchyOutgoingCalls(r, this.getPosition(t, o))
            .map((l) => this.toProtocolCallHierarchyOutgoingCall(l, o));
        }
        getCanonicalFileName(t) {
          const r = this.host.useCaseSensitiveFileNames ? t : tb(t);
          return ya(r);
        }
        exit() {}
        notRequired(t) {
          return (
            t &&
              this.doOutput(void 0, t.command, t.seq, !0, this.performanceData),
            { responseRequired: !1, performanceData: this.performanceData }
          );
        }
        requiredResponse(t) {
          return {
            response: t,
            responseRequired: !0,
            performanceData: this.performanceData,
          };
        }
        addProtocolHandler(t, r) {
          if (this.handlers.has(t))
            throw new Error(
              `Protocol handler already exists for command "${t}"`,
            );
          this.handlers.set(t, r);
        }
        setCurrentRequest(t) {
          (C.assert(this.currentRequestId === void 0),
            (this.currentRequestId = t),
            this.cancellationToken.setRequest(t));
        }
        resetCurrentRequest(t) {
          (C.assert(this.currentRequestId === t),
            (this.currentRequestId = void 0),
            this.cancellationToken.resetRequest(t));
        }
        executeWithRequestId(t, r, i) {
          const o = this.performanceData;
          try {
            return ((this.performanceData = i), this.setCurrentRequest(t), r());
          } finally {
            (this.resetCurrentRequest(t), (this.performanceData = o));
          }
        }
        executeCommand(t) {
          const r = this.handlers.get(t.command);
          if (r) {
            const i = this.executeWithRequestId(t.seq, () => r(t), void 0);
            return (this.projectService.enableRequestedPlugins(), i);
          } else
            return (
              this.logger.msg(`Unrecognized JSON command:${u0(t)}`, "Err"),
              this.doOutput(
                void 0,
                "unknown",
                t.seq,
                !1,
                void 0,
                `Unrecognized JSON command: ${t.command}`,
              ),
              { responseRequired: !1 }
            );
        }
        onMessage(t) {
          var r, i, o, s, l, u, d;
          this.gcTimer.scheduleCollect();
          let _;
          const h = this.performanceData;
          this.logger.hasLevel(2) &&
            ((_ = this.hrtime()),
            this.logger.hasLevel(3) &&
              this.logger.info(`request:${AP(this.toStringMessage(t))}`));
          let g, E;
          try {
            ((g = this.parseMessage(t)),
              (E = g.arguments && g.arguments.file ? g.arguments : void 0),
              (r = xr) == null ||
                r.instant(xr.Phase.Session, "request", {
                  seq: g.seq,
                  command: g.command,
                }),
              (i = xr) == null ||
                i.push(
                  xr.Phase.Session,
                  "executeCommand",
                  { seq: g.seq, command: g.command },
                  !0,
                ));
            const {
              response: A,
              responseRequired: R,
              performanceData: N,
            } = this.executeCommand(g);
            if (((o = xr) == null || o.pop(), this.logger.hasLevel(2))) {
              const P = Pst(this.hrtime(_)).toFixed(4);
              R
                ? this.logger.perftrc(
                    `${g.seq}::${g.command}: elapsed time (in milliseconds) ${P}`,
                  )
                : this.logger.perftrc(
                    `${g.seq}::${g.command}: async elapsed time (in milliseconds) ${P}`,
                  );
            }
            ((s = xr) == null ||
              s.instant(xr.Phase.Session, "response", {
                seq: g.seq,
                command: g.command,
                success: !!A,
              }),
              A
                ? this.doOutput(A, g.command, g.seq, !0, N)
                : R &&
                  this.doOutput(
                    void 0,
                    g.command,
                    g.seq,
                    !1,
                    N,
                    "No content available.",
                  ));
          } catch (A) {
            if (((l = xr) == null || l.popAll(), A instanceof TN)) {
              ((u = xr) == null ||
                u.instant(xr.Phase.Session, "commandCanceled", {
                  seq: g?.seq,
                  command: g?.command,
                }),
                this.doOutput(
                  { canceled: !0 },
                  g.command,
                  g.seq,
                  !0,
                  this.performanceData,
                ));
              return;
            }
            (this.logErrorWorker(A, this.toStringMessage(t), E),
              (d = xr) == null ||
                d.instant(xr.Phase.Session, "commandError", {
                  seq: g?.seq,
                  command: g?.command,
                  message: A.message,
                }),
              this.doOutput(
                void 0,
                g ? g.command : "unknown",
                g ? g.seq : 0,
                !1,
                this.performanceData,
                "Error processing request. " +
                  A.message +
                  `
` +
                  A.stack,
              ));
          } finally {
            this.performanceData = h;
          }
        }
        parseMessage(t) {
          return JSON.parse(t);
        }
        toStringMessage(t) {
          return t;
        }
        getFormatOptions(t) {
          return this.projectService.getFormatCodeOptions(t);
        }
        getPreferences(t) {
          return this.projectService.getPreferences(t);
        }
        getHostFormatOptions() {
          return this.projectService.getHostFormatCodeOptions();
        }
        getHostPreferences() {
          return this.projectService.getHostPreferences();
        }
      };
    function COe(e) {
      const t =
        e.diagnosticsDuration &&
        Co(e.diagnosticsDuration, ([r, i]) => ({ ...i, file: r }));
      return { ...e, diagnosticsDuration: t };
    }
    function u_(e, t) {
      return {
        start: t.positionToLineOffset(e.start),
        end: t.positionToLineOffset(Dl(e)),
      };
    }
    function ehe(e, t, r) {
      const i = u_(e, r),
        o = t && u_(t, r);
      return o ? { ...i, contextStart: o.start, contextEnd: o.end } : i;
    }
    function Vst(e, t) {
      return {
        start: NOe(t, e.span.start),
        end: NOe(t, Dl(e.span)),
        newText: e.newText,
      };
    }
    function NOe(e, t) {
      return Jme(e)
        ? Ust(e.getLineAndCharacterOfPosition(t))
        : e.positionToLineOffset(t);
    }
    function jst(e, t) {
      const r = e.ranges.map((i) => ({
        start: t.positionToLineOffset(i.start),
        end: t.positionToLineOffset(i.start + i.length),
      }));
      return e.wordPattern
        ? { ranges: r, wordPattern: e.wordPattern }
        : { ranges: r };
    }
    function Ust(e) {
      return { line: e.line + 1, offset: e.character + 1 };
    }
    function Hst(e) {
      C.assert(e.textChanges.length === 1);
      const t = $a(e.textChanges);
      return (
        C.assert(t.span.start === 0 && t.span.length === 0),
        {
          fileName: e.fileName,
          textChanges: [
            {
              start: { line: 0, offset: 0 },
              end: { line: 0, offset: 0 },
              newText: t.newText,
            },
          ],
        }
      );
    }
    function the(e, t, r, i) {
      const o = qst(e, t, i),
        { line: s, character: l } = LR(iI(o), r);
      return { line: s + 1, offset: l + 1 };
    }
    function qst(e, t, r) {
      for (const { fileName: i, textChanges: o } of r)
        if (i === t)
          for (let s = o.length - 1; s >= 0; s--) {
            const {
              newText: l,
              span: { start: u, length: d },
            } = o[s];
            e = e.slice(0, u) + l + e.slice(u + d);
          }
      return e;
    }
    function MOe(
      e,
      {
        fileName: t,
        textSpan: r,
        contextSpan: i,
        isWriteAccess: o,
        isDefinition: s,
      },
      { disableLineTextInReferences: l },
    ) {
      const u = C.checkDefined(e.getScriptInfo(t)),
        d = ehe(r, i, u),
        _ = l ? void 0 : Jst(u, d);
      return { file: t, ...d, lineText: _, isWriteAccess: o, isDefinition: s };
    }
    function Jst(e, t) {
      const r = e.lineToTextSpan(t.start.line - 1);
      return e.getSnapshot().getText(r.start, Dl(r)).replace(/\r|\n/g, "");
    }
    function Kst(e) {
      return (
        e === void 0 ||
        (e &&
          typeof e == "object" &&
          typeof e.exportName == "string" &&
          (e.fileName === void 0 || typeof e.fileName == "string") &&
          (e.ambientModuleName === void 0 ||
            (typeof e.ambientModuleName == "string" &&
              (e.isPackageJsonImport === void 0 ||
                typeof e.isPackageJsonImport == "boolean"))))
      );
    }
    var vC = 4,
      nhe = ((e) => (
        (e[(e.PreStart = 0)] = "PreStart"),
        (e[(e.Start = 1)] = "Start"),
        (e[(e.Entire = 2)] = "Entire"),
        (e[(e.Mid = 3)] = "Mid"),
        (e[(e.End = 4)] = "End"),
        (e[(e.PostEnd = 5)] = "PostEnd"),
        e
      ))(nhe || {}),
      Xst = class {
        constructor() {
          ((this.goSubtree = !0),
            (this.lineIndex = new vW()),
            (this.endBranch = []),
            (this.state = 2),
            (this.initialText = ""),
            (this.trailingText = ""),
            (this.lineIndex.root = new bC()),
            (this.startPath = [this.lineIndex.root]),
            (this.stack = [this.lineIndex.root]));
        }
        get done() {
          return !1;
        }
        insertLines(e, t) {
          (t && (this.trailingText = ""),
            e
              ? (e = this.initialText + e + this.trailingText)
              : (e = this.initialText + this.trailingText));
          const i = vW.linesFromText(e).lines;
          i.length > 1 && i[i.length - 1] === "" && i.pop();
          let o, s;
          for (let u = this.endBranch.length - 1; u >= 0; u--)
            (this.endBranch[u].updateCounts(),
              this.endBranch[u].charCount() === 0 &&
                ((s = this.endBranch[u]),
                u > 0 ? (o = this.endBranch[u - 1]) : (o = this.branchNode)));
          s && o.remove(s);
          const l = this.startPath[this.startPath.length - 1];
          if (i.length > 0)
            if (((l.text = i[0]), i.length > 1)) {
              let u = new Array(i.length - 1),
                d = l;
              for (let g = 1; g < i.length; g++) u[g - 1] = new Oz(i[g]);
              let _ = this.startPath.length - 2;
              for (; _ >= 0; ) {
                const g = this.startPath[_];
                ((u = g.insertAt(d, u)), _--, (d = g));
              }
              let h = u.length;
              for (; h > 0; ) {
                const g = new bC();
                (g.add(this.lineIndex.root),
                  (u = g.insertAt(this.lineIndex.root, u)),
                  (h = u.length),
                  (this.lineIndex.root = g));
              }
              this.lineIndex.root.updateCounts();
            } else
              for (let u = this.startPath.length - 2; u >= 0; u--)
                this.startPath[u].updateCounts();
          else {
            this.startPath[this.startPath.length - 2].remove(l);
            for (let d = this.startPath.length - 2; d >= 0; d--)
              this.startPath[d].updateCounts();
          }
          return this.lineIndex;
        }
        post(e, t, r) {
          (r === this.lineCollectionAtBranch && (this.state = 4),
            this.stack.pop());
        }
        pre(e, t, r, i, o) {
          const s = this.stack[this.stack.length - 1];
          this.state === 2 &&
            o === 1 &&
            ((this.state = 1),
            (this.branchNode = s),
            (this.lineCollectionAtBranch = r));
          let l;
          function u(d) {
            return d.isLeaf() ? new Oz("") : new bC();
          }
          switch (o) {
            case 0:
              ((this.goSubtree = !1), this.state !== 4 && s.add(r));
              break;
            case 1:
              this.state === 4
                ? (this.goSubtree = !1)
                : ((l = u(r)), s.add(l), this.startPath.push(l));
              break;
            case 2:
              this.state !== 4
                ? ((l = u(r)), s.add(l), this.startPath.push(l))
                : r.isLeaf() || ((l = u(r)), s.add(l), this.endBranch.push(l));
              break;
            case 3:
              this.goSubtree = !1;
              break;
            case 4:
              this.state !== 4
                ? (this.goSubtree = !1)
                : r.isLeaf() || ((l = u(r)), s.add(l), this.endBranch.push(l));
              break;
            case 5:
              ((this.goSubtree = !1), this.state !== 1 && s.add(r));
              break;
          }
          this.goSubtree && this.stack.push(l);
        }
        leaf(e, t, r) {
          this.state === 1
            ? (this.initialText = r.text.substring(0, e))
            : this.state === 2
              ? ((this.initialText = r.text.substring(0, e)),
                (this.trailingText = r.text.substring(e + t)))
              : (this.trailingText = r.text.substring(e + t));
        }
      },
      Yst = class {
        constructor(e, t, r) {
          ((this.pos = e), (this.deleteLen = t), (this.insertedText = r));
        }
        getTextChangeRange() {
          return L2(
            Id(this.pos, this.deleteLen),
            this.insertedText ? this.insertedText.length : 0,
          );
        }
      },
      UX = class GA {
        constructor() {
          ((this.changes = []),
            (this.versions = new Array(GA.maxVersions)),
            (this.minVersion = 0),
            (this.currentVersion = 0));
        }
        versionToIndex(t) {
          if (!(t < this.minVersion || t > this.currentVersion))
            return t % GA.maxVersions;
        }
        currentVersionToIndex() {
          return this.currentVersion % GA.maxVersions;
        }
        edit(t, r, i) {
          (this.changes.push(new Yst(t, r, i)),
            (this.changes.length > GA.changeNumberThreshold ||
              r > GA.changeLengthThreshold ||
              (i && i.length > GA.changeLengthThreshold)) &&
              this.getSnapshot());
        }
        getSnapshot() {
          return this._getSnapshot();
        }
        _getSnapshot() {
          let t = this.versions[this.currentVersionToIndex()];
          if (this.changes.length > 0) {
            let r = t.index;
            for (const i of this.changes)
              r = r.edit(i.pos, i.deleteLen, i.insertedText);
            ((t = new POe(this.currentVersion + 1, this, r, this.changes)),
              (this.currentVersion = t.version),
              (this.versions[this.currentVersionToIndex()] = t),
              (this.changes = []),
              this.currentVersion - this.minVersion >= GA.maxVersions &&
                (this.minVersion = this.currentVersion - GA.maxVersions + 1));
          }
          return t;
        }
        getSnapshotVersion() {
          return this._getSnapshot().version;
        }
        getAbsolutePositionAndLineText(t) {
          return this._getSnapshot().index.lineNumberToInfo(t);
        }
        lineOffsetToPosition(t, r) {
          return (
            this._getSnapshot().index.absolutePositionOfStartOfLine(t) + (r - 1)
          );
        }
        positionToLineOffset(t) {
          return this._getSnapshot().index.positionToLineOffset(t);
        }
        lineToTextSpan(t) {
          const r = this._getSnapshot().index,
            { lineText: i, absolutePosition: o } = r.lineNumberToInfo(t + 1),
            s =
              i !== void 0
                ? i.length
                : r.absolutePositionOfStartOfLine(t + 2) - o;
          return Id(o, s);
        }
        getTextChangesBetweenVersions(t, r) {
          if (t < r)
            if (t >= this.minVersion) {
              const i = [];
              for (let o = t + 1; o <= r; o++) {
                const s = this.versions[this.versionToIndex(o)];
                for (const l of s.changesSincePreviousVersion)
                  i.push(l.getTextChangeRange());
              }
              return Fee(i);
            } else return;
          else return lF;
        }
        getLineCount() {
          return this._getSnapshot().index.getLineCount();
        }
        static fromString(t) {
          const r = new GA(),
            i = new POe(0, r, new vW());
          r.versions[r.currentVersion] = i;
          const o = vW.linesFromText(t);
          return (i.index.load(o.lines), r);
        }
      };
    ((UX.changeNumberThreshold = 8),
      (UX.changeLengthThreshold = 256),
      (UX.maxVersions = 8));
    var HX = UX,
      POe = class P7e {
        constructor(t, r, i, o = Kc) {
          ((this.version = t),
            (this.cache = r),
            (this.index = i),
            (this.changesSincePreviousVersion = o));
        }
        getText(t, r) {
          return this.index.getText(t, r - t);
        }
        getLength() {
          return this.index.getLength();
        }
        getChangeRange(t) {
          if (t instanceof P7e && this.cache === t.cache)
            return this.version <= t.version
              ? lF
              : this.cache.getTextChangesBetweenVersions(
                  t.version,
                  this.version,
                );
        }
      },
      vW = class Jye {
        constructor() {
          this.checkEdits = !1;
        }
        absolutePositionOfStartOfLine(t) {
          return this.lineNumberToInfo(t).absolutePosition;
        }
        positionToLineOffset(t) {
          const { oneBasedLine: r, zeroBasedColumn: i } =
            this.root.charOffsetToLineInfo(1, t);
          return { line: r, offset: i + 1 };
        }
        positionToColumnAndLineText(t) {
          return this.root.charOffsetToLineInfo(1, t);
        }
        getLineCount() {
          return this.root.lineCount();
        }
        lineNumberToInfo(t) {
          const r = this.getLineCount();
          if (t <= r) {
            const { position: i, leaf: o } = this.root.lineNumberToInfo(t, 0);
            return { absolutePosition: i, lineText: o && o.text };
          } else
            return {
              absolutePosition: this.root.charCount(),
              lineText: void 0,
            };
        }
        load(t) {
          if (t.length > 0) {
            const r = [];
            for (let i = 0; i < t.length; i++) r[i] = new Oz(t[i]);
            this.root = Jye.buildTreeFromBottom(r);
          } else this.root = new bC();
        }
        walk(t, r, i) {
          this.root.walk(t, r, i);
        }
        getText(t, r) {
          let i = "";
          return (
            r > 0 &&
              t < this.root.charCount() &&
              this.walk(t, r, {
                goSubtree: !0,
                done: !1,
                leaf: (o, s, l) => {
                  i = i.concat(l.text.substring(o, o + s));
                },
              }),
            i
          );
        }
        getLength() {
          return this.root.charCount();
        }
        every(t, r, i) {
          i || (i = this.root.charCount());
          const o = {
            goSubtree: !0,
            done: !1,
            leaf(s, l, u) {
              t(u, s, l) || (this.done = !0);
            },
          };
          return (this.walk(r, i - r, o), !o.done);
        }
        edit(t, r, i) {
          if (this.root.charCount() === 0)
            return (
              C.assert(r === 0),
              i !== void 0
                ? (this.load(Jye.linesFromText(i).lines), this)
                : void 0
            );
          {
            let o;
            if (this.checkEdits) {
              const u = this.getText(0, this.root.charCount());
              o = u.slice(0, t) + i + u.slice(t + r);
            }
            const s = new Xst();
            let l = !1;
            if (t >= this.root.charCount()) {
              t = this.root.charCount() - 1;
              const u = this.getText(t, 1);
              (i ? (i = u + i) : (i = u), (r = 0), (l = !0));
            } else if (r > 0) {
              const u = t + r,
                { zeroBasedColumn: d, lineText: _ } =
                  this.positionToColumnAndLineText(u);
              d === 0 && ((r += _.length), (i = i ? i + _ : _));
            }
            if (
              (this.root.walk(t, r, s), s.insertLines(i, l), this.checkEdits)
            ) {
              const u = s.lineIndex.getText(0, s.lineIndex.getLength());
              C.assert(o === u, "buffer edit mismatch");
            }
            return s.lineIndex;
          }
        }
        static buildTreeFromBottom(t) {
          if (t.length < vC) return new bC(t);
          const r = new Array(Math.ceil(t.length / vC));
          let i = 0;
          for (let o = 0; o < r.length; o++) {
            const s = Math.min(i + vC, t.length);
            ((r[o] = new bC(t.slice(i, s))), (i = s));
          }
          return this.buildTreeFromBottom(r);
        }
        static linesFromText(t) {
          const r = iI(t);
          if (r.length === 0) return { lines: [], lineMap: r };
          const i = new Array(r.length),
            o = r.length - 1;
          for (let l = 0; l < o; l++) i[l] = t.substring(r[l], r[l + 1]);
          const s = t.substring(r[o]);
          return (
            s.length > 0 ? (i[o] = s) : i.pop(),
            { lines: i, lineMap: r }
          );
        }
      },
      bC = class Kye {
        constructor(t = []) {
          ((this.children = t),
            (this.totalChars = 0),
            (this.totalLines = 0),
            t.length && this.updateCounts());
        }
        isLeaf() {
          return !1;
        }
        updateCounts() {
          ((this.totalChars = 0), (this.totalLines = 0));
          for (const t of this.children)
            ((this.totalChars += t.charCount()),
              (this.totalLines += t.lineCount()));
        }
        execWalk(t, r, i, o, s) {
          return (
            i.pre && i.pre(t, r, this.children[o], this, s),
            i.goSubtree
              ? (this.children[o].walk(t, r, i),
                i.post && i.post(t, r, this.children[o], this, s))
              : (i.goSubtree = !0),
            i.done
          );
        }
        skipChild(t, r, i, o, s) {
          o.pre &&
            !o.done &&
            (o.pre(t, r, this.children[i], this, s), (o.goSubtree = !0));
        }
        walk(t, r, i) {
          if (this.children.length === 0) return;
          let o = 0,
            s = this.children[o].charCount(),
            l = t;
          for (; l >= s; )
            (this.skipChild(l, r, o, i, 0),
              (l -= s),
              o++,
              (s = this.children[o].charCount()));
          if (l + r <= s) {
            if (this.execWalk(l, r, i, o, 2)) return;
          } else {
            if (this.execWalk(l, s - l, i, o, 1)) return;
            let u = r - (s - l);
            for (o++, s = this.children[o].charCount(); u > s; ) {
              if (this.execWalk(0, s, i, o, 3)) return;
              ((u -= s), o++, (s = this.children[o].charCount()));
            }
            if (u > 0 && this.execWalk(0, u, i, o, 4)) return;
          }
          if (i.pre) {
            const u = this.children.length;
            if (o < u - 1)
              for (let d = o + 1; d < u; d++) this.skipChild(0, 0, d, i, 5);
          }
        }
        charOffsetToLineInfo(t, r) {
          if (this.children.length === 0)
            return { oneBasedLine: t, zeroBasedColumn: r, lineText: void 0 };
          for (const s of this.children) {
            if (s.charCount() > r)
              return s.isLeaf()
                ? { oneBasedLine: t, zeroBasedColumn: r, lineText: s.text }
                : s.charOffsetToLineInfo(t, r);
            ((r -= s.charCount()), (t += s.lineCount()));
          }
          const i = this.lineCount();
          if (i === 0)
            return { oneBasedLine: 1, zeroBasedColumn: 0, lineText: void 0 };
          const o = C.checkDefined(this.lineNumberToInfo(i, 0).leaf);
          return {
            oneBasedLine: i,
            zeroBasedColumn: o.charCount(),
            lineText: void 0,
          };
        }
        lineNumberToInfo(t, r) {
          for (const i of this.children) {
            const o = i.lineCount();
            if (o >= t)
              return i.isLeaf()
                ? { position: r, leaf: i }
                : i.lineNumberToInfo(t, r);
            ((t -= o), (r += i.charCount()));
          }
          return { position: r, leaf: void 0 };
        }
        splitAfter(t) {
          let r;
          const i = this.children.length;
          t++;
          const o = t;
          if (t < i) {
            for (r = new Kye(); t < i; ) (r.add(this.children[t]), t++);
            r.updateCounts();
          }
          return ((this.children.length = o), r);
        }
        remove(t) {
          const r = this.findChildIndex(t),
            i = this.children.length;
          if (r < i - 1)
            for (let o = r; o < i - 1; o++)
              this.children[o] = this.children[o + 1];
          this.children.pop();
        }
        findChildIndex(t) {
          const r = this.children.indexOf(t);
          return (C.assert(r !== -1), r);
        }
        insertAt(t, r) {
          let i = this.findChildIndex(t);
          const o = this.children.length,
            s = r.length;
          if (o < vC && i === o - 1 && s === 1)
            return (this.add(r[0]), this.updateCounts(), []);
          {
            const l = this.splitAfter(i);
            let u = 0;
            for (i++; i < vC && u < s; ) ((this.children[i] = r[u]), i++, u++);
            let d = [],
              _ = 0;
            if (u < s) {
              ((_ = Math.ceil((s - u) / vC)), (d = new Array(_)));
              let h = 0;
              for (let E = 0; E < _; E++) d[E] = new Kye();
              let g = d[0];
              for (; u < s; )
                (g.add(r[u]),
                  u++,
                  g.children.length === vC && (h++, (g = d[h])));
              for (let E = d.length - 1; E >= 0; E--)
                d[E].children.length === 0 && d.pop();
            }
            (l && d.push(l), this.updateCounts());
            for (let h = 0; h < _; h++) d[h].updateCounts();
            return d;
          }
        }
        add(t) {
          (this.children.push(t), C.assert(this.children.length <= vC));
        }
        charCount() {
          return this.totalChars;
        }
        lineCount() {
          return this.totalLines;
        }
      },
      Oz = class {
        constructor(e) {
          this.text = e;
        }
        isLeaf() {
          return !0;
        }
        walk(e, t, r) {
          r.leaf(e, t, this);
        }
        charCount() {
          return this.text.length;
        }
        lineCount() {
          return 1;
        }
      },
      LOe = class L7e {
        constructor(t, r, i, o, s, l) {
          ((this.telemetryEnabled = t),
            (this.logger = r),
            (this.host = i),
            (this.globalTypingsCacheLocation = o),
            (this.event = s),
            (this.maxActiveRequestCount = l),
            (this.activeRequestCount = 0),
            (this.requestQueue = g2()),
            (this.requestMap = new Map()),
            (this.requestedRegistry = !1),
            (this.packageInstallId = 0));
        }
        isKnownTypesPackageName(t) {
          var r;
          return Gb.validatePackageName(t) !== Gb.NameValidationResult.Ok
            ? !1
            : (this.requestedRegistry ||
                ((this.requestedRegistry = !0),
                this.installer.send({ kind: "typesRegistry" })),
              !!((r = this.typesRegistryCache) != null && r.has(t)));
        }
        installPackage(t) {
          this.packageInstallId++;
          const r = { kind: "installPackage", ...t, id: this.packageInstallId },
            i = new Promise((o, s) => {
              (
                this.packageInstalledPromise ??
                (this.packageInstalledPromise = new Map())
              ).set(this.packageInstallId, { resolve: o, reject: s });
            });
          return (this.installer.send(r), i);
        }
        attach(t) {
          ((this.projectService = t),
            (this.installer = this.createInstallerProcess()));
        }
        onProjectClosed(t) {
          this.installer.send({
            projectName: t.getProjectName(),
            kind: "closeProject",
          });
        }
        enqueueInstallTypingsRequest(t, r, i) {
          const o = cme(t, r, i);
          (this.logger.hasLevel(3) &&
            this.logger.info(
              `TIAdapter:: Scheduling throttled operation:${u0(o)}`,
            ),
            this.activeRequestCount < this.maxActiveRequestCount
              ? this.scheduleRequest(o)
              : (this.logger.hasLevel(3) &&
                  this.logger.info(
                    `TIAdapter:: Deferring request for: ${o.projectName}`,
                  ),
                this.requestQueue.enqueue(o),
                this.requestMap.set(o.projectName, o)));
        }
        handleMessage(t) {
          var r, i;
          switch (
            (this.logger.hasLevel(3) &&
              this.logger.info(`TIAdapter:: Received response:${u0(t)}`),
            t.kind)
          ) {
            case hq:
              this.typesRegistryCache = new Map(
                Object.entries(t.typesRegistry),
              );
              break;
            case t7: {
              const o =
                (r = this.packageInstalledPromise) == null
                  ? void 0
                  : r.get(t.id);
              (C.assertIsDefined(
                o,
                "Should find the promise for package install",
              ),
                (i = this.packageInstalledPromise) == null || i.delete(t.id),
                t.success
                  ? o.resolve({ successMessage: t.message })
                  : o.reject(t.message),
                this.projectService.updateTypingsForProject(t),
                this.event(t, "setTypings"));
              break;
            }
            case hle: {
              const o = { message: t.message };
              this.event(o, "typesInstallerInitializationFailed");
              break;
            }
            case _q: {
              const o = { eventId: t.eventId, packages: t.packagesToInstall };
              this.event(o, "beginInstallTypes");
              break;
            }
            case gq: {
              if (this.telemetryEnabled) {
                const l = {
                  telemetryEventName: "typingsInstalled",
                  payload: {
                    installedPackages: t.packagesToInstall.join(","),
                    installSuccess: t.installSuccess,
                    typingsInstallerVersion: t.typingsInstallerVersion,
                  },
                };
                this.event(l, "telemetry");
              }
              const o = {
                eventId: t.eventId,
                packages: t.packagesToInstall,
                success: t.installSuccess,
              };
              this.event(o, "endInstallTypes");
              break;
            }
            case e7: {
              this.projectService.updateTypingsForProject(t);
              break;
            }
            case Z3: {
              for (
                this.activeRequestCount > 0
                  ? this.activeRequestCount--
                  : C.fail("TIAdapter:: Received too many responses");
                !this.requestQueue.isEmpty();
              ) {
                const o = this.requestQueue.dequeue();
                if (this.requestMap.get(o.projectName) === o) {
                  (this.requestMap.delete(o.projectName),
                    this.scheduleRequest(o));
                  break;
                }
                this.logger.hasLevel(3) &&
                  this.logger.info(
                    `TIAdapter:: Skipping defunct request for: ${o.projectName}`,
                  );
              }
              (this.projectService.updateTypingsForProject(t),
                this.event(t, "setTypings"));
              break;
            }
            case mO:
              this.projectService.watchTypingLocations(t);
              break;
          }
        }
        scheduleRequest(t) {
          (this.logger.hasLevel(3) &&
            this.logger.info(
              `TIAdapter:: Scheduling request for: ${t.projectName}`,
            ),
            this.activeRequestCount++,
            this.host.setTimeout(
              () => {
                (this.logger.hasLevel(3) &&
                  this.logger.info(`TIAdapter:: Sending request:${u0(t)}`),
                  this.installer.send(t));
              },
              L7e.requestDelayMillis,
              `${t.projectName}::${t.kind}`,
            ));
        }
      };
    LOe.requestDelayMillis = 100;
    var kOe = LOe,
      wOe = {};
    (x(wOe, {
      ActionInvalidate: () => e7,
      ActionPackageInstalled: () => t7,
      ActionSet: () => Z3,
      ActionWatchTypingLocations: () => mO,
      Arguments: () => yq,
      AutoImportProviderProject: () => Nme,
      AuxiliaryProject: () => Dme,
      CharRangeSection: () => nhe,
      CloseFileWatcherEvent: () => LX,
      CommandNames: () => bOe,
      ConfigFileDiagEvent: () => DX,
      ConfiguredProject: () => Mme,
      ConfiguredProjectLoadKind: () => Wme,
      CreateDirectoryWatcherEvent: () => PX,
      CreateFileWatcherEvent: () => MX,
      Errors: () => by,
      EventBeginInstallTypes: () => _q,
      EventEndInstallTypes: () => gq,
      EventInitializationFailed: () => hle,
      EventTypesRegistry: () => hq,
      ExternalProject: () => SX,
      GcTimer: () => _me,
      InferredProject: () => Rme,
      LargeFileReferencedEvent: () => RX,
      LineIndex: () => vW,
      LineLeaf: () => Oz,
      LineNode: () => bC,
      LogLevel: () => sme,
      Msg: () => lme,
      OpenFileInfoTelemetryEvent: () => Pme,
      Project: () => Rx,
      ProjectInfoTelemetryEvent: () => NX,
      ProjectKind: () => ZP,
      ProjectLanguageServiceStateEvent: () => CX,
      ProjectLoadingFinishEvent: () => xX,
      ProjectLoadingStartEvent: () => IX,
      ProjectService: () => qme,
      ProjectsUpdatedInBackgroundEvent: () => Lz,
      ScriptInfo: () => bme,
      ScriptVersionCache: () => HX,
      Session: () => DOe,
      TextStorage: () => vme,
      ThrottledOperations: () => hme,
      TypingsInstallerAdapter: () => kOe,
      allFilesAreJsOrDts: () => Ame,
      allRootFilesAreJsOrDts: () => Eme,
      asNormalizedPath: () => qwe,
      convertCompilerOptions: () => kz,
      convertFormatOptions: () => gC,
      convertScriptKindName: () => wX,
      convertTypeAcquisition: () => kme,
      convertUserPreferences: () => wme,
      convertWatchOptions: () => gW,
      countEachFileTypes: () => fW,
      createInstallTypingsRequest: () => cme,
      createModuleSpecifierCache: () => Xme,
      createNormalizedPathMap: () => Jwe,
      createPackageJsonCache: () => Yme,
      createSortedArray: () => mme,
      emptyArray: () => Kc,
      findArgument: () => JIe,
      formatDiagnosticToProtocol: () => yW,
      formatMessage: () => $me,
      getBaseConfigFileName: () => TX,
      getDetailWatchInfo: () => zX,
      getLocationInNewDocument: () => the,
      hasArgument: () => qIe,
      hasNoTypeScriptSource: () => Ime,
      indent: () => AP,
      isBackgroundProject: () => hW,
      isConfigFile: () => Jme,
      isConfiguredProject: () => bv,
      isDynamicFileName: () => QP,
      isExternalProject: () => mW,
      isInferredProject: () => _C,
      isInferredProjectName: () => dme,
      isProjectDeferredClose: () => _W,
      makeAutoImportProviderProjectName: () => pme,
      makeAuxiliaryProjectName: () => fme,
      makeInferredProjectName: () => ume,
      maxFileSize: () => AX,
      maxProgramSizeForNonTsFiles: () => EX,
      normalizedPathToPath: () => hC,
      nowString: () => KIe,
      nullCancellationToken: () => gOe,
      nullTypingsInstaller: () => wz,
      protocol: () => gme,
      scriptInfoIsContainedByBackgroundProject: () => Tme,
      scriptInfoIsContainedByDeferredClosedProject: () => Sme,
      stringifyIndented: () => u0,
      toEvent: () => Qme,
      toNormalizedPath: () => Cs,
      tryConvertScriptKindName: () => kX,
      typingsInstaller: () => ame,
      updateProjectIfDirty: () => Am,
    }),
      typeof console < "u" &&
        (C.loggingHost = {
          log(e, t) {
            switch (e) {
              case 1:
                return console.error(t);
              case 2:
                return console.warn(t);
              case 3:
                return console.log(t);
              case 4:
                return console.log(t);
            }
          },
        }));
  })({
    get exports() {
      return xT;
    },
    set exports(b) {
      xT = b;
    },
  });
  var SBe = xT.createClassifier,
    aTe = xT.createLanguageService,
    EBe = xT.displayPartsToString,
    ABe = xT.EndOfLineState,
    IBe = xT.flattenDiagnosticMessageText,
    xBe = xT.IndentStyle,
    dN = xT.ScriptKind,
    RBe = xT.ScriptTarget,
    DBe = xT.TokenClass,
    sTe = xT,
    CBe = Object.freeze({
      __proto__: null,
      EndOfLineState: ABe,
      IndentStyle: xBe,
      ScriptKind: dN,
      ScriptTarget: RBe,
      TokenClass: DBe,
      createClassifier: SBe,
      createLanguageService: aTe,
      displayPartsToString: EBe,
      flattenDiagnosticMessageText: IBe,
      typescript: sTe,
    });
  const ji = {};
  ((ji["lib.d.ts"] =
    `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es5" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`),
    (ji["lib.decorators.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/**
 * The decorator context types provided to class element decorators.
 */
type ClassMemberDecoratorContext =
    | ClassMethodDecoratorContext
    | ClassGetterDecoratorContext
    | ClassSetterDecoratorContext
    | ClassFieldDecoratorContext
    | ClassAccessorDecoratorContext;

/**
 * The decorator context types provided to any decorator.
 */
type DecoratorContext =
    | ClassDecoratorContext
    | ClassMemberDecoratorContext;

type DecoratorMetadataObject = Record<PropertyKey, unknown> & object;

type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;

/**
 * Context provided to a class decorator.
 * @template Class The type of the decorated class associated with this context.
 */
interface ClassDecoratorContext<
    Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,
> {
    /** The kind of element that was decorated. */
    readonly kind: "class";

    /** The name of the decorated class. */
    readonly name: string | undefined;

    /**
     * Adds a callback to be invoked after the class definition has been finalized.
     *
     * @example
     * \`\`\`ts
     * function customElement(name: string): ClassDecoratorFunction {
     *   return (target, context) => {
     *     context.addInitializer(function () {
     *       customElements.define(name, this);
     *     });
     *   }
     * }
     *
     * @customElement("my-element")
     * class MyElement {}
     * \`\`\`
     */
    addInitializer(initializer: (this: Class) => void): void;

    readonly metadata: DecoratorMetadata;
}

/**
 * Context provided to a class method decorator.
 * @template This The type on which the class element will be defined. For a static class element, this will be
 * the type of the constructor. For a non-static class element, this will be the type of the instance.
 * @template Value The type of the decorated class method.
 */
interface ClassMethodDecoratorContext<
    This = unknown,
    Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,
> {
    /** The kind of class element that was decorated. */
    readonly kind: "method";

    /** The name of the decorated class element. */
    readonly name: string | symbol;

    /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
    readonly static: boolean;

    /** A value indicating whether the class element has a private name. */
    readonly private: boolean;

    /** An object that can be used to access the current value of the class element at runtime. */
    readonly access: {
        /**
         * Determines whether an object has a property with the same name as the decorated element.
         */
        has(object: This): boolean;
        /**
         * Gets the current value of the method from the provided object.
         *
         * @example
         * let fn = context.access.get(instance);
         */
        get(object: This): Value;
    };

    /**
     * Adds a callback to be invoked either after static methods are defined but before
     * static initializers are run (when decorating a \`static\` element), or before instance
     * initializers are run (when decorating a non-\`static\` element).
     *
     * @example
     * \`\`\`ts
     * const bound: ClassMethodDecoratorFunction = (value, context) {
     *   if (context.private) throw new TypeError("Not supported on private methods.");
     *   context.addInitializer(function () {
     *     this[context.name] = this[context.name].bind(this);
     *   });
     * }
     *
     * class C {
     *   message = "Hello";
     *
     *   @bound
     *   m() {
     *     console.log(this.message);
     *   }
     * }
     * \`\`\`
     */
    addInitializer(initializer: (this: This) => void): void;

    readonly metadata: DecoratorMetadata;
}

/**
 * Context provided to a class getter decorator.
 * @template This The type on which the class element will be defined. For a static class element, this will be
 * the type of the constructor. For a non-static class element, this will be the type of the instance.
 * @template Value The property type of the decorated class getter.
 */
interface ClassGetterDecoratorContext<
    This = unknown,
    Value = unknown,
> {
    /** The kind of class element that was decorated. */
    readonly kind: "getter";

    /** The name of the decorated class element. */
    readonly name: string | symbol;

    /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
    readonly static: boolean;

    /** A value indicating whether the class element has a private name. */
    readonly private: boolean;

    /** An object that can be used to access the current value of the class element at runtime. */
    readonly access: {
        /**
         * Determines whether an object has a property with the same name as the decorated element.
         */
        has(object: This): boolean;
        /**
         * Invokes the getter on the provided object.
         *
         * @example
         * let value = context.access.get(instance);
         */
        get(object: This): Value;
    };

    /**
     * Adds a callback to be invoked either after static methods are defined but before
     * static initializers are run (when decorating a \`static\` element), or before instance
     * initializers are run (when decorating a non-\`static\` element).
     */
    addInitializer(initializer: (this: This) => void): void;

    readonly metadata: DecoratorMetadata;
}

/**
 * Context provided to a class setter decorator.
 * @template This The type on which the class element will be defined. For a static class element, this will be
 * the type of the constructor. For a non-static class element, this will be the type of the instance.
 * @template Value The type of the decorated class setter.
 */
interface ClassSetterDecoratorContext<
    This = unknown,
    Value = unknown,
> {
    /** The kind of class element that was decorated. */
    readonly kind: "setter";

    /** The name of the decorated class element. */
    readonly name: string | symbol;

    /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
    readonly static: boolean;

    /** A value indicating whether the class element has a private name. */
    readonly private: boolean;

    /** An object that can be used to access the current value of the class element at runtime. */
    readonly access: {
        /**
         * Determines whether an object has a property with the same name as the decorated element.
         */
        has(object: This): boolean;
        /**
         * Invokes the setter on the provided object.
         *
         * @example
         * context.access.set(instance, value);
         */
        set(object: This, value: Value): void;
    };

    /**
     * Adds a callback to be invoked either after static methods are defined but before
     * static initializers are run (when decorating a \`static\` element), or before instance
     * initializers are run (when decorating a non-\`static\` element).
     */
    addInitializer(initializer: (this: This) => void): void;

    readonly metadata: DecoratorMetadata;
}

/**
 * Context provided to a class \`accessor\` field decorator.
 * @template This The type on which the class element will be defined. For a static class element, this will be
 * the type of the constructor. For a non-static class element, this will be the type of the instance.
 * @template Value The type of decorated class field.
 */
interface ClassAccessorDecoratorContext<
    This = unknown,
    Value = unknown,
> {
    /** The kind of class element that was decorated. */
    readonly kind: "accessor";

    /** The name of the decorated class element. */
    readonly name: string | symbol;

    /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
    readonly static: boolean;

    /** A value indicating whether the class element has a private name. */
    readonly private: boolean;

    /** An object that can be used to access the current value of the class element at runtime. */
    readonly access: {
        /**
         * Determines whether an object has a property with the same name as the decorated element.
         */
        has(object: This): boolean;

        /**
         * Invokes the getter on the provided object.
         *
         * @example
         * let value = context.access.get(instance);
         */
        get(object: This): Value;

        /**
         * Invokes the setter on the provided object.
         *
         * @example
         * context.access.set(instance, value);
         */
        set(object: This, value: Value): void;
    };

    /**
     * Adds a callback to be invoked immediately after the auto \`accessor\` being
     * decorated is initialized (regardless if the \`accessor\` is \`static\` or not).
     */
    addInitializer(initializer: (this: This) => void): void;

    readonly metadata: DecoratorMetadata;
}

/**
 * Describes the target provided to class \`accessor\` field decorators.
 * @template This The \`this\` type to which the target applies.
 * @template Value The property type for the class \`accessor\` field.
 */
interface ClassAccessorDecoratorTarget<This, Value> {
    /**
     * Invokes the getter that was defined prior to decorator application.
     *
     * @example
     * let value = target.get.call(instance);
     */
    get(this: This): Value;

    /**
     * Invokes the setter that was defined prior to decorator application.
     *
     * @example
     * target.set.call(instance, value);
     */
    set(this: This, value: Value): void;
}

/**
 * Describes the allowed return value from a class \`accessor\` field decorator.
 * @template This The \`this\` type to which the target applies.
 * @template Value The property type for the class \`accessor\` field.
 */
interface ClassAccessorDecoratorResult<This, Value> {
    /**
     * An optional replacement getter function. If not provided, the existing getter function is used instead.
     */
    get?(this: This): Value;

    /**
     * An optional replacement setter function. If not provided, the existing setter function is used instead.
     */
    set?(this: This, value: Value): void;

    /**
     * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.
     * @param value The incoming initializer value.
     * @returns The replacement initializer value.
     */
    init?(this: This, value: Value): Value;
}

/**
 * Context provided to a class field decorator.
 * @template This The type on which the class element will be defined. For a static class element, this will be
 * the type of the constructor. For a non-static class element, this will be the type of the instance.
 * @template Value The type of the decorated class field.
 */
interface ClassFieldDecoratorContext<
    This = unknown,
    Value = unknown,
> {
    /** The kind of class element that was decorated. */
    readonly kind: "field";

    /** The name of the decorated class element. */
    readonly name: string | symbol;

    /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
    readonly static: boolean;

    /** A value indicating whether the class element has a private name. */
    readonly private: boolean;

    /** An object that can be used to access the current value of the class element at runtime. */
    readonly access: {
        /**
         * Determines whether an object has a property with the same name as the decorated element.
         */
        has(object: This): boolean;

        /**
         * Gets the value of the field on the provided object.
         */
        get(object: This): Value;

        /**
         * Sets the value of the field on the provided object.
         */
        set(object: This, value: Value): void;
    };

    /**
     * Adds a callback to be invoked immediately after the field being decorated
     * is initialized (regardless if the field is \`static\` or not).
     */
    addInitializer(initializer: (this: This) => void): void;

    readonly metadata: DecoratorMetadata;
}
`),
    (ji["lib.decorators.legacy.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void;
`),
    (ji["lib.dom.asynciterable.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/////////////////////////////
/// Window Async Iterable APIs
/////////////////////////////

interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
}

interface FileSystemDirectoryHandle {
    [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
    entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
    keys(): FileSystemDirectoryHandleAsyncIterator<string>;
    values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
}

interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
}

interface ReadableStream<R = any> {
    [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
    values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
}
`),
    (ji["lib.dom.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/////////////////////////////
/// Window APIs
/////////////////////////////

interface AddEventListenerOptions extends EventListenerOptions {
    once?: boolean;
    passive?: boolean;
    signal?: AbortSignal;
}

interface AddressErrors {
    addressLine?: string;
    city?: string;
    country?: string;
    dependentLocality?: string;
    organization?: string;
    phone?: string;
    postalCode?: string;
    recipient?: string;
    region?: string;
    sortingCode?: string;
}

interface AesCbcParams extends Algorithm {
    iv: BufferSource;
}

interface AesCtrParams extends Algorithm {
    counter: BufferSource;
    length: number;
}

interface AesDerivedKeyParams extends Algorithm {
    length: number;
}

interface AesGcmParams extends Algorithm {
    additionalData?: BufferSource;
    iv: BufferSource;
    tagLength?: number;
}

interface AesKeyAlgorithm extends KeyAlgorithm {
    length: number;
}

interface AesKeyGenParams extends Algorithm {
    length: number;
}

interface Algorithm {
    name: string;
}

interface AnalyserOptions extends AudioNodeOptions {
    fftSize?: number;
    maxDecibels?: number;
    minDecibels?: number;
    smoothingTimeConstant?: number;
}

interface AnimationEventInit extends EventInit {
    animationName?: string;
    elapsedTime?: number;
    pseudoElement?: string;
}

interface AnimationPlaybackEventInit extends EventInit {
    currentTime?: CSSNumberish | null;
    timelineTime?: CSSNumberish | null;
}

interface AssignedNodesOptions {
    flatten?: boolean;
}

interface AudioBufferOptions {
    length: number;
    numberOfChannels?: number;
    sampleRate: number;
}

interface AudioBufferSourceOptions {
    buffer?: AudioBuffer | null;
    detune?: number;
    loop?: boolean;
    loopEnd?: number;
    loopStart?: number;
    playbackRate?: number;
}

interface AudioConfiguration {
    bitrate?: number;
    channels?: string;
    contentType: string;
    samplerate?: number;
    spatialRendering?: boolean;
}

interface AudioContextOptions {
    latencyHint?: AudioContextLatencyCategory | number;
    sampleRate?: number;
}

interface AudioDataCopyToOptions {
    format?: AudioSampleFormat;
    frameCount?: number;
    frameOffset?: number;
    planeIndex: number;
}

interface AudioDataInit {
    data: BufferSource;
    format: AudioSampleFormat;
    numberOfChannels: number;
    numberOfFrames: number;
    sampleRate: number;
    timestamp: number;
    transfer?: ArrayBuffer[];
}

interface AudioDecoderConfig {
    codec: string;
    description?: AllowSharedBufferSource;
    numberOfChannels: number;
    sampleRate: number;
}

interface AudioDecoderInit {
    error: WebCodecsErrorCallback;
    output: AudioDataOutputCallback;
}

interface AudioDecoderSupport {
    config?: AudioDecoderConfig;
    supported?: boolean;
}

interface AudioEncoderConfig {
    bitrate?: number;
    bitrateMode?: BitrateMode;
    codec: string;
    numberOfChannels: number;
    opus?: OpusEncoderConfig;
    sampleRate: number;
}

interface AudioEncoderInit {
    error: WebCodecsErrorCallback;
    output: EncodedAudioChunkOutputCallback;
}

interface AudioEncoderSupport {
    config?: AudioEncoderConfig;
    supported?: boolean;
}

interface AudioNodeOptions {
    channelCount?: number;
    channelCountMode?: ChannelCountMode;
    channelInterpretation?: ChannelInterpretation;
}

interface AudioProcessingEventInit extends EventInit {
    inputBuffer: AudioBuffer;
    outputBuffer: AudioBuffer;
    playbackTime: number;
}

interface AudioTimestamp {
    contextTime?: number;
    performanceTime?: DOMHighResTimeStamp;
}

interface AudioWorkletNodeOptions extends AudioNodeOptions {
    numberOfInputs?: number;
    numberOfOutputs?: number;
    outputChannelCount?: number[];
    parameterData?: Record<string, number>;
    processorOptions?: any;
}

interface AuthenticationExtensionsClientInputs {
    appid?: string;
    credProps?: boolean;
    credentialProtectionPolicy?: string;
    enforceCredentialProtectionPolicy?: boolean;
    hmacCreateSecret?: boolean;
    largeBlob?: AuthenticationExtensionsLargeBlobInputs;
    minPinLength?: boolean;
    prf?: AuthenticationExtensionsPRFInputs;
}

interface AuthenticationExtensionsClientInputsJSON {
    appid?: string;
    credProps?: boolean;
    largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON;
    prf?: AuthenticationExtensionsPRFInputsJSON;
}

interface AuthenticationExtensionsClientOutputs {
    appid?: boolean;
    credProps?: CredentialPropertiesOutput;
    hmacCreateSecret?: boolean;
    largeBlob?: AuthenticationExtensionsLargeBlobOutputs;
    prf?: AuthenticationExtensionsPRFOutputs;
}

interface AuthenticationExtensionsLargeBlobInputs {
    read?: boolean;
    support?: string;
    write?: BufferSource;
}

interface AuthenticationExtensionsLargeBlobInputsJSON {
    read?: boolean;
    support?: string;
    write?: Base64URLString;
}

interface AuthenticationExtensionsLargeBlobOutputs {
    blob?: ArrayBuffer;
    supported?: boolean;
    written?: boolean;
}

interface AuthenticationExtensionsPRFInputs {
    eval?: AuthenticationExtensionsPRFValues;
    evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
}

interface AuthenticationExtensionsPRFInputsJSON {
    eval?: AuthenticationExtensionsPRFValuesJSON;
    evalByCredential?: Record<string, AuthenticationExtensionsPRFValuesJSON>;
}

interface AuthenticationExtensionsPRFOutputs {
    enabled?: boolean;
    results?: AuthenticationExtensionsPRFValues;
}

interface AuthenticationExtensionsPRFValues {
    first: BufferSource;
    second?: BufferSource;
}

interface AuthenticationExtensionsPRFValuesJSON {
    first: Base64URLString;
    second?: Base64URLString;
}

interface AuthenticatorSelectionCriteria {
    authenticatorAttachment?: AuthenticatorAttachment;
    requireResidentKey?: boolean;
    residentKey?: ResidentKeyRequirement;
    userVerification?: UserVerificationRequirement;
}

interface AvcEncoderConfig {
    format?: AvcBitstreamFormat;
}

interface BiquadFilterOptions extends AudioNodeOptions {
    Q?: number;
    detune?: number;
    frequency?: number;
    gain?: number;
    type?: BiquadFilterType;
}

interface BlobEventInit extends EventInit {
    data: Blob;
    timecode?: DOMHighResTimeStamp;
}

interface BlobPropertyBag {
    endings?: EndingType;
    type?: string;
}

interface CSSMatrixComponentOptions {
    is2D?: boolean;
}

interface CSSNumericType {
    angle?: number;
    flex?: number;
    frequency?: number;
    length?: number;
    percent?: number;
    percentHint?: CSSNumericBaseType;
    resolution?: number;
    time?: number;
}

interface CSSStyleSheetInit {
    baseURL?: string;
    disabled?: boolean;
    media?: MediaList | string;
}

interface CacheQueryOptions {
    ignoreMethod?: boolean;
    ignoreSearch?: boolean;
    ignoreVary?: boolean;
}

interface CanvasRenderingContext2DSettings {
    alpha?: boolean;
    colorSpace?: PredefinedColorSpace;
    desynchronized?: boolean;
    willReadFrequently?: boolean;
}

interface CaretPositionFromPointOptions {
    shadowRoots?: ShadowRoot[];
}

interface ChannelMergerOptions extends AudioNodeOptions {
    numberOfInputs?: number;
}

interface ChannelSplitterOptions extends AudioNodeOptions {
    numberOfOutputs?: number;
}

interface CheckVisibilityOptions {
    checkOpacity?: boolean;
    checkVisibilityCSS?: boolean;
    contentVisibilityAuto?: boolean;
    opacityProperty?: boolean;
    visibilityProperty?: boolean;
}

interface ClientQueryOptions {
    includeUncontrolled?: boolean;
    type?: ClientTypes;
}

interface ClipboardEventInit extends EventInit {
    clipboardData?: DataTransfer | null;
}

interface ClipboardItemOptions {
    presentationStyle?: PresentationStyle;
}

interface CloseEventInit extends EventInit {
    code?: number;
    reason?: string;
    wasClean?: boolean;
}

interface CompositionEventInit extends UIEventInit {
    data?: string;
}

interface ComputedEffectTiming extends EffectTiming {
    activeDuration?: CSSNumberish;
    currentIteration?: number | null;
    endTime?: CSSNumberish;
    localTime?: CSSNumberish | null;
    progress?: number | null;
    startTime?: CSSNumberish;
}

interface ComputedKeyframe {
    composite: CompositeOperationOrAuto;
    computedOffset: number;
    easing: string;
    offset: number | null;
    [property: string]: string | number | null | undefined;
}

interface ConstantSourceOptions {
    offset?: number;
}

interface ConstrainBooleanParameters {
    exact?: boolean;
    ideal?: boolean;
}

interface ConstrainDOMStringParameters {
    exact?: string | string[];
    ideal?: string | string[];
}

interface ConstrainDoubleRange extends DoubleRange {
    exact?: number;
    ideal?: number;
}

interface ConstrainULongRange extends ULongRange {
    exact?: number;
    ideal?: number;
}

interface ContentVisibilityAutoStateChangeEventInit extends EventInit {
    skipped?: boolean;
}

interface ConvolverOptions extends AudioNodeOptions {
    buffer?: AudioBuffer | null;
    disableNormalization?: boolean;
}

interface CookieChangeEventInit extends EventInit {
    changed?: CookieList;
    deleted?: CookieList;
}

interface CookieInit {
    domain?: string | null;
    expires?: DOMHighResTimeStamp | null;
    name: string;
    partitioned?: boolean;
    path?: string;
    sameSite?: CookieSameSite;
    value: string;
}

interface CookieListItem {
    name?: string;
    value?: string;
}

interface CookieStoreDeleteOptions {
    domain?: string | null;
    name: string;
    partitioned?: boolean;
    path?: string;
}

interface CookieStoreGetOptions {
    name?: string;
    url?: string;
}

interface CredentialCreationOptions {
    publicKey?: PublicKeyCredentialCreationOptions;
    signal?: AbortSignal;
}

interface CredentialPropertiesOutput {
    rk?: boolean;
}

interface CredentialRequestOptions {
    mediation?: CredentialMediationRequirement;
    publicKey?: PublicKeyCredentialRequestOptions;
    signal?: AbortSignal;
}

interface CryptoKeyPair {
    privateKey: CryptoKey;
    publicKey: CryptoKey;
}

interface CustomEventInit<T = any> extends EventInit {
    detail?: T;
}

interface DOMMatrix2DInit {
    a?: number;
    b?: number;
    c?: number;
    d?: number;
    e?: number;
    f?: number;
    m11?: number;
    m12?: number;
    m21?: number;
    m22?: number;
    m41?: number;
    m42?: number;
}

interface DOMMatrixInit extends DOMMatrix2DInit {
    is2D?: boolean;
    m13?: number;
    m14?: number;
    m23?: number;
    m24?: number;
    m31?: number;
    m32?: number;
    m33?: number;
    m34?: number;
    m43?: number;
    m44?: number;
}

interface DOMPointInit {
    w?: number;
    x?: number;
    y?: number;
    z?: number;
}

interface DOMQuadInit {
    p1?: DOMPointInit;
    p2?: DOMPointInit;
    p3?: DOMPointInit;
    p4?: DOMPointInit;
}

interface DOMRectInit {
    height?: number;
    width?: number;
    x?: number;
    y?: number;
}

interface DelayOptions extends AudioNodeOptions {
    delayTime?: number;
    maxDelayTime?: number;
}

interface DeviceMotionEventAccelerationInit {
    x?: number | null;
    y?: number | null;
    z?: number | null;
}

interface DeviceMotionEventInit extends EventInit {
    acceleration?: DeviceMotionEventAccelerationInit;
    accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;
    interval?: number;
    rotationRate?: DeviceMotionEventRotationRateInit;
}

interface DeviceMotionEventRotationRateInit {
    alpha?: number | null;
    beta?: number | null;
    gamma?: number | null;
}

interface DeviceOrientationEventInit extends EventInit {
    absolute?: boolean;
    alpha?: number | null;
    beta?: number | null;
    gamma?: number | null;
}

interface DisplayMediaStreamOptions {
    audio?: boolean | MediaTrackConstraints;
    video?: boolean | MediaTrackConstraints;
}

interface DocumentTimelineOptions {
    originTime?: DOMHighResTimeStamp;
}

interface DoubleRange {
    max?: number;
    min?: number;
}

interface DragEventInit extends MouseEventInit {
    dataTransfer?: DataTransfer | null;
}

interface DynamicsCompressorOptions extends AudioNodeOptions {
    attack?: number;
    knee?: number;
    ratio?: number;
    release?: number;
    threshold?: number;
}

interface EcKeyAlgorithm extends KeyAlgorithm {
    namedCurve: NamedCurve;
}

interface EcKeyGenParams extends Algorithm {
    namedCurve: NamedCurve;
}

interface EcKeyImportParams extends Algorithm {
    namedCurve: NamedCurve;
}

interface EcdhKeyDeriveParams extends Algorithm {
    public: CryptoKey;
}

interface EcdsaParams extends Algorithm {
    hash: HashAlgorithmIdentifier;
}

interface EffectTiming {
    delay?: number;
    direction?: PlaybackDirection;
    duration?: number | CSSNumericValue | string;
    easing?: string;
    endDelay?: number;
    fill?: FillMode;
    iterationStart?: number;
    iterations?: number;
    playbackRate?: number;
}

interface ElementCreationOptions {
    customElementRegistry?: CustomElementRegistry;
    is?: string;
}

interface ElementDefinitionOptions {
    extends?: string;
}

interface EncodedAudioChunkInit {
    data: AllowSharedBufferSource;
    duration?: number;
    timestamp: number;
    transfer?: ArrayBuffer[];
    type: EncodedAudioChunkType;
}

interface EncodedAudioChunkMetadata {
    decoderConfig?: AudioDecoderConfig;
}

interface EncodedVideoChunkInit {
    data: AllowSharedBufferSource;
    duration?: number;
    timestamp: number;
    type: EncodedVideoChunkType;
}

interface EncodedVideoChunkMetadata {
    decoderConfig?: VideoDecoderConfig;
}

interface ErrorEventInit extends EventInit {
    colno?: number;
    error?: any;
    filename?: string;
    lineno?: number;
    message?: string;
}

interface EventInit {
    bubbles?: boolean;
    cancelable?: boolean;
    composed?: boolean;
}

interface EventListenerOptions {
    capture?: boolean;
}

interface EventModifierInit extends UIEventInit {
    altKey?: boolean;
    ctrlKey?: boolean;
    metaKey?: boolean;
    modifierAltGraph?: boolean;
    modifierCapsLock?: boolean;
    modifierFn?: boolean;
    modifierFnLock?: boolean;
    modifierHyper?: boolean;
    modifierNumLock?: boolean;
    modifierScrollLock?: boolean;
    modifierSuper?: boolean;
    modifierSymbol?: boolean;
    modifierSymbolLock?: boolean;
    shiftKey?: boolean;
}

interface EventSourceInit {
    withCredentials?: boolean;
}

interface FilePropertyBag extends BlobPropertyBag {
    lastModified?: number;
}

interface FileSystemCreateWritableOptions {
    keepExistingData?: boolean;
}

interface FileSystemFlags {
    create?: boolean;
    exclusive?: boolean;
}

interface FileSystemGetDirectoryOptions {
    create?: boolean;
}

interface FileSystemGetFileOptions {
    create?: boolean;
}

interface FileSystemRemoveOptions {
    recursive?: boolean;
}

interface FocusEventInit extends UIEventInit {
    relatedTarget?: EventTarget | null;
}

interface FocusOptions {
    preventScroll?: boolean;
}

interface FontFaceDescriptors {
    ascentOverride?: string;
    descentOverride?: string;
    display?: FontDisplay;
    featureSettings?: string;
    lineGapOverride?: string;
    stretch?: string;
    style?: string;
    unicodeRange?: string;
    weight?: string;
}

interface FontFaceSetLoadEventInit extends EventInit {
    fontfaces?: FontFace[];
}

interface FormDataEventInit extends EventInit {
    formData: FormData;
}

interface FullscreenOptions {
    navigationUI?: FullscreenNavigationUI;
}

interface GainOptions extends AudioNodeOptions {
    gain?: number;
}

interface GamepadEffectParameters {
    duration?: number;
    leftTrigger?: number;
    rightTrigger?: number;
    startDelay?: number;
    strongMagnitude?: number;
    weakMagnitude?: number;
}

interface GamepadEventInit extends EventInit {
    gamepad: Gamepad;
}

interface GetAnimationsOptions {
    subtree?: boolean;
}

interface GetComposedRangesOptions {
    shadowRoots?: ShadowRoot[];
}

interface GetHTMLOptions {
    serializableShadowRoots?: boolean;
    shadowRoots?: ShadowRoot[];
}

interface GetNotificationOptions {
    tag?: string;
}

interface GetRootNodeOptions {
    composed?: boolean;
}

interface HashChangeEventInit extends EventInit {
    newURL?: string;
    oldURL?: string;
}

interface HkdfParams extends Algorithm {
    hash: HashAlgorithmIdentifier;
    info: BufferSource;
    salt: BufferSource;
}

interface HmacImportParams extends Algorithm {
    hash: HashAlgorithmIdentifier;
    length?: number;
}

interface HmacKeyAlgorithm extends KeyAlgorithm {
    hash: KeyAlgorithm;
    length: number;
}

interface HmacKeyGenParams extends Algorithm {
    hash: HashAlgorithmIdentifier;
    length?: number;
}

interface IDBDatabaseInfo {
    name?: string;
    version?: number;
}

interface IDBIndexParameters {
    multiEntry?: boolean;
    unique?: boolean;
}

interface IDBObjectStoreParameters {
    autoIncrement?: boolean;
    keyPath?: string | string[] | null;
}

interface IDBTransactionOptions {
    durability?: IDBTransactionDurability;
}

interface IDBVersionChangeEventInit extends EventInit {
    newVersion?: number | null;
    oldVersion?: number;
}

interface IIRFilterOptions extends AudioNodeOptions {
    feedback: number[];
    feedforward: number[];
}

interface IdleRequestOptions {
    timeout?: number;
}

interface ImageBitmapOptions {
    colorSpaceConversion?: ColorSpaceConversion;
    imageOrientation?: ImageOrientation;
    premultiplyAlpha?: PremultiplyAlpha;
    resizeHeight?: number;
    resizeQuality?: ResizeQuality;
    resizeWidth?: number;
}

interface ImageBitmapRenderingContextSettings {
    alpha?: boolean;
}

interface ImageDataSettings {
    colorSpace?: PredefinedColorSpace;
}

interface ImageDecodeOptions {
    completeFramesOnly?: boolean;
    frameIndex?: number;
}

interface ImageDecodeResult {
    complete: boolean;
    image: VideoFrame;
}

interface ImageDecoderInit {
    colorSpaceConversion?: ColorSpaceConversion;
    data: ImageBufferSource;
    desiredHeight?: number;
    desiredWidth?: number;
    preferAnimation?: boolean;
    transfer?: ArrayBuffer[];
    type: string;
}

interface ImageEncodeOptions {
    quality?: number;
    type?: string;
}

interface ImportNodeOptions {
    customElementRegistry?: CustomElementRegistry;
    selfOnly?: boolean;
}

interface InputEventInit extends UIEventInit {
    data?: string | null;
    dataTransfer?: DataTransfer | null;
    inputType?: string;
    isComposing?: boolean;
    targetRanges?: StaticRange[];
}

interface IntersectionObserverInit {
    root?: Element | Document | null;
    rootMargin?: string;
    threshold?: number | number[];
}

interface JsonWebKey {
    alg?: string;
    crv?: string;
    d?: string;
    dp?: string;
    dq?: string;
    e?: string;
    ext?: boolean;
    k?: string;
    key_ops?: string[];
    kty?: string;
    n?: string;
    oth?: RsaOtherPrimesInfo[];
    p?: string;
    q?: string;
    qi?: string;
    use?: string;
    x?: string;
    y?: string;
}

interface KeyAlgorithm {
    name: string;
}

interface KeySystemTrackConfiguration {
    robustness?: string;
}

interface KeyboardEventInit extends EventModifierInit {
    /** @deprecated */
    charCode?: number;
    code?: string;
    isComposing?: boolean;
    key?: string;
    /** @deprecated */
    keyCode?: number;
    location?: number;
    repeat?: boolean;
}

interface Keyframe {
    composite?: CompositeOperationOrAuto;
    easing?: string;
    offset?: number | null;
    [property: string]: string | number | null | undefined;
}

interface KeyframeAnimationOptions extends KeyframeEffectOptions {
    id?: string;
    timeline?: AnimationTimeline | null;
}

interface KeyframeEffectOptions extends EffectTiming {
    composite?: CompositeOperation;
    iterationComposite?: IterationCompositeOperation;
    pseudoElement?: string | null;
}

interface LockInfo {
    clientId?: string;
    mode?: LockMode;
    name?: string;
}

interface LockManagerSnapshot {
    held?: LockInfo[];
    pending?: LockInfo[];
}

interface LockOptions {
    ifAvailable?: boolean;
    mode?: LockMode;
    signal?: AbortSignal;
    steal?: boolean;
}

interface MIDIConnectionEventInit extends EventInit {
    port?: MIDIPort;
}

interface MIDIMessageEventInit extends EventInit {
    data?: Uint8Array<ArrayBuffer>;
}

interface MIDIOptions {
    software?: boolean;
    sysex?: boolean;
}

interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
    keySystemAccess: MediaKeySystemAccess | null;
}

interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
}

interface MediaCapabilitiesInfo {
    powerEfficient: boolean;
    smooth: boolean;
    supported: boolean;
}

interface MediaCapabilitiesKeySystemConfiguration {
    audio?: KeySystemTrackConfiguration;
    distinctiveIdentifier?: MediaKeysRequirement;
    initDataType?: string;
    keySystem: string;
    persistentState?: MediaKeysRequirement;
    sessionTypes?: string[];
    video?: KeySystemTrackConfiguration;
}

interface MediaConfiguration {
    audio?: AudioConfiguration;
    video?: VideoConfiguration;
}

interface MediaDecodingConfiguration extends MediaConfiguration {
    keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
    type: MediaDecodingType;
}

interface MediaElementAudioSourceOptions {
    mediaElement: HTMLMediaElement;
}

interface MediaEncodingConfiguration extends MediaConfiguration {
    type: MediaEncodingType;
}

interface MediaEncryptedEventInit extends EventInit {
    initData?: ArrayBuffer | null;
    initDataType?: string;
}

interface MediaImage {
    sizes?: string;
    src: string;
    type?: string;
}

interface MediaKeyMessageEventInit extends EventInit {
    message: ArrayBuffer;
    messageType: MediaKeyMessageType;
}

interface MediaKeySystemConfiguration {
    audioCapabilities?: MediaKeySystemMediaCapability[];
    distinctiveIdentifier?: MediaKeysRequirement;
    initDataTypes?: string[];
    label?: string;
    persistentState?: MediaKeysRequirement;
    sessionTypes?: string[];
    videoCapabilities?: MediaKeySystemMediaCapability[];
}

interface MediaKeySystemMediaCapability {
    contentType?: string;
    encryptionScheme?: string | null;
    robustness?: string;
}

interface MediaKeysPolicy {
    minHdcpVersion?: string;
}

interface MediaMetadataInit {
    album?: string;
    artist?: string;
    artwork?: MediaImage[];
    title?: string;
}

interface MediaPositionState {
    duration?: number;
    playbackRate?: number;
    position?: number;
}

interface MediaQueryListEventInit extends EventInit {
    matches?: boolean;
    media?: string;
}

interface MediaRecorderOptions {
    audioBitsPerSecond?: number;
    bitsPerSecond?: number;
    mimeType?: string;
    videoBitsPerSecond?: number;
}

interface MediaSessionActionDetails {
    action: MediaSessionAction;
    fastSeek?: boolean;
    seekOffset?: number;
    seekTime?: number;
}

interface MediaSettingsRange {
    max?: number;
    min?: number;
    step?: number;
}

interface MediaStreamAudioSourceOptions {
    mediaStream: MediaStream;
}

interface MediaStreamConstraints {
    audio?: boolean | MediaTrackConstraints;
    peerIdentity?: string;
    preferCurrentTab?: boolean;
    video?: boolean | MediaTrackConstraints;
}

interface MediaStreamTrackEventInit extends EventInit {
    track: MediaStreamTrack;
}

interface MediaTrackCapabilities {
    aspectRatio?: DoubleRange;
    autoGainControl?: boolean[];
    backgroundBlur?: boolean[];
    channelCount?: ULongRange;
    deviceId?: string;
    displaySurface?: string;
    echoCancellation?: boolean[];
    facingMode?: string[];
    frameRate?: DoubleRange;
    groupId?: string;
    height?: ULongRange;
    noiseSuppression?: boolean[];
    sampleRate?: ULongRange;
    sampleSize?: ULongRange;
    width?: ULongRange;
}

interface MediaTrackConstraintSet {
    aspectRatio?: ConstrainDouble;
    autoGainControl?: ConstrainBoolean;
    backgroundBlur?: ConstrainBoolean;
    channelCount?: ConstrainULong;
    deviceId?: ConstrainDOMString;
    displaySurface?: ConstrainDOMString;
    echoCancellation?: ConstrainBoolean;
    facingMode?: ConstrainDOMString;
    frameRate?: ConstrainDouble;
    groupId?: ConstrainDOMString;
    height?: ConstrainULong;
    noiseSuppression?: ConstrainBoolean;
    sampleRate?: ConstrainULong;
    sampleSize?: ConstrainULong;
    width?: ConstrainULong;
}

interface MediaTrackConstraints extends MediaTrackConstraintSet {
    advanced?: MediaTrackConstraintSet[];
}

interface MediaTrackSettings {
    aspectRatio?: number;
    autoGainControl?: boolean;
    backgroundBlur?: boolean;
    channelCount?: number;
    deviceId?: string;
    displaySurface?: string;
    echoCancellation?: boolean;
    facingMode?: string;
    frameRate?: number;
    groupId?: string;
    height?: number;
    noiseSuppression?: boolean;
    sampleRate?: number;
    sampleSize?: number;
    torch?: boolean;
    whiteBalanceMode?: string;
    width?: number;
    zoom?: number;
}

interface MediaTrackSupportedConstraints {
    aspectRatio?: boolean;
    autoGainControl?: boolean;
    backgroundBlur?: boolean;
    channelCount?: boolean;
    deviceId?: boolean;
    displaySurface?: boolean;
    echoCancellation?: boolean;
    facingMode?: boolean;
    frameRate?: boolean;
    groupId?: boolean;
    height?: boolean;
    noiseSuppression?: boolean;
    sampleRate?: boolean;
    sampleSize?: boolean;
    width?: boolean;
}

interface MessageEventInit<T = any> extends EventInit {
    data?: T;
    lastEventId?: string;
    origin?: string;
    ports?: MessagePort[];
    source?: MessageEventSource | null;
}

interface MouseEventInit extends EventModifierInit {
    button?: number;
    buttons?: number;
    clientX?: number;
    clientY?: number;
    movementX?: number;
    movementY?: number;
    relatedTarget?: EventTarget | null;
    screenX?: number;
    screenY?: number;
}

interface MultiCacheQueryOptions extends CacheQueryOptions {
    cacheName?: string;
}

interface MutationObserverInit {
    /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */
    attributeFilter?: string[];
    /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */
    attributeOldValue?: boolean;
    /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */
    attributes?: boolean;
    /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */
    characterData?: boolean;
    /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */
    characterDataOldValue?: boolean;
    /** Set to true if mutations to target's children are to be observed. */
    childList?: boolean;
    /** Set to true if mutations to not just target, but also target's descendants are to be observed. */
    subtree?: boolean;
}

interface NavigationPreloadState {
    enabled?: boolean;
    headerValue?: string;
}

interface NotificationOptions {
    badge?: string;
    body?: string;
    data?: any;
    dir?: NotificationDirection;
    icon?: string;
    lang?: string;
    requireInteraction?: boolean;
    silent?: boolean | null;
    tag?: string;
}

interface OfflineAudioCompletionEventInit extends EventInit {
    renderedBuffer: AudioBuffer;
}

interface OfflineAudioContextOptions {
    length: number;
    numberOfChannels?: number;
    sampleRate: number;
}

interface OptionalEffectTiming {
    delay?: number;
    direction?: PlaybackDirection;
    duration?: number | string;
    easing?: string;
    endDelay?: number;
    fill?: FillMode;
    iterationStart?: number;
    iterations?: number;
    playbackRate?: number;
}

interface OpusEncoderConfig {
    complexity?: number;
    format?: OpusBitstreamFormat;
    frameDuration?: number;
    packetlossperc?: number;
    usedtx?: boolean;
    useinbandfec?: boolean;
}

interface OscillatorOptions extends AudioNodeOptions {
    detune?: number;
    frequency?: number;
    periodicWave?: PeriodicWave;
    type?: OscillatorType;
}

interface PageRevealEventInit extends EventInit {
    viewTransition?: ViewTransition | null;
}

interface PageSwapEventInit extends EventInit {
    activation?: NavigationActivation | null;
    viewTransition?: ViewTransition | null;
}

interface PageTransitionEventInit extends EventInit {
    persisted?: boolean;
}

interface PannerOptions extends AudioNodeOptions {
    coneInnerAngle?: number;
    coneOuterAngle?: number;
    coneOuterGain?: number;
    distanceModel?: DistanceModelType;
    maxDistance?: number;
    orientationX?: number;
    orientationY?: number;
    orientationZ?: number;
    panningModel?: PanningModelType;
    positionX?: number;
    positionY?: number;
    positionZ?: number;
    refDistance?: number;
    rolloffFactor?: number;
}

interface PayerErrors {
    email?: string;
    name?: string;
    phone?: string;
}

interface PaymentCurrencyAmount {
    currency: string;
    value: string;
}

interface PaymentDetailsBase {
    displayItems?: PaymentItem[];
    modifiers?: PaymentDetailsModifier[];
    shippingOptions?: PaymentShippingOption[];
}

interface PaymentDetailsInit extends PaymentDetailsBase {
    id?: string;
    total: PaymentItem;
}

interface PaymentDetailsModifier {
    additionalDisplayItems?: PaymentItem[];
    data?: any;
    supportedMethods: string;
    total?: PaymentItem;
}

interface PaymentDetailsUpdate extends PaymentDetailsBase {
    error?: string;
    paymentMethodErrors?: any;
    shippingAddressErrors?: AddressErrors;
    total?: PaymentItem;
}

interface PaymentItem {
    amount: PaymentCurrencyAmount;
    label: string;
    pending?: boolean;
}

interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
    methodDetails?: any;
    methodName?: string;
}

interface PaymentMethodData {
    data?: any;
    supportedMethods: string;
}

interface PaymentOptions {
    requestPayerEmail?: boolean;
    requestPayerName?: boolean;
    requestPayerPhone?: boolean;
    requestShipping?: boolean;
    shippingType?: PaymentShippingType;
}

interface PaymentRequestUpdateEventInit extends EventInit {
}

interface PaymentShippingOption {
    amount: PaymentCurrencyAmount;
    id: string;
    label: string;
    selected?: boolean;
}

interface PaymentValidationErrors {
    error?: string;
    payer?: PayerErrors;
    shippingAddress?: AddressErrors;
}

interface Pbkdf2Params extends Algorithm {
    hash: HashAlgorithmIdentifier;
    iterations: number;
    salt: BufferSource;
}

interface PerformanceMarkOptions {
    detail?: any;
    startTime?: DOMHighResTimeStamp;
}

interface PerformanceMeasureOptions {
    detail?: any;
    duration?: DOMHighResTimeStamp;
    end?: string | DOMHighResTimeStamp;
    start?: string | DOMHighResTimeStamp;
}

interface PerformanceObserverInit {
    buffered?: boolean;
    entryTypes?: string[];
    type?: string;
}

interface PeriodicWaveConstraints {
    disableNormalization?: boolean;
}

interface PeriodicWaveOptions extends PeriodicWaveConstraints {
    imag?: number[] | Float32Array;
    real?: number[] | Float32Array;
}

interface PermissionDescriptor {
    name: PermissionName;
}

interface PhotoCapabilities {
    fillLightMode?: FillLightMode[];
    imageHeight?: MediaSettingsRange;
    imageWidth?: MediaSettingsRange;
    redEyeReduction?: RedEyeReduction;
}

interface PhotoSettings {
    fillLightMode?: FillLightMode;
    imageHeight?: number;
    imageWidth?: number;
    redEyeReduction?: boolean;
}

interface PictureInPictureEventInit extends EventInit {
    pictureInPictureWindow: PictureInPictureWindow;
}

interface PlaneLayout {
    offset: number;
    stride: number;
}

interface PointerEventInit extends MouseEventInit {
    altitudeAngle?: number;
    azimuthAngle?: number;
    coalescedEvents?: PointerEvent[];
    height?: number;
    isPrimary?: boolean;
    pointerId?: number;
    pointerType?: string;
    predictedEvents?: PointerEvent[];
    pressure?: number;
    tangentialPressure?: number;
    tiltX?: number;
    tiltY?: number;
    twist?: number;
    width?: number;
}

interface PointerLockOptions {
    unadjustedMovement?: boolean;
}

interface PopStateEventInit extends EventInit {
    state?: any;
}

interface PositionOptions {
    enableHighAccuracy?: boolean;
    maximumAge?: number;
    timeout?: number;
}

interface ProgressEventInit extends EventInit {
    lengthComputable?: boolean;
    loaded?: number;
    total?: number;
}

interface PromiseRejectionEventInit extends EventInit {
    promise: Promise<any>;
    reason?: any;
}

interface PropertyDefinition {
    inherits: boolean;
    initialValue?: string;
    name: string;
    syntax?: string;
}

interface PropertyIndexedKeyframes {
    composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
    easing?: string | string[];
    offset?: number | (number | null)[];
    [property: string]: string | string[] | number | null | (number | null)[] | undefined;
}

interface PublicKeyCredentialCreationOptions {
    attestation?: AttestationConveyancePreference;
    authenticatorSelection?: AuthenticatorSelectionCriteria;
    challenge: BufferSource;
    excludeCredentials?: PublicKeyCredentialDescriptor[];
    extensions?: AuthenticationExtensionsClientInputs;
    pubKeyCredParams: PublicKeyCredentialParameters[];
    rp: PublicKeyCredentialRpEntity;
    timeout?: number;
    user: PublicKeyCredentialUserEntity;
}

interface PublicKeyCredentialCreationOptionsJSON {
    attestation?: string;
    authenticatorSelection?: AuthenticatorSelectionCriteria;
    challenge: Base64URLString;
    excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
    extensions?: AuthenticationExtensionsClientInputsJSON;
    hints?: string[];
    pubKeyCredParams: PublicKeyCredentialParameters[];
    rp: PublicKeyCredentialRpEntity;
    timeout?: number;
    user: PublicKeyCredentialUserEntityJSON;
}

interface PublicKeyCredentialDescriptor {
    id: BufferSource;
    transports?: AuthenticatorTransport[];
    type: PublicKeyCredentialType;
}

interface PublicKeyCredentialDescriptorJSON {
    id: Base64URLString;
    transports?: string[];
    type: string;
}

interface PublicKeyCredentialEntity {
    name: string;
}

interface PublicKeyCredentialParameters {
    alg: COSEAlgorithmIdentifier;
    type: PublicKeyCredentialType;
}

interface PublicKeyCredentialRequestOptions {
    allowCredentials?: PublicKeyCredentialDescriptor[];
    challenge: BufferSource;
    extensions?: AuthenticationExtensionsClientInputs;
    rpId?: string;
    timeout?: number;
    userVerification?: UserVerificationRequirement;
}

interface PublicKeyCredentialRequestOptionsJSON {
    allowCredentials?: PublicKeyCredentialDescriptorJSON[];
    challenge: Base64URLString;
    extensions?: AuthenticationExtensionsClientInputsJSON;
    hints?: string[];
    rpId?: string;
    timeout?: number;
    userVerification?: string;
}

interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
    id?: string;
}

interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
    displayName: string;
    id: BufferSource;
}

interface PublicKeyCredentialUserEntityJSON {
    displayName: string;
    id: Base64URLString;
    name: string;
}

interface PushSubscriptionJSON {
    endpoint?: string;
    expirationTime?: EpochTimeStamp | null;
    keys?: Record<string, string>;
}

interface PushSubscriptionOptionsInit {
    applicationServerKey?: BufferSource | string | null;
    userVisibleOnly?: boolean;
}

interface QueuingStrategy<T = any> {
    highWaterMark?: number;
    size?: QueuingStrategySize<T>;
}

interface QueuingStrategyInit {
    /**
     * Creates a new ByteLengthQueuingStrategy with the provided high water mark.
     *
     * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
     */
    highWaterMark: number;
}

interface RTCAnswerOptions extends RTCOfferAnswerOptions {
}

interface RTCCertificateExpiration {
    expires?: number;
}

interface RTCConfiguration {
    bundlePolicy?: RTCBundlePolicy;
    certificates?: RTCCertificate[];
    iceCandidatePoolSize?: number;
    iceServers?: RTCIceServer[];
    iceTransportPolicy?: RTCIceTransportPolicy;
    rtcpMuxPolicy?: RTCRtcpMuxPolicy;
}

interface RTCDTMFToneChangeEventInit extends EventInit {
    tone?: string;
}

interface RTCDataChannelEventInit extends EventInit {
    channel: RTCDataChannel;
}

interface RTCDataChannelInit {
    id?: number;
    maxPacketLifeTime?: number;
    maxRetransmits?: number;
    negotiated?: boolean;
    ordered?: boolean;
    protocol?: string;
}

interface RTCDtlsFingerprint {
    algorithm?: string;
    value?: string;
}

interface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {
    sequenceNumber?: number;
}

interface RTCEncodedFrameMetadata {
    contributingSources?: number[];
    mimeType?: string;
    payloadType?: number;
    rtpTimestamp?: number;
    synchronizationSource?: number;
}

interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
    dependencies?: number[];
    frameId?: number;
    height?: number;
    spatialIndex?: number;
    temporalIndex?: number;
    timestamp?: number;
    width?: number;
}

interface RTCErrorEventInit extends EventInit {
    error: RTCError;
}

interface RTCErrorInit {
    errorDetail: RTCErrorDetailType;
    httpRequestStatusCode?: number;
    receivedAlert?: number;
    sctpCauseCode?: number;
    sdpLineNumber?: number;
    sentAlert?: number;
}

interface RTCIceCandidateInit {
    candidate?: string;
    sdpMLineIndex?: number | null;
    sdpMid?: string | null;
    usernameFragment?: string | null;
}

interface RTCIceCandidatePairStats extends RTCStats {
    availableIncomingBitrate?: number;
    availableOutgoingBitrate?: number;
    bytesDiscardedOnSend?: number;
    bytesReceived?: number;
    bytesSent?: number;
    consentRequestsSent?: number;
    currentRoundTripTime?: number;
    lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
    lastPacketSentTimestamp?: DOMHighResTimeStamp;
    localCandidateId: string;
    nominated?: boolean;
    packetsDiscardedOnSend?: number;
    packetsReceived?: number;
    packetsSent?: number;
    remoteCandidateId: string;
    requestsReceived?: number;
    requestsSent?: number;
    responsesReceived?: number;
    responsesSent?: number;
    state: RTCStatsIceCandidatePairState;
    totalRoundTripTime?: number;
    transportId: string;
}

interface RTCIceServer {
    credential?: string;
    urls: string | string[];
    username?: string;
}

interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
    audioLevel?: number;
    bytesReceived?: number;
    concealedSamples?: number;
    concealmentEvents?: number;
    decoderImplementation?: string;
    estimatedPlayoutTimestamp?: DOMHighResTimeStamp;
    fecBytesReceived?: number;
    fecPacketsDiscarded?: number;
    fecPacketsReceived?: number;
    fecSsrc?: number;
    firCount?: number;
    frameHeight?: number;
    frameWidth?: number;
    framesAssembledFromMultiplePackets?: number;
    framesDecoded?: number;
    framesDropped?: number;
    framesPerSecond?: number;
    framesReceived?: number;
    framesRendered?: number;
    freezeCount?: number;
    headerBytesReceived?: number;
    insertedSamplesForDeceleration?: number;
    jitterBufferDelay?: number;
    jitterBufferEmittedCount?: number;
    jitterBufferMinimumDelay?: number;
    jitterBufferTargetDelay?: number;
    keyFramesDecoded?: number;
    lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
    mid?: string;
    nackCount?: number;
    packetsDiscarded?: number;
    pauseCount?: number;
    playoutId?: string;
    pliCount?: number;
    qpSum?: number;
    remoteId?: string;
    removedSamplesForAcceleration?: number;
    retransmittedBytesReceived?: number;
    retransmittedPacketsReceived?: number;
    rtxSsrc?: number;
    silentConcealedSamples?: number;
    totalAssemblyTime?: number;
    totalAudioEnergy?: number;
    totalDecodeTime?: number;
    totalFreezesDuration?: number;
    totalInterFrameDelay?: number;
    totalPausesDuration?: number;
    totalProcessingDelay?: number;
    totalSamplesDuration?: number;
    totalSamplesReceived?: number;
    totalSquaredInterFrameDelay?: number;
    trackIdentifier: string;
}

interface RTCLocalIceCandidateInit extends RTCIceCandidateInit {
}

interface RTCLocalSessionDescriptionInit {
    sdp?: string;
    type?: RTCSdpType;
}

interface RTCOfferAnswerOptions {
}

interface RTCOfferOptions extends RTCOfferAnswerOptions {
    iceRestart?: boolean;
    offerToReceiveAudio?: boolean;
    offerToReceiveVideo?: boolean;
}

interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
    active?: boolean;
    firCount?: number;
    frameHeight?: number;
    frameWidth?: number;
    framesEncoded?: number;
    framesPerSecond?: number;
    framesSent?: number;
    headerBytesSent?: number;
    hugeFramesSent?: number;
    keyFramesEncoded?: number;
    mediaSourceId?: string;
    mid?: string;
    nackCount?: number;
    pliCount?: number;
    qpSum?: number;
    qualityLimitationDurations?: Record<string, number>;
    qualityLimitationReason?: RTCQualityLimitationReason;
    qualityLimitationResolutionChanges?: number;
    remoteId?: string;
    retransmittedBytesSent?: number;
    retransmittedPacketsSent?: number;
    rid?: string;
    rtxSsrc?: number;
    scalabilityMode?: string;
    targetBitrate?: number;
    totalEncodeTime?: number;
    totalEncodedBytesTarget?: number;
    totalPacketSendDelay?: number;
}

interface RTCPeerConnectionIceErrorEventInit extends EventInit {
    address?: string | null;
    errorCode: number;
    errorText?: string;
    port?: number | null;
    url?: string;
}

interface RTCPeerConnectionIceEventInit extends EventInit {
    candidate?: RTCIceCandidate | null;
}

interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
    jitter?: number;
    packetsLost?: number;
    packetsReceived?: number;
}

interface RTCRtcpParameters {
    cname?: string;
    reducedSize?: boolean;
}

interface RTCRtpCapabilities {
    codecs: RTCRtpCodec[];
    headerExtensions: RTCRtpHeaderExtensionCapability[];
}

interface RTCRtpCodec {
    channels?: number;
    clockRate: number;
    mimeType: string;
    sdpFmtpLine?: string;
}

interface RTCRtpCodecParameters extends RTCRtpCodec {
    payloadType: number;
}

interface RTCRtpCodingParameters {
    rid?: string;
}

interface RTCRtpContributingSource {
    audioLevel?: number;
    rtpTimestamp: number;
    source: number;
    timestamp: DOMHighResTimeStamp;
}

interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
    active?: boolean;
    maxBitrate?: number;
    maxFramerate?: number;
    networkPriority?: RTCPriorityType;
    priority?: RTCPriorityType;
    scaleResolutionDownBy?: number;
}

interface RTCRtpHeaderExtensionCapability {
    uri: string;
}

interface RTCRtpHeaderExtensionParameters {
    encrypted?: boolean;
    id: number;
    uri: string;
}

interface RTCRtpParameters {
    codecs: RTCRtpCodecParameters[];
    headerExtensions: RTCRtpHeaderExtensionParameters[];
    rtcp: RTCRtcpParameters;
}

interface RTCRtpReceiveParameters extends RTCRtpParameters {
}

interface RTCRtpSendParameters extends RTCRtpParameters {
    degradationPreference?: RTCDegradationPreference;
    encodings: RTCRtpEncodingParameters[];
    transactionId: string;
}

interface RTCRtpStreamStats extends RTCStats {
    codecId?: string;
    kind: string;
    ssrc: number;
    transportId?: string;
}

interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
}

interface RTCRtpTransceiverInit {
    direction?: RTCRtpTransceiverDirection;
    sendEncodings?: RTCRtpEncodingParameters[];
    streams?: MediaStream[];
}

interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
    bytesSent?: number;
    packetsSent?: number;
}

interface RTCSessionDescriptionInit {
    sdp?: string;
    type: RTCSdpType;
}

interface RTCSetParameterOptions {
}

interface RTCStats {
    id: string;
    timestamp: DOMHighResTimeStamp;
    type: RTCStatsType;
}

interface RTCTrackEventInit extends EventInit {
    receiver: RTCRtpReceiver;
    streams?: MediaStream[];
    track: MediaStreamTrack;
    transceiver: RTCRtpTransceiver;
}

interface RTCTransportStats extends RTCStats {
    bytesReceived?: number;
    bytesSent?: number;
    dtlsCipher?: string;
    dtlsRole?: RTCDtlsRole;
    dtlsState: RTCDtlsTransportState;
    iceLocalUsernameFragment?: string;
    iceRole?: RTCIceRole;
    iceState?: RTCIceTransportState;
    localCertificateId?: string;
    packetsReceived?: number;
    packetsSent?: number;
    remoteCertificateId?: string;
    selectedCandidatePairChanges?: number;
    selectedCandidatePairId?: string;
    srtpCipher?: string;
    tlsVersion?: string;
}

interface ReadableStreamGetReaderOptions {
    /**
     * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
     *
     * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
     */
    mode?: ReadableStreamReaderMode;
}

interface ReadableStreamIteratorOptions {
    /**
     * Asynchronously iterates over the chunks in the stream's internal queue.
     *
     * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
     *
     * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
     */
    preventCancel?: boolean;
}

interface ReadableStreamReadDoneResult<T> {
    done: true;
    value: T | undefined;
}

interface ReadableStreamReadValueResult<T> {
    done: false;
    value: T;
}

interface ReadableWritablePair<R = any, W = any> {
    readable: ReadableStream<R>;
    /**
     * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
     *
     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
     */
    writable: WritableStream<W>;
}

interface RegistrationOptions {
    scope?: string;
    type?: WorkerType;
    updateViaCache?: ServiceWorkerUpdateViaCache;
}

interface ReportingObserverOptions {
    buffered?: boolean;
    types?: string[];
}

interface RequestInit {
    /** A BodyInit object or null to set request's body. */
    body?: BodyInit | null;
    /** A string indicating how the request will interact with the browser's cache to set request's cache. */
    cache?: RequestCache;
    /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
    credentials?: RequestCredentials;
    /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
    headers?: HeadersInit;
    /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
    integrity?: string;
    /** A boolean to set request's keepalive. */
    keepalive?: boolean;
    /** A string to set request's method. */
    method?: string;
    /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
    mode?: RequestMode;
    priority?: RequestPriority;
    /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
    redirect?: RequestRedirect;
    /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
    referrer?: string;
    /** A referrer policy to set request's referrerPolicy. */
    referrerPolicy?: ReferrerPolicy;
    /** An AbortSignal to set request's signal. */
    signal?: AbortSignal | null;
    /** Can only be null. Used to disassociate request from any Window. */
    window?: null;
}

interface ResizeObserverOptions {
    box?: ResizeObserverBoxOptions;
}

interface ResponseInit {
    headers?: HeadersInit;
    status?: number;
    statusText?: string;
}

interface RsaHashedImportParams extends Algorithm {
    hash: HashAlgorithmIdentifier;
}

interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
    hash: KeyAlgorithm;
}

interface RsaHashedKeyGenParams extends RsaKeyGenParams {
    hash: HashAlgorithmIdentifier;
}

interface RsaKeyAlgorithm extends KeyAlgorithm {
    modulusLength: number;
    publicExponent: BigInteger;
}

interface RsaKeyGenParams extends Algorithm {
    modulusLength: number;
    publicExponent: BigInteger;
}

interface RsaOaepParams extends Algorithm {
    label?: BufferSource;
}

interface RsaOtherPrimesInfo {
    d?: string;
    r?: string;
    t?: string;
}

interface RsaPssParams extends Algorithm {
    saltLength: number;
}

interface SVGBoundingBoxOptions {
    clipped?: boolean;
    fill?: boolean;
    markers?: boolean;
    stroke?: boolean;
}

interface ScrollIntoViewOptions extends ScrollOptions {
    block?: ScrollLogicalPosition;
    inline?: ScrollLogicalPosition;
}

interface ScrollOptions {
    behavior?: ScrollBehavior;
}

interface ScrollToOptions extends ScrollOptions {
    left?: number;
    top?: number;
}

interface SecurityPolicyViolationEventInit extends EventInit {
    blockedURI?: string;
    columnNumber?: number;
    disposition?: SecurityPolicyViolationEventDisposition;
    documentURI?: string;
    effectiveDirective?: string;
    lineNumber?: number;
    originalPolicy?: string;
    referrer?: string;
    sample?: string;
    sourceFile?: string;
    statusCode?: number;
    violatedDirective?: string;
}

interface ShadowRootInit {
    clonable?: boolean;
    customElementRegistry?: CustomElementRegistry;
    delegatesFocus?: boolean;
    mode: ShadowRootMode;
    serializable?: boolean;
    slotAssignment?: SlotAssignmentMode;
}

interface ShareData {
    files?: File[];
    text?: string;
    title?: string;
    url?: string;
}

interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
    error: SpeechSynthesisErrorCode;
}

interface SpeechSynthesisEventInit extends EventInit {
    charIndex?: number;
    charLength?: number;
    elapsedTime?: number;
    name?: string;
    utterance: SpeechSynthesisUtterance;
}

interface StartViewTransitionOptions {
    types?: string[] | null;
    update?: ViewTransitionUpdateCallback | null;
}

interface StaticRangeInit {
    endContainer: Node;
    endOffset: number;
    startContainer: Node;
    startOffset: number;
}

interface StereoPannerOptions extends AudioNodeOptions {
    pan?: number;
}

interface StorageEstimate {
    quota?: number;
    usage?: number;
}

interface StorageEventInit extends EventInit {
    key?: string | null;
    newValue?: string | null;
    oldValue?: string | null;
    storageArea?: Storage | null;
    url?: string;
}

interface StreamPipeOptions {
    preventAbort?: boolean;
    preventCancel?: boolean;
    /**
     * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
     *
     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
     *
     * Errors and closures of the source and destination streams propagate as follows:
     *
     * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
     *
     * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
     *
     * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
     *
     * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
     *
     * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
     */
    preventClose?: boolean;
    signal?: AbortSignal;
}

interface StructuredSerializeOptions {
    transfer?: Transferable[];
}

interface SubmitEventInit extends EventInit {
    submitter?: HTMLElement | null;
}

interface TextDecodeOptions {
    stream?: boolean;
}

interface TextDecoderOptions {
    fatal?: boolean;
    ignoreBOM?: boolean;
}

interface TextEncoderEncodeIntoResult {
    read: number;
    written: number;
}

interface ToggleEventInit extends EventInit {
    newState?: string;
    oldState?: string;
}

interface TouchEventInit extends EventModifierInit {
    changedTouches?: Touch[];
    targetTouches?: Touch[];
    touches?: Touch[];
}

interface TouchInit {
    altitudeAngle?: number;
    azimuthAngle?: number;
    clientX?: number;
    clientY?: number;
    force?: number;
    identifier: number;
    pageX?: number;
    pageY?: number;
    radiusX?: number;
    radiusY?: number;
    rotationAngle?: number;
    screenX?: number;
    screenY?: number;
    target: EventTarget;
    touchType?: TouchType;
}

interface TrackEventInit extends EventInit {
    track?: TextTrack | null;
}

interface Transformer<I = any, O = any> {
    flush?: TransformerFlushCallback<O>;
    readableType?: undefined;
    start?: TransformerStartCallback<O>;
    transform?: TransformerTransformCallback<I, O>;
    writableType?: undefined;
}

interface TransitionEventInit extends EventInit {
    elapsedTime?: number;
    propertyName?: string;
    pseudoElement?: string;
}

interface UIEventInit extends EventInit {
    detail?: number;
    view?: Window | null;
    /** @deprecated */
    which?: number;
}

interface ULongRange {
    max?: number;
    min?: number;
}

interface UnderlyingByteSource {
    autoAllocateChunkSize?: number;
    cancel?: UnderlyingSourceCancelCallback;
    pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
    start?: (controller: ReadableByteStreamController) => any;
    type: "bytes";
}

interface UnderlyingDefaultSource<R = any> {
    cancel?: UnderlyingSourceCancelCallback;
    pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
    start?: (controller: ReadableStreamDefaultController<R>) => any;
    type?: undefined;
}

interface UnderlyingSink<W = any> {
    abort?: UnderlyingSinkAbortCallback;
    close?: UnderlyingSinkCloseCallback;
    start?: UnderlyingSinkStartCallback;
    type?: undefined;
    write?: UnderlyingSinkWriteCallback<W>;
}

interface UnderlyingSource<R = any> {
    autoAllocateChunkSize?: number;
    cancel?: UnderlyingSourceCancelCallback;
    pull?: UnderlyingSourcePullCallback<R>;
    start?: UnderlyingSourceStartCallback<R>;
    type?: ReadableStreamType;
}

interface ValidityStateFlags {
    badInput?: boolean;
    customError?: boolean;
    patternMismatch?: boolean;
    rangeOverflow?: boolean;
    rangeUnderflow?: boolean;
    stepMismatch?: boolean;
    tooLong?: boolean;
    tooShort?: boolean;
    typeMismatch?: boolean;
    valueMissing?: boolean;
}

interface VideoColorSpaceInit {
    fullRange?: boolean | null;
    matrix?: VideoMatrixCoefficients | null;
    primaries?: VideoColorPrimaries | null;
    transfer?: VideoTransferCharacteristics | null;
}

interface VideoConfiguration {
    bitrate: number;
    colorGamut?: ColorGamut;
    contentType: string;
    framerate: number;
    hasAlphaChannel?: boolean;
    hdrMetadataType?: HdrMetadataType;
    height: number;
    scalabilityMode?: string;
    transferFunction?: TransferFunction;
    width: number;
}

interface VideoDecoderConfig {
    codec: string;
    codedHeight?: number;
    codedWidth?: number;
    colorSpace?: VideoColorSpaceInit;
    description?: AllowSharedBufferSource;
    displayAspectHeight?: number;
    displayAspectWidth?: number;
    hardwareAcceleration?: HardwareAcceleration;
    optimizeForLatency?: boolean;
}

interface VideoDecoderInit {
    error: WebCodecsErrorCallback;
    output: VideoFrameOutputCallback;
}

interface VideoDecoderSupport {
    config?: VideoDecoderConfig;
    supported?: boolean;
}

interface VideoEncoderConfig {
    alpha?: AlphaOption;
    avc?: AvcEncoderConfig;
    bitrate?: number;
    bitrateMode?: VideoEncoderBitrateMode;
    codec: string;
    contentHint?: string;
    displayHeight?: number;
    displayWidth?: number;
    framerate?: number;
    hardwareAcceleration?: HardwareAcceleration;
    height: number;
    latencyMode?: LatencyMode;
    scalabilityMode?: string;
    width: number;
}

interface VideoEncoderEncodeOptions {
    avc?: VideoEncoderEncodeOptionsForAvc;
    keyFrame?: boolean;
}

interface VideoEncoderEncodeOptionsForAvc {
    quantizer?: number | null;
}

interface VideoEncoderInit {
    error: WebCodecsErrorCallback;
    output: EncodedVideoChunkOutputCallback;
}

interface VideoEncoderSupport {
    config?: VideoEncoderConfig;
    supported?: boolean;
}

interface VideoFrameBufferInit {
    codedHeight: number;
    codedWidth: number;
    colorSpace?: VideoColorSpaceInit;
    displayHeight?: number;
    displayWidth?: number;
    duration?: number;
    format: VideoPixelFormat;
    layout?: PlaneLayout[];
    timestamp: number;
    visibleRect?: DOMRectInit;
}

interface VideoFrameCallbackMetadata {
    captureTime?: DOMHighResTimeStamp;
    expectedDisplayTime: DOMHighResTimeStamp;
    height: number;
    mediaTime: number;
    presentationTime: DOMHighResTimeStamp;
    presentedFrames: number;
    processingDuration?: number;
    receiveTime?: DOMHighResTimeStamp;
    rtpTimestamp?: number;
    width: number;
}

interface VideoFrameCopyToOptions {
    colorSpace?: PredefinedColorSpace;
    format?: VideoPixelFormat;
    layout?: PlaneLayout[];
    rect?: DOMRectInit;
}

interface VideoFrameInit {
    alpha?: AlphaOption;
    displayHeight?: number;
    displayWidth?: number;
    duration?: number;
    timestamp?: number;
    visibleRect?: DOMRectInit;
}

interface WaveShaperOptions extends AudioNodeOptions {
    curve?: number[] | Float32Array;
    oversample?: OverSampleType;
}

interface WebGLContextAttributes {
    alpha?: boolean;
    antialias?: boolean;
    depth?: boolean;
    desynchronized?: boolean;
    failIfMajorPerformanceCaveat?: boolean;
    powerPreference?: WebGLPowerPreference;
    premultipliedAlpha?: boolean;
    preserveDrawingBuffer?: boolean;
    stencil?: boolean;
}

interface WebGLContextEventInit extends EventInit {
    statusMessage?: string;
}

interface WebTransportCloseInfo {
    closeCode?: number;
    reason?: string;
}

interface WebTransportErrorOptions {
    source?: WebTransportErrorSource;
    streamErrorCode?: number | null;
}

interface WebTransportHash {
    algorithm?: string;
    value?: BufferSource;
}

interface WebTransportOptions {
    allowPooling?: boolean;
    congestionControl?: WebTransportCongestionControl;
    requireUnreliable?: boolean;
    serverCertificateHashes?: WebTransportHash[];
}

interface WebTransportSendOptions {
    sendOrder?: number;
}

interface WebTransportSendStreamOptions extends WebTransportSendOptions {
}

interface WheelEventInit extends MouseEventInit {
    deltaMode?: number;
    deltaX?: number;
    deltaY?: number;
    deltaZ?: number;
}

interface WindowPostMessageOptions extends StructuredSerializeOptions {
    targetOrigin?: string;
}

interface WorkerOptions {
    credentials?: RequestCredentials;
    name?: string;
    type?: WorkerType;
}

interface WorkletOptions {
    credentials?: RequestCredentials;
}

interface WriteParams {
    data?: BufferSource | Blob | string | null;
    position?: number | null;
    size?: number | null;
    type: WriteCommandType;
}

type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };

declare var NodeFilter: {
    readonly FILTER_ACCEPT: 1;
    readonly FILTER_REJECT: 2;
    readonly FILTER_SKIP: 3;
    readonly SHOW_ALL: 0xFFFFFFFF;
    readonly SHOW_ELEMENT: 0x1;
    readonly SHOW_ATTRIBUTE: 0x2;
    readonly SHOW_TEXT: 0x4;
    readonly SHOW_CDATA_SECTION: 0x8;
    readonly SHOW_ENTITY_REFERENCE: 0x10;
    readonly SHOW_ENTITY: 0x20;
    readonly SHOW_PROCESSING_INSTRUCTION: 0x40;
    readonly SHOW_COMMENT: 0x80;
    readonly SHOW_DOCUMENT: 0x100;
    readonly SHOW_DOCUMENT_TYPE: 0x200;
    readonly SHOW_DOCUMENT_FRAGMENT: 0x400;
    readonly SHOW_NOTATION: 0x800;
};

type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };

/**
 * The **\`ANGLE_instanced_arrays\`** extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)
 */
interface ANGLE_instanced_arrays {
    /**
     * The **\`ANGLE_instanced_arrays.drawArraysInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays() method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)
     */
    drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
    /**
     * The **\`ANGLE_instanced_arrays.drawElementsInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements() method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)
     */
    drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
    /**
     * The **ANGLE_instanced_arrays.vertexAttribDivisorANGLE()** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE().
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)
     */
    vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}

interface ARIAMixin {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaActiveDescendantElement) */
    ariaActiveDescendantElement: Element | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */
    ariaAtomic: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
    ariaAutoComplete: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleLabel) */
    ariaBrailleLabel: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) */
    ariaBrailleRoleDescription: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
    ariaBusy: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
    ariaChecked: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */
    ariaColCount: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */
    ariaColIndex: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndexText) */
    ariaColIndexText: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */
    ariaColSpan: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaControlsElements) */
    ariaControlsElements: ReadonlyArray<Element> | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */
    ariaCurrent: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescribedByElements) */
    ariaDescribedByElements: ReadonlyArray<Element> | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */
    ariaDescription: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDetailsElements) */
    ariaDetailsElements: ReadonlyArray<Element> | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */
    ariaDisabled: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaErrorMessageElements) */
    ariaErrorMessageElements: ReadonlyArray<Element> | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */
    ariaExpanded: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaFlowToElements) */
    ariaFlowToElements: ReadonlyArray<Element> | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */
    ariaHasPopup: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */
    ariaHidden: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaInvalid) */
    ariaInvalid: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */
    ariaKeyShortcuts: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */
    ariaLabel: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabelledByElements) */
    ariaLabelledByElements: ReadonlyArray<Element> | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */
    ariaLevel: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */
    ariaLive: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */
    ariaModal: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */
    ariaMultiLine: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */
    ariaMultiSelectable: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */
    ariaOrientation: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOwnsElements) */
    ariaOwnsElements: ReadonlyArray<Element> | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */
    ariaPlaceholder: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */
    ariaPosInSet: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */
    ariaPressed: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */
    ariaReadOnly: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRelevant) */
    ariaRelevant: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */
    ariaRequired: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */
    ariaRoleDescription: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */
    ariaRowCount: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */
    ariaRowIndex: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndexText) */
    ariaRowIndexText: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */
    ariaRowSpan: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */
    ariaSelected: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */
    ariaSetSize: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */
    ariaSort: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */
    ariaValueMax: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */
    ariaValueMin: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */
    ariaValueNow: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */
    ariaValueText: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/role) */
    role: string | null;
}

/**
 * The **\`AbortController\`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
 */
interface AbortController {
    /**
     * The **\`signal\`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
     */
    readonly signal: AbortSignal;
    /**
     * The **\`abort()\`** method of the AbortController interface aborts an asynchronous operation before it has completed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
     */
    abort(reason?: any): void;
}

declare var AbortController: {
    prototype: AbortController;
    new(): AbortController;
};

interface AbortSignalEventMap {
    "abort": Event;
}

/**
 * The **\`AbortSignal\`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
 */
interface AbortSignal extends EventTarget {
    /**
     * The **\`aborted\`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (\`true\`) or not (\`false\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
     */
    readonly aborted: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
    onabort: ((this: AbortSignal, ev: Event) => any) | null;
    /**
     * The **\`reason\`** read-only property returns a JavaScript value that indicates the abort reason.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason)
     */
    readonly reason: any;
    /**
     * The **\`throwIfAborted()\`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted)
     */
    throwIfAborted(): void;
    addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var AbortSignal: {
    prototype: AbortSignal;
    new(): AbortSignal;
    /**
     * The **\`AbortSignal.abort()\`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
     */
    abort(reason?: any): AbortSignal;
    /**
     * The **\`AbortSignal.any()\`** static method takes an iterable of abort signals and returns an AbortSignal.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)
     */
    any(signals: AbortSignal[]): AbortSignal;
    /**
     * The **\`AbortSignal.timeout()\`** static method returns an AbortSignal that will automatically abort after a specified time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static)
     */
    timeout(milliseconds: number): AbortSignal;
};

/**
 * The **\`AbstractRange\`** abstract interface is the base class upon which all DOM range types are defined.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange)
 */
interface AbstractRange {
    /**
     * The read-only **\`collapsed\`** property of the AbstractRange interface returns \`true\` if the range's start position and end position are the same.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed)
     */
    readonly collapsed: boolean;
    /**
     * The read-only **\`endContainer\`** property of the AbstractRange interface returns the Node in which the end of the range is located.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer)
     */
    readonly endContainer: Node;
    /**
     * The **\`endOffset\`** property of the AbstractRange interface returns the offset into the end node of the range's end position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset)
     */
    readonly endOffset: number;
    /**
     * The read-only **\`startContainer\`** property of the AbstractRange interface returns the start Node for the range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)
     */
    readonly startContainer: Node;
    /**
     * The read-only **\`startOffset\`** property of the AbstractRange interface returns the offset into the start node of the range's start position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset)
     */
    readonly startOffset: number;
}

declare var AbstractRange: {
    prototype: AbstractRange;
    new(): AbstractRange;
};

interface AbstractWorkerEventMap {
    "error": ErrorEvent;
}

interface AbstractWorker {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */
    onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/**
 * The **\`AnalyserNode\`** interface represents a node able to provide real-time frequency and time-domain analysis information.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode)
 */
interface AnalyserNode extends AudioNode {
    /**
     * The **\`fftSize\`** property of the AnalyserNode interface is an unsigned long value and represents the window size in samples that is used when performing a Fast Fourier Transform (FFT) to get frequency domain data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize)
     */
    fftSize: number;
    /**
     * The **\`frequencyBinCount\`** read-only property of the AnalyserNode interface contains the total number of data points available to AudioContext BaseAudioContext.sampleRate.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount)
     */
    readonly frequencyBinCount: number;
    /**
     * The **\`maxDecibels\`** property of the AnalyserNode interface is a double value representing the maximum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using \`getByteFrequencyData()\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels)
     */
    maxDecibels: number;
    /**
     * The **\`minDecibels\`** property of the AnalyserNode interface is a double value representing the minimum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when using \`getByteFrequencyData()\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels)
     */
    minDecibels: number;
    /**
     * The **\`smoothingTimeConstant\`** property of the AnalyserNode interface is a double value representing the averaging constant with the last analysis frame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant)
     */
    smoothingTimeConstant: number;
    /**
     * The **\`getByteFrequencyData()\`** method of the AnalyserNode interface copies the current frequency data into a Uint8Array (unsigned byte array) passed into it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData)
     */
    getByteFrequencyData(array: Uint8Array<ArrayBuffer>): void;
    /**
     * The **\`getByteTimeDomainData()\`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Uint8Array (unsigned byte array) passed into it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData)
     */
    getByteTimeDomainData(array: Uint8Array<ArrayBuffer>): void;
    /**
     * The **\`getFloatFrequencyData()\`** method of the AnalyserNode Interface copies the current frequency data into a Float32Array array passed into it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData)
     */
    getFloatFrequencyData(array: Float32Array<ArrayBuffer>): void;
    /**
     * The **\`getFloatTimeDomainData()\`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Float32Array array passed into it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData)
     */
    getFloatTimeDomainData(array: Float32Array<ArrayBuffer>): void;
}

declare var AnalyserNode: {
    prototype: AnalyserNode;
    new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
};

interface Animatable {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */
    animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */
    getAnimations(options?: GetAnimationsOptions): Animation[];
}

interface AnimationEventMap {
    "cancel": AnimationPlaybackEvent;
    "finish": AnimationPlaybackEvent;
    "remove": AnimationPlaybackEvent;
}

/**
 * The **\`Animation\`** interface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation)
 */
interface Animation extends EventTarget {
    /**
     * The **\`Animation.currentTime\`** property of the Web Animations API returns and sets the current time value of the animation in milliseconds, whether running or paused.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime)
     */
    currentTime: CSSNumberish | null;
    /**
     * The **\`Animation.effect\`** property of the Web Animations API gets and sets the target effect of an animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect)
     */
    effect: AnimationEffect | null;
    /**
     * The **\`Animation.finished\`** read-only property of the Web Animations API returns a Promise which resolves once the animation has finished playing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished)
     */
    readonly finished: Promise<Animation>;
    /**
     * The **\`Animation.id\`** property of the Web Animations API returns or sets a string used to identify the animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id)
     */
    id: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */
    oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */
    onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */
    onremove: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
    /**
     * The read-only **\`Animation.pending\`** property of the Web Animations API indicates whether the animation is currently waiting for an asynchronous operation such as initiating playback or pausing a running animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending)
     */
    readonly pending: boolean;
    /**
     * The read-only **\`Animation.playState\`** property of the Web Animations API returns an enumerated value describing the playback state of an animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState)
     */
    readonly playState: AnimationPlayState;
    /**
     * The **\`Animation.playbackRate\`** property of the Web Animations API returns or sets the playback rate of the animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate)
     */
    playbackRate: number;
    /**
     * The read-only **\`Animation.ready\`** property of the Web Animations API returns a Promise which resolves when the animation is ready to play.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready)
     */
    readonly ready: Promise<Animation>;
    /**
     * The read-only **\`Animation.replaceState\`** property of the Web Animations API indicates whether the animation has been removed by the browser automatically after being replaced by another animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState)
     */
    readonly replaceState: AnimationReplaceState;
    /**
     * The **\`Animation.startTime\`** property of the Animation interface is a double-precision floating-point value which indicates the scheduled time when an animation's playback should begin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime)
     */
    startTime: CSSNumberish | null;
    /**
     * The **\`Animation.timeline\`** property of the Animation interface returns or sets the AnimationTimeline associated with this animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline)
     */
    timeline: AnimationTimeline | null;
    /**
     * The Web Animations API's **\`cancel()\`** method of the Animation interface clears all KeyframeEffects caused by this animation and aborts its playback.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel)
     */
    cancel(): void;
    /**
     * The \`commitStyles()\` method of the Web Animations API's Animation interface writes the computed values of the animation's current styles into its target element's \`style\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles)
     */
    commitStyles(): void;
    /**
     * The **\`finish()\`** method of the Web Animations API's Animation Interface sets the current playback time to the end of the animation corresponding to the current playback direction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish)
     */
    finish(): void;
    /**
     * The **\`pause()\`** method of the Web Animations API's Animation interface suspends playback of the animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause)
     */
    pause(): void;
    /**
     * The \`persist()\` method of the Web Animations API's Animation interface explicitly persists an animation, preventing it from being automatically removed when it is replaced by another animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist)
     */
    persist(): void;
    /**
     * The **\`play()\`** method of the Web Animations API's Animation Interface starts or resumes playing of an animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play)
     */
    play(): void;
    /**
     * The **\`Animation.reverse()\`** method of the Animation Interface reverses the playback direction, meaning the animation ends at its beginning.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse)
     */
    reverse(): void;
    /**
     * The **\`updatePlaybackRate()\`** method of the Web Animations API's synchronizing its playback position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate)
     */
    updatePlaybackRate(playbackRate: number): void;
    addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var Animation: {
    prototype: Animation;
    new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
};

/**
 * The \`AnimationEffect\` interface of the Web Animations API is an interface representing animation effects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect)
 */
interface AnimationEffect {
    /**
     * The \`getComputedTiming()\` method of the AnimationEffect interface returns the calculated timing properties for this animation effect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming)
     */
    getComputedTiming(): ComputedEffectTiming;
    /**
     * The \`AnimationEffect.getTiming()\` method of the AnimationEffect interface returns an object containing the timing properties for the Animation Effect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming)
     */
    getTiming(): EffectTiming;
    /**
     * The \`updateTiming()\` method of the AnimationEffect interface updates the specified timing properties for an animation effect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming)
     */
    updateTiming(timing?: OptionalEffectTiming): void;
}

declare var AnimationEffect: {
    prototype: AnimationEffect;
    new(): AnimationEffect;
};

/**
 * The **\`AnimationEvent\`** interface represents events providing information related to animations.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent)
 */
interface AnimationEvent extends Event {
    /**
     * The **\`AnimationEvent.animationName\`** read-only property is a string containing the value of the animation-name CSS property associated with the transition.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName)
     */
    readonly animationName: string;
    /**
     * The **\`AnimationEvent.elapsedTime\`** read-only property is a \`float\` giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime)
     */
    readonly elapsedTime: number;
    /**
     * The **\`AnimationEvent.pseudoElement\`** read-only property is a string, starting with \`'::'\`, containing the name of the pseudo-element the animation runs on.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement)
     */
    readonly pseudoElement: string;
}

declare var AnimationEvent: {
    prototype: AnimationEvent;
    new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
};

interface AnimationFrameProvider {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
    cancelAnimationFrame(handle: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
    requestAnimationFrame(callback: FrameRequestCallback): number;
}

/**
 * The AnimationPlaybackEvent interface of the Web Animations API represents animation events.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent)
 */
interface AnimationPlaybackEvent extends Event {
    /**
     * The **\`currentTime\`** read-only property of the AnimationPlaybackEvent interface represents the current time of the animation that generated the event at the moment the event is queued.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime)
     */
    readonly currentTime: CSSNumberish | null;
    /**
     * The **\`timelineTime\`** read-only property of the AnimationPlaybackEvent interface represents the time value of the animation's AnimationTimeline at the moment the event is queued.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime)
     */
    readonly timelineTime: CSSNumberish | null;
}

declare var AnimationPlaybackEvent: {
    prototype: AnimationPlaybackEvent;
    new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
};

/**
 * The \`AnimationTimeline\` interface of the Web Animations API represents the timeline of an animation.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline)
 */
interface AnimationTimeline {
    /**
     * The **\`currentTime\`** read-only property of the Web Animations API's AnimationTimeline interface returns the timeline's current time in milliseconds, or \`null\` if the timeline is inactive.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
     */
    readonly currentTime: CSSNumberish | null;
}

declare var AnimationTimeline: {
    prototype: AnimationTimeline;
    new(): AnimationTimeline;
};

/**
 * The **\`Attr\`** interface represents one of an element's attributes as an object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr)
 */
interface Attr extends Node {
    /**
     * The read-only **\`localName\`** property of the Attr interface returns the _local part_ of the _qualified name_ of an attribute, that is the name of the attribute, stripped from any namespace in front of it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName)
     */
    readonly localName: string;
    /**
     * The read-only **\`name\`** property of the Attr interface returns the _qualified name_ of an attribute, that is the name of the attribute, with the namespace prefix, if any, in front of it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name)
     */
    readonly name: string;
    /**
     * The read-only **\`namespaceURI\`** property of the Attr interface returns the namespace URI of the attribute, or \`null\` if the element is not in a namespace.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI)
     */
    readonly namespaceURI: string | null;
    readonly ownerDocument: Document;
    /**
     * The read-only **\`ownerElement\`** property of the Attr interface returns the Element the attribute belongs to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement)
     */
    readonly ownerElement: Element | null;
    /**
     * The read-only **\`prefix\`** property of the Attr returns the namespace prefix of the attribute, or \`null\` if no prefix is specified.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix)
     */
    readonly prefix: string | null;
    /**
     * The read-only **\`specified\`** property of the Attr interface always returns \`true\`.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified)
     */
    readonly specified: boolean;
    /**
     * The **\`value\`** property of the Attr interface contains the value of the attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value)
     */
    value: string;
    /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
    get textContent(): string;
    set textContent(value: string | null);
}

declare var Attr: {
    prototype: Attr;
    new(): Attr;
};

/**
 * The **\`AudioBuffer\`** interface represents a short audio asset residing in memory, created from an audio file using the BaseAudioContext/decodeAudioData method, or from raw data using BaseAudioContext/createBuffer.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer)
 */
interface AudioBuffer {
    /**
     * The **\`duration\`** property of the AudioBuffer interface returns a double representing the duration, in seconds, of the PCM data stored in the buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration)
     */
    readonly duration: number;
    /**
     * The **\`length\`** property of the AudioBuffer interface returns an integer representing the length, in sample-frames, of the PCM data stored in the buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length)
     */
    readonly length: number;
    /**
     * The \`numberOfChannels\` property of the AudioBuffer interface returns an integer representing the number of discrete audio channels described by the PCM data stored in the buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels)
     */
    readonly numberOfChannels: number;
    /**
     * The **\`sampleRate\`** property of the AudioBuffer interface returns a float representing the sample rate, in samples per second, of the PCM data stored in the buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate)
     */
    readonly sampleRate: number;
    /**
     * The **\`copyFromChannel()\`** method of the channel of the \`AudioBuffer\` to a specified \`\`\`js-nolint copyFromChannel(destination, channelNumber, startInChannel) \`\`\` - \`destination\` - : A Float32Array to copy the channel's samples to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel)
     */
    copyFromChannel(destination: Float32Array<ArrayBuffer>, channelNumber: number, bufferOffset?: number): void;
    /**
     * The \`copyToChannel()\` method of the AudioBuffer interface copies the samples to the specified channel of the \`AudioBuffer\`, from the source array.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel)
     */
    copyToChannel(source: Float32Array<ArrayBuffer>, channelNumber: number, bufferOffset?: number): void;
    /**
     * The **\`getChannelData()\`** method of the AudioBuffer Interface returns a Float32Array containing the PCM data associated with the channel, defined by the channel parameter (with 0 representing the first channel).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData)
     */
    getChannelData(channel: number): Float32Array<ArrayBuffer>;
}

declare var AudioBuffer: {
    prototype: AudioBuffer;
    new(options: AudioBufferOptions): AudioBuffer;
};

/**
 * The **\`AudioBufferSourceNode\`** interface is an AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode)
 */
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
    /**
     * The **\`buffer\`** property of the AudioBufferSourceNode interface provides the ability to play back audio using an AudioBuffer as the source of the sound data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer)
     */
    buffer: AudioBuffer | null;
    /**
     * The **\`detune\`** property of the representing detuning of oscillation in cents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune)
     */
    readonly detune: AudioParam;
    /**
     * The \`loop\` property of the AudioBufferSourceNode interface is a Boolean indicating if the audio asset must be replayed when the end of the AudioBuffer is reached.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop)
     */
    loop: boolean;
    /**
     * The \`loopEnd\` property of the AudioBufferSourceNode interface specifies is a floating point number specifying, in seconds, at what offset into playing the AudioBuffer playback should loop back to the time indicated by the AudioBufferSourceNode.loopStart property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd)
     */
    loopEnd: number;
    /**
     * The **\`loopStart\`** property of the AudioBufferSourceNode interface is a floating-point value indicating, in seconds, where in the AudioBuffer the restart of the play must happen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart)
     */
    loopStart: number;
    /**
     * The **\`playbackRate\`** property of the AudioBufferSourceNode interface Is a k-rate AudioParam that defines the speed at which the audio asset will be played.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate)
     */
    readonly playbackRate: AudioParam;
    /**
     * The \`start()\` method of the AudioBufferSourceNode Interface is used to schedule playback of the audio data contained in the buffer, or to begin playback immediately.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start)
     */
    start(when?: number, offset?: number, duration?: number): void;
    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var AudioBufferSourceNode: {
    prototype: AudioBufferSourceNode;
    new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
};

/**
 * The \`AudioContext\` interface represents an audio-processing graph built from audio modules linked together, each represented by an AudioNode.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext)
 */
interface AudioContext extends BaseAudioContext {
    /**
     * The **\`baseLatency\`** read-only property of the seconds of processing latency incurred by the \`AudioContext\` passing an audio buffer from the AudioDestinationNode — i.e., the end of the audio graph — into the host system's audio subsystem ready for playing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency)
     */
    readonly baseLatency: number;
    /**
     * The **\`outputLatency\`** read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency)
     */
    readonly outputLatency: number;
    /**
     * The \`close()\` method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close)
     */
    close(): Promise<void>;
    /**
     * The \`createMediaElementSource()\` method of the AudioContext Interface is used to create a new MediaElementAudioSourceNode object, given an existing HTML audio or video element, the audio from which can then be played and manipulated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource)
     */
    createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
    /**
     * The \`createMediaStreamDestination()\` method of the AudioContext Interface is used to create a new MediaStreamAudioDestinationNode object associated with a WebRTC MediaStream representing an audio stream, which may be stored in a local file or sent to another computer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination)
     */
    createMediaStreamDestination(): MediaStreamAudioDestinationNode;
    /**
     * The \`createMediaStreamSource()\` method of the AudioContext Interface is used to create a new MediaStreamAudioSourceNode object, given a media stream (say, from a MediaDevices.getUserMedia instance), the audio from which can then be played and manipulated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource)
     */
    createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
    /**
     * The **\`getOutputTimestamp()\`** method of the containing two audio timestamp values relating to the current audio context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp)
     */
    getOutputTimestamp(): AudioTimestamp;
    /**
     * The **\`resume()\`** method of the AudioContext interface resumes the progression of time in an audio context that has previously been suspended.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume)
     */
    resume(): Promise<void>;
    /**
     * The \`suspend()\` method of the AudioContext Interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process — this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend)
     */
    suspend(): Promise<void>;
    addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var AudioContext: {
    prototype: AudioContext;
    new(contextOptions?: AudioContextOptions): AudioContext;
};

/**
 * The **\`AudioData\`** interface of the WebCodecs API represents an audio sample.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData)
 */
interface AudioData {
    /**
     * The **\`duration\`** read-only property of the AudioData interface returns the duration in microseconds of this \`AudioData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration)
     */
    readonly duration: number;
    /**
     * The **\`format\`** read-only property of the AudioData interface returns the sample format of the \`AudioData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format)
     */
    readonly format: AudioSampleFormat | null;
    /**
     * The **\`numberOfChannels\`** read-only property of the AudioData interface returns the number of channels in the \`AudioData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels)
     */
    readonly numberOfChannels: number;
    /**
     * The **\`numberOfFrames\`** read-only property of the AudioData interface returns the number of frames in the \`AudioData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames)
     */
    readonly numberOfFrames: number;
    /**
     * The **\`sampleRate\`** read-only property of the AudioData interface returns the sample rate in Hz.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate)
     */
    readonly sampleRate: number;
    /**
     * The **\`timestamp\`** read-only property of the AudioData interface returns the timestamp of this \`AudioData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp)
     */
    readonly timestamp: number;
    /**
     * The **\`allocationSize()\`** method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize)
     */
    allocationSize(options: AudioDataCopyToOptions): number;
    /**
     * The **\`clone()\`** method of the AudioData interface creates a new \`AudioData\` object with reference to the same media resource as the original.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone)
     */
    clone(): AudioData;
    /**
     * The **\`close()\`** method of the AudioData interface clears all states and releases the reference to the media resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close)
     */
    close(): void;
    /**
     * The **\`copyTo()\`** method of the AudioData interface copies a plane of an \`AudioData\` object to a destination buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo)
     */
    copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void;
}

declare var AudioData: {
    prototype: AudioData;
    new(init: AudioDataInit): AudioData;
};

interface AudioDecoderEventMap {
    "dequeue": Event;
}

/**
 * The **\`AudioDecoder\`** interface of the WebCodecs API decodes chunks of audio.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder)
 */
interface AudioDecoder extends EventTarget {
    /**
     * The **\`decodeQueueSize\`** read-only property of the AudioDecoder interface returns the number of pending decode requests in the queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize)
     */
    readonly decodeQueueSize: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */
    ondequeue: ((this: AudioDecoder, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the AudioDecoder interface returns the current state of the underlying codec.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state)
     */
    readonly state: CodecState;
    /**
     * The **\`close()\`** method of the AudioDecoder interface ends all pending work and releases system resources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close)
     */
    close(): void;
    /**
     * The **\`configure()\`** method of the AudioDecoder interface enqueues a control message to configure the audio decoder for decoding chunks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure)
     */
    configure(config: AudioDecoderConfig): void;
    /**
     * The **\`decode()\`** method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode)
     */
    decode(chunk: EncodedAudioChunk): void;
    /**
     * The **\`flush()\`** method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush)
     */
    flush(): Promise<void>;
    /**
     * The **\`reset()\`** method of the AudioDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset)
     */
    reset(): void;
    addEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var AudioDecoder: {
    prototype: AudioDecoder;
    new(init: AudioDecoderInit): AudioDecoder;
    /**
     * The **\`isConfigSupported()\`** static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static)
     */
    isConfigSupported(config: AudioDecoderConfig): Promise<AudioDecoderSupport>;
};

/**
 * The \`AudioDestinationNode\` interface represents the end destination of an audio graph in a given context — usually the speakers of your device.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode)
 */
interface AudioDestinationNode extends AudioNode {
    /**
     * The \`maxChannelCount\` property of the AudioDestinationNode interface is an \`unsigned long\` defining the maximum amount of channels that the physical device can handle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount)
     */
    readonly maxChannelCount: number;
}

declare var AudioDestinationNode: {
    prototype: AudioDestinationNode;
    new(): AudioDestinationNode;
};

interface AudioEncoderEventMap {
    "dequeue": Event;
}

/**
 * The **\`AudioEncoder\`** interface of the WebCodecs API encodes AudioData objects.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder)
 */
interface AudioEncoder extends EventTarget {
    /**
     * The **\`encodeQueueSize\`** read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize)
     */
    readonly encodeQueueSize: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */
    ondequeue: ((this: AudioEncoder, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the AudioEncoder interface returns the current state of the underlying codec.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state)
     */
    readonly state: CodecState;
    /**
     * The **\`close()\`** method of the AudioEncoder interface ends all pending work and releases system resources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close)
     */
    close(): void;
    /**
     * The **\`configure()\`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure)
     */
    configure(config: AudioEncoderConfig): void;
    /**
     * The **\`encode()\`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode)
     */
    encode(data: AudioData): void;
    /**
     * The **\`flush()\`** method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush)
     */
    flush(): Promise<void>;
    /**
     * The **\`reset()\`** method of the AudioEncoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset)
     */
    reset(): void;
    addEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var AudioEncoder: {
    prototype: AudioEncoder;
    new(init: AudioEncoderInit): AudioEncoder;
    /**
     * The **\`isConfigSupported()\`** static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static)
     */
    isConfigSupported(config: AudioEncoderConfig): Promise<AudioEncoderSupport>;
};

/**
 * The \`AudioListener\` interface represents the position and orientation of the unique person listening to the audio scene, and is used in audio spatialization.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener)
 */
interface AudioListener {
    /**
     * The \`forwardX\` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the forward direction the listener is pointing in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX)
     */
    readonly forwardX: AudioParam;
    /**
     * The \`forwardY\` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the forward direction the listener is pointing in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY)
     */
    readonly forwardY: AudioParam;
    /**
     * The \`forwardZ\` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the forward direction the listener is pointing in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ)
     */
    readonly forwardZ: AudioParam;
    /**
     * The \`positionX\` read-only property of the AudioListener interface is an AudioParam representing the x position of the listener in 3D cartesian space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX)
     */
    readonly positionX: AudioParam;
    /**
     * The \`positionY\` read-only property of the AudioListener interface is an AudioParam representing the y position of the listener in 3D cartesian space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY)
     */
    readonly positionY: AudioParam;
    /**
     * The \`positionZ\` read-only property of the AudioListener interface is an AudioParam representing the z position of the listener in 3D cartesian space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ)
     */
    readonly positionZ: AudioParam;
    /**
     * The \`upX\` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the up direction the listener is pointing in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX)
     */
    readonly upX: AudioParam;
    /**
     * The \`upY\` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the up direction the listener is pointing in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY)
     */
    readonly upY: AudioParam;
    /**
     * The \`upZ\` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the up direction the listener is pointing in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ)
     */
    readonly upZ: AudioParam;
    /**
     * The \`setOrientation()\` method of the AudioListener interface defines the orientation of the listener.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation)
     */
    setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
    /**
     * The \`setPosition()\` method of the AudioListener Interface defines the position of the listener.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition)
     */
    setPosition(x: number, y: number, z: number): void;
}

declare var AudioListener: {
    prototype: AudioListener;
    new(): AudioListener;
};

/**
 * The **\`AudioNode\`** interface is a generic interface for representing an audio processing module.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode)
 */
interface AudioNode extends EventTarget {
    /**
     * The **\`channelCount\`** property of the AudioNode interface represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount)
     */
    channelCount: number;
    /**
     * The \`channelCountMode\` property of the AudioNode interface represents an enumerated value describing the way channels must be matched between the node's inputs and outputs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode)
     */
    channelCountMode: ChannelCountMode;
    /**
     * The **\`channelInterpretation\`** property of the AudioNode interface represents an enumerated value describing how input channels are mapped to output channels when the number of inputs/outputs is different.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation)
     */
    channelInterpretation: ChannelInterpretation;
    /**
     * The read-only \`context\` property of the the node is participating in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context)
     */
    readonly context: BaseAudioContext;
    /**
     * The \`numberOfInputs\` property of the AudioNode interface returns the number of inputs feeding the node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs)
     */
    readonly numberOfInputs: number;
    /**
     * The \`numberOfOutputs\` property of the AudioNode interface returns the number of outputs coming out of the node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs)
     */
    readonly numberOfOutputs: number;
    /**
     * The \`connect()\` method of the AudioNode interface lets you connect one of the node's outputs to a target, which may be either another \`AudioNode\` (thereby directing the sound data to the specified node) or an change the value of that parameter over time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect)
     */
    connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
    connect(destinationParam: AudioParam, output?: number): void;
    /**
     * The **\`disconnect()\`** method of the AudioNode interface lets you disconnect one or more nodes from the node on which the method is called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect)
     */
    disconnect(): void;
    disconnect(output: number): void;
    disconnect(destinationNode: AudioNode): void;
    disconnect(destinationNode: AudioNode, output: number): void;
    disconnect(destinationNode: AudioNode, output: number, input: number): void;
    disconnect(destinationParam: AudioParam): void;
    disconnect(destinationParam: AudioParam, output: number): void;
}

declare var AudioNode: {
    prototype: AudioNode;
    new(): AudioNode;
};

/**
 * The Web Audio API's \`AudioParam\` interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam)
 */
interface AudioParam {
    automationRate: AutomationRate;
    /**
     * The **\`defaultValue\`** read-only property of the AudioParam interface represents the initial value of the attributes as defined by the specific AudioNode creating the \`AudioParam\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue)
     */
    readonly defaultValue: number;
    /**
     * The **\`maxValue\`** read-only property of the AudioParam interface represents the maximum possible value for the parameter's nominal (effective) range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue)
     */
    readonly maxValue: number;
    /**
     * The **\`minValue\`** read-only property of the AudioParam interface represents the minimum possible value for the parameter's nominal (effective) range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue)
     */
    readonly minValue: number;
    /**
     * The **\`value\`** property of the AudioParam interface gets or sets the value of this \`AudioParam\` at the current time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value)
     */
    value: number;
    /**
     * The **\`cancelAndHoldAtTime()\`** method of the \`AudioParam\` but holds its value at a given time until further changes are made using other methods.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime)
     */
    cancelAndHoldAtTime(cancelTime: number): AudioParam;
    /**
     * The \`cancelScheduledValues()\` method of the AudioParam Interface cancels all scheduled future changes to the \`AudioParam\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues)
     */
    cancelScheduledValues(cancelTime: number): AudioParam;
    /**
     * The **\`exponentialRampToValueAtTime()\`** method of the AudioParam Interface schedules a gradual exponential change in the value of the AudioParam.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime)
     */
    exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
    /**
     * The \`linearRampToValueAtTime()\` method of the AudioParam Interface schedules a gradual linear change in the value of the \`AudioParam\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime)
     */
    linearRampToValueAtTime(value: number, endTime: number): AudioParam;
    /**
     * The \`setTargetAtTime()\` method of the \`AudioParam\` value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime)
     */
    setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
    /**
     * The \`setValueAtTime()\` method of the \`AudioParam\` value at a precise time, as measured against \`\`\`js-nolint setValueAtTime(value, startTime) \`\`\` - \`value\` - : A floating point number representing the value the AudioParam will change to at the given time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime)
     */
    setValueAtTime(value: number, startTime: number): AudioParam;
    /**
     * The **\`setValueCurveAtTime()\`** method of the following a curve defined by a list of values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime)
     */
    setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
}

declare var AudioParam: {
    prototype: AudioParam;
    new(): AudioParam;
};

/**
 * The **\`AudioParamMap\`** interface of the Web Audio API represents an iterable and read-only set of multiple audio parameters.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap)
 */
interface AudioParamMap {
    forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
}

declare var AudioParamMap: {
    prototype: AudioParamMap;
    new(): AudioParamMap;
};

/**
 * The \`AudioProcessingEvent\` interface of the Web Audio API represents events that occur when a ScriptProcessorNode input buffer is ready to be processed.
 * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent)
 */
interface AudioProcessingEvent extends Event {
    /**
     * The **\`inputBuffer\`** read-only property of the AudioProcessingEvent interface represents the input buffer of an audio processing event.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer)
     */
    readonly inputBuffer: AudioBuffer;
    /**
     * The **\`outputBuffer\`** read-only property of the AudioProcessingEvent interface represents the output buffer of an audio processing event.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer)
     */
    readonly outputBuffer: AudioBuffer;
    /**
     * The **\`playbackTime\`** read-only property of the AudioProcessingEvent interface represents the time when the audio will be played.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime)
     */
    readonly playbackTime: number;
}

/** @deprecated */
declare var AudioProcessingEvent: {
    prototype: AudioProcessingEvent;
    new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
};

interface AudioScheduledSourceNodeEventMap {
    "ended": Event;
}

/**
 * The \`AudioScheduledSourceNode\` interface—part of the Web Audio API—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode)
 */
interface AudioScheduledSourceNode extends AudioNode {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */
    onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
    /**
     * The \`start()\` method on AudioScheduledSourceNode schedules a sound to begin playback at the specified time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start)
     */
    start(when?: number): void;
    /**
     * The \`stop()\` method on AudioScheduledSourceNode schedules a sound to cease playback at the specified time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop)
     */
    stop(when?: number): void;
    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var AudioScheduledSourceNode: {
    prototype: AudioScheduledSourceNode;
    new(): AudioScheduledSourceNode;
};

/**
 * The **\`AudioWorklet\`** interface of the Web Audio API is used to supply custom audio processing scripts that execute in a separate thread to provide very low latency audio processing.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet)
 */
interface AudioWorklet extends Worklet {
}

declare var AudioWorklet: {
    prototype: AudioWorklet;
    new(): AudioWorklet;
};

interface AudioWorkletNodeEventMap {
    "processorerror": ErrorEvent;
}

/**
 * The **\`AudioWorkletNode\`** interface of the Web Audio API represents a base class for a user-defined AudioNode, which can be connected to an audio routing graph along with other nodes.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode)
 */
interface AudioWorkletNode extends AudioNode {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */
    onprocessorerror: ((this: AudioWorkletNode, ev: ErrorEvent) => any) | null;
    /**
     * The read-only **\`parameters\`** property of the underlying AudioWorkletProcessor according to its getter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters)
     */
    readonly parameters: AudioParamMap;
    /**
     * The read-only **\`port\`** property of the associated AudioWorkletProcessor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port)
     */
    readonly port: MessagePort;
    addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var AudioWorkletNode: {
    prototype: AudioWorkletNode;
    new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
};

/**
 * The **\`AuthenticatorAssertionResponse\`** interface of the Web Authentication API contains a digital signature from the private key of a particular WebAuthn credential.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse)
 */
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
    /**
     * The **\`authenticatorData\`** property of the AuthenticatorAssertionResponse interface returns an ArrayBuffer containing information from the authenticator such as the Relying Party ID Hash (rpIdHash), a signature counter, test of user presence, user verification flags, and any extensions processed by the authenticator.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData)
     */
    readonly authenticatorData: ArrayBuffer;
    /**
     * The **\`signature\`** read-only property of the object which is the signature of the authenticator for both the client data (AuthenticatorResponse.clientDataJSON).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature)
     */
    readonly signature: ArrayBuffer;
    /**
     * The **\`userHandle\`** read-only property of the AuthenticatorAssertionResponse interface is an ArrayBuffer object providing an opaque identifier for the given user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle)
     */
    readonly userHandle: ArrayBuffer | null;
}

declare var AuthenticatorAssertionResponse: {
    prototype: AuthenticatorAssertionResponse;
    new(): AuthenticatorAssertionResponse;
};

/**
 * The **\`AuthenticatorAttestationResponse\`** interface of the Web Authentication API is the result of a WebAuthn credential registration.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse)
 */
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
    /**
     * The **\`attestationObject\`** property of the entire \`attestationObject\` with a private key that is stored in the authenticator when it is manufactured.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject)
     */
    readonly attestationObject: ArrayBuffer;
    /**
     * The **\`getAuthenticatorData()\`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the authenticator data contained within the AuthenticatorAttestationResponse.attestationObject property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData)
     */
    getAuthenticatorData(): ArrayBuffer;
    /**
     * The **\`getPublicKey()\`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the DER \`SubjectPublicKeyInfo\` of the new credential (see Subject Public Key Info), or \`null\` if this is not available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey)
     */
    getPublicKey(): ArrayBuffer | null;
    /**
     * The **\`getPublicKeyAlgorithm()\`** method of the AuthenticatorAttestationResponse interface returns a number that is equal to a COSE Algorithm Identifier, representing the cryptographic algorithm used for the new credential.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm)
     */
    getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
    /**
     * The **\`getTransports()\`** method of the AuthenticatorAttestationResponse interface returns an array of strings describing the different transports which may be used by the authenticator.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports)
     */
    getTransports(): string[];
}

declare var AuthenticatorAttestationResponse: {
    prototype: AuthenticatorAttestationResponse;
    new(): AuthenticatorAttestationResponse;
};

/**
 * The **\`AuthenticatorResponse\`** interface of the Web Authentication API is the base interface for interfaces that provide a cryptographic root of trust for a key pair.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse)
 */
interface AuthenticatorResponse {
    /**
     * The **\`clientDataJSON\`** property of the AuthenticatorResponse interface stores a JSON string in an An ArrayBuffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON)
     */
    readonly clientDataJSON: ArrayBuffer;
}

declare var AuthenticatorResponse: {
    prototype: AuthenticatorResponse;
    new(): AuthenticatorResponse;
};

/**
 * The **\`BarProp\`** interface of the Document Object Model represents the web browser user interface elements that are exposed to scripts in web pages.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp)
 */
interface BarProp {
    /**
     * The **\`visible\`** read-only property of the BarProp interface returns \`true\` if the user interface element it represents is visible.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible)
     */
    readonly visible: boolean;
}

declare var BarProp: {
    prototype: BarProp;
    new(): BarProp;
};

interface BaseAudioContextEventMap {
    "statechange": Event;
}

/**
 * The \`BaseAudioContext\` interface of the Web Audio API acts as a base definition for online and offline audio-processing graphs, as represented by AudioContext and OfflineAudioContext respectively.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext)
 */
interface BaseAudioContext extends EventTarget {
    /**
     * The \`audioWorklet\` read-only property of the processing.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet)
     */
    readonly audioWorklet: AudioWorklet;
    /**
     * The \`currentTime\` read-only property of the BaseAudioContext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime)
     */
    readonly currentTime: number;
    /**
     * The \`destination\` property of the BaseAudioContext interface returns an AudioDestinationNode representing the final destination of all audio in the context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination)
     */
    readonly destination: AudioDestinationNode;
    /**
     * The \`listener\` property of the BaseAudioContext interface returns an AudioListener object that can then be used for implementing 3D audio spatialization.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener)
     */
    readonly listener: AudioListener;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */
    onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
    /**
     * The \`sampleRate\` property of the BaseAudioContext interface returns a floating point number representing the sample rate, in samples per second, used by all nodes in this audio context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate)
     */
    readonly sampleRate: number;
    /**
     * The \`state\` read-only property of the BaseAudioContext interface returns the current state of the \`AudioContext\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state)
     */
    readonly state: AudioContextState;
    /**
     * The \`createAnalyser()\` method of the can be used to expose audio time and frequency data and create data visualizations.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser)
     */
    createAnalyser(): AnalyserNode;
    /**
     * The \`createBiquadFilter()\` method of the BaseAudioContext interface creates a BiquadFilterNode, which represents a second order filter configurable as several different common filter types.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter)
     */
    createBiquadFilter(): BiquadFilterNode;
    /**
     * The \`createBuffer()\` method of the BaseAudioContext Interface is used to create a new, empty AudioBuffer object, which can then be populated by data, and played via an AudioBufferSourceNode.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer)
     */
    createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
    /**
     * The \`createBufferSource()\` method of the BaseAudioContext Interface is used to create a new AudioBufferSourceNode, which can be used to play audio data contained within an AudioBuffer object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource)
     */
    createBufferSource(): AudioBufferSourceNode;
    /**
     * The \`createChannelMerger()\` method of the BaseAudioContext interface creates a ChannelMergerNode, which combines channels from multiple audio streams into a single audio stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger)
     */
    createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
    /**
     * The \`createChannelSplitter()\` method of the BaseAudioContext Interface is used to create a ChannelSplitterNode, which is used to access the individual channels of an audio stream and process them separately.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter)
     */
    createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
    /**
     * The **\`createConstantSource()\`** property of the BaseAudioContext interface creates a outputs a monaural (one-channel) sound signal whose samples all have the same value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource)
     */
    createConstantSource(): ConstantSourceNode;
    /**
     * The \`createConvolver()\` method of the BaseAudioContext interface creates a ConvolverNode, which is commonly used to apply reverb effects to your audio.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver)
     */
    createConvolver(): ConvolverNode;
    /**
     * The \`createDelay()\` method of the which is used to delay the incoming audio signal by a certain amount of time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay)
     */
    createDelay(maxDelayTime?: number): DelayNode;
    /**
     * The \`createDynamicsCompressor()\` method of the BaseAudioContext Interface is used to create a DynamicsCompressorNode, which can be used to apply compression to an audio signal.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor)
     */
    createDynamicsCompressor(): DynamicsCompressorNode;
    /**
     * The \`createGain()\` method of the BaseAudioContext interface creates a GainNode, which can be used to control the overall gain (or volume) of the audio graph.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain)
     */
    createGain(): GainNode;
    /**
     * The **\`createIIRFilter()\`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)
     */
    createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
    /**
     * The \`createOscillator()\` method of the BaseAudioContext interface creates an OscillatorNode, a source representing a periodic waveform.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator)
     */
    createOscillator(): OscillatorNode;
    /**
     * The \`createPanner()\` method of the BaseAudioContext Interface is used to create a new PannerNode, which is used to spatialize an incoming audio stream in 3D space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner)
     */
    createPanner(): PannerNode;
    /**
     * The \`createPeriodicWave()\` method of the BaseAudioContext interface is used to create a PeriodicWave.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave)
     */
    createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
    /**
     * The \`createScriptProcessor()\` method of the BaseAudioContext interface creates a ScriptProcessorNode used for direct audio processing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor)
     */
    createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
    /**
     * The \`createStereoPanner()\` method of the BaseAudioContext interface creates a StereoPannerNode, which can be used to apply stereo panning to an audio source.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner)
     */
    createStereoPanner(): StereoPannerNode;
    /**
     * The \`createWaveShaper()\` method of the BaseAudioContext interface creates a WaveShaperNode, which represents a non-linear distortion.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper)
     */
    createWaveShaper(): WaveShaperNode;
    /**
     * The \`decodeAudioData()\` method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an rate, then passed to a callback or promise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData)
     */
    decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
    addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var BaseAudioContext: {
    prototype: BaseAudioContext;
    new(): BaseAudioContext;
};

/**
 * The **\`BeforeUnloadEvent\`** interface represents the event object for the Window/beforeunload_event event, which is fired when the current window, contained document, and associated resources are about to be unloaded.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent)
 */
interface BeforeUnloadEvent extends Event {
    /**
     * The **\`returnValue\`** property of the \`returnValue\` is initialized to an empty string (\`''\`) value.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent/returnValue)
     */
    returnValue: any;
}

declare var BeforeUnloadEvent: {
    prototype: BeforeUnloadEvent;
    new(): BeforeUnloadEvent;
};

/**
 * The \`BiquadFilterNode\` interface represents a simple low-order filter, and is created using the BaseAudioContext/createBiquadFilter method.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode)
 */
interface BiquadFilterNode extends AudioNode {
    /**
     * The \`Q\` property of the BiquadFilterNode interface is an a-rate AudioParam, a double representing a Q factor, or _quality factor_.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q)
     */
    readonly Q: AudioParam;
    /**
     * The \`detune\` property of the BiquadFilterNode interface is an a-rate AudioParam representing detuning of the frequency in cents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune)
     */
    readonly detune: AudioParam;
    /**
     * The \`frequency\` property of the BiquadFilterNode interface is an a-rate AudioParam — a double representing a frequency in the current filtering algorithm measured in hertz (Hz).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency)
     */
    readonly frequency: AudioParam;
    /**
     * The \`gain\` property of the BiquadFilterNode interface is an a-rate AudioParam — a double representing the gain used in the current filtering algorithm.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain)
     */
    readonly gain: AudioParam;
    /**
     * The \`type\` property of the BiquadFilterNode interface is a string (enum) value defining the kind of filtering algorithm the node is implementing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type)
     */
    type: BiquadFilterType;
    /**
     * The \`getFrequencyResponse()\` method of the BiquadFilterNode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse)
     */
    getFrequencyResponse(frequencyHz: Float32Array<ArrayBuffer>, magResponse: Float32Array<ArrayBuffer>, phaseResponse: Float32Array<ArrayBuffer>): void;
}

declare var BiquadFilterNode: {
    prototype: BiquadFilterNode;
    new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
};

/**
 * The **\`Blob\`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
 */
interface Blob {
    /**
     * The **\`size\`** read-only property of the Blob interface returns the size of the Blob or File in bytes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size)
     */
    readonly size: number;
    /**
     * The **\`type\`** read-only property of the Blob interface returns the MIME type of the file.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type)
     */
    readonly type: string;
    /**
     * The **\`arrayBuffer()\`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer)
     */
    arrayBuffer(): Promise<ArrayBuffer>;
    /**
     * The **\`bytes()\`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes)
     */
    bytes(): Promise<Uint8Array<ArrayBuffer>>;
    /**
     * The **\`slice()\`** method of the Blob interface creates and returns a new \`Blob\` object which contains data from a subset of the blob on which it's called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice)
     */
    slice(start?: number, end?: number, contentType?: string): Blob;
    /**
     * The **\`stream()\`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the \`Blob\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream)
     */
    stream(): ReadableStream<Uint8Array<ArrayBuffer>>;
    /**
     * The **\`text()\`** method of the string containing the contents of the blob, interpreted as UTF-8.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text)
     */
    text(): Promise<string>;
}

declare var Blob: {
    prototype: Blob;
    new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};

/**
 * The **\`BlobEvent\`** interface of the MediaStream Recording API represents events associated with a Blob.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent)
 */
interface BlobEvent extends Event {
    /**
     * The **\`data\`** read-only property of the BlobEvent interface represents a Blob associated with the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data)
     */
    readonly data: Blob;
    /**
     * The **\`timecode\`** read-only property of the BlobEvent interface indicates the difference between the timestamp of the first chunk of data, and the timestamp of the first chunk in the first \`BlobEvent\` produced by this recorder.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode)
     */
    readonly timecode: DOMHighResTimeStamp;
}

declare var BlobEvent: {
    prototype: BlobEvent;
    new(type: string, eventInitDict: BlobEventInit): BlobEvent;
};

interface Body {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
    readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
    readonly bodyUsed: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
    arrayBuffer(): Promise<ArrayBuffer>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
    blob(): Promise<Blob>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
    bytes(): Promise<Uint8Array<ArrayBuffer>>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
    formData(): Promise<FormData>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
    json(): Promise<any>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
    text(): Promise<string>;
}

interface BroadcastChannelEventMap {
    "message": MessageEvent;
    "messageerror": MessageEvent;
}

/**
 * The **\`BroadcastChannel\`** interface represents a named channel that any browsing context of a given origin can subscribe to.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel)
 */
interface BroadcastChannel extends EventTarget {
    /**
     * The **\`name\`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)
     */
    readonly name: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */
    onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */
    onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
    /**
     * The **\`close()\`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
     */
    close(): void;
    /**
     * The **\`postMessage()\`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
     */
    postMessage(message: any): void;
    addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var BroadcastChannel: {
    prototype: BroadcastChannel;
    new(name: string): BroadcastChannel;
};

/**
 * The **\`ByteLengthQueuingStrategy\`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
 */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
    /**
     * The read-only **\`ByteLengthQueuingStrategy.highWaterMark\`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark)
     */
    readonly highWaterMark: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
    readonly size: QueuingStrategySize<ArrayBufferView>;
}

declare var ByteLengthQueuingStrategy: {
    prototype: ByteLengthQueuingStrategy;
    new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};

/**
 * The **\`CDATASection\`** interface represents a CDATA section that can be used within XML to include extended portions of unescaped text.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection)
 */
interface CDATASection extends Text {
}

declare var CDATASection: {
    prototype: CDATASection;
    new(): CDATASection;
};

/**
 * The \`CSPViolationReportBody\` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody)
 */
interface CSPViolationReportBody extends ReportBody {
    /**
     * The **\`blockedURL\`** read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL)
     */
    readonly blockedURL: string | null;
    /**
     * The **\`columnNumber\`** read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber)
     */
    readonly columnNumber: number | null;
    /**
     * The **\`disposition\`** read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition)
     */
    readonly disposition: SecurityPolicyViolationEventDisposition;
    /**
     * The **\`documentURL\`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL)
     */
    readonly documentURL: string;
    /**
     * The **\`effectiveDirective\`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective)
     */
    readonly effectiveDirective: string;
    /**
     * The **\`lineNumber\`** read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber)
     */
    readonly lineNumber: number | null;
    /**
     * The **\`originalPolicy\`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy)
     */
    readonly originalPolicy: string;
    /**
     * The **\`referrer\`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer)
     */
    readonly referrer: string | null;
    /**
     * The **\`sample\`** read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample)
     */
    readonly sample: string | null;
    /**
     * The **\`sourceFile\`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile)
     */
    readonly sourceFile: string | null;
    /**
     * The **\`statusCode\`** read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode)
     */
    readonly statusCode: number;
    /**
     * The **\`toJSON()\`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the \`CSPViolationReportBody\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON)
     */
    toJSON(): any;
}

declare var CSPViolationReportBody: {
    prototype: CSPViolationReportBody;
    new(): CSPViolationReportBody;
};

/**
 * The **\`CSSAnimation\`** interface of the Web Animations API represents an Animation object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation)
 */
interface CSSAnimation extends Animation {
    /**
     * The **\`animationName\`** property of the specifies one or more keyframe at-rules which describe the animation applied to the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName)
     */
    readonly animationName: string;
    addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var CSSAnimation: {
    prototype: CSSAnimation;
    new(): CSSAnimation;
};

/**
 * An object implementing the **\`CSSConditionRule\`** interface represents a single condition CSS at-rule, which consists of a condition and a statement block.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule)
 */
interface CSSConditionRule extends CSSGroupingRule {
    /**
     * The read-only **\`conditionText\`** property of the CSSConditionRule interface returns or sets the text of the CSS rule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText)
     */
    readonly conditionText: string;
}

declare var CSSConditionRule: {
    prototype: CSSConditionRule;
    new(): CSSConditionRule;
};

/**
 * The **\`CSSContainerRule\`** interface represents a single CSS @container rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule)
 */
interface CSSContainerRule extends CSSConditionRule {
    /**
     * The read-only **\`containerName\`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName)
     */
    readonly containerName: string;
    /**
     * The read-only **\`containerQuery\`** property of the CSSContainerRule interface returns a string representing the container conditions that are evaluated when the container changes size in order to determine if the styles in the associated @container are applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery)
     */
    readonly containerQuery: string;
}

declare var CSSContainerRule: {
    prototype: CSSContainerRule;
    new(): CSSContainerRule;
};

/**
 * The **\`CSSCounterStyleRule\`** interface represents an @counter-style at-rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule)
 */
interface CSSCounterStyleRule extends CSSRule {
    /**
     * The **\`additiveSymbols\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/additive-symbols descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols)
     */
    additiveSymbols: string;
    /**
     * The **\`fallback\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/fallback descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback)
     */
    fallback: string;
    /**
     * The **\`name\`** property of the CSSCounterStyleRule interface gets and sets the &lt;custom-ident&gt; defined as the \`name\` for the associated rule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name)
     */
    name: string;
    /**
     * The **\`negative\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/negative descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative)
     */
    negative: string;
    /**
     * The **\`pad\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/pad descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad)
     */
    pad: string;
    /**
     * The **\`prefix\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/prefix descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix)
     */
    prefix: string;
    /**
     * The **\`range\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/range descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range)
     */
    range: string;
    /**
     * The **\`speakAs\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/speak-as descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs)
     */
    speakAs: string;
    /**
     * The **\`suffix\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/suffix descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix)
     */
    suffix: string;
    /**
     * The **\`symbols\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/symbols descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols)
     */
    symbols: string;
    /**
     * The **\`system\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/system descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system)
     */
    system: string;
}

declare var CSSCounterStyleRule: {
    prototype: CSSCounterStyleRule;
    new(): CSSCounterStyleRule;
};

/**
 * The **\`CSSFontFaceRule\`** interface represents an @font-face at-rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule)
 */
interface CSSFontFaceRule extends CSSRule {
    /**
     * The read-only **\`style\`** property of the CSSFontFaceRule interface returns the style information from the @font-face at-rule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style)
     */
    get style(): CSSStyleDeclaration;
    set style(cssText: string);
}

declare var CSSFontFaceRule: {
    prototype: CSSFontFaceRule;
    new(): CSSFontFaceRule;
};

/**
 * The **\`CSSFontFeatureValuesRule\`** interface represents an @font-feature-values at-rule, letting developers assign for each font face a common name to specify features indices to be used in font-variant-alternates.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule)
 */
interface CSSFontFeatureValuesRule extends CSSRule {
    /**
     * The **\`fontFamily\`** property of the CSSConditionRule interface represents the name of the font family it applies to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)
     */
    fontFamily: string;
}

declare var CSSFontFeatureValuesRule: {
    prototype: CSSFontFeatureValuesRule;
    new(): CSSFontFeatureValuesRule;
};

/**
 * The **\`CSSFontPaletteValuesRule\`** interface represents an @font-palette-values at-rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule)
 */
interface CSSFontPaletteValuesRule extends CSSRule {
    /**
     * The read-only **\`basePalette\`** property of the CSSFontPaletteValuesRule interface indicates the base palette associated with the rule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette)
     */
    readonly basePalette: string;
    /**
     * The read-only **\`fontFamily\`** property of the CSSFontPaletteValuesRule interface lists the font families the rule can be applied to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily)
     */
    readonly fontFamily: string;
    /**
     * The read-only **\`name\`** property of the CSSFontPaletteValuesRule interface represents the name identifying the associated @font-palette-values at-rule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name)
     */
    readonly name: string;
    /**
     * The read-only **\`overrideColors\`** property of the CSSFontPaletteValuesRule interface is a string containing a list of color index and color pair that are to be used instead.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors)
     */
    readonly overrideColors: string;
}

declare var CSSFontPaletteValuesRule: {
    prototype: CSSFontPaletteValuesRule;
    new(): CSSFontPaletteValuesRule;
};

/**
 * The **\`CSSGroupingRule\`** interface of the CSS Object Model represents any CSS at-rule that contains other rules nested within it.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule)
 */
interface CSSGroupingRule extends CSSRule {
    /**
     * The **\`cssRules\`** property of the a collection of CSSRule objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules)
     */
    readonly cssRules: CSSRuleList;
    /**
     * The **\`deleteRule()\`** method of the rules.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule)
     */
    deleteRule(index: number): void;
    /**
     * The **\`insertRule()\`** method of the \`\`\`js-nolint insertRule(rule) insertRule(rule, index) \`\`\` - \`rule\` - : A string - \`index\` [MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule)
     */
    insertRule(rule: string, index?: number): number;
}

declare var CSSGroupingRule: {
    prototype: CSSGroupingRule;
    new(): CSSGroupingRule;
};

/**
 * The **\`CSSImageValue\`** interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue)
 */
interface CSSImageValue extends CSSStyleValue {
}

declare var CSSImageValue: {
    prototype: CSSImageValue;
    new(): CSSImageValue;
};

/**
 * The **\`CSSImportRule\`** interface represents an @import at-rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule)
 */
interface CSSImportRule extends CSSRule {
    /**
     * The read-only **\`href\`** property of the The resolved URL will be the \`href\` attribute of the associated stylesheet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href)
     */
    readonly href: string;
    /**
     * The read-only **\`layerName\`** property of the CSSImportRule interface returns the name of the cascade layer created by the @import at-rule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName)
     */
    readonly layerName: string | null;
    /**
     * The read-only **\`media\`** property of the containing the value of the \`media\` attribute of the associated stylesheet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media)
     */
    get media(): MediaList;
    set media(mediaText: string);
    /**
     * The read-only **\`styleSheet\`** property of the in the form of a CSSStyleSheet object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet)
     */
    readonly styleSheet: CSSStyleSheet | null;
    /**
     * The read-only **\`supportsText\`** property of the CSSImportRule interface returns the supports condition specified by the @import at-rule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText)
     */
    readonly supportsText: string | null;
}

declare var CSSImportRule: {
    prototype: CSSImportRule;
    new(): CSSImportRule;
};

/**
 * The **\`CSSKeyframeRule\`** interface describes an object representing a set of styles for a given keyframe.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule)
 */
interface CSSKeyframeRule extends CSSRule {
    /**
     * The **\`keyText\`** property of the CSSKeyframeRule interface represents the keyframe selector as a comma-separated list of percentage values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText)
     */
    keyText: string;
    /**
     * The read-only **\`CSSKeyframeRule.style\`** property is the CSSStyleDeclaration interface for the declaration block of the CSSKeyframeRule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style)
     */
    get style(): CSSStyleDeclaration;
    set style(cssText: string);
}

declare var CSSKeyframeRule: {
    prototype: CSSKeyframeRule;
    new(): CSSKeyframeRule;
};

/**
 * The **\`CSSKeyframesRule\`** interface describes an object representing a complete set of keyframes for a CSS animation.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule)
 */
interface CSSKeyframesRule extends CSSRule {
    /**
     * The read-only **\`cssRules\`** property of the CSSKeyframeRule interface returns a CSSRuleList containing the rules in the keyframes at-rule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules)
     */
    readonly cssRules: CSSRuleList;
    /**
     * The read-only **\`length\`** property of the CSSKeyframeRule interface returns the number of CSSKeyframeRule objects in its list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length)
     */
    readonly length: number;
    /**
     * The **\`name\`** property of the CSSKeyframeRule interface gets and sets the name of the animation as used by the animation-name property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name)
     */
    name: string;
    /**
     * The **\`appendRule()\`** method of the CSSKeyframeRule interface appends a CSSKeyFrameRule to the end of the rules.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule)
     */
    appendRule(rule: string): void;
    /**
     * The **\`deleteRule()\`** method of the CSSKeyframeRule interface deletes the CSSKeyFrameRule that matches the specified keyframe selector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule)
     */
    deleteRule(select: string): void;
    /**
     * The **\`findRule()\`** method of the CSSKeyframeRule interface finds the CSSKeyFrameRule that matches the specified keyframe selector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule)
     */
    findRule(select: string): CSSKeyframeRule | null;
    [index: number]: CSSKeyframeRule;
}

declare var CSSKeyframesRule: {
    prototype: CSSKeyframesRule;
    new(): CSSKeyframesRule;
};

/**
 * The **\`CSSKeywordValue\`** interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue)
 */
interface CSSKeywordValue extends CSSStyleValue {
    /**
     * The **\`value\`** property of the \`CSSKeywordValue\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value)
     */
    value: string;
}

declare var CSSKeywordValue: {
    prototype: CSSKeywordValue;
    new(value: string): CSSKeywordValue;
};

/**
 * The **\`CSSLayerBlockRule\`** represents a @layer block rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule)
 */
interface CSSLayerBlockRule extends CSSGroupingRule {
    /**
     * The read-only **\`name\`** property of the CSSLayerBlockRule interface represents the name of the associated cascade layer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name)
     */
    readonly name: string;
}

declare var CSSLayerBlockRule: {
    prototype: CSSLayerBlockRule;
    new(): CSSLayerBlockRule;
};

/**
 * The **\`CSSLayerStatementRule\`** represents a @layer statement rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule)
 */
interface CSSLayerStatementRule extends CSSRule {
    /**
     * The read-only **\`nameList\`** property of the CSSLayerStatementRule interface return the list of associated cascade layer names.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList)
     */
    readonly nameList: ReadonlyArray<string>;
}

declare var CSSLayerStatementRule: {
    prototype: CSSLayerStatementRule;
    new(): CSSLayerStatementRule;
};

interface CSSMathClamp extends CSSMathValue {
    readonly lower: CSSNumericValue;
    readonly upper: CSSNumericValue;
    readonly value: CSSNumericValue;
}

declare var CSSMathClamp: {
    prototype: CSSMathClamp;
    new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
};

/**
 * The **\`CSSMathInvert\`** interface of the CSS Typed Object Model API represents a CSS calc used as \`calc(1 / <value>)\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
 */
interface CSSMathInvert extends CSSMathValue {
    /**
     * The CSSMathInvert.value read-only property of the A CSSNumericValue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value)
     */
    readonly value: CSSNumericValue;
}

declare var CSSMathInvert: {
    prototype: CSSMathInvert;
    new(arg: CSSNumberish): CSSMathInvert;
};

/**
 * The **\`CSSMathMax\`** interface of the CSS Typed Object Model API represents the CSS max function.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax)
 */
interface CSSMathMax extends CSSMathValue {
    /**
     * The CSSMathMax.values read-only property of the which contains one or more CSSNumericValue objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values)
     */
    readonly values: CSSNumericArray;
}

declare var CSSMathMax: {
    prototype: CSSMathMax;
    new(...args: CSSNumberish[]): CSSMathMax;
};

/**
 * The **\`CSSMathMin\`** interface of the CSS Typed Object Model API represents the CSS min function.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin)
 */
interface CSSMathMin extends CSSMathValue {
    /**
     * The CSSMathMin.values read-only property of the which contains one or more CSSNumericValue objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values)
     */
    readonly values: CSSNumericArray;
}

declare var CSSMathMin: {
    prototype: CSSMathMin;
    new(...args: CSSNumberish[]): CSSMathMin;
};

/**
 * The **\`CSSMathNegate\`** interface of the CSS Typed Object Model API negates the value passed into it.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate)
 */
interface CSSMathNegate extends CSSMathValue {
    /**
     * The CSSMathNegate.value read-only property of the A CSSNumericValue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value)
     */
    readonly value: CSSNumericValue;
}

declare var CSSMathNegate: {
    prototype: CSSMathNegate;
    new(arg: CSSNumberish): CSSMathNegate;
};

/**
 * The **\`CSSMathProduct\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct)
 */
interface CSSMathProduct extends CSSMathValue {
    /**
     * The **\`CSSMathProduct.values\`** read-only property of the CSSMathProduct interface returns a A CSSNumericArray.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values)
     */
    readonly values: CSSNumericArray;
}

declare var CSSMathProduct: {
    prototype: CSSMathProduct;
    new(...args: CSSNumberish[]): CSSMathProduct;
};

/**
 * The **\`CSSMathSum\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum)
 */
interface CSSMathSum extends CSSMathValue {
    /**
     * The **\`CSSMathSum.values\`** read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values)
     */
    readonly values: CSSNumericArray;
}

declare var CSSMathSum: {
    prototype: CSSMathSum;
    new(...args: CSSNumberish[]): CSSMathSum;
};

/**
 * The **\`CSSMathValue\`** interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue)
 */
interface CSSMathValue extends CSSNumericValue {
    /**
     * The **\`CSSMathValue.operator\`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator)
     */
    readonly operator: CSSMathOperator;
}

declare var CSSMathValue: {
    prototype: CSSMathValue;
    new(): CSSMathValue;
};

/**
 * The **\`CSSMatrixComponent\`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent)
 */
interface CSSMatrixComponent extends CSSTransformComponent {
    /**
     * The **\`matrix\`** property of the See the matrix() and matrix3d() pages for examples.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix)
     */
    matrix: DOMMatrix;
}

declare var CSSMatrixComponent: {
    prototype: CSSMatrixComponent;
    new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
};

/**
 * The **\`CSSMediaRule\`** interface represents a single CSS @media rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule)
 */
interface CSSMediaRule extends CSSConditionRule {
    /**
     * The read-only **\`media\`** property of the destination medium for style information.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media)
     */
    get media(): MediaList;
    set media(mediaText: string);
}

declare var CSSMediaRule: {
    prototype: CSSMediaRule;
    new(): CSSMediaRule;
};

/**
 * The **\`CSSNamespaceRule\`** interface describes an object representing a single CSS @namespace at-rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule)
 */
interface CSSNamespaceRule extends CSSRule {
    /**
     * The read-only **\`namespaceURI\`** property of the CSSNamespaceRule returns a string containing the text of the URI of the given namespace.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI)
     */
    readonly namespaceURI: string;
    /**
     * The read-only **\`prefix\`** property of the CSSNamespaceRule returns a string with the name of the prefix associated to this namespace.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix)
     */
    readonly prefix: string;
}

declare var CSSNamespaceRule: {
    prototype: CSSNamespaceRule;
    new(): CSSNamespaceRule;
};

/**
 * The **\`CSSNestedDeclarations\`** interface of the CSS Rule API is used to group nested CSSRules.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations)
 */
interface CSSNestedDeclarations extends CSSRule {
    /**
     * The read-only **\`style\`** property of the CSSNestedDeclarations interface represents the styles associated with the nested rules.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style)
     */
    get style(): CSSStyleDeclaration;
    set style(cssText: string);
}

declare var CSSNestedDeclarations: {
    prototype: CSSNestedDeclarations;
    new(): CSSNestedDeclarations;
};

/**
 * The **\`CSSNumericArray\`** interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray)
 */
interface CSSNumericArray {
    /**
     * The read-only **\`length\`** property of the An integer representing the number of CSSNumericValue objects in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length)
     */
    readonly length: number;
    forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
    [index: number]: CSSNumericValue;
}

declare var CSSNumericArray: {
    prototype: CSSNumericArray;
    new(): CSSNumericArray;
};

/**
 * The **\`CSSNumericValue\`** interface of the CSS Typed Object Model API represents operations that all numeric values can perform.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue)
 */
interface CSSNumericValue extends CSSStyleValue {
    /**
     * The **\`add()\`** method of the \`CSSNumericValue\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add)
     */
    add(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`div()\`** method of the supplied value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div)
     */
    div(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`equals()\`** method of the value are strictly equal.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals)
     */
    equals(...value: CSSNumberish[]): boolean;
    /**
     * The **\`max()\`** method of the passed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max)
     */
    max(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`min()\`** method of the values passed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min)
     */
    min(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`mul()\`** method of the the supplied value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul)
     */
    mul(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`sub()\`** method of the \`CSSNumericValue\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub)
     */
    sub(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`to()\`** method of the another.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to)
     */
    to(unit: string): CSSUnitValue;
    /**
     * The **\`toSum()\`** method of the \`\`\`js-nolint toSum(units) \`\`\` - \`units\` - : The units to convert to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum)
     */
    toSum(...units: string[]): CSSMathSum;
    /**
     * The **\`type()\`** method of the \`CSSNumericValue\`, one of \`angle\`, \`flex\`, \`frequency\`, \`length\`, \`resolution\`, \`percent\`, \`percentHint\`, or \`time\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type)
     */
    type(): CSSNumericType;
}

declare var CSSNumericValue: {
    prototype: CSSNumericValue;
    new(): CSSNumericValue;
    /**
     * The **\`parse()\`** static method of the members are value and the units.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static)
     */
    parse(cssText: string): CSSNumericValue;
};

/**
 * **\`CSSPageRule\`** represents a single CSS @page rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule)
 */
interface CSSPageRule extends CSSGroupingRule {
    /**
     * The **\`selectorText\`** property of the CSSPageRule interface gets and sets the selectors associated with the \`CSSPageRule\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText)
     */
    selectorText: string;
    /**
     * The **\`style\`** read-only property of the CSSPageRule interface returns a CSSPageDescriptors object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style)
     */
    get style(): CSSStyleDeclaration;
    set style(cssText: string);
}

declare var CSSPageRule: {
    prototype: CSSPageRule;
    new(): CSSPageRule;
};

/**
 * The **\`CSSPerspective\`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective)
 */
interface CSSPerspective extends CSSTransformComponent {
    /**
     * The **\`length\`** property of the It is used to apply a perspective transform to the element and its content.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length)
     */
    length: CSSPerspectiveValue;
}

declare var CSSPerspective: {
    prototype: CSSPerspective;
    new(length: CSSPerspectiveValue): CSSPerspective;
};

/**
 * The **\`CSSPropertyRule\`** interface of the CSS Properties and Values API represents a single CSS @property rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule)
 */
interface CSSPropertyRule extends CSSRule {
    /**
     * The read-only **\`inherits\`** property of the CSSPropertyRule interface returns the inherit flag of the custom property registration represented by the @property rule, a boolean describing whether or not the property inherits by default.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits)
     */
    readonly inherits: boolean;
    /**
     * The read-only **\`initialValue\`** nullable property of the CSSPropertyRule interface returns the initial value of the custom property registration represented by the @property rule, controlling the property's initial value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue)
     */
    readonly initialValue: string | null;
    /**
     * The read-only **\`name\`** property of the CSSPropertyRule interface represents the property name, this being the serialization of the name given to the custom property in the @property rule's prelude.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name)
     */
    readonly name: string;
    /**
     * The read-only **\`syntax\`** property of the CSSPropertyRule interface returns the literal syntax of the custom property registration represented by the @property rule, controlling how the property's value is parsed at computed-value time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax)
     */
    readonly syntax: string;
}

declare var CSSPropertyRule: {
    prototype: CSSPropertyRule;
    new(): CSSPropertyRule;
};

/**
 * The **\`CSSRotate\`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate)
 */
interface CSSRotate extends CSSTransformComponent {
    /**
     * The **\`angle\`** property of the denotes a clockwise rotation, a negative angle a counter-clockwise one.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle)
     */
    angle: CSSNumericValue;
    /**
     * The **\`x\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x)
     */
    x: CSSNumberish;
    /**
     * The **\`y\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y)
     */
    y: CSSNumberish;
    /**
     * The **\`z\`** property of the vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z)
     */
    z: CSSNumberish;
}

declare var CSSRotate: {
    prototype: CSSRotate;
    new(angle: CSSNumericValue): CSSRotate;
    new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
};

/**
 * The **\`CSSRule\`** interface represents a single CSS rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule)
 */
interface CSSRule {
    /**
     * The **\`cssText\`** property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText)
     */
    cssText: string;
    /**
     * The **\`parentRule\`** property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule)
     */
    readonly parentRule: CSSRule | null;
    /**
     * The **\`parentStyleSheet\`** property of the the current rule is defined.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet)
     */
    readonly parentStyleSheet: CSSStyleSheet | null;
    /**
     * The read-only **\`type\`** property of the indicating which type of rule the CSSRule represents.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type)
     */
    readonly type: number;
    readonly STYLE_RULE: 1;
    readonly CHARSET_RULE: 2;
    readonly IMPORT_RULE: 3;
    readonly MEDIA_RULE: 4;
    readonly FONT_FACE_RULE: 5;
    readonly PAGE_RULE: 6;
    readonly NAMESPACE_RULE: 10;
    readonly KEYFRAMES_RULE: 7;
    readonly KEYFRAME_RULE: 8;
    readonly SUPPORTS_RULE: 12;
    readonly COUNTER_STYLE_RULE: 11;
    readonly FONT_FEATURE_VALUES_RULE: 14;
}

declare var CSSRule: {
    prototype: CSSRule;
    new(): CSSRule;
    readonly STYLE_RULE: 1;
    readonly CHARSET_RULE: 2;
    readonly IMPORT_RULE: 3;
    readonly MEDIA_RULE: 4;
    readonly FONT_FACE_RULE: 5;
    readonly PAGE_RULE: 6;
    readonly NAMESPACE_RULE: 10;
    readonly KEYFRAMES_RULE: 7;
    readonly KEYFRAME_RULE: 8;
    readonly SUPPORTS_RULE: 12;
    readonly COUNTER_STYLE_RULE: 11;
    readonly FONT_FEATURE_VALUES_RULE: 14;
};

/**
 * A \`CSSRuleList\` represents an ordered collection of read-only CSSRule objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList)
 */
interface CSSRuleList {
    /**
     * The **\`length\`** property of the CSSRuleList interface returns the number of CSSRule objects in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length)
     */
    readonly length: number;
    /**
     * The **\`item()\`** method of the CSSRuleList interface returns the CSSRule object at the specified \`index\` or \`null\` if the specified \`index\` doesn't exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item)
     */
    item(index: number): CSSRule | null;
    [index: number]: CSSRule;
}

declare var CSSRuleList: {
    prototype: CSSRuleList;
    new(): CSSRuleList;
};

/**
 * The **\`CSSScale\`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale)
 */
interface CSSScale extends CSSTransformComponent {
    /**
     * The **\`x\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x)
     */
    x: CSSNumberish;
    /**
     * The **\`y\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y)
     */
    y: CSSNumberish;
    /**
     * The **\`z\`** property of the vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z)
     */
    z: CSSNumberish;
}

declare var CSSScale: {
    prototype: CSSScale;
    new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
};

/**
 * The **\`CSSScopeRule\`** interface of the CSS Object Model represents a CSS @scope at-rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule)
 */
interface CSSScopeRule extends CSSGroupingRule {
    /**
     * The **\`end\`** property of the CSSScopeRule interface returns a string containing the value of the \`@scope\` at-rule's scope limit.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/end)
     */
    readonly end: string | null;
    /**
     * The **\`start\`** property of the CSSScopeRule interface returns a string containing the value of the \`@scope\` at-rule's scope root.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/start)
     */
    readonly start: string | null;
}

declare var CSSScopeRule: {
    prototype: CSSScopeRule;
    new(): CSSScopeRule;
};

/**
 * The **\`CSSSkew\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew)
 */
interface CSSSkew extends CSSTransformComponent {
    /**
     * The **\`ax\`** property of the along the x-axis (or abscissa).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax)
     */
    ax: CSSNumericValue;
    /**
     * The **\`ay\`** property of the along the y-axis (or ordinate).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay)
     */
    ay: CSSNumericValue;
}

declare var CSSSkew: {
    prototype: CSSSkew;
    new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
};

/**
 * The **\`CSSSkewX\`** interface of the CSS Typed Object Model API represents the \`skewX()\` value of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX)
 */
interface CSSSkewX extends CSSTransformComponent {
    /**
     * The **\`ax\`** property of the along the x-axis (or abscissa).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax)
     */
    ax: CSSNumericValue;
}

declare var CSSSkewX: {
    prototype: CSSSkewX;
    new(ax: CSSNumericValue): CSSSkewX;
};

/**
 * The **\`CSSSkewY\`** interface of the CSS Typed Object Model API represents the \`skewY()\` value of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY)
 */
interface CSSSkewY extends CSSTransformComponent {
    /**
     * The **\`ay\`** property of the along the y-axis (or ordinate).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay)
     */
    ay: CSSNumericValue;
}

declare var CSSSkewY: {
    prototype: CSSSkewY;
    new(ay: CSSNumericValue): CSSSkewY;
};

/**
 * The **\`CSSStartingStyleRule\`** interface of the CSS Object Model represents a CSS @starting-style at-rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule)
 */
interface CSSStartingStyleRule extends CSSGroupingRule {
}

declare var CSSStartingStyleRule: {
    prototype: CSSStartingStyleRule;
    new(): CSSStartingStyleRule;
};

/**
 * The **\`CSSStyleDeclaration\`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
 */
interface CSSStyleDeclaration {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
    accentColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
    alignContent: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */
    alignItems: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */
    alignSelf: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/alignment-baseline) */
    alignmentBaseline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */
    all: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */
    animation: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */
    animationComposition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */
    animationDelay: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */
    animationDirection: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */
    animationDuration: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */
    animationFillMode: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */
    animationIterationCount: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */
    animationName: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */
    animationPlayState: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */
    animationTimingFunction: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */
    appearance: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */
    aspectRatio: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */
    backdropFilter: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */
    backfaceVisibility: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */
    background: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */
    backgroundAttachment: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */
    backgroundBlendMode: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */
    backgroundClip: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */
    backgroundColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */
    backgroundImage: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */
    backgroundOrigin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */
    backgroundPosition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */
    backgroundPositionX: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */
    backgroundPositionY: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */
    backgroundRepeat: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */
    backgroundSize: string;
    baselineShift: string;
    baselineSource: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */
    blockSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */
    border: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */
    borderBlock: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */
    borderBlockColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */
    borderBlockEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */
    borderBlockEndColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */
    borderBlockEndStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */
    borderBlockEndWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */
    borderBlockStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */
    borderBlockStartColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */
    borderBlockStartStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */
    borderBlockStartWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */
    borderBlockStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */
    borderBlockWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */
    borderBottom: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */
    borderBottomColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */
    borderBottomLeftRadius: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */
    borderBottomRightRadius: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */
    borderBottomStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */
    borderBottomWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */
    borderCollapse: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */
    borderColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */
    borderEndEndRadius: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */
    borderEndStartRadius: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */
    borderImage: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */
    borderImageOutset: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */
    borderImageRepeat: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */
    borderImageSlice: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */
    borderImageSource: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */
    borderImageWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */
    borderInline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */
    borderInlineColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */
    borderInlineEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */
    borderInlineEndColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */
    borderInlineEndStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */
    borderInlineEndWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */
    borderInlineStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */
    borderInlineStartColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */
    borderInlineStartStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */
    borderInlineStartWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */
    borderInlineStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */
    borderInlineWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */
    borderLeft: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */
    borderLeftColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */
    borderLeftStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */
    borderLeftWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */
    borderRadius: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */
    borderRight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */
    borderRightColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */
    borderRightStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */
    borderRightWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */
    borderSpacing: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */
    borderStartEndRadius: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */
    borderStartStartRadius: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */
    borderStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */
    borderTop: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */
    borderTopColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */
    borderTopLeftRadius: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */
    borderTopRightRadius: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */
    borderTopStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */
    borderTopWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */
    borderWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */
    bottom: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-decoration-break) */
    boxDecorationBreak: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */
    boxShadow: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */
    boxSizing: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */
    breakAfter: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */
    breakBefore: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */
    breakInside: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */
    captionSide: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */
    caretColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */
    clear: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip)
     */
    clip: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */
    clipPath: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */
    clipRule: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
    color: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */
    colorInterpolation: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */
    colorInterpolationFilters: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
    colorScheme: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */
    columnCount: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */
    columnFill: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */
    columnGap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */
    columnRule: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */
    columnRuleColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */
    columnRuleStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */
    columnRuleWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */
    columnSpan: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */
    columnWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */
    columns: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */
    contain: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-block-size) */
    containIntrinsicBlockSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */
    containIntrinsicHeight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-inline-size) */
    containIntrinsicInlineSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */
    containIntrinsicSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */
    containIntrinsicWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */
    container: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */
    containerName: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */
    containerType: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */
    content: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */
    contentVisibility: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */
    counterIncrement: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */
    counterReset: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */
    counterSet: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */
    cssFloat: string;
    /**
     * The **\`cssText\`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText)
     */
    cssText: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */
    cursor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cx) */
    cx: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cy) */
    cy: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/d) */
    d: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */
    direction: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */
    display: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/dominant-baseline) */
    dominantBaseline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */
    emptyCells: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */
    fill: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */
    fillOpacity: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */
    fillRule: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */
    filter: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */
    flex: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */
    flexBasis: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */
    flexDirection: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */
    flexFlow: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */
    flexGrow: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */
    flexShrink: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */
    flexWrap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */
    float: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-color) */
    floodColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-opacity) */
    floodOpacity: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */
    font: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */
    fontFamily: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */
    fontFeatureSettings: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */
    fontKerning: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */
    fontOpticalSizing: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */
    fontPalette: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */
    fontSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */
    fontSizeAdjust: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch)
     */
    fontStretch: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */
    fontStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */
    fontSynthesis: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */
    fontSynthesisSmallCaps: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */
    fontSynthesisStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */
    fontSynthesisWeight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */
    fontVariant: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */
    fontVariantAlternates: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */
    fontVariantCaps: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */
    fontVariantEastAsian: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */
    fontVariantLigatures: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */
    fontVariantNumeric: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */
    fontVariantPosition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */
    fontVariationSettings: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */
    fontWeight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */
    forcedColorAdjust: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */
    gap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */
    grid: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */
    gridArea: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */
    gridAutoColumns: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */
    gridAutoFlow: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */
    gridAutoRows: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */
    gridColumn: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */
    gridColumnEnd: string;
    /** @deprecated This is a legacy alias of \`columnGap\`. */
    gridColumnGap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */
    gridColumnStart: string;
    /** @deprecated This is a legacy alias of \`gap\`. */
    gridGap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */
    gridRow: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */
    gridRowEnd: string;
    /** @deprecated This is a legacy alias of \`rowGap\`. */
    gridRowGap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */
    gridRowStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */
    gridTemplate: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */
    gridTemplateAreas: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */
    gridTemplateColumns: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */
    gridTemplateRows: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */
    height: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */
    hyphenateCharacter: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-limit-chars) */
    hyphenateLimitChars: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */
    hyphens: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation)
     */
    imageOrientation: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */
    imageRendering: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */
    inlineSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */
    inset: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */
    insetBlock: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */
    insetBlockEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */
    insetBlockStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */
    insetInline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */
    insetInlineEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */
    insetInlineStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */
    isolation: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */
    justifyContent: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */
    justifyItems: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */
    justifySelf: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */
    left: string;
    /**
     * The read-only property returns an integer that represents the number of style declarations in this CSS declaration block.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length)
     */
    readonly length: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */
    letterSpacing: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/lighting-color) */
    lightingColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */
    lineBreak: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */
    lineHeight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */
    listStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */
    listStyleImage: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */
    listStylePosition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */
    listStyleType: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */
    margin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */
    marginBlock: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */
    marginBlockEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */
    marginBlockStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */
    marginBottom: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */
    marginInline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */
    marginInlineEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */
    marginInlineStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */
    marginLeft: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */
    marginRight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */
    marginTop: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker) */
    marker: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-end) */
    markerEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-mid) */
    markerMid: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-start) */
    markerStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */
    mask: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */
    maskClip: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */
    maskComposite: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */
    maskImage: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */
    maskMode: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */
    maskOrigin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */
    maskPosition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */
    maskRepeat: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */
    maskSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */
    maskType: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */
    mathDepth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */
    mathStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */
    maxBlockSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */
    maxHeight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */
    maxInlineSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */
    maxWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */
    minBlockSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */
    minHeight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */
    minInlineSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */
    minWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */
    mixBlendMode: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */
    objectFit: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */
    objectPosition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */
    offset: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */
    offsetAnchor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */
    offsetDistance: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */
    offsetPath: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */
    offsetPosition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */
    offsetRotate: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */
    opacity: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */
    order: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */
    orphans: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */
    outline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */
    outlineColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */
    outlineOffset: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */
    outlineStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */
    outlineWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */
    overflow: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */
    overflowAnchor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-block) */
    overflowBlock: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */
    overflowClipMargin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-inline) */
    overflowInline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */
    overflowWrap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */
    overflowX: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */
    overflowY: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */
    overscrollBehavior: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */
    overscrollBehaviorBlock: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */
    overscrollBehaviorInline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */
    overscrollBehaviorX: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */
    overscrollBehaviorY: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */
    padding: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */
    paddingBlock: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */
    paddingBlockEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */
    paddingBlockStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */
    paddingBottom: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */
    paddingInline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */
    paddingInlineEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */
    paddingInlineStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */
    paddingLeft: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */
    paddingRight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */
    paddingTop: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */
    page: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after)
     */
    pageBreakAfter: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before)
     */
    pageBreakBefore: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside)
     */
    pageBreakInside: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */
    paintOrder: string;
    /**
     * The **CSSStyleDeclaration.parentRule** read-only property returns a CSSRule that is the parent of this style block, e.g., a CSSStyleRule representing the style for a CSS selector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule)
     */
    readonly parentRule: CSSRule | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */
    perspective: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */
    perspectiveOrigin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */
    placeContent: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */
    placeItems: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */
    placeSelf: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */
    pointerEvents: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */
    position: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */
    printColorAdjust: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */
    quotes: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/r) */
    r: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */
    resize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */
    right: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */
    rotate: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */
    rowGap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-align) */
    rubyAlign: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */
    rubyPosition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rx) */
    rx: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ry) */
    ry: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */
    scale: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */
    scrollBehavior: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */
    scrollMargin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */
    scrollMarginBlock: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */
    scrollMarginBlockEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */
    scrollMarginBlockStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */
    scrollMarginBottom: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */
    scrollMarginInline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */
    scrollMarginInlineEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */
    scrollMarginInlineStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */
    scrollMarginLeft: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */
    scrollMarginRight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */
    scrollMarginTop: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */
    scrollPadding: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */
    scrollPaddingBlock: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */
    scrollPaddingBlockEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */
    scrollPaddingBlockStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */
    scrollPaddingBottom: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */
    scrollPaddingInline: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */
    scrollPaddingInlineEnd: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */
    scrollPaddingInlineStart: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */
    scrollPaddingLeft: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */
    scrollPaddingRight: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */
    scrollPaddingTop: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */
    scrollSnapAlign: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */
    scrollSnapStop: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */
    scrollSnapType: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */
    scrollbarColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */
    scrollbarGutter: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */
    scrollbarWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */
    shapeImageThreshold: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */
    shapeMargin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */
    shapeOutside: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */
    shapeRendering: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */
    stopColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */
    stopOpacity: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */
    stroke: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */
    strokeDasharray: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */
    strokeDashoffset: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */
    strokeLinecap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */
    strokeLinejoin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */
    strokeMiterlimit: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */
    strokeOpacity: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */
    strokeWidth: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */
    tabSize: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */
    tableLayout: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */
    textAlign: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */
    textAlignLast: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */
    textAnchor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box) */
    textBox: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-edge) */
    textBoxEdge: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-trim) */
    textBoxTrim: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */
    textCombineUpright: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */
    textDecoration: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */
    textDecorationColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */
    textDecorationLine: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */
    textDecorationSkipInk: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */
    textDecorationStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */
    textDecorationThickness: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */
    textEmphasis: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */
    textEmphasisColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */
    textEmphasisPosition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */
    textEmphasisStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */
    textIndent: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */
    textOrientation: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */
    textOverflow: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */
    textRendering: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */
    textShadow: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */
    textTransform: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */
    textUnderlineOffset: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */
    textUnderlinePosition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
    textWrap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode) */
    textWrapMode: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) */
    textWrapStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
    top: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
    touchAction: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */
    transform: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */
    transformBox: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */
    transformOrigin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */
    transformStyle: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */
    transition: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */
    transitionBehavior: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */
    transitionDelay: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */
    transitionDuration: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */
    transitionProperty: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */
    transitionTimingFunction: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */
    translate: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */
    unicodeBidi: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */
    userSelect: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vector-effect) */
    vectorEffect: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
    verticalAlign: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */
    viewTransitionClass: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */
    viewTransitionName: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
    visibility: string;
    /**
     * @deprecated This is a legacy alias of \`alignContent\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content)
     */
    webkitAlignContent: string;
    /**
     * @deprecated This is a legacy alias of \`alignItems\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items)
     */
    webkitAlignItems: string;
    /**
     * @deprecated This is a legacy alias of \`alignSelf\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self)
     */
    webkitAlignSelf: string;
    /**
     * @deprecated This is a legacy alias of \`animation\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation)
     */
    webkitAnimation: string;
    /**
     * @deprecated This is a legacy alias of \`animationDelay\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay)
     */
    webkitAnimationDelay: string;
    /**
     * @deprecated This is a legacy alias of \`animationDirection\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction)
     */
    webkitAnimationDirection: string;
    /**
     * @deprecated This is a legacy alias of \`animationDuration\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration)
     */
    webkitAnimationDuration: string;
    /**
     * @deprecated This is a legacy alias of \`animationFillMode\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode)
     */
    webkitAnimationFillMode: string;
    /**
     * @deprecated This is a legacy alias of \`animationIterationCount\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count)
     */
    webkitAnimationIterationCount: string;
    /**
     * @deprecated This is a legacy alias of \`animationName\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name)
     */
    webkitAnimationName: string;
    /**
     * @deprecated This is a legacy alias of \`animationPlayState\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state)
     */
    webkitAnimationPlayState: string;
    /**
     * @deprecated This is a legacy alias of \`animationTimingFunction\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function)
     */
    webkitAnimationTimingFunction: string;
    /**
     * @deprecated This is a legacy alias of \`appearance\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance)
     */
    webkitAppearance: string;
    /**
     * @deprecated This is a legacy alias of \`backfaceVisibility\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility)
     */
    webkitBackfaceVisibility: string;
    /**
     * @deprecated This is a legacy alias of \`backgroundClip\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip)
     */
    webkitBackgroundClip: string;
    /**
     * @deprecated This is a legacy alias of \`backgroundOrigin\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin)
     */
    webkitBackgroundOrigin: string;
    /**
     * @deprecated This is a legacy alias of \`backgroundSize\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size)
     */
    webkitBackgroundSize: string;
    /**
     * @deprecated This is a legacy alias of \`borderBottomLeftRadius\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius)
     */
    webkitBorderBottomLeftRadius: string;
    /**
     * @deprecated This is a legacy alias of \`borderBottomRightRadius\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius)
     */
    webkitBorderBottomRightRadius: string;
    /**
     * @deprecated This is a legacy alias of \`borderRadius\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius)
     */
    webkitBorderRadius: string;
    /**
     * @deprecated This is a legacy alias of \`borderTopLeftRadius\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius)
     */
    webkitBorderTopLeftRadius: string;
    /**
     * @deprecated This is a legacy alias of \`borderTopRightRadius\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius)
     */
    webkitBorderTopRightRadius: string;
    /**
     * @deprecated This is a legacy alias of \`boxAlign\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align)
     */
    webkitBoxAlign: string;
    /**
     * @deprecated This is a legacy alias of \`boxFlex\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex)
     */
    webkitBoxFlex: string;
    /**
     * @deprecated This is a legacy alias of \`boxOrdinalGroup\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group)
     */
    webkitBoxOrdinalGroup: string;
    /**
     * @deprecated This is a legacy alias of \`boxOrient\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient)
     */
    webkitBoxOrient: string;
    /**
     * @deprecated This is a legacy alias of \`boxPack\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack)
     */
    webkitBoxPack: string;
    /**
     * @deprecated This is a legacy alias of \`boxShadow\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow)
     */
    webkitBoxShadow: string;
    /**
     * @deprecated This is a legacy alias of \`boxSizing\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing)
     */
    webkitBoxSizing: string;
    /**
     * @deprecated This is a legacy alias of \`filter\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter)
     */
    webkitFilter: string;
    /**
     * @deprecated This is a legacy alias of \`flex\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex)
     */
    webkitFlex: string;
    /**
     * @deprecated This is a legacy alias of \`flexBasis\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis)
     */
    webkitFlexBasis: string;
    /**
     * @deprecated This is a legacy alias of \`flexDirection\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction)
     */
    webkitFlexDirection: string;
    /**
     * @deprecated This is a legacy alias of \`flexFlow\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow)
     */
    webkitFlexFlow: string;
    /**
     * @deprecated This is a legacy alias of \`flexGrow\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow)
     */
    webkitFlexGrow: string;
    /**
     * @deprecated This is a legacy alias of \`flexShrink\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink)
     */
    webkitFlexShrink: string;
    /**
     * @deprecated This is a legacy alias of \`flexWrap\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap)
     */
    webkitFlexWrap: string;
    /**
     * @deprecated This is a legacy alias of \`justifyContent\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
     */
    webkitJustifyContent: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-clamp) */
    webkitLineClamp: string;
    /**
     * @deprecated This is a legacy alias of \`mask\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask)
     */
    webkitMask: string;
    /**
     * @deprecated This is a legacy alias of \`maskBorder\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border)
     */
    webkitMaskBoxImage: string;
    /**
     * @deprecated This is a legacy alias of \`maskBorderOutset\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset)
     */
    webkitMaskBoxImageOutset: string;
    /**
     * @deprecated This is a legacy alias of \`maskBorderRepeat\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat)
     */
    webkitMaskBoxImageRepeat: string;
    /**
     * @deprecated This is a legacy alias of \`maskBorderSlice\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice)
     */
    webkitMaskBoxImageSlice: string;
    /**
     * @deprecated This is a legacy alias of \`maskBorderSource\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source)
     */
    webkitMaskBoxImageSource: string;
    /**
     * @deprecated This is a legacy alias of \`maskBorderWidth\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width)
     */
    webkitMaskBoxImageWidth: string;
    /**
     * @deprecated This is a legacy alias of \`maskClip\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip)
     */
    webkitMaskClip: string;
    /**
     * @deprecated This is a legacy alias of \`maskComposite\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite)
     */
    webkitMaskComposite: string;
    /**
     * @deprecated This is a legacy alias of \`maskImage\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image)
     */
    webkitMaskImage: string;
    /**
     * @deprecated This is a legacy alias of \`maskOrigin\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin)
     */
    webkitMaskOrigin: string;
    /**
     * @deprecated This is a legacy alias of \`maskPosition\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position)
     */
    webkitMaskPosition: string;
    /**
     * @deprecated This is a legacy alias of \`maskRepeat\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat)
     */
    webkitMaskRepeat: string;
    /**
     * @deprecated This is a legacy alias of \`maskSize\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size)
     */
    webkitMaskSize: string;
    /**
     * @deprecated This is a legacy alias of \`order\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order)
     */
    webkitOrder: string;
    /**
     * @deprecated This is a legacy alias of \`perspective\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective)
     */
    webkitPerspective: string;
    /**
     * @deprecated This is a legacy alias of \`perspectiveOrigin\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin)
     */
    webkitPerspectiveOrigin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */
    webkitTextFillColor: string;
    /**
     * @deprecated This is a legacy alias of \`textSizeAdjust\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust)
     */
    webkitTextSizeAdjust: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */
    webkitTextStroke: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */
    webkitTextStrokeColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */
    webkitTextStrokeWidth: string;
    /**
     * @deprecated This is a legacy alias of \`transform\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform)
     */
    webkitTransform: string;
    /**
     * @deprecated This is a legacy alias of \`transformOrigin\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin)
     */
    webkitTransformOrigin: string;
    /**
     * @deprecated This is a legacy alias of \`transformStyle\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style)
     */
    webkitTransformStyle: string;
    /**
     * @deprecated This is a legacy alias of \`transition\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition)
     */
    webkitTransition: string;
    /**
     * @deprecated This is a legacy alias of \`transitionDelay\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay)
     */
    webkitTransitionDelay: string;
    /**
     * @deprecated This is a legacy alias of \`transitionDuration\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration)
     */
    webkitTransitionDuration: string;
    /**
     * @deprecated This is a legacy alias of \`transitionProperty\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property)
     */
    webkitTransitionProperty: string;
    /**
     * @deprecated This is a legacy alias of \`transitionTimingFunction\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function)
     */
    webkitTransitionTimingFunction: string;
    /**
     * @deprecated This is a legacy alias of \`userSelect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select)
     */
    webkitUserSelect: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */
    whiteSpace: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */
    whiteSpaceCollapse: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */
    widows: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */
    width: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */
    willChange: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */
    wordBreak: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */
    wordSpacing: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap)
     */
    wordWrap: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */
    writingMode: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */
    x: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */
    y: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
    zIndex: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */
    zoom: string;
    /**
     * The **CSSStyleDeclaration.getPropertyPriority()** method interface returns a string that provides all explicitly set priorities on the CSS property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority)
     */
    getPropertyPriority(property: string): string;
    /**
     * The **CSSStyleDeclaration.getPropertyValue()** method interface returns a string containing the value of a specified CSS property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue)
     */
    getPropertyValue(property: string): string;
    /**
     * The \`CSSStyleDeclaration.item()\` method interface returns a CSS property name from a CSSStyleDeclaration by index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item)
     */
    item(index: number): string;
    /**
     * The **\`CSSStyleDeclaration.removeProperty()\`** method interface removes a property from a CSS style declaration object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty)
     */
    removeProperty(property: string): string;
    /**
     * The **\`CSSStyleDeclaration.setProperty()\`** method interface sets a new value for a property on a CSS style declaration object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty)
     */
    setProperty(property: string, value: string | null, priority?: string): void;
    [index: number]: string;
}

declare var CSSStyleDeclaration: {
    prototype: CSSStyleDeclaration;
    new(): CSSStyleDeclaration;
};

/**
 * The **\`CSSStyleRule\`** interface represents a single CSS style rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule)
 */
interface CSSStyleRule extends CSSGroupingRule {
    /**
     * The **\`selectorText\`** property of the CSSStyleRule interface gets and sets the selectors associated with the \`CSSStyleRule\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText)
     */
    selectorText: string;
    /**
     * The read-only **\`style\`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style)
     */
    get style(): CSSStyleDeclaration;
    set style(cssText: string);
    /**
     * The **\`styleMap\`** read-only property of the which provides access to the rule's property-value pairs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap)
     */
    readonly styleMap: StylePropertyMap;
}

declare var CSSStyleRule: {
    prototype: CSSStyleRule;
    new(): CSSStyleRule;
};

/**
 * The **\`CSSStyleSheet\`** interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet)
 */
interface CSSStyleSheet extends StyleSheet {
    /**
     * The read-only CSSStyleSheet property **\`cssRules\`** returns a live CSSRuleList which provides a real-time, up-to-date list of every CSS rule which comprises the stylesheet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules)
     */
    readonly cssRules: CSSRuleList;
    /**
     * The read-only CSSStyleSheet property **\`ownerRule\`** returns the CSSImportRule corresponding to the @import at-rule which imported the stylesheet into the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule)
     */
    readonly ownerRule: CSSRule | null;
    /**
     * **\`rules\`** is a _deprecated_ _legacy property_ of the CSSStyleSheet interface.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules)
     */
    readonly rules: CSSRuleList;
    /**
     * The obsolete CSSStyleSheet interface's **\`addRule()\`** _legacy method_ adds a new rule to the stylesheet.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule)
     */
    addRule(selector?: string, style?: string, index?: number): number;
    /**
     * The CSSStyleSheet method **\`deleteRule()\`** removes a rule from the stylesheet object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule)
     */
    deleteRule(index: number): void;
    /**
     * The **\`CSSStyleSheet.insertRule()\`** method inserts a new CSS rule into the current style sheet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule)
     */
    insertRule(rule: string, index?: number): number;
    /**
     * The obsolete CSSStyleSheet method **\`removeRule()\`** removes a rule from the stylesheet object.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule)
     */
    removeRule(index?: number): void;
    /**
     * The **\`replace()\`** method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace)
     */
    replace(text: string): Promise<CSSStyleSheet>;
    /**
     * The **\`replaceSync()\`** method of the CSSStyleSheet interface synchronously replaces the content of the stylesheet with the content passed into it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync)
     */
    replaceSync(text: string): void;
}

declare var CSSStyleSheet: {
    prototype: CSSStyleSheet;
    new(options?: CSSStyleSheetInit): CSSStyleSheet;
};

/**
 * The **\`CSSStyleValue\`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue)
 */
interface CSSStyleValue {
    toString(): string;
}

declare var CSSStyleValue: {
    prototype: CSSStyleValue;
    new(): CSSStyleValue;
    /**
     * The **\`parse()\`** static method of the CSSStyleValue interface sets a specific CSS property to the specified values and returns the first value as a CSSStyleValue object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static)
     */
    parse(property: string, cssText: string): CSSStyleValue;
    /**
     * The **\`parseAll()\`** static method of the CSSStyleValue interface sets all occurrences of a specific CSS property to the specified value and returns an array of CSSStyleValue objects, each containing one of the supplied values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static)
     */
    parseAll(property: string, cssText: string): CSSStyleValue[];
};

/**
 * The **\`CSSSupportsRule\`** interface represents a single CSS @supports at-rule.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule)
 */
interface CSSSupportsRule extends CSSConditionRule {
}

declare var CSSSupportsRule: {
    prototype: CSSSupportsRule;
    new(): CSSSupportsRule;
};

/**
 * The **\`CSSTransformComponent\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent)
 */
interface CSSTransformComponent {
    /**
     * The **\`is2D\`** read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D)
     */
    is2D: boolean;
    /**
     * The **\`toMatrix()\`** method of the object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix)
     */
    toMatrix(): DOMMatrix;
    toString(): string;
}

declare var CSSTransformComponent: {
    prototype: CSSTransformComponent;
    new(): CSSTransformComponent;
};

/**
 * The **\`CSSTransformValue\`** interface of the CSS Typed Object Model API represents \`transform-list\` values as used by the CSS transform property.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue)
 */
interface CSSTransformValue extends CSSStyleValue {
    /**
     * The read-only **\`is2D\`** property of the In the case of the \`CSSTransformValue\` this property returns true unless any of the individual functions return false for \`Is2D\`, in which case it returns false.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D)
     */
    readonly is2D: boolean;
    /**
     * The read-only **\`length\`** property of the the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length)
     */
    readonly length: number;
    /**
     * The **\`toMatrix()\`** method of the \`\`\`js-nolint toMatrix() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix)
     */
    toMatrix(): DOMMatrix;
    forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
    [index: number]: CSSTransformComponent;
}

declare var CSSTransformValue: {
    prototype: CSSTransformValue;
    new(transforms: CSSTransformComponent[]): CSSTransformValue;
};

/**
 * The **\`CSSTransition\`** interface of the Web Animations API represents an Animation object used for a CSS Transition.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition)
 */
interface CSSTransition extends Animation {
    /**
     * The **\`transitionProperty\`** property of the name** of the transition.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty)
     */
    readonly transitionProperty: string;
    addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var CSSTransition: {
    prototype: CSSTransition;
    new(): CSSTransition;
};

/**
 * The **\`CSSTranslate\`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate)
 */
interface CSSTranslate extends CSSTransformComponent {
    /**
     * The **\`x\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x)
     */
    x: CSSNumericValue;
    /**
     * The **\`y\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y)
     */
    y: CSSNumericValue;
    /**
     * The **\`z\`** property of the vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z)
     */
    z: CSSNumericValue;
}

declare var CSSTranslate: {
    prototype: CSSTranslate;
    new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
};

/**
 * The **\`CSSUnitValue\`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
 */
interface CSSUnitValue extends CSSNumericValue {
    /**
     * The **\`CSSUnitValue.unit\`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
     */
    readonly unit: string;
    /**
     * The **\`CSSUnitValue.value\`** property of the A double.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value)
     */
    value: number;
}

declare var CSSUnitValue: {
    prototype: CSSUnitValue;
    new(value: number, unit: string): CSSUnitValue;
};

/**
 * The **\`CSSUnparsedValue\`** interface of the CSS Typed Object Model API represents property values that reference custom properties.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue)
 */
interface CSSUnparsedValue extends CSSStyleValue {
    /**
     * The **\`length\`** read-only property of the An integer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length)
     */
    readonly length: number;
    forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
    [index: number]: CSSUnparsedSegment;
}

declare var CSSUnparsedValue: {
    prototype: CSSUnparsedValue;
    new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
};

/**
 * The **\`CSSVariableReferenceValue\`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue)
 */
interface CSSVariableReferenceValue {
    /**
     * The **\`fallback\`** read-only property of the A CSSUnparsedValue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback)
     */
    readonly fallback: CSSUnparsedValue | null;
    /**
     * The **\`variable\`** property of the A string beginning with \`--\` (that is, a custom property name).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable)
     */
    variable: string;
}

declare var CSSVariableReferenceValue: {
    prototype: CSSVariableReferenceValue;
    new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
};

interface CSSViewTransitionRule extends CSSRule {
    readonly navigation: string;
    readonly types: ReadonlyArray<string>;
}

declare var CSSViewTransitionRule: {
    prototype: CSSViewTransitionRule;
    new(): CSSViewTransitionRule;
};

/**
 * The **\`Cache\`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
 */
interface Cache {
    /**
     * The **\`add()\`** method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add)
     */
    add(request: RequestInfo | URL): Promise<void>;
    /**
     * The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
     */
    addAll(requests: RequestInfo[]): Promise<void>;
    /**
     * The **\`delete()\`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to \`true\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete)
     */
    delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
    /**
     * The **\`keys()\`** method of the Cache interface returns a representing the keys of the Cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys)
     */
    keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
    /**
     * The **\`match()\`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match)
     */
    match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
    /**
     * The **\`matchAll()\`** method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll)
     */
    matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
    /**
     * The **\`put()\`** method of the Often, you will just want to Window/fetch one or more requests, then add the result straight to your cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put)
     */
    put(request: RequestInfo | URL, response: Response): Promise<void>;
}

declare var Cache: {
    prototype: Cache;
    new(): Cache;
};

/**
 * The **\`CacheStorage\`** interface represents the storage for Cache objects.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)
 */
interface CacheStorage {
    /**
     * The **\`delete()\`** method of the CacheStorage interface finds the Cache object matching the \`cacheName\`, and if found, deletes the Cache object and returns a Promise that resolves to \`true\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete)
     */
    delete(cacheName: string): Promise<boolean>;
    /**
     * The **\`has()\`** method of the CacheStorage interface returns a Promise that resolves to \`true\` if a You can access \`CacheStorage\` through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has)
     */
    has(cacheName: string): Promise<boolean>;
    /**
     * The **\`keys()\`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys)
     */
    keys(): Promise<string[]>;
    /**
     * The **\`match()\`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match)
     */
    match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
    /**
     * The **\`open()\`** method of the the Cache object matching the \`cacheName\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open)
     */
    open(cacheName: string): Promise<Cache>;
}

declare var CacheStorage: {
    prototype: CacheStorage;
    new(): CacheStorage;
};

/**
 * The **\`CanvasCaptureMediaStreamTrack\`** interface of the Media Capture and Streams API represents the video track contained in a MediaStream being generated from a canvas following a call to HTMLCanvasElement.captureStream().
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack)
 */
interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
    /**
     * The **\`canvas\`** read-only property of the CanvasCaptureMediaStreamTrack interface returns the HTMLCanvasElement from which frames are being captured.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas)
     */
    readonly canvas: HTMLCanvasElement;
    /**
     * The **\`requestFrame()\`** method of the CanvasCaptureMediaStreamTrack interface requests that a frame be captured from the canvas and sent to the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame)
     */
    requestFrame(): void;
    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var CanvasCaptureMediaStreamTrack: {
    prototype: CanvasCaptureMediaStreamTrack;
    new(): CanvasCaptureMediaStreamTrack;
};

interface CanvasCompositing {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */
    globalAlpha: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */
    globalCompositeOperation: GlobalCompositeOperation;
}

interface CanvasDrawImage {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */
    drawImage(image: CanvasImageSource, dx: number, dy: number): void;
    drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
    drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}

interface CanvasDrawPath {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */
    beginPath(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */
    clip(fillRule?: CanvasFillRule): void;
    clip(path: Path2D, fillRule?: CanvasFillRule): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */
    fill(fillRule?: CanvasFillRule): void;
    fill(path: Path2D, fillRule?: CanvasFillRule): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */
    isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
    isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */
    isPointInStroke(x: number, y: number): boolean;
    isPointInStroke(path: Path2D, x: number, y: number): boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */
    stroke(): void;
    stroke(path: Path2D): void;
}

interface CanvasFillStrokeStyles {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */
    fillStyle: string | CanvasGradient | CanvasPattern;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */
    strokeStyle: string | CanvasGradient | CanvasPattern;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */
    createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */
    createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */
    createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */
    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}

interface CanvasFilters {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */
    filter: string;
}

/**
 * The **\`CanvasGradient\`** interface represents an opaque object describing a gradient.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
 */
interface CanvasGradient {
    /**
     * The **\`CanvasGradient.addColorStop()\`** method adds a new color stop, defined by an \`offset\` and a \`color\`, to a given canvas gradient.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)
     */
    addColorStop(offset: number, color: string): void;
}

declare var CanvasGradient: {
    prototype: CanvasGradient;
    new(): CanvasGradient;
};

interface CanvasImageData {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */
    createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
    createImageData(imageData: ImageData): ImageData;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */
    getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */
    putImageData(imageData: ImageData, dx: number, dy: number): void;
    putImageData(imageData: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}

interface CanvasImageSmoothing {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */
    imageSmoothingEnabled: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */
    imageSmoothingQuality: ImageSmoothingQuality;
}

interface CanvasPath {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */
    arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */
    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */
    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */
    closePath(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */
    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */
    lineTo(x: number, y: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */
    moveTo(x: number, y: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */
    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */
    rect(x: number, y: number, w: number, h: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
    roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}

interface CanvasPathDrawingStyles {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */
    lineCap: CanvasLineCap;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */
    lineDashOffset: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */
    lineJoin: CanvasLineJoin;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */
    lineWidth: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */
    miterLimit: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */
    getLineDash(): number[];
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
    setLineDash(segments: number[]): void;
}

/**
 * The **\`CanvasPattern\`** interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)
 */
interface CanvasPattern {
    /**
     * The **\`CanvasPattern.setTransform()\`** method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)
     */
    setTransform(transform?: DOMMatrix2DInit): void;
}

declare var CanvasPattern: {
    prototype: CanvasPattern;
    new(): CanvasPattern;
};

interface CanvasRect {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */
    clearRect(x: number, y: number, w: number, h: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */
    fillRect(x: number, y: number, w: number, h: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */
    strokeRect(x: number, y: number, w: number, h: number): void;
}

/**
 * The **\`CanvasRenderingContext2D\`** interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a canvas element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D)
 */
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
    /**
     * The **\`CanvasRenderingContext2D.canvas\`** property, part of the Canvas API, is a read-only reference to the might be \`null\` if there is no associated canvas element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas)
     */
    readonly canvas: HTMLCanvasElement;
}

declare var CanvasRenderingContext2D: {
    prototype: CanvasRenderingContext2D;
    new(): CanvasRenderingContext2D;
};

interface CanvasSettings {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */
    getContextAttributes(): CanvasRenderingContext2DSettings;
}

interface CanvasShadowStyles {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */
    shadowBlur: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */
    shadowColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */
    shadowOffsetX: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */
    shadowOffsetY: number;
}

interface CanvasState {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
    isContextLost(): boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
    reset(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
    restore(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
    save(): void;
}

interface CanvasText {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */
    fillText(text: string, x: number, y: number, maxWidth?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */
    measureText(text: string): TextMetrics;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */
    strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}

interface CanvasTextDrawingStyles {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */
    direction: CanvasDirection;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */
    font: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
    fontKerning: CanvasFontKerning;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
    fontStretch: CanvasFontStretch;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
    fontVariantCaps: CanvasFontVariantCaps;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
    letterSpacing: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
    textAlign: CanvasTextAlign;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */
    textBaseline: CanvasTextBaseline;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */
    textRendering: CanvasTextRendering;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */
    wordSpacing: string;
}

interface CanvasTransform {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */
    getTransform(): DOMMatrix;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */
    resetTransform(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */
    rotate(angle: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */
    scale(x: number, y: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */
    setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
    setTransform(transform?: DOMMatrix2DInit): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */
    transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */
    translate(x: number, y: number): void;
}

interface CanvasUserInterface {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */
    drawFocusIfNeeded(element: Element): void;
    drawFocusIfNeeded(path: Path2D, element: Element): void;
}

/**
 * The \`CaretPosition\` interface represents the caret position, an indicator for the text insertion point.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition)
 */
interface CaretPosition {
    readonly offset: number;
    readonly offsetNode: Node;
    getClientRect(): DOMRect | null;
}

declare var CaretPosition: {
    prototype: CaretPosition;
    new(): CaretPosition;
};

/**
 * The \`ChannelMergerNode\` interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)
 */
interface ChannelMergerNode extends AudioNode {
}

declare var ChannelMergerNode: {
    prototype: ChannelMergerNode;
    new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
};

/**
 * The \`ChannelSplitterNode\` interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode)
 */
interface ChannelSplitterNode extends AudioNode {
}

declare var ChannelSplitterNode: {
    prototype: ChannelSplitterNode;
    new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
};

/**
 * The **\`CharacterData\`** abstract interface represents a Node object that contains characters.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData)
 */
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
    /**
     * The **\`data\`** property of the CharacterData interface represent the value of the current object's data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data)
     */
    data: string;
    /**
     * The read-only **\`CharacterData.length\`** property returns the number of characters in the contained data, as a positive integer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length)
     */
    readonly length: number;
    readonly ownerDocument: Document;
    /**
     * The **\`appendData()\`** method of the CharacterData interface adds the provided data to the end of the node's current data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData)
     */
    appendData(data: string): void;
    /**
     * The **\`deleteData()\`** method of the CharacterData interface removes all or part of the data from this \`CharacterData\` node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData)
     */
    deleteData(offset: number, count: number): void;
    /**
     * The **\`insertData()\`** method of the CharacterData interface inserts the provided data into this \`CharacterData\` node's current data, at the provided offset from the start of the existing data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData)
     */
    insertData(offset: number, data: string): void;
    /**
     * The **\`replaceData()\`** method of the CharacterData interface removes a certain number of characters of the existing text in a given \`CharacterData\` node and replaces those characters with the text provided.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData)
     */
    replaceData(offset: number, count: number, data: string): void;
    /**
     * The **\`substringData()\`** method of the CharacterData interface returns a portion of the existing data, starting at the specified index and extending for a given number of characters afterwards.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData)
     */
    substringData(offset: number, count: number): string;
    /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
    get textContent(): string;
    set textContent(value: string | null);
}

declare var CharacterData: {
    prototype: CharacterData;
    new(): CharacterData;
};

interface ChildNode extends Node {
    /**
     * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
     *
     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after)
     */
    after(...nodes: (Node | string)[]): void;
    /**
     * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
     *
     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before)
     */
    before(...nodes: (Node | string)[]): void;
    /**
     * Removes node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove)
     */
    remove(): void;
    /**
     * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
     *
     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith)
     */
    replaceWith(...nodes: (Node | string)[]): void;
}

/** @deprecated */
interface ClientRect extends DOMRect {
}

/**
 * The **\`Clipboard\`** interface of the Clipboard API provides read and write access to the contents of the system clipboard.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard)
 */
interface Clipboard extends EventTarget {
    /**
     * The **\`read()\`** method of the Clipboard interface requests a copy of the clipboard's contents, fulfilling the returned Promise with the data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read)
     */
    read(): Promise<ClipboardItems>;
    /**
     * The **\`readText()\`** method of the Clipboard interface returns a Promise which fulfills with a copy of the textual contents of the system clipboard.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText)
     */
    readText(): Promise<string>;
    /**
     * The **\`write()\`** method of the Clipboard interface writes arbitrary ClipboardItem data such as images and text to the clipboard, fulfilling the returned Promise on completion.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write)
     */
    write(data: ClipboardItems): Promise<void>;
    /**
     * The **\`writeText()\`** method of the Clipboard interface writes the specified text to the system clipboard, returning a Promise that is resolved once the system clipboard has been updated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText)
     */
    writeText(data: string): Promise<void>;
}

declare var Clipboard: {
    prototype: Clipboard;
    new(): Clipboard;
};

/**
 * The **\`ClipboardEvent\`** interface of the Clipboard API represents events providing information related to modification of the clipboard, that is Element/cut_event, Element/copy_event, and Element/paste_event events.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent)
 */
interface ClipboardEvent extends Event {
    /**
     * The **\`clipboardData\`** property of the ClipboardEvent interface holds a DataTransfer object, which can be used to: - specify what data should be put into the clipboard from the Element/cut_event and Element/copy_event event handlers, typically with a DataTransfer.setData call; - obtain the data to be pasted from the Element/paste_event event handler, typically with a DataTransfer.getData call.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData)
     */
    readonly clipboardData: DataTransfer | null;
}

declare var ClipboardEvent: {
    prototype: ClipboardEvent;
    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
};

/**
 * The **\`ClipboardItem\`** interface of the Clipboard API represents a single item format, used when reading or writing clipboard data using Clipboard.read() and Clipboard.write() respectively.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
 */
interface ClipboardItem {
    /**
     * The read-only **\`presentationStyle\`** property of the ClipboardItem interface returns a string indicating how an item should be presented.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle)
     */
    readonly presentationStyle: PresentationStyle;
    /**
     * The read-only **\`types\`** property of the ClipboardItem interface returns an Array of MIME type available within the ClipboardItem.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types)
     */
    readonly types: ReadonlyArray<string>;
    /**
     * The **\`getType()\`** method of the ClipboardItem interface returns a Promise that resolves with a Blob of the requested MIME type or an error if the MIME type is not found.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType)
     */
    getType(type: string): Promise<Blob>;
}

declare var ClipboardItem: {
    prototype: ClipboardItem;
    new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
    /**
     * The **\`supports()\`** static method of the ClipboardItem interface returns \`true\` if the given MIME type is supported by the clipboard, and \`false\` otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static)
     */
    supports(type: string): boolean;
};

/**
 * A \`CloseEvent\` is sent to clients using WebSockets when the connection is closed.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
 */
interface CloseEvent extends Event {
    /**
     * The **\`code\`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
     */
    readonly code: number;
    /**
     * The **\`reason\`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
     */
    readonly reason: string;
    /**
     * The **\`wasClean\`** read-only property of the CloseEvent interface returns \`true\` if the connection closed cleanly.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
     */
    readonly wasClean: boolean;
}

declare var CloseEvent: {
    prototype: CloseEvent;
    new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};

/**
 * The **\`Comment\`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment)
 */
interface Comment extends CharacterData {
}

declare var Comment: {
    prototype: Comment;
    new(data?: string): Comment;
};

/**
 * The DOM **\`CompositionEvent\`** represents events that occur due to the user indirectly entering text.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent)
 */
interface CompositionEvent extends UIEvent {
    /**
     * The **\`data\`** read-only property of the method that raised the event; its exact nature varies depending on the type of event that generated the \`CompositionEvent\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data)
     */
    readonly data: string;
    /**
     * The **\`initCompositionEvent()\`** method of the CompositionEvent interface initializes the attributes of a \`CompositionEvent\` object instance.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent)
     */
    initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
}

declare var CompositionEvent: {
    prototype: CompositionEvent;
    new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
};

/**
 * The **\`CompressionStream\`** interface of the Compression Streams API is an API for compressing a stream of data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
 */
interface CompressionStream extends GenericTransformStream {
    readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
    readonly writable: WritableStream<BufferSource>;
}

declare var CompressionStream: {
    prototype: CompressionStream;
    new(format: CompressionFormat): CompressionStream;
};

/**
 * The \`ConstantSourceNode\` interface—part of the Web Audio API—represents an audio source (based upon AudioScheduledSourceNode) whose output is single unchanging value.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode)
 */
interface ConstantSourceNode extends AudioScheduledSourceNode {
    /**
     * The read-only \`offset\` property of the ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset)
     */
    readonly offset: AudioParam;
    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var ConstantSourceNode: {
    prototype: ConstantSourceNode;
    new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
};

/**
 * The **\`ContentVisibilityAutoStateChangeEvent\`** interface is the event object for the element/contentvisibilityautostatechange_event event, which fires on any element with content-visibility set on it when it starts or stops being relevant to the user and skipping its contents.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent)
 */
interface ContentVisibilityAutoStateChangeEvent extends Event {
    /**
     * The \`skipped\` read-only property of the ContentVisibilityAutoStateChangeEvent interface returns \`true\` if the user agent skips the element's contents, or \`false\` otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped)
     */
    readonly skipped: boolean;
}

declare var ContentVisibilityAutoStateChangeEvent: {
    prototype: ContentVisibilityAutoStateChangeEvent;
    new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent;
};

/**
 * The \`ConvolverNode\` interface is an AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode)
 */
interface ConvolverNode extends AudioNode {
    /**
     * The **\`buffer\`** property of the ConvolverNode interface represents a mono, stereo, or 4-channel AudioBuffer containing the (possibly multichannel) impulse response used by the \`ConvolverNode\` to create the reverb effect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer)
     */
    buffer: AudioBuffer | null;
    /**
     * The \`normalize\` property of the ConvolverNode interface is a boolean that controls whether the impulse response from the buffer will be scaled by an equal-power normalization when the \`buffer\` attribute is set, or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize)
     */
    normalize: boolean;
}

declare var ConvolverNode: {
    prototype: ConvolverNode;
    new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
};

/**
 * The **\`CookieChangeEvent\`** interface of the Cookie Store API is the event type of the CookieStore/change_event event fired at a CookieStore when any cookies are created or deleted.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent)
 */
interface CookieChangeEvent extends Event {
    /**
     * The **\`changed\`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been changed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/changed)
     */
    readonly changed: ReadonlyArray<CookieListItem>;
    /**
     * The **\`deleted\`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been deleted by the given \`CookieChangeEvent\` instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/deleted)
     */
    readonly deleted: ReadonlyArray<CookieListItem>;
}

declare var CookieChangeEvent: {
    prototype: CookieChangeEvent;
    new(type: string, eventInitDict?: CookieChangeEventInit): CookieChangeEvent;
};

interface CookieStoreEventMap {
    "change": CookieChangeEvent;
}

/**
 * The **\`CookieStore\`** interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore)
 */
interface CookieStore extends EventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/change_event) */
    onchange: ((this: CookieStore, ev: CookieChangeEvent) => any) | null;
    /**
     * The **\`delete()\`** method of the CookieStore interface deletes a cookie that matches the given \`name\` or \`options\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete)
     */
    delete(name: string): Promise<void>;
    delete(options: CookieStoreDeleteOptions): Promise<void>;
    /**
     * The **\`get()\`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given \`name\` or \`options\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get)
     */
    get(name: string): Promise<CookieListItem | null>;
    get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>;
    /**
     * The **\`getAll()\`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the \`name\` or \`options\` passed to it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll)
     */
    getAll(name: string): Promise<CookieList>;
    getAll(options?: CookieStoreGetOptions): Promise<CookieList>;
    /**
     * The **\`set()\`** method of the CookieStore interface sets a cookie with the given \`name\` and \`value\` or \`options\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set)
     */
    set(name: string, value: string): Promise<void>;
    set(options: CookieInit): Promise<void>;
    addEventListener<K extends keyof CookieStoreEventMap>(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof CookieStoreEventMap>(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var CookieStore: {
    prototype: CookieStore;
    new(): CookieStore;
};

/**
 * The **\`CookieStoreManager\`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
 */
interface CookieStoreManager {
    /**
     * The **\`getSubscriptions()\`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
     */
    getSubscriptions(): Promise<CookieStoreGetOptions[]>;
    /**
     * The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
     */
    subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
    /**
     * The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
     */
    unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
}

declare var CookieStoreManager: {
    prototype: CookieStoreManager;
    new(): CookieStoreManager;
};

/**
 * The **\`CountQueuingStrategy\`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
 */
interface CountQueuingStrategy extends QueuingStrategy {
    /**
     * The read-only **\`CountQueuingStrategy.highWaterMark\`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark)
     */
    readonly highWaterMark: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
    readonly size: QueuingStrategySize;
}

declare var CountQueuingStrategy: {
    prototype: CountQueuingStrategy;
    new(init: QueuingStrategyInit): CountQueuingStrategy;
};

/**
 * The **\`Credential\`** interface of the Credential Management API provides information about an entity (usually a user) normally as a prerequisite to a trust decision.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential)
 */
interface Credential {
    /**
     * The **\`id\`** read-only property of the Credential interface returns a string containing the credential's identifier.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id)
     */
    readonly id: string;
    /**
     * The **\`type\`** read-only property of the Credential interface returns a string containing the credential's type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type)
     */
    readonly type: string;
}

declare var Credential: {
    prototype: Credential;
    new(): Credential;
};

/**
 * The **\`CredentialsContainer\`** interface of the Credential Management API exposes methods to request credentials and notify the user agent when events such as successful sign in or sign out happen.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer)
 */
interface CredentialsContainer {
    /**
     * The **\`create()\`** method of the CredentialsContainer interface creates a new credential, which can then be stored and later retrieved using the CredentialsContainer.get method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create)
     */
    create(options?: CredentialCreationOptions): Promise<Credential | null>;
    /**
     * The **\`get()\`** method of the CredentialsContainer interface returns a Promise that fulfills with a single credential, which can then be used to authenticate a user to a website.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get)
     */
    get(options?: CredentialRequestOptions): Promise<Credential | null>;
    /**
     * The **\`preventSilentAccess()\`** method of the CredentialsContainer interface sets a flag that specifies whether automatic log in is allowed for future visits to the current origin, then returns a Promise that resolves to \`undefined\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess)
     */
    preventSilentAccess(): Promise<void>;
    /**
     * The **\`store()\`** method of the \`\`\`js-nolint store(credentials) \`\`\` - \`credentials\` - : A valid Credential instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store)
     */
    store(credential: Credential): Promise<void>;
}

declare var CredentialsContainer: {
    prototype: CredentialsContainer;
    new(): CredentialsContainer;
};

/**
 * The **\`Crypto\`** interface represents basic cryptography features available in the current context.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
 */
interface Crypto {
    /**
     * The **\`Crypto.subtle\`** read-only property returns a cryptographic operations.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
     */
    readonly subtle: SubtleCrypto;
    /**
     * The **\`Crypto.getRandomValues()\`** method lets you get cryptographically strong random values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
     */
    getRandomValues<T extends ArrayBufferView>(array: T): T;
    /**
     * The **\`randomUUID()\`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
     */
    randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
}

declare var Crypto: {
    prototype: Crypto;
    new(): Crypto;
};

/**
 * The **\`CryptoKey\`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
 */
interface CryptoKey {
    /**
     * The read-only **\`algorithm\`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm)
     */
    readonly algorithm: KeyAlgorithm;
    /**
     * The read-only **\`extractable\`** property of the CryptoKey interface indicates whether or not the key may be extracted using \`SubtleCrypto.exportKey()\` or \`SubtleCrypto.wrapKey()\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable)
     */
    readonly extractable: boolean;
    /**
     * The read-only **\`type\`** property of the CryptoKey interface indicates which kind of key is represented by the object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type)
     */
    readonly type: KeyType;
    /**
     * The read-only **\`usages\`** property of the CryptoKey interface indicates what can be done with the key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages)
     */
    readonly usages: KeyUsage[];
}

declare var CryptoKey: {
    prototype: CryptoKey;
    new(): CryptoKey;
};

/**
 * The **\`CustomElementRegistry\`** interface provides methods for registering custom elements and querying registered elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry)
 */
interface CustomElementRegistry {
    /**
     * The **\`define()\`** method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define)
     */
    define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
    /**
     * The **\`get()\`** method of the previously-defined custom element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get)
     */
    get(name: string): CustomElementConstructor | undefined;
    /**
     * The **\`getName()\`** method of the previously-defined custom element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName)
     */
    getName(constructor: CustomElementConstructor): string | null;
    /**
     * The **\`upgrade()\`** method of the elements in a Node subtree, even before they are connected to the main document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade)
     */
    upgrade(root: Node): void;
    /**
     * The **\`whenDefined()\`** method of the resolves when the named element is defined.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined)
     */
    whenDefined(name: string): Promise<CustomElementConstructor>;
}

declare var CustomElementRegistry: {
    prototype: CustomElementRegistry;
    new(): CustomElementRegistry;
};

/**
 * The **\`CustomEvent\`** interface represents events initialized by an application for any purpose.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
 */
interface CustomEvent<T = any> extends Event {
    /**
     * The read-only **\`detail\`** property of the CustomEvent interface returns any data passed when initializing the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
     */
    readonly detail: T;
    /**
     * The **\`CustomEvent.initCustomEvent()\`** method initializes a CustomEvent object.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
     */
    initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}

declare var CustomEvent: {
    prototype: CustomEvent;
    new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};

/**
 * The **\`CustomStateSet\`** interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added and removed from the set.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet)
 */
interface CustomStateSet {
    forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void;
}

declare var CustomStateSet: {
    prototype: CustomStateSet;
    new(): CustomStateSet;
};

/**
 * The **\`DOMException\`** interface represents an abnormal event (called an **exception**) that occurs as a result of calling a method or accessing a property of a web API.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
 */
interface DOMException extends Error {
    /**
     * The **\`code\`** read-only property of the DOMException interface returns one of the legacy error code constants, or \`0\` if none match.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
     */
    readonly code: number;
    /**
     * The **\`message\`** read-only property of the a message or description associated with the given error name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
     */
    readonly message: string;
    /**
     * The **\`name\`** read-only property of the one of the strings associated with an error name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)
     */
    readonly name: string;
    readonly INDEX_SIZE_ERR: 1;
    readonly DOMSTRING_SIZE_ERR: 2;
    readonly HIERARCHY_REQUEST_ERR: 3;
    readonly WRONG_DOCUMENT_ERR: 4;
    readonly INVALID_CHARACTER_ERR: 5;
    readonly NO_DATA_ALLOWED_ERR: 6;
    readonly NO_MODIFICATION_ALLOWED_ERR: 7;
    readonly NOT_FOUND_ERR: 8;
    readonly NOT_SUPPORTED_ERR: 9;
    readonly INUSE_ATTRIBUTE_ERR: 10;
    readonly INVALID_STATE_ERR: 11;
    readonly SYNTAX_ERR: 12;
    readonly INVALID_MODIFICATION_ERR: 13;
    readonly NAMESPACE_ERR: 14;
    readonly INVALID_ACCESS_ERR: 15;
    readonly VALIDATION_ERR: 16;
    readonly TYPE_MISMATCH_ERR: 17;
    readonly SECURITY_ERR: 18;
    readonly NETWORK_ERR: 19;
    readonly ABORT_ERR: 20;
    readonly URL_MISMATCH_ERR: 21;
    readonly QUOTA_EXCEEDED_ERR: 22;
    readonly TIMEOUT_ERR: 23;
    readonly INVALID_NODE_TYPE_ERR: 24;
    readonly DATA_CLONE_ERR: 25;
}

declare var DOMException: {
    prototype: DOMException;
    new(message?: string, name?: string): DOMException;
    readonly INDEX_SIZE_ERR: 1;
    readonly DOMSTRING_SIZE_ERR: 2;
    readonly HIERARCHY_REQUEST_ERR: 3;
    readonly WRONG_DOCUMENT_ERR: 4;
    readonly INVALID_CHARACTER_ERR: 5;
    readonly NO_DATA_ALLOWED_ERR: 6;
    readonly NO_MODIFICATION_ALLOWED_ERR: 7;
    readonly NOT_FOUND_ERR: 8;
    readonly NOT_SUPPORTED_ERR: 9;
    readonly INUSE_ATTRIBUTE_ERR: 10;
    readonly INVALID_STATE_ERR: 11;
    readonly SYNTAX_ERR: 12;
    readonly INVALID_MODIFICATION_ERR: 13;
    readonly NAMESPACE_ERR: 14;
    readonly INVALID_ACCESS_ERR: 15;
    readonly VALIDATION_ERR: 16;
    readonly TYPE_MISMATCH_ERR: 17;
    readonly SECURITY_ERR: 18;
    readonly NETWORK_ERR: 19;
    readonly ABORT_ERR: 20;
    readonly URL_MISMATCH_ERR: 21;
    readonly QUOTA_EXCEEDED_ERR: 22;
    readonly TIMEOUT_ERR: 23;
    readonly INVALID_NODE_TYPE_ERR: 24;
    readonly DATA_CLONE_ERR: 25;
};

/**
 * The **\`DOMImplementation\`** interface represents an object providing methods which are not dependent on any particular document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation)
 */
interface DOMImplementation {
    /**
     * The **\`DOMImplementation.createDocument()\`** method creates and returns an XMLDocument.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument)
     */
    createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
    /**
     * The **\`DOMImplementation.createDocumentType()\`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or \`\`\`js-nolint createDocumentType(qualifiedNameStr, publicId, systemId) \`\`\` - \`qualifiedNameStr\` - : A string containing the qualified name, like \`svg:svg\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType)
     */
    createDocumentType(name: string, publicId: string, systemId: string): DocumentType;
    /**
     * The **\`DOMImplementation.createHTMLDocument()\`** method creates a new HTML Document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument)
     */
    createHTMLDocument(title?: string): Document;
    /**
     * The **\`DOMImplementation.hasFeature()\`** method returns a boolean flag indicating if a given feature is supported.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature)
     */
    hasFeature(...args: any[]): true;
}

declare var DOMImplementation: {
    prototype: DOMImplementation;
    new(): DOMImplementation;
};

/**
 * The **\`DOMMatrix\`** interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix)
 */
interface DOMMatrix extends DOMMatrixReadOnly {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    a: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    b: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    c: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    d: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    e: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    f: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m11: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m12: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m13: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m14: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m21: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m22: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m23: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m24: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m31: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m32: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m33: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m34: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m41: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m42: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m43: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m44: number;
    /**
     * The **\`invertSelf()\`** method of the DOMMatrix interface inverts the original matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf)
     */
    invertSelf(): DOMMatrix;
    /**
     * The **\`multiplySelf()\`** method of the DOMMatrix interface multiplies a matrix by the \`otherMatrix\` parameter, computing the dot product of the original matrix and the specified matrix: \`A⋅B\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf)
     */
    multiplySelf(other?: DOMMatrixInit): DOMMatrix;
    /**
     * The **\`preMultiplySelf()\`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified \`DOMMatrix\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf)
     */
    preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
    /**
     * The \`rotateAxisAngleSelf()\` method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)
     */
    rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
    /**
     * The \`rotateFromVectorSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and \`(1, 0)\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf)
     */
    rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
    /**
     * The \`rotateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf)
     */
    rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
    /**
     * The **\`scale3dSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of \`(0, 0, 0)\`, returning the 3D-scaled matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf)
     */
    scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
    /**
     * The **\`scaleSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of \`(0, 0)\`, returning the scaled matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf)
     */
    scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
    /**
     * The **\`setMatrixValue()\`** method of the DOMMatrix interface replaces the contents of the matrix with the matrix described by the specified transform or transforms, returning itself.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/setMatrixValue)
     */
    setMatrixValue(transformList: string): DOMMatrix;
    /**
     * The \`skewXSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf)
     */
    skewXSelf(sx?: number): DOMMatrix;
    /**
     * The \`skewYSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf)
     */
    skewYSelf(sy?: number): DOMMatrix;
    /**
     * The \`translateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf)
     */
    translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}

declare var DOMMatrix: {
    prototype: DOMMatrix;
    new(init?: string | number[]): DOMMatrix;
    fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
    fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
    fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};

type SVGMatrix = DOMMatrix;
declare var SVGMatrix: typeof DOMMatrix;

type WebKitCSSMatrix = DOMMatrix;
declare var WebKitCSSMatrix: typeof DOMMatrix;

/**
 * The **\`DOMMatrixReadOnly\`** interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly)
 */
interface DOMMatrixReadOnly {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly a: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly b: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly c: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly d: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly e: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly f: number;
    /**
     * The readonly **\`is2D\`** property of the DOMMatrixReadOnly interface is a Boolean flag that is \`true\` when the matrix is 2D.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D)
     */
    readonly is2D: boolean;
    /**
     * The readonly **\`isIdentity\`** property of the DOMMatrixReadOnly interface is a Boolean whose value is \`true\` if the matrix is the identity matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity)
     */
    readonly isIdentity: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m11: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m12: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m13: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m14: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m21: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m22: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m23: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m24: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m31: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m32: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m33: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m34: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m41: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m42: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m43: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m44: number;
    /**
     * The **\`flipX()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX)
     */
    flipX(): DOMMatrix;
    /**
     * The **\`flipY()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY)
     */
    flipY(): DOMMatrix;
    /**
     * The **\`inverse()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse)
     */
    inverse(): DOMMatrix;
    /**
     * The **\`multiply()\`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the \`otherMatrix\` parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply)
     */
    multiply(other?: DOMMatrixInit): DOMMatrix;
    /**
     * The \`rotate()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate)
     */
    rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
    /**
     * The \`rotateAxisAngle()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)
     */
    rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
    /**
     * The \`rotateFromVector()\` method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and \`(1, 0)\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)
     */
    rotateFromVector(x?: number, y?: number): DOMMatrix;
    /**
     * The **\`scale()\`** method of the original matrix with a scale transform applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale)
     */
    scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
    /**
     * The **\`scale3d()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d)
     */
    scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
    /** @deprecated */
    scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
    /**
     * The \`skewX()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX)
     */
    skewX(sx?: number): DOMMatrix;
    /**
     * The \`skewY()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY)
     */
    skewY(sy?: number): DOMMatrix;
    /**
     * The **\`toFloat32Array()\`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)
     */
    toFloat32Array(): Float32Array<ArrayBuffer>;
    /**
     * The **\`toFloat64Array()\`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)
     */
    toFloat64Array(): Float64Array<ArrayBuffer>;
    /**
     * The **\`toJSON()\`** method of the DOMMatrixReadOnly interface creates and returns a JSON object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON)
     */
    toJSON(): any;
    /**
     * The **\`transformPoint\`** method of the You can also create a new \`DOMPoint\` by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint)
     */
    transformPoint(point?: DOMPointInit): DOMPoint;
    /**
     * The \`translate()\` method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate)
     */
    translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
    toString(): string;
}

declare var DOMMatrixReadOnly: {
    prototype: DOMMatrixReadOnly;
    new(init?: string | number[]): DOMMatrixReadOnly;
    fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrixReadOnly;
    fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
    fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};

/**
 * The **\`DOMParser\`** interface provides the ability to parse XML or HTML source code from a string into a DOM Document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser)
 */
interface DOMParser {
    /**
     * The **\`parseFromString()\`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)
     */
    parseFromString(string: string, type: DOMParserSupportedType): Document;
}

declare var DOMParser: {
    prototype: DOMParser;
    new(): DOMParser;
};

/**
 * A **\`DOMPoint\`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint)
 */
interface DOMPoint extends DOMPointReadOnly {
    /**
     * The **\`DOMPoint\`** interface's **\`w\`** property holds the point's perspective value, w, for a point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w)
     */
    w: number;
    /**
     * The **\`DOMPoint\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x)
     */
    x: number;
    /**
     * The **\`DOMPoint\`** interface's **\`y\`** property holds the vertical coordinate, _y_, for a point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y)
     */
    y: number;
    /**
     * The **\`DOMPoint\`** interface's **\`z\`** property specifies the depth coordinate of a point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z)
     */
    z: number;
}

declare var DOMPoint: {
    prototype: DOMPoint;
    new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
    /**
     * The **\`fromPoint()\`** static method of the DOMPoint interface creates and returns a new mutable \`DOMPoint\` object given a source point.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static)
     */
    fromPoint(other?: DOMPointInit): DOMPoint;
};

type SVGPoint = DOMPoint;
declare var SVGPoint: typeof DOMPoint;

/**
 * The **\`DOMPointReadOnly\`** interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly)
 */
interface DOMPointReadOnly {
    /**
     * The **\`DOMPointReadOnly\`** interface's **\`w\`** property holds the point's perspective value, \`w\`, for a read-only point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w)
     */
    readonly w: number;
    /**
     * The **\`DOMPointReadOnly\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a read-only point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x)
     */
    readonly x: number;
    /**
     * The **\`DOMPointReadOnly\`** interface's **\`y\`** property holds the vertical coordinate, y, for a read-only point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y)
     */
    readonly y: number;
    /**
     * The **\`DOMPointReadOnly\`** interface's **\`z\`** property holds the depth coordinate, z, for a read-only point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z)
     */
    readonly z: number;
    /**
     * The **\`matrixTransform()\`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new \`DOMPointReadOnly\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform)
     */
    matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
    /**
     * The DOMPointReadOnly method \`toJSON()\` returns an object giving the \`\`\`js-nolint toJSON() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON)
     */
    toJSON(): any;
}

declare var DOMPointReadOnly: {
    prototype: DOMPointReadOnly;
    new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
    /**
     * The static **DOMPointReadOnly** method \`fromPoint()\` creates and returns a new \`DOMPointReadOnly\` object given a source point.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static)
     */
    fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};

/**
 * A \`DOMQuad\` is a collection of four \`DOMPoint\`s defining the corners of an arbitrary quadrilateral.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad)
 */
interface DOMQuad {
    /**
     * The **\`DOMQuad\`** interface's **\`p1\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1)
     */
    readonly p1: DOMPoint;
    /**
     * The **\`DOMQuad\`** interface's **\`p2\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2)
     */
    readonly p2: DOMPoint;
    /**
     * The **\`DOMQuad\`** interface's **\`p3\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3)
     */
    readonly p3: DOMPoint;
    /**
     * The **\`DOMQuad\`** interface's **\`p4\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4)
     */
    readonly p4: DOMPoint;
    /**
     * The DOMQuad method \`getBounds()\` returns a DOMRect object representing the smallest rectangle that fully contains the \`DOMQuad\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds)
     */
    getBounds(): DOMRect;
    /**
     * The DOMQuad method \`toJSON()\` returns a \`\`\`js-nolint toJSON() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON)
     */
    toJSON(): any;
}

declare var DOMQuad: {
    prototype: DOMQuad;
    new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
    fromQuad(other?: DOMQuadInit): DOMQuad;
    fromRect(other?: DOMRectInit): DOMQuad;
};

/**
 * A **\`DOMRect\`** describes the size and position of a rectangle.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect)
 */
interface DOMRect extends DOMRectReadOnly {
    /**
     * The **\`height\`** property of the DOMRect interface represents the height of the rectangle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height)
     */
    height: number;
    /**
     * The **\`width\`** property of the DOMRect interface represents the width of the rectangle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width)
     */
    width: number;
    /**
     * The **\`x\`** property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport's left edge and the rectangle's origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x)
     */
    x: number;
    /**
     * The **\`y\`** property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport's top edge and the rectangle's origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y)
     */
    y: number;
}

declare var DOMRect: {
    prototype: DOMRect;
    new(x?: number, y?: number, width?: number, height?: number): DOMRect;
    /**
     * The **\`fromRect()\`** static method of the object with a given location and dimensions.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static)
     */
    fromRect(other?: DOMRectInit): DOMRect;
};

type SVGRect = DOMRect;
declare var SVGRect: typeof DOMRect;

/**
 * The **\`DOMRectList\`** interface represents a collection of DOMRect objects, typically used to hold the rectangles associated with a particular element, like bounding boxes returned by methods such as Element.getClientRects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList)
 */
interface DOMRectList {
    /**
     * The read-only **\`length\`** property of the DOMRectList interface returns the number of DOMRect objects in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/length)
     */
    readonly length: number;
    /**
     * The DOMRectList method \`item()\` returns the DOMRect at the specified index within the list, or \`null\` if the index is out of range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/item)
     */
    item(index: number): DOMRect | null;
    [index: number]: DOMRect;
}

declare var DOMRectList: {
    prototype: DOMRectList;
    new(): DOMRectList;
};

/**
 * The **\`DOMRectReadOnly\`** interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly)
 */
interface DOMRectReadOnly {
    /**
     * The **\`bottom\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the bottom coordinate value of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom)
     */
    readonly bottom: number;
    /**
     * The **\`height\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the height of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height)
     */
    readonly height: number;
    /**
     * The **\`left\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the left coordinate value of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left)
     */
    readonly left: number;
    /**
     * The **\`right\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the right coordinate value of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right)
     */
    readonly right: number;
    /**
     * The **\`top\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the top coordinate value of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top)
     */
    readonly top: number;
    /**
     * The **\`width\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the width of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width)
     */
    readonly width: number;
    /**
     * The **\`x\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the x coordinate of the \`DOMRect\`'s origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x)
     */
    readonly x: number;
    /**
     * The **\`y\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the y coordinate of the \`DOMRect\`'s origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y)
     */
    readonly y: number;
    /**
     * The DOMRectReadOnly method \`toJSON()\` returns a JSON representation of the \`DOMRectReadOnly\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON)
     */
    toJSON(): any;
}

declare var DOMRectReadOnly: {
    prototype: DOMRectReadOnly;
    new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
    /**
     * The **\`fromRect()\`** static method of the object with a given location and dimensions.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static)
     */
    fromRect(other?: DOMRectInit): DOMRectReadOnly;
};

/**
 * The **\`DOMStringList\`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (\`DOMString\`).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
 */
interface DOMStringList {
    /**
     * The read-only **\`length\`** property indicates the number of strings in the DOMStringList.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
     */
    readonly length: number;
    /**
     * The **\`contains()\`** method returns a boolean indicating whether the given string is in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
     */
    contains(string: string): boolean;
    /**
     * The **\`item()\`** method returns a string from a \`DOMStringList\` by index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
     */
    item(index: number): string | null;
    [index: number]: string;
}

declare var DOMStringList: {
    prototype: DOMStringList;
    new(): DOMStringList;
};

/**
 * The **\`DOMStringMap\`** interface is used for the HTMLElement.dataset attribute, to represent data for custom attributes added to elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap)
 */
interface DOMStringMap {
    [name: string]: string | undefined;
}

declare var DOMStringMap: {
    prototype: DOMStringMap;
    new(): DOMStringMap;
};

/**
 * The **\`DOMTokenList\`** interface represents a set of space-separated tokens.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList)
 */
interface DOMTokenList {
    /**
     * The read-only **\`length\`** property of the DOMTokenList interface is an \`integer\` representing the number of objects stored in the object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length)
     */
    readonly length: number;
    /**
     * The **\`value\`** property of the DOMTokenList interface is a stringifier that returns the value of the list serialized as a string, or clears and sets the list to the given value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value)
     */
    value: string;
    toString(): string;
    /**
     * The **\`add()\`** method of the DOMTokenList interface adds the given tokens to the list, omitting any that are already present.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add)
     */
    add(...tokens: string[]): void;
    /**
     * The **\`contains()\`** method of the DOMTokenList interface returns a boolean value — \`true\` if the underlying list contains the given token, otherwise \`false\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains)
     */
    contains(token: string): boolean;
    /**
     * The **\`item()\`** method of the DOMTokenList interface returns an item in the list, determined by its position in the list, its index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item)
     */
    item(index: number): string | null;
    /**
     * The **\`remove()\`** method of the DOMTokenList interface removes the specified _tokens_ from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove)
     */
    remove(...tokens: string[]): void;
    /**
     * The **\`replace()\`** method of the DOMTokenList interface replaces an existing token with a new token.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace)
     */
    replace(token: string, newToken: string): boolean;
    /**
     * The **\`supports()\`** method of the DOMTokenList interface returns \`true\` if a given \`token\` is in the associated attribute's supported tokens.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports)
     */
    supports(token: string): boolean;
    /**
     * The **\`toggle()\`** method of the DOMTokenList interface removes an existing token from the list and returns \`false\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle)
     */
    toggle(token: string, force?: boolean): boolean;
    forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
    [index: number]: string;
}

declare var DOMTokenList: {
    prototype: DOMTokenList;
    new(): DOMTokenList;
};

/**
 * The **\`DataTransfer\`** object is used to hold any data transferred between contexts, such as a drag and drop operation, or clipboard read/write.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer)
 */
interface DataTransfer {
    /**
     * The **\`DataTransfer.dropEffect\`** property controls the feedback (typically visual) the user is given during a drag and drop operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect)
     */
    dropEffect: "none" | "copy" | "link" | "move";
    /**
     * The **\`DataTransfer.effectAllowed\`** property specifies the effect that is allowed for a drag operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed)
     */
    effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
    /**
     * The **\`files\`** read-only property of \`DataTransfer\` objects is a list of the files in the drag operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files)
     */
    readonly files: FileList;
    /**
     * The read-only \`items\` property of the DataTransfer interface is a A DataTransferItemList object containing DataTransferItem objects representing the items being dragged in a drag operation, one list item for each object being dragged.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items)
     */
    readonly items: DataTransferItemList;
    /**
     * The **\`DataTransfer.types\`** read-only property returns the available types that exist in the DataTransfer.items.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types)
     */
    readonly types: ReadonlyArray<string>;
    /**
     * The **\`DataTransfer.clearData()\`** method removes the drag operation's drag data for the given type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData)
     */
    clearData(format?: string): void;
    /**
     * The **\`DataTransfer.getData()\`** method retrieves drag data (as a string) for the specified type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData)
     */
    getData(format: string): string;
    /**
     * The **\`DataTransfer.setData()\`** method sets the drag operation's drag data to the specified data and type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData)
     */
    setData(format: string, data: string): void;
    /**
     * When a drag occurs, a translucent image is generated from the drag target (the element the HTMLElement/dragstart_event event is fired at), and follows the mouse pointer during the drag.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage)
     */
    setDragImage(image: Element, x: number, y: number): void;
}

declare var DataTransfer: {
    prototype: DataTransfer;
    new(): DataTransfer;
};

/**
 * The **\`DataTransferItem\`** object represents one drag data item.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem)
 */
interface DataTransferItem {
    /**
     * The read-only **\`DataTransferItem.kind\`** property returns the kind–a string or a file–of the DataTransferItem object representing the _drag data item_.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind)
     */
    readonly kind: string;
    /**
     * The read-only **\`DataTransferItem.type\`** property returns the type (format) of the DataTransferItem object representing the drag data item.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type)
     */
    readonly type: string;
    /**
     * If the item is a file, the **\`DataTransferItem.getAsFile()\`** method returns the drag data item's File object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile)
     */
    getAsFile(): File | null;
    /**
     * The **\`DataTransferItem.getAsString()\`** method invokes the given callback with the drag data item's string data as the argument if the item's DataTransferItem.kind is a _Plain unicode string_ (i.e., \`kind\` is \`string\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString)
     */
    getAsString(callback: FunctionStringCallback | null): void;
    /**
     * If the item described by the DataTransferItem is a file, \`webkitGetAsEntry()\` returns a FileSystemFileEntry or FileSystemDirectoryEntry representing it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry)
     */
    webkitGetAsEntry(): FileSystemEntry | null;
}

declare var DataTransferItem: {
    prototype: DataTransferItem;
    new(): DataTransferItem;
};

/**
 * The **\`DataTransferItemList\`** object is a list of DataTransferItem objects representing items being dragged.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList)
 */
interface DataTransferItemList {
    /**
     * The read-only **\`length\`** property of the the drag item list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length)
     */
    readonly length: number;
    /**
     * The **\`DataTransferItemList.add()\`** method creates a new list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add)
     */
    add(data: string, type: string): DataTransferItem | null;
    add(data: File): DataTransferItem | null;
    /**
     * The DataTransferItemList method **\`clear()\`** removes all DataTransferItem objects from the drag data items list, leaving the list empty.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear)
     */
    clear(): void;
    /**
     * The **\`DataTransferItemList.remove()\`** method removes the less than zero or greater than one less than the length of the list, the list will not be changed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove)
     */
    remove(index: number): void;
    [index: number]: DataTransferItem;
}

declare var DataTransferItemList: {
    prototype: DataTransferItemList;
    new(): DataTransferItemList;
};

/**
 * The **\`DecompressionStream\`** interface of the Compression Streams API is an API for decompressing a stream of data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
 */
interface DecompressionStream extends GenericTransformStream {
    readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
    readonly writable: WritableStream<BufferSource>;
}

declare var DecompressionStream: {
    prototype: DecompressionStream;
    new(format: CompressionFormat): DecompressionStream;
};

/**
 * The **\`DelayNode\`** interface represents a delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode)
 */
interface DelayNode extends AudioNode {
    /**
     * The \`delayTime\` property of the DelayNode interface is an a-rate AudioParam representing the amount of delay to apply.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime)
     */
    readonly delayTime: AudioParam;
}

declare var DelayNode: {
    prototype: DelayNode;
    new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
};

/**
 * The **\`DeviceMotionEvent\`** interface of the Device Orientation Events provides web developers with information about the speed of changes for the device's position and orientation.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent)
 */
interface DeviceMotionEvent extends Event {
    /**
     * The **\`acceleration\`** read-only property of the DeviceMotionEvent interface returns the acceleration recorded by the device, in meters per second squared (m/s²).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration)
     */
    readonly acceleration: DeviceMotionEventAcceleration | null;
    /**
     * The **\`accelerationIncludingGravity\`** read-only property of the DeviceMotionEvent interface returns the amount of acceleration recorded by the device, in meters per second squared (m/s²).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity)
     */
    readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
    /**
     * The **\`interval\`** read-only property of the DeviceMotionEvent interface returns the interval, in milliseconds, at which data is obtained from the underlying hardware.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval)
     */
    readonly interval: number;
    /**
     * The **\`rotationRate\`** read-only property of the DeviceMotionEvent interface returns the rate at which the device is rotating around each of its axes in degrees per second.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate)
     */
    readonly rotationRate: DeviceMotionEventRotationRate | null;
}

declare var DeviceMotionEvent: {
    prototype: DeviceMotionEvent;
    new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
};

/**
 * The **\`DeviceMotionEventAcceleration\`** interface of the Device Orientation Events provides information about the amount of acceleration the device is experiencing along all three axes.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration)
 */
interface DeviceMotionEventAcceleration {
    /**
     * The **\`x\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the X axis in a \`DeviceMotionEventAcceleration\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x)
     */
    readonly x: number | null;
    /**
     * The **\`y\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Y axis in a \`DeviceMotionEventAcceleration\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y)
     */
    readonly y: number | null;
    /**
     * The **\`z\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Z axis in a \`DeviceMotionEventAcceleration\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z)
     */
    readonly z: number | null;
}

/**
 * A **\`DeviceMotionEventRotationRate\`** interface of the Device Orientation Events provides information about the rate at which the device is rotating around all three axes.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate)
 */
interface DeviceMotionEventRotationRate {
    /**
     * The **\`alpha\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Z axis, in degrees per second.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha)
     */
    readonly alpha: number | null;
    /**
     * The **\`beta\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the X axis, in degrees per second.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta)
     */
    readonly beta: number | null;
    /**
     * The **\`gamma\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Y axis, in degrees per second.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma)
     */
    readonly gamma: number | null;
}

/**
 * The **\`DeviceOrientationEvent\`** interface of the Device Orientation Events provides web developers with information from the physical orientation of the device running the web page.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent)
 */
interface DeviceOrientationEvent extends Event {
    /**
     * The **\`absolute\`** read-only property of the DeviceOrientationEvent interface indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined by the device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute)
     */
    readonly absolute: boolean;
    /**
     * The **\`alpha\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Z axis; that is, the number of degrees by which the device is being twisted around the center of the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha)
     */
    readonly alpha: number | null;
    /**
     * The **\`beta\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the X axis; that is, the number of degrees, ranged between -180 and 180, by which the device is tipped forward or backward.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta)
     */
    readonly beta: number | null;
    /**
     * The **\`gamma\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Y axis; that is, the number of degrees, ranged between \`-90\` and \`90\`, by which the device is tilted left or right.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma)
     */
    readonly gamma: number | null;
}

declare var DeviceOrientationEvent: {
    prototype: DeviceOrientationEvent;
    new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
};

interface DocumentEventMap extends GlobalEventHandlersEventMap {
    "DOMContentLoaded": Event;
    "fullscreenchange": Event;
    "fullscreenerror": Event;
    "pointerlockchange": Event;
    "pointerlockerror": Event;
    "readystatechange": Event;
    "visibilitychange": Event;
}

/**
 * The **\`Document\`** interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document)
 */
interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
    /**
     * The **\`URL\`** read-only property of the Document interface returns the document location as a string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
     */
    readonly URL: string;
    /**
     * Returns or sets the color of an active link in the document body.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor)
     */
    alinkColor: string;
    /**
     * The Document interface's read-only **\`all\`** property returns an HTMLAllCollection rooted at the document node.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all)
     */
    readonly all: HTMLAllCollection;
    /**
     * The **\`anchors\`** read-only property of the An HTMLCollection.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors)
     */
    readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
    /**
     * The **\`applets\`** property of the Document returns an empty HTMLCollection.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets)
     */
    readonly applets: HTMLCollection;
    /**
     * The deprecated \`bgColor\` property gets or sets the background color of the current document.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor)
     */
    bgColor: string;
    /**
     * The **\`Document.body\`** property represents the \`null\` if no such element exists.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body)
     */
    body: HTMLElement;
    /**
     * The **\`Document.characterSet\`** read-only property returns the character encoding of the document that it's currently rendered with.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
     */
    readonly characterSet: string;
    /**
     * @deprecated This is a legacy alias of \`characterSet\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
     */
    readonly charset: string;
    /**
     * The **\`Document.compatMode\`** read-only property indicates whether the document is rendered in Quirks mode or Standards mode.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode)
     */
    readonly compatMode: string;
    /**
     * The **\`Document.contentType\`** read-only property returns the MIME type that the document is being rendered as.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType)
     */
    readonly contentType: string;
    /**
     * The Document property \`cookie\` lets you read and write cookies associated with the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie)
     */
    cookie: string;
    /**
     * The **\`Document.currentScript\`** property returns the script element whose script is currently being processed and isn't a JavaScript module.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript)
     */
    readonly currentScript: HTMLOrSVGScriptElement | null;
    /**
     * In browsers, **\`document.defaultView\`** returns the This property is read-only.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView)
     */
    readonly defaultView: (WindowProxy & typeof globalThis) | null;
    /**
     * **\`document.designMode\`** controls whether the entire document is editable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode)
     */
    designMode: string;
    /**
     * The **\`Document.dir\`** property is a string representing the directionality of the text of the document, whether left to right (default) or right to left.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir)
     */
    dir: string;
    /**
     * The **\`doctype\`** read-only property of the Document interface is a DocumentType object representing the Doctype associated with the current document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype)
     */
    readonly doctype: DocumentType | null;
    /**
     * The **\`documentElement\`** read-only property of the Document interface returns the example, the html element for HTML documents).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement)
     */
    readonly documentElement: HTMLElement;
    /**
     * The **\`documentURI\`** read-only property of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI)
     */
    readonly documentURI: string;
    /**
     * The **\`domain\`** property of the Document interface gets/sets the domain portion of the origin of the current document, as used by the same-origin policy.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain)
     */
    domain: string;
    /**
     * The **\`embeds\`** read-only property of the An HTMLCollection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds)
     */
    readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
    /**
     * **\`fgColor\`** gets/sets the foreground color, or text color, of the current document.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor)
     */
    fgColor: string;
    /**
     * The **\`forms\`** read-only property of the Document interface returns an HTMLCollection listing all the form elements contained in the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms)
     */
    readonly forms: HTMLCollectionOf<HTMLFormElement>;
    /**
     * The **\`fragmentDirective\`** read-only property of the Document interface returns the FragmentDirective for the current document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fragmentDirective)
     */
    readonly fragmentDirective: FragmentDirective;
    /**
     * The obsolete Document interface's **\`fullscreen\`** read-only property reports whether or not the document is currently displaying content in fullscreen mode.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen)
     */
    readonly fullscreen: boolean;
    /**
     * The read-only **\`fullscreenEnabled\`** property on the Document interface indicates whether or not fullscreen mode is available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled)
     */
    readonly fullscreenEnabled: boolean;
    /**
     * The **\`head\`** read-only property of the Document interface returns the head element of the current document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head)
     */
    readonly head: HTMLHeadElement;
    /**
     * The **\`Document.hidden\`** read-only property returns a Boolean value indicating if the page is considered hidden or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden)
     */
    readonly hidden: boolean;
    /**
     * The **\`images\`** read-only property of the Document interface returns a collection of the images in the current HTML document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images)
     */
    readonly images: HTMLCollectionOf<HTMLImageElement>;
    /**
     * The **\`Document.implementation\`** property returns a A DOMImplementation object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation)
     */
    readonly implementation: DOMImplementation;
    /**
     * @deprecated This is a legacy alias of \`characterSet\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
     */
    readonly inputEncoding: string;
    /**
     * The **\`lastModified\`** property of the Document interface returns a string containing the date and local time on which the current document was last modified.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified)
     */
    readonly lastModified: string;
    /**
     * The **\`Document.linkColor\`** property gets/sets the color of links within the document.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor)
     */
    linkColor: string;
    /**
     * The **\`links\`** read-only property of the Document interface returns a collection of all area elements and a elements in a document with a value for the href attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links)
     */
    readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
    /**
     * The **\`Document.location\`** read-only property returns a and provides methods for changing that URL and loading another URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location)
     */
    get location(): Location;
    set location(href: string);
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */
    onfullscreenchange: ((this: Document, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */
    onfullscreenerror: ((this: Document, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */
    onpointerlockchange: ((this: Document, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */
    onpointerlockerror: ((this: Document, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) */
    onreadystatechange: ((this: Document, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */
    onvisibilitychange: ((this: Document, ev: Event) => any) | null;
    readonly ownerDocument: null;
    /**
     * The read-only **\`pictureInPictureEnabled\`** property of the available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled)
     */
    readonly pictureInPictureEnabled: boolean;
    /**
     * The **\`plugins\`** read-only property of the containing one or more HTMLEmbedElements representing the An HTMLCollection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins)
     */
    readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
    /**
     * The **\`Document.readyState\`** property describes the loading state of the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState)
     */
    readonly readyState: DocumentReadyState;
    /**
     * The **\`Document.referrer\`** property returns the URI of the page that linked to this page.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer)
     */
    readonly referrer: string;
    /**
     * **\`Document.rootElement\`** returns the Element that is the root element of the document if it is an documents.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement)
     */
    readonly rootElement: SVGSVGElement | null;
    /**
     * The **\`scripts\`** property of the Document interface returns a list of the script elements in the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts)
     */
    readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
    /**
     * The **\`scrollingElement\`** read-only property of the scrolls the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement)
     */
    readonly scrollingElement: Element | null;
    /**
     * The \`timeline\` readonly property of the Document interface represents the default timeline of the current document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline)
     */
    readonly timeline: DocumentTimeline;
    /**
     * The **\`document.title\`** property gets or sets the current title of the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title)
     */
    title: string;
    /**
     * The **\`Document.visibilityState\`** read-only property returns the visibility of the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState)
     */
    readonly visibilityState: DocumentVisibilityState;
    /**
     * The **\`Document.vlinkColor\`** property gets/sets the color of links that the user has visited in the document.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor)
     */
    vlinkColor: string;
    /**
     * **\`Document.adoptNode()\`** transfers a node/dom from another Document into the method's document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode)
     */
    adoptNode<T extends Node>(node: T): T;
    /** @deprecated */
    captureEvents(): void;
    /**
     * The **\`caretPositionFromPoint()\`** method of the Document interface returns a CaretPosition object, containing the DOM node, along with the caret and caret's character offset within that node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint)
     */
    caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null;
    /** @deprecated */
    caretRangeFromPoint(x: number, y: number): Range | null;
    /**
     * The **\`Document.clear()\`** method does nothing, but doesn't raise any error.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear)
     */
    clear(): void;
    /**
     * The **\`Document.close()\`** method finishes writing to a document, opened with Document.open().
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close)
     */
    close(): void;
    /**
     * The **\`Document.createAttribute()\`** method creates a new attribute node, and returns it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute)
     */
    createAttribute(localName: string): Attr;
    /**
     * The **\`Document.createAttributeNS()\`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS)
     */
    createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
    /**
     * **\`createCDATASection()\`** creates a new CDATA section node, and returns it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection)
     */
    createCDATASection(data: string): CDATASection;
    /**
     * **\`createComment()\`** creates a new comment node, and returns it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment)
     */
    createComment(data: string): Comment;
    /**
     * Creates a new empty DocumentFragment into which DOM nodes can be added to build an offscreen DOM tree.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment)
     */
    createDocumentFragment(): DocumentFragment;
    /**
     * In an HTML document, the **\`document.createElement()\`** method creates the HTML element specified by \`localName\`, or an HTMLUnknownElement if \`localName\` isn't recognized.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement)
     */
    createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
    /** @deprecated */
    createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
    createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
    /**
     * Creates an element with the specified namespace URI and qualified name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS)
     */
    createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
    createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
    createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];
    createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;
    createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
    createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
    /**
     * Creates an event of the type specified.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent)
     */
    createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
    createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
    createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
    createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
    createEvent(eventInterface: "BlobEvent"): BlobEvent;
    createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
    createEvent(eventInterface: "CloseEvent"): CloseEvent;
    createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
    createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
    createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent;
    createEvent(eventInterface: "CustomEvent"): CustomEvent;
    createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
    createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
    createEvent(eventInterface: "DragEvent"): DragEvent;
    createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
    createEvent(eventInterface: "Event"): Event;
    createEvent(eventInterface: "Events"): Event;
    createEvent(eventInterface: "FocusEvent"): FocusEvent;
    createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
    createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
    createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
    createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
    createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
    createEvent(eventInterface: "InputEvent"): InputEvent;
    createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
    createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
    createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
    createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
    createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
    createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
    createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
    createEvent(eventInterface: "MessageEvent"): MessageEvent;
    createEvent(eventInterface: "MouseEvent"): MouseEvent;
    createEvent(eventInterface: "MouseEvents"): MouseEvent;
    createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
    createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent;
    createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent;
    createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
    createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
    createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
    createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
    createEvent(eventInterface: "PointerEvent"): PointerEvent;
    createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
    createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
    createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
    createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
    createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
    createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
    createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
    createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
    createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
    createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
    createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
    createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
    createEvent(eventInterface: "StorageEvent"): StorageEvent;
    createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
    createEvent(eventInterface: "TextEvent"): TextEvent;
    createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
    createEvent(eventInterface: "TouchEvent"): TouchEvent;
    createEvent(eventInterface: "TrackEvent"): TrackEvent;
    createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
    createEvent(eventInterface: "UIEvent"): UIEvent;
    createEvent(eventInterface: "UIEvents"): UIEvent;
    createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
    createEvent(eventInterface: "WheelEvent"): WheelEvent;
    createEvent(eventInterface: string): Event;
    /**
     * The **\`Document.createNodeIterator()\`** method returns a new \`NodeIterator\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator)
     */
    createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
    /**
     * \`createProcessingInstruction()\` generates a new processing instruction node and returns it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction)
     */
    createProcessingInstruction(target: string, data: string): ProcessingInstruction;
    /**
     * The **\`Document.createRange()\`** method returns a new \`\`\`js-nolint createRange() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)
     */
    createRange(): Range;
    /**
     * Creates a new Text node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode)
     */
    createTextNode(data: string): Text;
    /**
     * The **\`Document.createTreeWalker()\`** creator method returns a newly created TreeWalker object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker)
     */
    createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
    /**
     * The **\`execCommand\`** method implements multiple different commands.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand)
     */
    execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
    /**
     * The Document method **\`exitFullscreen()\`** requests that the element on this document which is currently being presented in fullscreen mode be taken out of fullscreen mode, restoring the previous state of the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen)
     */
    exitFullscreen(): Promise<void>;
    /**
     * The **\`exitPictureInPicture()\`** method of the Document interface requests that a video contained in this document, which is currently floating, be taken out of picture-in-picture mode, restoring the previous state of the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture)
     */
    exitPictureInPicture(): Promise<void>;
    /**
     * The **\`exitPointerLock()\`** method of the Document interface asynchronously releases a pointer lock previously requested through Element.requestPointerLock.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock)
     */
    exitPointerLock(): void;
    getElementById(elementId: string): HTMLElement | null;
    /**
     * The **\`getElementsByClassName\`** method of of all child elements which have all of the given class name(s).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName)
     */
    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
    /**
     * The **\`getElementsByName()\`** method of the Document object returns a NodeList Collection of elements with a given \`name\` attribute in the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName)
     */
    getElementsByName(elementName: string): NodeListOf<HTMLElement>;
    /**
     * The **\`getElementsByTagName\`** method of The complete document is searched, including the root node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName)
     */
    getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
    getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
    getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
    /** @deprecated */
    getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
    getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
    /**
     * Returns a list of elements with the given tag name belonging to the given namespace.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS)
     */
    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
    getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
    /**
     * The **\`getSelection()\`** method of the Document interface returns the Selection object associated with this document, representing the range of text selected by the user, or the current position of the caret.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection)
     */
    getSelection(): Selection | null;
    /**
     * The **\`hasFocus()\`** method of the Document interface returns a boolean value indicating whether the document or any element inside the document has focus.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus)
     */
    hasFocus(): boolean;
    /**
     * The **\`hasStorageAccess()\`** method of the Document interface returns a Promise that resolves with a boolean value indicating whether the document has access to third-party, unpartitioned cookies.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess)
     */
    hasStorageAccess(): Promise<boolean>;
    /**
     * The Document object's **\`importNode()\`** method creates a copy of a inserted into the current document later.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode)
     */
    importNode<T extends Node>(node: T, options?: boolean | ImportNodeOptions): T;
    /**
     * The **\`Document.open()\`** method opens a document for This does come with some side effects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open)
     */
    open(unused1?: string, unused2?: string): Document;
    open(url: string | URL, name: string, features: string): WindowProxy | null;
    /**
     * The **\`Document.queryCommandEnabled()\`** method reports whether or not the specified editor command is enabled by the browser.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled)
     */
    queryCommandEnabled(commandId: string): boolean;
    /** @deprecated */
    queryCommandIndeterm(commandId: string): boolean;
    /**
     * The **\`queryCommandState()\`** method will tell you if the current selection has a certain Document.execCommand() command applied.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState)
     */
    queryCommandState(commandId: string): boolean;
    /**
     * The **\`Document.queryCommandSupported()\`** method reports whether or not the specified editor command is supported by the browser.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported)
     */
    queryCommandSupported(commandId: string): boolean;
    /** @deprecated */
    queryCommandValue(commandId: string): string;
    /** @deprecated */
    releaseEvents(): void;
    /**
     * The **\`requestStorageAccess()\`** method of the Document interface allows content loaded in a third-party context (i.e., embedded in an iframe) to request access to third-party cookies and unpartitioned state.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess)
     */
    requestStorageAccess(): Promise<void>;
    /**
     * The **\`startViewTransition()\`** method of the Document interface starts a new same-document (SPA) view transition and returns a ViewTransition object to represent it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition)
     */
    startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition;
    /**
     * The **\`write()\`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open().
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write)
     */
    write(...text: string[]): void;
    /**
     * The **\`writeln()\`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(), followed by a newline character.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
     */
    writeln(...text: string[]): void;
    /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
    get textContent(): null;
    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var Document: {
    prototype: Document;
    new(): Document;
    /**
     * The **\`parseHTMLUnsafe()\`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static)
     */
    parseHTMLUnsafe(html: string): Document;
};

/**
 * The **\`DocumentFragment\`** interface represents a minimal document object that has no parent.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment)
 */
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
    readonly ownerDocument: Document;
    getElementById(elementId: string): HTMLElement | null;
    /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
    get textContent(): string;
    set textContent(value: string | null);
}

declare var DocumentFragment: {
    prototype: DocumentFragment;
    new(): DocumentFragment;
};

interface DocumentOrShadowRoot {
    /**
     * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
     *
     * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
     *
     * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement)
     */
    readonly activeElement: Element | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
    adoptedStyleSheets: CSSStyleSheet[];
    /**
     * Returns document's fullscreen element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement)
     */
    readonly fullscreenElement: Element | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */
    readonly pictureInPictureElement: Element | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */
    readonly pointerLockElement: Element | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) */
    readonly styleSheets: StyleSheetList;
    elementFromPoint(x: number, y: number): Element | null;
    elementsFromPoint(x: number, y: number): Element[];
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */
    getAnimations(): Animation[];
}

/**
 * The **\`DocumentTimeline\`** interface of the Web Animations API represents animation timelines, including the default document timeline (accessed via Document.timeline).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline)
 */
interface DocumentTimeline extends AnimationTimeline {
}

declare var DocumentTimeline: {
    prototype: DocumentTimeline;
    new(options?: DocumentTimelineOptions): DocumentTimeline;
};

/**
 * The **\`DocumentType\`** interface represents a Node containing a doctype.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType)
 */
interface DocumentType extends Node, ChildNode {
    /**
     * The read-only **\`name\`** property of the DocumentType returns the type of the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name)
     */
    readonly name: string;
    readonly ownerDocument: Document;
    /**
     * The read-only **\`publicId\`** property of the DocumentType returns a formal identifier of the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId)
     */
    readonly publicId: string;
    /**
     * The read-only **\`systemId\`** property of the DocumentType returns the URL of the associated DTD.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId)
     */
    readonly systemId: string;
    /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
    get textContent(): null;
}

declare var DocumentType: {
    prototype: DocumentType;
    new(): DocumentType;
};

/**
 * The **\`DragEvent\`** interface is a DOM event that represents a drag and drop interaction.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent)
 */
interface DragEvent extends MouseEvent {
    /**
     * The **\`DragEvent.dataTransfer\`** read-only property holds the drag operation's data (as a DataTransfer object).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer)
     */
    readonly dataTransfer: DataTransfer | null;
}

declare var DragEvent: {
    prototype: DragEvent;
    new(type: string, eventInitDict?: DragEventInit): DragEvent;
};

/**
 * The \`DynamicsCompressorNode\` interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode)
 */
interface DynamicsCompressorNode extends AudioNode {
    /**
     * The \`attack\` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the amount of time, in seconds, required to reduce the gain by 10 dB.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack)
     */
    readonly attack: AudioParam;
    /**
     * The \`knee\` property of the DynamicsCompressorNode interface is a k-rate AudioParam containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee)
     */
    readonly knee: AudioParam;
    /**
     * The \`ratio\` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of change, in dB, needed in the input for a 1 dB change in the output.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio)
     */
    readonly ratio: AudioParam;
    /**
     * The **\`reduction\`** read-only property of the DynamicsCompressorNode interface is a float representing the amount of gain reduction currently applied by the compressor to the signal.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction)
     */
    readonly reduction: number;
    /**
     * The \`release\` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of time, in seconds, required to increase the gain by 10 dB.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release)
     */
    readonly release: AudioParam;
    /**
     * The \`threshold\` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the decibel value above which the compression will start taking effect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold)
     */
    readonly threshold: AudioParam;
}

declare var DynamicsCompressorNode: {
    prototype: DynamicsCompressorNode;
    new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
};

/**
 * The **\`EXT_blend_minmax\`** extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax)
 */
interface EXT_blend_minmax {
    readonly MIN_EXT: 0x8007;
    readonly MAX_EXT: 0x8008;
}

/**
 * The **\`EXT_color_buffer_float\`** extension is part of WebGL and adds the ability to render a variety of floating point formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float)
 */
interface EXT_color_buffer_float {
}

/**
 * The **\`EXT_color_buffer_half_float\`** extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float)
 */
interface EXT_color_buffer_half_float {
    readonly RGBA16F_EXT: 0x881A;
    readonly RGB16F_EXT: 0x881B;
    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
    readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}

/**
 * The WebGL API's \`EXT_float_blend\` extension allows blending and draw buffers with 32-bit floating-point components.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend)
 */
interface EXT_float_blend {
}

/**
 * The **\`EXT_frag_depth\`** extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)
 */
interface EXT_frag_depth {
}

/**
 * The **\`EXT_sRGB\`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB)
 */
interface EXT_sRGB {
    readonly SRGB_EXT: 0x8C40;
    readonly SRGB_ALPHA_EXT: 0x8C42;
    readonly SRGB8_ALPHA8_EXT: 0x8C43;
    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}

/**
 * The **\`EXT_shader_texture_lod\`** extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod)
 */
interface EXT_shader_texture_lod {
}

/**
 * The \`EXT_texture_compression_bptc\` extension is part of the WebGL API and exposes 4 BPTC compressed texture formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc)
 */
interface EXT_texture_compression_bptc {
    readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
    readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
    readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
    readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}

/**
 * The \`EXT_texture_compression_rgtc\` extension is part of the WebGL API and exposes 4 RGTC compressed texture formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc)
 */
interface EXT_texture_compression_rgtc {
    readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
    readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
    readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
    readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}

/**
 * The **\`EXT_texture_filter_anisotropic\`** extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)
 */
interface EXT_texture_filter_anisotropic {
    readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}

/**
 * The **\`EXT_texture_norm16\`** extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16)
 */
interface EXT_texture_norm16 {
    readonly R16_EXT: 0x822A;
    readonly RG16_EXT: 0x822C;
    readonly RGB16_EXT: 0x8054;
    readonly RGBA16_EXT: 0x805B;
    readonly R16_SNORM_EXT: 0x8F98;
    readonly RG16_SNORM_EXT: 0x8F99;
    readonly RGB16_SNORM_EXT: 0x8F9A;
    readonly RGBA16_SNORM_EXT: 0x8F9B;
}

interface ElementEventMap {
    "fullscreenchange": Event;
    "fullscreenerror": Event;
}

/**
 * **\`Element\`** is the most general base class from which all element objects (i.e., objects that represent elements) in a Document inherit.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)
 */
interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable {
    /**
     * The **\`Element.attributes\`** property returns a live collection of all attribute nodes registered to the specified node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes)
     */
    readonly attributes: NamedNodeMap;
    /**
     * The **\`Element.classList\`** is a read-only property that returns a live DOMTokenList collection of the \`class\` attributes of the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList)
     */
    get classList(): DOMTokenList;
    set classList(value: string);
    /**
     * The **\`className\`** property of the of the specified element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className)
     */
    className: string;
    /**
     * The **\`clientHeight\`** read-only property of the Element interface is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight)
     */
    readonly clientHeight: number;
    /**
     * The **\`clientLeft\`** read-only property of the Element interface returns the width of the left border of an element in pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft)
     */
    readonly clientLeft: number;
    /**
     * The **\`clientTop\`** read-only property of the Element interface returns the width of the top border of an element in pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop)
     */
    readonly clientTop: number;
    /**
     * The **\`clientWidth\`** read-only property of the Element interface is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth)
     */
    readonly clientWidth: number;
    /**
     * The **\`currentCSSZoom\`** read-only property of the Element interface provides the 'effective' CSS \`zoom\` of an element, taking into account the zoom applied to the element and all its parent elements.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom)
     */
    readonly currentCSSZoom: number;
    /**
     * The **\`id\`** property of the Element interface represents the element's identifier, reflecting the **\`id\`** global attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)
     */
    id: string;
    /**
     * The **\`innerHTML\`** property of the Element interface gets or sets the HTML or XML markup contained within the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML)
     */
    innerHTML: string;
    /**
     * The **\`Element.localName\`** read-only property returns the local part of the qualified name of an element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName)
     */
    readonly localName: string;
    /**
     * The **\`Element.namespaceURI\`** read-only property returns the namespace URI of the element, or \`null\` if the element is not in a namespace.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI)
     */
    readonly namespaceURI: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */
    onfullscreenchange: ((this: Element, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */
    onfullscreenerror: ((this: Element, ev: Event) => any) | null;
    /**
     * The **\`outerHTML\`** attribute of the Element DOM interface gets the serialized HTML fragment describing the element including its descendants.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML)
     */
    outerHTML: string;
    readonly ownerDocument: Document;
    /**
     * The **\`part\`** property of the Element interface represents the part identifier(s) of the element (i.e., set using the \`part\` attribute), returned as a DOMTokenList.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part)
     */
    get part(): DOMTokenList;
    set part(value: string);
    /**
     * The **\`Element.prefix\`** read-only property returns the namespace prefix of the specified element, or \`null\` if no prefix is specified.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix)
     */
    readonly prefix: string | null;
    /**
     * The **\`scrollHeight\`** read-only property of the Element interface is a measurement of the height of an element's content, including content not visible on the screen due to overflow.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight)
     */
    readonly scrollHeight: number;
    /**
     * The **\`scrollLeft\`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its left edge.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft)
     */
    scrollLeft: number;
    /**
     * The **\`scrollTop\`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its top edge.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop)
     */
    scrollTop: number;
    /**
     * The **\`scrollWidth\`** read-only property of the Element interface is a measurement of the width of an element's content, including content not visible on the screen due to overflow.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth)
     */
    readonly scrollWidth: number;
    /**
     * The \`Element.shadowRoot\` read-only property represents the shadow root hosted by the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot)
     */
    readonly shadowRoot: ShadowRoot | null;
    /**
     * The **\`slot\`** property of the Element interface returns the name of the shadow DOM slot the element is inserted in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot)
     */
    slot: string;
    /**
     * The **\`tagName\`** read-only property of the Element interface returns the tag name of the element on which it's called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName)
     */
    readonly tagName: string;
    /**
     * The **\`Element.attachShadow()\`** method attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow)
     */
    attachShadow(init: ShadowRootInit): ShadowRoot;
    /**
     * The **\`checkVisibility()\`** method of the Element interface checks whether the element is visible.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility)
     */
    checkVisibility(options?: CheckVisibilityOptions): boolean;
    /**
     * The **\`closest()\`** method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest)
     */
    closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
    closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
    closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
    closest<E extends Element = Element>(selectors: string): E | null;
    /**
     * The **\`computedStyleMap()\`** method of the Element interface returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap)
     */
    computedStyleMap(): StylePropertyMapReadOnly;
    /**
     * The **\`getAttribute()\`** method of the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute)
     */
    getAttribute(qualifiedName: string): string | null;
    /**
     * The **\`getAttributeNS()\`** method of the Element interface returns the string value of the attribute with the specified namespace and name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS)
     */
    getAttributeNS(namespace: string | null, localName: string): string | null;
    /**
     * The **\`getAttributeNames()\`** method of the array.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames)
     */
    getAttributeNames(): string[];
    /**
     * Returns the specified attribute of the specified element, as an Attr node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode)
     */
    getAttributeNode(qualifiedName: string): Attr | null;
    /**
     * The **\`getAttributeNodeNS()\`** method of the Element interface returns the namespaced Attr node of an element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS)
     */
    getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
    /**
     * The **\`Element.getBoundingClientRect()\`** method returns a position relative to the viewport.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect)
     */
    getBoundingClientRect(): DOMRect;
    /**
     * The **\`getClientRects()\`** method of the Element interface returns a collection of DOMRect objects that indicate the bounding rectangles for each CSS border box in a client.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects)
     */
    getClientRects(): DOMRectList;
    /**
     * The Element method **\`getElementsByClassName()\`** returns a live specified class name or names.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName)
     */
    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
    /**
     * The **\`Element.getElementsByTagName()\`** method returns a live All descendants of the specified element are searched, but not the element itself.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName)
     */
    getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
    getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
    getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
    /** @deprecated */
    getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
    getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
    /**
     * The **\`Element.getElementsByTagNameNS()\`** method returns a live HTMLCollection of elements with the given tag name belonging to the given namespace.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS)
     */
    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
    getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
    /**
     * The **\`getHTML()\`** method of the Element interface is used to serialize an element's DOM to an HTML string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getHTML)
     */
    getHTML(options?: GetHTMLOptions): string;
    /**
     * The **\`Element.hasAttribute()\`** method returns a **Boolean** value indicating whether the specified element has the specified attribute or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute)
     */
    hasAttribute(qualifiedName: string): boolean;
    /**
     * The **\`hasAttributeNS()\`** method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS)
     */
    hasAttributeNS(namespace: string | null, localName: string): boolean;
    /**
     * The **\`hasAttributes()\`** method of the Element interface returns a boolean value indicating whether the current element has any attributes or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes)
     */
    hasAttributes(): boolean;
    /**
     * The **\`hasPointerCapture()\`** method of the pointer capture for the pointer identified by the given pointer ID.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture)
     */
    hasPointerCapture(pointerId: number): boolean;
    /**
     * The **\`insertAdjacentElement()\`** method of the relative to the element it is invoked upon.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement)
     */
    insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
    /**
     * The **\`insertAdjacentHTML()\`** method of the the resulting nodes into the DOM tree at a specified position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML)
     */
    insertAdjacentHTML(position: InsertPosition, string: string): void;
    /**
     * The **\`insertAdjacentText()\`** method of the Element interface, given a relative position and a string, inserts a new text node at the given position relative to the element it is called from.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText)
     */
    insertAdjacentText(where: InsertPosition, data: string): void;
    /**
     * The **\`matches()\`** method of the Element interface tests whether the element would be selected by the specified CSS selector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
     */
    matches(selectors: string): boolean;
    /**
     * The **\`releasePointerCapture()\`** method of the previously set for a specific (PointerEvent) _pointer_.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture)
     */
    releasePointerCapture(pointerId: number): void;
    /**
     * The Element method **\`removeAttribute()\`** removes the attribute with the specified name from the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute)
     */
    removeAttribute(qualifiedName: string): void;
    /**
     * The **\`removeAttributeNS()\`** method of the If you are working with HTML and you don't need to specify the requested attribute as being part of a specific namespace, use the Element.removeAttribute() method instead.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS)
     */
    removeAttributeNS(namespace: string | null, localName: string): void;
    /**
     * The **\`removeAttributeNode()\`** method of the Element interface removes the specified Attr node from the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode)
     */
    removeAttributeNode(attr: Attr): Attr;
    /**
     * The **\`Element.requestFullscreen()\`** method issues an asynchronous request to make the element be displayed in fullscreen mode.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen)
     */
    requestFullscreen(options?: FullscreenOptions): Promise<void>;
    /**
     * The **\`requestPointerLock()\`** method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock)
     */
    requestPointerLock(options?: PointerLockOptions): Promise<void>;
    /**
     * The **\`scroll()\`** method of the Element interface scrolls the element to a particular set of coordinates inside a given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll)
     */
    scroll(options?: ScrollToOptions): void;
    scroll(x: number, y: number): void;
    /**
     * The **\`scrollBy()\`** method of the Element interface scrolls an element by the given amount.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy)
     */
    scrollBy(options?: ScrollToOptions): void;
    scrollBy(x: number, y: number): void;
    /**
     * The Element interface's **\`scrollIntoView()\`** method scrolls the element's ancestor containers such that the element on which \`scrollIntoView()\` is called is visible to the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView)
     */
    scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
    /**
     * The **\`scrollTo()\`** method of the Element interface scrolls to a particular set of coordinates inside a given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo)
     */
    scrollTo(options?: ScrollToOptions): void;
    scrollTo(x: number, y: number): void;
    /**
     * The **\`setAttribute()\`** method of the Element interface sets the value of an attribute on the specified element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute)
     */
    setAttribute(qualifiedName: string, value: string): void;
    /**
     * \`setAttributeNS\` adds a new attribute or changes the value of an attribute with the given namespace and name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS)
     */
    setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
    /**
     * The **\`setAttributeNode()\`** method of the Element interface adds a new Attr node to the specified element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode)
     */
    setAttributeNode(attr: Attr): Attr | null;
    /**
     * The **\`setAttributeNodeNS()\`** method of the Element interface adds a new namespaced Attr node to an element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS)
     */
    setAttributeNodeNS(attr: Attr): Attr | null;
    /**
     * The **\`setHTMLUnsafe()\`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe)
     */
    setHTMLUnsafe(html: string): void;
    /**
     * The **\`setPointerCapture()\`** method of the _capture target_ of future pointer events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture)
     */
    setPointerCapture(pointerId: number): void;
    /**
     * The **\`toggleAttribute()\`** method of the present and adding it if it is not present) on the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute)
     */
    toggleAttribute(qualifiedName: string, force?: boolean): boolean;
    /**
     * @deprecated This is a legacy alias of \`matches\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
     */
    webkitMatchesSelector(selectors: string): boolean;
    /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */
    get textContent(): string;
    set textContent(value: string | null);
    addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var Element: {
    prototype: Element;
    new(): Element;
};

interface ElementCSSInlineStyle {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */
    readonly attributeStyleMap: StylePropertyMap;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
    get style(): CSSStyleDeclaration;
    set style(cssText: string);
}

interface ElementContentEditable {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */
    contentEditable: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */
    enterKeyHint: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */
    inputMode: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */
    readonly isContentEditable: boolean;
}

/**
 * The **\`ElementInternals\`** interface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals)
 */
interface ElementInternals extends ARIAMixin {
    /**
     * The **\`form\`** read-only property of the ElementInternals interface returns the HTMLFormElement associated with this element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form)
     */
    readonly form: HTMLFormElement | null;
    /**
     * The **\`labels\`** read-only property of the ElementInternals interface returns the labels associated with the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels)
     */
    readonly labels: NodeList;
    /**
     * The **\`shadowRoot\`** read-only property of the ElementInternals interface returns the ShadowRoot for this element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
     */
    readonly shadowRoot: ShadowRoot | null;
    /**
     * The **\`states\`** read-only property of the ElementInternals interface returns a CustomStateSet representing the possible states of the custom element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states)
     */
    readonly states: CustomStateSet;
    /**
     * The **\`validationMessage\`** read-only property of the ElementInternals interface returns the validation message for the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage)
     */
    readonly validationMessage: string;
    /**
     * The **\`validity\`** read-only property of the ElementInternals interface returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity)
     */
    readonly validity: ValidityState;
    /**
     * The **\`willValidate\`** read-only property of the ElementInternals interface returns \`true\` if the element is a submittable element that is a candidate for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate)
     */
    readonly willValidate: boolean;
    /**
     * The **\`checkValidity()\`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity)
     */
    checkValidity(): boolean;
    /**
     * The **\`reportValidity()\`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity)
     */
    reportValidity(): boolean;
    /**
     * The **\`setFormValue()\`** method of the ElementInternals interface sets the element's submission value and state, communicating these to the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue)
     */
    setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
    /**
     * The **\`setValidity()\`** method of the ElementInternals interface sets the validity of the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity)
     */
    setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
}

declare var ElementInternals: {
    prototype: ElementInternals;
    new(): ElementInternals;
};

/**
 * The **\`EncodedAudioChunk\`** interface of the WebCodecs API represents a chunk of encoded audio data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk)
 */
interface EncodedAudioChunk {
    /**
     * The **\`byteLength\`** read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength)
     */
    readonly byteLength: number;
    /**
     * The **\`duration\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration)
     */
    readonly duration: number | null;
    /**
     * The **\`timestamp\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp)
     */
    readonly timestamp: number;
    /**
     * The **\`type\`** read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type)
     */
    readonly type: EncodedAudioChunkType;
    /**
     * The **\`copyTo()\`** method of the EncodedAudioChunk interface copies the encoded chunk of audio data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo)
     */
    copyTo(destination: AllowSharedBufferSource): void;
}

declare var EncodedAudioChunk: {
    prototype: EncodedAudioChunk;
    new(init: EncodedAudioChunkInit): EncodedAudioChunk;
};

/**
 * The **\`EncodedVideoChunk\`** interface of the WebCodecs API represents a chunk of encoded video data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk)
 */
interface EncodedVideoChunk {
    /**
     * The **\`byteLength\`** read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength)
     */
    readonly byteLength: number;
    /**
     * The **\`duration\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration)
     */
    readonly duration: number | null;
    /**
     * The **\`timestamp\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp)
     */
    readonly timestamp: number;
    /**
     * The **\`type\`** read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type)
     */
    readonly type: EncodedVideoChunkType;
    /**
     * The **\`copyTo()\`** method of the EncodedVideoChunk interface copies the encoded chunk of video data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo)
     */
    copyTo(destination: AllowSharedBufferSource): void;
}

declare var EncodedVideoChunk: {
    prototype: EncodedVideoChunk;
    new(init: EncodedVideoChunkInit): EncodedVideoChunk;
};

/**
 * The **\`ErrorEvent\`** interface represents events providing information related to errors in scripts or in files.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
 */
interface ErrorEvent extends Event {
    /**
     * The **\`colno\`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno)
     */
    readonly colno: number;
    /**
     * The **\`error\`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error)
     */
    readonly error: any;
    /**
     * The **\`filename\`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename)
     */
    readonly filename: string;
    /**
     * The **\`lineno\`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno)
     */
    readonly lineno: number;
    /**
     * The **\`message\`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message)
     */
    readonly message: string;
}

declare var ErrorEvent: {
    prototype: ErrorEvent;
    new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};

/**
 * The **\`Event\`** interface represents an event which takes place on an \`EventTarget\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
 */
interface Event {
    /**
     * The **\`bubbles\`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
     */
    readonly bubbles: boolean;
    /**
     * The **\`cancelBubble\`** property of the Event interface is deprecated.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
     */
    cancelBubble: boolean;
    /**
     * The **\`cancelable\`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
     */
    readonly cancelable: boolean;
    /**
     * The read-only **\`composed\`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
     */
    readonly composed: boolean;
    /**
     * The **\`currentTarget\`** read-only property of the Event interface identifies the element to which the event handler has been attached.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
     */
    readonly currentTarget: EventTarget | null;
    /**
     * The **\`defaultPrevented\`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
     */
    readonly defaultPrevented: boolean;
    /**
     * The **\`eventPhase\`** read-only property of the being evaluated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
     */
    readonly eventPhase: number;
    /**
     * The **\`isTrusted\`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and \`false\` when the event was dispatched via The only exception is the \`click\` event, which initializes the \`isTrusted\` property to \`false\` in user agents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
     */
    readonly isTrusted: boolean;
    /**
     * The Event property **\`returnValue\`** indicates whether the default action for this event has been prevented or not.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
     */
    returnValue: boolean;
    /**
     * The deprecated **\`Event.srcElement\`** is an alias for the Event.target property.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
     */
    readonly srcElement: EventTarget | null;
    /**
     * The read-only **\`target\`** property of the dispatched.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
     */
    readonly target: EventTarget | null;
    /**
     * The **\`timeStamp\`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
     */
    readonly timeStamp: DOMHighResTimeStamp;
    /**
     * The **\`type\`** read-only property of the Event interface returns a string containing the event's type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
     */
    readonly type: string;
    /**
     * The **\`composedPath()\`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
     */
    composedPath(): EventTarget[];
    /**
     * The **\`Event.initEvent()\`** method is used to initialize the value of an event created using Document.createEvent().
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
     */
    initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
    /**
     * The **\`preventDefault()\`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
     */
    preventDefault(): void;
    /**
     * The **\`stopImmediatePropagation()\`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
     */
    stopImmediatePropagation(): void;
    /**
     * The **\`stopPropagation()\`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
     */
    stopPropagation(): void;
    readonly NONE: 0;
    readonly CAPTURING_PHASE: 1;
    readonly AT_TARGET: 2;
    readonly BUBBLING_PHASE: 3;
}

declare var Event: {
    prototype: Event;
    new(type: string, eventInitDict?: EventInit): Event;
    readonly NONE: 0;
    readonly CAPTURING_PHASE: 1;
    readonly AT_TARGET: 2;
    readonly BUBBLING_PHASE: 3;
};

/**
 * The **\`EventCounts\`** interface of the Performance API provides the number of events that have been dispatched for each event type.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts)
 */
interface EventCounts {
    forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
}

declare var EventCounts: {
    prototype: EventCounts;
    new(): EventCounts;
};

interface EventListener {
    (evt: Event): void;
}

interface EventListenerObject {
    handleEvent(object: Event): void;
}

interface EventSourceEventMap {
    "error": Event;
    "message": MessageEvent;
    "open": Event;
}

/**
 * The **\`EventSource\`** interface is web content's interface to server-sent events.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource)
 */
interface EventSource extends EventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
    onerror: ((this: EventSource, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */
    onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */
    onopen: ((this: EventSource, ev: Event) => any) | null;
    /**
     * The **\`readyState\`** read-only property of the connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
     */
    readonly readyState: number;
    /**
     * The **\`url\`** read-only property of the URL of the source.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
     */
    readonly url: string;
    /**
     * The **\`withCredentials\`** read-only property of the the \`EventSource\` object was instantiated with CORS credentials set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
     */
    readonly withCredentials: boolean;
    /**
     * The **\`close()\`** method of the EventSource interface closes the connection, if one is made, and sets the \`\`\`js-nolint close() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
     */
    close(): void;
    readonly CONNECTING: 0;
    readonly OPEN: 1;
    readonly CLOSED: 2;
    addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var EventSource: {
    prototype: EventSource;
    new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
    readonly CONNECTING: 0;
    readonly OPEN: 1;
    readonly CLOSED: 2;
};

/**
 * The **\`EventTarget\`** interface is implemented by objects that can receive events and may have listeners for them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
 */
interface EventTarget {
    /**
     * The **\`addEventListener()\`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
     */
    addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
    /**
     * The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
     */
    dispatchEvent(event: Event): boolean;
    /**
     * The **\`removeEventListener()\`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
     */
    removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}

declare var EventTarget: {
    prototype: EventTarget;
    new(): EventTarget;
};

/** @deprecated */
interface External {
    /** @deprecated */
    AddSearchProvider(): void;
    /** @deprecated */
    IsSearchProviderInstalled(): void;
}

/** @deprecated */
declare var External: {
    prototype: External;
    new(): External;
};

/**
 * The **\`File\`** interface provides information about files and allows JavaScript in a web page to access their content.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
 */
interface File extends Blob {
    /**
     * The **\`lastModified\`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)
     */
    readonly lastModified: number;
    /**
     * The **\`name\`** read-only property of the File interface returns the name of the file represented by a File object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)
     */
    readonly name: string;
    /**
     * The **\`webkitRelativePath\`** read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an input element with its \`webkitdirectory\` attribute set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath)
     */
    readonly webkitRelativePath: string;
}

declare var File: {
    prototype: File;
    new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};

/**
 * The **\`FileList\`** interface represents an object of this type returned by the \`files\` property of the HTML input element; this lets you access the list of files selected with the \`<input type='file'>\` element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
 */
interface FileList {
    /**
     * The **\`length\`** read-only property of the FileList interface returns the number of files in the \`FileList\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length)
     */
    readonly length: number;
    /**
     * The **\`item()\`** method of the FileList interface returns a File object representing the file at the specified index in the file list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item)
     */
    item(index: number): File | null;
    [index: number]: File;
}

declare var FileList: {
    prototype: FileList;
    new(): FileList;
};

interface FileReaderEventMap {
    "abort": ProgressEvent<FileReader>;
    "error": ProgressEvent<FileReader>;
    "load": ProgressEvent<FileReader>;
    "loadend": ProgressEvent<FileReader>;
    "loadstart": ProgressEvent<FileReader>;
    "progress": ProgressEvent<FileReader>;
}

/**
 * The **\`FileReader\`** interface lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)
 */
interface FileReader extends EventTarget {
    /**
     * The **\`error\`** read-only property of the FileReader interface returns the error that occurred while reading the file.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error)
     */
    readonly error: DOMException | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */
    onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */
    onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */
    onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */
    onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */
    onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */
    onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /**
     * The **\`readyState\`** read-only property of the FileReader interface provides the current state of the reading operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)
     */
    readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
    /**
     * The **\`result\`** read-only property of the FileReader interface returns the file's contents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result)
     */
    readonly result: string | ArrayBuffer | null;
    /**
     * The **\`abort()\`** method of the FileReader interface aborts the read operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort)
     */
    abort(): void;
    /**
     * The **\`readAsArrayBuffer()\`** method of the FileReader interface is used to start reading the contents of a specified Blob or File.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer)
     */
    readAsArrayBuffer(blob: Blob): void;
    /**
     * The **\`readAsBinaryString()\`** method of the FileReader interface is used to start reading the contents of the specified Blob or File.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
     */
    readAsBinaryString(blob: Blob): void;
    /**
     * The **\`readAsDataURL()\`** method of the FileReader interface is used to read the contents of the specified file's data as a base64 encoded string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL)
     */
    readAsDataURL(blob: Blob): void;
    /**
     * The **\`readAsText()\`** method of the FileReader interface is used to read the contents of the specified Blob or File.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText)
     */
    readAsText(blob: Blob, encoding?: string): void;
    readonly EMPTY: 0;
    readonly LOADING: 1;
    readonly DONE: 2;
    addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var FileReader: {
    prototype: FileReader;
    new(): FileReader;
    readonly EMPTY: 0;
    readonly LOADING: 1;
    readonly DONE: 2;
};

/**
 * The File and Directory Entries API interface **\`FileSystem\`** is used to represent a file system.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem)
 */
interface FileSystem {
    /**
     * The read-only **\`name\`** property of the string is unique among all file systems currently exposed by the File and Directory Entries API.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name)
     */
    readonly name: string;
    /**
     * The read-only **\`root\`** property of the object representing the root directory of the file system, for use with the File and Directory Entries API.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root)
     */
    readonly root: FileSystemDirectoryEntry;
}

declare var FileSystem: {
    prototype: FileSystem;
    new(): FileSystem;
};

/**
 * The **\`FileSystemDirectoryEntry\`** interface of the File and Directory Entries API represents a directory in a file system.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry)
 */
interface FileSystemDirectoryEntry extends FileSystemEntry {
    /**
     * The FileSystemDirectoryEntry interface's method **\`createReader()\`** returns a the directory.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader)
     */
    createReader(): FileSystemDirectoryReader;
    /**
     * The FileSystemDirectoryEntry interface's method **\`getDirectory()\`** returns a somewhere within the directory subtree rooted at the directory on which it's called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory)
     */
    getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
    /**
     * The FileSystemDirectoryEntry interface's method **\`getFile()\`** returns a within the directory subtree rooted at the directory on which it's called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile)
     */
    getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}

declare var FileSystemDirectoryEntry: {
    prototype: FileSystemDirectoryEntry;
    new(): FileSystemDirectoryEntry;
};

/**
 * The **\`FileSystemDirectoryHandle\`** interface of the File System API provides a handle to a file system directory.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
 */
interface FileSystemDirectoryHandle extends FileSystemHandle {
    readonly kind: "directory";
    /**
     * The **\`getDirectoryHandle()\`** method of the within the directory handle on which the method is called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)
     */
    getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
    /**
     * The **\`getFileHandle()\`** method of the directory the method is called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)
     */
    getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
    /**
     * The **\`removeEntry()\`** method of the directory handle contains a file or directory called the name specified.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry)
     */
    removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
    /**
     * The **\`resolve()\`** method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve)
     */
    resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}

declare var FileSystemDirectoryHandle: {
    prototype: FileSystemDirectoryHandle;
    new(): FileSystemDirectoryHandle;
};

/**
 * The \`FileSystemDirectoryReader\` interface of the File and Directory Entries API lets you access the FileSystemFileEntry-based objects (generally FileSystemFileEntry or FileSystemDirectoryEntry) representing each entry in a directory.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader)
 */
interface FileSystemDirectoryReader {
    /**
     * The FileSystemDirectoryReader interface's **\`readEntries()\`** method retrieves the directory entries within the directory being read and delivers them in an array to a provided callback function.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries)
     */
    readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
}

declare var FileSystemDirectoryReader: {
    prototype: FileSystemDirectoryReader;
    new(): FileSystemDirectoryReader;
};

/**
 * The **\`FileSystemEntry\`** interface of the File and Directory Entries API represents a single entry in a file system.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry)
 */
interface FileSystemEntry {
    /**
     * The read-only **\`filesystem\`** property of the FileSystemEntry interface contains a resides.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem)
     */
    readonly filesystem: FileSystem;
    /**
     * The read-only **\`fullPath\`** property of the FileSystemEntry interface returns a string specifying the full, absolute path from the file system's root to the file represented by the entry.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath)
     */
    readonly fullPath: string;
    /**
     * The read-only **\`isDirectory\`** property of the FileSystemEntry interface is \`true\` if the entry represents a directory (meaning it's a FileSystemDirectoryEntry) and \`false\` if it's not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory)
     */
    readonly isDirectory: boolean;
    /**
     * The read-only **\`isFile\`** property of the FileSystemEntry interface is \`true\` if the entry represents a file (meaning it's a FileSystemFileEntry) and \`false\` if it's not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile)
     */
    readonly isFile: boolean;
    /**
     * The read-only **\`name\`** property of the FileSystemEntry interface returns a string specifying the entry's name; this is the entry within its parent directory (the last component of the path as indicated by the FileSystemEntry.fullPath property).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name)
     */
    readonly name: string;
    /**
     * The FileSystemEntry interface's method **\`getParent()\`** obtains a \`\`\`js-nolint getParent(successCallback, errorCallback) getParent(successCallback) \`\`\` - \`successCallback\` - : A function which is called when the parent directory entry has been retrieved.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent)
     */
    getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}

declare var FileSystemEntry: {
    prototype: FileSystemEntry;
    new(): FileSystemEntry;
};

/**
 * The **\`FileSystemFileEntry\`** interface of the File and Directory Entries API represents a file in a file system.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry)
 */
interface FileSystemFileEntry extends FileSystemEntry {
    /**
     * The FileSystemFileEntry interface's method **\`file()\`** returns a the directory entry.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file)
     */
    file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
}

declare var FileSystemFileEntry: {
    prototype: FileSystemFileEntry;
    new(): FileSystemFileEntry;
};

/**
 * The **\`FileSystemFileHandle\`** interface of the File System API represents a handle to a file system entry.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
 */
interface FileSystemFileHandle extends FileSystemHandle {
    readonly kind: "file";
    /**
     * The **\`createWritable()\`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable)
     */
    createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
    /**
     * The **\`getFile()\`** method of the If the file on disk changes or is removed after this method is called, the returned \`\`\`js-nolint getFile() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile)
     */
    getFile(): Promise<File>;
}

declare var FileSystemFileHandle: {
    prototype: FileSystemFileHandle;
    new(): FileSystemFileHandle;
};

/**
 * The **\`FileSystemHandle\`** interface of the File System API is an object which represents a file or directory entry.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
 */
interface FileSystemHandle {
    /**
     * The **\`kind\`** read-only property of the \`'file'\` if the associated entry is a file or \`'directory'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind)
     */
    readonly kind: FileSystemHandleKind;
    /**
     * The **\`name\`** read-only property of the handle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name)
     */
    readonly name: string;
    /**
     * The **\`isSameEntry()\`** method of the \`\`\`js-nolint isSameEntry(fileSystemHandle) \`\`\` - FileSystemHandle - : The \`FileSystemHandle\` to match against the handle on which the method is invoked.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry)
     */
    isSameEntry(other: FileSystemHandle): Promise<boolean>;
}

declare var FileSystemHandle: {
    prototype: FileSystemHandle;
    new(): FileSystemHandle;
};

/**
 * The **\`FileSystemWritableFileStream\`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
 */
interface FileSystemWritableFileStream extends WritableStream {
    /**
     * The **\`seek()\`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek)
     */
    seek(position: number): Promise<void>;
    /**
     * The **\`truncate()\`** method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate)
     */
    truncate(size: number): Promise<void>;
    /**
     * The **\`write()\`** method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write)
     */
    write(data: FileSystemWriteChunkType): Promise<void>;
}

declare var FileSystemWritableFileStream: {
    prototype: FileSystemWritableFileStream;
    new(): FileSystemWritableFileStream;
};

/**
 * The **\`FocusEvent\`** interface represents focus-related events, including Element/focus_event, Element/blur_event, Element/focusin_event, and Element/focusout_event.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent)
 */
interface FocusEvent extends UIEvent {
    /**
     * The **\`relatedTarget\`** read-only property of the FocusEvent interface is the secondary target, depending on the type of event: <table class='no-markdown'> <thead> <tr> <th scope='col'>Event name</th> <th scope='col'><code>target</code></th> <th scope='col'><code>relatedTarget</code></th> </tr> </thead> <tbody> <tr> <td>Element/blur_event</td> <td>The EventTarget losing focus</td> <td>The EventTarget receiving focus (if any).</td> </tr> <tr> <td>Element/focus_event</td> <td>The EventTarget receiving focus</td> <td>The EventTarget losing focus (if any)</td> </tr> <tr> <td>Element/focusin_event</td> <td>The EventTarget receiving focus</td> <td>The EventTarget losing focus (if any)</td> </tr> <tr> <td>Element/focusout_event</td> <td>The EventTarget losing focus</td> <td>The EventTarget receiving focus (if any)</td> </tr> </tbody> </table> Note that many elements can't have focus, which is a common reason for \`relatedTarget\` to be \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget)
     */
    readonly relatedTarget: EventTarget | null;
}

declare var FocusEvent: {
    prototype: FocusEvent;
    new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
};

/**
 * The **\`FontFace\`** interface of the CSS Font Loading API represents a single usable font face.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace)
 */
interface FontFace {
    /**
     * The **\`ascentOverride\`** property of the FontFace interface returns and sets the ascent metric for the font, the height above the baseline that CSS uses to lay out line boxes in an inline formatting context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride)
     */
    ascentOverride: string;
    /**
     * The **\`descentOverride\`** property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride)
     */
    descentOverride: string;
    /**
     * The **\`display\`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display)
     */
    display: FontDisplay;
    /**
     * The **\`FontFace.family\`** property allows the author to get or set the font family of a FontFace object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family)
     */
    family: string;
    /**
     * The **\`featureSettings\`** property of the FontFace interface retrieves or sets infrequently used font features that are not available from a font's variant properties.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings)
     */
    featureSettings: string;
    /**
     * The **\`lineGapOverride\`** property of the FontFace interface returns and sets the value of the @font-face/line-gap-override descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride)
     */
    lineGapOverride: string;
    /**
     * The **\`loaded\`** read-only property of the FontFace interface returns a Promise that resolves with the current \`FontFace\` object when the font specified in the object's constructor is done loading or rejects with a \`SyntaxError\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded)
     */
    readonly loaded: Promise<FontFace>;
    /**
     * The **\`status\`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of \`'unloaded'\`, \`'loading'\`, \`'loaded'\`, or \`'error'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status)
     */
    readonly status: FontFaceLoadStatus;
    /**
     * The **\`stretch\`** property of the FontFace interface retrieves or sets how the font stretches.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch)
     */
    stretch: string;
    /**
     * The **\`style\`** property of the FontFace interface retrieves or sets the font's style.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style)
     */
    style: string;
    /**
     * The **\`unicodeRange\`** property of the FontFace interface retrieves or sets the range of unicode code points encompassing the font.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
     */
    unicodeRange: string;
    /**
     * The **\`weight\`** property of the FontFace interface retrieves or sets the weight of the font.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight)
     */
    weight: string;
    /**
     * The **\`load()\`** method of the FontFace interface requests and loads a font whose \`source\` was specified as a URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load)
     */
    load(): Promise<FontFace>;
}

declare var FontFace: {
    prototype: FontFace;
    new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
};

interface FontFaceSetEventMap {
    "loading": FontFaceSetLoadEvent;
    "loadingdone": FontFaceSetLoadEvent;
    "loadingerror": FontFaceSetLoadEvent;
}

/**
 * The **\`FontFaceSet\`** interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet)
 */
interface FontFaceSet extends EventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
    onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
    onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
    onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
    /**
     * The \`ready\` read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready)
     */
    readonly ready: Promise<FontFaceSet>;
    /**
     * The **\`status\`** read-only property of the FontFaceSet interface returns the loading state of the fonts in the set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status)
     */
    readonly status: FontFaceSetLoadStatus;
    /**
     * The \`check()\` method of the FontFaceSet returns \`true\` if you can render some text using the given font specification without attempting to use any fonts in this \`FontFaceSet\` that are not yet fully loaded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)
     */
    check(font: string, text?: string): boolean;
    /**
     * The \`load()\` method of the FontFaceSet forces all the fonts given in parameters to be loaded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load)
     */
    load(font: string, text?: string): Promise<FontFace[]>;
    forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
    addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var FontFaceSet: {
    prototype: FontFaceSet;
    new(): FontFaceSet;
};

/**
 * The **\`FontFaceSetLoadEvent\`** interface of the CSS Font Loading API represents events fired at a FontFaceSet after it starts loading font faces.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent)
 */
interface FontFaceSetLoadEvent extends Event {
    /**
     * The **\`fontfaces\`** read-only property of the An array of FontFace instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces)
     */
    readonly fontfaces: ReadonlyArray<FontFace>;
}

declare var FontFaceSetLoadEvent: {
    prototype: FontFaceSetLoadEvent;
    new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};

interface FontFaceSource {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
    readonly fonts: FontFaceSet;
}

/**
 * The **\`FormData\`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
 */
interface FormData {
    /**
     * The **\`append()\`** method of the FormData interface appends a new value onto an existing key inside a \`FormData\` object, or adds the key if it does not already exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)
     */
    append(name: string, value: string | Blob): void;
    append(name: string, value: string): void;
    append(name: string, blobValue: Blob, filename?: string): void;
    /**
     * The **\`delete()\`** method of the FormData interface deletes a key and its value(s) from a \`FormData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete)
     */
    delete(name: string): void;
    /**
     * The **\`get()\`** method of the FormData interface returns the first value associated with a given key from within a \`FormData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get)
     */
    get(name: string): FormDataEntryValue | null;
    /**
     * The **\`getAll()\`** method of the FormData interface returns all the values associated with a given key from within a \`FormData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll)
     */
    getAll(name: string): FormDataEntryValue[];
    /**
     * The **\`has()\`** method of the FormData interface returns whether a \`FormData\` object contains a certain key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)
     */
    has(name: string): boolean;
    /**
     * The **\`set()\`** method of the FormData interface sets a new value for an existing key inside a \`FormData\` object, or adds the key/value if it does not already exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)
     */
    set(name: string, value: string | Blob): void;
    set(name: string, value: string): void;
    set(name: string, blobValue: Blob, filename?: string): void;
    forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}

declare var FormData: {
    prototype: FormData;
    new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData;
};

/**
 * The **\`FormDataEvent\`** interface represents a \`formdata\` event — such an event is fired on an HTMLFormElement object after the entry list representing the form's data is constructed.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent)
 */
interface FormDataEvent extends Event {
    /**
     * The \`formData\` read-only property of the FormDataEvent interface contains the FormData object representing the data contained in the form when the event was fired.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData)
     */
    readonly formData: FormData;
}

declare var FormDataEvent: {
    prototype: FormDataEvent;
    new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
};

/**
 * The **\`FragmentDirective\`** interface is an object exposed to allow code to check whether or not a browser supports text fragments.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FragmentDirective)
 */
interface FragmentDirective {
}

declare var FragmentDirective: {
    prototype: FragmentDirective;
    new(): FragmentDirective;
};

/**
 * The **\`GPUError\`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)
 */
interface GPUError {
    /**
     * The **\`message\`** read-only property of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message)
     */
    readonly message: string;
}

/**
 * The \`GainNode\` interface represents a change in volume.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode)
 */
interface GainNode extends AudioNode {
    /**
     * The \`gain\` property of the GainNode interface is an a-rate AudioParam representing the amount of gain to apply.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain)
     */
    readonly gain: AudioParam;
}

declare var GainNode: {
    prototype: GainNode;
    new(context: BaseAudioContext, options?: GainOptions): GainNode;
};

/**
 * The **\`Gamepad\`** interface of the Gamepad API defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
 */
interface Gamepad {
    /**
     * The **\`Gamepad.axes\`** property of the Gamepad interface returns an array representing the controls with axes present on the device (e.g., analog thumb sticks).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes)
     */
    readonly axes: ReadonlyArray<number>;
    /**
     * The **\`buttons\`** property of the Gamepad interface returns an array of GamepadButton objects representing the buttons present on the device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons)
     */
    readonly buttons: ReadonlyArray<GamepadButton>;
    /**
     * The **\`Gamepad.connected\`** property of the still connected to the system.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected)
     */
    readonly connected: boolean;
    /**
     * The **\`Gamepad.id\`** property of the Gamepad interface returns a string containing some information about the controller.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id)
     */
    readonly id: string;
    /**
     * The **\`Gamepad.index\`** property of the Gamepad interface returns an integer that is auto-incremented to be unique for each device currently connected to the system.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index)
     */
    readonly index: number;
    /**
     * The **\`Gamepad.mapping\`** property of the remapped the controls on the device to a known layout.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping)
     */
    readonly mapping: GamepadMappingType;
    /**
     * The **\`Gamepad.timestamp\`** property of the representing the last time the data for this gamepad was updated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp)
     */
    readonly timestamp: DOMHighResTimeStamp;
    /**
     * The **\`vibrationActuator\`** read-only property of the Gamepad interface returns a GamepadHapticActuator object, which represents haptic feedback hardware available on the controller.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/vibrationActuator)
     */
    readonly vibrationActuator: GamepadHapticActuator;
}

declare var Gamepad: {
    prototype: Gamepad;
    new(): Gamepad;
};

/**
 * The **\`GamepadButton\`** interface defines an individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
 */
interface GamepadButton {
    /**
     * The **\`GamepadButton.pressed\`** property of the the button is currently pressed (\`true\`) or unpressed (\`false\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed)
     */
    readonly pressed: boolean;
    /**
     * The **\`touched\`** property of the a button capable of detecting touch is currently touched (\`true\`) or not touched (\`false\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched)
     */
    readonly touched: boolean;
    /**
     * The **\`GamepadButton.value\`** property of the current state of analog buttons on many modern gamepads, such as the triggers.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value)
     */
    readonly value: number;
}

declare var GamepadButton: {
    prototype: GamepadButton;
    new(): GamepadButton;
};

/**
 * The GamepadEvent interface of the Gamepad API contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected_event and Window.gamepaddisconnected_event are fired in response to.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
 */
interface GamepadEvent extends Event {
    /**
     * The **\`GamepadEvent.gamepad\`** property of the **GamepadEvent interface** returns a Gamepad object, providing access to the associated gamepad data for fired A Gamepad object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad)
     */
    readonly gamepad: Gamepad;
}

declare var GamepadEvent: {
    prototype: GamepadEvent;
    new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
};

/**
 * The **\`GamepadHapticActuator\`** interface of the Gamepad API represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)
 */
interface GamepadHapticActuator {
    /**
     * The **\`playEffect()\`** method of the GamepadHapticActuator interface causes the hardware to play a specific vibration effect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect)
     */
    playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
    /**
     * The **\`reset()\`** method of the GamepadHapticActuator interface stops the hardware from playing an active vibration effect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/reset)
     */
    reset(): Promise<GamepadHapticsResult>;
}

declare var GamepadHapticActuator: {
    prototype: GamepadHapticActuator;
    new(): GamepadHapticActuator;
};

interface GenericTransformStream {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
    readonly readable: ReadableStream;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
    readonly writable: WritableStream;
}

/**
 * The **\`Geolocation\`** interface represents an object able to obtain the position of the device programmatically.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation)
 */
interface Geolocation {
    /**
     * The **\`clearWatch()\`** method of the Geolocation interface is used to unregister location/error monitoring handlers previously installed using Geolocation.watchPosition().
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch)
     */
    clearWatch(watchId: number): void;
    /**
     * The **\`getCurrentPosition()\`** method of the Geolocation interface is used to get the current position of the device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition)
     */
    getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
    /**
     * The **\`watchPosition()\`** method of the Geolocation interface is used to register a handler function that will be called automatically each time the position of the device changes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition)
     */
    watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
}

declare var Geolocation: {
    prototype: Geolocation;
    new(): Geolocation;
};

/**
 * The **\`GeolocationCoordinates\`** interface represents the position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates)
 */
interface GeolocationCoordinates {
    /**
     * The **\`accuracy\`** read-only property of the GeolocationCoordinates interface is a strictly positive \`double\` representing the accuracy, with a 95% confidence level, of the GeolocationCoordinates.latitude and GeolocationCoordinates.longitude properties expressed in meters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy)
     */
    readonly accuracy: number;
    /**
     * The **\`altitude\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the altitude of the position in meters above the WGS84 ellipsoid (which defines the nominal sea level surface).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude)
     */
    readonly altitude: number | null;
    /**
     * The **\`altitudeAccuracy\`** read-only property of the GeolocationCoordinates interface is a strictly positive \`double\` representing the accuracy, with a 95% confidence level, of the \`altitude\` expressed in meters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy)
     */
    readonly altitudeAccuracy: number | null;
    /**
     * The **\`heading\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the direction in which the device is traveling.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading)
     */
    readonly heading: number | null;
    /**
     * The **\`latitude\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the latitude of the position in decimal degrees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude)
     */
    readonly latitude: number;
    /**
     * The **\`longitude\`** read-only property of the GeolocationCoordinates interface is a number which represents the longitude of a geographical position, specified in decimal degrees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude)
     */
    readonly longitude: number;
    /**
     * The **\`speed\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the velocity of the device in meters per second.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed)
     */
    readonly speed: number | null;
    /**
     * The **\`toJSON()\`** method of the GeolocationCoordinates interface is a Serialization; it returns a JSON representation of the GeolocationCoordinates object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON)
     */
    toJSON(): any;
}

declare var GeolocationCoordinates: {
    prototype: GeolocationCoordinates;
    new(): GeolocationCoordinates;
};

/**
 * The **\`GeolocationPosition\`** interface represents the position of the concerned device at a given time.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition)
 */
interface GeolocationPosition {
    /**
     * The **\`coords\`** read-only property of the GeolocationPosition interface returns a GeolocationCoordinates object representing a geographic position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords)
     */
    readonly coords: GeolocationCoordinates;
    /**
     * The **\`timestamp\`** read-only property of the GeolocationPosition interface represents the date and time that the position was acquired by the device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp)
     */
    readonly timestamp: EpochTimeStamp;
    /**
     * The **\`toJSON()\`** method of the GeolocationPosition interface is a Serialization; it returns a JSON representation of the GeolocationPosition object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON)
     */
    toJSON(): any;
}

declare var GeolocationPosition: {
    prototype: GeolocationPosition;
    new(): GeolocationPosition;
};

/**
 * The **\`GeolocationPositionError\`** interface represents the reason of an error occurring when using the geolocating device.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError)
 */
interface GeolocationPositionError {
    /**
     * The **\`code\`** read-only property of the GeolocationPositionError interface is an \`unsigned short\` representing the error code.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code)
     */
    readonly code: number;
    /**
     * The **\`message\`** read-only property of the GeolocationPositionError interface returns a human-readable string describing the details of the error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message)
     */
    readonly message: string;
    readonly PERMISSION_DENIED: 1;
    readonly POSITION_UNAVAILABLE: 2;
    readonly TIMEOUT: 3;
}

declare var GeolocationPositionError: {
    prototype: GeolocationPositionError;
    new(): GeolocationPositionError;
    readonly PERMISSION_DENIED: 1;
    readonly POSITION_UNAVAILABLE: 2;
    readonly TIMEOUT: 3;
};

interface GlobalEventHandlersEventMap {
    "abort": UIEvent;
    "animationcancel": AnimationEvent;
    "animationend": AnimationEvent;
    "animationiteration": AnimationEvent;
    "animationstart": AnimationEvent;
    "auxclick": PointerEvent;
    "beforeinput": InputEvent;
    "beforematch": Event;
    "beforetoggle": ToggleEvent;
    "blur": FocusEvent;
    "cancel": Event;
    "canplay": Event;
    "canplaythrough": Event;
    "change": Event;
    "click": PointerEvent;
    "close": Event;
    "compositionend": CompositionEvent;
    "compositionstart": CompositionEvent;
    "compositionupdate": CompositionEvent;
    "contextlost": Event;
    "contextmenu": PointerEvent;
    "contextrestored": Event;
    "copy": ClipboardEvent;
    "cuechange": Event;
    "cut": ClipboardEvent;
    "dblclick": MouseEvent;
    "drag": DragEvent;
    "dragend": DragEvent;
    "dragenter": DragEvent;
    "dragleave": DragEvent;
    "dragover": DragEvent;
    "dragstart": DragEvent;
    "drop": DragEvent;
    "durationchange": Event;
    "emptied": Event;
    "ended": Event;
    "error": ErrorEvent;
    "focus": FocusEvent;
    "focusin": FocusEvent;
    "focusout": FocusEvent;
    "formdata": FormDataEvent;
    "gotpointercapture": PointerEvent;
    "input": Event;
    "invalid": Event;
    "keydown": KeyboardEvent;
    "keypress": KeyboardEvent;
    "keyup": KeyboardEvent;
    "load": Event;
    "loadeddata": Event;
    "loadedmetadata": Event;
    "loadstart": Event;
    "lostpointercapture": PointerEvent;
    "mousedown": MouseEvent;
    "mouseenter": MouseEvent;
    "mouseleave": MouseEvent;
    "mousemove": MouseEvent;
    "mouseout": MouseEvent;
    "mouseover": MouseEvent;
    "mouseup": MouseEvent;
    "paste": ClipboardEvent;
    "pause": Event;
    "play": Event;
    "playing": Event;
    "pointercancel": PointerEvent;
    "pointerdown": PointerEvent;
    "pointerenter": PointerEvent;
    "pointerleave": PointerEvent;
    "pointermove": PointerEvent;
    "pointerout": PointerEvent;
    "pointerover": PointerEvent;
    "pointerrawupdate": Event;
    "pointerup": PointerEvent;
    "progress": ProgressEvent;
    "ratechange": Event;
    "reset": Event;
    "resize": UIEvent;
    "scroll": Event;
    "scrollend": Event;
    "securitypolicyviolation": SecurityPolicyViolationEvent;
    "seeked": Event;
    "seeking": Event;
    "select": Event;
    "selectionchange": Event;
    "selectstart": Event;
    "slotchange": Event;
    "stalled": Event;
    "submit": SubmitEvent;
    "suspend": Event;
    "timeupdate": Event;
    "toggle": ToggleEvent;
    "touchcancel": TouchEvent;
    "touchend": TouchEvent;
    "touchmove": TouchEvent;
    "touchstart": TouchEvent;
    "transitioncancel": TransitionEvent;
    "transitionend": TransitionEvent;
    "transitionrun": TransitionEvent;
    "transitionstart": TransitionEvent;
    "volumechange": Event;
    "waiting": Event;
    "webkitanimationend": Event;
    "webkitanimationiteration": Event;
    "webkitanimationstart": Event;
    "webkittransitionend": Event;
    "wheel": WheelEvent;
}

interface GlobalEventHandlers {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) */
    onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */
    onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */
    onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */
    onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */
    onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */
    onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
    onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforematch_event) */
    onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
    onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */
    onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
    oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */
    oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */
    oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */
    onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */
    onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
    onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
    oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
    oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
    oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
    oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
    oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */
    oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */
    ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */
    ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */
    ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */
    ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */
    ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */
    ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) */
    ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */
    ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */
    ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */
    onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */
    onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */
    onerror: OnErrorEventHandler;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */
    onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */
    onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
    ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */
    oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
    oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */
    onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
     */
    onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */
    onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/load_event) */
    onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */
    onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */
    onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */
    onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */
    onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) */
    onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */
    onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */
    onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */
    onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */
    onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */
    onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) */
    onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */
    onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */
    onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */
    onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) */
    onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */
    onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */
    onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */
    onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */
    onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */
    onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */
    onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
    onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /**
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)
     */
    onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
    onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */
    onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */
    onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) */
    onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */
    onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */
    onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
    onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
    onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */
    onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */
    onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) */
    onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */
    onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */
    onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */
    onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) */
    onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */
    onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */
    onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */
    ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */
    ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
    ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
    ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */
    ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */
    ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */
    ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */
    ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */
    ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */
    ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */
    onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) */
    onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /**
     * @deprecated This is a legacy alias of \`onanimationend\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)
     */
    onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /**
     * @deprecated This is a legacy alias of \`onanimationiteration\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)
     */
    onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /**
     * @deprecated This is a legacy alias of \`onanimationstart\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)
     */
    onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /**
     * @deprecated This is a legacy alias of \`ontransitionend\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)
     */
    onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */
    onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
    addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/**
 * The **\`HTMLAllCollection\`** interface represents a collection of _all_ of the document's elements, accessible by index (like an array) and by the element's \`id\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection)
 */
interface HTMLAllCollection {
    /**
     * The **\`HTMLAllCollection.length\`** property returns the number of items in this HTMLAllCollection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length)
     */
    readonly length: number;
    /**
     * The **\`item()\`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its \`id\` or \`name\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item)
     */
    item(nameOrIndex?: string): HTMLCollection | Element | null;
    /**
     * The **\`namedItem()\`** method of the HTMLAllCollection interface returns the first Element in the collection whose \`id\` or \`name\` attribute matches the specified name, or \`null\` if no element matches.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem)
     */
    namedItem(name: string): HTMLCollection | Element | null;
    [index: number]: Element;
}

declare var HTMLAllCollection: {
    prototype: HTMLAllCollection;
    new(): HTMLAllCollection;
};

/**
 * The **\`HTMLAnchorElement\`** interface represents hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement)
 */
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
    /** @deprecated */
    charset: string;
    /** @deprecated */
    coords: string;
    /**
     * The **\`HTMLAnchorElement.download\`** property is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download)
     */
    download: string;
    /**
     * The **\`hreflang\`** property of the HTMLAnchorElement interface is a string that is the language of the linked resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang)
     */
    hreflang: string;
    /** @deprecated */
    name: string;
    /**
     * The **\`ping\`** property of the HTMLAnchorElement interface is a space-separated list of URLs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping)
     */
    ping: string;
    /**
     * The **\`HTMLAnchorElement.referrerPolicy\`** property reflect the HTML \`referrerpolicy\` attribute of the A string; one of the following: - \`no-referrer\` - : The Referer header will be omitted entirely.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy)
     */
    referrerPolicy: string;
    /**
     * The **\`HTMLAnchorElement.rel\`** property reflects the \`rel\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel)
     */
    rel: string;
    /**
     * The **\`HTMLAnchorElement.relList\`** read-only property reflects the \`rel\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList)
     */
    get relList(): DOMTokenList;
    set relList(value: string);
    /** @deprecated */
    rev: string;
    /** @deprecated */
    shape: string;
    /**
     * The **\`target\`** property of the HTMLAnchorElement interface is a string that indicates where to display the linked resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target)
     */
    target: string;
    /**
     * The **\`text\`** property of the HTMLAnchorElement represents the text inside the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text)
     */
    text: string;
    /**
     * The **\`type\`** property of the HTMLAnchorElement interface is a string that indicates the MIME type of the linked resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type)
     */
    type: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLAnchorElement: {
    prototype: HTMLAnchorElement;
    new(): HTMLAnchorElement;
};

/**
 * The **\`HTMLAreaElement\`** interface provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of area elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement)
 */
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
    /**
     * The **\`alt\`** property of the HTMLAreaElement interface specifies the text of the hyperlink, defining the textual label for an image map's link.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt)
     */
    alt: string;
    /**
     * The **\`coords\`** property of the HTMLAreaElement interface specifies the coordinates of the element's shape as a list of floating-point numbers.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords)
     */
    coords: string;
    /**
     * The **\`download\`** property of the HTMLAreaElement interface is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download)
     */
    download: string;
    /** @deprecated */
    noHref: boolean;
    /**
     * The **\`ping\`** property of the HTMLAreaElement interface is a space-separated list of URLs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping)
     */
    ping: string;
    /**
     * The **\`HTMLAreaElement.referrerPolicy\`** property reflect the HTML \`referrerpolicy\` attribute of the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy)
     */
    referrerPolicy: string;
    /**
     * The **\`HTMLAreaElement.rel\`** property reflects the \`rel\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel)
     */
    rel: string;
    /**
     * The **\`HTMLAreaElement.relList\`** read-only property reflects the \`rel\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList)
     */
    get relList(): DOMTokenList;
    set relList(value: string);
    /**
     * The **\`shape\`** property of the HTMLAreaElement interface specifies the shape of an image map area.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape)
     */
    shape: string;
    /**
     * The **\`target\`** property of the HTMLAreaElement interface is a string that indicates where to display the linked resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target)
     */
    target: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLAreaElement: {
    prototype: HTMLAreaElement;
    new(): HTMLAreaElement;
};

/**
 * The **\`HTMLAudioElement\`** interface provides access to the properties of audio elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement)
 */
interface HTMLAudioElement extends HTMLMediaElement {
    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLAudioElement: {
    prototype: HTMLAudioElement;
    new(): HTMLAudioElement;
};

/**
 * The **\`HTMLBRElement\`** interface represents an HTML line break element (br).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement)
 */
interface HTMLBRElement extends HTMLElement {
    /** @deprecated */
    clear: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLBRElement: {
    prototype: HTMLBRElement;
    new(): HTMLBRElement;
};

/**
 * The **\`HTMLBaseElement\`** interface contains the base URI for a document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement)
 */
interface HTMLBaseElement extends HTMLElement {
    /**
     * The **\`href\`** property of the HTMLBaseElement interface contains a string that is the URL to use as the base for relative URLs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href)
     */
    href: string;
    /**
     * The \`target\` property of the HTMLBaseElement interface is a string that represents the default target tab to show the resulting output for hyperlinks and form elements.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target)
     */
    target: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLBaseElement: {
    prototype: HTMLBaseElement;
    new(): HTMLBaseElement;
};

interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}

/**
 * The **\`HTMLBodyElement\`** interface provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating body elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement)
 */
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
    /** @deprecated */
    aLink: string;
    /** @deprecated */
    background: string;
    /** @deprecated */
    bgColor: string;
    /** @deprecated */
    link: string;
    /** @deprecated */
    text: string;
    /** @deprecated */
    vLink: string;
    addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLBodyElement: {
    prototype: HTMLBodyElement;
    new(): HTMLBodyElement;
};

/**
 * The **\`HTMLButtonElement\`** interface provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating button elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
 */
interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
    /**
     * The **\`HTMLButtonElement.disabled\`** property indicates whether the control is disabled, meaning that it does not accept any clicks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled)
     */
    disabled: boolean;
    /**
     * The **\`form\`** read-only property of the HTMLButtonElement interface returns an HTMLFormElement object that owns this button, or \`null\` if this button is not owned by any form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form)
     */
    readonly form: HTMLFormElement | null;
    /**
     * The **\`formAction\`** property of the HTMLButtonElement interface is the URL of the program that is executed on the server when the form that owns this control is submitted.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction)
     */
    formAction: string;
    /**
     * The **\`formEnctype\`** property of the HTMLButtonElement interface is the MIME_type of the content sent to the server when the form is submitted.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype)
     */
    formEnctype: string;
    /**
     * The **\`formMethod\`** property of the HTMLButtonElement interface is the HTTP method used to submit the form if the button element is the control that submits the form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)
     */
    formMethod: string;
    /**
     * The **\`formNoValidate\`** property of the HTMLButtonElement interface is a boolean value indicating if the form will bypass constraint validation when submitted via the button.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)
     */
    formNoValidate: boolean;
    /**
     * The **\`formTarget\`** property of the HTMLButtonElement interface is the tab, window, or iframe where the response of the submitted form is to be displayed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)
     */
    formTarget: string;
    /**
     * The **\`HTMLButtonElement.labels\`** read-only property returns a A NodeList containing the \`<label>\` elements associated with the \`<button>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels)
     */
    readonly labels: NodeListOf<HTMLLabelElement>;
    /**
     * The **\`name\`** property of the HTMLButtonElement interface indicates the name of the button element or the empty string if the element has no name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)
     */
    name: string;
    /**
     * The **\`type\`** property of the HTMLButtonElement interface is a string that indicates the behavior type of the button element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type)
     */
    type: "submit" | "reset" | "button";
    /**
     * The **\`validationMessage\`** read-only property of the HTMLButtonElement interface returns a string representing a localized message that describes the validation constraints that the button control does not satisfy (if any).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage)
     */
    readonly validationMessage: string;
    /**
     * The **\`validity\`** read-only property of the HTMLButtonElement interface returns a ValidityState object that represents the validity states this element is in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity)
     */
    readonly validity: ValidityState;
    /**
     * The **\`value\`** property of the HTMLButtonElement interface represents the value of the button element as a string, or the empty string if no value is set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)
     */
    value: string;
    /**
     * The **\`willValidate\`** read-only property of the HTMLButtonElement interface indicates whether the button element is a candidate for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate)
     */
    readonly willValidate: boolean;
    /**
     * The **\`checkValidity()\`** method of the HTMLButtonElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/checkValidity)
     */
    checkValidity(): boolean;
    /**
     * The **\`reportValidity()\`** method of the HTMLButtonElement interface performs the same validity checking steps as the HTMLButtonElement.checkValidity method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity)
     */
    reportValidity(): boolean;
    /**
     * The **\`setCustomValidity()\`** method of the HTMLButtonElement interface sets the custom validity message for the button element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/setCustomValidity)
     */
    setCustomValidity(error: string): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLButtonElement: {
    prototype: HTMLButtonElement;
    new(): HTMLButtonElement;
};

/**
 * The **\`HTMLCanvasElement\`** interface provides properties and methods for manipulating the layout and presentation of canvas elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement)
 */
interface HTMLCanvasElement extends HTMLElement {
    /**
     * The **\`HTMLCanvasElement.height\`** property is a positive \`integer\` reflecting the \`height\` HTML attribute of the canvas element interpreted in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height)
     */
    height: number;
    /**
     * The **\`HTMLCanvasElement.width\`** property is a positive \`integer\` reflecting the \`width\` HTML attribute of the canvas element interpreted in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width)
     */
    width: number;
    /**
     * The **\`captureStream()\`** method of the HTMLCanvasElement interface returns a MediaStream which includes a CanvasCaptureMediaStreamTrack containing a real-time video capture of the canvas's contents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream)
     */
    captureStream(frameRequestRate?: number): MediaStream;
    /**
     * The **\`HTMLCanvasElement.getContext()\`** method returns a drawing context on the canvas, or \`null\` if the context identifier is not supported, or the canvas has already been set to a different context mode.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext)
     */
    getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
    getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
    getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
    getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
    getContext(contextId: string, options?: any): RenderingContext | null;
    /**
     * The **\`HTMLCanvasElement.toBlob()\`** method creates a Blob object representing the image contained in the canvas.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob)
     */
    toBlob(callback: BlobCallback, type?: string, quality?: number): void;
    /**
     * The **\`HTMLCanvasElement.toDataURL()\`** method returns a data URL containing a representation of the image in the format specified by the \`type\` parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL)
     */
    toDataURL(type?: string, quality?: number): string;
    /**
     * The **\`HTMLCanvasElement.transferControlToOffscreen()\`** method transfers control to an OffscreenCanvas object, either on the main thread or on a worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen)
     */
    transferControlToOffscreen(): OffscreenCanvas;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLCanvasElement: {
    prototype: HTMLCanvasElement;
    new(): HTMLCanvasElement;
};

/**
 * The **\`HTMLCollection\`** interface represents a generic collection (array-like object similar to Functions/arguments) of elements (in document order) and offers methods and properties for selecting from the list.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection)
 */
interface HTMLCollectionBase {
    /**
     * The **\`HTMLCollection.length\`** property returns the number of items in a HTMLCollection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length)
     */
    readonly length: number;
    /**
     * The HTMLCollection method \`item()\` returns the element located at the specified offset into the collection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item)
     */
    item(index: number): Element | null;
    [index: number]: Element;
}

interface HTMLCollection extends HTMLCollectionBase {
    /**
     * The **\`namedItem()\`** method of the HTMLCollection interface returns the first Element in the collection whose \`id\` or \`name\` attribute match the specified name, or \`null\` if no element matches.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem)
     */
    namedItem(name: string): Element | null;
}

declare var HTMLCollection: {
    prototype: HTMLCollection;
    new(): HTMLCollection;
};

interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
    item(index: number): T | null;
    namedItem(name: string): T | null;
    [index: number]: T;
}

/**
 * The **\`HTMLDListElement\`** interface provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (dl) elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement)
 */
interface HTMLDListElement extends HTMLElement {
    /** @deprecated */
    compact: boolean;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLDListElement: {
    prototype: HTMLDListElement;
    new(): HTMLDListElement;
};

/**
 * The **\`HTMLDataElement\`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating data elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement)
 */
interface HTMLDataElement extends HTMLElement {
    /**
     * The **\`value\`** property of the HTMLDataElement interface returns a string reflecting the \`value\` HTML attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement/value)
     */
    value: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLDataElement: {
    prototype: HTMLDataElement;
    new(): HTMLDataElement;
};

/**
 * The **\`HTMLDataListElement\`** interface provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate datalist elements and their content.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement)
 */
interface HTMLDataListElement extends HTMLElement {
    /**
     * The **\`options\`** read-only property of the HTMLDataListElement interface returns an HTMLCollection of HTMLOptionElement elements contained in a datalist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options)
     */
    readonly options: HTMLCollectionOf<HTMLOptionElement>;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLDataListElement: {
    prototype: HTMLDataListElement;
    new(): HTMLDataListElement;
};

/**
 * The **\`HTMLDetailsElement\`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating details elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement)
 */
interface HTMLDetailsElement extends HTMLElement {
    /**
     * The **\`name\`** property of the HTMLDetailsElement interface reflects the \`name\` attribute of details elements.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/name)
     */
    name: string;
    /**
     * The **\`open\`** property of the \`open\` HTML attribute, indicating whether the details's contents (not counting the summary) is to be shown to the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open)
     */
    open: boolean;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLDetailsElement: {
    prototype: HTMLDetailsElement;
    new(): HTMLDetailsElement;
};

/**
 * The **\`HTMLDialogElement\`** interface provides methods to manipulate dialog elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement)
 */
interface HTMLDialogElement extends HTMLElement {
    /**
     * The **\`open\`** property of the \`open\` HTML attribute, indicating whether the dialog is available for interaction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open)
     */
    open: boolean;
    /**
     * The **\`returnValue\`** property of the HTMLDialogElement interface is a string representing the return value for a dialog element when it's closed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue)
     */
    returnValue: string;
    /**
     * The **\`close()\`** method of the HTMLDialogElement interface closes the dialog.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close)
     */
    close(returnValue?: string): void;
    /**
     * The **\`requestClose()\`** method of the HTMLDialogElement interface requests to close the dialog.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/requestClose)
     */
    requestClose(returnValue?: string): void;
    /**
     * The **\`show()\`** method of the HTMLDialogElement interface displays the dialog modelessly, i.e., still allowing interaction with content outside of the dialog.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show)
     */
    show(): void;
    /**
     * The **\`showModal()\`** method of the of any other dialogs that might be present.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal)
     */
    showModal(): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLDialogElement: {
    prototype: HTMLDialogElement;
    new(): HTMLDialogElement;
};

/** @deprecated */
interface HTMLDirectoryElement extends HTMLElement {
    /** @deprecated */
    compact: boolean;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/** @deprecated */
declare var HTMLDirectoryElement: {
    prototype: HTMLDirectoryElement;
    new(): HTMLDirectoryElement;
};

/**
 * The **\`HTMLDivElement\`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating div elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement)
 */
interface HTMLDivElement extends HTMLElement {
    /** @deprecated */
    align: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLDivElement: {
    prototype: HTMLDivElement;
    new(): HTMLDivElement;
};

interface HTMLDocument extends Document {
    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLDocument: {
    prototype: HTMLDocument;
    new(): HTMLDocument;
};

interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}

/**
 * The **\`HTMLElement\`** interface represents any HTML element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
 */
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
    /**
     * The **\`HTMLElement.accessKey\`** property sets the keystroke which a user can press to jump to a given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey)
     */
    accessKey: string;
    /**
     * The **\`HTMLElement.accessKeyLabel\`** read-only property returns a string containing the element's browser-assigned access key (if any); otherwise it returns an empty string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel)
     */
    readonly accessKeyLabel: string;
    /**
     * The **\`autocapitalize\`** property of the HTMLElement interface represents the element's capitalization behavior for user input.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocapitalize)
     */
    autocapitalize: string;
    /**
     * The **\`autocorrect\`** property of the HTMLElement interface controls whether or not autocorrection of editable text is enabled for spelling and/or punctuation errors.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autocorrect)
     */
    autocorrect: boolean;
    /**
     * The **\`HTMLElement.dir\`** property indicates the text writing directionality of the content of the current element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir)
     */
    dir: string;
    /**
     * The **\`draggable\`** property of the HTMLElement interface gets and sets a Boolean primitive indicating if the element is draggable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable)
     */
    draggable: boolean;
    /**
     * The HTMLElement property **\`hidden\`** reflects the value of the element's \`hidden\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden)
     */
    hidden: boolean;
    /**
     * The HTMLElement property **\`inert\`** reflects the value of the element's \`inert\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert)
     */
    inert: boolean;
    /**
     * The **\`innerText\`** property of the HTMLElement interface represents the rendered text content of a node and its descendants.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText)
     */
    innerText: string;
    /**
     * The **\`lang\`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)
     */
    lang: string;
    /**
     * The **\`offsetHeight\`** read-only property of the HTMLElement interface returns the height of an element, including vertical padding and borders, as an integer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight)
     */
    readonly offsetHeight: number;
    /**
     * The **\`offsetLeft\`** read-only property of the HTMLElement interface returns the number of pixels that the _upper left corner_ of the current element is offset to the left within the HTMLElement.offsetParent node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft)
     */
    readonly offsetLeft: number;
    /**
     * The **\`HTMLElement.offsetParent\`** read-only property returns a reference to the element which is the closest (nearest in the containment hierarchy) positioned ancestor element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent)
     */
    readonly offsetParent: Element | null;
    /**
     * The **\`offsetTop\`** read-only property of the HTMLElement interface returns the distance from the outer border of the current element (including its margin) to the top padding edge of the HTMLelement.offsetParent, the _closest positioned_ ancestor element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop)
     */
    readonly offsetTop: number;
    /**
     * The **\`offsetWidth\`** read-only property of the HTMLElement interface returns the layout width of an element as an integer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth)
     */
    readonly offsetWidth: number;
    /**
     * The **\`outerText\`** property of the HTMLElement interface returns the same value as HTMLElement.innerText.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText)
     */
    outerText: string;
    /**
     * The **\`popover\`** property of the HTMLElement interface gets and sets an element's popover state via JavaScript (\`'auto'\`, \`'hint'\`, or \`'manual'\`), and can be used for feature detection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover)
     */
    popover: string | null;
    /**
     * The **\`spellcheck\`** property of the HTMLElement interface represents a boolean value that controls the spell-checking hint.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck)
     */
    spellcheck: boolean;
    /**
     * The **\`HTMLElement.title\`** property represents the title of the element: the text usually displayed in a 'tooltip' popup when the mouse is over the node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title)
     */
    title: string;
    /**
     * The **\`translate\`** property of the HTMLElement interface indicates whether an element's attribute values and the values of its Text node children are to be translated when the page is localized, or whether to leave them unchanged.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate)
     */
    translate: boolean;
    /**
     * The **\`writingSuggestions\`** property of the HTMLElement interface is a string indicating if browser-provided writing suggestions should be enabled under the scope of the element or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/writingSuggestions)
     */
    writingSuggestions: string;
    /**
     * The **\`HTMLElement.attachInternals()\`** method returns an ElementInternals object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals)
     */
    attachInternals(): ElementInternals;
    /**
     * The **\`HTMLElement.click()\`** method simulates a mouse click on an element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click)
     */
    click(): void;
    /**
     * The **\`hidePopover()\`** method of the HTMLElement interface hides a popover element (i.e., one that has a valid \`popover\` attribute) by removing it from the top layer and styling it with \`display: none\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover)
     */
    hidePopover(): void;
    /**
     * The **\`showPopover()\`** method of the HTMLElement interface shows a Popover_API element (i.e., one that has a valid \`popover\` attribute) by adding it to the top layer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover)
     */
    showPopover(): void;
    /**
     * The **\`togglePopover()\`** method of the HTMLElement interface toggles a Popover_API element (i.e., one that has a valid \`popover\` attribute) between the hidden and showing states.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover)
     */
    togglePopover(options?: boolean): boolean;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLElement: {
    prototype: HTMLElement;
    new(): HTMLElement;
};

/**
 * The **\`HTMLEmbedElement\`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating embed elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement)
 */
interface HTMLEmbedElement extends HTMLElement {
    /** @deprecated */
    align: string;
    /**
     * The **\`height\`** property of the HTMLEmbedElement interface returns a string that reflects the \`height\` attribute of the embed element, indicating the displayed height of the resource in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/height)
     */
    height: string;
    /** @deprecated */
    name: string;
    /**
     * The **\`src\`** property of the HTMLEmbedElement interface returns a string that indicates the URL of the resource being embedded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/src)
     */
    src: string;
    /**
     * The **\`type\`** property of the HTMLEmbedElement interface returns a string that reflects the \`type\` attribute of the embed element, indicating the MIME type of the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/type)
     */
    type: string;
    /**
     * The **\`width\`** property of the HTMLEmbedElement interface returns a string that reflects the \`width\` attribute of the embed element, indicating the displayed width of the resource in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width)
     */
    width: string;
    /**
     * The **\`getSVGDocument()\`** method of the HTMLEmbedElement interface returns the Document object of the embedded SVG.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/getSVGDocument)
     */
    getSVGDocument(): Document | null;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLEmbedElement: {
    prototype: HTMLEmbedElement;
    new(): HTMLEmbedElement;
};

/**
 * The **\`HTMLFieldSetElement\`** interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of fieldset elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement)
 */
interface HTMLFieldSetElement extends HTMLElement {
    /**
     * The **\`disabled\`** property of the HTMLFieldSetElement interface is a boolean value that reflects the fieldset element's \`disabled\` attribute, which indicates whether the control is disabled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled)
     */
    disabled: boolean;
    /**
     * The **\`elements\`** read-only property of the HTMLFieldSetElement interface returns an HTMLCollection object containing all form control elements (button, fieldset, input, object, output, select, and textarea) that are descendants of this field set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements)
     */
    readonly elements: HTMLCollection;
    /**
     * The **\`form\`** read-only property of the HTMLFieldSetElement interface returns an HTMLFormElement object that owns this fieldset, or \`null\` if this fieldset is not owned by any form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form)
     */
    readonly form: HTMLFormElement | null;
    /**
     * The **\`name\`** property of the HTMLFieldSetElement interface indicates the name of the fieldset element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name)
     */
    name: string;
    /**
     * The **\`type\`** read-only property of the HTMLFieldSetElement interface returns the string \`'fieldset'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type)
     */
    readonly type: string;
    /**
     * The **\`validationMessage\`** read-only property of the HTMLFieldSetElement interface returns a string representing a localized message that describes the validation constraints that the fieldset control does not satisfy (if any).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage)
     */
    readonly validationMessage: string;
    /**
     * The **\`validity\`** read-only property of the HTMLFieldSetElement interface returns a ValidityState object that represents the validity states this element is in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity)
     */
    readonly validity: ValidityState;
    /**
     * The **\`willValidate\`** read-only property of the HTMLFieldSetElement interface returns \`false\`, because fieldset elements are not candidates for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate)
     */
    readonly willValidate: boolean;
    /**
     * The **\`checkValidity()\`** method of the HTMLFieldSetElement interface checks if the element is valid, but always returns true because fieldset elements are never candidates for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/checkValidity)
     */
    checkValidity(): boolean;
    /**
     * The **\`reportValidity()\`** method of the HTMLFieldSetElement interface performs the same validity checking steps as the HTMLFieldSetElement.checkValidity method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity)
     */
    reportValidity(): boolean;
    /**
     * The **\`setCustomValidity()\`** method of the HTMLFieldSetElement interface sets the custom validity message for the fieldset element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/setCustomValidity)
     */
    setCustomValidity(error: string): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLFieldSetElement: {
    prototype: HTMLFieldSetElement;
    new(): HTMLFieldSetElement;
};

/**
 * Implements the document object model (DOM) representation of the font element.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement)
 */
interface HTMLFontElement extends HTMLElement {
    /**
     * The obsolete **\`HTMLFontElement.color\`** property is a string that reflects the \`color\` HTML attribute, containing either a named color or a color specified in the hexadecimal #RRGGBB format.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color)
     */
    color: string;
    /**
     * The obsolete **\`HTMLFontElement.face\`** property is a string that reflects the \`face\` HTML attribute, containing a comma-separated list of one or more font names.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face)
     */
    face: string;
    /**
     * The obsolete **\`HTMLFontElement.size\`** property is a string that reflects the \`size\` HTML attribute.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/size)
     */
    size: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/** @deprecated */
declare var HTMLFontElement: {
    prototype: HTMLFontElement;
    new(): HTMLFontElement;
};

/**
 * The **\`HTMLFormControlsCollection\`** interface represents a _collection_ of HTML _form control elements_, returned by the HTMLFormElement interface's HTMLFormElement.elements property.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection)
 */
interface HTMLFormControlsCollection extends HTMLCollectionBase {
    /**
     * The **\`HTMLFormControlsCollection.namedItem()\`** method returns the RadioNodeList or the Element in the collection whose \`name\` or \`id\` match the specified name, or \`null\` if no node matches.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection/namedItem)
     */
    namedItem(name: string): RadioNodeList | Element | null;
}

declare var HTMLFormControlsCollection: {
    prototype: HTMLFormControlsCollection;
    new(): HTMLFormControlsCollection;
};

/**
 * The **\`HTMLFormElement\`** interface represents a form element in the DOM.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement)
 */
interface HTMLFormElement extends HTMLElement {
    /**
     * The **\`HTMLFormElement.acceptCharset\`** property represents the character encoding for the given form element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset)
     */
    acceptCharset: string;
    /**
     * The **\`HTMLFormElement.action\`** property represents the action of the form element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action)
     */
    action: string;
    /**
     * The **\`autocomplete\`** property of the HTMLFormElement interface indicates whether the value of the form's controls can be automatically completed by the browser.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)
     */
    autocomplete: AutoFillBase;
    /**
     * The HTMLFormElement property **\`elements\`** returns an the form element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements)
     */
    readonly elements: HTMLFormControlsCollection;
    /**
     * The **\`HTMLFormElement.encoding\`** property is an alternative name for the HTMLFormElement.enctype element on the DOM HTMLFormElement object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding)
     */
    encoding: string;
    /**
     * The **\`HTMLFormElement.enctype\`** property is the MIME_type of content that is used to submit the form to the server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype)
     */
    enctype: string;
    /**
     * The **\`HTMLFormElement.length\`** read-only property returns the number of controls in the form element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length)
     */
    readonly length: number;
    /**
     * The **\`HTMLFormElement.method\`** property represents the Unless explicitly specified, the default method is 'get'.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method)
     */
    method: string;
    /**
     * The **\`HTMLFormElement.name\`** property represents the name of the current form element as a string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)
     */
    name: string;
    /**
     * The **\`noValidate\`** property of the HTMLFormElement interface is a boolean value indicating if the form will bypass constraint validation when submitted.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)
     */
    noValidate: boolean;
    /**
     * The **\`rel\`** property of the HTMLFormElement interface reflects the \`rel\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/rel)
     */
    rel: string;
    /**
     * The **\`relList\`** read-only property of the HTMLFormElement interface reflects the \`rel\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/relList)
     */
    get relList(): DOMTokenList;
    set relList(value: string);
    /**
     * The **\`target\`** property of the HTMLFormElement interface represents the target of the form's action (i.e., the frame in which to render its output).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)
     */
    target: string;
    /**
     * The **\`checkValidity()\`** method of the HTMLFormElement interface returns a boolean value which indicates if all associated controls meet any constraint validation rules applied to them.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)
     */
    checkValidity(): boolean;
    /**
     * The **\`reportValidity()\`** method of the HTMLFormElement interface performs the same validity checking steps as the HTMLFormElement.checkValidity method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity)
     */
    reportValidity(): boolean;
    /**
     * The HTMLFormElement method **\`requestSubmit()\`** requests that the form be submitted using a specific submit button.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit)
     */
    requestSubmit(submitter?: HTMLElement | null): void;
    /**
     * The **\`HTMLFormElement.reset()\`** method restores a form element's default values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset)
     */
    reset(): void;
    /**
     * The **\`HTMLFormElement.submit()\`** method submits a given This method is similar, but not identical to, activating a form's submit - No HTMLFormElement/submit_event event is raised.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit)
     */
    submit(): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
    [index: number]: Element;
    [name: string]: any;
}

declare var HTMLFormElement: {
    prototype: HTMLFormElement;
    new(): HTMLFormElement;
};

/** @deprecated */
interface HTMLFrameElement extends HTMLElement {
    /** @deprecated */
    readonly contentDocument: Document | null;
    /** @deprecated */
    readonly contentWindow: WindowProxy | null;
    /** @deprecated */
    frameBorder: string;
    /** @deprecated */
    longDesc: string;
    /** @deprecated */
    marginHeight: string;
    /** @deprecated */
    marginWidth: string;
    /** @deprecated */
    name: string;
    /** @deprecated */
    noResize: boolean;
    /** @deprecated */
    scrolling: string;
    /** @deprecated */
    src: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/** @deprecated */
declare var HTMLFrameElement: {
    prototype: HTMLFrameElement;
    new(): HTMLFrameElement;
};

interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}

/**
 * The **\`HTMLFrameSetElement\`** interface provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating frameset elements.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameSetElement)
 */
interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
    /** @deprecated */
    cols: string;
    /** @deprecated */
    rows: string;
    addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/** @deprecated */
declare var HTMLFrameSetElement: {
    prototype: HTMLFrameSetElement;
    new(): HTMLFrameSetElement;
};

/**
 * The **\`HTMLHRElement\`** interface provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating hr elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHRElement)
 */
interface HTMLHRElement extends HTMLElement {
    /** @deprecated */
    align: string;
    /** @deprecated */
    color: string;
    /** @deprecated */
    noShade: boolean;
    /** @deprecated */
    size: string;
    /** @deprecated */
    width: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLHRElement: {
    prototype: HTMLHRElement;
    new(): HTMLHRElement;
};

/**
 * The **\`HTMLHeadElement\`** interface contains the descriptive information, or metadata, for a document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadElement)
 */
interface HTMLHeadElement extends HTMLElement {
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLHeadElement: {
    prototype: HTMLHeadElement;
    new(): HTMLHeadElement;
};

/**
 * The **\`HTMLHeadingElement\`** interface represents the different heading elements, \`<h1>\` through \`<h6>\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement)
 */
interface HTMLHeadingElement extends HTMLElement {
    /** @deprecated */
    align: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLHeadingElement: {
    prototype: HTMLHeadingElement;
    new(): HTMLHeadingElement;
};

/**
 * The **\`HTMLHtmlElement\`** interface serves as the root node for a given HTML document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement)
 */
interface HTMLHtmlElement extends HTMLElement {
    /**
     * Returns version information about the document type definition (DTD) of a document.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement/version)
     */
    version: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLHtmlElement: {
    prototype: HTMLHtmlElement;
    new(): HTMLHtmlElement;
};

interface HTMLHyperlinkElementUtils {
    /**
     * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
     *
     * Can be set, to change the URL's fragment (ignores leading "#").
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash)
     */
    hash: string;
    /**
     * Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
     *
     * Can be set, to change the URL's host and port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host)
     */
    host: string;
    /**
     * Returns the hyperlink's URL's host.
     *
     * Can be set, to change the URL's host.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname)
     */
    hostname: string;
    /**
     * Returns the hyperlink's URL.
     *
     * Can be set, to change the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href)
     */
    href: string;
    toString(): string;
    /**
     * Returns the hyperlink's URL's origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin)
     */
    readonly origin: string;
    /**
     * Returns the hyperlink's URL's password.
     *
     * Can be set, to change the URL's password.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password)
     */
    password: string;
    /**
     * Returns the hyperlink's URL's path.
     *
     * Can be set, to change the URL's path.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname)
     */
    pathname: string;
    /**
     * Returns the hyperlink's URL's port.
     *
     * Can be set, to change the URL's port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port)
     */
    port: string;
    /**
     * Returns the hyperlink's URL's scheme.
     *
     * Can be set, to change the URL's scheme.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol)
     */
    protocol: string;
    /**
     * Returns the hyperlink's URL's query (includes leading "?" if non-empty).
     *
     * Can be set, to change the URL's query (ignores leading "?").
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search)
     */
    search: string;
    /**
     * Returns the hyperlink's URL's username.
     *
     * Can be set, to change the URL's username.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username)
     */
    username: string;
}

/**
 * The **\`HTMLIFrameElement\`** interface provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement)
 */
interface HTMLIFrameElement extends HTMLElement {
    /** @deprecated */
    align: string;
    /**
     * The **\`allow\`** property of the HTMLIFrameElement interface indicates the Permissions Policy specified for this \`<iframe>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allow)
     */
    allow: string;
    /**
     * The **\`allowFullscreen\`** property of the HTMLIFrameElement interface is a boolean value that reflects the \`allowfullscreen\` attribute of the iframe element, indicating whether to allow the iframe's contents to use Element.requestFullscreen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen)
     */
    allowFullscreen: boolean;
    /**
     * If the iframe and the iframe's parent document are Same Origin, returns a \`Document\` (that is, the active document in the inline frame's nested browsing context), else returns \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument)
     */
    readonly contentDocument: Document | null;
    /**
     * The **\`contentWindow\`** property returns the Window object of an HTMLIFrameElement.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow)
     */
    readonly contentWindow: WindowProxy | null;
    /** @deprecated */
    frameBorder: string;
    /**
     * The **\`height\`** property of the HTMLIFrameElement interface returns a string that reflects the \`height\` attribute of the iframe element, indicating the height of the frame in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
     */
    height: string;
    /**
     * The **\`loading\`** property of the HTMLIFrameElement interface is a string that provides a hint to the user agent indicating whether the iframe should be loaded immediately on page load, or only when it is needed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading)
     */
    loading: "eager" | "lazy";
    /** @deprecated */
    longDesc: string;
    /** @deprecated */
    marginHeight: string;
    /** @deprecated */
    marginWidth: string;
    /**
     * The **\`name\`** property of the HTMLIFrameElement interface is a string value that reflects the \`name\` attribute of the iframe element, indicating the specific name of the \`<iframe>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name)
     */
    name: string;
    /**
     * The **\`HTMLIFrameElement.referrerPolicy\`** property reflects the HTML \`referrerpolicy\` attribute of the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy)
     */
    referrerPolicy: ReferrerPolicy;
    /**
     * The **\`sandbox\`** read-only property of the HTMLIFrameElement interface returns a DOMTokenList indicating extra restrictions on the behavior of the nested content.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/sandbox)
     */
    get sandbox(): DOMTokenList;
    set sandbox(value: string);
    /** @deprecated */
    scrolling: string;
    /**
     * The **\`HTMLIFrameElement.src\`** A string that reflects the \`src\` HTML attribute, containing the address of the content to be embedded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src)
     */
    src: string;
    /**
     * The **\`srcdoc\`** property of the HTMLIFrameElement specifies the content of the page.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc)
     */
    srcdoc: string;
    /**
     * The **\`width\`** property of the HTMLIFrameElement interface returns a string that reflects the \`width\` attribute of the iframe element, indicating the width of the frame in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width)
     */
    width: string;
    /**
     * The **\`getSVGDocument()\`** method of the HTMLIFrameElement interface returns the Document object of the embedded SVG.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/getSVGDocument)
     */
    getSVGDocument(): Document | null;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLIFrameElement: {
    prototype: HTMLIFrameElement;
    new(): HTMLIFrameElement;
};

/**
 * The **\`HTMLImageElement\`** interface represents an HTML img element, providing the properties and methods used to manipulate image elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)
 */
interface HTMLImageElement extends HTMLElement {
    /**
     * The _obsolete_ **\`align\`** property of the HTMLImageElement interface is a string which indicates how to position the image relative to its container.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align)
     */
    align: string;
    /**
     * The HTMLImageElement property **\`alt\`** provides fallback (alternate) text to display when the image specified by the img element is not loaded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt)
     */
    alt: string;
    /**
     * The obsolete HTMLImageElement property **\`border\`** specifies the number of pixels thick the border surrounding the image should be.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border)
     */
    border: string;
    /**
     * The read-only HTMLImageElement interface's **\`complete\`** attribute is a Boolean value which indicates whether or not the image has completely loaded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete)
     */
    readonly complete: boolean;
    /**
     * The HTMLImageElement interface's **\`crossOrigin\`** attribute is a string which specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the image.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin)
     */
    crossOrigin: string | null;
    /**
     * The read-only HTMLImageElement property **\`currentSrc\`** indicates the URL of the image which is currently presented in the img element it represents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc)
     */
    readonly currentSrc: string;
    /**
     * The **\`decoding\`** property of the HTMLImageElement interface provides a hint to the browser as to how it should decode the image.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding)
     */
    decoding: "async" | "sync" | "auto";
    /**
     * The **\`fetchPriority\`** property of the HTMLImageElement interface represents a hint to the browser indicating how it should prioritize fetching a particular image relative to other images.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority)
     */
    fetchPriority: "high" | "low" | "auto";
    /**
     * The **\`height\`** property of the drawn, in CSS pixel if the image is being drawn or rendered to any visual medium such as the screen or a printer; otherwise, it's the natural, pixel density corrected height of the image.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height)
     */
    height: number;
    /**
     * The _obsolete_ **\`hspace\`** property of the space to leave empty on the left and right sides of the img element when laying out the page.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace)
     */
    hspace: number;
    /**
     * The HTMLImageElement property **\`isMap\`** is a Boolean value which indicates that the image is to be used by a server-side image map.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap)
     */
    isMap: boolean;
    /**
     * The HTMLImageElement property **\`loading\`** is a string whose value provides a hint to the user agent on how to handle the loading of the image which is currently outside the window's visual viewport.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading)
     */
    loading: "eager" | "lazy";
    /**
     * The _deprecated_ property **\`longDesc\`** on the HTMLImageElement interface specifies the URL of a text or HTML file which contains a long-form description of the image.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc)
     */
    longDesc: string;
    /** @deprecated */
    lowsrc: string;
    /**
     * The HTMLImageElement interface's _deprecated_ **\`name\`** property specifies a name for the element.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name)
     */
    name: string;
    /**
     * The HTMLImageElement interface's **\`naturalHeight\`** property is a read-only value which returns the intrinsic (natural), density-corrected height of the image in This is the height the image is if drawn with nothing constraining its height; if you don't specify a height for the image, or place the image inside a container that either limits or expressly specifies the image height, it will be rendered this tall.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight)
     */
    readonly naturalHeight: number;
    /**
     * The HTMLImageElement interface's read-only **\`naturalWidth\`** property returns the intrinsic (natural), density-corrected width of the image in CSS pixel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth)
     */
    readonly naturalWidth: number;
    /**
     * The **\`HTMLImageElement.referrerPolicy\`** property reflects the HTML \`referrerpolicy\` attribute of the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy)
     */
    referrerPolicy: string;
    /**
     * The HTMLImageElement property **\`sizes\`** allows you to specify the layout width of the image for each of a list of media conditions.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes)
     */
    sizes: string;
    /**
     * The HTMLImageElement property **\`src\`**, which reflects the HTML \`src\` attribute, specifies the image to display in the img element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src)
     */
    src: string;
    /**
     * The HTMLImageElement property **\`srcset\`** is a string which identifies one or more **image candidate strings**, separated using commas (\`,\`) each specifying image resources to use under given circumstances.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset)
     */
    srcset: string;
    /**
     * The **\`useMap\`** property on the providing the name of the client-side image map to apply to the image.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap)
     */
    useMap: string;
    /**
     * The _obsolete_ **\`vspace\`** property of the to leave empty on the top and bottom of the img element when laying out the page.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace)
     */
    vspace: number;
    /**
     * The **\`width\`** property of the drawn in CSS pixel if it's being drawn or rendered to any visual medium such as a screen or printer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width)
     */
    width: number;
    /**
     * The read-only HTMLImageElement property **\`x\`** indicates the x-coordinate of the origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x)
     */
    readonly x: number;
    /**
     * The read-only HTMLImageElement property **\`y\`** indicates the y-coordinate of the origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y)
     */
    readonly y: number;
    /**
     * The **\`decode()\`** method of the HTMLImageElement interface returns a it to the DOM.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode)
     */
    decode(): Promise<void>;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLImageElement: {
    prototype: HTMLImageElement;
    new(): HTMLImageElement;
};

/**
 * The **\`HTMLInputElement\`** interface provides special properties and methods for manipulating the options, layout, and presentation of input elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
 */
interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
    /**
     * The **\`accept\`** property of the HTMLInputElement interface reflects the input element's \`accept\` attribute, generally a comma-separated list of unique file type specifiers providing a hint for the expected file type for an \`<input>\` of type \`file\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/accept)
     */
    accept: string;
    /** @deprecated */
    align: string;
    /**
     * The **\`alt\`** property of the HTMLInputElement interface defines the textual label for the button for users and user agents who cannot use the image.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/alt)
     */
    alt: string;
    /**
     * The **\`autocomplete\`** property of the HTMLInputElement interface indicates whether the value of the control can be automatically completed by the browser.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
     */
    autocomplete: AutoFill;
    /**
     * The **\`capture\`** property of the HTMLInputElement interface reflects the input element's \`capture\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/capture)
     */
    capture: string;
    /**
     * The **\`checked\`** property of the HTMLInputElement interface specifies the current checkedness of the element; that is, whether the form control is checked or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked)
     */
    checked: boolean;
    /**
     * The **\`defaultChecked\`** property of the HTMLInputElement interface specifies the default checkedness state of the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultChecked)
     */
    defaultChecked: boolean;
    /**
     * The **\`defaultValue\`** property of the HTMLInputElement interface indicates the original (or default) value of the input element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)
     */
    defaultValue: string;
    /**
     * The **\`dirName\`** property of the HTMLInputElement interface is the directionality of the element and enables the submission of that value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/dirName)
     */
    dirName: string;
    /**
     * The **\`HTMLInputElement.disabled\`** property is a boolean value that reflects the \`disabled\` HTML attribute, which indicates whether the control is disabled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled)
     */
    disabled: boolean;
    /**
     * The **\`HTMLInputElement.files\`** property allows you to access the FileList selected with the \`<input type='file'>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files)
     */
    files: FileList | null;
    /**
     * The **\`form\`** read-only property of the HTMLInputElement interface returns an HTMLFormElement object that owns this input, or \`null\` if this input is not owned by any form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/form)
     */
    readonly form: HTMLFormElement | null;
    /**
     * The **\`formAction\`** property of the HTMLInputElement interface is the URL of the program that is executed on the server when the form that owns this control is submitted.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction)
     */
    formAction: string;
    /**
     * The **\`formEnctype\`** property of the HTMLInputElement interface is the MIME_type of the content sent to the server when the \`<input>\` with the \`formEnctype\` is the method of form submission.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype)
     */
    formEnctype: string;
    /**
     * The **\`formMethod\`** property of the HTMLInputElement interface is the HTTP method used to submit the form if the input element is the control that submits the form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)
     */
    formMethod: string;
    /**
     * The **\`formNoValidate\`** property of the HTMLInputElement interface is a boolean value indicating if the form will bypass constraint validation when submitted via the input.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)
     */
    formNoValidate: boolean;
    /**
     * The **\`formTarget\`** property of the HTMLInputElement interface is the tab, window, or iframe where the response of the submitted form is to be displayed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)
     */
    formTarget: string;
    /**
     * The **\`height\`** property of the HTMLInputElement interface specifies the height of a control.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height)
     */
    height: number;
    /**
     * The **\`indeterminate\`** property of the HTMLInputElement interface returns a boolean value that indicates whether the checkbox is in the _indeterminate_ state.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/indeterminate)
     */
    indeterminate: boolean;
    /**
     * The **\`HTMLInputElement.labels\`** read-only property returns a type \`hidden\`, the property returns \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels)
     */
    readonly labels: NodeListOf<HTMLLabelElement> | null;
    /**
     * The **\`list\`** read-only property of the HTMLInputElement interface returns the HTMLDataListElement pointed to by the \`list\` attribute of the element, or \`null\` if the \`list\` attribute is not defined or the \`list\` attribute's value is not associated with any \`<datalist>\` in the same tree.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
     */
    readonly list: HTMLDataListElement | null;
    /**
     * The **\`max\`** property of the HTMLInputElement interface reflects the input element's \`max\` attribute, which generally defines the maximum valid value for a numeric or date-time input.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)
     */
    max: string;
    /**
     * The **\`maxLength\`** property of the HTMLInputElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the input element, and the maximum number of characters allowed for the value to be valid.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
     */
    maxLength: number;
    /**
     * The **\`min\`** property of the HTMLInputElement interface reflects the input element's \`min\` attribute, which generally defines the minimum valid value for a numeric or date-time input.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)
     */
    min: string;
    /**
     * The **\`minLength\`** property of the HTMLInputElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the input element to be valid.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength)
     */
    minLength: number;
    /**
     * The **\`HTMLInputElement.multiple\`** property indicates if an input can have more than one value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple)
     */
    multiple: boolean;
    /**
     * The **\`name\`** property of the HTMLInputElement interface indicates the name of the input element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/name)
     */
    name: string;
    /**
     * The **\`pattern\`** property of the HTMLInputElement interface represents a regular expression a non-null input value should match.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern)
     */
    pattern: string;
    /**
     * The **\`placeholder\`** property of the HTMLInputElement interface represents a hint to the user of what can be entered in the control.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder)
     */
    placeholder: string;
    /**
     * The **\`readOnly\`** property of the HTMLInputElement interface indicates that the user cannot modify the value of the input.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/readOnly)
     */
    readOnly: boolean;
    /**
     * The **\`required\`** property of the HTMLInputElement interface specifies that the user must fill in a value before submitting a form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required)
     */
    required: boolean;
    /**
     * The **\`selectionDirection\`** property of the HTMLInputElement interface is a string that indicates the direction in which the user is selecting the text.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)
     */
    selectionDirection: "forward" | "backward" | "none" | null;
    /**
     * The **\`selectionEnd\`** property of the HTMLInputElement interface is a number that represents the end index of the selected text.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd)
     */
    selectionEnd: number | null;
    /**
     * The **\`selectionStart\`** property of the HTMLInputElement interface is a number that represents the beginning index of the selected text.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart)
     */
    selectionStart: number | null;
    /**
     * The **\`size\`** property of the HTMLInputElement interface defines the number of visible characters displayed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/size)
     */
    size: number;
    /**
     * The **\`src\`** property of the HTMLInputElement interface specifies the source of an image to display as the graphical submit button.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/src)
     */
    src: string;
    /**
     * The **\`step\`** property of the HTMLInputElement interface indicates the step by which numeric or date-time input elements can change.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/step)
     */
    step: string;
    /**
     * The **\`type\`** property of the HTMLInputElement interface indicates the kind of data allowed in the input element, for example a number, a date, or an email.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type)
     */
    type: string;
    /** @deprecated */
    useMap: string;
    /**
     * The **\`validationMessage\`** read-only property of the HTMLInputElement interface returns a string representing a localized message that describes the validation constraints that the input control does not satisfy (if any).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage)
     */
    readonly validationMessage: string;
    /**
     * The **\`validity\`** read-only property of the HTMLInputElement interface returns a ValidityState object that represents the validity states this element is in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
     */
    readonly validity: ValidityState;
    /**
     * The **\`value\`** property of the HTMLInputElement interface represents the current value of the input element as a string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
     */
    value: string;
    /**
     * The **\`valueAsDate\`** property of the HTMLInputElement interface represents the current value of the input element as a Date, or \`null\` if conversion is not possible.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate)
     */
    valueAsDate: Date | null;
    /**
     * The **\`valueAsNumber\`** property of the HTMLInputElement interface represents the current value of the input element as a number or \`NaN\` if converting to a numeric value is not possible.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber)
     */
    valueAsNumber: number;
    /**
     * The read-only **\`webkitEntries\`** property of the HTMLInputElement interface contains an array of file system entries (as objects based on FileSystemEntry) representing files and/or directories selected by the user using an input element of type \`file\`, but only if that selection was made using drag-and-drop: selecting a file in the dialog will leave the property empty.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries)
     */
    readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
    /**
     * The **\`HTMLInputElement.webkitdirectory\`** is a property that reflects the \`webkitdirectory\` HTML attribute and indicates that the input element should let the user select directories instead of files.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory)
     */
    webkitdirectory: boolean;
    /**
     * The **\`width\`** property of the HTMLInputElement interface specifies the width of a control.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width)
     */
    width: number;
    /**
     * The **\`willValidate\`** read-only property of the HTMLInputElement interface indicates whether the input element is a candidate for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate)
     */
    readonly willValidate: boolean;
    /**
     * The **\`checkValidity()\`** method of the HTMLInputElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity)
     */
    checkValidity(): boolean;
    /**
     * The **\`reportValidity()\`** method of the HTMLInputElement interface performs the same validity checking steps as the HTMLInputElement.checkValidity method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity)
     */
    reportValidity(): boolean;
    /**
     * The **\`HTMLInputElement.select()\`** method selects all the text in a textarea element or in an input element that includes a text field.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select)
     */
    select(): void;
    /**
     * The **\`HTMLInputElement.setCustomValidity()\`** method sets a custom validity message for the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity)
     */
    setCustomValidity(error: string): void;
    /**
     * The **\`HTMLInputElement.setRangeText()\`** method replaces a range of text in an input or textarea element with a new string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText)
     */
    setRangeText(replacement: string): void;
    setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
    /**
     * The **\`HTMLInputElement.setSelectionRange()\`** method sets the start and end positions of the current text selection in an input or textarea element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
     */
    setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
    /**
     * The **\`HTMLInputElement.showPicker()\`** method displays the browser picker for an \`input\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker)
     */
    showPicker(): void;
    /**
     * The **\`HTMLInputElement.stepDown()\`** method decrements the value of a numeric type of input element by the value of the \`step\` attribute or up to \`n\` multiples of the step attribute if a number is passed as the parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown)
     */
    stepDown(n?: number): void;
    /**
     * The **\`HTMLInputElement.stepUp()\`** method increments the value of a numeric type of input element by the value of the \`step\` attribute, or the default \`step\` value if the step attribute is not explicitly set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepUp)
     */
    stepUp(n?: number): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLInputElement: {
    prototype: HTMLInputElement;
    new(): HTMLInputElement;
};

/**
 * The **\`HTMLLIElement\`** interface exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement)
 */
interface HTMLLIElement extends HTMLElement {
    /** @deprecated */
    type: string;
    /**
     * The **\`value\`** property of the HTMLLIElement interface indicates the ordinal position of the _list element_ inside a given ol.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement/value)
     */
    value: number;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLLIElement: {
    prototype: HTMLLIElement;
    new(): HTMLLIElement;
};

/**
 * The **\`HTMLLabelElement\`** interface gives access to properties specific to label elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement)
 */
interface HTMLLabelElement extends HTMLElement {
    /**
     * The read-only **\`HTMLLabelElement.control\`** property returns a reference to the control (in the form of an object of type HTMLElement or one of its derivatives) with which the label element is associated, or \`null\` if the label isn't associated with a control.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control)
     */
    readonly control: HTMLElement | null;
    /**
     * The **\`form\`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or \`null\` if this label is not associated with a control owned by a form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
     */
    readonly form: HTMLFormElement | null;
    /**
     * The **\`HTMLLabelElement.htmlFor\`** property reflects the value of the \`for\` content property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/htmlFor)
     */
    htmlFor: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLLabelElement: {
    prototype: HTMLLabelElement;
    new(): HTMLLabelElement;
};

/**
 * The **\`HTMLLegendElement\`** is an interface allowing to access properties of the legend elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement)
 */
interface HTMLLegendElement extends HTMLElement {
    /** @deprecated */
    align: string;
    /**
     * The **\`form\`** read-only property of the HTMLLegendElement interface returns an HTMLFormElement object that owns the HTMLFieldSetElement associated with this legend, or \`null\` if this legend is not associated with a fieldset owned by a form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement/form)
     */
    readonly form: HTMLFormElement | null;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLLegendElement: {
    prototype: HTMLLegendElement;
    new(): HTMLLegendElement;
};

/**
 * The **\`HTMLLinkElement\`** interface represents reference information for external resources and the relationship of those resources to a document and vice versa (corresponds to \`<link>\` element; not to be confused with \`<a>\`, which is represented by \`HTMLAnchorElement\`).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement)
 */
interface HTMLLinkElement extends HTMLElement, LinkStyle {
    /**
     * The **\`as\`** property of the HTMLLinkElement interface returns a string representing the type of content to be preloaded by a link element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as)
     */
    as: string;
    /**
     * The **\`blocking\`** property of the HTMLLinkElement interface is a string indicating that certain operations should be blocked on the fetching of an external resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/blocking)
     */
    get blocking(): DOMTokenList;
    set blocking(value: string);
    /** @deprecated */
    charset: string;
    /**
     * The **\`crossOrigin\`** property of the HTMLLinkElement interface specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin)
     */
    crossOrigin: string | null;
    /**
     * The **\`disabled\`** property of the HTMLLinkElement interface is a boolean value that represents whether the link is disabled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/disabled)
     */
    disabled: boolean;
    /**
     * The **\`fetchPriority\`** property of the HTMLLinkElement interface represents a hint to the browser indicating how it should prioritize fetching a particular resource relative to other resources of the same type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority)
     */
    fetchPriority: "high" | "low" | "auto";
    /**
     * The **\`href\`** property of the HTMLLinkElement interface contains a string that is the URL associated with the link.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href)
     */
    href: string;
    /**
     * The **\`hreflang\`** property of the HTMLLinkElement interface is used to indicate the language and the geographical targeting of a page.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang)
     */
    hreflang: string;
    /**
     * The **\`imageSizes\`** property of the HTMLLinkElement interface indicates the size and conditions for the preloaded images defined by the HTMLLinkElement.imageSrcset property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSizes)
     */
    imageSizes: string;
    /**
     * The **\`imageSrcset\`** property of the HTMLLinkElement interface is a string which identifies one or more comma-separated **image candidate strings**.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/imageSrcset)
     */
    imageSrcset: string;
    /**
     * The **\`integrity\`** property of the HTMLLinkElement interface is a string containing inline metadata that a browser can use to verify that a fetched resource has been delivered without unexpected manipulation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/integrity)
     */
    integrity: string;
    /**
     * The **\`media\`** property of the HTMLLinkElement interface is a string representing a list of one or more media formats to which the resource applies.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/media)
     */
    media: string;
    /**
     * The **\`referrerPolicy\`** property of the HTMLLinkElement interface reflects the HTML \`referrerpolicy\` attribute of the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy)
     */
    referrerPolicy: string;
    /**
     * The **\`rel\`** property of the HTMLLinkElement interface reflects the \`rel\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/rel)
     */
    rel: string;
    /**
     * The **\`relList\`** read-only property of the HTMLLinkElement interface reflects the \`rel\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList)
     */
    get relList(): DOMTokenList;
    set relList(value: string);
    /** @deprecated */
    rev: string;
    /**
     * The **\`sizes\`** read-only property of the HTMLLinkElement interfaces defines the sizes of the icons for visual media contained in the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes)
     */
    get sizes(): DOMTokenList;
    set sizes(value: string);
    /** @deprecated */
    target: string;
    /**
     * The **\`type\`** property of the HTMLLinkElement interface is a string that reflects the MIME type of the linked resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/type)
     */
    type: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLLinkElement: {
    prototype: HTMLLinkElement;
    new(): HTMLLinkElement;
};

/**
 * The **\`HTMLMapElement\`** interface provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement)
 */
interface HTMLMapElement extends HTMLElement {
    /**
     * The **\`areas\`** read-only property of the HTMLMapElement interface returns a collection of area elements associated with the map element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas)
     */
    readonly areas: HTMLCollection;
    /**
     * The **\`name\`** property of the HTMLMapElement represents the unique name \`<map>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/name)
     */
    name: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLMapElement: {
    prototype: HTMLMapElement;
    new(): HTMLMapElement;
};

/**
 * The **\`HTMLMarqueeElement\`** interface provides methods to manipulate marquee elements.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMarqueeElement)
 */
interface HTMLMarqueeElement extends HTMLElement {
    /** @deprecated */
    behavior: string;
    /** @deprecated */
    bgColor: string;
    /** @deprecated */
    direction: string;
    /** @deprecated */
    height: string;
    /** @deprecated */
    hspace: number;
    /** @deprecated */
    loop: number;
    /** @deprecated */
    scrollAmount: number;
    /** @deprecated */
    scrollDelay: number;
    /** @deprecated */
    trueSpeed: boolean;
    /** @deprecated */
    vspace: number;
    /** @deprecated */
    width: string;
    /** @deprecated */
    start(): void;
    /** @deprecated */
    stop(): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/** @deprecated */
declare var HTMLMarqueeElement: {
    prototype: HTMLMarqueeElement;
    new(): HTMLMarqueeElement;
};

interface HTMLMediaElementEventMap extends HTMLElementEventMap {
    "encrypted": MediaEncryptedEvent;
    "waitingforkey": Event;
}

/**
 * The **\`HTMLMediaElement\`** interface adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement)
 */
interface HTMLMediaElement extends HTMLElement {
    /**
     * The **\`HTMLMediaElement.autoplay\`** property reflects the \`autoplay\` HTML attribute, indicating whether playback should automatically begin as soon as enough media is available to do so without interruption.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay)
     */
    autoplay: boolean;
    /**
     * The **\`buffered\`** read-only property of HTMLMediaElement objects returns a new static normalized \`TimeRanges\` object that represents the ranges of the media resource, if any, that the user agent has buffered at the moment the \`buffered\` property is accessed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered)
     */
    readonly buffered: TimeRanges;
    /**
     * The **\`HTMLMediaElement.controls\`** property reflects the \`controls\` HTML attribute, which controls whether user interface controls for playing the media item will be displayed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls)
     */
    controls: boolean;
    /**
     * The **\`HTMLMediaElement.crossOrigin\`** property is the CORS setting for this media element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin)
     */
    crossOrigin: string | null;
    /**
     * The **\`HTMLMediaElement.currentSrc\`** property contains the absolute URL of the chosen media resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc)
     */
    readonly currentSrc: string;
    /**
     * The HTMLMediaElement interface's **\`currentTime\`** property specifies the current playback time in seconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime)
     */
    currentTime: number;
    /**
     * The **\`HTMLMediaElement.defaultMuted\`** property reflects the \`muted\` HTML attribute, which indicates whether the media element's audio output should be muted by default.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted)
     */
    defaultMuted: boolean;
    /**
     * The **\`HTMLMediaElement.defaultPlaybackRate\`** property indicates the default playback rate for the media.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)
     */
    defaultPlaybackRate: number;
    /**
     * The **\`disableRemotePlayback\`** property of the HTMLMediaElement interface determines whether the media element is allowed to have a remote playback UI.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback)
     */
    disableRemotePlayback: boolean;
    /**
     * The _read-only_ HTMLMediaElement property **\`duration\`** indicates the length of the element's media in seconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration)
     */
    readonly duration: number;
    /**
     * The **\`HTMLMediaElement.ended\`** property indicates whether the media element has ended playback.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended)
     */
    readonly ended: boolean;
    /**
     * The **\`HTMLMediaElement.error\`** property is the there has not been an error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error)
     */
    readonly error: MediaError | null;
    /**
     * The **\`HTMLMediaElement.loop\`** property reflects the \`loop\` HTML attribute, which controls whether the media element should start over when it reaches the end.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop)
     */
    loop: boolean;
    /**
     * The read-only **\`HTMLMediaElement.mediaKeys\`** property returns a MediaKeys object, that is a set of keys that the element can use for decryption of media data during playback.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/mediaKeys)
     */
    readonly mediaKeys: MediaKeys | null;
    /**
     * The **\`HTMLMediaElement.muted\`** property indicates whether the media element is muted.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted)
     */
    muted: boolean;
    /**
     * The **\`HTMLMediaElement.networkState\`** property indicates the current state of the fetching of media over the network.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/networkState)
     */
    readonly networkState: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */
    onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waitingforkey_event) */
    onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
    /**
     * The read-only **\`HTMLMediaElement.paused\`** property tells whether the media element is paused.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/paused)
     */
    readonly paused: boolean;
    /**
     * The **\`HTMLMediaElement.playbackRate\`** property sets the rate at which the media is being played back.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate)
     */
    playbackRate: number;
    /**
     * The **\`played\`** read-only property of the HTMLMediaElement interface indicates the time ranges the resource, an audio or video media file, has played.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played)
     */
    readonly played: TimeRanges;
    /**
     * The **\`preload\`** property of the HTMLMediaElement interface is a string that provides a hint to the browser about what the author thinks will lead to the best user experience.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload)
     */
    preload: "none" | "metadata" | "auto" | "";
    /**
     * The **\`HTMLMediaElement.preservesPitch\`** property determines whether or not the browser should adjust the pitch of the audio to compensate for changes to the playback rate made by setting HTMLMediaElement.playbackRate.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch)
     */
    preservesPitch: boolean;
    /**
     * The **\`HTMLMediaElement.readyState\`** property indicates the readiness state of the media.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState)
     */
    readonly readyState: number;
    /**
     * The **\`remote\`** read-only property of the HTMLMediaElement interface returns the RemotePlayback object associated with the media element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote)
     */
    readonly remote: RemotePlayback;
    /**
     * The **\`seekable\`** read-only property of HTMLMediaElement objects returns a new static normalized \`TimeRanges\` object that represents the ranges of the media resource, if any, that the user agent is able to seek to at the time \`seekable\` property is accessed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable)
     */
    readonly seekable: TimeRanges;
    /**
     * The **\`seeking\`** read-only property of the HTMLMediaElement interface is a Boolean indicating whether the resource, the audio or video, is in the process of seeking to a new position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking)
     */
    readonly seeking: boolean;
    /**
     * The **\`sinkId\`** read-only property of the HTMLMediaElement interface returns a string that is the unique ID of the device to be used for playing audio output.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId)
     */
    readonly sinkId: string;
    /**
     * The **\`HTMLMediaElement.src\`** property reflects the value of the HTML media element's \`src\` attribute, which indicates the URL of a media resource to use in the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src)
     */
    src: string;
    /**
     * The **\`srcObject\`** property of the the source of the media associated with the HTMLMediaElement, or \`null\` if not assigned.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject)
     */
    srcObject: MediaProvider | null;
    /**
     * The read-only **\`textTracks\`** property on HTMLMediaElement objects returns a objects representing the media element's text tracks, in the same order as in the list of text tracks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks)
     */
    readonly textTracks: TextTrackList;
    /**
     * The **\`HTMLMediaElement.volume\`** property sets the volume at which the media will be played.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume)
     */
    volume: number;
    /**
     * The **\`addTextTrack()\`** method of the HTMLMediaElement interface creates a new TextTrack object and adds it to the media element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack)
     */
    addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
    /**
     * The HTMLMediaElement method **\`canPlayType()\`** reports how likely it is that the current browser will be able to play media of a given MIME type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
     */
    canPlayType(type: string): CanPlayTypeResult;
    /**
     * The **\`HTMLMediaElement.fastSeek()\`** method quickly seeks the media to the new time with precision tradeoff.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek)
     */
    fastSeek(time: number): void;
    /**
     * The HTMLMediaElement method **\`load()\`** resets the media element to its initial state and begins the process of selecting a media source and loading the media in preparation for playback to begin at the beginning.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load)
     */
    load(): void;
    /**
     * The **\`HTMLMediaElement.pause()\`** method will pause playback of the media, if the media is already in a paused state this method will have no effect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause)
     */
    pause(): void;
    /**
     * The HTMLMediaElement **\`play()\`** method attempts to begin playback of the media.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play)
     */
    play(): Promise<void>;
    /**
     * The **\`setMediaKeys()\`** method of the HTMLMediaElement interface sets the MediaKeys that will be used to decrypt media during playback.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys)
     */
    setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
    /**
     * The **\`setSinkId()\`** method of the HTMLMediaElement interface sets the ID of the audio device to use for output and returns a Promise.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId)
     */
    setSinkId(sinkId: string): Promise<void>;
    readonly NETWORK_EMPTY: 0;
    readonly NETWORK_IDLE: 1;
    readonly NETWORK_LOADING: 2;
    readonly NETWORK_NO_SOURCE: 3;
    readonly HAVE_NOTHING: 0;
    readonly HAVE_METADATA: 1;
    readonly HAVE_CURRENT_DATA: 2;
    readonly HAVE_FUTURE_DATA: 3;
    readonly HAVE_ENOUGH_DATA: 4;
    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLMediaElement: {
    prototype: HTMLMediaElement;
    new(): HTMLMediaElement;
    readonly NETWORK_EMPTY: 0;
    readonly NETWORK_IDLE: 1;
    readonly NETWORK_LOADING: 2;
    readonly NETWORK_NO_SOURCE: 3;
    readonly HAVE_NOTHING: 0;
    readonly HAVE_METADATA: 1;
    readonly HAVE_CURRENT_DATA: 2;
    readonly HAVE_FUTURE_DATA: 3;
    readonly HAVE_ENOUGH_DATA: 4;
};

/**
 * The **\`HTMLMenuElement\`** interface provides additional properties (beyond those inherited from the HTMLElement interface) for manipulating a menu element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement)
 */
interface HTMLMenuElement extends HTMLElement {
    /** @deprecated */
    compact: boolean;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLMenuElement: {
    prototype: HTMLMenuElement;
    new(): HTMLMenuElement;
};

/**
 * The **\`HTMLMetaElement\`** interface contains descriptive metadata about a document provided in HTML as \`<meta>\` elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)
 */
interface HTMLMetaElement extends HTMLElement {
    /**
     * The **\`HTMLMetaElement.content\`** property gets or sets the \`content\` attribute of pragma directives and named meta data in conjunction with HTMLMetaElement.name or HTMLMetaElement.httpEquiv.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/content)
     */
    content: string;
    /**
     * The **\`HTMLMetaElement.httpEquiv\`** property gets or sets the pragma directive or an HTTP response header name for the HTMLMetaElement.content attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/httpEquiv)
     */
    httpEquiv: string;
    /**
     * The **\`HTMLMetaElement.media\`** property enables specifying the media for \`theme-color\` metadata.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/media)
     */
    media: string;
    /**
     * The **\`HTMLMetaElement.name\`** property is used in combination with HTMLMetaElement.content to define the name-value pairs for the metadata of a document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/name)
     */
    name: string;
    /**
     * The **\`HTMLMetaElement.scheme\`** property defines the scheme of the value in the HTMLMetaElement.content attribute.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/scheme)
     */
    scheme: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLMetaElement: {
    prototype: HTMLMetaElement;
    new(): HTMLMetaElement;
};

/**
 * The HTML meter elements expose the **\`HTMLMeterElement\`** interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of meter elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement)
 */
interface HTMLMeterElement extends HTMLElement {
    /**
     * The **\`high\`** property of the HTMLMeterElement interface represents the high boundary of the meter element as a floating-point number.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high)
     */
    high: number;
    /**
     * The **\`HTMLMeterElement.labels\`** read-only property returns a A NodeList containing the \`<label>\` elements associated with the \`<meter>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels)
     */
    readonly labels: NodeListOf<HTMLLabelElement>;
    /**
     * The **\`low\`** property of the HTMLMeterElement interface represents the low boundary of the meter element as a floating-point number.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low)
     */
    low: number;
    /**
     * The **\`max\`** property of the HTMLMeterElement interface represents the maximum value of the meter element as a floating-point number.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max)
     */
    max: number;
    /**
     * The **\`min\`** property of the HTMLMeterElement interface represents the minimum value of the meter element as a floating-point number.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min)
     */
    min: number;
    /**
     * The **\`optimum\`** property of the HTMLMeterElement interface represents the optimum boundary of the meter element as a floating-point number.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum)
     */
    optimum: number;
    /**
     * The **\`value\`** property of the HTMLMeterElement interface represents the current value of the meter element as a floating-point number.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value)
     */
    value: number;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLMeterElement: {
    prototype: HTMLMeterElement;
    new(): HTMLMeterElement;
};

/**
 * The **\`HTMLModElement\`** interface provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is del and ins.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement)
 */
interface HTMLModElement extends HTMLElement {
    /**
     * The **\`cite\`** property of the HTMLModElement interface indicates the URL of the resource explaining the modification.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite)
     */
    cite: string;
    /**
     * The **\`dateTime\`** property of the HTMLModElement interface is a string containing a machine-readable date with an optional time value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/dateTime)
     */
    dateTime: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLModElement: {
    prototype: HTMLModElement;
    new(): HTMLModElement;
};

/**
 * The **\`HTMLOListElement\`** interface provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement)
 */
interface HTMLOListElement extends HTMLElement {
    /** @deprecated */
    compact: boolean;
    /**
     * The **\`reversed\`** property of the HTMLOListElement interface indicates order of a list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed)
     */
    reversed: boolean;
    /**
     * The **\`start\`** property of the HTMLOListElement interface indicates starting value of the ordered list, with default value of 1.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start)
     */
    start: number;
    /**
     * The **\`type\`** property of the HTMLOListElement interface indicates the kind of marker to be used to display ordered list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/type)
     */
    type: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLOListElement: {
    prototype: HTMLOListElement;
    new(): HTMLOListElement;
};

/**
 * The **\`HTMLObjectElement\`** interface provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of object element, representing external resources.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement)
 */
interface HTMLObjectElement extends HTMLElement {
    /** @deprecated */
    align: string;
    /** @deprecated */
    archive: string;
    /** @deprecated */
    border: string;
    /** @deprecated */
    code: string;
    /** @deprecated */
    codeBase: string;
    /** @deprecated */
    codeType: string;
    /**
     * The **\`contentDocument\`** read-only property of the HTMLObjectElement interface Returns a Document representing the active document of the object element's nested browsing context, if any; otherwise null.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument)
     */
    readonly contentDocument: Document | null;
    /**
     * The **\`contentWindow\`** read-only property of the HTMLObjectElement interface returns a WindowProxy representing the window proxy of the object element's nested browsing context, if any; otherwise null.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow)
     */
    readonly contentWindow: WindowProxy | null;
    /**
     * The **\`data\`** property of the reflects the \`data\` HTML attribute, specifying the address of a resource's data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data)
     */
    data: string;
    /** @deprecated */
    declare: boolean;
    /**
     * The **\`form\`** read-only property of the HTMLObjectElement interface returns an HTMLFormElement object that owns this object, or \`null\` if this object element is not owned by any form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form)
     */
    readonly form: HTMLFormElement | null;
    /**
     * The **\`height\`** property of the reflects the \`height\` HTML attribute, specifying the displayed height of the resource in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height)
     */
    height: string;
    /** @deprecated */
    hspace: number;
    /**
     * The **\`name\`** property of the reflects the \`name\` HTML attribute, specifying the name of the browsing context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name)
     */
    name: string;
    /** @deprecated */
    standby: string;
    /**
     * The **\`type\`** property of the reflects the \`type\` HTML attribute, specifying the MIME type of the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type)
     */
    type: string;
    /**
     * The **\`useMap\`** property of the reflects the \`usemap\` HTML attribute, specifying a A string.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
     */
    useMap: string;
    /**
     * The **\`validationMessage\`** read-only property of the HTMLObjectElement interface returns a string representing a localized message that describes the validation constraints that the control does not satisfy (if any).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage)
     */
    readonly validationMessage: string;
    /**
     * The **\`validity\`** read-only property of the HTMLObjectElement interface returns a ValidityState object that represents the validity states this element is in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity)
     */
    readonly validity: ValidityState;
    /** @deprecated */
    vspace: number;
    /**
     * The **\`width\`** property of the reflects the \`width\` HTML attribute, specifying the displayed width of the resource in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width)
     */
    width: string;
    /**
     * The **\`willValidate\`** read-only property of the HTMLObjectElement interface returns \`false\`, because object elements are not candidates for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate)
     */
    readonly willValidate: boolean;
    /**
     * The **\`checkValidity()\`** method of the HTMLObjectElement interface checks if the element is valid, but always returns true because object elements are never candidates for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity)
     */
    checkValidity(): boolean;
    /**
     * The **\`getSVGDocument()\`** method of the HTMLObjectElement interface returns the Document object of the embedded SVG.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument)
     */
    getSVGDocument(): Document | null;
    /**
     * The **\`reportValidity()\`** method of the HTMLObjectElement interface performs the same validity checking steps as the HTMLObjectElement.checkValidity method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity)
     */
    reportValidity(): boolean;
    /**
     * The **\`setCustomValidity()\`** method of the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/setCustomValidity)
     */
    setCustomValidity(error: string): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLObjectElement: {
    prototype: HTMLObjectElement;
    new(): HTMLObjectElement;
};

/**
 * The **\`HTMLOptGroupElement\`** interface provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of optgroup elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement)
 */
interface HTMLOptGroupElement extends HTMLElement {
    /**
     * The **\`disabled\`** property of the HTMLOptGroupElement interface is a boolean value that reflects the optgroup element's \`disabled\` attribute, which indicates whether the control is disabled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled)
     */
    disabled: boolean;
    /**
     * The **\`label\`** property of the HTMLOptGroupElement interface is a string value that reflects the optgroup element's \`label\` attribute, which provides a textual label to the group of options.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/label)
     */
    label: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLOptGroupElement: {
    prototype: HTMLOptGroupElement;
    new(): HTMLOptGroupElement;
};

/**
 * The **\`HTMLOptionElement\`** interface represents option elements and inherits all properties and methods of the HTMLElement interface.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement)
 */
interface HTMLOptionElement extends HTMLElement {
    /**
     * The **\`defaultSelected\`** property of the HTMLOptionElement interface specifies the default selected state of the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected)
     */
    defaultSelected: boolean;
    /**
     * The **\`disabled\`** property of the HTMLOptionElement is a boolean value that indicates whether the option element is unavailable to be selected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled)
     */
    disabled: boolean;
    /**
     * The **\`form\`** read-only property of the HTMLOptionElement interface returns an HTMLFormElement object that owns the HTMLSelectElement associated with this option, or \`null\` if this option is not associated with a select owned by a form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form)
     */
    readonly form: HTMLFormElement | null;
    /**
     * The read-only **\`index\`** property of the HTMLOptionElement interface specifies the 0-based index of the element; that is, the position of the option within the list of options it belongs to, in tree-order, as an integer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index)
     */
    readonly index: number;
    /**
     * The **\`label\`** property of the HTMLOptionElement represents the text displayed for an option in a select element or as part of a list of suggestions in a datalist element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label)
     */
    label: string;
    /**
     * The **\`selected\`** property of the HTMLOptionElement interface specifies the current selectedness of the element; that is, whether the option is selected or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected)
     */
    selected: boolean;
    /**
     * The **\`text\`** property of the HTMLOptionElement represents the text inside the option element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text)
     */
    text: string;
    /**
     * The **\`value\`** property of the HTMLOptionElement interface represents the value of the option element as a string, or the empty string if no value is set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value)
     */
    value: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLOptionElement: {
    prototype: HTMLOptionElement;
    new(): HTMLOptionElement;
};

/**
 * The **\`HTMLOptionsCollection\`** interface represents a collection of \`<option>\` HTML elements (in document order) and offers methods and properties for selecting from the list as well as optionally altering its items.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection)
 */
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
    /**
     * The **\`length\`** property of the HTMLOptionsCollection interface returns the number of option elements in the collection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length)
     */
    length: number;
    /**
     * The **\`selectedIndex\`** property of the HTMLOptionsCollection interface is the numeric index of the first selected option element, if any, or \`−1\` if no \`<option>\` is selected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex)
     */
    selectedIndex: number;
    /**
     * The **\`add()\`** method of the HTMLOptionsCollection interface adds an HTMLOptionElement or HTMLOptGroupElement to this \`HTMLOptionsCollection\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add)
     */
    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
    /**
     * The **\`remove()\`** method of the HTMLOptionsCollection interface removes the option element specified by the index from this collection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove)
     */
    remove(index: number): void;
}

declare var HTMLOptionsCollection: {
    prototype: HTMLOptionsCollection;
    new(): HTMLOptionsCollection;
};

interface HTMLOrSVGElement {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
    autofocus: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
    readonly dataset: DOMStringMap;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */
    nonce?: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) */
    tabIndex: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) */
    blur(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) */
    focus(options?: FocusOptions): void;
}

/**
 * The **\`HTMLOutputElement\`** interface provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of output elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement)
 */
interface HTMLOutputElement extends HTMLElement {
    /**
     * The **\`defaultValue\`** property of the HTMLOutputElement interface represents the default text content of this output element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue)
     */
    defaultValue: string;
    /**
     * The **\`form\`** read-only property of the HTMLOutputElement interface returns an HTMLFormElement object that owns this output, or \`null\` if this output is not owned by any form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form)
     */
    readonly form: HTMLFormElement | null;
    /**
     * The **\`htmlFor\`** property of the HTMLOutputElement interface is a string containing a space-separated list of other elements' \`id\`s, indicating that those elements contributed input values to (or otherwise affected) the calculation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor)
     */
    get htmlFor(): DOMTokenList;
    set htmlFor(value: string);
    /**
     * The **\`HTMLOutputElement.labels\`** read-only property returns a A NodeList containing the \`<label>\` elements associated with the \`<output>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels)
     */
    readonly labels: NodeListOf<HTMLLabelElement>;
    /**
     * The **\`name\`** property of the HTMLOutputElement interface indicates the name of the output element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name)
     */
    name: string;
    /**
     * The **\`type\`** read-only property of the HTMLOutputElement interface returns the string \`'output'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type)
     */
    readonly type: string;
    /**
     * The **\`validationMessage\`** read-only property of the HTMLOutputElement interface returns a string representing a localized message that describes the validation constraints that the output control does not satisfy (if any).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage)
     */
    readonly validationMessage: string;
    /**
     * The **\`validity\`** read-only property of the HTMLOutputElement interface returns a ValidityState object that represents the validity states this element is in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity)
     */
    readonly validity: ValidityState;
    /**
     * The **\`value\`** property of the HTMLOutputElement interface represents the value of the output element as a string, or the empty string if no value is set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)
     */
    value: string;
    /**
     * The **\`willValidate\`** read-only property of the HTMLOutputElement interface returns \`false\`, because output elements are not candidates for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate)
     */
    readonly willValidate: boolean;
    /**
     * The **\`checkValidity()\`** method of the HTMLOutputElement interface checks if the element is valid, but always returns true because output elements are never candidates for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity)
     */
    checkValidity(): boolean;
    /**
     * The **\`reportValidity()\`** method of the HTMLOutputElement interface performs the same validity checking steps as the HTMLOutputElement.checkValidity method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity)
     */
    reportValidity(): boolean;
    /**
     * The **\`setCustomValidity()\`** method of the HTMLOutputElement interface sets the custom validity message for the output element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity)
     */
    setCustomValidity(error: string): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLOutputElement: {
    prototype: HTMLOutputElement;
    new(): HTMLOutputElement;
};

/**
 * The **\`HTMLParagraphElement\`** interface provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating p elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement)
 */
interface HTMLParagraphElement extends HTMLElement {
    /** @deprecated */
    align: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLParagraphElement: {
    prototype: HTMLParagraphElement;
    new(): HTMLParagraphElement;
};

/**
 * The **\`HTMLParamElement\`** interface provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating param elements, representing a pair of a key and a value that acts as a parameter for an object element.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement)
 */
interface HTMLParamElement extends HTMLElement {
    /** @deprecated */
    name: string;
    /** @deprecated */
    type: string;
    /** @deprecated */
    value: string;
    /** @deprecated */
    valueType: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/** @deprecated */
declare var HTMLParamElement: {
    prototype: HTMLParamElement;
    new(): HTMLParamElement;
};

/**
 * The **\`HTMLPictureElement\`** interface represents a picture HTML element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPictureElement)
 */
interface HTMLPictureElement extends HTMLElement {
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLPictureElement: {
    prototype: HTMLPictureElement;
    new(): HTMLPictureElement;
};

/**
 * The **\`HTMLPreElement\`** interface exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (pre).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement)
 */
interface HTMLPreElement extends HTMLElement {
    /** @deprecated */
    width: number;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLPreElement: {
    prototype: HTMLPreElement;
    new(): HTMLPreElement;
};

/**
 * The **\`HTMLProgressElement\`** interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of progress elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement)
 */
interface HTMLProgressElement extends HTMLElement {
    /**
     * The **\`HTMLProgressElement.labels\`** read-only property returns a NodeList of the label elements associated with the A NodeList containing the \`<label>\` elements associated with the \`<progress>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels)
     */
    readonly labels: NodeListOf<HTMLLabelElement>;
    /**
     * The **\`max\`** property of the HTMLProgressElement interface represents the upper bound of the progress element's range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max)
     */
    max: number;
    /**
     * The **\`position\`** read-only property of the HTMLProgressElement interface returns current progress of the progress element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position)
     */
    readonly position: number;
    /**
     * The **\`value\`** property of the HTMLProgressElement interface represents the current progress of the progress element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/value)
     */
    value: number;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLProgressElement: {
    prototype: HTMLProgressElement;
    new(): HTMLProgressElement;
};

/**
 * The **\`HTMLQuoteElement\`** interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like blockquote and q, but not the cite element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement)
 */
interface HTMLQuoteElement extends HTMLElement {
    /**
     * The **\`cite\`** property of the HTMLQuoteElement interface indicates the URL for the source of the quotation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement/cite)
     */
    cite: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLQuoteElement: {
    prototype: HTMLQuoteElement;
    new(): HTMLQuoteElement;
};

/**
 * HTML script elements expose the **\`HTMLScriptElement\`** interface, which provides special properties and methods for manipulating the behavior and execution of \`<script>\` elements (beyond the inherited HTMLElement interface).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)
 */
interface HTMLScriptElement extends HTMLElement {
    /**
     * The **\`async\`** property of the HTMLScriptElement interface is a boolean value that controls how the script should be executed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/async)
     */
    async: boolean;
    /**
     * The **\`blocking\`** property of the HTMLScriptElement interface is a string indicating that certain operations should be blocked on the fetching of the script.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/blocking)
     */
    get blocking(): DOMTokenList;
    set blocking(value: string);
    /** @deprecated */
    charset: string;
    /**
     * The **\`crossOrigin\`** property of the HTMLScriptElement interface reflects the CORS settings for the script element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin)
     */
    crossOrigin: string | null;
    /**
     * The **\`defer\`** property of the HTMLScriptElement interface is a boolean value that controls how the script should be executed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/defer)
     */
    defer: boolean;
    /** @deprecated */
    event: string;
    /**
     * The **\`fetchPriority\`** property of the HTMLScriptElement interface represents a hint to the browser indicating how it should prioritize fetching an external script relative to other external scripts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/fetchPriority)
     */
    fetchPriority: "high" | "low" | "auto";
    /** @deprecated */
    htmlFor: string;
    /**
     * The **\`integrity\`** property of the HTMLScriptElement interface is a string that contains inline metadata that a browser can use to verify that a fetched resource has been delivered without unexpected manipulation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/integrity)
     */
    integrity: string;
    /**
     * The **\`noModule\`** property of the HTMLScriptElement interface is a boolean value that indicates whether the script should be executed in browsers that support ES modules.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/noModule)
     */
    noModule: boolean;
    /**
     * The **\`referrerPolicy\`** property of the \`referrerpolicy\` of the script element, which defines how the referrer is set when fetching the script and any scripts it imports.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy)
     */
    referrerPolicy: string;
    /**
     * The **\`src\`** property of the HTMLScriptElement interface is a string representing the URL of an external script; this can be used as an alternative to embedding a script directly within a document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/src)
     */
    src: string;
    /**
     * The **\`text\`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
     */
    text: string;
    /**
     * The **\`type\`** property of the HTMLScriptElement interface is a string that reflects the type of the script.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/type)
     */
    type: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLScriptElement: {
    prototype: HTMLScriptElement;
    new(): HTMLScriptElement;
    /**
     * The **\`supports()\`** static method of the HTMLScriptElement interface provides a simple and consistent method to feature-detect what types of scripts are supported by the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static)
     */
    supports(type: string): boolean;
};

/**
 * The **\`HTMLSelectElement\`** interface represents a select HTML Element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement)
 */
interface HTMLSelectElement extends HTMLElement {
    /**
     * The **\`autocomplete\`** property of the HTMLSelectElement interface indicates whether the value of the control can be automatically completed by the browser.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete)
     */
    autocomplete: AutoFill;
    /**
     * The **\`HTMLSelectElement.disabled\`** property is a boolean value that reflects the \`disabled\` HTML attribute, which indicates whether the control is disabled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled)
     */
    disabled: boolean;
    /**
     * The **\`form\`** read-only property of the HTMLSelectElement interface returns an HTMLFormElement object that owns this select, or \`null\` if this select is not owned by any form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form)
     */
    readonly form: HTMLFormElement | null;
    /**
     * The **\`HTMLSelectElement.labels\`** read-only property returns a A NodeList containing the \`<label>\` elements associated with the \`<select>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels)
     */
    readonly labels: NodeListOf<HTMLLabelElement>;
    /**
     * The **\`length\`** property of the HTMLSelectElement interface specifies the number of option elements in the select element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length)
     */
    length: number;
    /**
     * The **\`multiple\`** property of the HTMLSelectElement interface specifies that the user may select more than one option from the list of options.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple)
     */
    multiple: boolean;
    /**
     * The **\`name\`** property of the HTMLSelectElement interface indicates the name of the select element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)
     */
    name: string;
    /**
     * The **\`HTMLSelectElement.options\`** read-only property returns a HTMLOptionsCollection of the option elements contained by the select element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options)
     */
    readonly options: HTMLOptionsCollection;
    /**
     * The **\`required\`** property of the HTMLSelectElement interface specifies that the user must select an option with a non-empty string value before submitting a form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required)
     */
    required: boolean;
    /**
     * The **\`selectedIndex\`** property of the HTMLSelectElement interface is the numeric index of the first selected option element in a select element, if any, or \`−1\` if no \`<option>\` is selected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex)
     */
    selectedIndex: number;
    /**
     * The **read-only** HTMLSelectElement property **\`selectedOptions\`** contains a list of the element that are currently selected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions)
     */
    readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
    /**
     * The **\`size\`** property of the HTMLSelectElement interface specifies the number of options, or rows, that should be visible at one time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size)
     */
    size: number;
    /**
     * The **\`HTMLSelectElement.type\`** read-only property returns the form control's \`type\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
     */
    readonly type: "select-one" | "select-multiple";
    /**
     * The **\`validationMessage\`** read-only property of the HTMLSelectElement interface returns a string representing a localized message that describes the validation constraints that the select control does not satisfy (if any).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage)
     */
    readonly validationMessage: string;
    /**
     * The **\`validity\`** read-only property of the HTMLSelectElement interface returns a ValidityState object that represents the validity states this element is in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity)
     */
    readonly validity: ValidityState;
    /**
     * The **\`HTMLSelectElement.value\`** property contains the value of the first selected option element associated with this select element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value)
     */
    value: string;
    /**
     * The **\`willValidate\`** read-only property of the HTMLSelectElement interface indicates whether the select element is a candidate for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate)
     */
    readonly willValidate: boolean;
    /**
     * The **\`HTMLSelectElement.add()\`** method adds an element to the collection of \`option\` elements for this \`select\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add)
     */
    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
    /**
     * The **\`checkValidity()\`** method of the HTMLSelectElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity)
     */
    checkValidity(): boolean;
    /**
     * The **\`HTMLSelectElement.item()\`** method returns the position in the options list corresponds to the index given in the parameter, or \`null\` if there are none.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item)
     */
    item(index: number): HTMLOptionElement | null;
    /**
     * The **\`HTMLSelectElement.namedItem()\`** method returns the whose \`name\` or \`id\` match the specified name, or \`null\` if no option matches.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem)
     */
    namedItem(name: string): HTMLOptionElement | null;
    /**
     * The **\`HTMLSelectElement.remove()\`** method removes the element at the specified index from the options collection for this select element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove)
     */
    remove(): void;
    remove(index: number): void;
    /**
     * The **\`reportValidity()\`** method of the HTMLSelectElement interface performs the same validity checking steps as the HTMLSelectElement.checkValidity method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity)
     */
    reportValidity(): boolean;
    /**
     * The **\`HTMLSelectElement.setCustomValidity()\`** method sets the custom validity message for the selection element to the specified message.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)
     */
    setCustomValidity(error: string): void;
    /**
     * The **\`HTMLSelectElement.showPicker()\`** method displays the browser picker for a \`select\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker)
     */
    showPicker(): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
    [name: number]: HTMLOptionElement | HTMLOptGroupElement;
}

declare var HTMLSelectElement: {
    prototype: HTMLSelectElement;
    new(): HTMLSelectElement;
};

/**
 * The **\`HTMLSlotElement\`** interface of the Shadow DOM API enables access to the name and assigned nodes of an HTML slot element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement)
 */
interface HTMLSlotElement extends HTMLElement {
    /**
     * The **\`name\`** property of the HTMLSlotElement interface returns or sets the slot name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name)
     */
    name: string;
    /**
     * The **\`assign()\`** method of the HTMLSlotElement interface sets the slot's _manually assigned nodes_ to an ordered set of slottables.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign)
     */
    assign(...nodes: (Element | Text)[]): void;
    /**
     * The **\`assignedElements()\`** method of the HTMLSlotElement interface returns a sequence of the elements assigned to this slot (and no other nodes).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements)
     */
    assignedElements(options?: AssignedNodesOptions): Element[];
    /**
     * The **\`assignedNodes()\`** method of the HTMLSlotElement interface returns a sequence of the nodes assigned to this slot.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes)
     */
    assignedNodes(options?: AssignedNodesOptions): Node[];
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLSlotElement: {
    prototype: HTMLSlotElement;
    new(): HTMLSlotElement;
};

/**
 * The **\`HTMLSourceElement\`** interface provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating source elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)
 */
interface HTMLSourceElement extends HTMLElement {
    /**
     * The **\`height\`** property of the HTMLSourceElement interface is a non-negative number indicating the height of the image resource in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height)
     */
    height: number;
    /**
     * The **\`media\`** property of the HTMLSourceElement interface is a string representing the intended destination medium for the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media)
     */
    media: string;
    /**
     * The **\`sizes\`** property of the HTMLSourceElement interface is a string representing a list of one or more sizes, representing sizes between breakpoints, to which the resource applies.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes)
     */
    sizes: string;
    /**
     * The **\`src\`** property of the HTMLSourceElement interface is a string indicating the URL of a media resource to use as the source for the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src)
     */
    src: string;
    /**
     * The **\`srcset\`** property of the HTMLSourceElement interface is a string containing a comma-separated list of candidate images.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset)
     */
    srcset: string;
    /**
     * The **\`type\`** property of the HTMLSourceElement interface is a string representing the MIME type of the media resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
     */
    type: string;
    /**
     * The **\`width\`** property of the HTMLSourceElement interface is a non-negative number indicating the width of the image resource in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width)
     */
    width: number;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLSourceElement: {
    prototype: HTMLSourceElement;
    new(): HTMLSourceElement;
};

/**
 * The **\`HTMLSpanElement\`** interface represents a span element and derives from the HTMLElement interface, but without implementing any additional properties or methods.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSpanElement)
 */
interface HTMLSpanElement extends HTMLElement {
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLSpanElement: {
    prototype: HTMLSpanElement;
    new(): HTMLSpanElement;
};

/**
 * The **\`HTMLStyleElement\`** interface represents a style element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
 */
interface HTMLStyleElement extends HTMLElement, LinkStyle {
    /**
     * The **\`blocking\`** property of the HTMLStyleElement interface is a string indicating that certain operations should be blocked on the fetching of critical subresources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/blocking)
     */
    get blocking(): DOMTokenList;
    set blocking(value: string);
    /**
     * The **\`HTMLStyleElement.disabled\`** property can be used to get and set whether the stylesheet is disabled (\`true\`) or not (\`false\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled)
     */
    disabled: boolean;
    /**
     * The **\`HTMLStyleElement.media\`** property specifies the intended destination medium for style information.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media)
     */
    media: string;
    /**
     * The **\`HTMLStyleElement.type\`** property returns the type of the current style.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/type)
     */
    type: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLStyleElement: {
    prototype: HTMLStyleElement;
    new(): HTMLStyleElement;
};

/**
 * The **\`HTMLTableCaptionElement\`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement)
 */
interface HTMLTableCaptionElement extends HTMLElement {
    /**
     * The **\`align\`** property of the HTMLTableCaptionElement interface is a string indicating how to horizontally align text in the caption table element.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement/align)
     */
    align: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTableCaptionElement: {
    prototype: HTMLTableCaptionElement;
    new(): HTMLTableCaptionElement;
};

/**
 * The **\`HTMLTableCellElement\`** interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header cells (th) or data cells (td), in an HTML document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement)
 */
interface HTMLTableCellElement extends HTMLElement {
    /**
     * The **\`abbr\`** property of the HTMLTableCellElement interface indicates an abbreviation associated with the cell.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr)
     */
    abbr: string;
    /**
     * The **\`align\`** property of the HTMLTableCellElement interface is a string indicating how to horizontally align text in the th or td table cell.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align)
     */
    align: string;
    /** @deprecated */
    axis: string;
    /**
     * The **\`HTMLTableCellElement.bgColor\`** property is used to set the background color of a cell or get the value of the obsolete \`bgColor\` attribute, if present.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor)
     */
    bgColor: string;
    /**
     * The **\`cellIndex\`** read-only property of the HTMLTableCellElement interface represents the position of a cell within its row (tr).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex)
     */
    readonly cellIndex: number;
    /**
     * The **\`ch\`** property of the HTMLTableCellElement interface does nothing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch)
     */
    ch: string;
    /**
     * The **\`chOff\`** property of the HTMLTableCellElement interface does nothing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff)
     */
    chOff: string;
    /**
     * The **\`colSpan\`** read-only property of the HTMLTableCellElement interface represents the number of columns this cell must span; this lets the cell occupy space across multiple columns of the table.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan)
     */
    colSpan: number;
    /**
     * The **\`headers\`** property of the HTMLTableCellElement interface contains a list of IDs of th elements that are _headers_ for this specific cell.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers)
     */
    headers: string;
    /** @deprecated */
    height: string;
    /**
     * The **\`noWrap\`** property of the HTMLTableCellElement interface returns a Boolean value indicating if the text of the cell may be wrapped on several lines or not.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap)
     */
    noWrap: boolean;
    /**
     * The **\`rowSpan\`** read-only property of the HTMLTableCellElement interface represents the number of rows this cell must span; this lets the cell occupy space across multiple rows of the table.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan)
     */
    rowSpan: number;
    /**
     * The **\`scope\`** property of the HTMLTableCellElement interface indicates the scope of a th cell.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope)
     */
    scope: string;
    /**
     * The **\`vAlign\`** property of the HTMLTableCellElement interface is a string indicating how to vertically align text in a th or td table cell.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign)
     */
    vAlign: string;
    /** @deprecated */
    width: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTableCellElement: {
    prototype: HTMLTableCellElement;
    new(): HTMLTableCellElement;
};

/**
 * The **\`HTMLTableColElement\`** interface provides properties for manipulating single or grouped table column elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement)
 */
interface HTMLTableColElement extends HTMLElement {
    /**
     * The **\`align\`** property of the HTMLTableColElement interface is a string indicating how to horizontally align text in a table col column element.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align)
     */
    align: string;
    /**
     * The **\`ch\`** property of the HTMLTableColElement interface does nothing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch)
     */
    ch: string;
    /**
     * The **\`chOff\`** property of the HTMLTableColElement interface does nothing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff)
     */
    chOff: string;
    /**
     * The **\`span\`** read-only property of the HTMLTableColElement interface represents the number of columns this col or colgroup must span; this lets the column occupy space across multiple columns of the table.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span)
     */
    span: number;
    /**
     * The **\`vAlign\`** property of the HTMLTableColElement interface is a string indicating how to vertically align text in a table col column element.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign)
     */
    vAlign: string;
    /** @deprecated */
    width: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTableColElement: {
    prototype: HTMLTableColElement;
    new(): HTMLTableColElement;
};

/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableDataCellElement extends HTMLTableCellElement {
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/**
 * The **\`HTMLTableElement\`** interface provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement)
 */
interface HTMLTableElement extends HTMLElement {
    /**
     * The **\`HTMLTableElement.align\`** property represents the alignment of the table.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align)
     */
    align: string;
    /**
     * The **\`bgcolor\`** property of the HTMLTableElement represents the background color of the table.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor)
     */
    bgColor: string;
    /**
     * The **\`HTMLTableElement.border\`** property represents the border width of the table element.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border)
     */
    border: string;
    /**
     * The **\`HTMLTableElement.caption\`** property represents the table caption.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption)
     */
    caption: HTMLTableCaptionElement | null;
    /**
     * The **\`HTMLTableElement.cellPadding\`** property represents the padding around the individual cells of the table.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding)
     */
    cellPadding: string;
    /**
     * While you should instead use the CSS interface's **\`cellSpacing\`** property represents the spacing around the individual th and td elements representing a table's cells.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing)
     */
    cellSpacing: string;
    /**
     * The HTMLTableElement interface's **\`frame\`** property is a string that indicates which of the table's exterior borders should be drawn.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame)
     */
    frame: string;
    /**
     * The read-only HTMLTableElement property **\`rows\`** returns a live contained within any thead, tfoot, and Although the property itself is read-only, the returned object is live and allows the modification of its content.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows)
     */
    readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
    /**
     * The **\`HTMLTableElement.rules\`** property indicates which cell borders to render in the table.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules)
     */
    rules: string;
    /**
     * The **\`HTMLTableElement.summary\`** property represents the table description.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary)
     */
    summary: string;
    /**
     * The **\`HTMLTableElement.tBodies\`** read-only property returns a live HTMLCollection of the bodies in a table.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies)
     */
    readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
    /**
     * The **\`HTMLTableElement.tFoot\`** property represents the \`null\` if there is no such element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot)
     */
    tFoot: HTMLTableSectionElement | null;
    /**
     * The **\`HTMLTableElement.tHead\`** represents the \`null\` if there is no such element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead)
     */
    tHead: HTMLTableSectionElement | null;
    /**
     * The **\`HTMLTableElement.width\`** property represents the desired width of the table.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width)
     */
    width: string;
    /**
     * The **\`HTMLTableElement.createCaption()\`** method returns the If no \`<caption>\` element exists on the table, this method creates it, and then returns it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption)
     */
    createCaption(): HTMLTableCaptionElement;
    /**
     * The **\`createTBody()\`** method of \`\`\`js-nolint createTBody() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody)
     */
    createTBody(): HTMLTableSectionElement;
    /**
     * The **\`createTFoot()\`** method of associated with a given table.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot)
     */
    createTFoot(): HTMLTableSectionElement;
    /**
     * The **\`createTHead()\`** method of associated with a given table.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead)
     */
    createTHead(): HTMLTableSectionElement;
    /**
     * The **\`HTMLTableElement.deleteCaption()\`** method removes the \`<caption>\` element associated with the table, this method does nothing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption)
     */
    deleteCaption(): void;
    /**
     * The **\`HTMLTableElement.deleteRow()\`** method removes a specific row (tr) from a given table.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow)
     */
    deleteRow(index: number): void;
    /**
     * The **\`HTMLTableElement.deleteTFoot()\`** method removes the \`\`\`js-nolint deleteTFoot() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot)
     */
    deleteTFoot(): void;
    /**
     * The **\`HTMLTableElement.deleteTHead()\`** removes the \`\`\`js-nolint deleteTHead() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead)
     */
    deleteTHead(): void;
    /**
     * The **\`insertRow()\`** method of the HTMLTableElement interface inserts a new row (tr) in a given table, and returns a reference to the new row.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/insertRow)
     */
    insertRow(index?: number): HTMLTableRowElement;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTableElement: {
    prototype: HTMLTableElement;
    new(): HTMLTableElement;
};

/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/**
 * The **\`HTMLTableRowElement\`** interface provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement)
 */
interface HTMLTableRowElement extends HTMLElement {
    /**
     * The **\`align\`** property of the HTMLTableRowElement interface is a string indicating how to horizontally align text in the tr table row.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align)
     */
    align: string;
    /**
     * The **\`HTMLTableRowElement.bgColor\`** property is used to set the background color of a row or retrieve the value of the obsolete \`bgColor\` attribute, if present.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor)
     */
    bgColor: string;
    /**
     * The **\`cells\`** read-only property of the HTMLTableRowElement interface returns a live HTMLCollection containing the cells in the row.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells)
     */
    readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
    /**
     * The **\`ch\`** property of the HTMLTableRowElement interface does nothing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch)
     */
    ch: string;
    /**
     * The **\`chOff\`** property of the HTMLTableRowElement interface does nothing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff)
     */
    chOff: string;
    /**
     * The **\`rowIndex\`** read-only property of the HTMLTableRowElement interface represents the position of a row within the whole table.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex)
     */
    readonly rowIndex: number;
    /**
     * The **\`sectionRowIndex\`** read-only property of the HTMLTableRowElement interface represents the position of a row within the current section (thead, tbody, or tfoot).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex)
     */
    readonly sectionRowIndex: number;
    /**
     * The **\`vAlign\`** property of the HTMLTableRowElement interface is a string indicating how to vertically align text in a tr table row.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign)
     */
    vAlign: string;
    /**
     * The **\`deleteCell()\`** method of the HTMLTableRowElement interface removes a specific row cell from a given tr.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell)
     */
    deleteCell(index: number): void;
    /**
     * The **\`insertCell()\`** method of the HTMLTableRowElement interface inserts a new cell (td) into a table row (tr) and returns a reference to the cell.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/insertCell)
     */
    insertCell(index?: number): HTMLTableCellElement;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTableRowElement: {
    prototype: HTMLTableRowElement;
    new(): HTMLTableRowElement;
};

/**
 * The **\`HTMLTableSectionElement\`** interface provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies (thead, tfoot, and tbody, respectively) in an HTML table.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement)
 */
interface HTMLTableSectionElement extends HTMLElement {
    /**
     * The **\`align\`** property of the HTMLTableSectionElement interface is a string indicating how to horizontally align text in a thead, tbody or tfoot table section.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align)
     */
    align: string;
    /**
     * The **\`ch\`** property of the HTMLTableSectionElement interface does nothing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch)
     */
    ch: string;
    /**
     * The **\`chOff\`** property of the HTMLTableSectionElement interface does nothing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff)
     */
    chOff: string;
    /**
     * The **\`rows\`** read-only property of the HTMLTableSectionElement interface returns a live HTMLCollection containing the rows in the section.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows)
     */
    readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
    /**
     * The **\`vAlign\`** property of the HTMLTableSectionElement interface is a string indicating how to vertically align text in a thead, tbody or tfoot table section.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign)
     */
    vAlign: string;
    /**
     * The **\`deleteRow()\`** method of the HTMLTableSectionElement interface removes a specific row (tr) from a given section.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow)
     */
    deleteRow(index: number): void;
    /**
     * The **\`insertRow()\`** method of the HTMLTableSectionElement interface inserts a new row (tr) in the given table sectioning element (thead, tfoot, or \`\`\`js-nolint insertRow() insertRow(index) \`\`\` - \`index\` [MISSING: optional_inline] - : The row index of the new row.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/insertRow)
     */
    insertRow(index?: number): HTMLTableRowElement;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTableSectionElement: {
    prototype: HTMLTableSectionElement;
    new(): HTMLTableSectionElement;
};

/**
 * The **\`HTMLTemplateElement\`** interface enables access to the contents of an HTML template element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement)
 */
interface HTMLTemplateElement extends HTMLElement {
    /**
     * The **\`HTMLTemplateElement.content\`** property returns a \`<template>\` element's template contents (a A DocumentFragment.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
     */
    readonly content: DocumentFragment;
    /**
     * The **\`shadowRootClonable\`** property reflects the value of the \`shadowrootclonable\` attribute of the associated \`<template>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootClonable)
     */
    shadowRootClonable: boolean;
    /**
     * The **\`shadowRootDelegatesFocus\`** property of the HTMLTemplateElement interface reflects the value of the \`shadowrootdelegatesfocus\` attribute of the associated \`<template>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootDelegatesFocus)
     */
    shadowRootDelegatesFocus: boolean;
    /**
     * The **\`shadowRootMode\`** property of the HTMLTemplateElement interface reflects the value of the \`shadowrootmode\` attribute of the associated \`<template>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootMode)
     */
    shadowRootMode: string;
    /**
     * The **\`shadowRootSerializable\`** property reflects the value of the \`shadowrootserializable\` attribute of the associated \`<template>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable)
     */
    shadowRootSerializable: boolean;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTemplateElement: {
    prototype: HTMLTemplateElement;
    new(): HTMLTemplateElement;
};

/**
 * The **\`HTMLTextAreaElement\`** interface provides properties and methods for manipulating the layout and presentation of textarea elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement)
 */
interface HTMLTextAreaElement extends HTMLElement {
    /**
     * The **\`autocomplete\`** property of the HTMLTextAreaElement interface indicates whether the value of the control can be automatically completed by the browser.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete)
     */
    autocomplete: AutoFill;
    /**
     * The **\`cols\`** property of the HTMLTextAreaElement interface is a positive integer representing the visible width of the multi-line text control, in average character widths.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/cols)
     */
    cols: number;
    /**
     * The **\`defaultValue\`** property of the HTMLTextAreaElement interface represents the default text content of this text area.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/defaultValue)
     */
    defaultValue: string;
    /**
     * The **\`dirName\`** property of the HTMLTextAreaElement interface is the directionality of the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/dirName)
     */
    dirName: string;
    /**
     * The **\`disabled\`** property of the HTMLTextAreaElement interface indicates whether this multi-line text control is disabled and cannot be interacted with.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/disabled)
     */
    disabled: boolean;
    /**
     * The **\`form\`** read-only property of the HTMLTextAreaElement interface returns an HTMLFormElement object that owns this textarea, or \`null\` if this textarea is not owned by any form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/form)
     */
    readonly form: HTMLFormElement | null;
    /**
     * The **\`HTMLTextAreaElement.labels\`** read-only property returns a NodeList of the label elements associated with the A NodeList containing the \`<label>\` elements associated with the \`<textArea>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels)
     */
    readonly labels: NodeListOf<HTMLLabelElement>;
    /**
     * The **\`maxLength\`** property of the HTMLTextAreaElement interface indicates the maximum number of characters (in UTF-16 code units) allowed to be entered for the value of the textarea element, and the maximum number of characters allowed for the value to be valid.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength)
     */
    maxLength: number;
    /**
     * The **\`minLength\`** property of the HTMLTextAreaElement interface indicates the minimum number of characters (in UTF-16 code units) required for the value of the textarea element to be valid.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength)
     */
    minLength: number;
    /**
     * The **\`name\`** property of the HTMLTextAreaElement interface indicates the name of the textarea element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/name)
     */
    name: string;
    /**
     * The **\`placeholder\`** property of the HTMLTextAreaElement interface represents a hint to the user of what can be entered in the control.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/placeholder)
     */
    placeholder: string;
    /**
     * The **\`readOnly\`** property of the HTMLTextAreaElement interface indicates that the user cannot modify the value of the control.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/readOnly)
     */
    readOnly: boolean;
    /**
     * The **\`required\`** property of the HTMLTextAreaElement interface specifies that the user must fill in a value before submitting a form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/required)
     */
    required: boolean;
    /**
     * The **\`rows\`** property of the HTMLTextAreaElement interface is a positive integer representing the visible text lines of the text control.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/rows)
     */
    rows: number;
    /**
     * <!-- --> The **\`selectionDirection\`** property of the HTMLTextAreaElement interface specifies the current direction of the selection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection)
     */
    selectionDirection: "forward" | "backward" | "none";
    /**
     * The **\`selectionEnd\`** property of the HTMLTextAreaElement interface specifies the end position of the current text selection in a textarea element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionEnd)
     */
    selectionEnd: number;
    /**
     * The **\`selectionStart\`** property of the HTMLTextAreaElement interface specifies the start position of the current text selection in a textarea element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionStart)
     */
    selectionStart: number;
    /**
     * The **\`textLength\`** read-only property of the HTMLTextAreaElement interface is a non-negative integer representing the number of characters, in UTF-16 code units, of the textarea element's value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength)
     */
    readonly textLength: number;
    /**
     * The **\`type\`** read-only property of the HTMLTextAreaElement interface returns the string \`'textarea'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type)
     */
    readonly type: string;
    /**
     * The **\`validationMessage\`** read-only property of the HTMLTextAreaElement interface returns a string representing a localized message that describes the validation constraints that the textarea control does not satisfy (if any).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validationMessage)
     */
    readonly validationMessage: string;
    /**
     * The **\`validity\`** read-only property of the HTMLTextAreaElement interface returns a ValidityState object that represents the validity states this element is in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validity)
     */
    readonly validity: ValidityState;
    /**
     * The **\`value\`** property of the HTMLTextAreaElement interface represents the value of the textarea element as a string, which is an empty string if the widget contains no content.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/value)
     */
    value: string;
    /**
     * The **\`willValidate\`** read-only property of the HTMLTextAreaElement interface indicates whether the textarea element is a candidate for constraint validation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/willValidate)
     */
    readonly willValidate: boolean;
    /**
     * The **\`wrap\`** property of the HTMLTextAreaElement interface indicates how the control should wrap the value for form submission.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/wrap)
     */
    wrap: string;
    /**
     * The **\`checkValidity()\`** method of the HTMLTextAreaElement interface returns a boolean value which indicates if the element meets any constraint validation rules applied to it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/checkValidity)
     */
    checkValidity(): boolean;
    /**
     * The **\`reportValidity()\`** method of the HTMLTextAreaElement interface performs the same validity checking steps as the HTMLTextAreaElement.checkValidity method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity)
     */
    reportValidity(): boolean;
    /**
     * The **\`select()\`** method of the HTMLTextAreaElement interface selects the entire contents of the textarea element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/select)
     */
    select(): void;
    /**
     * The **\`setCustomValidity()\`** method of the HTMLTextAreaElement interface sets the custom validity message for the textarea element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setCustomValidity)
     */
    setCustomValidity(error: string): void;
    /**
     * The **\`setRangeText()\`** method of the HTMLTextAreaElement interface replaces a range of text in a textarea element with new text passed as the argument.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText)
     */
    setRangeText(replacement: string): void;
    setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
    /**
     * The **\`setSelectionRange()\`** method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in a textarea element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
     */
    setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTextAreaElement: {
    prototype: HTMLTextAreaElement;
    new(): HTMLTextAreaElement;
};

/**
 * The **\`HTMLTimeElement\`** interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating time elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement)
 */
interface HTMLTimeElement extends HTMLElement {
    /**
     * The **\`dateTime\`** property of the HTMLTimeElement interface is a string that reflects the \`datetime\` HTML attribute, containing a machine-readable form of the element's date and time value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement/dateTime)
     */
    dateTime: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTimeElement: {
    prototype: HTMLTimeElement;
    new(): HTMLTimeElement;
};

/**
 * The **\`HTMLTitleElement\`** interface is implemented by a document's title.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement)
 */
interface HTMLTitleElement extends HTMLElement {
    /**
     * The **\`text\`** property of the HTMLTitleElement interface represents the child text content of the document's title as a string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement/text)
     */
    text: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTitleElement: {
    prototype: HTMLTitleElement;
    new(): HTMLTitleElement;
};

/**
 * The **\`HTMLTrackElement\`** interface represents an HTML track element within the DOM.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement)
 */
interface HTMLTrackElement extends HTMLElement {
    /**
     * The **\`default\`** property of the HTMLTrackElement interface represents whether the track will be enabled if the user's preferences do not indicate that another track would be more appropriate.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default)
     */
    default: boolean;
    /**
     * The **\`kind\`** property of the HTMLTrackElement interface represents the type of track, or how the text track is meant to be used.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind)
     */
    kind: string;
    /**
     * The **\`label\`** property of the HTMLTrackElement represents the user-readable title displayed when listing subtitle, caption, and audio descriptions for a track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label)
     */
    label: string;
    /**
     * The **\`readyState\`** read-only property of the HTMLTrackElement interface returns a number representing the track element's text track readiness state: 0.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState)
     */
    readonly readyState: number;
    /**
     * The **\`src\`** property of the HTMLTrackElement interface reflects the value of the track element's \`src\` attribute, which indicates the URL of the text track's data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src)
     */
    src: string;
    /**
     * The **\`srclang\`** property of the HTMLTrackElement interface reflects the value of the track element's \`srclang\` attribute or the empty string if not defined.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang)
     */
    srclang: string;
    /**
     * The **\`track\`** read-only property of the HTMLTrackElement interface returns a TextTrack object corresponding to the text track of the track element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/track)
     */
    readonly track: TextTrack;
    readonly NONE: 0;
    readonly LOADING: 1;
    readonly LOADED: 2;
    readonly ERROR: 3;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLTrackElement: {
    prototype: HTMLTrackElement;
    new(): HTMLTrackElement;
    readonly NONE: 0;
    readonly LOADING: 1;
    readonly LOADED: 2;
    readonly ERROR: 3;
};

/**
 * The **\`HTMLUListElement\`** interface provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list (ul) elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)
 */
interface HTMLUListElement extends HTMLElement {
    /** @deprecated */
    compact: boolean;
    /** @deprecated */
    type: string;
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLUListElement: {
    prototype: HTMLUListElement;
    new(): HTMLUListElement;
};

/**
 * The **\`HTMLUnknownElement\`** interface represents an invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUnknownElement)
 */
interface HTMLUnknownElement extends HTMLElement {
    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLUnknownElement: {
    prototype: HTMLUnknownElement;
    new(): HTMLUnknownElement;
};

interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
    "enterpictureinpicture": PictureInPictureEvent;
    "leavepictureinpicture": PictureInPictureEvent;
}

/**
 * Implemented by the video element, the **\`HTMLVideoElement\`** interface provides special properties and methods for manipulating video objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
 */
interface HTMLVideoElement extends HTMLMediaElement {
    /**
     * The HTMLVideoElement **\`disablePictureInPicture\`** property reflects the HTML attribute indicating whether the picture-in-picture feature is disabled for the current element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture)
     */
    disablePictureInPicture: boolean;
    /**
     * The **\`height\`** property of the HTMLVideoElement interface returns an integer that reflects the \`height\` attribute of the video element, specifying the displayed height of the resource in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/height)
     */
    height: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */
    onenterpictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */
    onleavepictureinpicture: ((this: HTMLVideoElement, ev: PictureInPictureEvent) => any) | null;
    playsInline: boolean;
    /**
     * The **\`poster\`** property of the HTMLVideoElement interface is a string that reflects the URL for an image to be shown while no video data is available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster)
     */
    poster: string;
    /**
     * The HTMLVideoElement interface's read-only **\`videoHeight\`** property indicates the intrinsic height of the video, expressed in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight)
     */
    readonly videoHeight: number;
    /**
     * The HTMLVideoElement interface's read-only **\`videoWidth\`** property indicates the intrinsic width of the video, expressed in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth)
     */
    readonly videoWidth: number;
    /**
     * The **\`width\`** property of the HTMLVideoElement interface returns an integer that reflects the \`width\` attribute of the video element, specifying the displayed width of the resource in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)
     */
    width: number;
    /**
     * The **\`cancelVideoFrameCallback()\`** method of the HTMLVideoElement interface cancels a previously-registered video frame callback.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback)
     */
    cancelVideoFrameCallback(handle: number): void;
    /**
     * The **HTMLVideoElement** method **\`getVideoPlaybackQuality()\`** creates and returns a frames have been lost.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality)
     */
    getVideoPlaybackQuality(): VideoPlaybackQuality;
    /**
     * The **HTMLVideoElement** method **\`requestPictureInPicture()\`** issues an asynchronous request to display the video in picture-in-picture mode.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture)
     */
    requestPictureInPicture(): Promise<PictureInPictureWindow>;
    /**
     * The **\`requestVideoFrameCallback()\`** method of the HTMLVideoElement interface registers a callback function that runs when a new video frame is sent to the compositor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback)
     */
    requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
    addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var HTMLVideoElement: {
    prototype: HTMLVideoElement;
    new(): HTMLVideoElement;
};

/**
 * The **\`HashChangeEvent\`** interface represents events that fire when the fragment identifier of the URL has changed.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent)
 */
interface HashChangeEvent extends Event {
    /**
     * The **\`newURL\`** read-only property of the navigating.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL)
     */
    readonly newURL: string;
    /**
     * The **\`oldURL\`** read-only property of the was navigated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/oldURL)
     */
    readonly oldURL: string;
}

declare var HashChangeEvent: {
    prototype: HashChangeEvent;
    new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
};

/**
 * The **\`Headers\`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
 */
interface Headers {
    /**
     * The **\`append()\`** method of the Headers interface appends a new value onto an existing header inside a \`Headers\` object, or adds the header if it does not already exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)
     */
    append(name: string, value: string): void;
    /**
     * The **\`delete()\`** method of the Headers interface deletes a header from the current \`Headers\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)
     */
    delete(name: string): void;
    /**
     * The **\`get()\`** method of the Headers interface returns a byte string of all the values of a header within a \`Headers\` object with a given name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get)
     */
    get(name: string): string | null;
    /**
     * The **\`getSetCookie()\`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)
     */
    getSetCookie(): string[];
    /**
     * The **\`has()\`** method of the Headers interface returns a boolean stating whether a \`Headers\` object contains a certain header.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)
     */
    has(name: string): boolean;
    /**
     * The **\`set()\`** method of the Headers interface sets a new value for an existing header inside a \`Headers\` object, or adds the header if it does not already exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)
     */
    set(name: string, value: string): void;
    forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}

declare var Headers: {
    prototype: Headers;
    new(init?: HeadersInit): Headers;
};

/**
 * The **\`Highlight\`** interface of the CSS Custom Highlight API is used to represent a collection of Range instances to be styled using the API.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight)
 */
interface Highlight {
    /**
     * It is possible to create Range objects that overlap in a document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority)
     */
    priority: number;
    /**
     * The \`type\` property of the Highlight interface is an enumerated String used to specify the meaning of the highlight.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type)
     */
    type: HighlightType;
    forEach(callbackfn: (value: AbstractRange, key: AbstractRange, parent: Highlight) => void, thisArg?: any): void;
}

declare var Highlight: {
    prototype: Highlight;
    new(...initialRanges: AbstractRange[]): Highlight;
};

/**
 * The **\`HighlightRegistry\`** interface of the CSS Custom Highlight API is used to register Highlight objects to be styled using the API.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry)
 */
interface HighlightRegistry {
    forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;
}

declare var HighlightRegistry: {
    prototype: HighlightRegistry;
    new(): HighlightRegistry;
};

/**
 * The **\`History\`** interface of the History API allows manipulation of the browser _session history_, that is the pages visited in the tab or frame that the current page is loaded in.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History)
 */
interface History {
    /**
     * The **\`length\`** read-only property of the History interface returns an integer representing the number of entries in the session history, including the currently loaded page.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length)
     */
    readonly length: number;
    /**
     * The **\`scrollRestoration\`** property of the History interface allows web applications to explicitly set default scroll restoration behavior on history navigation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration)
     */
    scrollRestoration: ScrollRestoration;
    /**
     * The **\`state\`** read-only property of the History interface returns a value representing the state at the top of the history stack.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state)
     */
    readonly state: any;
    /**
     * The **\`back()\`** method of the History interface causes the browser to move back one page in the session history.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back)
     */
    back(): void;
    /**
     * The **\`forward()\`** method of the History interface causes the browser to move forward one page in the session history.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward)
     */
    forward(): void;
    /**
     * The **\`go()\`** method of the History interface loads a specific page from the session history.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go)
     */
    go(delta?: number): void;
    /**
     * The **\`pushState()\`** method of the History interface adds an entry to the browser's session history stack.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState)
     */
    pushState(data: any, unused: string, url?: string | URL | null): void;
    /**
     * The **\`replaceState()\`** method of the History interface modifies the current history entry, replacing it with the state object and URL passed in the method parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/replaceState)
     */
    replaceState(data: any, unused: string, url?: string | URL | null): void;
}

declare var History: {
    prototype: History;
    new(): History;
};

/**
 * The **\`IDBCursor\`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)
 */
interface IDBCursor {
    /**
     * The **\`direction\`** read-only property of the direction of traversal of the cursor (set using section below for possible values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
     */
    readonly direction: IDBCursorDirection;
    /**
     * The **\`key\`** read-only property of the position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
     */
    readonly key: IDBValidKey;
    /**
     * The **\`primaryKey\`** read-only property of the cursor is currently being iterated or has iterated outside its range, this is set to undefined.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
     */
    readonly primaryKey: IDBValidKey;
    /**
     * The **\`request\`** read-only property of the IDBCursor interface returns the IDBRequest used to obtain the cursor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request)
     */
    readonly request: IDBRequest;
    /**
     * The **\`source\`** read-only property of the null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
     */
    readonly source: IDBObjectStore | IDBIndex;
    /**
     * The **\`advance()\`** method of the IDBCursor interface sets the number of times a cursor should move its position forward.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
     */
    advance(count: number): void;
    /**
     * The **\`continue()\`** method of the IDBCursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
     */
    continue(key?: IDBValidKey): void;
    /**
     * The **\`continuePrimaryKey()\`** method of the matches the key parameter as well as whose primary key matches the primary key parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
     */
    continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
    /**
     * The **\`delete()\`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
     */
    delete(): IDBRequest<undefined>;
    /**
     * The **\`update()\`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
     */
    update(value: any): IDBRequest<IDBValidKey>;
}

declare var IDBCursor: {
    prototype: IDBCursor;
    new(): IDBCursor;
};

/**
 * The **\`IDBCursorWithValue\`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
 */
interface IDBCursorWithValue extends IDBCursor {
    /**
     * The **\`value\`** read-only property of the whatever that is.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value)
     */
    readonly value: any;
}

declare var IDBCursorWithValue: {
    prototype: IDBCursorWithValue;
    new(): IDBCursorWithValue;
};

interface IDBDatabaseEventMap {
    "abort": Event;
    "close": Event;
    "error": Event;
    "versionchange": IDBVersionChangeEvent;
}

/**
 * The **\`IDBDatabase\`** interface of the IndexedDB API provides a connection to a database; you can use an \`IDBDatabase\` object to open a transaction on your database then create, manipulate, and delete objects (data) in that database.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
 */
interface IDBDatabase extends EventTarget {
    /**
     * The **\`name\`** read-only property of the \`IDBDatabase\` interface is a string that contains the name of the connected database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
     */
    readonly name: string;
    /**
     * The **\`objectStoreNames\`** read-only property of the list of the names of the object stores currently in the connected database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
     */
    readonly objectStoreNames: DOMStringList;
    onabort: ((this: IDBDatabase, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
    onclose: ((this: IDBDatabase, ev: Event) => any) | null;
    onerror: ((this: IDBDatabase, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */
    onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
    /**
     * The **\`version\`** property of the IDBDatabase interface is a 64-bit integer that contains the version of the connected database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
     */
    readonly version: number;
    /**
     * The **\`close()\`** method of the IDBDatabase interface returns immediately and closes the connection in a separate thread.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
     */
    close(): void;
    /**
     * The **\`createObjectStore()\`** method of the The method takes the name of the store as well as a parameter object that lets you define important optional properties.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
     */
    createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
    /**
     * The **\`deleteObjectStore()\`** method of the the connected database, along with any indexes that reference it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
     */
    deleteObjectStore(name: string): void;
    /**
     * The **\`transaction\`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
     */
    transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var IDBDatabase: {
    prototype: IDBDatabase;
    new(): IDBDatabase;
};

/**
 * The **\`IDBFactory\`** interface of the IndexedDB API lets applications asynchronously access the indexed databases.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
 */
interface IDBFactory {
    /**
     * The **\`cmp()\`** method of the IDBFactory interface compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
     */
    cmp(first: any, second: any): number;
    /**
     * The **\`databases\`** method of the IDBFactory interface returns a Promise that fulfills with an array of objects containing the name and version of all the available databases.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases)
     */
    databases(): Promise<IDBDatabaseInfo[]>;
    /**
     * The **\`deleteDatabase()\`** method of the returns an IDBOpenDBRequest object immediately, and performs the deletion operation asynchronously.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
     */
    deleteDatabase(name: string): IDBOpenDBRequest;
    /**
     * The **\`open()\`** method of the IDBFactory interface requests opening a connection to a database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)
     */
    open(name: string, version?: number): IDBOpenDBRequest;
}

declare var IDBFactory: {
    prototype: IDBFactory;
    new(): IDBFactory;
};

/**
 * \`IDBIndex\` interface of the IndexedDB API provides asynchronous access to an index in a database.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
 */
interface IDBIndex {
    /**
     * The **\`keyPath\`** property of the IDBIndex interface returns the key path of the current index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath)
     */
    readonly keyPath: string | string[];
    /**
     * The **\`multiEntry\`** read-only property of the behaves when the result of evaluating the index's key path yields an array.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry)
     */
    readonly multiEntry: boolean;
    /**
     * The **\`name\`** property of the IDBIndex interface contains a string which names the index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
     */
    name: string;
    /**
     * The **\`objectStore\`** property of the IDBIndex interface returns the object store referenced by the current index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
     */
    readonly objectStore: IDBObjectStore;
    /**
     * The **\`unique\`** read-only property returns a boolean that states whether the index allows duplicate keys.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique)
     */
    readonly unique: boolean;
    /**
     * The **\`count()\`** method of the IDBIndex interface returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)
     */
    count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
    /**
     * The **\`get()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if \`key\` is set to an If a value is found, then a structured clone of it is created and set as the \`result\` of the request object: this returns the record the key is associated with.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
     */
    get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
    /**
     * The **\`getAll()\`** method of the IDBIndex interface retrieves all objects that are inside the index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
     */
    getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
    /**
     * The **\`getAllKeys()\`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the \`result\` of the request object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
     */
    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
    /**
     * The **\`getKey()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if \`key\` is set to an If a primary key is found, it is set as the \`result\` of the request object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
     */
    getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
    /**
     * The **\`openCursor()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
     */
    openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
    /**
     * The **\`openKeyCursor()\`** method of the a separate thread, creates a cursor over the specified key range, as arranged by this index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)
     */
    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}

declare var IDBIndex: {
    prototype: IDBIndex;
    new(): IDBIndex;
};

/**
 * The **\`IDBKeyRange\`** interface of the IndexedDB API represents a continuous interval over some data type that is used for keys.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
 */
interface IDBKeyRange {
    /**
     * The **\`lower\`** read-only property of the The lower bound of the key range (can be any type.) The following example illustrates how you'd use a key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
     */
    readonly lower: any;
    /**
     * The **\`lowerOpen\`** read-only property of the lower-bound value is included in the key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
     */
    readonly lowerOpen: boolean;
    /**
     * The **\`upper\`** read-only property of the The upper bound of the key range (can be any type.) The following example illustrates how you'd use a key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
     */
    readonly upper: any;
    /**
     * The **\`upperOpen\`** read-only property of the upper-bound value is included in the key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
     */
    readonly upperOpen: boolean;
    /**
     * The \`includes()\` method of the IDBKeyRange interface returns a boolean indicating whether a specified key is inside the key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
     */
    includes(key: any): boolean;
}

declare var IDBKeyRange: {
    prototype: IDBKeyRange;
    new(): IDBKeyRange;
    /**
     * The **\`bound()\`** static method of the IDBKeyRange interface creates a new key range with the specified upper and lower bounds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
     */
    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
    /**
     * The **\`lowerBound()\`** static method of the By default, it includes the lower endpoint value and is closed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
     */
    lowerBound(lower: any, open?: boolean): IDBKeyRange;
    /**
     * The **\`only()\`** static method of the IDBKeyRange interface creates a new key range containing a single value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
     */
    only(value: any): IDBKeyRange;
    /**
     * The **\`upperBound()\`** static method of the it includes the upper endpoint value and is closed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
     */
    upperBound(upper: any, open?: boolean): IDBKeyRange;
};

/**
 * The **\`IDBObjectStore\`** interface of the IndexedDB API represents an object store in a database.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
 */
interface IDBObjectStore {
    /**
     * The **\`autoIncrement\`** read-only property of the for this object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
     */
    readonly autoIncrement: boolean;
    /**
     * The **\`indexNames\`** read-only property of the in this object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
     */
    readonly indexNames: DOMStringList;
    /**
     * The **\`keyPath\`** read-only property of the If this property is null, the application must provide a key for each modification operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
     */
    readonly keyPath: string | string[] | null;
    /**
     * The **\`name\`** property of the IDBObjectStore interface indicates the name of this object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
     */
    name: string;
    /**
     * The **\`transaction\`** read-only property of the object store belongs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)
     */
    readonly transaction: IDBTransaction;
    /**
     * The **\`add()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
     */
    add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
    /**
     * The **\`clear()\`** method of the IDBObjectStore interface creates and immediately returns an IDBRequest object, and clears this object store in a separate thread.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
     */
    clear(): IDBRequest<undefined>;
    /**
     * The **\`count()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or of records in the store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
     */
    count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
    /**
     * The **\`createIndex()\`** method of the field/column defining a new data point for each database record to contain.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
     */
    createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
    /**
     * The **\`delete()\`** method of the and, in a separate thread, deletes the specified record or records.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
     */
    delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
    /**
     * The **\`deleteIndex()\`** method of the the connected database, used during a version upgrade.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
     */
    deleteIndex(name: string): void;
    /**
     * The **\`get()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the object selected by the specified key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
     */
    get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
    /**
     * The **\`getAll()\`** method of the containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
     */
    getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
    /**
     * The \`getAllKeys()\` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
     */
    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
    /**
     * The **\`getKey()\`** method of the and, in a separate thread, returns the key selected by the specified query.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
     */
    getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
    /**
     * The **\`index()\`** method of the IDBObjectStore interface opens a named index in the current object store, after which it can be used to, for example, return a series of records sorted by that index using a cursor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index)
     */
    index(name: string): IDBIndex;
    /**
     * The **\`openCursor()\`** method of the and, in a separate thread, returns a new IDBCursorWithValue object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
     */
    openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
    /**
     * The **\`openKeyCursor()\`** method of the whose result will be set to an IDBCursor that can be used to iterate through matching results.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
     */
    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
    /**
     * The **\`put()\`** method of the IDBObjectStore interface updates a given record in a database, or inserts a new record if the given item does not already exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)
     */
    put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}

declare var IDBObjectStore: {
    prototype: IDBObjectStore;
    new(): IDBObjectStore;
};

interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
    "blocked": IDBVersionChangeEvent;
    "upgradeneeded": IDBVersionChangeEvent;
}

/**
 * The **\`IDBOpenDBRequest\`** interface of the IndexedDB API provides access to the results of requests to open or delete databases (performed using IDBFactory.open and IDBFactory.deleteDatabase), using specific event handler attributes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)
 */
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */
    onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */
    onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var IDBOpenDBRequest: {
    prototype: IDBOpenDBRequest;
    new(): IDBOpenDBRequest;
};

interface IDBRequestEventMap {
    "error": Event;
    "success": Event;
}

/**
 * The **\`IDBRequest\`** interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
 */
interface IDBRequest<T = any> extends EventTarget {
    /**
     * The **\`error\`** read-only property of the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)
     */
    readonly error: DOMException | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */
    onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */
    onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
    /**
     * The **\`readyState\`** read-only property of the Every request starts in the \`pending\` state.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
     */
    readonly readyState: IDBRequestReadyState;
    /**
     * The **\`result\`** read-only property of the any - \`InvalidStateError\` DOMException - : Thrown when attempting to access the property if the request is not completed, and therefore the result is not available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
     */
    readonly result: T;
    /**
     * The **\`source\`** read-only property of the Index or an object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
     */
    readonly source: IDBObjectStore | IDBIndex | IDBCursor;
    /**
     * The **\`transaction\`** read-only property of the IDBRequest interface returns the transaction for the request, that is, the transaction the request is being made inside.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)
     */
    readonly transaction: IDBTransaction | null;
    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var IDBRequest: {
    prototype: IDBRequest;
    new(): IDBRequest;
};

interface IDBTransactionEventMap {
    "abort": Event;
    "complete": Event;
    "error": Event;
}

/**
 * The **\`IDBTransaction\`** interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction)
 */
interface IDBTransaction extends EventTarget {
    /**
     * The **\`db\`** read-only property of the IDBTransaction interface returns the database connection with which this transaction is associated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
     */
    readonly db: IDBDatabase;
    /**
     * The **\`durability\`** read-only property of the IDBTransaction interface returns the durability hint the transaction was created with.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability)
     */
    readonly durability: IDBTransactionDurability;
    /**
     * The **\`IDBTransaction.error\`** property of the IDBTransaction interface returns the type of error when there is an unsuccessful transaction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
     */
    readonly error: DOMException | null;
    /**
     * The **\`mode\`** read-only property of the data in the object stores in the scope of the transaction (i.e., is the mode to be read-only, or do you want to write to the object stores?) The default value is \`readonly\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
     */
    readonly mode: IDBTransactionMode;
    /**
     * The **\`objectStoreNames\`** read-only property of the of IDBObjectStore objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
     */
    readonly objectStoreNames: DOMStringList;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
    onabort: ((this: IDBTransaction, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */
    oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */
    onerror: ((this: IDBTransaction, ev: Event) => any) | null;
    /**
     * The **\`abort()\`** method of the IDBTransaction interface rolls back all the changes to objects in the database associated with this transaction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
     */
    abort(): void;
    /**
     * The **\`commit()\`** method of the IDBTransaction interface commits the transaction if it is called on an active transaction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit)
     */
    commit(): void;
    /**
     * The **\`objectStore()\`** method of the added to the scope of this transaction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)
     */
    objectStore(name: string): IDBObjectStore;
    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var IDBTransaction: {
    prototype: IDBTransaction;
    new(): IDBTransaction;
};

/**
 * The **\`IDBVersionChangeEvent\`** interface of the IndexedDB API indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.upgradeneeded_event event handler function.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
 */
interface IDBVersionChangeEvent extends Event {
    /**
     * The **\`newVersion\`** read-only property of the database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion)
     */
    readonly newVersion: number | null;
    /**
     * The **\`oldVersion\`** read-only property of the database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion)
     */
    readonly oldVersion: number;
}

declare var IDBVersionChangeEvent: {
    prototype: IDBVersionChangeEvent;
    new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};

/**
 * The **\`IIRFilterNode\`** interface of the Web Audio API is a AudioNode processor which implements a general **infinite impulse response** (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
 */
interface IIRFilterNode extends AudioNode {
    /**
     * The \`getFrequencyResponse()\` method of the IIRFilterNode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse)
     */
    getFrequencyResponse(frequencyHz: Float32Array<ArrayBuffer>, magResponse: Float32Array<ArrayBuffer>, phaseResponse: Float32Array<ArrayBuffer>): void;
}

declare var IIRFilterNode: {
    prototype: IIRFilterNode;
    new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
};

/**
 * The \`IdleDeadline\` interface is used as the data type of the input parameter to idle callbacks established by calling Window.requestIdleCallback().
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline)
 */
interface IdleDeadline {
    /**
     * The read-only **\`didTimeout\`** property on the **IdleDeadline** interface is a Boolean value which indicates whether or not the idle callback is being invoked because the timeout interval specified when Window.requestIdleCallback() was called has expired.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout)
     */
    readonly didTimeout: boolean;
    /**
     * The **\`timeRemaining()\`** method on the IdleDeadline interface returns the estimated number of milliseconds remaining in the current idle period.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining)
     */
    timeRemaining(): DOMHighResTimeStamp;
}

declare var IdleDeadline: {
    prototype: IdleDeadline;
    new(): IdleDeadline;
};

/**
 * The **\`ImageBitmap\`** interface represents a bitmap image which can be drawn to a canvas without undue latency.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap)
 */
interface ImageBitmap {
    /**
     * The **\`ImageBitmap.height\`** read-only property returns the ImageBitmap object's height in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
     */
    readonly height: number;
    /**
     * The **\`ImageBitmap.width\`** read-only property returns the ImageBitmap object's width in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
     */
    readonly width: number;
    /**
     * The **\`ImageBitmap.close()\`** method disposes of all graphical resources associated with an \`ImageBitmap\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
     */
    close(): void;
}

declare var ImageBitmap: {
    prototype: ImageBitmap;
    new(): ImageBitmap;
};

/**
 * The **\`ImageBitmapRenderingContext\`** interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given ImageBitmap.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext)
 */
interface ImageBitmapRenderingContext {
    /**
     * The **\`ImageBitmapRenderingContext.canvas\`** property, part of the Canvas API, is a read-only reference to the A HTMLCanvasElement or OffscreenCanvas object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas)
     */
    readonly canvas: HTMLCanvasElement | OffscreenCanvas;
    /**
     * The **\`ImageBitmapRenderingContext.transferFromImageBitmap()\`** method displays the given ImageBitmap in the canvas associated with this rendering context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
     */
    transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}

declare var ImageBitmapRenderingContext: {
    prototype: ImageBitmapRenderingContext;
    new(): ImageBitmapRenderingContext;
};

/**
 * The **\`ImageCapture\`** interface of the MediaStream Image Capture API provides methods to enable the capture of images or photos from a camera or other photographic device.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture)
 */
interface ImageCapture {
    /**
     * The **\`track\`** read-only property of the A MediaStreamTrack object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/track)
     */
    readonly track: MediaStreamTrack;
    /**
     * The **\`getPhotoCapabilities()\`** method of the ImageCapture interface returns a Promise that resolves with an object containing the ranges of available configuration options.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoCapabilities)
     */
    getPhotoCapabilities(): Promise<PhotoCapabilities>;
    /**
     * The **\`getPhotoSettings()\`** method of the ImageCapture interface returns a Promise that resolves with an object containing the current photo configuration settings.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/getPhotoSettings)
     */
    getPhotoSettings(): Promise<PhotoSettings>;
    /**
     * The **\`takePhoto()\`** method of the device sourcing a MediaStreamTrack and returns a Promise that resolves with a Blob containing the data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageCapture/takePhoto)
     */
    takePhoto(photoSettings?: PhotoSettings): Promise<Blob>;
}

declare var ImageCapture: {
    prototype: ImageCapture;
    new(videoTrack: MediaStreamTrack): ImageCapture;
};

/**
 * The **\`ImageData\`** interface represents the underlying pixel data of an area of a canvas element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
 */
interface ImageData {
    /**
     * The read-only **\`ImageData.colorSpace\`** property is a string indicating the color space of the image data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace)
     */
    readonly colorSpace: PredefinedColorSpace;
    /**
     * The readonly **\`ImageData.data\`** property returns a pixel data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
     */
    readonly data: ImageDataArray;
    /**
     * The readonly **\`ImageData.height\`** property returns the number of rows in the ImageData object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
     */
    readonly height: number;
    /**
     * The readonly **\`ImageData.width\`** property returns the number of pixels per row in the ImageData object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)
     */
    readonly width: number;
}

declare var ImageData: {
    prototype: ImageData;
    new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
    new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

/**
 * The **\`ImageDecoder\`** interface of the WebCodecs API provides a way to unpack and decode encoded image data.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)
 */
interface ImageDecoder {
    /**
     * The **\`complete\`** read-only property of the ImageDecoder interface returns true if encoded data has completed buffering.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete)
     */
    readonly complete: boolean;
    /**
     * The **\`completed\`** read-only property of the ImageDecoder interface returns a promise that resolves once encoded data has finished buffering.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed)
     */
    readonly completed: Promise<void>;
    /**
     * The **\`tracks\`** read-only property of the ImageDecoder interface returns a list of the tracks in the encoded image data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks)
     */
    readonly tracks: ImageTrackList;
    /**
     * The **\`type\`** read-only property of the ImageDecoder interface reflects the MIME type configured during construction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type)
     */
    readonly type: string;
    /**
     * The **\`close()\`** method of the ImageDecoder interface ends all pending work and releases system resources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close)
     */
    close(): void;
    /**
     * The **\`decode()\`** method of the ImageDecoder interface enqueues a control message to decode the frame of an image.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode)
     */
    decode(options?: ImageDecodeOptions): Promise<ImageDecodeResult>;
    /**
     * The **\`reset()\`** method of the ImageDecoder interface aborts all pending \`decode()\` operations; rejecting all pending promises.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset)
     */
    reset(): void;
}

declare var ImageDecoder: {
    prototype: ImageDecoder;
    new(init: ImageDecoderInit): ImageDecoder;
    /**
     * The **\`ImageDecoder.isTypeSupported()\`** static method checks if a given MIME type can be decoded by the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static)
     */
    isTypeSupported(type: string): Promise<boolean>;
};

/**
 * The **\`ImageTrack\`** interface of the WebCodecs API represents an individual image track.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)
 */
interface ImageTrack {
    /**
     * The **\`animated\`** property of the ImageTrack interface returns \`true\` if the track is animated and therefore has multiple frames.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated)
     */
    readonly animated: boolean;
    /**
     * The **\`frameCount\`** property of the ImageTrack interface returns the number of frames in the track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount)
     */
    readonly frameCount: number;
    /**
     * The **\`repetitionCount\`** property of the ImageTrack interface returns the number of repetitions of this track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount)
     */
    readonly repetitionCount: number;
    /**
     * The **\`selected\`** property of the ImageTrack interface returns \`true\` if the track is selected for decoding.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected)
     */
    selected: boolean;
}

declare var ImageTrack: {
    prototype: ImageTrack;
    new(): ImageTrack;
};

/**
 * The **\`ImageTrackList\`** interface of the WebCodecs API represents a list of image tracks.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)
 */
interface ImageTrackList {
    /**
     * The **\`length\`** property of the ImageTrackList interface returns the length of the \`ImageTrackList\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length)
     */
    readonly length: number;
    /**
     * The **\`ready\`** property of the ImageTrackList interface returns a Promise that resolves when the \`ImageTrackList\` is populated with ImageTrack.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready)
     */
    readonly ready: Promise<void>;
    /**
     * The **\`selectedIndex\`** property of the ImageTrackList interface returns the \`index\` of the selected track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex)
     */
    readonly selectedIndex: number;
    /**
     * The **\`selectedTrack\`** property of the ImageTrackList interface returns an ImageTrack object representing the currently selected track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack)
     */
    readonly selectedTrack: ImageTrack | null;
    [index: number]: ImageTrack;
}

declare var ImageTrackList: {
    prototype: ImageTrackList;
    new(): ImageTrackList;
};

interface ImportMeta {
    url: string;
    resolve(specifier: string): string;
}

/**
 * The **\`InputDeviceInfo\`** interface of the Media Capture and Streams API gives access to the capabilities of the input device that it represents.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)
 */
interface InputDeviceInfo extends MediaDeviceInfo {
    /**
     * The **\`getCapabilities()\`** method of the InputDeviceInfo interface returns a \`MediaTrackCapabilities\` object describing the primary audio or video track of the device's MediaStream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities)
     */
    getCapabilities(): MediaTrackCapabilities;
}

declare var InputDeviceInfo: {
    prototype: InputDeviceInfo;
    new(): InputDeviceInfo;
};

/**
 * The **\`InputEvent\`** interface represents an event notifying the user of editable content changes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent)
 */
interface InputEvent extends UIEvent {
    /**
     * The **\`data\`** read-only property of the characters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data)
     */
    readonly data: string | null;
    /**
     * The **\`dataTransfer\`** read-only property of the containing information about richtext or plaintext data being added to or removed from editable content.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer)
     */
    readonly dataTransfer: DataTransfer | null;
    /**
     * The **\`inputType\`** read-only property of the Possible changes include for example inserting, deleting, and formatting text.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType)
     */
    readonly inputType: string;
    /**
     * The **\`InputEvent.isComposing\`** read-only property returns a boolean value indicating if the event is fired after A boolean.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing)
     */
    readonly isComposing: boolean;
    /**
     * The **\`getTargetRanges()\`** method of the InputEvent interface returns an array of StaticRange objects that will be affected by a change to the DOM if the input event is not canceled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges)
     */
    getTargetRanges(): StaticRange[];
}

declare var InputEvent: {
    prototype: InputEvent;
    new(type: string, eventInitDict?: InputEventInit): InputEvent;
};

/**
 * The **\`IntersectionObserver\`** interface of the Intersection Observer API provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver)
 */
interface IntersectionObserver {
    /**
     * The IntersectionObserver interface's read-only **\`root\`** property identifies the Element or of the viewport for the element which is the observer's target.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root)
     */
    readonly root: Element | Document | null;
    /**
     * The IntersectionObserver interface's read-only **\`rootMargin\`** property is a string with syntax similar to that of the CSS margin property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin)
     */
    readonly rootMargin: string;
    /**
     * The IntersectionObserver interface's read-only **\`thresholds\`** property returns the list of intersection thresholds that was specified when the observer was instantiated with only one threshold ratio was provided when instantiating the object, this will be an array containing that single value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds)
     */
    readonly thresholds: ReadonlyArray<number>;
    /**
     * The IntersectionObserver method **\`disconnect()\`** stops watching all of its target elements for visibility changes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect)
     */
    disconnect(): void;
    /**
     * The IntersectionObserver method **\`observe()\`** adds an element to the set of target elements being watched by the \`IntersectionObserver\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe)
     */
    observe(target: Element): void;
    /**
     * The IntersectionObserver method **\`takeRecords()\`** returns an array of has experienced an intersection change since the last time the intersections were checked, either explicitly through a call to this method or implicitly by an automatic call to the observer's callback.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords)
     */
    takeRecords(): IntersectionObserverEntry[];
    /**
     * The IntersectionObserver method **\`unobserve()\`** instructs the \`IntersectionObserver\` to stop observing the specified target element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve)
     */
    unobserve(target: Element): void;
}

declare var IntersectionObserver: {
    prototype: IntersectionObserver;
    new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
};

/**
 * The **\`IntersectionObserverEntry\`** interface of the Intersection Observer API describes the intersection between the target element and its root container at a specific moment of transition.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry)
 */
interface IntersectionObserverEntry {
    /**
     * The IntersectionObserverEntry interface's read-only **\`boundingClientRect\`** property returns a smallest rectangle that contains the entire target element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect)
     */
    readonly boundingClientRect: DOMRectReadOnly;
    /**
     * The IntersectionObserverEntry interface's read-only **\`intersectionRatio\`** property tells you how much of the target element is currently visible within the root's intersection ratio, as a value between 0.0 and 1.0.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio)
     */
    readonly intersectionRatio: number;
    /**
     * The IntersectionObserverEntry interface's read-only **\`intersectionRect\`** property is a contains the entire portion of the target element which is currently visible within the intersection root.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect)
     */
    readonly intersectionRect: DOMRectReadOnly;
    /**
     * The IntersectionObserverEntry interface's read-only **\`isIntersecting\`** property is a Boolean value which is \`true\` if the target element intersects with the intersection observer's root.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting)
     */
    readonly isIntersecting: boolean;
    /**
     * The IntersectionObserverEntry interface's read-only **\`rootBounds\`** property is a rectangle, offset by the IntersectionObserver.rootMargin if one is specified.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds)
     */
    readonly rootBounds: DOMRectReadOnly | null;
    /**
     * The IntersectionObserverEntry interface's read-only **\`target\`** property indicates which targeted root.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target)
     */
    readonly target: Element;
    /**
     * The IntersectionObserverEntry interface's read-only **\`time\`** property is a change occurred relative to the time at which the document was created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time)
     */
    readonly time: DOMHighResTimeStamp;
}

declare var IntersectionObserverEntry: {
    prototype: IntersectionObserverEntry;
    new(): IntersectionObserverEntry;
};

/**
 * The **\`KHR_parallel_shader_compile\`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (\`COMPLETION_STATUS_KHR\`) can be queried without potentially incurring stalls.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile)
 */
interface KHR_parallel_shader_compile {
    readonly COMPLETION_STATUS_KHR: 0x91B1;
}

/**
 * **\`KeyboardEvent\`** objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)
 */
interface KeyboardEvent extends UIEvent {
    /**
     * The **\`KeyboardEvent.altKey\`** read-only property is a boolean value that indicates if the <kbd>alt</kbd> key (<kbd>Option</kbd> or <kbd>⌥</kbd> on macOS) was pressed (\`true\`) or not (\`false\`) when the event occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey)
     */
    readonly altKey: boolean;
    /**
     * The **\`charCode\`** read-only property of the pressed during a Element/keypress_event event.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode)
     */
    readonly charCode: number;
    /**
     * The \`KeyboardEvent.code\` property represents a physical key on the keyboard (as opposed to the character generated by pressing the key).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code)
     */
    readonly code: string;
    /**
     * The **\`KeyboardEvent.ctrlKey\`** read-only property returns a boolean value that indicates if the <kbd>control</kbd> key was pressed (\`true\`) or not (\`false\`) when the event occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey)
     */
    readonly ctrlKey: boolean;
    /**
     * The **\`KeyboardEvent.isComposing\`** read-only property returns a boolean value indicating if the event is fired within a composition session, i.e., after Element/compositionstart_event and before Element/compositionend_event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing)
     */
    readonly isComposing: boolean;
    /**
     * The KeyboardEvent interface's **\`key\`** read-only property returns the value of the key pressed by the user, taking into consideration the state of modifier keys such as <kbd>Shift</kbd> as well as the keyboard locale and layout.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key)
     */
    readonly key: string;
    /**
     * The deprecated **\`KeyboardEvent.keyCode\`** read-only property represents a system and implementation dependent numerical code identifying the unmodified value of the pressed key.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode)
     */
    readonly keyCode: number;
    /**
     * The **\`KeyboardEvent.location\`** read-only property returns an \`unsigned long\` representing the location of the key on the keyboard or other input device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location)
     */
    readonly location: number;
    /**
     * The **\`KeyboardEvent.metaKey\`** read-only property returning a boolean value that indicates if the <kbd>Meta</kbd> key was pressed (\`true\`) or not (\`false\`) when the event occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey)
     */
    readonly metaKey: boolean;
    /**
     * The **\`repeat\`** read-only property of the \`true\` if the given key is being held down such that it is automatically repeating.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat)
     */
    readonly repeat: boolean;
    /**
     * The **\`KeyboardEvent.shiftKey\`** read-only property is a boolean value that indicates if the <kbd>shift</kbd> key was pressed (\`true\`) or not (\`false\`) when the event occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey)
     */
    readonly shiftKey: boolean;
    /**
     * The **\`KeyboardEvent.getModifierState()\`** method returns the current state of the specified modifier key: \`true\` if the modifier is active (that is the modifier key is pressed or locked), otherwise, \`false\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState)
     */
    getModifierState(keyArg: string): boolean;
    /**
     * The **\`KeyboardEvent.initKeyboardEvent()\`** method initializes the attributes of a keyboard event object.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/initKeyboardEvent)
     */
    initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
    readonly DOM_KEY_LOCATION_STANDARD: 0x00;
    readonly DOM_KEY_LOCATION_LEFT: 0x01;
    readonly DOM_KEY_LOCATION_RIGHT: 0x02;
    readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
}

declare var KeyboardEvent: {
    prototype: KeyboardEvent;
    new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
    readonly DOM_KEY_LOCATION_STANDARD: 0x00;
    readonly DOM_KEY_LOCATION_LEFT: 0x01;
    readonly DOM_KEY_LOCATION_RIGHT: 0x02;
    readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
};

/**
 * The **\`KeyframeEffect\`** interface of the Web Animations API lets us create sets of animatable properties and values, called **keyframes.** These can then be played using the Animation.Animation constructor.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect)
 */
interface KeyframeEffect extends AnimationEffect {
    /**
     * The **\`composite\`** property of a KeyframeEffect resolves how an element's animation impacts its underlying property values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite)
     */
    composite: CompositeOperation;
    /**
     * The **\`iterationComposite\`** property of a KeyframeEffect resolves how the animation's property value changes accumulate or override each other upon each of the animation's iterations.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite)
     */
    iterationComposite: IterationCompositeOperation;
    /**
     * The **\`pseudoElement\`** property of a KeyframeEffect interface is a string representing the pseudo-element being animated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement)
     */
    pseudoElement: string | null;
    /**
     * The **\`target\`** property of a KeyframeEffect interface represents the element or pseudo-element being animated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target)
     */
    target: Element | null;
    /**
     * The **\`getKeyframes()\`** method of a KeyframeEffect returns an Array of the computed keyframes that make up this animation along with their computed offsets.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes)
     */
    getKeyframes(): ComputedKeyframe[];
    /**
     * The **\`setKeyframes()\`** method of the KeyframeEffect interface replaces the keyframes that make up the affected \`KeyframeEffect\` with a new set of keyframes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/setKeyframes)
     */
    setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
}

declare var KeyframeEffect: {
    prototype: KeyframeEffect;
    new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
    new(source: KeyframeEffect): KeyframeEffect;
};

/**
 * The \`LargestContentfulPaint\` interface provides timing information about the largest image or text paint before user input on a web page.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint)
 */
interface LargestContentfulPaint extends PerformanceEntry {
    /**
     * The **\`element\`** read-only property of the LargestContentfulPaint interface returns an object representing the Element that is the largest contentful paint.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element)
     */
    readonly element: Element | null;
    /**
     * The **\`id\`** read-only property of the LargestContentfulPaint interface returns the ID of the element that is the largest contentful paint.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id)
     */
    readonly id: string;
    /**
     * The **\`loadTime\`** read-only property of the LargestContentfulPaint interface returns the time that the element was loaded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime)
     */
    readonly loadTime: DOMHighResTimeStamp;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */
    readonly renderTime: DOMHighResTimeStamp;
    /**
     * The **\`size\`** read-only property of the LargestContentfulPaint interface returns the intrinsic size of the element that is the largest contentful paint.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size)
     */
    readonly size: number;
    /**
     * The **\`url\`** read-only property of the LargestContentfulPaint interface returns the request URL of the element, if the element is an image.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url)
     */
    readonly url: string;
    /**
     * The **\`toJSON()\`** method of the LargestContentfulPaint interface is a Serialization; it returns a JSON representation of the LargestContentfulPaint object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON)
     */
    toJSON(): any;
}

declare var LargestContentfulPaint: {
    prototype: LargestContentfulPaint;
    new(): LargestContentfulPaint;
};

interface LinkStyle {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */
    readonly sheet: CSSStyleSheet | null;
}

/**
 * The **\`Location\`** interface represents the location (URL) of the object it is linked to.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location)
 */
interface Location {
    /**
     * The **\`ancestorOrigins\`** read-only property of the Location interface is a static browsing contexts of the document associated with the given Location object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins)
     */
    readonly ancestorOrigins: DOMStringList;
    /**
     * The **\`hash\`** property of the Location interface is a string containing a \`'#'\` followed by the fragment identifier of the location URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash)
     */
    hash: string;
    /**
     * The **\`host\`** property of the Location interface is a string containing the host, which is the Location.hostname, and then, if the port of the URL is nonempty, a \`':'\`, followed by the Location.port of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host)
     */
    host: string;
    /**
     * The **\`hostname\`** property of the Location interface is a string containing either the domain name or IP address of the location URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname)
     */
    hostname: string;
    /**
     * The **\`href\`** property of the Location interface is a stringifier that returns a string containing the whole URL, and allows the href to be updated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href)
     */
    href: string;
    toString(): string;
    /**
     * The **\`origin\`** read-only property of the Location interface returns a string containing the Unicode serialization of the origin of the location's URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/origin)
     */
    readonly origin: string;
    /**
     * The **\`pathname\`** property of the Location interface is a string containing the path of the URL for the location.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname)
     */
    pathname: string;
    /**
     * The **\`port\`** property of the Location interface is a string containing the port number of the location's URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port)
     */
    port: string;
    /**
     * The **\`protocol\`** property of the Location interface is a string containing the protocol or scheme of the location's URL, including the final \`':'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol)
     */
    protocol: string;
    /**
     * The **\`search\`** property of the Location interface is a search string, also called a _query string_, that is a string containing a \`'?'\` followed by the parameters of the location's URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search)
     */
    search: string;
    /**
     * The **\`assign()\`** method of the Location interface causes the window to load and display the document at the URL specified.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign)
     */
    assign(url: string | URL): void;
    /**
     * The **\`reload()\`** method of the Location interface reloads the current URL, like the Refresh button.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload)
     */
    reload(): void;
    /**
     * The **\`replace()\`** method of the Location interface replaces the current resource with the one at the provided URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/replace)
     */
    replace(url: string | URL): void;
}

declare var Location: {
    prototype: Location;
    new(): Location;
};

/**
 * The **\`Lock\`** interface of the Web Locks API provides the name and mode of a lock.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
 */
interface Lock {
    /**
     * The **\`mode\`** read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode)
     */
    readonly mode: LockMode;
    /**
     * The **\`name\`** read-only property of the Lock interface returns the _name_ passed to The name of a lock is passed by script when the lock is requested.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name)
     */
    readonly name: string;
}

declare var Lock: {
    prototype: Lock;
    new(): Lock;
};

/**
 * The **\`LockManager\`** interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing \`Lock\` object.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
 */
interface LockManager {
    /**
     * The **\`query()\`** method of the LockManager interface returns a Promise that resolves with an object containing information about held and pending locks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query)
     */
    query(): Promise<LockManagerSnapshot>;
    /**
     * The **\`request()\`** method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
     */
    request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
    request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
}

declare var LockManager: {
    prototype: LockManager;
    new(): LockManager;
};

interface MIDIAccessEventMap {
    "statechange": MIDIConnectionEvent;
}

/**
 * The **\`MIDIAccess\`** interface of the Web MIDI API provides methods for listing MIDI input and output devices, and obtaining access to those devices.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess)
 */
interface MIDIAccess extends EventTarget {
    /**
     * The **\`inputs\`** read-only property of the MIDIAccess interface provides access to any available MIDI input ports.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs)
     */
    readonly inputs: MIDIInputMap;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */
    onstatechange: ((this: MIDIAccess, ev: MIDIConnectionEvent) => any) | null;
    /**
     * The **\`outputs\`** read-only property of the MIDIAccess interface provides access to any available MIDI output ports.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs)
     */
    readonly outputs: MIDIOutputMap;
    /**
     * The **\`sysexEnabled\`** read-only property of the MIDIAccess interface indicates whether system exclusive support is enabled on the current MIDIAccess instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled)
     */
    readonly sysexEnabled: boolean;
    addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MIDIAccess: {
    prototype: MIDIAccess;
    new(): MIDIAccess;
};

/**
 * The **\`MIDIConnectionEvent\`** interface of the Web MIDI API is the event passed to the MIDIAccess.statechange_event event of the MIDIAccess interface and the MIDIPort.statechange_event event of the MIDIPort interface.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)
 */
interface MIDIConnectionEvent extends Event {
    /**
     * The **\`port\`** read-only property of the MIDIConnectionEvent interface returns the port that has been disconnected or connected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port)
     */
    readonly port: MIDIPort | null;
}

declare var MIDIConnectionEvent: {
    prototype: MIDIConnectionEvent;
    new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
};

interface MIDIInputEventMap extends MIDIPortEventMap {
    "midimessage": MIDIMessageEvent;
}

/**
 * The **\`MIDIInput\`** interface of the Web MIDI API receives messages from a MIDI input port.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput)
 */
interface MIDIInput extends MIDIPort {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */
    onmidimessage: ((this: MIDIInput, ev: MIDIMessageEvent) => any) | null;
    addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MIDIInput: {
    prototype: MIDIInput;
    new(): MIDIInput;
};

/**
 * The **\`MIDIInputMap\`** read-only interface of the Web MIDI API provides the set of MIDI input ports that are currently available.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap)
 */
interface MIDIInputMap {
    forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
}

declare var MIDIInputMap: {
    prototype: MIDIInputMap;
    new(): MIDIInputMap;
};

/**
 * The **\`MIDIMessageEvent\`** interface of the Web MIDI API represents the event passed to the MIDIInput.midimessage_event event of the MIDIInput interface.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent)
 */
interface MIDIMessageEvent extends Event {
    /**
     * The **\`data\`** read-only property of the MIDIMessageEvent interface returns the MIDI data bytes of a single MIDI message.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data)
     */
    readonly data: Uint8Array<ArrayBuffer> | null;
}

declare var MIDIMessageEvent: {
    prototype: MIDIMessageEvent;
    new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
};

/**
 * The **\`MIDIOutput\`** interface of the Web MIDI API provides methods to add messages to the queue of an output device, and to clear the queue of messages.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput)
 */
interface MIDIOutput extends MIDIPort {
    /**
     * The **\`send()\`** method of the MIDIOutput interface queues messages for the corresponding MIDI port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send)
     */
    send(data: number[], timestamp?: DOMHighResTimeStamp): void;
    addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MIDIOutput: {
    prototype: MIDIOutput;
    new(): MIDIOutput;
};

/**
 * The **\`MIDIOutputMap\`** read-only interface of the Web MIDI API provides the set of MIDI output ports that are currently available.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap)
 */
interface MIDIOutputMap {
    forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
}

declare var MIDIOutputMap: {
    prototype: MIDIOutputMap;
    new(): MIDIOutputMap;
};

interface MIDIPortEventMap {
    "statechange": MIDIConnectionEvent;
}

/**
 * The **\`MIDIPort\`** interface of the Web MIDI API represents a MIDI input or output port.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort)
 */
interface MIDIPort extends EventTarget {
    /**
     * The **\`connection\`** read-only property of the MIDIPort interface returns the connection state of the port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection)
     */
    readonly connection: MIDIPortConnectionState;
    /**
     * The **\`id\`** read-only property of the MIDIPort interface returns the unique ID of the port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id)
     */
    readonly id: string;
    /**
     * The **\`manufacturer\`** read-only property of the MIDIPort interface returns the manufacturer of the port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer)
     */
    readonly manufacturer: string | null;
    /**
     * The **\`name\`** read-only property of the MIDIPort interface returns the system name of the port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name)
     */
    readonly name: string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */
    onstatechange: ((this: MIDIPort, ev: MIDIConnectionEvent) => any) | null;
    /**
     * The **\`state\`** read-only property of the MIDIPort interface returns the state of the port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state)
     */
    readonly state: MIDIPortDeviceState;
    /**
     * The **\`type\`** read-only property of the MIDIPort interface returns the type of the port, indicating whether this is an input or output MIDI port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type)
     */
    readonly type: MIDIPortType;
    /**
     * The **\`version\`** read-only property of the MIDIPort interface returns the version of the port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version)
     */
    readonly version: string | null;
    /**
     * The **\`close()\`** method of the MIDIPort interface makes the access to the MIDI device connected to this \`MIDIPort\` unavailable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close)
     */
    close(): Promise<MIDIPort>;
    /**
     * The **\`open()\`** method of the MIDIPort interface makes the MIDI device connected to this \`MIDIPort\` explicitly available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/open)
     */
    open(): Promise<MIDIPort>;
    addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MIDIPort: {
    prototype: MIDIPort;
    new(): MIDIPort;
};

interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}

/**
 * The **\`MathMLElement\`** interface represents any MathML element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement)
 */
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
    addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MathMLElement: {
    prototype: MathMLElement;
    new(): MathMLElement;
};

/**
 * The **\`MediaCapabilities\`** interface of the Media Capabilities API provides information about the decoding abilities of the device, system and browser.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities)
 */
interface MediaCapabilities {
    /**
     * The **\`decodingInfo()\`** method of the MediaCapabilities interface returns a promise that fulfils with information about how well the user agent can decode/display media with a given configuration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo)
     */
    decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
    /**
     * The **\`encodingInfo()\`** method of the MediaCapabilities interface returns a promise that fulfills with the tested media configuration's capabilities for encoding media.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo)
     */
    encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}

declare var MediaCapabilities: {
    prototype: MediaCapabilities;
    new(): MediaCapabilities;
};

/**
 * The **\`MediaDeviceInfo\`** interface of the Media Capture and Streams API contains information that describes a single media input or output device.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo)
 */
interface MediaDeviceInfo {
    /**
     * The **\`deviceId\`** read-only property of the MediaDeviceInfo interface returns a string that is an identifier for the represented device and is persisted across sessions.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId)
     */
    readonly deviceId: string;
    /**
     * The **\`groupId\`** read-only property of the MediaDeviceInfo interface returns a string that is a group identifier.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId)
     */
    readonly groupId: string;
    /**
     * The **\`kind\`** read-only property of the MediaDeviceInfo interface returns an enumerated value, that is either \`'videoinput'\`, \`'audioinput'\` or \`'audiooutput'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind)
     */
    readonly kind: MediaDeviceKind;
    /**
     * The **\`label\`** read-only property of the MediaDeviceInfo interface returns a string describing this device (for example 'External USB Webcam').
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label)
     */
    readonly label: string;
    /**
     * The **\`toJSON()\`** method of the MediaDeviceInfo interface is a Serialization; it returns a JSON representation of the MediaDeviceInfo object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON)
     */
    toJSON(): any;
}

declare var MediaDeviceInfo: {
    prototype: MediaDeviceInfo;
    new(): MediaDeviceInfo;
};

interface MediaDevicesEventMap {
    "devicechange": Event;
}

/**
 * The **\`MediaDevices\`** interface of the Media Capture and Streams API provides access to connected media input devices like cameras and microphones, as well as screen sharing.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices)
 */
interface MediaDevices extends EventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/devicechange_event) */
    ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
    /**
     * The **\`enumerateDevices()\`** method of the MediaDevices interface requests a list of the currently available media input and output devices, such as microphones, cameras, headsets, and so forth.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices)
     */
    enumerateDevices(): Promise<MediaDeviceInfo[]>;
    /**
     * The **\`getDisplayMedia()\`** method of the MediaDevices interface prompts the user to select and grant permission to capture the contents of a display or portion thereof (such as a window) as a MediaStream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia)
     */
    getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
    /**
     * The **\`getSupportedConstraints()\`** method of the MediaDevices interface returns an object based on the MediaTrackSupportedConstraints dictionary, whose member fields each specify one of the constrainable properties the user agent understands.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints)
     */
    getSupportedConstraints(): MediaTrackSupportedConstraints;
    /**
     * The **\`getUserMedia()\`** method of the MediaDevices interface prompts the user for permission to use a media input which produces a MediaStream with tracks containing the requested types of media.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia)
     */
    getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
    addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MediaDevices: {
    prototype: MediaDevices;
    new(): MediaDevices;
};

/**
 * The \`MediaElementAudioSourceNode\` interface represents an audio source consisting of an HTML audio or video element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode)
 */
interface MediaElementAudioSourceNode extends AudioNode {
    /**
     * The MediaElementAudioSourceNode interface's read-only **\`mediaElement\`** property indicates the receiving audio.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode/mediaElement)
     */
    readonly mediaElement: HTMLMediaElement;
}

declare var MediaElementAudioSourceNode: {
    prototype: MediaElementAudioSourceNode;
    new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
};

/**
 * The **\`MediaEncryptedEvent\`** interface of the Encrypted Media Extensions API contains the information associated with an HTMLMediaElement/encrypted_event event sent to a HTMLMediaElement when some initialization data is encountered in the media.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent)
 */
interface MediaEncryptedEvent extends Event {
    /**
     * The read-only **\`initData\`** property of the MediaKeyMessageEvent returns the initialization data contained in this event, if any.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData)
     */
    readonly initData: ArrayBuffer | null;
    /**
     * The read-only **\`initDataType\`** property of the MediaKeyMessageEvent returns a case-sensitive string describing the type of the initialization data associated with this event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initDataType)
     */
    readonly initDataType: string;
}

declare var MediaEncryptedEvent: {
    prototype: MediaEncryptedEvent;
    new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
};

/**
 * The **\`MediaError\`** interface represents an error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as audio or video.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError)
 */
interface MediaError {
    /**
     * The read-only property **\`MediaError.code\`** returns a numeric value which represents the kind of error that occurred on a media element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code)
     */
    readonly code: number;
    /**
     * The read-only property **\`MediaError.message\`** returns a human-readable string offering specific diagnostic details related to the error described by the \`MediaError\` object, or an empty string (\`''\`) if no diagnostic information can be determined or provided.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/message)
     */
    readonly message: string;
    readonly MEDIA_ERR_ABORTED: 1;
    readonly MEDIA_ERR_NETWORK: 2;
    readonly MEDIA_ERR_DECODE: 3;
    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
}

declare var MediaError: {
    prototype: MediaError;
    new(): MediaError;
    readonly MEDIA_ERR_ABORTED: 1;
    readonly MEDIA_ERR_NETWORK: 2;
    readonly MEDIA_ERR_DECODE: 3;
    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
};

/**
 * The **\`MediaKeyMessageEvent\`** interface of the Encrypted Media Extensions API contains the content and related data when the content decryption module generates a message for the session.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent)
 */
interface MediaKeyMessageEvent extends Event {
    /**
     * The **\`MediaKeyMessageEvent.message\`** read-only property returns an ArrayBuffer with a message from the content decryption module.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message)
     */
    readonly message: ArrayBuffer;
    /**
     * The **\`MediaKeyMessageEvent.messageType\`** read-only property indicates the type of message.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/messageType)
     */
    readonly messageType: MediaKeyMessageType;
}

declare var MediaKeyMessageEvent: {
    prototype: MediaKeyMessageEvent;
    new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
};

interface MediaKeySessionEventMap {
    "keystatuseschange": Event;
    "message": MediaKeyMessageEvent;
}

/**
 * The **\`MediaKeySession\`** interface of the Encrypted Media Extensions API represents a context for message exchange with a content decryption module (CDM).
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession)
 */
interface MediaKeySession extends EventTarget {
    /**
     * The **\`closed\`** read-only property of the MediaKeySession interface returns a Promise signaling when a MediaKeySession closes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed)
     */
    readonly closed: Promise<MediaKeySessionClosedReason>;
    /**
     * The **\`expiration\`** read-only property of the MediaKeySession interface returns the time after which the keys in the current session can no longer be used to decrypt media data, or NaN if no such time exists.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration)
     */
    readonly expiration: number;
    /**
     * The **\`keyStatuses\`** read-only property of the MediaKeySession interface returns a reference to a read-only MediaKeyStatusMap of the current session's keys and their statuses.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keyStatuses)
     */
    readonly keyStatuses: MediaKeyStatusMap;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event) */
    onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/message_event) */
    onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
    /**
     * The **\`sessionId\`** read-only property of the MediaKeySession interface contains a unique string generated by the content decryption module (CDM) for the current media object and its associated keys or licenses.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId)
     */
    readonly sessionId: string;
    /**
     * The \`close()\` method of the MediaKeySession interface notifies that the current media session is no longer needed, and that the content decryption module should release any resources associated with this object and close it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close)
     */
    close(): Promise<void>;
    /**
     * The \`generateRequest()\` method of the MediaKeySession interface returns a Promise after generating a license request based on initialization data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest)
     */
    generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
    /**
     * The \`load()\` method of the MediaKeySession interface returns a Promise that resolves to a boolean value after loading data for a specified session object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load)
     */
    load(sessionId: string): Promise<boolean>;
    /**
     * The \`remove()\` method of the MediaKeySession interface returns a Promise after removing any session data associated with the current object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove)
     */
    remove(): Promise<void>;
    /**
     * The \`update()\` method of the MediaKeySession interface loads messages and licenses to the CDM, and then returns a Promise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/update)
     */
    update(response: BufferSource): Promise<void>;
    addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MediaKeySession: {
    prototype: MediaKeySession;
    new(): MediaKeySession;
};

/**
 * The **\`MediaKeyStatusMap\`** interface of the Encrypted Media Extensions API is a read-only map of media key statuses by key IDs.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap)
 */
interface MediaKeyStatusMap {
    /**
     * The **\`size\`** read-only property of the MediaKeyStatusMap interface returns the number of key/value paIrs in the status map.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size)
     */
    readonly size: number;
    /**
     * The **\`get()\`** method of the MediaKeyStatusMap interface returns the status value associated with the given key, or \`undefined\` if there is none.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get)
     */
    get(keyId: BufferSource): MediaKeyStatus | undefined;
    /**
     * The **\`has()\`** method of the whether a value has been associated with the given key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has)
     */
    has(keyId: BufferSource): boolean;
    forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
}

declare var MediaKeyStatusMap: {
    prototype: MediaKeyStatusMap;
    new(): MediaKeyStatusMap;
};

/**
 * The **\`MediaKeySystemAccess\`** interface of the Encrypted Media Extensions API provides access to a Key System for decryption and/or a content protection provider.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess)
 */
interface MediaKeySystemAccess {
    /**
     * The **\`keySystem\`** read-only property of the MediaKeySystemAccess interface returns a string identifying the key system being used.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem)
     */
    readonly keySystem: string;
    /**
     * The \`MediaKeySystemAccess.createMediaKeys()\` method returns a \`\`\`js-nolint createMediaKeys() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys)
     */
    createMediaKeys(): Promise<MediaKeys>;
    /**
     * The **\`getConfiguration()\`** method of the MediaKeySystemAccess interface returns an object with the supported combination of the following configuration options: - \`initDataTypes\` [MISSING: ReadOnlyInline] - : Returns a list of supported initialization data type names.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration)
     */
    getConfiguration(): MediaKeySystemConfiguration;
}

declare var MediaKeySystemAccess: {
    prototype: MediaKeySystemAccess;
    new(): MediaKeySystemAccess;
};

/**
 * The **\`MediaKeys\`** interface of Encrypted Media Extensions API represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys)
 */
interface MediaKeys {
    /**
     * The \`createSession()\` method of the MediaKeys interface returns a new MediaKeySession object, which represents a context for message exchange with a content decryption module (CDM).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession)
     */
    createSession(sessionType?: MediaKeySessionType): MediaKeySession;
    /**
     * The \`getStatusForPolicy()\` method of the MediaKeys interface is used to check whether the Content Decryption Module (CDM) would allow the presentation of encrypted media data using the keys, based on the specified policy requirements.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/getStatusForPolicy)
     */
    getStatusForPolicy(policy?: MediaKeysPolicy): Promise<MediaKeyStatus>;
    /**
     * The **\`setServerCertificate()\`** method of the MediaKeys interface provides a server certificate to be used to encrypt messages to the license server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate)
     */
    setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}

declare var MediaKeys: {
    prototype: MediaKeys;
    new(): MediaKeys;
};

/**
 * The **\`MediaList\`** interface represents the media queries of a stylesheet, e.g., those set using a link element's \`media\` attribute.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList)
 */
interface MediaList {
    /**
     * The read-only **\`length\`** property of the MediaList interface returns the number of media queries in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length)
     */
    readonly length: number;
    /**
     * The **\`mediaText\`** property of the MediaList interface is a stringifier that returns a string representing the \`MediaList\` as text, and also allows you to set a new \`MediaList\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText)
     */
    mediaText: string;
    toString(): string;
    /**
     * The \`appendMedium()\` method of the MediaList interface adds a media query to the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium)
     */
    appendMedium(medium: string): void;
    /**
     * The \`deleteMedium()\` method of the MediaList interface removes from this \`MediaList\` the given media query.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium)
     */
    deleteMedium(medium: string): void;
    /**
     * The **\`item()\`** method of the MediaList interface returns the media query at the specified \`index\`, or \`null\` if the specified \`index\` doesn't exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/item)
     */
    item(index: number): string | null;
    [index: number]: string;
}

declare var MediaList: {
    prototype: MediaList;
    new(): MediaList;
};

/**
 * The **\`MediaMetadata\`** interface of the Media Session API allows a web page to provide rich media metadata for display in a platform UI.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata)
 */
interface MediaMetadata {
    /**
     * The **\`album\`** property of the collection containing the media to be played.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album)
     */
    album: string;
    /**
     * The **\`artist\`** property of the creator, etc., of the media to be played.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist)
     */
    artist: string;
    /**
     * The **\`artwork\`** property of the objects representing images associated with playing media.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork)
     */
    artwork: ReadonlyArray<MediaImage>;
    /**
     * The **\`title\`** property of the played.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/title)
     */
    title: string;
}

declare var MediaMetadata: {
    prototype: MediaMetadata;
    new(init?: MediaMetadataInit): MediaMetadata;
};

interface MediaQueryListEventMap {
    "change": MediaQueryListEvent;
}

/**
 * A **\`MediaQueryList\`** object stores information on a media query applied to a document, with support for both immediate and event-driven matching against the state of the document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList)
 */
interface MediaQueryList extends EventTarget {
    /**
     * The **\`matches\`** read-only property of the \`true\` if the document currently matches the media query list, or \`false\` if not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches)
     */
    readonly matches: boolean;
    /**
     * The **\`media\`** read-only property of the serialized media query.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media)
     */
    readonly media: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/change_event) */
    onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
    /**
     * The deprecated **\`addListener()\`** method of the \`MediaQueryListener\` that will run a custom callback function in response to the media query status changing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/addListener)
     */
    addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
    /**
     * The **\`removeListener()\`** method of the \`MediaQueryListener\`.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/removeListener)
     */
    removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
    addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MediaQueryList: {
    prototype: MediaQueryList;
    new(): MediaQueryList;
};

/**
 * The \`MediaQueryListEvent\` object stores information on the changes that have happened to a MediaQueryList object — instances are available as the event object on a function referenced by a MediaQueryList.change_event event.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent)
 */
interface MediaQueryListEvent extends Event {
    /**
     * The **\`matches\`** read-only property of the \`true\` if the document currently matches the media query list, or \`false\` if not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches)
     */
    readonly matches: boolean;
    /**
     * The **\`media\`** read-only property of the a serialized media query.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/media)
     */
    readonly media: string;
}

declare var MediaQueryListEvent: {
    prototype: MediaQueryListEvent;
    new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
};

interface MediaRecorderEventMap {
    "dataavailable": BlobEvent;
    "error": ErrorEvent;
    "pause": Event;
    "resume": Event;
    "start": Event;
    "stop": Event;
}

/**
 * The **\`MediaRecorder\`** interface of the MediaStream Recording API provides functionality to easily record media.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder)
 */
interface MediaRecorder extends EventTarget {
    /**
     * The **\`audioBitsPerSecond\`** read-only property of the MediaRecorder interface returns the audio encoding bit rate in use.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond)
     */
    readonly audioBitsPerSecond: number;
    /**
     * The **\`mimeType\`** read-only property of the MediaRecorder interface returns the MIME media type that was specified when creating the MediaRecorder object, or, if none was specified, which was chosen by the browser.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/mimeType)
     */
    readonly mimeType: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */
    ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */
    onerror: ((this: MediaRecorder, ev: ErrorEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */
    onpause: ((this: MediaRecorder, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */
    onresume: ((this: MediaRecorder, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start_event) */
    onstart: ((this: MediaRecorder, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop_event) */
    onstop: ((this: MediaRecorder, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the MediaRecorder interface returns the current state of the current \`MediaRecorder\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state)
     */
    readonly state: RecordingState;
    /**
     * The **\`stream\`** read-only property of the MediaRecorder interface returns the stream that was passed into the MediaRecorder.MediaRecorder constructor when the \`MediaRecorder\` was created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream)
     */
    readonly stream: MediaStream;
    /**
     * The **\`videoBitsPerSecond\`** read-only property of the MediaRecorder interface returns the video encoding bit rate in use.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond)
     */
    readonly videoBitsPerSecond: number;
    /**
     * The **\`pause()\`** method of the MediaRecorder interface is used to pause recording of media streams.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause)
     */
    pause(): void;
    /**
     * The **\`requestData()\`** method of the MediaRecorder interface is used to raise a MediaRecorder.dataavailable_event event containing a called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData)
     */
    requestData(): void;
    /**
     * The **\`resume()\`** method of the MediaRecorder interface is used to resume media recording when it has been previously paused.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume)
     */
    resume(): void;
    /**
     * The **\`start()\`** method of the MediaRecorder interface begins recording media into one or more Blob objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start)
     */
    start(timeslice?: number): void;
    /**
     * The **\`stop()\`** method of the MediaRecorder interface is used to stop media capture.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop)
     */
    stop(): void;
    addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MediaRecorder: {
    prototype: MediaRecorder;
    new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
    /**
     * The **\`isTypeSupported()\`** static method of the MediaRecorder interface returns a Boolean which is \`true\` if the MIME media type specified is one the user agent should be able to successfully record.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static)
     */
    isTypeSupported(type: string): boolean;
};

/**
 * The **\`MediaSession\`** interface of the Media Session API allows a web page to provide custom behaviors for standard media playback interactions, and to report metadata that can be sent by the user agent to the device or operating system for presentation in standardized user interface elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession)
 */
interface MediaSession {
    /**
     * The **\`metadata\`** property of the MediaSession interface contains a MediaMetadata object providing descriptive information about the currently playing media, or \`null\` if the metadata has not been set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata)
     */
    metadata: MediaMetadata | null;
    /**
     * The **\`playbackState\`** property of the playing or paused.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState)
     */
    playbackState: MediaSessionPlaybackState;
    /**
     * The **\`setActionHandler()\`** method of the MediaSession interface sets a handler for a media session action.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler)
     */
    setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
    /**
     * The **\`setCameraActive()\`** method of the MediaSession interface is used to indicate to the user agent whether the user's camera is considered to be active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setCameraActive)
     */
    setCameraActive(active: boolean): Promise<void>;
    /**
     * The **\`setMicrophoneActive()\`** method of the MediaSession interface is used to indicate to the user agent whether the user's microphone is considered to be currently muted.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setMicrophoneActive)
     */
    setMicrophoneActive(active: boolean): Promise<void>;
    /**
     * The **\`setPositionState()\`** method of the document's media playback position and speed for presentation by user's device in any kind of interface that provides details about ongoing media.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState)
     */
    setPositionState(state?: MediaPositionState): void;
}

declare var MediaSession: {
    prototype: MediaSession;
    new(): MediaSession;
};

interface MediaSourceEventMap {
    "sourceclose": Event;
    "sourceended": Event;
    "sourceopen": Event;
}

/**
 * The **\`MediaSource\`** interface of the Media Source Extensions API represents a source of media data for an HTMLMediaElement object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource)
 */
interface MediaSource extends EventTarget {
    /**
     * The **\`activeSourceBuffers\`** read-only property of the containing a subset of the SourceBuffer objects contained within providing the selected video track, enabled audio tracks, and shown/hidden text tracks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers)
     */
    readonly activeSourceBuffers: SourceBufferList;
    /**
     * The **\`duration\`** property of the MediaSource interface gets and sets the duration of the current media being presented.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration)
     */
    duration: number;
    onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
    onsourceended: ((this: MediaSource, ev: Event) => any) | null;
    onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
    /**
     * The **\`readyState\`** read-only property of the current \`MediaSource\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState)
     */
    readonly readyState: ReadyState;
    /**
     * The **\`sourceBuffers\`** read-only property of the containing the list of SourceBuffer objects associated with this \`MediaSource\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers)
     */
    readonly sourceBuffers: SourceBufferList;
    /**
     * The **\`addSourceBuffer()\`** method of the given MIME type and adds it to the \`MediaSource\`'s \`SourceBuffer\` is also returned.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer)
     */
    addSourceBuffer(type: string): SourceBuffer;
    /**
     * The **\`clearLiveSeekableRange()\`** method of the to MediaSource.setLiveSeekableRange().
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange)
     */
    clearLiveSeekableRange(): void;
    /**
     * The **\`endOfStream()\`** method of the \`\`\`js-nolint endOfStream() endOfStream(endOfStreamError) \`\`\` - \`endOfStreamError\` MISSING: optional_inline] - : A string representing an error to throw when the end of the stream is reached.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream)
     */
    endOfStream(error?: EndOfStreamError): void;
    /**
     * The **\`removeSourceBuffer()\`** method of the MediaSource interface removes the given SourceBuffer from the SourceBufferList associated with this \`MediaSource\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer)
     */
    removeSourceBuffer(sourceBuffer: SourceBuffer): void;
    /**
     * The **\`setLiveSeekableRange()\`** method of the media element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/setLiveSeekableRange)
     */
    setLiveSeekableRange(start: number, end: number): void;
    addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MediaSource: {
    prototype: MediaSource;
    new(): MediaSource;
    /**
     * The **\`canConstructInDedicatedWorker\`** static property of the MediaSource interface returns \`true\` if \`MediaSource\` worker support is implemented, providing a low-latency feature detection mechanism.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/canConstructInDedicatedWorker_static)
     */
    readonly canConstructInDedicatedWorker: boolean;
    /**
     * The **\`MediaSource.isTypeSupported()\`** static method returns a boolean value which is \`true\` if the given MIME type and (optional) codec are _likely_ to be supported by the current user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static)
     */
    isTypeSupported(type: string): boolean;
};

/**
 * The **\`MediaSourceHandle\`** interface of the Media Source Extensions API is a proxy for a MediaSource that can be transferred from a dedicated worker back to the main thread and attached to a media element via its HTMLMediaElement.srcObject property.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle)
 */
interface MediaSourceHandle {
}

declare var MediaSourceHandle: {
    prototype: MediaSourceHandle;
    new(): MediaSourceHandle;
};

interface MediaStreamEventMap {
    "addtrack": MediaStreamTrackEvent;
    "removetrack": MediaStreamTrackEvent;
}

/**
 * The **\`MediaStream\`** interface of the Media Capture and Streams API represents a stream of media content.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream)
 */
interface MediaStream extends EventTarget {
    /**
     * The **\`active\`** read-only property of the \`true\` if the stream is currently active; otherwise, it returns \`false\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active)
     */
    readonly active: boolean;
    /**
     * The **\`id\`** read-only property of the MediaStream interface is a string containing 36 characters denoting a unique identifier (GUID) for the object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/id)
     */
    readonly id: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addtrack_event) */
    onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removetrack_event) */
    onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
    /**
     * The **\`addTrack()\`** method of the MediaStream interface adds a new track to the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack)
     */
    addTrack(track: MediaStreamTrack): void;
    /**
     * The **\`clone()\`** method of the MediaStream interface creates a duplicate of the \`MediaStream\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone)
     */
    clone(): MediaStream;
    /**
     * The **\`getAudioTracks()\`** method of the stream's track set where MediaStreamTrack.kind is \`audio\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks)
     */
    getAudioTracks(): MediaStreamTrack[];
    /**
     * The **\`getTrackById()\`** method of the MediaStream interface returns a MediaStreamTrack object representing the track with the specified ID string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById)
     */
    getTrackById(trackId: string): MediaStreamTrack | null;
    /**
     * The **\`getTracks()\`** method of the stream's track set, regardless of MediaStreamTrack.kind.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks)
     */
    getTracks(): MediaStreamTrack[];
    /**
     * The **\`getVideoTracks()\`** method of the \`\`\`js-nolint getVideoTracks() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks)
     */
    getVideoTracks(): MediaStreamTrack[];
    /**
     * The **\`removeTrack()\`** method of the MediaStream interface removes a \`\`\`js-nolint removeTrack(track) \`\`\` - \`track\` - : A MediaStreamTrack that will be removed from the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removeTrack)
     */
    removeTrack(track: MediaStreamTrack): void;
    addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MediaStream: {
    prototype: MediaStream;
    new(): MediaStream;
    new(stream: MediaStream): MediaStream;
    new(tracks: MediaStreamTrack[]): MediaStream;
};

/**
 * The \`MediaStreamAudioDestinationNode\` interface represents an audio destination consisting of a WebRTC MediaStream with a single \`AudioMediaStreamTrack\`, which can be used in a similar way to a \`MediaStream\` obtained from MediaDevices.getUserMedia.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode)
 */
interface MediaStreamAudioDestinationNode extends AudioNode {
    /**
     * The \`stream\` property of the AudioContext interface represents a MediaStream containing a single audio MediaStreamTrack with the same number of channels as the node itself.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode/stream)
     */
    readonly stream: MediaStream;
}

declare var MediaStreamAudioDestinationNode: {
    prototype: MediaStreamAudioDestinationNode;
    new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
};

/**
 * The **\`MediaStreamAudioSourceNode\`** interface is a type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode)
 */
interface MediaStreamAudioSourceNode extends AudioNode {
    /**
     * The MediaStreamAudioSourceNode interface's read-only **\`mediaStream\`** property indicates the receiving audio.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode/mediaStream)
     */
    readonly mediaStream: MediaStream;
}

declare var MediaStreamAudioSourceNode: {
    prototype: MediaStreamAudioSourceNode;
    new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
};

interface MediaStreamTrackEventMap {
    "ended": Event;
    "mute": Event;
    "unmute": Event;
}

/**
 * The **\`MediaStreamTrack\`** interface of the Media Capture and Streams API represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack)
 */
interface MediaStreamTrack extends EventTarget {
    /**
     * The **\`contentHint\`** property of the MediaStreamTrack interface is a string that hints at the type of content the track contains.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint)
     */
    contentHint: string;
    /**
     * The **\`enabled\`** property of the \`true\` if the track is allowed to render the source stream or \`false\` if it is not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled)
     */
    enabled: boolean;
    /**
     * The **\`id\`** read-only property of the MediaStreamTrack interface returns a string containing a unique identifier (GUID) for the track, which is generated by the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id)
     */
    readonly id: string;
    /**
     * The **\`kind\`** read-only property of the MediaStreamTrack interface returns a string set to \`'audio'\` if the track is an audio track and to \`'video'\` if it is a video track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind)
     */
    readonly kind: string;
    /**
     * The **\`label\`** read-only property of the MediaStreamTrack interface returns a string containing a user agent-assigned label that identifies the track source, as in \`'internal microphone'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label)
     */
    readonly label: string;
    /**
     * The **\`muted\`** read-only property of the indicating whether or not the track is currently unable to provide media output.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted)
     */
    readonly muted: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */
    onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */
    onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */
    onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
    /**
     * The **\`readyState\`** read-only property of the MediaStreamTrack interface returns an enumerated value giving the status of the track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState)
     */
    readonly readyState: MediaStreamTrackState;
    /**
     * The **\`applyConstraints()\`** method of the MediaStreamTrack interface applies a set of constraints to the track; these constraints let the website or app establish ideal values and acceptable ranges of values for the constrainable properties of the track, such as frame rate, dimensions, echo cancellation, and so forth.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints)
     */
    applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
    /**
     * The **\`clone()\`** method of the MediaStreamTrack interface creates a duplicate of the \`MediaStreamTrack\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone)
     */
    clone(): MediaStreamTrack;
    /**
     * The **\`getCapabilities()\`** method of the MediaStreamTrack interface returns an object detailing the accepted values or value range for each constrainable property of the associated \`MediaStreamTrack\`, based upon the platform and user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities)
     */
    getCapabilities(): MediaTrackCapabilities;
    /**
     * The **\`getConstraints()\`** method of the MediaStreamTrack interface returns a recently established for the track using a prior call to constraints indicate values and ranges of values that the website or application has specified are required or acceptable for the included constrainable properties.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints)
     */
    getConstraints(): MediaTrackConstraints;
    /**
     * The **\`getSettings()\`** method of the object containing the current values of each of the constrainable properties for the current \`MediaStreamTrack\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings)
     */
    getSettings(): MediaTrackSettings;
    /**
     * The **\`stop()\`** method of the MediaStreamTrack interface stops the track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop)
     */
    stop(): void;
    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MediaStreamTrack: {
    prototype: MediaStreamTrack;
    new(): MediaStreamTrack;
};

/**
 * The **\`MediaStreamTrackEvent\`** interface of the Media Capture and Streams API represents events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Capture and Streams API methods.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent)
 */
interface MediaStreamTrackEvent extends Event {
    /**
     * The **\`track\`** read-only property of the MediaStreamTrackEvent interface returns the MediaStreamTrack associated with this event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track)
     */
    readonly track: MediaStreamTrack;
}

declare var MediaStreamTrackEvent: {
    prototype: MediaStreamTrackEvent;
    new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
};

/**
 * The **\`MessageChannel\`** interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
 */
interface MessageChannel {
    /**
     * The **\`port1\`** read-only property of the the port attached to the context that originated the channel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
     */
    readonly port1: MessagePort;
    /**
     * The **\`port2\`** read-only property of the the port attached to the context at the other end of the channel, which the message is initially sent to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
     */
    readonly port2: MessagePort;
}

declare var MessageChannel: {
    prototype: MessageChannel;
    new(): MessageChannel;
};

/**
 * The **\`MessageEvent\`** interface represents a message received by a target object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
 */
interface MessageEvent<T = any> extends Event {
    /**
     * The **\`data\`** read-only property of the The data sent by the message emitter; this can be any data type, depending on what originated this event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
     */
    readonly data: T;
    /**
     * The **\`lastEventId\`** read-only property of the unique ID for the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
     */
    readonly lastEventId: string;
    /**
     * The **\`origin\`** read-only property of the origin of the message emitter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
     */
    readonly origin: string;
    /**
     * The **\`ports\`** read-only property of the containing all MessagePort objects sent with the message, in order.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
     */
    readonly ports: ReadonlyArray<MessagePort>;
    /**
     * The **\`source\`** read-only property of the a WindowProxy, MessagePort, or a \`MessageEventSource\` (which can be a WindowProxy, message emitter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
     */
    readonly source: MessageEventSource | null;
    /** @deprecated */
    initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}

declare var MessageEvent: {
    prototype: MessageEvent;
    new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};

interface MessageEventTargetEventMap {
    "message": MessageEvent;
    "messageerror": MessageEvent;
}

interface MessageEventTarget<T> {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
    onmessage: ((this: T, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
    onmessageerror: ((this: T, ev: MessageEvent) => any) | null;
    addEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

interface MessagePortEventMap extends MessageEventTargetEventMap {
    "message": MessageEvent;
    "messageerror": MessageEvent;
}

/**
 * The **\`MessagePort\`** interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
 */
interface MessagePort extends EventTarget, MessageEventTarget<MessagePort> {
    /**
     * The **\`close()\`** method of the MessagePort interface disconnects the port, so it is no longer active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
     */
    close(): void;
    /**
     * The **\`postMessage()\`** method of the transfers ownership of objects to other browsing contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
     */
    postMessage(message: any, transfer: Transferable[]): void;
    postMessage(message: any, options?: StructuredSerializeOptions): void;
    /**
     * The **\`start()\`** method of the MessagePort interface starts the sending of messages queued on the port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
     */
    start(): void;
    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MessagePort: {
    prototype: MessagePort;
    new(): MessagePort;
};

/**
 * The **\`MimeType\`** interface provides contains information about a MIME type associated with a particular plugin.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType)
 */
interface MimeType {
    /**
     * Returns the MIME type's description.
     * @deprecated
     */
    readonly description: string;
    /**
     * Returns the Plugin object that implements this MIME type.
     * @deprecated
     */
    readonly enabledPlugin: Plugin;
    /**
     * Returns the MIME type's typical file extensions, in a comma-separated list.
     * @deprecated
     */
    readonly suffixes: string;
    /**
     * Returns the MIME type.
     * @deprecated
     */
    readonly type: string;
}

/** @deprecated */
declare var MimeType: {
    prototype: MimeType;
    new(): MimeType;
};

/**
 * The **\`MimeTypeArray\`** interface returns an array of MimeType instances, each of which contains information about a supported browser plugins.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray)
 */
interface MimeTypeArray {
    /** @deprecated */
    readonly length: number;
    /** @deprecated */
    item(index: number): MimeType | null;
    /** @deprecated */
    namedItem(name: string): MimeType | null;
    [index: number]: MimeType;
}

/** @deprecated */
declare var MimeTypeArray: {
    prototype: MimeTypeArray;
    new(): MimeTypeArray;
};

/**
 * The **\`MouseEvent\`** interface represents events that occur due to the user interacting with a pointing device (such as a mouse).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent)
 */
interface MouseEvent extends UIEvent {
    /**
     * The **\`MouseEvent.altKey\`** read-only property is a boolean value that indicates whether the <kbd>alt</kbd> key was pressed or not when a given mouse event occurs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey)
     */
    readonly altKey: boolean;
    /**
     * The **\`MouseEvent.button\`** read-only property indicates which button was pressed or released on the mouse to trigger the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button)
     */
    readonly button: number;
    /**
     * The **\`MouseEvent.buttons\`** read-only property indicates which buttons are pressed on the mouse (or other input device) when a mouse event is triggered.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons)
     */
    readonly buttons: number;
    /**
     * The **\`clientX\`** read-only property of the MouseEvent interface provides the horizontal coordinate within the application's viewport at which the event occurred (as opposed to the coordinate within the page).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX)
     */
    readonly clientX: number;
    /**
     * The **\`clientY\`** read-only property of the MouseEvent interface provides the vertical coordinate within the application's viewport at which the event occurred (as opposed to the coordinate within the page).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY)
     */
    readonly clientY: number;
    /**
     * The **\`MouseEvent.ctrlKey\`** read-only property is a boolean value that indicates whether the <kbd>ctrl</kbd> key was pressed or not when a given mouse event occurs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey)
     */
    readonly ctrlKey: boolean;
    /**
     * The **\`MouseEvent.layerX\`** read-only property returns the horizontal coordinate of the event relative to the current layer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX)
     */
    readonly layerX: number;
    /**
     * The **\`MouseEvent.layerY\`** read-only property returns the vertical coordinate of the event relative to the current layer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY)
     */
    readonly layerY: number;
    /**
     * The **\`MouseEvent.metaKey\`** read-only property is a boolean value that indicates whether the <kbd>meta</kbd> key was pressed or not when a given mouse event occurs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey)
     */
    readonly metaKey: boolean;
    /**
     * The **\`movementX\`** read-only property of the MouseEvent interface provides the difference in the X coordinate of the mouse pointer between the given event and the previous Element/mousemove_event event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX)
     */
    readonly movementX: number;
    /**
     * The **\`movementY\`** read-only property of the MouseEvent interface provides the difference in the Y coordinate of the mouse pointer between the given event and the previous Element/mousemove_event event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY)
     */
    readonly movementY: number;
    /**
     * The **\`offsetX\`** read-only property of the MouseEvent interface provides the offset in the X coordinate of the mouse pointer between that event and the padding edge of the target node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX)
     */
    readonly offsetX: number;
    /**
     * The **\`offsetY\`** read-only property of the MouseEvent interface provides the offset in the Y coordinate of the mouse pointer between that event and the padding edge of the target node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY)
     */
    readonly offsetY: number;
    /**
     * The **\`pageX\`** read-only property of the MouseEvent interface returns the X (horizontal) coordinate (in pixels) at which the mouse was clicked, relative to the left edge of the entire document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX)
     */
    readonly pageX: number;
    /**
     * The **\`pageY\`** read-only property of the MouseEvent interface returns the Y (vertical) coordinate (in pixels) at which the mouse was clicked, relative to the top edge of the entire document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY)
     */
    readonly pageY: number;
    /**
     * The **\`MouseEvent.relatedTarget\`** read-only property is the secondary target for the mouse event, if there is one.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget)
     */
    readonly relatedTarget: EventTarget | null;
    /**
     * The **\`screenX\`** read-only property of the MouseEvent interface provides the horizontal coordinate (offset) of the mouse pointer in screen coordinates.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX)
     */
    readonly screenX: number;
    /**
     * The **\`screenY\`** read-only property of the MouseEvent interface provides the vertical coordinate (offset) of the mouse pointer in screen coordinates.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY)
     */
    readonly screenY: number;
    /**
     * The **\`MouseEvent.shiftKey\`** read-only property is a boolean value that indicates whether the <kbd>shift</kbd> key was pressed or not when a given mouse event occurs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey)
     */
    readonly shiftKey: boolean;
    /**
     * The **\`MouseEvent.x\`** property is an alias for the MouseEvent.clientX property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x)
     */
    readonly x: number;
    /**
     * The **\`MouseEvent.y\`** property is an alias for the MouseEvent.clientY property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y)
     */
    readonly y: number;
    /**
     * The **\`MouseEvent.getModifierState()\`** method returns the current state of the specified modifier key: \`true\` if the modifier is active (i.e., the modifier key is pressed or locked), otherwise, \`false\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState)
     */
    getModifierState(keyArg: string): boolean;
    /**
     * The **\`MouseEvent.initMouseEvent()\`** method initializes the value of a mouse event once it's been created (normally using the Document.createEvent() method).
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/initMouseEvent)
     */
    initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
}

declare var MouseEvent: {
    prototype: MouseEvent;
    new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
};

/**
 * The **\`MutationObserver\`** interface provides the ability to watch for changes being made to the DOM tree.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver)
 */
interface MutationObserver {
    /**
     * The MutationObserver method **\`disconnect()\`** tells the observer to stop watching for mutations.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect)
     */
    disconnect(): void;
    /**
     * The MutationObserver method **\`observe()\`** configures the \`MutationObserver\` callback to begin receiving notifications of changes to the DOM that match the given options.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe)
     */
    observe(target: Node, options?: MutationObserverInit): void;
    /**
     * The MutationObserver method **\`takeRecords()\`** returns a list of all matching DOM changes that have been detected but not yet processed by the observer's callback function, leaving the mutation queue empty.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/takeRecords)
     */
    takeRecords(): MutationRecord[];
}

declare var MutationObserver: {
    prototype: MutationObserver;
    new(callback: MutationCallback): MutationObserver;
};

/**
 * The **\`MutationRecord\`** is a read-only interface that represents an individual DOM mutation observed by a MutationObserver.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord)
 */
interface MutationRecord {
    /**
     * The MutationRecord read-only property **\`addedNodes\`** is a NodeList of nodes added to a target node by a mutation observed with a MutationObserver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes)
     */
    readonly addedNodes: NodeList;
    /**
     * The MutationRecord read-only property **\`attributeName\`** contains the name of a changed attribute belonging to a node that is observed by a MutationObserver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName)
     */
    readonly attributeName: string | null;
    /**
     * The MutationRecord read-only property **\`attributeNamespace\`** is the namespace of the mutated attribute in the MutationRecord observed by a MutationObserver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace)
     */
    readonly attributeNamespace: string | null;
    /**
     * The MutationRecord read-only property **\`nextSibling\`** is the next sibling of an added or removed child node of the \`target\` of a MutationObserver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling)
     */
    readonly nextSibling: Node | null;
    /**
     * The MutationRecord read-only property **\`oldValue\`** contains the character data or attribute value of an observed node before it was changed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue)
     */
    readonly oldValue: string | null;
    /**
     * The MutationRecord read-only property **\`previousSibling\`** is the previous sibling of an added or removed child node of the \`target\` of a MutationObserver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling)
     */
    readonly previousSibling: Node | null;
    /**
     * The MutationRecord read-only property **\`removedNodes\`** is a NodeList of nodes removed from a target node by a mutation observed with a MutationObserver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes)
     */
    readonly removedNodes: NodeList;
    /**
     * The MutationRecord read-only property **\`target\`** is the target (i.e., the mutated/changed node) of a mutation observed with a MutationObserver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target)
     */
    readonly target: Node;
    /**
     * The MutationRecord read-only property **\`type\`** is the type of the MutationRecord observed by a MutationObserver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/type)
     */
    readonly type: MutationRecordType;
}

declare var MutationRecord: {
    prototype: MutationRecord;
    new(): MutationRecord;
};

/**
 * The **\`NamedNodeMap\`** interface represents a collection of Attr objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap)
 */
interface NamedNodeMap {
    /**
     * The read-only **\`length\`** property of the NamedNodeMap interface is the number of objects stored in the map.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length)
     */
    readonly length: number;
    /**
     * The **\`getNamedItem()\`** method of the NamedNodeMap interface returns the Attr corresponding to the given name, or \`null\` if there is no corresponding attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem)
     */
    getNamedItem(qualifiedName: string): Attr | null;
    /**
     * The **\`getNamedItemNS()\`** method of the NamedNodeMap interface returns the Attr corresponding to the given local name in the given namespace, or \`null\` if there is no corresponding attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS)
     */
    getNamedItemNS(namespace: string | null, localName: string): Attr | null;
    /**
     * The **\`item()\`** method of the NamedNodeMap interface returns the item in the map matching the index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item)
     */
    item(index: number): Attr | null;
    /**
     * The **\`removeNamedItem()\`** method of the NamedNodeMap interface removes the Attr corresponding to the given name from the map.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem)
     */
    removeNamedItem(qualifiedName: string): Attr;
    /**
     * The **\`removeNamedItemNS()\`** method of the NamedNodeMap interface removes the Attr corresponding to the given namespace and local name from the map.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS)
     */
    removeNamedItemNS(namespace: string | null, localName: string): Attr;
    /**
     * The **\`setNamedItem()\`** method of the NamedNodeMap interface puts the Attr identified by its name in the map.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem)
     */
    setNamedItem(attr: Attr): Attr | null;
    /**
     * The **\`setNamedItemNS()\`** method of the NamedNodeMap interface puts the Attr identified by its name in the map.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS)
     */
    setNamedItemNS(attr: Attr): Attr | null;
    [index: number]: Attr;
}

declare var NamedNodeMap: {
    prototype: NamedNodeMap;
    new(): NamedNodeMap;
};

/**
 * The **\`NavigationActivation\`** interface of the Navigation API represents a recent cross-document navigation.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation)
 */
interface NavigationActivation {
    /**
     * The **\`entry\`** read-only property of the NavigationActivation interface contains a NavigationHistoryEntry object representing the history entry for the inbound ('to') document in the navigation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/entry)
     */
    readonly entry: NavigationHistoryEntry;
    /**
     * The **\`from\`** read-only property of the NavigationActivation interface contains a NavigationHistoryEntry object representing the history entry for the outgoing ('from') document in the navigation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/from)
     */
    readonly from: NavigationHistoryEntry | null;
    /**
     * The **\`navigationType\`** read-only property of the NavigationActivation interface contains a string indicating the type of navigation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationActivation/navigationType)
     */
    readonly navigationType: NavigationType;
}

declare var NavigationActivation: {
    prototype: NavigationActivation;
    new(): NavigationActivation;
};

interface NavigationHistoryEntryEventMap {
    "dispose": Event;
}

/**
 * The **\`NavigationHistoryEntry\`** interface of the Navigation API represents a single navigation history entry.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry)
 */
interface NavigationHistoryEntry extends EventTarget {
    /**
     * The **\`id\`** read-only property of the NavigationHistoryEntry interface returns the \`id\` of the history entry, or an empty string if current document is not fully active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/id)
     */
    readonly id: string;
    /**
     * The **\`index\`** read-only property of the NavigationHistoryEntry interface returns the index of the history entry in the history entries list (that is, the list returned by Navigation.entries()), or \`-1\` if the entry does not appear in the list or if current document is not fully active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/index)
     */
    readonly index: number;
    /**
     * The **\`key\`** read-only property of the NavigationHistoryEntry interface returns the \`key\` of the history entry, or an empty string if current document is not fully active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/key)
     */
    readonly key: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/dispose_event) */
    ondispose: ((this: NavigationHistoryEntry, ev: Event) => any) | null;
    /**
     * The **\`sameDocument\`** read-only property of the NavigationHistoryEntry interface returns \`true\` if this history entry is for the same \`document\` as the current Document value and current document is fully active, or \`false\` otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/sameDocument)
     */
    readonly sameDocument: boolean;
    /**
     * The **\`url\`** read-only property of the NavigationHistoryEntry interface returns the absolute URL of this history entry.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/url)
     */
    readonly url: string | null;
    /**
     * The **\`getState()\`** method of the NavigationHistoryEntry interface returns a clone of the developer-supplied state associated with this history entry.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationHistoryEntry/getState)
     */
    getState(): any;
    addEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof NavigationHistoryEntryEventMap>(type: K, listener: (this: NavigationHistoryEntry, ev: NavigationHistoryEntryEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var NavigationHistoryEntry: {
    prototype: NavigationHistoryEntry;
    new(): NavigationHistoryEntry;
};

/**
 * The **\`NavigationPreloadManager\`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
 */
interface NavigationPreloadManager {
    /**
     * The **\`disable()\`** method of the NavigationPreloadManager interface halts the automatic preloading of service-worker-managed resources previously started using NavigationPreloadManager.enable() It returns a promise that resolves with \`undefined\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable)
     */
    disable(): Promise<void>;
    /**
     * The **\`enable()\`** method of the NavigationPreloadManager interface is used to enable preloading of resources managed by the service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable)
     */
    enable(): Promise<void>;
    /**
     * The **\`getState()\`** method of the NavigationPreloadManager interface returns a Promise that resolves to an object with properties that indicate whether preload is enabled and what value will be sent in the Service-Worker-Navigation-Preload HTTP header.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState)
     */
    getState(): Promise<NavigationPreloadState>;
    /**
     * The **\`setHeaderValue()\`** method of the NavigationPreloadManager interface sets the value of the Service-Worker-Navigation-Preload header that will be sent with requests resulting from a Window/fetch operation made during service worker navigation preloading.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue)
     */
    setHeaderValue(value: string): Promise<void>;
}

declare var NavigationPreloadManager: {
    prototype: NavigationPreloadManager;
    new(): NavigationPreloadManager;
};

/**
 * The **\`Navigator\`** interface represents the state and the identity of the user agent.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
 */
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
    /**
     * The **\`clipboard\`** read-only property of the Navigator interface returns a Clipboard object used to read and write the clipboard's contents.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard)
     */
    readonly clipboard: Clipboard;
    /**
     * The **\`credentials\`** read-only property of the Navigator interface returns the CredentialsContainer object associated with the current document, which exposes methods to request credentials.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials)
     */
    readonly credentials: CredentialsContainer;
    readonly doNotTrack: string | null;
    /**
     * The **\`Navigator.geolocation\`** read-only property returns a device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation)
     */
    readonly geolocation: Geolocation;
    /**
     * The **\`login\`** read-only property of the Navigator interface provides access to the browser's NavigatorLogin object, which a federated identity provider (IdP) can use to set its login status when a user signs into or out of the IdP.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/login)
     */
    readonly login: NavigatorLogin;
    /**
     * The **\`maxTouchPoints\`** read-only property of the contact points that are supported by the current device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints)
     */
    readonly maxTouchPoints: number;
    /**
     * The **\`mediaCapabilities\`** read-only property of the Navigator interface references a MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given media format and output capabilities.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities)
     */
    readonly mediaCapabilities: MediaCapabilities;
    /**
     * The **\`mediaDevices\`** read-only property of the Navigator interface returns a MediaDevices object, which provides access to connected media input devices like cameras and microphones, as well as screen sharing.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaDevices)
     */
    readonly mediaDevices: MediaDevices;
    /**
     * The **\`mediaSession\`** read-only property of the Navigator interface returns a MediaSession object that can be used to share with the browser metadata and other information about the current playback state of media being handled by a document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession)
     */
    readonly mediaSession: MediaSession;
    /**
     * The **\`permissions\`** read-only property of the Navigator interface returns a status of APIs covered by the Permissions API.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions)
     */
    readonly permissions: Permissions;
    /**
     * The **\`serviceWorker\`** read-only property of the Navigator interface returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/serviceWorker)
     */
    readonly serviceWorker: ServiceWorkerContainer;
    /**
     * The read-only **\`userActivation\`** property of the Navigator interface returns a UserActivation object which contains information about the current window's user activation state.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation)
     */
    readonly userActivation: UserActivation;
    /**
     * The **\`wakeLock\`** read-only property of the Navigator interface returns a WakeLock interface that allows a document to acquire a screen wake lock.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock)
     */
    readonly wakeLock: WakeLock;
    /**
     * The **\`canShare()\`** method of the Navigator interface returns \`true\` if the equivalent call to navigator.share() would succeed.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/canShare)
     */
    canShare(data?: ShareData): boolean;
    /**
     * The **\`Navigator.getGamepads()\`** method returns an array of Elements in the array may be \`null\` if a gamepad disconnects during a session, so that the remaining gamepads retain the same index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads)
     */
    getGamepads(): (Gamepad | null)[];
    /**
     * The **\`requestMIDIAccess()\`** method of the Navigator interface returns a Promise representing a request for access to MIDI devices on a user's system.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMIDIAccess)
     */
    requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
    /**
     * The **\`requestMediaKeySystemAccess()\`** method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
     */
    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
    /**
     * The **\`navigator.sendBeacon()\`** method Asynchronous sends an HTTP POST request containing a small amount of data to a web server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon)
     */
    sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
    /**
     * The **\`share()\`** method of the Navigator interface invokes the native sharing mechanism of the device to share data such as text, URLs, or files.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/share)
     */
    share(data?: ShareData): Promise<void>;
    /**
     * The **\`vibrate()\`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate)
     */
    vibrate(pattern: VibratePattern): boolean;
}

declare var Navigator: {
    prototype: Navigator;
    new(): Navigator;
};

interface NavigatorAutomationInformation {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/webdriver) */
    readonly webdriver: boolean;
}

/** Available only in secure contexts. */
interface NavigatorBadge {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */
    clearAppBadge(): Promise<void>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */
    setAppBadge(contents?: number): Promise<void>;
}

interface NavigatorConcurrentHardware {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */
    readonly hardwareConcurrency: number;
}

interface NavigatorContentUtils {
    /**
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler)
     */
    registerProtocolHandler(scheme: string, url: string | URL): void;
}

interface NavigatorCookies {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/cookieEnabled) */
    readonly cookieEnabled: boolean;
}

interface NavigatorID {
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
     */
    readonly appCodeName: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
     */
    readonly appName: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
     */
    readonly appVersion: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
     */
    readonly platform: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
     */
    readonly product: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub)
     */
    readonly productSub: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
    readonly userAgent: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor)
     */
    readonly vendor: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub)
     */
    readonly vendorSub: string;
}

interface NavigatorLanguage {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */
    readonly language: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */
    readonly languages: ReadonlyArray<string>;
}

/** Available only in secure contexts. */
interface NavigatorLocks {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */
    readonly locks: LockManager;
}

/**
 * The **\`NavigatorLogin\`** interface of the Federated Credential Management (FedCM) API defines login functionality for federated identity providers (IdPs).
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorLogin)
 */
interface NavigatorLogin {
    /**
     * The **\`setStatus()\`** method of the NavigatorLogin interface sets the login status of a federated identity provider (IdP), when called from the IdP's origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorLogin/setStatus)
     */
    setStatus(status: LoginStatus): Promise<void>;
}

declare var NavigatorLogin: {
    prototype: NavigatorLogin;
    new(): NavigatorLogin;
};

interface NavigatorOnLine {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */
    readonly onLine: boolean;
}

interface NavigatorPlugins {
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mimeTypes)
     */
    readonly mimeTypes: MimeTypeArray;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */
    readonly pdfViewerEnabled: boolean;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins)
     */
    readonly plugins: PluginArray;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled)
     */
    javaEnabled(): boolean;
}

/** Available only in secure contexts. */
interface NavigatorStorage {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */
    readonly storage: StorageManager;
}

/**
 * The DOM **\`Node\`** interface is an abstract base class upon which many other DOM API objects are based, thus letting those object types to be used similarly and often interchangeably.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node)
 */
interface Node extends EventTarget {
    /**
     * The read-only **\`baseURI\`** property of the Node interface returns the absolute base URL of the document containing the node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI)
     */
    readonly baseURI: string;
    /**
     * The read-only **\`childNodes\`** property of the Node interface returns a live the first child node is assigned index \`0\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes)
     */
    readonly childNodes: NodeListOf<ChildNode>;
    /**
     * The read-only **\`firstChild\`** property of the Node interface returns the node's first child in the tree, or \`null\` if the node has no children.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild)
     */
    readonly firstChild: ChildNode | null;
    /**
     * The read-only **\`isConnected\`** property of the Node interface returns a boolean indicating whether the node is connected (directly or indirectly) to a Document object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected)
     */
    readonly isConnected: boolean;
    /**
     * The read-only **\`lastChild\`** property of the Node interface returns the last child of the node, or \`null\` if there are no child nodes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild)
     */
    readonly lastChild: ChildNode | null;
    /**
     * The read-only **\`nextSibling\`** property of the Node interface returns the node immediately following the specified one in their parent's Node.childNodes, or returns \`null\` if the specified node is the last child in the parent element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)
     */
    readonly nextSibling: ChildNode | null;
    /**
     * The read-only **\`nodeName\`** property of Node returns the name of the current node as a string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)
     */
    readonly nodeName: string;
    /**
     * The read-only **\`nodeType\`** property of a Node interface is an integer that identifies what the node is.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType)
     */
    readonly nodeType: number;
    /**
     * The **\`nodeValue\`** property of the Node interface returns or sets the value of the current node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue)
     */
    nodeValue: string | null;
    /**
     * The read-only **\`ownerDocument\`** property of the Node interface returns the top-level document object of the node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument)
     */
    readonly ownerDocument: Document | null;
    /**
     * The read-only **\`parentElement\`** property of Node interface returns the DOM node's parent Element, or \`null\` if the node either has no parent, or its parent isn't a DOM Element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement)
     */
    readonly parentElement: HTMLElement | null;
    /**
     * The read-only **\`parentNode\`** property of the Node interface returns the parent of the specified node in the DOM tree.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode)
     */
    readonly parentNode: ParentNode | null;
    /**
     * The read-only **\`previousSibling\`** property of the Node interface returns the node immediately preceding the specified one in its parent's or \`null\` if the specified node is the first in that list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling)
     */
    readonly previousSibling: ChildNode | null;
    /**
     * The **\`textContent\`** property of the Node interface represents the text content of the node and its descendants.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent)
     */
    textContent: string | null;
    /**
     * The **\`appendChild()\`** method of the Node interface adds a node to the end of the list of children of a specified parent node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild)
     */
    appendChild<T extends Node>(node: T): T;
    /**
     * The **\`cloneNode()\`** method of the Node interface returns a duplicate of the node on which this method was called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)
     */
    cloneNode(subtree?: boolean): Node;
    /**
     * The **\`compareDocumentPosition()\`** method of the Node interface reports the position of its argument node relative to the node on which it is called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition)
     */
    compareDocumentPosition(other: Node): number;
    /**
     * The **\`contains()\`** method of the Node interface returns a boolean value indicating whether a node is a descendant of a given node, that is the node itself, one of its direct children (Node.childNodes), one of the children's direct children, and so on.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains)
     */
    contains(other: Node | null): boolean;
    /**
     * The **\`getRootNode()\`** method of the Node interface returns the context object's root, which optionally includes the shadow root if it is available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode)
     */
    getRootNode(options?: GetRootNodeOptions): Node;
    /**
     * The **\`hasChildNodes()\`** method of the Node interface returns a boolean value indicating whether the given Node has child nodes or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes)
     */
    hasChildNodes(): boolean;
    /**
     * The **\`insertBefore()\`** method of the Node interface inserts a node before a _reference node_ as a child of a specified _parent node_.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore)
     */
    insertBefore<T extends Node>(node: T, child: Node | null): T;
    /**
     * The **\`isDefaultNamespace()\`** method of the Node interface accepts a namespace URI as an argument.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace)
     */
    isDefaultNamespace(namespace: string | null): boolean;
    /**
     * The **\`isEqualNode()\`** method of the Node interface tests whether two nodes are equal.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode)
     */
    isEqualNode(otherNode: Node | null): boolean;
    /**
     * The **\`isSameNode()\`** method of the Node interface is a legacy alias the for the \`===\` strict equality operator.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode)
     */
    isSameNode(otherNode: Node | null): boolean;
    /**
     * The **\`lookupNamespaceURI()\`** method of the Node interface takes a prefix as parameter and returns the namespace URI associated with it on the given node if found (and \`null\` if not).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI)
     */
    lookupNamespaceURI(prefix: string | null): string | null;
    /**
     * The **\`lookupPrefix()\`** method of the Node interface returns a string containing the prefix for a given namespace URI, if present, and \`null\` if not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix)
     */
    lookupPrefix(namespace: string | null): string | null;
    /**
     * The **\`normalize()\`** method of the Node interface puts the specified node and all of its sub-tree into a _normalized_ form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize)
     */
    normalize(): void;
    /**
     * The **\`removeChild()\`** method of the Node interface removes a child node from the DOM and returns the removed node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild)
     */
    removeChild<T extends Node>(child: T): T;
    /**
     * The **\`replaceChild()\`** method of the Node interface replaces a child node within the given (parent) node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild)
     */
    replaceChild<T extends Node>(node: Node, child: T): T;
    /** node is an element. */
    readonly ELEMENT_NODE: 1;
    readonly ATTRIBUTE_NODE: 2;
    /** node is a Text node. */
    readonly TEXT_NODE: 3;
    /** node is a CDATASection node. */
    readonly CDATA_SECTION_NODE: 4;
    readonly ENTITY_REFERENCE_NODE: 5;
    readonly ENTITY_NODE: 6;
    /** node is a ProcessingInstruction node. */
    readonly PROCESSING_INSTRUCTION_NODE: 7;
    /** node is a Comment node. */
    readonly COMMENT_NODE: 8;
    /** node is a document. */
    readonly DOCUMENT_NODE: 9;
    /** node is a doctype. */
    readonly DOCUMENT_TYPE_NODE: 10;
    /** node is a DocumentFragment node. */
    readonly DOCUMENT_FRAGMENT_NODE: 11;
    readonly NOTATION_NODE: 12;
    /** Set when node and other are not in the same tree. */
    readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
    /** Set when other is preceding node. */
    readonly DOCUMENT_POSITION_PRECEDING: 0x02;
    /** Set when other is following node. */
    readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
    /** Set when other is an ancestor of node. */
    readonly DOCUMENT_POSITION_CONTAINS: 0x08;
    /** Set when other is a descendant of node. */
    readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
}

declare var Node: {
    prototype: Node;
    new(): Node;
    /** node is an element. */
    readonly ELEMENT_NODE: 1;
    readonly ATTRIBUTE_NODE: 2;
    /** node is a Text node. */
    readonly TEXT_NODE: 3;
    /** node is a CDATASection node. */
    readonly CDATA_SECTION_NODE: 4;
    readonly ENTITY_REFERENCE_NODE: 5;
    readonly ENTITY_NODE: 6;
    /** node is a ProcessingInstruction node. */
    readonly PROCESSING_INSTRUCTION_NODE: 7;
    /** node is a Comment node. */
    readonly COMMENT_NODE: 8;
    /** node is a document. */
    readonly DOCUMENT_NODE: 9;
    /** node is a doctype. */
    readonly DOCUMENT_TYPE_NODE: 10;
    /** node is a DocumentFragment node. */
    readonly DOCUMENT_FRAGMENT_NODE: 11;
    readonly NOTATION_NODE: 12;
    /** Set when node and other are not in the same tree. */
    readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
    /** Set when other is preceding node. */
    readonly DOCUMENT_POSITION_PRECEDING: 0x02;
    /** Set when other is following node. */
    readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
    /** Set when other is an ancestor of node. */
    readonly DOCUMENT_POSITION_CONTAINS: 0x08;
    /** Set when other is a descendant of node. */
    readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
};

/**
 * The **\`NodeIterator\`** interface represents an iterator to traverse nodes of a DOM subtree in document order.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator)
 */
interface NodeIterator {
    /**
     * The **\`NodeIterator.filter\`** read-only property returns a \`NodeFilter\` object, that is an object which implements an \`acceptNode(node)\` method, used to screen nodes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter)
     */
    readonly filter: NodeFilter | null;
    /**
     * The **\`NodeIterator.pointerBeforeReferenceNode\`** read-only property returns a boolean flag that indicates whether the \`NodeFilter\` is anchored before (if this value is \`true\`) or after (if this value is \`false\`) the anchor node indicated by the A boolean.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode)
     */
    readonly pointerBeforeReferenceNode: boolean;
    /**
     * The **\`NodeIterator.referenceNode\`** read-only property returns the iterator remains anchored to the reference node as specified by this property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode)
     */
    readonly referenceNode: Node;
    /**
     * The **\`NodeIterator.root\`** read-only property represents the traverses.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root)
     */
    readonly root: Node;
    /**
     * The **\`NodeIterator.whatToShow\`** read-only property represents an \`unsigned integer\` representing a bitmask signifying what types of nodes should be returned by the NodeIterator.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow)
     */
    readonly whatToShow: number;
    /**
     * The **\`NodeIterator.detach()\`** method is a no-op, kept for backward compatibility only.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach)
     */
    detach(): void;
    /**
     * The **\`NodeIterator.nextNode()\`** method returns the next node in the set represented by the NodeIterator and advances the position of the iterator within the set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode)
     */
    nextNode(): Node | null;
    /**
     * The **\`NodeIterator.previousNode()\`** method returns the previous node in the set represented by the NodeIterator and moves the position of the iterator backwards within the set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode)
     */
    previousNode(): Node | null;
}

declare var NodeIterator: {
    prototype: NodeIterator;
    new(): NodeIterator;
};

/**
 * **\`NodeList\`** objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList)
 */
interface NodeList {
    /**
     * The **\`NodeList.length\`** property returns the number of items in a NodeList.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length)
     */
    readonly length: number;
    /**
     * Returns a node from a \`NodeList\` by index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item)
     */
    item(index: number): Node | null;
    forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
    [index: number]: Node;
}

declare var NodeList: {
    prototype: NodeList;
    new(): NodeList;
};

interface NodeListOf<TNode extends Node> extends NodeList {
    item(index: number): TNode;
    forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
    [index: number]: TNode;
}

interface NonDocumentTypeChildNode {
    /**
     * Returns the first following sibling that is an element, and null otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling)
     */
    readonly nextElementSibling: Element | null;
    /**
     * Returns the first preceding sibling that is an element, and null otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling)
     */
    readonly previousElementSibling: Element | null;
}

interface NonElementParentNode {
    /**
     * Returns the first element within node's descendants whose ID is elementId.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementById)
     */
    getElementById(elementId: string): Element | null;
}

interface NotificationEventMap {
    "click": Event;
    "close": Event;
    "error": Event;
    "show": Event;
}

/**
 * The **\`Notification\`** interface of the Notifications API is used to configure and display desktop notifications to the user.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
 */
interface Notification extends EventTarget {
    /**
     * The **\`badge\`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
     */
    readonly badge: string;
    /**
     * The **\`body\`** read-only property of the specified in the \`body\` option of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body)
     */
    readonly body: string;
    /**
     * The **\`data\`** read-only property of the data, as specified in the \`data\` option of the The notification's data can be any arbitrary data that you want associated with the notification.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data)
     */
    readonly data: any;
    /**
     * The **\`dir\`** read-only property of the Notification interface indicates the text direction of the notification, as specified in the \`dir\` option of the Notification.Notification constructor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir)
     */
    readonly dir: NotificationDirection;
    /**
     * The **\`icon\`** read-only property of the part of the notification, as specified in the \`icon\` option of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon)
     */
    readonly icon: string;
    /**
     * The **\`lang\`** read-only property of the as specified in the \`lang\` option of the The language itself is specified using a string representing a language tag according to MISSING: RFC(5646, 'Tags for Identifying Languages (also known as BCP 47)')].
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang)
     */
    readonly lang: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */
    onclick: ((this: Notification, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */
    onclose: ((this: Notification, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */
    onerror: ((this: Notification, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
    onshow: ((this: Notification, ev: Event) => any) | null;
    /**
     * The **\`requireInteraction\`** read-only property of the Notification interface returns a boolean value indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction)
     */
    readonly requireInteraction: boolean;
    /**
     * The **\`silent\`** read-only property of the silent, i.e., no sounds or vibrations should be issued regardless of the device settings.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent)
     */
    readonly silent: boolean | null;
    /**
     * The **\`tag\`** read-only property of the as specified in the \`tag\` option of the The idea of notification tags is that more than one notification can share the same tag, linking them together.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag)
     */
    readonly tag: string;
    /**
     * The **\`title\`** read-only property of the specified in the \`title\` parameter of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title)
     */
    readonly title: string;
    /**
     * The **\`close()\`** method of the Notification interface is used to close/remove a previously displayed notification.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close)
     */
    close(): void;
    addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var Notification: {
    prototype: Notification;
    new(title: string, options?: NotificationOptions): Notification;
    /**
     * The **\`permission\`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static)
     */
    readonly permission: NotificationPermission;
    /**
     * The **\`requestPermission()\`** static method of the Notification interface requests permission from the user for the current origin to display notifications.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static)
     */
    requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
};

/**
 * The **\`OES_draw_buffers_indexed\`** extension is part of the WebGL API and enables the use of different blend options when writing to multiple color buffers simultaneously.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed)
 */
interface OES_draw_buffers_indexed {
    /**
     * The \`blendEquationSeparateiOES()\` method of the OES_draw_buffers_indexed WebGL extension sets the RGB and alpha blend equations separately for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES)
     */
    blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
    /**
     * The \`blendEquationiOES()\` method of the \`OES_draw_buffers_indexed\` WebGL extension sets both the RGB blend and alpha blend equations for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES)
     */
    blendEquationiOES(buf: GLuint, mode: GLenum): void;
    /**
     * The \`blendFuncSeparateiOES()\` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for RGB and alpha components separately for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES)
     */
    blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
    /**
     * The \`blendFunciOES()\` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES)
     */
    blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
    /**
     * The \`colorMaskiOES()\` method of the OES_draw_buffers_indexed WebGL extension sets which color components to enable or to disable when drawing or rendering for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES)
     */
    colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
    /**
     * The \`disableiOES()\` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES)
     */
    disableiOES(target: GLenum, index: GLuint): void;
    /**
     * The \`enableiOES()\` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES)
     */
    enableiOES(target: GLenum, index: GLuint): void;
}

/**
 * The **\`OES_element_index_uint\`** extension is part of the WebGL API and adds support for \`gl.UNSIGNED_INT\` types to WebGLRenderingContext.drawElements().
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)
 */
interface OES_element_index_uint {
}

/**
 * The \`OES_fbo_render_mipmap\` extension is part of the WebGL API and makes it possible to attach any level of a texture to a framebuffer object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap)
 */
interface OES_fbo_render_mipmap {
}

/**
 * The **\`OES_standard_derivatives\`** extension is part of the WebGL API and adds the GLSL derivative functions \`dFdx\`, \`dFdy\`, and \`fwidth\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)
 */
interface OES_standard_derivatives {
    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}

/**
 * The **\`OES_texture_float\`** extension is part of the WebGL API and exposes floating-point pixel types for textures.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)
 */
interface OES_texture_float {
}

/**
 * The **\`OES_texture_float_linear\`** extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)
 */
interface OES_texture_float_linear {
}

/**
 * The **\`OES_texture_half_float\`** extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)
 */
interface OES_texture_half_float {
    readonly HALF_FLOAT_OES: 0x8D61;
}

/**
 * The **\`OES_texture_half_float_linear\`** extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)
 */
interface OES_texture_half_float_linear {
}

/**
 * The **OES_vertex_array_object** extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object)
 */
interface OES_vertex_array_object {
    /**
     * The **\`OES_vertex_array_object.bindVertexArrayOES()\`** method of the WebGL API binds a passed WebGLVertexArrayObject object to the buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)
     */
    bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
    /**
     * The **\`OES_vertex_array_object.createVertexArrayOES()\`** method of the WebGL API creates and initializes a pointing to vertex array data and which provides names for different sets of vertex data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)
     */
    createVertexArrayOES(): WebGLVertexArrayObjectOES;
    /**
     * The **\`OES_vertex_array_object.deleteVertexArrayOES()\`** method of the WebGL API deletes a given \`\`\`js-nolint deleteVertexArrayOES(arrayObject) \`\`\` - \`arrayObject\` - : A WebGLVertexArrayObject (VAO) object to delete.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)
     */
    deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
    /**
     * The **\`OES_vertex_array_object.isVertexArrayOES()\`** method of the WebGL API returns \`true\` if the passed object is a WebGLVertexArrayObject object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)
     */
    isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
    readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}

/**
 * The \`OVR_multiview2\` extension is part of the WebGL API and adds support for rendering into multiple views simultaneously.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2)
 */
interface OVR_multiview2 {
    /**
     * The **\`OVR_multiview2.framebufferTextureMultiviewOVR()\`** method of the WebGL API attaches a multiview texture to a WebGLFramebuffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR)
     */
    framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
    readonly MAX_VIEWS_OVR: 0x9631;
    readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}

/**
 * The Web Audio API \`OfflineAudioCompletionEvent\` interface represents events that occur when the processing of an OfflineAudioContext is terminated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent)
 */
interface OfflineAudioCompletionEvent extends Event {
    /**
     * The **\`renderedBuffer\`** read-only property of the containing the result of processing an OfflineAudioContext.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer)
     */
    readonly renderedBuffer: AudioBuffer;
}

declare var OfflineAudioCompletionEvent: {
    prototype: OfflineAudioCompletionEvent;
    new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
};

interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
    "complete": OfflineAudioCompletionEvent;
}

/**
 * The \`OfflineAudioContext\` interface is an AudioContext interface representing an audio-processing graph built from linked together AudioNodes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext)
 */
interface OfflineAudioContext extends BaseAudioContext {
    /**
     * The **\`length\`** property of the the buffer in sample-frames.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/length)
     */
    readonly length: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/complete_event) */
    oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
    /**
     * The **\`resume()\`** method of the context that has been suspended.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume)
     */
    resume(): Promise<void>;
    /**
     * The \`startRendering()\` method of the OfflineAudioContext Interface starts rendering the audio graph, taking into account the current connections and the current scheduled changes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering)
     */
    startRendering(): Promise<AudioBuffer>;
    /**
     * The **\`suspend()\`** method of the OfflineAudioContext interface schedules a suspension of the time progression in the audio context at the specified time and returns a promise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/suspend)
     */
    suspend(suspendTime: number): Promise<void>;
    addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var OfflineAudioContext: {
    prototype: OfflineAudioContext;
    new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
    new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
};

interface OffscreenCanvasEventMap {
    "contextlost": Event;
    "contextrestored": Event;
}

/**
 * When using the canvas element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
 */
interface OffscreenCanvas extends EventTarget {
    /**
     * The **\`height\`** property returns and sets the height of an OffscreenCanvas object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
     */
    height: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */
    oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */
    oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
    /**
     * The **\`width\`** property returns and sets the width of an OffscreenCanvas object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
     */
    width: number;
    /**
     * The **\`OffscreenCanvas.convertToBlob()\`** method creates a Blob object representing the image contained in the canvas.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
     */
    convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
    /**
     * The **\`OffscreenCanvas.getContext()\`** method returns a drawing context for an offscreen canvas, or \`null\` if the context identifier is not supported, or the offscreen canvas has already been set to a different context mode.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
     */
    getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
    getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
    getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
    getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
    getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
    /**
     * The **\`OffscreenCanvas.transferToImageBitmap()\`** method creates an ImageBitmap object from the most recently rendered image of the \`OffscreenCanvas\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
     */
    transferToImageBitmap(): ImageBitmap;
    addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var OffscreenCanvas: {
    prototype: OffscreenCanvas;
    new(width: number, height: number): OffscreenCanvas;
};

/**
 * The **\`OffscreenCanvasRenderingContext2D\`** interface is a CanvasRenderingContext2D rendering context for drawing to the bitmap of an \`OffscreenCanvas\` object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D)
 */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */
    readonly canvas: OffscreenCanvas;
}

declare var OffscreenCanvasRenderingContext2D: {
    prototype: OffscreenCanvasRenderingContext2D;
    new(): OffscreenCanvasRenderingContext2D;
};

/**
 * The **\`OscillatorNode\`** interface represents a periodic waveform, such as a sine wave.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode)
 */
interface OscillatorNode extends AudioScheduledSourceNode {
    /**
     * The \`detune\` property of the OscillatorNode interface is an a-rate AudioParam representing detuning of oscillation in cents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune)
     */
    readonly detune: AudioParam;
    /**
     * The **\`frequency\`** property of the OscillatorNode interface is an a-rate AudioParam representing the frequency of oscillation in hertz.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency)
     */
    readonly frequency: AudioParam;
    /**
     * The **\`type\`** property of the OscillatorNode interface specifies what shape of waveform the oscillator will output.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type)
     */
    type: OscillatorType;
    /**
     * The **\`setPeriodicWave()\`** method of the OscillatorNode interface is used to point to a PeriodicWave defining a periodic waveform that can be used to shape the oscillator's output, when \`\`\`js-nolint setPeriodicWave(wave) \`\`\` - \`wave\` - : A PeriodicWave object representing the waveform to use as the shape of the oscillator's output.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/setPeriodicWave)
     */
    setPeriodicWave(periodicWave: PeriodicWave): void;
    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var OscillatorNode: {
    prototype: OscillatorNode;
    new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
};

/**
 * The **\`OverconstrainedError\`** interface of the Media Capture and Streams API indicates that the set of desired capabilities for the current MediaStreamTrack cannot currently be met.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError)
 */
interface OverconstrainedError extends DOMException {
    /**
     * The **\`constraint\`** read-only property of the in the constructor, meaning the constraint that was not satisfied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint)
     */
    readonly constraint: string;
}

declare var OverconstrainedError: {
    prototype: OverconstrainedError;
    new(constraint: string, message?: string): OverconstrainedError;
};

/**
 * The **\`PageRevealEvent\`** event object is made available inside handler functions for the Window.pagereveal_event event.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent)
 */
interface PageRevealEvent extends Event {
    /**
     * The **\`viewTransition\`** read-only property of the PageRevealEvent interface contains a ViewTransition object representing the active view transition for the cross-document navigation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageRevealEvent/viewTransition)
     */
    readonly viewTransition: ViewTransition | null;
}

declare var PageRevealEvent: {
    prototype: PageRevealEvent;
    new(type: string, eventInitDict?: PageRevealEventInit): PageRevealEvent;
};

/**
 * The **\`PageSwapEvent\`** event object is made available inside handler functions for the Window.pageswap_event event.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent)
 */
interface PageSwapEvent extends Event {
    /**
     * The **\`activation\`** read-only property of the PageSwapEvent interface contains a NavigationActivation object containing the navigation type and current and destination document history entries for a same-origin navigation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/activation)
     */
    readonly activation: NavigationActivation | null;
    /**
     * The **\`viewTransition\`** read-only property of the PageRevealEvent interface contains a ViewTransition object representing the active view transition for the cross-document navigation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageSwapEvent/viewTransition)
     */
    readonly viewTransition: ViewTransition | null;
}

declare var PageSwapEvent: {
    prototype: PageSwapEvent;
    new(type: string, eventInitDict?: PageSwapEventInit): PageSwapEvent;
};

/**
 * The **\`PageTransitionEvent\`** event object is available inside handler functions for the \`pageshow\` and \`pagehide\` events, fired when a document is being loaded or unloaded.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent)
 */
interface PageTransitionEvent extends Event {
    /**
     * The **\`persisted\`** read-only property indicates if a webpage is loading from a cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent/persisted)
     */
    readonly persisted: boolean;
}

declare var PageTransitionEvent: {
    prototype: PageTransitionEvent;
    new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
};

/**
 * The \`PannerNode\` interface defines an audio-processing object that represents the location, direction, and behavior of an audio source signal in a simulated physical space.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode)
 */
interface PannerNode extends AudioNode {
    /**
     * The \`coneInnerAngle\` property of the PannerNode interface is a double value describing the angle, in degrees, of a cone inside of which there will be no volume reduction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle)
     */
    coneInnerAngle: number;
    /**
     * The \`coneOuterAngle\` property of the PannerNode interface is a double value describing the angle, in degrees, of a cone outside of which the volume will be reduced by a constant value, defined by the PannerNode.coneOuterGain property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle)
     */
    coneOuterAngle: number;
    /**
     * The \`coneOuterGain\` property of the PannerNode interface is a double value, describing the amount of volume reduction outside the cone, defined by the PannerNode.coneOuterAngle attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain)
     */
    coneOuterGain: number;
    /**
     * The \`distanceModel\` property of the PannerNode interface is an enumerated value determining which algorithm to use to reduce the volume of the audio source as it moves away from the listener.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel)
     */
    distanceModel: DistanceModelType;
    /**
     * The \`maxDistance\` property of the PannerNode interface is a double value representing the maximum distance between the audio source and the listener, after which the volume is not reduced any further.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance)
     */
    maxDistance: number;
    /**
     * The **\`orientationX\`** property of the PannerNode interface indicates the X (horizontal) component of the direction in which the audio source is facing, in a 3D Cartesian coordinate space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX)
     */
    readonly orientationX: AudioParam;
    /**
     * The **\`orientationY\`** property of the PannerNode interface indicates the Y (vertical) component of the direction the audio source is facing, in 3D Cartesian coordinate space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY)
     */
    readonly orientationY: AudioParam;
    /**
     * The **\`orientationZ\`** property of the PannerNode interface indicates the Z (depth) component of the direction the audio source is facing, in 3D Cartesian coordinate space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ)
     */
    readonly orientationZ: AudioParam;
    /**
     * The \`panningModel\` property of the PannerNode interface is an enumerated value determining which spatialization algorithm to use to position the audio in 3D space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel)
     */
    panningModel: PanningModelType;
    /**
     * The **\`positionX\`** property of the PannerNode interface specifies the X coordinate of the audio source's position in 3D Cartesian coordinates, corresponding to the _horizontal_ axis (left-right).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX)
     */
    readonly positionX: AudioParam;
    /**
     * The **\`positionY\`** property of the PannerNode interface specifies the Y coordinate of the audio source's position in 3D Cartesian coordinates, corresponding to the _vertical_ axis (top-bottom).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY)
     */
    readonly positionY: AudioParam;
    /**
     * The **\`positionZ\`** property of the PannerNode interface specifies the Z coordinate of the audio source's position in 3D Cartesian coordinates, corresponding to the _depth_ axis (behind-in front of the listener).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ)
     */
    readonly positionZ: AudioParam;
    /**
     * The \`refDistance\` property of the PannerNode interface is a double value representing the reference distance for reducing volume as the audio source moves further from the listener – i.e., the distance at which the volume reduction starts taking effect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance)
     */
    refDistance: number;
    /**
     * The \`rolloffFactor\` property of the PannerNode interface is a double value describing how quickly the volume is reduced as the source moves away from the listener.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor)
     */
    rolloffFactor: number;
    /**
     * The \`setOrientation()\` method of the PannerNode Interface defines the direction the audio source is playing in.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setOrientation)
     */
    setOrientation(x: number, y: number, z: number): void;
    /**
     * The \`setPosition()\` method of the PannerNode Interface defines the position of the audio source relative to the listener (represented by an AudioListener object stored in the BaseAudioContext.listener attribute.) The three parameters \`x\`, \`y\` and \`z\` are unitless and describe the source's position in 3D space using the right-hand Cartesian coordinate system.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setPosition)
     */
    setPosition(x: number, y: number, z: number): void;
}

declare var PannerNode: {
    prototype: PannerNode;
    new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
};

interface ParentNode extends Node {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) */
    readonly childElementCount: number;
    /**
     * Returns the child elements.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/children)
     */
    readonly children: HTMLCollection;
    /**
     * Returns the first child that is an element, and null otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild)
     */
    readonly firstElementChild: Element | null;
    /**
     * Returns the last child that is an element, and null otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild)
     */
    readonly lastElementChild: Element | null;
    /**
     * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
     *
     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)
     */
    append(...nodes: (Node | string)[]): void;
    /**
     * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
     *
     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/prepend)
     */
    prepend(...nodes: (Node | string)[]): void;
    /**
     * Returns the first element that is a descendant of node that matches selectors.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
     */
    querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
    querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
    querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
    /** @deprecated */
    querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
    querySelector<E extends Element = Element>(selectors: string): E | null;
    /**
     * Returns all element descendants of node that match selectors.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll)
     */
    querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
    querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
    querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
    /** @deprecated */
    querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
    querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
    /**
     * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
     *
     * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)
     */
    replaceChildren(...nodes: (Node | string)[]): void;
}

/**
 * The **\`Path2D\`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
 */
interface Path2D extends CanvasPath {
    /**
     * The **\`Path2D.addPath()\`** method of the Canvas 2D API adds one Path2D object to another \`Path2D\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)
     */
    addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}

declare var Path2D: {
    prototype: Path2D;
    new(path?: Path2D | string): Path2D;
};

/**
 * The **\`ContactAddress\`** interface of the Contact Picker API represents a physical address.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress)
 */
interface PaymentAddress {
    /**
     * The **\`addressLine\`** read-only property of the ContactAddress interface is an array of strings, each specifying a line of the address that is not covered by one of the other properties of \`ContactAddress\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/addressLine)
     */
    readonly addressLine: ReadonlyArray<string>;
    /**
     * The **\`city\`** read-only property of the ContactAddress interface returns a string containing the city or town portion of the address.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/city)
     */
    readonly city: string;
    /**
     * The **\`country\`** read-only property of the ContactAddress interface is a string identifying the address's country using the ISO 3166-1 alpha-2 standard.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/country)
     */
    readonly country: string;
    /**
     * The read-only **\`dependentLocality\`** property of the ContactAddress interface is a string containing a locality or sublocality designation within a city, such as a neighborhood, borough, district, or, in the United Kingdom, a dependent locality.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/dependentLocality)
     */
    readonly dependentLocality: string;
    /**
     * The **\`organization\`** read-only property of the ContactAddress interface returns a string containing the name of the organization, firm, company, or institution at the address.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/organization)
     */
    readonly organization: string;
    /**
     * The read-only **\`phone\`** property of the ContactAddress interface returns a string containing the telephone number of the recipient or contact person at the address.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/phone)
     */
    readonly phone: string;
    /**
     * The **\`postalCode\`** read-only property of the ContactAddress interface returns a string containing a code used by a jurisdiction for mail routing, for example, the ZIP Code in the United States or the Postal Index Number (PIN code) in India.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/postalCode)
     */
    readonly postalCode: string;
    /**
     * The read-only **\`recipient\`** property of the ContactAddress interface returns a string containing the name of the recipient, purchaser, or contact person at the address.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/recipient)
     */
    readonly recipient: string;
    /**
     * The read-only **\`region\`** property of the ContactAddress interface returns a string containing the top-level administrative subdivision of the country in which the address is located.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/region)
     */
    readonly region: string;
    /**
     * The **\`sortingCode\`** read-only property of the ContactAddress interface returns a string containing a postal sorting code such as is used in France.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/sortingCode)
     */
    readonly sortingCode: string;
    /**
     * The **\`toJSON()\`** method of the ContactAddress interface is a standard serializer that returns a JSON representation of the \`ContactAddress\` object's properties.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContactAddress/toJSON)
     */
    toJSON(): any;
}

declare var PaymentAddress: {
    prototype: PaymentAddress;
    new(): PaymentAddress;
};

/**
 * The **\`PaymentMethodChangeEvent\`** interface of the Payment Request API describes the PaymentRequest/paymentmethodchange_event event which is fired by some payment handlers when the user switches payment instruments (e.g., a user selects a 'store' card to make a purchase while using Apple Pay).
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent)
 */
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
    /**
     * The read-only **\`methodDetails\`** property of the PaymentMethodChangeEvent interface is an object containing any data the payment handler may provide to describe the change the user has made to their payment method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails)
     */
    readonly methodDetails: any;
    /**
     * The read-only **\`methodName\`** property of the PaymentMethodChangeEvent interface is a string which uniquely identifies the payment handler currently selected by the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodName)
     */
    readonly methodName: string;
}

declare var PaymentMethodChangeEvent: {
    prototype: PaymentMethodChangeEvent;
    new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
};

interface PaymentRequestEventMap {
    "paymentmethodchange": PaymentMethodChangeEvent;
    "shippingaddresschange": PaymentRequestUpdateEvent;
    "shippingoptionchange": PaymentRequestUpdateEvent;
}

/**
 * The Payment Request API's **\`PaymentRequest\`** interface is the primary access point into the API, and lets web content and apps accept payments from the end user on behalf of the operator of the site or the publisher of the app.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest)
 */
interface PaymentRequest extends EventTarget {
    /**
     * The **\`id\`** read-only attribute of the When constructing an instance of the PaymentRequest, you are able to supply an custom id.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id)
     */
    readonly id: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
    onpaymentmethodchange: ((this: PaymentRequest, ev: PaymentMethodChangeEvent) => any) | null;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingaddresschange_event)
     */
    onshippingaddresschange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingoptionchange_event)
     */
    onshippingoptionchange: ((this: PaymentRequest, ev: PaymentRequestUpdateEvent) => any) | null;
    /**
     * The **\`shippingAddress\`** read-only property of the PaymentRequest interface returns the shipping address provided by the user.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingAddress)
     */
    readonly shippingAddress: PaymentAddress | null;
    /**
     * The **\`shippingOption\`** read-only attribute of the PaymentRequest interface returns either the id of a selected shipping option, null (if no shipping option was set to be selected) or a shipping option selected by the user.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingOption)
     */
    readonly shippingOption: string | null;
    /**
     * The **\`shippingType\`** read-only property of the \`'delivery'\`, \`'pickup'\`, or \`null\` if one was not provided by the constructor.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/shippingType)
     */
    readonly shippingType: PaymentShippingType | null;
    /**
     * The \`PaymentRequest.abort()\` method of the PaymentRequest interface causes the user agent to end the payment request and to remove any user interface that might be shown.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort)
     */
    abort(): Promise<void>;
    /**
     * The PaymentRequest method **\`canMakePayment()\`** determines whether or not the request is configured in a way that is compatible with at least one payment method supported by the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment)
     */
    canMakePayment(): Promise<boolean>;
    /**
     * The **PaymentRequest** interface's **\`show()\`** method instructs the user agent to begin the process of showing and handling the user interface for the payment request to the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/show)
     */
    show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
    addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var PaymentRequest: {
    prototype: PaymentRequest;
    new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest;
};

/**
 * The **\`PaymentRequestUpdateEvent\`** interface is used for events sent to a PaymentRequest instance when changes are made to shipping-related information for a pending PaymentRequest.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent)
 */
interface PaymentRequestUpdateEvent extends Event {
    /**
     * The **\`updateWith()\`** method of the \`\`\`js-nolint updateWith(details) \`\`\` - \`details\` - : Either an object or a Promise that resolves to an object, specifying the changes applied to the payment request: - \`displayItems\` MISSING: optional_inline] - : An array of objects, each describing one line item for the payment request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith)
     */
    updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
}

declare var PaymentRequestUpdateEvent: {
    prototype: PaymentRequestUpdateEvent;
    new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};

interface PaymentResponseEventMap {
    "payerdetailchange": PaymentRequestUpdateEvent;
}

/**
 * The **\`PaymentResponse\`** interface of the Payment Request API is returned after a user selects a payment method and approves a payment request.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse)
 */
interface PaymentResponse extends EventTarget {
    /**
     * The **\`details\`** read-only property of the provides a payment method specific message used by the merchant to process the transaction and determine a successful funds transfer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details)
     */
    readonly details: any;
    /**
     * The **\`methodName\`** read-only property of the PaymentResponse interface returns a string uniquely identifying the payment handler selected by the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName)
     */
    readonly methodName: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerdetailchange_event) */
    onpayerdetailchange: ((this: PaymentResponse, ev: PaymentRequestUpdateEvent) => any) | null;
    /**
     * The \`payerEmail\` read-only property of the PaymentResponse interface returns the email address supplied by the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerEmail)
     */
    readonly payerEmail: string | null;
    /**
     * The **\`payerName\`** read-only property of the option is only present when the \`requestPayerName\` option is set to \`true\` in the options parameter of the A string containing the payer name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerName)
     */
    readonly payerName: string | null;
    /**
     * The \`payerPhone\` read-only property of the PaymentResponse interface returns the phone number supplied by the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/payerPhone)
     */
    readonly payerPhone: string | null;
    /**
     * The **\`requestId\`** read-only property of the the \`PaymentResponse()\` constructor by details.id.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId)
     */
    readonly requestId: string;
    /**
     * The **\`shippingAddress\`** read-only property of the \`PaymentRequest\` interface returns a PaymentAddress object containing the shipping address provided by the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingAddress)
     */
    readonly shippingAddress: PaymentAddress | null;
    /**
     * The **\`shippingOption\`** read-only property of the \`PaymentRequest\` interface returns the ID attribute of the shipping option selected by the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/shippingOption)
     */
    readonly shippingOption: string | null;
    /**
     * The PaymentRequest method **\`complete()\`** of the Payment Request API notifies the user interface to be closed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete)
     */
    complete(result?: PaymentComplete): Promise<void>;
    /**
     * The PaymentResponse interface's **\`retry()\`** method makes it possible to ask the user to retry a payment after an error occurs during processing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry)
     */
    retry(errorFields?: PaymentValidationErrors): Promise<void>;
    /**
     * The **\`toJSON()\`** method of the PaymentResponse interface is a Serialization; it returns a JSON representation of the PaymentResponse object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON)
     */
    toJSON(): any;
    addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var PaymentResponse: {
    prototype: PaymentResponse;
    new(): PaymentResponse;
};

interface PerformanceEventMap {
    "resourcetimingbufferfull": Event;
}

/**
 * The **\`Performance\`** interface provides access to performance-related information for the current page.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)
 */
interface Performance extends EventTarget {
    /**
     * The read-only \`performance.eventCounts\` property is an EventCounts map containing the number of events which have been dispatched per event type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts)
     */
    readonly eventCounts: EventCounts;
    /**
     * The legacy **\`Performance.navigation\`** read-only property returns a PerformanceNavigation object representing the type of navigation that occurs in the given browsing context, such as the number of redirections needed to fetch the resource.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/navigation)
     */
    readonly navigation: PerformanceNavigation;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */
    onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
    /**
     * The **\`timeOrigin\`** read-only property of the Performance interface returns the high resolution timestamp that is used as the baseline for performance-related timestamps.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin)
     */
    readonly timeOrigin: DOMHighResTimeStamp;
    /**
     * The legacy **\`Performance.timing\`** read-only property returns a PerformanceTiming object containing latency-related performance information.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing)
     */
    readonly timing: PerformanceTiming;
    /**
     * The **\`clearMarks()\`** method removes all or specific PerformanceMark objects from the browser's performance timeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks)
     */
    clearMarks(markName?: string): void;
    /**
     * The **\`clearMeasures()\`** method removes all or specific PerformanceMeasure objects from the browser's performance timeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures)
     */
    clearMeasures(measureName?: string): void;
    /**
     * The **\`clearResourceTimings()\`** method removes all performance entries with an PerformanceEntry.entryType of \`'resource'\` from the browser's performance timeline and sets the size of the performance resource data buffer to zero.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings)
     */
    clearResourceTimings(): void;
    /**
     * The **\`getEntries()\`** method returns an array of all PerformanceEntry objects currently present in the performance timeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries)
     */
    getEntries(): PerformanceEntryList;
    /**
     * The **\`getEntriesByName()\`** method returns an array of PerformanceEntry objects currently present in the performance timeline with the given _name_ and _type_.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName)
     */
    getEntriesByName(name: string, type?: string): PerformanceEntryList;
    /**
     * The **\`getEntriesByType()\`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given _type_.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType)
     */
    getEntriesByType(type: string): PerformanceEntryList;
    /**
     * The **\`mark()\`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark)
     */
    mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
    /**
     * The **\`measure()\`** method creates a named PerformanceMeasure object representing a time measurement between two marks in the browser's performance timeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure)
     */
    measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
    /**
     * The **\`performance.now()\`** method returns a high resolution timestamp in milliseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now)
     */
    now(): DOMHighResTimeStamp;
    /**
     * The **\`setResourceTimingBufferSize()\`** method sets the desired size of the browser's resource timing buffer which stores the \`'resource'\` performance entries.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize)
     */
    setResourceTimingBufferSize(maxSize: number): void;
    /**
     * The **\`toJSON()\`** method of the Performance interface is a Serialization; it returns a JSON representation of the Performance object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON)
     */
    toJSON(): any;
    addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var Performance: {
    prototype: Performance;
    new(): Performance;
};

/**
 * The **\`PerformanceEntry\`** object encapsulates a single performance metric that is part of the browser's performance timeline.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
 */
interface PerformanceEntry {
    /**
     * The read-only **\`duration\`** property returns a DOMHighResTimeStamp that is the duration of the PerformanceEntry.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration)
     */
    readonly duration: DOMHighResTimeStamp;
    /**
     * The read-only **\`entryType\`** property returns a string representing the type of performance metric that this entry represents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType)
     */
    readonly entryType: string;
    /**
     * The read-only **\`name\`** property of the PerformanceEntry interface is a string representing the name for a performance entry.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name)
     */
    readonly name: string;
    /**
     * The read-only **\`startTime\`** property returns the first DOMHighResTimeStamp recorded for this PerformanceEntry.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime)
     */
    readonly startTime: DOMHighResTimeStamp;
    /**
     * The **\`toJSON()\`** method is a Serialization; it returns a JSON representation of the PerformanceEntry object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON)
     */
    toJSON(): any;
}

declare var PerformanceEntry: {
    prototype: PerformanceEntry;
    new(): PerformanceEntry;
};

/**
 * The \`PerformanceEventTiming\` interface of the Event Timing API provides insights into the latency of certain event types triggered by user interaction.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming)
 */
interface PerformanceEventTiming extends PerformanceEntry {
    /**
     * The read-only **\`cancelable\`** property returns the associated event's \`cancelable\` property, indicating whether the event can be canceled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable)
     */
    readonly cancelable: boolean;
    /**
     * The read-only **\`processingEnd\`** property returns the time the last event handler finished executing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd)
     */
    readonly processingEnd: DOMHighResTimeStamp;
    /**
     * The read-only **\`processingStart\`** property returns the time at which event dispatch started.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart)
     */
    readonly processingStart: DOMHighResTimeStamp;
    /**
     * The read-only **\`target\`** property returns the associated event's last \`target\` which is the node onto which the event was last dispatched.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target)
     */
    readonly target: Node | null;
    /**
     * The **\`toJSON()\`** method of the PerformanceEventTiming interface is a Serialization; it returns a JSON representation of the PerformanceEventTiming object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON)
     */
    toJSON(): any;
}

declare var PerformanceEventTiming: {
    prototype: PerformanceEventTiming;
    new(): PerformanceEventTiming;
};

/**
 * **\`PerformanceMark\`** is an interface for PerformanceEntry objects with an PerformanceEntry.entryType of \`'mark'\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
 */
interface PerformanceMark extends PerformanceEntry {
    /**
     * The read-only **\`detail\`** property returns arbitrary metadata that was included in the mark upon construction (either when using Performance.mark or the PerformanceMark.PerformanceMark constructor).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail)
     */
    readonly detail: any;
}

declare var PerformanceMark: {
    prototype: PerformanceMark;
    new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};

/**
 * **\`PerformanceMeasure\`** is an _abstract_ interface for PerformanceEntry objects with an PerformanceEntry.entryType of \`'measure'\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
 */
interface PerformanceMeasure extends PerformanceEntry {
    /**
     * The read-only **\`detail\`** property returns arbitrary metadata that was included in the mark upon construction (when using Performance.measure.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail)
     */
    readonly detail: any;
}

declare var PerformanceMeasure: {
    prototype: PerformanceMeasure;
    new(): PerformanceMeasure;
};

/**
 * The legacy **\`PerformanceNavigation\`** interface represents information about how the navigation to the current document was done.
 * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation)
 */
interface PerformanceNavigation {
    /**
     * The legacy **\`PerformanceNavigation.redirectCount\`** read-only property returns an \`unsigned short\` representing the number of REDIRECTs done before reaching the page.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount)
     */
    readonly redirectCount: number;
    /**
     * The legacy **\`PerformanceNavigation.type\`** read-only property returns an \`unsigned short\` containing a constant describing how the navigation to this page was done.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type)
     */
    readonly type: number;
    /**
     * The **\`toJSON()\`** method of the PerformanceNavigation interface is a Serialization; it returns a JSON representation of the PerformanceNavigation object.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON)
     */
    toJSON(): any;
    readonly TYPE_NAVIGATE: 0;
    readonly TYPE_RELOAD: 1;
    readonly TYPE_BACK_FORWARD: 2;
    readonly TYPE_RESERVED: 255;
}

/** @deprecated */
declare var PerformanceNavigation: {
    prototype: PerformanceNavigation;
    new(): PerformanceNavigation;
    readonly TYPE_NAVIGATE: 0;
    readonly TYPE_RELOAD: 1;
    readonly TYPE_BACK_FORWARD: 2;
    readonly TYPE_RESERVED: 255;
};

/**
 * The **\`PerformanceNavigationTiming\`** interface provides methods and properties to store and retrieve metrics regarding the browser's document navigation events.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming)
 */
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
    /**
     * The **\`domComplete\`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the user agent sets the document's \`readyState\` to \`'complete'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete)
     */
    readonly domComplete: DOMHighResTimeStamp;
    /**
     * The **\`domContentLoadedEventEnd\`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's \`DOMContentLoaded\` event handler completes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd)
     */
    readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
    /**
     * The **\`domContentLoadedEventStart\`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's \`DOMContentLoaded\` event handler starts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart)
     */
    readonly domContentLoadedEventStart: DOMHighResTimeStamp;
    /**
     * The **\`domInteractive\`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the user agent sets the document's \`readyState\` to \`'interactive'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive)
     */
    readonly domInteractive: DOMHighResTimeStamp;
    /**
     * The **\`loadEventEnd\`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's \`load\` event handler completes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd)
     */
    readonly loadEventEnd: DOMHighResTimeStamp;
    /**
     * The **\`loadEventStart\`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's \`load\` event handler starts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart)
     */
    readonly loadEventStart: DOMHighResTimeStamp;
    /**
     * The **\`redirectCount\`** read-only property returns a number representing the number of redirects since the last non-redirect navigation in the current browsing context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount)
     */
    readonly redirectCount: number;
    /**
     * The **\`type\`** read-only property returns the type of navigation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type)
     */
    readonly type: NavigationTimingType;
    /**
     * The **\`unloadEventEnd\`** read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's \`unload\` event handler completes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd)
     */
    readonly unloadEventEnd: DOMHighResTimeStamp;
    /**
     * The **\`unloadEventStart\`** read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's \`unload\` event handler starts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart)
     */
    readonly unloadEventStart: DOMHighResTimeStamp;
    /**
     * The **\`toJSON()\`** method of the PerformanceNavigationTiming interface is a Serialization; it returns a JSON representation of the PerformanceNavigationTiming object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON)
     */
    toJSON(): any;
}

declare var PerformanceNavigationTiming: {
    prototype: PerformanceNavigationTiming;
    new(): PerformanceNavigationTiming;
};

/**
 * The **\`PerformanceObserver\`** interface is used to observe performance measurement events and be notified of new PerformanceEntry as they are recorded in the browser's _performance timeline_.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver)
 */
interface PerformanceObserver {
    /**
     * The **\`disconnect()\`** method of the PerformanceObserver interface is used to stop the performance observer from receiving any PerformanceEntry events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect)
     */
    disconnect(): void;
    /**
     * The **\`observe()\`** method of the **PerformanceObserver** interface is used to specify the set of performance entry types to observe.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe)
     */
    observe(options?: PerformanceObserverInit): void;
    /**
     * The **\`takeRecords()\`** method of the PerformanceObserver interface returns the current list of PerformanceEntry objects stored in the performance observer, emptying it out.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords)
     */
    takeRecords(): PerformanceEntryList;
}

declare var PerformanceObserver: {
    prototype: PerformanceObserver;
    new(callback: PerformanceObserverCallback): PerformanceObserver;
    /**
     * The static **\`supportedEntryTypes\`** read-only property of the PerformanceObserver interface returns an array of the PerformanceEntry.entryType values supported by the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static)
     */
    readonly supportedEntryTypes: ReadonlyArray<string>;
};

/**
 * The **\`PerformanceObserverEntryList\`** interface is a list of PerformanceEntry that were explicitly observed via the PerformanceObserver.observe method.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList)
 */
interface PerformanceObserverEntryList {
    /**
     * The **\`getEntries()\`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries)
     */
    getEntries(): PerformanceEntryList;
    /**
     * The **\`getEntriesByName()\`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given PerformanceEntry.name and PerformanceEntry.entryType.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)
     */
    getEntriesByName(name: string, type?: string): PerformanceEntryList;
    /**
     * The **\`getEntriesByType()\`** method of the PerformanceObserverEntryList returns a list of explicitly _observed_ PerformanceEntry objects for a given PerformanceEntry.entryType.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)
     */
    getEntriesByType(type: string): PerformanceEntryList;
}

declare var PerformanceObserverEntryList: {
    prototype: PerformanceObserverEntryList;
    new(): PerformanceObserverEntryList;
};

/**
 * The **\`PerformancePaintTiming\`** interface provides timing information about 'paint' (also called 'render') operations during web page construction.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming)
 */
interface PerformancePaintTiming extends PerformanceEntry {
}

declare var PerformancePaintTiming: {
    prototype: PerformancePaintTiming;
    new(): PerformancePaintTiming;
};

/**
 * The **\`PerformanceResourceTiming\`** interface enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
 */
interface PerformanceResourceTiming extends PerformanceEntry {
    /**
     * The **\`connectEnd\`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes establishing the connection to the server to retrieve the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd)
     */
    readonly connectEnd: DOMHighResTimeStamp;
    /**
     * The **\`connectStart\`** read-only property returns the DOMHighResTimeStamp immediately before the user agent starts establishing the connection to the server to retrieve the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
     */
    readonly connectStart: DOMHighResTimeStamp;
    /**
     * The **\`decodedBodySize\`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
     */
    readonly decodedBodySize: number;
    /**
     * The **\`domainLookupEnd\`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes the domain-name lookup for the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)
     */
    readonly domainLookupEnd: DOMHighResTimeStamp;
    /**
     * The **\`domainLookupStart\`** read-only property returns the DOMHighResTimeStamp immediately before the browser starts the domain name lookup for the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart)
     */
    readonly domainLookupStart: DOMHighResTimeStamp;
    /**
     * The **\`encodedBodySize\`** read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize)
     */
    readonly encodedBodySize: number;
    /**
     * The **\`fetchStart\`** read-only property represents a DOMHighResTimeStamp immediately before the browser starts to fetch the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
     */
    readonly fetchStart: DOMHighResTimeStamp;
    /**
     * The **\`initiatorType\`** read-only property is a string representing web platform feature that initiated the resource load.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType)
     */
    readonly initiatorType: string;
    /**
     * The **\`nextHopProtocol\`** read-only property is a string representing the network protocol used to fetch the resource, as identified by the ALPN Protocol ID (RFC7301).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)
     */
    readonly nextHopProtocol: string;
    /**
     * The **\`redirectEnd\`** read-only property returns a DOMHighResTimeStamp immediately after receiving the last byte of the response of the last redirect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd)
     */
    readonly redirectEnd: DOMHighResTimeStamp;
    /**
     * The **\`redirectStart\`** read-only property returns a DOMHighResTimeStamp representing the start time of the fetch which that initiates the redirect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart)
     */
    readonly redirectStart: DOMHighResTimeStamp;
    /**
     * The **\`requestStart\`** read-only property returns a DOMHighResTimeStamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
     */
    readonly requestStart: DOMHighResTimeStamp;
    /**
     * The **\`responseEnd\`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd)
     */
    readonly responseEnd: DOMHighResTimeStamp;
    /**
     * The **\`responseStart\`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the first byte of the response from the server, cache, or local resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart)
     */
    readonly responseStart: DOMHighResTimeStamp;
    /**
     * The **\`responseStatus\`** read-only property represents the HTTP response status code returned when fetching the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus)
     */
    readonly responseStatus: number;
    /**
     * The **\`secureConnectionStart\`** read-only property returns a DOMHighResTimeStamp immediately before the browser starts the handshake process to secure the current connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)
     */
    readonly secureConnectionStart: DOMHighResTimeStamp;
    /**
     * The **\`serverTiming\`** read-only property returns an array of PerformanceServerTiming entries containing server timing metrics.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming)
     */
    readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
    /**
     * The **\`transferSize\`** read-only property represents the size (in octets) of the fetched resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)
     */
    readonly transferSize: number;
    /**
     * The **\`workerStart\`** read-only property of the PerformanceResourceTiming interface returns a The \`workerStart\` property can have the following values: - A DOMHighResTimeStamp.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart)
     */
    readonly workerStart: DOMHighResTimeStamp;
    /**
     * The **\`toJSON()\`** method of the PerformanceResourceTiming interface is a Serialization; it returns a JSON representation of the PerformanceResourceTiming object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON)
     */
    toJSON(): any;
}

declare var PerformanceResourceTiming: {
    prototype: PerformanceResourceTiming;
    new(): PerformanceResourceTiming;
};

/**
 * The **\`PerformanceServerTiming\`** interface surfaces server metrics that are sent with the response in the Server-Timing HTTP header.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming)
 */
interface PerformanceServerTiming {
    /**
     * The **\`description\`** read-only property returns a string value of the server-specified metric description, or an empty string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description)
     */
    readonly description: string;
    /**
     * The **\`duration\`** read-only property returns a double that contains the server-specified metric duration, or the value \`0.0\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)
     */
    readonly duration: DOMHighResTimeStamp;
    /**
     * The **\`name\`** read-only property returns a string value of the server-specified metric name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name)
     */
    readonly name: string;
    /**
     * The **\`toJSON()\`** method of the PerformanceServerTiming interface is a Serialization; it returns a JSON representation of the PerformanceServerTiming object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON)
     */
    toJSON(): any;
}

declare var PerformanceServerTiming: {
    prototype: PerformanceServerTiming;
    new(): PerformanceServerTiming;
};

/**
 * The **\`PerformanceTiming\`** interface is a legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page.
 * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming)
 */
interface PerformanceTiming {
    /**
     * The legacy **\`PerformanceTiming.connectEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, where the connection is opened network.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd)
     */
    readonly connectEnd: number;
    /**
     * The legacy **\`PerformanceTiming.connectStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, where the request to open a connection is sent to the network.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart)
     */
    readonly connectStart: number;
    /**
     * The legacy **\`PerformanceTiming.domComplete\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to \`'complete'\` and the corresponding Document/readystatechange_event event is thrown.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete)
     */
    readonly domComplete: number;
    /**
     * The legacy **\`PerformanceTiming.domContentLoadedEventEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, right after all the scripts that need to be executed as soon as possible, in order or not, has been executed.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)
     */
    readonly domContentLoadedEventEnd: number;
    /**
     * The legacy **\`PerformanceTiming.domContentLoadedEventStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, right before the parser sent the executed right after parsing has been executed.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)
     */
    readonly domContentLoadedEventStart: number;
    /**
     * The legacy **\`PerformanceTiming.domInteractive\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to \`'interactive'\` and the corresponding Document/readystatechange_event event is thrown.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive)
     */
    readonly domInteractive: number;
    /**
     * The legacy **\`PerformanceTiming.domLoading\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the parser started its work, that is when its corresponding Document/readystatechange_event event is thrown.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading)
     */
    readonly domLoading: number;
    /**
     * The legacy **\`PerformanceTiming.domainLookupEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, where the domain lookup is finished.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd)
     */
    readonly domainLookupEnd: number;
    /**
     * The legacy **\`PerformanceTiming.domainLookupStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, where the domain lookup starts.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart)
     */
    readonly domainLookupStart: number;
    /**
     * The legacy **\`PerformanceTiming.fetchStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, the browser is ready to fetch the document using an HTTP request.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart)
     */
    readonly fetchStart: number;
    /**
     * The legacy **\`PerformanceTiming.loadEventEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the Window/load_event event handler terminated, that is when the load event is completed.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd)
     */
    readonly loadEventEnd: number;
    /**
     * The legacy **\`PerformanceTiming.loadEventStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the Window/load_event event was sent for the current document.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart)
     */
    readonly loadEventStart: number;
    /**
     * The legacy **\`PerformanceTiming.navigationStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, right after the prompt for unload terminates on the previous document in the same browsing context.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart)
     */
    readonly navigationStart: number;
    /**
     * The legacy **\`PerformanceTiming.redirectEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, the last HTTP redirect is completed, that is when the last byte of the HTTP response has been received.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd)
     */
    readonly redirectEnd: number;
    /**
     * The legacy **\`PerformanceTiming.redirectStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, the first HTTP redirect starts.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart)
     */
    readonly redirectStart: number;
    /**
     * The legacy **\`PerformanceTiming.requestStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the browser sent the request to obtain the actual document, from the server or from a cache.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart)
     */
    readonly requestStart: number;
    /**
     * The legacy **\`PerformanceTiming.responseEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, when the browser received the last byte of the response, or when the connection is closed if this happened first, from the server from a cache or from a local resource.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd)
     */
    readonly responseEnd: number;
    /**
     * The legacy **\`PerformanceTiming.responseStart\`** read-only property returns an \`unsigned long long\` representing the moment in time (in milliseconds since the UNIX epoch) when the browser received the first byte of the response from the server, cache, or local resource.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart)
     */
    readonly responseStart: number;
    /**
     * The legacy **\`PerformanceTiming.secureConnectionStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, where the secure connection handshake starts.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart)
     */
    readonly secureConnectionStart: number;
    /**
     * The legacy **\`PerformanceTiming.unloadEventEnd\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, the Window/unload_event event handler finishes.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd)
     */
    readonly unloadEventEnd: number;
    /**
     * The legacy **\`PerformanceTiming.unloadEventStart\`** read-only property returns an \`unsigned long long\` representing the moment, in milliseconds since the UNIX epoch, the Window/unload_event event has been thrown.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart)
     */
    readonly unloadEventStart: number;
    /**
     * The legacy **\`toJSON()\`** method of the PerformanceTiming interface is a Serialization; it returns a JSON representation of the PerformanceTiming object.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON)
     */
    toJSON(): any;
}

/** @deprecated */
declare var PerformanceTiming: {
    prototype: PerformanceTiming;
    new(): PerformanceTiming;
};

/**
 * The **\`PeriodicWave\`** interface defines a periodic waveform that can be used to shape the output of an OscillatorNode.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PeriodicWave)
 */
interface PeriodicWave {
}

declare var PeriodicWave: {
    prototype: PeriodicWave;
    new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
};

interface PermissionStatusEventMap {
    "change": Event;
}

/**
 * The **\`PermissionStatus\`** interface of the Permissions API provides the state of an object and an event handler for monitoring changes to said state.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus)
 */
interface PermissionStatus extends EventTarget {
    /**
     * The **\`name\`** read-only property of the PermissionStatus interface returns the name of a requested permission.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name)
     */
    readonly name: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */
    onchange: ((this: PermissionStatus, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the This property returns one of \`'granted'\`, \`'denied'\`, or \`'prompt'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state)
     */
    readonly state: PermissionState;
    addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var PermissionStatus: {
    prototype: PermissionStatus;
    new(): PermissionStatus;
};

/**
 * The **\`Permissions\`** interface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions - Permissions.query - : Returns the user permission status for a given API.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions)
 */
interface Permissions {
    /**
     * The **\`query()\`** method of the Permissions interface returns the state of a user permission on the global scope.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query)
     */
    query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}

declare var Permissions: {
    prototype: Permissions;
    new(): Permissions;
};

/**
 * The **\`PictureInPictureEvent\`** interface represents picture-in-picture-related events, including HTMLVideoElement/enterpictureinpicture_event, HTMLVideoElement/leavepictureinpicture_event and PictureInPictureWindow/resize_event.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent)
 */
interface PictureInPictureEvent extends Event {
    /**
     * The read-only **\`pictureInPictureWindow\`** property of the PictureInPictureEvent interface returns the PictureInPictureWindow the event relates to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow)
     */
    readonly pictureInPictureWindow: PictureInPictureWindow;
}

declare var PictureInPictureEvent: {
    prototype: PictureInPictureEvent;
    new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
};

interface PictureInPictureWindowEventMap {
    "resize": Event;
}

/**
 * The **\`PictureInPictureWindow\`** interface represents an object able to programmatically obtain the **\`width\`** and **\`height\`** and **\`resize event\`** of the floating video window.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow)
 */
interface PictureInPictureWindow extends EventTarget {
    /**
     * The read-only **\`height\`** property of the PictureInPictureWindow interface returns the height of the floating video window in pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/height)
     */
    readonly height: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/resize_event) */
    onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
    /**
     * The read-only **\`width\`** property of the PictureInPictureWindow interface returns the width of the floating video window in pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width)
     */
    readonly width: number;
    addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var PictureInPictureWindow: {
    prototype: PictureInPictureWindow;
    new(): PictureInPictureWindow;
};

/**
 * The \`Plugin\` interface provides information about a browser plugin.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin)
 */
interface Plugin {
    /**
     * Returns the plugin's description.
     * @deprecated
     */
    readonly description: string;
    /**
     * Returns the plugin library's filename, if applicable on the current platform.
     * @deprecated
     */
    readonly filename: string;
    /**
     * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
     * @deprecated
     */
    readonly length: number;
    /**
     * Returns the plugin's name.
     * @deprecated
     */
    readonly name: string;
    /**
     * Returns the specified MimeType object.
     * @deprecated
     */
    item(index: number): MimeType | null;
    /** @deprecated */
    namedItem(name: string): MimeType | null;
    [index: number]: MimeType;
}

/** @deprecated */
declare var Plugin: {
    prototype: Plugin;
    new(): Plugin;
};

/**
 * The \`PluginArray\` interface is used to store a list of Plugin objects; it's returned by the Navigator.plugins property.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray)
 */
interface PluginArray {
    /** @deprecated */
    readonly length: number;
    /** @deprecated */
    item(index: number): Plugin | null;
    /** @deprecated */
    namedItem(name: string): Plugin | null;
    /** @deprecated */
    refresh(): void;
    [index: number]: Plugin;
}

/** @deprecated */
declare var PluginArray: {
    prototype: PluginArray;
    new(): PluginArray;
};

/**
 * The **\`PointerEvent\`** interface represents the state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent)
 */
interface PointerEvent extends MouseEvent {
    /**
     * The **\`altitudeAngle\`** read-only property of the PointerEvent interface represents the angle between a transducer (a pointer or stylus) axis and the X-Y plane of a device screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/altitudeAngle)
     */
    readonly altitudeAngle: number;
    /**
     * The **\`azimuthAngle\`** read-only property of the PointerEvent interface represents the angle between the Y-Z plane and the plane containing both the transducer (pointer or stylus) axis and the Y axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/azimuthAngle)
     */
    readonly azimuthAngle: number;
    /**
     * The **\`height\`** read-only property of the geometry, along the y-axis (in CSS pixels).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height)
     */
    readonly height: number;
    /**
     * The **\`isPrimary\`** read-only property of the created the event is the _primary_ pointer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary)
     */
    readonly isPrimary: boolean;
    /**
     * The **\`pointerId\`** read-only property of the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId)
     */
    readonly pointerId: number;
    /**
     * The **\`pointerType\`** read-only property of the that caused a given pointer event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType)
     */
    readonly pointerType: string;
    /**
     * The **\`pressure\`** read-only property of the input.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure)
     */
    readonly pressure: number;
    /**
     * The **\`tangentialPressure\`** read-only property of the the pointer input (also known as barrel pressure or cylinder stress).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure)
     */
    readonly tangentialPressure: number;
    /**
     * The **\`tiltX\`** read-only property of the PointerEvent interface is the angle (in degrees) between the _Y-Z plane_ of the pointer and the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX)
     */
    readonly tiltX: number;
    /**
     * The **\`tiltY\`** read-only property of the PointerEvent interface is the angle (in degrees) between the _X-Z plane_ of the pointer and the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY)
     */
    readonly tiltY: number;
    /**
     * The **\`twist\`** read-only property of the (e.g., pen stylus) around its major axis, in degrees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist)
     */
    readonly twist: number;
    /**
     * The **\`width\`** read-only property of the geometry along the x-axis, measured in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width)
     */
    readonly width: number;
    /**
     * The **\`getCoalescedEvents()\`** method of the PointerEvent interface returns a sequence of \`PointerEvent\` instances that were coalesced (merged) into a single Element/pointermove_event or Element/pointerrawupdate_event event.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents)
     */
    getCoalescedEvents(): PointerEvent[];
    /**
     * The **\`getPredictedEvents()\`** method of the PointerEvent interface returns a sequence of \`PointerEvent\` instances that are estimated future pointer positions.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents)
     */
    getPredictedEvents(): PointerEvent[];
}

declare var PointerEvent: {
    prototype: PointerEvent;
    new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
};

/**
 * **\`PopStateEvent\`** is an interface for the Window/popstate_event event.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)
 */
interface PopStateEvent extends Event {
    /**
     * The **\`hasUAVisualTransition\`** read-only property of the PopStateEvent interface returns \`true\` if the user agent performed a visual transition for this navigation before dispatching this event, or \`false\` otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/hasUAVisualTransition)
     */
    readonly hasUAVisualTransition: boolean;
    /**
     * The **\`state\`** read-only property of the PopStateEvent interface represents the state stored when the event was created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/state)
     */
    readonly state: any;
}

declare var PopStateEvent: {
    prototype: PopStateEvent;
    new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
};

interface PopoverInvokerElement {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */
    popoverTargetAction: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */
    popoverTargetElement: Element | null;
}

/**
 * The **\`ProcessingInstruction\`** interface represents a processing instruction; that is, a Node which embeds an instruction targeting a specific application but that can be ignored by any other applications which don't recognize the instruction.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)
 */
interface ProcessingInstruction extends CharacterData, LinkStyle {
    readonly ownerDocument: Document;
    /**
     * The read-only **\`target\`** property of the ProcessingInstruction interface represent the application to which the \`ProcessingInstruction\` is targeted.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target)
     */
    readonly target: string;
}

declare var ProcessingInstruction: {
    prototype: ProcessingInstruction;
    new(): ProcessingInstruction;
};

/**
 * The **\`ProgressEvent\`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an \`XMLHttpRequest\`, or the loading of the underlying resource of an img, audio, video, style or link).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
 */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
    /**
     * The **\`ProgressEvent.lengthComputable\`** read-only property is a boolean flag indicating if the resource concerned by the A boolean.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable)
     */
    readonly lengthComputable: boolean;
    /**
     * The **\`ProgressEvent.loaded\`** read-only property is a number indicating the size of the data already transmitted or processed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
     */
    readonly loaded: number;
    readonly target: T | null;
    /**
     * The **\`ProgressEvent.total\`** read-only property is a number indicating the total size of the data being transmitted or processed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
     */
    readonly total: number;
}

declare var ProgressEvent: {
    prototype: ProgressEvent;
    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};

/**
 * The **\`PromiseRejectionEvent\`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)
 */
interface PromiseRejectionEvent extends Event {
    /**
     * The PromiseRejectionEvent interface's **\`promise\`** read-only property indicates the JavaScript rejected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
     */
    readonly promise: Promise<any>;
    /**
     * The PromiseRejectionEvent **\`reason\`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason)
     */
    readonly reason: any;
}

declare var PromiseRejectionEvent: {
    prototype: PromiseRejectionEvent;
    new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};

/**
 * The **\`PublicKeyCredential\`** interface provides information about a public key / private key pair, which is a credential for logging in to a service using an un-phishable and data-breach resistant asymmetric key pair instead of a password.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)
 */
interface PublicKeyCredential extends Credential {
    /**
     * The **\`authenticatorAttachment\`** read-only property of the PublicKeyCredential interface is a string that indicates the general category of authenticator used during the associated CredentialsContainer.create() or CredentialsContainer.get() call.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/authenticatorAttachment)
     */
    readonly authenticatorAttachment: string | null;
    /**
     * The **\`rawId\`** read-only property of the containing the identifier of the credentials.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId)
     */
    readonly rawId: ArrayBuffer;
    /**
     * The **\`response\`** read-only property of the object which is sent from the authenticator to the user agent for the creation/fetching of credentials.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response)
     */
    readonly response: AuthenticatorResponse;
    /**
     * The **\`getClientExtensionResults()\`** method of the PublicKeyCredential interface returns a map between the identifiers of extensions requested during credential creation or authentication, and their results after processing by the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults)
     */
    getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
    /**
     * The **\`toJSON()\`** method of the PublicKeyCredential interface returns a JSON type representation of a PublicKeyCredential.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON)
     */
    toJSON(): PublicKeyCredentialJSON;
}

declare var PublicKeyCredential: {
    prototype: PublicKeyCredential;
    new(): PublicKeyCredential;
    /**
     * The **\`getClientCapabilities()\`** static method of the PublicKeyCredential interface returns a Promise that resolves with an object that can be used to check whether or not particular WebAuthn client capabilities and extensions are supported.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientCapabilities_static)
     */
    getClientCapabilities(): Promise<PublicKeyCredentialClientCapabilities>;
    /**
     * The **\`isConditionalMediationAvailable()\`** static method of the PublicKeyCredential interface returns a Promise which resolves to \`true\` if conditional mediation is available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable_static)
     */
    isConditionalMediationAvailable(): Promise<boolean>;
    /**
     * The **\`isUserVerifyingPlatformAuthenticatorAvailable()\`** static method of the PublicKeyCredential interface returns a Promise which resolves to \`true\` if a user-verifying platform authenticator is present.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static)
     */
    isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
    /**
     * The **\`parseCreationOptionsFromJSON()\`** static method of the PublicKeyCredential interface creates a PublicKeyCredentialCreationOptions object from a JSON representation of its properties.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static)
     */
    parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;
    /**
     * The **\`parseRequestOptionsFromJSON()\`** static method of the PublicKeyCredential interface converts a JSON type representation into a PublicKeyCredentialRequestOptions instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static)
     */
    parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
};

/**
 * The **\`PushManager\`** interface of the Push API provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)
 */
interface PushManager {
    /**
     * The **\`PushManager.getSubscription()\`** method of the PushManager interface retrieves an existing push subscription.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription)
     */
    getSubscription(): Promise<PushSubscription | null>;
    /**
     * The **\`permissionState()\`** method of the string indicating the permission state of the push manager.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState)
     */
    permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
    /**
     * The **\`subscribe()\`** method of the PushManager interface subscribes to a push service.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe)
     */
    subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}

declare var PushManager: {
    prototype: PushManager;
    new(): PushManager;
    /**
     * The **\`supportedContentEncodings\`** read-only static property of the PushManager interface returns an array of supported content codings that can be used to encrypt the payload of a push message.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static)
     */
    readonly supportedContentEncodings: ReadonlyArray<string>;
};

/**
 * The \`PushSubscription\` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
 */
interface PushSubscription {
    /**
     * The **\`endpoint\`** read-only property of the the endpoint associated with the push subscription.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint)
     */
    readonly endpoint: string;
    /**
     * The **\`expirationTime\`** read-only property of the of the subscription expiration time associated with the push subscription, if there is one, or \`null\` otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime)
     */
    readonly expirationTime: EpochTimeStamp | null;
    /**
     * The **\`options\`** read-only property of the PushSubscription interface is an object containing the options used to create the subscription.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options)
     */
    readonly options: PushSubscriptionOptions;
    /**
     * The \`getKey()\` method of the PushSubscription interface returns an ArrayBuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey)
     */
    getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
    /**
     * The \`toJSON()\` method of the PushSubscription interface is a standard serializer: it returns a JSON representation of the subscription properties, providing a useful shortcut.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON)
     */
    toJSON(): PushSubscriptionJSON;
    /**
     * The \`unsubscribe()\` method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe)
     */
    unsubscribe(): Promise<boolean>;
}

declare var PushSubscription: {
    prototype: PushSubscription;
    new(): PushSubscription;
};

/**
 * The **\`PushSubscriptionOptions\`** interface of the Push API represents the options associated with a push subscription.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
 */
interface PushSubscriptionOptions {
    /**
     * The **\`applicationServerKey\`** read-only property of the PushSubscriptionOptions interface contains the public key used by the push server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey)
     */
    readonly applicationServerKey: ArrayBuffer | null;
    /**
     * The **\`userVisibleOnly\`** read-only property of the PushSubscriptionOptions interface indicates if the returned push subscription will only be used for messages whose effect is made visible to the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly)
     */
    readonly userVisibleOnly: boolean;
}

declare var PushSubscriptionOptions: {
    prototype: PushSubscriptionOptions;
    new(): PushSubscriptionOptions;
};

/**
 * The **\`RTCCertificate\`** interface of the WebRTC API provides an object representing a certificate that an RTCPeerConnection uses to authenticate.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate)
 */
interface RTCCertificate {
    /**
     * The read-only **\`expires\`** property of the RTCCertificate interface returns the expiration date of the certificate.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires)
     */
    readonly expires: EpochTimeStamp;
    /**
     * The **\`getFingerprints()\`** method of the **RTCCertificate** interface is used to get an array of certificate fingerprints.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints)
     */
    getFingerprints(): RTCDtlsFingerprint[];
}

declare var RTCCertificate: {
    prototype: RTCCertificate;
    new(): RTCCertificate;
};

interface RTCDTMFSenderEventMap {
    "tonechange": RTCDTMFToneChangeEvent;
}

/**
 * The **\`RTCDTMFSender\`** interface provides a mechanism for transmitting DTMF codes on a WebRTC RTCPeerConnection.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender)
 */
interface RTCDTMFSender extends EventTarget {
    /**
     * The **\`canInsertDTMF\`** read-only property of the RTCDTMFSender interface returns a boolean value which indicates whether the \`RTCDTMFSender\` is capable of sending DTMF tones over the RTCPeerConnection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/canInsertDTMF)
     */
    readonly canInsertDTMF: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/tonechange_event) */
    ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
    /**
     * The RTCDTMFSender interface's toneBuffer property returns a string containing a list of the DTMF tones currently queued for sending to the remote peer over the RTCPeerConnection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer)
     */
    readonly toneBuffer: string;
    /**
     * The **\`insertDTMF()\`** method of the RTCDTMFSender interface sends DTMF tones to the remote peer over the RTCPeerConnection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/insertDTMF)
     */
    insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
    addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var RTCDTMFSender: {
    prototype: RTCDTMFSender;
    new(): RTCDTMFSender;
};

/**
 * The **\`RTCDTMFToneChangeEvent\`** interface represents events sent to indicate that DTMF tones have started or finished playing.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent)
 */
interface RTCDTMFToneChangeEvent extends Event {
    /**
     * The read-only property **\`RTCDTMFToneChangeEvent.tone\`** returns the DTMF character which has just begun to play, or an empty string (\`''\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone)
     */
    readonly tone: string;
}

declare var RTCDTMFToneChangeEvent: {
    prototype: RTCDTMFToneChangeEvent;
    new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
};

interface RTCDataChannelEventMap {
    "bufferedamountlow": Event;
    "close": Event;
    "closing": Event;
    "error": RTCErrorEvent;
    "message": MessageEvent;
    "open": Event;
}

/**
 * The **\`RTCDataChannel\`** interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel)
 */
interface RTCDataChannel extends EventTarget {
    /**
     * The property **\`binaryType\`** on the the type of object which should be used to represent binary data received on the RTCDataChannel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType)
     */
    binaryType: BinaryType;
    /**
     * The read-only \`RTCDataChannel\` property **\`bufferedAmount\`** returns the number of bytes of data currently queued to be sent over the data channel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount)
     */
    readonly bufferedAmount: number;
    /**
     * The \`RTCDataChannel\` property **\`bufferedAmountLowThreshold\`** is used to specify the number of bytes of buffered outgoing data that is considered 'low.' The default value is 0\\.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)
     */
    bufferedAmountLowThreshold: number;
    /**
     * The read-only \`RTCDataChannel\` property **\`id\`** returns an ID number (between 0 and 65,534) which uniquely identifies the RTCDataChannel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id)
     */
    readonly id: number | null;
    /**
     * The read-only \`RTCDataChannel\` property **\`label\`** returns a string containing a name describing the data channel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label)
     */
    readonly label: string;
    /**
     * The read-only \`RTCDataChannel\` property **\`maxPacketLifeTime\`** returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data channel was created, or \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime)
     */
    readonly maxPacketLifeTime: number | null;
    /**
     * The read-only \`RTCDataChannel\` property **\`maxRetransmits\`** returns the maximum number of times the browser should try to retransmit a message before giving up, as set when the data channel was created, or \`null\`, which indicates that there is no maximum.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits)
     */
    readonly maxRetransmits: number | null;
    /**
     * The read-only \`RTCDataChannel\` property **\`negotiated\`** indicates whether the (\`true\`) or by the WebRTC layer (\`false\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated)
     */
    readonly negotiated: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */
    onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */
    onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
    onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
    onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
    onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
    onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
    /**
     * The read-only \`RTCDataChannel\` property **\`ordered\`** indicates whether or not the data channel guarantees in-order delivery of messages; the default is \`true\`, which indicates that the data channel is indeed ordered.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered)
     */
    readonly ordered: boolean;
    /**
     * The read-only \`RTCDataChannel\` property **\`protocol\`** returns a string containing the name of the subprotocol in use.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol)
     */
    readonly protocol: string;
    /**
     * The read-only \`RTCDataChannel\` property **\`readyState\`** returns a string which indicates the state of the data channel's underlying data connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState)
     */
    readonly readyState: RTCDataChannelState;
    /**
     * The **\`RTCDataChannel.close()\`** method closes the closure of the channel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close)
     */
    close(): void;
    /**
     * The **\`send()\`** method of the remote peer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send)
     */
    send(data: string): void;
    send(data: Blob): void;
    send(data: ArrayBuffer): void;
    send(data: ArrayBufferView<ArrayBuffer>): void;
    addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var RTCDataChannel: {
    prototype: RTCDataChannel;
    new(): RTCDataChannel;
};

/**
 * The **\`RTCDataChannelEvent\`** interface represents an event related to a specific RTCDataChannel.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent)
 */
interface RTCDataChannelEvent extends Event {
    /**
     * The read-only property **\`RTCDataChannelEvent.channel\`** returns the RTCDataChannel associated with the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel)
     */
    readonly channel: RTCDataChannel;
}

declare var RTCDataChannelEvent: {
    prototype: RTCDataChannelEvent;
    new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
};

interface RTCDtlsTransportEventMap {
    "error": RTCErrorEvent;
    "statechange": Event;
}

/**
 * The **\`RTCDtlsTransport\`** interface provides access to information about the Datagram Transport Layer Security (**DTLS**) transport over which a RTCPeerConnection's RTP and RTCP packets are sent and received by its RTCRtpSender and RTCRtpReceiver objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport)
 */
interface RTCDtlsTransport extends EventTarget {
    /**
     * The **\`iceTransport\`** read-only property of the **RTCDtlsTransport** interface contains a reference to the underlying RTCIceTransport.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport)
     */
    readonly iceTransport: RTCIceTransport;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/error_event) */
    onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;
    onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the Datagram Transport Layer Security (**DTLS**) transport state.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state)
     */
    readonly state: RTCDtlsTransportState;
    getRemoteCertificates(): ArrayBuffer[];
    addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var RTCDtlsTransport: {
    prototype: RTCDtlsTransport;
    new(): RTCDtlsTransport;
};

/**
 * The **\`RTCEncodedAudioFrame\`** of the WebRTC API represents an encoded audio frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame)
 */
interface RTCEncodedAudioFrame {
    /**
     * The **\`data\`** property of the RTCEncodedAudioFrame interface returns a buffer containing the data for an encoded frame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data)
     */
    data: ArrayBuffer;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */
    readonly timestamp: number;
    /**
     * The **\`getMetadata()\`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata)
     */
    getMetadata(): RTCEncodedAudioFrameMetadata;
}

declare var RTCEncodedAudioFrame: {
    prototype: RTCEncodedAudioFrame;
    new(): RTCEncodedAudioFrame;
};

/**
 * The **\`RTCEncodedVideoFrame\`** of the WebRTC API represents an encoded video frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame)
 */
interface RTCEncodedVideoFrame {
    /**
     * The **\`data\`** property of the RTCEncodedVideoFrame interface returns a buffer containing the frame data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data)
     */
    data: ArrayBuffer;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */
    readonly timestamp: number;
    /**
     * The **\`type\`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type)
     */
    readonly type: RTCEncodedVideoFrameType;
    /**
     * The **\`getMetadata()\`** method of the RTCEncodedVideoFrame interface returns an object containing the metadata associated with the frame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata)
     */
    getMetadata(): RTCEncodedVideoFrameMetadata;
}

declare var RTCEncodedVideoFrame: {
    prototype: RTCEncodedVideoFrame;
    new(): RTCEncodedVideoFrame;
};

/**
 * The **\`RTCError\`** interface describes an error which has occurred while handling WebRTC operations.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError)
 */
interface RTCError extends DOMException {
    /**
     * The RTCError interface's read-only **\`errorDetail\`** property is a string indicating the WebRTC-specific error code that occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail)
     */
    readonly errorDetail: RTCErrorDetailType;
    /**
     * The RTCError read-only property **\`receivedAlert\`** specifies the fatal DTLS error which resulted in an alert being received from the remote peer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert)
     */
    readonly receivedAlert: number | null;
    /**
     * The read-only **\`sctpCauseCode\`** property in an why the SCTP negotiation failed, if the \`RTCError\` represents an SCTP error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode)
     */
    readonly sctpCauseCode: number | null;
    /**
     * The RTCError interface's read-only property **\`sdpLineNumber\`** specifies the line number within the An unsigned integer value indicating the line within the SDP at which the syntax error described by the \`RTCError\` object occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber)
     */
    readonly sdpLineNumber: number | null;
    /**
     * The read-only **\`sentAlert\`** property in an while sending data to the remote peer, if the error represents an outbound DTLS error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sentAlert)
     */
    readonly sentAlert: number | null;
}

declare var RTCError: {
    prototype: RTCError;
    new(init: RTCErrorInit, message?: string): RTCError;
};

/**
 * The WebRTC API's **\`RTCErrorEvent\`** interface represents an error sent to a WebRTC object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent)
 */
interface RTCErrorEvent extends Event {
    /**
     * The read-only RTCErrorEvent property **\`error\`** contains an RTCError object describing the details of the error which the event is announcing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error)
     */
    readonly error: RTCError;
}

declare var RTCErrorEvent: {
    prototype: RTCErrorEvent;
    new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
};

/**
 * The **\`RTCIceCandidate\`** interface—part of the WebRTC API—represents a candidate Interactive Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate)
 */
interface RTCIceCandidate {
    /**
     * The **RTCIceCandidate** interface's read-only **\`address\`** property is a string providing the IP address of the device which is the source of the candidate.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address)
     */
    readonly address: string | null;
    /**
     * The read-only property **\`candidate\`** on the RTCIceCandidate interface returns a string describing the candidate in detail.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate)
     */
    readonly candidate: string;
    /**
     * The read-only **\`component\`** property on the RTCIceCandidate interface is a string which indicates whether the candidate is an RTP or an RTCP candidate.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component)
     */
    readonly component: RTCIceComponent | null;
    /**
     * The **\`foundation\`** read-only property of the RTCIceCandidate interface is a string that allows correlation of candidates from a common network path on multiple RTCIceTransport objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation)
     */
    readonly foundation: string | null;
    /**
     * The **RTCIceCandidate** interface's read-only **\`port\`** property contains the port number on the device at the address given by RTCIceCandidate.address at which the candidate's peer can be reached.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port)
     */
    readonly port: number | null;
    /**
     * The **RTCIceCandidate** interface's read-only **\`priority\`** property specifies the candidate's priority according to the remote peer; the higher this value is, the better the remote peer considers the candidate to be.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority)
     */
    readonly priority: number | null;
    /**
     * The **RTCIceCandidate** interface's read-only **\`protocol\`** property is a string which indicates whether the candidate uses UDP or TCP as its transport protocol.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol)
     */
    readonly protocol: RTCIceProtocol | null;
    /**
     * The **RTCIceCandidate** interface's read-only **\`relatedAddress\`** property is a string indicating the **related address** of a relay or reflexive candidate.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress)
     */
    readonly relatedAddress: string | null;
    /**
     * The **RTCIceCandidate** interface's read-only **\`relatedPort\`** property indicates the port number of reflexive or relay candidates.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort)
     */
    readonly relatedPort: number | null;
    /**
     * The read-only **\`sdpMLineIndex\`** property on the RTCIceCandidate interface is a zero-based index of the m-line describing the media associated with the candidate.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex)
     */
    readonly sdpMLineIndex: number | null;
    /**
     * The read-only property **\`sdpMid\`** on the RTCIceCandidate interface returns a string specifying the media stream identification tag of the media component with which the candidate is associated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid)
     */
    readonly sdpMid: string | null;
    /**
     * The **RTCIceCandidate** interface's read-only **\`tcpType\`** property is included on TCP candidates to provide additional details about the candidate type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType)
     */
    readonly tcpType: RTCIceTcpCandidateType | null;
    /**
     * The **RTCIceCandidate** interface's read-only **\`type\`** specifies the type of candidate the object represents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type)
     */
    readonly type: RTCIceCandidateType | null;
    /**
     * The read-only **\`usernameFragment\`** property on the RTCIceCandidate interface is a string indicating the username fragment ('ufrag') that uniquely identifies a single ICE interaction session.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment)
     */
    readonly usernameFragment: string | null;
    /**
     * The RTCIceCandidate method **\`toJSON()\`** converts the \`RTCIceCandidate\` on which it's called into JSON.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON)
     */
    toJSON(): RTCIceCandidateInit;
}

declare var RTCIceCandidate: {
    prototype: RTCIceCandidate;
    new(candidateInitDict?: RTCLocalIceCandidateInit): RTCIceCandidate;
};

/** The **\`RTCIceCandidatePair\`** dictionary describes a pair of ICE candidates which together comprise a description of a viable connection between two WebRTC endpoints. */
interface RTCIceCandidatePair {
    /** The **\`local\`** property of the **RTCIceCandidatePair** dictionary specifies the RTCIceCandidate which describes the configuration of the local end of a viable WebRTC connection. */
    local: RTCIceCandidate;
    /** The **\`remote\`** property of the **RTCIceCandidatePair** dictionary specifies the viable WebRTC connection. */
    remote: RTCIceCandidate;
}

interface RTCIceTransportEventMap {
    "gatheringstatechange": Event;
    "selectedcandidatepairchange": Event;
    "statechange": Event;
}

/**
 * The **\`RTCIceTransport\`** interface provides access to information about the ICE transport layer over which the data is being sent and received.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport)
 */
interface RTCIceTransport extends EventTarget {
    /**
     * The **\`gatheringState\`** read-only property of the RTCIceTransport interface returns a string that indicates the current gathering state of the ICE agent for this transport: \`'new'\`, \`'gathering'\`, or \`'complete'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringState)
     */
    readonly gatheringState: RTCIceGathererState;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringstatechange_event) */
    ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event) */
    onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */
    onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state)
     */
    readonly state: RTCIceTransportState;
    /**
     * The **\`getSelectedCandidatePair()\`** method of the RTCIceTransport interface returns an RTCIceCandidatePair object containing the current best-choice pair of ICE candidates describing the configuration of the endpoints of the transport.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/getSelectedCandidatePair)
     */
    getSelectedCandidatePair(): RTCIceCandidatePair | null;
    addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var RTCIceTransport: {
    prototype: RTCIceTransport;
    new(): RTCIceTransport;
};

interface RTCPeerConnectionEventMap {
    "connectionstatechange": Event;
    "datachannel": RTCDataChannelEvent;
    "icecandidate": RTCPeerConnectionIceEvent;
    "icecandidateerror": RTCPeerConnectionIceErrorEvent;
    "iceconnectionstatechange": Event;
    "icegatheringstatechange": Event;
    "negotiationneeded": Event;
    "signalingstatechange": Event;
    "track": RTCTrackEvent;
}

/**
 * The **\`RTCPeerConnection\`** interface represents a WebRTC connection between the local computer and a remote peer.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection)
 */
interface RTCPeerConnection extends EventTarget {
    /**
     * The **\`canTrickleIceCandidates\`** read-only property of the RTCPeerConnection interface returns a boolean value which indicates whether or not the remote peer can accept trickled ICE candidates.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates)
     */
    readonly canTrickleIceCandidates: boolean | null;
    /**
     * The **\`connectionState\`** read-only property of the RTCPeerConnection interface indicates the current state of the peer connection by returning one of the following string values: \`new\`, \`connecting\`, \`connected\`, \`disconnected\`, \`failed\`, or \`closed\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState)
     */
    readonly connectionState: RTCPeerConnectionState;
    /**
     * The **\`currentLocalDescription\`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription object describing the local end of the connection as it was most recently successfully negotiated since the last time the RTCPeerConnection finished negotiating and connecting to a remote peer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription)
     */
    readonly currentLocalDescription: RTCSessionDescription | null;
    /**
     * The **\`currentRemoteDescription\`** read-only property of the RTCPeerConnection interface returns an Also included is a list of any ICE candidates that may already have been generated by the ICE agent since the offer or answer represented by the description was first instantiated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription)
     */
    readonly currentRemoteDescription: RTCSessionDescription | null;
    /**
     * The **\`iceConnectionState\`** read-only property of the RTCPeerConnection interface returns a string which state of the ICE agent associated with the RTCPeerConnection: \`new\`, \`checking\`, \`connected\`, \`completed\`, \`failed\`, \`disconnected\`, and \`closed\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState)
     */
    readonly iceConnectionState: RTCIceConnectionState;
    /**
     * The **\`iceGatheringState\`** read-only property of the RTCPeerConnection interface returns a string that describes the overall ICE gathering state for this connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState)
     */
    readonly iceGatheringState: RTCIceGatheringState;
    /**
     * The **\`localDescription\`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription describing the session for the local end of the connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/localDescription)
     */
    readonly localDescription: RTCSessionDescription | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionstatechange_event) */
    onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/datachannel_event) */
    ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */
    onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */
    onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */
    oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */
    onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/negotiationneeded_event) */
    onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingstatechange_event) */
    onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/track_event) */
    ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
    /**
     * The **\`pendingLocalDescription\`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription object describing a pending configuration change for the local end of the connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription)
     */
    readonly pendingLocalDescription: RTCSessionDescription | null;
    /**
     * The **\`pendingRemoteDescription\`** read-only property of the RTCPeerConnection interface returns an RTCSessionDescription object describing a pending configuration change for the remote end of the connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription)
     */
    readonly pendingRemoteDescription: RTCSessionDescription | null;
    /**
     * The **\`remoteDescription\`** read-only property of the RTCPeerConnection interface returns a RTCSessionDescription describing the session (which includes configuration and media information) for the remote end of the connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription)
     */
    readonly remoteDescription: RTCSessionDescription | null;
    /**
     * The **\`sctp\`** read-only property of the RTCPeerConnection interface returns an RTCSctpTransport describing the SCTP transport over which SCTP data is being sent and received.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp)
     */
    readonly sctp: RTCSctpTransport | null;
    /**
     * The **\`signalingState\`** read-only property of the RTCPeerConnection interface returns a string value describing the state of the signaling process on the local end of the connection while connecting or reconnecting to another peer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState)
     */
    readonly signalingState: RTCSignalingState;
    /**
     * The **\`addIceCandidate()\`** method of the RTCPeerConnection interface adds a new remote candidate to the connection's remote description, which describes the state of the remote end of the connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate)
     */
    addIceCandidate(candidate?: RTCIceCandidateInit | null): Promise<void>;
    /** @deprecated */
    addIceCandidate(candidate: RTCIceCandidateInit | null, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
    /**
     * The **\`addTrack()\`** method of the RTCPeerConnection interface adds a new media track to the set of tracks which will be transmitted to the other peer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack)
     */
    addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
    /**
     * The **\`addTransceiver()\`** method of the RTCPeerConnection interface creates a new RTCRtpTransceiver and adds it to the set of transceivers associated with the \`RTCPeerConnection\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver)
     */
    addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
    /**
     * The **\`close()\`** method of the RTCPeerConnection interface closes the current peer connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close)
     */
    close(): void;
    /**
     * The **\`createAnswer()\`** method of the RTCPeerConnection interface creates an SDP answer to an offer received from a remote peer during the offer/answer negotiation of a WebRTC connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer)
     */
    createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
    /** @deprecated */
    createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
    /**
     * The **\`createDataChannel()\`** method of the RTCPeerConnection interface creates a new channel linked with the remote peer, over which any kind of data may be transmitted.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel)
     */
    createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
    /**
     * The **\`createOffer()\`** method of the RTCPeerConnection interface initiates the creation of an SDP offer for the purpose of starting a new WebRTC connection to a remote peer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createOffer)
     */
    createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
    /** @deprecated */
    createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
    /**
     * The **\`getConfiguration()\`** method of the RTCPeerConnection interface returns an object which indicates the current configuration of the RTCPeerConnection on which the method is called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration)
     */
    getConfiguration(): RTCConfiguration;
    /**
     * The **\`getReceivers()\`** method of the RTCPeerConnection interface returns an array of RTCRtpReceiver objects, each of which represents one RTP receiver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers)
     */
    getReceivers(): RTCRtpReceiver[];
    /**
     * The **\`getSenders()\`** method of the RTCPeerConnection interface returns an array of RTCRtpSender objects, each of which represents the RTP sender responsible for transmitting one track's data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders)
     */
    getSenders(): RTCRtpSender[];
    /**
     * The **\`getStats()\`** method of the RTCPeerConnection interface returns a promise which resolves with data providing statistics about either the overall connection or about the specified MediaStreamTrack.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats)
     */
    getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
    /**
     * The **\`getTransceivers()\`** method of the RTCPeerConnection interface returns a list of the RTCRtpTransceiver objects being used to send and receive data on the connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers)
     */
    getTransceivers(): RTCRtpTransceiver[];
    /**
     * The **\`removeTrack()\`** method of the RTCPeerConnection interface tells the local end of the connection to stop sending media from the specified track, without actually removing the corresponding RTCRtpSender from the list of senders as reported by RTCPeerConnection.getSenders().
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack)
     */
    removeTrack(sender: RTCRtpSender): void;
    /**
     * The **\`restartIce()\`** method of the RTCPeerConnection interface allows a web application to request that ICE candidate gathering be redone on both ends of the connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce)
     */
    restartIce(): void;
    /**
     * The **\`setConfiguration()\`** method of the RTCPeerConnection interface sets the current configuration of the connection based on the values included in the specified object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration)
     */
    setConfiguration(configuration?: RTCConfiguration): void;
    /**
     * The **\`setLocalDescription()\`** method of the RTCPeerConnection interface changes the local description associated with the connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setLocalDescription)
     */
    setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
    /** @deprecated */
    setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
    /**
     * The **\`setRemoteDescription()\`** method of the RTCPeerConnection interface sets the specified session description as the remote peer's current offer or answer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setRemoteDescription)
     */
    setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
    /** @deprecated */
    setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
    addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var RTCPeerConnection: {
    prototype: RTCPeerConnection;
    new(configuration?: RTCConfiguration): RTCPeerConnection;
    /**
     * The **\`generateCertificate()\`** static function of the RTCPeerConnection interface creates an X.509 certificate and corresponding private key, returning a promise that resolves with the new RTCCertificate once it's generated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static)
     */
    generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
};

/**
 * The **\`RTCPeerConnectionIceErrorEvent\`** interface—based upon the Event interface—provides details pertaining to an ICE error announced by sending an RTCPeerConnection.icecandidateerror_event event to the RTCPeerConnection object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent)
 */
interface RTCPeerConnectionIceErrorEvent extends Event {
    /**
     * The RTCPeerConnectionIceErrorEvent property **\`address\`** is a string which indicates the local IP address being used to communicate with the STUN or TURN server during negotiations.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)
     */
    readonly address: string | null;
    readonly errorCode: number;
    readonly errorText: string;
    readonly port: number | null;
    readonly url: string;
}

declare var RTCPeerConnectionIceErrorEvent: {
    prototype: RTCPeerConnectionIceErrorEvent;
    new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
};

/**
 * The **\`RTCPeerConnectionIceEvent\`** interface represents events that occur in relation to ICE candidates with the target, usually an RTCPeerConnection.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent)
 */
interface RTCPeerConnectionIceEvent extends Event {
    /**
     * The read-only **\`candidate\`** property of the RTCPeerConnectionIceEvent interface returns the An RTCIceCandidate object representing the ICE candidate that has been received, or \`null\` to indicate that there are no further candidates for this negotiation session.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate)
     */
    readonly candidate: RTCIceCandidate | null;
}

declare var RTCPeerConnectionIceEvent: {
    prototype: RTCPeerConnectionIceEvent;
    new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
};

/**
 * The **\`RTCRtpReceiver\`** interface of the WebRTC API manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)
 */
interface RTCRtpReceiver {
    /**
     * The **\`jitterBufferTarget\`** property of the RTCRtpReceiver interface is a DOMHighResTimeStamp that indicates the application's preferred duration, in milliseconds, for which the jitter buffer should hold media before playing it out.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/jitterBufferTarget)
     */
    jitterBufferTarget: DOMHighResTimeStamp | null;
    /**
     * The **\`track\`** read-only property of the associated with the current RTCRtpReceiver instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track)
     */
    readonly track: MediaStreamTrack;
    /**
     * The **\`transform\`** property of the RTCRtpReceiver object is used to insert a transform stream (TransformStream) running in a worker thread into the receiver pipeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform)
     */
    transform: RTCRtpTransform | null;
    /**
     * The read-only **\`transport\`** property of an used to interact with the underlying transport over which the receiver is exchanging Real-time Transport Control Protocol (RTCP) packets.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport)
     */
    readonly transport: RTCDtlsTransport | null;
    /**
     * The **\`getContributingSources()\`** method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one CSRC (contributing source) identifier received by the current \`RTCRtpReceiver\` in the last ten seconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources)
     */
    getContributingSources(): RTCRtpContributingSource[];
    /**
     * The **\`getParameters()\`** method of the RTCRtpReceiver interface returns an object describing the current configuration for how the receiver's RTCRtpReceiver.track is decoded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters)
     */
    getParameters(): RTCRtpReceiveParameters;
    /**
     * The RTCRtpReceiver method **\`getStats()\`** asynchronously requests an RTCStatsReport object which provides statistics about incoming traffic on the owning RTCPeerConnection, returning a Promise whose fulfillment handler will be called once the results are available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats)
     */
    getStats(): Promise<RTCStatsReport>;
    /**
     * The **\`getSynchronizationSources()\`** method of the RTCRtpReceiver interface returns an array of objects, each corresponding to one SSRC (synchronization source) identifier received by the current \`RTCRtpReceiver\` in the last ten seconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources)
     */
    getSynchronizationSources(): RTCRtpSynchronizationSource[];
}

declare var RTCRtpReceiver: {
    prototype: RTCRtpReceiver;
    new(): RTCRtpReceiver;
    /**
     * The _static method_ **\`RTCRtpReceiver.getCapabilities()\`** returns an object describing the codec and header extension capabilities supported by RTCRtpReceiver objects on the current device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static)
     */
    getCapabilities(kind: string): RTCRtpCapabilities | null;
};

/**
 * The **\`RTCRtpScriptTransform\`** interface of the WebRTC API is used to insert a WebRTC Encoded Transform (a TransformStream running in a worker thread) into the WebRTC sender and receiver pipelines.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform)
 */
interface RTCRtpScriptTransform {
}

declare var RTCRtpScriptTransform: {
    prototype: RTCRtpScriptTransform;
    new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform;
};

/**
 * The **\`RTCRtpSender\`** interface provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender)
 */
interface RTCRtpSender {
    /**
     * The read-only **\`dtmf\`** property on the **RTCRtpSender** interface returns a over the RTCPeerConnection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf)
     */
    readonly dtmf: RTCDTMFSender | null;
    /**
     * The **\`track\`** read-only property of the RTCRtpSender interface returns the MediaStreamTrack which is being handled by the \`RTCRtpSender\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track)
     */
    readonly track: MediaStreamTrack | null;
    /**
     * The **\`transform\`** property of the RTCRtpSender object is used to insert a transform stream (TransformStream) running in a worker thread into the sender pipeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform)
     */
    transform: RTCRtpTransform | null;
    /**
     * The read-only **\`transport\`** property of an used to interact with the underlying transport over which the sender is exchanging Real-time Transport Control Protocol (RTCP) packets.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport)
     */
    readonly transport: RTCDtlsTransport | null;
    /**
     * The **\`getParameters()\`** method of the RTCRtpSender interface returns an object describing the current configuration for how the sender's RTCRtpSender.track will be encoded and transmitted to a remote RTCRtpReceiver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters)
     */
    getParameters(): RTCRtpSendParameters;
    /**
     * The RTCRtpSender method **\`getStats()\`** asynchronously requests an RTCStatsReport object which provides statistics about outgoing traffic on the RTCPeerConnection which owns the sender, returning a Promise which is fulfilled when the results are available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats)
     */
    getStats(): Promise<RTCStatsReport>;
    /**
     * The RTCRtpSender method **\`replaceTrack()\`** replaces the track currently being used as the sender's source with a new MediaStreamTrack.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack)
     */
    replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
    /**
     * The **\`setParameters()\`** method of the RTCRtpSender interface applies changes the configuration of sender's RTCRtpSender.track, which is the MediaStreamTrack for which the \`RTCRtpSender\` is responsible.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters)
     */
    setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>;
    /**
     * The RTCRtpSender method **\`setStreams()\`** associates the sender's RTCRtpSender.track with the specified MediaStream objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams)
     */
    setStreams(...streams: MediaStream[]): void;
}

declare var RTCRtpSender: {
    prototype: RTCRtpSender;
    new(): RTCRtpSender;
    /**
     * The _static method_ **\`RTCRtpSender.getCapabilities()\`** returns an object describing the codec and header extension capabilities supported by the RTCRtpSender.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static)
     */
    getCapabilities(kind: string): RTCRtpCapabilities | null;
};

/**
 * The WebRTC interface **\`RTCRtpTransceiver\`** describes a permanent pairing of an RTCRtpSender and an RTCRtpReceiver, along with some shared state.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver)
 */
interface RTCRtpTransceiver {
    /**
     * The read-only RTCRtpTransceiver property **\`currentDirection\`** is a string which indicates the current negotiated directionality of the transceiver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection)
     */
    readonly currentDirection: RTCRtpTransceiverDirection | null;
    /**
     * The RTCRtpTransceiver property **\`direction\`** is a string that indicates the transceiver's _preferred_ directionality.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction)
     */
    direction: RTCRtpTransceiverDirection;
    /**
     * The read-only RTCRtpTransceiver interface's **\`mid\`** property specifies the negotiated media ID (\`mid\`) which the local and remote peers have agreed upon to uniquely identify the stream's pairing of sender and receiver.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid)
     */
    readonly mid: string | null;
    /**
     * The read-only **\`receiver\`** property of WebRTC's RTCRtpTransceiver interface indicates the data for the transceiver's stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver)
     */
    readonly receiver: RTCRtpReceiver;
    /**
     * The read-only **\`sender\`** property of WebRTC's RTCRtpTransceiver interface indicates the for the transceiver's stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender)
     */
    readonly sender: RTCRtpSender;
    /**
     * The **\`setCodecPreferences()\`** method of the RTCRtpTransceiver interface is used to set the codecs that the transceiver allows for decoding _received_ data, in order of decreasing preference.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)
     */
    setCodecPreferences(codecs: RTCRtpCodec[]): void;
    /**
     * The **\`stop()\`** method in the RTCRtpTransceiver interface permanently stops the transceiver by stopping both the associated RTCRtpSender and \`\`\`js-nolint stop() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop)
     */
    stop(): void;
}

declare var RTCRtpTransceiver: {
    prototype: RTCRtpTransceiver;
    new(): RTCRtpTransceiver;
};

interface RTCSctpTransportEventMap {
    "statechange": Event;
}

/**
 * The **\`RTCSctpTransport\`** interface provides information which describes a Stream Control Transmission Protocol (**SCTP**) transport.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport)
 */
interface RTCSctpTransport extends EventTarget {
    /**
     * The **\`maxChannels\`** read-only property of the RTCSctpTransport interface indicates the maximum number of RTCDataChannel objects that can be opened simultaneously.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels)
     */
    readonly maxChannels: number | null;
    /**
     * The **\`maxMessageSize\`** read-only property of the RTCSctpTransport interface indicates the maximum size of a message that can be sent using the RTCDataChannel.send() method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize)
     */
    readonly maxMessageSize: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/statechange_event) */
    onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the RTCSctpTransport interface provides information which describes a Stream Control Transmission Protocol (SCTP) transport state.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state)
     */
    readonly state: RTCSctpTransportState;
    /**
     * The **\`transport\`** read-only property of the RTCSctpTransport interface returns a RTCDtlsTransport object representing the DTLS transport used for the transmission and receipt of data packets.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/transport)
     */
    readonly transport: RTCDtlsTransport;
    addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var RTCSctpTransport: {
    prototype: RTCSctpTransport;
    new(): RTCSctpTransport;
};

/**
 * The **\`RTCSessionDescription\`** interface describes one end of a connection—or potential connection—and how it's configured.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription)
 */
interface RTCSessionDescription {
    /**
     * The property **\`RTCSessionDescription.sdp\`** is a read-only string containing the SDP which describes the session.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp)
     */
    readonly sdp: string;
    /**
     * The property **\`RTCSessionDescription.type\`** is a read-only string value which describes the description's type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type)
     */
    readonly type: RTCSdpType;
    /**
     * The **\`RTCSessionDescription.toJSON()\`** method generates a \`\`\`js-nolint toJSON() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON)
     */
    toJSON(): RTCSessionDescriptionInit;
}

declare var RTCSessionDescription: {
    prototype: RTCSessionDescription;
    new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};

/**
 * The **\`RTCStatsReport\`** interface of the WebRTC API provides a statistics report for a RTCPeerConnection, RTCRtpSender, or RTCRtpReceiver.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport)
 */
interface RTCStatsReport {
    forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
}

declare var RTCStatsReport: {
    prototype: RTCStatsReport;
    new(): RTCStatsReport;
};

/**
 * The WebRTC API interface **\`RTCTrackEvent\`** represents the RTCPeerConnection.track_event event, which is sent when a new MediaStreamTrack is added to an RTCRtpReceiver which is part of the RTCPeerConnection.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent)
 */
interface RTCTrackEvent extends Event {
    /**
     * The read-only **\`receiver\`** property of the RTCTrackEvent interface indicates the The RTCRtpReceiver which pairs the \`receiver\` with a sender and other properties which establish a single bidirectional RTP stream for use by the RTCTrackEvent.track associated with the \`RTCTrackEvent\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver)
     */
    readonly receiver: RTCRtpReceiver;
    /**
     * The WebRTC API interface RTCTrackEvent's read-only **\`streams\`** property specifies an array of track being added to the RTCPeerConnection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams)
     */
    readonly streams: ReadonlyArray<MediaStream>;
    /**
     * The
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track)
     */
    readonly track: MediaStreamTrack;
    /**
     * The WebRTC API interface RTCTrackEvent's read-only **\`transceiver\`** property indicates the The transceiver pairs the track's The RTCRtpTransceiver which pairs the \`receiver\` with a sender and other properties which establish a single bidirectional RTP stream for use by the RTCTrackEvent.track associated with the \`RTCTrackEvent\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/transceiver)
     */
    readonly transceiver: RTCRtpTransceiver;
}

declare var RTCTrackEvent: {
    prototype: RTCTrackEvent;
    new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
};

/**
 * The **\`RadioNodeList\`** interface represents a collection of elements in a form returned by a call to HTMLFormControlsCollection.namedItem().
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList)
 */
interface RadioNodeList extends NodeListOf<HTMLInputElement> {
    /**
     * If the underlying element collection contains radio buttons, the **\`RadioNodeList.value\`** property represents the checked radio button.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value)
     */
    value: string;
}

declare var RadioNodeList: {
    prototype: RadioNodeList;
    new(): RadioNodeList;
};

/**
 * The **\`Range\`** interface represents a fragment of a document that can contain nodes and parts of text nodes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range)
 */
interface Range extends AbstractRange {
    /**
     * The **\`Range.commonAncestorContainer\`** read-only property returns the deepest — or furthest down the document tree — Node that contains both boundary points of the Range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
     */
    readonly commonAncestorContainer: Node;
    /**
     * The **\`cloneContents()\`** method of the Range interface copies the selected Node children of the range's Range/commonAncestorContainer and puts them in a new DocumentFragment object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents)
     */
    cloneContents(): DocumentFragment;
    /**
     * The **\`Range.cloneRange()\`** method returns a The returned clone is copied by value, not reference, so a change in either \`\`\`js-nolint cloneRange() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange)
     */
    cloneRange(): Range;
    /**
     * The **\`collapse()\`** method of the Range interface collapses the A collapsed Range is empty, containing no content, specifying a single-point in a DOM tree.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse)
     */
    collapse(toStart?: boolean): void;
    /**
     * The **\`compareBoundaryPoints()\`** method of the Range interface compares the boundary points of the Range with those of another range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints)
     */
    compareBoundaryPoints(how: number, sourceRange: Range): number;
    /**
     * The **\`comparePoint()\`** method of the Range interface determines whether a specified point is before, within, or after the Range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint)
     */
    comparePoint(node: Node, offset: number): number;
    /**
     * The **\`Range.createContextualFragment()\`** method returns a XML fragment parsing algorithm with the start of the range (the _parent_ of the selected node) as the context node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment)
     */
    createContextualFragment(string: string): DocumentFragment;
    /**
     * The **\`Range.deleteContents()\`** method removes all completely-selected Node within this range from the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents)
     */
    deleteContents(): void;
    /**
     * The **\`Range.detach()\`** method does nothing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach)
     */
    detach(): void;
    /**
     * The **\`extractContents()\`** method of the Range interface is similar to a combination of Range.cloneContents() and Range.deleteContents().
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents)
     */
    extractContents(): DocumentFragment;
    /**
     * The **\`Range.getBoundingClientRect()\`** method returns a DOMRect object that bounds the contents of the range; this is a rectangle enclosing the union of the bounding rectangles for all the elements in the range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect)
     */
    getBoundingClientRect(): DOMRect;
    /**
     * The **\`Range.getClientRects()\`** method returns a list of DOMRect objects representing the area of the screen occupied by the range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects)
     */
    getClientRects(): DOMRectList;
    /**
     * The **\`Range.insertNode()\`** method inserts a node at the start of the Range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode)
     */
    insertNode(node: Node): void;
    /**
     * The **\`Range.intersectsNode()\`** method returns a boolean indicating whether the given Node intersects the Range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode)
     */
    intersectsNode(node: Node): boolean;
    /**
     * The **\`isPointInRange()\`** method of the Range interface determines whether a specified point is within the Range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange)
     */
    isPointInRange(node: Node, offset: number): boolean;
    /**
     * The **\`Range.selectNode()\`** method sets the the parent of the _referenceNode_.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode)
     */
    selectNode(node: Node): void;
    /**
     * The **\`Range.selectNodeContents()\`** method sets the Range to contain the contents of a Node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents)
     */
    selectNodeContents(node: Node): void;
    /**
     * The **\`Range.setEnd()\`** method sets the end position of a Range to be located at the given offset into the specified node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd)
     */
    setEnd(node: Node, offset: number): void;
    /**
     * The **\`Range.setEndAfter()\`** method sets the end position of a \`Node\` of end of the \`Range\` will be the same as that for the \`referenceNode\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter)
     */
    setEndAfter(node: Node): void;
    /**
     * The **\`Range.setEndBefore()\`** method sets the end position of a \`Range\` relative to another Node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore)
     */
    setEndBefore(node: Node): void;
    /**
     * The **\`Range.setStart()\`** method sets the start position of a If the \`startNode\` is a Node of type Text, the number of characters from the start of \`startNode\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart)
     */
    setStart(node: Node, offset: number): void;
    /**
     * The **\`Range.setStartAfter()\`** method sets the start position of a Range relative to a Node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter)
     */
    setStartAfter(node: Node): void;
    /**
     * The **\`Range.setStartBefore()\`** method sets the start position of a Range relative to another Node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore)
     */
    setStartBefore(node: Node): void;
    /**
     * The **\`surroundContents()\`** method of the Range interface surrounds the selected content by a provided node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/surroundContents)
     */
    surroundContents(newParent: Node): void;
    toString(): string;
    readonly START_TO_START: 0;
    readonly START_TO_END: 1;
    readonly END_TO_END: 2;
    readonly END_TO_START: 3;
}

declare var Range: {
    prototype: Range;
    new(): Range;
    readonly START_TO_START: 0;
    readonly START_TO_END: 1;
    readonly END_TO_END: 2;
    readonly END_TO_START: 3;
};

/**
 * The **\`ReadableByteStreamController\`** interface of the Streams API represents a controller for a readable byte stream.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)
 */
interface ReadableByteStreamController {
    /**
     * The **\`byobRequest\`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or \`null\` if there are no pending requests.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)
     */
    readonly byobRequest: ReadableStreamBYOBRequest | null;
    /**
     * The **\`desiredSize\`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its 'desired size'.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)
     */
    readonly desiredSize: number | null;
    /**
     * The **\`close()\`** method of the ReadableByteStreamController interface closes the associated stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close)
     */
    close(): void;
    /**
     * The **\`enqueue()\`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
     */
    enqueue(chunk: ArrayBufferView<ArrayBuffer>): void;
    /**
     * The **\`error()\`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error)
     */
    error(e?: any): void;
}

declare var ReadableByteStreamController: {
    prototype: ReadableByteStreamController;
    new(): ReadableByteStreamController;
};

/**
 * The \`ReadableStream\` interface of the Streams API represents a readable stream of byte data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
 */
interface ReadableStream<R = any> {
    /**
     * The **\`locked\`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)
     */
    readonly locked: boolean;
    /**
     * The **\`cancel()\`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)
     */
    cancel(reason?: any): Promise<void>;
    /**
     * The **\`getReader()\`** method of the ReadableStream interface creates a reader and locks the stream to it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
     */
    getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
    getReader(): ReadableStreamDefaultReader<R>;
    getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
    /**
     * The **\`pipeThrough()\`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)
     */
    pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
    /**
     * The **\`pipeTo()\`** method of the ReadableStream interface pipes the current \`ReadableStream\` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)
     */
    pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
    /**
     * The **\`tee()\`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
     */
    tee(): [ReadableStream<R>, ReadableStream<R>];
}

declare var ReadableStream: {
    prototype: ReadableStream;
    new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
    new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
    new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};

/**
 * The \`ReadableStreamBYOBReader\` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)
 */
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
    /**
     * The **\`read()\`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
     */
    read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
    /**
     * The **\`releaseLock()\`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)
     */
    releaseLock(): void;
}

declare var ReadableStreamBYOBReader: {
    prototype: ReadableStreamBYOBReader;
    new(stream: ReadableStream<Uint8Array<ArrayBuffer>>): ReadableStreamBYOBReader;
};

/**
 * The **\`ReadableStreamBYOBRequest\`** interface of the Streams API represents a 'pull request' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)
 */
interface ReadableStreamBYOBRequest {
    /**
     * The **\`view\`** getter property of the ReadableStreamBYOBRequest interface returns the current view.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
     */
    readonly view: ArrayBufferView<ArrayBuffer> | null;
    /**
     * The **\`respond()\`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond)
     */
    respond(bytesWritten: number): void;
    /**
     * The **\`respondWithNewView()\`** method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)
     */
    respondWithNewView(view: ArrayBufferView<ArrayBuffer>): void;
}

declare var ReadableStreamBYOBRequest: {
    prototype: ReadableStreamBYOBRequest;
    new(): ReadableStreamBYOBRequest;
};

/**
 * The **\`ReadableStreamDefaultController\`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)
 */
interface ReadableStreamDefaultController<R = any> {
    /**
     * The **\`desiredSize\`** read-only property of the required to fill the stream's internal queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
     */
    readonly desiredSize: number | null;
    /**
     * The **\`close()\`** method of the ReadableStreamDefaultController interface closes the associated stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close)
     */
    close(): void;
    /**
     * The **\`enqueue()\`** method of the \`\`\`js-nolint enqueue(chunk) \`\`\` - \`chunk\` - : The chunk to enqueue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
     */
    enqueue(chunk?: R): void;
    /**
     * The **\`error()\`** method of the with the associated stream to error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
     */
    error(e?: any): void;
}

declare var ReadableStreamDefaultController: {
    prototype: ReadableStreamDefaultController;
    new(): ReadableStreamDefaultController;
};

/**
 * The **\`ReadableStreamDefaultReader\`** interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)
 */
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
    /**
     * The **\`read()\`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read)
     */
    read(): Promise<ReadableStreamReadResult<R>>;
    /**
     * The **\`releaseLock()\`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock)
     */
    releaseLock(): void;
}

declare var ReadableStreamDefaultReader: {
    prototype: ReadableStreamDefaultReader;
    new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};

interface ReadableStreamGenericReader {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
    readonly closed: Promise<void>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
    cancel(reason?: any): Promise<void>;
}

interface RemotePlaybackEventMap {
    "connect": Event;
    "connecting": Event;
    "disconnect": Event;
}

/**
 * The **\`RemotePlayback\`** interface of the Remote Playback API allows the page to detect availability of remote playback devices, then connect to and control playing on these devices.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback)
 */
interface RemotePlayback extends EventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connect_event) */
    onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connecting_event) */
    onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/disconnect_event) */
    ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the RemotePlayback interface returns the current state of the \`RemotePlayback\` connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state)
     */
    readonly state: RemotePlaybackState;
    /**
     * The **\`cancelWatchAvailability()\`** method of the RemotePlayback interface cancels the request to watch for one or all available devices.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability)
     */
    cancelWatchAvailability(id?: number): Promise<void>;
    /**
     * The **\`prompt()\`** method of the RemotePlayback interface prompts the user to select an available remote playback device and give permission for the current media to be played using that device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt)
     */
    prompt(): Promise<void>;
    /**
     * The **\`watchAvailability()\`** method of the RemotePlayback interface watches the list of available remote playback devices and returns a Promise that resolves with the \`callbackId\` of a remote playback device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability)
     */
    watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
    addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var RemotePlayback: {
    prototype: RemotePlayback;
    new(): RemotePlayback;
};

/**
 * The \`Report\` interface of the Reporting API represents a single report.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
 */
interface Report {
    /**
     * The **\`body\`** read-only property of the Report interface returns the body of the report, which is a \`ReportBody\` object containing the detailed report information.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
     */
    readonly body: ReportBody | null;
    /**
     * The **\`type\`** read-only property of the Report interface returns the type of report generated, e.g., \`deprecation\` or \`intervention\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
     */
    readonly type: string;
    /**
     * The **\`url\`** read-only property of the Report interface returns the URL of the document that generated the report.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
     */
    readonly url: string;
    toJSON(): any;
}

declare var Report: {
    prototype: Report;
    new(): Report;
};

/**
 * The **\`ReportBody\`** interface of the Reporting API represents the body of a report.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
 */
interface ReportBody {
    /**
     * The **\`toJSON()\`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the \`ReportBody\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
     */
    toJSON(): any;
}

declare var ReportBody: {
    prototype: ReportBody;
    new(): ReportBody;
};

/**
 * The \`ReportingObserver\` interface of the Reporting API allows you to collect and access reports.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver)
 */
interface ReportingObserver {
    /**
     * The **\`disconnect()\`** method of the previously started observing from collecting reports.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect)
     */
    disconnect(): void;
    /**
     * The **\`observe()\`** method of the collecting reports in its report queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe)
     */
    observe(): void;
    /**
     * The **\`takeRecords()\`** method of the in the observer's report queue, and empties the queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords)
     */
    takeRecords(): ReportList;
}

declare var ReportingObserver: {
    prototype: ReportingObserver;
    new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
};

/**
 * The **\`Request\`** interface of the Fetch API represents a resource request.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
 */
interface Request extends Body {
    /**
     * The **\`cache\`** read-only property of the Request interface contains the cache mode of the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
     */
    readonly cache: RequestCache;
    /**
     * The **\`credentials\`** read-only property of the Request interface reflects the value given to the Request.Request() constructor in the \`credentials\` option.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
     */
    readonly credentials: RequestCredentials;
    /**
     * The **\`destination\`** read-only property of the **Request** interface returns a string describing the type of content being requested.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
     */
    readonly destination: RequestDestination;
    /**
     * The **\`headers\`** read-only property of the with the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
     */
    readonly headers: Headers;
    /**
     * The **\`integrity\`** read-only property of the Request interface contains the subresource integrity value of the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
     */
    readonly integrity: string;
    /**
     * The **\`keepalive\`** read-only property of the Request interface contains the request's \`keepalive\` setting (\`true\` or \`false\`), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
     */
    readonly keepalive: boolean;
    /**
     * The **\`method\`** read-only property of the \`POST\`, etc.) A String indicating the method of the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
     */
    readonly method: string;
    /**
     * The **\`mode\`** read-only property of the Request interface contains the mode of the request (e.g., \`cors\`, \`no-cors\`, \`same-origin\`, or \`navigate\`.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
     */
    readonly mode: RequestMode;
    /**
     * The **\`redirect\`** read-only property of the Request interface contains the mode for how redirects are handled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
     */
    readonly redirect: RequestRedirect;
    /**
     * The **\`referrer\`** read-only property of the Request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
     */
    readonly referrer: string;
    /**
     * The **\`referrerPolicy\`** read-only property of the referrer information, sent in the Referer header, should be included with the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
     */
    readonly referrerPolicy: ReferrerPolicy;
    /**
     * The read-only **\`signal\`** property of the Request interface returns the AbortSignal associated with the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
     */
    readonly signal: AbortSignal;
    /**
     * The **\`url\`** read-only property of the Request interface contains the URL of the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
     */
    readonly url: string;
    /**
     * The **\`clone()\`** method of the Request interface creates a copy of the current \`Request\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone)
     */
    clone(): Request;
}

declare var Request: {
    prototype: Request;
    new(input: RequestInfo | URL, init?: RequestInit): Request;
};

/**
 * The **\`ResizeObserver\`** interface reports changes to the dimensions of an Element's content or border box, or the bounding box of an SVGElement.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver)
 */
interface ResizeObserver {
    /**
     * The **\`disconnect()\`** method of the or SVGElement targets.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect)
     */
    disconnect(): void;
    /**
     * The **\`observe()\`** method of the \`\`\`js-nolint observe(target) observe(target, options) \`\`\` - \`target\` - : A reference to an Element or SVGElement to be observed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe)
     */
    observe(target: Element, options?: ResizeObserverOptions): void;
    /**
     * The **\`unobserve()\`** method of the \`\`\`js-nolint unobserve(target) \`\`\` - \`target\` - : A reference to an Element or SVGElement to be unobserved.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve)
     */
    unobserve(target: Element): void;
}

declare var ResizeObserver: {
    prototype: ResizeObserver;
    new(callback: ResizeObserverCallback): ResizeObserver;
};

/**
 * The **\`ResizeObserverEntry\`** interface represents the object passed to the ResizeObserver.ResizeObserver constructor's callback function, which allows you to access the new dimensions of the Element or SVGElement being observed.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry)
 */
interface ResizeObserverEntry {
    /**
     * The **\`borderBoxSize\`** read-only property of the ResizeObserverEntry interface returns an array containing the new border box size of the observed element when the callback is run.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize)
     */
    readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
    /**
     * The **\`contentBoxSize\`** read-only property of the ResizeObserverEntry interface returns an array containing the new content box size of the observed element when the callback is run.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize)
     */
    readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
    /**
     * The \`contentRect\` read-only property of the object containing the new size of the observed element when the callback is run.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect)
     */
    readonly contentRect: DOMRectReadOnly;
    /**
     * The **\`devicePixelContentBoxSize\`** read-only property of the ResizeObserverEntry interface returns an array containing the size in device pixels of the observed element when the callback is run.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/devicePixelContentBoxSize)
     */
    readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
    /**
     * The **\`target\`** read-only property of the An Element or SVGElement representing the element being observed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target)
     */
    readonly target: Element;
}

declare var ResizeObserverEntry: {
    prototype: ResizeObserverEntry;
    new(): ResizeObserverEntry;
};

/**
 * The **\`ResizeObserverSize\`** interface of the Resize Observer API is used by the ResizeObserverEntry interface to access the box sizing properties of the element being observed.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize)
 */
interface ResizeObserverSize {
    /**
     * The **\`blockSize\`** read-only property of the ResizeObserverSize interface returns the length of the observed element's border box in the block dimension.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize)
     */
    readonly blockSize: number;
    /**
     * The **\`inlineSize\`** read-only property of the ResizeObserverSize interface returns the length of the observed element's border box in the inline dimension.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize)
     */
    readonly inlineSize: number;
}

declare var ResizeObserverSize: {
    prototype: ResizeObserverSize;
    new(): ResizeObserverSize;
};

/**
 * The **\`Response\`** interface of the Fetch API represents the response to a request.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
 */
interface Response extends Body {
    /**
     * The **\`headers\`** read-only property of the with the response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)
     */
    readonly headers: Headers;
    /**
     * The **\`ok\`** read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)
     */
    readonly ok: boolean;
    /**
     * The **\`redirected\`** read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)
     */
    readonly redirected: boolean;
    /**
     * The **\`status\`** read-only property of the Response interface contains the HTTP status codes of the response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
     */
    readonly status: number;
    /**
     * The **\`statusText\`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)
     */
    readonly statusText: string;
    /**
     * The **\`type\`** read-only property of the Response interface contains the type of the response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)
     */
    readonly type: ResponseType;
    /**
     * The **\`url\`** read-only property of the Response interface contains the URL of the response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)
     */
    readonly url: string;
    /**
     * The **\`clone()\`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone)
     */
    clone(): Response;
}

declare var Response: {
    prototype: Response;
    new(body?: BodyInit | null, init?: ResponseInit): Response;
    /**
     * The **\`error()\`** static method of the Response interface returns a new \`Response\` object associated with a network error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static)
     */
    error(): Response;
    /**
     * The **\`json()\`** static method of the Response interface returns a \`Response\` that contains the provided JSON data as body, and a Content-Type header which is set to \`application/json\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)
     */
    json(data: any, init?: ResponseInit): Response;
    /**
     * The **\`redirect()\`** static method of the Response interface returns a \`Response\` resulting in a redirect to the specified URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static)
     */
    redirect(url: string | URL, status?: number): Response;
};

/**
 * The **\`SVGAElement\`** interface provides access to the properties of an a element, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
 */
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
    rel: string;
    get relList(): DOMTokenList;
    set relList(value: string);
    /**
     * The **\`SVGAElement.target\`** read-only property of SVGAElement returns an SVGAnimatedString object that specifies the portion of a target window, frame, pane into which a document is to be opened when a link is activated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target)
     */
    readonly target: SVGAnimatedString;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGAElement: {
    prototype: SVGAElement;
    new(): SVGAElement;
};

/**
 * The \`SVGAngle\` interface is used to represent a value that can be an &lt;angle&gt; or &lt;number&gt; value.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle)
 */
interface SVGAngle {
    /**
     * The **\`unitType\`** property of the SVGAngle interface is one of the unit type constants and represents the units in which this angle's value is expressed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/unitType)
     */
    readonly unitType: number;
    /**
     * The \`value\` property of the SVGAngle interface represents the floating point value of the \`<angle>\` in degrees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/value)
     */
    value: number;
    /**
     * The \`valueAsString\` property of the SVGAngle interface represents the angle's value as a string, in the units expressed by SVGAngle.unitType.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/valueAsString)
     */
    valueAsString: string;
    /**
     * The \`valueInSpecifiedUnits\` property of the SVGAngle interface represents the value of this angle as a number, in the units expressed by the angle's SVGAngle.unitType.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/valueInSpecifiedUnits)
     */
    valueInSpecifiedUnits: number;
    /**
     * The \`convertToSpecifiedUnits()\` method of the SVGAngle interface allows you to convert the angle's value to the specified unit type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/convertToSpecifiedUnits)
     */
    convertToSpecifiedUnits(unitType: number): void;
    /**
     * The \`newValueSpecifiedUnits()\` method of the SVGAngle interface sets the value to a number with an associated SVGAngle.unitType, thereby replacing the values for all of the attributes on the object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle/newValueSpecifiedUnits)
     */
    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
    readonly SVG_ANGLETYPE_UNKNOWN: 0;
    readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
    readonly SVG_ANGLETYPE_DEG: 2;
    readonly SVG_ANGLETYPE_RAD: 3;
    readonly SVG_ANGLETYPE_GRAD: 4;
}

declare var SVGAngle: {
    prototype: SVGAngle;
    new(): SVGAngle;
    readonly SVG_ANGLETYPE_UNKNOWN: 0;
    readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
    readonly SVG_ANGLETYPE_DEG: 2;
    readonly SVG_ANGLETYPE_RAD: 3;
    readonly SVG_ANGLETYPE_GRAD: 4;
};

/**
 * The **\`SVGAnimateElement\`** interface corresponds to the animate element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateElement)
 */
interface SVGAnimateElement extends SVGAnimationElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGAnimateElement: {
    prototype: SVGAnimateElement;
    new(): SVGAnimateElement;
};

/**
 * The **\`SVGAnimateMotionElement\`** interface corresponds to the animateMotion element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateMotionElement)
 */
interface SVGAnimateMotionElement extends SVGAnimationElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGAnimateMotionElement: {
    prototype: SVGAnimateMotionElement;
    new(): SVGAnimateMotionElement;
};

/**
 * The \`SVGAnimateTransformElement\` interface corresponds to the animateTransform element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateTransformElement)
 */
interface SVGAnimateTransformElement extends SVGAnimationElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGAnimateTransformElement: {
    prototype: SVGAnimateTransformElement;
    new(): SVGAnimateTransformElement;
};

/**
 * The **\`SVGAnimatedAngle\`** interface is used for attributes of basic type \\<angle> which can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle)
 */
interface SVGAnimatedAngle {
    /**
     * The **\`animVal\`** read-only property of the SVGAnimatedAngle interface represents the current animated value of the associated \`<angle>\` on an SVG element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/animVal)
     */
    readonly animVal: SVGAngle;
    /**
     * The **\`baseVal\`** read-only property of the SVGAnimatedAngle interface represents the base (non-animated) value of the associated \`<angle>\` on an SVG element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle/baseVal)
     */
    readonly baseVal: SVGAngle;
}

declare var SVGAnimatedAngle: {
    prototype: SVGAnimatedAngle;
    new(): SVGAnimatedAngle;
};

/**
 * The **\`SVGAnimatedBoolean\`** interface is used for attributes of type boolean which can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean)
 */
interface SVGAnimatedBoolean {
    /**
     * The **\`animVal\`** read-only property of the SVGAnimatedBoolean interface represents the current animated value of the associated animatable boolean SVG attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/animVal)
     */
    readonly animVal: boolean;
    /**
     * The **\`baseVal\`** property of the SVGAnimatedBoolean interface is the value of the associated animatable boolean SVG attribute in its base (none-animated) state.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean/baseVal)
     */
    baseVal: boolean;
}

declare var SVGAnimatedBoolean: {
    prototype: SVGAnimatedBoolean;
    new(): SVGAnimatedBoolean;
};

/**
 * The **\`SVGAnimatedEnumeration\`** interface describes attribute values which are constants from a particular enumeration and which can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration)
 */
interface SVGAnimatedEnumeration {
    /**
     * The **\`animVal\`** property of the SVGAnimatedEnumeration interface contains the current value of an SVG enumeration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/animVal)
     */
    readonly animVal: number;
    /**
     * The **\`baseVal\`** property of the SVGAnimatedEnumeration interface contains the initial value of an SVG enumeration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration/baseVal)
     */
    baseVal: number;
}

declare var SVGAnimatedEnumeration: {
    prototype: SVGAnimatedEnumeration;
    new(): SVGAnimatedEnumeration;
};

/**
 * The **\`SVGAnimatedInteger\`** interface is used for attributes of basic type \\<integer> which can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger)
 */
interface SVGAnimatedInteger {
    /**
     * The **\`animVal\`** property of the SVGAnimatedInteger interface represents the animated value of an \`<integer>\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger/animVal)
     */
    readonly animVal: number;
    /**
     * The **\`baseVal\`** property of the SVGAnimatedInteger interface represents the base (non-animated) value of an animatable \`<integer>\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger/baseVal)
     */
    baseVal: number;
}

declare var SVGAnimatedInteger: {
    prototype: SVGAnimatedInteger;
    new(): SVGAnimatedInteger;
};

/**
 * The **\`SVGAnimatedLength\`** interface represents attributes of type \\<length> which can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength)
 */
interface SVGAnimatedLength {
    /**
     * The **\`animVal\`** property of the SVGAnimatedLength interface contains the current value of an SVG enumeration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/animVal)
     */
    readonly animVal: SVGLength;
    /**
     * The **\`baseVal\`** property of the SVGAnimatedLength interface contains the initial value of an SVG enumeration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength/baseVal)
     */
    readonly baseVal: SVGLength;
}

declare var SVGAnimatedLength: {
    prototype: SVGAnimatedLength;
    new(): SVGAnimatedLength;
};

/**
 * The **\`SVGAnimatedLengthList\`** interface is used for attributes of type SVGLengthList which can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList)
 */
interface SVGAnimatedLengthList {
    /**
     * The **\`animVal\`** read-only property of the SVGAnimatedLengthList interface represents the animated value of an attribute that accepts a list of \`<length>\`, \`<percentage>\`, or \`<number>\` values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/animVal)
     */
    readonly animVal: SVGLengthList;
    /**
     * The **\`baseVal\`** read-only property of the SVGAnimatedLengthList interface represents the base (non-animated) value of an animatable attribute that accepts a list of \`<length>\`, \`<percentage>\`, or \`<number>\` values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList/baseVal)
     */
    readonly baseVal: SVGLengthList;
}

declare var SVGAnimatedLengthList: {
    prototype: SVGAnimatedLengthList;
    new(): SVGAnimatedLengthList;
};

/**
 * The **\`SVGAnimatedNumber\`** interface represents attributes of type \\<number> which can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber)
 */
interface SVGAnimatedNumber {
    /**
     * The **\`animVal\`** read-only property of the SVGAnimatedNumber interface represents the animated value of an SVG element's numeric attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/animVal)
     */
    readonly animVal: number;
    /**
     * The **\`baseVal\`** property of the SVGAnimatedNumber interface represents the base (non-animated) value of an animatable numeric attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber/baseVal)
     */
    baseVal: number;
}

declare var SVGAnimatedNumber: {
    prototype: SVGAnimatedNumber;
    new(): SVGAnimatedNumber;
};

/**
 * The **\`SVGAnimatedNumberList\`** interface represents a list of attributes of type \\<number> which can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList)
 */
interface SVGAnimatedNumberList {
    /**
     * The **\`animVal\`** read-only property of the SVGAnimatedNumberList interface represents the current animated value of an animatable attribute that accepts a list of \`<number>\` values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/animVal)
     */
    readonly animVal: SVGNumberList;
    /**
     * The **\`baseVal\`** read-only property of the SVGAnimatedNumberList interface represents the base (non-animated) value of an animatable attribute that accepts a list of \`<number>\` values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList/baseVal)
     */
    readonly baseVal: SVGNumberList;
}

declare var SVGAnimatedNumberList: {
    prototype: SVGAnimatedNumberList;
    new(): SVGAnimatedNumberList;
};

interface SVGAnimatedPoints {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/animatedPoints) */
    readonly animatedPoints: SVGPointList;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement/points) */
    readonly points: SVGPointList;
}

/**
 * The **\`SVGAnimatedPreserveAspectRatio\`** interface represents attributes of type SVGPreserveAspectRatio which can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio)
 */
interface SVGAnimatedPreserveAspectRatio {
    /**
     * The **\`animVal\`** read-only property of the SVGAnimatedPreserveAspectRatio interface represents the value of the preserveAspectRatio attribute of an SVG element after any animations or transformations are applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/animVal)
     */
    readonly animVal: SVGPreserveAspectRatio;
    /**
     * The **\`baseVal\`** read-only property of the SVGAnimatedPreserveAspectRatio interface represents the base (non-animated) value of the preserveAspectRatio attribute of an SVG element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio/baseVal)
     */
    readonly baseVal: SVGPreserveAspectRatio;
}

declare var SVGAnimatedPreserveAspectRatio: {
    prototype: SVGAnimatedPreserveAspectRatio;
    new(): SVGAnimatedPreserveAspectRatio;
};

/**
 * The **\`SVGAnimatedRect\`** interface represents an SVGRect attribute that can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect)
 */
interface SVGAnimatedRect {
    /**
     * The **\`animVal\`** read-only property of the SVGAnimatedRect interface represents the current animated value of the \`viewBox\` attribute of an SVG element as a read-only DOMRectReadOnly object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/animVal)
     */
    readonly animVal: DOMRectReadOnly;
    /**
     * The **\`baseVal\`** read-only property of the SVGAnimatedRect interface represents the current non-animated value of the \`viewBox\` attribute of an SVG element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect/baseVal)
     */
    readonly baseVal: DOMRect;
}

declare var SVGAnimatedRect: {
    prototype: SVGAnimatedRect;
    new(): SVGAnimatedRect;
};

/**
 * The **\`SVGAnimatedString\`** interface represents string attributes which can be animated from each SVG declaration.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString)
 */
interface SVGAnimatedString {
    /**
     * The \`animVal\` read-only property of the SVGAnimatedString interface contains the same value as the SVGAnimatedString.baseVal property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal)
     */
    readonly animVal: string;
    /**
     * BaseVal gets or sets the base value of the given attribute before any animations are applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal)
     */
    baseVal: string;
}

declare var SVGAnimatedString: {
    prototype: SVGAnimatedString;
    new(): SVGAnimatedString;
};

/**
 * The **\`SVGAnimatedTransformList\`** interface represents attributes which take a list of numbers and which can be animated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList)
 */
interface SVGAnimatedTransformList {
    /**
     * The **\`animVal\`** read-only property of the SVGAnimatedTransformList interface represents the animated value of the \`transform\` attribute of an SVG element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/animVal)
     */
    readonly animVal: SVGTransformList;
    /**
     * The **\`baseVal\`** read-only property of the SVGAnimatedTransformList interface represents the non-animated value of the \`transform\` attribute of an SVG element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList/baseVal)
     */
    readonly baseVal: SVGTransformList;
}

declare var SVGAnimatedTransformList: {
    prototype: SVGAnimatedTransformList;
    new(): SVGAnimatedTransformList;
};

/**
 * The **\`SVGAnimationElement\`** interface is the base interface for all of the animation element interfaces: SVGAnimateElement, SVGSetElement, SVGAnimateColorElement, SVGAnimateMotionElement and SVGAnimateTransformElement.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement)
 */
interface SVGAnimationElement extends SVGElement, SVGTests {
    /**
     * The **\`targetElement\`** read-only property of the SVGAnimationElement interface refers to the element which is being animated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement)
     */
    readonly targetElement: SVGElement | null;
    /**
     * The SVGAnimationElement method \`beginElement()\` creates a begin instance time for the current time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElement)
     */
    beginElement(): void;
    /**
     * The SVGAnimationElement method \`beginElementAt()\` creates a begin instance time for the current time plus the specified offset.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/beginElementAt)
     */
    beginElementAt(offset: number): void;
    /**
     * The SVGAnimationElement method \`endElement()\` creates an end instance time for the current time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElement)
     */
    endElement(): void;
    /**
     * The SVGAnimationElement method \`endElementAt()\` creates an end instance time for the current time plus the specified offset.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/endElementAt)
     */
    endElementAt(offset: number): void;
    /**
     * The SVGAnimationElement method \`getCurrentTime()\` returns a float representing the current time in seconds relative to time zero for the given time container.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getCurrentTime)
     */
    getCurrentTime(): number;
    /**
     * The SVGAnimationElement method \`getSimpleDuration()\` returns a float representing the number of seconds for the simple duration for this animation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getSimpleDuration)
     */
    getSimpleDuration(): number;
    /**
     * The SVGAnimationElement method \`getStartTime()\` returns a float representing the start time, in seconds, for this animation element's current interval, if it exists, regardless of whether the interval has begun yet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/getStartTime)
     */
    getStartTime(): number;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGAnimationElement: {
    prototype: SVGAnimationElement;
    new(): SVGAnimationElement;
};

/**
 * The **\`SVGCircleElement\`** interface is an interface for the circle element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement)
 */
interface SVGCircleElement extends SVGGeometryElement {
    /**
     * The **\`cx\`** read-only property of the SVGCircleElement interface reflects the cx attribute of a circle element and by that defines the x-coordinate of the circle's center.< If unspecified, the effect is as if the value is set to \`0\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx)
     */
    readonly cx: SVGAnimatedLength;
    /**
     * The **\`cy\`** read-only property of the SVGCircleElement interface reflects the cy attribute of a circle element and by that defines the y-coordinate of the circle's center.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy)
     */
    readonly cy: SVGAnimatedLength;
    /**
     * The **\`r\`** read-only property of the SVGCircleElement interface reflects the r attribute of a circle element and by that defines the radius of the circle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r)
     */
    readonly r: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGCircleElement: {
    prototype: SVGCircleElement;
    new(): SVGCircleElement;
};

/**
 * The **\`SVGClipPathElement\`** interface provides access to the properties of clipPath elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement)
 */
interface SVGClipPathElement extends SVGElement {
    /**
     * The read-only **\`clipPathUnits\`** property of the SVGClipPathElement interface reflects the clipPathUnits attribute of a clipPath element which defines the coordinate system to use for the content of the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits)
     */
    readonly clipPathUnits: SVGAnimatedEnumeration;
    /**
     * The read-only **\`transform\`** property of the SVGClipPathElement interface reflects the transform attribute of a clipPath element, that is a list of transformations applied to the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/transform)
     */
    readonly transform: SVGAnimatedTransformList;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGClipPathElement: {
    prototype: SVGClipPathElement;
    new(): SVGClipPathElement;
};

/**
 * The **\`SVGComponentTransferFunctionElement\`** interface represents a base interface used by the component transfer function interfaces.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement)
 */
interface SVGComponentTransferFunctionElement extends SVGElement {
    /**
     * The **\`amplitude\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the amplitude attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/amplitude)
     */
    readonly amplitude: SVGAnimatedNumber;
    /**
     * The **\`exponent\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the exponent attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/exponent)
     */
    readonly exponent: SVGAnimatedNumber;
    /**
     * The **\`intercept\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the intercept attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/intercept)
     */
    readonly intercept: SVGAnimatedNumber;
    /**
     * The **\`offset\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the offset attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/offset)
     */
    readonly offset: SVGAnimatedNumber;
    /**
     * The **\`slope\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the slope attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/slope)
     */
    readonly slope: SVGAnimatedNumber;
    /**
     * The **\`tableValues\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the tableValues attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/tableValues)
     */
    readonly tableValues: SVGAnimatedNumberList;
    /**
     * The **\`type\`** read-only property of the SVGComponentTransferFunctionElement interface reflects the type attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement/type)
     */
    readonly type: SVGAnimatedEnumeration;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGComponentTransferFunctionElement: {
    prototype: SVGComponentTransferFunctionElement;
    new(): SVGComponentTransferFunctionElement;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
};

/**
 * The **\`SVGDefsElement\`** interface corresponds to the defs element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDefsElement)
 */
interface SVGDefsElement extends SVGGraphicsElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGDefsElement: {
    prototype: SVGDefsElement;
    new(): SVGDefsElement;
};

/**
 * The **\`SVGDescElement\`** interface corresponds to the desc element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDescElement)
 */
interface SVGDescElement extends SVGElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGDescElement: {
    prototype: SVGDescElement;
    new(): SVGDescElement;
};

interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}

/**
 * All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the \`SVGElement\` interface.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
 */
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
    /** @deprecated */
    readonly className: any;
    /**
     * The **\`ownerSVGElement\`** property of the SVGElement interface reflects the nearest ancestor svg element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/ownerSVGElement)
     */
    readonly ownerSVGElement: SVGSVGElement | null;
    /**
     * The **\`viewportElement\`** property of the SVGElement interface represents the \`SVGElement\` which established the current viewport.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/viewportElement)
     */
    readonly viewportElement: SVGElement | null;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGElement: {
    prototype: SVGElement;
    new(): SVGElement;
};

/**
 * The **\`SVGEllipseElement\`** interface provides access to the properties of ellipse elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement)
 */
interface SVGEllipseElement extends SVGGeometryElement {
    /**
     * The **\`cx\`** read-only property of the SVGEllipseElement interface describes the x-axis coordinate of the center of the ellipse as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/cx)
     */
    readonly cx: SVGAnimatedLength;
    /**
     * The **\`cy\`** read-only property of the SVGEllipseElement interface describes the y-axis coordinate of the center of the ellipse as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/cy)
     */
    readonly cy: SVGAnimatedLength;
    /**
     * The **\`rx\`** read-only property of the SVGEllipseElement interface describes the x-axis radius of the ellipse as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/rx)
     */
    readonly rx: SVGAnimatedLength;
    /**
     * The **\`ry\`** read-only property of the SVGEllipseElement interface describes the y-axis radius of the ellipse as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement/ry)
     */
    readonly ry: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGEllipseElement: {
    prototype: SVGEllipseElement;
    new(): SVGEllipseElement;
};

/**
 * The **\`SVGFEBlendElement\`** interface corresponds to the feBlend element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement)
 */
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`in1\`** read-only property of the SVGFEBlendElement interface reflects the in attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/in1)
     */
    readonly in1: SVGAnimatedString;
    /**
     * The **\`in2\`** read-only property of the SVGFEBlendElement interface reflects the in2 attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/in2)
     */
    readonly in2: SVGAnimatedString;
    /**
     * The **\`mode\`** read-only property of the SVGFEBlendElement interface reflects the mode attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/mode)
     */
    readonly mode: SVGAnimatedEnumeration;
    readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
    readonly SVG_FEBLEND_MODE_NORMAL: 1;
    readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
    readonly SVG_FEBLEND_MODE_SCREEN: 3;
    readonly SVG_FEBLEND_MODE_DARKEN: 4;
    readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
    readonly SVG_FEBLEND_MODE_OVERLAY: 6;
    readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
    readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
    readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
    readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
    readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
    readonly SVG_FEBLEND_MODE_HUE: 13;
    readonly SVG_FEBLEND_MODE_SATURATION: 14;
    readonly SVG_FEBLEND_MODE_COLOR: 15;
    readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEBlendElement: {
    prototype: SVGFEBlendElement;
    new(): SVGFEBlendElement;
    readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
    readonly SVG_FEBLEND_MODE_NORMAL: 1;
    readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
    readonly SVG_FEBLEND_MODE_SCREEN: 3;
    readonly SVG_FEBLEND_MODE_DARKEN: 4;
    readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
    readonly SVG_FEBLEND_MODE_OVERLAY: 6;
    readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
    readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
    readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
    readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
    readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
    readonly SVG_FEBLEND_MODE_HUE: 13;
    readonly SVG_FEBLEND_MODE_SATURATION: 14;
    readonly SVG_FEBLEND_MODE_COLOR: 15;
    readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
};

/**
 * The **\`SVGFEColorMatrixElement\`** interface corresponds to the feColorMatrix element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement)
 */
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`in1\`** read-only property of the SVGFEColorMatrixElement interface reflects the in attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1)
     */
    readonly in1: SVGAnimatedString;
    /**
     * The **\`type\`** read-only property of the SVGFEColorMatrixElement interface reflects the type attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type)
     */
    readonly type: SVGAnimatedEnumeration;
    /**
     * The **\`values\`** read-only property of the SVGFEColorMatrixElement interface reflects the values attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values)
     */
    readonly values: SVGAnimatedNumberList;
    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEColorMatrixElement: {
    prototype: SVGFEColorMatrixElement;
    new(): SVGFEColorMatrixElement;
    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
};

/**
 * The **\`SVGFEComponentTransferElement\`** interface corresponds to the feComponentTransfer element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement)
 */
interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`in1\`** read-only property of the SVGFEComponentTransferElement interface reflects the in attribute of the given feComponentTransfer element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement/in1)
     */
    readonly in1: SVGAnimatedString;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEComponentTransferElement: {
    prototype: SVGFEComponentTransferElement;
    new(): SVGFEComponentTransferElement;
};

/**
 * The **\`SVGFECompositeElement\`** interface corresponds to the feComposite element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement)
 */
interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`in1\`** read-only property of the SVGFECompositeElement interface reflects the in attribute of the given feComposite element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/in1)
     */
    readonly in1: SVGAnimatedString;
    /**
     * The **\`in2\`** read-only property of the SVGFECompositeElement interface reflects the in2 attribute of the given feComposite element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/in2)
     */
    readonly in2: SVGAnimatedString;
    /**
     * The **\`k1\`** read-only property of the SVGFECompositeElement interface reflects the k1 attribute of the given feComposite element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k1)
     */
    readonly k1: SVGAnimatedNumber;
    /**
     * The **\`k2\`** read-only property of the SVGFECompositeElement interface reflects the k2 attribute of the given feComposite element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k2)
     */
    readonly k2: SVGAnimatedNumber;
    /**
     * The **\`k3\`** read-only property of the SVGFECompositeElement interface reflects the k3 attribute of the given feComposite element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k3)
     */
    readonly k3: SVGAnimatedNumber;
    /**
     * The **\`k4\`** read-only property of the SVGFECompositeElement interface reflects the k4 attribute of the given feComposite element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/k4)
     */
    readonly k4: SVGAnimatedNumber;
    /**
     * The **\`operator\`** read-only property of the SVGFECompositeElement interface reflects the operator attribute of the given feComposite element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement/operator)
     */
    readonly operator: SVGAnimatedEnumeration;
    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
    readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
    readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
    readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
    readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFECompositeElement: {
    prototype: SVGFECompositeElement;
    new(): SVGFECompositeElement;
    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
    readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
    readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
    readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
    readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
};

/**
 * The **\`SVGFEConvolveMatrixElement\`** interface corresponds to the feConvolveMatrix element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement)
 */
interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`bias\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the bias attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/bias)
     */
    readonly bias: SVGAnimatedNumber;
    /**
     * The **\`divisor\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the divisor attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/divisor)
     */
    readonly divisor: SVGAnimatedNumber;
    /**
     * The **\`edgeMode\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the edgeMode attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/edgeMode)
     */
    readonly edgeMode: SVGAnimatedEnumeration;
    /**
     * The **\`in1\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the in attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/in1)
     */
    readonly in1: SVGAnimatedString;
    /**
     * The **\`kernelMatrix\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the kernelMatrix attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/kernelMatrix)
     */
    readonly kernelMatrix: SVGAnimatedNumberList;
    /**
     * The **\`kernelUnitLengthX\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the kernelUnitLength attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthX)
     */
    readonly kernelUnitLengthX: SVGAnimatedNumber;
    /**
     * The **\`kernelUnitLengthY\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the kernelUnitLength attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthY)
     */
    readonly kernelUnitLengthY: SVGAnimatedNumber;
    /**
     * The **\`orderX\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the order attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/orderX)
     */
    readonly orderX: SVGAnimatedInteger;
    /**
     * The **\`orderY\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the order attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/orderY)
     */
    readonly orderY: SVGAnimatedInteger;
    /**
     * The **\`preserveAlpha\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the preserveAlpha attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/preserveAlpha)
     */
    readonly preserveAlpha: SVGAnimatedBoolean;
    /**
     * The **\`targetX\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the targetX attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/targetX)
     */
    readonly targetX: SVGAnimatedInteger;
    /**
     * The **\`targetY\`** read-only property of the SVGFEConvolveMatrixElement interface reflects the targetY attribute of the given feConvolveMatrix element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement/targetY)
     */
    readonly targetY: SVGAnimatedInteger;
    readonly SVG_EDGEMODE_UNKNOWN: 0;
    readonly SVG_EDGEMODE_DUPLICATE: 1;
    readonly SVG_EDGEMODE_WRAP: 2;
    readonly SVG_EDGEMODE_NONE: 3;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEConvolveMatrixElement: {
    prototype: SVGFEConvolveMatrixElement;
    new(): SVGFEConvolveMatrixElement;
    readonly SVG_EDGEMODE_UNKNOWN: 0;
    readonly SVG_EDGEMODE_DUPLICATE: 1;
    readonly SVG_EDGEMODE_WRAP: 2;
    readonly SVG_EDGEMODE_NONE: 3;
};

/**
 * The **\`SVGFEDiffuseLightingElement\`** interface corresponds to the feDiffuseLighting element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement)
 */
interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`diffuseConstant\`** read-only property of the SVGFEDiffuseLightingElement interface reflects the diffuseConstant attribute of the given feDiffuseLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/diffuseConstant)
     */
    readonly diffuseConstant: SVGAnimatedNumber;
    /**
     * The **\`in1\`** read-only property of the SVGFEDiffuseLightingElement interface reflects the in attribute of the given feDiffuseLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/in1)
     */
    readonly in1: SVGAnimatedString;
    /**
     * The **\`kernelUnitLengthX\`** read-only property of the SVGFEDiffuseLightingElement interface reflects the X component of the kernelUnitLength attribute of the given feDiffuseLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthX)
     */
    readonly kernelUnitLengthX: SVGAnimatedNumber;
    /**
     * The **\`kernelUnitLengthY\`** read-only property of the SVGFEDiffuseLightingElement interface reflects the Y component of the kernelUnitLength attribute of the given feDiffuseLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthY)
     */
    readonly kernelUnitLengthY: SVGAnimatedNumber;
    /**
     * The **\`surfaceScale\`** read-only property of the SVGFEDiffuseLightingElement interface reflects the surfaceScale attribute of the given feDiffuseLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement/surfaceScale)
     */
    readonly surfaceScale: SVGAnimatedNumber;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEDiffuseLightingElement: {
    prototype: SVGFEDiffuseLightingElement;
    new(): SVGFEDiffuseLightingElement;
};

/**
 * The **\`SVGFEDisplacementMapElement\`** interface corresponds to the feDisplacementMap element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement)
 */
interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`in1\`** read-only property of the SVGFEDisplacementMapElement interface reflects the in attribute of the given feDisplacementMap element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/in1)
     */
    readonly in1: SVGAnimatedString;
    /**
     * The **\`in2\`** read-only property of the SVGFEDisplacementMapElement interface reflects the in2 attribute of the given feDisplacementMap element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/in2)
     */
    readonly in2: SVGAnimatedString;
    /**
     * The **\`scale\`** read-only property of the SVGFEDisplacementMapElement interface reflects the scale attribute of the given feDisplacementMap element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/scale)
     */
    readonly scale: SVGAnimatedNumber;
    /**
     * The **\`xChannelSelector\`** read-only property of the SVGFEDisplacementMapElement interface reflects the xChannelSelector attribute of the given feDisplacementMap element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/xChannelSelector)
     */
    readonly xChannelSelector: SVGAnimatedEnumeration;
    /**
     * The **\`yChannelSelector\`** read-only property of the SVGFEDisplacementMapElement interface reflects the yChannelSelector attribute of the given feDisplacementMap element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement/yChannelSelector)
     */
    readonly yChannelSelector: SVGAnimatedEnumeration;
    readonly SVG_CHANNEL_UNKNOWN: 0;
    readonly SVG_CHANNEL_R: 1;
    readonly SVG_CHANNEL_G: 2;
    readonly SVG_CHANNEL_B: 3;
    readonly SVG_CHANNEL_A: 4;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEDisplacementMapElement: {
    prototype: SVGFEDisplacementMapElement;
    new(): SVGFEDisplacementMapElement;
    readonly SVG_CHANNEL_UNKNOWN: 0;
    readonly SVG_CHANNEL_R: 1;
    readonly SVG_CHANNEL_G: 2;
    readonly SVG_CHANNEL_B: 3;
    readonly SVG_CHANNEL_A: 4;
};

/**
 * The **\`SVGFEDistantLightElement\`** interface corresponds to the feDistantLight element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement)
 */
interface SVGFEDistantLightElement extends SVGElement {
    /**
     * The **\`azimuth\`** read-only property of the SVGFEDistantLightElement interface reflects the azimuth attribute of the given feDistantLight element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/azimuth)
     */
    readonly azimuth: SVGAnimatedNumber;
    /**
     * The **\`elevation\`** read-only property of the SVGFEDistantLightElement interface reflects the elevation attribute of the given feDistantLight element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement/elevation)
     */
    readonly elevation: SVGAnimatedNumber;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEDistantLightElement: {
    prototype: SVGFEDistantLightElement;
    new(): SVGFEDistantLightElement;
};

/**
 * The **\`SVGFEDropShadowElement\`** interface corresponds to the feDropShadow element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement)
 */
interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`dx\`** read-only property of the SVGFEDropShadowElement interface reflects the dx attribute of the given feDropShadow element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/dx)
     */
    readonly dx: SVGAnimatedNumber;
    /**
     * The **\`dy\`** read-only property of the SVGFEDropShadowElement interface reflects the dy attribute of the given feDropShadow element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/dy)
     */
    readonly dy: SVGAnimatedNumber;
    /**
     * The **\`in1\`** read-only property of the SVGFEDropShadowElement interface reflects the in attribute of the given feDropShadow element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/in1)
     */
    readonly in1: SVGAnimatedString;
    /**
     * The **\`stdDeviationX\`** read-only property of the SVGFEDropShadowElement interface reflects the (possibly automatically computed) X component of the stdDeviation attribute of the given feDropShadow element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/stdDeviationX)
     */
    readonly stdDeviationX: SVGAnimatedNumber;
    /**
     * The **\`stdDeviationY\`** read-only property of the SVGFEDropShadowElement interface reflects the (possibly automatically computed) Y component of the stdDeviation attribute of the given feDropShadow element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/stdDeviationY)
     */
    readonly stdDeviationY: SVGAnimatedNumber;
    /**
     * The \`setStdDeviation()\` method of the SVGFEDropShadowElement interface sets the values for the stdDeviation attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement/setStdDeviation)
     */
    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEDropShadowElement: {
    prototype: SVGFEDropShadowElement;
    new(): SVGFEDropShadowElement;
};

/**
 * The **\`SVGFEFloodElement\`** interface corresponds to the feFlood element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFloodElement)
 */
interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEFloodElement: {
    prototype: SVGFEFloodElement;
    new(): SVGFEFloodElement;
};

/**
 * The **\`SVGFEFuncAElement\`** interface corresponds to the feFuncA element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncAElement)
 */
interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEFuncAElement: {
    prototype: SVGFEFuncAElement;
    new(): SVGFEFuncAElement;
};

/**
 * The **\`SVGFEFuncBElement\`** interface corresponds to the feFuncB element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncBElement)
 */
interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEFuncBElement: {
    prototype: SVGFEFuncBElement;
    new(): SVGFEFuncBElement;
};

/**
 * The **\`SVGFEFuncGElement\`** interface corresponds to the feFuncG element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncGElement)
 */
interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEFuncGElement: {
    prototype: SVGFEFuncGElement;
    new(): SVGFEFuncGElement;
};

/**
 * The **\`SVGFEFuncRElement\`** interface corresponds to the feFuncR element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncRElement)
 */
interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEFuncRElement: {
    prototype: SVGFEFuncRElement;
    new(): SVGFEFuncRElement;
};

/**
 * The **\`SVGFEGaussianBlurElement\`** interface corresponds to the feGaussianBlur element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement)
 */
interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`in1\`** read-only property of the SVGFEGaussianBlurElement interface reflects the in attribute of the given feGaussianBlur element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/in1)
     */
    readonly in1: SVGAnimatedString;
    /**
     * The **\`stdDeviationX\`** read-only property of the SVGFEGaussianBlurElement interface reflects the (possibly automatically computed) X component of the stdDeviation attribute of the given feGaussianBlur element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationX)
     */
    readonly stdDeviationX: SVGAnimatedNumber;
    /**
     * The **\`stdDeviationY\`** read-only property of the SVGFEGaussianBlurElement interface reflects the (possibly automatically computed) Y component of the stdDeviation attribute of the given feGaussianBlur element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationY)
     */
    readonly stdDeviationY: SVGAnimatedNumber;
    /**
     * The \`setStdDeviation()\` method of the SVGFEGaussianBlurElement interface sets the values for the stdDeviation attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement/setStdDeviation)
     */
    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEGaussianBlurElement: {
    prototype: SVGFEGaussianBlurElement;
    new(): SVGFEGaussianBlurElement;
};

/**
 * The **\`SVGFEImageElement\`** interface corresponds to the feImage element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement)
 */
interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
    /**
     * The **\`preserveAspectRatio\`** read-only property of the SVGFEImageElement interface reflects the preserveAspectRatio attribute of the given feImage element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement/preserveAspectRatio)
     */
    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEImageElement: {
    prototype: SVGFEImageElement;
    new(): SVGFEImageElement;
};

/**
 * The **\`SVGFEMergeElement\`** interface corresponds to the feMerge element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeElement)
 */
interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEMergeElement: {
    prototype: SVGFEMergeElement;
    new(): SVGFEMergeElement;
};

/**
 * The **\`SVGFEMergeNodeElement\`** interface corresponds to the feMergeNode element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement)
 */
interface SVGFEMergeNodeElement extends SVGElement {
    /**
     * The **\`in1\`** read-only property of the SVGFEMergeNodeElement interface reflects the in attribute of the given feMergeNode element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement/in1)
     */
    readonly in1: SVGAnimatedString;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEMergeNodeElement: {
    prototype: SVGFEMergeNodeElement;
    new(): SVGFEMergeNodeElement;
};

/**
 * The **\`SVGFEMorphologyElement\`** interface corresponds to the feMorphology element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement)
 */
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`in1\`** read-only property of the SVGFEMorphologyElement interface reflects the in attribute of the given feMorphology element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/in1)
     */
    readonly in1: SVGAnimatedString;
    /**
     * The **\`operator\`** read-only property of the SVGFEMorphologyElement interface reflects the operator attribute of the given feMorphology element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/operator)
     */
    readonly operator: SVGAnimatedEnumeration;
    /**
     * The **\`radiusX\`** read-only property of the SVGFEMorphologyElement interface reflects the X component of the radius attribute of the given feMorphology element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/radiusX)
     */
    readonly radiusX: SVGAnimatedNumber;
    /**
     * The **\`radiusY\`** read-only property of the SVGFEMorphologyElement interface reflects the Y component of the radius attribute of the given feMorphology element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement/radiusY)
     */
    readonly radiusY: SVGAnimatedNumber;
    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEMorphologyElement: {
    prototype: SVGFEMorphologyElement;
    new(): SVGFEMorphologyElement;
    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
};

/**
 * The **\`SVGFEOffsetElement\`** interface corresponds to the feOffset element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement)
 */
interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`dx\`** read-only property of the SVGFEOffsetElement interface reflects the dx attribute of the given feOffset element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement/dx)
     */
    readonly dx: SVGAnimatedNumber;
    /**
     * The **\`dy\`** read-only property of the SVGFEOffsetElement interface reflects the dy attribute of the given feOffset element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement/dy)
     */
    readonly dy: SVGAnimatedNumber;
    /**
     * The **\`in1\`** read-only property of the SVGFEOffsetElement interface reflects the in attribute of the given feOffset element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement/in1)
     */
    readonly in1: SVGAnimatedString;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEOffsetElement: {
    prototype: SVGFEOffsetElement;
    new(): SVGFEOffsetElement;
};

/**
 * The **\`SVGFEPointLightElement\`** interface corresponds to the fePointLight element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement)
 */
interface SVGFEPointLightElement extends SVGElement {
    /**
     * The **\`x\`** read-only property of the SVGFEPointLightElement interface describes the horizontal coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/x)
     */
    readonly x: SVGAnimatedNumber;
    /**
     * The **\`y\`** read-only property of the SVGFEPointLightElement interface describes the vertical coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/y)
     */
    readonly y: SVGAnimatedNumber;
    /**
     * The **\`z\`** read-only property of the SVGFEPointLightElement interface describes the z-axis value of the position of an SVG filter primitive as a SVGAnimatedNumber.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement/z)
     */
    readonly z: SVGAnimatedNumber;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFEPointLightElement: {
    prototype: SVGFEPointLightElement;
    new(): SVGFEPointLightElement;
};

/**
 * The **\`SVGFESpecularLightingElement\`** interface corresponds to the feSpecularLighting element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement)
 */
interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`in1\`** read-only property of the SVGFESpecularLightingElement interface reflects the in attribute of the given feSpecularLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/in1)
     */
    readonly in1: SVGAnimatedString;
    /**
     * The **\`kernelUnitLengthX\`** read-only property of the SVGFESpecularLightingElement interface reflects the x value of the kernelUnitLength attribute of the given feSpecularLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthX)
     */
    readonly kernelUnitLengthX: SVGAnimatedNumber;
    /**
     * The **\`kernelUnitLengthY\`** read-only property of the SVGFESpecularLightingElement interface reflects the y value of the kernelUnitLength attribute of the given feSpecularLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthY)
     */
    readonly kernelUnitLengthY: SVGAnimatedNumber;
    /**
     * The **\`specularConstant\`** read-only property of the SVGFESpecularLightingElement interface reflects the specularConstant attribute of the given feSpecularLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/specularConstant)
     */
    readonly specularConstant: SVGAnimatedNumber;
    /**
     * The **\`specularExponent\`** read-only property of the SVGFESpecularLightingElement interface reflects the specularExponent attribute of the given feSpecularLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/specularExponent)
     */
    readonly specularExponent: SVGAnimatedNumber;
    /**
     * The **\`surfaceScale\`** read-only property of the SVGFESpecularLightingElement interface reflects the surfaceScale attribute of the given feSpecularLighting element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement/surfaceScale)
     */
    readonly surfaceScale: SVGAnimatedNumber;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFESpecularLightingElement: {
    prototype: SVGFESpecularLightingElement;
    new(): SVGFESpecularLightingElement;
};

/**
 * The **\`SVGFESpotLightElement\`** interface corresponds to the feSpotLight element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement)
 */
interface SVGFESpotLightElement extends SVGElement {
    /**
     * The **\`limitingConeAngle\`** read-only property of the SVGFESpotLightElement interface reflects the limitingConeAngle attribute of the given feSpotLight element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/limitingConeAngle)
     */
    readonly limitingConeAngle: SVGAnimatedNumber;
    /**
     * The **\`pointsAtX\`** read-only property of the SVGFESpotLightElement interface reflects the pointsAtX attribute of the given feSpotLight element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/pointsAtX)
     */
    readonly pointsAtX: SVGAnimatedNumber;
    /**
     * The **\`pointsAtY\`** read-only property of the SVGFESpotLightElement interface reflects the pointsAtY attribute of the given feSpotLight element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/pointsAtY)
     */
    readonly pointsAtY: SVGAnimatedNumber;
    /**
     * The **\`pointsAtZ\`** read-only property of the SVGFESpotLightElement interface reflects the pointsAtZ attribute of the given feSpotLight element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/pointsAtZ)
     */
    readonly pointsAtZ: SVGAnimatedNumber;
    /**
     * The **\`specularExponent\`** read-only property of the SVGFESpotLightElement interface reflects the specularExponent attribute of the given feSpotLight element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/specularExponent)
     */
    readonly specularExponent: SVGAnimatedNumber;
    /**
     * The **\`x\`** read-only property of the SVGFESpotLightElement interface describes the horizontal coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/x)
     */
    readonly x: SVGAnimatedNumber;
    /**
     * The **\`y\`** read-only property of the SVGFESpotLightElement interface describes the vertical coordinate of the position of an SVG filter primitive as a SVGAnimatedNumber.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/y)
     */
    readonly y: SVGAnimatedNumber;
    /**
     * The **\`z\`** read-only property of the SVGFESpotLightElement interface describes the z-axis value of the position of an SVG filter primitive as a SVGAnimatedNumber.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement/z)
     */
    readonly z: SVGAnimatedNumber;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFESpotLightElement: {
    prototype: SVGFESpotLightElement;
    new(): SVGFESpotLightElement;
};

/**
 * The **\`SVGFETileElement\`** interface corresponds to the feTile element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement)
 */
interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`in1\`** read-only property of the SVGFETileElement interface reflects the in attribute of the given feTile element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement/in1)
     */
    readonly in1: SVGAnimatedString;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFETileElement: {
    prototype: SVGFETileElement;
    new(): SVGFETileElement;
};

/**
 * The **\`SVGFETurbulenceElement\`** interface corresponds to the feTurbulence element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement)
 */
interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
    /**
     * The **\`baseFrequencyX\`** read-only property of the SVGFETurbulenceElement interface reflects the X component of the baseFrequency attribute of the given feTurbulence element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/baseFrequencyX)
     */
    readonly baseFrequencyX: SVGAnimatedNumber;
    /**
     * The **\`baseFrequencyY\`** read-only property of the SVGFETurbulenceElement interface reflects the Y component of the baseFrequency attribute of the given feTurbulence element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/baseFrequencyY)
     */
    readonly baseFrequencyY: SVGAnimatedNumber;
    /**
     * The **\`numOctaves\`** read-only property of the SVGFETurbulenceElement interface reflects the numOctaves attribute of the given feTurbulence element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/numOctaves)
     */
    readonly numOctaves: SVGAnimatedInteger;
    /**
     * The **\`seed\`** read-only property of the SVGFETurbulenceElement interface reflects the seed attribute of the given feTurbulence element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/seed)
     */
    readonly seed: SVGAnimatedNumber;
    /**
     * The **\`stitchTiles\`** read-only property of the SVGFETurbulenceElement interface reflects the stitchTiles attribute of the given feTurbulence element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/stitchTiles)
     */
    readonly stitchTiles: SVGAnimatedEnumeration;
    /**
     * The **\`type\`** read-only property of the SVGFETurbulenceElement interface reflects the type attribute of the given feTurbulence element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement/type)
     */
    readonly type: SVGAnimatedEnumeration;
    readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
    readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
    readonly SVG_STITCHTYPE_UNKNOWN: 0;
    readonly SVG_STITCHTYPE_STITCH: 1;
    readonly SVG_STITCHTYPE_NOSTITCH: 2;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFETurbulenceElement: {
    prototype: SVGFETurbulenceElement;
    new(): SVGFETurbulenceElement;
    readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
    readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
    readonly SVG_STITCHTYPE_UNKNOWN: 0;
    readonly SVG_STITCHTYPE_STITCH: 1;
    readonly SVG_STITCHTYPE_NOSTITCH: 2;
};

/**
 * The **\`SVGFilterElement\`** interface provides access to the properties of filter elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement)
 */
interface SVGFilterElement extends SVGElement, SVGURIReference {
    /**
     * The **\`filterUnits\`** read-only property of the SVGFilterElement interface reflects the filterUnits attribute of the given filter element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/filterUnits)
     */
    readonly filterUnits: SVGAnimatedEnumeration;
    /**
     * The **\`height\`** read-only property of the SVGFilterElement interface describes the vertical size of an SVG filter primitive as a SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/height)
     */
    readonly height: SVGAnimatedLength;
    /**
     * The **\`primitiveUnits\`** read-only property of the SVGFilterElement interface reflects the primitiveUnits attribute of the given filter element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/primitiveUnits)
     */
    readonly primitiveUnits: SVGAnimatedEnumeration;
    /**
     * The **\`width\`** read-only property of the SVGFilterElement interface describes the horizontal size of an SVG filter primitive as a SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/width)
     */
    readonly width: SVGAnimatedLength;
    /**
     * The **\`x\`** read-only property of the SVGFilterElement interface describes the horizontal coordinate of the position of an SVG filter primitive as a SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/x)
     */
    readonly x: SVGAnimatedLength;
    /**
     * The **\`y\`** read-only property of the SVGFilterElement interface describes the vertical coordinate of the position of an SVG filter primitive as a SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement/y)
     */
    readonly y: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGFilterElement: {
    prototype: SVGFilterElement;
    new(): SVGFilterElement;
};

interface SVGFilterPrimitiveStandardAttributes {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/height) */
    readonly height: SVGAnimatedLength;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/result) */
    readonly result: SVGAnimatedString;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/width) */
    readonly width: SVGAnimatedLength;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/x) */
    readonly x: SVGAnimatedLength;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement/y) */
    readonly y: SVGAnimatedLength;
}

interface SVGFitToViewBox {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/preserveAspectRatio) */
    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/viewBox) */
    readonly viewBox: SVGAnimatedRect;
}

/**
 * The **\`SVGForeignObjectElement\`** interface provides access to the properties of foreignObject elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement)
 */
interface SVGForeignObjectElement extends SVGGraphicsElement {
    /**
     * The **\`height\`** read-only property of the SVGForeignObjectElement interface describes the height of the \`<foreignObject>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/height)
     */
    readonly height: SVGAnimatedLength;
    /**
     * The **\`width\`** read-only property of the SVGForeignObjectElement interface describes the width of the \`<foreignObject>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/width)
     */
    readonly width: SVGAnimatedLength;
    /**
     * The **\`x\`** read-only property of the SVGForeignObjectElement interface describes the x-axis coordinate of the \`<foreignObject>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/x)
     */
    readonly x: SVGAnimatedLength;
    /**
     * The **\`y\`** read-only property of the SVGForeignObjectElement interface describes the y-axis coordinate of the \`<foreignObject>\` element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement/y)
     */
    readonly y: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGForeignObjectElement: {
    prototype: SVGForeignObjectElement;
    new(): SVGForeignObjectElement;
};

/**
 * The **\`SVGGElement\`** interface corresponds to the g element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGElement)
 */
interface SVGGElement extends SVGGraphicsElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGGElement: {
    prototype: SVGGElement;
    new(): SVGGElement;
};

/**
 * The \`SVGGeometryElement\` interface represents SVG elements whose rendering is defined by geometry with an equivalent path, and which can be filled and stroked.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement)
 */
interface SVGGeometryElement extends SVGGraphicsElement {
    /**
     * The **\`SVGGeometryElement.pathLength\`** property reflects the A number.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength)
     */
    readonly pathLength: SVGAnimatedNumber;
    /**
     * The **\`SVGGeometryElement.getPointAtLength()\`** method returns the point at a given distance along the path.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength)
     */
    getPointAtLength(distance: number): DOMPoint;
    /**
     * The **\`SVGGeometryElement.getTotalLength()\`** method returns the user agent's computed value for the total length of the path in user units.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength)
     */
    getTotalLength(): number;
    /**
     * The **\`isPointInFill()\`** method of the SVGGeometryElement interface determines whether a given point is within the fill shape of an element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill)
     */
    isPointInFill(point?: DOMPointInit): boolean;
    /**
     * The **\`isPointInStroke()\`** method of the SVGGeometryElement interface determines whether a given point is within the stroke shape of an element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInStroke)
     */
    isPointInStroke(point?: DOMPointInit): boolean;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGGeometryElement: {
    prototype: SVGGeometryElement;
    new(): SVGGeometryElement;
};

/**
 * The **\`SVGGradient\`** interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement)
 */
interface SVGGradientElement extends SVGElement, SVGURIReference {
    /**
     * The **\`gradientTransform\`** read-only property of the SVGGradientElement interface reflects the gradientTransform attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientTransform)
     */
    readonly gradientTransform: SVGAnimatedTransformList;
    /**
     * The **\`gradientUnits\`** read-only property of the SVGGradientElement interface reflects the gradientUnits attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/gradientUnits)
     */
    readonly gradientUnits: SVGAnimatedEnumeration;
    /**
     * The **\`spreadMethod\`** read-only property of the SVGGradientElement interface reflects the spreadMethod attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement/spreadMethod)
     */
    readonly spreadMethod: SVGAnimatedEnumeration;
    readonly SVG_SPREADMETHOD_UNKNOWN: 0;
    readonly SVG_SPREADMETHOD_PAD: 1;
    readonly SVG_SPREADMETHOD_REFLECT: 2;
    readonly SVG_SPREADMETHOD_REPEAT: 3;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGGradientElement: {
    prototype: SVGGradientElement;
    new(): SVGGradientElement;
    readonly SVG_SPREADMETHOD_UNKNOWN: 0;
    readonly SVG_SPREADMETHOD_PAD: 1;
    readonly SVG_SPREADMETHOD_REFLECT: 2;
    readonly SVG_SPREADMETHOD_REPEAT: 3;
};

/**
 * The **\`SVGGraphicsElement\`** interface represents SVG elements whose primary purpose is to directly render graphics into a group.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement)
 */
interface SVGGraphicsElement extends SVGElement, SVGTests {
    /**
     * The **\`transform\`** read-only property of the SVGGraphicsElement interface reflects the computed value of the transform property and its corresponding transform attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/transform)
     */
    readonly transform: SVGAnimatedTransformList;
    /**
     * The **\`SVGGraphicsElement.getBBox()\`** method allows us to determine the coordinates of the smallest rectangle in which the object fits.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox)
     */
    getBBox(options?: SVGBoundingBoxOptions): DOMRect;
    /**
     * The \`getCTM()\` method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to its SVG viewport's coordinate system.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getCTM)
     */
    getCTM(): DOMMatrix | null;
    /**
     * The \`getScreenCTM()\` method of the SVGGraphicsElement interface represents the matrix that transforms the current element's coordinate system to the coordinate system of the SVG viewport for the SVG document fragment.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getScreenCTM)
     */
    getScreenCTM(): DOMMatrix | null;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGGraphicsElement: {
    prototype: SVGGraphicsElement;
    new(): SVGGraphicsElement;
};

/**
 * The **\`SVGImageElement\`** interface corresponds to the image element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement)
 */
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
    /**
     * The **\`crossOrigin\`** property of the SVGImageElement interface is a string which specifies the Cross-Origin Resource Sharing (CORS) setting to use when retrieving the image.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossOrigin)
     */
    crossOrigin: string | null;
    /**
     * The **\`height\`** read-only property of the corresponding to the height attribute of the given An SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height)
     */
    readonly height: SVGAnimatedLength;
    /**
     * The **\`preserveAspectRatio\`** read-only property of the SVGImageElement interface returns an element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio)
     */
    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
    /**
     * The **\`width\`** read-only property of the corresponding to the width attribute of the given image element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width)
     */
    readonly width: SVGAnimatedLength;
    /**
     * The **\`x\`** read-only property of the corresponding to the x attribute of the given image element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x)
     */
    readonly x: SVGAnimatedLength;
    /**
     * The **\`y\`** read-only property of the corresponding to the y attribute of the given image element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/y)
     */
    readonly y: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGImageElement: {
    prototype: SVGImageElement;
    new(): SVGImageElement;
};

/**
 * The **\`SVGLength\`** interface correspond to the \\<length> basic data type.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength)
 */
interface SVGLength {
    /**
     * The **\`unitType\`** property of the SVGLength interface that represents type of the value as specified by one of the \`SVG_LENGTHTYPE_*\` constants defined on this interface.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/unitType)
     */
    readonly unitType: number;
    /**
     * The \`value\` property of the SVGLength interface represents the floating point value of the \\<length> in user units.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/value)
     */
    value: number;
    /**
     * The \`valueAsString\` property of the SVGLength interface represents the \\<length>'s value as a string, in the units expressed by SVGLength.unitType.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/valueAsString)
     */
    valueAsString: string;
    /**
     * The \`valueInSpecifiedUnits\` property of the SVGLength interface represents floating point value, in the units expressed by SVGLength.unitType.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/valueInSpecifiedUnits)
     */
    valueInSpecifiedUnits: number;
    /**
     * The \`convertToSpecifiedUnits()\` method of the SVGLength interface allows you to convert the length's value to the specified unit type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/convertToSpecifiedUnits)
     */
    convertToSpecifiedUnits(unitType: number): void;
    /**
     * The \`newValueSpecifiedUnits()\` method of the SVGLength interface resets the value as a number with an associated SVGLength.unitType, thereby replacing the values for all of the attributes on the object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength/newValueSpecifiedUnits)
     */
    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
    readonly SVG_LENGTHTYPE_UNKNOWN: 0;
    readonly SVG_LENGTHTYPE_NUMBER: 1;
    readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
    readonly SVG_LENGTHTYPE_EMS: 3;
    readonly SVG_LENGTHTYPE_EXS: 4;
    readonly SVG_LENGTHTYPE_PX: 5;
    readonly SVG_LENGTHTYPE_CM: 6;
    readonly SVG_LENGTHTYPE_MM: 7;
    readonly SVG_LENGTHTYPE_IN: 8;
    readonly SVG_LENGTHTYPE_PT: 9;
    readonly SVG_LENGTHTYPE_PC: 10;
}

declare var SVGLength: {
    prototype: SVGLength;
    new(): SVGLength;
    readonly SVG_LENGTHTYPE_UNKNOWN: 0;
    readonly SVG_LENGTHTYPE_NUMBER: 1;
    readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
    readonly SVG_LENGTHTYPE_EMS: 3;
    readonly SVG_LENGTHTYPE_EXS: 4;
    readonly SVG_LENGTHTYPE_PX: 5;
    readonly SVG_LENGTHTYPE_CM: 6;
    readonly SVG_LENGTHTYPE_MM: 7;
    readonly SVG_LENGTHTYPE_IN: 8;
    readonly SVG_LENGTHTYPE_PT: 9;
    readonly SVG_LENGTHTYPE_PC: 10;
};

/**
 * The **\`SVGLengthList\`** interface defines a list of SVGLength objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList)
 */
interface SVGLengthList {
    /**
     * The **\`length\`** property of the SVGLengthList interface returns the number of items in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/length)
     */
    readonly length: number;
    /**
     * The **\`numberOfItems\`** property of the SVGLengthList interface returns the number of items in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/numberOfItems)
     */
    readonly numberOfItems: number;
    /**
     * The **\`appendItem()\`** method of the SVGLengthList interface inserts a new item at the end of the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/appendItem)
     */
    appendItem(newItem: SVGLength): SVGLength;
    /**
     * The **\`clear()\`** method of the SVGLengthList interface clears all existing items from the list, with the result being an empty list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/clear)
     */
    clear(): void;
    /**
     * The **\`getItem()\`** method of the SVGLengthList interface returns the specified item from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/getItem)
     */
    getItem(index: number): SVGLength;
    /**
     * The **\`initialize()\`** method of the SVGLengthList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/initialize)
     */
    initialize(newItem: SVGLength): SVGLength;
    /**
     * The **\`insertItemBefore()\`** method of the SVGLengthList interface inserts a new item into the list at the specified position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/insertItemBefore)
     */
    insertItemBefore(newItem: SVGLength, index: number): SVGLength;
    /**
     * The **\`removeItem()\`** method of the SVGLengthList interface removes an existing item at the given index from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/removeItem)
     */
    removeItem(index: number): SVGLength;
    /**
     * The **\`replaceItem()\`** method of the SVGLengthList interface replaces an existing item in the list with a new item.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/replaceItem)
     */
    replaceItem(newItem: SVGLength, index: number): SVGLength;
    [index: number]: SVGLength;
}

declare var SVGLengthList: {
    prototype: SVGLengthList;
    new(): SVGLengthList;
};

/**
 * The **\`SVGLineElement\`** interface provides access to the properties of line elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement)
 */
interface SVGLineElement extends SVGGeometryElement {
    /**
     * The **\`x1\`** read-only property of the SVGLineElement interface describes the start of the SVG line along the x-axis as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/x1)
     */
    readonly x1: SVGAnimatedLength;
    /**
     * The **\`x2\`** read-only property of the SVGLineElement interface describes the x-axis coordinate value of the end of a line as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/x2)
     */
    readonly x2: SVGAnimatedLength;
    /**
     * The **\`y1\`** read-only property of the SVGLineElement interface describes the start of the SVG line along the y-axis as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/y1)
     */
    readonly y1: SVGAnimatedLength;
    /**
     * The **\`y2\`** read-only property of the SVGLineElement interface describes the v-axis coordinate value of the end of a line as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement/y2)
     */
    readonly y2: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGLineElement: {
    prototype: SVGLineElement;
    new(): SVGLineElement;
};

/**
 * The **\`SVGLinearGradientElement\`** interface corresponds to the linearGradient element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement)
 */
interface SVGLinearGradientElement extends SVGGradientElement {
    /**
     * The **\`x1\`** read-only property of the SVGLinearGradientElement interface describes the x-axis coordinate of the start point of the gradient as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/x1)
     */
    readonly x1: SVGAnimatedLength;
    /**
     * The **\`x2\`** read-only property of the SVGLinearGradientElement interface describes the x-axis coordinate of the start point of the gradient as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/x2)
     */
    readonly x2: SVGAnimatedLength;
    /**
     * The **\`y1\`** read-only property of the SVGLinearGradientElement interface describes the y-axis coordinate of the start point of the gradient as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/y1)
     */
    readonly y1: SVGAnimatedLength;
    /**
     * The **\`y2\`** read-only property of the SVGLinearGradientElement interface describes the y-axis coordinate of the start point of the gradient as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement/y2)
     */
    readonly y2: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGLinearGradientElement: {
    prototype: SVGLinearGradientElement;
    new(): SVGLinearGradientElement;
};

/**
 * The **\`SVGMPathElement\`** interface corresponds to the mpath element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMPathElement)
 */
interface SVGMPathElement extends SVGElement, SVGURIReference {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGMPathElement: {
    prototype: SVGMPathElement;
    new(): SVGMPathElement;
};

/**
 * The **\`SVGMarkerElement\`** interface provides access to the properties of marker elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement)
 */
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
    /**
     * The **\`markerHeight\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the height of the marker viewport as defined by the markerHeight attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight)
     */
    readonly markerHeight: SVGAnimatedLength;
    /**
     * The **\`markerUnits\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedEnumeration object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits)
     */
    readonly markerUnits: SVGAnimatedEnumeration;
    /**
     * The **\`markerWidth\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the width of the marker viewport as defined by the markerWidth attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth)
     */
    readonly markerWidth: SVGAnimatedLength;
    /**
     * The **\`orientAngle\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedAngle object containing the angle of the orient attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle)
     */
    readonly orientAngle: SVGAnimatedAngle;
    /**
     * The **\`orientType\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedEnumeration object indicating whether the orient attribute is \`auto\`, an angle value, or something else.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType)
     */
    readonly orientType: SVGAnimatedEnumeration;
    /**
     * The **\`refX\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the value of the refX attribute of the marker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX)
     */
    readonly refX: SVGAnimatedLength;
    /**
     * The **\`refY\`** read-only property of the SVGMarkerElement interface returns an SVGAnimatedLength object containing the value of the refY attribute of the marker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY)
     */
    readonly refY: SVGAnimatedLength;
    /**
     * The **\`setOrientToAngle()\`** method of the SVGMarkerElement interface sets the value of the \`orient\` attribute to the value in the SVGAngle passed in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle)
     */
    setOrientToAngle(angle: SVGAngle): void;
    /**
     * The **\`setOrientToAuto()\`** method of the SVGMarkerElement interface sets the value of the \`orient\` attribute to \`auto\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAuto)
     */
    setOrientToAuto(): void;
    readonly SVG_MARKERUNITS_UNKNOWN: 0;
    readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
    readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
    readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
    readonly SVG_MARKER_ORIENT_AUTO: 1;
    readonly SVG_MARKER_ORIENT_ANGLE: 2;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGMarkerElement: {
    prototype: SVGMarkerElement;
    new(): SVGMarkerElement;
    readonly SVG_MARKERUNITS_UNKNOWN: 0;
    readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
    readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
    readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
    readonly SVG_MARKER_ORIENT_AUTO: 1;
    readonly SVG_MARKER_ORIENT_ANGLE: 2;
};

/**
 * The **\`SVGMaskElement\`** interface provides access to the properties of mask elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement)
 */
interface SVGMaskElement extends SVGElement {
    /**
     * The read-only **\`height\`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the height attribute of the marker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height)
     */
    readonly height: SVGAnimatedLength;
    /**
     * The read-only **\`maskContentUnits\`** property of the SVGMaskElement interface reflects the maskContentUnits attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits)
     */
    readonly maskContentUnits: SVGAnimatedEnumeration;
    /**
     * The read-only **\`maskUnits\`** property of the SVGMaskElement interface reflects the maskUnits attribute of a mask element which defines the coordinate system to use for the mask of the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits)
     */
    readonly maskUnits: SVGAnimatedEnumeration;
    /**
     * The read-only **\`width\`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the width attribute of the marker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width)
     */
    readonly width: SVGAnimatedLength;
    /**
     * The read-only **\`x\`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the x attribute of the mask.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x)
     */
    readonly x: SVGAnimatedLength;
    /**
     * The read-only **\`y\`** property of the SVGMaskElement interface returns an SVGAnimatedLength object containing the value of the y attribute of the marker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y)
     */
    readonly y: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGMaskElement: {
    prototype: SVGMaskElement;
    new(): SVGMaskElement;
};

/**
 * The **\`SVGMetadataElement\`** interface corresponds to the metadata element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMetadataElement)
 */
interface SVGMetadataElement extends SVGElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGMetadataElement: {
    prototype: SVGMetadataElement;
    new(): SVGMetadataElement;
};

/**
 * The **\`SVGNumber\`** interface corresponds to the &lt;number&gt; basic data type.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber)
 */
interface SVGNumber {
    /**
     * The **\`value\`** read-only property of the SVGNumber interface represents the number.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber/value)
     */
    value: number;
}

declare var SVGNumber: {
    prototype: SVGNumber;
    new(): SVGNumber;
};

/**
 * The **\`SVGNumberList\`** interface defines a list of numbers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList)
 */
interface SVGNumberList {
    /**
     * The **\`length\`** property of the SVGNumberList interface returns the number of items in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/length)
     */
    readonly length: number;
    /**
     * The **\`numberOfItems\`** property of the SVGNumberList interface returns the number of items in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/numberOfItems)
     */
    readonly numberOfItems: number;
    /**
     * The **\`appendItem()\`** method of the SVGNumberList interface inserts a new item at the end of the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/appendItem)
     */
    appendItem(newItem: SVGNumber): SVGNumber;
    /**
     * The **\`clear()\`** method of the SVGNumberList interface clears all existing items from the list, with the result being an empty list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/clear)
     */
    clear(): void;
    /**
     * The **\`getItem()\`** method of the SVGNumberList interface returns the specified item from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/getItem)
     */
    getItem(index: number): SVGNumber;
    /**
     * The **\`initialize()\`** method of the SVGNumberList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/initialize)
     */
    initialize(newItem: SVGNumber): SVGNumber;
    /**
     * The **\`insertItemBefore()\`** method of the SVGNumberList interface inserts a new item into the list at the specified position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/insertItemBefore)
     */
    insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
    /**
     * The **\`removeItem()\`** method of the SVGNumberList interface removes an existing item at the given index from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/removeItem)
     */
    removeItem(index: number): SVGNumber;
    /**
     * The **\`replaceItem()\`** method of the SVGNumberList interface replaces an existing item in the list with a new item.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList/replaceItem)
     */
    replaceItem(newItem: SVGNumber, index: number): SVGNumber;
    [index: number]: SVGNumber;
}

declare var SVGNumberList: {
    prototype: SVGNumberList;
    new(): SVGNumberList;
};

/**
 * The **\`SVGPathElement\`** interface corresponds to the path element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement)
 */
interface SVGPathElement extends SVGGeometryElement {
    /**
     * The **\`pathLength\`** read-only property of the SVGPathElement interface reflects the pathLength attribute of the given path element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement/pathLength)
     */
    readonly pathLength: SVGAnimatedNumber;
    /**
     * The **\`getPointAtLength()\`** method of the SVGPathElement interface returns the point at a given distance along the path.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement/getPointAtLength)
     */
    getPointAtLength(distance: number): DOMPoint;
    /**
     * The **\`getTotalLength()\`** method of the SVGPathElement interface returns the user agent's computed value for the total length of the path in user units.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement/getTotalLength)
     */
    getTotalLength(): number;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGPathElement: {
    prototype: SVGPathElement;
    new(): SVGPathElement;
};

/**
 * The **\`SVGPatternElement\`** interface corresponds to the pattern element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement)
 */
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
    /**
     * The **\`height\`** read-only property of the SVGPatternElement interface describes the height of the pattern as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/height)
     */
    readonly height: SVGAnimatedLength;
    /**
     * The **\`patternContentUnits\`** read-only property of the SVGPatternElement interface reflects the patternContentUnits attribute of the given pattern element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternContentUnits)
     */
    readonly patternContentUnits: SVGAnimatedEnumeration;
    /**
     * The **\`patternTransform\`** read-only property of the SVGPatternElement interface reflects the patternTransform attribute of the given pattern element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternTransform)
     */
    readonly patternTransform: SVGAnimatedTransformList;
    /**
     * The **\`patternUnits\`** read-only property of the SVGPatternElement interface reflects the patternUnits attribute of the given pattern element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/patternUnits)
     */
    readonly patternUnits: SVGAnimatedEnumeration;
    /**
     * The **\`width\`** read-only property of the SVGPatternElement interface describes the width of the pattern as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/width)
     */
    readonly width: SVGAnimatedLength;
    /**
     * The **\`x\`** read-only property of the SVGPatternElement interface describes the x-axis coordinate of the start point of the pattern as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/x)
     */
    readonly x: SVGAnimatedLength;
    /**
     * The **\`y\`** read-only property of the SVGPatternElement interface describes the y-axis coordinate of the start point of the pattern as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement/y)
     */
    readonly y: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGPatternElement: {
    prototype: SVGPatternElement;
    new(): SVGPatternElement;
};

/**
 * The **\`SVGPointList\`** interface represents a list of DOMPoint objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList)
 */
interface SVGPointList {
    /**
     * The **\`length\`** read-only property of the SVGPointList interface returns the number of items in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length)
     */
    readonly length: number;
    /**
     * The **\`numberOfItems\`** read-only property of the SVGPointList interface returns the number of items in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems)
     */
    readonly numberOfItems: number;
    /**
     * The **\`appendItem()\`** method of the SVGPointList interface adds a DOMPoint to the end of the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem)
     */
    appendItem(newItem: DOMPoint): DOMPoint;
    /**
     * The **\`clear()\`** method of the SVGPointList interface removes all items from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear)
     */
    clear(): void;
    /**
     * The **\`getItem()\`** method of the SVGPointList interface gets one item from the list at the specified index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem)
     */
    getItem(index: number): DOMPoint;
    /**
     * The **\`initialize()\`** method of the SVGPointList interface clears the list then adds a single new DOMPoint object to the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize)
     */
    initialize(newItem: DOMPoint): DOMPoint;
    /**
     * The **\`insertItemBefore()\`** method of the SVGPointList interface inserts a DOMPoint before another item in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore)
     */
    insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
    /**
     * The **\`removeItem()\`** method of the SVGPointList interface removes a DOMPoint from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem)
     */
    removeItem(index: number): DOMPoint;
    /**
     * The **\`replaceItem()\`** method of the SVGPointList interface replaces a DOMPoint in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem)
     */
    replaceItem(newItem: DOMPoint, index: number): DOMPoint;
    [index: number]: DOMPoint;
}

declare var SVGPointList: {
    prototype: SVGPointList;
    new(): SVGPointList;
};

/**
 * The **\`SVGPolygonElement\`** interface provides access to the properties of polygon elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement)
 */
interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGPolygonElement: {
    prototype: SVGPolygonElement;
    new(): SVGPolygonElement;
};

/**
 * The **\`SVGPolylineElement\`** interface provides access to the properties of polyline elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolylineElement)
 */
interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGPolylineElement: {
    prototype: SVGPolylineElement;
    new(): SVGPolylineElement;
};

/**
 * The **\`SVGPreserveAspectRatio\`** interface corresponds to the preserveAspectRatio attribute.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio)
 */
interface SVGPreserveAspectRatio {
    /**
     * The **\`align\`** read-only property of the SVGPreserveAspectRatio interface reflects the type of the alignment value as specified by one of the \`SVG_PRESERVEASPECTRATIO_*\` constants defined on this interface.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio/align)
     */
    align: number;
    /**
     * The **\`meetOrSlice\`** read-only property of the SVGPreserveAspectRatio interface reflects the type of the meet-or-slice value as specified by one of the \`SVG_MEETORSLICE_*\` constants defined on this interface.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)
     */
    meetOrSlice: number;
    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
    readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
    readonly SVG_MEETORSLICE_UNKNOWN: 0;
    readonly SVG_MEETORSLICE_MEET: 1;
    readonly SVG_MEETORSLICE_SLICE: 2;
}

declare var SVGPreserveAspectRatio: {
    prototype: SVGPreserveAspectRatio;
    new(): SVGPreserveAspectRatio;
    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
    readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
    readonly SVG_MEETORSLICE_UNKNOWN: 0;
    readonly SVG_MEETORSLICE_MEET: 1;
    readonly SVG_MEETORSLICE_SLICE: 2;
};

/**
 * The **\`SVGRadialGradientElement\`** interface corresponds to the RadialGradient element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement)
 */
interface SVGRadialGradientElement extends SVGGradientElement {
    /**
     * The **\`cx\`** read-only property of the SVGRadialGradientElement interface describes the x-axis coordinate of the center of the radial gradient as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/cx)
     */
    readonly cx: SVGAnimatedLength;
    /**
     * The **\`cy\`** read-only property of the SVGRadialGradientElement interface describes the y-axis coordinate of the center of the radial gradient as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/cy)
     */
    readonly cy: SVGAnimatedLength;
    /**
     * The **\`fr\`** read-only property of the SVGRadialGradientElement interface describes the radius of the focal circle of the radial gradient as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fr)
     */
    readonly fr: SVGAnimatedLength;
    /**
     * The **\`fx\`** read-only property of the SVGRadialGradientElement interface describes the x-axis coordinate of the focal point of the radial gradient as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fx)
     */
    readonly fx: SVGAnimatedLength;
    /**
     * The **\`fy\`** read-only property of the SVGRadialGradientElement interface describes the y-axis coordinate of the focal point of the radial gradient as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/fy)
     */
    readonly fy: SVGAnimatedLength;
    /**
     * The **\`r\`** read-only property of the SVGRadialGradientElement interface describes the radius of the radial gradient as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement/r)
     */
    readonly r: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGRadialGradientElement: {
    prototype: SVGRadialGradientElement;
    new(): SVGRadialGradientElement;
};

/**
 * The \`SVGRectElement\` interface provides access to the properties of rect elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement)
 */
interface SVGRectElement extends SVGGeometryElement {
    /**
     * The **\`height\`** read-only property of the SVGRectElement interface describes the vertical size of an SVG rectangle as a SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/height)
     */
    readonly height: SVGAnimatedLength;
    /**
     * The **\`rx\`** read-only property of the SVGRectElement interface describes the horizontal curve of the corners of an SVG rectangle as a SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/rx)
     */
    readonly rx: SVGAnimatedLength;
    /**
     * The **\`ry\`** read-only property of the SVGRectElement interface describes the vertical curve of the corners of an SVG rectangle as a SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/ry)
     */
    readonly ry: SVGAnimatedLength;
    /**
     * The **\`width\`** read-only property of the SVGRectElement interface describes the horizontal size of an SVG rectangle as a SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/width)
     */
    readonly width: SVGAnimatedLength;
    /**
     * The **\`x\`** read-only property of the SVGRectElement interface describes the horizontal coordinate of the position of an SVG rectangle as a SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/x)
     */
    readonly x: SVGAnimatedLength;
    /**
     * The **\`y\`** read-only property of the SVGRectElement interface describes the vertical coordinate of the position of an SVG rectangle as a SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement/y)
     */
    readonly y: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGRectElement: {
    prototype: SVGRectElement;
    new(): SVGRectElement;
};

interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
}

/**
 * The **\`SVGSVGElement\`** interface provides access to the properties of svg elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement)
 */
interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
    /**
     * The **\`currentScale\`** property of the SVGSVGElement interface reflects the current scale factor relative to the initial view to take into account user magnification and panning operations on the outermost svg element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/currentScale)
     */
    currentScale: number;
    /**
     * The **\`currentTranslate\`** read-only property of the SVGSVGElement interface reflects the translation factor that takes into account user 'magnification' corresponding to an outermost svg element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/currentTranslate)
     */
    readonly currentTranslate: DOMPointReadOnly;
    /**
     * The **\`height\`** read-only property of the SVGSVGElement interface describes the vertical size of element as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/height)
     */
    readonly height: SVGAnimatedLength;
    /**
     * The **\`width\`** read-only property of the SVGSVGElement interface describes the horizontal size of element as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/width)
     */
    readonly width: SVGAnimatedLength;
    /**
     * The **\`x\`** read-only property of the SVGSVGElement interface describes the horizontal coordinate of the position of that SVG as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/x)
     */
    readonly x: SVGAnimatedLength;
    /**
     * The **\`y\`** read-only property of the SVGSVGElement interface describes the vertical coordinate of the position of that SVG as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/y)
     */
    readonly y: SVGAnimatedLength;
    /**
     * The \`animationsPaused()\` method of the SVGSVGElement interface checks whether the animations in the SVG document fragment are currently paused.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/animationsPaused)
     */
    animationsPaused(): boolean;
    /**
     * The \`checkEnclosure()\` method of the SVGSVGElement interface checks if the rendered content of the given element is entirely contained within the supplied rectangle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkEnclosure)
     */
    checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
    /**
     * The \`checkIntersection()\` method of the SVGSVGElement interface checks if the rendered content of the given element intersects the supplied rectangle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/checkIntersection)
     */
    checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
    /**
     * The \`createSVGAngle()\` method of the SVGSVGElement interface creates an SVGAngle object outside of any document trees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGAngle)
     */
    createSVGAngle(): SVGAngle;
    /**
     * The \`createSVGLength()\` method of the SVGSVGElement interface creates an SVGLength object outside of any document trees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGLength)
     */
    createSVGLength(): SVGLength;
    /**
     * The \`createSVGMatrix()\` method of the SVGSVGElement interface creates a DOMMatrix object outside of any document trees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGMatrix)
     */
    createSVGMatrix(): DOMMatrix;
    /**
     * The \`createSVGNumber()\` method of the SVGSVGElement interface creates an SVGNumber object outside of any document trees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGNumber)
     */
    createSVGNumber(): SVGNumber;
    /**
     * The \`createSVGPoint()\` method of the SVGSVGElement interface creates a DOMPoint object outside of any document trees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGPoint)
     */
    createSVGPoint(): DOMPoint;
    /**
     * The \`createSVGRect()\` method of the SVGSVGElement interface creates an DOMRect object outside of any document trees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGRect)
     */
    createSVGRect(): DOMRect;
    /**
     * The \`createSVGTransform()\` method of the SVGSVGElement interface creates an SVGTransform object outside of any document trees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGTransform)
     */
    createSVGTransform(): SVGTransform;
    /**
     * The \`createSVGTransformFromMatrix()\` method of the SVGSVGElement interface creates an SVGTransform object outside of any document trees, based on the given DOMMatrix object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/createSVGTransformFromMatrix)
     */
    createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
    /**
     * The \`deselectAll()\` method of the SVGSVGElement interface unselects any selected objects, including any selections of text strings and type-in bars.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/deselectAll)
     */
    deselectAll(): void;
    /** @deprecated */
    forceRedraw(): void;
    /**
     * The \`getCurrentTime()\` method of the SVGSVGElement interface returns the current time in seconds relative to the start time for the current SVG document fragment.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getCurrentTime)
     */
    getCurrentTime(): number;
    /**
     * The \`getElementById()\` method of the SVGSVGElement interface searches the SVG document fragment (i.e., the search is restricted to a subset of the document tree) for an Element whose \`id\` property matches the specified string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
     */
    getElementById(elementId: string): Element;
    getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
    getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
    /**
     * The \`pauseAnimations()\` method of the SVGSVGElement interface suspends (i.e., pauses) all currently running animations that are defined within the SVG document fragment corresponding to this svg element, causing the animation clock corresponding to this document fragment to stand still until it is unpaused.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/pauseAnimations)
     */
    pauseAnimations(): void;
    /**
     * The \`setCurrentTime()\` method of the SVGSVGElement interface adjusts the clock for this SVG document fragment, establishing a new current time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/setCurrentTime)
     */
    setCurrentTime(seconds: number): void;
    /** @deprecated */
    suspendRedraw(maxWaitMilliseconds: number): number;
    /**
     * The \`unpauseAnimations()\` method of the SVGSVGElement interface resumes (i.e., unpauses) currently running animations that are defined within the SVG document fragment, causing the animation clock to continue from the time at which it was suspended.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/unpauseAnimations)
     */
    unpauseAnimations(): void;
    /** @deprecated */
    unsuspendRedraw(suspendHandleID: number): void;
    /** @deprecated */
    unsuspendRedrawAll(): void;
    addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGSVGElement: {
    prototype: SVGSVGElement;
    new(): SVGSVGElement;
};

/**
 * The **\`SVGScriptElement\`** interface corresponds to the SVG script element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement)
 */
interface SVGScriptElement extends SVGElement, SVGURIReference {
    /**
     * The **\`type\`** read-only property of the SVGScriptElement interface reflects the type attribute of the given script element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement/type)
     */
    type: string;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGScriptElement: {
    prototype: SVGScriptElement;
    new(): SVGScriptElement;
};

/**
 * The **\`SVGSetElement\`** interface corresponds to the set element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSetElement)
 */
interface SVGSetElement extends SVGAnimationElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGSetElement: {
    prototype: SVGSetElement;
    new(): SVGSetElement;
};

/**
 * The **\`SVGStopElement\`** interface corresponds to the stop element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement)
 */
interface SVGStopElement extends SVGElement {
    /**
     * The **\`offset\`** read-only property of the SVGStopElement interface reflects the offset attribute of the given stop element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement/offset)
     */
    readonly offset: SVGAnimatedNumber;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGStopElement: {
    prototype: SVGStopElement;
    new(): SVGStopElement;
};

/**
 * The **\`SVGStringList\`** interface defines a list of strings.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList)
 */
interface SVGStringList {
    /**
     * The **\`length\`** property of the SVGStringList interface returns the number of items in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/length)
     */
    readonly length: number;
    /**
     * The **\`numberOfItems\`** property of the SVGStringList interface returns the number of items in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/numberOfItems)
     */
    readonly numberOfItems: number;
    /**
     * The **\`appendItem()\`** method of the SVGStringList interface inserts a new item at the end of the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/appendItem)
     */
    appendItem(newItem: string): string;
    /**
     * The **\`clear()\`** method of the SVGStringList interface clears all existing items from the list, with the result being an empty list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/clear)
     */
    clear(): void;
    /**
     * The **\`getItem()\`** method of the SVGStringList interface returns the specified item from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/getItem)
     */
    getItem(index: number): string;
    /**
     * The **\`initialize()\`** method of the SVGStringList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/initialize)
     */
    initialize(newItem: string): string;
    /**
     * The **\`insertItemBefore()\`** method of the SVGStringList interface inserts a new item into the list at the specified position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/insertItemBefore)
     */
    insertItemBefore(newItem: string, index: number): string;
    /**
     * The **\`removeItem()\`** method of the SVGStringList interface removes an existing item at the given index from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/removeItem)
     */
    removeItem(index: number): string;
    /**
     * The **\`replaceItem()\`** method of the SVGStringList interface replaces an existing item in the list with a new item.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList/replaceItem)
     */
    replaceItem(newItem: string, index: number): string;
    [index: number]: string;
}

declare var SVGStringList: {
    prototype: SVGStringList;
    new(): SVGStringList;
};

/**
 * The **\`SVGStyleElement\`** interface corresponds to the SVG style element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
 */
interface SVGStyleElement extends SVGElement, LinkStyle {
    disabled: boolean;
    /**
     * The **\`SVGStyleElement.media\`** property is a media query string corresponding to the \`media\` attribute of the given SVG style element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media)
     */
    media: string;
    /**
     * The **\`SVGStyleElement.title\`** property is a string corresponding to the \`title\` attribute of the given SVG style element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title)
     */
    title: string;
    /**
     * The **\`SVGStyleElement.type\`** property returns the type of the current style.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/type)
     */
    type: string;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGStyleElement: {
    prototype: SVGStyleElement;
    new(): SVGStyleElement;
};

/**
 * The **\`SVGSwitchElement\`** interface corresponds to the switch element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSwitchElement)
 */
interface SVGSwitchElement extends SVGGraphicsElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGSwitchElement: {
    prototype: SVGSwitchElement;
    new(): SVGSwitchElement;
};

/**
 * The **\`SVGSymbolElement\`** interface corresponds to the symbol element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSymbolElement)
 */
interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGSymbolElement: {
    prototype: SVGSymbolElement;
    new(): SVGSymbolElement;
};

/**
 * The **\`SVGTSpanElement\`** interface represents a tspan element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTSpanElement)
 */
interface SVGTSpanElement extends SVGTextPositioningElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGTSpanElement: {
    prototype: SVGTSpanElement;
    new(): SVGTSpanElement;
};

interface SVGTests {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/requiredExtensions) */
    readonly requiredExtensions: SVGStringList;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/systemLanguage) */
    readonly systemLanguage: SVGStringList;
}

/**
 * The **\`SVGTextContentElement\`** interface is implemented by elements that support rendering child text content.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement)
 */
interface SVGTextContentElement extends SVGGraphicsElement {
    /**
     * The **\`lengthAdjust\`** read-only property of the SVGTextContentElement interface reflects the lengthAdjust attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/lengthAdjust)
     */
    readonly lengthAdjust: SVGAnimatedEnumeration;
    /**
     * The **\`textLength\`** read-only property of the SVGTextContentElement interface reflects the textLength attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/textLength)
     */
    readonly textLength: SVGAnimatedLength;
    /**
     * The \`getCharNumAtPosition()\` method of the SVGTextContentElement interface represents the character which caused a text glyph to be rendered at a given position in the coordinate system.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getCharNumAtPosition)
     */
    getCharNumAtPosition(point?: DOMPointInit): number;
    /**
     * The \`getComputedTextLength()\` method of the SVGTextContentElement interface represents the computed length for the text within the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getComputedTextLength)
     */
    getComputedTextLength(): number;
    /**
     * The \`getEndPositionOfChar()\` method of the SVGTextContentElement interface returns the trailing position of a typographic character after text layout has been performed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)
     */
    getEndPositionOfChar(charnum: number): DOMPoint;
    /**
     * The \`getExtentOfChar()\` method of the SVGTextContentElement interface the represents computed tight bounding box of the glyph cell that corresponds to a given typographic character.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getExtentOfChar)
     */
    getExtentOfChar(charnum: number): DOMRect;
    /**
     * The \`getNumberOfChars()\` method of the SVGTextContentElement interface represents the total number of addressable characters available for rendering within the current element, regardless of whether they will be rendered.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getNumberOfChars)
     */
    getNumberOfChars(): number;
    /**
     * The \`getRotationOfChar()\` method of the SVGTextContentElement interface the represents the rotation of a typographic character.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getRotationOfChar)
     */
    getRotationOfChar(charnum: number): number;
    /**
     * The \`getStartPositionOfChar()\` method of the SVGTextContentElement interface returns the position of a typographic character after text layout has been performed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)
     */
    getStartPositionOfChar(charnum: number): DOMPoint;
    /**
     * The \`getSubStringLength()\` method of the SVGTextContentElement interface represents the computed length of the formatted text advance distance for a substring of text within the element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement/getSubStringLength)
     */
    getSubStringLength(charnum: number, nchars: number): number;
    /** @deprecated */
    selectSubString(charnum: number, nchars: number): void;
    readonly LENGTHADJUST_UNKNOWN: 0;
    readonly LENGTHADJUST_SPACING: 1;
    readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGTextContentElement: {
    prototype: SVGTextContentElement;
    new(): SVGTextContentElement;
    readonly LENGTHADJUST_UNKNOWN: 0;
    readonly LENGTHADJUST_SPACING: 1;
    readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
};

/**
 * The **\`SVGTextElement\`** interface corresponds to the text elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextElement)
 */
interface SVGTextElement extends SVGTextPositioningElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGTextElement: {
    prototype: SVGTextElement;
    new(): SVGTextElement;
};

/**
 * The **\`SVGTextPathElement\`** interface corresponds to the textPath element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement)
 */
interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
    /**
     * The **\`method\`** read-only property of the SVGTextPathElement interface reflects the method attribute of the given textPath element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/method)
     */
    readonly method: SVGAnimatedEnumeration;
    /**
     * The **\`spacing\`** read-only property of the SVGTextPathElement interface reflects the spacing attribute of the given textPath element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/spacing)
     */
    readonly spacing: SVGAnimatedEnumeration;
    /**
     * The **\`startOffset\`** read-only property of the SVGTextPathElement interface reflects the X component of the startOffset attribute of the given textPath, which defines an offset from the start of the path for the initial current text position along the path after converting the path to the \`<textPath>\` element's coordinate system.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement/startOffset)
     */
    readonly startOffset: SVGAnimatedLength;
    readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
    readonly TEXTPATH_METHODTYPE_ALIGN: 1;
    readonly TEXTPATH_METHODTYPE_STRETCH: 2;
    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
    readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
    readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGTextPathElement: {
    prototype: SVGTextPathElement;
    new(): SVGTextPathElement;
    readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
    readonly TEXTPATH_METHODTYPE_ALIGN: 1;
    readonly TEXTPATH_METHODTYPE_STRETCH: 2;
    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
    readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
    readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
};

/**
 * The **\`SVGTextPositioningElement\`** interface is implemented by elements that support attributes that position individual text glyphs.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement)
 */
interface SVGTextPositioningElement extends SVGTextContentElement {
    /**
     * The **\`dx\`** read-only property of the SVGTextPositioningElement interface describes the x-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/dx)
     */
    readonly dx: SVGAnimatedLengthList;
    /**
     * The **\`dy\`** read-only property of the SVGTextPositioningElement interface describes the y-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/dy)
     */
    readonly dy: SVGAnimatedLengthList;
    /**
     * The **\`rotate\`** read-only property of the SVGTextPositioningElement interface reflects the rotation of individual text glyphs, as specified by the rotate attribute of the given element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/rotate)
     */
    readonly rotate: SVGAnimatedNumberList;
    /**
     * The **\`x\`** read-only property of the SVGTextPositioningElement interface describes the x-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/x)
     */
    readonly x: SVGAnimatedLengthList;
    /**
     * The **\`y\`** read-only property of the SVGTextPositioningElement interface describes the y-axis coordinate of the SVGTextElement or SVGTSpanElement as an SVGAnimatedLengthList.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement/y)
     */
    readonly y: SVGAnimatedLengthList;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGTextPositioningElement: {
    prototype: SVGTextPositioningElement;
    new(): SVGTextPositioningElement;
};

/**
 * The **\`SVGTitleElement\`** interface corresponds to the title element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTitleElement)
 */
interface SVGTitleElement extends SVGElement {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGTitleElement: {
    prototype: SVGTitleElement;
    new(): SVGTitleElement;
};

/**
 * The **\`SVGTransform\`** interface reflects one of the component transformations within an SVGTransformList; thus, an \`SVGTransform\` object corresponds to a single component (e.g., \`scale(…)\` or \`matrix(…)\`) within a transform attribute.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform)
 */
interface SVGTransform {
    /**
     * The **\`angle\`** read-only property of the SVGTransform interface represents the angle of the transformation in degrees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/angle)
     */
    readonly angle: number;
    /**
     * The **\`matrix\`** read-only property of the SVGTransform interface represents the transformation matrix that corresponds to the transformation \`type\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/matrix)
     */
    readonly matrix: DOMMatrix;
    /**
     * The **\`type\`** read-only property of the SVGTransform interface represents the \`type\` of transformation applied, specified by one of the \`SVG_TRANSFORM_*\` constants defined on this interface.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/type)
     */
    readonly type: number;
    /**
     * The \`setMatrix()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_MATRIX\`, with parameter \`matrix\` defining the new transformation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setMatrix)
     */
    setMatrix(matrix?: DOMMatrix2DInit): void;
    /**
     * The \`setRotate()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_ROTATE\`, with parameter \`angle\` defining the rotation angle and parameters \`cx\` and \`cy\` defining the optional center of rotation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setRotate)
     */
    setRotate(angle: number, cx: number, cy: number): void;
    /**
     * The \`setScale()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_SCALE\`, with parameters \`sx\` and \`sy\` defining the scale amounts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setScale)
     */
    setScale(sx: number, sy: number): void;
    /**
     * The \`setSkewX()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_SKEWX\`, with parameter \`angle\` defining the amount of skew along the X-axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setSkewX)
     */
    setSkewX(angle: number): void;
    /**
     * The \`setSkewY()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_SKEWY\`, with parameter \`angle\` defining the amount of skew along the Y-axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setSkewY)
     */
    setSkewY(angle: number): void;
    /**
     * The \`setTranslate()\` method of the SVGTransform interface sets the transform type to \`SVG_TRANSFORM_TRANSLATE\`, with parameters \`tx\` and \`ty\` defining the translation amounts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform/setTranslate)
     */
    setTranslate(tx: number, ty: number): void;
    readonly SVG_TRANSFORM_UNKNOWN: 0;
    readonly SVG_TRANSFORM_MATRIX: 1;
    readonly SVG_TRANSFORM_TRANSLATE: 2;
    readonly SVG_TRANSFORM_SCALE: 3;
    readonly SVG_TRANSFORM_ROTATE: 4;
    readonly SVG_TRANSFORM_SKEWX: 5;
    readonly SVG_TRANSFORM_SKEWY: 6;
}

declare var SVGTransform: {
    prototype: SVGTransform;
    new(): SVGTransform;
    readonly SVG_TRANSFORM_UNKNOWN: 0;
    readonly SVG_TRANSFORM_MATRIX: 1;
    readonly SVG_TRANSFORM_TRANSLATE: 2;
    readonly SVG_TRANSFORM_SCALE: 3;
    readonly SVG_TRANSFORM_ROTATE: 4;
    readonly SVG_TRANSFORM_SKEWX: 5;
    readonly SVG_TRANSFORM_SKEWY: 6;
};

/**
 * The **\`SVGTransformList\`** interface defines a list of SVGTransform objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList)
 */
interface SVGTransformList {
    /**
     * The **\`length\`** read-only property of the SVGTransformList interface represents the number of items in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/length)
     */
    readonly length: number;
    /**
     * The **\`numberOfItems\`** read-only property of the SVGTransformList interface represents the number of items in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/numberOfItems)
     */
    readonly numberOfItems: number;
    /**
     * The \`appendItem()\` method of the SVGTransformList interface inserts a new item at the end of the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/appendItem)
     */
    appendItem(newItem: SVGTransform): SVGTransform;
    /**
     * The \`clear()\` method of the SVGTransformList interface clears all existing current items from the list, with the result being an empty list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/clear)
     */
    clear(): void;
    /**
     * The \`consolidate()\` method of the SVGTransformList interface consolidates the list of separate SVGTransform objects by multiplying the equivalent transformation matrices together to result in a list consisting of a single \`SVGTransform\` object of type \`SVG_TRANSFORM_MATRIX\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/consolidate)
     */
    consolidate(): SVGTransform | null;
    /**
     * The \`createSVGTransformFromMatrix()\` method of the SVGTransformList interface creates an SVGTransform object which is initialized to a transform of type \`SVG_TRANSFORM_MATRIX\` and whose values are the given matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/createSVGTransformFromMatrix)
     */
    createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
    /**
     * The \`getItem()\` method of the SVGTransformList interface returns the specified item from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/getItem)
     */
    getItem(index: number): SVGTransform;
    /**
     * The \`initialize()\` method of the SVGTransformList interface clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/initialize)
     */
    initialize(newItem: SVGTransform): SVGTransform;
    /**
     * The \`insertItemBefore()\` method of the SVGTransformList interface inserts a new item into the list at the specified position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/insertItemBefore)
     */
    insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
    /**
     * The \`removeItem()\` method of the SVGTransformList interface removes an existing item from the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/removeItem)
     */
    removeItem(index: number): SVGTransform;
    /**
     * The \`replaceItem()\` method of the SVGTransformList interface replaces an existing item in the list with a new item.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList/replaceItem)
     */
    replaceItem(newItem: SVGTransform, index: number): SVGTransform;
    [index: number]: SVGTransform;
}

declare var SVGTransformList: {
    prototype: SVGTransformList;
    new(): SVGTransformList;
};

interface SVGURIReference {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/href) */
    readonly href: SVGAnimatedString;
}

/**
 * The **\`SVGUnitTypes\`** interface defines a commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUnitTypes)
 */
interface SVGUnitTypes {
    readonly SVG_UNIT_TYPE_UNKNOWN: 0;
    readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
}

declare var SVGUnitTypes: {
    prototype: SVGUnitTypes;
    new(): SVGUnitTypes;
    readonly SVG_UNIT_TYPE_UNKNOWN: 0;
    readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
};

/**
 * The **\`SVGUseElement\`** interface corresponds to the use element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement)
 */
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
    /**
     * The **\`height\`** read-only property of the SVGUseElement interface describes the height of the referenced element as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/height)
     */
    readonly height: SVGAnimatedLength;
    /**
     * The **\`width\`** read-only property of the SVGUseElement interface describes the width of the referenced element as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/width)
     */
    readonly width: SVGAnimatedLength;
    /**
     * The **\`x\`** read-only property of the SVGUseElement interface describes the x-axis coordinate of the start point of the referenced element as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/x)
     */
    readonly x: SVGAnimatedLength;
    /**
     * The **\`y\`** read-only property of the SVGUseElement interface describes the y-axis coordinate of the start point of the referenced element as an SVGAnimatedLength.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement/y)
     */
    readonly y: SVGAnimatedLength;
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGUseElement: {
    prototype: SVGUseElement;
    new(): SVGUseElement;
};

/**
 * The **\`SVGViewElement\`** interface provides access to the properties of view elements, as well as methods to manipulate them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGViewElement)
 */
interface SVGViewElement extends SVGElement, SVGFitToViewBox {
    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SVGViewElement: {
    prototype: SVGViewElement;
    new(): SVGViewElement;
};

/**
 * The \`Screen\` interface represents a screen, usually the one on which the current window is being rendered, and is obtained using window.screen.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen)
 */
interface Screen {
    /**
     * The read-only Screen interface's **\`availHeight\`** property returns the height, in CSS pixels, of the space available for Web content on the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight)
     */
    readonly availHeight: number;
    /**
     * The **\`Screen.availWidth\`** property returns the amount of horizontal space (in CSS pixels) available to the window.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth)
     */
    readonly availWidth: number;
    /**
     * The **\`Screen.colorDepth\`** read-only property returns the color depth of the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth)
     */
    readonly colorDepth: number;
    /**
     * The **\`Screen.height\`** read-only property returns the height of the screen in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height)
     */
    readonly height: number;
    /**
     * The **\`orientation\`** read-only property of the An instance of ScreenOrientation representing the orientation of the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation)
     */
    readonly orientation: ScreenOrientation;
    /**
     * Returns the bit depth of the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth)
     */
    readonly pixelDepth: number;
    /**
     * The **\`Screen.width\`** read-only property returns the width of the screen in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/width)
     */
    readonly width: number;
}

declare var Screen: {
    prototype: Screen;
    new(): Screen;
};

interface ScreenOrientationEventMap {
    "change": Event;
}

/**
 * The **\`ScreenOrientation\`** interface of the Screen Orientation API provides information about the current orientation of the document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation)
 */
interface ScreenOrientation extends EventTarget {
    /**
     * The **\`angle\`** read-only property of the angle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle)
     */
    readonly angle: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/change_event) */
    onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
    /**
     * The **\`type\`** read-only property of the type, one of \`portrait-primary\`, \`portrait-secondary\`, \`landscape-primary\`, or \`landscape-secondary\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type)
     */
    readonly type: OrientationType;
    /**
     * The **\`unlock()\`** method of the document from its default orientation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock)
     */
    unlock(): void;
    addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var ScreenOrientation: {
    prototype: ScreenOrientation;
    new(): ScreenOrientation;
};

interface ScriptProcessorNodeEventMap {
    "audioprocess": AudioProcessingEvent;
}

/**
 * The \`ScriptProcessorNode\` interface allows the generation, processing, or analyzing of audio using JavaScript.
 * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode)
 */
interface ScriptProcessorNode extends AudioNode {
    /**
     * The \`bufferSize\` property of the ScriptProcessorNode interface returns an integer representing both the input and output buffer size, in sample-frames.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/bufferSize)
     */
    readonly bufferSize: number;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/audioprocess_event)
     */
    onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
    addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/** @deprecated */
declare var ScriptProcessorNode: {
    prototype: ScriptProcessorNode;
    new(): ScriptProcessorNode;
};

/**
 * The **\`SecurityPolicyViolationEvent\`** interface inherits from Event, and represents the event object of a \`securitypolicyviolation\` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
 */
interface SecurityPolicyViolationEvent extends Event {
    /**
     * The **\`blockedURI\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the resource that was blocked because it violates a Content Security Policy (CSP).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)
     */
    readonly blockedURI: string;
    /**
     * The **\`columnNumber\`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
     */
    readonly columnNumber: number;
    /**
     * The **\`disposition\`** read-only property of the SecurityPolicyViolationEvent interface indicates how the violated Content Security Policy (CSP) is configured to be treated by the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition)
     */
    readonly disposition: SecurityPolicyViolationEventDisposition;
    /**
     * The **\`documentURI\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the document or worker in which the Content Security Policy (CSP) violation occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI)
     */
    readonly documentURI: string;
    /**
     * The **\`effectiveDirective\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)
     */
    readonly effectiveDirective: string;
    /**
     * The **\`lineNumber\`** read-only property of the SecurityPolicyViolationEvent interface is the line number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)
     */
    readonly lineNumber: number;
    /**
     * The **\`originalPolicy\`** read-only property of the SecurityPolicyViolationEvent interface is a string containing the Content Security Policy (CSP) whose enforcement uncovered the violation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)
     */
    readonly originalPolicy: string;
    /**
     * The **\`referrer\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the referrer for the resources whose Content Security Policy (CSP) was violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer)
     */
    readonly referrer: string;
    /**
     * The **\`sample\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing a sample of the resource that caused the Content Security Policy (CSP) violation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample)
     */
    readonly sample: string;
    /**
     * The **\`sourceFile\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URL of the script in which the Content Security Policy (CSP) violation occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)
     */
    readonly sourceFile: string;
    /**
     * The **\`statusCode\`** read-only property of the SecurityPolicyViolationEvent interface is a number representing the HTTP status code of the window or worker in which the Content Security Policy (CSP) violation occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode)
     */
    readonly statusCode: number;
    /**
     * The **\`violatedDirective\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective)
     */
    readonly violatedDirective: string;
}

declare var SecurityPolicyViolationEvent: {
    prototype: SecurityPolicyViolationEvent;
    new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};

/**
 * A **\`Selection\`** object represents the range of text selected by the user or the current position of the caret.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection)
 */
interface Selection {
    /**
     * The **\`Selection.anchorNode\`** read-only property returns the Node in which the selection begins.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode)
     */
    readonly anchorNode: Node | null;
    /**
     * The **\`Selection.anchorOffset\`** read-only property returns the number of characters that the selection's anchor is offset within the In the case of Selection.anchorNode being another type of node, **\`Selection.anchorOffset\`** returns the number of Node.childNodes the selection's anchor is offset within the Selection.anchorNode.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset)
     */
    readonly anchorOffset: number;
    /**
     * The **\`direction\`** read-only property of the Selection interface is a string that provides the direction of the current selection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/direction)
     */
    readonly direction: string;
    /**
     * The **\`Selection.focusNode\`** read-only property returns the Node in which the selection ends.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode)
     */
    readonly focusNode: Node | null;
    /**
     * The **\`Selection.focusOffset\`** read-only property returns the number of characters that the selection's focus is offset within the In the case of Selection.focusNode being another type of node, **\`Selection.focusOffset\`** returns the number of Node.childNodes the selection's focus is offset within the Selection.focusNode.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset)
     */
    readonly focusOffset: number;
    /**
     * The **\`Selection.isCollapsed\`** read-only property returns a boolean value which indicates whether or not there is currently any text selected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed)
     */
    readonly isCollapsed: boolean;
    /**
     * The **\`Selection.rangeCount\`** read-only property returns the number of ranges in the selection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount)
     */
    readonly rangeCount: number;
    /**
     * The **\`type\`** read-only property of the type of the current selection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type)
     */
    readonly type: string;
    /**
     * The **\`Selection.addRange()\`** method adds a \`\`\`js-nolint addRange(range) \`\`\` - \`range\` - : A Range object that will be added to the Selection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange)
     */
    addRange(range: Range): void;
    /**
     * The **\`Selection.collapse()\`** method collapses the current selection to a single point.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse)
     */
    collapse(node: Node | null, offset?: number): void;
    /**
     * The **\`Selection.collapseToEnd()\`** method collapses the selection to the end of the last range in the selection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd)
     */
    collapseToEnd(): void;
    /**
     * The **\`Selection.collapseToStart()\`** method collapses the selection to the start of the first range in the selection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart)
     */
    collapseToStart(): void;
    /**
     * The **\`Selection.containsNode()\`** method indicates whether a specified node is part of the selection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode)
     */
    containsNode(node: Node, allowPartialContainment?: boolean): boolean;
    /**
     * The **\`deleteFromDocument()\`** method of the \`\`\`js-nolint deleteFromDocument() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument)
     */
    deleteFromDocument(): void;
    /**
     * The **\`Selection.empty()\`** method removes all ranges from the selection, leaving the Selection.anchorNode and Selection.focusNode properties equal to \`null\` and nothing selected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/empty)
     */
    empty(): void;
    /**
     * The **\`Selection.extend()\`** method moves the focus of the selection to a specified point.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend)
     */
    extend(node: Node, offset?: number): void;
    /**
     * The **\`Selection.getComposedRanges()\`** method returns an array of StaticRange objects representing the current selection ranges, and can return ranges that potentially cross shadow boundaries.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getComposedRanges)
     */
    getComposedRanges(options?: GetComposedRangesOptions): StaticRange[];
    /**
     * The **\`getRangeAt()\`** method of the Selection interface returns a range object representing a currently selected range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt)
     */
    getRangeAt(index: number): Range;
    /**
     * The **\`Selection.modify()\`** method applies a change to the current selection or cursor position, using simple textual commands.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify)
     */
    modify(alter?: string, direction?: string, granularity?: string): void;
    /**
     * The **\`Selection.removeAllRanges()\`** method removes all ranges from the selection, leaving the Selection.anchorNode and Selection.focusNode properties equal to \`null\` and nothing selected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges)
     */
    removeAllRanges(): void;
    /**
     * The **\`Selection.removeRange()\`** method removes a range from a selection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange)
     */
    removeRange(range: Range): void;
    /**
     * The **\`Selection.selectAllChildren()\`** method adds all the children of the specified node to the selection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren)
     */
    selectAllChildren(node: Node): void;
    /**
     * The **\`setBaseAndExtent()\`** method of the Selection interface sets the selection to be a range including all or parts of two specified DOM nodes, and any content located between them.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent)
     */
    setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
    /**
     * The **\`Selection.setPosition()\`** method collapses the current selection to a single point.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setPosition)
     */
    setPosition(node: Node | null, offset?: number): void;
    toString(): string;
}

declare var Selection: {
    prototype: Selection;
    new(): Selection;
};

interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
    "statechange": Event;
}

/**
 * The **\`ServiceWorker\`** interface of the Service Worker API provides a reference to a service worker.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)
 */
interface ServiceWorker extends EventTarget, AbstractWorker {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */
    onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
    /**
     * Returns the \`ServiceWorker\` serialized script URL defined as part of \`ServiceWorkerRegistration\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL)
     */
    readonly scriptURL: string;
    /**
     * The **\`state\`** read-only property of the of the service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state)
     */
    readonly state: ServiceWorkerState;
    /**
     * The **\`postMessage()\`** method of the ServiceWorker interface sends a message to the worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage)
     */
    postMessage(message: any, transfer: Transferable[]): void;
    postMessage(message: any, options?: StructuredSerializeOptions): void;
    addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var ServiceWorker: {
    prototype: ServiceWorker;
    new(): ServiceWorker;
};

interface ServiceWorkerContainerEventMap {
    "controllerchange": Event;
    "message": MessageEvent;
    "messageerror": MessageEvent;
}

/**
 * The **\`ServiceWorkerContainer\`** interface of the Service Worker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)
 */
interface ServiceWorkerContainer extends EventTarget {
    /**
     * The **\`controller\`** read-only property of the ServiceWorkerContainer interface returns a \`activated\` (the same object returned by \`null\` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
     */
    readonly controller: ServiceWorker | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */
    oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
    onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
    onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
    /**
     * The **\`ready\`** read-only property of the ServiceWorkerContainer interface provides a way of delaying code execution until a service worker is active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready)
     */
    readonly ready: Promise<ServiceWorkerRegistration>;
    /**
     * The **\`getRegistration()\`** method of the client URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration)
     */
    getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
    /**
     * The **\`getRegistrations()\`** method of the \`ServiceWorkerContainer\`, in an array.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations)
     */
    getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
    /**
     * The **\`register()\`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
     */
    register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
    /**
     * The **\`startMessages()\`** method of the ServiceWorkerContainer interface explicitly starts the flow of messages being dispatched from a service worker to pages under its control (e.g., sent via Client.postMessage()).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages)
     */
    startMessages(): void;
    addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var ServiceWorkerContainer: {
    prototype: ServiceWorkerContainer;
    new(): ServiceWorkerContainer;
};

interface ServiceWorkerRegistrationEventMap {
    "updatefound": Event;
}

/**
 * The **\`ServiceWorkerRegistration\`** interface of the Service Worker API represents the service worker registration.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
 */
interface ServiceWorkerRegistration extends EventTarget {
    /**
     * The **\`active\`** read-only property of the This property is initially set to \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
     */
    readonly active: ServiceWorker | null;
    /**
     * The **\`cookies\`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
     */
    readonly cookies: CookieStoreManager;
    /**
     * The **\`installing\`** read-only property of the initially set to \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing)
     */
    readonly installing: ServiceWorker | null;
    /**
     * The **\`navigationPreload\`** read-only property of the ServiceWorkerRegistration interface returns the NavigationPreloadManager associated with the current service worker registration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload)
     */
    readonly navigationPreload: NavigationPreloadManager;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
    onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
    /**
     * The **\`pushManager\`** read-only property of the support for subscribing, getting an active subscription, and accessing push permission status.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
     */
    readonly pushManager: PushManager;
    /**
     * The **\`scope\`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope)
     */
    readonly scope: string;
    /**
     * The **\`updateViaCache\`** read-only property of the ServiceWorkerRegistration interface returns the value of the setting used to determine the circumstances in which the browser will consult the HTTP cache when it tries to update the service worker or any scripts that are imported via WorkerGlobalScope.importScripts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache)
     */
    readonly updateViaCache: ServiceWorkerUpdateViaCache;
    /**
     * The **\`waiting\`** read-only property of the set to \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting)
     */
    readonly waiting: ServiceWorker | null;
    /**
     * The **\`getNotifications()\`** method of the ServiceWorkerRegistration interface returns a list of the notifications in the order that they were created from the current origin via the current service worker registration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications)
     */
    getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
    /**
     * The **\`showNotification()\`** method of the service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification)
     */
    showNotification(title: string, options?: NotificationOptions): Promise<void>;
    /**
     * The **\`unregister()\`** method of the registration and returns a Promise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister)
     */
    unregister(): Promise<boolean>;
    /**
     * The **\`update()\`** method of the worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update)
     */
    update(): Promise<ServiceWorkerRegistration>;
    addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var ServiceWorkerRegistration: {
    prototype: ServiceWorkerRegistration;
    new(): ServiceWorkerRegistration;
};

interface ShadowRootEventMap {
    "slotchange": Event;
}

/**
 * The **\`ShadowRoot\`** interface of the Shadow DOM API is the root node of a DOM subtree that is rendered separately from a document's main DOM tree.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot)
 */
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot {
    /**
     * The **\`clonable\`** read-only property of the ShadowRoot interface returns \`true\` if the shadow root is clonable, and \`false\` otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable)
     */
    readonly clonable: boolean;
    /**
     * The **\`delegatesFocus\`** read-only property of the ShadowRoot interface returns \`true\` if the shadow root delegates focus, and \`false\` otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus)
     */
    readonly delegatesFocus: boolean;
    /**
     * The **\`host\`** read-only property of the ShadowRoot returns a reference to the DOM element the \`ShadowRoot\` is attached to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host)
     */
    readonly host: Element;
    /**
     * The **\`innerHTML\`** property of the ShadowRoot interface sets gets or sets the HTML markup to the DOM tree inside the \`ShadowRoot\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/innerHTML)
     */
    innerHTML: string;
    /**
     * The **\`mode\`** read-only property of the ShadowRoot specifies its mode — either \`open\` or \`closed\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode)
     */
    readonly mode: ShadowRootMode;
    onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
    /**
     * The **\`serializable\`** read-only property of the ShadowRoot interface returns \`true\` if the shadow root is serializable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/serializable)
     */
    readonly serializable: boolean;
    /**
     * The read-only **\`slotAssignment\`** property of the ShadowRoot interface returns the _slot assignment mode_ for the shadow DOM tree.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment)
     */
    readonly slotAssignment: SlotAssignmentMode;
    /**
     * The **\`getHTML()\`** method of the ShadowRoot interface is used to serialize a shadow root's DOM to an HTML string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/getHTML)
     */
    getHTML(options?: GetHTMLOptions): string;
    /**
     * The **\`setHTMLUnsafe()\`** method of the ShadowRoot interface can be used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and then use it to replace the existing tree in the Shadow DOM.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/setHTMLUnsafe)
     */
    setHTMLUnsafe(html: string): void;
    addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var ShadowRoot: {
    prototype: ShadowRoot;
    new(): ShadowRoot;
};

/**
 * The **\`SharedWorker\`** interface represents a specific kind of worker that can be _accessed_ from several browsing contexts, such as several windows, iframes or even workers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker)
 */
interface SharedWorker extends EventTarget, AbstractWorker {
    /**
     * The **\`port\`** property of the SharedWorker interface returns a MessagePort object used to communicate and control the shared worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker/port)
     */
    readonly port: MessagePort;
    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SharedWorker: {
    prototype: SharedWorker;
    new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
};

interface Slottable {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) */
    readonly assignedSlot: HTMLSlotElement | null;
}

interface SourceBufferEventMap {
    "abort": Event;
    "error": Event;
    "update": Event;
    "updateend": Event;
    "updatestart": Event;
}

/**
 * The **\`SourceBuffer\`** interface represents a chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer)
 */
interface SourceBuffer extends EventTarget {
    /**
     * The **\`appendWindowEnd\`** property of the timestamp range that can be used to filter what media data is appended to the \`SourceBuffer\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd)
     */
    appendWindowEnd: number;
    /**
     * The **\`appendWindowStart\`** property of the timestamp range that can be used to filter what media data is appended to the \`SourceBuffer\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart)
     */
    appendWindowStart: number;
    /**
     * The **\`buffered\`** read-only property of the buffered in the \`SourceBuffer\` as a normalized TimeRanges object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered)
     */
    readonly buffered: TimeRanges;
    /**
     * The **\`mode\`** property of the SourceBuffer interface controls whether media segments can be appended to the \`SourceBuffer\` in any order, or in a strict sequence.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)
     */
    mode: AppendMode;
    onabort: ((this: SourceBuffer, ev: Event) => any) | null;
    onerror: ((this: SourceBuffer, ev: Event) => any) | null;
    onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
    onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
    onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
    /**
     * The **\`timestampOffset\`** property of the media segments that are appended to the \`SourceBuffer\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset)
     */
    timestampOffset: number;
    /**
     * The **\`updating\`** read-only property of the currently being updated — i.e., whether an SourceBuffer.appendBuffer() or SourceBuffer.remove() operation is currently in progress.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating)
     */
    readonly updating: boolean;
    /**
     * The **\`abort()\`** method of the SourceBuffer interface aborts the current segment and resets the segment parser.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort)
     */
    abort(): void;
    /**
     * The **\`appendBuffer()\`** method of the to the \`SourceBuffer\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer)
     */
    appendBuffer(data: BufferSource): void;
    /**
     * The **\`changeType()\`** method of the data to conform to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType)
     */
    changeType(type: string): void;
    /**
     * The **\`remove()\`** method of the SourceBuffer interface removes media segments within a specific time range from the \`SourceBuffer\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/remove)
     */
    remove(start: number, end: number): void;
    addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SourceBuffer: {
    prototype: SourceBuffer;
    new(): SourceBuffer;
};

interface SourceBufferListEventMap {
    "addsourcebuffer": Event;
    "removesourcebuffer": Event;
}

/**
 * The **\`SourceBufferList\`** interface represents a simple container list for multiple SourceBuffer objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList)
 */
interface SourceBufferList extends EventTarget {
    /**
     * The **\`length\`** read-only property of the An unsigned long number.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length)
     */
    readonly length: number;
    onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
    onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
    addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
    [index: number]: SourceBuffer;
}

declare var SourceBufferList: {
    prototype: SourceBufferList;
    new(): SourceBufferList;
};

/**
 * The **\`SpeechRecognitionAlternative\`** interface of the Web Speech API represents a single word that has been recognized by the speech recognition service.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative)
 */
interface SpeechRecognitionAlternative {
    /**
     * The **\`confidence\`** read-only property of the confident the speech recognition system is that the recognition is correct.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence)
     */
    readonly confidence: number;
    /**
     * The **\`transcript\`** read-only property of the transcript of the recognized word(s).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript)
     */
    readonly transcript: string;
}

declare var SpeechRecognitionAlternative: {
    prototype: SpeechRecognitionAlternative;
    new(): SpeechRecognitionAlternative;
};

/**
 * The **\`SpeechRecognitionResult\`** interface of the Web Speech API represents a single recognition match, which may contain multiple SpeechRecognitionAlternative objects.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult)
 */
interface SpeechRecognitionResult {
    /**
     * The **\`isFinal\`** read-only property of the whether this result is final (\`true\`) or not (\`false\`) — if so, then this is the final time this result will be returned; if not, then this result is an interim result, and may be updated later on.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal)
     */
    readonly isFinal: boolean;
    /**
     * The **\`length\`** read-only property of the — the number of SpeechRecognitionAlternative objects contained in the result (also referred to as 'n-best alternatives'.) The number of alternatives contained in the result depends on what the recognition was first initiated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length)
     */
    readonly length: number;
    /**
     * The **\`item\`** getter of the array syntax.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item)
     */
    item(index: number): SpeechRecognitionAlternative;
    [index: number]: SpeechRecognitionAlternative;
}

declare var SpeechRecognitionResult: {
    prototype: SpeechRecognitionResult;
    new(): SpeechRecognitionResult;
};

/**
 * The **\`SpeechRecognitionResultList\`** interface of the Web Speech API represents a list of SpeechRecognitionResult objects, or a single one if results are being captured in SpeechRecognition.continuous mode.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList)
 */
interface SpeechRecognitionResultList {
    /**
     * The **\`length\`** read-only property of the 'array' — the number of SpeechRecognitionResult objects in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length)
     */
    readonly length: number;
    /**
     * The **\`item\`** getter of the syntax.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item)
     */
    item(index: number): SpeechRecognitionResult;
    [index: number]: SpeechRecognitionResult;
}

declare var SpeechRecognitionResultList: {
    prototype: SpeechRecognitionResultList;
    new(): SpeechRecognitionResultList;
};

interface SpeechSynthesisEventMap {
    "voiceschanged": Event;
}

/**
 * The **\`SpeechSynthesis\`** interface of the Web Speech API is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis)
 */
interface SpeechSynthesis extends EventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/voiceschanged_event) */
    onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
    /**
     * The **\`paused\`** read-only property of the \`true\` if the \`SpeechSynthesis\` object is in a paused state, or \`false\` if not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused)
     */
    readonly paused: boolean;
    /**
     * The **\`pending\`** read-only property of the \`true\` if the utterance queue contains as-yet-unspoken utterances.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending)
     */
    readonly pending: boolean;
    /**
     * The **\`speaking\`** read-only property of the \`true\` if an utterance is currently in the process of being spoken — even if \`SpeechSynthesis\` is in a A boolean value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking)
     */
    readonly speaking: boolean;
    /**
     * The **\`cancel()\`** method of the SpeechSynthesis interface removes all utterances from the utterance queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel)
     */
    cancel(): void;
    /**
     * The **\`getVoices()\`** method of the current device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices)
     */
    getVoices(): SpeechSynthesisVoice[];
    /**
     * The **\`pause()\`** method of the SpeechSynthesis interface puts the \`SpeechSynthesis\` object into a paused state.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause)
     */
    pause(): void;
    /**
     * The **\`resume()\`** method of the SpeechSynthesis interface puts the \`SpeechSynthesis\` object into a non-paused state: resumes it if it was already paused.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume)
     */
    resume(): void;
    /**
     * The **\`speak()\`** method of the SpeechSynthesis interface adds an SpeechSynthesisUtterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speak)
     */
    speak(utterance: SpeechSynthesisUtterance): void;
    addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SpeechSynthesis: {
    prototype: SpeechSynthesis;
    new(): SpeechSynthesis;
};

/**
 * The **\`SpeechSynthesisErrorEvent\`** interface of the Web Speech API contains information about any errors that occur while processing SpeechSynthesisUtterance objects in the speech service.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent)
 */
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
    /**
     * The **\`error\`** property of the A string containing the error reason.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error)
     */
    readonly error: SpeechSynthesisErrorCode;
}

declare var SpeechSynthesisErrorEvent: {
    prototype: SpeechSynthesisErrorEvent;
    new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
};

/**
 * The **\`SpeechSynthesisEvent\`** interface of the Web Speech API contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent)
 */
interface SpeechSynthesisEvent extends Event {
    /**
     * The **\`charIndex\`** read-only property of the SpeechSynthesisUtterance interface returns the index position of the character in SpeechSynthesisUtterance.text that was being spoken when the event was triggered.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex)
     */
    readonly charIndex: number;
    /**
     * The read-only **\`charLength\`** property of the SpeechSynthesisEvent interface returns the number of characters left to be spoken after the character at the SpeechSynthesisEvent.charIndex position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength)
     */
    readonly charLength: number;
    /**
     * The **\`elapsedTime\`** read-only property of the SpeechSynthesisEvent returns the elapsed time in seconds, after the SpeechSynthesisUtterance.text started being spoken, at which the event was triggered.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime)
     */
    readonly elapsedTime: number;
    /**
     * The **\`name\`** read-only property of the SpeechSynthesisUtterance interface returns the name associated with certain types of events occurring as the SpeechSynthesisUtterance.text is being spoken: the name of the SSML marker reached in the case of a SpeechSynthesisUtterance.mark_event event, or the type of boundary reached in the case of a SpeechSynthesisUtterance.boundary_event event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name)
     */
    readonly name: string;
    /**
     * The **\`utterance\`** read-only property of the SpeechSynthesisUtterance interface returns the SpeechSynthesisUtterance instance that the event was triggered on.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/utterance)
     */
    readonly utterance: SpeechSynthesisUtterance;
}

declare var SpeechSynthesisEvent: {
    prototype: SpeechSynthesisEvent;
    new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
};

interface SpeechSynthesisUtteranceEventMap {
    "boundary": SpeechSynthesisEvent;
    "end": SpeechSynthesisEvent;
    "error": SpeechSynthesisErrorEvent;
    "mark": SpeechSynthesisEvent;
    "pause": SpeechSynthesisEvent;
    "resume": SpeechSynthesisEvent;
    "start": SpeechSynthesisEvent;
}

/**
 * The **\`SpeechSynthesisUtterance\`** interface of the Web Speech API represents a speech request.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance)
 */
interface SpeechSynthesisUtterance extends EventTarget {
    /**
     * The **\`lang\`** property of the SpeechSynthesisUtterance interface gets and sets the language of the utterance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/lang)
     */
    lang: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/boundary_event) */
    onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/end_event) */
    onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/error_event) */
    onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/mark_event) */
    onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pause_event) */
    onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/resume_event) */
    onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/start_event) */
    onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
    /**
     * The **\`pitch\`** property of the SpeechSynthesisUtterance interface gets and sets the pitch at which the utterance will be spoken at.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch)
     */
    pitch: number;
    /**
     * The **\`rate\`** property of the SpeechSynthesisUtterance interface gets and sets the speed at which the utterance will be spoken at.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate)
     */
    rate: number;
    /**
     * The **\`text\`** property of the The text may be provided as plain text, or a well-formed SSML document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text)
     */
    text: string;
    /**
     * The **\`voice\`** property of the SpeechSynthesisUtterance interface gets and sets the voice that will be used to speak the utterance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice)
     */
    voice: SpeechSynthesisVoice | null;
    /**
     * The **\`volume\`** property of the SpeechSynthesisUtterance interface gets and sets the volume that the utterance will be spoken at.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/volume)
     */
    volume: number;
    addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SpeechSynthesisUtterance: {
    prototype: SpeechSynthesisUtterance;
    new(text?: string): SpeechSynthesisUtterance;
};

/**
 * The **\`SpeechSynthesisVoice\`** interface of the Web Speech API represents a voice that the system supports.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice)
 */
interface SpeechSynthesisVoice {
    /**
     * The **\`default\`** read-only property of the indicating whether the voice is the default voice for the current app (\`true\`), or not (\`false\`.) A boolean value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default)
     */
    readonly default: boolean;
    /**
     * The **\`lang\`** read-only property of the SpeechSynthesisVoice interface returns a BCP 47 language tag indicating the language of the voice.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang)
     */
    readonly lang: string;
    /**
     * The **\`localService\`** read-only property of the indicating whether the voice is supplied by a local speech synthesizer service (\`true\`), or a remote speech synthesizer service (\`false\`.) This property is provided to allow differentiation in the case that some voice options are provided by a remote service; it is possible that remote voices might have extra latency, bandwidth or cost associated with them, so such distinction may be useful.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService)
     */
    readonly localService: boolean;
    /**
     * The **\`name\`** read-only property of the represents the voice.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name)
     */
    readonly name: string;
    /**
     * The **\`voiceURI\`** read-only property of the the speech synthesis service for this voice.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI)
     */
    readonly voiceURI: string;
}

declare var SpeechSynthesisVoice: {
    prototype: SpeechSynthesisVoice;
    new(): SpeechSynthesisVoice;
};

/**
 * The DOM **\`StaticRange\`** interface extends AbstractRange to provide a method to specify a range of content in the DOM whose contents don't update to reflect changes which occur within the DOM tree.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StaticRange)
 */
interface StaticRange extends AbstractRange {
}

declare var StaticRange: {
    prototype: StaticRange;
    new(init: StaticRangeInit): StaticRange;
};

/**
 * The \`StereoPannerNode\` interface of the Web Audio API represents a simple stereo panner node that can be used to pan an audio stream left or right.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode)
 */
interface StereoPannerNode extends AudioNode {
    /**
     * The \`pan\` property of the StereoPannerNode interface is an a-rate AudioParam representing the amount of panning to apply.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode/pan)
     */
    readonly pan: AudioParam;
}

declare var StereoPannerNode: {
    prototype: StereoPannerNode;
    new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
};

/**
 * The **\`Storage\`** interface of the Web Storage API provides access to a particular domain's session or local storage.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)
 */
interface Storage {
    /**
     * The **\`length\`** read-only property of the \`Storage\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)
     */
    readonly length: number;
    /**
     * The **\`clear()\`** method of the Storage interface clears all keys stored in a given \`Storage\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)
     */
    clear(): void;
    /**
     * The **\`getItem()\`** method of the Storage interface, when passed a key name, will return that key's value, or \`null\` if the key does not exist, in the given \`Storage\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
     */
    getItem(key: string): string | null;
    /**
     * The **\`key()\`** method of the Storage interface, when passed a number n, returns the name of the nth key in a given \`Storage\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)
     */
    key(index: number): string | null;
    /**
     * The **\`removeItem()\`** method of the Storage interface, when passed a key name, will remove that key from the given \`Storage\` object if it exists.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)
     */
    removeItem(key: string): void;
    /**
     * The **\`setItem()\`** method of the Storage interface, when passed a key name and value, will add that key to the given \`Storage\` object, or update that key's value if it already exists.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)
     */
    setItem(key: string, value: string): void;
    [name: string]: any;
}

declare var Storage: {
    prototype: Storage;
    new(): Storage;
};

/**
 * The **\`StorageEvent\`** interface is implemented by the Window/storage_event event, which is sent to a window when a storage area the window has access to is changed within the context of another document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent)
 */
interface StorageEvent extends Event {
    /**
     * The **\`key\`** property of the StorageEvent interface returns the key for the storage item that was changed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key)
     */
    readonly key: string | null;
    /**
     * The **\`newValue\`** property of the StorageEvent interface returns the new value of the storage item whose value was changed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue)
     */
    readonly newValue: string | null;
    /**
     * The **\`oldValue\`** property of the StorageEvent interface returns the original value of the storage item whose value changed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue)
     */
    readonly oldValue: string | null;
    /**
     * The **\`storageArea\`** property of the StorageEvent interface returns the storage object that was affected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/storageArea)
     */
    readonly storageArea: Storage | null;
    /**
     * The **\`url\`** property of the StorageEvent interface returns the URL of the document whose storage changed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url)
     */
    readonly url: string;
    /**
     * The **\`StorageEvent.initStorageEvent()\`** method is used to initialize the value of a StorageEvent.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/initStorageEvent)
     */
    initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
}

declare var StorageEvent: {
    prototype: StorageEvent;
    new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
};

/**
 * The **\`StorageManager\`** interface of the Storage API provides an interface for managing persistence permissions and estimating available storage.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
 */
interface StorageManager {
    /**
     * The **\`estimate()\`** method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (\`usage\`), and how much space is available (\`quota\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate)
     */
    estimate(): Promise<StorageEstimate>;
    /**
     * The **\`getDirectory()\`** method of the StorageManager interface is used to obtain a reference to a FileSystemDirectoryHandle object allowing access to a directory and its contents, stored in the origin private file system (OPFS).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory)
     */
    getDirectory(): Promise<FileSystemDirectoryHandle>;
    /**
     * The **\`persist()\`** method of the StorageManager interface requests permission to use persistent storage, and returns a Promise that resolves to \`true\` if permission is granted and bucket mode is persistent, and \`false\` otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist)
     */
    persist(): Promise<boolean>;
    /**
     * The **\`persisted()\`** method of the StorageManager interface returns a Promise that resolves to \`true\` if your site's storage bucket is persistent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted)
     */
    persisted(): Promise<boolean>;
}

declare var StorageManager: {
    prototype: StorageManager;
    new(): StorageManager;
};

/** @deprecated */
interface StyleMedia {
    type: string;
    matchMedium(mediaquery: string): boolean;
}

/**
 * The **\`StylePropertyMap\`** interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap)
 */
interface StylePropertyMap extends StylePropertyMapReadOnly {
    /**
     * The **\`append()\`** method of the \`StylePropertyMap\` with the given property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append)
     */
    append(property: string, ...values: (CSSStyleValue | string)[]): void;
    /**
     * The **\`clear()\`** method of the StylePropertyMap interface removes all declarations in the \`StylePropertyMap\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear)
     */
    clear(): void;
    /**
     * The **\`delete()\`** method of the property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete)
     */
    delete(property: string): void;
    /**
     * The **\`set()\`** method of the StylePropertyMap interface changes the CSS declaration with the given property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set)
     */
    set(property: string, ...values: (CSSStyleValue | string)[]): void;
}

declare var StylePropertyMap: {
    prototype: StylePropertyMap;
    new(): StylePropertyMap;
};

/**
 * The **\`StylePropertyMapReadOnly\`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly)
 */
interface StylePropertyMapReadOnly {
    /**
     * The **\`size\`** read-only property of the containing the size of the \`StylePropertyMapReadOnly\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size)
     */
    readonly size: number;
    /**
     * The **\`get()\`** method of the object for the first value of the specified property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get)
     */
    get(property: string): undefined | CSSStyleValue;
    /**
     * The **\`getAll()\`** method of the \`\`\`js-nolint getAll(property) \`\`\` - \`property\` - : The name of the property to retrieve all values of.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll)
     */
    getAll(property: string): CSSStyleValue[];
    /**
     * The **\`has()\`** method of the property is in the \`StylePropertyMapReadOnly\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has)
     */
    has(property: string): boolean;
    forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
}

declare var StylePropertyMapReadOnly: {
    prototype: StylePropertyMapReadOnly;
    new(): StylePropertyMapReadOnly;
};

/**
 * An object implementing the \`StyleSheet\` interface represents a single style sheet.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet)
 */
interface StyleSheet {
    /**
     * The **\`disabled\`** property of the applying to the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled)
     */
    disabled: boolean;
    /**
     * The **\`href\`** property of the StyleSheet interface returns the location of the style sheet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href)
     */
    readonly href: string | null;
    /**
     * The **\`media\`** property of the StyleSheet interface specifies the intended destination media for style information.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media)
     */
    get media(): MediaList;
    set media(mediaText: string);
    /**
     * The **\`ownerNode\`** property of the with the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode)
     */
    readonly ownerNode: Element | ProcessingInstruction | null;
    /**
     * The **\`parentStyleSheet\`** property of the the given style sheet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet)
     */
    readonly parentStyleSheet: CSSStyleSheet | null;
    /**
     * The **\`title\`** property of the StyleSheet interface returns the advisory title of the current style sheet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title)
     */
    readonly title: string | null;
    /**
     * The **\`type\`** property of the StyleSheet interface specifies the style sheet language for the given style sheet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type)
     */
    readonly type: string;
}

declare var StyleSheet: {
    prototype: StyleSheet;
    new(): StyleSheet;
};

/**
 * The \`StyleSheetList\` interface represents a list of CSSStyleSheet objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList)
 */
interface StyleSheetList {
    /**
     * The **\`length\`** read-only property of the StyleSheetList interface returns the number of CSSStyleSheet objects in the collection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length)
     */
    readonly length: number;
    /**
     * The **\`item()\`** method of the StyleSheetList interface returns a single CSSStyleSheet object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item)
     */
    item(index: number): CSSStyleSheet | null;
    [index: number]: CSSStyleSheet;
}

declare var StyleSheetList: {
    prototype: StyleSheetList;
    new(): StyleSheetList;
};

/**
 * The **\`SubmitEvent\`** interface defines the object used to represent an HTML form's HTMLFormElement.submit_event event.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent)
 */
interface SubmitEvent extends Event {
    /**
     * The read-only **\`submitter\`** property found on the SubmitEvent interface specifies the submit button or other element that was invoked to cause the form to be submitted.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent/submitter)
     */
    readonly submitter: HTMLElement | null;
}

declare var SubmitEvent: {
    prototype: SubmitEvent;
    new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
};

/**
 * The **\`SubtleCrypto\`** interface of the Web Crypto API provides a number of low-level cryptographic functions.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
 */
interface SubtleCrypto {
    /**
     * The **\`decrypt()\`** method of the SubtleCrypto interface decrypts some encrypted data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt)
     */
    decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
    /**
     * The **\`deriveBits()\`** method of the key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits)
     */
    deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise<ArrayBuffer>;
    /**
     * The **\`deriveKey()\`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
     */
    deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
    /**
     * The **\`digest()\`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest)
     */
    digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
    /**
     * The **\`encrypt()\`** method of the SubtleCrypto interface encrypts data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt)
     */
    encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
    /**
     * The **\`exportKey()\`** method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey)
     */
    exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
    exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
    exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
    /**
     * The **\`generateKey()\`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
     */
    generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
    generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
    /**
     * The **\`importKey()\`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
     */
    importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
    importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
    /**
     * The **\`sign()\`** method of the SubtleCrypto interface generates a digital signature.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign)
     */
    sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
    /**
     * The **\`unwrapKey()\`** method of the SubtleCrypto interface 'unwraps' a key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
     */
    unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
    /**
     * The **\`verify()\`** method of the SubtleCrypto interface verifies a digital signature.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify)
     */
    verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
    /**
     * The **\`wrapKey()\`** method of the SubtleCrypto interface 'wraps' a key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey)
     */
    wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}

declare var SubtleCrypto: {
    prototype: SubtleCrypto;
    new(): SubtleCrypto;
};

/**
 * The **\`Text\`** interface represents a text Node in a DOM tree.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text)
 */
interface Text extends CharacterData, Slottable {
    /**
     * The read-only **\`wholeText\`** property of the Text interface returns the full text of all Text nodes logically adjacent to the node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText)
     */
    readonly wholeText: string;
    /**
     * The **\`splitText()\`** method of the Text interface breaks the Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText)
     */
    splitText(offset: number): Text;
}

declare var Text: {
    prototype: Text;
    new(data?: string): Text;
};

/**
 * The **\`TextDecoder\`** interface represents a decoder for a specific text encoding, such as \`UTF-8\`, \`ISO-8859-2\`, \`KOI8-R\`, \`GBK\`, etc.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
 */
interface TextDecoder extends TextDecoderCommon {
    /**
     * The **\`TextDecoder.decode()\`** method returns a string containing text decoded from the buffer passed as a parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
     */
    decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
}

declare var TextDecoder: {
    prototype: TextDecoder;
    new(label?: string, options?: TextDecoderOptions): TextDecoder;
};

interface TextDecoderCommon {
    /**
     * Returns encoding's name, lowercased.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
     */
    readonly encoding: string;
    /**
     * Returns true if error mode is "fatal", otherwise false.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
     */
    readonly fatal: boolean;
    /**
     * Returns the value of ignore BOM.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
     */
    readonly ignoreBOM: boolean;
}

/**
 * The **\`TextDecoderStream\`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
 */
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
    readonly readable: ReadableStream<string>;
    readonly writable: WritableStream<BufferSource>;
}

declare var TextDecoderStream: {
    prototype: TextDecoderStream;
    new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};

/**
 * The **\`TextEncoder\`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
 */
interface TextEncoder extends TextEncoderCommon {
    /**
     * The **\`TextEncoder.encode()\`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
     */
    encode(input?: string): Uint8Array<ArrayBuffer>;
    /**
     * The **\`TextEncoder.encodeInto()\`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
     */
    encodeInto(source: string, destination: Uint8Array<ArrayBufferLike>): TextEncoderEncodeIntoResult;
}

declare var TextEncoder: {
    prototype: TextEncoder;
    new(): TextEncoder;
};

interface TextEncoderCommon {
    /**
     * Returns "utf-8".
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
     */
    readonly encoding: string;
}

/**
 * The **\`TextEncoderStream\`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
 */
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
    readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
    readonly writable: WritableStream<string>;
}

declare var TextEncoderStream: {
    prototype: TextEncoderStream;
    new(): TextEncoderStream;
};

/**
 * The **\`TextEvent\`** interface is a legacy UI event interface for reporting changes to text UI elements.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent)
 */
interface TextEvent extends UIEvent {
    /**
     * The **\`data\`** read-only property of the TextEvent interface returns the last character added to the input element.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/data)
     */
    readonly data: string;
    /**
     * The **\`initTextEventEvent()\`** method of the TextEvent interface initializes the value of a \`TextEvent\` after it has been created.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEvent/initTextEvent)
     */
    initTextEvent(type: string, bubbles?: boolean, cancelable?: boolean, view?: Window | null, data?: string): void;
}

/** @deprecated */
declare var TextEvent: {
    prototype: TextEvent;
    new(): TextEvent;
};

/**
 * The **\`TextMetrics\`** interface represents the dimensions of a piece of text in the canvas; a \`TextMetrics\` instance can be retrieved using the CanvasRenderingContext2D.measureText() method.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
 */
interface TextMetrics {
    /**
     * The read-only **\`actualBoundingBoxAscent\`** property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle used to render the text, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
     */
    readonly actualBoundingBoxAscent: number;
    /**
     * The read-only \`actualBoundingBoxDescent\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle used to render the text, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
     */
    readonly actualBoundingBoxDescent: number;
    /**
     * The read-only \`actualBoundingBoxLeft\` property of the TextMetrics interface is a \`double\` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the given text, in CSS pixels; positive numbers indicating a distance going left from the given alignment point.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
     */
    readonly actualBoundingBoxLeft: number;
    /**
     * The read-only \`actualBoundingBoxRight\` property of the TextMetrics interface is a \`double\` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the given text, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
     */
    readonly actualBoundingBoxRight: number;
    /**
     * The read-only \`alphabeticBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the alphabetic baseline of the line box, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
     */
    readonly alphabeticBaseline: number;
    /**
     * The read-only \`emHeightAscent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the top of the _em_ square in the line box, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
     */
    readonly emHeightAscent: number;
    /**
     * The read-only \`emHeightDescent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the bottom of the _em_ square in the line box, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
     */
    readonly emHeightDescent: number;
    /**
     * The read-only \`fontBoundingBoxAscent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute, to the top of the highest bounding rectangle of all the fonts used to render the text, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
     */
    readonly fontBoundingBoxAscent: number;
    /**
     * The read-only \`fontBoundingBoxDescent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle of all the fonts used to render the text, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
     */
    readonly fontBoundingBoxDescent: number;
    /**
     * The read-only \`hangingBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the hanging baseline of the line box, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
     */
    readonly hangingBaseline: number;
    /**
     * The read-only \`ideographicBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the ideographic baseline of the line box, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
     */
    readonly ideographicBaseline: number;
    /**
     * The read-only **\`width\`** property of the TextMetrics interface contains the text's advance width (the width of that inline box) in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
     */
    readonly width: number;
}

declare var TextMetrics: {
    prototype: TextMetrics;
    new(): TextMetrics;
};

interface TextTrackEventMap {
    "cuechange": Event;
}

/**
 * The **\`TextTrack\`** interface of the WebVTT API represents a text track associated with a media element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack)
 */
interface TextTrack extends EventTarget {
    /**
     * The **\`activeCues\`** read-only property of the TextTrack interface returns a TextTrackCueList object listing the currently active cues.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues)
     */
    readonly activeCues: TextTrackCueList | null;
    /**
     * The **\`cues\`** read-only property of the TextTrack interface returns a TextTrackCueList object containing all of the track's cues.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues)
     */
    readonly cues: TextTrackCueList | null;
    /**
     * The **\`id\`** read-only property of the TextTrack interface returns the ID of the track if it has one.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id)
     */
    readonly id: string;
    /**
     * The **\`inBandMetadataTrackDispatchType\`** read-only property of the TextTrack interface returns the text track's in-band metadata dispatch type of the text track represented by the TextTrack object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)
     */
    readonly inBandMetadataTrackDispatchType: string;
    /**
     * The **\`kind\`** read-only property of the TextTrack interface returns the kind of text track this object represents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind)
     */
    readonly kind: TextTrackKind;
    /**
     * The **\`label\`** read-only property of the TextTrack interface returns a human-readable label for the text track, if it is available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label)
     */
    readonly label: string;
    /**
     * The **\`language\`** read-only property of the TextTrack interface returns the language of the text track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language)
     */
    readonly language: string;
    /**
     * The TextTrack interface's **\`mode\`** property is a string specifying and controlling the text track's mode: \`disabled\`, \`hidden\`, or \`showing\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/mode)
     */
    mode: TextTrackMode;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cuechange_event) */
    oncuechange: ((this: TextTrack, ev: Event) => any) | null;
    /**
     * The **\`addCue()\`** method of the TextTrack interface adds a new cue to the list of cues.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue)
     */
    addCue(cue: TextTrackCue): void;
    /**
     * The **\`removeCue()\`** method of the TextTrack interface removes a cue from the list of cues.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/removeCue)
     */
    removeCue(cue: TextTrackCue): void;
    addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var TextTrack: {
    prototype: TextTrack;
    new(): TextTrack;
};

interface TextTrackCueEventMap {
    "enter": Event;
    "exit": Event;
}

/**
 * The **\`TextTrackCue\`** interface of the WebVTT API is the abstract base class for the various derived cue types, such as VTTCue; you will work with these derived types rather than the base class.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
 */
interface TextTrackCue extends EventTarget {
    /**
     * The **\`endTime\`** property of the TextTrackCue interface returns and sets the end time of the cue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime)
     */
    endTime: number;
    /**
     * The **\`id\`** property of the TextTrackCue interface returns and sets the identifier for this cue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/id)
     */
    id: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/enter_event) */
    onenter: ((this: TextTrackCue, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/exit_event) */
    onexit: ((this: TextTrackCue, ev: Event) => any) | null;
    /**
     * The **\`pauseOnExit\`** property of the TextTrackCue interface returns or sets the flag indicating whether playback of the media should pause when the end of the range to which this cue applies is reached.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit)
     */
    pauseOnExit: boolean;
    /**
     * The **\`startTime\`** property of the TextTrackCue interface returns and sets the start time of the cue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime)
     */
    startTime: number;
    /**
     * The **\`track\`** read-only property of the TextTrackCue interface returns the TextTrack object that this cue belongs to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/track)
     */
    readonly track: TextTrack | null;
    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var TextTrackCue: {
    prototype: TextTrackCue;
    new(): TextTrackCue;
};

/**
 * The **\`TextTrackCueList\`** interface of the WebVTT API is an array-like object that represents a dynamically updating list of TextTrackCue objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList)
 */
interface TextTrackCueList {
    /**
     * The **\`length\`** read-only property of the TextTrackCueList interface returns the number of cues in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/length)
     */
    readonly length: number;
    /**
     * The **\`getCueById()\`** method of the TextTrackCueList interface returns the first VTTCue in the list represented by the \`TextTrackCueList\` object whose identifier matches the value of \`id\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/getCueById)
     */
    getCueById(id: string): TextTrackCue | null;
    [index: number]: TextTrackCue;
}

declare var TextTrackCueList: {
    prototype: TextTrackCueList;
    new(): TextTrackCueList;
};

interface TextTrackListEventMap {
    "addtrack": TrackEvent;
    "change": Event;
    "removetrack": TrackEvent;
}

/**
 * The **\`TextTrackList\`** interface is used to represent a list of the text tracks defined for the associated video or audio element, with each track represented by a separate textTrack object in the list.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList)
 */
interface TextTrackList extends EventTarget {
    /**
     * The read-only **TextTrackList** property **\`length\`** returns the number of entries in the \`TextTrackList\`, each of which is a TextTrack representing one track in the media element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/length)
     */
    readonly length: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/addtrack_event) */
    onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */
    onchange: ((this: TextTrackList, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */
    onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
    /**
     * The **TextTrackList** method **\`getTrackById()\`** returns the first \`id\` matches the specified string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById)
     */
    getTrackById(id: string): TextTrack | null;
    addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
    [index: number]: TextTrack;
}

declare var TextTrackList: {
    prototype: TextTrackList;
    new(): TextTrackList;
};

/**
 * When loading a media resource for use by an audio or video element, the **\`TimeRanges\`** interface is used for representing the time ranges of the media resource that have been buffered, the time ranges that have been played, and the time ranges that are seekable.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges)
 */
interface TimeRanges {
    /**
     * The **\`TimeRanges.length\`** read-only property returns the number of ranges in the object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/length)
     */
    readonly length: number;
    /**
     * The **\`end()\`** method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range ends.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end)
     */
    end(index: number): number;
    /**
     * The **\`start()\`** method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range begins.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/start)
     */
    start(index: number): number;
}

declare var TimeRanges: {
    prototype: TimeRanges;
    new(): TimeRanges;
};

/**
 * The **\`ToggleEvent\`** interface represents an event notifying the user an Element's state has changed.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent)
 */
interface ToggleEvent extends Event {
    /**
     * The **\`newState\`** read-only property of the ToggleEvent interface is a string representing the state the element is transitioning to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState)
     */
    readonly newState: string;
    /**
     * The **\`oldState\`** read-only property of the ToggleEvent interface is a string representing the state the element is transitioning from.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState)
     */
    readonly oldState: string;
}

declare var ToggleEvent: {
    prototype: ToggleEvent;
    new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent;
};

/**
 * The **\`Touch\`** interface represents a single contact point on a touch-sensitive device.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch)
 */
interface Touch {
    /**
     * The \`Touch.clientX\` read-only property returns the X coordinate of the touch point relative to the viewport, not including any scroll offset.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX)
     */
    readonly clientX: number;
    /**
     * The **\`Touch.clientY\`** read-only property returns the Y coordinate of the touch point relative to the browser's viewport, not including any scroll offset.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY)
     */
    readonly clientY: number;
    /**
     * The **\`Touch.force\`** read-only property returns the amount of pressure the user is applying to the touch surface for a Touch point.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force)
     */
    readonly force: number;
    /**
     * The **\`Touch.identifier\`** returns a value uniquely identifying this point of contact with the touch surface.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier)
     */
    readonly identifier: number;
    /**
     * The **\`Touch.pageX\`** read-only property returns the X coordinate of the touch point relative to the viewport, including any scroll offset.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX)
     */
    readonly pageX: number;
    /**
     * The **\`Touch.pageY\`** read-only property returns the Y coordinate of the touch point relative to the viewport, including any scroll offset.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY)
     */
    readonly pageY: number;
    /**
     * The **\`radiusX\`** read-only property of the Touch interface returns the X radius of the ellipse that most closely circumscribes the area of contact with the touch surface.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX)
     */
    readonly radiusX: number;
    /**
     * The **\`radiusY\`** read-only property of the Touch interface returns the Y radius of the ellipse that most closely circumscribes the area of contact with the touch surface.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY)
     */
    readonly radiusY: number;
    /**
     * The **\`rotationAngle\`** read-only property of the Touch interface returns the rotation angle, in degrees, of the contact area ellipse defined by Touch.radiusX and Touch.radiusY.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle)
     */
    readonly rotationAngle: number;
    /**
     * Returns the X coordinate of the touch point relative to the screen, not including any scroll offset.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX)
     */
    readonly screenX: number;
    /**
     * Returns the Y coordinate of the touch point relative to the screen, not including any scroll offset.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY)
     */
    readonly screenY: number;
    /**
     * The read-only **\`target\`** property of the \`Touch\` interface returns the (EventTarget) on which the touch contact started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of that element or even been removed from the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target)
     */
    readonly target: EventTarget;
}

declare var Touch: {
    prototype: Touch;
    new(touchInitDict: TouchInit): Touch;
};

/**
 * The **\`TouchEvent\`** interface represents an UIEvent which is sent when the state of contacts with a touch-sensitive surface changes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent)
 */
interface TouchEvent extends UIEvent {
    /**
     * The read-only **\`altKey\`** property of the TouchEvent interface returns a boolean value indicating whether or not the <kbd>alt</kbd> (Alternate) key is enabled when the touch event is created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey)
     */
    readonly altKey: boolean;
    /**
     * The **\`changedTouches\`** read-only property is a TouchList whose touch points (Touch objects) varies depending on the event type, as follows: - For the Element/touchstart_event event, it is a list of the touch points that became active with the current event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches)
     */
    readonly changedTouches: TouchList;
    /**
     * The read-only **\`ctrlKey\`** property of the TouchEvent interface returns a boolean value indicating whether the <kbd>control</kbd> (Control) key is enabled when the touch event is created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey)
     */
    readonly ctrlKey: boolean;
    /**
     * The read-only **\`metaKey\`** property of the TouchEvent interface returns a boolean value indicating whether or not the <kbd>Meta</kbd> key is enabled when the touch event is created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey)
     */
    readonly metaKey: boolean;
    /**
     * The read-only **\`shiftKey\`** property of the \`TouchEvent\` interface returns a boolean value indicating whether or not the <kbd>shift</kbd> key is enabled when the touch event is created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey)
     */
    readonly shiftKey: boolean;
    /**
     * The **\`targetTouches\`** read-only property is a TouchList listing all the Touch objects for touch points that are still in contact with the touch surface **and** whose Element/touchstart_event event occurred inside the same target element as the current target element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches)
     */
    readonly targetTouches: TouchList;
    /**
     * **\`touches\`** is a read-only TouchList listing all the Touch objects for touch points that are currently in contact with the touch surface, regardless of whether or not they've changed or what their target element was at Element/touchstart_event time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/touches)
     */
    readonly touches: TouchList;
}

declare var TouchEvent: {
    prototype: TouchEvent;
    new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
};

/**
 * The **\`TouchList\`** interface represents a list of contact points on a touch surface.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList)
 */
interface TouchList {
    /**
     * The **\`length\`** read-only property indicates the number of items (touch points) in a given TouchList.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length)
     */
    readonly length: number;
    /**
     * The **\`item()\`** method returns the Touch object at the specified index in the TouchList.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/item)
     */
    item(index: number): Touch | null;
    [index: number]: Touch;
}

declare var TouchList: {
    prototype: TouchList;
    new(): TouchList;
};

/**
 * The **\`TrackEvent\`** interface of the HTML DOM API is used for events which represent changes to a set of available tracks on an HTML media element; these events are \`addtrack\` and \`removetrack\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent)
 */
interface TrackEvent extends Event {
    /**
     * The read-only **\`track\`** property of the TrackEvent interface specifies the media track object to which the event applies.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent/track)
     */
    readonly track: TextTrack | null;
}

declare var TrackEvent: {
    prototype: TrackEvent;
    new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
};

/**
 * The **\`TransformStream\`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)
 */
interface TransformStream<I = any, O = any> {
    /**
     * The **\`readable\`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this \`TransformStream\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
     */
    readonly readable: ReadableStream<O>;
    /**
     * The **\`writable\`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this \`TransformStream\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
     */
    readonly writable: WritableStream<I>;
}

declare var TransformStream: {
    prototype: TransformStream;
    new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};

/**
 * The **\`TransformStreamDefaultController\`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)
 */
interface TransformStreamDefaultController<O = any> {
    /**
     * The **\`desiredSize\`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize)
     */
    readonly desiredSize: number | null;
    /**
     * The **\`enqueue()\`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)
     */
    enqueue(chunk?: O): void;
    /**
     * The **\`error()\`** method of the TransformStreamDefaultController interface errors both sides of the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)
     */
    error(reason?: any): void;
    /**
     * The **\`terminate()\`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate)
     */
    terminate(): void;
}

declare var TransformStreamDefaultController: {
    prototype: TransformStreamDefaultController;
    new(): TransformStreamDefaultController;
};

/**
 * The **\`TransitionEvent\`** interface represents events providing information related to transitions.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent)
 */
interface TransitionEvent extends Event {
    /**
     * The **\`TransitionEvent.elapsedTime\`** read-only property is a \`float\` giving the amount of time the animation has been running, in seconds, when this event fired.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime)
     */
    readonly elapsedTime: number;
    /**
     * The **\`propertyName\`** read-only property of TransitionEvent objects is a string containing the name of the CSS property associated with the transition.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName)
     */
    readonly propertyName: string;
    /**
     * The **\`TransitionEvent.pseudoElement\`** read-only property is a string, starting with \`'::'\`, containing the name of the pseudo-element the animation runs on.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/pseudoElement)
     */
    readonly pseudoElement: string;
}

declare var TransitionEvent: {
    prototype: TransitionEvent;
    new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
};

/**
 * The **\`TreeWalker\`** object represents the nodes of a document subtree and a position within them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker)
 */
interface TreeWalker {
    /**
     * The **\`TreeWalker.currentNode\`** property represents the A Node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode)
     */
    currentNode: Node;
    /**
     * The **\`TreeWalker.filter\`** read-only property returns the \`NodeFilter\` associated with the TreeWalker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter)
     */
    readonly filter: NodeFilter | null;
    /**
     * The **\`TreeWalker.root\`** read-only property returns the root Node that the TreeWalker traverses.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root)
     */
    readonly root: Node;
    /**
     * The **\`TreeWalker.whatToShow\`** read-only property returns a bitmask that indicates the types of nodes to show.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow)
     */
    readonly whatToShow: number;
    /**
     * The **\`TreeWalker.firstChild()\`** method moves the current the found child.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild)
     */
    firstChild(): Node | null;
    /**
     * The **\`TreeWalker.lastChild()\`** method moves the current the found child.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild)
     */
    lastChild(): Node | null;
    /**
     * The **\`TreeWalker.nextNode()\`** method moves the current the found node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode)
     */
    nextNode(): Node | null;
    /**
     * The **\`TreeWalker.nextSibling()\`** method moves the current is no such node, it returns \`null\` and the current node is not changed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling)
     */
    nextSibling(): Node | null;
    /**
     * The **\`TreeWalker.parentNode()\`** method moves the current and returns the found node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode)
     */
    parentNode(): Node | null;
    /**
     * The **\`TreeWalker.previousNode()\`** method moves the current returns the found node.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode)
     */
    previousNode(): Node | null;
    /**
     * The **\`TreeWalker.previousSibling()\`** method moves the current there is no such node, it returns \`null\` and the current node is not changed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling)
     */
    previousSibling(): Node | null;
}

declare var TreeWalker: {
    prototype: TreeWalker;
    new(): TreeWalker;
};

/**
 * The **\`UIEvent\`** interface represents simple user interface events.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent)
 */
interface UIEvent extends Event {
    /**
     * The **\`UIEvent.detail\`** read-only property, when non-zero, provides the current (or next, depending on the event) click count.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail)
     */
    readonly detail: number;
    /**
     * The **\`UIEvent.view\`** read-only property returns the is the Window object the event happened in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view)
     */
    readonly view: Window | null;
    /**
     * The **\`UIEvent.which\`** read-only property of the UIEvent interface returns a number that indicates which button was pressed on the mouse, or the numeric \`keyCode\` or the character code (\`charCode\`) of the key pressed on the keyboard.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which)
     */
    readonly which: number;
    /**
     * The **\`UIEvent.initUIEvent()\`** method initializes a UI event once it's been created.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/initUIEvent)
     */
    initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
}

declare var UIEvent: {
    prototype: UIEvent;
    new(type: string, eventInitDict?: UIEventInit): UIEvent;
};

/**
 * The **\`URL\`** interface is used to parse, construct, normalize, and encode URL.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
 */
interface URL {
    /**
     * The **\`hash\`** property of the URL interface is a string containing a \`'#'\` followed by the fragment identifier of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)
     */
    hash: string;
    /**
     * The **\`host\`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a \`':'\`, followed by the URL.port of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
     */
    host: string;
    /**
     * The **\`hostname\`** property of the URL interface is a string containing either the domain name or IP address of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
     */
    hostname: string;
    /**
     * The **\`href\`** property of the URL interface is a string containing the whole URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)
     */
    href: string;
    toString(): string;
    /**
     * The **\`origin\`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin)
     */
    readonly origin: string;
    /**
     * The **\`password\`** property of the URL interface is a string containing the password component of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
     */
    password: string;
    /**
     * The **\`pathname\`** property of the URL interface represents a location in a hierarchical structure.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
     */
    pathname: string;
    /**
     * The **\`port\`** property of the URL interface is a string containing the port number of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
     */
    port: string;
    /**
     * The **\`protocol\`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final \`':'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)
     */
    protocol: string;
    /**
     * The **\`search\`** property of the URL interface is a search string, also called a _query string_, that is a string containing a \`'?'\` followed by the parameters of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)
     */
    search: string;
    /**
     * The **\`searchParams\`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
     */
    readonly searchParams: URLSearchParams;
    /**
     * The **\`username\`** property of the URL interface is a string containing the username component of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
     */
    username: string;
    /**
     * The **\`toJSON()\`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as \`\`\`js-nolint toJSON() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)
     */
    toJSON(): string;
}

declare var URL: {
    prototype: URL;
    new(url: string | URL, base?: string | URL): URL;
    /**
     * The **\`URL.canParse()\`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
     */
    canParse(url: string | URL, base?: string | URL): boolean;
    /**
     * The **\`createObjectURL()\`** static method of the URL interface creates a string containing a URL representing the object given in the parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)
     */
    createObjectURL(obj: Blob | MediaSource): string;
    /**
     * The **\`URL.parse()\`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
     */
    parse(url: string | URL, base?: string | URL): URL | null;
    /**
     * The **\`revokeObjectURL()\`** static method of the URL interface releases an existing object URL which was previously created by calling Call this method when you've finished using an object URL to let the browser know not to keep the reference to the file any longer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)
     */
    revokeObjectURL(url: string): void;
};

type webkitURL = URL;
declare var webkitURL: typeof URL;

/**
 * The **\`URLSearchParams\`** interface defines utility methods to work with the query string of a URL.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
 */
interface URLSearchParams {
    /**
     * The **\`size\`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)
     */
    readonly size: number;
    /**
     * The **\`append()\`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
     */
    append(name: string, value: string): void;
    /**
     * The **\`delete()\`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
     */
    delete(name: string, value?: string): void;
    /**
     * The **\`get()\`** method of the URLSearchParams interface returns the first value associated to the given search parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
     */
    get(name: string): string | null;
    /**
     * The **\`getAll()\`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
     */
    getAll(name: string): string[];
    /**
     * The **\`has()\`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
     */
    has(name: string, value?: string): boolean;
    /**
     * The **\`set()\`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
     */
    set(name: string, value: string): void;
    /**
     * The **\`URLSearchParams.sort()\`** method sorts all key/value pairs contained in this object in place and returns \`undefined\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)
     */
    sort(): void;
    toString(): string;
    forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}

declare var URLSearchParams: {
    prototype: URLSearchParams;
    new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
};

/**
 * The **\`UserActivation\`** interface provides information about whether a user is currently interacting with the page, or has completed an interaction since page load.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation)
 */
interface UserActivation {
    /**
     * The read-only **\`hasBeenActive\`** property of the UserActivation interface indicates whether the current window has sticky activation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive)
     */
    readonly hasBeenActive: boolean;
    /**
     * The read-only **\`isActive\`** property of the UserActivation interface indicates whether the current window has transient activation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/isActive)
     */
    readonly isActive: boolean;
}

declare var UserActivation: {
    prototype: UserActivation;
    new(): UserActivation;
};

/**
 * The \`VTTCue\` interface of the WebVTT API represents a cue that can be added to the text track associated with a particular video (or other media).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue)
 */
interface VTTCue extends TextTrackCue {
    /**
     * The **\`align\`** property of the VTTCue interface represents the alignment of all of the lines of text in the text box.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align)
     */
    align: AlignSetting;
    /**
     * The **\`line\`** property of the VTTCue interface represents the cue line of this WebVTT cue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line)
     */
    line: LineAndPositionSetting;
    /**
     * The **\`lineAlign\`** property of the VTTCue interface represents the alignment of this VTT cue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign)
     */
    lineAlign: LineAlignSetting;
    /**
     * The **\`position\`** property of the VTTCue interface represents the indentation of the cue within the line.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position)
     */
    position: LineAndPositionSetting;
    /**
     * The **\`positionAlign\`** property of the VTTCue interface is used to determine what VTTCue.position is anchored to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign)
     */
    positionAlign: PositionAlignSetting;
    /**
     * The **\`region\`** property of the VTTCue interface returns and sets the VTTRegion that this cue belongs to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region)
     */
    region: VTTRegion | null;
    /**
     * The **\`size\`** property of the VTTCue interface represents the size of the cue as a percentage of the video size.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size)
     */
    size: number;
    /**
     * The **\`snapToLines\`** property of the VTTCue interface is a Boolean indicating if the VTTCue.line property is an integer number of lines, or a percentage of the video size.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines)
     */
    snapToLines: boolean;
    /**
     * The **\`text\`** property of the VTTCue interface represents the text contents of the cue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text)
     */
    text: string;
    /**
     * The **\`vertical\`** property of the VTTCue interface is a string representing the cue's writing direction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical)
     */
    vertical: DirectionSetting;
    /**
     * The **\`getCueAsHTML()\`** method of the VTTCue interface returns a DocumentFragment containing the cue content.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/getCueAsHTML)
     */
    getCueAsHTML(): DocumentFragment;
    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var VTTCue: {
    prototype: VTTCue;
    new(startTime: number, endTime: number, text: string): VTTCue;
};

/**
 * The \`VTTRegion\` interface of the WebVTT API describes a portion of the video to render a VTTCue onto.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion)
 */
interface VTTRegion {
    id: string;
    lines: number;
    regionAnchorX: number;
    regionAnchorY: number;
    scroll: ScrollSetting;
    viewportAnchorX: number;
    viewportAnchorY: number;
    width: number;
}

declare var VTTRegion: {
    prototype: VTTRegion;
    new(): VTTRegion;
};

/**
 * The **\`ValidityState\`** interface represents the _validity states_ that an element can be in, with respect to constraint validation.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState)
 */
interface ValidityState {
    /**
     * The read-only **\`badInput\`** property of the ValidityState interface indicates if the user has provided input that the browser is unable to convert.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput)
     */
    readonly badInput: boolean;
    /**
     * The read-only **\`customError\`** property of the \`ValidityState\` interface returns \`true\` if an element doesn't meet the validation required in the custom validity set by the element's HTMLInputElement.setCustomValidity method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError)
     */
    readonly customError: boolean;
    /**
     * The read-only **\`patternMismatch\`** property of the \`ValidityState\` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's \`pattern\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch)
     */
    readonly patternMismatch: boolean;
    /**
     * The read-only **\`rangeOverflow\`** property of the \`ValidityState\` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's \`max\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow)
     */
    readonly rangeOverflow: boolean;
    /**
     * The read-only **\`rangeUnderflow\`** property of the \`ValidityState\` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's \`min\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow)
     */
    readonly rangeUnderflow: boolean;
    /**
     * The read-only **\`stepMismatch\`** property of the \`ValidityState\` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's \`step\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch)
     */
    readonly stepMismatch: boolean;
    /**
     * The read-only **\`tooLong\`** property of the \`ValidityState\` interface indicates if the value of an input or textarea, after having been edited by the user, exceeds the maximum code-unit length established by the element's \`maxlength\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong)
     */
    readonly tooLong: boolean;
    /**
     * The read-only **\`tooShort\`** property of the \`ValidityState\` interface indicates if the value of an input, button, select, output, fieldset or textarea, after having been edited by the user, is less than the minimum code-unit length established by the element's \`minlength\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort)
     */
    readonly tooShort: boolean;
    /**
     * The read-only **\`typeMismatch\`** property of the \`ValidityState\` interface indicates if the value of an input, after having been edited by the user, does not conform to the constraints set by the element's \`type\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch)
     */
    readonly typeMismatch: boolean;
    /**
     * The read-only **\`valid\`** property of the \`ValidityState\` interface indicates if the value of an input element meets all its validation constraints, and is therefore considered to be valid.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid)
     */
    readonly valid: boolean;
    /**
     * The read-only **\`valueMissing\`** property of the \`ValidityState\` interface indicates if a \`required\` control, such as an input, select, or textarea, has an empty value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing)
     */
    readonly valueMissing: boolean;
}

declare var ValidityState: {
    prototype: ValidityState;
    new(): ValidityState;
};

/**
 * The **\`VideoColorSpace\`** interface of the WebCodecs API represents the color space of a video.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace)
 */
interface VideoColorSpace {
    /**
     * The **\`fullRange\`** read-only property of the VideoColorSpace interface returns \`true\` if full-range color values are used.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange)
     */
    readonly fullRange: boolean | null;
    /**
     * The **\`matrix\`** read-only property of the VideoColorSpace interface returns the matrix coefficient of the video.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix)
     */
    readonly matrix: VideoMatrixCoefficients | null;
    /**
     * The **\`primaries\`** read-only property of the VideoColorSpace interface returns the color gamut of the video.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries)
     */
    readonly primaries: VideoColorPrimaries | null;
    /**
     * The **\`transfer\`** read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer)
     */
    readonly transfer: VideoTransferCharacteristics | null;
    /**
     * The **\`toJSON()\`** method of the VideoColorSpace interface is a _serializer_ that returns a JSON representation of the \`VideoColorSpace\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON)
     */
    toJSON(): VideoColorSpaceInit;
}

declare var VideoColorSpace: {
    prototype: VideoColorSpace;
    new(init?: VideoColorSpaceInit): VideoColorSpace;
};

interface VideoDecoderEventMap {
    "dequeue": Event;
}

/**
 * The **\`VideoDecoder\`** interface of the WebCodecs API decodes chunks of video.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
 */
interface VideoDecoder extends EventTarget {
    /**
     * The **\`decodeQueueSize\`** read-only property of the VideoDecoder interface returns the number of pending decode requests in the queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize)
     */
    readonly decodeQueueSize: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */
    ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
    /**
     * The **\`state\`** property of the VideoDecoder interface returns the current state of the underlying codec.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state)
     */
    readonly state: CodecState;
    /**
     * The **\`close()\`** method of the VideoDecoder interface ends all pending work and releases system resources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close)
     */
    close(): void;
    /**
     * The **\`configure()\`** method of the VideoDecoder interface enqueues a control message to configure the video decoder for decoding chunks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure)
     */
    configure(config: VideoDecoderConfig): void;
    /**
     * The **\`decode()\`** method of the VideoDecoder interface enqueues a control message to decode a given chunk of video.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode)
     */
    decode(chunk: EncodedVideoChunk): void;
    /**
     * The **\`flush()\`** method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush)
     */
    flush(): Promise<void>;
    /**
     * The **\`reset()\`** method of the VideoDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset)
     */
    reset(): void;
    addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var VideoDecoder: {
    prototype: VideoDecoder;
    new(init: VideoDecoderInit): VideoDecoder;
    /**
     * The **\`isConfigSupported()\`** static method of the VideoDecoder interface checks if the given config is supported (that is, if VideoDecoder objects can be successfully configured with the given config).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static)
     */
    isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};

interface VideoEncoderEventMap {
    "dequeue": Event;
}

/**
 * The **\`VideoEncoder\`** interface of the WebCodecs API encodes VideoFrame objects into EncodedVideoChunks.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
 */
interface VideoEncoder extends EventTarget {
    /**
     * The **\`encodeQueueSize\`** read-only property of the VideoEncoder interface returns the number of pending encode requests in the queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize)
     */
    readonly encodeQueueSize: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */
    ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the VideoEncoder interface returns the current state of the underlying codec.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state)
     */
    readonly state: CodecState;
    /**
     * The **\`close()\`** method of the VideoEncoder interface ends all pending work and releases system resources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close)
     */
    close(): void;
    /**
     * The **\`configure()\`** method of the VideoEncoder interface changes the VideoEncoder.state of the encoder to 'configured' and asynchronously prepares the encoder to accept VideoEncoders for encoding with the specified parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure)
     */
    configure(config: VideoEncoderConfig): void;
    /**
     * The **\`encode()\`** method of the VideoEncoder interface asynchronously encodes a VideoFrame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode)
     */
    encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
    /**
     * The **\`flush()\`** method of the VideoEncoder interface forces all pending encodes to complete.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush)
     */
    flush(): Promise<void>;
    /**
     * The **\`reset()\`** method of the VideoEncoder interface synchronously cancels all pending encodes and callbacks, frees all underlying resources and sets the VideoEncoder.state to 'unconfigured'.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset)
     */
    reset(): void;
    addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var VideoEncoder: {
    prototype: VideoEncoder;
    new(init: VideoEncoderInit): VideoEncoder;
    /**
     * The **\`isConfigSupported()\`** static method of the VideoEncoder interface checks if VideoEncoder can be successfully configured with the given config.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static)
     */
    isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};

/**
 * The **\`VideoFrame\`** interface of the Web Codecs API represents a frame of a video.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame)
 */
interface VideoFrame {
    /**
     * The **\`codedHeight\`** property of the VideoFrame interface returns the height of the VideoFrame in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight)
     */
    readonly codedHeight: number;
    /**
     * The **\`codedRect\`** property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching VideoFrame.codedWidth and VideoFrame.codedHeight.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect)
     */
    readonly codedRect: DOMRectReadOnly | null;
    /**
     * The **\`codedWidth\`** property of the VideoFrame interface returns the width of the \`VideoFrame\` in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth)
     */
    readonly codedWidth: number;
    /**
     * The **\`colorSpace\`** property of the VideoFrame interface returns a VideoColorSpace object representing the color space of the video.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace)
     */
    readonly colorSpace: VideoColorSpace;
    /**
     * The **\`displayHeight\`** property of the VideoFrame interface returns the height of the \`VideoFrame\` after applying aspect ratio adjustments.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight)
     */
    readonly displayHeight: number;
    /**
     * The **\`displayWidth\`** property of the VideoFrame interface returns the width of the \`VideoFrame\` after applying aspect ratio adjustments.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth)
     */
    readonly displayWidth: number;
    /**
     * The **\`duration\`** property of the VideoFrame interface returns an integer indicating the duration of the video in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration)
     */
    readonly duration: number | null;
    /**
     * The **\`format\`** property of the VideoFrame interface returns the pixel format of the \`VideoFrame\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format)
     */
    readonly format: VideoPixelFormat | null;
    /**
     * The **\`timestamp\`** property of the VideoFrame interface returns an integer indicating the timestamp of the video in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp)
     */
    readonly timestamp: number;
    /**
     * The **\`visibleRect\`** property of the VideoFrame interface returns a DOMRectReadOnly describing the visible rectangle of pixels for this \`VideoFrame\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect)
     */
    readonly visibleRect: DOMRectReadOnly | null;
    /**
     * The **\`allocationSize()\`** method of the VideoFrame interface returns the number of bytes required to hold the video as filtered by options passed into the method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize)
     */
    allocationSize(options?: VideoFrameCopyToOptions): number;
    /**
     * The **\`clone()\`** method of the VideoFrame interface creates a new \`VideoFrame\` object referencing the same media resource as the original.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone)
     */
    clone(): VideoFrame;
    /**
     * The **\`close()\`** method of the VideoFrame interface clears all states and releases the reference to the media resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close)
     */
    close(): void;
    /**
     * The **\`copyTo()\`** method of the VideoFrame interface copies the contents of the \`VideoFrame\` to an \`ArrayBuffer\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo)
     */
    copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}

declare var VideoFrame: {
    prototype: VideoFrame;
    new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
    new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
};

/**
 * A **\`VideoPlaybackQuality\`** object is returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality)
 */
interface VideoPlaybackQuality {
    /**
     * The VideoPlaybackQuality interface's read-only **\`corruptedVideoFrames\`** property the number of corrupted video frames that have been received since the video element was last loaded or reloaded.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)
     */
    readonly corruptedVideoFrames: number;
    /**
     * The read-only **\`creationTime\`** property on the the browsing context was created this quality sample was recorded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime)
     */
    readonly creationTime: DOMHighResTimeStamp;
    /**
     * The read-only **\`droppedVideoFrames\`** property of the VideoPlaybackQuality interface returns the number of video frames which have been dropped rather than being displayed since the last time the media was loaded into the HTMLVideoElement.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames)
     */
    readonly droppedVideoFrames: number;
    /**
     * The VideoPlaybackQuality interface's **\`totalVideoFrames\`** read-only property returns the total number of video frames that have been displayed or dropped since the media was loaded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames)
     */
    readonly totalVideoFrames: number;
}

declare var VideoPlaybackQuality: {
    prototype: VideoPlaybackQuality;
    new(): VideoPlaybackQuality;
};

/**
 * The **\`ViewTransition\`** interface of the View Transition API represents an active view transition, and provides functionality to react to the transition reaching different states (e.g., ready to run the animation, or animation finished) or skip the transition altogether.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition)
 */
interface ViewTransition {
    /**
     * The **\`finished\`** read-only property of the \`finished\` will only reject in the case of a same-document (SPA) transition, if the callback passed to Document.startViewTransition() throws or returns a promise that rejects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/finished)
     */
    readonly finished: Promise<void>;
    /**
     * The **\`ready\`** read-only property of the \`ready\` will reject if the transition cannot begin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/ready)
     */
    readonly ready: Promise<void>;
    types: ViewTransitionTypeSet;
    /**
     * The **\`updateCallbackDone\`** read-only property of the \`updateCallbackDone\` is useful when you don't care about the success/failure of a same-document (SPA) view transition animation, and just want to know if and when the DOM is updated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/updateCallbackDone)
     */
    readonly updateCallbackDone: Promise<void>;
    /**
     * The **\`skipTransition()\`** method of the \`\`\`js-nolint skipTransition() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition)
     */
    skipTransition(): void;
}

declare var ViewTransition: {
    prototype: ViewTransition;
    new(): ViewTransition;
};

interface ViewTransitionTypeSet {
    forEach(callbackfn: (value: string, key: string, parent: ViewTransitionTypeSet) => void, thisArg?: any): void;
}

declare var ViewTransitionTypeSet: {
    prototype: ViewTransitionTypeSet;
    new(): ViewTransitionTypeSet;
};

interface VisualViewportEventMap {
    "resize": Event;
    "scroll": Event;
}

/**
 * The **\`VisualViewport\`** interface of the Visual Viewport API represents the visual viewport for a given window.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport)
 */
interface VisualViewport extends EventTarget {
    /**
     * The **\`height\`** read-only property of the VisualViewport interface returns the height of the visual viewport, in CSS pixels, or \`0\` if current document is not fully active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height)
     */
    readonly height: number;
    /**
     * The **\`offsetLeft\`** read-only property of the VisualViewport interface returns the offset of the left edge of the visual viewport from the left edge of the layout viewport in CSS pixels, or \`0\` if current document is not fully active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft)
     */
    readonly offsetLeft: number;
    /**
     * The **\`offsetTop\`** read-only property of the VisualViewport interface returns the offset of the top edge of the visual viewport from the top edge of the layout viewport in CSS pixels, or \`0\` if current document is not fully active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetTop)
     */
    readonly offsetTop: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/resize_event) */
    onresize: ((this: VisualViewport, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */
    onscroll: ((this: VisualViewport, ev: Event) => any) | null;
    /**
     * The **\`pageLeft\`** read-only property of the VisualViewport interface returns the x coordinate of the left edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or \`0\` if current document is not fully active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft)
     */
    readonly pageLeft: number;
    /**
     * The **\`pageTop\`** read-only property of the VisualViewport interface returns the y coordinate of the top edge of the visual viewport relative to the initial containing block origin, in CSS pixels, or \`0\` if current document is not fully active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop)
     */
    readonly pageTop: number;
    /**
     * The **\`scale\`** read-only property of the VisualViewport interface returns the pinch-zoom scaling factor applied to the visual viewport, or \`0\` if current document is not fully active, or \`1\` if there is no output device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale)
     */
    readonly scale: number;
    /**
     * The **\`width\`** read-only property of the VisualViewport interface returns the width of the visual viewport, in CSS pixels, or \`0\` if current document is not fully active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/width)
     */
    readonly width: number;
    addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var VisualViewport: {
    prototype: VisualViewport;
    new(): VisualViewport;
};

/**
 * The **\`WEBGL_color_buffer_float\`** extension is part of the WebGL API and adds the ability to render to 32-bit floating-point color buffers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float)
 */
interface WEBGL_color_buffer_float {
    readonly RGBA32F_EXT: 0x8814;
    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
    readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}

/**
 * The **\`WEBGL_compressed_texture_astc\`** extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc)
 */
interface WEBGL_compressed_texture_astc {
    /**
     * The **\`WEBGL_compressed_texture_astc.getSupportedProfiles()\`** method returns an array of strings containing the names of the ASTC profiles supported by the implementation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles)
     */
    getSupportedProfiles(): string[];
    readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
    readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
    readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
    readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
    readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
    readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
    readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
    readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
    readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
    readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
    readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
    readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
    readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
    readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
}

/**
 * The **\`WEBGL_compressed_texture_etc\`** extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc)
 */
interface WEBGL_compressed_texture_etc {
    readonly COMPRESSED_R11_EAC: 0x9270;
    readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
    readonly COMPRESSED_RG11_EAC: 0x9272;
    readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
    readonly COMPRESSED_RGB8_ETC2: 0x9274;
    readonly COMPRESSED_SRGB8_ETC2: 0x9275;
    readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
    readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
    readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
    readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
}

/**
 * The **\`WEBGL_compressed_texture_etc1\`** extension is part of the WebGL API and exposes the ETC1 compressed texture format.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1)
 */
interface WEBGL_compressed_texture_etc1 {
    readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}

/**
 * The **\`WEBGL_compressed_texture_pvrtc\`** extension is part of the WebGL API and exposes four PVRTC compressed texture formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc)
 */
interface WEBGL_compressed_texture_pvrtc {
    readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;
    readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;
    readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;
    readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;
}

/**
 * The **\`WEBGL_compressed_texture_s3tc\`** extension is part of the WebGL API and exposes four S3TC compressed texture formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)
 */
interface WEBGL_compressed_texture_s3tc {
    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
}

/**
 * The **\`WEBGL_compressed_texture_s3tc_srgb\`** extension is part of the WebGL API and exposes four S3TC compressed texture formats for the sRGB colorspace.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb)
 */
interface WEBGL_compressed_texture_s3tc_srgb {
    readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
}

/**
 * The **\`WEBGL_debug_renderer_info\`** extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)
 */
interface WEBGL_debug_renderer_info {
    readonly UNMASKED_VENDOR_WEBGL: 0x9245;
    readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}

/**
 * The **\`WEBGL_debug_shaders\`** extension is part of the WebGL API and exposes a method to debug shaders from privileged contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders)
 */
interface WEBGL_debug_shaders {
    /**
     * The **\`WEBGL_debug_shaders.getTranslatedShaderSource()\`** method is part of the WebGL API and allows you to debug a translated shader.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource)
     */
    getTranslatedShaderSource(shader: WebGLShader): string;
}

/**
 * The **\`WEBGL_depth_texture\`** extension is part of the WebGL API and defines 2D depth and depth-stencil textures.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)
 */
interface WEBGL_depth_texture {
    readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}

/**
 * The **\`WEBGL_draw_buffers\`** extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers)
 */
interface WEBGL_draw_buffers {
    /**
     * The **\`WEBGL_draw_buffers.drawBuffersWEBGL()\`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
     */
    drawBuffersWEBGL(buffers: GLenum[]): void;
    readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
    readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
    readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
    readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
    readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
    readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
    readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
    readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
    readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
    readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
    readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
    readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
    readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
    readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
    readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
    readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
    readonly DRAW_BUFFER0_WEBGL: 0x8825;
    readonly DRAW_BUFFER1_WEBGL: 0x8826;
    readonly DRAW_BUFFER2_WEBGL: 0x8827;
    readonly DRAW_BUFFER3_WEBGL: 0x8828;
    readonly DRAW_BUFFER4_WEBGL: 0x8829;
    readonly DRAW_BUFFER5_WEBGL: 0x882A;
    readonly DRAW_BUFFER6_WEBGL: 0x882B;
    readonly DRAW_BUFFER7_WEBGL: 0x882C;
    readonly DRAW_BUFFER8_WEBGL: 0x882D;
    readonly DRAW_BUFFER9_WEBGL: 0x882E;
    readonly DRAW_BUFFER10_WEBGL: 0x882F;
    readonly DRAW_BUFFER11_WEBGL: 0x8830;
    readonly DRAW_BUFFER12_WEBGL: 0x8831;
    readonly DRAW_BUFFER13_WEBGL: 0x8832;
    readonly DRAW_BUFFER14_WEBGL: 0x8833;
    readonly DRAW_BUFFER15_WEBGL: 0x8834;
    readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
    readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
}

/**
 * The **WEBGL_lose_context** extension is part of the WebGL API and exposes functions to simulate losing and restoring a WebGLRenderingContext.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context)
 */
interface WEBGL_lose_context {
    /**
     * The **WEBGL_lose_context.loseContext()** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
     */
    loseContext(): void;
    /**
     * The **WEBGL_lose_context.restoreContext()** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
     */
    restoreContext(): void;
}

/**
 * The **\`WEBGL_multi_draw\`** extension is part of the WebGL API and allows to render more than one primitive with a single function call.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw)
 */
interface WEBGL_multi_draw {
    /**
     * The **\`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
     */
    multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawArraysWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
     */
    multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
     */
    multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawElementsWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
     */
    multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
}

/**
 * The **\`WakeLock\`** interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock)
 */
interface WakeLock {
    /**
     * The **\`request()\`** method of the WakeLock interface returns a Promise that fulfills with a WakeLockSentinel object if the system screen wake lock is granted.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock/request)
     */
    request(type?: WakeLockType): Promise<WakeLockSentinel>;
}

declare var WakeLock: {
    prototype: WakeLock;
    new(): WakeLock;
};

interface WakeLockSentinelEventMap {
    "release": Event;
}

/**
 * The **\`WakeLockSentinel\`** interface of the Screen Wake Lock API can be used to monitor the status of the platform screen wake lock, and manually release the lock when needed.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel)
 */
interface WakeLockSentinel extends EventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release_event) */
    onrelease: ((this: WakeLockSentinel, ev: Event) => any) | null;
    /**
     * The **\`released\`** read-only property of the WakeLockSentinel interface returns a boolean that indicates whether a WakeLockSentinel has been released.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released)
     */
    readonly released: boolean;
    /**
     * The **\`type\`** read-only property of the WakeLockSentinel interface returns a string representation of the currently acquired WakeLockSentinel type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type)
     */
    readonly type: WakeLockType;
    /**
     * The **\`release()\`** method of the WakeLockSentinel interface releases the WakeLockSentinel, returning a Promise that is resolved once the sentinel has been successfully released.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release)
     */
    release(): Promise<void>;
    addEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var WakeLockSentinel: {
    prototype: WakeLockSentinel;
    new(): WakeLockSentinel;
};

/**
 * The **\`WaveShaperNode\`** interface represents a non-linear distorter.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode)
 */
interface WaveShaperNode extends AudioNode {
    /**
     * The \`curve\` property of the WaveShaperNode interface is a Float32Array of numbers describing the distortion to apply.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve)
     */
    curve: Float32Array<ArrayBuffer> | null;
    /**
     * The \`oversample\` property of the WaveShaperNode interface is an enumerated value indicating if oversampling must be used.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample)
     */
    oversample: OverSampleType;
}

declare var WaveShaperNode: {
    prototype: WaveShaperNode;
    new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
};

/**
 * The **WebGL2RenderingContext** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML canvas element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext)
 */
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}

declare var WebGL2RenderingContext: {
    prototype: WebGL2RenderingContext;
    new(): WebGL2RenderingContext;
    readonly READ_BUFFER: 0x0C02;
    readonly UNPACK_ROW_LENGTH: 0x0CF2;
    readonly UNPACK_SKIP_ROWS: 0x0CF3;
    readonly UNPACK_SKIP_PIXELS: 0x0CF4;
    readonly PACK_ROW_LENGTH: 0x0D02;
    readonly PACK_SKIP_ROWS: 0x0D03;
    readonly PACK_SKIP_PIXELS: 0x0D04;
    readonly COLOR: 0x1800;
    readonly DEPTH: 0x1801;
    readonly STENCIL: 0x1802;
    readonly RED: 0x1903;
    readonly RGB8: 0x8051;
    readonly RGB10_A2: 0x8059;
    readonly TEXTURE_BINDING_3D: 0x806A;
    readonly UNPACK_SKIP_IMAGES: 0x806D;
    readonly UNPACK_IMAGE_HEIGHT: 0x806E;
    readonly TEXTURE_3D: 0x806F;
    readonly TEXTURE_WRAP_R: 0x8072;
    readonly MAX_3D_TEXTURE_SIZE: 0x8073;
    readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
    readonly MAX_ELEMENTS_VERTICES: 0x80E8;
    readonly MAX_ELEMENTS_INDICES: 0x80E9;
    readonly TEXTURE_MIN_LOD: 0x813A;
    readonly TEXTURE_MAX_LOD: 0x813B;
    readonly TEXTURE_BASE_LEVEL: 0x813C;
    readonly TEXTURE_MAX_LEVEL: 0x813D;
    readonly MIN: 0x8007;
    readonly MAX: 0x8008;
    readonly DEPTH_COMPONENT24: 0x81A6;
    readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
    readonly TEXTURE_COMPARE_MODE: 0x884C;
    readonly TEXTURE_COMPARE_FUNC: 0x884D;
    readonly CURRENT_QUERY: 0x8865;
    readonly QUERY_RESULT: 0x8866;
    readonly QUERY_RESULT_AVAILABLE: 0x8867;
    readonly STREAM_READ: 0x88E1;
    readonly STREAM_COPY: 0x88E2;
    readonly STATIC_READ: 0x88E5;
    readonly STATIC_COPY: 0x88E6;
    readonly DYNAMIC_READ: 0x88E9;
    readonly DYNAMIC_COPY: 0x88EA;
    readonly MAX_DRAW_BUFFERS: 0x8824;
    readonly DRAW_BUFFER0: 0x8825;
    readonly DRAW_BUFFER1: 0x8826;
    readonly DRAW_BUFFER2: 0x8827;
    readonly DRAW_BUFFER3: 0x8828;
    readonly DRAW_BUFFER4: 0x8829;
    readonly DRAW_BUFFER5: 0x882A;
    readonly DRAW_BUFFER6: 0x882B;
    readonly DRAW_BUFFER7: 0x882C;
    readonly DRAW_BUFFER8: 0x882D;
    readonly DRAW_BUFFER9: 0x882E;
    readonly DRAW_BUFFER10: 0x882F;
    readonly DRAW_BUFFER11: 0x8830;
    readonly DRAW_BUFFER12: 0x8831;
    readonly DRAW_BUFFER13: 0x8832;
    readonly DRAW_BUFFER14: 0x8833;
    readonly DRAW_BUFFER15: 0x8834;
    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
    readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
    readonly SAMPLER_3D: 0x8B5F;
    readonly SAMPLER_2D_SHADOW: 0x8B62;
    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
    readonly PIXEL_PACK_BUFFER: 0x88EB;
    readonly PIXEL_UNPACK_BUFFER: 0x88EC;
    readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
    readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
    readonly FLOAT_MAT2x3: 0x8B65;
    readonly FLOAT_MAT2x4: 0x8B66;
    readonly FLOAT_MAT3x2: 0x8B67;
    readonly FLOAT_MAT3x4: 0x8B68;
    readonly FLOAT_MAT4x2: 0x8B69;
    readonly FLOAT_MAT4x3: 0x8B6A;
    readonly SRGB: 0x8C40;
    readonly SRGB8: 0x8C41;
    readonly SRGB8_ALPHA8: 0x8C43;
    readonly COMPARE_REF_TO_TEXTURE: 0x884E;
    readonly RGBA32F: 0x8814;
    readonly RGB32F: 0x8815;
    readonly RGBA16F: 0x881A;
    readonly RGB16F: 0x881B;
    readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
    readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
    readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
    readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
    readonly MAX_VARYING_COMPONENTS: 0x8B4B;
    readonly TEXTURE_2D_ARRAY: 0x8C1A;
    readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
    readonly R11F_G11F_B10F: 0x8C3A;
    readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
    readonly RGB9_E5: 0x8C3D;
    readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
    readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
    readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
    readonly RASTERIZER_DISCARD: 0x8C89;
    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
    readonly INTERLEAVED_ATTRIBS: 0x8C8C;
    readonly SEPARATE_ATTRIBS: 0x8C8D;
    readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
    readonly RGBA32UI: 0x8D70;
    readonly RGB32UI: 0x8D71;
    readonly RGBA16UI: 0x8D76;
    readonly RGB16UI: 0x8D77;
    readonly RGBA8UI: 0x8D7C;
    readonly RGB8UI: 0x8D7D;
    readonly RGBA32I: 0x8D82;
    readonly RGB32I: 0x8D83;
    readonly RGBA16I: 0x8D88;
    readonly RGB16I: 0x8D89;
    readonly RGBA8I: 0x8D8E;
    readonly RGB8I: 0x8D8F;
    readonly RED_INTEGER: 0x8D94;
    readonly RGB_INTEGER: 0x8D98;
    readonly RGBA_INTEGER: 0x8D99;
    readonly SAMPLER_2D_ARRAY: 0x8DC1;
    readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
    readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
    readonly UNSIGNED_INT_VEC2: 0x8DC6;
    readonly UNSIGNED_INT_VEC3: 0x8DC7;
    readonly UNSIGNED_INT_VEC4: 0x8DC8;
    readonly INT_SAMPLER_2D: 0x8DCA;
    readonly INT_SAMPLER_3D: 0x8DCB;
    readonly INT_SAMPLER_CUBE: 0x8DCC;
    readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
    readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
    readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
    readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
    readonly DEPTH_COMPONENT32F: 0x8CAC;
    readonly DEPTH32F_STENCIL8: 0x8CAD;
    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
    readonly FRAMEBUFFER_DEFAULT: 0x8218;
    readonly UNSIGNED_INT_24_8: 0x84FA;
    readonly DEPTH24_STENCIL8: 0x88F0;
    readonly UNSIGNED_NORMALIZED: 0x8C17;
    readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
    readonly READ_FRAMEBUFFER: 0x8CA8;
    readonly DRAW_FRAMEBUFFER: 0x8CA9;
    readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
    readonly RENDERBUFFER_SAMPLES: 0x8CAB;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
    readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
    readonly COLOR_ATTACHMENT1: 0x8CE1;
    readonly COLOR_ATTACHMENT2: 0x8CE2;
    readonly COLOR_ATTACHMENT3: 0x8CE3;
    readonly COLOR_ATTACHMENT4: 0x8CE4;
    readonly COLOR_ATTACHMENT5: 0x8CE5;
    readonly COLOR_ATTACHMENT6: 0x8CE6;
    readonly COLOR_ATTACHMENT7: 0x8CE7;
    readonly COLOR_ATTACHMENT8: 0x8CE8;
    readonly COLOR_ATTACHMENT9: 0x8CE9;
    readonly COLOR_ATTACHMENT10: 0x8CEA;
    readonly COLOR_ATTACHMENT11: 0x8CEB;
    readonly COLOR_ATTACHMENT12: 0x8CEC;
    readonly COLOR_ATTACHMENT13: 0x8CED;
    readonly COLOR_ATTACHMENT14: 0x8CEE;
    readonly COLOR_ATTACHMENT15: 0x8CEF;
    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
    readonly MAX_SAMPLES: 0x8D57;
    readonly HALF_FLOAT: 0x140B;
    readonly RG: 0x8227;
    readonly RG_INTEGER: 0x8228;
    readonly R8: 0x8229;
    readonly RG8: 0x822B;
    readonly R16F: 0x822D;
    readonly R32F: 0x822E;
    readonly RG16F: 0x822F;
    readonly RG32F: 0x8230;
    readonly R8I: 0x8231;
    readonly R8UI: 0x8232;
    readonly R16I: 0x8233;
    readonly R16UI: 0x8234;
    readonly R32I: 0x8235;
    readonly R32UI: 0x8236;
    readonly RG8I: 0x8237;
    readonly RG8UI: 0x8238;
    readonly RG16I: 0x8239;
    readonly RG16UI: 0x823A;
    readonly RG32I: 0x823B;
    readonly RG32UI: 0x823C;
    readonly VERTEX_ARRAY_BINDING: 0x85B5;
    readonly R8_SNORM: 0x8F94;
    readonly RG8_SNORM: 0x8F95;
    readonly RGB8_SNORM: 0x8F96;
    readonly RGBA8_SNORM: 0x8F97;
    readonly SIGNED_NORMALIZED: 0x8F9C;
    readonly COPY_READ_BUFFER: 0x8F36;
    readonly COPY_WRITE_BUFFER: 0x8F37;
    readonly COPY_READ_BUFFER_BINDING: 0x8F36;
    readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
    readonly UNIFORM_BUFFER: 0x8A11;
    readonly UNIFORM_BUFFER_BINDING: 0x8A28;
    readonly UNIFORM_BUFFER_START: 0x8A29;
    readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
    readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
    readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
    readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
    readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
    readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
    readonly UNIFORM_TYPE: 0x8A37;
    readonly UNIFORM_SIZE: 0x8A38;
    readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
    readonly UNIFORM_OFFSET: 0x8A3B;
    readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
    readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
    readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
    readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
    readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
    readonly INVALID_INDEX: 0xFFFFFFFF;
    readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
    readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
    readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
    readonly OBJECT_TYPE: 0x9112;
    readonly SYNC_CONDITION: 0x9113;
    readonly SYNC_STATUS: 0x9114;
    readonly SYNC_FLAGS: 0x9115;
    readonly SYNC_FENCE: 0x9116;
    readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
    readonly UNSIGNALED: 0x9118;
    readonly SIGNALED: 0x9119;
    readonly ALREADY_SIGNALED: 0x911A;
    readonly TIMEOUT_EXPIRED: 0x911B;
    readonly CONDITION_SATISFIED: 0x911C;
    readonly WAIT_FAILED: 0x911D;
    readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
    readonly ANY_SAMPLES_PASSED: 0x8C2F;
    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
    readonly SAMPLER_BINDING: 0x8919;
    readonly RGB10_A2UI: 0x906F;
    readonly INT_2_10_10_10_REV: 0x8D9F;
    readonly TRANSFORM_FEEDBACK: 0x8E22;
    readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
    readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
    readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
    readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
    readonly MAX_ELEMENT_INDEX: 0x8D6B;
    readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
    readonly TIMEOUT_IGNORED: -1;
    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
    readonly DEPTH_BUFFER_BIT: 0x00000100;
    readonly STENCIL_BUFFER_BIT: 0x00000400;
    readonly COLOR_BUFFER_BIT: 0x00004000;
    readonly POINTS: 0x0000;
    readonly LINES: 0x0001;
    readonly LINE_LOOP: 0x0002;
    readonly LINE_STRIP: 0x0003;
    readonly TRIANGLES: 0x0004;
    readonly TRIANGLE_STRIP: 0x0005;
    readonly TRIANGLE_FAN: 0x0006;
    readonly ZERO: 0;
    readonly ONE: 1;
    readonly SRC_COLOR: 0x0300;
    readonly ONE_MINUS_SRC_COLOR: 0x0301;
    readonly SRC_ALPHA: 0x0302;
    readonly ONE_MINUS_SRC_ALPHA: 0x0303;
    readonly DST_ALPHA: 0x0304;
    readonly ONE_MINUS_DST_ALPHA: 0x0305;
    readonly DST_COLOR: 0x0306;
    readonly ONE_MINUS_DST_COLOR: 0x0307;
    readonly SRC_ALPHA_SATURATE: 0x0308;
    readonly FUNC_ADD: 0x8006;
    readonly BLEND_EQUATION: 0x8009;
    readonly BLEND_EQUATION_RGB: 0x8009;
    readonly BLEND_EQUATION_ALPHA: 0x883D;
    readonly FUNC_SUBTRACT: 0x800A;
    readonly FUNC_REVERSE_SUBTRACT: 0x800B;
    readonly BLEND_DST_RGB: 0x80C8;
    readonly BLEND_SRC_RGB: 0x80C9;
    readonly BLEND_DST_ALPHA: 0x80CA;
    readonly BLEND_SRC_ALPHA: 0x80CB;
    readonly CONSTANT_COLOR: 0x8001;
    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
    readonly CONSTANT_ALPHA: 0x8003;
    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
    readonly BLEND_COLOR: 0x8005;
    readonly ARRAY_BUFFER: 0x8892;
    readonly ELEMENT_ARRAY_BUFFER: 0x8893;
    readonly ARRAY_BUFFER_BINDING: 0x8894;
    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
    readonly STREAM_DRAW: 0x88E0;
    readonly STATIC_DRAW: 0x88E4;
    readonly DYNAMIC_DRAW: 0x88E8;
    readonly BUFFER_SIZE: 0x8764;
    readonly BUFFER_USAGE: 0x8765;
    readonly CURRENT_VERTEX_ATTRIB: 0x8626;
    readonly FRONT: 0x0404;
    readonly BACK: 0x0405;
    readonly FRONT_AND_BACK: 0x0408;
    readonly CULL_FACE: 0x0B44;
    readonly BLEND: 0x0BE2;
    readonly DITHER: 0x0BD0;
    readonly STENCIL_TEST: 0x0B90;
    readonly DEPTH_TEST: 0x0B71;
    readonly SCISSOR_TEST: 0x0C11;
    readonly POLYGON_OFFSET_FILL: 0x8037;
    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
    readonly SAMPLE_COVERAGE: 0x80A0;
    readonly NO_ERROR: 0;
    readonly INVALID_ENUM: 0x0500;
    readonly INVALID_VALUE: 0x0501;
    readonly INVALID_OPERATION: 0x0502;
    readonly OUT_OF_MEMORY: 0x0505;
    readonly CW: 0x0900;
    readonly CCW: 0x0901;
    readonly LINE_WIDTH: 0x0B21;
    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
    readonly CULL_FACE_MODE: 0x0B45;
    readonly FRONT_FACE: 0x0B46;
    readonly DEPTH_RANGE: 0x0B70;
    readonly DEPTH_WRITEMASK: 0x0B72;
    readonly DEPTH_CLEAR_VALUE: 0x0B73;
    readonly DEPTH_FUNC: 0x0B74;
    readonly STENCIL_CLEAR_VALUE: 0x0B91;
    readonly STENCIL_FUNC: 0x0B92;
    readonly STENCIL_FAIL: 0x0B94;
    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
    readonly STENCIL_REF: 0x0B97;
    readonly STENCIL_VALUE_MASK: 0x0B93;
    readonly STENCIL_WRITEMASK: 0x0B98;
    readonly STENCIL_BACK_FUNC: 0x8800;
    readonly STENCIL_BACK_FAIL: 0x8801;
    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
    readonly STENCIL_BACK_REF: 0x8CA3;
    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
    readonly VIEWPORT: 0x0BA2;
    readonly SCISSOR_BOX: 0x0C10;
    readonly COLOR_CLEAR_VALUE: 0x0C22;
    readonly COLOR_WRITEMASK: 0x0C23;
    readonly UNPACK_ALIGNMENT: 0x0CF5;
    readonly PACK_ALIGNMENT: 0x0D05;
    readonly MAX_TEXTURE_SIZE: 0x0D33;
    readonly MAX_VIEWPORT_DIMS: 0x0D3A;
    readonly SUBPIXEL_BITS: 0x0D50;
    readonly RED_BITS: 0x0D52;
    readonly GREEN_BITS: 0x0D53;
    readonly BLUE_BITS: 0x0D54;
    readonly ALPHA_BITS: 0x0D55;
    readonly DEPTH_BITS: 0x0D56;
    readonly STENCIL_BITS: 0x0D57;
    readonly POLYGON_OFFSET_UNITS: 0x2A00;
    readonly POLYGON_OFFSET_FACTOR: 0x8038;
    readonly TEXTURE_BINDING_2D: 0x8069;
    readonly SAMPLE_BUFFERS: 0x80A8;
    readonly SAMPLES: 0x80A9;
    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
    readonly DONT_CARE: 0x1100;
    readonly FASTEST: 0x1101;
    readonly NICEST: 0x1102;
    readonly GENERATE_MIPMAP_HINT: 0x8192;
    readonly BYTE: 0x1400;
    readonly UNSIGNED_BYTE: 0x1401;
    readonly SHORT: 0x1402;
    readonly UNSIGNED_SHORT: 0x1403;
    readonly INT: 0x1404;
    readonly UNSIGNED_INT: 0x1405;
    readonly FLOAT: 0x1406;
    readonly DEPTH_COMPONENT: 0x1902;
    readonly ALPHA: 0x1906;
    readonly RGB: 0x1907;
    readonly RGBA: 0x1908;
    readonly LUMINANCE: 0x1909;
    readonly LUMINANCE_ALPHA: 0x190A;
    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
    readonly UNSIGNED_SHORT_5_6_5: 0x8363;
    readonly FRAGMENT_SHADER: 0x8B30;
    readonly VERTEX_SHADER: 0x8B31;
    readonly MAX_VERTEX_ATTRIBS: 0x8869;
    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
    readonly MAX_VARYING_VECTORS: 0x8DFC;
    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
    readonly SHADER_TYPE: 0x8B4F;
    readonly DELETE_STATUS: 0x8B80;
    readonly LINK_STATUS: 0x8B82;
    readonly VALIDATE_STATUS: 0x8B83;
    readonly ATTACHED_SHADERS: 0x8B85;
    readonly ACTIVE_UNIFORMS: 0x8B86;
    readonly ACTIVE_ATTRIBUTES: 0x8B89;
    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
    readonly CURRENT_PROGRAM: 0x8B8D;
    readonly NEVER: 0x0200;
    readonly LESS: 0x0201;
    readonly EQUAL: 0x0202;
    readonly LEQUAL: 0x0203;
    readonly GREATER: 0x0204;
    readonly NOTEQUAL: 0x0205;
    readonly GEQUAL: 0x0206;
    readonly ALWAYS: 0x0207;
    readonly KEEP: 0x1E00;
    readonly REPLACE: 0x1E01;
    readonly INCR: 0x1E02;
    readonly DECR: 0x1E03;
    readonly INVERT: 0x150A;
    readonly INCR_WRAP: 0x8507;
    readonly DECR_WRAP: 0x8508;
    readonly VENDOR: 0x1F00;
    readonly RENDERER: 0x1F01;
    readonly VERSION: 0x1F02;
    readonly NEAREST: 0x2600;
    readonly LINEAR: 0x2601;
    readonly NEAREST_MIPMAP_NEAREST: 0x2700;
    readonly LINEAR_MIPMAP_NEAREST: 0x2701;
    readonly NEAREST_MIPMAP_LINEAR: 0x2702;
    readonly LINEAR_MIPMAP_LINEAR: 0x2703;
    readonly TEXTURE_MAG_FILTER: 0x2800;
    readonly TEXTURE_MIN_FILTER: 0x2801;
    readonly TEXTURE_WRAP_S: 0x2802;
    readonly TEXTURE_WRAP_T: 0x2803;
    readonly TEXTURE_2D: 0x0DE1;
    readonly TEXTURE: 0x1702;
    readonly TEXTURE_CUBE_MAP: 0x8513;
    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
    readonly TEXTURE0: 0x84C0;
    readonly TEXTURE1: 0x84C1;
    readonly TEXTURE2: 0x84C2;
    readonly TEXTURE3: 0x84C3;
    readonly TEXTURE4: 0x84C4;
    readonly TEXTURE5: 0x84C5;
    readonly TEXTURE6: 0x84C6;
    readonly TEXTURE7: 0x84C7;
    readonly TEXTURE8: 0x84C8;
    readonly TEXTURE9: 0x84C9;
    readonly TEXTURE10: 0x84CA;
    readonly TEXTURE11: 0x84CB;
    readonly TEXTURE12: 0x84CC;
    readonly TEXTURE13: 0x84CD;
    readonly TEXTURE14: 0x84CE;
    readonly TEXTURE15: 0x84CF;
    readonly TEXTURE16: 0x84D0;
    readonly TEXTURE17: 0x84D1;
    readonly TEXTURE18: 0x84D2;
    readonly TEXTURE19: 0x84D3;
    readonly TEXTURE20: 0x84D4;
    readonly TEXTURE21: 0x84D5;
    readonly TEXTURE22: 0x84D6;
    readonly TEXTURE23: 0x84D7;
    readonly TEXTURE24: 0x84D8;
    readonly TEXTURE25: 0x84D9;
    readonly TEXTURE26: 0x84DA;
    readonly TEXTURE27: 0x84DB;
    readonly TEXTURE28: 0x84DC;
    readonly TEXTURE29: 0x84DD;
    readonly TEXTURE30: 0x84DE;
    readonly TEXTURE31: 0x84DF;
    readonly ACTIVE_TEXTURE: 0x84E0;
    readonly REPEAT: 0x2901;
    readonly CLAMP_TO_EDGE: 0x812F;
    readonly MIRRORED_REPEAT: 0x8370;
    readonly FLOAT_VEC2: 0x8B50;
    readonly FLOAT_VEC3: 0x8B51;
    readonly FLOAT_VEC4: 0x8B52;
    readonly INT_VEC2: 0x8B53;
    readonly INT_VEC3: 0x8B54;
    readonly INT_VEC4: 0x8B55;
    readonly BOOL: 0x8B56;
    readonly BOOL_VEC2: 0x8B57;
    readonly BOOL_VEC3: 0x8B58;
    readonly BOOL_VEC4: 0x8B59;
    readonly FLOAT_MAT2: 0x8B5A;
    readonly FLOAT_MAT3: 0x8B5B;
    readonly FLOAT_MAT4: 0x8B5C;
    readonly SAMPLER_2D: 0x8B5E;
    readonly SAMPLER_CUBE: 0x8B60;
    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
    readonly COMPILE_STATUS: 0x8B81;
    readonly LOW_FLOAT: 0x8DF0;
    readonly MEDIUM_FLOAT: 0x8DF1;
    readonly HIGH_FLOAT: 0x8DF2;
    readonly LOW_INT: 0x8DF3;
    readonly MEDIUM_INT: 0x8DF4;
    readonly HIGH_INT: 0x8DF5;
    readonly FRAMEBUFFER: 0x8D40;
    readonly RENDERBUFFER: 0x8D41;
    readonly RGBA4: 0x8056;
    readonly RGB5_A1: 0x8057;
    readonly RGBA8: 0x8058;
    readonly RGB565: 0x8D62;
    readonly DEPTH_COMPONENT16: 0x81A5;
    readonly STENCIL_INDEX8: 0x8D48;
    readonly DEPTH_STENCIL: 0x84F9;
    readonly RENDERBUFFER_WIDTH: 0x8D42;
    readonly RENDERBUFFER_HEIGHT: 0x8D43;
    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
    readonly RENDERBUFFER_RED_SIZE: 0x8D50;
    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
    readonly COLOR_ATTACHMENT0: 0x8CE0;
    readonly DEPTH_ATTACHMENT: 0x8D00;
    readonly STENCIL_ATTACHMENT: 0x8D20;
    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
    readonly NONE: 0;
    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
    readonly FRAMEBUFFER_BINDING: 0x8CA6;
    readonly RENDERBUFFER_BINDING: 0x8CA7;
    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
    readonly CONTEXT_LOST_WEBGL: 0x9242;
    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
    readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};

interface WebGL2RenderingContextBase {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */
    beginQuery(target: GLenum, query: WebGLQuery): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */
    beginTransformFeedback(primitiveMode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */
    bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */
    bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */
    bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */
    bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */
    bindVertexArray(array: WebGLVertexArrayObject | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */
    blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
    clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */
    copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
    copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */
    createQuery(): WebGLQuery;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
    createSampler(): WebGLSampler;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
    createTransformFeedback(): WebGLTransformFeedback;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
    createVertexArray(): WebGLVertexArrayObject;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */
    deleteQuery(query: WebGLQuery | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */
    deleteSampler(sampler: WebGLSampler | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */
    deleteSync(sync: WebGLSync | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */
    deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */
    deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */
    drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
    drawBuffers(buffers: GLenum[]): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */
    drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */
    drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */
    endQuery(target: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */
    endTransformFeedback(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */
    fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */
    framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */
    getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */
    getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
    getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */
    getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView<ArrayBufferLike>, dstOffset?: number, length?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */
    getFragDataLocation(program: WebGLProgram, name: string): GLint;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */
    getIndexedParameter(target: GLenum, index: GLuint): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */
    getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */
    getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */
    getQueryParameter(query: WebGLQuery, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */
    getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */
    getSyncParameter(sync: WebGLSync, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */
    getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */
    getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
    getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
    invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
    invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */
    isQuery(query: WebGLQuery | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */
    isSampler(sampler: WebGLSampler | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */
    isSync(sync: WebGLSync | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */
    isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */
    isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */
    pauseTransformFeedback(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */
    readBuffer(src: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */
    renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */
    resumeTransformFeedback(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
    samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
    samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */
    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike> | null): void;
    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */
    texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */
    texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */
    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike> | null, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
    transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */
    uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */
    vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4iv(index: GLuint, values: Int32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */
    vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */
    waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
    readonly READ_BUFFER: 0x0C02;
    readonly UNPACK_ROW_LENGTH: 0x0CF2;
    readonly UNPACK_SKIP_ROWS: 0x0CF3;
    readonly UNPACK_SKIP_PIXELS: 0x0CF4;
    readonly PACK_ROW_LENGTH: 0x0D02;
    readonly PACK_SKIP_ROWS: 0x0D03;
    readonly PACK_SKIP_PIXELS: 0x0D04;
    readonly COLOR: 0x1800;
    readonly DEPTH: 0x1801;
    readonly STENCIL: 0x1802;
    readonly RED: 0x1903;
    readonly RGB8: 0x8051;
    readonly RGB10_A2: 0x8059;
    readonly TEXTURE_BINDING_3D: 0x806A;
    readonly UNPACK_SKIP_IMAGES: 0x806D;
    readonly UNPACK_IMAGE_HEIGHT: 0x806E;
    readonly TEXTURE_3D: 0x806F;
    readonly TEXTURE_WRAP_R: 0x8072;
    readonly MAX_3D_TEXTURE_SIZE: 0x8073;
    readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
    readonly MAX_ELEMENTS_VERTICES: 0x80E8;
    readonly MAX_ELEMENTS_INDICES: 0x80E9;
    readonly TEXTURE_MIN_LOD: 0x813A;
    readonly TEXTURE_MAX_LOD: 0x813B;
    readonly TEXTURE_BASE_LEVEL: 0x813C;
    readonly TEXTURE_MAX_LEVEL: 0x813D;
    readonly MIN: 0x8007;
    readonly MAX: 0x8008;
    readonly DEPTH_COMPONENT24: 0x81A6;
    readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
    readonly TEXTURE_COMPARE_MODE: 0x884C;
    readonly TEXTURE_COMPARE_FUNC: 0x884D;
    readonly CURRENT_QUERY: 0x8865;
    readonly QUERY_RESULT: 0x8866;
    readonly QUERY_RESULT_AVAILABLE: 0x8867;
    readonly STREAM_READ: 0x88E1;
    readonly STREAM_COPY: 0x88E2;
    readonly STATIC_READ: 0x88E5;
    readonly STATIC_COPY: 0x88E6;
    readonly DYNAMIC_READ: 0x88E9;
    readonly DYNAMIC_COPY: 0x88EA;
    readonly MAX_DRAW_BUFFERS: 0x8824;
    readonly DRAW_BUFFER0: 0x8825;
    readonly DRAW_BUFFER1: 0x8826;
    readonly DRAW_BUFFER2: 0x8827;
    readonly DRAW_BUFFER3: 0x8828;
    readonly DRAW_BUFFER4: 0x8829;
    readonly DRAW_BUFFER5: 0x882A;
    readonly DRAW_BUFFER6: 0x882B;
    readonly DRAW_BUFFER7: 0x882C;
    readonly DRAW_BUFFER8: 0x882D;
    readonly DRAW_BUFFER9: 0x882E;
    readonly DRAW_BUFFER10: 0x882F;
    readonly DRAW_BUFFER11: 0x8830;
    readonly DRAW_BUFFER12: 0x8831;
    readonly DRAW_BUFFER13: 0x8832;
    readonly DRAW_BUFFER14: 0x8833;
    readonly DRAW_BUFFER15: 0x8834;
    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
    readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
    readonly SAMPLER_3D: 0x8B5F;
    readonly SAMPLER_2D_SHADOW: 0x8B62;
    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
    readonly PIXEL_PACK_BUFFER: 0x88EB;
    readonly PIXEL_UNPACK_BUFFER: 0x88EC;
    readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
    readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
    readonly FLOAT_MAT2x3: 0x8B65;
    readonly FLOAT_MAT2x4: 0x8B66;
    readonly FLOAT_MAT3x2: 0x8B67;
    readonly FLOAT_MAT3x4: 0x8B68;
    readonly FLOAT_MAT4x2: 0x8B69;
    readonly FLOAT_MAT4x3: 0x8B6A;
    readonly SRGB: 0x8C40;
    readonly SRGB8: 0x8C41;
    readonly SRGB8_ALPHA8: 0x8C43;
    readonly COMPARE_REF_TO_TEXTURE: 0x884E;
    readonly RGBA32F: 0x8814;
    readonly RGB32F: 0x8815;
    readonly RGBA16F: 0x881A;
    readonly RGB16F: 0x881B;
    readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
    readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
    readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
    readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
    readonly MAX_VARYING_COMPONENTS: 0x8B4B;
    readonly TEXTURE_2D_ARRAY: 0x8C1A;
    readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
    readonly R11F_G11F_B10F: 0x8C3A;
    readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
    readonly RGB9_E5: 0x8C3D;
    readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
    readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
    readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
    readonly RASTERIZER_DISCARD: 0x8C89;
    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
    readonly INTERLEAVED_ATTRIBS: 0x8C8C;
    readonly SEPARATE_ATTRIBS: 0x8C8D;
    readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
    readonly RGBA32UI: 0x8D70;
    readonly RGB32UI: 0x8D71;
    readonly RGBA16UI: 0x8D76;
    readonly RGB16UI: 0x8D77;
    readonly RGBA8UI: 0x8D7C;
    readonly RGB8UI: 0x8D7D;
    readonly RGBA32I: 0x8D82;
    readonly RGB32I: 0x8D83;
    readonly RGBA16I: 0x8D88;
    readonly RGB16I: 0x8D89;
    readonly RGBA8I: 0x8D8E;
    readonly RGB8I: 0x8D8F;
    readonly RED_INTEGER: 0x8D94;
    readonly RGB_INTEGER: 0x8D98;
    readonly RGBA_INTEGER: 0x8D99;
    readonly SAMPLER_2D_ARRAY: 0x8DC1;
    readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
    readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
    readonly UNSIGNED_INT_VEC2: 0x8DC6;
    readonly UNSIGNED_INT_VEC3: 0x8DC7;
    readonly UNSIGNED_INT_VEC4: 0x8DC8;
    readonly INT_SAMPLER_2D: 0x8DCA;
    readonly INT_SAMPLER_3D: 0x8DCB;
    readonly INT_SAMPLER_CUBE: 0x8DCC;
    readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
    readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
    readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
    readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
    readonly DEPTH_COMPONENT32F: 0x8CAC;
    readonly DEPTH32F_STENCIL8: 0x8CAD;
    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
    readonly FRAMEBUFFER_DEFAULT: 0x8218;
    readonly UNSIGNED_INT_24_8: 0x84FA;
    readonly DEPTH24_STENCIL8: 0x88F0;
    readonly UNSIGNED_NORMALIZED: 0x8C17;
    readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
    readonly READ_FRAMEBUFFER: 0x8CA8;
    readonly DRAW_FRAMEBUFFER: 0x8CA9;
    readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
    readonly RENDERBUFFER_SAMPLES: 0x8CAB;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
    readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
    readonly COLOR_ATTACHMENT1: 0x8CE1;
    readonly COLOR_ATTACHMENT2: 0x8CE2;
    readonly COLOR_ATTACHMENT3: 0x8CE3;
    readonly COLOR_ATTACHMENT4: 0x8CE4;
    readonly COLOR_ATTACHMENT5: 0x8CE5;
    readonly COLOR_ATTACHMENT6: 0x8CE6;
    readonly COLOR_ATTACHMENT7: 0x8CE7;
    readonly COLOR_ATTACHMENT8: 0x8CE8;
    readonly COLOR_ATTACHMENT9: 0x8CE9;
    readonly COLOR_ATTACHMENT10: 0x8CEA;
    readonly COLOR_ATTACHMENT11: 0x8CEB;
    readonly COLOR_ATTACHMENT12: 0x8CEC;
    readonly COLOR_ATTACHMENT13: 0x8CED;
    readonly COLOR_ATTACHMENT14: 0x8CEE;
    readonly COLOR_ATTACHMENT15: 0x8CEF;
    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
    readonly MAX_SAMPLES: 0x8D57;
    readonly HALF_FLOAT: 0x140B;
    readonly RG: 0x8227;
    readonly RG_INTEGER: 0x8228;
    readonly R8: 0x8229;
    readonly RG8: 0x822B;
    readonly R16F: 0x822D;
    readonly R32F: 0x822E;
    readonly RG16F: 0x822F;
    readonly RG32F: 0x8230;
    readonly R8I: 0x8231;
    readonly R8UI: 0x8232;
    readonly R16I: 0x8233;
    readonly R16UI: 0x8234;
    readonly R32I: 0x8235;
    readonly R32UI: 0x8236;
    readonly RG8I: 0x8237;
    readonly RG8UI: 0x8238;
    readonly RG16I: 0x8239;
    readonly RG16UI: 0x823A;
    readonly RG32I: 0x823B;
    readonly RG32UI: 0x823C;
    readonly VERTEX_ARRAY_BINDING: 0x85B5;
    readonly R8_SNORM: 0x8F94;
    readonly RG8_SNORM: 0x8F95;
    readonly RGB8_SNORM: 0x8F96;
    readonly RGBA8_SNORM: 0x8F97;
    readonly SIGNED_NORMALIZED: 0x8F9C;
    readonly COPY_READ_BUFFER: 0x8F36;
    readonly COPY_WRITE_BUFFER: 0x8F37;
    readonly COPY_READ_BUFFER_BINDING: 0x8F36;
    readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
    readonly UNIFORM_BUFFER: 0x8A11;
    readonly UNIFORM_BUFFER_BINDING: 0x8A28;
    readonly UNIFORM_BUFFER_START: 0x8A29;
    readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
    readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
    readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
    readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
    readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
    readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
    readonly UNIFORM_TYPE: 0x8A37;
    readonly UNIFORM_SIZE: 0x8A38;
    readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
    readonly UNIFORM_OFFSET: 0x8A3B;
    readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
    readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
    readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
    readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
    readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
    readonly INVALID_INDEX: 0xFFFFFFFF;
    readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
    readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
    readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
    readonly OBJECT_TYPE: 0x9112;
    readonly SYNC_CONDITION: 0x9113;
    readonly SYNC_STATUS: 0x9114;
    readonly SYNC_FLAGS: 0x9115;
    readonly SYNC_FENCE: 0x9116;
    readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
    readonly UNSIGNALED: 0x9118;
    readonly SIGNALED: 0x9119;
    readonly ALREADY_SIGNALED: 0x911A;
    readonly TIMEOUT_EXPIRED: 0x911B;
    readonly CONDITION_SATISFIED: 0x911C;
    readonly WAIT_FAILED: 0x911D;
    readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
    readonly ANY_SAMPLES_PASSED: 0x8C2F;
    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
    readonly SAMPLER_BINDING: 0x8919;
    readonly RGB10_A2UI: 0x906F;
    readonly INT_2_10_10_10_REV: 0x8D9F;
    readonly TRANSFORM_FEEDBACK: 0x8E22;
    readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
    readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
    readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
    readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
    readonly MAX_ELEMENT_INDEX: 0x8D6B;
    readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
    readonly TIMEOUT_IGNORED: -1;
    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
}

interface WebGL2RenderingContextOverloads {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferData) */
    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
    bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
    bufferData(target: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, usage: GLenum, srcOffset: number, length?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */
    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number, length?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView<ArrayBufferLike> | null): void;
    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView<ArrayBufferLike>, dstOffset: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
}

/**
 * The **WebGLActiveInfo** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)
 */
interface WebGLActiveInfo {
    /**
     * The read-only **\`WebGLActiveInfo.name\`** property represents the name of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name)
     */
    readonly name: string;
    /**
     * The read-only **\`WebGLActiveInfo.size\`** property is a Number representing the size of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size)
     */
    readonly size: GLint;
    /**
     * The read-only **\`WebGLActiveInfo.type\`** property represents the type of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type)
     */
    readonly type: GLenum;
}

declare var WebGLActiveInfo: {
    prototype: WebGLActiveInfo;
    new(): WebGLActiveInfo;
};

/**
 * The **WebGLBuffer** interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)
 */
interface WebGLBuffer {
}

declare var WebGLBuffer: {
    prototype: WebGLBuffer;
    new(): WebGLBuffer;
};

/**
 * The **WebGLContextEvent** interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)
 */
interface WebGLContextEvent extends Event {
    /**
     * The read-only **\`WebGLContextEvent.statusMessage\`** property contains additional event status information, or is an empty string if no additional information is available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage)
     */
    readonly statusMessage: string;
}

declare var WebGLContextEvent: {
    prototype: WebGLContextEvent;
    new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};

/**
 * The **WebGLFramebuffer** interface is part of the WebGL API and represents a collection of buffers that serve as a rendering destination.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)
 */
interface WebGLFramebuffer {
}

declare var WebGLFramebuffer: {
    prototype: WebGLFramebuffer;
    new(): WebGLFramebuffer;
};

/**
 * The **\`WebGLProgram\`** is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)
 */
interface WebGLProgram {
}

declare var WebGLProgram: {
    prototype: WebGLProgram;
    new(): WebGLProgram;
};

/**
 * The **\`WebGLQuery\`** interface is part of the WebGL 2 API and provides ways to asynchronously query for information.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery)
 */
interface WebGLQuery {
}

declare var WebGLQuery: {
    prototype: WebGLQuery;
    new(): WebGLQuery;
};

/**
 * The **WebGLRenderbuffer** interface is part of the WebGL API and represents a buffer that can contain an image, or that can be a source or target of a rendering operation.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
 */
interface WebGLRenderbuffer {
}

declare var WebGLRenderbuffer: {
    prototype: WebGLRenderbuffer;
    new(): WebGLRenderbuffer;
};

/**
 * The **\`WebGLRenderingContext\`** interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML canvas element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)
 */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}

declare var WebGLRenderingContext: {
    prototype: WebGLRenderingContext;
    new(): WebGLRenderingContext;
    readonly DEPTH_BUFFER_BIT: 0x00000100;
    readonly STENCIL_BUFFER_BIT: 0x00000400;
    readonly COLOR_BUFFER_BIT: 0x00004000;
    readonly POINTS: 0x0000;
    readonly LINES: 0x0001;
    readonly LINE_LOOP: 0x0002;
    readonly LINE_STRIP: 0x0003;
    readonly TRIANGLES: 0x0004;
    readonly TRIANGLE_STRIP: 0x0005;
    readonly TRIANGLE_FAN: 0x0006;
    readonly ZERO: 0;
    readonly ONE: 1;
    readonly SRC_COLOR: 0x0300;
    readonly ONE_MINUS_SRC_COLOR: 0x0301;
    readonly SRC_ALPHA: 0x0302;
    readonly ONE_MINUS_SRC_ALPHA: 0x0303;
    readonly DST_ALPHA: 0x0304;
    readonly ONE_MINUS_DST_ALPHA: 0x0305;
    readonly DST_COLOR: 0x0306;
    readonly ONE_MINUS_DST_COLOR: 0x0307;
    readonly SRC_ALPHA_SATURATE: 0x0308;
    readonly FUNC_ADD: 0x8006;
    readonly BLEND_EQUATION: 0x8009;
    readonly BLEND_EQUATION_RGB: 0x8009;
    readonly BLEND_EQUATION_ALPHA: 0x883D;
    readonly FUNC_SUBTRACT: 0x800A;
    readonly FUNC_REVERSE_SUBTRACT: 0x800B;
    readonly BLEND_DST_RGB: 0x80C8;
    readonly BLEND_SRC_RGB: 0x80C9;
    readonly BLEND_DST_ALPHA: 0x80CA;
    readonly BLEND_SRC_ALPHA: 0x80CB;
    readonly CONSTANT_COLOR: 0x8001;
    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
    readonly CONSTANT_ALPHA: 0x8003;
    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
    readonly BLEND_COLOR: 0x8005;
    readonly ARRAY_BUFFER: 0x8892;
    readonly ELEMENT_ARRAY_BUFFER: 0x8893;
    readonly ARRAY_BUFFER_BINDING: 0x8894;
    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
    readonly STREAM_DRAW: 0x88E0;
    readonly STATIC_DRAW: 0x88E4;
    readonly DYNAMIC_DRAW: 0x88E8;
    readonly BUFFER_SIZE: 0x8764;
    readonly BUFFER_USAGE: 0x8765;
    readonly CURRENT_VERTEX_ATTRIB: 0x8626;
    readonly FRONT: 0x0404;
    readonly BACK: 0x0405;
    readonly FRONT_AND_BACK: 0x0408;
    readonly CULL_FACE: 0x0B44;
    readonly BLEND: 0x0BE2;
    readonly DITHER: 0x0BD0;
    readonly STENCIL_TEST: 0x0B90;
    readonly DEPTH_TEST: 0x0B71;
    readonly SCISSOR_TEST: 0x0C11;
    readonly POLYGON_OFFSET_FILL: 0x8037;
    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
    readonly SAMPLE_COVERAGE: 0x80A0;
    readonly NO_ERROR: 0;
    readonly INVALID_ENUM: 0x0500;
    readonly INVALID_VALUE: 0x0501;
    readonly INVALID_OPERATION: 0x0502;
    readonly OUT_OF_MEMORY: 0x0505;
    readonly CW: 0x0900;
    readonly CCW: 0x0901;
    readonly LINE_WIDTH: 0x0B21;
    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
    readonly CULL_FACE_MODE: 0x0B45;
    readonly FRONT_FACE: 0x0B46;
    readonly DEPTH_RANGE: 0x0B70;
    readonly DEPTH_WRITEMASK: 0x0B72;
    readonly DEPTH_CLEAR_VALUE: 0x0B73;
    readonly DEPTH_FUNC: 0x0B74;
    readonly STENCIL_CLEAR_VALUE: 0x0B91;
    readonly STENCIL_FUNC: 0x0B92;
    readonly STENCIL_FAIL: 0x0B94;
    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
    readonly STENCIL_REF: 0x0B97;
    readonly STENCIL_VALUE_MASK: 0x0B93;
    readonly STENCIL_WRITEMASK: 0x0B98;
    readonly STENCIL_BACK_FUNC: 0x8800;
    readonly STENCIL_BACK_FAIL: 0x8801;
    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
    readonly STENCIL_BACK_REF: 0x8CA3;
    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
    readonly VIEWPORT: 0x0BA2;
    readonly SCISSOR_BOX: 0x0C10;
    readonly COLOR_CLEAR_VALUE: 0x0C22;
    readonly COLOR_WRITEMASK: 0x0C23;
    readonly UNPACK_ALIGNMENT: 0x0CF5;
    readonly PACK_ALIGNMENT: 0x0D05;
    readonly MAX_TEXTURE_SIZE: 0x0D33;
    readonly MAX_VIEWPORT_DIMS: 0x0D3A;
    readonly SUBPIXEL_BITS: 0x0D50;
    readonly RED_BITS: 0x0D52;
    readonly GREEN_BITS: 0x0D53;
    readonly BLUE_BITS: 0x0D54;
    readonly ALPHA_BITS: 0x0D55;
    readonly DEPTH_BITS: 0x0D56;
    readonly STENCIL_BITS: 0x0D57;
    readonly POLYGON_OFFSET_UNITS: 0x2A00;
    readonly POLYGON_OFFSET_FACTOR: 0x8038;
    readonly TEXTURE_BINDING_2D: 0x8069;
    readonly SAMPLE_BUFFERS: 0x80A8;
    readonly SAMPLES: 0x80A9;
    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
    readonly DONT_CARE: 0x1100;
    readonly FASTEST: 0x1101;
    readonly NICEST: 0x1102;
    readonly GENERATE_MIPMAP_HINT: 0x8192;
    readonly BYTE: 0x1400;
    readonly UNSIGNED_BYTE: 0x1401;
    readonly SHORT: 0x1402;
    readonly UNSIGNED_SHORT: 0x1403;
    readonly INT: 0x1404;
    readonly UNSIGNED_INT: 0x1405;
    readonly FLOAT: 0x1406;
    readonly DEPTH_COMPONENT: 0x1902;
    readonly ALPHA: 0x1906;
    readonly RGB: 0x1907;
    readonly RGBA: 0x1908;
    readonly LUMINANCE: 0x1909;
    readonly LUMINANCE_ALPHA: 0x190A;
    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
    readonly UNSIGNED_SHORT_5_6_5: 0x8363;
    readonly FRAGMENT_SHADER: 0x8B30;
    readonly VERTEX_SHADER: 0x8B31;
    readonly MAX_VERTEX_ATTRIBS: 0x8869;
    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
    readonly MAX_VARYING_VECTORS: 0x8DFC;
    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
    readonly SHADER_TYPE: 0x8B4F;
    readonly DELETE_STATUS: 0x8B80;
    readonly LINK_STATUS: 0x8B82;
    readonly VALIDATE_STATUS: 0x8B83;
    readonly ATTACHED_SHADERS: 0x8B85;
    readonly ACTIVE_UNIFORMS: 0x8B86;
    readonly ACTIVE_ATTRIBUTES: 0x8B89;
    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
    readonly CURRENT_PROGRAM: 0x8B8D;
    readonly NEVER: 0x0200;
    readonly LESS: 0x0201;
    readonly EQUAL: 0x0202;
    readonly LEQUAL: 0x0203;
    readonly GREATER: 0x0204;
    readonly NOTEQUAL: 0x0205;
    readonly GEQUAL: 0x0206;
    readonly ALWAYS: 0x0207;
    readonly KEEP: 0x1E00;
    readonly REPLACE: 0x1E01;
    readonly INCR: 0x1E02;
    readonly DECR: 0x1E03;
    readonly INVERT: 0x150A;
    readonly INCR_WRAP: 0x8507;
    readonly DECR_WRAP: 0x8508;
    readonly VENDOR: 0x1F00;
    readonly RENDERER: 0x1F01;
    readonly VERSION: 0x1F02;
    readonly NEAREST: 0x2600;
    readonly LINEAR: 0x2601;
    readonly NEAREST_MIPMAP_NEAREST: 0x2700;
    readonly LINEAR_MIPMAP_NEAREST: 0x2701;
    readonly NEAREST_MIPMAP_LINEAR: 0x2702;
    readonly LINEAR_MIPMAP_LINEAR: 0x2703;
    readonly TEXTURE_MAG_FILTER: 0x2800;
    readonly TEXTURE_MIN_FILTER: 0x2801;
    readonly TEXTURE_WRAP_S: 0x2802;
    readonly TEXTURE_WRAP_T: 0x2803;
    readonly TEXTURE_2D: 0x0DE1;
    readonly TEXTURE: 0x1702;
    readonly TEXTURE_CUBE_MAP: 0x8513;
    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
    readonly TEXTURE0: 0x84C0;
    readonly TEXTURE1: 0x84C1;
    readonly TEXTURE2: 0x84C2;
    readonly TEXTURE3: 0x84C3;
    readonly TEXTURE4: 0x84C4;
    readonly TEXTURE5: 0x84C5;
    readonly TEXTURE6: 0x84C6;
    readonly TEXTURE7: 0x84C7;
    readonly TEXTURE8: 0x84C8;
    readonly TEXTURE9: 0x84C9;
    readonly TEXTURE10: 0x84CA;
    readonly TEXTURE11: 0x84CB;
    readonly TEXTURE12: 0x84CC;
    readonly TEXTURE13: 0x84CD;
    readonly TEXTURE14: 0x84CE;
    readonly TEXTURE15: 0x84CF;
    readonly TEXTURE16: 0x84D0;
    readonly TEXTURE17: 0x84D1;
    readonly TEXTURE18: 0x84D2;
    readonly TEXTURE19: 0x84D3;
    readonly TEXTURE20: 0x84D4;
    readonly TEXTURE21: 0x84D5;
    readonly TEXTURE22: 0x84D6;
    readonly TEXTURE23: 0x84D7;
    readonly TEXTURE24: 0x84D8;
    readonly TEXTURE25: 0x84D9;
    readonly TEXTURE26: 0x84DA;
    readonly TEXTURE27: 0x84DB;
    readonly TEXTURE28: 0x84DC;
    readonly TEXTURE29: 0x84DD;
    readonly TEXTURE30: 0x84DE;
    readonly TEXTURE31: 0x84DF;
    readonly ACTIVE_TEXTURE: 0x84E0;
    readonly REPEAT: 0x2901;
    readonly CLAMP_TO_EDGE: 0x812F;
    readonly MIRRORED_REPEAT: 0x8370;
    readonly FLOAT_VEC2: 0x8B50;
    readonly FLOAT_VEC3: 0x8B51;
    readonly FLOAT_VEC4: 0x8B52;
    readonly INT_VEC2: 0x8B53;
    readonly INT_VEC3: 0x8B54;
    readonly INT_VEC4: 0x8B55;
    readonly BOOL: 0x8B56;
    readonly BOOL_VEC2: 0x8B57;
    readonly BOOL_VEC3: 0x8B58;
    readonly BOOL_VEC4: 0x8B59;
    readonly FLOAT_MAT2: 0x8B5A;
    readonly FLOAT_MAT3: 0x8B5B;
    readonly FLOAT_MAT4: 0x8B5C;
    readonly SAMPLER_2D: 0x8B5E;
    readonly SAMPLER_CUBE: 0x8B60;
    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
    readonly COMPILE_STATUS: 0x8B81;
    readonly LOW_FLOAT: 0x8DF0;
    readonly MEDIUM_FLOAT: 0x8DF1;
    readonly HIGH_FLOAT: 0x8DF2;
    readonly LOW_INT: 0x8DF3;
    readonly MEDIUM_INT: 0x8DF4;
    readonly HIGH_INT: 0x8DF5;
    readonly FRAMEBUFFER: 0x8D40;
    readonly RENDERBUFFER: 0x8D41;
    readonly RGBA4: 0x8056;
    readonly RGB5_A1: 0x8057;
    readonly RGBA8: 0x8058;
    readonly RGB565: 0x8D62;
    readonly DEPTH_COMPONENT16: 0x81A5;
    readonly STENCIL_INDEX8: 0x8D48;
    readonly DEPTH_STENCIL: 0x84F9;
    readonly RENDERBUFFER_WIDTH: 0x8D42;
    readonly RENDERBUFFER_HEIGHT: 0x8D43;
    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
    readonly RENDERBUFFER_RED_SIZE: 0x8D50;
    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
    readonly COLOR_ATTACHMENT0: 0x8CE0;
    readonly DEPTH_ATTACHMENT: 0x8D00;
    readonly STENCIL_ATTACHMENT: 0x8D20;
    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
    readonly NONE: 0;
    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
    readonly FRAMEBUFFER_BINDING: 0x8CA6;
    readonly RENDERBUFFER_BINDING: 0x8CA7;
    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
    readonly CONTEXT_LOST_WEBGL: 0x9242;
    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
    readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};

interface WebGLRenderingContextBase {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */
    readonly canvas: HTMLCanvasElement | OffscreenCanvas;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) */
    drawingBufferColorSpace: PredefinedColorSpace;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
    readonly drawingBufferHeight: GLsizei;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */
    readonly drawingBufferWidth: GLsizei;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */
    unpackColorSpace: PredefinedColorSpace;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */
    activeTexture(texture: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */
    attachShader(program: WebGLProgram, shader: WebGLShader): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */
    bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */
    bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */
    bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */
    bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */
    bindTexture(target: GLenum, texture: WebGLTexture | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */
    blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */
    blendEquation(mode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */
    blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */
    blendFunc(sfactor: GLenum, dfactor: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */
    blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */
    checkFramebufferStatus(target: GLenum): GLenum;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */
    clear(mask: GLbitfield): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */
    clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */
    clearDepth(depth: GLclampf): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */
    clearStencil(s: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */
    colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */
    compileShader(shader: WebGLShader): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */
    copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */
    copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */
    createBuffer(): WebGLBuffer;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
    createFramebuffer(): WebGLFramebuffer;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
    createProgram(): WebGLProgram;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
    createRenderbuffer(): WebGLRenderbuffer;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */
    createShader(type: GLenum): WebGLShader | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */
    createTexture(): WebGLTexture;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */
    cullFace(mode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */
    deleteBuffer(buffer: WebGLBuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */
    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */
    deleteProgram(program: WebGLProgram | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */
    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */
    deleteShader(shader: WebGLShader | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */
    deleteTexture(texture: WebGLTexture | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */
    depthFunc(func: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */
    depthMask(flag: GLboolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */
    depthRange(zNear: GLclampf, zFar: GLclampf): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */
    detachShader(program: WebGLProgram, shader: WebGLShader): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */
    disable(cap: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */
    disableVertexAttribArray(index: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */
    drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */
    drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */
    enable(cap: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */
    enableVertexAttribArray(index: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */
    finish(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */
    flush(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */
    framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */
    framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */
    frontFace(mode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */
    generateMipmap(target: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */
    getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */
    getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */
    getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */
    getAttribLocation(program: WebGLProgram, name: string): GLint;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */
    getBufferParameter(target: GLenum, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */
    getContextAttributes(): WebGLContextAttributes | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
    getError(): GLenum;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
    getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
    getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
    getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
    getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
    getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
    getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
    getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
    getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
    getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
    getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
    getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
    getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
    getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
    getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
    getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
    getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
    getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
    getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
    getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
    getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
    getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
    getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
    getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
    getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
    getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
    getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
    getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
    getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
    getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
    getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
    getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
    getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
    getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
    getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
    getExtension(name: string): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
    getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
    getParameter(pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */
    getProgramInfoLog(program: WebGLProgram): string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */
    getProgramParameter(program: WebGLProgram, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */
    getRenderbufferParameter(target: GLenum, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */
    getShaderInfoLog(shader: WebGLShader): string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */
    getShaderParameter(shader: WebGLShader, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */
    getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */
    getShaderSource(shader: WebGLShader): string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */
    getSupportedExtensions(): string[] | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */
    getTexParameter(target: GLenum, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */
    getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */
    getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */
    getVertexAttrib(index: GLuint, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */
    getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */
    hint(target: GLenum, mode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */
    isBuffer(buffer: WebGLBuffer | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */
    isContextLost(): boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */
    isEnabled(cap: GLenum): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */
    isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */
    isProgram(program: WebGLProgram | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */
    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */
    isShader(shader: WebGLShader | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */
    isTexture(texture: WebGLTexture | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */
    lineWidth(width: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */
    linkProgram(program: WebGLProgram): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */
    pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */
    polygonOffset(factor: GLfloat, units: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */
    renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */
    sampleCoverage(value: GLclampf, invert: GLboolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */
    scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */
    shaderSource(shader: WebGLShader, source: string): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */
    stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */
    stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */
    stencilMask(mask: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */
    stencilMaskSeparate(face: GLenum, mask: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */
    stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */
    stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
    texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
    texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */
    useProgram(program: WebGLProgram | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */
    validateProgram(program: WebGLProgram): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib1f(index: GLuint, x: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib1fv(index: GLuint, values: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib2fv(index: GLuint, values: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib3fv(index: GLuint, values: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib4fv(index: GLuint, values: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */
    vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */
    viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    readonly DEPTH_BUFFER_BIT: 0x00000100;
    readonly STENCIL_BUFFER_BIT: 0x00000400;
    readonly COLOR_BUFFER_BIT: 0x00004000;
    readonly POINTS: 0x0000;
    readonly LINES: 0x0001;
    readonly LINE_LOOP: 0x0002;
    readonly LINE_STRIP: 0x0003;
    readonly TRIANGLES: 0x0004;
    readonly TRIANGLE_STRIP: 0x0005;
    readonly TRIANGLE_FAN: 0x0006;
    readonly ZERO: 0;
    readonly ONE: 1;
    readonly SRC_COLOR: 0x0300;
    readonly ONE_MINUS_SRC_COLOR: 0x0301;
    readonly SRC_ALPHA: 0x0302;
    readonly ONE_MINUS_SRC_ALPHA: 0x0303;
    readonly DST_ALPHA: 0x0304;
    readonly ONE_MINUS_DST_ALPHA: 0x0305;
    readonly DST_COLOR: 0x0306;
    readonly ONE_MINUS_DST_COLOR: 0x0307;
    readonly SRC_ALPHA_SATURATE: 0x0308;
    readonly FUNC_ADD: 0x8006;
    readonly BLEND_EQUATION: 0x8009;
    readonly BLEND_EQUATION_RGB: 0x8009;
    readonly BLEND_EQUATION_ALPHA: 0x883D;
    readonly FUNC_SUBTRACT: 0x800A;
    readonly FUNC_REVERSE_SUBTRACT: 0x800B;
    readonly BLEND_DST_RGB: 0x80C8;
    readonly BLEND_SRC_RGB: 0x80C9;
    readonly BLEND_DST_ALPHA: 0x80CA;
    readonly BLEND_SRC_ALPHA: 0x80CB;
    readonly CONSTANT_COLOR: 0x8001;
    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
    readonly CONSTANT_ALPHA: 0x8003;
    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
    readonly BLEND_COLOR: 0x8005;
    readonly ARRAY_BUFFER: 0x8892;
    readonly ELEMENT_ARRAY_BUFFER: 0x8893;
    readonly ARRAY_BUFFER_BINDING: 0x8894;
    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
    readonly STREAM_DRAW: 0x88E0;
    readonly STATIC_DRAW: 0x88E4;
    readonly DYNAMIC_DRAW: 0x88E8;
    readonly BUFFER_SIZE: 0x8764;
    readonly BUFFER_USAGE: 0x8765;
    readonly CURRENT_VERTEX_ATTRIB: 0x8626;
    readonly FRONT: 0x0404;
    readonly BACK: 0x0405;
    readonly FRONT_AND_BACK: 0x0408;
    readonly CULL_FACE: 0x0B44;
    readonly BLEND: 0x0BE2;
    readonly DITHER: 0x0BD0;
    readonly STENCIL_TEST: 0x0B90;
    readonly DEPTH_TEST: 0x0B71;
    readonly SCISSOR_TEST: 0x0C11;
    readonly POLYGON_OFFSET_FILL: 0x8037;
    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
    readonly SAMPLE_COVERAGE: 0x80A0;
    readonly NO_ERROR: 0;
    readonly INVALID_ENUM: 0x0500;
    readonly INVALID_VALUE: 0x0501;
    readonly INVALID_OPERATION: 0x0502;
    readonly OUT_OF_MEMORY: 0x0505;
    readonly CW: 0x0900;
    readonly CCW: 0x0901;
    readonly LINE_WIDTH: 0x0B21;
    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
    readonly CULL_FACE_MODE: 0x0B45;
    readonly FRONT_FACE: 0x0B46;
    readonly DEPTH_RANGE: 0x0B70;
    readonly DEPTH_WRITEMASK: 0x0B72;
    readonly DEPTH_CLEAR_VALUE: 0x0B73;
    readonly DEPTH_FUNC: 0x0B74;
    readonly STENCIL_CLEAR_VALUE: 0x0B91;
    readonly STENCIL_FUNC: 0x0B92;
    readonly STENCIL_FAIL: 0x0B94;
    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
    readonly STENCIL_REF: 0x0B97;
    readonly STENCIL_VALUE_MASK: 0x0B93;
    readonly STENCIL_WRITEMASK: 0x0B98;
    readonly STENCIL_BACK_FUNC: 0x8800;
    readonly STENCIL_BACK_FAIL: 0x8801;
    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
    readonly STENCIL_BACK_REF: 0x8CA3;
    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
    readonly VIEWPORT: 0x0BA2;
    readonly SCISSOR_BOX: 0x0C10;
    readonly COLOR_CLEAR_VALUE: 0x0C22;
    readonly COLOR_WRITEMASK: 0x0C23;
    readonly UNPACK_ALIGNMENT: 0x0CF5;
    readonly PACK_ALIGNMENT: 0x0D05;
    readonly MAX_TEXTURE_SIZE: 0x0D33;
    readonly MAX_VIEWPORT_DIMS: 0x0D3A;
    readonly SUBPIXEL_BITS: 0x0D50;
    readonly RED_BITS: 0x0D52;
    readonly GREEN_BITS: 0x0D53;
    readonly BLUE_BITS: 0x0D54;
    readonly ALPHA_BITS: 0x0D55;
    readonly DEPTH_BITS: 0x0D56;
    readonly STENCIL_BITS: 0x0D57;
    readonly POLYGON_OFFSET_UNITS: 0x2A00;
    readonly POLYGON_OFFSET_FACTOR: 0x8038;
    readonly TEXTURE_BINDING_2D: 0x8069;
    readonly SAMPLE_BUFFERS: 0x80A8;
    readonly SAMPLES: 0x80A9;
    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
    readonly DONT_CARE: 0x1100;
    readonly FASTEST: 0x1101;
    readonly NICEST: 0x1102;
    readonly GENERATE_MIPMAP_HINT: 0x8192;
    readonly BYTE: 0x1400;
    readonly UNSIGNED_BYTE: 0x1401;
    readonly SHORT: 0x1402;
    readonly UNSIGNED_SHORT: 0x1403;
    readonly INT: 0x1404;
    readonly UNSIGNED_INT: 0x1405;
    readonly FLOAT: 0x1406;
    readonly DEPTH_COMPONENT: 0x1902;
    readonly ALPHA: 0x1906;
    readonly RGB: 0x1907;
    readonly RGBA: 0x1908;
    readonly LUMINANCE: 0x1909;
    readonly LUMINANCE_ALPHA: 0x190A;
    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
    readonly UNSIGNED_SHORT_5_6_5: 0x8363;
    readonly FRAGMENT_SHADER: 0x8B30;
    readonly VERTEX_SHADER: 0x8B31;
    readonly MAX_VERTEX_ATTRIBS: 0x8869;
    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
    readonly MAX_VARYING_VECTORS: 0x8DFC;
    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
    readonly SHADER_TYPE: 0x8B4F;
    readonly DELETE_STATUS: 0x8B80;
    readonly LINK_STATUS: 0x8B82;
    readonly VALIDATE_STATUS: 0x8B83;
    readonly ATTACHED_SHADERS: 0x8B85;
    readonly ACTIVE_UNIFORMS: 0x8B86;
    readonly ACTIVE_ATTRIBUTES: 0x8B89;
    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
    readonly CURRENT_PROGRAM: 0x8B8D;
    readonly NEVER: 0x0200;
    readonly LESS: 0x0201;
    readonly EQUAL: 0x0202;
    readonly LEQUAL: 0x0203;
    readonly GREATER: 0x0204;
    readonly NOTEQUAL: 0x0205;
    readonly GEQUAL: 0x0206;
    readonly ALWAYS: 0x0207;
    readonly KEEP: 0x1E00;
    readonly REPLACE: 0x1E01;
    readonly INCR: 0x1E02;
    readonly DECR: 0x1E03;
    readonly INVERT: 0x150A;
    readonly INCR_WRAP: 0x8507;
    readonly DECR_WRAP: 0x8508;
    readonly VENDOR: 0x1F00;
    readonly RENDERER: 0x1F01;
    readonly VERSION: 0x1F02;
    readonly NEAREST: 0x2600;
    readonly LINEAR: 0x2601;
    readonly NEAREST_MIPMAP_NEAREST: 0x2700;
    readonly LINEAR_MIPMAP_NEAREST: 0x2701;
    readonly NEAREST_MIPMAP_LINEAR: 0x2702;
    readonly LINEAR_MIPMAP_LINEAR: 0x2703;
    readonly TEXTURE_MAG_FILTER: 0x2800;
    readonly TEXTURE_MIN_FILTER: 0x2801;
    readonly TEXTURE_WRAP_S: 0x2802;
    readonly TEXTURE_WRAP_T: 0x2803;
    readonly TEXTURE_2D: 0x0DE1;
    readonly TEXTURE: 0x1702;
    readonly TEXTURE_CUBE_MAP: 0x8513;
    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
    readonly TEXTURE0: 0x84C0;
    readonly TEXTURE1: 0x84C1;
    readonly TEXTURE2: 0x84C2;
    readonly TEXTURE3: 0x84C3;
    readonly TEXTURE4: 0x84C4;
    readonly TEXTURE5: 0x84C5;
    readonly TEXTURE6: 0x84C6;
    readonly TEXTURE7: 0x84C7;
    readonly TEXTURE8: 0x84C8;
    readonly TEXTURE9: 0x84C9;
    readonly TEXTURE10: 0x84CA;
    readonly TEXTURE11: 0x84CB;
    readonly TEXTURE12: 0x84CC;
    readonly TEXTURE13: 0x84CD;
    readonly TEXTURE14: 0x84CE;
    readonly TEXTURE15: 0x84CF;
    readonly TEXTURE16: 0x84D0;
    readonly TEXTURE17: 0x84D1;
    readonly TEXTURE18: 0x84D2;
    readonly TEXTURE19: 0x84D3;
    readonly TEXTURE20: 0x84D4;
    readonly TEXTURE21: 0x84D5;
    readonly TEXTURE22: 0x84D6;
    readonly TEXTURE23: 0x84D7;
    readonly TEXTURE24: 0x84D8;
    readonly TEXTURE25: 0x84D9;
    readonly TEXTURE26: 0x84DA;
    readonly TEXTURE27: 0x84DB;
    readonly TEXTURE28: 0x84DC;
    readonly TEXTURE29: 0x84DD;
    readonly TEXTURE30: 0x84DE;
    readonly TEXTURE31: 0x84DF;
    readonly ACTIVE_TEXTURE: 0x84E0;
    readonly REPEAT: 0x2901;
    readonly CLAMP_TO_EDGE: 0x812F;
    readonly MIRRORED_REPEAT: 0x8370;
    readonly FLOAT_VEC2: 0x8B50;
    readonly FLOAT_VEC3: 0x8B51;
    readonly FLOAT_VEC4: 0x8B52;
    readonly INT_VEC2: 0x8B53;
    readonly INT_VEC3: 0x8B54;
    readonly INT_VEC4: 0x8B55;
    readonly BOOL: 0x8B56;
    readonly BOOL_VEC2: 0x8B57;
    readonly BOOL_VEC3: 0x8B58;
    readonly BOOL_VEC4: 0x8B59;
    readonly FLOAT_MAT2: 0x8B5A;
    readonly FLOAT_MAT3: 0x8B5B;
    readonly FLOAT_MAT4: 0x8B5C;
    readonly SAMPLER_2D: 0x8B5E;
    readonly SAMPLER_CUBE: 0x8B60;
    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
    readonly COMPILE_STATUS: 0x8B81;
    readonly LOW_FLOAT: 0x8DF0;
    readonly MEDIUM_FLOAT: 0x8DF1;
    readonly HIGH_FLOAT: 0x8DF2;
    readonly LOW_INT: 0x8DF3;
    readonly MEDIUM_INT: 0x8DF4;
    readonly HIGH_INT: 0x8DF5;
    readonly FRAMEBUFFER: 0x8D40;
    readonly RENDERBUFFER: 0x8D41;
    readonly RGBA4: 0x8056;
    readonly RGB5_A1: 0x8057;
    readonly RGBA8: 0x8058;
    readonly RGB565: 0x8D62;
    readonly DEPTH_COMPONENT16: 0x81A5;
    readonly STENCIL_INDEX8: 0x8D48;
    readonly DEPTH_STENCIL: 0x84F9;
    readonly RENDERBUFFER_WIDTH: 0x8D42;
    readonly RENDERBUFFER_HEIGHT: 0x8D43;
    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
    readonly RENDERBUFFER_RED_SIZE: 0x8D50;
    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
    readonly COLOR_ATTACHMENT0: 0x8CE0;
    readonly DEPTH_ATTACHMENT: 0x8D00;
    readonly STENCIL_ATTACHMENT: 0x8D20;
    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
    readonly NONE: 0;
    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
    readonly FRAMEBUFFER_BINDING: 0x8CA6;
    readonly RENDERBUFFER_BINDING: 0x8CA7;
    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
    readonly CONTEXT_LOST_WEBGL: 0x9242;
    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
    readonly BROWSER_DEFAULT_WEBGL: 0x9244;
}

interface WebGLRenderingContextOverloads {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
    bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
    bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView<ArrayBufferLike>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView<ArrayBufferLike>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}

/**
 * The **\`WebGLSampler\`** interface is part of the WebGL 2 API and stores sampling parameters for WebGLTexture access inside of a shader.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler)
 */
interface WebGLSampler {
}

declare var WebGLSampler: {
    prototype: WebGLSampler;
    new(): WebGLSampler;
};

/**
 * The **WebGLShader** is part of the WebGL API and can either be a vertex or a fragment shader.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
 */
interface WebGLShader {
}

declare var WebGLShader: {
    prototype: WebGLShader;
    new(): WebGLShader;
};

/**
 * The **WebGLShaderPrecisionFormat** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)
 */
interface WebGLShaderPrecisionFormat {
    /**
     * The read-only **\`WebGLShaderPrecisionFormat.precision\`** property returns the number of bits of precision that can be represented.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision)
     */
    readonly precision: GLint;
    /**
     * The read-only **\`WebGLShaderPrecisionFormat.rangeMax\`** property returns the base 2 log of the absolute value of the maximum value that can be represented.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)
     */
    readonly rangeMax: GLint;
    /**
     * The read-only **\`WebGLShaderPrecisionFormat.rangeMin\`** property returns the base 2 log of the absolute value of the minimum value that can be represented.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)
     */
    readonly rangeMin: GLint;
}

declare var WebGLShaderPrecisionFormat: {
    prototype: WebGLShaderPrecisionFormat;
    new(): WebGLShaderPrecisionFormat;
};

/**
 * The **\`WebGLSync\`** interface is part of the WebGL 2 API and is used to synchronize activities between the GPU and the application.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync)
 */
interface WebGLSync {
}

declare var WebGLSync: {
    prototype: WebGLSync;
    new(): WebGLSync;
};

/**
 * The **WebGLTexture** interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)
 */
interface WebGLTexture {
}

declare var WebGLTexture: {
    prototype: WebGLTexture;
    new(): WebGLTexture;
};

/**
 * The **\`WebGLTransformFeedback\`** interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback)
 */
interface WebGLTransformFeedback {
}

declare var WebGLTransformFeedback: {
    prototype: WebGLTransformFeedback;
    new(): WebGLTransformFeedback;
};

/**
 * The **WebGLUniformLocation** interface is part of the WebGL API and represents the location of a uniform variable in a shader program.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)
 */
interface WebGLUniformLocation {
}

declare var WebGLUniformLocation: {
    prototype: WebGLUniformLocation;
    new(): WebGLUniformLocation;
};

/**
 * The **\`WebGLVertexArrayObject\`** interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject)
 */
interface WebGLVertexArrayObject {
}

declare var WebGLVertexArrayObject: {
    prototype: WebGLVertexArrayObject;
    new(): WebGLVertexArrayObject;
};

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */
interface WebGLVertexArrayObjectOES {
}

interface WebSocketEventMap {
    "close": CloseEvent;
    "error": Event;
    "message": MessageEvent;
    "open": Event;
}

/**
 * The \`WebSocket\` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
 */
interface WebSocket extends EventTarget {
    /**
     * The **\`WebSocket.binaryType\`** property controls the type of binary data being received over the WebSocket connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
     */
    binaryType: BinaryType;
    /**
     * The **\`WebSocket.bufferedAmount\`** read-only property returns the number of bytes of data that have been queued using calls to \`send()\` but not yet transmitted to the network.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
     */
    readonly bufferedAmount: number;
    /**
     * The **\`WebSocket.extensions\`** read-only property returns the extensions selected by the server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
     */
    readonly extensions: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */
    onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */
    onerror: ((this: WebSocket, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */
    onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */
    onopen: ((this: WebSocket, ev: Event) => any) | null;
    /**
     * The **\`WebSocket.protocol\`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the \`protocols\` parameter when creating the WebSocket object, or the empty string if no connection is established.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
     */
    readonly protocol: string;
    /**
     * The **\`WebSocket.readyState\`** read-only property returns the current state of the WebSocket connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
     */
    readonly readyState: number;
    /**
     * The **\`WebSocket.url\`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
     */
    readonly url: string;
    /**
     * The **\`WebSocket.close()\`** method closes the already \`CLOSED\`, this method does nothing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
     */
    close(code?: number, reason?: string): void;
    /**
     * The **\`WebSocket.send()\`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of \`bufferedAmount\` by the number of bytes needed to contain the data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
     */
    send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
    readonly CONNECTING: 0;
    readonly OPEN: 1;
    readonly CLOSING: 2;
    readonly CLOSED: 3;
    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var WebSocket: {
    prototype: WebSocket;
    new(url: string | URL, protocols?: string | string[]): WebSocket;
    readonly CONNECTING: 0;
    readonly OPEN: 1;
    readonly CLOSING: 2;
    readonly CLOSED: 3;
};

/**
 * The **\`WebTransport\`** interface of the WebTransport API provides functionality to enable a user agent to connect to an HTTP/3 server, initiate reliable and unreliable transport in either or both directions, and close the connection once it is no longer needed.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
 */
interface WebTransport {
    /**
     * The **\`closed\`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
     */
    readonly closed: Promise<WebTransportCloseInfo>;
    /**
     * The **\`datagrams\`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams)
     */
    readonly datagrams: WebTransportDatagramDuplexStream;
    /**
     * The **\`incomingBidirectionalStreams\`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams)
     */
    readonly incomingBidirectionalStreams: ReadableStream;
    /**
     * The **\`incomingUnidirectionalStreams\`** read-only property of the WebTransport interface represents one or more unidirectional streams opened by the server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
     */
    readonly incomingUnidirectionalStreams: ReadableStream;
    /**
     * The **\`ready\`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
     */
    readonly ready: Promise<void>;
    /**
     * The **\`close()\`** method of the WebTransport interface closes an ongoing WebTransport session.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close)
     */
    close(closeInfo?: WebTransportCloseInfo): void;
    /**
     * The **\`createBidirectionalStream()\`** method of the WebTransport interface asynchronously opens and returns a bidirectional stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream)
     */
    createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
    /**
     * The **\`createUnidirectionalStream()\`** method of the WebTransport interface asynchronously opens a unidirectional stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
     */
    createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
}

declare var WebTransport: {
    prototype: WebTransport;
    new(url: string | URL, options?: WebTransportOptions): WebTransport;
};

/**
 * The **\`WebTransportBidirectionalStream\`** interface of the WebTransport API represents a bidirectional stream created by a server or a client that can be used for reliable transport.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
 */
interface WebTransportBidirectionalStream {
    /**
     * The **\`readable\`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportReceiveStream instance that can be used to reliably read incoming data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable)
     */
    readonly readable: ReadableStream;
    /**
     * The **\`writable\`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportSendStream instance that can be used to write outgoing data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable)
     */
    readonly writable: WritableStream;
}

declare var WebTransportBidirectionalStream: {
    prototype: WebTransportBidirectionalStream;
    new(): WebTransportBidirectionalStream;
};

/**
 * The **\`WebTransportDatagramDuplexStream\`** interface of the WebTransport API represents a duplex stream that can be used for unreliable transport of datagrams between client and server.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
 */
interface WebTransportDatagramDuplexStream {
    /**
     * The **\`incomingHighWaterMark\`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for incoming chunks of data — this is the maximum size, in chunks, that the incoming ReadableStream's internal queue can reach before it is considered full.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)
     */
    incomingHighWaterMark: number;
    /**
     * The **\`incomingMaxAge\`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for incoming datagrams, in milliseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)
     */
    incomingMaxAge: number | null;
    /**
     * The **\`maxDatagramSize\`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to WebTransportDatagramDuplexStream.writable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)
     */
    readonly maxDatagramSize: number;
    /**
     * The **\`outgoingHighWaterMark\`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for outgoing chunks of data — this is the maximum size, in chunks, that the outgoing WritableStream's internal queue can reach before it is considered full.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)
     */
    outgoingHighWaterMark: number;
    /**
     * The **\`outgoingMaxAge\`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for outgoing datagrams, in milliseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)
     */
    outgoingMaxAge: number | null;
    /**
     * The **\`readable\`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)
     */
    readonly readable: ReadableStream;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
    readonly writable: WritableStream;
}

declare var WebTransportDatagramDuplexStream: {
    prototype: WebTransportDatagramDuplexStream;
    new(): WebTransportDatagramDuplexStream;
};

/**
 * The **\`WebTransportError\`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call).
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
 */
interface WebTransportError extends DOMException {
    /**
     * The **\`source\`** read-only property of the WebTransportError interface returns an enumerated value indicating the source of the error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source)
     */
    readonly source: WebTransportErrorSource;
    /**
     * The **\`streamErrorCode\`** read-only property of the WebTransportError interface returns a number in the range 0-255 indicating the application protocol error code for this error, or \`null\` if one is not available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode)
     */
    readonly streamErrorCode: number | null;
}

declare var WebTransportError: {
    prototype: WebTransportError;
    new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
};

/**
 * The **\`WheelEvent\`** interface represents events that occur due to the user moving a mouse wheel or similar input device.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent)
 */
interface WheelEvent extends MouseEvent {
    /**
     * The **\`WheelEvent.deltaMode\`** read-only property returns an \`unsigned long\` representing the unit of the delta values scroll amount.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode)
     */
    readonly deltaMode: number;
    /**
     * The **\`WheelEvent.deltaX\`** read-only property is a \`double\` representing the horizontal scroll amount in the You must check the \`deltaMode\` property to determine the unit of the \`deltaX\` value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX)
     */
    readonly deltaX: number;
    /**
     * The **\`WheelEvent.deltaY\`** read-only property is a \`double\` representing the vertical scroll amount in the You must check the \`deltaMode\` property to determine the unit of the \`deltaY\` value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY)
     */
    readonly deltaY: number;
    /**
     * The **\`WheelEvent.deltaZ\`** read-only property is a \`double\` representing the scroll amount along the z-axis, in the You must check the \`deltaMode\` property to determine the unit of the \`deltaZ\` value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaZ)
     */
    readonly deltaZ: number;
    readonly DOM_DELTA_PIXEL: 0x00;
    readonly DOM_DELTA_LINE: 0x01;
    readonly DOM_DELTA_PAGE: 0x02;
}

declare var WheelEvent: {
    prototype: WheelEvent;
    new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
    readonly DOM_DELTA_PIXEL: 0x00;
    readonly DOM_DELTA_LINE: 0x01;
    readonly DOM_DELTA_PAGE: 0x02;
};

interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
    "DOMContentLoaded": Event;
    "devicemotion": DeviceMotionEvent;
    "deviceorientation": DeviceOrientationEvent;
    "deviceorientationabsolute": DeviceOrientationEvent;
    "gamepadconnected": GamepadEvent;
    "gamepaddisconnected": GamepadEvent;
    "orientationchange": Event;
}

/**
 * The **\`Window\`** interface represents a window containing a DOM document; the \`document\` property points to the DOM document loaded in that window.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window)
 */
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
    /**
     * @deprecated This is a legacy alias of \`navigator\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)
     */
    readonly clientInformation: Navigator;
    /**
     * The **\`Window.closed\`** read-only property indicates whether the referenced window is closed or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)
     */
    readonly closed: boolean;
    /**
     * The **\`cookieStore\`** read-only property of the Window interface returns a reference to the CookieStore object for the current document context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cookieStore)
     */
    readonly cookieStore: CookieStore;
    /**
     * The **\`customElements\`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)
     */
    readonly customElements: CustomElementRegistry;
    /**
     * The **\`devicePixelRatio\`** of Window interface returns the ratio of the resolution in _physical pixels_ to the resolution in _CSS pixels_ for the current display device.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio)
     */
    readonly devicePixelRatio: number;
    /**
     * **\`window.document\`** returns a reference to the document contained in the window.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document)
     */
    readonly document: Document;
    /**
     * The read-only Window property **\`event\`** returns the Event which is currently being handled by the site's code.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)
     */
    readonly event: Event | undefined;
    /**
     * The \`external\` property of the Window API returns an instance of the \`External\` interface, which was intended to contain functions related to adding external search providers to the browser.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)
     */
    readonly external: External;
    /**
     * The **\`Window.frameElement\`** property returns the element (such as iframe or object) in which the window is embedded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement)
     */
    readonly frameElement: Element | null;
    /**
     * Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames)
     */
    readonly frames: WindowProxy;
    /**
     * The \`Window.history\` read-only property returns a reference to the History object, which provides an interface for manipulating the browser _session history_ (pages visited in the tab or frame that the current page is loaded in).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history)
     */
    readonly history: History;
    /**
     * The read-only **\`innerHeight\`** property of the including the height of the horizontal scroll bar, if present.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight)
     */
    readonly innerHeight: number;
    /**
     * The read-only Window property **\`innerWidth\`** returns the interior width of the window in pixels (that is, the width of the window's layout viewport).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth)
     */
    readonly innerWidth: number;
    /**
     * Returns the number of frames (either frame or A number.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length)
     */
    readonly length: number;
    /**
     * The **\`Window.location\`** read-only property returns a Location object with information about the current location of the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location)
     */
    get location(): Location;
    set location(href: string);
    /**
     * Returns the \`locationbar\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
     */
    readonly locationbar: BarProp;
    /**
     * Returns the \`menubar\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)
     */
    readonly menubar: BarProp;
    /**
     * The \`Window.name\` property gets/sets the name of the window's browsing context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)
     */
    name: string;
    /**
     * The **\`Window.navigator\`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)
     */
    readonly navigator: Navigator;
    /**
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)
     */
    ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
    /**
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
     */
    ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
    /**
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)
     */
    ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)
     */
    onorientationchange: ((this: Window, ev: Event) => any) | null;
    /**
     * The Window interface's **\`opener\`** property returns a reference to the window that opened the window, either with Window.open, or by navigating a link with a \`target\` attribute.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener)
     */
    opener: any;
    /**
     * Returns the orientation in degrees (in 90-degree increments) of the viewport relative to the device's natural orientation.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)
     */
    readonly orientation: number;
    /**
     * The **\`originAgentCluster\`** read-only property of the Window interface returns \`true\` if this window belongs to an _origin-keyed agent cluster_: this means that the operating system has provided dedicated resources (for example an operating system process) to this window's origin that are not shared with windows from other origins.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/originAgentCluster)
     */
    readonly originAgentCluster: boolean;
    /**
     * The **\`Window.outerHeight\`** read-only property returns the height in pixels of the whole browser window, including any sidebar, window chrome, and window-resizing borders/handles.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight)
     */
    readonly outerHeight: number;
    /**
     * **\`Window.outerWidth\`** read-only property returns the width of the outside of the browser window.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth)
     */
    readonly outerWidth: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
    readonly pageXOffset: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
    readonly pageYOffset: number;
    /**
     * The **\`Window.parent\`** property is a reference to the parent of the current window or subframe.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)
     */
    readonly parent: WindowProxy;
    /**
     * Returns the \`personalbar\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
     */
    readonly personalbar: BarProp;
    /**
     * The Window property **\`screen\`** returns a reference to the screen object associated with the window.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen)
     */
    readonly screen: Screen;
    /**
     * The **\`Window.screenLeft\`** read-only property returns the horizontal distance, in CSS pixels, from the left border of the user's browser viewport to the left side of the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft)
     */
    readonly screenLeft: number;
    /**
     * The **\`Window.screenTop\`** read-only property returns the vertical distance, in CSS pixels, from the top border of the user's browser viewport to the top side of the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop)
     */
    readonly screenTop: number;
    /**
     * The **\`Window.screenX\`** read-only property returns the horizontal distance, in CSS pixels, of the left border of the user's browser viewport to the left side of the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX)
     */
    readonly screenX: number;
    /**
     * The **\`Window.screenY\`** read-only property returns the vertical distance, in CSS pixels, of the top border of the user's browser viewport to the top edge of the screen.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY)
     */
    readonly screenY: number;
    /**
     * The read-only **\`scrollX\`** property of the Window interface returns the number of pixels by which the document is currently scrolled horizontally.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
     */
    readonly scrollX: number;
    /**
     * The read-only **\`scrollY\`** property of the Window interface returns the number of pixels by which the document is currently scrolled vertically.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
     */
    readonly scrollY: number;
    /**
     * Returns the \`scrollbars\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
     */
    readonly scrollbars: BarProp;
    /**
     * The **\`Window.self\`** read-only property returns the window itself, as a WindowProxy.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self)
     */
    readonly self: Window & typeof globalThis;
    /**
     * The \`speechSynthesis\` read-only property of the Window object returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis)
     */
    readonly speechSynthesis: SpeechSynthesis;
    /**
     * The **\`status\`** property of the bar at the bottom of the browser window.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)
     */
    status: string;
    /**
     * Returns the \`statusbar\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
     */
    readonly statusbar: BarProp;
    /**
     * Returns the \`toolbar\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
     */
    readonly toolbar: BarProp;
    /**
     * Returns a reference to the topmost window in the window hierarchy.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top)
     */
    readonly top: WindowProxy | null;
    /**
     * The **\`visualViewport\`** read-only property of the Window interface returns a VisualViewport object representing the visual viewport for a given window, or \`null\` if current document is not fully active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
     */
    readonly visualViewport: VisualViewport | null;
    /**
     * The **\`window\`** property of a Window object points to the window object itself.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)
     */
    readonly window: Window & typeof globalThis;
    /**
     * \`window.alert()\` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert)
     */
    alert(message?: any): void;
    /**
     * The **\`Window.blur()\`** method does nothing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
     */
    blur(): void;
    /**
     * The **\`window.cancelIdleCallback()\`** method cancels a callback previously scheduled with window.requestIdleCallback().
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback)
     */
    cancelIdleCallback(handle: number): void;
    /**
     * The **\`Window.captureEvents()\`** method does nothing.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)
     */
    captureEvents(): void;
    /**
     * The **\`Window.close()\`** method closes the current window, or the window on which it was called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)
     */
    close(): void;
    /**
     * \`window.confirm()\` instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm)
     */
    confirm(message?: string): boolean;
    /**
     * Makes a request to bring the window to the front.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)
     */
    focus(): void;
    /**
     * The **\`Window.getComputedStyle()\`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
     */
    getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
    /**
     * The **\`getSelection()\`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection)
     */
    getSelection(): Selection | null;
    /**
     * The Window interface's **\`matchMedia()\`** method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia)
     */
    matchMedia(query: string): MediaQueryList;
    /**
     * The **\`moveBy()\`** method of the Window interface moves the current window by a specified amount.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy)
     */
    moveBy(x: number, y: number): void;
    /**
     * The **\`moveTo()\`** method of the Window interface moves the current window to the specified coordinates.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo)
     */
    moveTo(x: number, y: number): void;
    /**
     * The **\`open()\`** method of the \`Window\` interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open)
     */
    open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
    /**
     * The **\`window.postMessage()\`** method safely enables cross-origin communication between Window objects; _e.g.,_ between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)
     */
    postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
    postMessage(message: any, options?: WindowPostMessageOptions): void;
    /**
     * Opens the print dialog to print the current document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print)
     */
    print(): void;
    /**
     * \`window.prompt()\` instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt)
     */
    prompt(message?: string, _default?: string): string | null;
    /**
     * Releases the window from trapping events of a specific type.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)
     */
    releaseEvents(): void;
    /**
     * The **\`window.requestIdleCallback()\`** method queues a function to be called during a browser's idle periods.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback)
     */
    requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
    /**
     * The **\`Window.resizeBy()\`** method resizes the current window by a specified amount.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy)
     */
    resizeBy(x: number, y: number): void;
    /**
     * The **\`Window.resizeTo()\`** method dynamically resizes the window.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo)
     */
    resizeTo(width: number, height: number): void;
    /**
     * The **\`Window.scroll()\`** method scrolls the window to a particular place in the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
     */
    scroll(options?: ScrollToOptions): void;
    scroll(x: number, y: number): void;
    /**
     * The **\`Window.scrollBy()\`** method scrolls the document in the window by the given amount.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
     */
    scrollBy(options?: ScrollToOptions): void;
    scrollBy(x: number, y: number): void;
    /**
     * **\`Window.scrollTo()\`** scrolls to a particular set of coordinates in the document.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
     */
    scrollTo(options?: ScrollToOptions): void;
    scrollTo(x: number, y: number): void;
    /**
     * The **\`window.stop()\`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)
     */
    stop(): void;
    addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
    [index: number]: Window;
}

declare var Window: {
    prototype: Window;
    new(): Window;
};

interface WindowEventHandlersEventMap {
    "afterprint": Event;
    "beforeprint": Event;
    "beforeunload": BeforeUnloadEvent;
    "gamepadconnected": GamepadEvent;
    "gamepaddisconnected": GamepadEvent;
    "hashchange": HashChangeEvent;
    "languagechange": Event;
    "message": MessageEvent;
    "messageerror": MessageEvent;
    "offline": Event;
    "online": Event;
    "pagehide": PageTransitionEvent;
    "pagereveal": PageRevealEvent;
    "pageshow": PageTransitionEvent;
    "pageswap": PageSwapEvent;
    "popstate": PopStateEvent;
    "rejectionhandled": PromiseRejectionEvent;
    "storage": StorageEvent;
    "unhandledrejection": PromiseRejectionEvent;
    "unload": Event;
}

interface WindowEventHandlers {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */
    onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */
    onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */
    onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */
    ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */
    ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */
    onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */
    onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */
    onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */
    onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */
    onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */
    ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */
    onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event) */
    onpagereveal: ((this: WindowEventHandlers, ev: PageRevealEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */
    onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageswap_event) */
    onpageswap: ((this: WindowEventHandlers, ev: PageSwapEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */
    onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */
    onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */
    onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
    onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
     */
    onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
    addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

interface WindowLocalStorage {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */
    readonly localStorage: Storage;
}

interface WindowOrWorkerGlobalScope {
    /**
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)
     */
    readonly caches: CacheStorage;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
    readonly crossOriginIsolated: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
    readonly crypto: Crypto;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
    readonly indexedDB: IDBFactory;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
    readonly isSecureContext: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
    readonly origin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
    readonly performance: Performance;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
    atob(data: string): string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
    btoa(data: string): string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */
    clearInterval(id: number | undefined): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */
    clearTimeout(id: number | undefined): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */
    createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
    createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
    fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
    queueMicrotask(callback: VoidFunction): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
    reportError(e: any): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */
    setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */
    setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */
    structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
}

interface WindowSessionStorage {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */
    readonly sessionStorage: Storage;
}

interface WorkerEventMap extends AbstractWorkerEventMap, MessageEventTargetEventMap {
}

/**
 * The **\`Worker\`** interface of the Web Workers API represents a background task that can be created via script, which can send messages back to its creator.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
 */
interface Worker extends EventTarget, AbstractWorker, MessageEventTarget<Worker> {
    /**
     * The **\`postMessage()\`** method of the Worker interface sends a message to the worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
     */
    postMessage(message: any, transfer: Transferable[]): void;
    postMessage(message: any, options?: StructuredSerializeOptions): void;
    /**
     * The **\`terminate()\`** method of the Worker interface immediately terminates the Worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)
     */
    terminate(): void;
    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var Worker: {
    prototype: Worker;
    new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};

/**
 * The **\`Worklet\`** interface is a lightweight version of Web Workers and gives developers access to low-level parts of the rendering pipeline.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet)
 */
interface Worklet {
    /**
     * The **\`addModule()\`** method of the adds it to the current \`Worklet\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet/addModule)
     */
    addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
}

declare var Worklet: {
    prototype: Worklet;
    new(): Worklet;
};

/**
 * The **\`WritableStream\`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
 */
interface WritableStream<W = any> {
    /**
     * The **\`locked\`** read-only property of the WritableStream interface returns a boolean indicating whether the \`WritableStream\` is locked to a writer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)
     */
    readonly locked: boolean;
    /**
     * The **\`abort()\`** method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort)
     */
    abort(reason?: any): Promise<void>;
    /**
     * The **\`close()\`** method of the WritableStream interface closes the associated stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)
     */
    close(): Promise<void>;
    /**
     * The **\`getWriter()\`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter)
     */
    getWriter(): WritableStreamDefaultWriter<W>;
}

declare var WritableStream: {
    prototype: WritableStream;
    new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};

/**
 * The **\`WritableStreamDefaultController\`** interface of the Streams API represents a controller allowing control of a WritableStream's state.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
 */
interface WritableStreamDefaultController {
    /**
     * The read-only **\`signal\`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal)
     */
    readonly signal: AbortSignal;
    /**
     * The **\`error()\`** method of the with the associated stream to error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
     */
    error(e?: any): void;
}

declare var WritableStreamDefaultController: {
    prototype: WritableStreamDefaultController;
    new(): WritableStreamDefaultController;
};

/**
 * The **\`WritableStreamDefaultWriter\`** interface of the Streams API is the object returned by WritableStream.getWriter() and once created locks the writer to the \`WritableStream\` ensuring that no other streams can write to the underlying sink.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
 */
interface WritableStreamDefaultWriter<W = any> {
    /**
     * The **\`closed\`** read-only property of the the stream errors or the writer's lock is released.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
     */
    readonly closed: Promise<void>;
    /**
     * The **\`desiredSize\`** read-only property of the to fill the stream's internal queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
     */
    readonly desiredSize: number | null;
    /**
     * The **\`ready\`** read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
     */
    readonly ready: Promise<void>;
    /**
     * The **\`abort()\`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
     */
    abort(reason?: any): Promise<void>;
    /**
     * The **\`close()\`** method of the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
     */
    close(): Promise<void>;
    /**
     * The **\`releaseLock()\`** method of the corresponding stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
     */
    releaseLock(): void;
    /**
     * The **\`write()\`** method of the operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)
     */
    write(chunk?: W): Promise<void>;
}

declare var WritableStreamDefaultWriter: {
    prototype: WritableStreamDefaultWriter;
    new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};

/**
 * The **XMLDocument** interface represents an XML document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLDocument)
 */
interface XMLDocument extends Document {
    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var XMLDocument: {
    prototype: XMLDocument;
    new(): XMLDocument;
};

interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
    "readystatechange": Event;
}

/**
 * \`XMLHttpRequest\` (XHR) objects are used to interact with servers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)
 */
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */
    onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
    /**
     * The **XMLHttpRequest.readyState** property returns the state an XMLHttpRequest client is in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
     */
    readonly readyState: number;
    /**
     * The XMLHttpRequest **\`response\`** property returns the response's body content as an ArrayBuffer, a Blob, a Document, a JavaScript Object, or a string, depending on the value of the request's XMLHttpRequest.responseType property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
     */
    readonly response: any;
    /**
     * The read-only XMLHttpRequest property **\`responseText\`** returns the text received from a server following a request being sent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
     */
    readonly responseText: string;
    /**
     * The XMLHttpRequest property **\`responseType\`** is an enumerated string value specifying the type of data contained in the response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
     */
    responseType: XMLHttpRequestResponseType;
    /**
     * The read-only **\`XMLHttpRequest.responseURL\`** property returns the serialized URL of the response or the empty string if the URL is \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL)
     */
    readonly responseURL: string;
    /**
     * The **\`XMLHttpRequest.responseXML\`** read-only property returns a Document containing the HTML or XML retrieved by the request; or \`null\` if the request was unsuccessful, has not yet been sent, or if the data can't be parsed as XML or HTML.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML)
     */
    readonly responseXML: Document | null;
    /**
     * The read-only **\`XMLHttpRequest.status\`** property returns the numerical HTTP status code of the \`XMLHttpRequest\`'s response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status)
     */
    readonly status: number;
    /**
     * The read-only **\`XMLHttpRequest.statusText\`** property returns a string containing the response's status message as returned by the HTTP server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText)
     */
    readonly statusText: string;
    /**
     * The **\`XMLHttpRequest.timeout\`** property is an \`unsigned long\` representing the number of milliseconds a request can take before automatically being terminated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
     */
    timeout: number;
    /**
     * The XMLHttpRequest \`upload\` property returns an XMLHttpRequestUpload object that can be observed to monitor an upload's progress.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
     */
    readonly upload: XMLHttpRequestUpload;
    /**
     * The **\`XMLHttpRequest.withCredentials\`** property is a boolean value that indicates whether or not cross-site \`Access-Control\` requests should be made using credentials such as cookies, authentication headers or TLS client certificates.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
     */
    withCredentials: boolean;
    /**
     * The **\`XMLHttpRequest.abort()\`** method aborts the request if it has already been sent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
     */
    abort(): void;
    /**
     * The XMLHttpRequest method **\`getAllResponseHeaders()\`** returns all the response headers, separated by CRLF, as a string, or returns \`null\` if no response has been received.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders)
     */
    getAllResponseHeaders(): string;
    /**
     * The XMLHttpRequest method **\`getResponseHeader()\`** returns the string containing the text of a particular header's value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader)
     */
    getResponseHeader(name: string): string | null;
    /**
     * The XMLHttpRequest method **\`open()\`** initializes a newly-created request, or re-initializes an existing one.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
     */
    open(method: string, url: string | URL): void;
    open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
    /**
     * The XMLHttpRequest method **\`overrideMimeType()\`** specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
     */
    overrideMimeType(mime: string): void;
    /**
     * The XMLHttpRequest method **\`send()\`** sends the request to the server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
     */
    send(body?: Document | XMLHttpRequestBodyInit | null): void;
    /**
     * The XMLHttpRequest method **\`setRequestHeader()\`** sets the value of an HTTP request header.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)
     */
    setRequestHeader(name: string, value: string): void;
    readonly UNSENT: 0;
    readonly OPENED: 1;
    readonly HEADERS_RECEIVED: 2;
    readonly LOADING: 3;
    readonly DONE: 4;
    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var XMLHttpRequest: {
    prototype: XMLHttpRequest;
    new(): XMLHttpRequest;
    readonly UNSENT: 0;
    readonly OPENED: 1;
    readonly HEADERS_RECEIVED: 2;
    readonly LOADING: 3;
    readonly DONE: 4;
};

interface XMLHttpRequestEventTargetEventMap {
    "abort": ProgressEvent<XMLHttpRequestEventTarget>;
    "error": ProgressEvent<XMLHttpRequestEventTarget>;
    "load": ProgressEvent<XMLHttpRequestEventTarget>;
    "loadend": ProgressEvent<XMLHttpRequestEventTarget>;
    "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
    "progress": ProgressEvent<XMLHttpRequestEventTarget>;
    "timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}

/**
 * \`XMLHttpRequestEventTarget\` is the interface that describes the event handlers shared on XMLHttpRequest and XMLHttpRequestUpload.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget)
 */
interface XMLHttpRequestEventTarget extends EventTarget {
    onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var XMLHttpRequestEventTarget: {
    prototype: XMLHttpRequestEventTarget;
    new(): XMLHttpRequestEventTarget;
};

/**
 * The **\`XMLHttpRequestUpload\`** interface represents the upload process for a specific XMLHttpRequest.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload)
 */
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var XMLHttpRequestUpload: {
    prototype: XMLHttpRequestUpload;
    new(): XMLHttpRequestUpload;
};

/**
 * The \`XMLSerializer\` interface provides the XMLSerializer.serializeToString method to construct an XML string representing a DOM tree.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer)
 */
interface XMLSerializer {
    /**
     * The XMLSerializer method **\`serializeToString()\`** constructs a string representing the specified DOM tree in XML form.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString)
     */
    serializeToString(root: Node): string;
}

declare var XMLSerializer: {
    prototype: XMLSerializer;
    new(): XMLSerializer;
};

/**
 * The \`XPathEvaluator\` interface allows to compile and evaluate XPath expressions.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathEvaluator)
 */
interface XPathEvaluator extends XPathEvaluatorBase {
}

declare var XPathEvaluator: {
    prototype: XPathEvaluator;
    new(): XPathEvaluator;
};

interface XPathEvaluatorBase {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createExpression) */
    createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver)
     */
    createNSResolver(nodeResolver: Node): Node;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/evaluate) */
    evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
}

/**
 * This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information from its DOM tree.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression)
 */
interface XPathExpression {
    /**
     * The **\`evaluate()\`** method of the returns an XPathResult.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate)
     */
    evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
}

declare var XPathExpression: {
    prototype: XPathExpression;
    new(): XPathExpression;
};

/**
 * The **\`XPathResult\`** interface represents the results generated by evaluating an XPath expression within the context of a given node.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult)
 */
interface XPathResult {
    /**
     * The read-only **\`booleanValue\`** property of the The return value is the boolean value of the \`XPathResult\` returned by In case XPathResult.resultType is not \`BOOLEAN_TYPE\`, a The following example shows the use of the \`booleanValue\` property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue)
     */
    readonly booleanValue: boolean;
    /**
     * The read-only **\`invalidIteratorState\`** property of the is \`true\` if XPathResult.resultType is \`UNORDERED_NODE_ITERATOR_TYPE\` or \`ORDERED_NODE_ITERATOR_TYPE\` and the document has been modified since this result was returned.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState)
     */
    readonly invalidIteratorState: boolean;
    /**
     * The read-only **\`numberValue\`** property of the The return value is the numeric value of the \`XPathResult\` returned by In case XPathResult.resultType is not \`NUMBER_TYPE\`, a The following example shows the use of the \`numberValue\` property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue)
     */
    readonly numberValue: number;
    /**
     * The read-only **\`resultType\`** property of the the type constants.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType)
     */
    readonly resultType: number;
    /**
     * The read-only **\`singleNodeValue\`** property of the \`null\` in case no node was matched of a result with \`FIRST_ORDERED_NODE_TYPE\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue)
     */
    readonly singleNodeValue: Node | null;
    /**
     * The read-only **\`snapshotLength\`** property of the snapshot.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength)
     */
    readonly snapshotLength: number;
    /**
     * The read-only **\`stringValue\`** property of the The return value is the string value of the \`XPathResult\` returned by In case XPathResult.resultType is not \`STRING_TYPE\`, a The following example shows the use of the \`stringValue\` property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue)
     */
    readonly stringValue: string;
    /**
     * The **\`iterateNext()\`** method of the next node from it or \`null\` if there are no more nodes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext)
     */
    iterateNext(): Node | null;
    /**
     * The **\`snapshotItem()\`** method of the \`null\` in case the index is not within the range of nodes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotItem)
     */
    snapshotItem(index: number): Node | null;
    readonly ANY_TYPE: 0;
    readonly NUMBER_TYPE: 1;
    readonly STRING_TYPE: 2;
    readonly BOOLEAN_TYPE: 3;
    readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
    readonly ORDERED_NODE_ITERATOR_TYPE: 5;
    readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
    readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
    readonly ANY_UNORDERED_NODE_TYPE: 8;
    readonly FIRST_ORDERED_NODE_TYPE: 9;
}

declare var XPathResult: {
    prototype: XPathResult;
    new(): XPathResult;
    readonly ANY_TYPE: 0;
    readonly NUMBER_TYPE: 1;
    readonly STRING_TYPE: 2;
    readonly BOOLEAN_TYPE: 3;
    readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
    readonly ORDERED_NODE_ITERATOR_TYPE: 5;
    readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
    readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
    readonly ANY_UNORDERED_NODE_TYPE: 8;
    readonly FIRST_ORDERED_NODE_TYPE: 9;
};

/**
 * An **\`XSLTProcessor\`** applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor)
 */
interface XSLTProcessor {
    /**
     * The \`clearParameters()\` method of the XSLTProcessor interface removes all parameters (\`<xsl:param>\`) and their values from the stylesheet imported in the processor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters)
     */
    clearParameters(): void;
    /**
     * The \`getParameter()\` method of the XSLTProcessor interface returns the value of a parameter (\`<xsl:param>\`) from the stylesheet imported in the processor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter)
     */
    getParameter(namespaceURI: string | null, localName: string): any;
    /**
     * The \`importStylesheet()\` method of the XSLTProcessor interface imports an XSLT stylesheet for the processor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet)
     */
    importStylesheet(style: Node): void;
    /**
     * The \`removeParameter()\` method of the XSLTProcessor interface removes the parameter (\`<xsl:param>\`) and its value from the stylesheet imported in the processor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter)
     */
    removeParameter(namespaceURI: string | null, localName: string): void;
    /**
     * The \`reset()\` method of the XSLTProcessor interface removes all parameters (\`<xsl:param>\`) and the XSLT stylesheet from the processor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset)
     */
    reset(): void;
    /**
     * The \`setParameter()\` method of the XSLTProcessor interface sets the value of a parameter (\`<xsl:param>\`) in the stylesheet imported in the processor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter)
     */
    setParameter(namespaceURI: string | null, localName: string, value: any): void;
    /**
     * The \`transformToDocument()\` method of the XSLTProcessor interface transforms the provided Node source to a Document using the XSLT stylesheet associated with \`XSLTProcessor\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument)
     */
    transformToDocument(source: Node): Document;
    /**
     * The \`transformToFragment()\` method of the XSLTProcessor interface transforms a provided Node source to a DocumentFragment using the XSLT stylesheet associated with the \`XSLTProcessor\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment)
     */
    transformToFragment(source: Node, output: Document): DocumentFragment;
}

declare var XSLTProcessor: {
    prototype: XSLTProcessor;
    new(): XSLTProcessor;
};

/** The **\`CSS\`** interface holds useful CSS-related methods. */
declare namespace CSS {
    /**
     * The static, read-only **\`highlights\`** property of the CSS interface provides access to the \`HighlightRegistry\` used to style arbitrary text ranges using the css_custom_highlight_api.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static)
     */
    var highlights: HighlightRegistry;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function Hz(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function Q(value: number): CSSUnitValue;
    function cap(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function ch(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function cm(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function cqb(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function cqh(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function cqi(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function cqmax(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function cqmin(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function cqw(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function deg(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function dpcm(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function dpi(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function dppx(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function dvb(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function dvh(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function dvi(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function dvmax(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function dvmin(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function dvw(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function em(value: number): CSSUnitValue;
    /**
     * The **\`CSS.escape()\`** static method returns a string containing the escaped string passed as parameter, mostly for use as part of a CSS selector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static)
     */
    function escape(ident: string): string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function ex(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function fr(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function grad(value: number): CSSUnitValue;
    function ic(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function kHz(value: number): CSSUnitValue;
    function lh(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function lvb(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function lvh(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function lvi(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function lvmax(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function lvmin(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function lvw(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function mm(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function ms(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function number(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function pc(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function percent(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function pt(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function px(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function rad(value: number): CSSUnitValue;
    function rcap(value: number): CSSUnitValue;
    function rch(value: number): CSSUnitValue;
    /**
     * The **\`CSS.registerProperty()\`** static method registers custom properties, allowing for property type checking, default values, and properties that do or do not inherit their value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static)
     */
    function registerProperty(definition: PropertyDefinition): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function rem(value: number): CSSUnitValue;
    function rex(value: number): CSSUnitValue;
    function ric(value: number): CSSUnitValue;
    function rlh(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function s(value: number): CSSUnitValue;
    /**
     * The **\`CSS.supports()\`** static method returns a boolean value indicating if the browser supports a given CSS feature, or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static)
     */
    function supports(property: string, value: string): boolean;
    function supports(conditionText: string): boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function svb(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function svh(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function svi(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function svmax(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function svmin(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function svw(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function turn(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function vb(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function vh(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function vi(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function vmax(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function vmin(value: number): CSSUnitValue;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
    function vw(value: number): CSSUnitValue;
}

declare namespace WebAssembly {
    interface CompileError extends Error {
    }

    var CompileError: {
        prototype: CompileError;
        new(message?: string): CompileError;
        (message?: string): CompileError;
    };

    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global) */
    interface Global<T extends ValueType = ValueType> {
        value: ValueTypeMap[T];
        valueOf(): ValueTypeMap[T];
    }

    var Global: {
        prototype: Global;
        new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
    };

    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance) */
    interface Instance {
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports) */
        readonly exports: Exports;
    }

    var Instance: {
        prototype: Instance;
        new(module: Module, importObject?: Imports): Instance;
    };

    interface LinkError extends Error {
    }

    var LinkError: {
        prototype: LinkError;
        new(message?: string): LinkError;
        (message?: string): LinkError;
    };

    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory) */
    interface Memory {
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer) */
        readonly buffer: ArrayBuffer;
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */
        grow(delta: number): number;
    }

    var Memory: {
        prototype: Memory;
        new(descriptor: MemoryDescriptor): Memory;
    };

    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module) */
    interface Module {
    }

    var Module: {
        prototype: Module;
        new(bytes: BufferSource): Module;
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static) */
        customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static) */
        exports(moduleObject: Module): ModuleExportDescriptor[];
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static) */
        imports(moduleObject: Module): ModuleImportDescriptor[];
    };

    interface RuntimeError extends Error {
    }

    var RuntimeError: {
        prototype: RuntimeError;
        new(message?: string): RuntimeError;
        (message?: string): RuntimeError;
    };

    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table) */
    interface Table {
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */
        readonly length: number;
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */
        get(index: number): any;
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */
        grow(delta: number, value?: any): number;
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */
        set(index: number, value?: any): void;
    }

    var Table: {
        prototype: Table;
        new(descriptor: TableDescriptor, value?: any): Table;
    };

    interface GlobalDescriptor<T extends ValueType = ValueType> {
        mutable?: boolean;
        value: T;
    }

    interface MemoryDescriptor {
        initial: number;
        maximum?: number;
        shared?: boolean;
    }

    interface ModuleExportDescriptor {
        kind: ImportExportKind;
        name: string;
    }

    interface ModuleImportDescriptor {
        kind: ImportExportKind;
        module: string;
        name: string;
    }

    interface TableDescriptor {
        element: TableKind;
        initial: number;
        maximum?: number;
    }

    interface ValueTypeMap {
        anyfunc: Function;
        externref: any;
        f32: number;
        f64: number;
        i32: number;
        i64: bigint;
        v128: never;
    }

    interface WebAssemblyInstantiatedSource {
        instance: Instance;
        module: Module;
    }

    type ImportExportKind = "function" | "global" | "memory" | "table";
    type TableKind = "anyfunc" | "externref";
    type ExportValue = Function | Global | Memory | Table;
    type Exports = Record<string, ExportValue>;
    type ImportValue = ExportValue | number;
    type Imports = Record<string, ModuleImports>;
    type ModuleImports = Record<string, ImportValue>;
    type ValueType = keyof ValueTypeMap;
    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
    function compile(bytes: BufferSource): Promise<Module>;
    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
    function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
    function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
    function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
    function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
    function validate(bytes: BufferSource): boolean;
}

/** The **\`console\`** object provides access to the debugging console (e.g., the Web console in Firefox). */
/**
 * The **\`console\`** object provides access to the debugging console (e.g., the Web console in Firefox).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console)
 */
interface Console {
    /**
     * The **\`console.assert()\`** static method writes an error message to the console if the assertion is false.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static)
     */
    assert(condition?: boolean, ...data: any[]): void;
    /**
     * The **\`console.clear()\`** static method clears the console if possible.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)
     */
    clear(): void;
    /**
     * The **\`console.count()\`** static method logs the number of times that this particular call to \`count()\` has been called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)
     */
    count(label?: string): void;
    /**
     * The **\`console.countReset()\`** static method resets counter used with console/count_static.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
     */
    countReset(label?: string): void;
    /**
     * The **\`console.debug()\`** static method outputs a message to the console at the 'debug' log level.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)
     */
    debug(...data: any[]): void;
    /**
     * The **\`console.dir()\`** static method displays a list of the properties of the specified JavaScript object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)
     */
    dir(item?: any, options?: any): void;
    /**
     * The **\`console.dirxml()\`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)
     */
    dirxml(...data: any[]): void;
    /**
     * The **\`console.error()\`** static method outputs a message to the console at the 'error' log level.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)
     */
    error(...data: any[]): void;
    /**
     * The **\`console.group()\`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
     */
    group(...data: any[]): void;
    /**
     * The **\`console.groupCollapsed()\`** static method creates a new inline group in the console.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)
     */
    groupCollapsed(...data: any[]): void;
    /**
     * The **\`console.groupEnd()\`** static method exits the current inline group in the console.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)
     */
    groupEnd(): void;
    /**
     * The **\`console.info()\`** static method outputs a message to the console at the 'info' log level.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)
     */
    info(...data: any[]): void;
    /**
     * The **\`console.log()\`** static method outputs a message to the console.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)
     */
    log(...data: any[]): void;
    /**
     * The **\`console.table()\`** static method displays tabular data as a table.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)
     */
    table(tabularData?: any, properties?: string[]): void;
    /**
     * The **\`console.time()\`** static method starts a timer you can use to track how long an operation takes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)
     */
    time(label?: string): void;
    /**
     * The **\`console.timeEnd()\`** static method stops a timer that was previously started by calling console/time_static.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
     */
    timeEnd(label?: string): void;
    /**
     * The **\`console.timeLog()\`** static method logs the current value of a timer that was previously started by calling console/time_static.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
     */
    timeLog(label?: string, ...data: any[]): void;
    timeStamp(label?: string): void;
    /**
     * The **\`console.trace()\`** static method outputs a stack trace to the console.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)
     */
    trace(...data: any[]): void;
    /**
     * The **\`console.warn()\`** static method outputs a warning message to the console at the 'warning' log level.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)
     */
    warn(...data: any[]): void;
}

declare var console: Console;

interface AudioDataOutputCallback {
    (output: AudioData): void;
}

interface BlobCallback {
    (blob: Blob | null): void;
}

interface CustomElementConstructor {
    new (...params: any[]): HTMLElement;
}

interface DecodeErrorCallback {
    (error: DOMException): void;
}

interface DecodeSuccessCallback {
    (decodedData: AudioBuffer): void;
}

interface EncodedAudioChunkOutputCallback {
    (output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void;
}

interface EncodedVideoChunkOutputCallback {
    (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
}

interface ErrorCallback {
    (err: DOMException): void;
}

interface FileCallback {
    (file: File): void;
}

interface FileSystemEntriesCallback {
    (entries: FileSystemEntry[]): void;
}

interface FileSystemEntryCallback {
    (entry: FileSystemEntry): void;
}

interface FrameRequestCallback {
    (time: DOMHighResTimeStamp): void;
}

interface FunctionStringCallback {
    (data: string): void;
}

interface IdleRequestCallback {
    (deadline: IdleDeadline): void;
}

interface IntersectionObserverCallback {
    (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
}

interface LockGrantedCallback<T> {
    (lock: Lock | null): T;
}

interface MediaSessionActionHandler {
    (details: MediaSessionActionDetails): void;
}

interface MutationCallback {
    (mutations: MutationRecord[], observer: MutationObserver): void;
}

interface NotificationPermissionCallback {
    (permission: NotificationPermission): void;
}

interface OnBeforeUnloadEventHandlerNonNull {
    (event: Event): string | null;
}

interface OnErrorEventHandlerNonNull {
    (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}

interface PerformanceObserverCallback {
    (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}

interface PositionCallback {
    (position: GeolocationPosition): void;
}

interface PositionErrorCallback {
    (positionError: GeolocationPositionError): void;
}

interface QueuingStrategySize<T = any> {
    (chunk: T): number;
}

interface RTCPeerConnectionErrorCallback {
    (error: DOMException): void;
}

interface RTCSessionDescriptionCallback {
    (description: RTCSessionDescriptionInit): void;
}

interface RemotePlaybackAvailabilityCallback {
    (available: boolean): void;
}

interface ReportingObserverCallback {
    (reports: Report[], observer: ReportingObserver): void;
}

interface ResizeObserverCallback {
    (entries: ResizeObserverEntry[], observer: ResizeObserver): void;
}

interface TransformerFlushCallback<O> {
    (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}

interface TransformerStartCallback<O> {
    (controller: TransformStreamDefaultController<O>): any;
}

interface TransformerTransformCallback<I, O> {
    (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}

interface UnderlyingSinkAbortCallback {
    (reason?: any): void | PromiseLike<void>;
}

interface UnderlyingSinkCloseCallback {
    (): void | PromiseLike<void>;
}

interface UnderlyingSinkStartCallback {
    (controller: WritableStreamDefaultController): any;
}

interface UnderlyingSinkWriteCallback<W> {
    (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}

interface UnderlyingSourceCancelCallback {
    (reason?: any): void | PromiseLike<void>;
}

interface UnderlyingSourcePullCallback<R> {
    (controller: ReadableStreamController<R>): void | PromiseLike<void>;
}

interface UnderlyingSourceStartCallback<R> {
    (controller: ReadableStreamController<R>): any;
}

interface VideoFrameOutputCallback {
    (output: VideoFrame): void;
}

interface VideoFrameRequestCallback {
    (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
}

interface ViewTransitionUpdateCallback {
    (): any;
}

interface VoidFunction {
    (): void;
}

interface WebCodecsErrorCallback {
    (error: DOMException): void;
}

interface HTMLElementTagNameMap {
    "a": HTMLAnchorElement;
    "abbr": HTMLElement;
    "address": HTMLElement;
    "area": HTMLAreaElement;
    "article": HTMLElement;
    "aside": HTMLElement;
    "audio": HTMLAudioElement;
    "b": HTMLElement;
    "base": HTMLBaseElement;
    "bdi": HTMLElement;
    "bdo": HTMLElement;
    "blockquote": HTMLQuoteElement;
    "body": HTMLBodyElement;
    "br": HTMLBRElement;
    "button": HTMLButtonElement;
    "canvas": HTMLCanvasElement;
    "caption": HTMLTableCaptionElement;
    "cite": HTMLElement;
    "code": HTMLElement;
    "col": HTMLTableColElement;
    "colgroup": HTMLTableColElement;
    "data": HTMLDataElement;
    "datalist": HTMLDataListElement;
    "dd": HTMLElement;
    "del": HTMLModElement;
    "details": HTMLDetailsElement;
    "dfn": HTMLElement;
    "dialog": HTMLDialogElement;
    "div": HTMLDivElement;
    "dl": HTMLDListElement;
    "dt": HTMLElement;
    "em": HTMLElement;
    "embed": HTMLEmbedElement;
    "fieldset": HTMLFieldSetElement;
    "figcaption": HTMLElement;
    "figure": HTMLElement;
    "footer": HTMLElement;
    "form": HTMLFormElement;
    "h1": HTMLHeadingElement;
    "h2": HTMLHeadingElement;
    "h3": HTMLHeadingElement;
    "h4": HTMLHeadingElement;
    "h5": HTMLHeadingElement;
    "h6": HTMLHeadingElement;
    "head": HTMLHeadElement;
    "header": HTMLElement;
    "hgroup": HTMLElement;
    "hr": HTMLHRElement;
    "html": HTMLHtmlElement;
    "i": HTMLElement;
    "iframe": HTMLIFrameElement;
    "img": HTMLImageElement;
    "input": HTMLInputElement;
    "ins": HTMLModElement;
    "kbd": HTMLElement;
    "label": HTMLLabelElement;
    "legend": HTMLLegendElement;
    "li": HTMLLIElement;
    "link": HTMLLinkElement;
    "main": HTMLElement;
    "map": HTMLMapElement;
    "mark": HTMLElement;
    "menu": HTMLMenuElement;
    "meta": HTMLMetaElement;
    "meter": HTMLMeterElement;
    "nav": HTMLElement;
    "noscript": HTMLElement;
    "object": HTMLObjectElement;
    "ol": HTMLOListElement;
    "optgroup": HTMLOptGroupElement;
    "option": HTMLOptionElement;
    "output": HTMLOutputElement;
    "p": HTMLParagraphElement;
    "picture": HTMLPictureElement;
    "pre": HTMLPreElement;
    "progress": HTMLProgressElement;
    "q": HTMLQuoteElement;
    "rp": HTMLElement;
    "rt": HTMLElement;
    "ruby": HTMLElement;
    "s": HTMLElement;
    "samp": HTMLElement;
    "script": HTMLScriptElement;
    "search": HTMLElement;
    "section": HTMLElement;
    "select": HTMLSelectElement;
    "slot": HTMLSlotElement;
    "small": HTMLElement;
    "source": HTMLSourceElement;
    "span": HTMLSpanElement;
    "strong": HTMLElement;
    "style": HTMLStyleElement;
    "sub": HTMLElement;
    "summary": HTMLElement;
    "sup": HTMLElement;
    "table": HTMLTableElement;
    "tbody": HTMLTableSectionElement;
    "td": HTMLTableCellElement;
    "template": HTMLTemplateElement;
    "textarea": HTMLTextAreaElement;
    "tfoot": HTMLTableSectionElement;
    "th": HTMLTableCellElement;
    "thead": HTMLTableSectionElement;
    "time": HTMLTimeElement;
    "title": HTMLTitleElement;
    "tr": HTMLTableRowElement;
    "track": HTMLTrackElement;
    "u": HTMLElement;
    "ul": HTMLUListElement;
    "var": HTMLElement;
    "video": HTMLVideoElement;
    "wbr": HTMLElement;
}

interface HTMLElementDeprecatedTagNameMap {
    "acronym": HTMLElement;
    "applet": HTMLUnknownElement;
    "basefont": HTMLElement;
    "bgsound": HTMLUnknownElement;
    "big": HTMLElement;
    "blink": HTMLUnknownElement;
    "center": HTMLElement;
    "dir": HTMLDirectoryElement;
    "font": HTMLFontElement;
    "frame": HTMLFrameElement;
    "frameset": HTMLFrameSetElement;
    "isindex": HTMLUnknownElement;
    "keygen": HTMLUnknownElement;
    "listing": HTMLPreElement;
    "marquee": HTMLMarqueeElement;
    "menuitem": HTMLElement;
    "multicol": HTMLUnknownElement;
    "nextid": HTMLUnknownElement;
    "nobr": HTMLElement;
    "noembed": HTMLElement;
    "noframes": HTMLElement;
    "param": HTMLParamElement;
    "plaintext": HTMLElement;
    "rb": HTMLElement;
    "rtc": HTMLElement;
    "spacer": HTMLUnknownElement;
    "strike": HTMLElement;
    "tt": HTMLElement;
    "xmp": HTMLPreElement;
}

interface SVGElementTagNameMap {
    "a": SVGAElement;
    "animate": SVGAnimateElement;
    "animateMotion": SVGAnimateMotionElement;
    "animateTransform": SVGAnimateTransformElement;
    "circle": SVGCircleElement;
    "clipPath": SVGClipPathElement;
    "defs": SVGDefsElement;
    "desc": SVGDescElement;
    "ellipse": SVGEllipseElement;
    "feBlend": SVGFEBlendElement;
    "feColorMatrix": SVGFEColorMatrixElement;
    "feComponentTransfer": SVGFEComponentTransferElement;
    "feComposite": SVGFECompositeElement;
    "feConvolveMatrix": SVGFEConvolveMatrixElement;
    "feDiffuseLighting": SVGFEDiffuseLightingElement;
    "feDisplacementMap": SVGFEDisplacementMapElement;
    "feDistantLight": SVGFEDistantLightElement;
    "feDropShadow": SVGFEDropShadowElement;
    "feFlood": SVGFEFloodElement;
    "feFuncA": SVGFEFuncAElement;
    "feFuncB": SVGFEFuncBElement;
    "feFuncG": SVGFEFuncGElement;
    "feFuncR": SVGFEFuncRElement;
    "feGaussianBlur": SVGFEGaussianBlurElement;
    "feImage": SVGFEImageElement;
    "feMerge": SVGFEMergeElement;
    "feMergeNode": SVGFEMergeNodeElement;
    "feMorphology": SVGFEMorphologyElement;
    "feOffset": SVGFEOffsetElement;
    "fePointLight": SVGFEPointLightElement;
    "feSpecularLighting": SVGFESpecularLightingElement;
    "feSpotLight": SVGFESpotLightElement;
    "feTile": SVGFETileElement;
    "feTurbulence": SVGFETurbulenceElement;
    "filter": SVGFilterElement;
    "foreignObject": SVGForeignObjectElement;
    "g": SVGGElement;
    "image": SVGImageElement;
    "line": SVGLineElement;
    "linearGradient": SVGLinearGradientElement;
    "marker": SVGMarkerElement;
    "mask": SVGMaskElement;
    "metadata": SVGMetadataElement;
    "mpath": SVGMPathElement;
    "path": SVGPathElement;
    "pattern": SVGPatternElement;
    "polygon": SVGPolygonElement;
    "polyline": SVGPolylineElement;
    "radialGradient": SVGRadialGradientElement;
    "rect": SVGRectElement;
    "script": SVGScriptElement;
    "set": SVGSetElement;
    "stop": SVGStopElement;
    "style": SVGStyleElement;
    "svg": SVGSVGElement;
    "switch": SVGSwitchElement;
    "symbol": SVGSymbolElement;
    "text": SVGTextElement;
    "textPath": SVGTextPathElement;
    "title": SVGTitleElement;
    "tspan": SVGTSpanElement;
    "use": SVGUseElement;
    "view": SVGViewElement;
}

interface MathMLElementTagNameMap {
    "annotation": MathMLElement;
    "annotation-xml": MathMLElement;
    "maction": MathMLElement;
    "math": MathMLElement;
    "merror": MathMLElement;
    "mfrac": MathMLElement;
    "mi": MathMLElement;
    "mmultiscripts": MathMLElement;
    "mn": MathMLElement;
    "mo": MathMLElement;
    "mover": MathMLElement;
    "mpadded": MathMLElement;
    "mphantom": MathMLElement;
    "mprescripts": MathMLElement;
    "mroot": MathMLElement;
    "mrow": MathMLElement;
    "ms": MathMLElement;
    "mspace": MathMLElement;
    "msqrt": MathMLElement;
    "mstyle": MathMLElement;
    "msub": MathMLElement;
    "msubsup": MathMLElement;
    "msup": MathMLElement;
    "mtable": MathMLElement;
    "mtd": MathMLElement;
    "mtext": MathMLElement;
    "mtr": MathMLElement;
    "munder": MathMLElement;
    "munderover": MathMLElement;
    "semantics": MathMLElement;
}

/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;

declare var Audio: {
    new(src?: string): HTMLAudioElement;
};
declare var Image: {
    new(width?: number, height?: number): HTMLImageElement;
};
declare var Option: {
    new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
};
/**
 * @deprecated This is a legacy alias of \`navigator\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)
 */
declare var clientInformation: Navigator;
/**
 * The **\`Window.closed\`** read-only property indicates whether the referenced window is closed or not.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)
 */
declare var closed: boolean;
/**
 * The **\`cookieStore\`** read-only property of the Window interface returns a reference to the CookieStore object for the current document context.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cookieStore)
 */
declare var cookieStore: CookieStore;
/**
 * The **\`customElements\`** read-only property of the Window interface returns a reference to the CustomElementRegistry object, which can be used to register new custom elements and get information about previously registered custom elements.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)
 */
declare var customElements: CustomElementRegistry;
/**
 * The **\`devicePixelRatio\`** of Window interface returns the ratio of the resolution in _physical pixels_ to the resolution in _CSS pixels_ for the current display device.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio)
 */
declare var devicePixelRatio: number;
/**
 * **\`window.document\`** returns a reference to the document contained in the window.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document)
 */
declare var document: Document;
/**
 * The read-only Window property **\`event\`** returns the Event which is currently being handled by the site's code.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)
 */
declare var event: Event | undefined;
/**
 * The \`external\` property of the Window API returns an instance of the \`External\` interface, which was intended to contain functions related to adding external search providers to the browser.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)
 */
declare var external: External;
/**
 * The **\`Window.frameElement\`** property returns the element (such as iframe or object) in which the window is embedded.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement)
 */
declare var frameElement: Element | null;
/**
 * Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames)
 */
declare var frames: WindowProxy;
/**
 * The \`Window.history\` read-only property returns a reference to the History object, which provides an interface for manipulating the browser _session history_ (pages visited in the tab or frame that the current page is loaded in).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history)
 */
declare var history: History;
/**
 * The read-only **\`innerHeight\`** property of the including the height of the horizontal scroll bar, if present.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight)
 */
declare var innerHeight: number;
/**
 * The read-only Window property **\`innerWidth\`** returns the interior width of the window in pixels (that is, the width of the window's layout viewport).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth)
 */
declare var innerWidth: number;
/**
 * Returns the number of frames (either frame or A number.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length)
 */
declare var length: number;
/**
 * The **\`Window.location\`** read-only property returns a Location object with information about the current location of the document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location)
 */
declare var location: Location;
/**
 * Returns the \`locationbar\` object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
 */
declare var locationbar: BarProp;
/**
 * Returns the \`menubar\` object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)
 */
declare var menubar: BarProp;
/**
 * The \`Window.name\` property gets/sets the name of the window's browsing context.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name)
 */
/** @deprecated */
declare const name: void;
/**
 * The **\`Window.navigator\`** read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)
 */
declare var navigator: Navigator;
/**
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)
 */
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/**
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
 */
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)
 */
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)
 */
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
/**
 * The Window interface's **\`opener\`** property returns a reference to the window that opened the window, either with Window.open, or by navigating a link with a \`target\` attribute.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener)
 */
declare var opener: any;
/**
 * Returns the orientation in degrees (in 90-degree increments) of the viewport relative to the device's natural orientation.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)
 */
declare var orientation: number;
/**
 * The **\`originAgentCluster\`** read-only property of the Window interface returns \`true\` if this window belongs to an _origin-keyed agent cluster_: this means that the operating system has provided dedicated resources (for example an operating system process) to this window's origin that are not shared with windows from other origins.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/originAgentCluster)
 */
declare var originAgentCluster: boolean;
/**
 * The **\`Window.outerHeight\`** read-only property returns the height in pixels of the whole browser window, including any sidebar, window chrome, and window-resizing borders/handles.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight)
 */
declare var outerHeight: number;
/**
 * **\`Window.outerWidth\`** read-only property returns the width of the outside of the browser window.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth)
 */
declare var outerWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
declare var pageXOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
declare var pageYOffset: number;
/**
 * The **\`Window.parent\`** property is a reference to the parent of the current window or subframe.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)
 */
declare var parent: WindowProxy;
/**
 * Returns the \`personalbar\` object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
 */
declare var personalbar: BarProp;
/**
 * The Window property **\`screen\`** returns a reference to the screen object associated with the window.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen)
 */
declare var screen: Screen;
/**
 * The **\`Window.screenLeft\`** read-only property returns the horizontal distance, in CSS pixels, from the left border of the user's browser viewport to the left side of the screen.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft)
 */
declare var screenLeft: number;
/**
 * The **\`Window.screenTop\`** read-only property returns the vertical distance, in CSS pixels, from the top border of the user's browser viewport to the top side of the screen.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop)
 */
declare var screenTop: number;
/**
 * The **\`Window.screenX\`** read-only property returns the horizontal distance, in CSS pixels, of the left border of the user's browser viewport to the left side of the screen.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX)
 */
declare var screenX: number;
/**
 * The **\`Window.screenY\`** read-only property returns the vertical distance, in CSS pixels, of the top border of the user's browser viewport to the top edge of the screen.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY)
 */
declare var screenY: number;
/**
 * The read-only **\`scrollX\`** property of the Window interface returns the number of pixels by which the document is currently scrolled horizontally.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
 */
declare var scrollX: number;
/**
 * The read-only **\`scrollY\`** property of the Window interface returns the number of pixels by which the document is currently scrolled vertically.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
 */
declare var scrollY: number;
/**
 * Returns the \`scrollbars\` object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
 */
declare var scrollbars: BarProp;
/**
 * The **\`Window.self\`** read-only property returns the window itself, as a WindowProxy.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self)
 */
declare var self: Window & typeof globalThis;
/**
 * The \`speechSynthesis\` read-only property of the Window object returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis)
 */
declare var speechSynthesis: SpeechSynthesis;
/**
 * The **\`status\`** property of the bar at the bottom of the browser window.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)
 */
declare var status: string;
/**
 * Returns the \`statusbar\` object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
 */
declare var statusbar: BarProp;
/**
 * Returns the \`toolbar\` object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
 */
declare var toolbar: BarProp;
/**
 * Returns a reference to the topmost window in the window hierarchy.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top)
 */
declare var top: WindowProxy | null;
/**
 * The **\`visualViewport\`** read-only property of the Window interface returns a VisualViewport object representing the visual viewport for a given window, or \`null\` if current document is not fully active.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport)
 */
declare var visualViewport: VisualViewport | null;
/**
 * The **\`window\`** property of a Window object points to the window object itself.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window)
 */
declare var window: Window & typeof globalThis;
/**
 * \`window.alert()\` instructs the browser to display a dialog with an optional message, and to wait until the user dismisses the dialog.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert)
 */
declare function alert(message?: any): void;
/**
 * The **\`Window.blur()\`** method does nothing.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
 */
declare function blur(): void;
/**
 * The **\`window.cancelIdleCallback()\`** method cancels a callback previously scheduled with window.requestIdleCallback().
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback)
 */
declare function cancelIdleCallback(handle: number): void;
/**
 * The **\`Window.captureEvents()\`** method does nothing.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)
 */
declare function captureEvents(): void;
/**
 * The **\`Window.close()\`** method closes the current window, or the window on which it was called.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)
 */
declare function close(): void;
/**
 * \`window.confirm()\` instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm)
 */
declare function confirm(message?: string): boolean;
/**
 * Makes a request to bring the window to the front.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)
 */
declare function focus(): void;
/**
 * The **\`Window.getComputedStyle()\`** method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle)
 */
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
/**
 * The **\`getSelection()\`** method of the Window interface returns the Selection object associated with the window's document, representing the range of text selected by the user or the current position of the caret.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection)
 */
declare function getSelection(): Selection | null;
/**
 * The Window interface's **\`matchMedia()\`** method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia)
 */
declare function matchMedia(query: string): MediaQueryList;
/**
 * The **\`moveBy()\`** method of the Window interface moves the current window by a specified amount.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy)
 */
declare function moveBy(x: number, y: number): void;
/**
 * The **\`moveTo()\`** method of the Window interface moves the current window to the specified coordinates.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo)
 */
declare function moveTo(x: number, y: number): void;
/**
 * The **\`open()\`** method of the \`Window\` interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open)
 */
declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
 * The **\`window.postMessage()\`** method safely enables cross-origin communication between Window objects; _e.g.,_ between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)
 */
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
/**
 * Opens the print dialog to print the current document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print)
 */
declare function print(): void;
/**
 * \`window.prompt()\` instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt)
 */
declare function prompt(message?: string, _default?: string): string | null;
/**
 * Releases the window from trapping events of a specific type.
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)
 */
declare function releaseEvents(): void;
/**
 * The **\`window.requestIdleCallback()\`** method queues a function to be called during a browser's idle periods.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback)
 */
declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
/**
 * The **\`Window.resizeBy()\`** method resizes the current window by a specified amount.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy)
 */
declare function resizeBy(x: number, y: number): void;
/**
 * The **\`Window.resizeTo()\`** method dynamically resizes the window.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo)
 */
declare function resizeTo(width: number, height: number): void;
/**
 * The **\`Window.scroll()\`** method scrolls the window to a particular place in the document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll)
 */
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
/**
 * The **\`Window.scrollBy()\`** method scrolls the document in the window by the given amount.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy)
 */
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
/**
 * **\`Window.scrollTo()\`** scrolls to a particular set of coordinates in the document.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo)
 */
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/**
 * The **\`window.stop()\`** stops further resource loading in the current browsing context, equivalent to the stop button in the browser.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)
 */
declare function stop(): void;
declare function toString(): string;
/**
 * The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
 */
declare function dispatchEvent(event: Event): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
declare function cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) */
declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */
declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */
declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */
declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */
declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */
declare var onauxclick: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforematch_event) */
declare var onbeforematch: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
declare var onbeforetoggle: ((this: Window, ev: ToggleEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
declare var oncancel: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */
declare var onchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */
declare var onclick: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
declare var onclose: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */
declare var oncontextlost: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */
declare var oncontextmenu: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */
declare var oncontextrestored: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */
declare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */
declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */
declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */
declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */
declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */
declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) */
declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */
declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */
declare var onemptied: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */
declare var onended: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */
declare var onerror: OnErrorEventHandler;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */
declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */
declare var oninput: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
 */
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/load_event) */
declare var onload: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */
declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) */
declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */
declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */
declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */
declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */
declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */
declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) */
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */
declare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */
declare var onpause: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */
declare var onplay: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) */
declare var onplaying: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */
declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */
declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */
declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */
declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */
declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */
declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
/**
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event)
 */
declare var onpointerrawupdate: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */
declare var onratechange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) */
declare var onreset: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */
declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */
declare var onscroll: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
declare var onscrollend: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */
declare var onseeked: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */
declare var onseeking: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) */
declare var onselect: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */
declare var onslotchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) */
declare var onstalled: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */
declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */
declare var ontoggle: ((this: Window, ev: ToggleEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) */
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
/**
 * @deprecated This is a legacy alias of \`onanimationend\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)
 */
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
/**
 * @deprecated This is a legacy alias of \`onanimationiteration\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)
 */
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
/**
 * @deprecated This is a legacy alias of \`onanimationstart\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)
 */
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
/**
 * @deprecated This is a legacy alias of \`ontransitionend\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)
 */
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */
declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */
declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */
declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */
declare var onoffline: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */
declare var ononline: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagereveal_event) */
declare var onpagereveal: ((this: Window, ev: PageRevealEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageswap_event) */
declare var onpageswap: ((this: Window, ev: PageSwapEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
/**
 * @deprecated
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
 */
declare var onunload: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */
declare var localStorage: Storage;
/**
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)
 */
declare var caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
declare var crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
declare var indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
declare var isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
declare var origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
declare var performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
declare function atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */
declare function clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */
declare function clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
declare function reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */
declare var sessionStorage: Storage;
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView<ArrayBufferLike>;
type AutoFill = AutoFillBase | \`\${OptionalPrefixToken<AutoFillSection>}\${OptionalPrefixToken<AutoFillAddressKind>}\${AutoFillField}\${OptionalPostfixToken<AutoFillCredentialField>}\`;
type AutoFillField = AutoFillNormalField | \`\${OptionalPrefixToken<AutoFillContactKind>}\${AutoFillContactField}\`;
type AutoFillSection = \`section-\${string}\`;
type Base64URLString = string;
type BigInteger = Uint8Array<ArrayBuffer>;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView<ArrayBuffer> | ArrayBuffer;
type COSEAlgorithmIdentifier = number;
type CSSKeywordish = string | CSSKeywordValue;
type CSSNumberish = number | CSSNumericValue;
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
type CSSUnparsedSegment = string | CSSVariableReferenceValue;
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame;
type ClipboardItemData = Promise<string | Blob>;
type ClipboardItems = ClipboardItem[];
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
type ConstrainDouble = number | ConstrainDoubleRange;
type ConstrainULong = number | ConstrainULongRange;
type CookieList = CookieListItem[];
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
type Float32List = Float32Array<ArrayBufferLike> | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
type ImageDataArray = Uint8ClampedArray<ArrayBuffer>;
type Int32List = Int32Array<ArrayBufferLike> | GLint[];
type LineAndPositionSetting = number | AutoKeyword;
type MediaProvider = MediaStream | MediaSource | Blob;
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
type MutationRecordType = "attributes" | "characterData" | "childList";
type NamedCurve = string;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type OptionalPostfixToken<T extends string> = \` \${T}\` | "";
type OptionalPrefixToken<T extends string> = \`\${T} \` | "";
type PerformanceEntryList = PerformanceEntry[];
type PublicKeyCredentialClientCapabilities = Record<string, boolean>;
type PublicKeyCredentialJSON = any;
type RTCRtpTransform = RTCRtpScriptTransform;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type ReportList = Report[];
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
type VibratePattern = number | number[];
type WindowProxy = Window;
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlignSetting = "center" | "end" | "left" | "right" | "start";
type AlphaOption = "discard" | "keep";
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
type AnimationReplaceState = "active" | "persisted" | "removed";
type AppendMode = "segments" | "sequence";
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
type AudioContextState = "closed" | "interrupted" | "running" | "suspended";
type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
type AuthenticatorAttachment = "cross-platform" | "platform";
type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
type AutoFillAddressKind = "billing" | "shipping";
type AutoFillBase = "" | "off" | "on";
type AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national";
type AutoFillContactKind = "home" | "mobile" | "work";
type AutoFillCredentialField = "webauthn";
type AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username";
type AutoKeyword = "auto";
type AutomationRate = "a-rate" | "k-rate";
type AvcBitstreamFormat = "annexb" | "avc";
type BinaryType = "arraybuffer" | "blob";
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
type BitrateMode = "constant" | "variable";
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
type CanPlayTypeResult = "" | "maybe" | "probably";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ChannelCountMode = "clamped-max" | "explicit" | "max";
type ChannelInterpretation = "discrete" | "speakers";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type CodecState = "closed" | "configured" | "unconfigured";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompositeOperation = "accumulate" | "add" | "replace";
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
type CookieSameSite = "lax" | "none" | "strict";
type CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent";
type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
type DirectionSetting = "" | "lr" | "rl";
type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
type DistanceModelType = "exponential" | "inverse" | "linear";
type DocumentReadyState = "complete" | "interactive" | "loading";
type DocumentVisibilityState = "hidden" | "visible";
type EncodedAudioChunkType = "delta" | "key";
type EncodedVideoChunkType = "delta" | "key";
type EndOfStreamError = "decode" | "network";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FillLightMode = "auto" | "flash" | "off";
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FullscreenNavigationUI = "auto" | "hide" | "show";
type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
type GamepadHapticsResult = "complete" | "preempted";
type GamepadMappingType = "" | "standard" | "xr-standard";
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type HighlightType = "grammar-error" | "highlight" | "spelling-error";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionDurability = "default" | "relaxed" | "strict";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "from-image" | "none";
type ImageSmoothingQuality = "high" | "low" | "medium";
type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";
type IterationCompositeOperation = "accumulate" | "replace";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LatencyMode = "quality" | "realtime";
type LineAlignSetting = "center" | "end" | "start";
type LockMode = "exclusive" | "shared";
type LoginStatus = "logged-in" | "logged-out";
type MIDIPortConnectionState = "closed" | "open" | "pending";
type MIDIPortDeviceState = "connected" | "disconnected";
type MIDIPortType = "input" | "output";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
type MediaEncodingType = "record" | "webrtc";
type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
type MediaKeySessionType = "persistent-license" | "temporary";
type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
type MediaKeysRequirement = "not-allowed" | "optional" | "required";
type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
type MediaSessionPlaybackState = "none" | "paused" | "playing";
type MediaStreamTrackState = "ended" | "live";
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
type NavigationType = "push" | "reload" | "replace" | "traverse";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type OpusBitstreamFormat = "ogg" | "opus";
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
type OverSampleType = "2x" | "4x" | "none";
type PanningModelType = "HRTF" | "equalpower";
type PaymentComplete = "fail" | "success" | "unknown";
type PaymentShippingType = "delivery" | "pickup" | "shipping";
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
type PermissionState = "denied" | "granted" | "prompt";
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PresentationStyle = "attachment" | "inline" | "unspecified";
type PublicKeyCredentialType = "public-key";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
type RTCDtlsRole = "client" | "server" | "unknown";
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
type RTCIceComponent = "rtcp" | "rtp";
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCIceGathererState = "complete" | "gathering" | "new";
type RTCIceGatheringState = "complete" | "gathering" | "new";
type RTCIceProtocol = "tcp" | "udp";
type RTCIceRole = "controlled" | "controlling" | "unknown";
type RTCIceTcpCandidateType = "active" | "passive" | "so";
type RTCIceTransportPolicy = "all" | "relay";
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
type RTCPriorityType = "high" | "low" | "medium" | "very-low";
type RTCQualityLimitationReason = "bandwidth" | "cpu" | "none" | "other";
type RTCRtcpMuxPolicy = "require";
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
type RTCSctpTransportState = "closed" | "connected" | "connecting";
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-playout" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "transport";
type ReadableStreamReaderMode = "byob";
type ReadableStreamType = "bytes";
type ReadyState = "closed" | "ended" | "open";
type RecordingState = "inactive" | "paused" | "recording";
type RedEyeReduction = "always" | "controllable" | "never";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestPriority = "auto" | "high" | "low";
type RequestRedirect = "error" | "follow" | "manual";
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type ScrollBehavior = "auto" | "instant" | "smooth";
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
type ScrollRestoration = "auto" | "manual";
type ScrollSetting = "" | "up";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type SelectionMode = "end" | "preserve" | "select" | "start";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type ShadowRootMode = "closed" | "open";
type SlotAssignmentMode = "manual" | "named";
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
type TextTrackMode = "disabled" | "hidden" | "showing";
type TouchType = "direct" | "stylus";
type TransferFunction = "hlg" | "pq" | "srgb";
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WakeLockType = "screen";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
type WebTransportErrorSource = "session" | "stream";
type WorkerType = "classic" | "module";
type WriteCommandType = "seek" | "truncate" | "write";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`),
    (ji["lib.dom.iterable.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/////////////////////////////
/// Window Iterable APIs
/////////////////////////////

interface AudioParam {
    /**
     * The **\`setValueCurveAtTime()\`** method of the following a curve defined by a list of values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime)
     */
    setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
}

interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
}

interface BaseAudioContext {
    /**
     * The **\`createIIRFilter()\`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter)
     */
    createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
    /**
     * The \`createPeriodicWave()\` method of the BaseAudioContext interface is used to create a PeriodicWave.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave)
     */
    createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
}

interface CSSKeyframesRule {
    [Symbol.iterator](): ArrayIterator<CSSKeyframeRule>;
}

interface CSSNumericArray {
    [Symbol.iterator](): ArrayIterator<CSSNumericValue>;
    entries(): ArrayIterator<[number, CSSNumericValue]>;
    keys(): ArrayIterator<number>;
    values(): ArrayIterator<CSSNumericValue>;
}

interface CSSRuleList {
    [Symbol.iterator](): ArrayIterator<CSSRule>;
}

interface CSSStyleDeclaration {
    [Symbol.iterator](): ArrayIterator<string>;
}

interface CSSTransformValue {
    [Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
    entries(): ArrayIterator<[number, CSSTransformComponent]>;
    keys(): ArrayIterator<number>;
    values(): ArrayIterator<CSSTransformComponent>;
}

interface CSSUnparsedValue {
    [Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
    entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
    keys(): ArrayIterator<number>;
    values(): ArrayIterator<CSSUnparsedSegment>;
}

interface Cache {
    /**
     * The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
     */
    addAll(requests: Iterable<RequestInfo>): Promise<void>;
}

interface CanvasPath {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
    roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}

interface CanvasPathDrawingStyles {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
    setLineDash(segments: Iterable<number>): void;
}

interface CookieStoreManager {
    /**
     * The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
     */
    subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
    /**
     * The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
     */
    unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
}

interface CustomStateSet extends Set<string> {
}

interface DOMRectList {
    [Symbol.iterator](): ArrayIterator<DOMRect>;
}

interface DOMStringList {
    [Symbol.iterator](): ArrayIterator<string>;
}

interface DOMTokenList {
    [Symbol.iterator](): ArrayIterator<string>;
    entries(): ArrayIterator<[number, string]>;
    keys(): ArrayIterator<number>;
    values(): ArrayIterator<string>;
}

interface DataTransferItemList {
    [Symbol.iterator](): ArrayIterator<DataTransferItem>;
}

interface EventCounts extends ReadonlyMap<string, number> {
}

interface FileList {
    [Symbol.iterator](): ArrayIterator<File>;
}

interface FontFaceSet extends Set<FontFace> {
}

interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): FormDataIterator<T>;
}

interface FormData {
    [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
    /** Returns an array of key, value pairs for every entry in the list. */
    entries(): FormDataIterator<[string, FormDataEntryValue]>;
    /** Returns a list of keys in the list. */
    keys(): FormDataIterator<string>;
    /** Returns a list of values in the list. */
    values(): FormDataIterator<FormDataEntryValue>;
}

interface HTMLAllCollection {
    [Symbol.iterator](): ArrayIterator<Element>;
}

interface HTMLCollectionBase {
    [Symbol.iterator](): ArrayIterator<Element>;
}

interface HTMLCollectionOf<T extends Element> {
    [Symbol.iterator](): ArrayIterator<T>;
}

interface HTMLFormElement {
    [Symbol.iterator](): ArrayIterator<Element>;
}

interface HTMLSelectElement {
    [Symbol.iterator](): ArrayIterator<HTMLOptionElement>;
}

interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): HeadersIterator<T>;
}

interface Headers {
    [Symbol.iterator](): HeadersIterator<[string, string]>;
    /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
    entries(): HeadersIterator<[string, string]>;
    /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
    keys(): HeadersIterator<string>;
    /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
    values(): HeadersIterator<string>;
}

interface Highlight extends Set<AbstractRange> {
}

interface HighlightRegistry extends Map<string, Highlight> {
}

interface IDBDatabase {
    /**
     * The **\`transaction\`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
     */
    transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}

interface IDBObjectStore {
    /**
     * The **\`createIndex()\`** method of the field/column defining a new data point for each database record to contain.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
     */
    createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}

interface ImageTrackList {
    [Symbol.iterator](): ArrayIterator<ImageTrack>;
}

interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
}

interface MIDIOutput {
    /**
     * The **\`send()\`** method of the MIDIOutput interface queues messages for the corresponding MIDI port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send)
     */
    send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
}

interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
}

interface MediaKeyStatusMapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): MediaKeyStatusMapIterator<T>;
}

interface MediaKeyStatusMap {
    [Symbol.iterator](): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
    entries(): MediaKeyStatusMapIterator<[BufferSource, MediaKeyStatus]>;
    keys(): MediaKeyStatusMapIterator<BufferSource>;
    values(): MediaKeyStatusMapIterator<MediaKeyStatus>;
}

interface MediaList {
    [Symbol.iterator](): ArrayIterator<string>;
}

interface MessageEvent<T = any> {
    /** @deprecated */
    initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}

interface MimeTypeArray {
    [Symbol.iterator](): ArrayIterator<MimeType>;
}

interface NamedNodeMap {
    [Symbol.iterator](): ArrayIterator<Attr>;
}

interface Navigator {
    /**
     * The **\`requestMediaKeySystemAccess()\`** method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
     */
    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
    /**
     * The **\`vibrate()\`** method of the Navigator interface pulses the vibration hardware on the device, if such hardware exists.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate)
     */
    vibrate(pattern: Iterable<number>): boolean;
}

interface NodeList {
    [Symbol.iterator](): ArrayIterator<Node>;
    /** Returns an array of key, value pairs for every entry in the list. */
    entries(): ArrayIterator<[number, Node]>;
    /** Returns an list of keys in the list. */
    keys(): ArrayIterator<number>;
    /** Returns an list of values in the list. */
    values(): ArrayIterator<Node>;
}

interface NodeListOf<TNode extends Node> {
    [Symbol.iterator](): ArrayIterator<TNode>;
    /** Returns an array of key, value pairs for every entry in the list. */
    entries(): ArrayIterator<[number, TNode]>;
    /** Returns an list of keys in the list. */
    keys(): ArrayIterator<number>;
    /** Returns an list of values in the list. */
    values(): ArrayIterator<TNode>;
}

interface Plugin {
    [Symbol.iterator](): ArrayIterator<MimeType>;
}

interface PluginArray {
    [Symbol.iterator](): ArrayIterator<Plugin>;
}

interface RTCRtpTransceiver {
    /**
     * The **\`setCodecPreferences()\`** method of the RTCRtpTransceiver interface is used to set the codecs that the transceiver allows for decoding _received_ data, in order of decreasing preference.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences)
     */
    setCodecPreferences(codecs: Iterable<RTCRtpCodec>): void;
}

interface RTCStatsReport extends ReadonlyMap<string, any> {
}

interface SVGLengthList {
    [Symbol.iterator](): ArrayIterator<SVGLength>;
}

interface SVGNumberList {
    [Symbol.iterator](): ArrayIterator<SVGNumber>;
}

interface SVGPointList {
    [Symbol.iterator](): ArrayIterator<DOMPoint>;
}

interface SVGStringList {
    [Symbol.iterator](): ArrayIterator<string>;
}

interface SVGTransformList {
    [Symbol.iterator](): ArrayIterator<SVGTransform>;
}

interface SourceBufferList {
    [Symbol.iterator](): ArrayIterator<SourceBuffer>;
}

interface SpeechRecognitionResult {
    [Symbol.iterator](): ArrayIterator<SpeechRecognitionAlternative>;
}

interface SpeechRecognitionResultList {
    [Symbol.iterator](): ArrayIterator<SpeechRecognitionResult>;
}

interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
}

interface StylePropertyMapReadOnly {
    [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
    entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
    keys(): StylePropertyMapReadOnlyIterator<string>;
    values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
}

interface StyleSheetList {
    [Symbol.iterator](): ArrayIterator<CSSStyleSheet>;
}

interface SubtleCrypto {
    /**
     * The **\`deriveKey()\`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
     */
    deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
    /**
     * The **\`generateKey()\`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
     */
    generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
    generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
    /**
     * The **\`importKey()\`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
     */
    importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
    importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
    /**
     * The **\`unwrapKey()\`** method of the SubtleCrypto interface 'unwraps' a key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
     */
    unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}

interface TextTrackCueList {
    [Symbol.iterator](): ArrayIterator<TextTrackCue>;
}

interface TextTrackList {
    [Symbol.iterator](): ArrayIterator<TextTrack>;
}

interface TouchList {
    [Symbol.iterator](): ArrayIterator<Touch>;
}

interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): URLSearchParamsIterator<T>;
}

interface URLSearchParams {
    [Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
    /** Returns an array of key, value pairs for every entry in the search params. */
    entries(): URLSearchParamsIterator<[string, string]>;
    /** Returns a list of keys in the search params. */
    keys(): URLSearchParamsIterator<string>;
    /** Returns a list of values in the search params. */
    values(): URLSearchParamsIterator<string>;
}

interface ViewTransitionTypeSet extends Set<string> {
}

interface WEBGL_draw_buffers {
    /**
     * The **\`WEBGL_draw_buffers.drawBuffersWEBGL()\`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
     */
    drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}

interface WEBGL_multi_draw {
    /**
     * The **\`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
     */
    multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawArraysWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
     */
    multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
     */
    multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawElementsWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
     */
    multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
}

interface WebGL2RenderingContextBase {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
    drawBuffers(buffers: Iterable<GLenum>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
    getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
    getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
    invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
    invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
    transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}

interface WebGL2RenderingContextOverloads {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
}

interface WebGLRenderingContextBase {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}

interface WebGLRenderingContextOverloads {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`),
    (ji["lib.es2015.collection.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface Map<K, V> {
    clear(): void;
    /**
     * @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
     */
    delete(key: K): boolean;
    /**
     * Executes a provided function once per each key/value pair in the Map, in insertion order.
     */
    forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
    /**
     * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
     * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
     */
    get(key: K): V | undefined;
    /**
     * @returns boolean indicating whether an element with the specified key exists or not.
     */
    has(key: K): boolean;
    /**
     * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
     */
    set(key: K, value: V): this;
    /**
     * @returns the number of elements in the Map.
     */
    readonly size: number;
}

interface MapConstructor {
    new (): Map<any, any>;
    new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
    readonly prototype: Map<any, any>;
}
declare var Map: MapConstructor;

interface ReadonlyMap<K, V> {
    forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
    get(key: K): V | undefined;
    has(key: K): boolean;
    readonly size: number;
}

interface WeakMap<K extends WeakKey, V> {
    /**
     * Removes the specified element from the WeakMap.
     * @returns true if the element was successfully removed, or false if it was not present.
     */
    delete(key: K): boolean;
    /**
     * @returns a specified element.
     */
    get(key: K): V | undefined;
    /**
     * @returns a boolean indicating whether an element with the specified key exists or not.
     */
    has(key: K): boolean;
    /**
     * Adds a new element with a specified key and value.
     * @param key Must be an object or symbol.
     */
    set(key: K, value: V): this;
}

interface WeakMapConstructor {
    new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
    readonly prototype: WeakMap<WeakKey, any>;
}
declare var WeakMap: WeakMapConstructor;

interface Set<T> {
    /**
     * Appends a new element with a specified value to the end of the Set.
     */
    add(value: T): this;

    clear(): void;
    /**
     * Removes a specified value from the Set.
     * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
     */
    delete(value: T): boolean;
    /**
     * Executes a provided function once per each value in the Set object, in insertion order.
     */
    forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
    /**
     * @returns a boolean indicating whether an element with the specified value exists in the Set or not.
     */
    has(value: T): boolean;
    /**
     * @returns the number of (unique) elements in Set.
     */
    readonly size: number;
}

interface SetConstructor {
    new <T = any>(values?: readonly T[] | null): Set<T>;
    readonly prototype: Set<any>;
}
declare var Set: SetConstructor;

interface ReadonlySet<T> {
    forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
    has(value: T): boolean;
    readonly size: number;
}

interface WeakSet<T extends WeakKey> {
    /**
     * Appends a new value to the end of the WeakSet.
     */
    add(value: T): this;
    /**
     * Removes the specified element from the WeakSet.
     * @returns Returns true if the element existed and has been removed, or false if the element does not exist.
     */
    delete(value: T): boolean;
    /**
     * @returns a boolean indicating whether a value exists in the WeakSet or not.
     */
    has(value: T): boolean;
}

interface WeakSetConstructor {
    new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;
    readonly prototype: WeakSet<WeakKey>;
}
declare var WeakSet: WeakSetConstructor;
`),
    (ji["lib.es2015.core.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface Array<T> {
    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
    find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: T, start?: number, end?: number): this;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
}

interface ArrayConstructor {
    /**
     * Creates an array from an array-like object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from<T>(arrayLike: ArrayLike<T>): T[];

    /**
     * Creates an array from an iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of<T>(...items: T[]): T[];
}

interface DateConstructor {
    new (value: number | string | Date): Date;
}

interface Function {
    /**
     * Returns the name of the function. Function names are read-only and can not be changed.
     */
    readonly name: string;
}

interface Math {
    /**
     * Returns the number of leading zero bits in the 32-bit binary representation of a number.
     * @param x A numeric expression.
     */
    clz32(x: number): number;

    /**
     * Returns the result of 32-bit multiplication of two numbers.
     * @param x First number
     * @param y Second number
     */
    imul(x: number, y: number): number;

    /**
     * Returns the sign of the x, indicating whether x is positive, negative or zero.
     * @param x The numeric expression to test
     */
    sign(x: number): number;

    /**
     * Returns the base 10 logarithm of a number.
     * @param x A numeric expression.
     */
    log10(x: number): number;

    /**
     * Returns the base 2 logarithm of a number.
     * @param x A numeric expression.
     */
    log2(x: number): number;

    /**
     * Returns the natural logarithm of 1 + x.
     * @param x A numeric expression.
     */
    log1p(x: number): number;

    /**
     * Returns the result of (e^x - 1), which is an implementation-dependent approximation to
     * subtracting 1 from the exponential function of x (e raised to the power of x, where e
     * is the base of the natural logarithms).
     * @param x A numeric expression.
     */
    expm1(x: number): number;

    /**
     * Returns the hyperbolic cosine of a number.
     * @param x A numeric expression that contains an angle measured in radians.
     */
    cosh(x: number): number;

    /**
     * Returns the hyperbolic sine of a number.
     * @param x A numeric expression that contains an angle measured in radians.
     */
    sinh(x: number): number;

    /**
     * Returns the hyperbolic tangent of a number.
     * @param x A numeric expression that contains an angle measured in radians.
     */
    tanh(x: number): number;

    /**
     * Returns the inverse hyperbolic cosine of a number.
     * @param x A numeric expression that contains an angle measured in radians.
     */
    acosh(x: number): number;

    /**
     * Returns the inverse hyperbolic sine of a number.
     * @param x A numeric expression that contains an angle measured in radians.
     */
    asinh(x: number): number;

    /**
     * Returns the inverse hyperbolic tangent of a number.
     * @param x A numeric expression that contains an angle measured in radians.
     */
    atanh(x: number): number;

    /**
     * Returns the square root of the sum of squares of its arguments.
     * @param values Values to compute the square root for.
     *     If no arguments are passed, the result is +0.
     *     If there is only one argument, the result is the absolute value.
     *     If any argument is +Infinity or -Infinity, the result is +Infinity.
     *     If any argument is NaN, the result is NaN.
     *     If all arguments are either +0 or −0, the result is +0.
     */
    hypot(...values: number[]): number;

    /**
     * Returns the integral part of the a numeric expression, x, removing any fractional digits.
     * If x is already an integer, the result is x.
     * @param x A numeric expression.
     */
    trunc(x: number): number;

    /**
     * Returns the nearest single precision float representation of a number.
     * @param x A numeric expression.
     */
    fround(x: number): number;

    /**
     * Returns an implementation-dependent approximation to the cube root of number.
     * @param x A numeric expression.
     */
    cbrt(x: number): number;
}

interface NumberConstructor {
    /**
     * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
     * that is representable as a Number value, which is approximately:
     * 2.2204460492503130808472633361816 x 10‍−‍16.
     */
    readonly EPSILON: number;

    /**
     * Returns true if passed value is finite.
     * Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
     * number. Only finite values of the type number, result in true.
     * @param number A numeric value.
     */
    isFinite(number: unknown): boolean;

    /**
     * Returns true if the value passed is an integer, false otherwise.
     * @param number A numeric value.
     */
    isInteger(number: unknown): boolean;

    /**
     * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
     * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
     * to a number. Only values of the type number, that are also NaN, result in true.
     * @param number A numeric value.
     */
    isNaN(number: unknown): boolean;

    /**
     * Returns true if the value passed is a safe integer.
     * @param number A numeric value.
     */
    isSafeInteger(number: unknown): boolean;

    /**
     * The value of the largest integer n such that n and n + 1 are both exactly representable as
     * a Number value.
     * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.
     */
    readonly MAX_SAFE_INTEGER: number;

    /**
     * The value of the smallest integer n such that n and n − 1 are both exactly representable as
     * a Number value.
     * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).
     */
    readonly MIN_SAFE_INTEGER: number;

    /**
     * Converts a string to a floating-point number.
     * @param string A string that contains a floating-point number.
     */
    parseFloat(string: string): number;

    /**
     * Converts A string to an integer.
     * @param string A string to convert into a number.
     * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
     * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
     * All other strings are considered decimal.
     */
    parseInt(string: string, radix?: number): number;
}

interface ObjectConstructor {
    /**
     * Copy the values of all of the enumerable own properties from one or more source objects to a
     * target object. Returns the target object.
     * @param target The target object to copy to.
     * @param source The source object from which to copy properties.
     */
    assign<T extends {}, U>(target: T, source: U): T & U;

    /**
     * Copy the values of all of the enumerable own properties from one or more source objects to a
     * target object. Returns the target object.
     * @param target The target object to copy to.
     * @param source1 The first source object from which to copy properties.
     * @param source2 The second source object from which to copy properties.
     */
    assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;

    /**
     * Copy the values of all of the enumerable own properties from one or more source objects to a
     * target object. Returns the target object.
     * @param target The target object to copy to.
     * @param source1 The first source object from which to copy properties.
     * @param source2 The second source object from which to copy properties.
     * @param source3 The third source object from which to copy properties.
     */
    assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;

    /**
     * Copy the values of all of the enumerable own properties from one or more source objects to a
     * target object. Returns the target object.
     * @param target The target object to copy to.
     * @param sources One or more source objects from which to copy properties
     */
    assign(target: object, ...sources: any[]): any;

    /**
     * Returns an array of all symbol properties found directly on object o.
     * @param o Object to retrieve the symbols from.
     */
    getOwnPropertySymbols(o: any): symbol[];

    /**
     * Returns the names of the enumerable string properties and methods of an object.
     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
     */
    keys(o: {}): string[];

    /**
     * Returns true if the values are the same value, false otherwise.
     * @param value1 The first value.
     * @param value2 The second value.
     */
    is(value1: any, value2: any): boolean;

    /**
     * Sets the prototype of a specified object o to object proto or null. Returns the object o.
     * @param o The object to change its prototype.
     * @param proto The value of the new prototype or null.
     */
    setPrototypeOf(o: any, proto: object | null): any;
}

interface ReadonlyArray<T> {
    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
    find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;

    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
}

interface RegExp {
    /**
     * Returns a string indicating the flags of the regular expression in question. This field is read-only.
     * The characters in this string are sequenced and concatenated in the following order:
     *
     *    - "g" for global
     *    - "i" for ignoreCase
     *    - "m" for multiline
     *    - "u" for unicode
     *    - "y" for sticky
     *
     * If no flags are set, the value is the empty string.
     */
    readonly flags: string;

    /**
     * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
     * expression. Default is false. Read-only.
     */
    readonly sticky: boolean;

    /**
     * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
     * expression. Default is false. Read-only.
     */
    readonly unicode: boolean;
}

interface RegExpConstructor {
    new (pattern: RegExp | string, flags?: string): RegExp;
    (pattern: RegExp | string, flags?: string): RegExp;
}

interface String {
    /**
     * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
     * value of the UTF-16 encoded code point starting at the string element at position pos in
     * the String resulting from converting this object to a String.
     * If there is no element at that position, the result is undefined.
     * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
     */
    codePointAt(pos: number): number | undefined;

    /**
     * Returns true if searchString appears as a substring of the result of converting this
     * object to a String, at one or more positions that are
     * greater than or equal to position; otherwise, returns false.
     * @param searchString search string
     * @param position If position is undefined, 0 is assumed, so as to search all of the String.
     */
    includes(searchString: string, position?: number): boolean;

    /**
     * Returns true if the sequence of elements of searchString converted to a String is the
     * same as the corresponding elements of this object (converted to a String) starting at
     * endPosition – length(this). Otherwise returns false.
     */
    endsWith(searchString: string, endPosition?: number): boolean;

    /**
     * Returns the String value result of normalizing the string into the normalization form
     * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
     * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
     * is "NFC"
     */
    normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;

    /**
     * Returns the String value result of normalizing the string into the normalization form
     * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
     * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
     * is "NFC"
     */
    normalize(form?: string): string;

    /**
     * Returns a String value that is made from count copies appended together. If count is 0,
     * the empty string is returned.
     * @param count number of copies to append
     */
    repeat(count: number): string;

    /**
     * Returns true if the sequence of elements of searchString converted to a String is the
     * same as the corresponding elements of this object (converted to a String) starting at
     * position. Otherwise returns false.
     */
    startsWith(searchString: string, position?: number): boolean;

    /**
     * Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
     * @deprecated A legacy feature for browser compatibility
     * @param name
     */
    anchor(name: string): string;

    /**
     * Returns a \`<big>\` HTML element
     * @deprecated A legacy feature for browser compatibility
     */
    big(): string;

    /**
     * Returns a \`<blink>\` HTML element
     * @deprecated A legacy feature for browser compatibility
     */
    blink(): string;

    /**
     * Returns a \`<b>\` HTML element
     * @deprecated A legacy feature for browser compatibility
     */
    bold(): string;

    /**
     * Returns a \`<tt>\` HTML element
     * @deprecated A legacy feature for browser compatibility
     */
    fixed(): string;

    /**
     * Returns a \`<font>\` HTML element and sets the color attribute value
     * @deprecated A legacy feature for browser compatibility
     */
    fontcolor(color: string): string;

    /**
     * Returns a \`<font>\` HTML element and sets the size attribute value
     * @deprecated A legacy feature for browser compatibility
     */
    fontsize(size: number): string;

    /**
     * Returns a \`<font>\` HTML element and sets the size attribute value
     * @deprecated A legacy feature for browser compatibility
     */
    fontsize(size: string): string;

    /**
     * Returns an \`<i>\` HTML element
     * @deprecated A legacy feature for browser compatibility
     */
    italics(): string;

    /**
     * Returns an \`<a>\` HTML element and sets the href attribute value
     * @deprecated A legacy feature for browser compatibility
     */
    link(url: string): string;

    /**
     * Returns a \`<small>\` HTML element
     * @deprecated A legacy feature for browser compatibility
     */
    small(): string;

    /**
     * Returns a \`<strike>\` HTML element
     * @deprecated A legacy feature for browser compatibility
     */
    strike(): string;

    /**
     * Returns a \`<sub>\` HTML element
     * @deprecated A legacy feature for browser compatibility
     */
    sub(): string;

    /**
     * Returns a \`<sup>\` HTML element
     * @deprecated A legacy feature for browser compatibility
     */
    sup(): string;
}

interface StringConstructor {
    /**
     * Return the String value whose elements are, in order, the elements in the List elements.
     * If length is 0, the empty string is returned.
     */
    fromCodePoint(...codePoints: number[]): string;

    /**
     * String.raw is usually used as a tag function of a Tagged Template String. When called as
     * such, the first argument will be a well formed template call site object and the rest
     * parameter will contain the substitution values. It can also be called directly, for example,
     * to interleave strings and values from your own tag function, and in this case the only thing
     * it needs from the first argument is the raw property.
     * @param template A well-formed template string call site representation.
     * @param substitutions A set of substitution values.
     */
    raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
}

interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}

interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}

interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}

interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}

interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}

interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}

interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}

interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}

interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
    toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
}
`),
    (ji["lib.es2015.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es5" />
/// <reference lib="es2015.core" />
/// <reference lib="es2015.collection" />
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.generator" />
/// <reference lib="es2015.promise" />
/// <reference lib="es2015.proxy" />
/// <reference lib="es2015.reflect" />
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
`),
    (ji["lib.es2015.generator.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.iterable" />

interface Generator<T = unknown, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
    // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
    next(...[value]: [] | [TNext]): IteratorResult<T, TReturn>;
    return(value: TReturn): IteratorResult<T, TReturn>;
    throw(e: any): IteratorResult<T, TReturn>;
    [Symbol.iterator](): Generator<T, TReturn, TNext>;
}

interface GeneratorFunction {
    /**
     * Creates a new Generator object.
     * @param args A list of arguments the function accepts.
     */
    new (...args: any[]): Generator;
    /**
     * Creates a new Generator object.
     * @param args A list of arguments the function accepts.
     */
    (...args: any[]): Generator;
    /**
     * The length of the arguments.
     */
    readonly length: number;
    /**
     * Returns the name of the function.
     */
    readonly name: string;
    /**
     * A reference to the prototype.
     */
    readonly prototype: Generator;
}

interface GeneratorFunctionConstructor {
    /**
     * Creates a new Generator function.
     * @param args A list of arguments the function accepts.
     */
    new (...args: string[]): GeneratorFunction;
    /**
     * Creates a new Generator function.
     * @param args A list of arguments the function accepts.
     */
    (...args: string[]): GeneratorFunction;
    /**
     * The length of the arguments.
     */
    readonly length: number;
    /**
     * Returns the name of the function.
     */
    readonly name: string;
    /**
     * A reference to the prototype.
     */
    readonly prototype: GeneratorFunction;
}
`),
    (ji["lib.es2015.iterable.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.symbol" />

interface SymbolConstructor {
    /**
     * A method that returns the default iterator for an object. Called by the semantics of the
     * for-of statement.
     */
    readonly iterator: unique symbol;
}

interface IteratorYieldResult<TYield> {
    done?: false;
    value: TYield;
}

interface IteratorReturnResult<TReturn> {
    done: true;
    value: TReturn;
}

type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;

interface Iterator<T, TReturn = any, TNext = any> {
    // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
    next(...[value]: [] | [TNext]): IteratorResult<T, TReturn>;
    return?(value?: TReturn): IteratorResult<T, TReturn>;
    throw?(e?: any): IteratorResult<T, TReturn>;
}

interface Iterable<T, TReturn = any, TNext = any> {
    [Symbol.iterator](): Iterator<T, TReturn, TNext>;
}

/**
 * Describes a user-defined {@link Iterator} that is also iterable.
 */
interface IterableIterator<T, TReturn = any, TNext = any> extends Iterator<T, TReturn, TNext> {
    [Symbol.iterator](): IterableIterator<T, TReturn, TNext>;
}

/**
 * Describes an {@link Iterator} produced by the runtime that inherits from the intrinsic \`Iterator.prototype\`.
 */
interface IteratorObject<T, TReturn = unknown, TNext = unknown> extends Iterator<T, TReturn, TNext> {
    [Symbol.iterator](): IteratorObject<T, TReturn, TNext>;
}

/**
 * Defines the \`TReturn\` type used for built-in iterators produced by \`Array\`, \`Map\`, \`Set\`, and others.
 * This is \`undefined\` when \`strictBuiltInIteratorReturn\` is \`true\`; otherwise, this is \`any\`.
 */
type BuiltinIteratorReturn = intrinsic;

interface ArrayIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): ArrayIterator<T>;
}

interface Array<T> {
    /** Iterator */
    [Symbol.iterator](): ArrayIterator<T>;

    /**
     * Returns an iterable of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, T]>;

    /**
     * Returns an iterable of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an iterable of values in the array
     */
    values(): ArrayIterator<T>;
}

interface ArrayConstructor {
    /**
     * Creates an array from an iterable object.
     * @param iterable An iterable object to convert to an array.
     */
    from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];

    /**
     * Creates an array from an iterable object.
     * @param iterable An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
}

interface ReadonlyArray<T> {
    /** Iterator of values in the array. */
    [Symbol.iterator](): ArrayIterator<T>;

    /**
     * Returns an iterable of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, T]>;

    /**
     * Returns an iterable of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an iterable of values in the array
     */
    values(): ArrayIterator<T>;
}

interface IArguments {
    /** Iterator */
    [Symbol.iterator](): ArrayIterator<any>;
}

interface MapIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): MapIterator<T>;
}

interface Map<K, V> {
    /** Returns an iterable of entries in the map. */
    [Symbol.iterator](): MapIterator<[K, V]>;

    /**
     * Returns an iterable of key, value pairs for every entry in the map.
     */
    entries(): MapIterator<[K, V]>;

    /**
     * Returns an iterable of keys in the map
     */
    keys(): MapIterator<K>;

    /**
     * Returns an iterable of values in the map
     */
    values(): MapIterator<V>;
}

interface ReadonlyMap<K, V> {
    /** Returns an iterable of entries in the map. */
    [Symbol.iterator](): MapIterator<[K, V]>;

    /**
     * Returns an iterable of key, value pairs for every entry in the map.
     */
    entries(): MapIterator<[K, V]>;

    /**
     * Returns an iterable of keys in the map
     */
    keys(): MapIterator<K>;

    /**
     * Returns an iterable of values in the map
     */
    values(): MapIterator<V>;
}

interface MapConstructor {
    new (): Map<any, any>;
    new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
}

interface WeakMap<K extends WeakKey, V> {}

interface WeakMapConstructor {
    new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
}

interface SetIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): SetIterator<T>;
}

interface Set<T> {
    /** Iterates over values in the set. */
    [Symbol.iterator](): SetIterator<T>;

    /**
     * Returns an iterable of [v,v] pairs for every value \`v\` in the set.
     */
    entries(): SetIterator<[T, T]>;

    /**
     * Despite its name, returns an iterable of the values in the set.
     */
    keys(): SetIterator<T>;

    /**
     * Returns an iterable of values in the set.
     */
    values(): SetIterator<T>;
}

interface ReadonlySet<T> {
    /** Iterates over values in the set. */
    [Symbol.iterator](): SetIterator<T>;

    /**
     * Returns an iterable of [v,v] pairs for every value \`v\` in the set.
     */
    entries(): SetIterator<[T, T]>;

    /**
     * Despite its name, returns an iterable of the values in the set.
     */
    keys(): SetIterator<T>;

    /**
     * Returns an iterable of values in the set.
     */
    values(): SetIterator<T>;
}

interface SetConstructor {
    new <T>(iterable?: Iterable<T> | null): Set<T>;
}

interface WeakSet<T extends WeakKey> {}

interface WeakSetConstructor {
    new <T extends WeakKey = WeakKey>(iterable: Iterable<T>): WeakSet<T>;
}

interface Promise<T> {}

interface PromiseConstructor {
    /**
     * Creates a Promise that is resolved with an array of results when all of the provided Promises
     * resolve, or rejected when any Promise is rejected.
     * @param values An iterable of Promises.
     * @returns A new Promise.
     */
    all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;

    /**
     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
     * or rejected.
     * @param values An iterable of Promises.
     * @returns A new Promise.
     */
    race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
}

interface StringIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): StringIterator<T>;
}

interface String {
    /** Iterator */
    [Symbol.iterator](): StringIterator<string>;
}

interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
    [Symbol.iterator](): ArrayIterator<number>;

    /**
     * Returns an array of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, number]>;

    /**
     * Returns an list of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an list of values in the array
     */
    values(): ArrayIterator<number>;
}

interface Int8ArrayConstructor {
    new (elements: Iterable<number>): Int8Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<number>): Int8Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int8Array<ArrayBuffer>;
}

interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
    [Symbol.iterator](): ArrayIterator<number>;

    /**
     * Returns an array of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, number]>;

    /**
     * Returns an list of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an list of values in the array
     */
    values(): ArrayIterator<number>;
}

interface Uint8ArrayConstructor {
    new (elements: Iterable<number>): Uint8Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<number>): Uint8Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
}

interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
    [Symbol.iterator](): ArrayIterator<number>;

    /**
     * Returns an array of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, number]>;

    /**
     * Returns an list of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an list of values in the array
     */
    values(): ArrayIterator<number>;
}

interface Uint8ClampedArrayConstructor {
    new (elements: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<number>): Uint8ClampedArray<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
}

interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
    [Symbol.iterator](): ArrayIterator<number>;
    /**
     * Returns an array of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, number]>;

    /**
     * Returns an list of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an list of values in the array
     */
    values(): ArrayIterator<number>;
}

interface Int16ArrayConstructor {
    new (elements: Iterable<number>): Int16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<number>): Int16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int16Array<ArrayBuffer>;
}

interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
    [Symbol.iterator](): ArrayIterator<number>;

    /**
     * Returns an array of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, number]>;

    /**
     * Returns an list of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an list of values in the array
     */
    values(): ArrayIterator<number>;
}

interface Uint16ArrayConstructor {
    new (elements: Iterable<number>): Uint16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<number>): Uint16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint16Array<ArrayBuffer>;
}

interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
    [Symbol.iterator](): ArrayIterator<number>;

    /**
     * Returns an array of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, number]>;

    /**
     * Returns an list of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an list of values in the array
     */
    values(): ArrayIterator<number>;
}

interface Int32ArrayConstructor {
    new (elements: Iterable<number>): Int32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<number>): Int32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Int32Array<ArrayBuffer>;
}

interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
    [Symbol.iterator](): ArrayIterator<number>;

    /**
     * Returns an array of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, number]>;

    /**
     * Returns an list of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an list of values in the array
     */
    values(): ArrayIterator<number>;
}

interface Uint32ArrayConstructor {
    new (elements: Iterable<number>): Uint32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<number>): Uint32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Uint32Array<ArrayBuffer>;
}

interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
    [Symbol.iterator](): ArrayIterator<number>;

    /**
     * Returns an array of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, number]>;

    /**
     * Returns an list of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an list of values in the array
     */
    values(): ArrayIterator<number>;
}

interface Float32ArrayConstructor {
    new (elements: Iterable<number>): Float32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<number>): Float32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float32Array<ArrayBuffer>;
}

interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
    [Symbol.iterator](): ArrayIterator<number>;

    /**
     * Returns an array of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, number]>;

    /**
     * Returns an list of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an list of values in the array
     */
    values(): ArrayIterator<number>;
}

interface Float64ArrayConstructor {
    new (elements: Iterable<number>): Float64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<number>): Float64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float64Array<ArrayBuffer>;
}
`),
    (ji["lib.es2015.promise.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface PromiseConstructor {
    /**
     * A reference to the prototype.
     */
    readonly prototype: Promise<any>;

    /**
     * Creates a new Promise.
     * @param executor A callback used to initialize the promise. This callback is passed two arguments:
     * a resolve callback used to resolve the promise with a value or the result of another promise,
     * and a reject callback used to reject the promise with a provided reason or error.
     */
    new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;

    /**
     * Creates a Promise that is resolved with an array of results when all of the provided Promises
     * resolve, or rejected when any Promise is rejected.
     * @param values An array of Promises.
     * @returns A new Promise.
     */
    all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;

    // see: lib.es2015.iterable.d.ts
    // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;

    /**
     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
     * or rejected.
     * @param values An array of Promises.
     * @returns A new Promise.
     */
    race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;

    // see: lib.es2015.iterable.d.ts
    // race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;

    /**
     * Creates a new rejected promise for the provided reason.
     * @param reason The reason the promise was rejected.
     * @returns A new rejected Promise.
     */
    reject<T = never>(reason?: any): Promise<T>;

    /**
     * Creates a new resolved promise.
     * @returns A resolved promise.
     */
    resolve(): Promise<void>;
    /**
     * Creates a new resolved promise for the provided value.
     * @param value A promise.
     * @returns A promise whose internal state matches the provided promise.
     */
    resolve<T>(value: T): Promise<Awaited<T>>;
    /**
     * Creates a new resolved promise for the provided value.
     * @param value A promise.
     * @returns A promise whose internal state matches the provided promise.
     */
    resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
}

declare var Promise: PromiseConstructor;
`),
    (ji["lib.es2015.proxy.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface ProxyHandler<T extends object> {
    /**
     * A trap method for a function call.
     * @param target The original callable object which is being proxied.
     */
    apply?(target: T, thisArg: any, argArray: any[]): any;

    /**
     * A trap for the \`new\` operator.
     * @param target The original object which is being proxied.
     * @param newTarget The constructor that was originally called.
     */
    construct?(target: T, argArray: any[], newTarget: Function): object;

    /**
     * A trap for \`Object.defineProperty()\`.
     * @param target The original object which is being proxied.
     * @returns A \`Boolean\` indicating whether or not the property has been defined.
     */
    defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;

    /**
     * A trap for the \`delete\` operator.
     * @param target The original object which is being proxied.
     * @param p The name or \`Symbol\` of the property to delete.
     * @returns A \`Boolean\` indicating whether or not the property was deleted.
     */
    deleteProperty?(target: T, p: string | symbol): boolean;

    /**
     * A trap for getting a property value.
     * @param target The original object which is being proxied.
     * @param p The name or \`Symbol\` of the property to get.
     * @param receiver The proxy or an object that inherits from the proxy.
     */
    get?(target: T, p: string | symbol, receiver: any): any;

    /**
     * A trap for \`Object.getOwnPropertyDescriptor()\`.
     * @param target The original object which is being proxied.
     * @param p The name of the property whose description should be retrieved.
     */
    getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;

    /**
     * A trap for the \`[[GetPrototypeOf]]\` internal method.
     * @param target The original object which is being proxied.
     */
    getPrototypeOf?(target: T): object | null;

    /**
     * A trap for the \`in\` operator.
     * @param target The original object which is being proxied.
     * @param p The name or \`Symbol\` of the property to check for existence.
     */
    has?(target: T, p: string | symbol): boolean;

    /**
     * A trap for \`Object.isExtensible()\`.
     * @param target The original object which is being proxied.
     */
    isExtensible?(target: T): boolean;

    /**
     * A trap for \`Reflect.ownKeys()\`.
     * @param target The original object which is being proxied.
     */
    ownKeys?(target: T): ArrayLike<string | symbol>;

    /**
     * A trap for \`Object.preventExtensions()\`.
     * @param target The original object which is being proxied.
     */
    preventExtensions?(target: T): boolean;

    /**
     * A trap for setting a property value.
     * @param target The original object which is being proxied.
     * @param p The name or \`Symbol\` of the property to set.
     * @param receiver The object to which the assignment was originally directed.
     * @returns A \`Boolean\` indicating whether or not the property was set.
     */
    set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;

    /**
     * A trap for \`Object.setPrototypeOf()\`.
     * @param target The original object which is being proxied.
     * @param newPrototype The object's new prototype or \`null\`.
     */
    setPrototypeOf?(target: T, v: object | null): boolean;
}

interface ProxyConstructor {
    /**
     * Creates a revocable Proxy object.
     * @param target A target object to wrap with Proxy.
     * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
     */
    revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };

    /**
     * Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the
     * original object, but which may redefine fundamental Object operations like getting, setting, and defining
     * properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.
     * @param target A target object to wrap with Proxy.
     * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
     */
    new <T extends object>(target: T, handler: ProxyHandler<T>): T;
}
declare var Proxy: ProxyConstructor;
`),
    (ji["lib.es2015.reflect.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

declare namespace Reflect {
    /**
     * Calls the function with the specified object as the this value
     * and the elements of specified array as the arguments.
     * @param target The function to call.
     * @param thisArgument The object to be used as the this object.
     * @param argumentsList An array of argument values to be passed to the function.
     */
    function apply<T, A extends readonly any[], R>(
        target: (this: T, ...args: A) => R,
        thisArgument: T,
        argumentsList: Readonly<A>,
    ): R;
    function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;

    /**
     * Constructs the target with the elements of specified array as the arguments
     * and the specified constructor as the \`new.target\` value.
     * @param target The constructor to invoke.
     * @param argumentsList An array of argument values to be passed to the constructor.
     * @param newTarget The constructor to be used as the \`new.target\` object.
     */
    function construct<A extends readonly any[], R>(
        target: new (...args: A) => R,
        argumentsList: Readonly<A>,
        newTarget?: new (...args: any) => any,
    ): R;
    function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;

    /**
     * Adds a property to an object, or modifies attributes of an existing property.
     * @param target Object on which to add or modify the property. This can be a native JavaScript object
     *        (that is, a user-defined object or a built in object) or a DOM object.
     * @param propertyKey The property name.
     * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
     */
    function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;

    /**
     * Removes a property from an object, equivalent to \`delete target[propertyKey]\`,
     * except it won't throw if \`target[propertyKey]\` is non-configurable.
     * @param target Object from which to remove the own property.
     * @param propertyKey The property name.
     */
    function deleteProperty(target: object, propertyKey: PropertyKey): boolean;

    /**
     * Gets the property of target, equivalent to \`target[propertyKey]\` when \`receiver === target\`.
     * @param target Object that contains the property on itself or in its prototype chain.
     * @param propertyKey The property name.
     * @param receiver The reference to use as the \`this\` value in the getter function,
     *        if \`target[propertyKey]\` is an accessor property.
     */
    function get<T extends object, P extends PropertyKey>(
        target: T,
        propertyKey: P,
        receiver?: unknown,
    ): P extends keyof T ? T[P] : any;

    /**
     * Gets the own property descriptor of the specified object.
     * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
     * @param target Object that contains the property.
     * @param propertyKey The property name.
     */
    function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(
        target: T,
        propertyKey: P,
    ): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;

    /**
     * Returns the prototype of an object.
     * @param target The object that references the prototype.
     */
    function getPrototypeOf(target: object): object | null;

    /**
     * Equivalent to \`propertyKey in target\`.
     * @param target Object that contains the property on itself or in its prototype chain.
     * @param propertyKey Name of the property.
     */
    function has(target: object, propertyKey: PropertyKey): boolean;

    /**
     * Returns a value that indicates whether new properties can be added to an object.
     * @param target Object to test.
     */
    function isExtensible(target: object): boolean;

    /**
     * Returns the string and symbol keys of the own properties of an object. The own properties of an object
     * are those that are defined directly on that object, and are not inherited from the object's prototype.
     * @param target Object that contains the own properties.
     */
    function ownKeys(target: object): (string | symbol)[];

    /**
     * Prevents the addition of new properties to an object.
     * @param target Object to make non-extensible.
     * @return Whether the object has been made non-extensible.
     */
    function preventExtensions(target: object): boolean;

    /**
     * Sets the property of target, equivalent to \`target[propertyKey] = value\` when \`receiver === target\`.
     * @param target Object that contains the property on itself or in its prototype chain.
     * @param propertyKey Name of the property.
     * @param receiver The reference to use as the \`this\` value in the setter function,
     *        if \`target[propertyKey]\` is an accessor property.
     */
    function set<T extends object, P extends PropertyKey>(
        target: T,
        propertyKey: P,
        value: P extends keyof T ? T[P] : any,
        receiver?: any,
    ): boolean;
    function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;

    /**
     * Sets the prototype of a specified object o to object proto or null.
     * @param target The object to change its prototype.
     * @param proto The value of the new prototype or null.
     * @return Whether setting the prototype was successful.
     */
    function setPrototypeOf(target: object, proto: object | null): boolean;
}
`),
    (ji["lib.es2015.symbol.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface SymbolConstructor {
    /**
     * A reference to the prototype.
     */
    readonly prototype: Symbol;

    /**
     * Returns a new unique Symbol value.
     * @param  description Description of the new Symbol object.
     */
    (description?: string | number): symbol;

    /**
     * Returns a Symbol object from the global symbol registry matching the given key if found.
     * Otherwise, returns a new symbol with this key.
     * @param key key to search for.
     */
    for(key: string): symbol;

    /**
     * Returns a key from the global symbol registry matching the given Symbol if found.
     * Otherwise, returns a undefined.
     * @param sym Symbol to find the key for.
     */
    keyFor(sym: symbol): string | undefined;
}

declare var Symbol: SymbolConstructor;
`),
    (ji["lib.es2015.symbol.wellknown.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.symbol" />

interface SymbolConstructor {
    /**
     * A method that determines if a constructor object recognizes an object as one of the
     * constructor’s instances. Called by the semantics of the instanceof operator.
     */
    readonly hasInstance: unique symbol;

    /**
     * A Boolean value that if true indicates that an object should flatten to its array elements
     * by Array.prototype.concat.
     */
    readonly isConcatSpreadable: unique symbol;

    /**
     * A regular expression method that matches the regular expression against a string. Called
     * by the String.prototype.match method.
     */
    readonly match: unique symbol;

    /**
     * A regular expression method that replaces matched substrings of a string. Called by the
     * String.prototype.replace method.
     */
    readonly replace: unique symbol;

    /**
     * A regular expression method that returns the index within a string that matches the
     * regular expression. Called by the String.prototype.search method.
     */
    readonly search: unique symbol;

    /**
     * A function valued property that is the constructor function that is used to create
     * derived objects.
     */
    readonly species: unique symbol;

    /**
     * A regular expression method that splits a string at the indices that match the regular
     * expression. Called by the String.prototype.split method.
     */
    readonly split: unique symbol;

    /**
     * A method that converts an object to a corresponding primitive value.
     * Called by the ToPrimitive abstract operation.
     */
    readonly toPrimitive: unique symbol;

    /**
     * A String value that is used in the creation of the default string description of an object.
     * Called by the built-in method Object.prototype.toString.
     */
    readonly toStringTag: unique symbol;

    /**
     * An Object whose truthy properties are properties that are excluded from the 'with'
     * environment bindings of the associated objects.
     */
    readonly unscopables: unique symbol;
}

interface Symbol {
    /**
     * Converts a Symbol object to a symbol.
     */
    [Symbol.toPrimitive](hint: string): symbol;

    readonly [Symbol.toStringTag]: string;
}

interface Array<T> {
    /**
     * Is an object whose properties have the value 'true'
     * when they will be absent when used in a 'with' statement.
     */
    readonly [Symbol.unscopables]: {
        [K in keyof any[]]?: boolean;
    };
}

interface ReadonlyArray<T> {
    /**
     * Is an object whose properties have the value 'true'
     * when they will be absent when used in a 'with' statement.
     */
    readonly [Symbol.unscopables]: {
        [K in keyof readonly any[]]?: boolean;
    };
}

interface Date {
    /**
     * Converts a Date object to a string.
     */
    [Symbol.toPrimitive](hint: "default"): string;
    /**
     * Converts a Date object to a string.
     */
    [Symbol.toPrimitive](hint: "string"): string;
    /**
     * Converts a Date object to a number.
     */
    [Symbol.toPrimitive](hint: "number"): number;
    /**
     * Converts a Date object to a string or number.
     *
     * @param hint The strings "number", "string", or "default" to specify what primitive to return.
     *
     * @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
     * @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
     */
    [Symbol.toPrimitive](hint: string): string | number;
}

interface Map<K, V> {
    readonly [Symbol.toStringTag]: string;
}

interface WeakMap<K extends WeakKey, V> {
    readonly [Symbol.toStringTag]: string;
}

interface Set<T> {
    readonly [Symbol.toStringTag]: string;
}

interface WeakSet<T extends WeakKey> {
    readonly [Symbol.toStringTag]: string;
}

interface JSON {
    readonly [Symbol.toStringTag]: string;
}

interface Function {
    /**
     * Determines whether the given value inherits from this function if this function was used
     * as a constructor function.
     *
     * A constructor function can control which objects are recognized as its instances by
     * 'instanceof' by overriding this method.
     */
    [Symbol.hasInstance](value: any): boolean;
}

interface GeneratorFunction {
    readonly [Symbol.toStringTag]: string;
}

interface Math {
    readonly [Symbol.toStringTag]: string;
}

interface Promise<T> {
    readonly [Symbol.toStringTag]: string;
}

interface PromiseConstructor {
    readonly [Symbol.species]: PromiseConstructor;
}

interface RegExp {
    /**
     * Matches a string with this regular expression, and returns an array containing the results of
     * that search.
     * @param string A string to search within.
     */
    [Symbol.match](string: string): RegExpMatchArray | null;

    /**
     * Replaces text in a string, using this regular expression.
     * @param string A String object or string literal whose contents matching against
     *               this regular expression will be replaced
     * @param replaceValue A String object or string literal containing the text to replace for every
     *                     successful match of this regular expression.
     */
    [Symbol.replace](string: string, replaceValue: string): string;

    /**
     * Replaces text in a string, using this regular expression.
     * @param string A String object or string literal whose contents matching against
     *               this regular expression will be replaced
     * @param replacer A function that returns the replacement text.
     */
    [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;

    /**
     * Finds the position beginning first substring match in a regular expression search
     * using this regular expression.
     *
     * @param string The string to search within.
     */
    [Symbol.search](string: string): number;

    /**
     * Returns an array of substrings that were delimited by strings in the original input that
     * match against this regular expression.
     *
     * If the regular expression contains capturing parentheses, then each time this
     * regular expression matches, the results (including any undefined results) of the
     * capturing parentheses are spliced.
     *
     * @param string string value to split
     * @param limit if not undefined, the output array is truncated so that it contains no more
     * than 'limit' elements.
     */
    [Symbol.split](string: string, limit?: number): string[];
}

interface RegExpConstructor {
    readonly [Symbol.species]: RegExpConstructor;
}

interface String {
    /**
     * Matches a string or an object that supports being matched against, and returns an array
     * containing the results of that search, or null if no matches are found.
     * @param matcher An object that supports being matched against.
     */
    match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;

    /**
     * Passes a string and {@linkcode replaceValue} to the \`[Symbol.replace]\` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.
     * @param searchValue An object that supports searching for and replacing matches within a string.
     * @param replaceValue The replacement text.
     */
    replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;

    /**
     * Replaces text in a string, using an object that supports replacement within a string.
     * @param searchValue A object can search for and replace matches within a string.
     * @param replacer A function that returns the replacement text.
     */
    replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;

    /**
     * Finds the first substring match in a regular expression search.
     * @param searcher An object which supports searching within a string.
     */
    search(searcher: { [Symbol.search](string: string): number; }): number;

    /**
     * Split a string into substrings using the specified separator and return them as an array.
     * @param splitter An object that can split a string.
     * @param limit A value used to limit the number of elements returned in the array.
     */
    split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
}

interface ArrayBuffer {
    readonly [Symbol.toStringTag]: "ArrayBuffer";
}

interface DataView<TArrayBuffer extends ArrayBufferLike> {
    readonly [Symbol.toStringTag]: string;
}

interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
    readonly [Symbol.toStringTag]: "Int8Array";
}

interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
    readonly [Symbol.toStringTag]: "Uint8Array";
}

interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
    readonly [Symbol.toStringTag]: "Uint8ClampedArray";
}

interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
    readonly [Symbol.toStringTag]: "Int16Array";
}

interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
    readonly [Symbol.toStringTag]: "Uint16Array";
}

interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
    readonly [Symbol.toStringTag]: "Int32Array";
}

interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
    readonly [Symbol.toStringTag]: "Uint32Array";
}

interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
    readonly [Symbol.toStringTag]: "Float32Array";
}

interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
    readonly [Symbol.toStringTag]: "Float64Array";
}

interface ArrayConstructor {
    readonly [Symbol.species]: ArrayConstructor;
}
interface MapConstructor {
    readonly [Symbol.species]: MapConstructor;
}
interface SetConstructor {
    readonly [Symbol.species]: SetConstructor;
}
interface ArrayBufferConstructor {
    readonly [Symbol.species]: ArrayBufferConstructor;
}
`),
    (ji["lib.es2016.array.include.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface Array<T> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: T, fromIndex?: number): boolean;
}

interface ReadonlyArray<T> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: T, fromIndex?: number): boolean;
}

interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: number, fromIndex?: number): boolean;
}

interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: number, fromIndex?: number): boolean;
}

interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: number, fromIndex?: number): boolean;
}

interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: number, fromIndex?: number): boolean;
}

interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: number, fromIndex?: number): boolean;
}

interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: number, fromIndex?: number): boolean;
}

interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: number, fromIndex?: number): boolean;
}

interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: number, fromIndex?: number): boolean;
}

interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: number, fromIndex?: number): boolean;
}
`),
    (ji["lib.es2016.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015" />
/// <reference lib="es2016.array.include" />
/// <reference lib="es2016.intl" />
`),
    (ji["lib.es2016.full.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2016" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`),
    (ji["lib.es2016.intl.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

declare namespace Intl {
    /**
     * The \`Intl.getCanonicalLocales()\` method returns an array containing
     * the canonical locale names. Duplicates will be omitted and elements
     * will be validated as structurally valid language tags.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales)
     *
     * @param locale A list of String values for which to get the canonical locale names
     * @returns An array containing the canonical and validated locale names.
     */
    function getCanonicalLocales(locale?: string | readonly string[]): string[];
}
`),
    (ji["lib.es2017.arraybuffer.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface ArrayBufferConstructor {
    new (): ArrayBuffer;
}
`),
    (ji["lib.es2017.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2016" />
/// <reference lib="es2017.arraybuffer" />
/// <reference lib="es2017.date" />
/// <reference lib="es2017.intl" />
/// <reference lib="es2017.object" />
/// <reference lib="es2017.sharedmemory" />
/// <reference lib="es2017.string" />
/// <reference lib="es2017.typedarrays" />
`),
    (ji["lib.es2017.date.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface DateConstructor {
    /**
     * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
     * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
     * @param monthIndex The month as a number between 0 and 11 (January to December).
     * @param date The date as a number between 1 and 31.
     * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
     * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
     * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
     * @param ms A number from 0 to 999 that specifies the milliseconds.
     */
    UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
}
`),
    (ji["lib.es2017.full.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2017" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`),
    (ji["lib.es2017.intl.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

declare namespace Intl {
    interface DateTimeFormatPartTypesRegistry {
        day: any;
        dayPeriod: any;
        era: any;
        hour: any;
        literal: any;
        minute: any;
        month: any;
        second: any;
        timeZoneName: any;
        weekday: any;
        year: any;
    }

    type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;

    interface DateTimeFormatPart {
        type: DateTimeFormatPartTypes;
        value: string;
    }

    interface DateTimeFormat {
        formatToParts(date?: Date | number): DateTimeFormatPart[];
    }
}
`),
    (ji["lib.es2017.object.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface ObjectConstructor {
    /**
     * Returns an array of values of the enumerable own properties of an object
     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
     */
    values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[];

    /**
     * Returns an array of values of the enumerable own properties of an object
     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
     */
    values(o: {}): any[];

    /**
     * Returns an array of key/values of the enumerable own properties of an object
     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
     */
    entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][];

    /**
     * Returns an array of key/values of the enumerable own properties of an object
     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
     */
    entries(o: {}): [string, any][];

    /**
     * Returns an object containing all own property descriptors of an object
     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
     */
    getOwnPropertyDescriptors<T>(o: T): { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & { [x: string]: PropertyDescriptor; };
}
`),
    (ji["lib.es2017.sharedmemory.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />

interface SharedArrayBuffer {
    /**
     * Read-only. The length of the ArrayBuffer (in bytes).
     */
    readonly byteLength: number;

    /**
     * Returns a section of an SharedArrayBuffer.
     */
    slice(begin?: number, end?: number): SharedArrayBuffer;
    readonly [Symbol.toStringTag]: "SharedArrayBuffer";
}

interface SharedArrayBufferConstructor {
    readonly prototype: SharedArrayBuffer;
    new (byteLength?: number): SharedArrayBuffer;
    readonly [Symbol.species]: SharedArrayBufferConstructor;
}
declare var SharedArrayBuffer: SharedArrayBufferConstructor;

interface ArrayBufferTypes {
    SharedArrayBuffer: SharedArrayBuffer;
}

interface Atomics {
    /**
     * Adds a value to the value at the given position in the array, returning the original value.
     * Until this atomic operation completes, any other read or write operation against the array
     * will block.
     */
    add(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;

    /**
     * Stores the bitwise AND of a value with the value at the given position in the array,
     * returning the original value. Until this atomic operation completes, any other read or
     * write operation against the array will block.
     */
    and(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;

    /**
     * Replaces the value at the given position in the array if the original value equals the given
     * expected value, returning the original value. Until this atomic operation completes, any
     * other read or write operation against the array will block.
     */
    compareExchange(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, expectedValue: number, replacementValue: number): number;

    /**
     * Replaces the value at the given position in the array, returning the original value. Until
     * this atomic operation completes, any other read or write operation against the array will
     * block.
     */
    exchange(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;

    /**
     * Returns a value indicating whether high-performance algorithms can use atomic operations
     * (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed
     * array.
     */
    isLockFree(size: number): boolean;

    /**
     * Returns the value at the given position in the array. Until this atomic operation completes,
     * any other read or write operation against the array will block.
     */
    load(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number): number;

    /**
     * Stores the bitwise OR of a value with the value at the given position in the array,
     * returning the original value. Until this atomic operation completes, any other read or write
     * operation against the array will block.
     */
    or(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;

    /**
     * Stores a value at the given position in the array, returning the new value. Until this
     * atomic operation completes, any other read or write operation against the array will block.
     */
    store(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;

    /**
     * Subtracts a value from the value at the given position in the array, returning the original
     * value. Until this atomic operation completes, any other read or write operation against the
     * array will block.
     */
    sub(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;

    /**
     * If the value at the given position in the array is equal to the provided value, the current
     * agent is put to sleep causing execution to suspend until the timeout expires (returning
     * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
     * \`"not-equal"\`.
     */
    wait(typedArray: Int32Array<ArrayBufferLike>, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";

    /**
     * Wakes up sleeping agents that are waiting on the given index of the array, returning the
     * number of agents that were awoken.
     * @param typedArray A shared Int32Array<ArrayBufferLike>.
     * @param index The position in the typedArray to wake up on.
     * @param count The number of sleeping agents to notify. Defaults to +Infinity.
     */
    notify(typedArray: Int32Array<ArrayBufferLike>, index: number, count?: number): number;

    /**
     * Stores the bitwise XOR of a value with the value at the given position in the array,
     * returning the original value. Until this atomic operation completes, any other read or write
     * operation against the array will block.
     */
    xor(typedArray: Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>, index: number, value: number): number;

    readonly [Symbol.toStringTag]: "Atomics";
}

declare var Atomics: Atomics;
`),
    (ji["lib.es2017.string.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface String {
    /**
     * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
     * The padding is applied from the start (left) of the current string.
     *
     * @param maxLength The length of the resulting string once the current string has been padded.
     *        If this parameter is smaller than the current string's length, the current string will be returned as it is.
     *
     * @param fillString The string to pad the current string with.
     *        If this string is too long, it will be truncated and the left-most part will be applied.
     *        The default value for this parameter is " " (U+0020).
     */
    padStart(maxLength: number, fillString?: string): string;

    /**
     * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
     * The padding is applied from the end (right) of the current string.
     *
     * @param maxLength The length of the resulting string once the current string has been padded.
     *        If this parameter is smaller than the current string's length, the current string will be returned as it is.
     *
     * @param fillString The string to pad the current string with.
     *        If this string is too long, it will be truncated and the left-most part will be applied.
     *        The default value for this parameter is " " (U+0020).
     */
    padEnd(maxLength: number, fillString?: string): string;
}
`),
    (ji["lib.es2017.typedarrays.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface Int8ArrayConstructor {
    new (): Int8Array<ArrayBuffer>;
}

interface Uint8ArrayConstructor {
    new (): Uint8Array<ArrayBuffer>;
}

interface Uint8ClampedArrayConstructor {
    new (): Uint8ClampedArray<ArrayBuffer>;
}

interface Int16ArrayConstructor {
    new (): Int16Array<ArrayBuffer>;
}

interface Uint16ArrayConstructor {
    new (): Uint16Array<ArrayBuffer>;
}

interface Int32ArrayConstructor {
    new (): Int32Array<ArrayBuffer>;
}

interface Uint32ArrayConstructor {
    new (): Uint32Array<ArrayBuffer>;
}

interface Float32ArrayConstructor {
    new (): Float32Array<ArrayBuffer>;
}

interface Float64ArrayConstructor {
    new (): Float64Array<ArrayBuffer>;
}
`),
    (ji["lib.es2018.asyncgenerator.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2018.asynciterable" />

interface AsyncGenerator<T = unknown, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
    // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
    next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
    return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
    throw(e: any): Promise<IteratorResult<T, TReturn>>;
    [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
}

interface AsyncGeneratorFunction {
    /**
     * Creates a new AsyncGenerator object.
     * @param args A list of arguments the function accepts.
     */
    new (...args: any[]): AsyncGenerator;
    /**
     * Creates a new AsyncGenerator object.
     * @param args A list of arguments the function accepts.
     */
    (...args: any[]): AsyncGenerator;
    /**
     * The length of the arguments.
     */
    readonly length: number;
    /**
     * Returns the name of the function.
     */
    readonly name: string;
    /**
     * A reference to the prototype.
     */
    readonly prototype: AsyncGenerator;
}

interface AsyncGeneratorFunctionConstructor {
    /**
     * Creates a new AsyncGenerator function.
     * @param args A list of arguments the function accepts.
     */
    new (...args: string[]): AsyncGeneratorFunction;
    /**
     * Creates a new AsyncGenerator function.
     * @param args A list of arguments the function accepts.
     */
    (...args: string[]): AsyncGeneratorFunction;
    /**
     * The length of the arguments.
     */
    readonly length: number;
    /**
     * Returns the name of the function.
     */
    readonly name: string;
    /**
     * A reference to the prototype.
     */
    readonly prototype: AsyncGeneratorFunction;
}
`),
    (ji["lib.es2018.asynciterable.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.iterable" />

interface SymbolConstructor {
    /**
     * A method that returns the default async iterator for an object. Called by the semantics of
     * the for-await-of statement.
     */
    readonly asyncIterator: unique symbol;
}

interface AsyncIterator<T, TReturn = any, TNext = any> {
    // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
    next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
    return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
    throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
}

interface AsyncIterable<T, TReturn = any, TNext = any> {
    [Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>;
}

/**
 * Describes a user-defined {@link AsyncIterator} that is also async iterable.
 */
interface AsyncIterableIterator<T, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> {
    [Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;
}

/**
 * Describes an {@link AsyncIterator} produced by the runtime that inherits from the intrinsic \`AsyncIterator.prototype\`.
 */
interface AsyncIteratorObject<T, TReturn = unknown, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
    [Symbol.asyncIterator](): AsyncIteratorObject<T, TReturn, TNext>;
}
`),
    (ji["lib.es2018.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2017" />
/// <reference lib="es2018.asynciterable" />
/// <reference lib="es2018.asyncgenerator" />
/// <reference lib="es2018.promise" />
/// <reference lib="es2018.regexp" />
/// <reference lib="es2018.intl" />
`),
    (ji["lib.es2018.full.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2018" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`),
    (ji["lib.es2018.intl.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

declare namespace Intl {
    // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
    type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
    type PluralRuleType = "cardinal" | "ordinal";

    interface PluralRulesOptions {
        localeMatcher?: "lookup" | "best fit" | undefined;
        type?: PluralRuleType | undefined;
        minimumIntegerDigits?: number | undefined;
        minimumFractionDigits?: number | undefined;
        maximumFractionDigits?: number | undefined;
        minimumSignificantDigits?: number | undefined;
        maximumSignificantDigits?: number | undefined;
    }

    interface ResolvedPluralRulesOptions {
        locale: string;
        pluralCategories: LDMLPluralRule[];
        type: PluralRuleType;
        minimumIntegerDigits: number;
        minimumFractionDigits: number;
        maximumFractionDigits: number;
        minimumSignificantDigits?: number;
        maximumSignificantDigits?: number;
    }

    interface PluralRules {
        resolvedOptions(): ResolvedPluralRulesOptions;
        select(n: number): LDMLPluralRule;
    }

    interface PluralRulesConstructor {
        new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
        (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
        supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
    }

    const PluralRules: PluralRulesConstructor;

    interface NumberFormatPartTypeRegistry {
        literal: never;
        nan: never;
        infinity: never;
        percent: never;
        integer: never;
        group: never;
        decimal: never;
        fraction: never;
        plusSign: never;
        minusSign: never;
        percentSign: never;
        currency: never;
    }

    type NumberFormatPartTypes = keyof NumberFormatPartTypeRegistry;

    interface NumberFormatPart {
        type: NumberFormatPartTypes;
        value: string;
    }

    interface NumberFormat {
        formatToParts(number?: number | bigint): NumberFormatPart[];
    }
}
`),
    (ji["lib.es2018.promise.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/**
 * Represents the completion of an asynchronous operation
 */
interface Promise<T> {
    /**
     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
     * resolved value cannot be modified from the callback.
     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
     * @returns A Promise for the completion of the callback.
     */
    finally(onfinally?: (() => void) | undefined | null): Promise<T>;
}
`),
    (ji["lib.es2018.regexp.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface RegExpMatchArray {
    groups?: {
        [key: string]: string;
    };
}

interface RegExpExecArray {
    groups?: {
        [key: string]: string;
    };
}

interface RegExp {
    /**
     * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
     * Default is false. Read-only.
     */
    readonly dotAll: boolean;
}
`),
    (ji["lib.es2019.array.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

type FlatArray<Arr, Depth extends number> = {
    done: Arr;
    recur: Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>
        : Arr;
}[Depth extends -1 ? "done" : "recur"];

interface ReadonlyArray<T> {
    /**
     * Calls a defined callback function on each element of an array. Then, flattens the result into
     * a new array.
     * This is identical to a map followed by flat with depth 1.
     *
     * @param callback A function that accepts up to three arguments. The flatMap method calls the
     * callback function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callback function. If
     * thisArg is omitted, undefined is used as the this value.
     */
    flatMap<U, This = undefined>(
        callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
        thisArg?: This,
    ): U[];

    /**
     * Returns a new array with all sub-array elements concatenated into it recursively up to the
     * specified depth.
     *
     * @param depth The maximum recursion depth
     */
    flat<A, D extends number = 1>(
        this: A,
        depth?: D,
    ): FlatArray<A, D>[];
}

interface Array<T> {
    /**
     * Calls a defined callback function on each element of an array. Then, flattens the result into
     * a new array.
     * This is identical to a map followed by flat with depth 1.
     *
     * @param callback A function that accepts up to three arguments. The flatMap method calls the
     * callback function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callback function. If
     * thisArg is omitted, undefined is used as the this value.
     */
    flatMap<U, This = undefined>(
        callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
        thisArg?: This,
    ): U[];

    /**
     * Returns a new array with all sub-array elements concatenated into it recursively up to the
     * specified depth.
     *
     * @param depth The maximum recursion depth
     */
    flat<A, D extends number = 1>(
        this: A,
        depth?: D,
    ): FlatArray<A, D>[];
}
`),
    (ji["lib.es2019.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2018" />
/// <reference lib="es2019.array" />
/// <reference lib="es2019.object" />
/// <reference lib="es2019.string" />
/// <reference lib="es2019.symbol" />
/// <reference lib="es2019.intl" />
`),
    (ji["lib.es2019.full.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2019" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`),
    (ji["lib.es2019.intl.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

declare namespace Intl {
    interface DateTimeFormatPartTypesRegistry {
        unknown: never;
    }
}
`),
    (ji["lib.es2019.object.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.iterable" />

interface ObjectConstructor {
    /**
     * Returns an object created by key-value entries for properties and methods
     * @param entries An iterable object that contains key-value entries for properties and methods.
     */
    fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T; };

    /**
     * Returns an object created by key-value entries for properties and methods
     * @param entries An iterable object that contains key-value entries for properties and methods.
     */
    fromEntries(entries: Iterable<readonly any[]>): any;
}
`),
    (ji["lib.es2019.string.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface String {
    /** Removes the trailing white space and line terminator characters from a string. */
    trimEnd(): string;

    /** Removes the leading white space and line terminator characters from a string. */
    trimStart(): string;

    /**
     * Removes the leading white space and line terminator characters from a string.
     * @deprecated A legacy feature for browser compatibility. Use \`trimStart\` instead
     */
    trimLeft(): string;

    /**
     * Removes the trailing white space and line terminator characters from a string.
     * @deprecated A legacy feature for browser compatibility. Use \`trimEnd\` instead
     */
    trimRight(): string;
}
`),
    (ji["lib.es2019.symbol.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface Symbol {
    /**
     * Expose the [[Description]] internal slot of a symbol directly.
     */
    readonly description: string | undefined;
}
`),
    (ji["lib.es2020.bigint.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2020.intl" />

interface BigIntToLocaleStringOptions {
    /**
     * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
     */
    localeMatcher?: string;
    /**
     * The formatting style to use , the default is "decimal".
     */
    style?: string;

    numberingSystem?: string;
    /**
     * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
     */
    unit?: string;

    /**
     * The unit formatting style to use in unit formatting, the defaults is "short".
     */
    unitDisplay?: string;

    /**
     * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB — see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".
     */
    currency?: string;

    /**
     * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
     *
     * "symbol" to use a localized currency symbol such as €,
     *
     * "code" to use the ISO currency code,
     *
     * "name" to use a localized currency name such as "dollar"
     */
    currencyDisplay?: string;

    /**
     * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
     */
    useGrouping?: boolean;

    /**
     * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
     */
    minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;

    /**
     * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
     */
    minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;

    /**
     * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
     */
    maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;

    /**
     * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
     */
    minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;

    /**
     * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
     */
    maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;

    /**
     * The formatting that should be displayed for the number, the defaults is "standard"
     *
     *     "standard" plain number formatting
     *
     *     "scientific" return the order-of-magnitude for formatted number.
     *
     *     "engineering" return the exponent of ten when divisible by three
     *
     *     "compact" string representing exponent, defaults is using the "short" form
     */
    notation?: string;

    /**
     * used only when notation is "compact"
     */
    compactDisplay?: string;
}

interface BigInt {
    /**
     * Returns a string representation of an object.
     * @param radix Specifies a radix for converting numeric values to strings.
     */
    toString(radix?: number): string;

    /** Returns a string representation appropriate to the host environment's current locale. */
    toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): bigint;

    readonly [Symbol.toStringTag]: "BigInt";
}

interface BigIntConstructor {
    (value: bigint | boolean | number | string): bigint;
    readonly prototype: BigInt;

    /**
     * Interprets the low bits of a BigInt as a 2's-complement signed integer.
     * All higher bits are discarded.
     * @param bits The number of low bits to use
     * @param int The BigInt whose bits to extract
     */
    asIntN(bits: number, int: bigint): bigint;
    /**
     * Interprets the low bits of a BigInt as an unsigned integer.
     * All higher bits are discarded.
     * @param bits The number of low bits to use
     * @param int The BigInt whose bits to extract
     */
    asUintN(bits: number, int: bigint): bigint;
}

declare var BigInt: BigIntConstructor;

/**
 * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
 * requested number of bytes could not be allocated, an exception is raised.
 */
interface BigInt64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /** The size in bytes of each element in the array. */
    readonly BYTES_PER_ELEMENT: number;

    /** The ArrayBuffer instance referenced by the array. */
    readonly buffer: TArrayBuffer;

    /** The length in bytes of the array. */
    readonly byteLength: number;

    /** The offset in bytes of the array. */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /** Yields index, value pairs for every entry in the array. */
    entries(): ArrayIterator<[number, bigint]>;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns false,
     * or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: bigint, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => any, thisArg?: any): BigInt64Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => void, thisArg?: any): void;

    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: bigint, fromIndex?: number): boolean;

    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: bigint, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /** Yields each index in the array. */
    keys(): ArrayIterator<number>;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: bigint, fromIndex?: number): number;

    /** The length of the array. */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => bigint): bigint;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array<TArrayBuffer>) => U, initialValue: U): U;

    /** Reverses the elements in the array. */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<bigint>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array.
     */
    slice(start?: number, end?: number): BigInt64Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls the
     * predicate function for each element in the array until the predicate returns true, or until
     * the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: bigint, index: number, array: BigInt64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;

    /**
     * Sorts the array.
     * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
     */
    sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;

    /**
     * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): BigInt64Array<TArrayBuffer>;

    /** Converts the array to a string by using the current locale. */
    toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;

    /** Returns a string representation of the array. */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): BigInt64Array<TArrayBuffer>;

    /** Yields each value in the array. */
    values(): ArrayIterator<bigint>;

    [Symbol.iterator](): ArrayIterator<bigint>;

    readonly [Symbol.toStringTag]: "BigInt64Array";

    [index: number]: bigint;
}
interface BigInt64ArrayConstructor {
    readonly prototype: BigInt64Array<ArrayBufferLike>;
    new (length?: number): BigInt64Array<ArrayBuffer>;
    new (array: ArrayLike<bigint> | Iterable<bigint>): BigInt64Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigInt64Array<ArrayBuffer>;
    new (array: ArrayLike<bigint> | ArrayBuffer): BigInt64Array<ArrayBuffer>;

    /** The size in bytes of each element in the array. */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: bigint[]): BigInt64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<bigint>): BigInt64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<bigint>): BigInt64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigInt64Array<ArrayBuffer>;
}
declare var BigInt64Array: BigInt64ArrayConstructor;

/**
 * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
 * requested number of bytes could not be allocated, an exception is raised.
 */
interface BigUint64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /** The size in bytes of each element in the array. */
    readonly BYTES_PER_ELEMENT: number;

    /** The ArrayBuffer instance referenced by the array. */
    readonly buffer: TArrayBuffer;

    /** The length in bytes of the array. */
    readonly byteLength: number;

    /** The offset in bytes of the array. */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /** Yields index, value pairs for every entry in the array. */
    entries(): ArrayIterator<[number, bigint]>;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns false,
     * or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: bigint, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => any, thisArg?: any): BigUint64Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): bigint | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => void, thisArg?: any): void;

    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: bigint, fromIndex?: number): boolean;

    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: bigint, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /** Yields each index in the array. */
    keys(): ArrayIterator<number>;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: bigint, fromIndex?: number): number;

    /** The length of the array. */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => bigint): bigint;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array<TArrayBuffer>) => U, initialValue: U): U;

    /** Reverses the elements in the array. */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<bigint>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array.
     */
    slice(start?: number, end?: number): BigUint64Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls the
     * predicate function for each element in the array until the predicate returns true, or until
     * the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: bigint, index: number, array: BigUint64Array<TArrayBuffer>) => boolean, thisArg?: any): boolean;

    /**
     * Sorts the array.
     * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
     */
    sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;

    /**
     * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): BigUint64Array<TArrayBuffer>;

    /** Converts the array to a string by using the current locale. */
    toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;

    /** Returns a string representation of the array. */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): BigUint64Array<TArrayBuffer>;

    /** Yields each value in the array. */
    values(): ArrayIterator<bigint>;

    [Symbol.iterator](): ArrayIterator<bigint>;

    readonly [Symbol.toStringTag]: "BigUint64Array";

    [index: number]: bigint;
}
interface BigUint64ArrayConstructor {
    readonly prototype: BigUint64Array<ArrayBufferLike>;
    new (length?: number): BigUint64Array<ArrayBuffer>;
    new (array: ArrayLike<bigint> | Iterable<bigint>): BigUint64Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): BigUint64Array<ArrayBuffer>;
    new (array: ArrayLike<bigint> | ArrayBuffer): BigUint64Array<ArrayBuffer>;

    /** The size in bytes of each element in the array. */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: bigint[]): BigUint64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<bigint>): BigUint64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<bigint>): BigUint64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => bigint, thisArg?: any): BigUint64Array<ArrayBuffer>;
}
declare var BigUint64Array: BigUint64ArrayConstructor;

interface DataView<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Gets the BigInt64 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     * @param littleEndian If false or undefined, a big-endian value should be read.
     */
    getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;

    /**
     * Gets the BigUint64 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     * @param littleEndian If false or undefined, a big-endian value should be read.
     */
    getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;

    /**
     * Stores a BigInt64 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     * @param littleEndian If false or undefined, a big-endian value should be written.
     */
    setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;

    /**
     * Stores a BigUint64 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     * @param littleEndian If false or undefined, a big-endian value should be written.
     */
    setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
}

declare namespace Intl {
    interface NumberFormat {
        format(value: number | bigint): string;
    }
}
`),
    (ji["lib.es2020.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2019" />
/// <reference lib="es2020.bigint" />
/// <reference lib="es2020.date" />
/// <reference lib="es2020.number" />
/// <reference lib="es2020.promise" />
/// <reference lib="es2020.sharedmemory" />
/// <reference lib="es2020.string" />
/// <reference lib="es2020.symbol.wellknown" />
/// <reference lib="es2020.intl" />
`),
    (ji["lib.es2020.date.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2020.intl" />

interface Date {
    /**
     * Converts a date and time to a string by using the current or specified locale.
     * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
     * @param options An object that contains one or more properties that specify comparison options.
     */
    toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;

    /**
     * Converts a date to a string by using the current or specified locale.
     * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
     * @param options An object that contains one or more properties that specify comparison options.
     */
    toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;

    /**
     * Converts a time to a string by using the current or specified locale.
     * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
     * @param options An object that contains one or more properties that specify comparison options.
     */
    toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
}
`),
    (ji["lib.es2020.full.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2020" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`),
    (ji["lib.es2020.intl.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2018.intl" />
declare namespace Intl {
    /**
     * A string that is a valid [Unicode BCP 47 Locale Identifier](https://unicode.org/reports/tr35/#Unicode_locale_identifier).
     *
     * For example: "fa", "es-MX", "zh-Hant-TW".
     *
     * See [MDN - Intl - locales argument](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
     */
    type UnicodeBCP47LocaleIdentifier = string;

    /**
     * Unit to use in the relative time internationalized message.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
     */
    type RelativeTimeFormatUnit =
        | "year"
        | "years"
        | "quarter"
        | "quarters"
        | "month"
        | "months"
        | "week"
        | "weeks"
        | "day"
        | "days"
        | "hour"
        | "hours"
        | "minute"
        | "minutes"
        | "second"
        | "seconds";

    /**
     * Value of the \`unit\` property in objects returned by
     * \`Intl.RelativeTimeFormat.prototype.formatToParts()\`. \`formatToParts\` and
     * \`format\` methods accept either singular or plural unit names as input,
     * but \`formatToParts\` only outputs singular (e.g. "day") not plural (e.g.
     * "days").
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
     */
    type RelativeTimeFormatUnitSingular =
        | "year"
        | "quarter"
        | "month"
        | "week"
        | "day"
        | "hour"
        | "minute"
        | "second";

    /**
     * The locale matching algorithm to use.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
     */
    type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";

    /**
     * The format of output message.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
     */
    type RelativeTimeFormatNumeric = "always" | "auto";

    /**
     * The length of the internationalized message.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
     */
    type RelativeTimeFormatStyle = "long" | "short" | "narrow";

    /**
     * The locale or locales to use
     *
     * See [MDN - Intl - locales argument](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
     */
    type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;

    /**
     * An object with some or all of properties of \`options\` parameter
     * of \`Intl.RelativeTimeFormat\` constructor.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
     */
    interface RelativeTimeFormatOptions {
        /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
        localeMatcher?: RelativeTimeFormatLocaleMatcher;
        /** The format of output message. */
        numeric?: RelativeTimeFormatNumeric;
        /** The length of the internationalized message. */
        style?: RelativeTimeFormatStyle;
    }

    /**
     * An object with properties reflecting the locale
     * and formatting options computed during initialization
     * of the \`Intl.RelativeTimeFormat\` object
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
     */
    interface ResolvedRelativeTimeFormatOptions {
        locale: UnicodeBCP47LocaleIdentifier;
        style: RelativeTimeFormatStyle;
        numeric: RelativeTimeFormatNumeric;
        numberingSystem: string;
    }

    /**
     * An object representing the relative time format in parts
     * that can be used for custom locale-aware formatting.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
     */
    type RelativeTimeFormatPart =
        | {
            type: "literal";
            value: string;
        }
        | {
            type: Exclude<NumberFormatPartTypes, "literal">;
            value: string;
            unit: RelativeTimeFormatUnitSingular;
        };

    interface RelativeTimeFormat {
        /**
         * Formats a value and a unit according to the locale
         * and formatting options of the given
         * [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
         * object.
         *
         * While this method automatically provides the correct plural forms,
         * the grammatical form is otherwise as neutral as possible.
         *
         * It is the caller's responsibility to handle cut-off logic
         * such as deciding between displaying "in 7 days" or "in 1 week".
         * This API does not support relative dates involving compound units.
         * e.g "in 5 days and 4 hours".
         *
         * @param value -  Numeric value to use in the internationalized relative time message
         *
         * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
         *
         * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
         *
         * @returns {string} Internationalized relative time message as string
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
         */
        format(value: number, unit: RelativeTimeFormatUnit): string;

        /**
         *  Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
         *
         *  @param value - Numeric value to use in the internationalized relative time message
         *
         *  @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
         *
         *  @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
         *
         *  [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
         */
        formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];

        /**
         * Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
         */
        resolvedOptions(): ResolvedRelativeTimeFormatOptions;
    }

    /**
     * The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
     * object is a constructor for objects that enable language-sensitive relative time formatting.
     *
     * [Compatibility](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
     */
    const RelativeTimeFormat: {
        /**
         * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
         *
         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
         *  For the general form and interpretation of the locales argument,
         *  see the [\`Intl\` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
         *
         * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
         *  with some or all of options of \`RelativeTimeFormatOptions\`.
         *
         * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
         */
        new (
            locales?: LocalesArgument,
            options?: RelativeTimeFormatOptions,
        ): RelativeTimeFormat;

        /**
         * Returns an array containing those of the provided locales
         * that are supported in date and time formatting
         * without having to fall back to the runtime's default locale.
         *
         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
         *  For the general form and interpretation of the locales argument,
         *  see the [\`Intl\` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
         *
         * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
         *  with some or all of options of the formatting.
         *
         * @returns An array containing those of the provided locales
         *  that are supported in date and time formatting
         *  without having to fall back to the runtime's default locale.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
         */
        supportedLocalesOf(
            locales?: LocalesArgument,
            options?: RelativeTimeFormatOptions,
        ): UnicodeBCP47LocaleIdentifier[];
    };

    interface NumberFormatOptionsStyleRegistry {
        unit: never;
    }

    interface NumberFormatOptionsCurrencyDisplayRegistry {
        narrowSymbol: never;
    }

    interface NumberFormatOptionsSignDisplayRegistry {
        auto: never;
        never: never;
        always: never;
        exceptZero: never;
    }

    type NumberFormatOptionsSignDisplay = keyof NumberFormatOptionsSignDisplayRegistry;

    interface NumberFormatOptions {
        numberingSystem?: string | undefined;
        compactDisplay?: "short" | "long" | undefined;
        notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
        signDisplay?: NumberFormatOptionsSignDisplay | undefined;
        unit?: string | undefined;
        unitDisplay?: "short" | "long" | "narrow" | undefined;
        currencySign?: "standard" | "accounting" | undefined;
    }

    interface ResolvedNumberFormatOptions {
        compactDisplay?: "short" | "long";
        notation: "standard" | "scientific" | "engineering" | "compact";
        signDisplay: NumberFormatOptionsSignDisplay;
        unit?: string;
        unitDisplay?: "short" | "long" | "narrow";
        currencySign?: "standard" | "accounting";
    }

    interface NumberFormatPartTypeRegistry {
        compact: never;
        exponentInteger: never;
        exponentMinusSign: never;
        exponentSeparator: never;
        unit: never;
        unknown: never;
    }

    interface DateTimeFormatOptions {
        calendar?: string | undefined;
        dayPeriod?: "narrow" | "short" | "long" | undefined;
        numberingSystem?: string | undefined;

        dateStyle?: "full" | "long" | "medium" | "short" | undefined;
        timeStyle?: "full" | "long" | "medium" | "short" | undefined;
        hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
    }

    type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
    type LocaleCollationCaseFirst = "upper" | "lower" | "false";

    interface LocaleOptions {
        /** A string containing the language, and the script and region if available. */
        baseName?: string;
        /** The part of the Locale that indicates the locale's calendar era. */
        calendar?: string;
        /** Flag that defines whether case is taken into account for the locale's collation rules. */
        caseFirst?: LocaleCollationCaseFirst;
        /** The collation type used for sorting */
        collation?: string;
        /** The time keeping format convention used by the locale. */
        hourCycle?: LocaleHourCycleKey;
        /** The primary language subtag associated with the locale. */
        language?: string;
        /** The numeral system used by the locale. */
        numberingSystem?: string;
        /** Flag that defines whether the locale has special collation handling for numeric characters. */
        numeric?: boolean;
        /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
        region?: string;
        /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
        script?: string;
    }

    interface Locale extends LocaleOptions {
        /** A string containing the language, and the script and region if available. */
        baseName: string;
        /** The primary language subtag associated with the locale. */
        language: string;
        /** Gets the most likely values for the language, script, and region of the locale based on existing values. */
        maximize(): Locale;
        /** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */
        minimize(): Locale;
        /** Returns the locale's full locale identifier string. */
        toString(): UnicodeBCP47LocaleIdentifier;
    }

    /**
     * Constructor creates [Intl.Locale](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
     * objects
     *
     * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
     *  For the general form and interpretation of the locales argument,
     *  see the [\`Intl\` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
     *
     * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
     *
     * @returns [Intl.Locale](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
     */
    const Locale: {
        new (tag: UnicodeBCP47LocaleIdentifier | Locale, options?: LocaleOptions): Locale;
    };

    type DisplayNamesFallback =
        | "code"
        | "none";

    type DisplayNamesType =
        | "language"
        | "region"
        | "script"
        | "calendar"
        | "dateTimeField"
        | "currency";

    type DisplayNamesLanguageDisplay =
        | "dialect"
        | "standard";

    interface DisplayNamesOptions {
        localeMatcher?: RelativeTimeFormatLocaleMatcher;
        style?: RelativeTimeFormatStyle;
        type: DisplayNamesType;
        languageDisplay?: DisplayNamesLanguageDisplay;
        fallback?: DisplayNamesFallback;
    }

    interface ResolvedDisplayNamesOptions {
        locale: UnicodeBCP47LocaleIdentifier;
        style: RelativeTimeFormatStyle;
        type: DisplayNamesType;
        fallback: DisplayNamesFallback;
        languageDisplay?: DisplayNamesLanguageDisplay;
    }

    interface DisplayNames {
        /**
         * Receives a code and returns a string based on the locale and options provided when instantiating
         * [\`Intl.DisplayNames()\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
         *
         * @param code The \`code\` to provide depends on the \`type\` passed to display name during creation:
         *  - If the type is \`"region"\`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
         *    or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
         *  - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
         *  - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` )
         *    subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
         *    \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
         *  - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
         */
        of(code: string): string | undefined;
        /**
         * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
         * [\`Intl/DisplayNames\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
         */
        resolvedOptions(): ResolvedDisplayNamesOptions;
    }

    /**
     * The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
     * object enables the consistent translation of language, region and script display names.
     *
     * [Compatibility](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
     */
    const DisplayNames: {
        prototype: DisplayNames;

        /**
         * @param locales A string with a BCP 47 language tag, or an array of such strings.
         *   For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
         *   page.
         *
         * @param options An object for setting up a display name.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
         */
        new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;

        /**
         * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
         *
         * @param locales A string with a BCP 47 language tag, or an array of such strings.
         *   For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
         *   page.
         *
         * @param options An object with a locale matcher.
         *
         * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
         */
        supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];
    };

    interface CollatorConstructor {
        new (locales?: LocalesArgument, options?: CollatorOptions): Collator;
        (locales?: LocalesArgument, options?: CollatorOptions): Collator;
        supportedLocalesOf(locales: LocalesArgument, options?: CollatorOptions): string[];
    }

    interface DateTimeFormatConstructor {
        new (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;
        (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;
        supportedLocalesOf(locales: LocalesArgument, options?: DateTimeFormatOptions): string[];
    }

    interface NumberFormatConstructor {
        new (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;
        (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;
        supportedLocalesOf(locales: LocalesArgument, options?: NumberFormatOptions): string[];
    }

    interface PluralRulesConstructor {
        new (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
        (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;

        supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
    }
}
`),
    (ji["lib.es2020.number.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2020.intl" />

interface Number {
    /**
     * Converts a number to a string by using the current or specified locale.
     * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
     * @param options An object that contains one or more properties that specify comparison options.
     */
    toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
}
`),
    (ji["lib.es2020.promise.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface PromiseFulfilledResult<T> {
    status: "fulfilled";
    value: T;
}

interface PromiseRejectedResult {
    status: "rejected";
    reason: any;
}

type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;

interface PromiseConstructor {
    /**
     * Creates a Promise that is resolved with an array of results when all
     * of the provided Promises resolve or reject.
     * @param values An array of Promises.
     * @returns A new Promise.
     */
    allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>;

    /**
     * Creates a Promise that is resolved with an array of results when all
     * of the provided Promises resolve or reject.
     * @param values An array of Promises.
     * @returns A new Promise.
     */
    allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
}
`),
    (ji["lib.es2020.sharedmemory.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2020.bigint" />

interface Atomics {
    /**
     * Adds a value to the value at the given position in the array, returning the original value.
     * Until this atomic operation completes, any other read or write operation against the array
     * will block.
     */
    add(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;

    /**
     * Stores the bitwise AND of a value with the value at the given position in the array,
     * returning the original value. Until this atomic operation completes, any other read or
     * write operation against the array will block.
     */
    and(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;

    /**
     * Replaces the value at the given position in the array if the original value equals the given
     * expected value, returning the original value. Until this atomic operation completes, any
     * other read or write operation against the array will block.
     */
    compareExchange(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, expectedValue: bigint, replacementValue: bigint): bigint;

    /**
     * Replaces the value at the given position in the array, returning the original value. Until
     * this atomic operation completes, any other read or write operation against the array will
     * block.
     */
    exchange(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;

    /**
     * Returns the value at the given position in the array. Until this atomic operation completes,
     * any other read or write operation against the array will block.
     */
    load(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number): bigint;

    /**
     * Stores the bitwise OR of a value with the value at the given position in the array,
     * returning the original value. Until this atomic operation completes, any other read or write
     * operation against the array will block.
     */
    or(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;

    /**
     * Stores a value at the given position in the array, returning the new value. Until this
     * atomic operation completes, any other read or write operation against the array will block.
     */
    store(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;

    /**
     * Subtracts a value from the value at the given position in the array, returning the original
     * value. Until this atomic operation completes, any other read or write operation against the
     * array will block.
     */
    sub(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;

    /**
     * If the value at the given position in the array is equal to the provided value, the current
     * agent is put to sleep causing execution to suspend until the timeout expires (returning
     * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
     * \`"not-equal"\`.
     */
    wait(typedArray: BigInt64Array<ArrayBufferLike>, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";

    /**
     * Wakes up sleeping agents that are waiting on the given index of the array, returning the
     * number of agents that were awoken.
     * @param typedArray A shared BigInt64Array.
     * @param index The position in the typedArray to wake up on.
     * @param count The number of sleeping agents to notify. Defaults to +Infinity.
     */
    notify(typedArray: BigInt64Array<ArrayBufferLike>, index: number, count?: number): number;

    /**
     * Stores the bitwise XOR of a value with the value at the given position in the array,
     * returning the original value. Until this atomic operation completes, any other read or write
     * operation against the array will block.
     */
    xor(typedArray: BigInt64Array<ArrayBufferLike> | BigUint64Array<ArrayBufferLike>, index: number, value: bigint): bigint;
}
`),
    (ji["lib.es2020.string.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.iterable" />
/// <reference lib="es2020.intl" />
/// <reference lib="es2020.symbol.wellknown" />

interface String {
    /**
     * Matches a string with a regular expression, and returns an iterable of matches
     * containing the results of that search.
     * @param regexp A variable name or string literal containing the regular expression pattern and flags.
     */
    matchAll(regexp: RegExp): RegExpStringIterator<RegExpExecArray>;

    /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
    toLocaleLowerCase(locales?: Intl.LocalesArgument): string;

    /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
    toLocaleUpperCase(locales?: Intl.LocalesArgument): string;

    /**
     * Determines whether two strings are equivalent in the current or specified locale.
     * @param that String to compare to target string
     * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
     * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
     */
    localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
}
`),
    (ji["lib.es2020.symbol.wellknown.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.symbol" />

interface SymbolConstructor {
    /**
     * A regular expression method that matches the regular expression against a string. Called
     * by the String.prototype.matchAll method.
     */
    readonly matchAll: unique symbol;
}

interface RegExpStringIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): RegExpStringIterator<T>;
}

interface RegExp {
    /**
     * Matches a string with this regular expression, and returns an iterable of matches
     * containing the results of that search.
     * @param string A string to search within.
     */
    [Symbol.matchAll](str: string): RegExpStringIterator<RegExpMatchArray>;
}
`),
    (ji["lib.es2021.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2020" />
/// <reference lib="es2021.promise" />
/// <reference lib="es2021.string" />
/// <reference lib="es2021.weakref" />
/// <reference lib="es2021.intl" />
`),
    (ji["lib.es2021.full.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2021" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`),
    (ji["lib.es2021.intl.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

declare namespace Intl {
    interface DateTimeFormatPartTypesRegistry {
        fractionalSecond: any;
    }

    interface DateTimeFormatOptions {
        formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
        dateStyle?: "full" | "long" | "medium" | "short" | undefined;
        timeStyle?: "full" | "long" | "medium" | "short" | undefined;
        dayPeriod?: "narrow" | "short" | "long" | undefined;
        fractionalSecondDigits?: 1 | 2 | 3 | undefined;
    }

    interface DateTimeRangeFormatPart extends DateTimeFormatPart {
        source: "startRange" | "endRange" | "shared";
    }

    interface DateTimeFormat {
        formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
        formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
    }

    interface ResolvedDateTimeFormatOptions {
        formatMatcher?: "basic" | "best fit" | "best fit";
        dateStyle?: "full" | "long" | "medium" | "short";
        timeStyle?: "full" | "long" | "medium" | "short";
        hourCycle?: "h11" | "h12" | "h23" | "h24";
        dayPeriod?: "narrow" | "short" | "long";
        fractionalSecondDigits?: 1 | 2 | 3;
    }

    /**
     * The locale matching algorithm to use.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
     */
    type ListFormatLocaleMatcher = "lookup" | "best fit";

    /**
     * The format of output message.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
     */
    type ListFormatType = "conjunction" | "disjunction" | "unit";

    /**
     * The length of the formatted message.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
     */
    type ListFormatStyle = "long" | "short" | "narrow";

    /**
     * An object with some or all properties of the \`Intl.ListFormat\` constructor \`options\` parameter.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
     */
    interface ListFormatOptions {
        /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
        localeMatcher?: ListFormatLocaleMatcher | undefined;
        /** The format of output message. */
        type?: ListFormatType | undefined;
        /** The length of the internationalized message. */
        style?: ListFormatStyle | undefined;
    }

    interface ResolvedListFormatOptions {
        locale: string;
        style: ListFormatStyle;
        type: ListFormatType;
    }

    interface ListFormat {
        /**
         * Returns a string with a language-specific representation of the list.
         *
         * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array).
         *
         * @throws \`TypeError\` if \`list\` includes something other than the possible values.
         *
         * @returns {string} A language-specific formatted string representing the elements of the list.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
         */
        format(list: Iterable<string>): string;

        /**
         * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
         *
         * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
         *
         * @throws \`TypeError\` if \`list\` includes something other than the possible values.
         *
         * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
         */
        formatToParts(list: Iterable<string>): { type: "element" | "literal"; value: string; }[];

        /**
         * Returns a new object with properties reflecting the locale and style
         * formatting options computed during the construction of the current
         * \`Intl.ListFormat\` object.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
         */
        resolvedOptions(): ResolvedListFormatOptions;
    }

    const ListFormat: {
        prototype: ListFormat;

        /**
         * Creates [Intl.ListFormat](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
         * enable language-sensitive list formatting.
         *
         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
         *  For the general form and interpretation of the \`locales\` argument,
         *  see the [\`Intl\` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
         *
         * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
         *  with some or all options of \`ListFormatOptions\`.
         *
         * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
         */
        new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat;

        /**
         * Returns an array containing those of the provided locales that are
         * supported in list formatting without having to fall back to the runtime's default locale.
         *
         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
         *  For the general form and interpretation of the \`locales\` argument,
         *  see the [\`Intl\` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
         *
         * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
         *  with some or all possible options.
         *
         * @returns An array of strings representing a subset of the given locale tags that are supported in list
         *  formatting without having to fall back to the runtime's default locale.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
         */
        supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
    };
}
`),
    (ji["lib.es2021.promise.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface AggregateError extends Error {
    errors: any[];
}

interface AggregateErrorConstructor {
    new (errors: Iterable<any>, message?: string): AggregateError;
    (errors: Iterable<any>, message?: string): AggregateError;
    readonly prototype: AggregateError;
}

declare var AggregateError: AggregateErrorConstructor;

/**
 * Represents the completion of an asynchronous operation
 */
interface PromiseConstructor {
    /**
     * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
     * @param values An array or iterable of Promises.
     * @returns A new Promise.
     */
    any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;

    /**
     * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
     * @param values An array or iterable of Promises.
     * @returns A new Promise.
     */
    any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
}
`),
    (ji["lib.es2021.string.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface String {
    /**
     * Replace all instances of a substring in a string, using a regular expression or search string.
     * @param searchValue A string to search for.
     * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
     */
    replaceAll(searchValue: string | RegExp, replaceValue: string): string;

    /**
     * Replace all instances of a substring in a string, using a regular expression or search string.
     * @param searchValue A string to search for.
     * @param replacer A function that returns the replacement text.
     */
    replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
}
`),
    (ji["lib.es2021.weakref.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.symbol.wellknown" />

interface WeakRef<T extends WeakKey> {
    readonly [Symbol.toStringTag]: "WeakRef";

    /**
     * Returns the WeakRef instance's target value, or undefined if the target value has been
     * reclaimed.
     * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
     */
    deref(): T | undefined;
}

interface WeakRefConstructor {
    readonly prototype: WeakRef<any>;

    /**
     * Creates a WeakRef instance for the given target value.
     * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
     * @param target The target value for the WeakRef instance.
     */
    new <T extends WeakKey>(target: T): WeakRef<T>;
}

declare var WeakRef: WeakRefConstructor;

interface FinalizationRegistry<T> {
    readonly [Symbol.toStringTag]: "FinalizationRegistry";

    /**
     * Registers a value with the registry.
     * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
     * @param target The target value to register.
     * @param heldValue The value to pass to the finalizer for this value. This cannot be the
     * target value.
     * @param unregisterToken The token to pass to the unregister method to unregister the target
     * value. If not provided, the target cannot be unregistered.
     */
    register(target: WeakKey, heldValue: T, unregisterToken?: WeakKey): void;

    /**
     * Unregisters a value from the registry.
     * In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
     * @param unregisterToken The token that was used as the unregisterToken argument when calling
     * register to register the target value.
     */
    unregister(unregisterToken: WeakKey): boolean;
}

interface FinalizationRegistryConstructor {
    readonly prototype: FinalizationRegistry<any>;

    /**
     * Creates a finalization registry with an associated cleanup callback
     * @param cleanupCallback The callback to call after a value in the registry has been reclaimed.
     */
    new <T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
}

declare var FinalizationRegistry: FinalizationRegistryConstructor;
`),
    (ji["lib.es2022.array.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface Array<T> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): T | undefined;
}

interface ReadonlyArray<T> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): T | undefined;
}

interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): number | undefined;
}

interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): number | undefined;
}

interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): number | undefined;
}

interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): number | undefined;
}

interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): number | undefined;
}

interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): number | undefined;
}

interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): number | undefined;
}

interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): number | undefined;
}

interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): number | undefined;
}

interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): bigint | undefined;
}

interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): bigint | undefined;
}
`),
    (ji["lib.es2022.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2021" />
/// <reference lib="es2022.array" />
/// <reference lib="es2022.error" />
/// <reference lib="es2022.intl" />
/// <reference lib="es2022.object" />
/// <reference lib="es2022.regexp" />
/// <reference lib="es2022.string" />
`),
    (ji["lib.es2022.error.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2021.promise" />

interface ErrorOptions {
    cause?: unknown;
}

interface Error {
    cause?: unknown;
}

interface ErrorConstructor {
    new (message?: string, options?: ErrorOptions): Error;
    (message?: string, options?: ErrorOptions): Error;
}

interface EvalErrorConstructor {
    new (message?: string, options?: ErrorOptions): EvalError;
    (message?: string, options?: ErrorOptions): EvalError;
}

interface RangeErrorConstructor {
    new (message?: string, options?: ErrorOptions): RangeError;
    (message?: string, options?: ErrorOptions): RangeError;
}

interface ReferenceErrorConstructor {
    new (message?: string, options?: ErrorOptions): ReferenceError;
    (message?: string, options?: ErrorOptions): ReferenceError;
}

interface SyntaxErrorConstructor {
    new (message?: string, options?: ErrorOptions): SyntaxError;
    (message?: string, options?: ErrorOptions): SyntaxError;
}

interface TypeErrorConstructor {
    new (message?: string, options?: ErrorOptions): TypeError;
    (message?: string, options?: ErrorOptions): TypeError;
}

interface URIErrorConstructor {
    new (message?: string, options?: ErrorOptions): URIError;
    (message?: string, options?: ErrorOptions): URIError;
}

interface AggregateErrorConstructor {
    new (
        errors: Iterable<any>,
        message?: string,
        options?: ErrorOptions,
    ): AggregateError;
    (
        errors: Iterable<any>,
        message?: string,
        options?: ErrorOptions,
    ): AggregateError;
}
`),
    (ji["lib.es2022.full.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2022" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`),
    (ji["lib.es2022.intl.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

declare namespace Intl {
    /**
     * An object with some or all properties of the \`Intl.Segmenter\` constructor \`options\` parameter.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
     */
    interface SegmenterOptions {
        /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
        localeMatcher?: "best fit" | "lookup" | undefined;
        /** The type of input to be split */
        granularity?: "grapheme" | "word" | "sentence" | undefined;
    }

    /**
     * The \`Intl.Segmenter\` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)
     */
    interface Segmenter {
        /**
         * Returns \`Segments\` object containing the segments of the input string, using the segmenter's locale and granularity.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment)
         *
         * @param input - The text to be segmented as a \`string\`.
         *
         * @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
         */
        segment(input: string): Segments;
        /**
         * The \`resolvedOptions()\` method of \`Intl.Segmenter\` instances returns a new object with properties reflecting the options computed during initialization of this \`Segmenter\` object.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/resolvedOptions)
         */
        resolvedOptions(): ResolvedSegmenterOptions;
    }

    interface ResolvedSegmenterOptions {
        locale: string;
        granularity: "grapheme" | "word" | "sentence";
    }

    interface SegmentIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
        [Symbol.iterator](): SegmentIterator<T>;
    }

    /**
     * A \`Segments\` object is an iterable collection of the segments of a text string. It is returned by a call to the \`segment()\` method of an \`Intl.Segmenter\` object.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments)
     */
    interface Segments {
        /**
         * Returns an object describing the segment in the original string that includes the code unit at a specified index.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/segment/Segments/containing)
         *
         * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to \`0\`.
         */
        containing(codeUnitIndex?: number): SegmentData | undefined;

        /** Returns an iterator to iterate over the segments. */
        [Symbol.iterator](): SegmentIterator<SegmentData>;
    }

    interface SegmentData {
        /** A string containing the segment extracted from the original input string. */
        segment: string;
        /** The code unit index in the original input string at which the segment begins. */
        index: number;
        /** The complete input string that was segmented. */
        input: string;
        /**
         * A boolean value only if granularity is "word"; otherwise, undefined.
         * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
         */
        isWordLike?: boolean;
    }

    /**
     * The \`Intl.Segmenter\` object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter)
     */
    const Segmenter: {
        prototype: Segmenter;

        /**
         * Creates a new \`Intl.Segmenter\` object.
         *
         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
         *  For the general form and interpretation of the \`locales\` argument,
         *  see the [\`Intl\` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
         *
         * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
         *  with some or all options of \`SegmenterOptions\`.
         *
         * @returns [Intl.Segmenter](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
         */
        new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;

        /**
         * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
         *
         * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
         *  For the general form and interpretation of the \`locales\` argument,
         *  see the [\`Intl\` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
         *
         * @param options An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
         *  with some or all possible options.
         *
         * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
         */
        supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
    };

    /**
     * Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
     *
     * @param key A string indicating the category of values to return.
     * @returns A sorted array of the supported values.
     */
    function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[];
}
`),
    (ji["lib.es2022.object.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface ObjectConstructor {
    /**
     * Determines whether an object has a property with the specified name.
     * @param o An object.
     * @param v A property name.
     */
    hasOwn(o: object, v: PropertyKey): boolean;
}
`),
    (ji["lib.es2022.regexp.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface RegExpMatchArray {
    indices?: RegExpIndicesArray;
}

interface RegExpExecArray {
    indices?: RegExpIndicesArray;
}

interface RegExpIndicesArray extends Array<[number, number]> {
    groups?: {
        [key: string]: [number, number];
    };
}

interface RegExp {
    /**
     * Returns a Boolean value indicating the state of the hasIndices flag (d) used with a regular expression.
     * Default is false. Read-only.
     */
    readonly hasIndices: boolean;
}
`),
    (ji["lib.es2022.string.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface String {
    /**
     * Returns a new String consisting of the single UTF-16 code unit located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): string | undefined;
}
`),
    (ji["lib.es2023.array.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface Array<T> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;
    findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;

    /**
     * Returns a copy of an array with its elements reversed.
     */
    toReversed(): T[];

    /**
     * Returns a copy of an array with its elements sorted.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.
     * \`\`\`ts
     * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
     * \`\`\`
     */
    toSorted(compareFn?: (a: T, b: T) => number): T[];

    /**
     * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.
     * @param start The zero-based location in the array from which to start removing elements.
     * @param deleteCount The number of elements to remove.
     * @param items Elements to insert into the copied array in place of the deleted elements.
     * @returns The copied array.
     */
    toSpliced(start: number, deleteCount: number, ...items: T[]): T[];

    /**
     * Copies an array and removes elements while returning the remaining elements.
     * @param start The zero-based location in the array from which to start removing elements.
     * @param deleteCount The number of elements to remove.
     * @returns A copy of the original array with the remaining elements.
     */
    toSpliced(start: number, deleteCount?: number): T[];

    /**
     * Copies an array, then overwrites the value at the provided index with the
     * given value. If the index is negative, then it replaces from the end
     * of the array.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to write into the copied array.
     * @returns The copied array with the updated value.
     */
    with(index: number, value: T): T[];
}

interface ReadonlyArray<T> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends T>(
        predicate: (value: T, index: number, array: readonly T[]) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (value: T, index: number, array: readonly T[]) => unknown,
        thisArg?: any,
    ): T | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (value: T, index: number, array: readonly T[]) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copied array with all of its elements reversed.
     */
    toReversed(): T[];

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.
     * \`\`\`ts
     * [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
     * \`\`\`
     */
    toSorted(compareFn?: (a: T, b: T) => number): T[];

    /**
     * Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements.
     * @param start The zero-based location in the array from which to start removing elements.
     * @param deleteCount The number of elements to remove.
     * @param items Elements to insert into the copied array in place of the deleted elements.
     * @returns A copy of the original array with the remaining elements.
     */
    toSpliced(start: number, deleteCount: number, ...items: T[]): T[];

    /**
     * Copies an array and removes elements while returning the remaining elements.
     * @param start The zero-based location in the array from which to start removing elements.
     * @param deleteCount The number of elements to remove.
     * @returns A copy of the original array with the remaining elements.
     */
    toSpliced(start: number, deleteCount?: number): T[];

    /**
     * Copies an array, then overwrites the value at the provided index with the
     * given value. If the index is negative, then it replaces from the end
     * of the array
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: T): T[];
}

interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends number>(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (value: number, index: number, array: this) => unknown,
        thisArg?: any,
    ): number | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (value: number, index: number, array: this) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): Int8Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = Int8Array.from([11, 2, 22, 1]);
     * myNums.toSorted((a, b) => a - b) // Int8Array(4) [1, 2, 11, 22]
     * \`\`\`
     */
    toSorted(compareFn?: (a: number, b: number) => number): Int8Array<ArrayBuffer>;

    /**
     * Copies the array and inserts the given number at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: number): Int8Array<ArrayBuffer>;
}

interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends number>(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (value: number, index: number, array: this) => unknown,
        thisArg?: any,
    ): number | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (value: number, index: number, array: this) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): Uint8Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = Uint8Array.from([11, 2, 22, 1]);
     * myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
     * \`\`\`
     */
    toSorted(compareFn?: (a: number, b: number) => number): Uint8Array<ArrayBuffer>;

    /**
     * Copies the array and inserts the given number at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: number): Uint8Array<ArrayBuffer>;
}

interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends number>(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): Uint8ClampedArray<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
     * myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
     * \`\`\`
     */
    toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray<ArrayBuffer>;

    /**
     * Copies the array and inserts the given number at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: number): Uint8ClampedArray<ArrayBuffer>;
}

interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends number>(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (value: number, index: number, array: this) => unknown,
        thisArg?: any,
    ): number | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (value: number, index: number, array: this) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): Int16Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = Int16Array.from([11, 2, -22, 1]);
     * myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
     * \`\`\`
     */
    toSorted(compareFn?: (a: number, b: number) => number): Int16Array<ArrayBuffer>;

    /**
     * Copies the array and inserts the given number at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: number): Int16Array<ArrayBuffer>;
}

interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends number>(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): Uint16Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = Uint16Array.from([11, 2, 22, 1]);
     * myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
     * \`\`\`
     */
    toSorted(compareFn?: (a: number, b: number) => number): Uint16Array<ArrayBuffer>;

    /**
     * Copies the array and inserts the given number at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: number): Uint16Array<ArrayBuffer>;
}

interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends number>(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (value: number, index: number, array: this) => unknown,
        thisArg?: any,
    ): number | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (value: number, index: number, array: this) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): Int32Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = Int32Array.from([11, 2, -22, 1]);
     * myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
     * \`\`\`
     */
    toSorted(compareFn?: (a: number, b: number) => number): Int32Array<ArrayBuffer>;

    /**
     * Copies the array and inserts the given number at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: number): Int32Array<ArrayBuffer>;
}

interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends number>(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): Uint32Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = Uint32Array.from([11, 2, 22, 1]);
     * myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
     * \`\`\`
     */
    toSorted(compareFn?: (a: number, b: number) => number): Uint32Array<ArrayBuffer>;

    /**
     * Copies the array and inserts the given number at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: number): Uint32Array<ArrayBuffer>;
}

interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends number>(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): Float32Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
     * myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
     * \`\`\`
     */
    toSorted(compareFn?: (a: number, b: number) => number): Float32Array<ArrayBuffer>;

    /**
     * Copies the array and inserts the given number at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: number): Float32Array<ArrayBuffer>;
}

interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends number>(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): Float64Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
     * myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
     * \`\`\`
     */
    toSorted(compareFn?: (a: number, b: number) => number): Float64Array<ArrayBuffer>;

    /**
     * Copies the array and inserts the given number at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: number): Float64Array<ArrayBuffer>;
}

interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends bigint>(
        predicate: (
            value: bigint,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (
            value: bigint,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): bigint | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (
            value: bigint,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): BigInt64Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
     * myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
     * \`\`\`
     */
    toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array<ArrayBuffer>;

    /**
     * Copies the array and inserts the given bigint at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: bigint): BigInt64Array<ArrayBuffer>;
}

interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends bigint>(
        predicate: (
            value: bigint,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (
            value: bigint,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): bigint | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (
            value: bigint,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): BigUint64Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
     * myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
     * \`\`\`
     */
    toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array<ArrayBuffer>;

    /**
     * Copies the array and inserts the given bigint at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: bigint): BigUint64Array<ArrayBuffer>;
}
`),
    (ji["lib.es2023.collection.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface WeakKeyTypes {
    symbol: symbol;
}
`),
    (ji["lib.es2023.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2022" />
/// <reference lib="es2023.array" />
/// <reference lib="es2023.collection" />
/// <reference lib="es2023.intl" />
`),
    (ji["lib.es2023.full.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2023" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`),
    (ji["lib.es2023.intl.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

declare namespace Intl {
    interface NumberFormatOptionsUseGroupingRegistry {
        min2: never;
        auto: never;
        always: never;
    }

    interface NumberFormatOptionsSignDisplayRegistry {
        negative: never;
    }

    interface NumberFormatOptions {
        roundingPriority?: "auto" | "morePrecision" | "lessPrecision" | undefined;
        roundingIncrement?: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000 | undefined;
        roundingMode?: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
        trailingZeroDisplay?: "auto" | "stripIfInteger" | undefined;
    }

    interface ResolvedNumberFormatOptions {
        roundingPriority: "auto" | "morePrecision" | "lessPrecision";
        roundingMode: "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven";
        roundingIncrement: 1 | 2 | 5 | 10 | 20 | 25 | 50 | 100 | 200 | 250 | 500 | 1000 | 2000 | 2500 | 5000;
        trailingZeroDisplay: "auto" | "stripIfInteger";
    }

    interface NumberRangeFormatPart extends NumberFormatPart {
        source: "startRange" | "endRange" | "shared";
    }

    type StringNumericLiteral = \`\${number}\` | "Infinity" | "-Infinity" | "+Infinity";

    interface NumberFormat {
        format(value: number | bigint | StringNumericLiteral): string;
        formatToParts(value: number | bigint | StringNumericLiteral): NumberFormatPart[];
        formatRange(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): string;
        formatRangeToParts(start: number | bigint | StringNumericLiteral, end: number | bigint | StringNumericLiteral): NumberRangeFormatPart[];
    }
}
`),
    (ji["lib.es2024.arraybuffer.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface ArrayBuffer {
    /**
     * If this ArrayBuffer is resizable, returns the maximum byte length given during construction; returns the byte length if not.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/maxByteLength)
     */
    get maxByteLength(): number;

    /**
     * Returns true if this ArrayBuffer can be resized.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resizable)
     */
    get resizable(): boolean;

    /**
     * Resizes the ArrayBuffer to the specified size (in bytes).
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize)
     */
    resize(newByteLength?: number): void;

    /**
     * Returns a boolean indicating whether or not this buffer has been detached (transferred).
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/detached)
     */
    get detached(): boolean;

    /**
     * Creates a new ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer)
     */
    transfer(newByteLength?: number): ArrayBuffer;

    /**
     * Creates a new non-resizable ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transferToFixedLength)
     */
    transferToFixedLength(newByteLength?: number): ArrayBuffer;
}

interface ArrayBufferConstructor {
    new (byteLength: number, options?: { maxByteLength?: number; }): ArrayBuffer;
}
`),
    (ji["lib.es2024.collection.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface MapConstructor {
    /**
     * Groups members of an iterable according to the return value of the passed callback.
     * @param items An iterable.
     * @param keySelector A callback which will be invoked for each item in items.
     */
    groupBy<K, T>(
        items: Iterable<T>,
        keySelector: (item: T, index: number) => K,
    ): Map<K, T[]>;
}
`),
    (ji["lib.es2024.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2023" />
/// <reference lib="es2024.arraybuffer" />
/// <reference lib="es2024.collection" />
/// <reference lib="es2024.object" />
/// <reference lib="es2024.promise" />
/// <reference lib="es2024.regexp" />
/// <reference lib="es2024.sharedmemory" />
/// <reference lib="es2024.string" />
`),
    (ji["lib.es2024.full.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2024" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`),
    (ji["lib.es2024.object.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface ObjectConstructor {
    /**
     * Groups members of an iterable according to the return value of the passed callback.
     * @param items An iterable.
     * @param keySelector A callback which will be invoked for each item in items.
     */
    groupBy<K extends PropertyKey, T>(
        items: Iterable<T>,
        keySelector: (item: T, index: number) => K,
    ): Partial<Record<K, T[]>>;
}
`),
    (ji["lib.es2024.promise.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface PromiseWithResolvers<T> {
    promise: Promise<T>;
    resolve: (value: T | PromiseLike<T>) => void;
    reject: (reason?: any) => void;
}

interface PromiseConstructor {
    /**
     * Creates a new Promise and returns it in an object, along with its resolve and reject functions.
     * @returns An object with the properties \`promise\`, \`resolve\`, and \`reject\`.
     *
     * \`\`\`ts
     * const { promise, resolve, reject } = Promise.withResolvers<T>();
     * \`\`\`
     */
    withResolvers<T>(): PromiseWithResolvers<T>;
}
`),
    (ji["lib.es2024.regexp.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface RegExp {
    /**
     * Returns a Boolean value indicating the state of the unicodeSets flag (v) used with a regular expression.
     * Default is false. Read-only.
     */
    readonly unicodeSets: boolean;
}
`),
    (ji["lib.es2024.sharedmemory.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2020.bigint" />

interface Atomics {
    /**
     * A non-blocking, asynchronous version of wait which is usable on the main thread.
     * Waits asynchronously on a shared memory location and returns a Promise
     * @param typedArray A shared Int32Array or BigInt64Array.
     * @param index The position in the typedArray to wait on.
     * @param value The expected value to test.
     * @param [timeout] The expected value to test.
     */
    waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };

    /**
     * A non-blocking, asynchronous version of wait which is usable on the main thread.
     * Waits asynchronously on a shared memory location and returns a Promise
     * @param typedArray A shared Int32Array or BigInt64Array.
     * @param index The position in the typedArray to wait on.
     * @param value The expected value to test.
     * @param [timeout] The expected value to test.
     */
    waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };
}

interface SharedArrayBuffer {
    /**
     * Returns true if this SharedArrayBuffer can be grown.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/growable)
     */
    get growable(): boolean;

    /**
     * If this SharedArrayBuffer is growable, returns the maximum byte length given during construction; returns the byte length if not.
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/maxByteLength)
     */
    get maxByteLength(): number;

    /**
     * Grows the SharedArrayBuffer to the specified size (in bytes).
     *
     * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/grow)
     */
    grow(newByteLength?: number): void;
}

interface SharedArrayBufferConstructor {
    new (byteLength: number, options?: { maxByteLength?: number; }): SharedArrayBuffer;
}
`),
    (ji["lib.es2024.string.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface String {
    /**
     * Returns true if all leading surrogates and trailing surrogates appear paired and in order.
     */
    isWellFormed(): boolean;

    /**
     * Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).
     */
    toWellFormed(): string;
}
`),
    (ji["lib.es5.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="decorators" />
/// <reference lib="decorators.legacy" />

/////////////////////////////
/// ECMAScript APIs
/////////////////////////////

declare var NaN: number;
declare var Infinity: number;

/**
 * Evaluates JavaScript code and executes it.
 * @param x A String value that contains valid JavaScript code.
 */
declare function eval(x: string): any;

/**
 * Converts a string to an integer.
 * @param string A string to convert into a number.
 * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
 * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
 * All other strings are considered decimal.
 */
declare function parseInt(string: string, radix?: number): number;

/**
 * Converts a string to a floating-point number.
 * @param string A string that contains a floating-point number.
 */
declare function parseFloat(string: string): number;

/**
 * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
 * @param number A numeric value.
 */
declare function isNaN(number: number): boolean;

/**
 * Determines whether a supplied number is finite.
 * @param number Any numeric value.
 */
declare function isFinite(number: number): boolean;

/**
 * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
 * @param encodedURI A value representing an encoded URI.
 */
declare function decodeURI(encodedURI: string): string;

/**
 * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
 * @param encodedURIComponent A value representing an encoded URI component.
 */
declare function decodeURIComponent(encodedURIComponent: string): string;

/**
 * Encodes a text string as a valid Uniform Resource Identifier (URI)
 * @param uri A value representing an unencoded URI.
 */
declare function encodeURI(uri: string): string;

/**
 * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
 * @param uriComponent A value representing an unencoded URI component.
 */
declare function encodeURIComponent(uriComponent: string | number | boolean): string;

/**
 * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
 * @deprecated A legacy feature for browser compatibility
 * @param string A string value
 */
declare function escape(string: string): string;

/**
 * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
 * @deprecated A legacy feature for browser compatibility
 * @param string A string value
 */
declare function unescape(string: string): string;

interface Symbol {
    /** Returns a string representation of an object. */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): symbol;
}

declare type PropertyKey = string | number | symbol;

interface PropertyDescriptor {
    configurable?: boolean;
    enumerable?: boolean;
    value?: any;
    writable?: boolean;
    get?(): any;
    set?(v: any): void;
}

interface PropertyDescriptorMap {
    [key: PropertyKey]: PropertyDescriptor;
}

interface Object {
    /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
    constructor: Function;

    /** Returns a string representation of an object. */
    toString(): string;

    /** Returns a date converted to a string using the current locale. */
    toLocaleString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): Object;

    /**
     * Determines whether an object has a property with the specified name.
     * @param v A property name.
     */
    hasOwnProperty(v: PropertyKey): boolean;

    /**
     * Determines whether an object exists in another object's prototype chain.
     * @param v Another object whose prototype chain is to be checked.
     */
    isPrototypeOf(v: Object): boolean;

    /**
     * Determines whether a specified property is enumerable.
     * @param v A property name.
     */
    propertyIsEnumerable(v: PropertyKey): boolean;
}

interface ObjectConstructor {
    new (value?: any): Object;
    (): any;
    (value: any): any;

    /** A reference to the prototype for a class of objects. */
    readonly prototype: Object;

    /**
     * Returns the prototype of an object.
     * @param o The object that references the prototype.
     */
    getPrototypeOf(o: any): any;

    /**
     * Gets the own property descriptor of the specified object.
     * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
     * @param o Object that contains the property.
     * @param p Name of the property.
     */
    getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;

    /**
     * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
     * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
     * @param o Object that contains the own properties.
     */
    getOwnPropertyNames(o: any): string[];

    /**
     * Creates an object that has the specified prototype or that has null prototype.
     * @param o Object to use as a prototype. May be null.
     */
    create(o: object | null): any;

    /**
     * Creates an object that has the specified prototype, and that optionally contains specified properties.
     * @param o Object to use as a prototype. May be null
     * @param properties JavaScript object that contains one or more property descriptors.
     */
    create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;

    /**
     * Adds a property to an object, or modifies attributes of an existing property.
     * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
     * @param p The property name.
     * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
     */
    defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;

    /**
     * Adds one or more properties to an object, and/or modifies attributes of existing properties.
     * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
     * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
     */
    defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;

    /**
     * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
     * @param o Object on which to lock the attributes.
     */
    seal<T>(o: T): T;

    /**
     * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
     * @param f Object on which to lock the attributes.
     */
    freeze<T extends Function>(f: T): T;

    /**
     * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
     * @param o Object on which to lock the attributes.
     */
    freeze<T extends { [idx: string]: U | null | undefined | object; }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;

    /**
     * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
     * @param o Object on which to lock the attributes.
     */
    freeze<T>(o: T): Readonly<T>;

    /**
     * Prevents the addition of new properties to an object.
     * @param o Object to make non-extensible.
     */
    preventExtensions<T>(o: T): T;

    /**
     * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
     * @param o Object to test.
     */
    isSealed(o: any): boolean;

    /**
     * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
     * @param o Object to test.
     */
    isFrozen(o: any): boolean;

    /**
     * Returns a value that indicates whether new properties can be added to an object.
     * @param o Object to test.
     */
    isExtensible(o: any): boolean;

    /**
     * Returns the names of the enumerable string properties and methods of an object.
     * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
     */
    keys(o: object): string[];
}

/**
 * Provides functionality common to all JavaScript objects.
 */
declare var Object: ObjectConstructor;

/**
 * Creates a new function.
 */
interface Function {
    /**
     * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
     * @param thisArg The object to be used as the this object.
     * @param argArray A set of arguments to be passed to the function.
     */
    apply(this: Function, thisArg: any, argArray?: any): any;

    /**
     * Calls a method of an object, substituting another object for the current object.
     * @param thisArg The object to be used as the current object.
     * @param argArray A list of arguments to be passed to the method.
     */
    call(this: Function, thisArg: any, ...argArray: any[]): any;

    /**
     * For a given function, creates a bound function that has the same body as the original function.
     * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
     * @param thisArg An object to which the this keyword can refer inside the new function.
     * @param argArray A list of arguments to be passed to the new function.
     */
    bind(this: Function, thisArg: any, ...argArray: any[]): any;

    /** Returns a string representation of a function. */
    toString(): string;

    prototype: any;
    readonly length: number;

    // Non-standard extensions
    arguments: any;
    caller: Function;
}

interface FunctionConstructor {
    /**
     * Creates a new function.
     * @param args A list of arguments the function accepts.
     */
    new (...args: string[]): Function;
    (...args: string[]): Function;
    readonly prototype: Function;
}

declare var Function: FunctionConstructor;

/**
 * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
 */
type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;

/**
 * Removes the 'this' parameter from a function type.
 */
type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;

interface CallableFunction extends Function {
    /**
     * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
     * @param thisArg The object to be used as the this object.
     */
    apply<T, R>(this: (this: T) => R, thisArg: T): R;

    /**
     * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
     * @param thisArg The object to be used as the this object.
     * @param args An array of argument values to be passed to the function.
     */
    apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;

    /**
     * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
     * @param thisArg The object to be used as the this object.
     * @param args Argument values to be passed to the function.
     */
    call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;

    /**
     * For a given function, creates a bound function that has the same body as the original function.
     * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
     * @param thisArg The object to be used as the this object.
     */
    bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;

    /**
     * For a given function, creates a bound function that has the same body as the original function.
     * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
     * @param thisArg The object to be used as the this object.
     * @param args Arguments to bind to the parameters of the function.
     */
    bind<T, A extends any[], B extends any[], R>(this: (this: T, ...args: [...A, ...B]) => R, thisArg: T, ...args: A): (...args: B) => R;
}

interface NewableFunction extends Function {
    /**
     * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
     * @param thisArg The object to be used as the this object.
     */
    apply<T>(this: new () => T, thisArg: T): void;
    /**
     * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
     * @param thisArg The object to be used as the this object.
     * @param args An array of argument values to be passed to the function.
     */
    apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;

    /**
     * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
     * @param thisArg The object to be used as the this object.
     * @param args Argument values to be passed to the function.
     */
    call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;

    /**
     * For a given function, creates a bound function that has the same body as the original function.
     * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
     * @param thisArg The object to be used as the this object.
     */
    bind<T>(this: T, thisArg: any): T;

    /**
     * For a given function, creates a bound function that has the same body as the original function.
     * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
     * @param thisArg The object to be used as the this object.
     * @param args Arguments to bind to the parameters of the function.
     */
    bind<A extends any[], B extends any[], R>(this: new (...args: [...A, ...B]) => R, thisArg: any, ...args: A): new (...args: B) => R;
}

interface IArguments {
    [index: number]: any;
    length: number;
    callee: Function;
}

interface String {
    /** Returns a string representation of a string. */
    toString(): string;

    /**
     * Returns the character at the specified index.
     * @param pos The zero-based index of the desired character.
     */
    charAt(pos: number): string;

    /**
     * Returns the Unicode value of the character at the specified location.
     * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
     */
    charCodeAt(index: number): number;

    /**
     * Returns a string that contains the concatenation of two or more strings.
     * @param strings The strings to append to the end of the string.
     */
    concat(...strings: string[]): string;

    /**
     * Returns the position of the first occurrence of a substring.
     * @param searchString The substring to search for in the string
     * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
     */
    indexOf(searchString: string, position?: number): number;

    /**
     * Returns the last occurrence of a substring in the string.
     * @param searchString The substring to search for.
     * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
     */
    lastIndexOf(searchString: string, position?: number): number;

    /**
     * Determines whether two strings are equivalent in the current locale.
     * @param that String to compare to target string
     */
    localeCompare(that: string): number;

    /**
     * Matches a string with a regular expression, and returns an array containing the results of that search.
     * @param regexp A variable name or string literal containing the regular expression pattern and flags.
     */
    match(regexp: string | RegExp): RegExpMatchArray | null;

    /**
     * Replaces text in a string, using a regular expression or search string.
     * @param searchValue A string or regular expression to search for.
     * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a \`RegExp\`, all matches are replaced if the \`g\` flag is set (or only those matches at the beginning, if the \`y\` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.
     */
    replace(searchValue: string | RegExp, replaceValue: string): string;

    /**
     * Replaces text in a string, using a regular expression or search string.
     * @param searchValue A string to search for.
     * @param replacer A function that returns the replacement text.
     */
    replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;

    /**
     * Finds the first substring match in a regular expression search.
     * @param regexp The regular expression pattern and applicable flags.
     */
    search(regexp: string | RegExp): number;

    /**
     * Returns a section of a string.
     * @param start The index to the beginning of the specified portion of stringObj.
     * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
     * If this value is not specified, the substring continues to the end of stringObj.
     */
    slice(start?: number, end?: number): string;

    /**
     * Split a string into substrings using the specified separator and return them as an array.
     * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
     * @param limit A value used to limit the number of elements returned in the array.
     */
    split(separator: string | RegExp, limit?: number): string[];

    /**
     * Returns the substring at the specified location within a String object.
     * @param start The zero-based index number indicating the beginning of the substring.
     * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
     * If end is omitted, the characters from start through the end of the original string are returned.
     */
    substring(start: number, end?: number): string;

    /** Converts all the alphabetic characters in a string to lowercase. */
    toLowerCase(): string;

    /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
    toLocaleLowerCase(locales?: string | string[]): string;

    /** Converts all the alphabetic characters in a string to uppercase. */
    toUpperCase(): string;

    /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
    toLocaleUpperCase(locales?: string | string[]): string;

    /** Removes the leading and trailing white space and line terminator characters from a string. */
    trim(): string;

    /** Returns the length of a String object. */
    readonly length: number;

    // IE extensions
    /**
     * Gets a substring beginning at the specified location and having the specified length.
     * @deprecated A legacy feature for browser compatibility
     * @param from The starting position of the desired substring. The index of the first character in the string is zero.
     * @param length The number of characters to include in the returned substring.
     */
    substr(from: number, length?: number): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): string;

    readonly [index: number]: string;
}

interface StringConstructor {
    new (value?: any): String;
    (value?: any): string;
    readonly prototype: String;
    fromCharCode(...codes: number[]): string;
}

/**
 * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
 */
declare var String: StringConstructor;

interface Boolean {
    /** Returns the primitive value of the specified object. */
    valueOf(): boolean;
}

interface BooleanConstructor {
    new (value?: any): Boolean;
    <T>(value?: T): boolean;
    readonly prototype: Boolean;
}

declare var Boolean: BooleanConstructor;

interface Number {
    /**
     * Returns a string representation of an object.
     * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
     */
    toString(radix?: number): string;

    /**
     * Returns a string representing a number in fixed-point notation.
     * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
     */
    toFixed(fractionDigits?: number): string;

    /**
     * Returns a string containing a number represented in exponential notation.
     * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
     */
    toExponential(fractionDigits?: number): string;

    /**
     * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
     * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
     */
    toPrecision(precision?: number): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): number;
}

interface NumberConstructor {
    new (value?: any): Number;
    (value?: any): number;
    readonly prototype: Number;

    /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
    readonly MAX_VALUE: number;

    /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
    readonly MIN_VALUE: number;

    /**
     * A value that is not a number.
     * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
     */
    readonly NaN: number;

    /**
     * A value that is less than the largest negative number that can be represented in JavaScript.
     * JavaScript displays NEGATIVE_INFINITY values as -infinity.
     */
    readonly NEGATIVE_INFINITY: number;

    /**
     * A value greater than the largest number that can be represented in JavaScript.
     * JavaScript displays POSITIVE_INFINITY values as infinity.
     */
    readonly POSITIVE_INFINITY: number;
}

/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
declare var Number: NumberConstructor;

interface TemplateStringsArray extends ReadonlyArray<string> {
    readonly raw: readonly string[];
}

/**
 * The type of \`import.meta\`.
 *
 * If you need to declare that a given property exists on \`import.meta\`,
 * this type may be augmented via interface merging.
 */
interface ImportMeta {
}

/**
 * The type for the optional second argument to \`import()\`.
 *
 * If your host environment supports additional options, this type may be
 * augmented via interface merging.
 */
interface ImportCallOptions {
    /** @deprecated*/ assert?: ImportAssertions;
    with?: ImportAttributes;
}

/**
 * The type for the \`assert\` property of the optional second argument to \`import()\`.
 * @deprecated
 */
interface ImportAssertions {
    [key: string]: string;
}

/**
 * The type for the \`with\` property of the optional second argument to \`import()\`.
 */
interface ImportAttributes {
    [key: string]: string;
}

interface Math {
    /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
    readonly E: number;
    /** The natural logarithm of 10. */
    readonly LN10: number;
    /** The natural logarithm of 2. */
    readonly LN2: number;
    /** The base-2 logarithm of e. */
    readonly LOG2E: number;
    /** The base-10 logarithm of e. */
    readonly LOG10E: number;
    /** Pi. This is the ratio of the circumference of a circle to its diameter. */
    readonly PI: number;
    /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
    readonly SQRT1_2: number;
    /** The square root of 2. */
    readonly SQRT2: number;
    /**
     * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
     * For example, the absolute value of -5 is the same as the absolute value of 5.
     * @param x A numeric expression for which the absolute value is needed.
     */
    abs(x: number): number;
    /**
     * Returns the arc cosine (or inverse cosine) of a number.
     * @param x A numeric expression.
     */
    acos(x: number): number;
    /**
     * Returns the arcsine of a number.
     * @param x A numeric expression.
     */
    asin(x: number): number;
    /**
     * Returns the arctangent of a number.
     * @param x A numeric expression for which the arctangent is needed.
     */
    atan(x: number): number;
    /**
     * Returns the angle (in radians) between the X axis and the line going through both the origin and the given point.
     * @param y A numeric expression representing the cartesian y-coordinate.
     * @param x A numeric expression representing the cartesian x-coordinate.
     */
    atan2(y: number, x: number): number;
    /**
     * Returns the smallest integer greater than or equal to its numeric argument.
     * @param x A numeric expression.
     */
    ceil(x: number): number;
    /**
     * Returns the cosine of a number.
     * @param x A numeric expression that contains an angle measured in radians.
     */
    cos(x: number): number;
    /**
     * Returns e (the base of natural logarithms) raised to a power.
     * @param x A numeric expression representing the power of e.
     */
    exp(x: number): number;
    /**
     * Returns the greatest integer less than or equal to its numeric argument.
     * @param x A numeric expression.
     */
    floor(x: number): number;
    /**
     * Returns the natural logarithm (base e) of a number.
     * @param x A numeric expression.
     */
    log(x: number): number;
    /**
     * Returns the larger of a set of supplied numeric expressions.
     * @param values Numeric expressions to be evaluated.
     */
    max(...values: number[]): number;
    /**
     * Returns the smaller of a set of supplied numeric expressions.
     * @param values Numeric expressions to be evaluated.
     */
    min(...values: number[]): number;
    /**
     * Returns the value of a base expression taken to a specified power.
     * @param x The base value of the expression.
     * @param y The exponent value of the expression.
     */
    pow(x: number, y: number): number;
    /** Returns a pseudorandom number between 0 and 1. */
    random(): number;
    /**
     * Returns a supplied numeric expression rounded to the nearest integer.
     * @param x The value to be rounded to the nearest integer.
     */
    round(x: number): number;
    /**
     * Returns the sine of a number.
     * @param x A numeric expression that contains an angle measured in radians.
     */
    sin(x: number): number;
    /**
     * Returns the square root of a number.
     * @param x A numeric expression.
     */
    sqrt(x: number): number;
    /**
     * Returns the tangent of a number.
     * @param x A numeric expression that contains an angle measured in radians.
     */
    tan(x: number): number;
}
/** An intrinsic object that provides basic mathematics functionality and constants. */
declare var Math: Math;

/** Enables basic storage and retrieval of dates and times. */
interface Date {
    /** Returns a string representation of a date. The format of the string depends on the locale. */
    toString(): string;
    /** Returns a date as a string value. */
    toDateString(): string;
    /** Returns a time as a string value. */
    toTimeString(): string;
    /** Returns a value as a string value appropriate to the host environment's current locale. */
    toLocaleString(): string;
    /** Returns a date as a string value appropriate to the host environment's current locale. */
    toLocaleDateString(): string;
    /** Returns a time as a string value appropriate to the host environment's current locale. */
    toLocaleTimeString(): string;
    /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
    valueOf(): number;
    /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
    getTime(): number;
    /** Gets the year, using local time. */
    getFullYear(): number;
    /** Gets the year using Universal Coordinated Time (UTC). */
    getUTCFullYear(): number;
    /** Gets the month, using local time. */
    getMonth(): number;
    /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
    getUTCMonth(): number;
    /** Gets the day-of-the-month, using local time. */
    getDate(): number;
    /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
    getUTCDate(): number;
    /** Gets the day of the week, using local time. */
    getDay(): number;
    /** Gets the day of the week using Universal Coordinated Time (UTC). */
    getUTCDay(): number;
    /** Gets the hours in a date, using local time. */
    getHours(): number;
    /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
    getUTCHours(): number;
    /** Gets the minutes of a Date object, using local time. */
    getMinutes(): number;
    /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
    getUTCMinutes(): number;
    /** Gets the seconds of a Date object, using local time. */
    getSeconds(): number;
    /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
    getUTCSeconds(): number;
    /** Gets the milliseconds of a Date, using local time. */
    getMilliseconds(): number;
    /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
    getUTCMilliseconds(): number;
    /** Gets the difference in minutes between Universal Coordinated Time (UTC) and the time on the local computer. */
    getTimezoneOffset(): number;
    /**
     * Sets the date and time value in the Date object.
     * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
     */
    setTime(time: number): number;
    /**
     * Sets the milliseconds value in the Date object using local time.
     * @param ms A numeric value equal to the millisecond value.
     */
    setMilliseconds(ms: number): number;
    /**
     * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
     * @param ms A numeric value equal to the millisecond value.
     */
    setUTCMilliseconds(ms: number): number;

    /**
     * Sets the seconds value in the Date object using local time.
     * @param sec A numeric value equal to the seconds value.
     * @param ms A numeric value equal to the milliseconds value.
     */
    setSeconds(sec: number, ms?: number): number;
    /**
     * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
     * @param sec A numeric value equal to the seconds value.
     * @param ms A numeric value equal to the milliseconds value.
     */
    setUTCSeconds(sec: number, ms?: number): number;
    /**
     * Sets the minutes value in the Date object using local time.
     * @param min A numeric value equal to the minutes value.
     * @param sec A numeric value equal to the seconds value.
     * @param ms A numeric value equal to the milliseconds value.
     */
    setMinutes(min: number, sec?: number, ms?: number): number;
    /**
     * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
     * @param min A numeric value equal to the minutes value.
     * @param sec A numeric value equal to the seconds value.
     * @param ms A numeric value equal to the milliseconds value.
     */
    setUTCMinutes(min: number, sec?: number, ms?: number): number;
    /**
     * Sets the hour value in the Date object using local time.
     * @param hours A numeric value equal to the hours value.
     * @param min A numeric value equal to the minutes value.
     * @param sec A numeric value equal to the seconds value.
     * @param ms A numeric value equal to the milliseconds value.
     */
    setHours(hours: number, min?: number, sec?: number, ms?: number): number;
    /**
     * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
     * @param hours A numeric value equal to the hours value.
     * @param min A numeric value equal to the minutes value.
     * @param sec A numeric value equal to the seconds value.
     * @param ms A numeric value equal to the milliseconds value.
     */
    setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
    /**
     * Sets the numeric day-of-the-month value of the Date object using local time.
     * @param date A numeric value equal to the day of the month.
     */
    setDate(date: number): number;
    /**
     * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
     * @param date A numeric value equal to the day of the month.
     */
    setUTCDate(date: number): number;
    /**
     * Sets the month value in the Date object using local time.
     * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
     * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
     */
    setMonth(month: number, date?: number): number;
    /**
     * Sets the month value in the Date object using Universal Coordinated Time (UTC).
     * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
     * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
     */
    setUTCMonth(month: number, date?: number): number;
    /**
     * Sets the year of the Date object using local time.
     * @param year A numeric value for the year.
     * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
     * @param date A numeric value equal for the day of the month.
     */
    setFullYear(year: number, month?: number, date?: number): number;
    /**
     * Sets the year value in the Date object using Universal Coordinated Time (UTC).
     * @param year A numeric value equal to the year.
     * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
     * @param date A numeric value equal to the day of the month.
     */
    setUTCFullYear(year: number, month?: number, date?: number): number;
    /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
    toUTCString(): string;
    /** Returns a date as a string value in ISO format. */
    toISOString(): string;
    /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
    toJSON(key?: any): string;
}

interface DateConstructor {
    new (): Date;
    new (value: number | string): Date;
    /**
     * Creates a new Date.
     * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
     * @param monthIndex The month as a number between 0 and 11 (January to December).
     * @param date The date as a number between 1 and 31.
     * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
     * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
     * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
     * @param ms A number from 0 to 999 that specifies the milliseconds.
     */
    new (year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
    (): string;
    readonly prototype: Date;
    /**
     * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
     * @param s A date string
     */
    parse(s: string): number;
    /**
     * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
     * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
     * @param monthIndex The month as a number between 0 and 11 (January to December).
     * @param date The date as a number between 1 and 31.
     * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
     * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
     * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
     * @param ms A number from 0 to 999 that specifies the milliseconds.
     */
    UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
    /** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */
    now(): number;
}

declare var Date: DateConstructor;

interface RegExpMatchArray extends Array<string> {
    /**
     * The index of the search at which the result was found.
     */
    index?: number;
    /**
     * A copy of the search string.
     */
    input?: string;
    /**
     * The first match. This will always be present because \`null\` will be returned if there are no matches.
     */
    0: string;
}

interface RegExpExecArray extends Array<string> {
    /**
     * The index of the search at which the result was found.
     */
    index: number;
    /**
     * A copy of the search string.
     */
    input: string;
    /**
     * The first match. This will always be present because \`null\` will be returned if there are no matches.
     */
    0: string;
}

interface RegExp {
    /**
     * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
     * @param string The String object or string literal on which to perform the search.
     */
    exec(string: string): RegExpExecArray | null;

    /**
     * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
     * @param string String on which to perform the search.
     */
    test(string: string): boolean;

    /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
    readonly source: string;

    /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
    readonly global: boolean;

    /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
    readonly ignoreCase: boolean;

    /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
    readonly multiline: boolean;

    lastIndex: number;

    // Non-standard extensions
    /** @deprecated A legacy feature for browser compatibility */
    compile(pattern: string, flags?: string): this;
}

interface RegExpConstructor {
    new (pattern: RegExp | string): RegExp;
    new (pattern: string, flags?: string): RegExp;
    (pattern: RegExp | string): RegExp;
    (pattern: string, flags?: string): RegExp;
    readonly "prototype": RegExp;

    // Non-standard extensions
    /** @deprecated A legacy feature for browser compatibility */
    "$1": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$2": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$3": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$4": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$5": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$6": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$7": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$8": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$9": string;
    /** @deprecated A legacy feature for browser compatibility */
    "input": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$_": string;
    /** @deprecated A legacy feature for browser compatibility */
    "lastMatch": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$&": string;
    /** @deprecated A legacy feature for browser compatibility */
    "lastParen": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$+": string;
    /** @deprecated A legacy feature for browser compatibility */
    "leftContext": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$\`": string;
    /** @deprecated A legacy feature for browser compatibility */
    "rightContext": string;
    /** @deprecated A legacy feature for browser compatibility */
    "$'": string;
}

declare var RegExp: RegExpConstructor;

interface Error {
    name: string;
    message: string;
    stack?: string;
}

interface ErrorConstructor {
    new (message?: string): Error;
    (message?: string): Error;
    readonly prototype: Error;
}

declare var Error: ErrorConstructor;

interface EvalError extends Error {
}

interface EvalErrorConstructor extends ErrorConstructor {
    new (message?: string): EvalError;
    (message?: string): EvalError;
    readonly prototype: EvalError;
}

declare var EvalError: EvalErrorConstructor;

interface RangeError extends Error {
}

interface RangeErrorConstructor extends ErrorConstructor {
    new (message?: string): RangeError;
    (message?: string): RangeError;
    readonly prototype: RangeError;
}

declare var RangeError: RangeErrorConstructor;

interface ReferenceError extends Error {
}

interface ReferenceErrorConstructor extends ErrorConstructor {
    new (message?: string): ReferenceError;
    (message?: string): ReferenceError;
    readonly prototype: ReferenceError;
}

declare var ReferenceError: ReferenceErrorConstructor;

interface SyntaxError extends Error {
}

interface SyntaxErrorConstructor extends ErrorConstructor {
    new (message?: string): SyntaxError;
    (message?: string): SyntaxError;
    readonly prototype: SyntaxError;
}

declare var SyntaxError: SyntaxErrorConstructor;

interface TypeError extends Error {
}

interface TypeErrorConstructor extends ErrorConstructor {
    new (message?: string): TypeError;
    (message?: string): TypeError;
    readonly prototype: TypeError;
}

declare var TypeError: TypeErrorConstructor;

interface URIError extends Error {
}

interface URIErrorConstructor extends ErrorConstructor {
    new (message?: string): URIError;
    (message?: string): URIError;
    readonly prototype: URIError;
}

declare var URIError: URIErrorConstructor;

interface JSON {
    /**
     * Converts a JavaScript Object Notation (JSON) string into an object.
     * @param text A valid JSON string.
     * @param reviver A function that transforms the results. This function is called for each member of the object.
     * If a member contains nested objects, the nested objects are transformed before the parent object is.
     * @throws {SyntaxError} If \`text\` is not valid JSON.
     */
    parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
    /**
     * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
     * @param value A JavaScript value, usually an object or array, to be converted.
     * @param replacer A function that transforms the results.
     * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
     * @throws {TypeError} If a circular reference or a BigInt value is found.
     */
    stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
    /**
     * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
     * @param value A JavaScript value, usually an object or array, to be converted.
     * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
     * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
     * @throws {TypeError} If a circular reference or a BigInt value is found.
     */
    stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
}

/**
 * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
 */
declare var JSON: JSON;

/////////////////////////////
/// ECMAScript Array API (specially handled by compiler)
/////////////////////////////

interface ReadonlyArray<T> {
    /**
     * Gets the length of the array. This is a number one higher than the highest element defined in an array.
     */
    readonly length: number;
    /**
     * Returns a string representation of an array.
     */
    toString(): string;
    /**
     * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
     */
    toLocaleString(): string;
    /**
     * Combines two or more arrays.
     * @param items Additional items to add to the end of array1.
     */
    concat(...items: ConcatArray<T>[]): T[];
    /**
     * Combines two or more arrays.
     * @param items Additional items to add to the end of array1.
     */
    concat(...items: (T | ConcatArray<T>)[]): T[];
    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;
    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): T[];
    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
     */
    indexOf(searchElement: T, fromIndex?: number): number;
    /**
     * Returns the index of the last occurrence of a specified value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
     */
    lastIndexOf(searchElement: T, fromIndex?: number): number;
    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
    /**
     * Calls a defined callback function on each element of an array, and returns an array that contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
     */
    map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
     */
    filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
    /**
     * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
     */
    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
    /**
     * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
    /**
     * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
    /**
     * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;

    readonly [n: number]: T;
}

interface ConcatArray<T> {
    readonly length: number;
    readonly [n: number]: T;
    join(separator?: string): string;
    slice(start?: number, end?: number): T[];
}

interface Array<T> {
    /**
     * Gets or sets the length of the array. This is a number one higher than the highest index in the array.
     */
    length: number;
    /**
     * Returns a string representation of an array.
     */
    toString(): string;
    /**
     * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
     */
    toLocaleString(): string;
    /**
     * Removes the last element from an array and returns it.
     * If the array is empty, undefined is returned and the array is not modified.
     */
    pop(): T | undefined;
    /**
     * Appends new elements to the end of an array, and returns the new length of the array.
     * @param items New elements to add to the array.
     */
    push(...items: T[]): number;
    /**
     * Combines two or more arrays.
     * This method returns a new array without modifying any existing arrays.
     * @param items Additional arrays and/or items to add to the end of the array.
     */
    concat(...items: ConcatArray<T>[]): T[];
    /**
     * Combines two or more arrays.
     * This method returns a new array without modifying any existing arrays.
     * @param items Additional arrays and/or items to add to the end of the array.
     */
    concat(...items: (T | ConcatArray<T>)[]): T[];
    /**
     * Adds all the elements of an array into a string, separated by the specified separator string.
     * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;
    /**
     * Reverses the elements in an array in place.
     * This method mutates the array and returns a reference to the same array.
     */
    reverse(): T[];
    /**
     * Removes the first element from an array and returns it.
     * If the array is empty, undefined is returned and the array is not modified.
     */
    shift(): T | undefined;
    /**
     * Returns a copy of a section of an array.
     * For both start and end, a negative index can be used to indicate an offset from the end of the array.
     * For example, -2 refers to the second to last element of the array.
     * @param start The beginning index of the specified portion of the array.
     * If start is undefined, then the slice begins at index 0.
     * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
     * If end is undefined, then the slice extends to the end of the array.
     */
    slice(start?: number, end?: number): T[];
    /**
     * Sorts an array in place.
     * This method mutates the array and returns a reference to the same array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: T, b: T) => number): this;
    /**
     * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
     * @param start The zero-based location in the array from which to start removing elements.
     * @param deleteCount The number of elements to remove. Omitting this argument will remove all elements from the start
     * paramater location to end of the array. If value of this argument is either a negative number, zero, undefined, or a type
     * that cannot be converted to an integer, the function will evaluate the argument as zero and not remove any elements.
     * @returns An array containing the elements that were deleted.
     */
    splice(start: number, deleteCount?: number): T[];
    /**
     * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
     * @param start The zero-based location in the array from which to start removing elements.
     * @param deleteCount The number of elements to remove. If value of this argument is either a negative number, zero,
     * undefined, or a type that cannot be converted to an integer, the function will evaluate the argument as zero and
     * not remove any elements.
     * @param items Elements to insert into the array in place of the deleted elements.
     * @returns An array containing the elements that were deleted.
     */
    splice(start: number, deleteCount: number, ...items: T[]): T[];
    /**
     * Inserts new elements at the start of an array, and returns the new length of the array.
     * @param items Elements to insert at the start of the array.
     */
    unshift(...items: T[]): number;
    /**
     * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
     */
    indexOf(searchElement: T, fromIndex?: number): number;
    /**
     * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
     */
    lastIndexOf(searchElement: T, fromIndex?: number): number;
    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
    /**
     * Calls a defined callback function on each element of an array, and returns an array that contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
     */
    map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
     */
    filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
    /**
     * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
     */
    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
    /**
     * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
    /**
     * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
    /**
     * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;

    [n: number]: T;
}

interface ArrayConstructor {
    new (arrayLength?: number): any[];
    new <T>(arrayLength: number): T[];
    new <T>(...items: T[]): T[];
    (arrayLength?: number): any[];
    <T>(arrayLength: number): T[];
    <T>(...items: T[]): T[];
    isArray(arg: any): arg is any[];
    readonly prototype: any[];
}

declare var Array: ArrayConstructor;

interface TypedPropertyDescriptor<T> {
    enumerable?: boolean;
    configurable?: boolean;
    writable?: boolean;
    value?: T;
    get?: () => T;
    set?: (value: T) => void;
}

declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;

interface PromiseLike<T> {
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
}

/**
 * Represents the completion of an asynchronous operation
 */
interface Promise<T> {
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;

    /**
     * Attaches a callback for only the rejection of the Promise.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of the callback.
     */
    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
}

/**
 * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`.
 */
type Awaited<T> = T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode
    T extends object & { then(onfulfilled: infer F, ...args: infer _): any; } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped
        F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to \`then\` is callable, extracts the first argument
            Awaited<V> : // recursively unwrap the value
        never : // the argument to \`then\` was not callable
    T; // non-object or non-thenable

interface ArrayLike<T> {
    readonly length: number;
    readonly [n: number]: T;
}

/**
 * Make all properties in T optional
 */
type Partial<T> = {
    [P in keyof T]?: T[P];
};

/**
 * Make all properties in T required
 */
type Required<T> = {
    [P in keyof T]-?: T[P];
};

/**
 * Make all properties in T readonly
 */
type Readonly<T> = {
    readonly [P in keyof T]: T[P];
};

/**
 * From T, pick a set of properties whose keys are in the union K
 */
type Pick<T, K extends keyof T> = {
    [P in K]: T[P];
};

/**
 * Construct a type with a set of properties K of type T
 */
type Record<K extends keyof any, T> = {
    [P in K]: T;
};

/**
 * Exclude from T those types that are assignable to U
 */
type Exclude<T, U> = T extends U ? never : T;

/**
 * Extract from T those types that are assignable to U
 */
type Extract<T, U> = T extends U ? T : never;

/**
 * Construct a type with the properties of T except for those in type K.
 */
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;

/**
 * Exclude null and undefined from T
 */
type NonNullable<T> = T & {};

/**
 * Obtain the parameters of a function type in a tuple
 */
type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;

/**
 * Obtain the parameters of a constructor function type in a tuple
 */
type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;

/**
 * Obtain the return type of a function type
 */
type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;

/**
 * Obtain the return type of a constructor function type
 */
type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;

/**
 * Convert string literal type to uppercase
 */
type Uppercase<S extends string> = intrinsic;

/**
 * Convert string literal type to lowercase
 */
type Lowercase<S extends string> = intrinsic;

/**
 * Convert first character of string literal type to uppercase
 */
type Capitalize<S extends string> = intrinsic;

/**
 * Convert first character of string literal type to lowercase
 */
type Uncapitalize<S extends string> = intrinsic;

/**
 * Marker for non-inference type position
 */
type NoInfer<T> = intrinsic;

/**
 * Marker for contextual 'this' type
 */
interface ThisType<T> {}

/**
 * Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry
 */
interface WeakKeyTypes {
    object: object;
}

type WeakKey = WeakKeyTypes[keyof WeakKeyTypes];

/**
 * Represents a raw buffer of binary data, which is used to store data for the
 * different typed arrays. ArrayBuffers cannot be read from or written to directly,
 * but can be passed to a typed array or DataView Object to interpret the raw
 * buffer as needed.
 */
interface ArrayBuffer {
    /**
     * Read-only. The length of the ArrayBuffer (in bytes).
     */
    readonly byteLength: number;

    /**
     * Returns a section of an ArrayBuffer.
     */
    slice(begin?: number, end?: number): ArrayBuffer;
}

/**
 * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
 */
interface ArrayBufferTypes {
    ArrayBuffer: ArrayBuffer;
}
type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];

interface ArrayBufferConstructor {
    readonly prototype: ArrayBuffer;
    new (byteLength: number): ArrayBuffer;
    isView(arg: any): arg is ArrayBufferView;
}
declare var ArrayBuffer: ArrayBufferConstructor;

interface ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;
}

interface DataView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    readonly buffer: TArrayBuffer;
    readonly byteLength: number;
    readonly byteOffset: number;
    /**
     * Gets the Float32 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     * @param littleEndian If false or undefined, a big-endian value should be read.
     */
    getFloat32(byteOffset: number, littleEndian?: boolean): number;

    /**
     * Gets the Float64 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     * @param littleEndian If false or undefined, a big-endian value should be read.
     */
    getFloat64(byteOffset: number, littleEndian?: boolean): number;

    /**
     * Gets the Int8 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     */
    getInt8(byteOffset: number): number;

    /**
     * Gets the Int16 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     * @param littleEndian If false or undefined, a big-endian value should be read.
     */
    getInt16(byteOffset: number, littleEndian?: boolean): number;
    /**
     * Gets the Int32 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     * @param littleEndian If false or undefined, a big-endian value should be read.
     */
    getInt32(byteOffset: number, littleEndian?: boolean): number;

    /**
     * Gets the Uint8 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     */
    getUint8(byteOffset: number): number;

    /**
     * Gets the Uint16 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     * @param littleEndian If false or undefined, a big-endian value should be read.
     */
    getUint16(byteOffset: number, littleEndian?: boolean): number;

    /**
     * Gets the Uint32 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     * @param littleEndian If false or undefined, a big-endian value should be read.
     */
    getUint32(byteOffset: number, littleEndian?: boolean): number;

    /**
     * Stores an Float32 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     * @param littleEndian If false or undefined, a big-endian value should be written.
     */
    setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;

    /**
     * Stores an Float64 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     * @param littleEndian If false or undefined, a big-endian value should be written.
     */
    setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;

    /**
     * Stores an Int8 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     */
    setInt8(byteOffset: number, value: number): void;

    /**
     * Stores an Int16 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     * @param littleEndian If false or undefined, a big-endian value should be written.
     */
    setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;

    /**
     * Stores an Int32 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     * @param littleEndian If false or undefined, a big-endian value should be written.
     */
    setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;

    /**
     * Stores an Uint8 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     */
    setUint8(byteOffset: number, value: number): void;

    /**
     * Stores an Uint16 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     * @param littleEndian If false or undefined, a big-endian value should be written.
     */
    setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;

    /**
     * Stores an Uint32 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     * @param littleEndian If false or undefined, a big-endian value should be written.
     */
    setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
}
interface DataViewConstructor {
    readonly prototype: DataView<ArrayBufferLike>;
    new <TArrayBuffer extends ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }>(buffer: TArrayBuffer, byteOffset?: number, byteLength?: number): DataView<TArrayBuffer>;
}
declare var DataView: DataViewConstructor;

/**
 * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
 * number of bytes could not be allocated an exception is raised.
 */
interface Int8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: number, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int8Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;

    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: number, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: number, fromIndex?: number): number;

    /**
     * The length of the array.
     */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Int8Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Reverses the elements in an Array.
     */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<number>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): Int8Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Sorts an array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if first argument is less than second argument, zero if they're equal and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: number, b: number) => number): this;

    /**
     * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): Int8Array<TArrayBuffer>;

    /**
     * Converts a number to a string by using the current locale.
     */
    toLocaleString(): string;

    /**
     * Returns a string representation of an array.
     */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): this;

    [index: number]: number;
}
interface Int8ArrayConstructor {
    readonly prototype: Int8Array<ArrayBufferLike>;
    new (length: number): Int8Array<ArrayBuffer>;
    new (array: ArrayLike<number>): Int8Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int8Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array<ArrayBuffer>;
    new (array: ArrayLike<number> | ArrayBuffer): Int8Array<ArrayBuffer>;

    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: number[]): Int8Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<number>): Int8Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array<ArrayBuffer>;
}
declare var Int8Array: Int8ArrayConstructor;

/**
 * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
 * requested number of bytes could not be allocated an exception is raised.
 */
interface Uint8Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: number, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint8Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;

    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: number, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: number, fromIndex?: number): number;

    /**
     * The length of the array.
     */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint8Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Reverses the elements in an Array.
     */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<number>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): Uint8Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Sorts an array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if first argument is less than second argument, zero if they're equal and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: number, b: number) => number): this;

    /**
     * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): Uint8Array<TArrayBuffer>;

    /**
     * Converts a number to a string by using the current locale.
     */
    toLocaleString(): string;

    /**
     * Returns a string representation of an array.
     */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): this;

    [index: number]: number;
}
interface Uint8ArrayConstructor {
    readonly prototype: Uint8Array<ArrayBufferLike>;
    new (length: number): Uint8Array<ArrayBuffer>;
    new (array: ArrayLike<number>): Uint8Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint8Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array<ArrayBuffer>;
    new (array: ArrayLike<number> | ArrayBuffer): Uint8Array<ArrayBuffer>;

    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: number[]): Uint8Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<number>): Uint8Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array<ArrayBuffer>;
}
declare var Uint8Array: Uint8ArrayConstructor;

/**
 * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
 * If the requested number of bytes could not be allocated an exception is raised.
 */
interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: number, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;

    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: number, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: number, fromIndex?: number): number;

    /**
     * The length of the array.
     */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Reverses the elements in an Array.
     */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<number>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): Uint8ClampedArray<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Sorts an array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if first argument is less than second argument, zero if they're equal and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: number, b: number) => number): this;

    /**
     * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): Uint8ClampedArray<TArrayBuffer>;

    /**
     * Converts a number to a string by using the current locale.
     */
    toLocaleString(): string;

    /**
     * Returns a string representation of an array.
     */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): this;

    [index: number]: number;
}
interface Uint8ClampedArrayConstructor {
    readonly prototype: Uint8ClampedArray<ArrayBufferLike>;
    new (length: number): Uint8ClampedArray<ArrayBuffer>;
    new (array: ArrayLike<number>): Uint8ClampedArray<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8ClampedArray<ArrayBuffer>;
    new (array: ArrayLike<number> | ArrayBuffer): Uint8ClampedArray<ArrayBuffer>;

    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: number[]): Uint8ClampedArray<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<number>): Uint8ClampedArray<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray<ArrayBuffer>;
}
declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;

/**
 * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
 * requested number of bytes could not be allocated an exception is raised.
 */
interface Int16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: number, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int16Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: number, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: number, fromIndex?: number): number;

    /**
     * The length of the array.
     */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Int16Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Reverses the elements in an Array.
     */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<number>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): Int16Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Sorts an array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if first argument is less than second argument, zero if they're equal and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: number, b: number) => number): this;

    /**
     * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): Int16Array<TArrayBuffer>;

    /**
     * Converts a number to a string by using the current locale.
     */
    toLocaleString(): string;

    /**
     * Returns a string representation of an array.
     */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): this;

    [index: number]: number;
}
interface Int16ArrayConstructor {
    readonly prototype: Int16Array<ArrayBufferLike>;
    new (length: number): Int16Array<ArrayBuffer>;
    new (array: ArrayLike<number>): Int16Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int16Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array<ArrayBuffer>;
    new (array: ArrayLike<number> | ArrayBuffer): Int16Array<ArrayBuffer>;

    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: number[]): Int16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<number>): Int16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array<ArrayBuffer>;
}
declare var Int16Array: Int16ArrayConstructor;

/**
 * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
 * requested number of bytes could not be allocated an exception is raised.
 */
interface Uint16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: number, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint16Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;

    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: number, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: number, fromIndex?: number): number;

    /**
     * The length of the array.
     */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint16Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Reverses the elements in an Array.
     */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<number>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): Uint16Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Sorts an array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if first argument is less than second argument, zero if they're equal and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: number, b: number) => number): this;

    /**
     * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): Uint16Array<TArrayBuffer>;

    /**
     * Converts a number to a string by using the current locale.
     */
    toLocaleString(): string;

    /**
     * Returns a string representation of an array.
     */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): this;

    [index: number]: number;
}
interface Uint16ArrayConstructor {
    readonly prototype: Uint16Array<ArrayBufferLike>;
    new (length: number): Uint16Array<ArrayBuffer>;
    new (array: ArrayLike<number>): Uint16Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint16Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array<ArrayBuffer>;
    new (array: ArrayLike<number> | ArrayBuffer): Uint16Array<ArrayBuffer>;

    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: number[]): Uint16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<number>): Uint16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array<ArrayBuffer>;
}
declare var Uint16Array: Uint16ArrayConstructor;
/**
 * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
 * requested number of bytes could not be allocated an exception is raised.
 */
interface Int32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: number, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Int32Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;

    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: number, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: number, fromIndex?: number): number;

    /**
     * The length of the array.
     */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Int32Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Reverses the elements in an Array.
     */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<number>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): Int32Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Sorts an array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if first argument is less than second argument, zero if they're equal and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: number, b: number) => number): this;

    /**
     * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): Int32Array<TArrayBuffer>;

    /**
     * Converts a number to a string by using the current locale.
     */
    toLocaleString(): string;

    /**
     * Returns a string representation of an array.
     */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): this;

    [index: number]: number;
}
interface Int32ArrayConstructor {
    readonly prototype: Int32Array<ArrayBufferLike>;
    new (length: number): Int32Array<ArrayBuffer>;
    new (array: ArrayLike<number>): Int32Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Int32Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array<ArrayBuffer>;
    new (array: ArrayLike<number> | ArrayBuffer): Int32Array<ArrayBuffer>;

    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: number[]): Int32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<number>): Int32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array<ArrayBuffer>;
}
declare var Int32Array: Int32ArrayConstructor;

/**
 * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
 * requested number of bytes could not be allocated an exception is raised.
 */
interface Uint32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: number, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Uint32Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;
    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: number, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: number, fromIndex?: number): number;

    /**
     * The length of the array.
     */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Uint32Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Reverses the elements in an Array.
     */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<number>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): Uint32Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Sorts an array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if first argument is less than second argument, zero if they're equal and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: number, b: number) => number): this;

    /**
     * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): Uint32Array<TArrayBuffer>;

    /**
     * Converts a number to a string by using the current locale.
     */
    toLocaleString(): string;

    /**
     * Returns a string representation of an array.
     */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): this;

    [index: number]: number;
}
interface Uint32ArrayConstructor {
    readonly prototype: Uint32Array<ArrayBufferLike>;
    new (length: number): Uint32Array<ArrayBuffer>;
    new (array: ArrayLike<number>): Uint32Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Uint32Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array<ArrayBuffer>;
    new (array: ArrayLike<number> | ArrayBuffer): Uint32Array<ArrayBuffer>;

    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: number[]): Uint32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<number>): Uint32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array<ArrayBuffer>;
}
declare var Uint32Array: Uint32ArrayConstructor;

/**
 * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
 * of bytes could not be allocated an exception is raised.
 */
interface Float32Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: number, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float32Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;

    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: number, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: number, fromIndex?: number): number;

    /**
     * The length of the array.
     */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float32Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Reverses the elements in an Array.
     */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<number>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): Float32Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Sorts an array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if first argument is less than second argument, zero if they're equal and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: number, b: number) => number): this;

    /**
     * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): Float32Array<TArrayBuffer>;

    /**
     * Converts a number to a string by using the current locale.
     */
    toLocaleString(): string;

    /**
     * Returns a string representation of an array.
     */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): this;

    [index: number]: number;
}
interface Float32ArrayConstructor {
    readonly prototype: Float32Array<ArrayBufferLike>;
    new (length: number): Float32Array<ArrayBuffer>;
    new (array: ArrayLike<number>): Float32Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float32Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array<ArrayBuffer>;
    new (array: ArrayLike<number> | ArrayBuffer): Float32Array<ArrayBuffer>;

    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: number[]): Float32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<number>): Float32Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array<ArrayBuffer>;
}
declare var Float32Array: Float32ArrayConstructor;

/**
 * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
 * number of bytes could not be allocated an exception is raised.
 */
interface Float64Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: number, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float64Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;

    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: number, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: number, fromIndex?: number): number;

    /**
     * The length of the array.
     */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float64Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Reverses the elements in an Array.
     */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<number>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): Float64Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Sorts an array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if first argument is less than second argument, zero if they're equal and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: number, b: number) => number): this;

    /**
     * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): Float64Array<TArrayBuffer>;

    /**
     * Converts a number to a string by using the current locale.
     */
    toLocaleString(): string;

    /**
     * Returns a string representation of an array.
     */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): this;

    [index: number]: number;
}
interface Float64ArrayConstructor {
    readonly prototype: Float64Array<ArrayBufferLike>;
    new (length: number): Float64Array<ArrayBuffer>;
    new (array: ArrayLike<number>): Float64Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float64Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array<ArrayBuffer>;
    new (array: ArrayLike<number> | ArrayBuffer): Float64Array<ArrayBuffer>;

    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: number[]): Float64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<number>): Float64Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array<ArrayBuffer>;
}
declare var Float64Array: Float64ArrayConstructor;

/////////////////////////////
/// ECMAScript Internationalization API
/////////////////////////////

declare namespace Intl {
    interface CollatorOptions {
        usage?: "sort" | "search" | undefined;
        localeMatcher?: "lookup" | "best fit" | undefined;
        numeric?: boolean | undefined;
        caseFirst?: "upper" | "lower" | "false" | undefined;
        sensitivity?: "base" | "accent" | "case" | "variant" | undefined;
        collation?: "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined;
        ignorePunctuation?: boolean | undefined;
    }

    interface ResolvedCollatorOptions {
        locale: string;
        usage: string;
        sensitivity: string;
        ignorePunctuation: boolean;
        collation: string;
        caseFirst: string;
        numeric: boolean;
    }

    interface Collator {
        compare(x: string, y: string): number;
        resolvedOptions(): ResolvedCollatorOptions;
    }

    interface CollatorConstructor {
        new (locales?: string | string[], options?: CollatorOptions): Collator;
        (locales?: string | string[], options?: CollatorOptions): Collator;
        supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
    }

    var Collator: CollatorConstructor;

    interface NumberFormatOptionsStyleRegistry {
        decimal: never;
        percent: never;
        currency: never;
    }

    type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry;

    interface NumberFormatOptionsCurrencyDisplayRegistry {
        code: never;
        symbol: never;
        name: never;
    }

    type NumberFormatOptionsCurrencyDisplay = keyof NumberFormatOptionsCurrencyDisplayRegistry;

    interface NumberFormatOptionsUseGroupingRegistry {}

    type NumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false" | boolean;
    type ResolvedNumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | false;

    interface NumberFormatOptions {
        localeMatcher?: "lookup" | "best fit" | undefined;
        style?: NumberFormatOptionsStyle | undefined;
        currency?: string | undefined;
        currencyDisplay?: NumberFormatOptionsCurrencyDisplay | undefined;
        useGrouping?: NumberFormatOptionsUseGrouping | undefined;
        minimumIntegerDigits?: number | undefined;
        minimumFractionDigits?: number | undefined;
        maximumFractionDigits?: number | undefined;
        minimumSignificantDigits?: number | undefined;
        maximumSignificantDigits?: number | undefined;
    }

    interface ResolvedNumberFormatOptions {
        locale: string;
        numberingSystem: string;
        style: NumberFormatOptionsStyle;
        currency?: string;
        currencyDisplay?: NumberFormatOptionsCurrencyDisplay;
        minimumIntegerDigits: number;
        minimumFractionDigits?: number;
        maximumFractionDigits?: number;
        minimumSignificantDigits?: number;
        maximumSignificantDigits?: number;
        useGrouping: ResolvedNumberFormatOptionsUseGrouping;
    }

    interface NumberFormat {
        format(value: number): string;
        resolvedOptions(): ResolvedNumberFormatOptions;
    }

    interface NumberFormatConstructor {
        new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
        (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
        supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
        readonly prototype: NumberFormat;
    }

    var NumberFormat: NumberFormatConstructor;

    interface DateTimeFormatOptions {
        localeMatcher?: "best fit" | "lookup" | undefined;
        weekday?: "long" | "short" | "narrow" | undefined;
        era?: "long" | "short" | "narrow" | undefined;
        year?: "numeric" | "2-digit" | undefined;
        month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
        day?: "numeric" | "2-digit" | undefined;
        hour?: "numeric" | "2-digit" | undefined;
        minute?: "numeric" | "2-digit" | undefined;
        second?: "numeric" | "2-digit" | undefined;
        timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
        formatMatcher?: "best fit" | "basic" | undefined;
        hour12?: boolean | undefined;
        timeZone?: string | undefined;
    }

    interface ResolvedDateTimeFormatOptions {
        locale: string;
        calendar: string;
        numberingSystem: string;
        timeZone: string;
        hour12?: boolean;
        weekday?: string;
        era?: string;
        year?: string;
        month?: string;
        day?: string;
        hour?: string;
        minute?: string;
        second?: string;
        timeZoneName?: string;
    }

    interface DateTimeFormat {
        format(date?: Date | number): string;
        resolvedOptions(): ResolvedDateTimeFormatOptions;
    }

    interface DateTimeFormatConstructor {
        new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
        (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
        supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
        readonly prototype: DateTimeFormat;
    }

    var DateTimeFormat: DateTimeFormatConstructor;
}

interface String {
    /**
     * Determines whether two strings are equivalent in the current or specified locale.
     * @param that String to compare to target string
     * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
     * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
     */
    localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
}

interface Number {
    /**
     * Converts a number to a string by using the current or specified locale.
     * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
     * @param options An object that contains one or more properties that specify comparison options.
     */
    toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
}

interface Date {
    /**
     * Converts a date and time to a string by using the current or specified locale.
     * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
     * @param options An object that contains one or more properties that specify comparison options.
     */
    toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
    /**
     * Converts a date to a string by using the current or specified locale.
     * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
     * @param options An object that contains one or more properties that specify comparison options.
     */
    toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;

    /**
     * Converts a time to a string by using the current or specified locale.
     * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
     * @param options An object that contains one or more properties that specify comparison options.
     */
    toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
}
`),
    (ji["lib.es6.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`),
    (ji["lib.esnext.array.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface ArrayConstructor {
    /**
     * Creates an array from an async iterator or iterable object.
     * @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
     */
    fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;

    /**
     * Creates an array from an async iterator or iterable object.
     *
     * @param iterableOrArrayLike An async iterator or array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of itarableOrArrayLike.
     *      Each return value is awaited before being added to result array.
     * @param thisArg Value of 'this' used when executing mapfn.
     */
    fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
}
`),
    (ji["lib.esnext.collection.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2024.collection" />

interface ReadonlySetLike<T> {
    /**
     * Despite its name, returns an iterator of the values in the set-like.
     */
    keys(): Iterator<T>;
    /**
     * @returns a boolean indicating whether an element with the specified value exists in the set-like or not.
     */
    has(value: T): boolean;
    /**
     * @returns the number of (unique) elements in the set-like.
     */
    readonly size: number;
}

interface Set<T> {
    /**
     * @returns a new Set containing all the elements in this Set and also all the elements in the argument.
     */
    union<U>(other: ReadonlySetLike<U>): Set<T | U>;
    /**
     * @returns a new Set containing all the elements which are both in this Set and in the argument.
     */
    intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
    /**
     * @returns a new Set containing all the elements in this Set which are not also in the argument.
     */
    difference<U>(other: ReadonlySetLike<U>): Set<T>;
    /**
     * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
     */
    symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
    /**
     * @returns a boolean indicating whether all the elements in this Set are also in the argument.
     */
    isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
    /**
     * @returns a boolean indicating whether all the elements in the argument are also in this Set.
     */
    isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
    /**
     * @returns a boolean indicating whether this Set has no elements in common with the argument.
     */
    isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
}

interface ReadonlySet<T> {
    /**
     * @returns a new Set containing all the elements in this Set and also all the elements in the argument.
     */
    union<U>(other: ReadonlySetLike<U>): Set<T | U>;
    /**
     * @returns a new Set containing all the elements which are both in this Set and in the argument.
     */
    intersection<U>(other: ReadonlySetLike<U>): Set<T & U>;
    /**
     * @returns a new Set containing all the elements in this Set which are not also in the argument.
     */
    difference<U>(other: ReadonlySetLike<U>): Set<T>;
    /**
     * @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
     */
    symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>;
    /**
     * @returns a boolean indicating whether all the elements in this Set are also in the argument.
     */
    isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
    /**
     * @returns a boolean indicating whether all the elements in the argument are also in this Set.
     */
    isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
    /**
     * @returns a boolean indicating whether this Set has no elements in common with the argument.
     */
    isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
}
`),
    (ji["lib.esnext.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2024" />
/// <reference lib="esnext.intl" />
/// <reference lib="esnext.decorators" />
/// <reference lib="esnext.disposable" />
/// <reference lib="esnext.collection" />
/// <reference lib="esnext.array" />
/// <reference lib="esnext.iterator" />
/// <reference lib="esnext.promise" />
/// <reference lib="esnext.float16" />
/// <reference lib="esnext.error" />
/// <reference lib="esnext.sharedmemory" />
`),
    (ji["lib.esnext.decorators.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.symbol" />
/// <reference lib="decorators" />

interface SymbolConstructor {
    readonly metadata: unique symbol;
}

interface Function {
    [Symbol.metadata]: DecoratorMetadata | null;
}
`),
    (ji["lib.esnext.disposable.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.iterable" />
/// <reference lib="es2018.asynciterable" />

interface SymbolConstructor {
    /**
     * A method that is used to release resources held by an object. Called by the semantics of the \`using\` statement.
     */
    readonly dispose: unique symbol;

    /**
     * A method that is used to asynchronously release resources held by an object. Called by the semantics of the \`await using\` statement.
     */
    readonly asyncDispose: unique symbol;
}

interface Disposable {
    [Symbol.dispose](): void;
}

interface AsyncDisposable {
    [Symbol.asyncDispose](): PromiseLike<void>;
}

interface SuppressedError extends Error {
    error: any;
    suppressed: any;
}

interface SuppressedErrorConstructor {
    new (error: any, suppressed: any, message?: string): SuppressedError;
    (error: any, suppressed: any, message?: string): SuppressedError;
    readonly prototype: SuppressedError;
}
declare var SuppressedError: SuppressedErrorConstructor;

interface DisposableStack {
    /**
     * Returns a value indicating whether this stack has been disposed.
     */
    readonly disposed: boolean;
    /**
     * Disposes each resource in the stack in the reverse order that they were added.
     */
    dispose(): void;
    /**
     * Adds a disposable resource to the stack, returning the resource.
     * @param value The resource to add. \`null\` and \`undefined\` will not be added, but will be returned.
     * @returns The provided {@link value}.
     */
    use<T extends Disposable | null | undefined>(value: T): T;
    /**
     * Adds a value and associated disposal callback as a resource to the stack.
     * @param value The value to add.
     * @param onDispose The callback to use in place of a \`[Symbol.dispose]()\` method. Will be invoked with \`value\`
     * as the first parameter.
     * @returns The provided {@link value}.
     */
    adopt<T>(value: T, onDispose: (value: T) => void): T;
    /**
     * Adds a callback to be invoked when the stack is disposed.
     */
    defer(onDispose: () => void): void;
    /**
     * Move all resources out of this stack and into a new \`DisposableStack\`, and marks this stack as disposed.
     * @example
     * \`\`\`ts
     * class C {
     *   #res1: Disposable;
     *   #res2: Disposable;
     *   #disposables: DisposableStack;
     *   constructor() {
     *     // stack will be disposed when exiting constructor for any reason
     *     using stack = new DisposableStack();
     *
     *     // get first resource
     *     this.#res1 = stack.use(getResource1());
     *
     *     // get second resource. If this fails, both \`stack\` and \`#res1\` will be disposed.
     *     this.#res2 = stack.use(getResource2());
     *
     *     // all operations succeeded, move resources out of \`stack\` so that they aren't disposed
     *     // when constructor exits
     *     this.#disposables = stack.move();
     *   }
     *
     *   [Symbol.dispose]() {
     *     this.#disposables.dispose();
     *   }
     * }
     * \`\`\`
     */
    move(): DisposableStack;
    [Symbol.dispose](): void;
    readonly [Symbol.toStringTag]: string;
}

interface DisposableStackConstructor {
    new (): DisposableStack;
    readonly prototype: DisposableStack;
}
declare var DisposableStack: DisposableStackConstructor;

interface AsyncDisposableStack {
    /**
     * Returns a value indicating whether this stack has been disposed.
     */
    readonly disposed: boolean;
    /**
     * Disposes each resource in the stack in the reverse order that they were added.
     */
    disposeAsync(): Promise<void>;
    /**
     * Adds a disposable resource to the stack, returning the resource.
     * @param value The resource to add. \`null\` and \`undefined\` will not be added, but will be returned.
     * @returns The provided {@link value}.
     */
    use<T extends AsyncDisposable | Disposable | null | undefined>(value: T): T;
    /**
     * Adds a value and associated disposal callback as a resource to the stack.
     * @param value The value to add.
     * @param onDisposeAsync The callback to use in place of a \`[Symbol.asyncDispose]()\` method. Will be invoked with \`value\`
     * as the first parameter.
     * @returns The provided {@link value}.
     */
    adopt<T>(value: T, onDisposeAsync: (value: T) => PromiseLike<void> | void): T;
    /**
     * Adds a callback to be invoked when the stack is disposed.
     */
    defer(onDisposeAsync: () => PromiseLike<void> | void): void;
    /**
     * Move all resources out of this stack and into a new \`DisposableStack\`, and marks this stack as disposed.
     * @example
     * \`\`\`ts
     * class C {
     *   #res1: Disposable;
     *   #res2: Disposable;
     *   #disposables: DisposableStack;
     *   constructor() {
     *     // stack will be disposed when exiting constructor for any reason
     *     using stack = new DisposableStack();
     *
     *     // get first resource
     *     this.#res1 = stack.use(getResource1());
     *
     *     // get second resource. If this fails, both \`stack\` and \`#res1\` will be disposed.
     *     this.#res2 = stack.use(getResource2());
     *
     *     // all operations succeeded, move resources out of \`stack\` so that they aren't disposed
     *     // when constructor exits
     *     this.#disposables = stack.move();
     *   }
     *
     *   [Symbol.dispose]() {
     *     this.#disposables.dispose();
     *   }
     * }
     * \`\`\`
     */
    move(): AsyncDisposableStack;
    [Symbol.asyncDispose](): Promise<void>;
    readonly [Symbol.toStringTag]: string;
}

interface AsyncDisposableStackConstructor {
    new (): AsyncDisposableStack;
    readonly prototype: AsyncDisposableStack;
}
declare var AsyncDisposableStack: AsyncDisposableStackConstructor;

interface IteratorObject<T, TReturn, TNext> extends Disposable {
}

interface AsyncIteratorObject<T, TReturn, TNext> extends AsyncDisposable {
}
`),
    (ji["lib.esnext.error.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface ErrorConstructor {
    /**
     * Indicates whether the argument provided is a built-in Error instance or not.
     */
    isError(error: unknown): error is Error;
}
`),
    (ji["lib.esnext.float16.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.iterable" />

/**
 * A typed array of 16-bit float values. The contents are initialized to 0. If the requested number
 * of bytes could not be allocated an exception is raised.
 */
interface Float16Array<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> {
    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * The ArrayBuffer instance referenced by the array.
     */
    readonly buffer: TArrayBuffer;

    /**
     * The length in bytes of the array.
     */
    readonly byteLength: number;

    /**
     * The offset in bytes of the array.
     */
    readonly byteOffset: number;

    /**
     * Returns the item located at the specified index.
     * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
     */
    at(index: number): number | undefined;

    /**
     * Returns the this object after copying a section of the array identified by start and end
     * to the same array starting at position target
     * @param target If target is negative, it is treated as length+target where length is the
     * length of the array.
     * @param start If start is negative, it is treated as length+start. If end is negative, it
     * is treated as length+end.
     * @param end If not specified, length of the this object is used as its default value.
     */
    copyWithin(target: number, start: number, end?: number): this;

    /**
     * Determines whether all the members of an array satisfy the specified test.
     * @param predicate A function that accepts up to three arguments. The every method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value false, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    every(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
     * @param value value to fill array section with
     * @param start index to start filling the array at. If start is negative, it is treated as
     * length+start where length is the length of the array.
     * @param end index to stop filling the array at. If end is negative, it is treated as
     * length+end.
     */
    fill(value: number, start?: number, end?: number): this;

    /**
     * Returns the elements of an array that meet the condition specified in a callback function.
     * @param predicate A function that accepts up to three arguments. The filter method calls
     * the predicate function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    filter(predicate: (value: number, index: number, array: this) => any, thisArg?: any): Float16Array<ArrayBuffer>;

    /**
     * Returns the value of the first element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found, find
     * immediately returns that element value. Otherwise, find returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    find(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number | undefined;

    /**
     * Returns the index of the first element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate find calls predicate once for each element of the array, in ascending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findIndex(predicate: (value: number, index: number, obj: this) => boolean, thisArg?: any): number;

    /**
     * Returns the value of the last element in the array where predicate is true, and undefined
     * otherwise.
     * @param predicate findLast calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found, findLast
     * immediately returns that element value. Otherwise, findLast returns undefined.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLast<S extends number>(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => value is S,
        thisArg?: any,
    ): S | undefined;
    findLast(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number | undefined;

    /**
     * Returns the index of the last element in the array where predicate is true, and -1
     * otherwise.
     * @param predicate findLastIndex calls predicate once for each element of the array, in descending
     * order, until it finds one where predicate returns true. If such an element is found,
     * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
     * @param thisArg If provided, it will be used as the this value for each invocation of
     * predicate. If it is not provided, undefined is used instead.
     */
    findLastIndex(
        predicate: (
            value: number,
            index: number,
            array: this,
        ) => unknown,
        thisArg?: any,
    ): number;

    /**
     * Performs the specified action for each element in an array.
     * @param callbackfn A function that accepts up to three arguments. forEach calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    forEach(callbackfn: (value: number, index: number, array: this) => void, thisArg?: any): void;

    /**
     * Determines whether an array includes a certain element, returning true or false as appropriate.
     * @param searchElement The element to search for.
     * @param fromIndex The position in this array at which to begin searching for searchElement.
     */
    includes(searchElement: number, fromIndex?: number): boolean;

    /**
     * Returns the index of the first occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    indexOf(searchElement: number, fromIndex?: number): number;

    /**
     * Adds all the elements of an array separated by the specified separator string.
     * @param separator A string used to separate one element of an array from the next in the
     * resulting String. If omitted, the array elements are separated with a comma.
     */
    join(separator?: string): string;

    /**
     * Returns the index of the last occurrence of a value in an array.
     * @param searchElement The value to locate in the array.
     * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
     * search starts at index 0.
     */
    lastIndexOf(searchElement: number, fromIndex?: number): number;

    /**
     * The length of the array.
     */
    readonly length: number;

    /**
     * Calls a defined callback function on each element of an array, and returns an array that
     * contains the results.
     * @param callbackfn A function that accepts up to three arguments. The map method calls the
     * callbackfn function one time for each element in the array.
     * @param thisArg An object to which the this keyword can refer in the callbackfn function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    map(callbackfn: (value: number, index: number, array: this) => number, thisArg?: any): Float16Array<ArrayBuffer>;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array. The return value of
     * the callback function is the accumulated result, and is provided as an argument in the next
     * call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
     * callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an
     * argument instead of an array value.
     */
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number): number;
    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: this) => number, initialValue: number): number;

    /**
     * Calls the specified callback function for all the elements in an array, in descending order.
     * The return value of the callback function is the accumulated result, and is provided as an
     * argument in the next call to the callback function.
     * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
     * the callbackfn function one time for each element in the array.
     * @param initialValue If initialValue is specified, it is used as the initial value to start
     * the accumulation. The first call to the callbackfn function provides this value as an argument
     * instead of an array value.
     */
    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: this) => U, initialValue: U): U;

    /**
     * Reverses the elements in an Array.
     */
    reverse(): this;

    /**
     * Sets a value or an array of values.
     * @param array A typed or untyped array of values to set.
     * @param offset The index in the current array at which the values are to be written.
     */
    set(array: ArrayLike<number>, offset?: number): void;

    /**
     * Returns a section of an array.
     * @param start The beginning of the specified portion of the array.
     * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
     */
    slice(start?: number, end?: number): Float16Array<ArrayBuffer>;

    /**
     * Determines whether the specified callback function returns true for any element of an array.
     * @param predicate A function that accepts up to three arguments. The some method calls
     * the predicate function for each element in the array until the predicate returns a value
     * which is coercible to the Boolean value true, or until the end of the array.
     * @param thisArg An object to which the this keyword can refer in the predicate function.
     * If thisArg is omitted, undefined is used as the this value.
     */
    some(predicate: (value: number, index: number, array: this) => unknown, thisArg?: any): boolean;

    /**
     * Sorts an array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if first argument is less than second argument, zero if they're equal and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * [11,2,22,1].sort((a, b) => a - b)
     * \`\`\`
     */
    sort(compareFn?: (a: number, b: number) => number): this;

    /**
     * Gets a new Float16Array view of the ArrayBuffer store for this array, referencing the elements
     * at begin, inclusive, up to end, exclusive.
     * @param begin The index of the beginning of the array.
     * @param end The index of the end of the array.
     */
    subarray(begin?: number, end?: number): Float16Array<TArrayBuffer>;

    /**
     * Converts a number to a string by using the current locale.
     */
    toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;

    /**
     * Copies the array and returns the copy with the elements in reverse order.
     */
    toReversed(): Float16Array<ArrayBuffer>;

    /**
     * Copies and sorts the array.
     * @param compareFn Function used to determine the order of the elements. It is expected to return
     * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
     * value otherwise. If omitted, the elements are sorted in ascending order.
     * \`\`\`ts
     * const myNums = Float16Array.from([11.25, 2, -22.5, 1]);
     * myNums.toSorted((a, b) => a - b) // Float16Array(4) [-22.5, 1, 2, 11.5]
     * \`\`\`
     */
    toSorted(compareFn?: (a: number, b: number) => number): Float16Array<ArrayBuffer>;

    /**
     * Returns a string representation of an array.
     */
    toString(): string;

    /** Returns the primitive value of the specified object. */
    valueOf(): this;

    /**
     * Copies the array and inserts the given number at the provided index.
     * @param index The index of the value to overwrite. If the index is
     * negative, then it replaces from the end of the array.
     * @param value The value to insert into the copied array.
     * @returns A copy of the original array with the inserted value.
     */
    with(index: number, value: number): Float16Array<ArrayBuffer>;

    [index: number]: number;

    [Symbol.iterator](): ArrayIterator<number>;

    /**
     * Returns an array of key, value pairs for every entry in the array
     */
    entries(): ArrayIterator<[number, number]>;

    /**
     * Returns an list of keys in the array
     */
    keys(): ArrayIterator<number>;

    /**
     * Returns an list of values in the array
     */
    values(): ArrayIterator<number>;

    readonly [Symbol.toStringTag]: "Float16Array";
}

interface Float16ArrayConstructor {
    readonly prototype: Float16Array<ArrayBufferLike>;
    new (length?: number): Float16Array<ArrayBuffer>;
    new (array: ArrayLike<number> | Iterable<number>): Float16Array<ArrayBuffer>;
    new <TArrayBuffer extends ArrayBufferLike = ArrayBuffer>(buffer: TArrayBuffer, byteOffset?: number, length?: number): Float16Array<TArrayBuffer>;
    new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float16Array<ArrayBuffer>;
    new (array: ArrayLike<number> | ArrayBuffer): Float16Array<ArrayBuffer>;

    /**
     * The size in bytes of each element in the array.
     */
    readonly BYTES_PER_ELEMENT: number;

    /**
     * Returns a new array from a set of elements.
     * @param items A set of elements to include in the new array object.
     */
    of(...items: number[]): Float16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     */
    from(arrayLike: ArrayLike<number>): Float16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param arrayLike An array-like object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     */
    from(elements: Iterable<number>): Float16Array<ArrayBuffer>;

    /**
     * Creates an array from an array-like or iterable object.
     * @param elements An iterable object to convert to an array.
     * @param mapfn A mapping function to call on every element of the array.
     * @param thisArg Value of 'this' used to invoke the mapfn.
     */
    from<T>(elements: Iterable<T>, mapfn?: (v: T, k: number) => number, thisArg?: any): Float16Array<ArrayBuffer>;
}
declare var Float16Array: Float16ArrayConstructor;

interface Math {
    /**
     * Returns the nearest half precision float representation of a number.
     * @param x A numeric expression.
     */
    f16round(x: number): number;
}

interface DataView<TArrayBuffer extends ArrayBufferLike> {
    /**
     * Gets the Float16 value at the specified byte offset from the start of the view. There is
     * no alignment constraint; multi-byte values may be fetched from any offset.
     * @param byteOffset The place in the buffer at which the value should be retrieved.
     * @param littleEndian If false or undefined, a big-endian value should be read.
     */
    getFloat16(byteOffset: number, littleEndian?: boolean): number;

    /**
     * Stores an Float16 value at the specified byte offset from the start of the view.
     * @param byteOffset The place in the buffer at which the value should be set.
     * @param value The value to set.
     * @param littleEndian If false or undefined, a big-endian value should be written.
     */
    setFloat16(byteOffset: number, value: number, littleEndian?: boolean): void;
}
`),
    (ji["lib.esnext.full.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="esnext" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`),
    (ji["lib.esnext.intl.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

declare namespace Intl {
    // Empty
}
`),
    (ji["lib.esnext.iterator.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/// <reference lib="es2015.iterable" />

// NOTE: This is specified as what is essentially an unreachable module. All actual global declarations can be found
//       in the \`declare global\` section, below. This is necessary as there is currently no way to declare an \`abstract\`
//       member without declaring a \`class\`, but declaring \`class Iterator<T>\` globally would conflict with TypeScript's
//       general purpose \`Iterator<T>\` interface.
export {};

// Abstract type that allows us to mark \`next\` as \`abstract\`
declare abstract class Iterator<T, TResult = undefined, TNext = unknown> { // eslint-disable-line @typescript-eslint/no-unsafe-declaration-merging
    abstract next(value?: TNext): IteratorResult<T, TResult>;
}

// Merge all members of \`IteratorObject<T>\` into \`Iterator<T>\`
interface Iterator<T, TResult, TNext> extends globalThis.IteratorObject<T, TResult, TNext> {}

// Capture the \`Iterator\` constructor in a type we can use in the \`extends\` clause of \`IteratorConstructor\`.
type IteratorObjectConstructor = typeof Iterator;

declare global {
    // Global \`IteratorObject<T, TReturn, TNext>\` interface that can be augmented by polyfills
    interface IteratorObject<T, TReturn, TNext> {
        /**
         * Returns this iterator.
         */
        [Symbol.iterator](): IteratorObject<T, TReturn, TNext>;

        /**
         * Creates an iterator whose values are the result of applying the callback to the values from this iterator.
         * @param callbackfn A function that accepts up to two arguments to be used to transform values from the underlying iterator.
         */
        map<U>(callbackfn: (value: T, index: number) => U): IteratorObject<U, undefined, unknown>;

        /**
         * Creates an iterator whose values are those from this iterator for which the provided predicate returns true.
         * @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator.
         */
        filter<S extends T>(predicate: (value: T, index: number) => value is S): IteratorObject<S, undefined, unknown>;

        /**
         * Creates an iterator whose values are those from this iterator for which the provided predicate returns true.
         * @param predicate A function that accepts up to two arguments to be used to test values from the underlying iterator.
         */
        filter(predicate: (value: T, index: number) => unknown): IteratorObject<T, undefined, unknown>;

        /**
         * Creates an iterator whose values are the values from this iterator, stopping once the provided limit is reached.
         * @param limit The maximum number of values to yield.
         */
        take(limit: number): IteratorObject<T, undefined, unknown>;

        /**
         * Creates an iterator whose values are the values from this iterator after skipping the provided count.
         * @param count The number of values to drop.
         */
        drop(count: number): IteratorObject<T, undefined, unknown>;

        /**
         * Creates an iterator whose values are the result of applying the callback to the values from this iterator and then flattening the resulting iterators or iterables.
         * @param callback A function that accepts up to two arguments to be used to transform values from the underlying iterator into new iterators or iterables to be flattened into the result.
         */
        flatMap<U>(callback: (value: T, index: number) => Iterator<U, unknown, undefined> | Iterable<U, unknown, undefined>): IteratorObject<U, undefined, unknown>;

        /**
         * Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
         * @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.
         * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of a value from the iterator.
         */
        reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T): T;
        reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number) => T, initialValue: T): T;

        /**
         * Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
         * @param callbackfn A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.
         * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of a value from the iterator.
         */
        reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number) => U, initialValue: U): U;

        /**
         * Creates a new array from the values yielded by this iterator.
         */
        toArray(): T[];

        /**
         * Performs the specified action for each element in the iterator.
         * @param callbackfn A function that accepts up to two arguments. forEach calls the callbackfn function one time for each element in the iterator.
         */
        forEach(callbackfn: (value: T, index: number) => void): void;

        /**
         * Determines whether the specified callback function returns true for any element of this iterator.
         * @param predicate A function that accepts up to two arguments. The some method calls
         * the predicate function for each element in this iterator until the predicate returns a value
         * true, or until the end of the iterator.
         */
        some(predicate: (value: T, index: number) => unknown): boolean;

        /**
         * Determines whether all the members of this iterator satisfy the specified test.
         * @param predicate A function that accepts up to two arguments. The every method calls
         * the predicate function for each element in this iterator until the predicate returns
         * false, or until the end of this iterator.
         */
        every(predicate: (value: T, index: number) => unknown): boolean;

        /**
         * Returns the value of the first element in this iterator where predicate is true, and undefined
         * otherwise.
         * @param predicate find calls predicate once for each element of this iterator, in
         * order, until it finds one where predicate returns true. If such an element is found, find
         * immediately returns that element value. Otherwise, find returns undefined.
         */
        find<S extends T>(predicate: (value: T, index: number) => value is S): S | undefined;
        find(predicate: (value: T, index: number) => unknown): T | undefined;

        readonly [Symbol.toStringTag]: string;
    }

    // Global \`IteratorConstructor\` interface that can be augmented by polyfills
    interface IteratorConstructor extends IteratorObjectConstructor {
        /**
         * Creates a native iterator from an iterator or iterable object.
         * Returns its input if the input already inherits from the built-in Iterator class.
         * @param value An iterator or iterable object to convert a native iterator.
         */
        from<T>(value: Iterator<T, unknown, undefined> | Iterable<T, unknown, undefined>): IteratorObject<T, undefined, unknown>;
    }

    var Iterator: IteratorConstructor;
}
`),
    (ji["lib.esnext.promise.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface PromiseConstructor {
    /**
     * Takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result
     * in a Promise.
     *
     * @param callbackFn A function that is called synchronously. It can do anything: either return
     * a value, throw an error, or return a promise.
     * @param args Additional arguments, that will be passed to the callback.
     *
     * @returns A Promise that is:
     * - Already fulfilled, if the callback synchronously returns a value.
     * - Already rejected, if the callback synchronously throws an error.
     * - Asynchronously fulfilled or rejected, if the callback returns a promise.
     */
    try<T, U extends unknown[]>(callbackFn: (...args: U) => T | PromiseLike<T>, ...args: U): Promise<Awaited<T>>;
}
`),
    (ji["lib.esnext.sharedmemory.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

interface Atomics {
    /**
     * Performs a finite-time microwait by signaling to the operating system or
     * CPU that the current executing code is in a spin-wait loop.
     */
    pause(n?: number): void;
}
`),
    (ji["lib.scripthost.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/////////////////////////////
/// Windows Script Host APIS
/////////////////////////////

interface ActiveXObject {
    new (s: string): any;
}
declare var ActiveXObject: ActiveXObject;

interface ITextWriter {
    Write(s: string): void;
    WriteLine(s: string): void;
    Close(): void;
}

interface TextStreamBase {
    /**
     * The column number of the current character position in an input stream.
     */
    Column: number;

    /**
     * The current line number in an input stream.
     */
    Line: number;

    /**
     * Closes a text stream.
     * It is not necessary to close standard streams; they close automatically when the process ends. If
     * you close a standard stream, be aware that any other pointers to that standard stream become invalid.
     */
    Close(): void;
}

interface TextStreamWriter extends TextStreamBase {
    /**
     * Sends a string to an output stream.
     */
    Write(s: string): void;

    /**
     * Sends a specified number of blank lines (newline characters) to an output stream.
     */
    WriteBlankLines(intLines: number): void;

    /**
     * Sends a string followed by a newline character to an output stream.
     */
    WriteLine(s: string): void;
}

interface TextStreamReader extends TextStreamBase {
    /**
     * Returns a specified number of characters from an input stream, starting at the current pointer position.
     * Does not return until the ENTER key is pressed.
     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
     */
    Read(characters: number): string;

    /**
     * Returns all characters from an input stream.
     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
     */
    ReadAll(): string;

    /**
     * Returns an entire line from an input stream.
     * Although this method extracts the newline character, it does not add it to the returned string.
     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
     */
    ReadLine(): string;

    /**
     * Skips a specified number of characters when reading from an input text stream.
     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
     * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
     */
    Skip(characters: number): void;

    /**
     * Skips the next line when reading from an input text stream.
     * Can only be used on a stream in reading mode, not writing or appending mode.
     */
    SkipLine(): void;

    /**
     * Indicates whether the stream pointer position is at the end of a line.
     */
    AtEndOfLine: boolean;

    /**
     * Indicates whether the stream pointer position is at the end of a stream.
     */
    AtEndOfStream: boolean;
}

declare var WScript: {
    /**
     * Outputs text to either a message box (under WScript.exe) or the command console window followed by
     * a newline (under CScript.exe).
     */
    Echo(s: any): void;

    /**
     * Exposes the write-only error output stream for the current script.
     * Can be accessed only while using CScript.exe.
     */
    StdErr: TextStreamWriter;

    /**
     * Exposes the write-only output stream for the current script.
     * Can be accessed only while using CScript.exe.
     */
    StdOut: TextStreamWriter;
    Arguments: { length: number; Item(n: number): string; };

    /**
     *  The full path of the currently running script.
     */
    ScriptFullName: string;

    /**
     * Forces the script to stop immediately, with an optional exit code.
     */
    Quit(exitCode?: number): number;

    /**
     * The Windows Script Host build version number.
     */
    BuildVersion: number;

    /**
     * Fully qualified path of the host executable.
     */
    FullName: string;

    /**
     * Gets/sets the script mode - interactive(true) or batch(false).
     */
    Interactive: boolean;

    /**
     * The name of the host executable (WScript.exe or CScript.exe).
     */
    Name: string;

    /**
     * Path of the directory containing the host executable.
     */
    Path: string;

    /**
     * The filename of the currently running script.
     */
    ScriptName: string;

    /**
     * Exposes the read-only input stream for the current script.
     * Can be accessed only while using CScript.exe.
     */
    StdIn: TextStreamReader;

    /**
     * Windows Script Host version
     */
    Version: string;

    /**
     * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
     */
    ConnectObject(objEventSource: any, strPrefix: string): void;

    /**
     * Creates a COM object.
     * @param strProgiID
     * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
     */
    CreateObject(strProgID: string, strPrefix?: string): any;

    /**
     * Disconnects a COM object from its event sources.
     */
    DisconnectObject(obj: any): void;

    /**
     * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
     * @param strPathname Fully qualified path to the file containing the object persisted to disk.
     *                       For objects in memory, pass a zero-length string.
     * @param strProgID
     * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
     */
    GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;

    /**
     * Suspends script execution for a specified length of time, then continues execution.
     * @param intTime Interval (in milliseconds) to suspend script execution.
     */
    Sleep(intTime: number): void;
};

/**
 * WSH is an alias for WScript under Windows Script Host
 */
declare var WSH: typeof WScript;

/**
 * Represents an Automation SAFEARRAY
 */
declare class SafeArray<T = any> {
    private constructor();
    private SafeArray_typekey: SafeArray<T>;
}

/**
 * Allows enumerating over a COM collection, which may not have indexed item access.
 */
interface Enumerator<T = any> {
    /**
     * Returns true if the current item is the last one in the collection, or the collection is empty,
     * or the current item is undefined.
     */
    atEnd(): boolean;

    /**
     * Returns the current item in the collection
     */
    item(): T;

    /**
     * Resets the current item in the collection to the first item. If there are no items in the collection,
     * the current item is set to undefined.
     */
    moveFirst(): void;

    /**
     * Moves the current item to the next item in the collection. If the enumerator is at the end of
     * the collection or the collection is empty, the current item is set to undefined.
     */
    moveNext(): void;
}

interface EnumeratorConstructor {
    new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
    new <T = any>(collection: { Item(index: any): T; }): Enumerator<T>;
    new <T = any>(collection: any): Enumerator<T>;
}

declare var Enumerator: EnumeratorConstructor;

/**
 * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
 */
interface VBArray<T = any> {
    /**
     * Returns the number of dimensions (1-based).
     */
    dimensions(): number;

    /**
     * Takes an index for each dimension in the array, and returns the item at the corresponding location.
     */
    getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;

    /**
     * Returns the smallest available index for a given dimension.
     * @param dimension 1-based dimension (defaults to 1)
     */
    lbound(dimension?: number): number;

    /**
     * Returns the largest available index for a given dimension.
     * @param dimension 1-based dimension (defaults to 1)
     */
    ubound(dimension?: number): number;

    /**
     * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
     * each successive dimension is appended to the end of the array.
     * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
     */
    toArray(): T[];
}

interface VBArrayConstructor {
    new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
}

declare var VBArray: VBArrayConstructor;

/**
 * Automation date (VT_DATE)
 */
declare class VarDate {
    private constructor();
    private VarDate_typekey: VarDate;
}

interface DateConstructor {
    new (vd: VarDate): Date;
}

interface Date {
    getVarDate: () => VarDate;
}
`),
    (ji["lib.webworker.asynciterable.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/////////////////////////////
/// Worker Async Iterable APIs
/////////////////////////////

interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
}

interface FileSystemDirectoryHandle {
    [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
    entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
    keys(): FileSystemDirectoryHandleAsyncIterator<string>;
    values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
}

interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
}

interface ReadableStream<R = any> {
    [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
    values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
}
`),
    (ji["lib.webworker.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/////////////////////////////
/// Worker APIs
/////////////////////////////

interface AddEventListenerOptions extends EventListenerOptions {
    once?: boolean;
    passive?: boolean;
    signal?: AbortSignal;
}

interface AesCbcParams extends Algorithm {
    iv: BufferSource;
}

interface AesCtrParams extends Algorithm {
    counter: BufferSource;
    length: number;
}

interface AesDerivedKeyParams extends Algorithm {
    length: number;
}

interface AesGcmParams extends Algorithm {
    additionalData?: BufferSource;
    iv: BufferSource;
    tagLength?: number;
}

interface AesKeyAlgorithm extends KeyAlgorithm {
    length: number;
}

interface AesKeyGenParams extends Algorithm {
    length: number;
}

interface Algorithm {
    name: string;
}

interface AudioConfiguration {
    bitrate?: number;
    channels?: string;
    contentType: string;
    samplerate?: number;
    spatialRendering?: boolean;
}

interface AudioDataCopyToOptions {
    format?: AudioSampleFormat;
    frameCount?: number;
    frameOffset?: number;
    planeIndex: number;
}

interface AudioDataInit {
    data: BufferSource;
    format: AudioSampleFormat;
    numberOfChannels: number;
    numberOfFrames: number;
    sampleRate: number;
    timestamp: number;
    transfer?: ArrayBuffer[];
}

interface AudioDecoderConfig {
    codec: string;
    description?: AllowSharedBufferSource;
    numberOfChannels: number;
    sampleRate: number;
}

interface AudioDecoderInit {
    error: WebCodecsErrorCallback;
    output: AudioDataOutputCallback;
}

interface AudioDecoderSupport {
    config?: AudioDecoderConfig;
    supported?: boolean;
}

interface AudioEncoderConfig {
    bitrate?: number;
    bitrateMode?: BitrateMode;
    codec: string;
    numberOfChannels: number;
    opus?: OpusEncoderConfig;
    sampleRate: number;
}

interface AudioEncoderInit {
    error: WebCodecsErrorCallback;
    output: EncodedAudioChunkOutputCallback;
}

interface AudioEncoderSupport {
    config?: AudioEncoderConfig;
    supported?: boolean;
}

interface AvcEncoderConfig {
    format?: AvcBitstreamFormat;
}

interface BlobPropertyBag {
    endings?: EndingType;
    type?: string;
}

interface CSSMatrixComponentOptions {
    is2D?: boolean;
}

interface CSSNumericType {
    angle?: number;
    flex?: number;
    frequency?: number;
    length?: number;
    percent?: number;
    percentHint?: CSSNumericBaseType;
    resolution?: number;
    time?: number;
}

interface CacheQueryOptions {
    ignoreMethod?: boolean;
    ignoreSearch?: boolean;
    ignoreVary?: boolean;
}

interface ClientQueryOptions {
    includeUncontrolled?: boolean;
    type?: ClientTypes;
}

interface CloseEventInit extends EventInit {
    code?: number;
    reason?: string;
    wasClean?: boolean;
}

interface CookieInit {
    domain?: string | null;
    expires?: DOMHighResTimeStamp | null;
    name: string;
    partitioned?: boolean;
    path?: string;
    sameSite?: CookieSameSite;
    value: string;
}

interface CookieListItem {
    name?: string;
    value?: string;
}

interface CookieStoreDeleteOptions {
    domain?: string | null;
    name: string;
    partitioned?: boolean;
    path?: string;
}

interface CookieStoreGetOptions {
    name?: string;
    url?: string;
}

interface CryptoKeyPair {
    privateKey: CryptoKey;
    publicKey: CryptoKey;
}

interface CustomEventInit<T = any> extends EventInit {
    detail?: T;
}

interface DOMMatrix2DInit {
    a?: number;
    b?: number;
    c?: number;
    d?: number;
    e?: number;
    f?: number;
    m11?: number;
    m12?: number;
    m21?: number;
    m22?: number;
    m41?: number;
    m42?: number;
}

interface DOMMatrixInit extends DOMMatrix2DInit {
    is2D?: boolean;
    m13?: number;
    m14?: number;
    m23?: number;
    m24?: number;
    m31?: number;
    m32?: number;
    m33?: number;
    m34?: number;
    m43?: number;
    m44?: number;
}

interface DOMPointInit {
    w?: number;
    x?: number;
    y?: number;
    z?: number;
}

interface DOMQuadInit {
    p1?: DOMPointInit;
    p2?: DOMPointInit;
    p3?: DOMPointInit;
    p4?: DOMPointInit;
}

interface DOMRectInit {
    height?: number;
    width?: number;
    x?: number;
    y?: number;
}

interface EcKeyGenParams extends Algorithm {
    namedCurve: NamedCurve;
}

interface EcKeyImportParams extends Algorithm {
    namedCurve: NamedCurve;
}

interface EcdhKeyDeriveParams extends Algorithm {
    public: CryptoKey;
}

interface EcdsaParams extends Algorithm {
    hash: HashAlgorithmIdentifier;
}

interface EncodedAudioChunkInit {
    data: AllowSharedBufferSource;
    duration?: number;
    timestamp: number;
    transfer?: ArrayBuffer[];
    type: EncodedAudioChunkType;
}

interface EncodedAudioChunkMetadata {
    decoderConfig?: AudioDecoderConfig;
}

interface EncodedVideoChunkInit {
    data: AllowSharedBufferSource;
    duration?: number;
    timestamp: number;
    type: EncodedVideoChunkType;
}

interface EncodedVideoChunkMetadata {
    decoderConfig?: VideoDecoderConfig;
}

interface ErrorEventInit extends EventInit {
    colno?: number;
    error?: any;
    filename?: string;
    lineno?: number;
    message?: string;
}

interface EventInit {
    bubbles?: boolean;
    cancelable?: boolean;
    composed?: boolean;
}

interface EventListenerOptions {
    capture?: boolean;
}

interface EventSourceInit {
    withCredentials?: boolean;
}

interface ExtendableCookieChangeEventInit extends ExtendableEventInit {
    changed?: CookieList;
    deleted?: CookieList;
}

interface ExtendableEventInit extends EventInit {
}

interface ExtendableMessageEventInit extends ExtendableEventInit {
    data?: any;
    lastEventId?: string;
    origin?: string;
    ports?: MessagePort[];
    source?: Client | ServiceWorker | MessagePort | null;
}

interface FetchEventInit extends ExtendableEventInit {
    clientId?: string;
    handled?: Promise<void>;
    preloadResponse?: Promise<any>;
    request: Request;
    resultingClientId?: string;
}

interface FilePropertyBag extends BlobPropertyBag {
    lastModified?: number;
}

interface FileSystemCreateWritableOptions {
    keepExistingData?: boolean;
}

interface FileSystemGetDirectoryOptions {
    create?: boolean;
}

interface FileSystemGetFileOptions {
    create?: boolean;
}

interface FileSystemReadWriteOptions {
    at?: number;
}

interface FileSystemRemoveOptions {
    recursive?: boolean;
}

interface FontFaceDescriptors {
    ascentOverride?: string;
    descentOverride?: string;
    display?: FontDisplay;
    featureSettings?: string;
    lineGapOverride?: string;
    stretch?: string;
    style?: string;
    unicodeRange?: string;
    weight?: string;
}

interface FontFaceSetLoadEventInit extends EventInit {
    fontfaces?: FontFace[];
}

interface GetNotificationOptions {
    tag?: string;
}

interface HkdfParams extends Algorithm {
    hash: HashAlgorithmIdentifier;
    info: BufferSource;
    salt: BufferSource;
}

interface HmacImportParams extends Algorithm {
    hash: HashAlgorithmIdentifier;
    length?: number;
}

interface HmacKeyGenParams extends Algorithm {
    hash: HashAlgorithmIdentifier;
    length?: number;
}

interface IDBDatabaseInfo {
    name?: string;
    version?: number;
}

interface IDBIndexParameters {
    multiEntry?: boolean;
    unique?: boolean;
}

interface IDBObjectStoreParameters {
    autoIncrement?: boolean;
    keyPath?: string | string[] | null;
}

interface IDBTransactionOptions {
    durability?: IDBTransactionDurability;
}

interface IDBVersionChangeEventInit extends EventInit {
    newVersion?: number | null;
    oldVersion?: number;
}

interface ImageBitmapOptions {
    colorSpaceConversion?: ColorSpaceConversion;
    imageOrientation?: ImageOrientation;
    premultiplyAlpha?: PremultiplyAlpha;
    resizeHeight?: number;
    resizeQuality?: ResizeQuality;
    resizeWidth?: number;
}

interface ImageBitmapRenderingContextSettings {
    alpha?: boolean;
}

interface ImageDataSettings {
    colorSpace?: PredefinedColorSpace;
}

interface ImageDecodeOptions {
    completeFramesOnly?: boolean;
    frameIndex?: number;
}

interface ImageDecodeResult {
    complete: boolean;
    image: VideoFrame;
}

interface ImageDecoderInit {
    colorSpaceConversion?: ColorSpaceConversion;
    data: ImageBufferSource;
    desiredHeight?: number;
    desiredWidth?: number;
    preferAnimation?: boolean;
    transfer?: ArrayBuffer[];
    type: string;
}

interface ImageEncodeOptions {
    quality?: number;
    type?: string;
}

interface JsonWebKey {
    alg?: string;
    crv?: string;
    d?: string;
    dp?: string;
    dq?: string;
    e?: string;
    ext?: boolean;
    k?: string;
    key_ops?: string[];
    kty?: string;
    n?: string;
    oth?: RsaOtherPrimesInfo[];
    p?: string;
    q?: string;
    qi?: string;
    use?: string;
    x?: string;
    y?: string;
}

interface KeyAlgorithm {
    name: string;
}

interface KeySystemTrackConfiguration {
    robustness?: string;
}

interface LockInfo {
    clientId?: string;
    mode?: LockMode;
    name?: string;
}

interface LockManagerSnapshot {
    held?: LockInfo[];
    pending?: LockInfo[];
}

interface LockOptions {
    ifAvailable?: boolean;
    mode?: LockMode;
    signal?: AbortSignal;
    steal?: boolean;
}

interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
}

interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
}

interface MediaCapabilitiesInfo {
    powerEfficient: boolean;
    smooth: boolean;
    supported: boolean;
}

interface MediaCapabilitiesKeySystemConfiguration {
    audio?: KeySystemTrackConfiguration;
    distinctiveIdentifier?: MediaKeysRequirement;
    initDataType?: string;
    keySystem: string;
    persistentState?: MediaKeysRequirement;
    sessionTypes?: string[];
    video?: KeySystemTrackConfiguration;
}

interface MediaConfiguration {
    audio?: AudioConfiguration;
    video?: VideoConfiguration;
}

interface MediaDecodingConfiguration extends MediaConfiguration {
    keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
    type: MediaDecodingType;
}

interface MediaEncodingConfiguration extends MediaConfiguration {
    type: MediaEncodingType;
}

interface MediaStreamTrackProcessorInit {
    maxBufferSize?: number;
}

interface MessageEventInit<T = any> extends EventInit {
    data?: T;
    lastEventId?: string;
    origin?: string;
    ports?: MessagePort[];
    source?: MessageEventSource | null;
}

interface MultiCacheQueryOptions extends CacheQueryOptions {
    cacheName?: string;
}

interface NavigationPreloadState {
    enabled?: boolean;
    headerValue?: string;
}

interface NotificationEventInit extends ExtendableEventInit {
    action?: string;
    notification: Notification;
}

interface NotificationOptions {
    badge?: string;
    body?: string;
    data?: any;
    dir?: NotificationDirection;
    icon?: string;
    lang?: string;
    requireInteraction?: boolean;
    silent?: boolean | null;
    tag?: string;
}

interface OpusEncoderConfig {
    complexity?: number;
    format?: OpusBitstreamFormat;
    frameDuration?: number;
    packetlossperc?: number;
    usedtx?: boolean;
    useinbandfec?: boolean;
}

interface Pbkdf2Params extends Algorithm {
    hash: HashAlgorithmIdentifier;
    iterations: number;
    salt: BufferSource;
}

interface PerformanceMarkOptions {
    detail?: any;
    startTime?: DOMHighResTimeStamp;
}

interface PerformanceMeasureOptions {
    detail?: any;
    duration?: DOMHighResTimeStamp;
    end?: string | DOMHighResTimeStamp;
    start?: string | DOMHighResTimeStamp;
}

interface PerformanceObserverInit {
    buffered?: boolean;
    entryTypes?: string[];
    type?: string;
}

interface PermissionDescriptor {
    name: PermissionName;
}

interface PlaneLayout {
    offset: number;
    stride: number;
}

interface ProgressEventInit extends EventInit {
    lengthComputable?: boolean;
    loaded?: number;
    total?: number;
}

interface PromiseRejectionEventInit extends EventInit {
    promise: Promise<any>;
    reason?: any;
}

interface PushEventInit extends ExtendableEventInit {
    data?: PushMessageDataInit;
}

interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
    newSubscription?: PushSubscription;
    oldSubscription?: PushSubscription;
}

interface PushSubscriptionJSON {
    endpoint?: string;
    expirationTime?: EpochTimeStamp | null;
    keys?: Record<string, string>;
}

interface PushSubscriptionOptionsInit {
    applicationServerKey?: BufferSource | string | null;
    userVisibleOnly?: boolean;
}

interface QueuingStrategy<T = any> {
    highWaterMark?: number;
    size?: QueuingStrategySize<T>;
}

interface QueuingStrategyInit {
    /**
     * Creates a new ByteLengthQueuingStrategy with the provided high water mark.
     *
     * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
     */
    highWaterMark: number;
}

interface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {
    sequenceNumber?: number;
}

interface RTCEncodedFrameMetadata {
    contributingSources?: number[];
    mimeType?: string;
    payloadType?: number;
    rtpTimestamp?: number;
    synchronizationSource?: number;
}

interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
    dependencies?: number[];
    frameId?: number;
    height?: number;
    spatialIndex?: number;
    temporalIndex?: number;
    timestamp?: number;
    width?: number;
}

interface ReadableStreamGetReaderOptions {
    /**
     * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
     *
     * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
     */
    mode?: ReadableStreamReaderMode;
}

interface ReadableStreamIteratorOptions {
    /**
     * Asynchronously iterates over the chunks in the stream's internal queue.
     *
     * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
     *
     * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
     */
    preventCancel?: boolean;
}

interface ReadableStreamReadDoneResult<T> {
    done: true;
    value: T | undefined;
}

interface ReadableStreamReadValueResult<T> {
    done: false;
    value: T;
}

interface ReadableWritablePair<R = any, W = any> {
    readable: ReadableStream<R>;
    /**
     * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
     *
     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
     */
    writable: WritableStream<W>;
}

interface RegistrationOptions {
    scope?: string;
    type?: WorkerType;
    updateViaCache?: ServiceWorkerUpdateViaCache;
}

interface ReportingObserverOptions {
    buffered?: boolean;
    types?: string[];
}

interface RequestInit {
    /** A BodyInit object or null to set request's body. */
    body?: BodyInit | null;
    /** A string indicating how the request will interact with the browser's cache to set request's cache. */
    cache?: RequestCache;
    /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
    credentials?: RequestCredentials;
    /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
    headers?: HeadersInit;
    /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
    integrity?: string;
    /** A boolean to set request's keepalive. */
    keepalive?: boolean;
    /** A string to set request's method. */
    method?: string;
    /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
    mode?: RequestMode;
    priority?: RequestPriority;
    /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
    redirect?: RequestRedirect;
    /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
    referrer?: string;
    /** A referrer policy to set request's referrerPolicy. */
    referrerPolicy?: ReferrerPolicy;
    /** An AbortSignal to set request's signal. */
    signal?: AbortSignal | null;
    /** Can only be null. Used to disassociate request from any Window. */
    window?: null;
}

interface ResponseInit {
    headers?: HeadersInit;
    status?: number;
    statusText?: string;
}

interface RsaHashedImportParams extends Algorithm {
    hash: HashAlgorithmIdentifier;
}

interface RsaHashedKeyGenParams extends RsaKeyGenParams {
    hash: HashAlgorithmIdentifier;
}

interface RsaKeyGenParams extends Algorithm {
    modulusLength: number;
    publicExponent: BigInteger;
}

interface RsaOaepParams extends Algorithm {
    label?: BufferSource;
}

interface RsaOtherPrimesInfo {
    d?: string;
    r?: string;
    t?: string;
}

interface RsaPssParams extends Algorithm {
    saltLength: number;
}

interface SecurityPolicyViolationEventInit extends EventInit {
    blockedURI?: string;
    columnNumber?: number;
    disposition?: SecurityPolicyViolationEventDisposition;
    documentURI?: string;
    effectiveDirective?: string;
    lineNumber?: number;
    originalPolicy?: string;
    referrer?: string;
    sample?: string;
    sourceFile?: string;
    statusCode?: number;
    violatedDirective?: string;
}

interface StorageEstimate {
    quota?: number;
    usage?: number;
}

interface StreamPipeOptions {
    preventAbort?: boolean;
    preventCancel?: boolean;
    /**
     * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
     *
     * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
     *
     * Errors and closures of the source and destination streams propagate as follows:
     *
     * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
     *
     * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
     *
     * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
     *
     * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
     *
     * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
     */
    preventClose?: boolean;
    signal?: AbortSignal;
}

interface StructuredSerializeOptions {
    transfer?: Transferable[];
}

interface TextDecodeOptions {
    stream?: boolean;
}

interface TextDecoderOptions {
    fatal?: boolean;
    ignoreBOM?: boolean;
}

interface TextEncoderEncodeIntoResult {
    read: number;
    written: number;
}

interface Transformer<I = any, O = any> {
    flush?: TransformerFlushCallback<O>;
    readableType?: undefined;
    start?: TransformerStartCallback<O>;
    transform?: TransformerTransformCallback<I, O>;
    writableType?: undefined;
}

interface UnderlyingByteSource {
    autoAllocateChunkSize?: number;
    cancel?: UnderlyingSourceCancelCallback;
    pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
    start?: (controller: ReadableByteStreamController) => any;
    type: "bytes";
}

interface UnderlyingDefaultSource<R = any> {
    cancel?: UnderlyingSourceCancelCallback;
    pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
    start?: (controller: ReadableStreamDefaultController<R>) => any;
    type?: undefined;
}

interface UnderlyingSink<W = any> {
    abort?: UnderlyingSinkAbortCallback;
    close?: UnderlyingSinkCloseCallback;
    start?: UnderlyingSinkStartCallback;
    type?: undefined;
    write?: UnderlyingSinkWriteCallback<W>;
}

interface UnderlyingSource<R = any> {
    autoAllocateChunkSize?: number;
    cancel?: UnderlyingSourceCancelCallback;
    pull?: UnderlyingSourcePullCallback<R>;
    start?: UnderlyingSourceStartCallback<R>;
    type?: ReadableStreamType;
}

interface VideoColorSpaceInit {
    fullRange?: boolean | null;
    matrix?: VideoMatrixCoefficients | null;
    primaries?: VideoColorPrimaries | null;
    transfer?: VideoTransferCharacteristics | null;
}

interface VideoConfiguration {
    bitrate: number;
    colorGamut?: ColorGamut;
    contentType: string;
    framerate: number;
    hasAlphaChannel?: boolean;
    hdrMetadataType?: HdrMetadataType;
    height: number;
    scalabilityMode?: string;
    transferFunction?: TransferFunction;
    width: number;
}

interface VideoDecoderConfig {
    codec: string;
    codedHeight?: number;
    codedWidth?: number;
    colorSpace?: VideoColorSpaceInit;
    description?: AllowSharedBufferSource;
    displayAspectHeight?: number;
    displayAspectWidth?: number;
    hardwareAcceleration?: HardwareAcceleration;
    optimizeForLatency?: boolean;
}

interface VideoDecoderInit {
    error: WebCodecsErrorCallback;
    output: VideoFrameOutputCallback;
}

interface VideoDecoderSupport {
    config?: VideoDecoderConfig;
    supported?: boolean;
}

interface VideoEncoderConfig {
    alpha?: AlphaOption;
    avc?: AvcEncoderConfig;
    bitrate?: number;
    bitrateMode?: VideoEncoderBitrateMode;
    codec: string;
    contentHint?: string;
    displayHeight?: number;
    displayWidth?: number;
    framerate?: number;
    hardwareAcceleration?: HardwareAcceleration;
    height: number;
    latencyMode?: LatencyMode;
    scalabilityMode?: string;
    width: number;
}

interface VideoEncoderEncodeOptions {
    avc?: VideoEncoderEncodeOptionsForAvc;
    keyFrame?: boolean;
}

interface VideoEncoderEncodeOptionsForAvc {
    quantizer?: number | null;
}

interface VideoEncoderInit {
    error: WebCodecsErrorCallback;
    output: EncodedVideoChunkOutputCallback;
}

interface VideoEncoderSupport {
    config?: VideoEncoderConfig;
    supported?: boolean;
}

interface VideoFrameBufferInit {
    codedHeight: number;
    codedWidth: number;
    colorSpace?: VideoColorSpaceInit;
    displayHeight?: number;
    displayWidth?: number;
    duration?: number;
    format: VideoPixelFormat;
    layout?: PlaneLayout[];
    timestamp: number;
    visibleRect?: DOMRectInit;
}

interface VideoFrameCopyToOptions {
    colorSpace?: PredefinedColorSpace;
    format?: VideoPixelFormat;
    layout?: PlaneLayout[];
    rect?: DOMRectInit;
}

interface VideoFrameInit {
    alpha?: AlphaOption;
    displayHeight?: number;
    displayWidth?: number;
    duration?: number;
    timestamp?: number;
    visibleRect?: DOMRectInit;
}

interface WebGLContextAttributes {
    alpha?: boolean;
    antialias?: boolean;
    depth?: boolean;
    desynchronized?: boolean;
    failIfMajorPerformanceCaveat?: boolean;
    powerPreference?: WebGLPowerPreference;
    premultipliedAlpha?: boolean;
    preserveDrawingBuffer?: boolean;
    stencil?: boolean;
}

interface WebGLContextEventInit extends EventInit {
    statusMessage?: string;
}

interface WebTransportCloseInfo {
    closeCode?: number;
    reason?: string;
}

interface WebTransportErrorOptions {
    source?: WebTransportErrorSource;
    streamErrorCode?: number | null;
}

interface WebTransportHash {
    algorithm?: string;
    value?: BufferSource;
}

interface WebTransportOptions {
    allowPooling?: boolean;
    congestionControl?: WebTransportCongestionControl;
    requireUnreliable?: boolean;
    serverCertificateHashes?: WebTransportHash[];
}

interface WebTransportSendOptions {
    sendOrder?: number;
}

interface WebTransportSendStreamOptions extends WebTransportSendOptions {
}

interface WorkerOptions {
    credentials?: RequestCredentials;
    name?: string;
    type?: WorkerType;
}

interface WriteParams {
    data?: BufferSource | Blob | string | null;
    position?: number | null;
    size?: number | null;
    type: WriteCommandType;
}

/**
 * The **\`ANGLE_instanced_arrays\`** extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)
 */
interface ANGLE_instanced_arrays {
    /**
     * The **\`ANGLE_instanced_arrays.drawArraysInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays() method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)
     */
    drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
    /**
     * The **\`ANGLE_instanced_arrays.drawElementsInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements() method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)
     */
    drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
    /**
     * The **ANGLE_instanced_arrays.vertexAttribDivisorANGLE()** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE().
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)
     */
    vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}

/**
 * The **\`AbortController\`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
 */
interface AbortController {
    /**
     * The **\`signal\`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
     */
    readonly signal: AbortSignal;
    /**
     * The **\`abort()\`** method of the AbortController interface aborts an asynchronous operation before it has completed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
     */
    abort(reason?: any): void;
}

declare var AbortController: {
    prototype: AbortController;
    new(): AbortController;
};

interface AbortSignalEventMap {
    "abort": Event;
}

/**
 * The **\`AbortSignal\`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
 */
interface AbortSignal extends EventTarget {
    /**
     * The **\`aborted\`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (\`true\`) or not (\`false\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
     */
    readonly aborted: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
    onabort: ((this: AbortSignal, ev: Event) => any) | null;
    /**
     * The **\`reason\`** read-only property returns a JavaScript value that indicates the abort reason.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason)
     */
    readonly reason: any;
    /**
     * The **\`throwIfAborted()\`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted)
     */
    throwIfAborted(): void;
    addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var AbortSignal: {
    prototype: AbortSignal;
    new(): AbortSignal;
    /**
     * The **\`AbortSignal.abort()\`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
     */
    abort(reason?: any): AbortSignal;
    /**
     * The **\`AbortSignal.any()\`** static method takes an iterable of abort signals and returns an AbortSignal.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)
     */
    any(signals: AbortSignal[]): AbortSignal;
    /**
     * The **\`AbortSignal.timeout()\`** static method returns an AbortSignal that will automatically abort after a specified time.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static)
     */
    timeout(milliseconds: number): AbortSignal;
};

interface AbstractWorkerEventMap {
    "error": ErrorEvent;
}

interface AbstractWorker {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */
    onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

interface AnimationFrameProvider {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
    cancelAnimationFrame(handle: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
    requestAnimationFrame(callback: FrameRequestCallback): number;
}

/**
 * The **\`AudioData\`** interface of the WebCodecs API represents an audio sample.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData)
 */
interface AudioData {
    /**
     * The **\`duration\`** read-only property of the AudioData interface returns the duration in microseconds of this \`AudioData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration)
     */
    readonly duration: number;
    /**
     * The **\`format\`** read-only property of the AudioData interface returns the sample format of the \`AudioData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format)
     */
    readonly format: AudioSampleFormat | null;
    /**
     * The **\`numberOfChannels\`** read-only property of the AudioData interface returns the number of channels in the \`AudioData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels)
     */
    readonly numberOfChannels: number;
    /**
     * The **\`numberOfFrames\`** read-only property of the AudioData interface returns the number of frames in the \`AudioData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames)
     */
    readonly numberOfFrames: number;
    /**
     * The **\`sampleRate\`** read-only property of the AudioData interface returns the sample rate in Hz.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate)
     */
    readonly sampleRate: number;
    /**
     * The **\`timestamp\`** read-only property of the AudioData interface returns the timestamp of this \`AudioData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp)
     */
    readonly timestamp: number;
    /**
     * The **\`allocationSize()\`** method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize)
     */
    allocationSize(options: AudioDataCopyToOptions): number;
    /**
     * The **\`clone()\`** method of the AudioData interface creates a new \`AudioData\` object with reference to the same media resource as the original.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone)
     */
    clone(): AudioData;
    /**
     * The **\`close()\`** method of the AudioData interface clears all states and releases the reference to the media resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close)
     */
    close(): void;
    /**
     * The **\`copyTo()\`** method of the AudioData interface copies a plane of an \`AudioData\` object to a destination buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo)
     */
    copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void;
}

declare var AudioData: {
    prototype: AudioData;
    new(init: AudioDataInit): AudioData;
};

interface AudioDecoderEventMap {
    "dequeue": Event;
}

/**
 * The **\`AudioDecoder\`** interface of the WebCodecs API decodes chunks of audio.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder)
 */
interface AudioDecoder extends EventTarget {
    /**
     * The **\`decodeQueueSize\`** read-only property of the AudioDecoder interface returns the number of pending decode requests in the queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize)
     */
    readonly decodeQueueSize: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */
    ondequeue: ((this: AudioDecoder, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the AudioDecoder interface returns the current state of the underlying codec.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state)
     */
    readonly state: CodecState;
    /**
     * The **\`close()\`** method of the AudioDecoder interface ends all pending work and releases system resources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close)
     */
    close(): void;
    /**
     * The **\`configure()\`** method of the AudioDecoder interface enqueues a control message to configure the audio decoder for decoding chunks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure)
     */
    configure(config: AudioDecoderConfig): void;
    /**
     * The **\`decode()\`** method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode)
     */
    decode(chunk: EncodedAudioChunk): void;
    /**
     * The **\`flush()\`** method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush)
     */
    flush(): Promise<void>;
    /**
     * The **\`reset()\`** method of the AudioDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset)
     */
    reset(): void;
    addEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var AudioDecoder: {
    prototype: AudioDecoder;
    new(init: AudioDecoderInit): AudioDecoder;
    /**
     * The **\`isConfigSupported()\`** static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static)
     */
    isConfigSupported(config: AudioDecoderConfig): Promise<AudioDecoderSupport>;
};

interface AudioEncoderEventMap {
    "dequeue": Event;
}

/**
 * The **\`AudioEncoder\`** interface of the WebCodecs API encodes AudioData objects.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder)
 */
interface AudioEncoder extends EventTarget {
    /**
     * The **\`encodeQueueSize\`** read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize)
     */
    readonly encodeQueueSize: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */
    ondequeue: ((this: AudioEncoder, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the AudioEncoder interface returns the current state of the underlying codec.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state)
     */
    readonly state: CodecState;
    /**
     * The **\`close()\`** method of the AudioEncoder interface ends all pending work and releases system resources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close)
     */
    close(): void;
    /**
     * The **\`configure()\`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure)
     */
    configure(config: AudioEncoderConfig): void;
    /**
     * The **\`encode()\`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode)
     */
    encode(data: AudioData): void;
    /**
     * The **\`flush()\`** method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush)
     */
    flush(): Promise<void>;
    /**
     * The **\`reset()\`** method of the AudioEncoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset)
     */
    reset(): void;
    addEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var AudioEncoder: {
    prototype: AudioEncoder;
    new(init: AudioEncoderInit): AudioEncoder;
    /**
     * The **\`isConfigSupported()\`** static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static)
     */
    isConfigSupported(config: AudioEncoderConfig): Promise<AudioEncoderSupport>;
};

/**
 * The **\`Blob\`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
 */
interface Blob {
    /**
     * The **\`size\`** read-only property of the Blob interface returns the size of the Blob or File in bytes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size)
     */
    readonly size: number;
    /**
     * The **\`type\`** read-only property of the Blob interface returns the MIME type of the file.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type)
     */
    readonly type: string;
    /**
     * The **\`arrayBuffer()\`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer)
     */
    arrayBuffer(): Promise<ArrayBuffer>;
    /**
     * The **\`bytes()\`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes)
     */
    bytes(): Promise<Uint8Array<ArrayBuffer>>;
    /**
     * The **\`slice()\`** method of the Blob interface creates and returns a new \`Blob\` object which contains data from a subset of the blob on which it's called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice)
     */
    slice(start?: number, end?: number, contentType?: string): Blob;
    /**
     * The **\`stream()\`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the \`Blob\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream)
     */
    stream(): ReadableStream<Uint8Array<ArrayBuffer>>;
    /**
     * The **\`text()\`** method of the string containing the contents of the blob, interpreted as UTF-8.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text)
     */
    text(): Promise<string>;
}

declare var Blob: {
    prototype: Blob;
    new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};

interface Body {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
    readonly body: ReadableStream<Uint8Array<ArrayBuffer>> | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
    readonly bodyUsed: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
    arrayBuffer(): Promise<ArrayBuffer>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
    blob(): Promise<Blob>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */
    bytes(): Promise<Uint8Array<ArrayBuffer>>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
    formData(): Promise<FormData>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
    json(): Promise<any>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
    text(): Promise<string>;
}

interface BroadcastChannelEventMap {
    "message": MessageEvent;
    "messageerror": MessageEvent;
}

/**
 * The **\`BroadcastChannel\`** interface represents a named channel that any browsing context of a given origin can subscribe to.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel)
 */
interface BroadcastChannel extends EventTarget {
    /**
     * The **\`name\`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)
     */
    readonly name: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */
    onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */
    onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
    /**
     * The **\`close()\`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
     */
    close(): void;
    /**
     * The **\`postMessage()\`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
     */
    postMessage(message: any): void;
    addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var BroadcastChannel: {
    prototype: BroadcastChannel;
    new(name: string): BroadcastChannel;
};

/**
 * The **\`ByteLengthQueuingStrategy\`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
 */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
    /**
     * The read-only **\`ByteLengthQueuingStrategy.highWaterMark\`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark)
     */
    readonly highWaterMark: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
    readonly size: QueuingStrategySize<ArrayBufferView>;
}

declare var ByteLengthQueuingStrategy: {
    prototype: ByteLengthQueuingStrategy;
    new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};

/**
 * The **\`CSSImageValue\`** interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue)
 */
interface CSSImageValue extends CSSStyleValue {
}

declare var CSSImageValue: {
    prototype: CSSImageValue;
    new(): CSSImageValue;
};

/**
 * The **\`CSSKeywordValue\`** interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue)
 */
interface CSSKeywordValue extends CSSStyleValue {
    /**
     * The **\`value\`** property of the \`CSSKeywordValue\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value)
     */
    value: string;
}

declare var CSSKeywordValue: {
    prototype: CSSKeywordValue;
    new(value: string): CSSKeywordValue;
};

interface CSSMathClamp extends CSSMathValue {
    readonly lower: CSSNumericValue;
    readonly upper: CSSNumericValue;
    readonly value: CSSNumericValue;
}

declare var CSSMathClamp: {
    prototype: CSSMathClamp;
    new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
};

/**
 * The **\`CSSMathInvert\`** interface of the CSS Typed Object Model API represents a CSS calc used as \`calc(1 / <value>)\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
 */
interface CSSMathInvert extends CSSMathValue {
    /**
     * The CSSMathInvert.value read-only property of the A CSSNumericValue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value)
     */
    readonly value: CSSNumericValue;
}

declare var CSSMathInvert: {
    prototype: CSSMathInvert;
    new(arg: CSSNumberish): CSSMathInvert;
};

/**
 * The **\`CSSMathMax\`** interface of the CSS Typed Object Model API represents the CSS max function.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax)
 */
interface CSSMathMax extends CSSMathValue {
    /**
     * The CSSMathMax.values read-only property of the which contains one or more CSSNumericValue objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values)
     */
    readonly values: CSSNumericArray;
}

declare var CSSMathMax: {
    prototype: CSSMathMax;
    new(...args: CSSNumberish[]): CSSMathMax;
};

/**
 * The **\`CSSMathMin\`** interface of the CSS Typed Object Model API represents the CSS min function.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin)
 */
interface CSSMathMin extends CSSMathValue {
    /**
     * The CSSMathMin.values read-only property of the which contains one or more CSSNumericValue objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values)
     */
    readonly values: CSSNumericArray;
}

declare var CSSMathMin: {
    prototype: CSSMathMin;
    new(...args: CSSNumberish[]): CSSMathMin;
};

/**
 * The **\`CSSMathNegate\`** interface of the CSS Typed Object Model API negates the value passed into it.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate)
 */
interface CSSMathNegate extends CSSMathValue {
    /**
     * The CSSMathNegate.value read-only property of the A CSSNumericValue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value)
     */
    readonly value: CSSNumericValue;
}

declare var CSSMathNegate: {
    prototype: CSSMathNegate;
    new(arg: CSSNumberish): CSSMathNegate;
};

/**
 * The **\`CSSMathProduct\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct)
 */
interface CSSMathProduct extends CSSMathValue {
    /**
     * The **\`CSSMathProduct.values\`** read-only property of the CSSMathProduct interface returns a A CSSNumericArray.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values)
     */
    readonly values: CSSNumericArray;
}

declare var CSSMathProduct: {
    prototype: CSSMathProduct;
    new(...args: CSSNumberish[]): CSSMathProduct;
};

/**
 * The **\`CSSMathSum\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum)
 */
interface CSSMathSum extends CSSMathValue {
    /**
     * The **\`CSSMathSum.values\`** read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values)
     */
    readonly values: CSSNumericArray;
}

declare var CSSMathSum: {
    prototype: CSSMathSum;
    new(...args: CSSNumberish[]): CSSMathSum;
};

/**
 * The **\`CSSMathValue\`** interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue)
 */
interface CSSMathValue extends CSSNumericValue {
    /**
     * The **\`CSSMathValue.operator\`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator)
     */
    readonly operator: CSSMathOperator;
}

declare var CSSMathValue: {
    prototype: CSSMathValue;
    new(): CSSMathValue;
};

/**
 * The **\`CSSMatrixComponent\`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent)
 */
interface CSSMatrixComponent extends CSSTransformComponent {
    /**
     * The **\`matrix\`** property of the See the matrix() and matrix3d() pages for examples.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix)
     */
    matrix: DOMMatrix;
}

declare var CSSMatrixComponent: {
    prototype: CSSMatrixComponent;
    new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
};

/**
 * The **\`CSSNumericArray\`** interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray)
 */
interface CSSNumericArray {
    /**
     * The read-only **\`length\`** property of the An integer representing the number of CSSNumericValue objects in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length)
     */
    readonly length: number;
    forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
    [index: number]: CSSNumericValue;
}

declare var CSSNumericArray: {
    prototype: CSSNumericArray;
    new(): CSSNumericArray;
};

/**
 * The **\`CSSNumericValue\`** interface of the CSS Typed Object Model API represents operations that all numeric values can perform.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue)
 */
interface CSSNumericValue extends CSSStyleValue {
    /**
     * The **\`add()\`** method of the \`CSSNumericValue\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add)
     */
    add(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`div()\`** method of the supplied value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div)
     */
    div(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`equals()\`** method of the value are strictly equal.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals)
     */
    equals(...value: CSSNumberish[]): boolean;
    /**
     * The **\`max()\`** method of the passed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max)
     */
    max(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`min()\`** method of the values passed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min)
     */
    min(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`mul()\`** method of the the supplied value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul)
     */
    mul(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`sub()\`** method of the \`CSSNumericValue\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub)
     */
    sub(...values: CSSNumberish[]): CSSNumericValue;
    /**
     * The **\`to()\`** method of the another.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to)
     */
    to(unit: string): CSSUnitValue;
    /**
     * The **\`toSum()\`** method of the \`\`\`js-nolint toSum(units) \`\`\` - \`units\` - : The units to convert to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum)
     */
    toSum(...units: string[]): CSSMathSum;
    /**
     * The **\`type()\`** method of the \`CSSNumericValue\`, one of \`angle\`, \`flex\`, \`frequency\`, \`length\`, \`resolution\`, \`percent\`, \`percentHint\`, or \`time\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type)
     */
    type(): CSSNumericType;
}

declare var CSSNumericValue: {
    prototype: CSSNumericValue;
    new(): CSSNumericValue;
};

/**
 * The **\`CSSPerspective\`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective)
 */
interface CSSPerspective extends CSSTransformComponent {
    /**
     * The **\`length\`** property of the It is used to apply a perspective transform to the element and its content.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length)
     */
    length: CSSPerspectiveValue;
}

declare var CSSPerspective: {
    prototype: CSSPerspective;
    new(length: CSSPerspectiveValue): CSSPerspective;
};

/**
 * The **\`CSSRotate\`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate)
 */
interface CSSRotate extends CSSTransformComponent {
    /**
     * The **\`angle\`** property of the denotes a clockwise rotation, a negative angle a counter-clockwise one.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle)
     */
    angle: CSSNumericValue;
    /**
     * The **\`x\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x)
     */
    x: CSSNumberish;
    /**
     * The **\`y\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y)
     */
    y: CSSNumberish;
    /**
     * The **\`z\`** property of the vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z)
     */
    z: CSSNumberish;
}

declare var CSSRotate: {
    prototype: CSSRotate;
    new(angle: CSSNumericValue): CSSRotate;
    new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
};

/**
 * The **\`CSSScale\`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale)
 */
interface CSSScale extends CSSTransformComponent {
    /**
     * The **\`x\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x)
     */
    x: CSSNumberish;
    /**
     * The **\`y\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y)
     */
    y: CSSNumberish;
    /**
     * The **\`z\`** property of the vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z)
     */
    z: CSSNumberish;
}

declare var CSSScale: {
    prototype: CSSScale;
    new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
};

/**
 * The **\`CSSSkew\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew)
 */
interface CSSSkew extends CSSTransformComponent {
    /**
     * The **\`ax\`** property of the along the x-axis (or abscissa).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax)
     */
    ax: CSSNumericValue;
    /**
     * The **\`ay\`** property of the along the y-axis (or ordinate).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay)
     */
    ay: CSSNumericValue;
}

declare var CSSSkew: {
    prototype: CSSSkew;
    new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
};

/**
 * The **\`CSSSkewX\`** interface of the CSS Typed Object Model API represents the \`skewX()\` value of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX)
 */
interface CSSSkewX extends CSSTransformComponent {
    /**
     * The **\`ax\`** property of the along the x-axis (or abscissa).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax)
     */
    ax: CSSNumericValue;
}

declare var CSSSkewX: {
    prototype: CSSSkewX;
    new(ax: CSSNumericValue): CSSSkewX;
};

/**
 * The **\`CSSSkewY\`** interface of the CSS Typed Object Model API represents the \`skewY()\` value of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY)
 */
interface CSSSkewY extends CSSTransformComponent {
    /**
     * The **\`ay\`** property of the along the y-axis (or ordinate).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay)
     */
    ay: CSSNumericValue;
}

declare var CSSSkewY: {
    prototype: CSSSkewY;
    new(ay: CSSNumericValue): CSSSkewY;
};

/**
 * The **\`CSSStyleValue\`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue)
 */
interface CSSStyleValue {
    toString(): string;
}

declare var CSSStyleValue: {
    prototype: CSSStyleValue;
    new(): CSSStyleValue;
};

/**
 * The **\`CSSTransformComponent\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent)
 */
interface CSSTransformComponent {
    /**
     * The **\`is2D\`** read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D)
     */
    is2D: boolean;
    /**
     * The **\`toMatrix()\`** method of the object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix)
     */
    toMatrix(): DOMMatrix;
    toString(): string;
}

declare var CSSTransformComponent: {
    prototype: CSSTransformComponent;
    new(): CSSTransformComponent;
};

/**
 * The **\`CSSTransformValue\`** interface of the CSS Typed Object Model API represents \`transform-list\` values as used by the CSS transform property.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue)
 */
interface CSSTransformValue extends CSSStyleValue {
    /**
     * The read-only **\`is2D\`** property of the In the case of the \`CSSTransformValue\` this property returns true unless any of the individual functions return false for \`Is2D\`, in which case it returns false.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D)
     */
    readonly is2D: boolean;
    /**
     * The read-only **\`length\`** property of the the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length)
     */
    readonly length: number;
    /**
     * The **\`toMatrix()\`** method of the \`\`\`js-nolint toMatrix() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix)
     */
    toMatrix(): DOMMatrix;
    forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
    [index: number]: CSSTransformComponent;
}

declare var CSSTransformValue: {
    prototype: CSSTransformValue;
    new(transforms: CSSTransformComponent[]): CSSTransformValue;
};

/**
 * The **\`CSSTranslate\`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate)
 */
interface CSSTranslate extends CSSTransformComponent {
    /**
     * The **\`x\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x)
     */
    x: CSSNumericValue;
    /**
     * The **\`y\`** property of the translating vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y)
     */
    y: CSSNumericValue;
    /**
     * The **\`z\`** property of the vector.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z)
     */
    z: CSSNumericValue;
}

declare var CSSTranslate: {
    prototype: CSSTranslate;
    new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
};

/**
 * The **\`CSSUnitValue\`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
 */
interface CSSUnitValue extends CSSNumericValue {
    /**
     * The **\`CSSUnitValue.unit\`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit)
     */
    readonly unit: string;
    /**
     * The **\`CSSUnitValue.value\`** property of the A double.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value)
     */
    value: number;
}

declare var CSSUnitValue: {
    prototype: CSSUnitValue;
    new(value: number, unit: string): CSSUnitValue;
};

/**
 * The **\`CSSUnparsedValue\`** interface of the CSS Typed Object Model API represents property values that reference custom properties.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue)
 */
interface CSSUnparsedValue extends CSSStyleValue {
    /**
     * The **\`length\`** read-only property of the An integer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length)
     */
    readonly length: number;
    forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
    [index: number]: CSSUnparsedSegment;
}

declare var CSSUnparsedValue: {
    prototype: CSSUnparsedValue;
    new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
};

/**
 * The **\`CSSVariableReferenceValue\`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue)
 */
interface CSSVariableReferenceValue {
    /**
     * The **\`fallback\`** read-only property of the A CSSUnparsedValue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback)
     */
    readonly fallback: CSSUnparsedValue | null;
    /**
     * The **\`variable\`** property of the A string beginning with \`--\` (that is, a custom property name).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable)
     */
    variable: string;
}

declare var CSSVariableReferenceValue: {
    prototype: CSSVariableReferenceValue;
    new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
};

/**
 * The **\`Cache\`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
 */
interface Cache {
    /**
     * The **\`add()\`** method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add)
     */
    add(request: RequestInfo | URL): Promise<void>;
    /**
     * The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
     */
    addAll(requests: RequestInfo[]): Promise<void>;
    /**
     * The **\`delete()\`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to \`true\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete)
     */
    delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
    /**
     * The **\`keys()\`** method of the Cache interface returns a representing the keys of the Cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys)
     */
    keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
    /**
     * The **\`match()\`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match)
     */
    match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
    /**
     * The **\`matchAll()\`** method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll)
     */
    matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
    /**
     * The **\`put()\`** method of the Often, you will just want to Window/fetch one or more requests, then add the result straight to your cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put)
     */
    put(request: RequestInfo | URL, response: Response): Promise<void>;
}

declare var Cache: {
    prototype: Cache;
    new(): Cache;
};

/**
 * The **\`CacheStorage\`** interface represents the storage for Cache objects.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)
 */
interface CacheStorage {
    /**
     * The **\`delete()\`** method of the CacheStorage interface finds the Cache object matching the \`cacheName\`, and if found, deletes the Cache object and returns a Promise that resolves to \`true\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete)
     */
    delete(cacheName: string): Promise<boolean>;
    /**
     * The **\`has()\`** method of the CacheStorage interface returns a Promise that resolves to \`true\` if a You can access \`CacheStorage\` through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has)
     */
    has(cacheName: string): Promise<boolean>;
    /**
     * The **\`keys()\`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys)
     */
    keys(): Promise<string[]>;
    /**
     * The **\`match()\`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match)
     */
    match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
    /**
     * The **\`open()\`** method of the the Cache object matching the \`cacheName\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open)
     */
    open(cacheName: string): Promise<Cache>;
}

declare var CacheStorage: {
    prototype: CacheStorage;
    new(): CacheStorage;
};

interface CanvasCompositing {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */
    globalAlpha: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */
    globalCompositeOperation: GlobalCompositeOperation;
}

interface CanvasDrawImage {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */
    drawImage(image: CanvasImageSource, dx: number, dy: number): void;
    drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
    drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}

interface CanvasDrawPath {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */
    beginPath(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */
    clip(fillRule?: CanvasFillRule): void;
    clip(path: Path2D, fillRule?: CanvasFillRule): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */
    fill(fillRule?: CanvasFillRule): void;
    fill(path: Path2D, fillRule?: CanvasFillRule): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */
    isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
    isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */
    isPointInStroke(x: number, y: number): boolean;
    isPointInStroke(path: Path2D, x: number, y: number): boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */
    stroke(): void;
    stroke(path: Path2D): void;
}

interface CanvasFillStrokeStyles {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */
    fillStyle: string | CanvasGradient | CanvasPattern;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */
    strokeStyle: string | CanvasGradient | CanvasPattern;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */
    createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */
    createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */
    createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */
    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}

interface CanvasFilters {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */
    filter: string;
}

/**
 * The **\`CanvasGradient\`** interface represents an opaque object describing a gradient.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
 */
interface CanvasGradient {
    /**
     * The **\`CanvasGradient.addColorStop()\`** method adds a new color stop, defined by an \`offset\` and a \`color\`, to a given canvas gradient.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)
     */
    addColorStop(offset: number, color: string): void;
}

declare var CanvasGradient: {
    prototype: CanvasGradient;
    new(): CanvasGradient;
};

interface CanvasImageData {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */
    createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
    createImageData(imageData: ImageData): ImageData;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */
    getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */
    putImageData(imageData: ImageData, dx: number, dy: number): void;
    putImageData(imageData: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}

interface CanvasImageSmoothing {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */
    imageSmoothingEnabled: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */
    imageSmoothingQuality: ImageSmoothingQuality;
}

interface CanvasPath {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */
    arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */
    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */
    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */
    closePath(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */
    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */
    lineTo(x: number, y: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */
    moveTo(x: number, y: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */
    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */
    rect(x: number, y: number, w: number, h: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
    roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}

interface CanvasPathDrawingStyles {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */
    lineCap: CanvasLineCap;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */
    lineDashOffset: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */
    lineJoin: CanvasLineJoin;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */
    lineWidth: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */
    miterLimit: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */
    getLineDash(): number[];
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
    setLineDash(segments: number[]): void;
}

/**
 * The **\`CanvasPattern\`** interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)
 */
interface CanvasPattern {
    /**
     * The **\`CanvasPattern.setTransform()\`** method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)
     */
    setTransform(transform?: DOMMatrix2DInit): void;
}

declare var CanvasPattern: {
    prototype: CanvasPattern;
    new(): CanvasPattern;
};

interface CanvasRect {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */
    clearRect(x: number, y: number, w: number, h: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */
    fillRect(x: number, y: number, w: number, h: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */
    strokeRect(x: number, y: number, w: number, h: number): void;
}

interface CanvasShadowStyles {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */
    shadowBlur: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */
    shadowColor: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */
    shadowOffsetX: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */
    shadowOffsetY: number;
}

interface CanvasState {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */
    isContextLost(): boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
    reset(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
    restore(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
    save(): void;
}

interface CanvasText {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */
    fillText(text: string, x: number, y: number, maxWidth?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */
    measureText(text: string): TextMetrics;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */
    strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}

interface CanvasTextDrawingStyles {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */
    direction: CanvasDirection;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */
    font: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
    fontKerning: CanvasFontKerning;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
    fontStretch: CanvasFontStretch;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
    fontVariantCaps: CanvasFontVariantCaps;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
    letterSpacing: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
    textAlign: CanvasTextAlign;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */
    textBaseline: CanvasTextBaseline;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */
    textRendering: CanvasTextRendering;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */
    wordSpacing: string;
}

interface CanvasTransform {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */
    getTransform(): DOMMatrix;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */
    resetTransform(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */
    rotate(angle: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */
    scale(x: number, y: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */
    setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
    setTransform(transform?: DOMMatrix2DInit): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */
    transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */
    translate(x: number, y: number): void;
}

/**
 * The \`Client\` interface represents an executable context such as a Worker, or a SharedWorker.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)
 */
interface Client {
    /**
     * The **\`frameType\`** read-only property of the Client interface indicates the type of browsing context of the current Client.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType)
     */
    readonly frameType: FrameType;
    /**
     * The **\`id\`** read-only property of the Client interface returns the universally unique identifier of the Client object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id)
     */
    readonly id: string;
    /**
     * The **\`type\`** read-only property of the Client interface indicates the type of client the service worker is controlling.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type)
     */
    readonly type: ClientTypes;
    /**
     * The **\`url\`** read-only property of the Client interface returns the URL of the current service worker client.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url)
     */
    readonly url: string;
    /**
     * The **\`postMessage()\`** method of the (a Window, Worker, or SharedWorker).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage)
     */
    postMessage(message: any, transfer: Transferable[]): void;
    postMessage(message: any, options?: StructuredSerializeOptions): void;
}

declare var Client: {
    prototype: Client;
    new(): Client;
};

/**
 * The \`Clients\` interface provides access to Client objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)
 */
interface Clients {
    /**
     * The **\`claim()\`** method of the Clients interface allows an active service worker to set itself as the ServiceWorkerContainer.controller for all clients within its ServiceWorkerRegistration.scope.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim)
     */
    claim(): Promise<void>;
    /**
     * The **\`get()\`** method of the \`id\` and returns it in a Promise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get)
     */
    get(id: string): Promise<Client | undefined>;
    /**
     * The **\`matchAll()\`** method of the Clients interface returns a Promise for a list of service worker clients whose origin is the same as the associated service worker's origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll)
     */
    matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
    /**
     * The **\`openWindow()\`** method of the Clients interface creates a new top level browsing context and loads a given URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/openWindow)
     */
    openWindow(url: string | URL): Promise<WindowClient | null>;
}

declare var Clients: {
    prototype: Clients;
    new(): Clients;
};

/**
 * A \`CloseEvent\` is sent to clients using WebSockets when the connection is closed.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
 */
interface CloseEvent extends Event {
    /**
     * The **\`code\`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
     */
    readonly code: number;
    /**
     * The **\`reason\`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
     */
    readonly reason: string;
    /**
     * The **\`wasClean\`** read-only property of the CloseEvent interface returns \`true\` if the connection closed cleanly.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
     */
    readonly wasClean: boolean;
}

declare var CloseEvent: {
    prototype: CloseEvent;
    new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};

/**
 * The **\`CompressionStream\`** interface of the Compression Streams API is an API for compressing a stream of data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
 */
interface CompressionStream extends GenericTransformStream {
    readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
    readonly writable: WritableStream<BufferSource>;
}

declare var CompressionStream: {
    prototype: CompressionStream;
    new(format: CompressionFormat): CompressionStream;
};

/**
 * The **\`CookieStore\`** interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore)
 */
interface CookieStore extends EventTarget {
    /**
     * The **\`delete()\`** method of the CookieStore interface deletes a cookie that matches the given \`name\` or \`options\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete)
     */
    delete(name: string): Promise<void>;
    delete(options: CookieStoreDeleteOptions): Promise<void>;
    /**
     * The **\`get()\`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given \`name\` or \`options\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get)
     */
    get(name: string): Promise<CookieListItem | null>;
    get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>;
    /**
     * The **\`getAll()\`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the \`name\` or \`options\` passed to it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll)
     */
    getAll(name: string): Promise<CookieList>;
    getAll(options?: CookieStoreGetOptions): Promise<CookieList>;
    /**
     * The **\`set()\`** method of the CookieStore interface sets a cookie with the given \`name\` and \`value\` or \`options\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set)
     */
    set(name: string, value: string): Promise<void>;
    set(options: CookieInit): Promise<void>;
}

declare var CookieStore: {
    prototype: CookieStore;
    new(): CookieStore;
};

/**
 * The **\`CookieStoreManager\`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
 */
interface CookieStoreManager {
    /**
     * The **\`getSubscriptions()\`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions)
     */
    getSubscriptions(): Promise<CookieStoreGetOptions[]>;
    /**
     * The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
     */
    subscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
    /**
     * The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
     */
    unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise<void>;
}

declare var CookieStoreManager: {
    prototype: CookieStoreManager;
    new(): CookieStoreManager;
};

/**
 * The **\`CountQueuingStrategy\`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
 */
interface CountQueuingStrategy extends QueuingStrategy {
    /**
     * The read-only **\`CountQueuingStrategy.highWaterMark\`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark)
     */
    readonly highWaterMark: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
    readonly size: QueuingStrategySize;
}

declare var CountQueuingStrategy: {
    prototype: CountQueuingStrategy;
    new(init: QueuingStrategyInit): CountQueuingStrategy;
};

/**
 * The **\`Crypto\`** interface represents basic cryptography features available in the current context.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
 */
interface Crypto {
    /**
     * The **\`Crypto.subtle\`** read-only property returns a cryptographic operations.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
     */
    readonly subtle: SubtleCrypto;
    /**
     * The **\`Crypto.getRandomValues()\`** method lets you get cryptographically strong random values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
     */
    getRandomValues<T extends ArrayBufferView>(array: T): T;
    /**
     * The **\`randomUUID()\`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
     */
    randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
}

declare var Crypto: {
    prototype: Crypto;
    new(): Crypto;
};

/**
 * The **\`CryptoKey\`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
 */
interface CryptoKey {
    /**
     * The read-only **\`algorithm\`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm)
     */
    readonly algorithm: KeyAlgorithm;
    /**
     * The read-only **\`extractable\`** property of the CryptoKey interface indicates whether or not the key may be extracted using \`SubtleCrypto.exportKey()\` or \`SubtleCrypto.wrapKey()\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable)
     */
    readonly extractable: boolean;
    /**
     * The read-only **\`type\`** property of the CryptoKey interface indicates which kind of key is represented by the object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type)
     */
    readonly type: KeyType;
    /**
     * The read-only **\`usages\`** property of the CryptoKey interface indicates what can be done with the key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages)
     */
    readonly usages: KeyUsage[];
}

declare var CryptoKey: {
    prototype: CryptoKey;
    new(): CryptoKey;
};

/**
 * The **\`CustomEvent\`** interface represents events initialized by an application for any purpose.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
 */
interface CustomEvent<T = any> extends Event {
    /**
     * The read-only **\`detail\`** property of the CustomEvent interface returns any data passed when initializing the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
     */
    readonly detail: T;
    /**
     * The **\`CustomEvent.initCustomEvent()\`** method initializes a CustomEvent object.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
     */
    initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}

declare var CustomEvent: {
    prototype: CustomEvent;
    new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};

/**
 * The **\`DOMException\`** interface represents an abnormal event (called an **exception**) that occurs as a result of calling a method or accessing a property of a web API.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
 */
interface DOMException extends Error {
    /**
     * The **\`code\`** read-only property of the DOMException interface returns one of the legacy error code constants, or \`0\` if none match.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
     */
    readonly code: number;
    /**
     * The **\`message\`** read-only property of the a message or description associated with the given error name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
     */
    readonly message: string;
    /**
     * The **\`name\`** read-only property of the one of the strings associated with an error name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)
     */
    readonly name: string;
    readonly INDEX_SIZE_ERR: 1;
    readonly DOMSTRING_SIZE_ERR: 2;
    readonly HIERARCHY_REQUEST_ERR: 3;
    readonly WRONG_DOCUMENT_ERR: 4;
    readonly INVALID_CHARACTER_ERR: 5;
    readonly NO_DATA_ALLOWED_ERR: 6;
    readonly NO_MODIFICATION_ALLOWED_ERR: 7;
    readonly NOT_FOUND_ERR: 8;
    readonly NOT_SUPPORTED_ERR: 9;
    readonly INUSE_ATTRIBUTE_ERR: 10;
    readonly INVALID_STATE_ERR: 11;
    readonly SYNTAX_ERR: 12;
    readonly INVALID_MODIFICATION_ERR: 13;
    readonly NAMESPACE_ERR: 14;
    readonly INVALID_ACCESS_ERR: 15;
    readonly VALIDATION_ERR: 16;
    readonly TYPE_MISMATCH_ERR: 17;
    readonly SECURITY_ERR: 18;
    readonly NETWORK_ERR: 19;
    readonly ABORT_ERR: 20;
    readonly URL_MISMATCH_ERR: 21;
    readonly QUOTA_EXCEEDED_ERR: 22;
    readonly TIMEOUT_ERR: 23;
    readonly INVALID_NODE_TYPE_ERR: 24;
    readonly DATA_CLONE_ERR: 25;
}

declare var DOMException: {
    prototype: DOMException;
    new(message?: string, name?: string): DOMException;
    readonly INDEX_SIZE_ERR: 1;
    readonly DOMSTRING_SIZE_ERR: 2;
    readonly HIERARCHY_REQUEST_ERR: 3;
    readonly WRONG_DOCUMENT_ERR: 4;
    readonly INVALID_CHARACTER_ERR: 5;
    readonly NO_DATA_ALLOWED_ERR: 6;
    readonly NO_MODIFICATION_ALLOWED_ERR: 7;
    readonly NOT_FOUND_ERR: 8;
    readonly NOT_SUPPORTED_ERR: 9;
    readonly INUSE_ATTRIBUTE_ERR: 10;
    readonly INVALID_STATE_ERR: 11;
    readonly SYNTAX_ERR: 12;
    readonly INVALID_MODIFICATION_ERR: 13;
    readonly NAMESPACE_ERR: 14;
    readonly INVALID_ACCESS_ERR: 15;
    readonly VALIDATION_ERR: 16;
    readonly TYPE_MISMATCH_ERR: 17;
    readonly SECURITY_ERR: 18;
    readonly NETWORK_ERR: 19;
    readonly ABORT_ERR: 20;
    readonly URL_MISMATCH_ERR: 21;
    readonly QUOTA_EXCEEDED_ERR: 22;
    readonly TIMEOUT_ERR: 23;
    readonly INVALID_NODE_TYPE_ERR: 24;
    readonly DATA_CLONE_ERR: 25;
};

/**
 * The **\`DOMMatrix\`** interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix)
 */
interface DOMMatrix extends DOMMatrixReadOnly {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    a: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    b: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    c: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    d: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    e: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    f: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m11: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m12: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m13: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m14: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m21: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m22: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m23: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m24: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m31: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m32: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m33: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m34: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m41: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m42: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m43: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
    m44: number;
    /**
     * The **\`invertSelf()\`** method of the DOMMatrix interface inverts the original matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf)
     */
    invertSelf(): DOMMatrix;
    /**
     * The **\`multiplySelf()\`** method of the DOMMatrix interface multiplies a matrix by the \`otherMatrix\` parameter, computing the dot product of the original matrix and the specified matrix: \`A⋅B\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf)
     */
    multiplySelf(other?: DOMMatrixInit): DOMMatrix;
    /**
     * The **\`preMultiplySelf()\`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified \`DOMMatrix\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf)
     */
    preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
    /**
     * The \`rotateAxisAngleSelf()\` method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)
     */
    rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
    /**
     * The \`rotateFromVectorSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and \`(1, 0)\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf)
     */
    rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
    /**
     * The \`rotateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf)
     */
    rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
    /**
     * The **\`scale3dSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of \`(0, 0, 0)\`, returning the 3D-scaled matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf)
     */
    scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
    /**
     * The **\`scaleSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of \`(0, 0)\`, returning the scaled matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf)
     */
    scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
    /**
     * The \`skewXSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf)
     */
    skewXSelf(sx?: number): DOMMatrix;
    /**
     * The \`skewYSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf)
     */
    skewYSelf(sy?: number): DOMMatrix;
    /**
     * The \`translateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf)
     */
    translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}

declare var DOMMatrix: {
    prototype: DOMMatrix;
    new(init?: string | number[]): DOMMatrix;
    fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
    fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
    fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};

/**
 * The **\`DOMMatrixReadOnly\`** interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly)
 */
interface DOMMatrixReadOnly {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly a: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly b: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly c: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly d: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly e: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly f: number;
    /**
     * The readonly **\`is2D\`** property of the DOMMatrixReadOnly interface is a Boolean flag that is \`true\` when the matrix is 2D.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D)
     */
    readonly is2D: boolean;
    /**
     * The readonly **\`isIdentity\`** property of the DOMMatrixReadOnly interface is a Boolean whose value is \`true\` if the matrix is the identity matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity)
     */
    readonly isIdentity: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m11: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m12: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m13: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m14: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m21: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m22: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m23: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m24: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m31: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m32: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m33: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m34: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m41: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m42: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m43: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
    readonly m44: number;
    /**
     * The **\`flipX()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX)
     */
    flipX(): DOMMatrix;
    /**
     * The **\`flipY()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY)
     */
    flipY(): DOMMatrix;
    /**
     * The **\`inverse()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse)
     */
    inverse(): DOMMatrix;
    /**
     * The **\`multiply()\`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the \`otherMatrix\` parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply)
     */
    multiply(other?: DOMMatrixInit): DOMMatrix;
    /**
     * The \`rotate()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate)
     */
    rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
    /**
     * The \`rotateAxisAngle()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)
     */
    rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
    /**
     * The \`rotateFromVector()\` method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and \`(1, 0)\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)
     */
    rotateFromVector(x?: number, y?: number): DOMMatrix;
    /**
     * The **\`scale()\`** method of the original matrix with a scale transform applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale)
     */
    scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
    /**
     * The **\`scale3d()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d)
     */
    scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
    /** @deprecated */
    scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
    /**
     * The \`skewX()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX)
     */
    skewX(sx?: number): DOMMatrix;
    /**
     * The \`skewY()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY)
     */
    skewY(sy?: number): DOMMatrix;
    /**
     * The **\`toFloat32Array()\`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)
     */
    toFloat32Array(): Float32Array<ArrayBuffer>;
    /**
     * The **\`toFloat64Array()\`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)
     */
    toFloat64Array(): Float64Array<ArrayBuffer>;
    /**
     * The **\`toJSON()\`** method of the DOMMatrixReadOnly interface creates and returns a JSON object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON)
     */
    toJSON(): any;
    /**
     * The **\`transformPoint\`** method of the You can also create a new \`DOMPoint\` by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint)
     */
    transformPoint(point?: DOMPointInit): DOMPoint;
    /**
     * The \`translate()\` method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate)
     */
    translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
}

declare var DOMMatrixReadOnly: {
    prototype: DOMMatrixReadOnly;
    new(init?: string | number[]): DOMMatrixReadOnly;
    fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrixReadOnly;
    fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
    fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};

/**
 * A **\`DOMPoint\`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint)
 */
interface DOMPoint extends DOMPointReadOnly {
    /**
     * The **\`DOMPoint\`** interface's **\`w\`** property holds the point's perspective value, w, for a point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w)
     */
    w: number;
    /**
     * The **\`DOMPoint\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x)
     */
    x: number;
    /**
     * The **\`DOMPoint\`** interface's **\`y\`** property holds the vertical coordinate, _y_, for a point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y)
     */
    y: number;
    /**
     * The **\`DOMPoint\`** interface's **\`z\`** property specifies the depth coordinate of a point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z)
     */
    z: number;
}

declare var DOMPoint: {
    prototype: DOMPoint;
    new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
    /**
     * The **\`fromPoint()\`** static method of the DOMPoint interface creates and returns a new mutable \`DOMPoint\` object given a source point.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static)
     */
    fromPoint(other?: DOMPointInit): DOMPoint;
};

/**
 * The **\`DOMPointReadOnly\`** interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly)
 */
interface DOMPointReadOnly {
    /**
     * The **\`DOMPointReadOnly\`** interface's **\`w\`** property holds the point's perspective value, \`w\`, for a read-only point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w)
     */
    readonly w: number;
    /**
     * The **\`DOMPointReadOnly\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a read-only point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x)
     */
    readonly x: number;
    /**
     * The **\`DOMPointReadOnly\`** interface's **\`y\`** property holds the vertical coordinate, y, for a read-only point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y)
     */
    readonly y: number;
    /**
     * The **\`DOMPointReadOnly\`** interface's **\`z\`** property holds the depth coordinate, z, for a read-only point in space.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z)
     */
    readonly z: number;
    /**
     * The **\`matrixTransform()\`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new \`DOMPointReadOnly\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform)
     */
    matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
    /**
     * The DOMPointReadOnly method \`toJSON()\` returns an object giving the \`\`\`js-nolint toJSON() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON)
     */
    toJSON(): any;
}

declare var DOMPointReadOnly: {
    prototype: DOMPointReadOnly;
    new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
    /**
     * The static **DOMPointReadOnly** method \`fromPoint()\` creates and returns a new \`DOMPointReadOnly\` object given a source point.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static)
     */
    fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};

/**
 * A \`DOMQuad\` is a collection of four \`DOMPoint\`s defining the corners of an arbitrary quadrilateral.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad)
 */
interface DOMQuad {
    /**
     * The **\`DOMQuad\`** interface's **\`p1\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1)
     */
    readonly p1: DOMPoint;
    /**
     * The **\`DOMQuad\`** interface's **\`p2\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2)
     */
    readonly p2: DOMPoint;
    /**
     * The **\`DOMQuad\`** interface's **\`p3\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3)
     */
    readonly p3: DOMPoint;
    /**
     * The **\`DOMQuad\`** interface's **\`p4\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4)
     */
    readonly p4: DOMPoint;
    /**
     * The DOMQuad method \`getBounds()\` returns a DOMRect object representing the smallest rectangle that fully contains the \`DOMQuad\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds)
     */
    getBounds(): DOMRect;
    /**
     * The DOMQuad method \`toJSON()\` returns a \`\`\`js-nolint toJSON() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON)
     */
    toJSON(): any;
}

declare var DOMQuad: {
    prototype: DOMQuad;
    new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
    fromQuad(other?: DOMQuadInit): DOMQuad;
    fromRect(other?: DOMRectInit): DOMQuad;
};

/**
 * A **\`DOMRect\`** describes the size and position of a rectangle.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect)
 */
interface DOMRect extends DOMRectReadOnly {
    /**
     * The **\`height\`** property of the DOMRect interface represents the height of the rectangle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height)
     */
    height: number;
    /**
     * The **\`width\`** property of the DOMRect interface represents the width of the rectangle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width)
     */
    width: number;
    /**
     * The **\`x\`** property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport's left edge and the rectangle's origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x)
     */
    x: number;
    /**
     * The **\`y\`** property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport's top edge and the rectangle's origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y)
     */
    y: number;
}

declare var DOMRect: {
    prototype: DOMRect;
    new(x?: number, y?: number, width?: number, height?: number): DOMRect;
    /**
     * The **\`fromRect()\`** static method of the object with a given location and dimensions.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static)
     */
    fromRect(other?: DOMRectInit): DOMRect;
};

/**
 * The **\`DOMRectReadOnly\`** interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly)
 */
interface DOMRectReadOnly {
    /**
     * The **\`bottom\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the bottom coordinate value of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom)
     */
    readonly bottom: number;
    /**
     * The **\`height\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the height of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height)
     */
    readonly height: number;
    /**
     * The **\`left\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the left coordinate value of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left)
     */
    readonly left: number;
    /**
     * The **\`right\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the right coordinate value of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right)
     */
    readonly right: number;
    /**
     * The **\`top\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the top coordinate value of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top)
     */
    readonly top: number;
    /**
     * The **\`width\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the width of the \`DOMRect\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width)
     */
    readonly width: number;
    /**
     * The **\`x\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the x coordinate of the \`DOMRect\`'s origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x)
     */
    readonly x: number;
    /**
     * The **\`y\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the y coordinate of the \`DOMRect\`'s origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y)
     */
    readonly y: number;
    /**
     * The DOMRectReadOnly method \`toJSON()\` returns a JSON representation of the \`DOMRectReadOnly\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON)
     */
    toJSON(): any;
}

declare var DOMRectReadOnly: {
    prototype: DOMRectReadOnly;
    new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
    /**
     * The **\`fromRect()\`** static method of the object with a given location and dimensions.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static)
     */
    fromRect(other?: DOMRectInit): DOMRectReadOnly;
};

/**
 * The **\`DOMStringList\`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (\`DOMString\`).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
 */
interface DOMStringList {
    /**
     * The read-only **\`length\`** property indicates the number of strings in the DOMStringList.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
     */
    readonly length: number;
    /**
     * The **\`contains()\`** method returns a boolean indicating whether the given string is in the list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
     */
    contains(string: string): boolean;
    /**
     * The **\`item()\`** method returns a string from a \`DOMStringList\` by index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
     */
    item(index: number): string | null;
    [index: number]: string;
}

declare var DOMStringList: {
    prototype: DOMStringList;
    new(): DOMStringList;
};

/**
 * The **\`DecompressionStream\`** interface of the Compression Streams API is an API for decompressing a stream of data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
 */
interface DecompressionStream extends GenericTransformStream {
    readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
    readonly writable: WritableStream<BufferSource>;
}

declare var DecompressionStream: {
    prototype: DecompressionStream;
    new(format: CompressionFormat): DecompressionStream;
};

interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap, MessageEventTargetEventMap {
    "message": MessageEvent;
    "messageerror": MessageEvent;
    "rtctransform": RTCTransformEvent;
}

/**
 * The **\`DedicatedWorkerGlobalScope\`** object (the Worker global scope) is accessible through the WorkerGlobalScope.self keyword.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)
 */
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider, MessageEventTarget<DedicatedWorkerGlobalScope> {
    /**
     * The **\`name\`** read-only property of the the Worker.Worker constructor can pass to get a reference to the DedicatedWorkerGlobalScope.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
     */
    readonly name: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
    onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null;
    /**
     * The **\`close()\`** method of the DedicatedWorkerGlobalScope interface discards any tasks queued in the \`DedicatedWorkerGlobalScope\`'s event loop, effectively closing this particular scope.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
     */
    close(): void;
    /**
     * The **\`postMessage()\`** method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
     */
    postMessage(message: any, transfer: Transferable[]): void;
    postMessage(message: any, options?: StructuredSerializeOptions): void;
    addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var DedicatedWorkerGlobalScope: {
    prototype: DedicatedWorkerGlobalScope;
    new(): DedicatedWorkerGlobalScope;
};

/**
 * The **\`EXT_blend_minmax\`** extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax)
 */
interface EXT_blend_minmax {
    readonly MIN_EXT: 0x8007;
    readonly MAX_EXT: 0x8008;
}

/**
 * The **\`EXT_color_buffer_float\`** extension is part of WebGL and adds the ability to render a variety of floating point formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float)
 */
interface EXT_color_buffer_float {
}

/**
 * The **\`EXT_color_buffer_half_float\`** extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float)
 */
interface EXT_color_buffer_half_float {
    readonly RGBA16F_EXT: 0x881A;
    readonly RGB16F_EXT: 0x881B;
    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
    readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}

/**
 * The WebGL API's \`EXT_float_blend\` extension allows blending and draw buffers with 32-bit floating-point components.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend)
 */
interface EXT_float_blend {
}

/**
 * The **\`EXT_frag_depth\`** extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)
 */
interface EXT_frag_depth {
}

/**
 * The **\`EXT_sRGB\`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB)
 */
interface EXT_sRGB {
    readonly SRGB_EXT: 0x8C40;
    readonly SRGB_ALPHA_EXT: 0x8C42;
    readonly SRGB8_ALPHA8_EXT: 0x8C43;
    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}

/**
 * The **\`EXT_shader_texture_lod\`** extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod)
 */
interface EXT_shader_texture_lod {
}

/**
 * The \`EXT_texture_compression_bptc\` extension is part of the WebGL API and exposes 4 BPTC compressed texture formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc)
 */
interface EXT_texture_compression_bptc {
    readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
    readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
    readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
    readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}

/**
 * The \`EXT_texture_compression_rgtc\` extension is part of the WebGL API and exposes 4 RGTC compressed texture formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc)
 */
interface EXT_texture_compression_rgtc {
    readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
    readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
    readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
    readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}

/**
 * The **\`EXT_texture_filter_anisotropic\`** extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)
 */
interface EXT_texture_filter_anisotropic {
    readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}

/**
 * The **\`EXT_texture_norm16\`** extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16)
 */
interface EXT_texture_norm16 {
    readonly R16_EXT: 0x822A;
    readonly RG16_EXT: 0x822C;
    readonly RGB16_EXT: 0x8054;
    readonly RGBA16_EXT: 0x805B;
    readonly R16_SNORM_EXT: 0x8F98;
    readonly RG16_SNORM_EXT: 0x8F99;
    readonly RGB16_SNORM_EXT: 0x8F9A;
    readonly RGBA16_SNORM_EXT: 0x8F9B;
}

/**
 * The **\`EncodedAudioChunk\`** interface of the WebCodecs API represents a chunk of encoded audio data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk)
 */
interface EncodedAudioChunk {
    /**
     * The **\`byteLength\`** read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength)
     */
    readonly byteLength: number;
    /**
     * The **\`duration\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration)
     */
    readonly duration: number | null;
    /**
     * The **\`timestamp\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp)
     */
    readonly timestamp: number;
    /**
     * The **\`type\`** read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type)
     */
    readonly type: EncodedAudioChunkType;
    /**
     * The **\`copyTo()\`** method of the EncodedAudioChunk interface copies the encoded chunk of audio data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo)
     */
    copyTo(destination: AllowSharedBufferSource): void;
}

declare var EncodedAudioChunk: {
    prototype: EncodedAudioChunk;
    new(init: EncodedAudioChunkInit): EncodedAudioChunk;
};

/**
 * The **\`EncodedVideoChunk\`** interface of the WebCodecs API represents a chunk of encoded video data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk)
 */
interface EncodedVideoChunk {
    /**
     * The **\`byteLength\`** read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength)
     */
    readonly byteLength: number;
    /**
     * The **\`duration\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration)
     */
    readonly duration: number | null;
    /**
     * The **\`timestamp\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp)
     */
    readonly timestamp: number;
    /**
     * The **\`type\`** read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type)
     */
    readonly type: EncodedVideoChunkType;
    /**
     * The **\`copyTo()\`** method of the EncodedVideoChunk interface copies the encoded chunk of video data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo)
     */
    copyTo(destination: AllowSharedBufferSource): void;
}

declare var EncodedVideoChunk: {
    prototype: EncodedVideoChunk;
    new(init: EncodedVideoChunkInit): EncodedVideoChunk;
};

/**
 * The **\`ErrorEvent\`** interface represents events providing information related to errors in scripts or in files.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
 */
interface ErrorEvent extends Event {
    /**
     * The **\`colno\`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno)
     */
    readonly colno: number;
    /**
     * The **\`error\`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error)
     */
    readonly error: any;
    /**
     * The **\`filename\`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename)
     */
    readonly filename: string;
    /**
     * The **\`lineno\`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno)
     */
    readonly lineno: number;
    /**
     * The **\`message\`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message)
     */
    readonly message: string;
}

declare var ErrorEvent: {
    prototype: ErrorEvent;
    new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};

/**
 * The **\`Event\`** interface represents an event which takes place on an \`EventTarget\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
 */
interface Event {
    /**
     * The **\`bubbles\`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
     */
    readonly bubbles: boolean;
    /**
     * The **\`cancelBubble\`** property of the Event interface is deprecated.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
     */
    cancelBubble: boolean;
    /**
     * The **\`cancelable\`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
     */
    readonly cancelable: boolean;
    /**
     * The read-only **\`composed\`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
     */
    readonly composed: boolean;
    /**
     * The **\`currentTarget\`** read-only property of the Event interface identifies the element to which the event handler has been attached.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
     */
    readonly currentTarget: EventTarget | null;
    /**
     * The **\`defaultPrevented\`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
     */
    readonly defaultPrevented: boolean;
    /**
     * The **\`eventPhase\`** read-only property of the being evaluated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
     */
    readonly eventPhase: number;
    /**
     * The **\`isTrusted\`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and \`false\` when the event was dispatched via The only exception is the \`click\` event, which initializes the \`isTrusted\` property to \`false\` in user agents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
     */
    readonly isTrusted: boolean;
    /**
     * The Event property **\`returnValue\`** indicates whether the default action for this event has been prevented or not.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
     */
    returnValue: boolean;
    /**
     * The deprecated **\`Event.srcElement\`** is an alias for the Event.target property.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
     */
    readonly srcElement: EventTarget | null;
    /**
     * The read-only **\`target\`** property of the dispatched.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
     */
    readonly target: EventTarget | null;
    /**
     * The **\`timeStamp\`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
     */
    readonly timeStamp: DOMHighResTimeStamp;
    /**
     * The **\`type\`** read-only property of the Event interface returns a string containing the event's type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
     */
    readonly type: string;
    /**
     * The **\`composedPath()\`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
     */
    composedPath(): EventTarget[];
    /**
     * The **\`Event.initEvent()\`** method is used to initialize the value of an event created using Document.createEvent().
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
     */
    initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
    /**
     * The **\`preventDefault()\`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
     */
    preventDefault(): void;
    /**
     * The **\`stopImmediatePropagation()\`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
     */
    stopImmediatePropagation(): void;
    /**
     * The **\`stopPropagation()\`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
     */
    stopPropagation(): void;
    readonly NONE: 0;
    readonly CAPTURING_PHASE: 1;
    readonly AT_TARGET: 2;
    readonly BUBBLING_PHASE: 3;
}

declare var Event: {
    prototype: Event;
    new(type: string, eventInitDict?: EventInit): Event;
    readonly NONE: 0;
    readonly CAPTURING_PHASE: 1;
    readonly AT_TARGET: 2;
    readonly BUBBLING_PHASE: 3;
};

interface EventListener {
    (evt: Event): void;
}

interface EventListenerObject {
    handleEvent(object: Event): void;
}

interface EventSourceEventMap {
    "error": Event;
    "message": MessageEvent;
    "open": Event;
}

/**
 * The **\`EventSource\`** interface is web content's interface to server-sent events.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource)
 */
interface EventSource extends EventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
    onerror: ((this: EventSource, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */
    onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */
    onopen: ((this: EventSource, ev: Event) => any) | null;
    /**
     * The **\`readyState\`** read-only property of the connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
     */
    readonly readyState: number;
    /**
     * The **\`url\`** read-only property of the URL of the source.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
     */
    readonly url: string;
    /**
     * The **\`withCredentials\`** read-only property of the the \`EventSource\` object was instantiated with CORS credentials set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
     */
    readonly withCredentials: boolean;
    /**
     * The **\`close()\`** method of the EventSource interface closes the connection, if one is made, and sets the \`\`\`js-nolint close() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
     */
    close(): void;
    readonly CONNECTING: 0;
    readonly OPEN: 1;
    readonly CLOSED: 2;
    addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var EventSource: {
    prototype: EventSource;
    new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
    readonly CONNECTING: 0;
    readonly OPEN: 1;
    readonly CLOSED: 2;
};

/**
 * The **\`EventTarget\`** interface is implemented by objects that can receive events and may have listeners for them.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
 */
interface EventTarget {
    /**
     * The **\`addEventListener()\`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
     */
    addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
    /**
     * The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
     */
    dispatchEvent(event: Event): boolean;
    /**
     * The **\`removeEventListener()\`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
     */
    removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}

declare var EventTarget: {
    prototype: EventTarget;
    new(): EventTarget;
};

/**
 * The **\`ExtendableCookieChangeEvent\`** interface of the Cookie Store API is the event type passed to ServiceWorkerGlobalScope/cookiechange_event event fired at the ServiceWorkerGlobalScope when any cookie changes occur which match the service worker's cookie change subscription list.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent)
 */
interface ExtendableCookieChangeEvent extends ExtendableEvent {
    /**
     * The **\`changed\`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been changed by the given \`ExtendableCookieChangeEvent\` instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent/changed)
     */
    readonly changed: ReadonlyArray<CookieListItem>;
    /**
     * The **\`deleted\`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been deleted by the given \`ExtendableCookieChangeEvent\` instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent/deleted)
     */
    readonly deleted: ReadonlyArray<CookieListItem>;
}

declare var ExtendableCookieChangeEvent: {
    prototype: ExtendableCookieChangeEvent;
    new(type: string, eventInitDict?: ExtendableCookieChangeEventInit): ExtendableCookieChangeEvent;
};

/**
 * The **\`ExtendableEvent\`** interface extends the lifetime of the \`install\` and \`activate\` events dispatched on the global scope as part of the service worker lifecycle.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
 */
interface ExtendableEvent extends Event {
    /**
     * The **\`ExtendableEvent.waitUntil()\`** method tells the event dispatcher that work is ongoing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
     */
    waitUntil(f: Promise<any>): void;
}

declare var ExtendableEvent: {
    prototype: ExtendableEvent;
    new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
};

/**
 * The **\`ExtendableMessageEvent\`** interface of the Service Worker API represents the event object of a ServiceWorkerGlobalScope/message_event event fired on a service worker (when a message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent)
 */
interface ExtendableMessageEvent extends ExtendableEvent {
    /**
     * The **\`data\`** read-only property of the data type.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data)
     */
    readonly data: any;
    /**
     * The **\`lastEventID\`** read-only property of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId)
     */
    readonly lastEventId: string;
    /**
     * The **\`origin\`** read-only property of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin)
     */
    readonly origin: string;
    /**
     * The **\`ports\`** read-only property of the channel (the channel the message is being sent through.) An array of MessagePort objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports)
     */
    readonly ports: ReadonlyArray<MessagePort>;
    /**
     * The **\`source\`** read-only property of the A Client, ServiceWorker or MessagePort object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/source)
     */
    readonly source: Client | ServiceWorker | MessagePort | null;
}

declare var ExtendableMessageEvent: {
    prototype: ExtendableMessageEvent;
    new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
};

/**
 * This is the event type for \`fetch\` events dispatched on the ServiceWorkerGlobalScope.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)
 */
interface FetchEvent extends ExtendableEvent {
    /**
     * The **\`clientId\`** read-only property of the current service worker is controlling.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId)
     */
    readonly clientId: string;
    /**
     * The **\`handled\`** property of the FetchEvent interface returns a promise indicating if the event has been handled by the fetch algorithm or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled)
     */
    readonly handled: Promise<void>;
    /**
     * The **\`preloadResponse\`** read-only property of the FetchEvent interface returns a Promise that resolves to the navigation preload Response if navigation preload was triggered, or \`undefined\` otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse)
     */
    readonly preloadResponse: Promise<any>;
    /**
     * The **\`request\`** read-only property of the the event handler.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request)
     */
    readonly request: Request;
    /**
     * The **\`resultingClientId\`** read-only property of the navigation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId)
     */
    readonly resultingClientId: string;
    /**
     * The **\`respondWith()\`** method of allows you to provide a promise for a Response yourself.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith)
     */
    respondWith(r: Response | PromiseLike<Response>): void;
}

declare var FetchEvent: {
    prototype: FetchEvent;
    new(type: string, eventInitDict: FetchEventInit): FetchEvent;
};

/**
 * The **\`File\`** interface provides information about files and allows JavaScript in a web page to access their content.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
 */
interface File extends Blob {
    /**
     * The **\`lastModified\`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)
     */
    readonly lastModified: number;
    /**
     * The **\`name\`** read-only property of the File interface returns the name of the file represented by a File object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)
     */
    readonly name: string;
    /**
     * The **\`webkitRelativePath\`** read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an input element with its \`webkitdirectory\` attribute set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath)
     */
    readonly webkitRelativePath: string;
}

declare var File: {
    prototype: File;
    new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};

/**
 * The **\`FileList\`** interface represents an object of this type returned by the \`files\` property of the HTML input element; this lets you access the list of files selected with the \`<input type='file'>\` element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
 */
interface FileList {
    /**
     * The **\`length\`** read-only property of the FileList interface returns the number of files in the \`FileList\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length)
     */
    readonly length: number;
    /**
     * The **\`item()\`** method of the FileList interface returns a File object representing the file at the specified index in the file list.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item)
     */
    item(index: number): File | null;
    [index: number]: File;
}

declare var FileList: {
    prototype: FileList;
    new(): FileList;
};

interface FileReaderEventMap {
    "abort": ProgressEvent<FileReader>;
    "error": ProgressEvent<FileReader>;
    "load": ProgressEvent<FileReader>;
    "loadend": ProgressEvent<FileReader>;
    "loadstart": ProgressEvent<FileReader>;
    "progress": ProgressEvent<FileReader>;
}

/**
 * The **\`FileReader\`** interface lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)
 */
interface FileReader extends EventTarget {
    /**
     * The **\`error\`** read-only property of the FileReader interface returns the error that occurred while reading the file.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error)
     */
    readonly error: DOMException | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */
    onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */
    onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */
    onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */
    onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */
    onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */
    onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
    /**
     * The **\`readyState\`** read-only property of the FileReader interface provides the current state of the reading operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)
     */
    readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
    /**
     * The **\`result\`** read-only property of the FileReader interface returns the file's contents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result)
     */
    readonly result: string | ArrayBuffer | null;
    /**
     * The **\`abort()\`** method of the FileReader interface aborts the read operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort)
     */
    abort(): void;
    /**
     * The **\`readAsArrayBuffer()\`** method of the FileReader interface is used to start reading the contents of a specified Blob or File.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer)
     */
    readAsArrayBuffer(blob: Blob): void;
    /**
     * The **\`readAsBinaryString()\`** method of the FileReader interface is used to start reading the contents of the specified Blob or File.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
     */
    readAsBinaryString(blob: Blob): void;
    /**
     * The **\`readAsDataURL()\`** method of the FileReader interface is used to read the contents of the specified file's data as a base64 encoded string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL)
     */
    readAsDataURL(blob: Blob): void;
    /**
     * The **\`readAsText()\`** method of the FileReader interface is used to read the contents of the specified Blob or File.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText)
     */
    readAsText(blob: Blob, encoding?: string): void;
    readonly EMPTY: 0;
    readonly LOADING: 1;
    readonly DONE: 2;
    addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var FileReader: {
    prototype: FileReader;
    new(): FileReader;
    readonly EMPTY: 0;
    readonly LOADING: 1;
    readonly DONE: 2;
};

/**
 * The **\`FileReaderSync\`** interface allows to read File or Blob objects synchronously.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync)
 */
interface FileReaderSync {
    /**
     * The **\`readAsArrayBuffer()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into an ArrayBuffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer)
     */
    readAsArrayBuffer(blob: Blob): ArrayBuffer;
    /**
     * The **\`readAsBinaryString()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string.
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString)
     */
    readAsBinaryString(blob: Blob): string;
    /**
     * The **\`readAsDataURL()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string representing a data URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL)
     */
    readAsDataURL(blob: Blob): string;
    /**
     * The **\`readAsText()\`** method of the FileReaderSync interface allows to read File or Blob objects in a synchronous way into a string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText)
     */
    readAsText(blob: Blob, encoding?: string): string;
}

declare var FileReaderSync: {
    prototype: FileReaderSync;
    new(): FileReaderSync;
};

/**
 * The **\`FileSystemDirectoryHandle\`** interface of the File System API provides a handle to a file system directory.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
 */
interface FileSystemDirectoryHandle extends FileSystemHandle {
    readonly kind: "directory";
    /**
     * The **\`getDirectoryHandle()\`** method of the within the directory handle on which the method is called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle)
     */
    getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
    /**
     * The **\`getFileHandle()\`** method of the directory the method is called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle)
     */
    getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
    /**
     * The **\`removeEntry()\`** method of the directory handle contains a file or directory called the name specified.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry)
     */
    removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
    /**
     * The **\`resolve()\`** method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve)
     */
    resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}

declare var FileSystemDirectoryHandle: {
    prototype: FileSystemDirectoryHandle;
    new(): FileSystemDirectoryHandle;
};

/**
 * The **\`FileSystemFileHandle\`** interface of the File System API represents a handle to a file system entry.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
 */
interface FileSystemFileHandle extends FileSystemHandle {
    readonly kind: "file";
    /**
     * The **\`createSyncAccessHandle()\`** method of the that can be used to synchronously read from and write to a file.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle)
     */
    createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;
    /**
     * The **\`createWritable()\`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable)
     */
    createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
    /**
     * The **\`getFile()\`** method of the If the file on disk changes or is removed after this method is called, the returned \`\`\`js-nolint getFile() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile)
     */
    getFile(): Promise<File>;
}

declare var FileSystemFileHandle: {
    prototype: FileSystemFileHandle;
    new(): FileSystemFileHandle;
};

/**
 * The **\`FileSystemHandle\`** interface of the File System API is an object which represents a file or directory entry.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
 */
interface FileSystemHandle {
    /**
     * The **\`kind\`** read-only property of the \`'file'\` if the associated entry is a file or \`'directory'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind)
     */
    readonly kind: FileSystemHandleKind;
    /**
     * The **\`name\`** read-only property of the handle.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name)
     */
    readonly name: string;
    /**
     * The **\`isSameEntry()\`** method of the \`\`\`js-nolint isSameEntry(fileSystemHandle) \`\`\` - FileSystemHandle - : The \`FileSystemHandle\` to match against the handle on which the method is invoked.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry)
     */
    isSameEntry(other: FileSystemHandle): Promise<boolean>;
}

declare var FileSystemHandle: {
    prototype: FileSystemHandle;
    new(): FileSystemHandle;
};

/**
 * The **\`FileSystemSyncAccessHandle\`** interface of the File System API represents a synchronous handle to a file system entry.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle)
 */
interface FileSystemSyncAccessHandle {
    /**
     * The **\`close()\`** method of the \`\`\`js-nolint close() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close)
     */
    close(): void;
    /**
     * The **\`flush()\`** method of the Bear in mind that you only need to call this method if you need the changes committed to disk at a specific time, otherwise you can leave the underlying operating system to handle this when it sees fit, which should be OK in most cases.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush)
     */
    flush(): void;
    /**
     * The **\`getSize()\`** method of the \`\`\`js-nolint getSize() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize)
     */
    getSize(): number;
    /**
     * The **\`read()\`** method of the \`\`\`js-nolint read(buffer, options) \`\`\` - \`buffer\` - : An ArrayBuffer or \`ArrayBufferView\` (such as a DataView) representing the buffer that the file content should be read into.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read)
     */
    read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
    /**
     * The **\`truncate()\`** method of the \`\`\`js-nolint truncate(newSize) \`\`\` - \`newSize\` - : The number of bytes to resize the file to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate)
     */
    truncate(newSize: number): void;
    /**
     * The **\`write()\`** method of the Files within the origin private file system are not visible to end-users, therefore are not subject to the same security checks as methods running on files within the user-visible file system.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write)
     */
    write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
}

declare var FileSystemSyncAccessHandle: {
    prototype: FileSystemSyncAccessHandle;
    new(): FileSystemSyncAccessHandle;
};

/**
 * The **\`FileSystemWritableFileStream\`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
 */
interface FileSystemWritableFileStream extends WritableStream {
    /**
     * The **\`seek()\`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek)
     */
    seek(position: number): Promise<void>;
    /**
     * The **\`truncate()\`** method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate)
     */
    truncate(size: number): Promise<void>;
    /**
     * The **\`write()\`** method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write)
     */
    write(data: FileSystemWriteChunkType): Promise<void>;
}

declare var FileSystemWritableFileStream: {
    prototype: FileSystemWritableFileStream;
    new(): FileSystemWritableFileStream;
};

/**
 * The **\`FontFace\`** interface of the CSS Font Loading API represents a single usable font face.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace)
 */
interface FontFace {
    /**
     * The **\`ascentOverride\`** property of the FontFace interface returns and sets the ascent metric for the font, the height above the baseline that CSS uses to lay out line boxes in an inline formatting context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride)
     */
    ascentOverride: string;
    /**
     * The **\`descentOverride\`** property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride)
     */
    descentOverride: string;
    /**
     * The **\`display\`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display)
     */
    display: FontDisplay;
    /**
     * The **\`FontFace.family\`** property allows the author to get or set the font family of a FontFace object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family)
     */
    family: string;
    /**
     * The **\`featureSettings\`** property of the FontFace interface retrieves or sets infrequently used font features that are not available from a font's variant properties.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings)
     */
    featureSettings: string;
    /**
     * The **\`lineGapOverride\`** property of the FontFace interface returns and sets the value of the @font-face/line-gap-override descriptor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride)
     */
    lineGapOverride: string;
    /**
     * The **\`loaded\`** read-only property of the FontFace interface returns a Promise that resolves with the current \`FontFace\` object when the font specified in the object's constructor is done loading or rejects with a \`SyntaxError\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded)
     */
    readonly loaded: Promise<FontFace>;
    /**
     * The **\`status\`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of \`'unloaded'\`, \`'loading'\`, \`'loaded'\`, or \`'error'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status)
     */
    readonly status: FontFaceLoadStatus;
    /**
     * The **\`stretch\`** property of the FontFace interface retrieves or sets how the font stretches.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch)
     */
    stretch: string;
    /**
     * The **\`style\`** property of the FontFace interface retrieves or sets the font's style.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style)
     */
    style: string;
    /**
     * The **\`unicodeRange\`** property of the FontFace interface retrieves or sets the range of unicode code points encompassing the font.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange)
     */
    unicodeRange: string;
    /**
     * The **\`weight\`** property of the FontFace interface retrieves or sets the weight of the font.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight)
     */
    weight: string;
    /**
     * The **\`load()\`** method of the FontFace interface requests and loads a font whose \`source\` was specified as a URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load)
     */
    load(): Promise<FontFace>;
}

declare var FontFace: {
    prototype: FontFace;
    new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace;
};

interface FontFaceSetEventMap {
    "loading": FontFaceSetLoadEvent;
    "loadingdone": FontFaceSetLoadEvent;
    "loadingerror": FontFaceSetLoadEvent;
}

/**
 * The **\`FontFaceSet\`** interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet)
 */
interface FontFaceSet extends EventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
    onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
    onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
    onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
    /**
     * The \`ready\` read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready)
     */
    readonly ready: Promise<FontFaceSet>;
    /**
     * The **\`status\`** read-only property of the FontFaceSet interface returns the loading state of the fonts in the set.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status)
     */
    readonly status: FontFaceSetLoadStatus;
    /**
     * The \`check()\` method of the FontFaceSet returns \`true\` if you can render some text using the given font specification without attempting to use any fonts in this \`FontFaceSet\` that are not yet fully loaded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)
     */
    check(font: string, text?: string): boolean;
    /**
     * The \`load()\` method of the FontFaceSet forces all the fonts given in parameters to be loaded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load)
     */
    load(font: string, text?: string): Promise<FontFace[]>;
    forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
    addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var FontFaceSet: {
    prototype: FontFaceSet;
    new(): FontFaceSet;
};

/**
 * The **\`FontFaceSetLoadEvent\`** interface of the CSS Font Loading API represents events fired at a FontFaceSet after it starts loading font faces.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent)
 */
interface FontFaceSetLoadEvent extends Event {
    /**
     * The **\`fontfaces\`** read-only property of the An array of FontFace instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces)
     */
    readonly fontfaces: ReadonlyArray<FontFace>;
}

declare var FontFaceSetLoadEvent: {
    prototype: FontFaceSetLoadEvent;
    new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};

interface FontFaceSource {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
    readonly fonts: FontFaceSet;
}

/**
 * The **\`FormData\`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
 */
interface FormData {
    /**
     * The **\`append()\`** method of the FormData interface appends a new value onto an existing key inside a \`FormData\` object, or adds the key if it does not already exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)
     */
    append(name: string, value: string | Blob): void;
    append(name: string, value: string): void;
    append(name: string, blobValue: Blob, filename?: string): void;
    /**
     * The **\`delete()\`** method of the FormData interface deletes a key and its value(s) from a \`FormData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete)
     */
    delete(name: string): void;
    /**
     * The **\`get()\`** method of the FormData interface returns the first value associated with a given key from within a \`FormData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get)
     */
    get(name: string): FormDataEntryValue | null;
    /**
     * The **\`getAll()\`** method of the FormData interface returns all the values associated with a given key from within a \`FormData\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll)
     */
    getAll(name: string): FormDataEntryValue[];
    /**
     * The **\`has()\`** method of the FormData interface returns whether a \`FormData\` object contains a certain key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)
     */
    has(name: string): boolean;
    /**
     * The **\`set()\`** method of the FormData interface sets a new value for an existing key inside a \`FormData\` object, or adds the key/value if it does not already exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)
     */
    set(name: string, value: string | Blob): void;
    set(name: string, value: string): void;
    set(name: string, blobValue: Blob, filename?: string): void;
    forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}

declare var FormData: {
    prototype: FormData;
    new(): FormData;
};

/**
 * The **\`GPUError\`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)
 */
interface GPUError {
    /**
     * The **\`message\`** read-only property of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message)
     */
    readonly message: string;
}

interface GenericTransformStream {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
    readonly readable: ReadableStream;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
    readonly writable: WritableStream;
}

/**
 * The **\`Headers\`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
 */
interface Headers {
    /**
     * The **\`append()\`** method of the Headers interface appends a new value onto an existing header inside a \`Headers\` object, or adds the header if it does not already exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)
     */
    append(name: string, value: string): void;
    /**
     * The **\`delete()\`** method of the Headers interface deletes a header from the current \`Headers\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)
     */
    delete(name: string): void;
    /**
     * The **\`get()\`** method of the Headers interface returns a byte string of all the values of a header within a \`Headers\` object with a given name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get)
     */
    get(name: string): string | null;
    /**
     * The **\`getSetCookie()\`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)
     */
    getSetCookie(): string[];
    /**
     * The **\`has()\`** method of the Headers interface returns a boolean stating whether a \`Headers\` object contains a certain header.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)
     */
    has(name: string): boolean;
    /**
     * The **\`set()\`** method of the Headers interface sets a new value for an existing header inside a \`Headers\` object, or adds the header if it does not already exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)
     */
    set(name: string, value: string): void;
    forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}

declare var Headers: {
    prototype: Headers;
    new(init?: HeadersInit): Headers;
};

/**
 * The **\`IDBCursor\`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)
 */
interface IDBCursor {
    /**
     * The **\`direction\`** read-only property of the direction of traversal of the cursor (set using section below for possible values.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
     */
    readonly direction: IDBCursorDirection;
    /**
     * The **\`key\`** read-only property of the position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
     */
    readonly key: IDBValidKey;
    /**
     * The **\`primaryKey\`** read-only property of the cursor is currently being iterated or has iterated outside its range, this is set to undefined.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
     */
    readonly primaryKey: IDBValidKey;
    /**
     * The **\`request\`** read-only property of the IDBCursor interface returns the IDBRequest used to obtain the cursor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request)
     */
    readonly request: IDBRequest;
    /**
     * The **\`source\`** read-only property of the null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
     */
    readonly source: IDBObjectStore | IDBIndex;
    /**
     * The **\`advance()\`** method of the IDBCursor interface sets the number of times a cursor should move its position forward.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
     */
    advance(count: number): void;
    /**
     * The **\`continue()\`** method of the IDBCursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
     */
    continue(key?: IDBValidKey): void;
    /**
     * The **\`continuePrimaryKey()\`** method of the matches the key parameter as well as whose primary key matches the primary key parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
     */
    continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
    /**
     * The **\`delete()\`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
     */
    delete(): IDBRequest<undefined>;
    /**
     * The **\`update()\`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
     */
    update(value: any): IDBRequest<IDBValidKey>;
}

declare var IDBCursor: {
    prototype: IDBCursor;
    new(): IDBCursor;
};

/**
 * The **\`IDBCursorWithValue\`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
 */
interface IDBCursorWithValue extends IDBCursor {
    /**
     * The **\`value\`** read-only property of the whatever that is.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value)
     */
    readonly value: any;
}

declare var IDBCursorWithValue: {
    prototype: IDBCursorWithValue;
    new(): IDBCursorWithValue;
};

interface IDBDatabaseEventMap {
    "abort": Event;
    "close": Event;
    "error": Event;
    "versionchange": IDBVersionChangeEvent;
}

/**
 * The **\`IDBDatabase\`** interface of the IndexedDB API provides a connection to a database; you can use an \`IDBDatabase\` object to open a transaction on your database then create, manipulate, and delete objects (data) in that database.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
 */
interface IDBDatabase extends EventTarget {
    /**
     * The **\`name\`** read-only property of the \`IDBDatabase\` interface is a string that contains the name of the connected database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
     */
    readonly name: string;
    /**
     * The **\`objectStoreNames\`** read-only property of the list of the names of the object stores currently in the connected database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
     */
    readonly objectStoreNames: DOMStringList;
    onabort: ((this: IDBDatabase, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
    onclose: ((this: IDBDatabase, ev: Event) => any) | null;
    onerror: ((this: IDBDatabase, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */
    onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
    /**
     * The **\`version\`** property of the IDBDatabase interface is a 64-bit integer that contains the version of the connected database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
     */
    readonly version: number;
    /**
     * The **\`close()\`** method of the IDBDatabase interface returns immediately and closes the connection in a separate thread.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
     */
    close(): void;
    /**
     * The **\`createObjectStore()\`** method of the The method takes the name of the store as well as a parameter object that lets you define important optional properties.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
     */
    createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
    /**
     * The **\`deleteObjectStore()\`** method of the the connected database, along with any indexes that reference it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
     */
    deleteObjectStore(name: string): void;
    /**
     * The **\`transaction\`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
     */
    transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var IDBDatabase: {
    prototype: IDBDatabase;
    new(): IDBDatabase;
};

/**
 * The **\`IDBFactory\`** interface of the IndexedDB API lets applications asynchronously access the indexed databases.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
 */
interface IDBFactory {
    /**
     * The **\`cmp()\`** method of the IDBFactory interface compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
     */
    cmp(first: any, second: any): number;
    /**
     * The **\`databases\`** method of the IDBFactory interface returns a Promise that fulfills with an array of objects containing the name and version of all the available databases.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases)
     */
    databases(): Promise<IDBDatabaseInfo[]>;
    /**
     * The **\`deleteDatabase()\`** method of the returns an IDBOpenDBRequest object immediately, and performs the deletion operation asynchronously.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
     */
    deleteDatabase(name: string): IDBOpenDBRequest;
    /**
     * The **\`open()\`** method of the IDBFactory interface requests opening a connection to a database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)
     */
    open(name: string, version?: number): IDBOpenDBRequest;
}

declare var IDBFactory: {
    prototype: IDBFactory;
    new(): IDBFactory;
};

/**
 * \`IDBIndex\` interface of the IndexedDB API provides asynchronous access to an index in a database.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
 */
interface IDBIndex {
    /**
     * The **\`keyPath\`** property of the IDBIndex interface returns the key path of the current index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath)
     */
    readonly keyPath: string | string[];
    /**
     * The **\`multiEntry\`** read-only property of the behaves when the result of evaluating the index's key path yields an array.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry)
     */
    readonly multiEntry: boolean;
    /**
     * The **\`name\`** property of the IDBIndex interface contains a string which names the index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
     */
    name: string;
    /**
     * The **\`objectStore\`** property of the IDBIndex interface returns the object store referenced by the current index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
     */
    readonly objectStore: IDBObjectStore;
    /**
     * The **\`unique\`** read-only property returns a boolean that states whether the index allows duplicate keys.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique)
     */
    readonly unique: boolean;
    /**
     * The **\`count()\`** method of the IDBIndex interface returns an IDBRequest object, and in a separate thread, returns the number of records within a key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)
     */
    count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
    /**
     * The **\`get()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if \`key\` is set to an If a value is found, then a structured clone of it is created and set as the \`result\` of the request object: this returns the record the key is associated with.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
     */
    get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
    /**
     * The **\`getAll()\`** method of the IDBIndex interface retrieves all objects that are inside the index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
     */
    getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
    /**
     * The **\`getAllKeys()\`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the \`result\` of the request object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
     */
    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
    /**
     * The **\`getKey()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if \`key\` is set to an If a primary key is found, it is set as the \`result\` of the request object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
     */
    getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
    /**
     * The **\`openCursor()\`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, creates a cursor over the specified key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
     */
    openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
    /**
     * The **\`openKeyCursor()\`** method of the a separate thread, creates a cursor over the specified key range, as arranged by this index.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)
     */
    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}

declare var IDBIndex: {
    prototype: IDBIndex;
    new(): IDBIndex;
};

/**
 * The **\`IDBKeyRange\`** interface of the IndexedDB API represents a continuous interval over some data type that is used for keys.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
 */
interface IDBKeyRange {
    /**
     * The **\`lower\`** read-only property of the The lower bound of the key range (can be any type.) The following example illustrates how you'd use a key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
     */
    readonly lower: any;
    /**
     * The **\`lowerOpen\`** read-only property of the lower-bound value is included in the key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
     */
    readonly lowerOpen: boolean;
    /**
     * The **\`upper\`** read-only property of the The upper bound of the key range (can be any type.) The following example illustrates how you'd use a key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
     */
    readonly upper: any;
    /**
     * The **\`upperOpen\`** read-only property of the upper-bound value is included in the key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
     */
    readonly upperOpen: boolean;
    /**
     * The \`includes()\` method of the IDBKeyRange interface returns a boolean indicating whether a specified key is inside the key range.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
     */
    includes(key: any): boolean;
}

declare var IDBKeyRange: {
    prototype: IDBKeyRange;
    new(): IDBKeyRange;
    /**
     * The **\`bound()\`** static method of the IDBKeyRange interface creates a new key range with the specified upper and lower bounds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
     */
    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
    /**
     * The **\`lowerBound()\`** static method of the By default, it includes the lower endpoint value and is closed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
     */
    lowerBound(lower: any, open?: boolean): IDBKeyRange;
    /**
     * The **\`only()\`** static method of the IDBKeyRange interface creates a new key range containing a single value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
     */
    only(value: any): IDBKeyRange;
    /**
     * The **\`upperBound()\`** static method of the it includes the upper endpoint value and is closed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
     */
    upperBound(upper: any, open?: boolean): IDBKeyRange;
};

/**
 * The **\`IDBObjectStore\`** interface of the IndexedDB API represents an object store in a database.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
 */
interface IDBObjectStore {
    /**
     * The **\`autoIncrement\`** read-only property of the for this object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
     */
    readonly autoIncrement: boolean;
    /**
     * The **\`indexNames\`** read-only property of the in this object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
     */
    readonly indexNames: DOMStringList;
    /**
     * The **\`keyPath\`** read-only property of the If this property is null, the application must provide a key for each modification operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
     */
    readonly keyPath: string | string[] | null;
    /**
     * The **\`name\`** property of the IDBObjectStore interface indicates the name of this object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
     */
    name: string;
    /**
     * The **\`transaction\`** read-only property of the object store belongs.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)
     */
    readonly transaction: IDBTransaction;
    /**
     * The **\`add()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
     */
    add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
    /**
     * The **\`clear()\`** method of the IDBObjectStore interface creates and immediately returns an IDBRequest object, and clears this object store in a separate thread.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
     */
    clear(): IDBRequest<undefined>;
    /**
     * The **\`count()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or of records in the store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
     */
    count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
    /**
     * The **\`createIndex()\`** method of the field/column defining a new data point for each database record to contain.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
     */
    createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
    /**
     * The **\`delete()\`** method of the and, in a separate thread, deletes the specified record or records.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
     */
    delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
    /**
     * The **\`deleteIndex()\`** method of the the connected database, used during a version upgrade.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
     */
    deleteIndex(name: string): void;
    /**
     * The **\`get()\`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the object selected by the specified key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
     */
    get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
    /**
     * The **\`getAll()\`** method of the containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
     */
    getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
    /**
     * The \`getAllKeys()\` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
     */
    getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
    /**
     * The **\`getKey()\`** method of the and, in a separate thread, returns the key selected by the specified query.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
     */
    getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
    /**
     * The **\`index()\`** method of the IDBObjectStore interface opens a named index in the current object store, after which it can be used to, for example, return a series of records sorted by that index using a cursor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index)
     */
    index(name: string): IDBIndex;
    /**
     * The **\`openCursor()\`** method of the and, in a separate thread, returns a new IDBCursorWithValue object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
     */
    openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
    /**
     * The **\`openKeyCursor()\`** method of the whose result will be set to an IDBCursor that can be used to iterate through matching results.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
     */
    openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
    /**
     * The **\`put()\`** method of the IDBObjectStore interface updates a given record in a database, or inserts a new record if the given item does not already exist.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)
     */
    put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}

declare var IDBObjectStore: {
    prototype: IDBObjectStore;
    new(): IDBObjectStore;
};

interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
    "blocked": IDBVersionChangeEvent;
    "upgradeneeded": IDBVersionChangeEvent;
}

/**
 * The **\`IDBOpenDBRequest\`** interface of the IndexedDB API provides access to the results of requests to open or delete databases (performed using IDBFactory.open and IDBFactory.deleteDatabase), using specific event handler attributes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)
 */
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */
    onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */
    onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var IDBOpenDBRequest: {
    prototype: IDBOpenDBRequest;
    new(): IDBOpenDBRequest;
};

interface IDBRequestEventMap {
    "error": Event;
    "success": Event;
}

/**
 * The **\`IDBRequest\`** interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
 */
interface IDBRequest<T = any> extends EventTarget {
    /**
     * The **\`error\`** read-only property of the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)
     */
    readonly error: DOMException | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */
    onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */
    onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
    /**
     * The **\`readyState\`** read-only property of the Every request starts in the \`pending\` state.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
     */
    readonly readyState: IDBRequestReadyState;
    /**
     * The **\`result\`** read-only property of the any - \`InvalidStateError\` DOMException - : Thrown when attempting to access the property if the request is not completed, and therefore the result is not available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
     */
    readonly result: T;
    /**
     * The **\`source\`** read-only property of the Index or an object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
     */
    readonly source: IDBObjectStore | IDBIndex | IDBCursor;
    /**
     * The **\`transaction\`** read-only property of the IDBRequest interface returns the transaction for the request, that is, the transaction the request is being made inside.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)
     */
    readonly transaction: IDBTransaction | null;
    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var IDBRequest: {
    prototype: IDBRequest;
    new(): IDBRequest;
};

interface IDBTransactionEventMap {
    "abort": Event;
    "complete": Event;
    "error": Event;
}

/**
 * The **\`IDBTransaction\`** interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction)
 */
interface IDBTransaction extends EventTarget {
    /**
     * The **\`db\`** read-only property of the IDBTransaction interface returns the database connection with which this transaction is associated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
     */
    readonly db: IDBDatabase;
    /**
     * The **\`durability\`** read-only property of the IDBTransaction interface returns the durability hint the transaction was created with.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability)
     */
    readonly durability: IDBTransactionDurability;
    /**
     * The **\`IDBTransaction.error\`** property of the IDBTransaction interface returns the type of error when there is an unsuccessful transaction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
     */
    readonly error: DOMException | null;
    /**
     * The **\`mode\`** read-only property of the data in the object stores in the scope of the transaction (i.e., is the mode to be read-only, or do you want to write to the object stores?) The default value is \`readonly\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
     */
    readonly mode: IDBTransactionMode;
    /**
     * The **\`objectStoreNames\`** read-only property of the of IDBObjectStore objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
     */
    readonly objectStoreNames: DOMStringList;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
    onabort: ((this: IDBTransaction, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */
    oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */
    onerror: ((this: IDBTransaction, ev: Event) => any) | null;
    /**
     * The **\`abort()\`** method of the IDBTransaction interface rolls back all the changes to objects in the database associated with this transaction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
     */
    abort(): void;
    /**
     * The **\`commit()\`** method of the IDBTransaction interface commits the transaction if it is called on an active transaction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit)
     */
    commit(): void;
    /**
     * The **\`objectStore()\`** method of the added to the scope of this transaction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)
     */
    objectStore(name: string): IDBObjectStore;
    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var IDBTransaction: {
    prototype: IDBTransaction;
    new(): IDBTransaction;
};

/**
 * The **\`IDBVersionChangeEvent\`** interface of the IndexedDB API indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.upgradeneeded_event event handler function.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
 */
interface IDBVersionChangeEvent extends Event {
    /**
     * The **\`newVersion\`** read-only property of the database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion)
     */
    readonly newVersion: number | null;
    /**
     * The **\`oldVersion\`** read-only property of the database.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion)
     */
    readonly oldVersion: number;
}

declare var IDBVersionChangeEvent: {
    prototype: IDBVersionChangeEvent;
    new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};

/**
 * The **\`ImageBitmap\`** interface represents a bitmap image which can be drawn to a canvas without undue latency.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap)
 */
interface ImageBitmap {
    /**
     * The **\`ImageBitmap.height\`** read-only property returns the ImageBitmap object's height in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
     */
    readonly height: number;
    /**
     * The **\`ImageBitmap.width\`** read-only property returns the ImageBitmap object's width in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
     */
    readonly width: number;
    /**
     * The **\`ImageBitmap.close()\`** method disposes of all graphical resources associated with an \`ImageBitmap\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
     */
    close(): void;
}

declare var ImageBitmap: {
    prototype: ImageBitmap;
    new(): ImageBitmap;
};

/**
 * The **\`ImageBitmapRenderingContext\`** interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given ImageBitmap.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext)
 */
interface ImageBitmapRenderingContext {
    /**
     * The **\`ImageBitmapRenderingContext.transferFromImageBitmap()\`** method displays the given ImageBitmap in the canvas associated with this rendering context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
     */
    transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}

declare var ImageBitmapRenderingContext: {
    prototype: ImageBitmapRenderingContext;
    new(): ImageBitmapRenderingContext;
};

/**
 * The **\`ImageData\`** interface represents the underlying pixel data of an area of a canvas element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
 */
interface ImageData {
    /**
     * The read-only **\`ImageData.colorSpace\`** property is a string indicating the color space of the image data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace)
     */
    readonly colorSpace: PredefinedColorSpace;
    /**
     * The readonly **\`ImageData.data\`** property returns a pixel data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
     */
    readonly data: ImageDataArray;
    /**
     * The readonly **\`ImageData.height\`** property returns the number of rows in the ImageData object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
     */
    readonly height: number;
    /**
     * The readonly **\`ImageData.width\`** property returns the number of pixels per row in the ImageData object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)
     */
    readonly width: number;
}

declare var ImageData: {
    prototype: ImageData;
    new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
    new(data: ImageDataArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};

/**
 * The **\`ImageDecoder\`** interface of the WebCodecs API provides a way to unpack and decode encoded image data.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder)
 */
interface ImageDecoder {
    /**
     * The **\`complete\`** read-only property of the ImageDecoder interface returns true if encoded data has completed buffering.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/complete)
     */
    readonly complete: boolean;
    /**
     * The **\`completed\`** read-only property of the ImageDecoder interface returns a promise that resolves once encoded data has finished buffering.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/completed)
     */
    readonly completed: Promise<void>;
    /**
     * The **\`tracks\`** read-only property of the ImageDecoder interface returns a list of the tracks in the encoded image data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/tracks)
     */
    readonly tracks: ImageTrackList;
    /**
     * The **\`type\`** read-only property of the ImageDecoder interface reflects the MIME type configured during construction.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/type)
     */
    readonly type: string;
    /**
     * The **\`close()\`** method of the ImageDecoder interface ends all pending work and releases system resources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/close)
     */
    close(): void;
    /**
     * The **\`decode()\`** method of the ImageDecoder interface enqueues a control message to decode the frame of an image.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/decode)
     */
    decode(options?: ImageDecodeOptions): Promise<ImageDecodeResult>;
    /**
     * The **\`reset()\`** method of the ImageDecoder interface aborts all pending \`decode()\` operations; rejecting all pending promises.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/reset)
     */
    reset(): void;
}

declare var ImageDecoder: {
    prototype: ImageDecoder;
    new(init: ImageDecoderInit): ImageDecoder;
    /**
     * The **\`ImageDecoder.isTypeSupported()\`** static method checks if a given MIME type can be decoded by the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageDecoder/isTypeSupported_static)
     */
    isTypeSupported(type: string): Promise<boolean>;
};

/**
 * The **\`ImageTrack\`** interface of the WebCodecs API represents an individual image track.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)
 */
interface ImageTrack {
    /**
     * The **\`animated\`** property of the ImageTrack interface returns \`true\` if the track is animated and therefore has multiple frames.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/animated)
     */
    readonly animated: boolean;
    /**
     * The **\`frameCount\`** property of the ImageTrack interface returns the number of frames in the track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/frameCount)
     */
    readonly frameCount: number;
    /**
     * The **\`repetitionCount\`** property of the ImageTrack interface returns the number of repetitions of this track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/repetitionCount)
     */
    readonly repetitionCount: number;
    /**
     * The **\`selected\`** property of the ImageTrack interface returns \`true\` if the track is selected for decoding.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack/selected)
     */
    selected: boolean;
}

declare var ImageTrack: {
    prototype: ImageTrack;
    new(): ImageTrack;
};

/**
 * The **\`ImageTrackList\`** interface of the WebCodecs API represents a list of image tracks.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)
 */
interface ImageTrackList {
    /**
     * The **\`length\`** property of the ImageTrackList interface returns the length of the \`ImageTrackList\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/length)
     */
    readonly length: number;
    /**
     * The **\`ready\`** property of the ImageTrackList interface returns a Promise that resolves when the \`ImageTrackList\` is populated with ImageTrack.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/ready)
     */
    readonly ready: Promise<void>;
    /**
     * The **\`selectedIndex\`** property of the ImageTrackList interface returns the \`index\` of the selected track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedIndex)
     */
    readonly selectedIndex: number;
    /**
     * The **\`selectedTrack\`** property of the ImageTrackList interface returns an ImageTrack object representing the currently selected track.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList/selectedTrack)
     */
    readonly selectedTrack: ImageTrack | null;
    [index: number]: ImageTrack;
}

declare var ImageTrackList: {
    prototype: ImageTrackList;
    new(): ImageTrackList;
};

interface ImportMeta {
    url: string;
    resolve(specifier: string): string;
}

/**
 * The **\`KHR_parallel_shader_compile\`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (\`COMPLETION_STATUS_KHR\`) can be queried without potentially incurring stalls.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile)
 */
interface KHR_parallel_shader_compile {
    readonly COMPLETION_STATUS_KHR: 0x91B1;
}

/**
 * The **\`Lock\`** interface of the Web Locks API provides the name and mode of a lock.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
 */
interface Lock {
    /**
     * The **\`mode\`** read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode)
     */
    readonly mode: LockMode;
    /**
     * The **\`name\`** read-only property of the Lock interface returns the _name_ passed to The name of a lock is passed by script when the lock is requested.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name)
     */
    readonly name: string;
}

declare var Lock: {
    prototype: Lock;
    new(): Lock;
};

/**
 * The **\`LockManager\`** interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing \`Lock\` object.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
 */
interface LockManager {
    /**
     * The **\`query()\`** method of the LockManager interface returns a Promise that resolves with an object containing information about held and pending locks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query)
     */
    query(): Promise<LockManagerSnapshot>;
    /**
     * The **\`request()\`** method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
     */
    request<T>(name: string, callback: LockGrantedCallback<T>): Promise<T>;
    request<T>(name: string, options: LockOptions, callback: LockGrantedCallback<T>): Promise<T>;
}

declare var LockManager: {
    prototype: LockManager;
    new(): LockManager;
};

/**
 * The **\`MediaCapabilities\`** interface of the Media Capabilities API provides information about the decoding abilities of the device, system and browser.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities)
 */
interface MediaCapabilities {
    /**
     * The **\`decodingInfo()\`** method of the MediaCapabilities interface returns a promise that fulfils with information about how well the user agent can decode/display media with a given configuration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo)
     */
    decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
    /**
     * The **\`encodingInfo()\`** method of the MediaCapabilities interface returns a promise that fulfills with the tested media configuration's capabilities for encoding media.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo)
     */
    encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}

declare var MediaCapabilities: {
    prototype: MediaCapabilities;
    new(): MediaCapabilities;
};

/**
 * The **\`MediaSourceHandle\`** interface of the Media Source Extensions API is a proxy for a MediaSource that can be transferred from a dedicated worker back to the main thread and attached to a media element via its HTMLMediaElement.srcObject property.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSourceHandle)
 */
interface MediaSourceHandle {
}

declare var MediaSourceHandle: {
    prototype: MediaSourceHandle;
    new(): MediaSourceHandle;
};

/**
 * The **\`MediaStreamTrackProcessor\`** interface of the Insertable Streams for MediaStreamTrack API consumes a video MediaStreamTrack object's source and generates a stream of VideoFrame objects.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor)
 */
interface MediaStreamTrackProcessor {
    /**
     * The **\`readable\`** property of the MediaStreamTrackProcessor interface returns a ReadableStream of VideoFrames.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackProcessor/readable)
     */
    readonly readable: ReadableStream;
}

declare var MediaStreamTrackProcessor: {
    prototype: MediaStreamTrackProcessor;
    new(init: MediaStreamTrackProcessorInit): MediaStreamTrackProcessor;
};

/**
 * The **\`MessageChannel\`** interface of the Channel Messaging API allows us to create a new message channel and send data through it via its two MessagePort properties.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
 */
interface MessageChannel {
    /**
     * The **\`port1\`** read-only property of the the port attached to the context that originated the channel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
     */
    readonly port1: MessagePort;
    /**
     * The **\`port2\`** read-only property of the the port attached to the context at the other end of the channel, which the message is initially sent to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
     */
    readonly port2: MessagePort;
}

declare var MessageChannel: {
    prototype: MessageChannel;
    new(): MessageChannel;
};

/**
 * The **\`MessageEvent\`** interface represents a message received by a target object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
 */
interface MessageEvent<T = any> extends Event {
    /**
     * The **\`data\`** read-only property of the The data sent by the message emitter; this can be any data type, depending on what originated this event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
     */
    readonly data: T;
    /**
     * The **\`lastEventId\`** read-only property of the unique ID for the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
     */
    readonly lastEventId: string;
    /**
     * The **\`origin\`** read-only property of the origin of the message emitter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
     */
    readonly origin: string;
    /**
     * The **\`ports\`** read-only property of the containing all MessagePort objects sent with the message, in order.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
     */
    readonly ports: ReadonlyArray<MessagePort>;
    /**
     * The **\`source\`** read-only property of the a WindowProxy, MessagePort, or a \`MessageEventSource\` (which can be a WindowProxy, message emitter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
     */
    readonly source: MessageEventSource | null;
    /** @deprecated */
    initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}

declare var MessageEvent: {
    prototype: MessageEvent;
    new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};

interface MessageEventTargetEventMap {
    "message": MessageEvent;
    "messageerror": MessageEvent;
}

interface MessageEventTarget<T> {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
    onmessage: ((this: T, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
    onmessageerror: ((this: T, ev: MessageEvent) => any) | null;
    addEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MessageEventTargetEventMap>(type: K, listener: (this: T, ev: MessageEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

interface MessagePortEventMap extends MessageEventTargetEventMap {
    "message": MessageEvent;
    "messageerror": MessageEvent;
}

/**
 * The **\`MessagePort\`** interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
 */
interface MessagePort extends EventTarget, MessageEventTarget<MessagePort> {
    /**
     * The **\`close()\`** method of the MessagePort interface disconnects the port, so it is no longer active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
     */
    close(): void;
    /**
     * The **\`postMessage()\`** method of the transfers ownership of objects to other browsing contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
     */
    postMessage(message: any, transfer: Transferable[]): void;
    postMessage(message: any, options?: StructuredSerializeOptions): void;
    /**
     * The **\`start()\`** method of the MessagePort interface starts the sending of messages queued on the port.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
     */
    start(): void;
    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var MessagePort: {
    prototype: MessagePort;
    new(): MessagePort;
};

/**
 * The **\`NavigationPreloadManager\`** interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
 */
interface NavigationPreloadManager {
    /**
     * The **\`disable()\`** method of the NavigationPreloadManager interface halts the automatic preloading of service-worker-managed resources previously started using NavigationPreloadManager.enable() It returns a promise that resolves with \`undefined\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable)
     */
    disable(): Promise<void>;
    /**
     * The **\`enable()\`** method of the NavigationPreloadManager interface is used to enable preloading of resources managed by the service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable)
     */
    enable(): Promise<void>;
    /**
     * The **\`getState()\`** method of the NavigationPreloadManager interface returns a Promise that resolves to an object with properties that indicate whether preload is enabled and what value will be sent in the Service-Worker-Navigation-Preload HTTP header.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState)
     */
    getState(): Promise<NavigationPreloadState>;
    /**
     * The **\`setHeaderValue()\`** method of the NavigationPreloadManager interface sets the value of the Service-Worker-Navigation-Preload header that will be sent with requests resulting from a Window/fetch operation made during service worker navigation preloading.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue)
     */
    setHeaderValue(value: string): Promise<void>;
}

declare var NavigationPreloadManager: {
    prototype: NavigationPreloadManager;
    new(): NavigationPreloadManager;
};

/** Available only in secure contexts. */
interface NavigatorBadge {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */
    clearAppBadge(): Promise<void>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */
    setAppBadge(contents?: number): Promise<void>;
}

interface NavigatorConcurrentHardware {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */
    readonly hardwareConcurrency: number;
}

interface NavigatorID {
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
     */
    readonly appCodeName: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
     */
    readonly appName: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
     */
    readonly appVersion: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
     */
    readonly platform: string;
    /**
     * @deprecated
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
     */
    readonly product: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
    readonly userAgent: string;
}

interface NavigatorLanguage {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */
    readonly language: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */
    readonly languages: ReadonlyArray<string>;
}

/** Available only in secure contexts. */
interface NavigatorLocks {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */
    readonly locks: LockManager;
}

interface NavigatorOnLine {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */
    readonly onLine: boolean;
}

/** Available only in secure contexts. */
interface NavigatorStorage {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */
    readonly storage: StorageManager;
}

interface NotificationEventMap {
    "click": Event;
    "close": Event;
    "error": Event;
    "show": Event;
}

/**
 * The **\`Notification\`** interface of the Notifications API is used to configure and display desktop notifications to the user.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
 */
interface Notification extends EventTarget {
    /**
     * The **\`badge\`** read-only property of the Notification interface returns a string containing the URL of an image to represent the notification when there is not enough space to display the notification itself such as for example, the Android Notification Bar.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge)
     */
    readonly badge: string;
    /**
     * The **\`body\`** read-only property of the specified in the \`body\` option of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body)
     */
    readonly body: string;
    /**
     * The **\`data\`** read-only property of the data, as specified in the \`data\` option of the The notification's data can be any arbitrary data that you want associated with the notification.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data)
     */
    readonly data: any;
    /**
     * The **\`dir\`** read-only property of the Notification interface indicates the text direction of the notification, as specified in the \`dir\` option of the Notification.Notification constructor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir)
     */
    readonly dir: NotificationDirection;
    /**
     * The **\`icon\`** read-only property of the part of the notification, as specified in the \`icon\` option of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon)
     */
    readonly icon: string;
    /**
     * The **\`lang\`** read-only property of the as specified in the \`lang\` option of the The language itself is specified using a string representing a language tag according to MISSING: RFC(5646, 'Tags for Identifying Languages (also known as BCP 47)')].
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang)
     */
    readonly lang: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */
    onclick: ((this: Notification, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */
    onclose: ((this: Notification, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */
    onerror: ((this: Notification, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
    onshow: ((this: Notification, ev: Event) => any) | null;
    /**
     * The **\`requireInteraction\`** read-only property of the Notification interface returns a boolean value indicating that a notification should remain active until the user clicks or dismisses it, rather than closing automatically.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction)
     */
    readonly requireInteraction: boolean;
    /**
     * The **\`silent\`** read-only property of the silent, i.e., no sounds or vibrations should be issued regardless of the device settings.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent)
     */
    readonly silent: boolean | null;
    /**
     * The **\`tag\`** read-only property of the as specified in the \`tag\` option of the The idea of notification tags is that more than one notification can share the same tag, linking them together.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag)
     */
    readonly tag: string;
    /**
     * The **\`title\`** read-only property of the specified in the \`title\` parameter of the A string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title)
     */
    readonly title: string;
    /**
     * The **\`close()\`** method of the Notification interface is used to close/remove a previously displayed notification.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close)
     */
    close(): void;
    addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var Notification: {
    prototype: Notification;
    new(title: string, options?: NotificationOptions): Notification;
    /**
     * The **\`permission\`** read-only static property of the Notification interface indicates the current permission granted by the user for the current origin to display web notifications.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static)
     */
    readonly permission: NotificationPermission;
};

/**
 * The **\`NotificationEvent\`** interface of the Notifications API represents a notification event dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent)
 */
interface NotificationEvent extends ExtendableEvent {
    /**
     * The **\`action\`** read-only property of the NotificationEvent interface returns the string ID of the notification button the user clicked.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action)
     */
    readonly action: string;
    /**
     * The **\`notification\`** read-only property of the NotificationEvent interface returns the instance of the Notification that was clicked to fire the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification)
     */
    readonly notification: Notification;
}

declare var NotificationEvent: {
    prototype: NotificationEvent;
    new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
};

/**
 * The **\`OES_draw_buffers_indexed\`** extension is part of the WebGL API and enables the use of different blend options when writing to multiple color buffers simultaneously.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed)
 */
interface OES_draw_buffers_indexed {
    /**
     * The \`blendEquationSeparateiOES()\` method of the OES_draw_buffers_indexed WebGL extension sets the RGB and alpha blend equations separately for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES)
     */
    blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
    /**
     * The \`blendEquationiOES()\` method of the \`OES_draw_buffers_indexed\` WebGL extension sets both the RGB blend and alpha blend equations for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES)
     */
    blendEquationiOES(buf: GLuint, mode: GLenum): void;
    /**
     * The \`blendFuncSeparateiOES()\` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for RGB and alpha components separately for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES)
     */
    blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
    /**
     * The \`blendFunciOES()\` method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES)
     */
    blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
    /**
     * The \`colorMaskiOES()\` method of the OES_draw_buffers_indexed WebGL extension sets which color components to enable or to disable when drawing or rendering for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES)
     */
    colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
    /**
     * The \`disableiOES()\` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES)
     */
    disableiOES(target: GLenum, index: GLuint): void;
    /**
     * The \`enableiOES()\` method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES)
     */
    enableiOES(target: GLenum, index: GLuint): void;
}

/**
 * The **\`OES_element_index_uint\`** extension is part of the WebGL API and adds support for \`gl.UNSIGNED_INT\` types to WebGLRenderingContext.drawElements().
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)
 */
interface OES_element_index_uint {
}

/**
 * The \`OES_fbo_render_mipmap\` extension is part of the WebGL API and makes it possible to attach any level of a texture to a framebuffer object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap)
 */
interface OES_fbo_render_mipmap {
}

/**
 * The **\`OES_standard_derivatives\`** extension is part of the WebGL API and adds the GLSL derivative functions \`dFdx\`, \`dFdy\`, and \`fwidth\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)
 */
interface OES_standard_derivatives {
    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}

/**
 * The **\`OES_texture_float\`** extension is part of the WebGL API and exposes floating-point pixel types for textures.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)
 */
interface OES_texture_float {
}

/**
 * The **\`OES_texture_float_linear\`** extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)
 */
interface OES_texture_float_linear {
}

/**
 * The **\`OES_texture_half_float\`** extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)
 */
interface OES_texture_half_float {
    readonly HALF_FLOAT_OES: 0x8D61;
}

/**
 * The **\`OES_texture_half_float_linear\`** extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)
 */
interface OES_texture_half_float_linear {
}

/**
 * The **OES_vertex_array_object** extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object)
 */
interface OES_vertex_array_object {
    /**
     * The **\`OES_vertex_array_object.bindVertexArrayOES()\`** method of the WebGL API binds a passed WebGLVertexArrayObject object to the buffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)
     */
    bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
    /**
     * The **\`OES_vertex_array_object.createVertexArrayOES()\`** method of the WebGL API creates and initializes a pointing to vertex array data and which provides names for different sets of vertex data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)
     */
    createVertexArrayOES(): WebGLVertexArrayObjectOES;
    /**
     * The **\`OES_vertex_array_object.deleteVertexArrayOES()\`** method of the WebGL API deletes a given \`\`\`js-nolint deleteVertexArrayOES(arrayObject) \`\`\` - \`arrayObject\` - : A WebGLVertexArrayObject (VAO) object to delete.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)
     */
    deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
    /**
     * The **\`OES_vertex_array_object.isVertexArrayOES()\`** method of the WebGL API returns \`true\` if the passed object is a WebGLVertexArrayObject object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)
     */
    isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
    readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}

/**
 * The \`OVR_multiview2\` extension is part of the WebGL API and adds support for rendering into multiple views simultaneously.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2)
 */
interface OVR_multiview2 {
    /**
     * The **\`OVR_multiview2.framebufferTextureMultiviewOVR()\`** method of the WebGL API attaches a multiview texture to a WebGLFramebuffer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR)
     */
    framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
    readonly MAX_VIEWS_OVR: 0x9631;
    readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}

interface OffscreenCanvasEventMap {
    "contextlost": Event;
    "contextrestored": Event;
}

/**
 * When using the canvas element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
 */
interface OffscreenCanvas extends EventTarget {
    /**
     * The **\`height\`** property returns and sets the height of an OffscreenCanvas object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
     */
    height: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextlost_event) */
    oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/contextrestored_event) */
    oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
    /**
     * The **\`width\`** property returns and sets the width of an OffscreenCanvas object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
     */
    width: number;
    /**
     * The **\`OffscreenCanvas.convertToBlob()\`** method creates a Blob object representing the image contained in the canvas.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
     */
    convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
    /**
     * The **\`OffscreenCanvas.getContext()\`** method returns a drawing context for an offscreen canvas, or \`null\` if the context identifier is not supported, or the offscreen canvas has already been set to a different context mode.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
     */
    getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
    getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
    getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
    getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
    getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
    /**
     * The **\`OffscreenCanvas.transferToImageBitmap()\`** method creates an ImageBitmap object from the most recently rendered image of the \`OffscreenCanvas\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
     */
    transferToImageBitmap(): ImageBitmap;
    addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var OffscreenCanvas: {
    prototype: OffscreenCanvas;
    new(width: number, height: number): OffscreenCanvas;
};

/**
 * The **\`OffscreenCanvasRenderingContext2D\`** interface is a CanvasRenderingContext2D rendering context for drawing to the bitmap of an \`OffscreenCanvas\` object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D)
 */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */
    readonly canvas: OffscreenCanvas;
}

declare var OffscreenCanvasRenderingContext2D: {
    prototype: OffscreenCanvasRenderingContext2D;
    new(): OffscreenCanvasRenderingContext2D;
};

/**
 * The **\`Path2D\`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
 */
interface Path2D extends CanvasPath {
    /**
     * The **\`Path2D.addPath()\`** method of the Canvas 2D API adds one Path2D object to another \`Path2D\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)
     */
    addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}

declare var Path2D: {
    prototype: Path2D;
    new(path?: Path2D | string): Path2D;
};

interface PerformanceEventMap {
    "resourcetimingbufferfull": Event;
}

/**
 * The **\`Performance\`** interface provides access to performance-related information for the current page.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)
 */
interface Performance extends EventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */
    onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
    /**
     * The **\`timeOrigin\`** read-only property of the Performance interface returns the high resolution timestamp that is used as the baseline for performance-related timestamps.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin)
     */
    readonly timeOrigin: DOMHighResTimeStamp;
    /**
     * The **\`clearMarks()\`** method removes all or specific PerformanceMark objects from the browser's performance timeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks)
     */
    clearMarks(markName?: string): void;
    /**
     * The **\`clearMeasures()\`** method removes all or specific PerformanceMeasure objects from the browser's performance timeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures)
     */
    clearMeasures(measureName?: string): void;
    /**
     * The **\`clearResourceTimings()\`** method removes all performance entries with an PerformanceEntry.entryType of \`'resource'\` from the browser's performance timeline and sets the size of the performance resource data buffer to zero.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings)
     */
    clearResourceTimings(): void;
    /**
     * The **\`getEntries()\`** method returns an array of all PerformanceEntry objects currently present in the performance timeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries)
     */
    getEntries(): PerformanceEntryList;
    /**
     * The **\`getEntriesByName()\`** method returns an array of PerformanceEntry objects currently present in the performance timeline with the given _name_ and _type_.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName)
     */
    getEntriesByName(name: string, type?: string): PerformanceEntryList;
    /**
     * The **\`getEntriesByType()\`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given _type_.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType)
     */
    getEntriesByType(type: string): PerformanceEntryList;
    /**
     * The **\`mark()\`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark)
     */
    mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
    /**
     * The **\`measure()\`** method creates a named PerformanceMeasure object representing a time measurement between two marks in the browser's performance timeline.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure)
     */
    measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
    /**
     * The **\`performance.now()\`** method returns a high resolution timestamp in milliseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now)
     */
    now(): DOMHighResTimeStamp;
    /**
     * The **\`setResourceTimingBufferSize()\`** method sets the desired size of the browser's resource timing buffer which stores the \`'resource'\` performance entries.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize)
     */
    setResourceTimingBufferSize(maxSize: number): void;
    /**
     * The **\`toJSON()\`** method of the Performance interface is a Serialization; it returns a JSON representation of the Performance object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON)
     */
    toJSON(): any;
    addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var Performance: {
    prototype: Performance;
    new(): Performance;
};

/**
 * The **\`PerformanceEntry\`** object encapsulates a single performance metric that is part of the browser's performance timeline.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
 */
interface PerformanceEntry {
    /**
     * The read-only **\`duration\`** property returns a DOMHighResTimeStamp that is the duration of the PerformanceEntry.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration)
     */
    readonly duration: DOMHighResTimeStamp;
    /**
     * The read-only **\`entryType\`** property returns a string representing the type of performance metric that this entry represents.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType)
     */
    readonly entryType: string;
    /**
     * The read-only **\`name\`** property of the PerformanceEntry interface is a string representing the name for a performance entry.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name)
     */
    readonly name: string;
    /**
     * The read-only **\`startTime\`** property returns the first DOMHighResTimeStamp recorded for this PerformanceEntry.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime)
     */
    readonly startTime: DOMHighResTimeStamp;
    /**
     * The **\`toJSON()\`** method is a Serialization; it returns a JSON representation of the PerformanceEntry object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON)
     */
    toJSON(): any;
}

declare var PerformanceEntry: {
    prototype: PerformanceEntry;
    new(): PerformanceEntry;
};

/**
 * **\`PerformanceMark\`** is an interface for PerformanceEntry objects with an PerformanceEntry.entryType of \`'mark'\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
 */
interface PerformanceMark extends PerformanceEntry {
    /**
     * The read-only **\`detail\`** property returns arbitrary metadata that was included in the mark upon construction (either when using Performance.mark or the PerformanceMark.PerformanceMark constructor).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail)
     */
    readonly detail: any;
}

declare var PerformanceMark: {
    prototype: PerformanceMark;
    new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};

/**
 * **\`PerformanceMeasure\`** is an _abstract_ interface for PerformanceEntry objects with an PerformanceEntry.entryType of \`'measure'\`.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
 */
interface PerformanceMeasure extends PerformanceEntry {
    /**
     * The read-only **\`detail\`** property returns arbitrary metadata that was included in the mark upon construction (when using Performance.measure.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail)
     */
    readonly detail: any;
}

declare var PerformanceMeasure: {
    prototype: PerformanceMeasure;
    new(): PerformanceMeasure;
};

/**
 * The **\`PerformanceObserver\`** interface is used to observe performance measurement events and be notified of new PerformanceEntry as they are recorded in the browser's _performance timeline_.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver)
 */
interface PerformanceObserver {
    /**
     * The **\`disconnect()\`** method of the PerformanceObserver interface is used to stop the performance observer from receiving any PerformanceEntry events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect)
     */
    disconnect(): void;
    /**
     * The **\`observe()\`** method of the **PerformanceObserver** interface is used to specify the set of performance entry types to observe.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe)
     */
    observe(options?: PerformanceObserverInit): void;
    /**
     * The **\`takeRecords()\`** method of the PerformanceObserver interface returns the current list of PerformanceEntry objects stored in the performance observer, emptying it out.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords)
     */
    takeRecords(): PerformanceEntryList;
}

declare var PerformanceObserver: {
    prototype: PerformanceObserver;
    new(callback: PerformanceObserverCallback): PerformanceObserver;
    /**
     * The static **\`supportedEntryTypes\`** read-only property of the PerformanceObserver interface returns an array of the PerformanceEntry.entryType values supported by the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static)
     */
    readonly supportedEntryTypes: ReadonlyArray<string>;
};

/**
 * The **\`PerformanceObserverEntryList\`** interface is a list of PerformanceEntry that were explicitly observed via the PerformanceObserver.observe method.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList)
 */
interface PerformanceObserverEntryList {
    /**
     * The **\`getEntries()\`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries)
     */
    getEntries(): PerformanceEntryList;
    /**
     * The **\`getEntriesByName()\`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given PerformanceEntry.name and PerformanceEntry.entryType.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)
     */
    getEntriesByName(name: string, type?: string): PerformanceEntryList;
    /**
     * The **\`getEntriesByType()\`** method of the PerformanceObserverEntryList returns a list of explicitly _observed_ PerformanceEntry objects for a given PerformanceEntry.entryType.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)
     */
    getEntriesByType(type: string): PerformanceEntryList;
}

declare var PerformanceObserverEntryList: {
    prototype: PerformanceObserverEntryList;
    new(): PerformanceObserverEntryList;
};

/**
 * The **\`PerformanceResourceTiming\`** interface enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
 */
interface PerformanceResourceTiming extends PerformanceEntry {
    /**
     * The **\`connectEnd\`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes establishing the connection to the server to retrieve the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd)
     */
    readonly connectEnd: DOMHighResTimeStamp;
    /**
     * The **\`connectStart\`** read-only property returns the DOMHighResTimeStamp immediately before the user agent starts establishing the connection to the server to retrieve the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
     */
    readonly connectStart: DOMHighResTimeStamp;
    /**
     * The **\`decodedBodySize\`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
     */
    readonly decodedBodySize: number;
    /**
     * The **\`domainLookupEnd\`** read-only property returns the DOMHighResTimeStamp immediately after the browser finishes the domain-name lookup for the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)
     */
    readonly domainLookupEnd: DOMHighResTimeStamp;
    /**
     * The **\`domainLookupStart\`** read-only property returns the DOMHighResTimeStamp immediately before the browser starts the domain name lookup for the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart)
     */
    readonly domainLookupStart: DOMHighResTimeStamp;
    /**
     * The **\`encodedBodySize\`** read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize)
     */
    readonly encodedBodySize: number;
    /**
     * The **\`fetchStart\`** read-only property represents a DOMHighResTimeStamp immediately before the browser starts to fetch the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
     */
    readonly fetchStart: DOMHighResTimeStamp;
    /**
     * The **\`initiatorType\`** read-only property is a string representing web platform feature that initiated the resource load.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType)
     */
    readonly initiatorType: string;
    /**
     * The **\`nextHopProtocol\`** read-only property is a string representing the network protocol used to fetch the resource, as identified by the ALPN Protocol ID (RFC7301).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)
     */
    readonly nextHopProtocol: string;
    /**
     * The **\`redirectEnd\`** read-only property returns a DOMHighResTimeStamp immediately after receiving the last byte of the response of the last redirect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd)
     */
    readonly redirectEnd: DOMHighResTimeStamp;
    /**
     * The **\`redirectStart\`** read-only property returns a DOMHighResTimeStamp representing the start time of the fetch which that initiates the redirect.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart)
     */
    readonly redirectStart: DOMHighResTimeStamp;
    /**
     * The **\`requestStart\`** read-only property returns a DOMHighResTimeStamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
     */
    readonly requestStart: DOMHighResTimeStamp;
    /**
     * The **\`responseEnd\`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd)
     */
    readonly responseEnd: DOMHighResTimeStamp;
    /**
     * The **\`responseStart\`** read-only property returns a DOMHighResTimeStamp immediately after the browser receives the first byte of the response from the server, cache, or local resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart)
     */
    readonly responseStart: DOMHighResTimeStamp;
    /**
     * The **\`responseStatus\`** read-only property represents the HTTP response status code returned when fetching the resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStatus)
     */
    readonly responseStatus: number;
    /**
     * The **\`secureConnectionStart\`** read-only property returns a DOMHighResTimeStamp immediately before the browser starts the handshake process to secure the current connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)
     */
    readonly secureConnectionStart: DOMHighResTimeStamp;
    /**
     * The **\`serverTiming\`** read-only property returns an array of PerformanceServerTiming entries containing server timing metrics.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming)
     */
    readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
    /**
     * The **\`transferSize\`** read-only property represents the size (in octets) of the fetched resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)
     */
    readonly transferSize: number;
    /**
     * The **\`workerStart\`** read-only property of the PerformanceResourceTiming interface returns a The \`workerStart\` property can have the following values: - A DOMHighResTimeStamp.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart)
     */
    readonly workerStart: DOMHighResTimeStamp;
    /**
     * The **\`toJSON()\`** method of the PerformanceResourceTiming interface is a Serialization; it returns a JSON representation of the PerformanceResourceTiming object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON)
     */
    toJSON(): any;
}

declare var PerformanceResourceTiming: {
    prototype: PerformanceResourceTiming;
    new(): PerformanceResourceTiming;
};

/**
 * The **\`PerformanceServerTiming\`** interface surfaces server metrics that are sent with the response in the Server-Timing HTTP header.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming)
 */
interface PerformanceServerTiming {
    /**
     * The **\`description\`** read-only property returns a string value of the server-specified metric description, or an empty string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description)
     */
    readonly description: string;
    /**
     * The **\`duration\`** read-only property returns a double that contains the server-specified metric duration, or the value \`0.0\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)
     */
    readonly duration: DOMHighResTimeStamp;
    /**
     * The **\`name\`** read-only property returns a string value of the server-specified metric name.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name)
     */
    readonly name: string;
    /**
     * The **\`toJSON()\`** method of the PerformanceServerTiming interface is a Serialization; it returns a JSON representation of the PerformanceServerTiming object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON)
     */
    toJSON(): any;
}

declare var PerformanceServerTiming: {
    prototype: PerformanceServerTiming;
    new(): PerformanceServerTiming;
};

interface PermissionStatusEventMap {
    "change": Event;
}

/**
 * The **\`PermissionStatus\`** interface of the Permissions API provides the state of an object and an event handler for monitoring changes to said state.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus)
 */
interface PermissionStatus extends EventTarget {
    /**
     * The **\`name\`** read-only property of the PermissionStatus interface returns the name of a requested permission.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name)
     */
    readonly name: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */
    onchange: ((this: PermissionStatus, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the This property returns one of \`'granted'\`, \`'denied'\`, or \`'prompt'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state)
     */
    readonly state: PermissionState;
    addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var PermissionStatus: {
    prototype: PermissionStatus;
    new(): PermissionStatus;
};

/**
 * The **\`Permissions\`** interface of the Permissions API provides the core Permission API functionality, such as methods for querying and revoking permissions - Permissions.query - : Returns the user permission status for a given API.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions)
 */
interface Permissions {
    /**
     * The **\`query()\`** method of the Permissions interface returns the state of a user permission on the global scope.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query)
     */
    query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}

declare var Permissions: {
    prototype: Permissions;
    new(): Permissions;
};

/**
 * The **\`ProgressEvent\`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an \`XMLHttpRequest\`, or the loading of the underlying resource of an img, audio, video, style or link).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
 */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
    /**
     * The **\`ProgressEvent.lengthComputable\`** read-only property is a boolean flag indicating if the resource concerned by the A boolean.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable)
     */
    readonly lengthComputable: boolean;
    /**
     * The **\`ProgressEvent.loaded\`** read-only property is a number indicating the size of the data already transmitted or processed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
     */
    readonly loaded: number;
    readonly target: T | null;
    /**
     * The **\`ProgressEvent.total\`** read-only property is a number indicating the total size of the data being transmitted or processed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total)
     */
    readonly total: number;
}

declare var ProgressEvent: {
    prototype: ProgressEvent;
    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};

/**
 * The **\`PromiseRejectionEvent\`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)
 */
interface PromiseRejectionEvent extends Event {
    /**
     * The PromiseRejectionEvent interface's **\`promise\`** read-only property indicates the JavaScript rejected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
     */
    readonly promise: Promise<any>;
    /**
     * The PromiseRejectionEvent **\`reason\`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason)
     */
    readonly reason: any;
}

declare var PromiseRejectionEvent: {
    prototype: PromiseRejectionEvent;
    new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};

/**
 * The **\`PushEvent\`** interface of the Push API represents a push message that has been received.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)
 */
interface PushEvent extends ExtendableEvent {
    /**
     * The \`data\` read-only property of the **\`PushEvent\`** interface returns a reference to a PushMessageData object containing data sent to the PushSubscription.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data)
     */
    readonly data: PushMessageData | null;
}

declare var PushEvent: {
    prototype: PushEvent;
    new(type: string, eventInitDict?: PushEventInit): PushEvent;
};

/**
 * The **\`PushManager\`** interface of the Push API provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)
 */
interface PushManager {
    /**
     * The **\`PushManager.getSubscription()\`** method of the PushManager interface retrieves an existing push subscription.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription)
     */
    getSubscription(): Promise<PushSubscription | null>;
    /**
     * The **\`permissionState()\`** method of the string indicating the permission state of the push manager.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState)
     */
    permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
    /**
     * The **\`subscribe()\`** method of the PushManager interface subscribes to a push service.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe)
     */
    subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}

declare var PushManager: {
    prototype: PushManager;
    new(): PushManager;
    /**
     * The **\`supportedContentEncodings\`** read-only static property of the PushManager interface returns an array of supported content codings that can be used to encrypt the payload of a push message.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static)
     */
    readonly supportedContentEncodings: ReadonlyArray<string>;
};

/**
 * The **\`PushMessageData\`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData)
 */
interface PushMessageData {
    /**
     * The **\`arrayBuffer()\`** method of the PushMessageData interface extracts push message data as an ArrayBuffer object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer)
     */
    arrayBuffer(): ArrayBuffer;
    /**
     * The **\`blob()\`** method of the PushMessageData interface extracts push message data as a Blob object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob)
     */
    blob(): Blob;
    /**
     * The **\`bytes()\`** method of the PushMessageData interface extracts push message data as an Uint8Array object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/bytes)
     */
    bytes(): Uint8Array<ArrayBuffer>;
    /**
     * The **\`json()\`** method of the PushMessageData interface extracts push message data by parsing it as a JSON string and returning the result.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json)
     */
    json(): any;
    /**
     * The **\`text()\`** method of the PushMessageData interface extracts push message data as a plain text string.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text)
     */
    text(): string;
}

declare var PushMessageData: {
    prototype: PushMessageData;
    new(): PushMessageData;
};

/**
 * The \`PushSubscription\` interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
 */
interface PushSubscription {
    /**
     * The **\`endpoint\`** read-only property of the the endpoint associated with the push subscription.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint)
     */
    readonly endpoint: string;
    /**
     * The **\`expirationTime\`** read-only property of the of the subscription expiration time associated with the push subscription, if there is one, or \`null\` otherwise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime)
     */
    readonly expirationTime: EpochTimeStamp | null;
    /**
     * The **\`options\`** read-only property of the PushSubscription interface is an object containing the options used to create the subscription.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options)
     */
    readonly options: PushSubscriptionOptions;
    /**
     * The \`getKey()\` method of the PushSubscription interface returns an ArrayBuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey)
     */
    getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
    /**
     * The \`toJSON()\` method of the PushSubscription interface is a standard serializer: it returns a JSON representation of the subscription properties, providing a useful shortcut.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON)
     */
    toJSON(): PushSubscriptionJSON;
    /**
     * The \`unsubscribe()\` method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe)
     */
    unsubscribe(): Promise<boolean>;
}

declare var PushSubscription: {
    prototype: PushSubscription;
    new(): PushSubscription;
};

/** Available only in secure contexts. */
interface PushSubscriptionChangeEvent extends ExtendableEvent {
    readonly newSubscription: PushSubscription | null;
    readonly oldSubscription: PushSubscription | null;
}

declare var PushSubscriptionChangeEvent: {
    prototype: PushSubscriptionChangeEvent;
    new(type: string, eventInitDict?: PushSubscriptionChangeEventInit): PushSubscriptionChangeEvent;
};

/**
 * The **\`PushSubscriptionOptions\`** interface of the Push API represents the options associated with a push subscription.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
 */
interface PushSubscriptionOptions {
    /**
     * The **\`applicationServerKey\`** read-only property of the PushSubscriptionOptions interface contains the public key used by the push server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey)
     */
    readonly applicationServerKey: ArrayBuffer | null;
    /**
     * The **\`userVisibleOnly\`** read-only property of the PushSubscriptionOptions interface indicates if the returned push subscription will only be used for messages whose effect is made visible to the user.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly)
     */
    readonly userVisibleOnly: boolean;
}

declare var PushSubscriptionOptions: {
    prototype: PushSubscriptionOptions;
    new(): PushSubscriptionOptions;
};

interface RTCDataChannelEventMap {
    "bufferedamountlow": Event;
    "close": Event;
    "closing": Event;
    "error": Event;
    "message": MessageEvent;
    "open": Event;
}

/**
 * The **\`RTCDataChannel\`** interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel)
 */
interface RTCDataChannel extends EventTarget {
    /**
     * The property **\`binaryType\`** on the the type of object which should be used to represent binary data received on the RTCDataChannel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType)
     */
    binaryType: BinaryType;
    /**
     * The read-only \`RTCDataChannel\` property **\`bufferedAmount\`** returns the number of bytes of data currently queued to be sent over the data channel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount)
     */
    readonly bufferedAmount: number;
    /**
     * The \`RTCDataChannel\` property **\`bufferedAmountLowThreshold\`** is used to specify the number of bytes of buffered outgoing data that is considered 'low.' The default value is 0\\.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)
     */
    bufferedAmountLowThreshold: number;
    /**
     * The read-only \`RTCDataChannel\` property **\`id\`** returns an ID number (between 0 and 65,534) which uniquely identifies the RTCDataChannel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id)
     */
    readonly id: number | null;
    /**
     * The read-only \`RTCDataChannel\` property **\`label\`** returns a string containing a name describing the data channel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label)
     */
    readonly label: string;
    /**
     * The read-only \`RTCDataChannel\` property **\`maxPacketLifeTime\`** returns the amount of time, in milliseconds, the browser is allowed to take to attempt to transmit a message, as set when the data channel was created, or \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime)
     */
    readonly maxPacketLifeTime: number | null;
    /**
     * The read-only \`RTCDataChannel\` property **\`maxRetransmits\`** returns the maximum number of times the browser should try to retransmit a message before giving up, as set when the data channel was created, or \`null\`, which indicates that there is no maximum.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits)
     */
    readonly maxRetransmits: number | null;
    /**
     * The read-only \`RTCDataChannel\` property **\`negotiated\`** indicates whether the (\`true\`) or by the WebRTC layer (\`false\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated)
     */
    readonly negotiated: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */
    onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */
    onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
    onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
    onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
    onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
    onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
    /**
     * The read-only \`RTCDataChannel\` property **\`ordered\`** indicates whether or not the data channel guarantees in-order delivery of messages; the default is \`true\`, which indicates that the data channel is indeed ordered.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered)
     */
    readonly ordered: boolean;
    /**
     * The read-only \`RTCDataChannel\` property **\`protocol\`** returns a string containing the name of the subprotocol in use.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol)
     */
    readonly protocol: string;
    /**
     * The read-only \`RTCDataChannel\` property **\`readyState\`** returns a string which indicates the state of the data channel's underlying data connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState)
     */
    readonly readyState: RTCDataChannelState;
    /**
     * The **\`RTCDataChannel.close()\`** method closes the closure of the channel.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close)
     */
    close(): void;
    /**
     * The **\`send()\`** method of the remote peer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send)
     */
    send(data: string): void;
    send(data: Blob): void;
    send(data: ArrayBuffer): void;
    send(data: ArrayBufferView<ArrayBuffer>): void;
    addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var RTCDataChannel: {
    prototype: RTCDataChannel;
    new(): RTCDataChannel;
};

/**
 * The **\`RTCEncodedAudioFrame\`** of the WebRTC API represents an encoded audio frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame)
 */
interface RTCEncodedAudioFrame {
    /**
     * The **\`data\`** property of the RTCEncodedAudioFrame interface returns a buffer containing the data for an encoded frame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data)
     */
    data: ArrayBuffer;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */
    readonly timestamp: number;
    /**
     * The **\`getMetadata()\`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata)
     */
    getMetadata(): RTCEncodedAudioFrameMetadata;
}

declare var RTCEncodedAudioFrame: {
    prototype: RTCEncodedAudioFrame;
    new(): RTCEncodedAudioFrame;
};

/**
 * The **\`RTCEncodedVideoFrame\`** of the WebRTC API represents an encoded video frame in the WebRTC receiver or sender pipeline, which may be modified using a WebRTC Encoded Transform.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame)
 */
interface RTCEncodedVideoFrame {
    /**
     * The **\`data\`** property of the RTCEncodedVideoFrame interface returns a buffer containing the frame data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data)
     */
    data: ArrayBuffer;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */
    readonly timestamp: number;
    /**
     * The **\`type\`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type)
     */
    readonly type: RTCEncodedVideoFrameType;
    /**
     * The **\`getMetadata()\`** method of the RTCEncodedVideoFrame interface returns an object containing the metadata associated with the frame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata)
     */
    getMetadata(): RTCEncodedVideoFrameMetadata;
}

declare var RTCEncodedVideoFrame: {
    prototype: RTCEncodedVideoFrame;
    new(): RTCEncodedVideoFrame;
};

/**
 * The **\`RTCRtpScriptTransformer\`** interface of the WebRTC API provides a worker-side Stream API interface that a WebRTC Encoded Transform can use to modify encoded media frames in the incoming and outgoing WebRTC pipelines.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer)
 */
interface RTCRtpScriptTransformer extends EventTarget {
    /**
     * The **\`options\`** read-only property of the RTCRtpScriptTransformer interface returns the object that was (optionally) passed as the second argument during construction of the corresponding RTCRtpScriptTransform.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options)
     */
    readonly options: any;
    /**
     * The **\`readable\`** read-only property of the RTCRtpScriptTransformer interface returns a ReadableStream instance is a source for encoded media frames.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable)
     */
    readonly readable: ReadableStream;
    /**
     * The **\`writable\`** read-only property of the RTCRtpScriptTransformer interface returns a WritableStream instance that can be used as a sink for encoded media frames enqueued on the corresponding RTCRtpScriptTransformer.readable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable)
     */
    readonly writable: WritableStream;
    /**
     * The **\`generateKeyFrame()\`** method of the RTCRtpScriptTransformer interface causes a video encoder to generate a key frame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame)
     */
    generateKeyFrame(rid?: string): Promise<number>;
    /**
     * The **\`sendKeyFrameRequest()\`** method of the RTCRtpScriptTransformer interface may be called by a WebRTC Encoded Transform that is processing incoming encoded video frames, in order to request a key frame from the sender.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest)
     */
    sendKeyFrameRequest(): Promise<void>;
}

declare var RTCRtpScriptTransformer: {
    prototype: RTCRtpScriptTransformer;
    new(): RTCRtpScriptTransformer;
};

/**
 * The **\`RTCTransformEvent\`** of the WebRTC API represent an event that is fired in a dedicated worker when an encoded frame has been queued for processing by a WebRTC Encoded Transform.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent)
 */
interface RTCTransformEvent extends Event {
    /**
     * The read-only **\`transformer\`** property of the RTCTransformEvent interface returns the RTCRtpScriptTransformer associated with the event.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer)
     */
    readonly transformer: RTCRtpScriptTransformer;
}

declare var RTCTransformEvent: {
    prototype: RTCTransformEvent;
    new(): RTCTransformEvent;
};

/**
 * The **\`ReadableByteStreamController\`** interface of the Streams API represents a controller for a readable byte stream.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)
 */
interface ReadableByteStreamController {
    /**
     * The **\`byobRequest\`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or \`null\` if there are no pending requests.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)
     */
    readonly byobRequest: ReadableStreamBYOBRequest | null;
    /**
     * The **\`desiredSize\`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its 'desired size'.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)
     */
    readonly desiredSize: number | null;
    /**
     * The **\`close()\`** method of the ReadableByteStreamController interface closes the associated stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close)
     */
    close(): void;
    /**
     * The **\`enqueue()\`** method of the ReadableByteStreamController interface enqueues a given chunk on the associated readable byte stream (the chunk is copied into the stream's internal queues).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue)
     */
    enqueue(chunk: ArrayBufferView<ArrayBuffer>): void;
    /**
     * The **\`error()\`** method of the ReadableByteStreamController interface causes any future interactions with the associated stream to error with the specified reason.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error)
     */
    error(e?: any): void;
}

declare var ReadableByteStreamController: {
    prototype: ReadableByteStreamController;
    new(): ReadableByteStreamController;
};

/**
 * The \`ReadableStream\` interface of the Streams API represents a readable stream of byte data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
 */
interface ReadableStream<R = any> {
    /**
     * The **\`locked\`** read-only property of the ReadableStream interface returns whether or not the readable stream is locked to a reader.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked)
     */
    readonly locked: boolean;
    /**
     * The **\`cancel()\`** method of the ReadableStream interface returns a Promise that resolves when the stream is canceled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel)
     */
    cancel(reason?: any): Promise<void>;
    /**
     * The **\`getReader()\`** method of the ReadableStream interface creates a reader and locks the stream to it.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
     */
    getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
    getReader(): ReadableStreamDefaultReader<R>;
    getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
    /**
     * The **\`pipeThrough()\`** method of the ReadableStream interface provides a chainable way of piping the current stream through a transform stream or any other writable/readable pair.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough)
     */
    pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
    /**
     * The **\`pipeTo()\`** method of the ReadableStream interface pipes the current \`ReadableStream\` to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)
     */
    pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
    /**
     * The **\`tee()\`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
     */
    tee(): [ReadableStream<R>, ReadableStream<R>];
}

declare var ReadableStream: {
    prototype: ReadableStream;
    new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
    new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
    new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};

/**
 * The \`ReadableStreamBYOBReader\` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)
 */
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
    /**
     * The **\`read()\`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
     */
    read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
    /**
     * The **\`releaseLock()\`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)
     */
    releaseLock(): void;
}

declare var ReadableStreamBYOBReader: {
    prototype: ReadableStreamBYOBReader;
    new(stream: ReadableStream<Uint8Array<ArrayBuffer>>): ReadableStreamBYOBReader;
};

/**
 * The **\`ReadableStreamBYOBRequest\`** interface of the Streams API represents a 'pull request' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)
 */
interface ReadableStreamBYOBRequest {
    /**
     * The **\`view\`** getter property of the ReadableStreamBYOBRequest interface returns the current view.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view)
     */
    readonly view: ArrayBufferView<ArrayBuffer> | null;
    /**
     * The **\`respond()\`** method of the ReadableStreamBYOBRequest interface is used to signal to the associated readable byte stream that the specified number of bytes were written into the ReadableStreamBYOBRequest.view.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond)
     */
    respond(bytesWritten: number): void;
    /**
     * The **\`respondWithNewView()\`** method of the ReadableStreamBYOBRequest interface specifies a new view that the consumer of the associated readable byte stream should write to instead of ReadableStreamBYOBRequest.view.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView)
     */
    respondWithNewView(view: ArrayBufferView<ArrayBuffer>): void;
}

declare var ReadableStreamBYOBRequest: {
    prototype: ReadableStreamBYOBRequest;
    new(): ReadableStreamBYOBRequest;
};

/**
 * The **\`ReadableStreamDefaultController\`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)
 */
interface ReadableStreamDefaultController<R = any> {
    /**
     * The **\`desiredSize\`** read-only property of the required to fill the stream's internal queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
     */
    readonly desiredSize: number | null;
    /**
     * The **\`close()\`** method of the ReadableStreamDefaultController interface closes the associated stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close)
     */
    close(): void;
    /**
     * The **\`enqueue()\`** method of the \`\`\`js-nolint enqueue(chunk) \`\`\` - \`chunk\` - : The chunk to enqueue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
     */
    enqueue(chunk?: R): void;
    /**
     * The **\`error()\`** method of the with the associated stream to error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
     */
    error(e?: any): void;
}

declare var ReadableStreamDefaultController: {
    prototype: ReadableStreamDefaultController;
    new(): ReadableStreamDefaultController;
};

/**
 * The **\`ReadableStreamDefaultReader\`** interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)
 */
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
    /**
     * The **\`read()\`** method of the ReadableStreamDefaultReader interface returns a Promise providing access to the next chunk in the stream's internal queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read)
     */
    read(): Promise<ReadableStreamReadResult<R>>;
    /**
     * The **\`releaseLock()\`** method of the ReadableStreamDefaultReader interface releases the reader's lock on the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock)
     */
    releaseLock(): void;
}

declare var ReadableStreamDefaultReader: {
    prototype: ReadableStreamDefaultReader;
    new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};

interface ReadableStreamGenericReader {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
    readonly closed: Promise<void>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
    cancel(reason?: any): Promise<void>;
}

/**
 * The \`Report\` interface of the Reporting API represents a single report.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
 */
interface Report {
    /**
     * The **\`body\`** read-only property of the Report interface returns the body of the report, which is a \`ReportBody\` object containing the detailed report information.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
     */
    readonly body: ReportBody | null;
    /**
     * The **\`type\`** read-only property of the Report interface returns the type of report generated, e.g., \`deprecation\` or \`intervention\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
     */
    readonly type: string;
    /**
     * The **\`url\`** read-only property of the Report interface returns the URL of the document that generated the report.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
     */
    readonly url: string;
    toJSON(): any;
}

declare var Report: {
    prototype: Report;
    new(): Report;
};

/**
 * The **\`ReportBody\`** interface of the Reporting API represents the body of a report.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
 */
interface ReportBody {
    /**
     * The **\`toJSON()\`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the \`ReportBody\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
     */
    toJSON(): any;
}

declare var ReportBody: {
    prototype: ReportBody;
    new(): ReportBody;
};

/**
 * The \`ReportingObserver\` interface of the Reporting API allows you to collect and access reports.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver)
 */
interface ReportingObserver {
    /**
     * The **\`disconnect()\`** method of the previously started observing from collecting reports.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect)
     */
    disconnect(): void;
    /**
     * The **\`observe()\`** method of the collecting reports in its report queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe)
     */
    observe(): void;
    /**
     * The **\`takeRecords()\`** method of the in the observer's report queue, and empties the queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords)
     */
    takeRecords(): ReportList;
}

declare var ReportingObserver: {
    prototype: ReportingObserver;
    new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
};

/**
 * The **\`Request\`** interface of the Fetch API represents a resource request.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
 */
interface Request extends Body {
    /**
     * The **\`cache\`** read-only property of the Request interface contains the cache mode of the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
     */
    readonly cache: RequestCache;
    /**
     * The **\`credentials\`** read-only property of the Request interface reflects the value given to the Request.Request() constructor in the \`credentials\` option.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
     */
    readonly credentials: RequestCredentials;
    /**
     * The **\`destination\`** read-only property of the **Request** interface returns a string describing the type of content being requested.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
     */
    readonly destination: RequestDestination;
    /**
     * The **\`headers\`** read-only property of the with the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
     */
    readonly headers: Headers;
    /**
     * The **\`integrity\`** read-only property of the Request interface contains the subresource integrity value of the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
     */
    readonly integrity: string;
    /**
     * The **\`keepalive\`** read-only property of the Request interface contains the request's \`keepalive\` setting (\`true\` or \`false\`), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
     */
    readonly keepalive: boolean;
    /**
     * The **\`method\`** read-only property of the \`POST\`, etc.) A String indicating the method of the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
     */
    readonly method: string;
    /**
     * The **\`mode\`** read-only property of the Request interface contains the mode of the request (e.g., \`cors\`, \`no-cors\`, \`same-origin\`, or \`navigate\`.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
     */
    readonly mode: RequestMode;
    /**
     * The **\`redirect\`** read-only property of the Request interface contains the mode for how redirects are handled.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
     */
    readonly redirect: RequestRedirect;
    /**
     * The **\`referrer\`** read-only property of the Request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
     */
    readonly referrer: string;
    /**
     * The **\`referrerPolicy\`** read-only property of the referrer information, sent in the Referer header, should be included with the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
     */
    readonly referrerPolicy: ReferrerPolicy;
    /**
     * The read-only **\`signal\`** property of the Request interface returns the AbortSignal associated with the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
     */
    readonly signal: AbortSignal;
    /**
     * The **\`url\`** read-only property of the Request interface contains the URL of the request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
     */
    readonly url: string;
    /**
     * The **\`clone()\`** method of the Request interface creates a copy of the current \`Request\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone)
     */
    clone(): Request;
}

declare var Request: {
    prototype: Request;
    new(input: RequestInfo | URL, init?: RequestInit): Request;
};

/**
 * The **\`Response\`** interface of the Fetch API represents the response to a request.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
 */
interface Response extends Body {
    /**
     * The **\`headers\`** read-only property of the with the response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers)
     */
    readonly headers: Headers;
    /**
     * The **\`ok\`** read-only property of the Response interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok)
     */
    readonly ok: boolean;
    /**
     * The **\`redirected\`** read-only property of the Response interface indicates whether or not the response is the result of a request you made which was redirected.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected)
     */
    readonly redirected: boolean;
    /**
     * The **\`status\`** read-only property of the Response interface contains the HTTP status codes of the response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status)
     */
    readonly status: number;
    /**
     * The **\`statusText\`** read-only property of the Response interface contains the status message corresponding to the HTTP status code in Response.status.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText)
     */
    readonly statusText: string;
    /**
     * The **\`type\`** read-only property of the Response interface contains the type of the response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)
     */
    readonly type: ResponseType;
    /**
     * The **\`url\`** read-only property of the Response interface contains the URL of the response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)
     */
    readonly url: string;
    /**
     * The **\`clone()\`** method of the Response interface creates a clone of a response object, identical in every way, but stored in a different variable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone)
     */
    clone(): Response;
}

declare var Response: {
    prototype: Response;
    new(body?: BodyInit | null, init?: ResponseInit): Response;
    /**
     * The **\`error()\`** static method of the Response interface returns a new \`Response\` object associated with a network error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static)
     */
    error(): Response;
    /**
     * The **\`json()\`** static method of the Response interface returns a \`Response\` that contains the provided JSON data as body, and a Content-Type header which is set to \`application/json\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)
     */
    json(data: any, init?: ResponseInit): Response;
    /**
     * The **\`redirect()\`** static method of the Response interface returns a \`Response\` resulting in a redirect to the specified URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static)
     */
    redirect(url: string | URL, status?: number): Response;
};

/**
 * The **\`SecurityPolicyViolationEvent\`** interface inherits from Event, and represents the event object of a \`securitypolicyviolation\` event sent on an Element/securitypolicyviolation_event, Document/securitypolicyviolation_event, or WorkerGlobalScope/securitypolicyviolation_event when its Content Security Policy (CSP) is violated.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
 */
interface SecurityPolicyViolationEvent extends Event {
    /**
     * The **\`blockedURI\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the resource that was blocked because it violates a Content Security Policy (CSP).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)
     */
    readonly blockedURI: string;
    /**
     * The **\`columnNumber\`** read-only property of the SecurityPolicyViolationEvent interface is the column number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)
     */
    readonly columnNumber: number;
    /**
     * The **\`disposition\`** read-only property of the SecurityPolicyViolationEvent interface indicates how the violated Content Security Policy (CSP) is configured to be treated by the user agent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition)
     */
    readonly disposition: SecurityPolicyViolationEventDisposition;
    /**
     * The **\`documentURI\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URI of the document or worker in which the Content Security Policy (CSP) violation occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI)
     */
    readonly documentURI: string;
    /**
     * The **\`effectiveDirective\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)
     */
    readonly effectiveDirective: string;
    /**
     * The **\`lineNumber\`** read-only property of the SecurityPolicyViolationEvent interface is the line number in the document or worker script at which the Content Security Policy (CSP) violation occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)
     */
    readonly lineNumber: number;
    /**
     * The **\`originalPolicy\`** read-only property of the SecurityPolicyViolationEvent interface is a string containing the Content Security Policy (CSP) whose enforcement uncovered the violation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)
     */
    readonly originalPolicy: string;
    /**
     * The **\`referrer\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the referrer for the resources whose Content Security Policy (CSP) was violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer)
     */
    readonly referrer: string;
    /**
     * The **\`sample\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing a sample of the resource that caused the Content Security Policy (CSP) violation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample)
     */
    readonly sample: string;
    /**
     * The **\`sourceFile\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the URL of the script in which the Content Security Policy (CSP) violation occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)
     */
    readonly sourceFile: string;
    /**
     * The **\`statusCode\`** read-only property of the SecurityPolicyViolationEvent interface is a number representing the HTTP status code of the window or worker in which the Content Security Policy (CSP) violation occurred.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode)
     */
    readonly statusCode: number;
    /**
     * The **\`violatedDirective\`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the Content Security Policy (CSP) directive that was violated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective)
     */
    readonly violatedDirective: string;
}

declare var SecurityPolicyViolationEvent: {
    prototype: SecurityPolicyViolationEvent;
    new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};

interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
    "statechange": Event;
}

/**
 * The **\`ServiceWorker\`** interface of the Service Worker API provides a reference to a service worker.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)
 */
interface ServiceWorker extends EventTarget, AbstractWorker {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */
    onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
    /**
     * Returns the \`ServiceWorker\` serialized script URL defined as part of \`ServiceWorkerRegistration\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL)
     */
    readonly scriptURL: string;
    /**
     * The **\`state\`** read-only property of the of the service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state)
     */
    readonly state: ServiceWorkerState;
    /**
     * The **\`postMessage()\`** method of the ServiceWorker interface sends a message to the worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage)
     */
    postMessage(message: any, transfer: Transferable[]): void;
    postMessage(message: any, options?: StructuredSerializeOptions): void;
    addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var ServiceWorker: {
    prototype: ServiceWorker;
    new(): ServiceWorker;
};

interface ServiceWorkerContainerEventMap {
    "controllerchange": Event;
    "message": MessageEvent;
    "messageerror": MessageEvent;
}

/**
 * The **\`ServiceWorkerContainer\`** interface of the Service Worker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)
 */
interface ServiceWorkerContainer extends EventTarget {
    /**
     * The **\`controller\`** read-only property of the ServiceWorkerContainer interface returns a \`activated\` (the same object returned by \`null\` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
     */
    readonly controller: ServiceWorker | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */
    oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
    onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
    onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
    /**
     * The **\`ready\`** read-only property of the ServiceWorkerContainer interface provides a way of delaying code execution until a service worker is active.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready)
     */
    readonly ready: Promise<ServiceWorkerRegistration>;
    /**
     * The **\`getRegistration()\`** method of the client URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration)
     */
    getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
    /**
     * The **\`getRegistrations()\`** method of the \`ServiceWorkerContainer\`, in an array.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations)
     */
    getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
    /**
     * The **\`register()\`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
     */
    register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
    /**
     * The **\`startMessages()\`** method of the ServiceWorkerContainer interface explicitly starts the flow of messages being dispatched from a service worker to pages under its control (e.g., sent via Client.postMessage()).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages)
     */
    startMessages(): void;
    addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var ServiceWorkerContainer: {
    prototype: ServiceWorkerContainer;
    new(): ServiceWorkerContainer;
};

interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
    "activate": ExtendableEvent;
    "cookiechange": ExtendableCookieChangeEvent;
    "fetch": FetchEvent;
    "install": ExtendableEvent;
    "message": ExtendableMessageEvent;
    "messageerror": MessageEvent;
    "notificationclick": NotificationEvent;
    "notificationclose": NotificationEvent;
    "push": PushEvent;
    "pushsubscriptionchange": PushSubscriptionChangeEvent;
}

/**
 * The **\`ServiceWorkerGlobalScope\`** interface of the Service Worker API represents the global execution context of a service worker.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
 */
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
    /**
     * The **\`clients\`** read-only property of the object associated with the service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients)
     */
    readonly clients: Clients;
    /**
     * The **\`cookieStore\`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the CookieStore object associated with this service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookieStore)
     */
    readonly cookieStore: CookieStore;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
    onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/cookiechange_event) */
    oncookiechange: ((this: ServiceWorkerGlobalScope, ev: ExtendableCookieChangeEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
    onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
    oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
    onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
    onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
    onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
    onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */
    onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */
    onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: PushSubscriptionChangeEvent) => any) | null;
    /**
     * The **\`registration\`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorkerRegistration object, which represents the service worker's registration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration)
     */
    readonly registration: ServiceWorkerRegistration;
    /**
     * The **\`serviceWorker\`** read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorker object, which represents the service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker)
     */
    readonly serviceWorker: ServiceWorker;
    /**
     * The **\`skipWaiting()\`** method of the ServiceWorkerGlobalScope interface forces the waiting service worker to become the active service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting)
     */
    skipWaiting(): Promise<void>;
    addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var ServiceWorkerGlobalScope: {
    prototype: ServiceWorkerGlobalScope;
    new(): ServiceWorkerGlobalScope;
};

interface ServiceWorkerRegistrationEventMap {
    "updatefound": Event;
}

/**
 * The **\`ServiceWorkerRegistration\`** interface of the Service Worker API represents the service worker registration.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
 */
interface ServiceWorkerRegistration extends EventTarget {
    /**
     * The **\`active\`** read-only property of the This property is initially set to \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
     */
    readonly active: ServiceWorker | null;
    /**
     * The **\`cookies\`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
     */
    readonly cookies: CookieStoreManager;
    /**
     * The **\`installing\`** read-only property of the initially set to \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing)
     */
    readonly installing: ServiceWorker | null;
    /**
     * The **\`navigationPreload\`** read-only property of the ServiceWorkerRegistration interface returns the NavigationPreloadManager associated with the current service worker registration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload)
     */
    readonly navigationPreload: NavigationPreloadManager;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
    onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
    /**
     * The **\`pushManager\`** read-only property of the support for subscribing, getting an active subscription, and accessing push permission status.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
     */
    readonly pushManager: PushManager;
    /**
     * The **\`scope\`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope)
     */
    readonly scope: string;
    /**
     * The **\`updateViaCache\`** read-only property of the ServiceWorkerRegistration interface returns the value of the setting used to determine the circumstances in which the browser will consult the HTTP cache when it tries to update the service worker or any scripts that are imported via WorkerGlobalScope.importScripts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache)
     */
    readonly updateViaCache: ServiceWorkerUpdateViaCache;
    /**
     * The **\`waiting\`** read-only property of the set to \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting)
     */
    readonly waiting: ServiceWorker | null;
    /**
     * The **\`getNotifications()\`** method of the ServiceWorkerRegistration interface returns a list of the notifications in the order that they were created from the current origin via the current service worker registration.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications)
     */
    getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
    /**
     * The **\`showNotification()\`** method of the service worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification)
     */
    showNotification(title: string, options?: NotificationOptions): Promise<void>;
    /**
     * The **\`unregister()\`** method of the registration and returns a Promise.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister)
     */
    unregister(): Promise<boolean>;
    /**
     * The **\`update()\`** method of the worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update)
     */
    update(): Promise<ServiceWorkerRegistration>;
    addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var ServiceWorkerRegistration: {
    prototype: ServiceWorkerRegistration;
    new(): ServiceWorkerRegistration;
};

interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
    "connect": MessageEvent;
}

/**
 * The **\`SharedWorkerGlobalScope\`** object (the SharedWorker global scope) is accessible through the window.self keyword.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope)
 */
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
    /**
     * The **\`name\`** read-only property of the that the SharedWorker.SharedWorker constructor can pass to get a reference to the SharedWorkerGlobalScope.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/name)
     */
    readonly name: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/connect_event) */
    onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
    /**
     * The **\`close()\`** method of the SharedWorkerGlobalScope interface discards any tasks queued in the \`SharedWorkerGlobalScope\`'s event loop, effectively closing this particular scope.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/close)
     */
    close(): void;
    addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var SharedWorkerGlobalScope: {
    prototype: SharedWorkerGlobalScope;
    new(): SharedWorkerGlobalScope;
};

/**
 * The **\`StorageManager\`** interface of the Storage API provides an interface for managing persistence permissions and estimating available storage.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
 */
interface StorageManager {
    /**
     * The **\`estimate()\`** method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (\`usage\`), and how much space is available (\`quota\`).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate)
     */
    estimate(): Promise<StorageEstimate>;
    /**
     * The **\`getDirectory()\`** method of the StorageManager interface is used to obtain a reference to a FileSystemDirectoryHandle object allowing access to a directory and its contents, stored in the origin private file system (OPFS).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory)
     */
    getDirectory(): Promise<FileSystemDirectoryHandle>;
    /**
     * The **\`persisted()\`** method of the StorageManager interface returns a Promise that resolves to \`true\` if your site's storage bucket is persistent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted)
     */
    persisted(): Promise<boolean>;
}

declare var StorageManager: {
    prototype: StorageManager;
    new(): StorageManager;
};

/**
 * The **\`StylePropertyMapReadOnly\`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly)
 */
interface StylePropertyMapReadOnly {
    /**
     * The **\`size\`** read-only property of the containing the size of the \`StylePropertyMapReadOnly\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size)
     */
    readonly size: number;
    /**
     * The **\`get()\`** method of the object for the first value of the specified property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get)
     */
    get(property: string): undefined | CSSStyleValue;
    /**
     * The **\`getAll()\`** method of the \`\`\`js-nolint getAll(property) \`\`\` - \`property\` - : The name of the property to retrieve all values of.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll)
     */
    getAll(property: string): CSSStyleValue[];
    /**
     * The **\`has()\`** method of the property is in the \`StylePropertyMapReadOnly\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has)
     */
    has(property: string): boolean;
    forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
}

declare var StylePropertyMapReadOnly: {
    prototype: StylePropertyMapReadOnly;
    new(): StylePropertyMapReadOnly;
};

/**
 * The **\`SubtleCrypto\`** interface of the Web Crypto API provides a number of low-level cryptographic functions.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
 */
interface SubtleCrypto {
    /**
     * The **\`decrypt()\`** method of the SubtleCrypto interface decrypts some encrypted data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt)
     */
    decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
    /**
     * The **\`deriveBits()\`** method of the key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits)
     */
    deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise<ArrayBuffer>;
    /**
     * The **\`deriveKey()\`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
     */
    deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
    /**
     * The **\`digest()\`** method of the SubtleCrypto interface generates a _digest_ of the given data, using the specified hash function.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest)
     */
    digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
    /**
     * The **\`encrypt()\`** method of the SubtleCrypto interface encrypts data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt)
     */
    encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
    /**
     * The **\`exportKey()\`** method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey)
     */
    exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
    exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
    exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
    /**
     * The **\`generateKey()\`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
     */
    generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
    generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
    /**
     * The **\`importKey()\`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
     */
    importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
    importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
    /**
     * The **\`sign()\`** method of the SubtleCrypto interface generates a digital signature.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign)
     */
    sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
    /**
     * The **\`unwrapKey()\`** method of the SubtleCrypto interface 'unwraps' a key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
     */
    unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
    /**
     * The **\`verify()\`** method of the SubtleCrypto interface verifies a digital signature.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify)
     */
    verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
    /**
     * The **\`wrapKey()\`** method of the SubtleCrypto interface 'wraps' a key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey)
     */
    wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}

declare var SubtleCrypto: {
    prototype: SubtleCrypto;
    new(): SubtleCrypto;
};

/**
 * The **\`TextDecoder\`** interface represents a decoder for a specific text encoding, such as \`UTF-8\`, \`ISO-8859-2\`, \`KOI8-R\`, \`GBK\`, etc.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
 */
interface TextDecoder extends TextDecoderCommon {
    /**
     * The **\`TextDecoder.decode()\`** method returns a string containing text decoded from the buffer passed as a parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
     */
    decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
}

declare var TextDecoder: {
    prototype: TextDecoder;
    new(label?: string, options?: TextDecoderOptions): TextDecoder;
};

interface TextDecoderCommon {
    /**
     * Returns encoding's name, lowercased.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
     */
    readonly encoding: string;
    /**
     * Returns true if error mode is "fatal", otherwise false.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
     */
    readonly fatal: boolean;
    /**
     * Returns the value of ignore BOM.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
     */
    readonly ignoreBOM: boolean;
}

/**
 * The **\`TextDecoderStream\`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
 */
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
    readonly readable: ReadableStream<string>;
    readonly writable: WritableStream<BufferSource>;
}

declare var TextDecoderStream: {
    prototype: TextDecoderStream;
    new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};

/**
 * The **\`TextEncoder\`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
 */
interface TextEncoder extends TextEncoderCommon {
    /**
     * The **\`TextEncoder.encode()\`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
     */
    encode(input?: string): Uint8Array<ArrayBuffer>;
    /**
     * The **\`TextEncoder.encodeInto()\`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
     */
    encodeInto(source: string, destination: Uint8Array<ArrayBufferLike>): TextEncoderEncodeIntoResult;
}

declare var TextEncoder: {
    prototype: TextEncoder;
    new(): TextEncoder;
};

interface TextEncoderCommon {
    /**
     * Returns "utf-8".
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
     */
    readonly encoding: string;
}

/**
 * The **\`TextEncoderStream\`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
 */
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
    readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
    readonly writable: WritableStream<string>;
}

declare var TextEncoderStream: {
    prototype: TextEncoderStream;
    new(): TextEncoderStream;
};

/**
 * The **\`TextMetrics\`** interface represents the dimensions of a piece of text in the canvas; a \`TextMetrics\` instance can be retrieved using the CanvasRenderingContext2D.measureText() method.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
 */
interface TextMetrics {
    /**
     * The read-only **\`actualBoundingBoxAscent\`** property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle used to render the text, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
     */
    readonly actualBoundingBoxAscent: number;
    /**
     * The read-only \`actualBoundingBoxDescent\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle used to render the text, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
     */
    readonly actualBoundingBoxDescent: number;
    /**
     * The read-only \`actualBoundingBoxLeft\` property of the TextMetrics interface is a \`double\` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the given text, in CSS pixels; positive numbers indicating a distance going left from the given alignment point.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
     */
    readonly actualBoundingBoxLeft: number;
    /**
     * The read-only \`actualBoundingBoxRight\` property of the TextMetrics interface is a \`double\` giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the given text, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
     */
    readonly actualBoundingBoxRight: number;
    /**
     * The read-only \`alphabeticBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the alphabetic baseline of the line box, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
     */
    readonly alphabeticBaseline: number;
    /**
     * The read-only \`emHeightAscent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the top of the _em_ square in the line box, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
     */
    readonly emHeightAscent: number;
    /**
     * The read-only \`emHeightDescent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the bottom of the _em_ square in the line box, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
     */
    readonly emHeightDescent: number;
    /**
     * The read-only \`fontBoundingBoxAscent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute, to the top of the highest bounding rectangle of all the fonts used to render the text, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
     */
    readonly fontBoundingBoxAscent: number;
    /**
     * The read-only \`fontBoundingBoxDescent\` property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle of all the fonts used to render the text, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
     */
    readonly fontBoundingBoxDescent: number;
    /**
     * The read-only \`hangingBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the hanging baseline of the line box, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
     */
    readonly hangingBaseline: number;
    /**
     * The read-only \`ideographicBaseline\` property of the TextMetrics interface is a \`double\` giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the ideographic baseline of the line box, in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
     */
    readonly ideographicBaseline: number;
    /**
     * The read-only **\`width\`** property of the TextMetrics interface contains the text's advance width (the width of that inline box) in CSS pixels.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
     */
    readonly width: number;
}

declare var TextMetrics: {
    prototype: TextMetrics;
    new(): TextMetrics;
};

/**
 * The **\`TransformStream\`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)
 */
interface TransformStream<I = any, O = any> {
    /**
     * The **\`readable\`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this \`TransformStream\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
     */
    readonly readable: ReadableStream<O>;
    /**
     * The **\`writable\`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this \`TransformStream\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
     */
    readonly writable: WritableStream<I>;
}

declare var TransformStream: {
    prototype: TransformStream;
    new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};

/**
 * The **\`TransformStreamDefaultController\`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)
 */
interface TransformStreamDefaultController<O = any> {
    /**
     * The **\`desiredSize\`** read-only property of the TransformStreamDefaultController interface returns the desired size to fill the queue of the associated ReadableStream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize)
     */
    readonly desiredSize: number | null;
    /**
     * The **\`enqueue()\`** method of the TransformStreamDefaultController interface enqueues the given chunk in the readable side of the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue)
     */
    enqueue(chunk?: O): void;
    /**
     * The **\`error()\`** method of the TransformStreamDefaultController interface errors both sides of the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)
     */
    error(reason?: any): void;
    /**
     * The **\`terminate()\`** method of the TransformStreamDefaultController interface closes the readable side and errors the writable side of the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate)
     */
    terminate(): void;
}

declare var TransformStreamDefaultController: {
    prototype: TransformStreamDefaultController;
    new(): TransformStreamDefaultController;
};

/**
 * The **\`URL\`** interface is used to parse, construct, normalize, and encode URL.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
 */
interface URL {
    /**
     * The **\`hash\`** property of the URL interface is a string containing a \`'#'\` followed by the fragment identifier of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)
     */
    hash: string;
    /**
     * The **\`host\`** property of the URL interface is a string containing the host, which is the URL.hostname, and then, if the port of the URL is nonempty, a \`':'\`, followed by the URL.port of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
     */
    host: string;
    /**
     * The **\`hostname\`** property of the URL interface is a string containing either the domain name or IP address of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
     */
    hostname: string;
    /**
     * The **\`href\`** property of the URL interface is a string containing the whole URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href)
     */
    href: string;
    toString(): string;
    /**
     * The **\`origin\`** read-only property of the URL interface returns a string containing the Unicode serialization of the origin of the represented URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin)
     */
    readonly origin: string;
    /**
     * The **\`password\`** property of the URL interface is a string containing the password component of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
     */
    password: string;
    /**
     * The **\`pathname\`** property of the URL interface represents a location in a hierarchical structure.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
     */
    pathname: string;
    /**
     * The **\`port\`** property of the URL interface is a string containing the port number of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
     */
    port: string;
    /**
     * The **\`protocol\`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final \`':'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)
     */
    protocol: string;
    /**
     * The **\`search\`** property of the URL interface is a search string, also called a _query string_, that is a string containing a \`'?'\` followed by the parameters of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)
     */
    search: string;
    /**
     * The **\`searchParams\`** read-only property of the access to the [MISSING: httpmethod('GET')] decoded query arguments contained in the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
     */
    readonly searchParams: URLSearchParams;
    /**
     * The **\`username\`** property of the URL interface is a string containing the username component of the URL.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
     */
    username: string;
    /**
     * The **\`toJSON()\`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as \`\`\`js-nolint toJSON() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)
     */
    toJSON(): string;
}

declare var URL: {
    prototype: URL;
    new(url: string | URL, base?: string | URL): URL;
    /**
     * The **\`URL.canParse()\`** static method of the URL interface returns a boolean indicating whether or not an absolute URL, or a relative URL combined with a base URL, are parsable and valid.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static)
     */
    canParse(url: string | URL, base?: string | URL): boolean;
    /**
     * The **\`createObjectURL()\`** static method of the URL interface creates a string containing a URL representing the object given in the parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static)
     */
    createObjectURL(obj: Blob): string;
    /**
     * The **\`URL.parse()\`** static method of the URL interface returns a newly created URL object representing the URL defined by the parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/parse_static)
     */
    parse(url: string | URL, base?: string | URL): URL | null;
    /**
     * The **\`revokeObjectURL()\`** static method of the URL interface releases an existing object URL which was previously created by calling Call this method when you've finished using an object URL to let the browser know not to keep the reference to the file any longer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static)
     */
    revokeObjectURL(url: string): void;
};

/**
 * The **\`URLSearchParams\`** interface defines utility methods to work with the query string of a URL.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
 */
interface URLSearchParams {
    /**
     * The **\`size\`** read-only property of the URLSearchParams interface indicates the total number of search parameter entries.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size)
     */
    readonly size: number;
    /**
     * The **\`append()\`** method of the URLSearchParams interface appends a specified key/value pair as a new search parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
     */
    append(name: string, value: string): void;
    /**
     * The **\`delete()\`** method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
     */
    delete(name: string, value?: string): void;
    /**
     * The **\`get()\`** method of the URLSearchParams interface returns the first value associated to the given search parameter.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
     */
    get(name: string): string | null;
    /**
     * The **\`getAll()\`** method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
     */
    getAll(name: string): string[];
    /**
     * The **\`has()\`** method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
     */
    has(name: string, value?: string): boolean;
    /**
     * The **\`set()\`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
     */
    set(name: string, value: string): void;
    /**
     * The **\`URLSearchParams.sort()\`** method sorts all key/value pairs contained in this object in place and returns \`undefined\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)
     */
    sort(): void;
    toString(): string;
    forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}

declare var URLSearchParams: {
    prototype: URLSearchParams;
    new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
};

/**
 * The **\`VideoColorSpace\`** interface of the WebCodecs API represents the color space of a video.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace)
 */
interface VideoColorSpace {
    /**
     * The **\`fullRange\`** read-only property of the VideoColorSpace interface returns \`true\` if full-range color values are used.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange)
     */
    readonly fullRange: boolean | null;
    /**
     * The **\`matrix\`** read-only property of the VideoColorSpace interface returns the matrix coefficient of the video.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix)
     */
    readonly matrix: VideoMatrixCoefficients | null;
    /**
     * The **\`primaries\`** read-only property of the VideoColorSpace interface returns the color gamut of the video.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries)
     */
    readonly primaries: VideoColorPrimaries | null;
    /**
     * The **\`transfer\`** read-only property of the VideoColorSpace interface returns the opto-electronic transfer characteristics of the video.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer)
     */
    readonly transfer: VideoTransferCharacteristics | null;
    /**
     * The **\`toJSON()\`** method of the VideoColorSpace interface is a _serializer_ that returns a JSON representation of the \`VideoColorSpace\` object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON)
     */
    toJSON(): VideoColorSpaceInit;
}

declare var VideoColorSpace: {
    prototype: VideoColorSpace;
    new(init?: VideoColorSpaceInit): VideoColorSpace;
};

interface VideoDecoderEventMap {
    "dequeue": Event;
}

/**
 * The **\`VideoDecoder\`** interface of the WebCodecs API decodes chunks of video.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
 */
interface VideoDecoder extends EventTarget {
    /**
     * The **\`decodeQueueSize\`** read-only property of the VideoDecoder interface returns the number of pending decode requests in the queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize)
     */
    readonly decodeQueueSize: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/dequeue_event) */
    ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
    /**
     * The **\`state\`** property of the VideoDecoder interface returns the current state of the underlying codec.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state)
     */
    readonly state: CodecState;
    /**
     * The **\`close()\`** method of the VideoDecoder interface ends all pending work and releases system resources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close)
     */
    close(): void;
    /**
     * The **\`configure()\`** method of the VideoDecoder interface enqueues a control message to configure the video decoder for decoding chunks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure)
     */
    configure(config: VideoDecoderConfig): void;
    /**
     * The **\`decode()\`** method of the VideoDecoder interface enqueues a control message to decode a given chunk of video.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode)
     */
    decode(chunk: EncodedVideoChunk): void;
    /**
     * The **\`flush()\`** method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush)
     */
    flush(): Promise<void>;
    /**
     * The **\`reset()\`** method of the VideoDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset)
     */
    reset(): void;
    addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var VideoDecoder: {
    prototype: VideoDecoder;
    new(init: VideoDecoderInit): VideoDecoder;
    /**
     * The **\`isConfigSupported()\`** static method of the VideoDecoder interface checks if the given config is supported (that is, if VideoDecoder objects can be successfully configured with the given config).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/isConfigSupported_static)
     */
    isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};

interface VideoEncoderEventMap {
    "dequeue": Event;
}

/**
 * The **\`VideoEncoder\`** interface of the WebCodecs API encodes VideoFrame objects into EncodedVideoChunks.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
 */
interface VideoEncoder extends EventTarget {
    /**
     * The **\`encodeQueueSize\`** read-only property of the VideoEncoder interface returns the number of pending encode requests in the queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize)
     */
    readonly encodeQueueSize: number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/dequeue_event) */
    ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
    /**
     * The **\`state\`** read-only property of the VideoEncoder interface returns the current state of the underlying codec.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state)
     */
    readonly state: CodecState;
    /**
     * The **\`close()\`** method of the VideoEncoder interface ends all pending work and releases system resources.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close)
     */
    close(): void;
    /**
     * The **\`configure()\`** method of the VideoEncoder interface changes the VideoEncoder.state of the encoder to 'configured' and asynchronously prepares the encoder to accept VideoEncoders for encoding with the specified parameters.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure)
     */
    configure(config: VideoEncoderConfig): void;
    /**
     * The **\`encode()\`** method of the VideoEncoder interface asynchronously encodes a VideoFrame.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode)
     */
    encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
    /**
     * The **\`flush()\`** method of the VideoEncoder interface forces all pending encodes to complete.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/flush)
     */
    flush(): Promise<void>;
    /**
     * The **\`reset()\`** method of the VideoEncoder interface synchronously cancels all pending encodes and callbacks, frees all underlying resources and sets the VideoEncoder.state to 'unconfigured'.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset)
     */
    reset(): void;
    addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var VideoEncoder: {
    prototype: VideoEncoder;
    new(init: VideoEncoderInit): VideoEncoder;
    /**
     * The **\`isConfigSupported()\`** static method of the VideoEncoder interface checks if VideoEncoder can be successfully configured with the given config.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/isConfigSupported_static)
     */
    isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};

/**
 * The **\`VideoFrame\`** interface of the Web Codecs API represents a frame of a video.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame)
 */
interface VideoFrame {
    /**
     * The **\`codedHeight\`** property of the VideoFrame interface returns the height of the VideoFrame in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight)
     */
    readonly codedHeight: number;
    /**
     * The **\`codedRect\`** property of the VideoFrame interface returns a DOMRectReadOnly with the width and height matching VideoFrame.codedWidth and VideoFrame.codedHeight.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect)
     */
    readonly codedRect: DOMRectReadOnly | null;
    /**
     * The **\`codedWidth\`** property of the VideoFrame interface returns the width of the \`VideoFrame\` in pixels, potentially including non-visible padding, and prior to considering potential ratio adjustments.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth)
     */
    readonly codedWidth: number;
    /**
     * The **\`colorSpace\`** property of the VideoFrame interface returns a VideoColorSpace object representing the color space of the video.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace)
     */
    readonly colorSpace: VideoColorSpace;
    /**
     * The **\`displayHeight\`** property of the VideoFrame interface returns the height of the \`VideoFrame\` after applying aspect ratio adjustments.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight)
     */
    readonly displayHeight: number;
    /**
     * The **\`displayWidth\`** property of the VideoFrame interface returns the width of the \`VideoFrame\` after applying aspect ratio adjustments.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth)
     */
    readonly displayWidth: number;
    /**
     * The **\`duration\`** property of the VideoFrame interface returns an integer indicating the duration of the video in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration)
     */
    readonly duration: number | null;
    /**
     * The **\`format\`** property of the VideoFrame interface returns the pixel format of the \`VideoFrame\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format)
     */
    readonly format: VideoPixelFormat | null;
    /**
     * The **\`timestamp\`** property of the VideoFrame interface returns an integer indicating the timestamp of the video in microseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp)
     */
    readonly timestamp: number;
    /**
     * The **\`visibleRect\`** property of the VideoFrame interface returns a DOMRectReadOnly describing the visible rectangle of pixels for this \`VideoFrame\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect)
     */
    readonly visibleRect: DOMRectReadOnly | null;
    /**
     * The **\`allocationSize()\`** method of the VideoFrame interface returns the number of bytes required to hold the video as filtered by options passed into the method.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize)
     */
    allocationSize(options?: VideoFrameCopyToOptions): number;
    /**
     * The **\`clone()\`** method of the VideoFrame interface creates a new \`VideoFrame\` object referencing the same media resource as the original.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone)
     */
    clone(): VideoFrame;
    /**
     * The **\`close()\`** method of the VideoFrame interface clears all states and releases the reference to the media resource.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close)
     */
    close(): void;
    /**
     * The **\`copyTo()\`** method of the VideoFrame interface copies the contents of the \`VideoFrame\` to an \`ArrayBuffer\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/copyTo)
     */
    copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}

declare var VideoFrame: {
    prototype: VideoFrame;
    new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
    new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
};

/**
 * The **\`WEBGL_color_buffer_float\`** extension is part of the WebGL API and adds the ability to render to 32-bit floating-point color buffers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float)
 */
interface WEBGL_color_buffer_float {
    readonly RGBA32F_EXT: 0x8814;
    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
    readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}

/**
 * The **\`WEBGL_compressed_texture_astc\`** extension is part of the WebGL API and exposes Adaptive Scalable Texture Compression (ASTC) compressed texture formats to WebGL.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc)
 */
interface WEBGL_compressed_texture_astc {
    /**
     * The **\`WEBGL_compressed_texture_astc.getSupportedProfiles()\`** method returns an array of strings containing the names of the ASTC profiles supported by the implementation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles)
     */
    getSupportedProfiles(): string[];
    readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
    readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
    readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
    readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
    readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
    readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
    readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
    readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
    readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
    readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
    readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
    readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
    readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
    readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
}

/**
 * The **\`WEBGL_compressed_texture_etc\`** extension is part of the WebGL API and exposes 10 ETC/EAC compressed texture formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc)
 */
interface WEBGL_compressed_texture_etc {
    readonly COMPRESSED_R11_EAC: 0x9270;
    readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
    readonly COMPRESSED_RG11_EAC: 0x9272;
    readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
    readonly COMPRESSED_RGB8_ETC2: 0x9274;
    readonly COMPRESSED_SRGB8_ETC2: 0x9275;
    readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
    readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
    readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
    readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
}

/**
 * The **\`WEBGL_compressed_texture_etc1\`** extension is part of the WebGL API and exposes the ETC1 compressed texture format.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1)
 */
interface WEBGL_compressed_texture_etc1 {
    readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}

/**
 * The **\`WEBGL_compressed_texture_pvrtc\`** extension is part of the WebGL API and exposes four PVRTC compressed texture formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc)
 */
interface WEBGL_compressed_texture_pvrtc {
    readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;
    readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;
    readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;
    readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;
}

/**
 * The **\`WEBGL_compressed_texture_s3tc\`** extension is part of the WebGL API and exposes four S3TC compressed texture formats.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)
 */
interface WEBGL_compressed_texture_s3tc {
    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
}

/**
 * The **\`WEBGL_compressed_texture_s3tc_srgb\`** extension is part of the WebGL API and exposes four S3TC compressed texture formats for the sRGB colorspace.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb)
 */
interface WEBGL_compressed_texture_s3tc_srgb {
    readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
}

/**
 * The **\`WEBGL_debug_renderer_info\`** extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)
 */
interface WEBGL_debug_renderer_info {
    readonly UNMASKED_VENDOR_WEBGL: 0x9245;
    readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}

/**
 * The **\`WEBGL_debug_shaders\`** extension is part of the WebGL API and exposes a method to debug shaders from privileged contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders)
 */
interface WEBGL_debug_shaders {
    /**
     * The **\`WEBGL_debug_shaders.getTranslatedShaderSource()\`** method is part of the WebGL API and allows you to debug a translated shader.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource)
     */
    getTranslatedShaderSource(shader: WebGLShader): string;
}

/**
 * The **\`WEBGL_depth_texture\`** extension is part of the WebGL API and defines 2D depth and depth-stencil textures.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)
 */
interface WEBGL_depth_texture {
    readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}

/**
 * The **\`WEBGL_draw_buffers\`** extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers)
 */
interface WEBGL_draw_buffers {
    /**
     * The **\`WEBGL_draw_buffers.drawBuffersWEBGL()\`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
     */
    drawBuffersWEBGL(buffers: GLenum[]): void;
    readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
    readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
    readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
    readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
    readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
    readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
    readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
    readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
    readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
    readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
    readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
    readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
    readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
    readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
    readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
    readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
    readonly DRAW_BUFFER0_WEBGL: 0x8825;
    readonly DRAW_BUFFER1_WEBGL: 0x8826;
    readonly DRAW_BUFFER2_WEBGL: 0x8827;
    readonly DRAW_BUFFER3_WEBGL: 0x8828;
    readonly DRAW_BUFFER4_WEBGL: 0x8829;
    readonly DRAW_BUFFER5_WEBGL: 0x882A;
    readonly DRAW_BUFFER6_WEBGL: 0x882B;
    readonly DRAW_BUFFER7_WEBGL: 0x882C;
    readonly DRAW_BUFFER8_WEBGL: 0x882D;
    readonly DRAW_BUFFER9_WEBGL: 0x882E;
    readonly DRAW_BUFFER10_WEBGL: 0x882F;
    readonly DRAW_BUFFER11_WEBGL: 0x8830;
    readonly DRAW_BUFFER12_WEBGL: 0x8831;
    readonly DRAW_BUFFER13_WEBGL: 0x8832;
    readonly DRAW_BUFFER14_WEBGL: 0x8833;
    readonly DRAW_BUFFER15_WEBGL: 0x8834;
    readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
    readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
}

/**
 * The **WEBGL_lose_context** extension is part of the WebGL API and exposes functions to simulate losing and restoring a WebGLRenderingContext.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context)
 */
interface WEBGL_lose_context {
    /**
     * The **WEBGL_lose_context.loseContext()** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
     */
    loseContext(): void;
    /**
     * The **WEBGL_lose_context.restoreContext()** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
     */
    restoreContext(): void;
}

/**
 * The **\`WEBGL_multi_draw\`** extension is part of the WebGL API and allows to render more than one primitive with a single function call.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw)
 */
interface WEBGL_multi_draw {
    /**
     * The **\`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
     */
    multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawArraysWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
     */
    multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
     */
    multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawElementsWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
     */
    multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
}

/**
 * The **WebGL2RenderingContext** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML canvas element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext)
 */
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}

declare var WebGL2RenderingContext: {
    prototype: WebGL2RenderingContext;
    new(): WebGL2RenderingContext;
    readonly READ_BUFFER: 0x0C02;
    readonly UNPACK_ROW_LENGTH: 0x0CF2;
    readonly UNPACK_SKIP_ROWS: 0x0CF3;
    readonly UNPACK_SKIP_PIXELS: 0x0CF4;
    readonly PACK_ROW_LENGTH: 0x0D02;
    readonly PACK_SKIP_ROWS: 0x0D03;
    readonly PACK_SKIP_PIXELS: 0x0D04;
    readonly COLOR: 0x1800;
    readonly DEPTH: 0x1801;
    readonly STENCIL: 0x1802;
    readonly RED: 0x1903;
    readonly RGB8: 0x8051;
    readonly RGB10_A2: 0x8059;
    readonly TEXTURE_BINDING_3D: 0x806A;
    readonly UNPACK_SKIP_IMAGES: 0x806D;
    readonly UNPACK_IMAGE_HEIGHT: 0x806E;
    readonly TEXTURE_3D: 0x806F;
    readonly TEXTURE_WRAP_R: 0x8072;
    readonly MAX_3D_TEXTURE_SIZE: 0x8073;
    readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
    readonly MAX_ELEMENTS_VERTICES: 0x80E8;
    readonly MAX_ELEMENTS_INDICES: 0x80E9;
    readonly TEXTURE_MIN_LOD: 0x813A;
    readonly TEXTURE_MAX_LOD: 0x813B;
    readonly TEXTURE_BASE_LEVEL: 0x813C;
    readonly TEXTURE_MAX_LEVEL: 0x813D;
    readonly MIN: 0x8007;
    readonly MAX: 0x8008;
    readonly DEPTH_COMPONENT24: 0x81A6;
    readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
    readonly TEXTURE_COMPARE_MODE: 0x884C;
    readonly TEXTURE_COMPARE_FUNC: 0x884D;
    readonly CURRENT_QUERY: 0x8865;
    readonly QUERY_RESULT: 0x8866;
    readonly QUERY_RESULT_AVAILABLE: 0x8867;
    readonly STREAM_READ: 0x88E1;
    readonly STREAM_COPY: 0x88E2;
    readonly STATIC_READ: 0x88E5;
    readonly STATIC_COPY: 0x88E6;
    readonly DYNAMIC_READ: 0x88E9;
    readonly DYNAMIC_COPY: 0x88EA;
    readonly MAX_DRAW_BUFFERS: 0x8824;
    readonly DRAW_BUFFER0: 0x8825;
    readonly DRAW_BUFFER1: 0x8826;
    readonly DRAW_BUFFER2: 0x8827;
    readonly DRAW_BUFFER3: 0x8828;
    readonly DRAW_BUFFER4: 0x8829;
    readonly DRAW_BUFFER5: 0x882A;
    readonly DRAW_BUFFER6: 0x882B;
    readonly DRAW_BUFFER7: 0x882C;
    readonly DRAW_BUFFER8: 0x882D;
    readonly DRAW_BUFFER9: 0x882E;
    readonly DRAW_BUFFER10: 0x882F;
    readonly DRAW_BUFFER11: 0x8830;
    readonly DRAW_BUFFER12: 0x8831;
    readonly DRAW_BUFFER13: 0x8832;
    readonly DRAW_BUFFER14: 0x8833;
    readonly DRAW_BUFFER15: 0x8834;
    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
    readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
    readonly SAMPLER_3D: 0x8B5F;
    readonly SAMPLER_2D_SHADOW: 0x8B62;
    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
    readonly PIXEL_PACK_BUFFER: 0x88EB;
    readonly PIXEL_UNPACK_BUFFER: 0x88EC;
    readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
    readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
    readonly FLOAT_MAT2x3: 0x8B65;
    readonly FLOAT_MAT2x4: 0x8B66;
    readonly FLOAT_MAT3x2: 0x8B67;
    readonly FLOAT_MAT3x4: 0x8B68;
    readonly FLOAT_MAT4x2: 0x8B69;
    readonly FLOAT_MAT4x3: 0x8B6A;
    readonly SRGB: 0x8C40;
    readonly SRGB8: 0x8C41;
    readonly SRGB8_ALPHA8: 0x8C43;
    readonly COMPARE_REF_TO_TEXTURE: 0x884E;
    readonly RGBA32F: 0x8814;
    readonly RGB32F: 0x8815;
    readonly RGBA16F: 0x881A;
    readonly RGB16F: 0x881B;
    readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
    readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
    readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
    readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
    readonly MAX_VARYING_COMPONENTS: 0x8B4B;
    readonly TEXTURE_2D_ARRAY: 0x8C1A;
    readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
    readonly R11F_G11F_B10F: 0x8C3A;
    readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
    readonly RGB9_E5: 0x8C3D;
    readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
    readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
    readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
    readonly RASTERIZER_DISCARD: 0x8C89;
    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
    readonly INTERLEAVED_ATTRIBS: 0x8C8C;
    readonly SEPARATE_ATTRIBS: 0x8C8D;
    readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
    readonly RGBA32UI: 0x8D70;
    readonly RGB32UI: 0x8D71;
    readonly RGBA16UI: 0x8D76;
    readonly RGB16UI: 0x8D77;
    readonly RGBA8UI: 0x8D7C;
    readonly RGB8UI: 0x8D7D;
    readonly RGBA32I: 0x8D82;
    readonly RGB32I: 0x8D83;
    readonly RGBA16I: 0x8D88;
    readonly RGB16I: 0x8D89;
    readonly RGBA8I: 0x8D8E;
    readonly RGB8I: 0x8D8F;
    readonly RED_INTEGER: 0x8D94;
    readonly RGB_INTEGER: 0x8D98;
    readonly RGBA_INTEGER: 0x8D99;
    readonly SAMPLER_2D_ARRAY: 0x8DC1;
    readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
    readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
    readonly UNSIGNED_INT_VEC2: 0x8DC6;
    readonly UNSIGNED_INT_VEC3: 0x8DC7;
    readonly UNSIGNED_INT_VEC4: 0x8DC8;
    readonly INT_SAMPLER_2D: 0x8DCA;
    readonly INT_SAMPLER_3D: 0x8DCB;
    readonly INT_SAMPLER_CUBE: 0x8DCC;
    readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
    readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
    readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
    readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
    readonly DEPTH_COMPONENT32F: 0x8CAC;
    readonly DEPTH32F_STENCIL8: 0x8CAD;
    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
    readonly FRAMEBUFFER_DEFAULT: 0x8218;
    readonly UNSIGNED_INT_24_8: 0x84FA;
    readonly DEPTH24_STENCIL8: 0x88F0;
    readonly UNSIGNED_NORMALIZED: 0x8C17;
    readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
    readonly READ_FRAMEBUFFER: 0x8CA8;
    readonly DRAW_FRAMEBUFFER: 0x8CA9;
    readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
    readonly RENDERBUFFER_SAMPLES: 0x8CAB;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
    readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
    readonly COLOR_ATTACHMENT1: 0x8CE1;
    readonly COLOR_ATTACHMENT2: 0x8CE2;
    readonly COLOR_ATTACHMENT3: 0x8CE3;
    readonly COLOR_ATTACHMENT4: 0x8CE4;
    readonly COLOR_ATTACHMENT5: 0x8CE5;
    readonly COLOR_ATTACHMENT6: 0x8CE6;
    readonly COLOR_ATTACHMENT7: 0x8CE7;
    readonly COLOR_ATTACHMENT8: 0x8CE8;
    readonly COLOR_ATTACHMENT9: 0x8CE9;
    readonly COLOR_ATTACHMENT10: 0x8CEA;
    readonly COLOR_ATTACHMENT11: 0x8CEB;
    readonly COLOR_ATTACHMENT12: 0x8CEC;
    readonly COLOR_ATTACHMENT13: 0x8CED;
    readonly COLOR_ATTACHMENT14: 0x8CEE;
    readonly COLOR_ATTACHMENT15: 0x8CEF;
    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
    readonly MAX_SAMPLES: 0x8D57;
    readonly HALF_FLOAT: 0x140B;
    readonly RG: 0x8227;
    readonly RG_INTEGER: 0x8228;
    readonly R8: 0x8229;
    readonly RG8: 0x822B;
    readonly R16F: 0x822D;
    readonly R32F: 0x822E;
    readonly RG16F: 0x822F;
    readonly RG32F: 0x8230;
    readonly R8I: 0x8231;
    readonly R8UI: 0x8232;
    readonly R16I: 0x8233;
    readonly R16UI: 0x8234;
    readonly R32I: 0x8235;
    readonly R32UI: 0x8236;
    readonly RG8I: 0x8237;
    readonly RG8UI: 0x8238;
    readonly RG16I: 0x8239;
    readonly RG16UI: 0x823A;
    readonly RG32I: 0x823B;
    readonly RG32UI: 0x823C;
    readonly VERTEX_ARRAY_BINDING: 0x85B5;
    readonly R8_SNORM: 0x8F94;
    readonly RG8_SNORM: 0x8F95;
    readonly RGB8_SNORM: 0x8F96;
    readonly RGBA8_SNORM: 0x8F97;
    readonly SIGNED_NORMALIZED: 0x8F9C;
    readonly COPY_READ_BUFFER: 0x8F36;
    readonly COPY_WRITE_BUFFER: 0x8F37;
    readonly COPY_READ_BUFFER_BINDING: 0x8F36;
    readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
    readonly UNIFORM_BUFFER: 0x8A11;
    readonly UNIFORM_BUFFER_BINDING: 0x8A28;
    readonly UNIFORM_BUFFER_START: 0x8A29;
    readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
    readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
    readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
    readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
    readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
    readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
    readonly UNIFORM_TYPE: 0x8A37;
    readonly UNIFORM_SIZE: 0x8A38;
    readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
    readonly UNIFORM_OFFSET: 0x8A3B;
    readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
    readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
    readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
    readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
    readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
    readonly INVALID_INDEX: 0xFFFFFFFF;
    readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
    readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
    readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
    readonly OBJECT_TYPE: 0x9112;
    readonly SYNC_CONDITION: 0x9113;
    readonly SYNC_STATUS: 0x9114;
    readonly SYNC_FLAGS: 0x9115;
    readonly SYNC_FENCE: 0x9116;
    readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
    readonly UNSIGNALED: 0x9118;
    readonly SIGNALED: 0x9119;
    readonly ALREADY_SIGNALED: 0x911A;
    readonly TIMEOUT_EXPIRED: 0x911B;
    readonly CONDITION_SATISFIED: 0x911C;
    readonly WAIT_FAILED: 0x911D;
    readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
    readonly ANY_SAMPLES_PASSED: 0x8C2F;
    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
    readonly SAMPLER_BINDING: 0x8919;
    readonly RGB10_A2UI: 0x906F;
    readonly INT_2_10_10_10_REV: 0x8D9F;
    readonly TRANSFORM_FEEDBACK: 0x8E22;
    readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
    readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
    readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
    readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
    readonly MAX_ELEMENT_INDEX: 0x8D6B;
    readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
    readonly TIMEOUT_IGNORED: -1;
    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
    readonly DEPTH_BUFFER_BIT: 0x00000100;
    readonly STENCIL_BUFFER_BIT: 0x00000400;
    readonly COLOR_BUFFER_BIT: 0x00004000;
    readonly POINTS: 0x0000;
    readonly LINES: 0x0001;
    readonly LINE_LOOP: 0x0002;
    readonly LINE_STRIP: 0x0003;
    readonly TRIANGLES: 0x0004;
    readonly TRIANGLE_STRIP: 0x0005;
    readonly TRIANGLE_FAN: 0x0006;
    readonly ZERO: 0;
    readonly ONE: 1;
    readonly SRC_COLOR: 0x0300;
    readonly ONE_MINUS_SRC_COLOR: 0x0301;
    readonly SRC_ALPHA: 0x0302;
    readonly ONE_MINUS_SRC_ALPHA: 0x0303;
    readonly DST_ALPHA: 0x0304;
    readonly ONE_MINUS_DST_ALPHA: 0x0305;
    readonly DST_COLOR: 0x0306;
    readonly ONE_MINUS_DST_COLOR: 0x0307;
    readonly SRC_ALPHA_SATURATE: 0x0308;
    readonly FUNC_ADD: 0x8006;
    readonly BLEND_EQUATION: 0x8009;
    readonly BLEND_EQUATION_RGB: 0x8009;
    readonly BLEND_EQUATION_ALPHA: 0x883D;
    readonly FUNC_SUBTRACT: 0x800A;
    readonly FUNC_REVERSE_SUBTRACT: 0x800B;
    readonly BLEND_DST_RGB: 0x80C8;
    readonly BLEND_SRC_RGB: 0x80C9;
    readonly BLEND_DST_ALPHA: 0x80CA;
    readonly BLEND_SRC_ALPHA: 0x80CB;
    readonly CONSTANT_COLOR: 0x8001;
    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
    readonly CONSTANT_ALPHA: 0x8003;
    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
    readonly BLEND_COLOR: 0x8005;
    readonly ARRAY_BUFFER: 0x8892;
    readonly ELEMENT_ARRAY_BUFFER: 0x8893;
    readonly ARRAY_BUFFER_BINDING: 0x8894;
    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
    readonly STREAM_DRAW: 0x88E0;
    readonly STATIC_DRAW: 0x88E4;
    readonly DYNAMIC_DRAW: 0x88E8;
    readonly BUFFER_SIZE: 0x8764;
    readonly BUFFER_USAGE: 0x8765;
    readonly CURRENT_VERTEX_ATTRIB: 0x8626;
    readonly FRONT: 0x0404;
    readonly BACK: 0x0405;
    readonly FRONT_AND_BACK: 0x0408;
    readonly CULL_FACE: 0x0B44;
    readonly BLEND: 0x0BE2;
    readonly DITHER: 0x0BD0;
    readonly STENCIL_TEST: 0x0B90;
    readonly DEPTH_TEST: 0x0B71;
    readonly SCISSOR_TEST: 0x0C11;
    readonly POLYGON_OFFSET_FILL: 0x8037;
    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
    readonly SAMPLE_COVERAGE: 0x80A0;
    readonly NO_ERROR: 0;
    readonly INVALID_ENUM: 0x0500;
    readonly INVALID_VALUE: 0x0501;
    readonly INVALID_OPERATION: 0x0502;
    readonly OUT_OF_MEMORY: 0x0505;
    readonly CW: 0x0900;
    readonly CCW: 0x0901;
    readonly LINE_WIDTH: 0x0B21;
    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
    readonly CULL_FACE_MODE: 0x0B45;
    readonly FRONT_FACE: 0x0B46;
    readonly DEPTH_RANGE: 0x0B70;
    readonly DEPTH_WRITEMASK: 0x0B72;
    readonly DEPTH_CLEAR_VALUE: 0x0B73;
    readonly DEPTH_FUNC: 0x0B74;
    readonly STENCIL_CLEAR_VALUE: 0x0B91;
    readonly STENCIL_FUNC: 0x0B92;
    readonly STENCIL_FAIL: 0x0B94;
    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
    readonly STENCIL_REF: 0x0B97;
    readonly STENCIL_VALUE_MASK: 0x0B93;
    readonly STENCIL_WRITEMASK: 0x0B98;
    readonly STENCIL_BACK_FUNC: 0x8800;
    readonly STENCIL_BACK_FAIL: 0x8801;
    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
    readonly STENCIL_BACK_REF: 0x8CA3;
    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
    readonly VIEWPORT: 0x0BA2;
    readonly SCISSOR_BOX: 0x0C10;
    readonly COLOR_CLEAR_VALUE: 0x0C22;
    readonly COLOR_WRITEMASK: 0x0C23;
    readonly UNPACK_ALIGNMENT: 0x0CF5;
    readonly PACK_ALIGNMENT: 0x0D05;
    readonly MAX_TEXTURE_SIZE: 0x0D33;
    readonly MAX_VIEWPORT_DIMS: 0x0D3A;
    readonly SUBPIXEL_BITS: 0x0D50;
    readonly RED_BITS: 0x0D52;
    readonly GREEN_BITS: 0x0D53;
    readonly BLUE_BITS: 0x0D54;
    readonly ALPHA_BITS: 0x0D55;
    readonly DEPTH_BITS: 0x0D56;
    readonly STENCIL_BITS: 0x0D57;
    readonly POLYGON_OFFSET_UNITS: 0x2A00;
    readonly POLYGON_OFFSET_FACTOR: 0x8038;
    readonly TEXTURE_BINDING_2D: 0x8069;
    readonly SAMPLE_BUFFERS: 0x80A8;
    readonly SAMPLES: 0x80A9;
    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
    readonly DONT_CARE: 0x1100;
    readonly FASTEST: 0x1101;
    readonly NICEST: 0x1102;
    readonly GENERATE_MIPMAP_HINT: 0x8192;
    readonly BYTE: 0x1400;
    readonly UNSIGNED_BYTE: 0x1401;
    readonly SHORT: 0x1402;
    readonly UNSIGNED_SHORT: 0x1403;
    readonly INT: 0x1404;
    readonly UNSIGNED_INT: 0x1405;
    readonly FLOAT: 0x1406;
    readonly DEPTH_COMPONENT: 0x1902;
    readonly ALPHA: 0x1906;
    readonly RGB: 0x1907;
    readonly RGBA: 0x1908;
    readonly LUMINANCE: 0x1909;
    readonly LUMINANCE_ALPHA: 0x190A;
    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
    readonly UNSIGNED_SHORT_5_6_5: 0x8363;
    readonly FRAGMENT_SHADER: 0x8B30;
    readonly VERTEX_SHADER: 0x8B31;
    readonly MAX_VERTEX_ATTRIBS: 0x8869;
    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
    readonly MAX_VARYING_VECTORS: 0x8DFC;
    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
    readonly SHADER_TYPE: 0x8B4F;
    readonly DELETE_STATUS: 0x8B80;
    readonly LINK_STATUS: 0x8B82;
    readonly VALIDATE_STATUS: 0x8B83;
    readonly ATTACHED_SHADERS: 0x8B85;
    readonly ACTIVE_UNIFORMS: 0x8B86;
    readonly ACTIVE_ATTRIBUTES: 0x8B89;
    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
    readonly CURRENT_PROGRAM: 0x8B8D;
    readonly NEVER: 0x0200;
    readonly LESS: 0x0201;
    readonly EQUAL: 0x0202;
    readonly LEQUAL: 0x0203;
    readonly GREATER: 0x0204;
    readonly NOTEQUAL: 0x0205;
    readonly GEQUAL: 0x0206;
    readonly ALWAYS: 0x0207;
    readonly KEEP: 0x1E00;
    readonly REPLACE: 0x1E01;
    readonly INCR: 0x1E02;
    readonly DECR: 0x1E03;
    readonly INVERT: 0x150A;
    readonly INCR_WRAP: 0x8507;
    readonly DECR_WRAP: 0x8508;
    readonly VENDOR: 0x1F00;
    readonly RENDERER: 0x1F01;
    readonly VERSION: 0x1F02;
    readonly NEAREST: 0x2600;
    readonly LINEAR: 0x2601;
    readonly NEAREST_MIPMAP_NEAREST: 0x2700;
    readonly LINEAR_MIPMAP_NEAREST: 0x2701;
    readonly NEAREST_MIPMAP_LINEAR: 0x2702;
    readonly LINEAR_MIPMAP_LINEAR: 0x2703;
    readonly TEXTURE_MAG_FILTER: 0x2800;
    readonly TEXTURE_MIN_FILTER: 0x2801;
    readonly TEXTURE_WRAP_S: 0x2802;
    readonly TEXTURE_WRAP_T: 0x2803;
    readonly TEXTURE_2D: 0x0DE1;
    readonly TEXTURE: 0x1702;
    readonly TEXTURE_CUBE_MAP: 0x8513;
    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
    readonly TEXTURE0: 0x84C0;
    readonly TEXTURE1: 0x84C1;
    readonly TEXTURE2: 0x84C2;
    readonly TEXTURE3: 0x84C3;
    readonly TEXTURE4: 0x84C4;
    readonly TEXTURE5: 0x84C5;
    readonly TEXTURE6: 0x84C6;
    readonly TEXTURE7: 0x84C7;
    readonly TEXTURE8: 0x84C8;
    readonly TEXTURE9: 0x84C9;
    readonly TEXTURE10: 0x84CA;
    readonly TEXTURE11: 0x84CB;
    readonly TEXTURE12: 0x84CC;
    readonly TEXTURE13: 0x84CD;
    readonly TEXTURE14: 0x84CE;
    readonly TEXTURE15: 0x84CF;
    readonly TEXTURE16: 0x84D0;
    readonly TEXTURE17: 0x84D1;
    readonly TEXTURE18: 0x84D2;
    readonly TEXTURE19: 0x84D3;
    readonly TEXTURE20: 0x84D4;
    readonly TEXTURE21: 0x84D5;
    readonly TEXTURE22: 0x84D6;
    readonly TEXTURE23: 0x84D7;
    readonly TEXTURE24: 0x84D8;
    readonly TEXTURE25: 0x84D9;
    readonly TEXTURE26: 0x84DA;
    readonly TEXTURE27: 0x84DB;
    readonly TEXTURE28: 0x84DC;
    readonly TEXTURE29: 0x84DD;
    readonly TEXTURE30: 0x84DE;
    readonly TEXTURE31: 0x84DF;
    readonly ACTIVE_TEXTURE: 0x84E0;
    readonly REPEAT: 0x2901;
    readonly CLAMP_TO_EDGE: 0x812F;
    readonly MIRRORED_REPEAT: 0x8370;
    readonly FLOAT_VEC2: 0x8B50;
    readonly FLOAT_VEC3: 0x8B51;
    readonly FLOAT_VEC4: 0x8B52;
    readonly INT_VEC2: 0x8B53;
    readonly INT_VEC3: 0x8B54;
    readonly INT_VEC4: 0x8B55;
    readonly BOOL: 0x8B56;
    readonly BOOL_VEC2: 0x8B57;
    readonly BOOL_VEC3: 0x8B58;
    readonly BOOL_VEC4: 0x8B59;
    readonly FLOAT_MAT2: 0x8B5A;
    readonly FLOAT_MAT3: 0x8B5B;
    readonly FLOAT_MAT4: 0x8B5C;
    readonly SAMPLER_2D: 0x8B5E;
    readonly SAMPLER_CUBE: 0x8B60;
    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
    readonly COMPILE_STATUS: 0x8B81;
    readonly LOW_FLOAT: 0x8DF0;
    readonly MEDIUM_FLOAT: 0x8DF1;
    readonly HIGH_FLOAT: 0x8DF2;
    readonly LOW_INT: 0x8DF3;
    readonly MEDIUM_INT: 0x8DF4;
    readonly HIGH_INT: 0x8DF5;
    readonly FRAMEBUFFER: 0x8D40;
    readonly RENDERBUFFER: 0x8D41;
    readonly RGBA4: 0x8056;
    readonly RGB5_A1: 0x8057;
    readonly RGBA8: 0x8058;
    readonly RGB565: 0x8D62;
    readonly DEPTH_COMPONENT16: 0x81A5;
    readonly STENCIL_INDEX8: 0x8D48;
    readonly DEPTH_STENCIL: 0x84F9;
    readonly RENDERBUFFER_WIDTH: 0x8D42;
    readonly RENDERBUFFER_HEIGHT: 0x8D43;
    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
    readonly RENDERBUFFER_RED_SIZE: 0x8D50;
    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
    readonly COLOR_ATTACHMENT0: 0x8CE0;
    readonly DEPTH_ATTACHMENT: 0x8D00;
    readonly STENCIL_ATTACHMENT: 0x8D20;
    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
    readonly NONE: 0;
    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
    readonly FRAMEBUFFER_BINDING: 0x8CA6;
    readonly RENDERBUFFER_BINDING: 0x8CA7;
    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
    readonly CONTEXT_LOST_WEBGL: 0x9242;
    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
    readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};

interface WebGL2RenderingContextBase {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */
    beginQuery(target: GLenum, query: WebGLQuery): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */
    beginTransformFeedback(primitiveMode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */
    bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */
    bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */
    bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */
    bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */
    bindVertexArray(array: WebGLVertexArrayObject | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */
    blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
    clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
    compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
    compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */
    copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
    copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */
    createQuery(): WebGLQuery;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
    createSampler(): WebGLSampler;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
    createTransformFeedback(): WebGLTransformFeedback;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
    createVertexArray(): WebGLVertexArrayObject;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */
    deleteQuery(query: WebGLQuery | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */
    deleteSampler(sampler: WebGLSampler | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */
    deleteSync(sync: WebGLSync | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */
    deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */
    deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */
    drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
    drawBuffers(buffers: GLenum[]): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */
    drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */
    drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */
    endQuery(target: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */
    endTransformFeedback(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */
    fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */
    framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */
    getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */
    getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
    getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */
    getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView<ArrayBufferLike>, dstOffset?: number, length?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */
    getFragDataLocation(program: WebGLProgram, name: string): GLint;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */
    getIndexedParameter(target: GLenum, index: GLuint): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */
    getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */
    getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */
    getQueryParameter(query: WebGLQuery, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */
    getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */
    getSyncParameter(sync: WebGLSync, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */
    getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */
    getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
    getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
    invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
    invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */
    isQuery(query: WebGLQuery | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */
    isSampler(sampler: WebGLSampler | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */
    isSync(sync: WebGLSync | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */
    isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */
    isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */
    pauseTransformFeedback(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */
    readBuffer(src: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */
    renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */
    resumeTransformFeedback(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
    samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
    samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */
    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike> | null): void;
    texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */
    texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */
    texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */
    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
    texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike> | null, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
    transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */
    uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */
    vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4iv(index: GLuint, values: Int32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */
    vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */
    waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
    readonly READ_BUFFER: 0x0C02;
    readonly UNPACK_ROW_LENGTH: 0x0CF2;
    readonly UNPACK_SKIP_ROWS: 0x0CF3;
    readonly UNPACK_SKIP_PIXELS: 0x0CF4;
    readonly PACK_ROW_LENGTH: 0x0D02;
    readonly PACK_SKIP_ROWS: 0x0D03;
    readonly PACK_SKIP_PIXELS: 0x0D04;
    readonly COLOR: 0x1800;
    readonly DEPTH: 0x1801;
    readonly STENCIL: 0x1802;
    readonly RED: 0x1903;
    readonly RGB8: 0x8051;
    readonly RGB10_A2: 0x8059;
    readonly TEXTURE_BINDING_3D: 0x806A;
    readonly UNPACK_SKIP_IMAGES: 0x806D;
    readonly UNPACK_IMAGE_HEIGHT: 0x806E;
    readonly TEXTURE_3D: 0x806F;
    readonly TEXTURE_WRAP_R: 0x8072;
    readonly MAX_3D_TEXTURE_SIZE: 0x8073;
    readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
    readonly MAX_ELEMENTS_VERTICES: 0x80E8;
    readonly MAX_ELEMENTS_INDICES: 0x80E9;
    readonly TEXTURE_MIN_LOD: 0x813A;
    readonly TEXTURE_MAX_LOD: 0x813B;
    readonly TEXTURE_BASE_LEVEL: 0x813C;
    readonly TEXTURE_MAX_LEVEL: 0x813D;
    readonly MIN: 0x8007;
    readonly MAX: 0x8008;
    readonly DEPTH_COMPONENT24: 0x81A6;
    readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
    readonly TEXTURE_COMPARE_MODE: 0x884C;
    readonly TEXTURE_COMPARE_FUNC: 0x884D;
    readonly CURRENT_QUERY: 0x8865;
    readonly QUERY_RESULT: 0x8866;
    readonly QUERY_RESULT_AVAILABLE: 0x8867;
    readonly STREAM_READ: 0x88E1;
    readonly STREAM_COPY: 0x88E2;
    readonly STATIC_READ: 0x88E5;
    readonly STATIC_COPY: 0x88E6;
    readonly DYNAMIC_READ: 0x88E9;
    readonly DYNAMIC_COPY: 0x88EA;
    readonly MAX_DRAW_BUFFERS: 0x8824;
    readonly DRAW_BUFFER0: 0x8825;
    readonly DRAW_BUFFER1: 0x8826;
    readonly DRAW_BUFFER2: 0x8827;
    readonly DRAW_BUFFER3: 0x8828;
    readonly DRAW_BUFFER4: 0x8829;
    readonly DRAW_BUFFER5: 0x882A;
    readonly DRAW_BUFFER6: 0x882B;
    readonly DRAW_BUFFER7: 0x882C;
    readonly DRAW_BUFFER8: 0x882D;
    readonly DRAW_BUFFER9: 0x882E;
    readonly DRAW_BUFFER10: 0x882F;
    readonly DRAW_BUFFER11: 0x8830;
    readonly DRAW_BUFFER12: 0x8831;
    readonly DRAW_BUFFER13: 0x8832;
    readonly DRAW_BUFFER14: 0x8833;
    readonly DRAW_BUFFER15: 0x8834;
    readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
    readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
    readonly SAMPLER_3D: 0x8B5F;
    readonly SAMPLER_2D_SHADOW: 0x8B62;
    readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
    readonly PIXEL_PACK_BUFFER: 0x88EB;
    readonly PIXEL_UNPACK_BUFFER: 0x88EC;
    readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
    readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
    readonly FLOAT_MAT2x3: 0x8B65;
    readonly FLOAT_MAT2x4: 0x8B66;
    readonly FLOAT_MAT3x2: 0x8B67;
    readonly FLOAT_MAT3x4: 0x8B68;
    readonly FLOAT_MAT4x2: 0x8B69;
    readonly FLOAT_MAT4x3: 0x8B6A;
    readonly SRGB: 0x8C40;
    readonly SRGB8: 0x8C41;
    readonly SRGB8_ALPHA8: 0x8C43;
    readonly COMPARE_REF_TO_TEXTURE: 0x884E;
    readonly RGBA32F: 0x8814;
    readonly RGB32F: 0x8815;
    readonly RGBA16F: 0x881A;
    readonly RGB16F: 0x881B;
    readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
    readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
    readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
    readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
    readonly MAX_VARYING_COMPONENTS: 0x8B4B;
    readonly TEXTURE_2D_ARRAY: 0x8C1A;
    readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
    readonly R11F_G11F_B10F: 0x8C3A;
    readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
    readonly RGB9_E5: 0x8C3D;
    readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
    readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
    readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
    readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
    readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
    readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
    readonly RASTERIZER_DISCARD: 0x8C89;
    readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
    readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
    readonly INTERLEAVED_ATTRIBS: 0x8C8C;
    readonly SEPARATE_ATTRIBS: 0x8C8D;
    readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
    readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
    readonly RGBA32UI: 0x8D70;
    readonly RGB32UI: 0x8D71;
    readonly RGBA16UI: 0x8D76;
    readonly RGB16UI: 0x8D77;
    readonly RGBA8UI: 0x8D7C;
    readonly RGB8UI: 0x8D7D;
    readonly RGBA32I: 0x8D82;
    readonly RGB32I: 0x8D83;
    readonly RGBA16I: 0x8D88;
    readonly RGB16I: 0x8D89;
    readonly RGBA8I: 0x8D8E;
    readonly RGB8I: 0x8D8F;
    readonly RED_INTEGER: 0x8D94;
    readonly RGB_INTEGER: 0x8D98;
    readonly RGBA_INTEGER: 0x8D99;
    readonly SAMPLER_2D_ARRAY: 0x8DC1;
    readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
    readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
    readonly UNSIGNED_INT_VEC2: 0x8DC6;
    readonly UNSIGNED_INT_VEC3: 0x8DC7;
    readonly UNSIGNED_INT_VEC4: 0x8DC8;
    readonly INT_SAMPLER_2D: 0x8DCA;
    readonly INT_SAMPLER_3D: 0x8DCB;
    readonly INT_SAMPLER_CUBE: 0x8DCC;
    readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
    readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
    readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
    readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
    readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
    readonly DEPTH_COMPONENT32F: 0x8CAC;
    readonly DEPTH32F_STENCIL8: 0x8CAD;
    readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
    readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
    readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
    readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
    readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
    readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
    readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
    readonly FRAMEBUFFER_DEFAULT: 0x8218;
    readonly UNSIGNED_INT_24_8: 0x84FA;
    readonly DEPTH24_STENCIL8: 0x88F0;
    readonly UNSIGNED_NORMALIZED: 0x8C17;
    readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
    readonly READ_FRAMEBUFFER: 0x8CA8;
    readonly DRAW_FRAMEBUFFER: 0x8CA9;
    readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
    readonly RENDERBUFFER_SAMPLES: 0x8CAB;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
    readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
    readonly COLOR_ATTACHMENT1: 0x8CE1;
    readonly COLOR_ATTACHMENT2: 0x8CE2;
    readonly COLOR_ATTACHMENT3: 0x8CE3;
    readonly COLOR_ATTACHMENT4: 0x8CE4;
    readonly COLOR_ATTACHMENT5: 0x8CE5;
    readonly COLOR_ATTACHMENT6: 0x8CE6;
    readonly COLOR_ATTACHMENT7: 0x8CE7;
    readonly COLOR_ATTACHMENT8: 0x8CE8;
    readonly COLOR_ATTACHMENT9: 0x8CE9;
    readonly COLOR_ATTACHMENT10: 0x8CEA;
    readonly COLOR_ATTACHMENT11: 0x8CEB;
    readonly COLOR_ATTACHMENT12: 0x8CEC;
    readonly COLOR_ATTACHMENT13: 0x8CED;
    readonly COLOR_ATTACHMENT14: 0x8CEE;
    readonly COLOR_ATTACHMENT15: 0x8CEF;
    readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
    readonly MAX_SAMPLES: 0x8D57;
    readonly HALF_FLOAT: 0x140B;
    readonly RG: 0x8227;
    readonly RG_INTEGER: 0x8228;
    readonly R8: 0x8229;
    readonly RG8: 0x822B;
    readonly R16F: 0x822D;
    readonly R32F: 0x822E;
    readonly RG16F: 0x822F;
    readonly RG32F: 0x8230;
    readonly R8I: 0x8231;
    readonly R8UI: 0x8232;
    readonly R16I: 0x8233;
    readonly R16UI: 0x8234;
    readonly R32I: 0x8235;
    readonly R32UI: 0x8236;
    readonly RG8I: 0x8237;
    readonly RG8UI: 0x8238;
    readonly RG16I: 0x8239;
    readonly RG16UI: 0x823A;
    readonly RG32I: 0x823B;
    readonly RG32UI: 0x823C;
    readonly VERTEX_ARRAY_BINDING: 0x85B5;
    readonly R8_SNORM: 0x8F94;
    readonly RG8_SNORM: 0x8F95;
    readonly RGB8_SNORM: 0x8F96;
    readonly RGBA8_SNORM: 0x8F97;
    readonly SIGNED_NORMALIZED: 0x8F9C;
    readonly COPY_READ_BUFFER: 0x8F36;
    readonly COPY_WRITE_BUFFER: 0x8F37;
    readonly COPY_READ_BUFFER_BINDING: 0x8F36;
    readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
    readonly UNIFORM_BUFFER: 0x8A11;
    readonly UNIFORM_BUFFER_BINDING: 0x8A28;
    readonly UNIFORM_BUFFER_START: 0x8A29;
    readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
    readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
    readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
    readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
    readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
    readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
    readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
    readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
    readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
    readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
    readonly UNIFORM_TYPE: 0x8A37;
    readonly UNIFORM_SIZE: 0x8A38;
    readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
    readonly UNIFORM_OFFSET: 0x8A3B;
    readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
    readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
    readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
    readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
    readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
    readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
    readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
    readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
    readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
    readonly INVALID_INDEX: 0xFFFFFFFF;
    readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
    readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
    readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
    readonly OBJECT_TYPE: 0x9112;
    readonly SYNC_CONDITION: 0x9113;
    readonly SYNC_STATUS: 0x9114;
    readonly SYNC_FLAGS: 0x9115;
    readonly SYNC_FENCE: 0x9116;
    readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
    readonly UNSIGNALED: 0x9118;
    readonly SIGNALED: 0x9119;
    readonly ALREADY_SIGNALED: 0x911A;
    readonly TIMEOUT_EXPIRED: 0x911B;
    readonly CONDITION_SATISFIED: 0x911C;
    readonly WAIT_FAILED: 0x911D;
    readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
    readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
    readonly ANY_SAMPLES_PASSED: 0x8C2F;
    readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
    readonly SAMPLER_BINDING: 0x8919;
    readonly RGB10_A2UI: 0x906F;
    readonly INT_2_10_10_10_REV: 0x8D9F;
    readonly TRANSFORM_FEEDBACK: 0x8E22;
    readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
    readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
    readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
    readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
    readonly MAX_ELEMENT_INDEX: 0x8D6B;
    readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
    readonly TIMEOUT_IGNORED: -1;
    readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
}

interface WebGL2RenderingContextOverloads {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferData) */
    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
    bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
    bufferData(target: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, usage: GLenum, srcOffset: number, length?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bufferSubData) */
    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
    bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number, length?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset?: number, srcLengthOverride?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView<ArrayBufferLike> | null): void;
    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView<ArrayBufferLike>, dstOffset: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView<ArrayBufferLike>, srcOffset: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
}

/**
 * The **WebGLActiveInfo** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)
 */
interface WebGLActiveInfo {
    /**
     * The read-only **\`WebGLActiveInfo.name\`** property represents the name of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name)
     */
    readonly name: string;
    /**
     * The read-only **\`WebGLActiveInfo.size\`** property is a Number representing the size of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size)
     */
    readonly size: GLint;
    /**
     * The read-only **\`WebGLActiveInfo.type\`** property represents the type of the requested data returned by calling the WebGLRenderingContext.getActiveAttrib() or WebGLRenderingContext.getActiveUniform() methods.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type)
     */
    readonly type: GLenum;
}

declare var WebGLActiveInfo: {
    prototype: WebGLActiveInfo;
    new(): WebGLActiveInfo;
};

/**
 * The **WebGLBuffer** interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)
 */
interface WebGLBuffer {
}

declare var WebGLBuffer: {
    prototype: WebGLBuffer;
    new(): WebGLBuffer;
};

/**
 * The **WebGLContextEvent** interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)
 */
interface WebGLContextEvent extends Event {
    /**
     * The read-only **\`WebGLContextEvent.statusMessage\`** property contains additional event status information, or is an empty string if no additional information is available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage)
     */
    readonly statusMessage: string;
}

declare var WebGLContextEvent: {
    prototype: WebGLContextEvent;
    new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};

/**
 * The **WebGLFramebuffer** interface is part of the WebGL API and represents a collection of buffers that serve as a rendering destination.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)
 */
interface WebGLFramebuffer {
}

declare var WebGLFramebuffer: {
    prototype: WebGLFramebuffer;
    new(): WebGLFramebuffer;
};

/**
 * The **\`WebGLProgram\`** is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)
 */
interface WebGLProgram {
}

declare var WebGLProgram: {
    prototype: WebGLProgram;
    new(): WebGLProgram;
};

/**
 * The **\`WebGLQuery\`** interface is part of the WebGL 2 API and provides ways to asynchronously query for information.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery)
 */
interface WebGLQuery {
}

declare var WebGLQuery: {
    prototype: WebGLQuery;
    new(): WebGLQuery;
};

/**
 * The **WebGLRenderbuffer** interface is part of the WebGL API and represents a buffer that can contain an image, or that can be a source or target of a rendering operation.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
 */
interface WebGLRenderbuffer {
}

declare var WebGLRenderbuffer: {
    prototype: WebGLRenderbuffer;
    new(): WebGLRenderbuffer;
};

/**
 * The **\`WebGLRenderingContext\`** interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML canvas element.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)
 */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}

declare var WebGLRenderingContext: {
    prototype: WebGLRenderingContext;
    new(): WebGLRenderingContext;
    readonly DEPTH_BUFFER_BIT: 0x00000100;
    readonly STENCIL_BUFFER_BIT: 0x00000400;
    readonly COLOR_BUFFER_BIT: 0x00004000;
    readonly POINTS: 0x0000;
    readonly LINES: 0x0001;
    readonly LINE_LOOP: 0x0002;
    readonly LINE_STRIP: 0x0003;
    readonly TRIANGLES: 0x0004;
    readonly TRIANGLE_STRIP: 0x0005;
    readonly TRIANGLE_FAN: 0x0006;
    readonly ZERO: 0;
    readonly ONE: 1;
    readonly SRC_COLOR: 0x0300;
    readonly ONE_MINUS_SRC_COLOR: 0x0301;
    readonly SRC_ALPHA: 0x0302;
    readonly ONE_MINUS_SRC_ALPHA: 0x0303;
    readonly DST_ALPHA: 0x0304;
    readonly ONE_MINUS_DST_ALPHA: 0x0305;
    readonly DST_COLOR: 0x0306;
    readonly ONE_MINUS_DST_COLOR: 0x0307;
    readonly SRC_ALPHA_SATURATE: 0x0308;
    readonly FUNC_ADD: 0x8006;
    readonly BLEND_EQUATION: 0x8009;
    readonly BLEND_EQUATION_RGB: 0x8009;
    readonly BLEND_EQUATION_ALPHA: 0x883D;
    readonly FUNC_SUBTRACT: 0x800A;
    readonly FUNC_REVERSE_SUBTRACT: 0x800B;
    readonly BLEND_DST_RGB: 0x80C8;
    readonly BLEND_SRC_RGB: 0x80C9;
    readonly BLEND_DST_ALPHA: 0x80CA;
    readonly BLEND_SRC_ALPHA: 0x80CB;
    readonly CONSTANT_COLOR: 0x8001;
    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
    readonly CONSTANT_ALPHA: 0x8003;
    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
    readonly BLEND_COLOR: 0x8005;
    readonly ARRAY_BUFFER: 0x8892;
    readonly ELEMENT_ARRAY_BUFFER: 0x8893;
    readonly ARRAY_BUFFER_BINDING: 0x8894;
    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
    readonly STREAM_DRAW: 0x88E0;
    readonly STATIC_DRAW: 0x88E4;
    readonly DYNAMIC_DRAW: 0x88E8;
    readonly BUFFER_SIZE: 0x8764;
    readonly BUFFER_USAGE: 0x8765;
    readonly CURRENT_VERTEX_ATTRIB: 0x8626;
    readonly FRONT: 0x0404;
    readonly BACK: 0x0405;
    readonly FRONT_AND_BACK: 0x0408;
    readonly CULL_FACE: 0x0B44;
    readonly BLEND: 0x0BE2;
    readonly DITHER: 0x0BD0;
    readonly STENCIL_TEST: 0x0B90;
    readonly DEPTH_TEST: 0x0B71;
    readonly SCISSOR_TEST: 0x0C11;
    readonly POLYGON_OFFSET_FILL: 0x8037;
    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
    readonly SAMPLE_COVERAGE: 0x80A0;
    readonly NO_ERROR: 0;
    readonly INVALID_ENUM: 0x0500;
    readonly INVALID_VALUE: 0x0501;
    readonly INVALID_OPERATION: 0x0502;
    readonly OUT_OF_MEMORY: 0x0505;
    readonly CW: 0x0900;
    readonly CCW: 0x0901;
    readonly LINE_WIDTH: 0x0B21;
    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
    readonly CULL_FACE_MODE: 0x0B45;
    readonly FRONT_FACE: 0x0B46;
    readonly DEPTH_RANGE: 0x0B70;
    readonly DEPTH_WRITEMASK: 0x0B72;
    readonly DEPTH_CLEAR_VALUE: 0x0B73;
    readonly DEPTH_FUNC: 0x0B74;
    readonly STENCIL_CLEAR_VALUE: 0x0B91;
    readonly STENCIL_FUNC: 0x0B92;
    readonly STENCIL_FAIL: 0x0B94;
    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
    readonly STENCIL_REF: 0x0B97;
    readonly STENCIL_VALUE_MASK: 0x0B93;
    readonly STENCIL_WRITEMASK: 0x0B98;
    readonly STENCIL_BACK_FUNC: 0x8800;
    readonly STENCIL_BACK_FAIL: 0x8801;
    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
    readonly STENCIL_BACK_REF: 0x8CA3;
    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
    readonly VIEWPORT: 0x0BA2;
    readonly SCISSOR_BOX: 0x0C10;
    readonly COLOR_CLEAR_VALUE: 0x0C22;
    readonly COLOR_WRITEMASK: 0x0C23;
    readonly UNPACK_ALIGNMENT: 0x0CF5;
    readonly PACK_ALIGNMENT: 0x0D05;
    readonly MAX_TEXTURE_SIZE: 0x0D33;
    readonly MAX_VIEWPORT_DIMS: 0x0D3A;
    readonly SUBPIXEL_BITS: 0x0D50;
    readonly RED_BITS: 0x0D52;
    readonly GREEN_BITS: 0x0D53;
    readonly BLUE_BITS: 0x0D54;
    readonly ALPHA_BITS: 0x0D55;
    readonly DEPTH_BITS: 0x0D56;
    readonly STENCIL_BITS: 0x0D57;
    readonly POLYGON_OFFSET_UNITS: 0x2A00;
    readonly POLYGON_OFFSET_FACTOR: 0x8038;
    readonly TEXTURE_BINDING_2D: 0x8069;
    readonly SAMPLE_BUFFERS: 0x80A8;
    readonly SAMPLES: 0x80A9;
    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
    readonly DONT_CARE: 0x1100;
    readonly FASTEST: 0x1101;
    readonly NICEST: 0x1102;
    readonly GENERATE_MIPMAP_HINT: 0x8192;
    readonly BYTE: 0x1400;
    readonly UNSIGNED_BYTE: 0x1401;
    readonly SHORT: 0x1402;
    readonly UNSIGNED_SHORT: 0x1403;
    readonly INT: 0x1404;
    readonly UNSIGNED_INT: 0x1405;
    readonly FLOAT: 0x1406;
    readonly DEPTH_COMPONENT: 0x1902;
    readonly ALPHA: 0x1906;
    readonly RGB: 0x1907;
    readonly RGBA: 0x1908;
    readonly LUMINANCE: 0x1909;
    readonly LUMINANCE_ALPHA: 0x190A;
    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
    readonly UNSIGNED_SHORT_5_6_5: 0x8363;
    readonly FRAGMENT_SHADER: 0x8B30;
    readonly VERTEX_SHADER: 0x8B31;
    readonly MAX_VERTEX_ATTRIBS: 0x8869;
    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
    readonly MAX_VARYING_VECTORS: 0x8DFC;
    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
    readonly SHADER_TYPE: 0x8B4F;
    readonly DELETE_STATUS: 0x8B80;
    readonly LINK_STATUS: 0x8B82;
    readonly VALIDATE_STATUS: 0x8B83;
    readonly ATTACHED_SHADERS: 0x8B85;
    readonly ACTIVE_UNIFORMS: 0x8B86;
    readonly ACTIVE_ATTRIBUTES: 0x8B89;
    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
    readonly CURRENT_PROGRAM: 0x8B8D;
    readonly NEVER: 0x0200;
    readonly LESS: 0x0201;
    readonly EQUAL: 0x0202;
    readonly LEQUAL: 0x0203;
    readonly GREATER: 0x0204;
    readonly NOTEQUAL: 0x0205;
    readonly GEQUAL: 0x0206;
    readonly ALWAYS: 0x0207;
    readonly KEEP: 0x1E00;
    readonly REPLACE: 0x1E01;
    readonly INCR: 0x1E02;
    readonly DECR: 0x1E03;
    readonly INVERT: 0x150A;
    readonly INCR_WRAP: 0x8507;
    readonly DECR_WRAP: 0x8508;
    readonly VENDOR: 0x1F00;
    readonly RENDERER: 0x1F01;
    readonly VERSION: 0x1F02;
    readonly NEAREST: 0x2600;
    readonly LINEAR: 0x2601;
    readonly NEAREST_MIPMAP_NEAREST: 0x2700;
    readonly LINEAR_MIPMAP_NEAREST: 0x2701;
    readonly NEAREST_MIPMAP_LINEAR: 0x2702;
    readonly LINEAR_MIPMAP_LINEAR: 0x2703;
    readonly TEXTURE_MAG_FILTER: 0x2800;
    readonly TEXTURE_MIN_FILTER: 0x2801;
    readonly TEXTURE_WRAP_S: 0x2802;
    readonly TEXTURE_WRAP_T: 0x2803;
    readonly TEXTURE_2D: 0x0DE1;
    readonly TEXTURE: 0x1702;
    readonly TEXTURE_CUBE_MAP: 0x8513;
    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
    readonly TEXTURE0: 0x84C0;
    readonly TEXTURE1: 0x84C1;
    readonly TEXTURE2: 0x84C2;
    readonly TEXTURE3: 0x84C3;
    readonly TEXTURE4: 0x84C4;
    readonly TEXTURE5: 0x84C5;
    readonly TEXTURE6: 0x84C6;
    readonly TEXTURE7: 0x84C7;
    readonly TEXTURE8: 0x84C8;
    readonly TEXTURE9: 0x84C9;
    readonly TEXTURE10: 0x84CA;
    readonly TEXTURE11: 0x84CB;
    readonly TEXTURE12: 0x84CC;
    readonly TEXTURE13: 0x84CD;
    readonly TEXTURE14: 0x84CE;
    readonly TEXTURE15: 0x84CF;
    readonly TEXTURE16: 0x84D0;
    readonly TEXTURE17: 0x84D1;
    readonly TEXTURE18: 0x84D2;
    readonly TEXTURE19: 0x84D3;
    readonly TEXTURE20: 0x84D4;
    readonly TEXTURE21: 0x84D5;
    readonly TEXTURE22: 0x84D6;
    readonly TEXTURE23: 0x84D7;
    readonly TEXTURE24: 0x84D8;
    readonly TEXTURE25: 0x84D9;
    readonly TEXTURE26: 0x84DA;
    readonly TEXTURE27: 0x84DB;
    readonly TEXTURE28: 0x84DC;
    readonly TEXTURE29: 0x84DD;
    readonly TEXTURE30: 0x84DE;
    readonly TEXTURE31: 0x84DF;
    readonly ACTIVE_TEXTURE: 0x84E0;
    readonly REPEAT: 0x2901;
    readonly CLAMP_TO_EDGE: 0x812F;
    readonly MIRRORED_REPEAT: 0x8370;
    readonly FLOAT_VEC2: 0x8B50;
    readonly FLOAT_VEC3: 0x8B51;
    readonly FLOAT_VEC4: 0x8B52;
    readonly INT_VEC2: 0x8B53;
    readonly INT_VEC3: 0x8B54;
    readonly INT_VEC4: 0x8B55;
    readonly BOOL: 0x8B56;
    readonly BOOL_VEC2: 0x8B57;
    readonly BOOL_VEC3: 0x8B58;
    readonly BOOL_VEC4: 0x8B59;
    readonly FLOAT_MAT2: 0x8B5A;
    readonly FLOAT_MAT3: 0x8B5B;
    readonly FLOAT_MAT4: 0x8B5C;
    readonly SAMPLER_2D: 0x8B5E;
    readonly SAMPLER_CUBE: 0x8B60;
    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
    readonly COMPILE_STATUS: 0x8B81;
    readonly LOW_FLOAT: 0x8DF0;
    readonly MEDIUM_FLOAT: 0x8DF1;
    readonly HIGH_FLOAT: 0x8DF2;
    readonly LOW_INT: 0x8DF3;
    readonly MEDIUM_INT: 0x8DF4;
    readonly HIGH_INT: 0x8DF5;
    readonly FRAMEBUFFER: 0x8D40;
    readonly RENDERBUFFER: 0x8D41;
    readonly RGBA4: 0x8056;
    readonly RGB5_A1: 0x8057;
    readonly RGBA8: 0x8058;
    readonly RGB565: 0x8D62;
    readonly DEPTH_COMPONENT16: 0x81A5;
    readonly STENCIL_INDEX8: 0x8D48;
    readonly DEPTH_STENCIL: 0x84F9;
    readonly RENDERBUFFER_WIDTH: 0x8D42;
    readonly RENDERBUFFER_HEIGHT: 0x8D43;
    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
    readonly RENDERBUFFER_RED_SIZE: 0x8D50;
    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
    readonly COLOR_ATTACHMENT0: 0x8CE0;
    readonly DEPTH_ATTACHMENT: 0x8D00;
    readonly STENCIL_ATTACHMENT: 0x8D20;
    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
    readonly NONE: 0;
    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
    readonly FRAMEBUFFER_BINDING: 0x8CA6;
    readonly RENDERBUFFER_BINDING: 0x8CA7;
    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
    readonly CONTEXT_LOST_WEBGL: 0x9242;
    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
    readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};

interface WebGLRenderingContextBase {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace) */
    drawingBufferColorSpace: PredefinedColorSpace;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
    readonly drawingBufferHeight: GLsizei;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */
    readonly drawingBufferWidth: GLsizei;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace) */
    unpackColorSpace: PredefinedColorSpace;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */
    activeTexture(texture: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */
    attachShader(program: WebGLProgram, shader: WebGLShader): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */
    bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */
    bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */
    bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */
    bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */
    bindTexture(target: GLenum, texture: WebGLTexture | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */
    blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */
    blendEquation(mode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */
    blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */
    blendFunc(sfactor: GLenum, dfactor: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */
    blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */
    checkFramebufferStatus(target: GLenum): GLenum;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */
    clear(mask: GLbitfield): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */
    clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */
    clearDepth(depth: GLclampf): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */
    clearStencil(s: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */
    colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */
    compileShader(shader: WebGLShader): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */
    copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */
    copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */
    createBuffer(): WebGLBuffer;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
    createFramebuffer(): WebGLFramebuffer;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
    createProgram(): WebGLProgram;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
    createRenderbuffer(): WebGLRenderbuffer;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */
    createShader(type: GLenum): WebGLShader | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */
    createTexture(): WebGLTexture;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */
    cullFace(mode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */
    deleteBuffer(buffer: WebGLBuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */
    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */
    deleteProgram(program: WebGLProgram | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */
    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */
    deleteShader(shader: WebGLShader | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */
    deleteTexture(texture: WebGLTexture | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */
    depthFunc(func: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */
    depthMask(flag: GLboolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */
    depthRange(zNear: GLclampf, zFar: GLclampf): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */
    detachShader(program: WebGLProgram, shader: WebGLShader): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */
    disable(cap: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */
    disableVertexAttribArray(index: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */
    drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */
    drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */
    enable(cap: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */
    enableVertexAttribArray(index: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */
    finish(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */
    flush(): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */
    framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */
    framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */
    frontFace(mode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */
    generateMipmap(target: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */
    getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */
    getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */
    getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */
    getAttribLocation(program: WebGLProgram, name: string): GLint;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */
    getBufferParameter(target: GLenum, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */
    getContextAttributes(): WebGLContextAttributes | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
    getError(): GLenum;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
    getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
    getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
    getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
    getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
    getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
    getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
    getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
    getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
    getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
    getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
    getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
    getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
    getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
    getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
    getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
    getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
    getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
    getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
    getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
    getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
    getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
    getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
    getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
    getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
    getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
    getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
    getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
    getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
    getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
    getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
    getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
    getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
    getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
    getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
    getExtension(name: string): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
    getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
    getParameter(pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */
    getProgramInfoLog(program: WebGLProgram): string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */
    getProgramParameter(program: WebGLProgram, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */
    getRenderbufferParameter(target: GLenum, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */
    getShaderInfoLog(shader: WebGLShader): string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */
    getShaderParameter(shader: WebGLShader, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */
    getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */
    getShaderSource(shader: WebGLShader): string | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */
    getSupportedExtensions(): string[] | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */
    getTexParameter(target: GLenum, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */
    getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */
    getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */
    getVertexAttrib(index: GLuint, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */
    getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */
    hint(target: GLenum, mode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */
    isBuffer(buffer: WebGLBuffer | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */
    isContextLost(): boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */
    isEnabled(cap: GLenum): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */
    isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */
    isProgram(program: WebGLProgram | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */
    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */
    isShader(shader: WebGLShader | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */
    isTexture(texture: WebGLTexture | null): GLboolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth) */
    lineWidth(width: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */
    linkProgram(program: WebGLProgram): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */
    pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */
    polygonOffset(factor: GLfloat, units: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */
    renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */
    sampleCoverage(value: GLclampf, invert: GLboolean): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */
    scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */
    shaderSource(shader: WebGLShader, source: string): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */
    stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */
    stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */
    stencilMask(mask: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */
    stencilMaskSeparate(face: GLenum, mask: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */
    stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */
    stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
    texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
    texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */
    useProgram(program: WebGLProgram | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */
    validateProgram(program: WebGLProgram): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib1f(index: GLuint, x: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib1fv(index: GLuint, values: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib2fv(index: GLuint, values: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib3fv(index: GLuint, values: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib4fv(index: GLuint, values: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */
    vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */
    viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    readonly DEPTH_BUFFER_BIT: 0x00000100;
    readonly STENCIL_BUFFER_BIT: 0x00000400;
    readonly COLOR_BUFFER_BIT: 0x00004000;
    readonly POINTS: 0x0000;
    readonly LINES: 0x0001;
    readonly LINE_LOOP: 0x0002;
    readonly LINE_STRIP: 0x0003;
    readonly TRIANGLES: 0x0004;
    readonly TRIANGLE_STRIP: 0x0005;
    readonly TRIANGLE_FAN: 0x0006;
    readonly ZERO: 0;
    readonly ONE: 1;
    readonly SRC_COLOR: 0x0300;
    readonly ONE_MINUS_SRC_COLOR: 0x0301;
    readonly SRC_ALPHA: 0x0302;
    readonly ONE_MINUS_SRC_ALPHA: 0x0303;
    readonly DST_ALPHA: 0x0304;
    readonly ONE_MINUS_DST_ALPHA: 0x0305;
    readonly DST_COLOR: 0x0306;
    readonly ONE_MINUS_DST_COLOR: 0x0307;
    readonly SRC_ALPHA_SATURATE: 0x0308;
    readonly FUNC_ADD: 0x8006;
    readonly BLEND_EQUATION: 0x8009;
    readonly BLEND_EQUATION_RGB: 0x8009;
    readonly BLEND_EQUATION_ALPHA: 0x883D;
    readonly FUNC_SUBTRACT: 0x800A;
    readonly FUNC_REVERSE_SUBTRACT: 0x800B;
    readonly BLEND_DST_RGB: 0x80C8;
    readonly BLEND_SRC_RGB: 0x80C9;
    readonly BLEND_DST_ALPHA: 0x80CA;
    readonly BLEND_SRC_ALPHA: 0x80CB;
    readonly CONSTANT_COLOR: 0x8001;
    readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
    readonly CONSTANT_ALPHA: 0x8003;
    readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
    readonly BLEND_COLOR: 0x8005;
    readonly ARRAY_BUFFER: 0x8892;
    readonly ELEMENT_ARRAY_BUFFER: 0x8893;
    readonly ARRAY_BUFFER_BINDING: 0x8894;
    readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
    readonly STREAM_DRAW: 0x88E0;
    readonly STATIC_DRAW: 0x88E4;
    readonly DYNAMIC_DRAW: 0x88E8;
    readonly BUFFER_SIZE: 0x8764;
    readonly BUFFER_USAGE: 0x8765;
    readonly CURRENT_VERTEX_ATTRIB: 0x8626;
    readonly FRONT: 0x0404;
    readonly BACK: 0x0405;
    readonly FRONT_AND_BACK: 0x0408;
    readonly CULL_FACE: 0x0B44;
    readonly BLEND: 0x0BE2;
    readonly DITHER: 0x0BD0;
    readonly STENCIL_TEST: 0x0B90;
    readonly DEPTH_TEST: 0x0B71;
    readonly SCISSOR_TEST: 0x0C11;
    readonly POLYGON_OFFSET_FILL: 0x8037;
    readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
    readonly SAMPLE_COVERAGE: 0x80A0;
    readonly NO_ERROR: 0;
    readonly INVALID_ENUM: 0x0500;
    readonly INVALID_VALUE: 0x0501;
    readonly INVALID_OPERATION: 0x0502;
    readonly OUT_OF_MEMORY: 0x0505;
    readonly CW: 0x0900;
    readonly CCW: 0x0901;
    readonly LINE_WIDTH: 0x0B21;
    readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
    readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
    readonly CULL_FACE_MODE: 0x0B45;
    readonly FRONT_FACE: 0x0B46;
    readonly DEPTH_RANGE: 0x0B70;
    readonly DEPTH_WRITEMASK: 0x0B72;
    readonly DEPTH_CLEAR_VALUE: 0x0B73;
    readonly DEPTH_FUNC: 0x0B74;
    readonly STENCIL_CLEAR_VALUE: 0x0B91;
    readonly STENCIL_FUNC: 0x0B92;
    readonly STENCIL_FAIL: 0x0B94;
    readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
    readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
    readonly STENCIL_REF: 0x0B97;
    readonly STENCIL_VALUE_MASK: 0x0B93;
    readonly STENCIL_WRITEMASK: 0x0B98;
    readonly STENCIL_BACK_FUNC: 0x8800;
    readonly STENCIL_BACK_FAIL: 0x8801;
    readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
    readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
    readonly STENCIL_BACK_REF: 0x8CA3;
    readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
    readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
    readonly VIEWPORT: 0x0BA2;
    readonly SCISSOR_BOX: 0x0C10;
    readonly COLOR_CLEAR_VALUE: 0x0C22;
    readonly COLOR_WRITEMASK: 0x0C23;
    readonly UNPACK_ALIGNMENT: 0x0CF5;
    readonly PACK_ALIGNMENT: 0x0D05;
    readonly MAX_TEXTURE_SIZE: 0x0D33;
    readonly MAX_VIEWPORT_DIMS: 0x0D3A;
    readonly SUBPIXEL_BITS: 0x0D50;
    readonly RED_BITS: 0x0D52;
    readonly GREEN_BITS: 0x0D53;
    readonly BLUE_BITS: 0x0D54;
    readonly ALPHA_BITS: 0x0D55;
    readonly DEPTH_BITS: 0x0D56;
    readonly STENCIL_BITS: 0x0D57;
    readonly POLYGON_OFFSET_UNITS: 0x2A00;
    readonly POLYGON_OFFSET_FACTOR: 0x8038;
    readonly TEXTURE_BINDING_2D: 0x8069;
    readonly SAMPLE_BUFFERS: 0x80A8;
    readonly SAMPLES: 0x80A9;
    readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
    readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
    readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
    readonly DONT_CARE: 0x1100;
    readonly FASTEST: 0x1101;
    readonly NICEST: 0x1102;
    readonly GENERATE_MIPMAP_HINT: 0x8192;
    readonly BYTE: 0x1400;
    readonly UNSIGNED_BYTE: 0x1401;
    readonly SHORT: 0x1402;
    readonly UNSIGNED_SHORT: 0x1403;
    readonly INT: 0x1404;
    readonly UNSIGNED_INT: 0x1405;
    readonly FLOAT: 0x1406;
    readonly DEPTH_COMPONENT: 0x1902;
    readonly ALPHA: 0x1906;
    readonly RGB: 0x1907;
    readonly RGBA: 0x1908;
    readonly LUMINANCE: 0x1909;
    readonly LUMINANCE_ALPHA: 0x190A;
    readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
    readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
    readonly UNSIGNED_SHORT_5_6_5: 0x8363;
    readonly FRAGMENT_SHADER: 0x8B30;
    readonly VERTEX_SHADER: 0x8B31;
    readonly MAX_VERTEX_ATTRIBS: 0x8869;
    readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
    readonly MAX_VARYING_VECTORS: 0x8DFC;
    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
    readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
    readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
    readonly SHADER_TYPE: 0x8B4F;
    readonly DELETE_STATUS: 0x8B80;
    readonly LINK_STATUS: 0x8B82;
    readonly VALIDATE_STATUS: 0x8B83;
    readonly ATTACHED_SHADERS: 0x8B85;
    readonly ACTIVE_UNIFORMS: 0x8B86;
    readonly ACTIVE_ATTRIBUTES: 0x8B89;
    readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
    readonly CURRENT_PROGRAM: 0x8B8D;
    readonly NEVER: 0x0200;
    readonly LESS: 0x0201;
    readonly EQUAL: 0x0202;
    readonly LEQUAL: 0x0203;
    readonly GREATER: 0x0204;
    readonly NOTEQUAL: 0x0205;
    readonly GEQUAL: 0x0206;
    readonly ALWAYS: 0x0207;
    readonly KEEP: 0x1E00;
    readonly REPLACE: 0x1E01;
    readonly INCR: 0x1E02;
    readonly DECR: 0x1E03;
    readonly INVERT: 0x150A;
    readonly INCR_WRAP: 0x8507;
    readonly DECR_WRAP: 0x8508;
    readonly VENDOR: 0x1F00;
    readonly RENDERER: 0x1F01;
    readonly VERSION: 0x1F02;
    readonly NEAREST: 0x2600;
    readonly LINEAR: 0x2601;
    readonly NEAREST_MIPMAP_NEAREST: 0x2700;
    readonly LINEAR_MIPMAP_NEAREST: 0x2701;
    readonly NEAREST_MIPMAP_LINEAR: 0x2702;
    readonly LINEAR_MIPMAP_LINEAR: 0x2703;
    readonly TEXTURE_MAG_FILTER: 0x2800;
    readonly TEXTURE_MIN_FILTER: 0x2801;
    readonly TEXTURE_WRAP_S: 0x2802;
    readonly TEXTURE_WRAP_T: 0x2803;
    readonly TEXTURE_2D: 0x0DE1;
    readonly TEXTURE: 0x1702;
    readonly TEXTURE_CUBE_MAP: 0x8513;
    readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
    readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
    readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
    readonly TEXTURE0: 0x84C0;
    readonly TEXTURE1: 0x84C1;
    readonly TEXTURE2: 0x84C2;
    readonly TEXTURE3: 0x84C3;
    readonly TEXTURE4: 0x84C4;
    readonly TEXTURE5: 0x84C5;
    readonly TEXTURE6: 0x84C6;
    readonly TEXTURE7: 0x84C7;
    readonly TEXTURE8: 0x84C8;
    readonly TEXTURE9: 0x84C9;
    readonly TEXTURE10: 0x84CA;
    readonly TEXTURE11: 0x84CB;
    readonly TEXTURE12: 0x84CC;
    readonly TEXTURE13: 0x84CD;
    readonly TEXTURE14: 0x84CE;
    readonly TEXTURE15: 0x84CF;
    readonly TEXTURE16: 0x84D0;
    readonly TEXTURE17: 0x84D1;
    readonly TEXTURE18: 0x84D2;
    readonly TEXTURE19: 0x84D3;
    readonly TEXTURE20: 0x84D4;
    readonly TEXTURE21: 0x84D5;
    readonly TEXTURE22: 0x84D6;
    readonly TEXTURE23: 0x84D7;
    readonly TEXTURE24: 0x84D8;
    readonly TEXTURE25: 0x84D9;
    readonly TEXTURE26: 0x84DA;
    readonly TEXTURE27: 0x84DB;
    readonly TEXTURE28: 0x84DC;
    readonly TEXTURE29: 0x84DD;
    readonly TEXTURE30: 0x84DE;
    readonly TEXTURE31: 0x84DF;
    readonly ACTIVE_TEXTURE: 0x84E0;
    readonly REPEAT: 0x2901;
    readonly CLAMP_TO_EDGE: 0x812F;
    readonly MIRRORED_REPEAT: 0x8370;
    readonly FLOAT_VEC2: 0x8B50;
    readonly FLOAT_VEC3: 0x8B51;
    readonly FLOAT_VEC4: 0x8B52;
    readonly INT_VEC2: 0x8B53;
    readonly INT_VEC3: 0x8B54;
    readonly INT_VEC4: 0x8B55;
    readonly BOOL: 0x8B56;
    readonly BOOL_VEC2: 0x8B57;
    readonly BOOL_VEC3: 0x8B58;
    readonly BOOL_VEC4: 0x8B59;
    readonly FLOAT_MAT2: 0x8B5A;
    readonly FLOAT_MAT3: 0x8B5B;
    readonly FLOAT_MAT4: 0x8B5C;
    readonly SAMPLER_2D: 0x8B5E;
    readonly SAMPLER_CUBE: 0x8B60;
    readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
    readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
    readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
    readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
    readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
    readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
    readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
    readonly COMPILE_STATUS: 0x8B81;
    readonly LOW_FLOAT: 0x8DF0;
    readonly MEDIUM_FLOAT: 0x8DF1;
    readonly HIGH_FLOAT: 0x8DF2;
    readonly LOW_INT: 0x8DF3;
    readonly MEDIUM_INT: 0x8DF4;
    readonly HIGH_INT: 0x8DF5;
    readonly FRAMEBUFFER: 0x8D40;
    readonly RENDERBUFFER: 0x8D41;
    readonly RGBA4: 0x8056;
    readonly RGB5_A1: 0x8057;
    readonly RGBA8: 0x8058;
    readonly RGB565: 0x8D62;
    readonly DEPTH_COMPONENT16: 0x81A5;
    readonly STENCIL_INDEX8: 0x8D48;
    readonly DEPTH_STENCIL: 0x84F9;
    readonly RENDERBUFFER_WIDTH: 0x8D42;
    readonly RENDERBUFFER_HEIGHT: 0x8D43;
    readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
    readonly RENDERBUFFER_RED_SIZE: 0x8D50;
    readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
    readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
    readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
    readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
    readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
    readonly COLOR_ATTACHMENT0: 0x8CE0;
    readonly DEPTH_ATTACHMENT: 0x8D00;
    readonly STENCIL_ATTACHMENT: 0x8D20;
    readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
    readonly NONE: 0;
    readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
    readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
    readonly FRAMEBUFFER_BINDING: 0x8CA6;
    readonly RENDERBUFFER_BINDING: 0x8CA7;
    readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
    readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
    readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
    readonly CONTEXT_LOST_WEBGL: 0x9242;
    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
    readonly BROWSER_DEFAULT_WEBGL: 0x9244;
}

interface WebGLRenderingContextOverloads {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
    bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
    bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView<ArrayBufferLike>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView<ArrayBufferLike>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;
    texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView<ArrayBufferLike> | null): void;
    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}

/**
 * The **\`WebGLSampler\`** interface is part of the WebGL 2 API and stores sampling parameters for WebGLTexture access inside of a shader.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler)
 */
interface WebGLSampler {
}

declare var WebGLSampler: {
    prototype: WebGLSampler;
    new(): WebGLSampler;
};

/**
 * The **WebGLShader** is part of the WebGL API and can either be a vertex or a fragment shader.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
 */
interface WebGLShader {
}

declare var WebGLShader: {
    prototype: WebGLShader;
    new(): WebGLShader;
};

/**
 * The **WebGLShaderPrecisionFormat** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)
 */
interface WebGLShaderPrecisionFormat {
    /**
     * The read-only **\`WebGLShaderPrecisionFormat.precision\`** property returns the number of bits of precision that can be represented.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision)
     */
    readonly precision: GLint;
    /**
     * The read-only **\`WebGLShaderPrecisionFormat.rangeMax\`** property returns the base 2 log of the absolute value of the maximum value that can be represented.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)
     */
    readonly rangeMax: GLint;
    /**
     * The read-only **\`WebGLShaderPrecisionFormat.rangeMin\`** property returns the base 2 log of the absolute value of the minimum value that can be represented.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)
     */
    readonly rangeMin: GLint;
}

declare var WebGLShaderPrecisionFormat: {
    prototype: WebGLShaderPrecisionFormat;
    new(): WebGLShaderPrecisionFormat;
};

/**
 * The **\`WebGLSync\`** interface is part of the WebGL 2 API and is used to synchronize activities between the GPU and the application.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync)
 */
interface WebGLSync {
}

declare var WebGLSync: {
    prototype: WebGLSync;
    new(): WebGLSync;
};

/**
 * The **WebGLTexture** interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)
 */
interface WebGLTexture {
}

declare var WebGLTexture: {
    prototype: WebGLTexture;
    new(): WebGLTexture;
};

/**
 * The **\`WebGLTransformFeedback\`** interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback)
 */
interface WebGLTransformFeedback {
}

declare var WebGLTransformFeedback: {
    prototype: WebGLTransformFeedback;
    new(): WebGLTransformFeedback;
};

/**
 * The **WebGLUniformLocation** interface is part of the WebGL API and represents the location of a uniform variable in a shader program.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)
 */
interface WebGLUniformLocation {
}

declare var WebGLUniformLocation: {
    prototype: WebGLUniformLocation;
    new(): WebGLUniformLocation;
};

/**
 * The **\`WebGLVertexArrayObject\`** interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject)
 */
interface WebGLVertexArrayObject {
}

declare var WebGLVertexArrayObject: {
    prototype: WebGLVertexArrayObject;
    new(): WebGLVertexArrayObject;
};

/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */
interface WebGLVertexArrayObjectOES {
}

interface WebSocketEventMap {
    "close": CloseEvent;
    "error": Event;
    "message": MessageEvent;
    "open": Event;
}

/**
 * The \`WebSocket\` object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
 */
interface WebSocket extends EventTarget {
    /**
     * The **\`WebSocket.binaryType\`** property controls the type of binary data being received over the WebSocket connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
     */
    binaryType: BinaryType;
    /**
     * The **\`WebSocket.bufferedAmount\`** read-only property returns the number of bytes of data that have been queued using calls to \`send()\` but not yet transmitted to the network.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
     */
    readonly bufferedAmount: number;
    /**
     * The **\`WebSocket.extensions\`** read-only property returns the extensions selected by the server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
     */
    readonly extensions: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */
    onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */
    onerror: ((this: WebSocket, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */
    onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */
    onopen: ((this: WebSocket, ev: Event) => any) | null;
    /**
     * The **\`WebSocket.protocol\`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the \`protocols\` parameter when creating the WebSocket object, or the empty string if no connection is established.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
     */
    readonly protocol: string;
    /**
     * The **\`WebSocket.readyState\`** read-only property returns the current state of the WebSocket connection.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
     */
    readonly readyState: number;
    /**
     * The **\`WebSocket.url\`** read-only property returns the absolute URL of the WebSocket as resolved by the constructor.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
     */
    readonly url: string;
    /**
     * The **\`WebSocket.close()\`** method closes the already \`CLOSED\`, this method does nothing.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
     */
    close(code?: number, reason?: string): void;
    /**
     * The **\`WebSocket.send()\`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of \`bufferedAmount\` by the number of bytes needed to contain the data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
     */
    send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
    readonly CONNECTING: 0;
    readonly OPEN: 1;
    readonly CLOSING: 2;
    readonly CLOSED: 3;
    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var WebSocket: {
    prototype: WebSocket;
    new(url: string | URL, protocols?: string | string[]): WebSocket;
    readonly CONNECTING: 0;
    readonly OPEN: 1;
    readonly CLOSING: 2;
    readonly CLOSED: 3;
};

/**
 * The **\`WebTransport\`** interface of the WebTransport API provides functionality to enable a user agent to connect to an HTTP/3 server, initiate reliable and unreliable transport in either or both directions, and close the connection once it is no longer needed.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
 */
interface WebTransport {
    /**
     * The **\`closed\`** read-only property of the WebTransport interface returns a promise that resolves when the transport is closed.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed)
     */
    readonly closed: Promise<WebTransportCloseInfo>;
    /**
     * The **\`datagrams\`** read-only property of the WebTransport interface returns a WebTransportDatagramDuplexStream instance that can be used to send and receive datagrams — unreliable data transmission.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams)
     */
    readonly datagrams: WebTransportDatagramDuplexStream;
    /**
     * The **\`incomingBidirectionalStreams\`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams)
     */
    readonly incomingBidirectionalStreams: ReadableStream;
    /**
     * The **\`incomingUnidirectionalStreams\`** read-only property of the WebTransport interface represents one or more unidirectional streams opened by the server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
     */
    readonly incomingUnidirectionalStreams: ReadableStream;
    /**
     * The **\`ready\`** read-only property of the WebTransport interface returns a promise that resolves when the transport is ready to use.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready)
     */
    readonly ready: Promise<void>;
    /**
     * The **\`close()\`** method of the WebTransport interface closes an ongoing WebTransport session.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close)
     */
    close(closeInfo?: WebTransportCloseInfo): void;
    /**
     * The **\`createBidirectionalStream()\`** method of the WebTransport interface asynchronously opens and returns a bidirectional stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream)
     */
    createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
    /**
     * The **\`createUnidirectionalStream()\`** method of the WebTransport interface asynchronously opens a unidirectional stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream)
     */
    createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
}

declare var WebTransport: {
    prototype: WebTransport;
    new(url: string | URL, options?: WebTransportOptions): WebTransport;
};

/**
 * The **\`WebTransportBidirectionalStream\`** interface of the WebTransport API represents a bidirectional stream created by a server or a client that can be used for reliable transport.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
 */
interface WebTransportBidirectionalStream {
    /**
     * The **\`readable\`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportReceiveStream instance that can be used to reliably read incoming data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable)
     */
    readonly readable: ReadableStream;
    /**
     * The **\`writable\`** read-only property of the WebTransportBidirectionalStream interface returns a WebTransportSendStream instance that can be used to write outgoing data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable)
     */
    readonly writable: WritableStream;
}

declare var WebTransportBidirectionalStream: {
    prototype: WebTransportBidirectionalStream;
    new(): WebTransportBidirectionalStream;
};

/**
 * The **\`WebTransportDatagramDuplexStream\`** interface of the WebTransport API represents a duplex stream that can be used for unreliable transport of datagrams between client and server.
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
 */
interface WebTransportDatagramDuplexStream {
    /**
     * The **\`incomingHighWaterMark\`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for incoming chunks of data — this is the maximum size, in chunks, that the incoming ReadableStream's internal queue can reach before it is considered full.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)
     */
    incomingHighWaterMark: number;
    /**
     * The **\`incomingMaxAge\`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for incoming datagrams, in milliseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge)
     */
    incomingMaxAge: number | null;
    /**
     * The **\`maxDatagramSize\`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to WebTransportDatagramDuplexStream.writable.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)
     */
    readonly maxDatagramSize: number;
    /**
     * The **\`outgoingHighWaterMark\`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for outgoing chunks of data — this is the maximum size, in chunks, that the outgoing WritableStream's internal queue can reach before it is considered full.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)
     */
    outgoingHighWaterMark: number;
    /**
     * The **\`outgoingMaxAge\`** property of the WebTransportDatagramDuplexStream interface gets or sets the maximum age for outgoing datagrams, in milliseconds.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge)
     */
    outgoingMaxAge: number | null;
    /**
     * The **\`readable\`** read-only property of the WebTransportDatagramDuplexStream interface returns a ReadableStream instance that can be used to unreliably read incoming datagrams from the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)
     */
    readonly readable: ReadableStream;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
    readonly writable: WritableStream;
}

declare var WebTransportDatagramDuplexStream: {
    prototype: WebTransportDatagramDuplexStream;
    new(): WebTransportDatagramDuplexStream;
};

/**
 * The **\`WebTransportError\`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call).
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
 */
interface WebTransportError extends DOMException {
    /**
     * The **\`source\`** read-only property of the WebTransportError interface returns an enumerated value indicating the source of the error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source)
     */
    readonly source: WebTransportErrorSource;
    /**
     * The **\`streamErrorCode\`** read-only property of the WebTransportError interface returns a number in the range 0-255 indicating the application protocol error code for this error, or \`null\` if one is not available.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode)
     */
    readonly streamErrorCode: number | null;
}

declare var WebTransportError: {
    prototype: WebTransportError;
    new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
};

/**
 * The \`WindowClient\` interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)
 */
interface WindowClient extends Client {
    /**
     * The **\`focused\`** read-only property of the the current client has focus.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused)
     */
    readonly focused: boolean;
    /**
     * The **\`visibilityState\`** read-only property of the This value can be one of \`'hidden'\`, \`'visible'\`, or \`'prerender'\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState)
     */
    readonly visibilityState: DocumentVisibilityState;
    /**
     * The **\`focus()\`** method of the WindowClient interface gives user input focus to the current client and returns a \`\`\`js-nolint focus() \`\`\` None.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus)
     */
    focus(): Promise<WindowClient>;
    /**
     * The **\`navigate()\`** method of the WindowClient interface loads a specified URL into a controlled client page then returns a \`\`\`js-nolint navigate(url) \`\`\` - \`url\` - : The location to navigate to.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/navigate)
     */
    navigate(url: string | URL): Promise<WindowClient | null>;
}

declare var WindowClient: {
    prototype: WindowClient;
    new(): WindowClient;
};

interface WindowOrWorkerGlobalScope {
    /**
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)
     */
    readonly caches: CacheStorage;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
    readonly crossOriginIsolated: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
    readonly crypto: Crypto;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
    readonly indexedDB: IDBFactory;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
    readonly isSecureContext: boolean;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
    readonly origin: string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
    readonly performance: Performance;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
    atob(data: string): string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
    btoa(data: string): string;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */
    clearInterval(id: number | undefined): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */
    clearTimeout(id: number | undefined): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */
    createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
    createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
    fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
    queueMicrotask(callback: VoidFunction): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
    reportError(e: any): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */
    setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */
    setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */
    structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
}

interface WorkerEventMap extends AbstractWorkerEventMap, MessageEventTargetEventMap {
}

/**
 * The **\`Worker\`** interface of the Web Workers API represents a background task that can be created via script, which can send messages back to its creator.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
 */
interface Worker extends EventTarget, AbstractWorker, MessageEventTarget<Worker> {
    /**
     * The **\`postMessage()\`** method of the Worker interface sends a message to the worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
     */
    postMessage(message: any, transfer: Transferable[]): void;
    postMessage(message: any, options?: StructuredSerializeOptions): void;
    /**
     * The **\`terminate()\`** method of the Worker interface immediately terminates the Worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)
     */
    terminate(): void;
    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var Worker: {
    prototype: Worker;
    new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};

interface WorkerGlobalScopeEventMap {
    "error": ErrorEvent;
    "languagechange": Event;
    "offline": Event;
    "online": Event;
    "rejectionhandled": PromiseRejectionEvent;
    "unhandledrejection": PromiseRejectionEvent;
}

/**
 * The **\`WorkerGlobalScope\`** interface of the Web Workers API is an interface representing the scope of any worker.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope)
 */
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
    /**
     * The **\`location\`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
     */
    readonly location: WorkerLocation;
    /**
     * The **\`navigator\`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
     */
    readonly navigator: WorkerNavigator;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */
    onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */
    onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */
    onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */
    ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) */
    onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */
    onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
    /**
     * The **\`self\`** read-only property of the WorkerGlobalScope interface returns a reference to the \`WorkerGlobalScope\` itself.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
     */
    readonly self: WorkerGlobalScope & typeof globalThis;
    /**
     * The **\`importScripts()\`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
     */
    importScripts(...urls: (string | URL)[]): void;
    addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var WorkerGlobalScope: {
    prototype: WorkerGlobalScope;
    new(): WorkerGlobalScope;
};

/**
 * The **\`WorkerLocation\`** interface defines the absolute location of the script executed by the Worker.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)
 */
interface WorkerLocation {
    /**
     * The **\`hash\`** property of a WorkerLocation object returns the URL.hash part of the worker's location.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash)
     */
    readonly hash: string;
    /**
     * The **\`host\`** property of a WorkerLocation object returns the URL.host part of the worker's location.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host)
     */
    readonly host: string;
    /**
     * The **\`hostname\`** property of a WorkerLocation object returns the URL.hostname part of the worker's location.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname)
     */
    readonly hostname: string;
    /**
     * The **\`href\`** property of a WorkerLocation object returns a string containing the serialized URL for the worker's location.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href)
     */
    readonly href: string;
    toString(): string;
    /**
     * The **\`origin\`** property of a WorkerLocation object returns the worker's URL.origin.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin)
     */
    readonly origin: string;
    /**
     * The **\`pathname\`** property of a WorkerLocation object returns the URL.pathname part of the worker's location.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname)
     */
    readonly pathname: string;
    /**
     * The **\`port\`** property of a WorkerLocation object returns the URL.port part of the worker's location.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port)
     */
    readonly port: string;
    /**
     * The **\`protocol\`** property of a WorkerLocation object returns the URL.protocol part of the worker's location.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol)
     */
    readonly protocol: string;
    /**
     * The **\`search\`** property of a WorkerLocation object returns the URL.search part of the worker's location.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search)
     */
    readonly search: string;
}

declare var WorkerLocation: {
    prototype: WorkerLocation;
    new(): WorkerLocation;
};

/**
 * The **\`WorkerNavigator\`** interface represents a subset of the Navigator interface allowed to be accessed from a Worker.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
 */
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
    /**
     * The read-only **\`mediaCapabilities\`** property of the WorkerNavigator interface references a MediaCapabilities object that can expose information about the decoding and encoding capabilities for a given format and output capabilities (as defined by the Media Capabilities API).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities)
     */
    readonly mediaCapabilities: MediaCapabilities;
    /**
     * The **\`permissions\`** read-only property of the WorkerNavigator interface returns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions)
     */
    readonly permissions: Permissions;
    /**
     * The **\`serviceWorker\`** read-only property of the WorkerNavigator interface returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.
     * Available only in secure contexts.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/serviceWorker)
     */
    readonly serviceWorker: ServiceWorkerContainer;
}

declare var WorkerNavigator: {
    prototype: WorkerNavigator;
    new(): WorkerNavigator;
};

/**
 * The **\`WritableStream\`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
 */
interface WritableStream<W = any> {
    /**
     * The **\`locked\`** read-only property of the WritableStream interface returns a boolean indicating whether the \`WritableStream\` is locked to a writer.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)
     */
    readonly locked: boolean;
    /**
     * The **\`abort()\`** method of the WritableStream interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort)
     */
    abort(reason?: any): Promise<void>;
    /**
     * The **\`close()\`** method of the WritableStream interface closes the associated stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)
     */
    close(): Promise<void>;
    /**
     * The **\`getWriter()\`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter)
     */
    getWriter(): WritableStreamDefaultWriter<W>;
}

declare var WritableStream: {
    prototype: WritableStream;
    new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};

/**
 * The **\`WritableStreamDefaultController\`** interface of the Streams API represents a controller allowing control of a WritableStream's state.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
 */
interface WritableStreamDefaultController {
    /**
     * The read-only **\`signal\`** property of the WritableStreamDefaultController interface returns the AbortSignal associated with the controller.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal)
     */
    readonly signal: AbortSignal;
    /**
     * The **\`error()\`** method of the with the associated stream to error.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
     */
    error(e?: any): void;
}

declare var WritableStreamDefaultController: {
    prototype: WritableStreamDefaultController;
    new(): WritableStreamDefaultController;
};

/**
 * The **\`WritableStreamDefaultWriter\`** interface of the Streams API is the object returned by WritableStream.getWriter() and once created locks the writer to the \`WritableStream\` ensuring that no other streams can write to the underlying sink.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
 */
interface WritableStreamDefaultWriter<W = any> {
    /**
     * The **\`closed\`** read-only property of the the stream errors or the writer's lock is released.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
     */
    readonly closed: Promise<void>;
    /**
     * The **\`desiredSize\`** read-only property of the to fill the stream's internal queue.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
     */
    readonly desiredSize: number | null;
    /**
     * The **\`ready\`** read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
     */
    readonly ready: Promise<void>;
    /**
     * The **\`abort()\`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
     */
    abort(reason?: any): Promise<void>;
    /**
     * The **\`close()\`** method of the stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
     */
    close(): Promise<void>;
    /**
     * The **\`releaseLock()\`** method of the corresponding stream.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
     */
    releaseLock(): void;
    /**
     * The **\`write()\`** method of the operation.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)
     */
    write(chunk?: W): Promise<void>;
}

declare var WritableStreamDefaultWriter: {
    prototype: WritableStreamDefaultWriter;
    new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};

interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
    "readystatechange": Event;
}

/**
 * \`XMLHttpRequest\` (XHR) objects are used to interact with servers.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)
 */
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */
    onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
    /**
     * The **XMLHttpRequest.readyState** property returns the state an XMLHttpRequest client is in.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
     */
    readonly readyState: number;
    /**
     * The XMLHttpRequest **\`response\`** property returns the response's body content as an ArrayBuffer, a Blob, a Document, a JavaScript Object, or a string, depending on the value of the request's XMLHttpRequest.responseType property.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
     */
    readonly response: any;
    /**
     * The read-only XMLHttpRequest property **\`responseText\`** returns the text received from a server following a request being sent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
     */
    readonly responseText: string;
    /**
     * The XMLHttpRequest property **\`responseType\`** is an enumerated string value specifying the type of data contained in the response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
     */
    responseType: XMLHttpRequestResponseType;
    /**
     * The read-only **\`XMLHttpRequest.responseURL\`** property returns the serialized URL of the response or the empty string if the URL is \`null\`.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL)
     */
    readonly responseURL: string;
    /**
     * The read-only **\`XMLHttpRequest.status\`** property returns the numerical HTTP status code of the \`XMLHttpRequest\`'s response.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status)
     */
    readonly status: number;
    /**
     * The read-only **\`XMLHttpRequest.statusText\`** property returns a string containing the response's status message as returned by the HTTP server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText)
     */
    readonly statusText: string;
    /**
     * The **\`XMLHttpRequest.timeout\`** property is an \`unsigned long\` representing the number of milliseconds a request can take before automatically being terminated.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
     */
    timeout: number;
    /**
     * The XMLHttpRequest \`upload\` property returns an XMLHttpRequestUpload object that can be observed to monitor an upload's progress.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
     */
    readonly upload: XMLHttpRequestUpload;
    /**
     * The **\`XMLHttpRequest.withCredentials\`** property is a boolean value that indicates whether or not cross-site \`Access-Control\` requests should be made using credentials such as cookies, authentication headers or TLS client certificates.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
     */
    withCredentials: boolean;
    /**
     * The **\`XMLHttpRequest.abort()\`** method aborts the request if it has already been sent.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
     */
    abort(): void;
    /**
     * The XMLHttpRequest method **\`getAllResponseHeaders()\`** returns all the response headers, separated by CRLF, as a string, or returns \`null\` if no response has been received.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders)
     */
    getAllResponseHeaders(): string;
    /**
     * The XMLHttpRequest method **\`getResponseHeader()\`** returns the string containing the text of a particular header's value.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader)
     */
    getResponseHeader(name: string): string | null;
    /**
     * The XMLHttpRequest method **\`open()\`** initializes a newly-created request, or re-initializes an existing one.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
     */
    open(method: string, url: string | URL): void;
    open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
    /**
     * The XMLHttpRequest method **\`overrideMimeType()\`** specifies a MIME type other than the one provided by the server to be used instead when interpreting the data being transferred in a request.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
     */
    overrideMimeType(mime: string): void;
    /**
     * The XMLHttpRequest method **\`send()\`** sends the request to the server.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
     */
    send(body?: XMLHttpRequestBodyInit | null): void;
    /**
     * The XMLHttpRequest method **\`setRequestHeader()\`** sets the value of an HTTP request header.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)
     */
    setRequestHeader(name: string, value: string): void;
    readonly UNSENT: 0;
    readonly OPENED: 1;
    readonly HEADERS_RECEIVED: 2;
    readonly LOADING: 3;
    readonly DONE: 4;
    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var XMLHttpRequest: {
    prototype: XMLHttpRequest;
    new(): XMLHttpRequest;
    readonly UNSENT: 0;
    readonly OPENED: 1;
    readonly HEADERS_RECEIVED: 2;
    readonly LOADING: 3;
    readonly DONE: 4;
};

interface XMLHttpRequestEventTargetEventMap {
    "abort": ProgressEvent<XMLHttpRequestEventTarget>;
    "error": ProgressEvent<XMLHttpRequestEventTarget>;
    "load": ProgressEvent<XMLHttpRequestEventTarget>;
    "loadend": ProgressEvent<XMLHttpRequestEventTarget>;
    "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
    "progress": ProgressEvent<XMLHttpRequestEventTarget>;
    "timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}

/**
 * \`XMLHttpRequestEventTarget\` is the interface that describes the event handlers shared on XMLHttpRequest and XMLHttpRequestUpload.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget)
 */
interface XMLHttpRequestEventTarget extends EventTarget {
    onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var XMLHttpRequestEventTarget: {
    prototype: XMLHttpRequestEventTarget;
    new(): XMLHttpRequestEventTarget;
};

/**
 * The **\`XMLHttpRequestUpload\`** interface represents the upload process for a specific XMLHttpRequest.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload)
 */
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

declare var XMLHttpRequestUpload: {
    prototype: XMLHttpRequestUpload;
    new(): XMLHttpRequestUpload;
};

declare namespace WebAssembly {
    interface CompileError extends Error {
    }

    var CompileError: {
        prototype: CompileError;
        new(message?: string): CompileError;
        (message?: string): CompileError;
    };

    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global) */
    interface Global<T extends ValueType = ValueType> {
        value: ValueTypeMap[T];
        valueOf(): ValueTypeMap[T];
    }

    var Global: {
        prototype: Global;
        new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
    };

    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance) */
    interface Instance {
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports) */
        readonly exports: Exports;
    }

    var Instance: {
        prototype: Instance;
        new(module: Module, importObject?: Imports): Instance;
    };

    interface LinkError extends Error {
    }

    var LinkError: {
        prototype: LinkError;
        new(message?: string): LinkError;
        (message?: string): LinkError;
    };

    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory) */
    interface Memory {
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer) */
        readonly buffer: ArrayBuffer;
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */
        grow(delta: number): number;
    }

    var Memory: {
        prototype: Memory;
        new(descriptor: MemoryDescriptor): Memory;
    };

    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module) */
    interface Module {
    }

    var Module: {
        prototype: Module;
        new(bytes: BufferSource): Module;
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static) */
        customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static) */
        exports(moduleObject: Module): ModuleExportDescriptor[];
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static) */
        imports(moduleObject: Module): ModuleImportDescriptor[];
    };

    interface RuntimeError extends Error {
    }

    var RuntimeError: {
        prototype: RuntimeError;
        new(message?: string): RuntimeError;
        (message?: string): RuntimeError;
    };

    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table) */
    interface Table {
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */
        readonly length: number;
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */
        get(index: number): any;
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */
        grow(delta: number, value?: any): number;
        /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */
        set(index: number, value?: any): void;
    }

    var Table: {
        prototype: Table;
        new(descriptor: TableDescriptor, value?: any): Table;
    };

    interface GlobalDescriptor<T extends ValueType = ValueType> {
        mutable?: boolean;
        value: T;
    }

    interface MemoryDescriptor {
        initial: number;
        maximum?: number;
        shared?: boolean;
    }

    interface ModuleExportDescriptor {
        kind: ImportExportKind;
        name: string;
    }

    interface ModuleImportDescriptor {
        kind: ImportExportKind;
        module: string;
        name: string;
    }

    interface TableDescriptor {
        element: TableKind;
        initial: number;
        maximum?: number;
    }

    interface ValueTypeMap {
        anyfunc: Function;
        externref: any;
        f32: number;
        f64: number;
        i32: number;
        i64: bigint;
        v128: never;
    }

    interface WebAssemblyInstantiatedSource {
        instance: Instance;
        module: Module;
    }

    type ImportExportKind = "function" | "global" | "memory" | "table";
    type TableKind = "anyfunc" | "externref";
    type ExportValue = Function | Global | Memory | Table;
    type Exports = Record<string, ExportValue>;
    type ImportValue = ExportValue | number;
    type Imports = Record<string, ModuleImports>;
    type ModuleImports = Record<string, ImportValue>;
    type ValueType = keyof ValueTypeMap;
    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
    function compile(bytes: BufferSource): Promise<Module>;
    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
    function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
    function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
    function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
    function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
    /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
    function validate(bytes: BufferSource): boolean;
}

/** The **\`console\`** object provides access to the debugging console (e.g., the Web console in Firefox). */
/**
 * The **\`console\`** object provides access to the debugging console (e.g., the Web console in Firefox).
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console)
 */
interface Console {
    /**
     * The **\`console.assert()\`** static method writes an error message to the console if the assertion is false.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static)
     */
    assert(condition?: boolean, ...data: any[]): void;
    /**
     * The **\`console.clear()\`** static method clears the console if possible.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static)
     */
    clear(): void;
    /**
     * The **\`console.count()\`** static method logs the number of times that this particular call to \`count()\` has been called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)
     */
    count(label?: string): void;
    /**
     * The **\`console.countReset()\`** static method resets counter used with console/count_static.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
     */
    countReset(label?: string): void;
    /**
     * The **\`console.debug()\`** static method outputs a message to the console at the 'debug' log level.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)
     */
    debug(...data: any[]): void;
    /**
     * The **\`console.dir()\`** static method displays a list of the properties of the specified JavaScript object.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)
     */
    dir(item?: any, options?: any): void;
    /**
     * The **\`console.dirxml()\`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)
     */
    dirxml(...data: any[]): void;
    /**
     * The **\`console.error()\`** static method outputs a message to the console at the 'error' log level.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)
     */
    error(...data: any[]): void;
    /**
     * The **\`console.group()\`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console/groupEnd_static is called.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
     */
    group(...data: any[]): void;
    /**
     * The **\`console.groupCollapsed()\`** static method creates a new inline group in the console.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)
     */
    groupCollapsed(...data: any[]): void;
    /**
     * The **\`console.groupEnd()\`** static method exits the current inline group in the console.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)
     */
    groupEnd(): void;
    /**
     * The **\`console.info()\`** static method outputs a message to the console at the 'info' log level.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)
     */
    info(...data: any[]): void;
    /**
     * The **\`console.log()\`** static method outputs a message to the console.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static)
     */
    log(...data: any[]): void;
    /**
     * The **\`console.table()\`** static method displays tabular data as a table.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static)
     */
    table(tabularData?: any, properties?: string[]): void;
    /**
     * The **\`console.time()\`** static method starts a timer you can use to track how long an operation takes.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)
     */
    time(label?: string): void;
    /**
     * The **\`console.timeEnd()\`** static method stops a timer that was previously started by calling console/time_static.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
     */
    timeEnd(label?: string): void;
    /**
     * The **\`console.timeLog()\`** static method logs the current value of a timer that was previously started by calling console/time_static.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
     */
    timeLog(label?: string, ...data: any[]): void;
    timeStamp(label?: string): void;
    /**
     * The **\`console.trace()\`** static method outputs a stack trace to the console.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static)
     */
    trace(...data: any[]): void;
    /**
     * The **\`console.warn()\`** static method outputs a warning message to the console at the 'warning' log level.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)
     */
    warn(...data: any[]): void;
}

declare var console: Console;

interface AudioDataOutputCallback {
    (output: AudioData): void;
}

interface EncodedAudioChunkOutputCallback {
    (output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void;
}

interface EncodedVideoChunkOutputCallback {
    (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
}

interface FrameRequestCallback {
    (time: DOMHighResTimeStamp): void;
}

interface LockGrantedCallback<T> {
    (lock: Lock | null): T;
}

interface OnErrorEventHandlerNonNull {
    (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}

interface PerformanceObserverCallback {
    (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}

interface QueuingStrategySize<T = any> {
    (chunk: T): number;
}

interface ReportingObserverCallback {
    (reports: Report[], observer: ReportingObserver): void;
}

interface TransformerFlushCallback<O> {
    (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}

interface TransformerStartCallback<O> {
    (controller: TransformStreamDefaultController<O>): any;
}

interface TransformerTransformCallback<I, O> {
    (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}

interface UnderlyingSinkAbortCallback {
    (reason?: any): void | PromiseLike<void>;
}

interface UnderlyingSinkCloseCallback {
    (): void | PromiseLike<void>;
}

interface UnderlyingSinkStartCallback {
    (controller: WritableStreamDefaultController): any;
}

interface UnderlyingSinkWriteCallback<W> {
    (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}

interface UnderlyingSourceCancelCallback {
    (reason?: any): void | PromiseLike<void>;
}

interface UnderlyingSourcePullCallback<R> {
    (controller: ReadableStreamController<R>): void | PromiseLike<void>;
}

interface UnderlyingSourceStartCallback<R> {
    (controller: ReadableStreamController<R>): any;
}

interface VideoFrameOutputCallback {
    (output: VideoFrame): void;
}

interface VoidFunction {
    (): void;
}

interface WebCodecsErrorCallback {
    (error: DOMException): void;
}

/**
 * The **\`name\`** read-only property of the the Worker.Worker constructor can pass to get a reference to the DedicatedWorkerGlobalScope.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
 */
declare var name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: RTCTransformEvent) => any) | null;
/**
 * The **\`close()\`** method of the DedicatedWorkerGlobalScope interface discards any tasks queued in the \`DedicatedWorkerGlobalScope\`'s event loop, effectively closing this particular scope.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
 */
declare function close(): void;
/**
 * The **\`postMessage()\`** method of the DedicatedWorkerGlobalScope interface sends a message to the main thread that spawned it.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
 */
declare function postMessage(message: any, transfer: Transferable[]): void;
declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
 * The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
 */
declare function dispatchEvent(event: Event): boolean;
/**
 * The **\`location\`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
 */
declare var location: WorkerLocation;
/**
 * The **\`navigator\`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
 */
declare var navigator: WorkerNavigator;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/rejectionhandled_event) */
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
 * The **\`self\`** read-only property of the WorkerGlobalScope interface returns a reference to the \`WorkerGlobalScope\` itself.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
 */
declare var self: WorkerGlobalScope & typeof globalThis;
/**
 * The **\`importScripts()\`** method of the WorkerGlobalScope interface synchronously imports one or more scripts into the worker's scope.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
 */
declare function importScripts(...urls: (string | URL)[]): void;
/**
 * The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
 */
declare function dispatchEvent(event: Event): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
declare var fonts: FontFaceSet;
/**
 * Available only in secure contexts.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/caches)
 */
declare var caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/crypto) */
declare var crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/indexedDB) */
declare var indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/isSecureContext) */
declare var isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/origin) */
declare var origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/performance) */
declare var performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/atob) */
declare function atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearInterval) */
declare function clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/clearTimeout) */
declare function clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap) */
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/reportError) */
declare function reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setInterval) */
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/setTimeout) */
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/structuredClone) */
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
declare function cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView<ArrayBufferLike>;
type BigInteger = Uint8Array<ArrayBuffer>;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView<ArrayBuffer> | ArrayBuffer;
type CSSKeywordish = string | CSSKeywordValue;
type CSSNumberish = number | CSSNumericValue;
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
type CSSUnparsedSegment = string | CSSVariableReferenceValue;
type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame;
type CookieList = CookieListItem[];
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
type Float32List = Float32Array<ArrayBufferLike> | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type ImageBufferSource = AllowSharedBufferSource | ReadableStream;
type ImageDataArray = Uint8ClampedArray<ArrayBuffer>;
type Int32List = Int32Array<ArrayBufferLike> | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type PushMessageDataInit = BufferSource | string;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
type ReportList = Report[];
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlphaOption = "discard" | "keep";
type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
type AvcBitstreamFormat = "annexb" | "avc";
type BinaryType = "arraybuffer" | "blob";
type BitrateMode = "constant" | "variable";
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type CodecState = "closed" | "configured" | "unconfigured";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
type CookieSameSite = "lax" | "none" | "strict";
type DocumentVisibilityState = "hidden" | "visible";
type EncodedAudioChunkType = "delta" | "key";
type EncodedVideoChunkType = "delta" | "key";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionDurability = "default" | "relaxed" | "strict";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "from-image" | "none";
type ImageSmoothingQuality = "high" | "low" | "medium";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LatencyMode = "quality" | "realtime";
type LockMode = "exclusive" | "shared";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaEncodingType = "record" | "webrtc";
type MediaKeysRequirement = "not-allowed" | "optional" | "required";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type OpusBitstreamFormat = "ogg" | "opus";
type PermissionName = "camera" | "geolocation" | "microphone" | "midi" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "storage-access";
type PermissionState = "denied" | "granted" | "prompt";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
type ReadableStreamReaderMode = "byob";
type ReadableStreamType = "bytes";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestPriority = "auto" | "high" | "low";
type RequestRedirect = "error" | "follow" | "manual";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type TransferFunction = "hlg" | "pq" | "srgb";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
type WebTransportErrorSource = "session" | "stream";
type WorkerType = "classic" | "module";
type WriteCommandType = "seek" | "truncate" | "write";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`),
    (ji["lib.webworker.importscripts.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/////////////////////////////
/// WorkerGlobalScope APIs
/////////////////////////////
// These are only available in a Web Worker
declare function importScripts(...urls: string[]): void;
`),
    (ji["lib.webworker.iterable.d.ts"] =
      `/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */


/// <reference no-default-lib="true"/>

/////////////////////////////
/// Worker Iterable APIs
/////////////////////////////

interface CSSNumericArray {
    [Symbol.iterator](): ArrayIterator<CSSNumericValue>;
    entries(): ArrayIterator<[number, CSSNumericValue]>;
    keys(): ArrayIterator<number>;
    values(): ArrayIterator<CSSNumericValue>;
}

interface CSSTransformValue {
    [Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
    entries(): ArrayIterator<[number, CSSTransformComponent]>;
    keys(): ArrayIterator<number>;
    values(): ArrayIterator<CSSTransformComponent>;
}

interface CSSUnparsedValue {
    [Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
    entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
    keys(): ArrayIterator<number>;
    values(): ArrayIterator<CSSUnparsedSegment>;
}

interface Cache {
    /**
     * The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
     */
    addAll(requests: Iterable<RequestInfo>): Promise<void>;
}

interface CanvasPath {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
    roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}

interface CanvasPathDrawingStyles {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
    setLineDash(segments: Iterable<number>): void;
}

interface CookieStoreManager {
    /**
     * The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
     */
    subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
    /**
     * The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
     */
    unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
}

interface DOMStringList {
    [Symbol.iterator](): ArrayIterator<string>;
}

interface FileList {
    [Symbol.iterator](): ArrayIterator<File>;
}

interface FontFaceSet extends Set<FontFace> {
}

interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): FormDataIterator<T>;
}

interface FormData {
    [Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
    /** Returns an array of key, value pairs for every entry in the list. */
    entries(): FormDataIterator<[string, FormDataEntryValue]>;
    /** Returns a list of keys in the list. */
    keys(): FormDataIterator<string>;
    /** Returns a list of values in the list. */
    values(): FormDataIterator<FormDataEntryValue>;
}

interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): HeadersIterator<T>;
}

interface Headers {
    [Symbol.iterator](): HeadersIterator<[string, string]>;
    /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
    entries(): HeadersIterator<[string, string]>;
    /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
    keys(): HeadersIterator<string>;
    /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
    values(): HeadersIterator<string>;
}

interface IDBDatabase {
    /**
     * The **\`transaction\`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
     */
    transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}

interface IDBObjectStore {
    /**
     * The **\`createIndex()\`** method of the field/column defining a new data point for each database record to contain.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
     */
    createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}

interface ImageTrackList {
    [Symbol.iterator](): ArrayIterator<ImageTrack>;
}

interface MessageEvent<T = any> {
    /** @deprecated */
    initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}

interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
}

interface StylePropertyMapReadOnly {
    [Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
    entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
    keys(): StylePropertyMapReadOnlyIterator<string>;
    values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
}

interface SubtleCrypto {
    /**
     * The **\`deriveKey()\`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
     */
    deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
    /**
     * The **\`generateKey()\`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
     */
    generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
    generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
    /**
     * The **\`importKey()\`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
     */
    importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
    importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
    /**
     * The **\`unwrapKey()\`** method of the SubtleCrypto interface 'unwraps' a key.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
     */
    unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}

interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
    [Symbol.iterator](): URLSearchParamsIterator<T>;
}

interface URLSearchParams {
    [Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
    /** Returns an array of key, value pairs for every entry in the search params. */
    entries(): URLSearchParamsIterator<[string, string]>;
    /** Returns a list of keys in the search params. */
    keys(): URLSearchParamsIterator<string>;
    /** Returns a list of values in the search params. */
    values(): URLSearchParamsIterator<string>;
}

interface WEBGL_draw_buffers {
    /**
     * The **\`WEBGL_draw_buffers.drawBuffersWEBGL()\`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
     */
    drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}

interface WEBGL_multi_draw {
    /**
     * The **\`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
     */
    multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawArraysWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
     */
    multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
     */
    multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
    /**
     * The **\`WEBGL_multi_draw.multiDrawElementsWEBGL()\`** method of the WebGL API renders multiple primitives from array data.
     *
     * [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
     */
    multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
}

interface WebGL2RenderingContextBase {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
    clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
    drawBuffers(buffers: Iterable<GLenum>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
    getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
    getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
    invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
    invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
    transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
    uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
    vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}

interface WebGL2RenderingContextOverloads {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
}

interface WebGLRenderingContextBase {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
    vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}

interface WebGLRenderingContextOverloads {
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
    uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
    /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`));
  function km(b) {
    return typeof b == "string"
      ? /^file:\/\/\//.test(b)
        ? !!ji[b.substr(8)]
        : !1
      : b.path.indexOf("/lib.") === 0
        ? !!ji[b.path.slice(1)]
        : !1;
  }
  class ER {
    constructor(y, x) {
      ((this._extraLibs = Object.create(null)),
        (this._languageService = aTe(this)),
        (this._ctx = y),
        (this._compilerOptions = x.compilerOptions),
        (this._extraLibs = x.extraLibs),
        (this._inlayHintsOptions = x.inlayHintsOptions));
    }
    getCompilationSettings() {
      return this._compilerOptions;
    }
    getLanguageService() {
      return this._languageService;
    }
    getExtraLibs() {
      return this._extraLibs;
    }
    getScriptFileNames() {
      return this._ctx
        .getMirrorModels()
        .map((F) => F.uri)
        .filter((F) => !km(F))
        .map((F) => F.toString())
        .concat(Object.keys(this._extraLibs));
    }
    _getModel(y) {
      let x = this._ctx.getMirrorModels();
      for (let F = 0; F < x.length; F++) {
        const $ = x[F].uri;
        if ($.toString() === y || $.toString(!0) === y) return x[F];
      }
      return null;
    }
    getScriptVersion(y) {
      let x = this._getModel(y);
      return x
        ? x.version.toString()
        : this.isDefaultLibFileName(y)
          ? "1"
          : y in this._extraLibs
            ? String(this._extraLibs[y].version)
            : "";
    }
    async getScriptText(y) {
      return this._getScriptText(y);
    }
    _getScriptText(y) {
      let x,
        F = this._getModel(y);
      const $ = "lib." + y + ".d.ts";
      if (F) x = F.getValue();
      else if (y in ji) x = ji[y];
      else if ($ in ji) x = ji[$];
      else if (y in this._extraLibs) x = this._extraLibs[y].content;
      else return;
      return x;
    }
    getScriptSnapshot(y) {
      const x = this._getScriptText(y);
      if (x !== void 0)
        return {
          getText: (F, $) => x.substring(F, $),
          getLength: () => x.length,
          getChangeRange: () => {},
        };
    }
    getScriptKind(y) {
      switch (y.substr(y.lastIndexOf(".") + 1)) {
        case "ts":
          return dN.TS;
        case "tsx":
          return dN.TSX;
        case "js":
          return dN.JS;
        case "jsx":
          return dN.JSX;
        default:
          return this.getCompilationSettings().allowJs ? dN.JS : dN.TS;
      }
    }
    getCurrentDirectory() {
      return "";
    }
    getDefaultLibFileName(y) {
      switch (y.target) {
        case 99:
          const x = "lib.esnext.full.d.ts";
          if (x in ji || x in this._extraLibs) return x;
        case 7:
        case 6:
        case 5:
        case 4:
        case 3:
        case 2:
        default:
          const F = `lib.es${2013 + (y.target || 99)}.full.d.ts`;
          return F in ji || F in this._extraLibs ? F : "lib.es6.d.ts";
        case 1:
        case 0:
          return "lib.d.ts";
      }
    }
    isDefaultLibFileName(y) {
      return y === this.getDefaultLibFileName(this._compilerOptions);
    }
    readFile(y) {
      return this._getScriptText(y);
    }
    fileExists(y) {
      return this._getScriptText(y) !== void 0;
    }
    async getLibFiles() {
      return ji;
    }
    static clearFiles(y) {
      const x = [];
      for (const F of y) {
        const $ = { ...F };
        if (
          (($.file = $.file ? { fileName: $.file.fileName } : void 0),
          F.relatedInformation)
        ) {
          $.relatedInformation = [];
          for (const ge of F.relatedInformation) {
            const Le = { ...ge };
            ((Le.file = Le.file ? { fileName: Le.file.fileName } : void 0),
              $.relatedInformation.push(Le));
          }
        }
        x.push($);
      }
      return x;
    }
    async getSyntacticDiagnostics(y) {
      if (km(y)) return [];
      const x = this._languageService.getSyntacticDiagnostics(y);
      return ER.clearFiles(x);
    }
    async getSemanticDiagnostics(y) {
      if (km(y)) return [];
      const x = this._languageService.getSemanticDiagnostics(y);
      return ER.clearFiles(x);
    }
    async getSuggestionDiagnostics(y) {
      if (km(y)) return [];
      const x = this._languageService.getSuggestionDiagnostics(y);
      return ER.clearFiles(x);
    }
    async getCompilerOptionsDiagnostics(y) {
      if (km(y)) return [];
      const x = this._languageService.getCompilerOptionsDiagnostics();
      return ER.clearFiles(x);
    }
    async getCompletionsAtPosition(y, x) {
      if (!km(y))
        return this._languageService.getCompletionsAtPosition(y, x, void 0);
    }
    async getCompletionEntryDetails(y, x, F) {
      return this._languageService.getCompletionEntryDetails(
        y,
        x,
        F,
        void 0,
        void 0,
        void 0,
        void 0,
      );
    }
    async getSignatureHelpItems(y, x, F) {
      if (!km(y)) return this._languageService.getSignatureHelpItems(y, x, F);
    }
    async getQuickInfoAtPosition(y, x) {
      if (!km(y)) return this._languageService.getQuickInfoAtPosition(y, x);
    }
    async getDocumentHighlights(y, x, F) {
      if (!km(y)) return this._languageService.getDocumentHighlights(y, x, F);
    }
    async getDefinitionAtPosition(y, x) {
      if (!km(y)) return this._languageService.getDefinitionAtPosition(y, x);
    }
    async getReferencesAtPosition(y, x) {
      if (!km(y)) return this._languageService.getReferencesAtPosition(y, x);
    }
    async getNavigationTree(y) {
      if (!km(y)) return this._languageService.getNavigationTree(y);
    }
    async getFormattingEditsForDocument(y, x) {
      return km(y)
        ? []
        : this._languageService.getFormattingEditsForDocument(y, x);
    }
    async getFormattingEditsForRange(y, x, F, $) {
      return km(y)
        ? []
        : this._languageService.getFormattingEditsForRange(y, x, F, $);
    }
    async getFormattingEditsAfterKeystroke(y, x, F, $) {
      return km(y)
        ? []
        : this._languageService.getFormattingEditsAfterKeystroke(y, x, F, $);
    }
    async findRenameLocations(y, x, F, $, ge) {
      if (!km(y))
        return this._languageService.findRenameLocations(y, x, F, $, ge);
    }
    async getRenameInfo(y, x, F) {
      return km(y)
        ? { canRename: !1, localizedErrorMessage: "Cannot rename in lib file" }
        : this._languageService.getRenameInfo(y, x, F);
    }
    async getEmitOutput(y, x, F) {
      if (km(y)) return { outputFiles: [], emitSkipped: !0 };
      const $ = this._languageService.getEmitOutput(y, x, F),
        ge = $.diagnostics ? ER.clearFiles($.diagnostics) : void 0;
      return { ...$, diagnostics: ge };
    }
    async getCodeFixesAtPosition(y, x, F, $, ge) {
      if (km(y)) return [];
      const Le = {};
      try {
        return this._languageService.getCodeFixesAtPosition(y, x, F, $, ge, Le);
      } catch {
        return [];
      }
    }
    async updateExtraLibs(y) {
      this._extraLibs = y;
    }
    async provideInlayHints(y, x, F) {
      if (km(y)) return [];
      const $ = this._inlayHintsOptions ?? {},
        ge = { start: x, length: F - x };
      try {
        return this._languageService.provideInlayHints(y, ge, $);
      } catch {
        return [];
      }
    }
  }
  function NBe(b, y) {
    let x = ER;
    if (y.customWorkerPath)
      if (typeof importScripts > "u")
        console.warn(
          "Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag",
        );
      else {
        self.importScripts(y.customWorkerPath);
        const F = self.customTSWorkerFactory;
        if (!F)
          throw new Error(
            `The script at ${y.customWorkerPath} does not add customTSWorkerFactory to self`,
          );
        x = F(ER, CBe, ji);
      }
    return new x(b, y);
  }
  ((globalThis.ts = sTe),
    (self.onmessage = () => {
      TBe((b, y) => NBe(b, y));
    }));
})();
